diff --git a/.stainless/stainless.yml b/.stainless/stainless.yml index efe3ff90..a5a9cf9d 100644 --- a/.stainless/stainless.yml +++ b/.stainless/stainless.yml @@ -185,9 +185,7 @@ resources: subresources: external_accounts: methods: - list: - endpoint: get /platform/external-accounts - paginated: false + list: get /platform/external-accounts create: post /platform/external-accounts models: aed_account_info: "#/components/schemas/AedAccountInfo" diff --git a/mintlify/openapi.yaml b/mintlify/openapi.yaml index f210518c..f7061081 100644 --- a/mintlify/openapi.yaml +++ b/mintlify/openapi.yaml @@ -1100,13 +1100,28 @@ paths: required: false schema: type: string + - name: limit + in: query + description: Maximum number of results to return (default 20, max 100) + required: false + schema: + type: integer + minimum: 1 + maximum: 100 + default: 20 + - name: cursor + in: query + description: Cursor for pagination (returned from previous request) + required: false + schema: + type: string responses: '200': description: Successful operation content: application/json: schema: - $ref: '#/components/schemas/PlatformExternalAccountListResponse' + $ref: '#/components/schemas/ExternalAccountListResponse' '400': description: Bad request - Invalid parameters content: @@ -11803,16 +11818,6 @@ components: example: SOLANA_MAINNET accountInfo: $ref: '#/components/schemas/ExternalAccountCreateInfoOneOf' - PlatformExternalAccountListResponse: - type: object - required: - - data - properties: - data: - type: array - description: List of external accounts matching the filter criteria - items: - $ref: '#/components/schemas/ExternalAccount' PlatformExternalAccountCreateRequest: type: object required: diff --git a/openapi.yaml b/openapi.yaml index f210518c..f7061081 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1100,13 +1100,28 @@ paths: required: false schema: type: string + - name: limit + in: query + description: Maximum number of results to return (default 20, max 100) + required: false + schema: + type: integer + minimum: 1 + maximum: 100 + default: 20 + - name: cursor + in: query + description: Cursor for pagination (returned from previous request) + required: false + schema: + type: string responses: '200': description: Successful operation content: application/json: schema: - $ref: '#/components/schemas/PlatformExternalAccountListResponse' + $ref: '#/components/schemas/ExternalAccountListResponse' '400': description: Bad request - Invalid parameters content: @@ -11803,16 +11818,6 @@ components: example: SOLANA_MAINNET accountInfo: $ref: '#/components/schemas/ExternalAccountCreateInfoOneOf' - PlatformExternalAccountListResponse: - type: object - required: - - data - properties: - data: - type: array - description: List of external accounts matching the filter criteria - items: - $ref: '#/components/schemas/ExternalAccount' PlatformExternalAccountCreateRequest: type: object required: diff --git a/openapi/components/schemas/external_accounts/PlatformExternalAccountListResponse.yaml b/openapi/components/schemas/external_accounts/PlatformExternalAccountListResponse.yaml deleted file mode 100644 index a86fb180..00000000 --- a/openapi/components/schemas/external_accounts/PlatformExternalAccountListResponse.yaml +++ /dev/null @@ -1,9 +0,0 @@ -type: object -required: - - data -properties: - data: - type: array - description: List of external accounts matching the filter criteria - items: - $ref: ./ExternalAccount.yaml diff --git a/openapi/paths/platform/platform_external_accounts.yaml b/openapi/paths/platform/platform_external_accounts.yaml index 3cd832c4..0804db00 100644 --- a/openapi/paths/platform/platform_external_accounts.yaml +++ b/openapi/paths/platform/platform_external_accounts.yaml @@ -16,13 +16,28 @@ get: required: false schema: type: string + - name: limit + in: query + description: Maximum number of results to return (default 20, max 100) + required: false + schema: + type: integer + minimum: 1 + maximum: 100 + default: 20 + - name: cursor + in: query + description: Cursor for pagination (returned from previous request) + required: false + schema: + type: string responses: '200': description: Successful operation content: application/json: schema: - $ref: ../../components/schemas/external_accounts/PlatformExternalAccountListResponse.yaml + $ref: ../../components/schemas/external_accounts/ExternalAccountListResponse.yaml '400': description: Bad request - Invalid parameters content: