Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .stainless/stainless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,13 @@ resources:
methods:
list: get /uma-providers

vasps:
models:
vasp: '#/components/schemas/Vasp'
vasp_list_response: '#/components/schemas/VaspListResponse'
methods:
list: get /vasps

tokens:
models:
permission: '#/components/schemas/Permission'
Expand Down
90 changes: 90 additions & 0 deletions mintlify/openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions mintlify/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1372,6 +1372,12 @@ ul.sidebar-group > li[data-title="Available UMA Providers"] > button::before {
background-image: url('/images/icons/at.svg') !important;
}

/* VASPs - globe */
.sidebar-group > li[data-title="VASPs"] > button::before,
ul.sidebar-group > li[data-title="VASPs"] > button::before {
background-image: url('/images/icons/globe.svg') !important;
}

/* API Tokens - key */
.sidebar-group > li[data-title="API Tokens"] > button::before,
ul.sidebar-group > li[data-title="API Tokens"] > button::before {
Expand Down
90 changes: 90 additions & 0 deletions openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions openapi/components/schemas/vasps/Vasp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
type: object
required:
- vaspName
- url
properties:
vaspName:
type: string
description: >-
Name of this VASP. Pass this value as `vaspName` when declaring a
VASP-hosted counterparty.
example: Kraken
url:
type: string
format: uri
description: The VASP's website.
example: https://www.kraken.com
description: >-
A Virtual Asset Service Provider (VASP) — an exchange or other custodial
platform — recognized for counterparty declarations.
18 changes: 18 additions & 0 deletions openapi/components/schemas/vasps/VaspListResponse.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
type: object
required:
- data
- hasMore
properties:
data:
type: array
description: List of VASPs in the directory
items:
$ref: ./Vasp.yaml
hasMore:
type: boolean
description: Indicates if more results are available beyond this page
nextCursor:
type: string
description: >-
Cursor to retrieve the next page of results (only present if
hasMore is true)
6 changes: 6 additions & 0 deletions openapi/openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 54 additions & 0 deletions openapi/paths/vasps/vasps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
get:
summary: List VASPs
description: |
Retrieve the directory of Virtual Asset Service Providers (exchanges and
other custodial platforms) recognized for counterparty declarations.

The `vaspName` field in each result is the value to pass as `vaspName`
when declaring a VASP-hosted counterparty.
operationId: listVasps
tags:
- VASPs
security:
- BasicAuth: []
parameters:
- 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/vasps/VaspListResponse.yaml
'400':
description: Bad request - Invalid parameters
content:
application/json:
schema:
$ref: ../../components/schemas/errors/Error400.yaml
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: ../../components/schemas/errors/Error401.yaml
'500':
description: Internal service error
content:
application/json:
schema:
$ref: ../../components/schemas/errors/Error500.yaml
Loading