@compass-labs/api-sdk 2.2.104 → 2.2.105-rc.0

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.
Files changed (159) hide show
  1. package/README.md +3 -13
  2. package/codeSamples_typescript.yaml +0 -18
  3. package/dist/commonjs/models/components/index.d.ts +0 -6
  4. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  5. package/dist/commonjs/models/components/index.js +0 -6
  6. package/dist/commonjs/models/components/index.js.map +1 -1
  7. package/dist/commonjs/models/errors/index.d.ts +0 -1
  8. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  9. package/dist/commonjs/models/errors/index.js +0 -1
  10. package/dist/commonjs/models/errors/index.js.map +1 -1
  11. package/dist/commonjs/models/operations/index.d.ts +0 -1
  12. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  13. package/dist/commonjs/models/operations/index.js +0 -1
  14. package/dist/commonjs/models/operations/index.js.map +1 -1
  15. package/dist/commonjs/sdk/sdk.d.ts +0 -3
  16. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  17. package/dist/commonjs/sdk/sdk.js +0 -4
  18. package/dist/commonjs/sdk/sdk.js.map +1 -1
  19. package/dist/esm/models/components/index.d.ts +0 -6
  20. package/dist/esm/models/components/index.d.ts.map +1 -1
  21. package/dist/esm/models/components/index.js +0 -6
  22. package/dist/esm/models/components/index.js.map +1 -1
  23. package/dist/esm/models/errors/index.d.ts +0 -1
  24. package/dist/esm/models/errors/index.d.ts.map +1 -1
  25. package/dist/esm/models/errors/index.js +0 -1
  26. package/dist/esm/models/errors/index.js.map +1 -1
  27. package/dist/esm/models/operations/index.d.ts +0 -1
  28. package/dist/esm/models/operations/index.d.ts.map +1 -1
  29. package/dist/esm/models/operations/index.js +0 -1
  30. package/dist/esm/models/operations/index.js.map +1 -1
  31. package/dist/esm/sdk/sdk.d.ts +0 -3
  32. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  33. package/dist/esm/sdk/sdk.js +0 -4
  34. package/dist/esm/sdk/sdk.js.map +1 -1
  35. package/openapi_prepped_for_speakeasy.json +0 -539
  36. package/package.json +1 -1
  37. package/src/models/components/index.ts +0 -6
  38. package/src/models/errors/index.ts +0 -1
  39. package/src/models/operations/index.ts +0 -1
  40. package/src/sdk/sdk.ts +0 -6
  41. package/dist/commonjs/funcs/onrampOnrampCreate.d.ts +0 -38
  42. package/dist/commonjs/funcs/onrampOnrampCreate.d.ts.map +0 -1
  43. package/dist/commonjs/funcs/onrampOnrampCreate.js +0 -139
  44. package/dist/commonjs/funcs/onrampOnrampCreate.js.map +0 -1
  45. package/dist/commonjs/funcs/onrampOnrampQuote.d.ts +0 -27
  46. package/dist/commonjs/funcs/onrampOnrampQuote.d.ts.map +0 -1
  47. package/dist/commonjs/funcs/onrampOnrampQuote.js +0 -128
  48. package/dist/commonjs/funcs/onrampOnrampQuote.js.map +0 -1
  49. package/dist/commonjs/funcs/onrampOnrampStatus.d.ts +0 -31
  50. package/dist/commonjs/funcs/onrampOnrampStatus.d.ts.map +0 -1
  51. package/dist/commonjs/funcs/onrampOnrampStatus.js +0 -135
  52. package/dist/commonjs/funcs/onrampOnrampStatus.js.map +0 -1
  53. package/dist/commonjs/models/components/onrampcreate.d.ts +0 -59
  54. package/dist/commonjs/models/components/onrampcreate.d.ts.map +0 -1
  55. package/dist/commonjs/models/components/onrampcreate.js +0 -75
  56. package/dist/commonjs/models/components/onrampcreate.js.map +0 -1
  57. package/dist/commonjs/models/components/onrampcreaterequest.d.ts +0 -40
  58. package/dist/commonjs/models/components/onrampcreaterequest.d.ts.map +0 -1
  59. package/dist/commonjs/models/components/onrampcreaterequest.js +0 -60
  60. package/dist/commonjs/models/components/onrampcreaterequest.js.map +0 -1
  61. package/dist/commonjs/models/components/onrampfees.d.ts +0 -29
  62. package/dist/commonjs/models/components/onrampfees.d.ts.map +0 -1
  63. package/dist/commonjs/models/components/onrampfees.js +0 -59
  64. package/dist/commonjs/models/components/onrampfees.js.map +0 -1
  65. package/dist/commonjs/models/components/onrampquote.d.ts +0 -58
  66. package/dist/commonjs/models/components/onrampquote.d.ts.map +0 -1
  67. package/dist/commonjs/models/components/onrampquote.js +0 -73
  68. package/dist/commonjs/models/components/onrampquote.js.map +0 -1
  69. package/dist/commonjs/models/components/onrampquoterequest.d.ts +0 -34
  70. package/dist/commonjs/models/components/onrampquoterequest.d.ts.map +0 -1
  71. package/dist/commonjs/models/components/onrampquoterequest.js +0 -58
  72. package/dist/commonjs/models/components/onrampquoterequest.js.map +0 -1
  73. package/dist/commonjs/models/components/onrampstatus.d.ts +0 -57
  74. package/dist/commonjs/models/components/onrampstatus.d.ts.map +0 -1
  75. package/dist/commonjs/models/components/onrampstatus.js +0 -75
  76. package/dist/commonjs/models/components/onrampstatus.js.map +0 -1
  77. package/dist/commonjs/models/errors/onramperrorresponse.d.ts +0 -44
  78. package/dist/commonjs/models/errors/onramperrorresponse.d.ts.map +0 -1
  79. package/dist/commonjs/models/errors/onramperrorresponse.js +0 -75
  80. package/dist/commonjs/models/errors/onramperrorresponse.js.map +0 -1
  81. package/dist/commonjs/models/operations/v2onrampstatus.d.ts +0 -15
  82. package/dist/commonjs/models/operations/v2onrampstatus.d.ts.map +0 -1
  83. package/dist/commonjs/models/operations/v2onrampstatus.js +0 -54
  84. package/dist/commonjs/models/operations/v2onrampstatus.js.map +0 -1
  85. package/dist/commonjs/sdk/onramp.d.ts +0 -68
  86. package/dist/commonjs/sdk/onramp.d.ts.map +0 -1
  87. package/dist/commonjs/sdk/onramp.js +0 -83
  88. package/dist/commonjs/sdk/onramp.js.map +0 -1
  89. package/dist/esm/funcs/onrampOnrampCreate.d.ts +0 -38
  90. package/dist/esm/funcs/onrampOnrampCreate.d.ts.map +0 -1
  91. package/dist/esm/funcs/onrampOnrampCreate.js +0 -103
  92. package/dist/esm/funcs/onrampOnrampCreate.js.map +0 -1
  93. package/dist/esm/funcs/onrampOnrampQuote.d.ts +0 -27
  94. package/dist/esm/funcs/onrampOnrampQuote.d.ts.map +0 -1
  95. package/dist/esm/funcs/onrampOnrampQuote.js +0 -92
  96. package/dist/esm/funcs/onrampOnrampQuote.js.map +0 -1
  97. package/dist/esm/funcs/onrampOnrampStatus.d.ts +0 -31
  98. package/dist/esm/funcs/onrampOnrampStatus.d.ts.map +0 -1
  99. package/dist/esm/funcs/onrampOnrampStatus.js +0 -99
  100. package/dist/esm/funcs/onrampOnrampStatus.js.map +0 -1
  101. package/dist/esm/models/components/onrampcreate.d.ts +0 -59
  102. package/dist/esm/models/components/onrampcreate.d.ts.map +0 -1
  103. package/dist/esm/models/components/onrampcreate.js +0 -38
  104. package/dist/esm/models/components/onrampcreate.js.map +0 -1
  105. package/dist/esm/models/components/onrampcreaterequest.d.ts +0 -40
  106. package/dist/esm/models/components/onrampcreaterequest.d.ts.map +0 -1
  107. package/dist/esm/models/components/onrampcreaterequest.js +0 -23
  108. package/dist/esm/models/components/onrampcreaterequest.js.map +0 -1
  109. package/dist/esm/models/components/onrampfees.d.ts +0 -29
  110. package/dist/esm/models/components/onrampfees.d.ts.map +0 -1
  111. package/dist/esm/models/components/onrampfees.js +0 -22
  112. package/dist/esm/models/components/onrampfees.js.map +0 -1
  113. package/dist/esm/models/components/onrampquote.d.ts +0 -58
  114. package/dist/esm/models/components/onrampquote.d.ts.map +0 -1
  115. package/dist/esm/models/components/onrampquote.js +0 -36
  116. package/dist/esm/models/components/onrampquote.js.map +0 -1
  117. package/dist/esm/models/components/onrampquoterequest.d.ts +0 -34
  118. package/dist/esm/models/components/onrampquoterequest.d.ts.map +0 -1
  119. package/dist/esm/models/components/onrampquoterequest.js +0 -21
  120. package/dist/esm/models/components/onrampquoterequest.js.map +0 -1
  121. package/dist/esm/models/components/onrampstatus.d.ts +0 -57
  122. package/dist/esm/models/components/onrampstatus.d.ts.map +0 -1
  123. package/dist/esm/models/components/onrampstatus.js +0 -38
  124. package/dist/esm/models/components/onrampstatus.js.map +0 -1
  125. package/dist/esm/models/errors/onramperrorresponse.d.ts +0 -44
  126. package/dist/esm/models/errors/onramperrorresponse.d.ts.map +0 -1
  127. package/dist/esm/models/errors/onramperrorresponse.js +0 -38
  128. package/dist/esm/models/errors/onramperrorresponse.js.map +0 -1
  129. package/dist/esm/models/operations/v2onrampstatus.d.ts +0 -15
  130. package/dist/esm/models/operations/v2onrampstatus.d.ts.map +0 -1
  131. package/dist/esm/models/operations/v2onrampstatus.js +0 -17
  132. package/dist/esm/models/operations/v2onrampstatus.js.map +0 -1
  133. package/dist/esm/sdk/onramp.d.ts +0 -68
  134. package/dist/esm/sdk/onramp.d.ts.map +0 -1
  135. package/dist/esm/sdk/onramp.js +0 -79
  136. package/dist/esm/sdk/onramp.js.map +0 -1
  137. package/docs/models/components/onrampcreate.md +0 -43
  138. package/docs/models/components/onrampcreaterequest.md +0 -29
  139. package/docs/models/components/onrampcreatestatus.md +0 -17
  140. package/docs/models/components/onrampfees.md +0 -26
  141. package/docs/models/components/onrampquote.md +0 -36
  142. package/docs/models/components/onrampquoterequest.md +0 -27
  143. package/docs/models/components/onrampstatus.md +0 -28
  144. package/docs/models/components/onrampstatusstatus.md +0 -17
  145. package/docs/models/errors/onramperrorresponse.md +0 -21
  146. package/docs/models/operations/v2onrampstatusrequest.md +0 -17
  147. package/docs/sdks/onramp/README.md +0 -283
  148. package/src/funcs/onrampOnrampCreate.ts +0 -192
  149. package/src/funcs/onrampOnrampQuote.ts +0 -181
  150. package/src/funcs/onrampOnrampStatus.ts +0 -189
  151. package/src/models/components/onrampcreate.ts +0 -97
  152. package/src/models/components/onrampcreaterequest.ts +0 -70
  153. package/src/models/components/onrampfees.ts +0 -59
  154. package/src/models/components/onrampquote.ts +0 -101
  155. package/src/models/components/onrampquoterequest.ts +0 -62
  156. package/src/models/components/onrampstatus.ts +0 -96
  157. package/src/models/errors/onramperrorresponse.ts +0 -75
  158. package/src/models/operations/v2onrampstatus.ts +0 -39
  159. package/src/sdk/onramp.ts +0 -105
@@ -1,139 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.onrampOnrampCreate = onrampOnrampCreate;
40
- const encodings_js_1 = require("../lib/encodings.js");
41
- const http_js_1 = require("../lib/http.js");
42
- const M = __importStar(require("../lib/matchers.js"));
43
- const primitives_js_1 = require("../lib/primitives.js");
44
- const schemas_js_1 = require("../lib/schemas.js");
45
- const security_js_1 = require("../lib/security.js");
46
- const url_js_1 = require("../lib/url.js");
47
- const components = __importStar(require("../models/components/index.js"));
48
- const errors = __importStar(require("../models/errors/index.js"));
49
- const async_js_1 = require("../types/async.js");
50
- /**
51
- * Create a fiat on-ramp payment + get the checkout link
52
- *
53
- * @remarks
54
- * Create a fiat on-ramp payment and return the browser-checkout handoff.
55
- *
56
- * A fiat card + identity-verification flow can only render in a browser, so
57
- * this endpoint returns a **`checkout_url`** (a Compass-hosted page) together
58
- * with `payment_id`, the one-time-wallet `deposit_address`, an initial
59
- * `status`, and a `user_instructions` string.
60
- *
61
- * **How to drive this (CLI / MCP agent / UI):**
62
- *
63
- * 1. **Present `checkout_url` to the user and open it in a browser.** It
64
- * renders the card payment + identity verification and delivers USDC on
65
- * Ethereum to the destination wallet. (An MCP agent cannot open a browser
66
- * itself — show the link and ask the user to open it.)
67
- * 2. **Poll `GET /v2/onramp/status?payment_id=...`** until `status` becomes
68
- * `delivered` (or `failed`). `pending` = awaiting payment, `processing` =
69
- * payment received and bridging/swapping to USDC.
70
- * 3. Once `delivered`, the USDC is in the user's own wallet — continue with
71
- * the tokenized buy.
72
- *
73
- * Funds are never held by Compass: the `deposit_address` is a one-time wallet
74
- * owned solely by the user's wallet.
75
- */
76
- function onrampOnrampCreate(client, request, options) {
77
- return new async_js_1.APIPromise($do(client, request, options));
78
- }
79
- async function $do(client, request, options) {
80
- const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.OnrampCreateRequest$outboundSchema.parse(value), "Input validation failed");
81
- if (!parsed.ok) {
82
- return [parsed, { status: "invalid" }];
83
- }
84
- const payload = parsed.value;
85
- const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
86
- const path = (0, url_js_1.pathToFunc)("/v2/onramp/create")();
87
- const headers = new Headers((0, primitives_js_1.compactMap)({
88
- "Content-Type": "application/json",
89
- Accept: "application/json",
90
- }));
91
- const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKeyAuth);
92
- const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
93
- const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
94
- const context = {
95
- options: client._options,
96
- baseURL: options?.serverURL ?? client._baseURL ?? "",
97
- operationID: "v2_onramp_create",
98
- oAuth2Scopes: null,
99
- resolvedSecurity: requestSecurity,
100
- securitySource: client._options.apiKeyAuth,
101
- retryConfig: options?.retries
102
- || client._options.retryConfig
103
- || { strategy: "none" },
104
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
105
- };
106
- const requestRes = client._createRequest(context, {
107
- security: requestSecurity,
108
- method: "POST",
109
- baseURL: options?.serverURL,
110
- path: path,
111
- headers: headers,
112
- body: body,
113
- userAgent: client._options.userAgent,
114
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
115
- }, options);
116
- if (!requestRes.ok) {
117
- return [requestRes, { status: "invalid" }];
118
- }
119
- const req = requestRes.value;
120
- const doResult = await client._do(req, {
121
- context,
122
- isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
123
- retryConfig: context.retryConfig,
124
- retryCodes: context.retryCodes,
125
- });
126
- if (!doResult.ok) {
127
- return [doResult, { status: "request-error", request: req }];
128
- }
129
- const response = doResult.value;
130
- const responseFields = {
131
- HttpMeta: { Response: response, Request: req },
132
- };
133
- const [result] = await M.match(M.json(200, components.OnrampCreate$inboundSchema), M.jsonErr([400, 402, 410, 422], errors.OnrampErrorResponse$inboundSchema), M.jsonErr(502, errors.OnrampErrorResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
134
- if (!result.ok) {
135
- return [result, { status: "complete", request: req, response }];
136
- }
137
- return [result, { status: "complete", request: req, response }];
138
- }
139
- //# sourceMappingURL=onrampOnrampCreate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onrampOnrampCreate.js","sourceRoot":"","sources":["../../../src/funcs/onrampOnrampCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDH,gDAuBC;AAxED,sDAAiD;AACjD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C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AAC,CAAC;AAClE,CAAC"}
@@ -1,27 +0,0 @@
1
- import { CompassApiSDKCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import * as components from "../models/components/index.js";
4
- import { CompassAPISDKError } from "../models/errors/compassapisdkerror.js";
5
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
6
- import * as errors from "../models/errors/index.js";
7
- import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
8
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
9
- import { APIPromise } from "../types/async.js";
10
- import { Result } from "../types/fp.js";
11
- /**
12
- * Get a fiat on-ramp quote (card -> USDC on Ethereum)
13
- *
14
- * @remarks
15
- * Get an indicative quote for buying USDC on Ethereum with a card.
16
- *
17
- * Returns the estimated USDC the user will receive for a given fiat amount,
18
- * the exchange rate, fee breakdown (`business_fees` is `0`), and the provider
19
- * min/max limits. The output is always **USDC on Ethereum** delivered to the
20
- * `destination_address` — this is a non-custodial on-ramp, so Compass never
21
- * holds the funds.
22
- *
23
- * This quote is indicative and may expire (`expires_at`). To actually start a
24
- * payment, call `POST /v2/onramp/create`.
25
- */
26
- export declare function onrampOnrampQuote(client: CompassApiSDKCore, request: components.OnrampQuoteRequest, options?: RequestOptions): APIPromise<Result<components.OnrampQuote, errors.OnrampErrorResponse | CompassAPISDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
27
- //# sourceMappingURL=onrampOnrampQuote.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onrampOnrampQuote.d.ts","sourceRoot":"","sources":["../../../src/funcs/onrampOnrampQuote.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAM/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,WAAW,EACpB,MAAM,CAAC,mBAAmB,GAC1B,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -1,128 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.onrampOnrampQuote = onrampOnrampQuote;
40
- const encodings_js_1 = require("../lib/encodings.js");
41
- const http_js_1 = require("../lib/http.js");
42
- const M = __importStar(require("../lib/matchers.js"));
43
- const primitives_js_1 = require("../lib/primitives.js");
44
- const schemas_js_1 = require("../lib/schemas.js");
45
- const security_js_1 = require("../lib/security.js");
46
- const url_js_1 = require("../lib/url.js");
47
- const components = __importStar(require("../models/components/index.js"));
48
- const errors = __importStar(require("../models/errors/index.js"));
49
- const async_js_1 = require("../types/async.js");
50
- /**
51
- * Get a fiat on-ramp quote (card -> USDC on Ethereum)
52
- *
53
- * @remarks
54
- * Get an indicative quote for buying USDC on Ethereum with a card.
55
- *
56
- * Returns the estimated USDC the user will receive for a given fiat amount,
57
- * the exchange rate, fee breakdown (`business_fees` is `0`), and the provider
58
- * min/max limits. The output is always **USDC on Ethereum** delivered to the
59
- * `destination_address` — this is a non-custodial on-ramp, so Compass never
60
- * holds the funds.
61
- *
62
- * This quote is indicative and may expire (`expires_at`). To actually start a
63
- * payment, call `POST /v2/onramp/create`.
64
- */
65
- function onrampOnrampQuote(client, request, options) {
66
- return new async_js_1.APIPromise($do(client, request, options));
67
- }
68
- async function $do(client, request, options) {
69
- const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.OnrampQuoteRequest$outboundSchema.parse(value), "Input validation failed");
70
- if (!parsed.ok) {
71
- return [parsed, { status: "invalid" }];
72
- }
73
- const payload = parsed.value;
74
- const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
75
- const path = (0, url_js_1.pathToFunc)("/v2/onramp/quote")();
76
- const headers = new Headers((0, primitives_js_1.compactMap)({
77
- "Content-Type": "application/json",
78
- Accept: "application/json",
79
- }));
80
- const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKeyAuth);
81
- const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
82
- const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
83
- const context = {
84
- options: client._options,
85
- baseURL: options?.serverURL ?? client._baseURL ?? "",
86
- operationID: "v2_onramp_quote",
87
- oAuth2Scopes: null,
88
- resolvedSecurity: requestSecurity,
89
- securitySource: client._options.apiKeyAuth,
90
- retryConfig: options?.retries
91
- || client._options.retryConfig
92
- || { strategy: "none" },
93
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
94
- };
95
- const requestRes = client._createRequest(context, {
96
- security: requestSecurity,
97
- method: "POST",
98
- baseURL: options?.serverURL,
99
- path: path,
100
- headers: headers,
101
- body: body,
102
- userAgent: client._options.userAgent,
103
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
104
- }, options);
105
- if (!requestRes.ok) {
106
- return [requestRes, { status: "invalid" }];
107
- }
108
- const req = requestRes.value;
109
- const doResult = await client._do(req, {
110
- context,
111
- isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
112
- retryConfig: context.retryConfig,
113
- retryCodes: context.retryCodes,
114
- });
115
- if (!doResult.ok) {
116
- return [doResult, { status: "request-error", request: req }];
117
- }
118
- const response = doResult.value;
119
- const responseFields = {
120
- HttpMeta: { Response: response, Request: req },
121
- };
122
- const [result] = await M.match(M.json(200, components.OnrampQuote$inboundSchema), M.jsonErr([400, 422], errors.OnrampErrorResponse$inboundSchema), M.jsonErr(502, errors.OnrampErrorResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
123
- if (!result.ok) {
124
- return [result, { status: "complete", request: req, response }];
125
- }
126
- return [result, { status: "complete", request: req, response }];
127
- }
128
- //# sourceMappingURL=onrampOnrampQuote.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onrampOnrampQuote.js","sourceRoot":"","sources":["../../../src/funcs/onrampOnrampQuote.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCH,8CAuBC;AA7DD,sDAAiD;AACjD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAS5D,kEAAoD;AAGpD,gDAAwD;AAGxD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,iBAAiB,CAC/B,MAAyB,EACzB,OAAsC,EACtC,OAAwB;IAexB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAyB,EACzB,OAAsC,EACtC,OAAwB;IAkBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,iCAAiC,CAAC,KAAK,CAAC,KAAK,CAAC,EACpE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAA,yBAAU,EAAC,MAAM,EAAE,OAAO,EAAE,EAAE,OAAO,EAA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AAC,GAAG,EAAE,MAAM,CAAC,iCAAiC,CAAC,EACxD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -1,31 +0,0 @@
1
- import { CompassApiSDKCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import * as components from "../models/components/index.js";
4
- import { CompassAPISDKError } from "../models/errors/compassapisdkerror.js";
5
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
6
- import * as errors from "../models/errors/index.js";
7
- import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
8
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
9
- import * as operations from "../models/operations/index.js";
10
- import { APIPromise } from "../types/async.js";
11
- import { Result } from "../types/fp.js";
12
- /**
13
- * Get the status of a fiat on-ramp payment
14
- *
15
- * @remarks
16
- * Get the current status of a fiat on-ramp payment.
17
- *
18
- * Poll this after `create` until `status` is `delivered`. The `status` field
19
- * is one of:
20
- *
21
- * - `pending` — awaiting the card payment in the hosted checkout.
22
- * - `processing` — payment received; bridging/swapping the proceeds to USDC.
23
- * - `delivered` — USDC has been delivered to the destination wallet
24
- * (`delivery_tx_hash` and `output_amount_delivered` are populated).
25
- * - `failed` — the payment failed, expired, or was refunded.
26
- *
27
- * State is re-read live from the on-ramp provider on every call — Compass
28
- * stores nothing of its own.
29
- */
30
- export declare function onrampOnrampStatus(client: CompassApiSDKCore, request: operations.V2OnrampStatusRequest, options?: RequestOptions): APIPromise<Result<components.OnrampStatus, errors.OnrampErrorResponse | CompassAPISDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
31
- //# sourceMappingURL=onrampOnrampStatus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onrampOnrampStatus.d.ts","sourceRoot":"","sources":["../../../src/funcs/onrampOnrampStatus.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAM/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,YAAY,EACrB,MAAM,CAAC,mBAAmB,GAC1B,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -1,135 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.onrampOnrampStatus = onrampOnrampStatus;
40
- const encodings_js_1 = require("../lib/encodings.js");
41
- const http_js_1 = require("../lib/http.js");
42
- const M = __importStar(require("../lib/matchers.js"));
43
- const primitives_js_1 = require("../lib/primitives.js");
44
- const schemas_js_1 = require("../lib/schemas.js");
45
- const security_js_1 = require("../lib/security.js");
46
- const url_js_1 = require("../lib/url.js");
47
- const components = __importStar(require("../models/components/index.js"));
48
- const errors = __importStar(require("../models/errors/index.js"));
49
- const operations = __importStar(require("../models/operations/index.js"));
50
- const async_js_1 = require("../types/async.js");
51
- /**
52
- * Get the status of a fiat on-ramp payment
53
- *
54
- * @remarks
55
- * Get the current status of a fiat on-ramp payment.
56
- *
57
- * Poll this after `create` until `status` is `delivered`. The `status` field
58
- * is one of:
59
- *
60
- * - `pending` — awaiting the card payment in the hosted checkout.
61
- * - `processing` — payment received; bridging/swapping the proceeds to USDC.
62
- * - `delivered` — USDC has been delivered to the destination wallet
63
- * (`delivery_tx_hash` and `output_amount_delivered` are populated).
64
- * - `failed` — the payment failed, expired, or was refunded.
65
- *
66
- * State is re-read live from the on-ramp provider on every call — Compass
67
- * stores nothing of its own.
68
- */
69
- function onrampOnrampStatus(client, request, options) {
70
- return new async_js_1.APIPromise($do(client, request, options));
71
- }
72
- async function $do(client, request, options) {
73
- const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.V2OnrampStatusRequest$outboundSchema.parse(value), "Input validation failed");
74
- if (!parsed.ok) {
75
- return [parsed, { status: "invalid" }];
76
- }
77
- const payload = parsed.value;
78
- const body = null;
79
- const path = (0, url_js_1.pathToFunc)("/v2/onramp/status")();
80
- const query = (0, encodings_js_1.encodeFormQuery)({
81
- "payment_id": payload.payment_id,
82
- });
83
- const headers = new Headers((0, primitives_js_1.compactMap)({
84
- Accept: "application/json",
85
- }));
86
- const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKeyAuth);
87
- const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
88
- const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
89
- const context = {
90
- options: client._options,
91
- baseURL: options?.serverURL ?? client._baseURL ?? "",
92
- operationID: "v2_onramp_status",
93
- oAuth2Scopes: null,
94
- resolvedSecurity: requestSecurity,
95
- securitySource: client._options.apiKeyAuth,
96
- retryConfig: options?.retries
97
- || client._options.retryConfig
98
- || { strategy: "none" },
99
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
100
- };
101
- const requestRes = client._createRequest(context, {
102
- security: requestSecurity,
103
- method: "GET",
104
- baseURL: options?.serverURL,
105
- path: path,
106
- headers: headers,
107
- query: query,
108
- body: body,
109
- userAgent: client._options.userAgent,
110
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
111
- }, options);
112
- if (!requestRes.ok) {
113
- return [requestRes, { status: "invalid" }];
114
- }
115
- const req = requestRes.value;
116
- const doResult = await client._do(req, {
117
- context,
118
- isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
119
- retryConfig: context.retryConfig,
120
- retryCodes: context.retryCodes,
121
- });
122
- if (!doResult.ok) {
123
- return [doResult, { status: "request-error", request: req }];
124
- }
125
- const response = doResult.value;
126
- const responseFields = {
127
- HttpMeta: { Response: response, Request: req },
128
- };
129
- const [result] = await M.match(M.json(200, components.OnrampStatus$inboundSchema), M.jsonErr([404, 422], errors.OnrampErrorResponse$inboundSchema), M.jsonErr(502, errors.OnrampErrorResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
130
- if (!result.ok) {
131
- return [result, { status: "complete", request: req, response }];
132
- }
133
- return [result, { status: "complete", request: req, response }];
134
- }
135
- //# sourceMappingURL=onrampOnrampStatus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onrampOnrampStatus.js","sourceRoot":"","sources":["../../../src/funcs/onrampOnrampStatus.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CH,gDAuBC;AAjED,sDAAsD;AACtD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAS5D,kEAAoD;AAGpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;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import { ClosedEnum } from "../../types/enums.js";
3
- import { Result as SafeParseResult } from "../../types/fp.js";
4
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- import { OnrampQuote } from "./onrampquote.js";
6
- /**
7
- * Initial lifecycle state (typically `pending`).
8
- */
9
- export declare const OnrampCreateStatus: {
10
- readonly Pending: "pending";
11
- readonly Processing: "processing";
12
- readonly Delivered: "delivered";
13
- readonly Failed: "failed";
14
- };
15
- /**
16
- * Initial lifecycle state (typically `pending`).
17
- */
18
- export type OnrampCreateStatus = ClosedEnum<typeof OnrampCreateStatus>;
19
- /**
20
- * A created on-ramp payment, with the browser-handoff affordances.
21
- *
22
- * @remarks
23
- *
24
- * The caller (CLI / MCP agent / UI) presents ``checkout_url`` to the user to
25
- * pay by card and complete identity verification, then polls
26
- * ``GET /v2/onramp/status`` until ``status`` is ``delivered``.
27
- */
28
- export type OnrampCreate = {
29
- /**
30
- * Halliday's payment id. Use it to poll status.
31
- */
32
- paymentId: string;
33
- /**
34
- * The one-time-wallet (OTW) deposit address for this payment, owned solely by the user's wallet (non-custodial).
35
- */
36
- depositAddress: string;
37
- /**
38
- * Compass-hosted checkout page to open in a browser. It renders the card + identity-verification flow and delivers USDC to the destination wallet.
39
- */
40
- checkoutUrl: string;
41
- /**
42
- * Short, agent-actionable guidance: open the checkout link, pay, then poll status until delivered.
43
- */
44
- userInstructions: string;
45
- /**
46
- * Initial lifecycle state (typically `pending`).
47
- */
48
- status: OnrampCreateStatus;
49
- /**
50
- * An indicative fiat -> USDC-on-Ethereum quote.
51
- */
52
- quote: OnrampQuote;
53
- };
54
- /** @internal */
55
- export declare const OnrampCreateStatus$inboundSchema: z.ZodNativeEnum<typeof OnrampCreateStatus>;
56
- /** @internal */
57
- export declare const OnrampCreate$inboundSchema: z.ZodType<OnrampCreate, z.ZodTypeDef, unknown>;
58
- export declare function onrampCreateFromJSON(jsonString: string): SafeParseResult<OnrampCreate, SDKValidationError>;
59
- //# sourceMappingURL=onrampcreate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onrampcreate.d.ts","sourceRoot":"","sources":["../../../../src/models/components/onrampcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,WAAW,EAA6B,MAAM,kBAAkB,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;CAKrB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEvE;;;;;;;;GAQG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,MAAM,EAAE,kBAAkB,CAAC;IAC3B;;OAEG;IACH,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,aAAa,CAC5D,OAAO,kBAAkB,CACS,CAAC;AAErC,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,YAAY,EACZ,CAAC,CAAC,UAAU,EACZ,OAAO,CAeP,CAAC;AAEH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAMnD"}
@@ -1,75 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.OnrampCreate$inboundSchema = exports.OnrampCreateStatus$inboundSchema = exports.OnrampCreateStatus = void 0;
40
- exports.onrampCreateFromJSON = onrampCreateFromJSON;
41
- const z = __importStar(require("zod/v3"));
42
- const primitives_js_1 = require("../../lib/primitives.js");
43
- const schemas_js_1 = require("../../lib/schemas.js");
44
- const onrampquote_js_1 = require("./onrampquote.js");
45
- /**
46
- * Initial lifecycle state (typically `pending`).
47
- */
48
- exports.OnrampCreateStatus = {
49
- Pending: "pending",
50
- Processing: "processing",
51
- Delivered: "delivered",
52
- Failed: "failed",
53
- };
54
- /** @internal */
55
- exports.OnrampCreateStatus$inboundSchema = z.nativeEnum(exports.OnrampCreateStatus);
56
- /** @internal */
57
- exports.OnrampCreate$inboundSchema = z.object({
58
- payment_id: z.string(),
59
- deposit_address: z.string(),
60
- checkout_url: z.string(),
61
- user_instructions: z.string(),
62
- status: exports.OnrampCreateStatus$inboundSchema,
63
- quote: onrampquote_js_1.OnrampQuote$inboundSchema,
64
- }).transform((v) => {
65
- return (0, primitives_js_1.remap)(v, {
66
- "payment_id": "paymentId",
67
- "deposit_address": "depositAddress",
68
- "checkout_url": "checkoutUrl",
69
- "user_instructions": "userInstructions",
70
- });
71
- });
72
- function onrampCreateFromJSON(jsonString) {
73
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OnrampCreate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OnrampCreate' from JSON`);
74
- }
75
- //# sourceMappingURL=onrampcreate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onrampcreate.js","sourceRoot":"","sources":["../../../../src/models/components/onrampcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFH,oDAQC;AA5FD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAIjD,qDAA0E;AAE1E;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;CACR,CAAC;AA0CX,gBAAgB;AACH,QAAA,gCAAgC,GAEzC,CAAC,CAAC,UAAU,CAAC,0BAAkB,CAAC,CAAC;AAErC,gBAAgB;AACH,QAAA,0BAA0B,GAInC,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC7B,MAAM,EAAE,wCAAgC;IACxC,KAAK,EAAE,0CAAyB;CACjC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,WAAW;QACzB,iBAAiB,EAAE,gBAAgB;QACnC,cAAc,EAAE,aAAa;QAC7B,mBAAmB,EAAE,kBAAkB;KACxC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,oBAAoB,CAClC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAA0B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtD,0CAA0C,CAC3C,CAAC;AACJ,CAAC"}