diff --git a/src/openrpc/alchemy/solana-das/solana-das.yaml b/src/openrpc/alchemy/solana-das/solana-das.yaml index 5cfb9aa83..0f8e8ff38 100644 --- a/src/openrpc/alchemy/solana-das/solana-das.yaml +++ b/src/openrpc/alchemy/solana-das/solana-das.yaml @@ -133,33 +133,69 @@ methods: - name: getAssetsByOwner description: Returns assets owned by the specified address. + paramStructure: by-name params: - - name: Owner address + - name: ownerAddress required: true description: The owner address to filter assets by. schema: $ref: ../../chains/_components/solana/base-types.yaml#/components/schemas/Pubkey - - name: Configuration + - name: sortBy required: false - description: Optional configuration object for sorting and pagination. + description: > + The field to sort by. Note: Only `id` is supported for cursor-based pagination + (using `before`/`after`). Sorting by `created`, `updated`, `recent_action`, or `none` + requires page-based pagination (using `page`). + schema: + type: string + enum: + - id + - created + - updated + - recent_action + - none + - name: sortDirection + required: false + description: Sort direction (ascending or descending). schema: - $ref: ../../chains/_components/solana/asset.yaml#/components/schemas/GetAssetsByOwnerConfig + type: string + enum: + - asc + - desc + - name: limit + required: false + description: The maximum number of assets to retrieve (max 1000, default 100). + schema: + type: integer + - name: page + required: false + description: The index of the page to retrieve. Required when using sortBy values other than `id`. + schema: + type: integer + - name: before + required: false + description: Retrieve assets before this cursor. Only supported when sortBy is `id`. + schema: + type: string + - name: after + required: false + description: Retrieve assets after this cursor. Only supported when sortBy is `id`. + schema: + type: string + - name: options + required: false + description: Display options for the response. + schema: + $ref: ../../chains/_components/solana/asset.yaml#/components/schemas/DisplayOptions examples: - name: getAssetsByOwner example params: - - name: Owner address - value: - ownerAddress: "86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY" - page: 1 - limit: 50 - sortBy: - sortBy: "created" - sortDirection: "asc" - options: - showUnverifiedCollections: false - showCollectionMetadata: false - showFungible: false - showZeroBalance: false + - name: ownerAddress + value: "86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY" + - name: limit + value: 50 + - name: page + value: 1 result: name: Assets by owner description: Returns assets owned by the specified address. diff --git a/src/openrpc/chains/_components/solana/asset.yaml b/src/openrpc/chains/_components/solana/asset.yaml index 2fa01cf96..0cdb7d58c 100644 --- a/src/openrpc/chains/_components/solana/asset.yaml +++ b/src/openrpc/chains/_components/solana/asset.yaml @@ -39,6 +39,30 @@ components: description: Display grand total. default: false + AssetSorting: + title: Asset Sorting + type: object + description: Sorting configuration for assets. + properties: + sortBy: + type: string + enum: + - id + - created + - updated + - recent_action + - none + description: > + The field to sort by. Note: Only `id` is supported for cursor-based pagination + (using `before`/`after`). Sorting by `created`, `updated`, `recent_action`, or `none` + requires page-based pagination (using `page`). + sortDirection: + type: string + enum: + - asc + - desc + description: Sort direction (ascending or descending). + GetAssetConfig: title: GetAsset Configuration type: object @@ -426,27 +450,23 @@ components: type: object properties: sortBy: - type: object - description: Sorting criteria for assets. - properties: - sortBy: - type: string - enum: - - id - - created - - updated - - recentAction - - none - description: > - The field to sort by. Note: Only `id` is supported for cursor-based pagination - (using `before`/`after`). Sorting by `created`, `updated`, `recentAction`, or `none` - requires page-based pagination (using `page`). - sortDirection: - type: string - enum: - - asc - - desc - description: Sort direction. + type: string + enum: + - id + - created + - updated + - recent_action + - none + description: > + The field to sort by. Note: Only `id` is supported for cursor-based pagination + (using `before`/`after`). Sorting by `created`, `updated`, `recent_action`, or `none` + requires page-based pagination (using `page`). + sortDirection: + type: string + enum: + - asc + - desc + description: Sort direction. limit: type: integer description: The maximum number of assets to retrieve.