@compass-labs/api-sdk 2.2.70-rc.0 → 2.2.70-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -3
- package/codeSamples_typescript.yaml +18 -0
- package/dist/commonjs/funcs/onrampOnrampCreate.d.ts +38 -0
- package/dist/commonjs/funcs/onrampOnrampCreate.d.ts.map +1 -0
- package/dist/commonjs/funcs/onrampOnrampCreate.js +139 -0
- package/dist/commonjs/funcs/onrampOnrampCreate.js.map +1 -0
- package/dist/commonjs/funcs/onrampOnrampQuote.d.ts +27 -0
- package/dist/commonjs/funcs/onrampOnrampQuote.d.ts.map +1 -0
- package/dist/commonjs/funcs/onrampOnrampQuote.js +128 -0
- package/dist/commonjs/funcs/onrampOnrampQuote.js.map +1 -0
- package/dist/commonjs/funcs/onrampOnrampStatus.d.ts +31 -0
- package/dist/commonjs/funcs/onrampOnrampStatus.d.ts.map +1 -0
- package/dist/commonjs/funcs/onrampOnrampStatus.js +135 -0
- package/dist/commonjs/funcs/onrampOnrampStatus.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/index.d.ts +6 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +6 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/onrampcreate.d.ts +59 -0
- package/dist/commonjs/models/components/onrampcreate.d.ts.map +1 -0
- package/dist/commonjs/models/components/onrampcreate.js +75 -0
- package/dist/commonjs/models/components/onrampcreate.js.map +1 -0
- package/dist/commonjs/models/components/onrampcreaterequest.d.ts +40 -0
- package/dist/commonjs/models/components/onrampcreaterequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/onrampcreaterequest.js +60 -0
- package/dist/commonjs/models/components/onrampcreaterequest.js.map +1 -0
- package/dist/commonjs/models/components/onrampfees.d.ts +29 -0
- package/dist/commonjs/models/components/onrampfees.d.ts.map +1 -0
- package/dist/commonjs/models/components/onrampfees.js +59 -0
- package/dist/commonjs/models/components/onrampfees.js.map +1 -0
- package/dist/commonjs/models/components/onrampquote.d.ts +58 -0
- package/dist/commonjs/models/components/onrampquote.d.ts.map +1 -0
- package/dist/commonjs/models/components/onrampquote.js +73 -0
- package/dist/commonjs/models/components/onrampquote.js.map +1 -0
- package/dist/commonjs/models/components/onrampquoterequest.d.ts +34 -0
- package/dist/commonjs/models/components/onrampquoterequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/onrampquoterequest.js +58 -0
- package/dist/commonjs/models/components/onrampquoterequest.js.map +1 -0
- package/dist/commonjs/models/components/onrampstatus.d.ts +57 -0
- package/dist/commonjs/models/components/onrampstatus.d.ts.map +1 -0
- package/dist/commonjs/models/components/onrampstatus.js +75 -0
- package/dist/commonjs/models/components/onrampstatus.js.map +1 -0
- package/dist/commonjs/models/components/orderstatus.d.ts +4 -4
- package/dist/commonjs/models/components/orderstatus.d.ts.map +1 -1
- package/dist/commonjs/models/components/orderstatus.js +4 -5
- package/dist/commonjs/models/components/orderstatus.js.map +1 -1
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/onramperrorresponse.d.ts +44 -0
- package/dist/commonjs/models/errors/onramperrorresponse.d.ts.map +1 -0
- package/dist/commonjs/models/errors/onramperrorresponse.js +75 -0
- package/dist/commonjs/models/errors/onramperrorresponse.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/v2onrampstatus.d.ts +15 -0
- package/dist/commonjs/models/operations/v2onrampstatus.d.ts.map +1 -0
- package/dist/commonjs/models/operations/v2onrampstatus.js +54 -0
- package/dist/commonjs/models/operations/v2onrampstatus.js.map +1 -0
- package/dist/commonjs/sdk/onramp.d.ts +68 -0
- package/dist/commonjs/sdk/onramp.d.ts.map +1 -0
- package/dist/commonjs/sdk/onramp.js +83 -0
- package/dist/commonjs/sdk/onramp.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/onrampOnrampCreate.d.ts +38 -0
- package/dist/esm/funcs/onrampOnrampCreate.d.ts.map +1 -0
- package/dist/esm/funcs/onrampOnrampCreate.js +103 -0
- package/dist/esm/funcs/onrampOnrampCreate.js.map +1 -0
- package/dist/esm/funcs/onrampOnrampQuote.d.ts +27 -0
- package/dist/esm/funcs/onrampOnrampQuote.d.ts.map +1 -0
- package/dist/esm/funcs/onrampOnrampQuote.js +92 -0
- package/dist/esm/funcs/onrampOnrampQuote.js.map +1 -0
- package/dist/esm/funcs/onrampOnrampStatus.d.ts +31 -0
- package/dist/esm/funcs/onrampOnrampStatus.d.ts.map +1 -0
- package/dist/esm/funcs/onrampOnrampStatus.js +99 -0
- package/dist/esm/funcs/onrampOnrampStatus.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/index.d.ts +6 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +6 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/onrampcreate.d.ts +59 -0
- package/dist/esm/models/components/onrampcreate.d.ts.map +1 -0
- package/dist/esm/models/components/onrampcreate.js +38 -0
- package/dist/esm/models/components/onrampcreate.js.map +1 -0
- package/dist/esm/models/components/onrampcreaterequest.d.ts +40 -0
- package/dist/esm/models/components/onrampcreaterequest.d.ts.map +1 -0
- package/dist/esm/models/components/onrampcreaterequest.js +23 -0
- package/dist/esm/models/components/onrampcreaterequest.js.map +1 -0
- package/dist/esm/models/components/onrampfees.d.ts +29 -0
- package/dist/esm/models/components/onrampfees.d.ts.map +1 -0
- package/dist/esm/models/components/onrampfees.js +22 -0
- package/dist/esm/models/components/onrampfees.js.map +1 -0
- package/dist/esm/models/components/onrampquote.d.ts +58 -0
- package/dist/esm/models/components/onrampquote.d.ts.map +1 -0
- package/dist/esm/models/components/onrampquote.js +36 -0
- package/dist/esm/models/components/onrampquote.js.map +1 -0
- package/dist/esm/models/components/onrampquoterequest.d.ts +34 -0
- package/dist/esm/models/components/onrampquoterequest.d.ts.map +1 -0
- package/dist/esm/models/components/onrampquoterequest.js +21 -0
- package/dist/esm/models/components/onrampquoterequest.js.map +1 -0
- package/dist/esm/models/components/onrampstatus.d.ts +57 -0
- package/dist/esm/models/components/onrampstatus.d.ts.map +1 -0
- package/dist/esm/models/components/onrampstatus.js +38 -0
- package/dist/esm/models/components/onrampstatus.js.map +1 -0
- package/dist/esm/models/components/orderstatus.d.ts +4 -4
- package/dist/esm/models/components/orderstatus.d.ts.map +1 -1
- package/dist/esm/models/components/orderstatus.js +3 -4
- package/dist/esm/models/components/orderstatus.js.map +1 -1
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/onramperrorresponse.d.ts +44 -0
- package/dist/esm/models/errors/onramperrorresponse.d.ts.map +1 -0
- package/dist/esm/models/errors/onramperrorresponse.js +38 -0
- package/dist/esm/models/errors/onramperrorresponse.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/v2onrampstatus.d.ts +15 -0
- package/dist/esm/models/operations/v2onrampstatus.d.ts.map +1 -0
- package/dist/esm/models/operations/v2onrampstatus.js +17 -0
- package/dist/esm/models/operations/v2onrampstatus.js.map +1 -0
- package/dist/esm/sdk/onramp.d.ts +68 -0
- package/dist/esm/sdk/onramp.d.ts.map +1 -0
- package/dist/esm/sdk/onramp.js +79 -0
- package/dist/esm/sdk/onramp.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/docs/models/components/onrampcreate.md +43 -0
- package/docs/models/components/onrampcreaterequest.md +29 -0
- package/docs/models/components/onrampcreatestatus.md +17 -0
- package/docs/models/components/onrampfees.md +26 -0
- package/docs/models/components/onrampquote.md +36 -0
- package/docs/models/components/onrampquoterequest.md +27 -0
- package/docs/models/components/onrampstatus.md +28 -0
- package/docs/models/components/onrampstatusstatus.md +17 -0
- package/docs/models/components/orderstatus.md +1 -1
- package/docs/models/components/{status.md → orderstatusstatus.md} +3 -3
- package/docs/models/errors/onramperrorresponse.md +21 -0
- package/docs/models/operations/v2onrampstatusrequest.md +17 -0
- package/docs/sdks/onramp/README.md +283 -0
- package/openapi_prepped_for_speakeasy.json +539 -0
- package/package.json +1 -1
- package/src/funcs/onrampOnrampCreate.ts +192 -0
- package/src/funcs/onrampOnrampQuote.ts +181 -0
- package/src/funcs/onrampOnrampStatus.ts +189 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +6 -0
- package/src/models/components/onrampcreate.ts +97 -0
- package/src/models/components/onrampcreaterequest.ts +70 -0
- package/src/models/components/onrampfees.ts +59 -0
- package/src/models/components/onrampquote.ts +101 -0
- package/src/models/components/onrampquoterequest.ts +62 -0
- package/src/models/components/onrampstatus.ts +96 -0
- package/src/models/components/orderstatus.ts +7 -6
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/onramperrorresponse.ts +75 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/v2onrampstatus.ts +39 -0
- package/src/sdk/onramp.ts +105 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -8130,6 +8130,218 @@
|
|
|
8130
8130
|
},
|
|
8131
8131
|
"x-speakeasy-name-override": "tokenized_assets_transact_sell"
|
|
8132
8132
|
}
|
|
8133
|
+
},
|
|
8134
|
+
"/v2/onramp/quote": {
|
|
8135
|
+
"post": {
|
|
8136
|
+
"tags": [
|
|
8137
|
+
"Onramp"
|
|
8138
|
+
],
|
|
8139
|
+
"summary": "Get a fiat on-ramp quote (card -> USDC on Ethereum)",
|
|
8140
|
+
"description": "Get an indicative quote for buying USDC on Ethereum with a card.\n\nReturns the estimated USDC the user will receive for a given fiat amount,\nthe exchange rate, fee breakdown (`business_fees` is `0`), and the provider\nmin/max limits. The output is always **USDC on Ethereum** delivered to the\n`destination_address` \u2014 this is a non-custodial on-ramp, so Compass never\nholds the funds.\n\nThis quote is indicative and may expire (`expires_at`). To actually start a\npayment, call `POST /v2/onramp/create`.",
|
|
8141
|
+
"operationId": "v2_onramp_quote",
|
|
8142
|
+
"requestBody": {
|
|
8143
|
+
"content": {
|
|
8144
|
+
"application/json": {
|
|
8145
|
+
"schema": {
|
|
8146
|
+
"$ref": "#/components/schemas/OnrampQuoteRequest"
|
|
8147
|
+
}
|
|
8148
|
+
}
|
|
8149
|
+
},
|
|
8150
|
+
"required": true
|
|
8151
|
+
},
|
|
8152
|
+
"responses": {
|
|
8153
|
+
"200": {
|
|
8154
|
+
"description": "Successful Response",
|
|
8155
|
+
"content": {
|
|
8156
|
+
"application/json": {
|
|
8157
|
+
"schema": {
|
|
8158
|
+
"$ref": "#/components/schemas/OnrampQuote"
|
|
8159
|
+
}
|
|
8160
|
+
}
|
|
8161
|
+
}
|
|
8162
|
+
},
|
|
8163
|
+
"400": {
|
|
8164
|
+
"description": "`INVALID_ONRAMP_REQUEST` \u2014 bad fiat amount or unsupported currency.",
|
|
8165
|
+
"content": {
|
|
8166
|
+
"application/json": {
|
|
8167
|
+
"schema": {
|
|
8168
|
+
"$ref": "#/components/schemas/OnrampErrorResponse"
|
|
8169
|
+
}
|
|
8170
|
+
}
|
|
8171
|
+
}
|
|
8172
|
+
},
|
|
8173
|
+
"422": {
|
|
8174
|
+
"description": "`UNSUPPORTED_ONRAMP_OUTPUT` \u2014 delivery is limited to USDC on Ethereum.",
|
|
8175
|
+
"content": {
|
|
8176
|
+
"application/json": {
|
|
8177
|
+
"schema": {
|
|
8178
|
+
"$ref": "#/components/schemas/OnrampErrorResponse"
|
|
8179
|
+
}
|
|
8180
|
+
}
|
|
8181
|
+
}
|
|
8182
|
+
},
|
|
8183
|
+
"502": {
|
|
8184
|
+
"description": "`HALLIDAY_API_UNAVAILABLE` \u2014 the on-ramp provider is unavailable.",
|
|
8185
|
+
"content": {
|
|
8186
|
+
"application/json": {
|
|
8187
|
+
"schema": {
|
|
8188
|
+
"$ref": "#/components/schemas/OnrampErrorResponse"
|
|
8189
|
+
}
|
|
8190
|
+
}
|
|
8191
|
+
}
|
|
8192
|
+
}
|
|
8193
|
+
},
|
|
8194
|
+
"x-speakeasy-name-override": "onramp_quote"
|
|
8195
|
+
}
|
|
8196
|
+
},
|
|
8197
|
+
"/v2/onramp/create": {
|
|
8198
|
+
"post": {
|
|
8199
|
+
"tags": [
|
|
8200
|
+
"Onramp"
|
|
8201
|
+
],
|
|
8202
|
+
"summary": "Create a fiat on-ramp payment + get the checkout link",
|
|
8203
|
+
"description": "Create a fiat on-ramp payment and return the browser-checkout handoff.\n\nA fiat card + identity-verification flow can only render in a browser, so\nthis endpoint returns a **`checkout_url`** (a Compass-hosted page) together\nwith `payment_id`, the one-time-wallet `deposit_address`, an initial\n`status`, and a `user_instructions` string.\n\n**How to drive this (CLI / MCP agent / UI):**\n\n1. **Present `checkout_url` to the user and open it in a browser.** It\n renders the card payment + identity verification and delivers USDC on\n Ethereum to the destination wallet. (An MCP agent cannot open a browser\n itself \u2014 show the link and ask the user to open it.)\n2. **Poll `GET /v2/onramp/status?payment_id=...`** until `status` becomes\n `delivered` (or `failed`). `pending` = awaiting payment, `processing` =\n payment received and bridging/swapping to USDC.\n3. Once `delivered`, the USDC is in the user's own wallet \u2014 continue with\n the tokenized buy.\n\nFunds are never held by Compass: the `deposit_address` is a one-time wallet\nowned solely by the user's wallet.",
|
|
8204
|
+
"operationId": "v2_onramp_create",
|
|
8205
|
+
"requestBody": {
|
|
8206
|
+
"content": {
|
|
8207
|
+
"application/json": {
|
|
8208
|
+
"schema": {
|
|
8209
|
+
"$ref": "#/components/schemas/OnrampCreateRequest"
|
|
8210
|
+
}
|
|
8211
|
+
}
|
|
8212
|
+
},
|
|
8213
|
+
"required": true
|
|
8214
|
+
},
|
|
8215
|
+
"responses": {
|
|
8216
|
+
"200": {
|
|
8217
|
+
"description": "Successful Response",
|
|
8218
|
+
"content": {
|
|
8219
|
+
"application/json": {
|
|
8220
|
+
"schema": {
|
|
8221
|
+
"$ref": "#/components/schemas/OnrampCreate"
|
|
8222
|
+
}
|
|
8223
|
+
}
|
|
8224
|
+
}
|
|
8225
|
+
},
|
|
8226
|
+
"400": {
|
|
8227
|
+
"description": "`INVALID_ONRAMP_REQUEST` \u2014 bad fiat amount or unsupported currency.",
|
|
8228
|
+
"content": {
|
|
8229
|
+
"application/json": {
|
|
8230
|
+
"schema": {
|
|
8231
|
+
"$ref": "#/components/schemas/OnrampErrorResponse"
|
|
8232
|
+
}
|
|
8233
|
+
}
|
|
8234
|
+
}
|
|
8235
|
+
},
|
|
8236
|
+
"402": {
|
|
8237
|
+
"description": "`KYC_REQUIRED` \u2014 identity verification is required; complete it in the hosted checkout (`checkout_url`).",
|
|
8238
|
+
"content": {
|
|
8239
|
+
"application/json": {
|
|
8240
|
+
"schema": {
|
|
8241
|
+
"$ref": "#/components/schemas/OnrampErrorResponse"
|
|
8242
|
+
}
|
|
8243
|
+
}
|
|
8244
|
+
}
|
|
8245
|
+
},
|
|
8246
|
+
"410": {
|
|
8247
|
+
"description": "`QUOTE_EXPIRED` \u2014 the quote is stale; re-quote and retry.",
|
|
8248
|
+
"content": {
|
|
8249
|
+
"application/json": {
|
|
8250
|
+
"schema": {
|
|
8251
|
+
"$ref": "#/components/schemas/OnrampErrorResponse"
|
|
8252
|
+
}
|
|
8253
|
+
}
|
|
8254
|
+
}
|
|
8255
|
+
},
|
|
8256
|
+
"422": {
|
|
8257
|
+
"description": "`UNSUPPORTED_ONRAMP_OUTPUT` \u2014 delivery is limited to USDC on Ethereum.",
|
|
8258
|
+
"content": {
|
|
8259
|
+
"application/json": {
|
|
8260
|
+
"schema": {
|
|
8261
|
+
"$ref": "#/components/schemas/OnrampErrorResponse"
|
|
8262
|
+
}
|
|
8263
|
+
}
|
|
8264
|
+
}
|
|
8265
|
+
},
|
|
8266
|
+
"502": {
|
|
8267
|
+
"description": "`HALLIDAY_API_UNAVAILABLE` \u2014 the on-ramp provider is unavailable.",
|
|
8268
|
+
"content": {
|
|
8269
|
+
"application/json": {
|
|
8270
|
+
"schema": {
|
|
8271
|
+
"$ref": "#/components/schemas/OnrampErrorResponse"
|
|
8272
|
+
}
|
|
8273
|
+
}
|
|
8274
|
+
}
|
|
8275
|
+
}
|
|
8276
|
+
},
|
|
8277
|
+
"x-speakeasy-name-override": "onramp_create"
|
|
8278
|
+
}
|
|
8279
|
+
},
|
|
8280
|
+
"/v2/onramp/status": {
|
|
8281
|
+
"get": {
|
|
8282
|
+
"tags": [
|
|
8283
|
+
"Onramp"
|
|
8284
|
+
],
|
|
8285
|
+
"summary": "Get the status of a fiat on-ramp payment",
|
|
8286
|
+
"description": "Get the current status of a fiat on-ramp payment.\n\nPoll this after `create` until `status` is `delivered`. The `status` field\nis one of:\n\n- `pending` \u2014 awaiting the card payment in the hosted checkout.\n- `processing` \u2014 payment received; bridging/swapping the proceeds to USDC.\n- `delivered` \u2014 USDC has been delivered to the destination wallet\n (`delivery_tx_hash` and `output_amount_delivered` are populated).\n- `failed` \u2014 the payment failed, expired, or was refunded.\n\nState is re-read live from the on-ramp provider on every call \u2014 Compass\nstores nothing of its own.",
|
|
8287
|
+
"operationId": "v2_onramp_status",
|
|
8288
|
+
"parameters": [
|
|
8289
|
+
{
|
|
8290
|
+
"name": "payment_id",
|
|
8291
|
+
"in": "query",
|
|
8292
|
+
"required": true,
|
|
8293
|
+
"schema": {
|
|
8294
|
+
"type": "string",
|
|
8295
|
+
"description": "The `payment_id` returned by `POST /v2/onramp/create`.",
|
|
8296
|
+
"title": "Payment Id"
|
|
8297
|
+
},
|
|
8298
|
+
"description": "The `payment_id` returned by `POST /v2/onramp/create`."
|
|
8299
|
+
}
|
|
8300
|
+
],
|
|
8301
|
+
"responses": {
|
|
8302
|
+
"200": {
|
|
8303
|
+
"description": "Successful Response",
|
|
8304
|
+
"content": {
|
|
8305
|
+
"application/json": {
|
|
8306
|
+
"schema": {
|
|
8307
|
+
"$ref": "#/components/schemas/OnrampStatus"
|
|
8308
|
+
}
|
|
8309
|
+
}
|
|
8310
|
+
}
|
|
8311
|
+
},
|
|
8312
|
+
"404": {
|
|
8313
|
+
"description": "`PAYMENT_NOT_FOUND` \u2014 no payment matches the provided id.",
|
|
8314
|
+
"content": {
|
|
8315
|
+
"application/json": {
|
|
8316
|
+
"schema": {
|
|
8317
|
+
"$ref": "#/components/schemas/OnrampErrorResponse"
|
|
8318
|
+
}
|
|
8319
|
+
}
|
|
8320
|
+
}
|
|
8321
|
+
},
|
|
8322
|
+
"422": {
|
|
8323
|
+
"description": "`UNSUPPORTED_ONRAMP_OUTPUT` \u2014 delivery is limited to USDC on Ethereum.",
|
|
8324
|
+
"content": {
|
|
8325
|
+
"application/json": {
|
|
8326
|
+
"schema": {
|
|
8327
|
+
"$ref": "#/components/schemas/OnrampErrorResponse"
|
|
8328
|
+
}
|
|
8329
|
+
}
|
|
8330
|
+
}
|
|
8331
|
+
},
|
|
8332
|
+
"502": {
|
|
8333
|
+
"description": "`HALLIDAY_API_UNAVAILABLE` \u2014 the on-ramp provider is unavailable.",
|
|
8334
|
+
"content": {
|
|
8335
|
+
"application/json": {
|
|
8336
|
+
"schema": {
|
|
8337
|
+
"$ref": "#/components/schemas/OnrampErrorResponse"
|
|
8338
|
+
}
|
|
8339
|
+
}
|
|
8340
|
+
}
|
|
8341
|
+
}
|
|
8342
|
+
},
|
|
8343
|
+
"x-speakeasy-name-override": "onramp_status"
|
|
8344
|
+
}
|
|
8133
8345
|
}
|
|
8134
8346
|
},
|
|
8135
8347
|
"components": {
|
|
@@ -18187,6 +18399,333 @@
|
|
|
18187
18399
|
"title": "OneInchSwapParams",
|
|
18188
18400
|
"description": "Parameters for 1inch swap operations."
|
|
18189
18401
|
},
|
|
18402
|
+
"OnrampCreate": {
|
|
18403
|
+
"properties": {
|
|
18404
|
+
"payment_id": {
|
|
18405
|
+
"type": "string",
|
|
18406
|
+
"title": "Payment Id",
|
|
18407
|
+
"description": "Halliday's payment id. Use it to poll status."
|
|
18408
|
+
},
|
|
18409
|
+
"deposit_address": {
|
|
18410
|
+
"type": "string",
|
|
18411
|
+
"title": "Deposit Address",
|
|
18412
|
+
"description": "The one-time-wallet (OTW) deposit address for this payment, owned solely by the user's wallet (non-custodial)."
|
|
18413
|
+
},
|
|
18414
|
+
"checkout_url": {
|
|
18415
|
+
"type": "string",
|
|
18416
|
+
"title": "Checkout Url",
|
|
18417
|
+
"description": "Compass-hosted checkout page to open in a browser. It renders the card + identity-verification flow and delivers USDC to the destination wallet."
|
|
18418
|
+
},
|
|
18419
|
+
"user_instructions": {
|
|
18420
|
+
"type": "string",
|
|
18421
|
+
"title": "User Instructions",
|
|
18422
|
+
"description": "Short, agent-actionable guidance: open the checkout link, pay, then poll status until delivered."
|
|
18423
|
+
},
|
|
18424
|
+
"status": {
|
|
18425
|
+
"type": "string",
|
|
18426
|
+
"enum": [
|
|
18427
|
+
"pending",
|
|
18428
|
+
"processing",
|
|
18429
|
+
"delivered",
|
|
18430
|
+
"failed"
|
|
18431
|
+
],
|
|
18432
|
+
"title": "Status",
|
|
18433
|
+
"description": "Initial lifecycle state (typically `pending`)."
|
|
18434
|
+
},
|
|
18435
|
+
"quote": {
|
|
18436
|
+
"$ref": "#/components/schemas/OnrampQuote",
|
|
18437
|
+
"description": "The resolved quote this payment was created against."
|
|
18438
|
+
}
|
|
18439
|
+
},
|
|
18440
|
+
"type": "object",
|
|
18441
|
+
"required": [
|
|
18442
|
+
"payment_id",
|
|
18443
|
+
"deposit_address",
|
|
18444
|
+
"checkout_url",
|
|
18445
|
+
"user_instructions",
|
|
18446
|
+
"status",
|
|
18447
|
+
"quote"
|
|
18448
|
+
],
|
|
18449
|
+
"title": "OnrampCreate",
|
|
18450
|
+
"description": "A created on-ramp payment, with the browser-handoff affordances.\n\nThe caller (CLI / MCP agent / UI) presents ``checkout_url`` to the user to\npay by card and complete identity verification, then polls\n``GET /v2/onramp/status`` until ``status`` is ``delivered``."
|
|
18451
|
+
},
|
|
18452
|
+
"OnrampCreateRequest": {
|
|
18453
|
+
"properties": {
|
|
18454
|
+
"fiat_amount": {
|
|
18455
|
+
"type": "string",
|
|
18456
|
+
"title": "Fiat Amount",
|
|
18457
|
+
"description": "Amount of fiat to spend, as a decimal string (e.g. `100`)."
|
|
18458
|
+
},
|
|
18459
|
+
"fiat_currency": {
|
|
18460
|
+
"type": "string",
|
|
18461
|
+
"title": "Fiat Currency",
|
|
18462
|
+
"description": "ISO-4217 fiat currency code. Defaults to `USD`.",
|
|
18463
|
+
"example": "USD"
|
|
18464
|
+
},
|
|
18465
|
+
"destination_address": {
|
|
18466
|
+
"type": "string",
|
|
18467
|
+
"title": "Destination Address",
|
|
18468
|
+
"description": "The wallet that will receive the USDC on Ethereum. Funds are delivered here directly \u2014 Compass never holds them."
|
|
18469
|
+
},
|
|
18470
|
+
"quote_id": {
|
|
18471
|
+
"anyOf": [
|
|
18472
|
+
{
|
|
18473
|
+
"type": "string"
|
|
18474
|
+
},
|
|
18475
|
+
{
|
|
18476
|
+
"type": "null"
|
|
18477
|
+
}
|
|
18478
|
+
],
|
|
18479
|
+
"title": "Quote Id",
|
|
18480
|
+
"description": "Optional Halliday quote handle to confirm against. Omit to confirm against a fresh quote derived from the amount and currency."
|
|
18481
|
+
}
|
|
18482
|
+
},
|
|
18483
|
+
"type": "object",
|
|
18484
|
+
"required": [
|
|
18485
|
+
"fiat_amount",
|
|
18486
|
+
"destination_address"
|
|
18487
|
+
],
|
|
18488
|
+
"title": "OnrampCreateRequest",
|
|
18489
|
+
"description": "Create a fiat on-ramp payment delivering USDC on Ethereum.\n\nCarries the same fields as the quote (a quote is implicit \u2014 we do not\npersist a quote handle). ``quote_id`` is optional and only echoed upstream\nif Halliday's ``/payments/confirm`` requires a previously-issued quote\nhandle; omit it to confirm against a fresh quote."
|
|
18490
|
+
},
|
|
18491
|
+
"OnrampErrorResponse": {
|
|
18492
|
+
"properties": {
|
|
18493
|
+
"error": {
|
|
18494
|
+
"type": "string",
|
|
18495
|
+
"title": "Error",
|
|
18496
|
+
"description": "Short human-readable error label (e.g. `Payment not found.`, `On-ramp provider unavailable`, `Identity verification required`)."
|
|
18497
|
+
},
|
|
18498
|
+
"message": {
|
|
18499
|
+
"type": "string",
|
|
18500
|
+
"title": "Message",
|
|
18501
|
+
"description": "Human-readable explanation."
|
|
18502
|
+
}
|
|
18503
|
+
},
|
|
18504
|
+
"type": "object",
|
|
18505
|
+
"required": [
|
|
18506
|
+
"error",
|
|
18507
|
+
"message"
|
|
18508
|
+
],
|
|
18509
|
+
"title": "OnrampErrorResponse",
|
|
18510
|
+
"description": "Standard error envelope returned by every non-2xx on-ramp response.\n\nSurfaced in OpenAPI ``responses`` declarations so SDK consumers can decode\nfailures uniformly without inspecting per-status-code shapes."
|
|
18511
|
+
},
|
|
18512
|
+
"OnrampFees": {
|
|
18513
|
+
"properties": {
|
|
18514
|
+
"provider_fee": {
|
|
18515
|
+
"type": "string",
|
|
18516
|
+
"title": "Provider Fee",
|
|
18517
|
+
"description": "Fee charged by the on-ramp provider, in fiat."
|
|
18518
|
+
},
|
|
18519
|
+
"network_fee": {
|
|
18520
|
+
"type": "string",
|
|
18521
|
+
"title": "Network Fee",
|
|
18522
|
+
"description": "Estimated network/gas fee, in fiat."
|
|
18523
|
+
},
|
|
18524
|
+
"business_fees": {
|
|
18525
|
+
"type": "string",
|
|
18526
|
+
"title": "Business Fees",
|
|
18527
|
+
"description": "Compass business fee, in fiat. Always `0` for now.",
|
|
18528
|
+
"example": "0"
|
|
18529
|
+
}
|
|
18530
|
+
},
|
|
18531
|
+
"type": "object",
|
|
18532
|
+
"required": [
|
|
18533
|
+
"provider_fee",
|
|
18534
|
+
"network_fee"
|
|
18535
|
+
],
|
|
18536
|
+
"title": "OnrampFees",
|
|
18537
|
+
"description": "Fee breakdown for an on-ramp quote.\n\n``business_fees`` is a fixed ``\"0\"`` for now \u2014 monetization is a single\nfuture lever and is intentionally not charged."
|
|
18538
|
+
},
|
|
18539
|
+
"OnrampQuote": {
|
|
18540
|
+
"properties": {
|
|
18541
|
+
"fiat_amount": {
|
|
18542
|
+
"type": "string",
|
|
18543
|
+
"title": "Fiat Amount",
|
|
18544
|
+
"description": "Fiat amount to spend."
|
|
18545
|
+
},
|
|
18546
|
+
"fiat_currency": {
|
|
18547
|
+
"type": "string",
|
|
18548
|
+
"title": "Fiat Currency",
|
|
18549
|
+
"description": "ISO-4217 fiat currency code."
|
|
18550
|
+
},
|
|
18551
|
+
"output_amount": {
|
|
18552
|
+
"type": "string",
|
|
18553
|
+
"title": "Output Amount",
|
|
18554
|
+
"description": "Estimated USDC delivered, human-readable (6-decimal token)."
|
|
18555
|
+
},
|
|
18556
|
+
"output_asset": {
|
|
18557
|
+
"type": "string",
|
|
18558
|
+
"const": "USDC",
|
|
18559
|
+
"title": "Output Asset",
|
|
18560
|
+
"description": "Delivered asset. Always USDC for this on-ramp.",
|
|
18561
|
+
"example": "USDC"
|
|
18562
|
+
},
|
|
18563
|
+
"output_chain": {
|
|
18564
|
+
"type": "string",
|
|
18565
|
+
"const": "ethereum",
|
|
18566
|
+
"title": "Output Chain",
|
|
18567
|
+
"description": "Delivery chain. Always Ethereum for this on-ramp.",
|
|
18568
|
+
"example": "ethereum"
|
|
18569
|
+
},
|
|
18570
|
+
"exchange_rate": {
|
|
18571
|
+
"type": "string",
|
|
18572
|
+
"title": "Exchange Rate",
|
|
18573
|
+
"description": "USDC received per unit of fiat."
|
|
18574
|
+
},
|
|
18575
|
+
"fees": {
|
|
18576
|
+
"$ref": "#/components/schemas/OnrampFees",
|
|
18577
|
+
"description": "Fee breakdown."
|
|
18578
|
+
},
|
|
18579
|
+
"min_amount": {
|
|
18580
|
+
"anyOf": [
|
|
18581
|
+
{
|
|
18582
|
+
"type": "string"
|
|
18583
|
+
},
|
|
18584
|
+
{
|
|
18585
|
+
"type": "null"
|
|
18586
|
+
}
|
|
18587
|
+
],
|
|
18588
|
+
"title": "Min Amount",
|
|
18589
|
+
"description": "Minimum fiat amount accepted, if advertised by the provider."
|
|
18590
|
+
},
|
|
18591
|
+
"max_amount": {
|
|
18592
|
+
"anyOf": [
|
|
18593
|
+
{
|
|
18594
|
+
"type": "string"
|
|
18595
|
+
},
|
|
18596
|
+
{
|
|
18597
|
+
"type": "null"
|
|
18598
|
+
}
|
|
18599
|
+
],
|
|
18600
|
+
"title": "Max Amount",
|
|
18601
|
+
"description": "Maximum fiat amount accepted, if advertised by the provider."
|
|
18602
|
+
},
|
|
18603
|
+
"expires_at": {
|
|
18604
|
+
"anyOf": [
|
|
18605
|
+
{
|
|
18606
|
+
"type": "string"
|
|
18607
|
+
},
|
|
18608
|
+
{
|
|
18609
|
+
"type": "null"
|
|
18610
|
+
}
|
|
18611
|
+
],
|
|
18612
|
+
"title": "Expires At",
|
|
18613
|
+
"description": "ISO-8601 timestamp after which this quote is stale, if any."
|
|
18614
|
+
}
|
|
18615
|
+
},
|
|
18616
|
+
"type": "object",
|
|
18617
|
+
"required": [
|
|
18618
|
+
"fiat_amount",
|
|
18619
|
+
"fiat_currency",
|
|
18620
|
+
"output_amount",
|
|
18621
|
+
"exchange_rate",
|
|
18622
|
+
"fees"
|
|
18623
|
+
],
|
|
18624
|
+
"title": "OnrampQuote",
|
|
18625
|
+
"description": "An indicative fiat -> USDC-on-Ethereum quote."
|
|
18626
|
+
},
|
|
18627
|
+
"OnrampQuoteRequest": {
|
|
18628
|
+
"properties": {
|
|
18629
|
+
"fiat_amount": {
|
|
18630
|
+
"type": "string",
|
|
18631
|
+
"title": "Fiat Amount",
|
|
18632
|
+
"description": "Amount of fiat to spend, as a decimal string (e.g. `100`)."
|
|
18633
|
+
},
|
|
18634
|
+
"fiat_currency": {
|
|
18635
|
+
"type": "string",
|
|
18636
|
+
"title": "Fiat Currency",
|
|
18637
|
+
"description": "ISO-4217 fiat currency code. Defaults to `USD`.",
|
|
18638
|
+
"example": "USD"
|
|
18639
|
+
},
|
|
18640
|
+
"destination_address": {
|
|
18641
|
+
"type": "string",
|
|
18642
|
+
"title": "Destination Address",
|
|
18643
|
+
"description": "The wallet that will receive the USDC on Ethereum. Funds are delivered here directly \u2014 Compass never holds them."
|
|
18644
|
+
}
|
|
18645
|
+
},
|
|
18646
|
+
"type": "object",
|
|
18647
|
+
"required": [
|
|
18648
|
+
"fiat_amount",
|
|
18649
|
+
"destination_address"
|
|
18650
|
+
],
|
|
18651
|
+
"title": "OnrampQuoteRequest",
|
|
18652
|
+
"description": "An indicative fiat -> USDC-on-Ethereum quote request.\n\nThe output asset and chain are fixed to USDC on Ethereum and are not\nuser-supplied \u2014 this product group delivers only USDC to the user's own\nwallet (non-custodial)."
|
|
18653
|
+
},
|
|
18654
|
+
"OnrampStatus": {
|
|
18655
|
+
"properties": {
|
|
18656
|
+
"payment_id": {
|
|
18657
|
+
"type": "string",
|
|
18658
|
+
"title": "Payment Id",
|
|
18659
|
+
"description": "Halliday's payment id, echoed straight through."
|
|
18660
|
+
},
|
|
18661
|
+
"status": {
|
|
18662
|
+
"type": "string",
|
|
18663
|
+
"enum": [
|
|
18664
|
+
"pending",
|
|
18665
|
+
"processing",
|
|
18666
|
+
"delivered",
|
|
18667
|
+
"failed"
|
|
18668
|
+
],
|
|
18669
|
+
"title": "Status",
|
|
18670
|
+
"description": "Lifecycle state: `pending` (awaiting card payment), `processing` (payment received, bridging/swapping to USDC), `delivered` (USDC received in the destination wallet), or `failed`."
|
|
18671
|
+
},
|
|
18672
|
+
"output_amount_delivered": {
|
|
18673
|
+
"anyOf": [
|
|
18674
|
+
{
|
|
18675
|
+
"type": "string"
|
|
18676
|
+
},
|
|
18677
|
+
{
|
|
18678
|
+
"type": "null"
|
|
18679
|
+
}
|
|
18680
|
+
],
|
|
18681
|
+
"title": "Output Amount Delivered",
|
|
18682
|
+
"description": "USDC delivered so far, human-readable. Set once delivered."
|
|
18683
|
+
},
|
|
18684
|
+
"delivery_tx_hash": {
|
|
18685
|
+
"anyOf": [
|
|
18686
|
+
{
|
|
18687
|
+
"type": "string"
|
|
18688
|
+
},
|
|
18689
|
+
{
|
|
18690
|
+
"type": "null"
|
|
18691
|
+
}
|
|
18692
|
+
],
|
|
18693
|
+
"title": "Delivery Tx Hash",
|
|
18694
|
+
"description": "Ethereum tx hash of the USDC delivery, once available."
|
|
18695
|
+
},
|
|
18696
|
+
"destination_address": {
|
|
18697
|
+
"anyOf": [
|
|
18698
|
+
{
|
|
18699
|
+
"type": "string"
|
|
18700
|
+
},
|
|
18701
|
+
{
|
|
18702
|
+
"type": "null"
|
|
18703
|
+
}
|
|
18704
|
+
],
|
|
18705
|
+
"title": "Destination Address",
|
|
18706
|
+
"description": "The wallet the USDC is delivered to."
|
|
18707
|
+
},
|
|
18708
|
+
"updated_at": {
|
|
18709
|
+
"anyOf": [
|
|
18710
|
+
{
|
|
18711
|
+
"type": "string"
|
|
18712
|
+
},
|
|
18713
|
+
{
|
|
18714
|
+
"type": "null"
|
|
18715
|
+
}
|
|
18716
|
+
],
|
|
18717
|
+
"title": "Updated At",
|
|
18718
|
+
"description": "ISO-8601 timestamp of the last status change, if provided."
|
|
18719
|
+
}
|
|
18720
|
+
},
|
|
18721
|
+
"type": "object",
|
|
18722
|
+
"required": [
|
|
18723
|
+
"payment_id",
|
|
18724
|
+
"status"
|
|
18725
|
+
],
|
|
18726
|
+
"title": "OnrampStatus",
|
|
18727
|
+
"description": "Current state of a fiat on-ramp payment.\n\nRe-read on demand from Halliday (the system of record) \u2014 Compass holds no\nstate of its own."
|
|
18728
|
+
},
|
|
18190
18729
|
"OpenPosition": {
|
|
18191
18730
|
"properties": {
|
|
18192
18731
|
"marketId": {
|