@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 +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,99 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import { encodeFormQuery } from "../lib/encodings.js";
5
- import { matchStatusCode } from "../lib/http.js";
6
- import * as M from "../lib/matchers.js";
7
- import { compactMap } from "../lib/primitives.js";
8
- import { safeParse } from "../lib/schemas.js";
9
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
10
- import { pathToFunc } from "../lib/url.js";
11
- import * as components from "../models/components/index.js";
12
- import * as errors from "../models/errors/index.js";
13
- import * as operations from "../models/operations/index.js";
14
- import { APIPromise } from "../types/async.js";
15
- /**
16
- * Get the status of a fiat on-ramp payment
17
- *
18
- * @remarks
19
- * Get the current status of a fiat on-ramp payment.
20
- *
21
- * Poll this after `create` until `status` is `delivered`. The `status` field
22
- * is one of:
23
- *
24
- * - `pending` — awaiting the card payment in the hosted checkout.
25
- * - `processing` — payment received; bridging/swapping the proceeds to USDC.
26
- * - `delivered` — USDC has been delivered to the destination wallet
27
- * (`delivery_tx_hash` and `output_amount_delivered` are populated).
28
- * - `failed` — the payment failed, expired, or was refunded.
29
- *
30
- * State is re-read live from the on-ramp provider on every call — Compass
31
- * stores nothing of its own.
32
- */
33
- export function onrampOnrampStatus(client, request, options) {
34
- return new APIPromise($do(client, request, options));
35
- }
36
- async function $do(client, request, options) {
37
- const parsed = safeParse(request, (value) => operations.V2OnrampStatusRequest$outboundSchema.parse(value), "Input validation failed");
38
- if (!parsed.ok) {
39
- return [parsed, { status: "invalid" }];
40
- }
41
- const payload = parsed.value;
42
- const body = null;
43
- const path = pathToFunc("/v2/onramp/status")();
44
- const query = encodeFormQuery({
45
- "payment_id": payload.payment_id,
46
- });
47
- const headers = new Headers(compactMap({
48
- Accept: "application/json",
49
- }));
50
- const secConfig = await extractSecurity(client._options.apiKeyAuth);
51
- const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
52
- const requestSecurity = resolveGlobalSecurity(securityInput);
53
- const context = {
54
- options: client._options,
55
- baseURL: options?.serverURL ?? client._baseURL ?? "",
56
- operationID: "v2_onramp_status",
57
- oAuth2Scopes: null,
58
- resolvedSecurity: requestSecurity,
59
- securitySource: client._options.apiKeyAuth,
60
- retryConfig: options?.retries
61
- || client._options.retryConfig
62
- || { strategy: "none" },
63
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
64
- };
65
- const requestRes = client._createRequest(context, {
66
- security: requestSecurity,
67
- method: "GET",
68
- baseURL: options?.serverURL,
69
- path: path,
70
- headers: headers,
71
- query: query,
72
- body: body,
73
- userAgent: client._options.userAgent,
74
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
75
- }, options);
76
- if (!requestRes.ok) {
77
- return [requestRes, { status: "invalid" }];
78
- }
79
- const req = requestRes.value;
80
- const doResult = await client._do(req, {
81
- context,
82
- isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
83
- retryConfig: context.retryConfig,
84
- retryCodes: context.retryCodes,
85
- });
86
- if (!doResult.ok) {
87
- return [doResult, { status: "request-error", request: req }];
88
- }
89
- const response = doResult.value;
90
- const responseFields = {
91
- HttpMeta: { Response: response, Request: req },
92
- };
93
- 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 });
94
- if (!result.ok) {
95
- return [result, { status: "complete", request: req, response }];
96
- }
97
- return [result, { status: "complete", request: req, response }];
98
- }
99
- //# sourceMappingURL=onrampOnrampStatus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onrampOnrampStatus.js","sourceRoot":"","sources":["../../../src/funcs/onrampOnrampStatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EA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AAO,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,59 +0,0 @@
1
- import * as z from "zod/v3";
2
- 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,38 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v3";
5
- import { remap as remap$ } from "../../lib/primitives.js";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { OnrampQuote$inboundSchema } from "./onrampquote.js";
8
- /**
9
- * Initial lifecycle state (typically `pending`).
10
- */
11
- export const OnrampCreateStatus = {
12
- Pending: "pending",
13
- Processing: "processing",
14
- Delivered: "delivered",
15
- Failed: "failed",
16
- };
17
- /** @internal */
18
- export const OnrampCreateStatus$inboundSchema = z.nativeEnum(OnrampCreateStatus);
19
- /** @internal */
20
- export const OnrampCreate$inboundSchema = z.object({
21
- payment_id: z.string(),
22
- deposit_address: z.string(),
23
- checkout_url: z.string(),
24
- user_instructions: z.string(),
25
- status: OnrampCreateStatus$inboundSchema,
26
- quote: OnrampQuote$inboundSchema,
27
- }).transform((v) => {
28
- return remap$(v, {
29
- "payment_id": "paymentId",
30
- "deposit_address": "depositAddress",
31
- "checkout_url": "checkoutUrl",
32
- "user_instructions": "userInstructions",
33
- });
34
- });
35
- export function onrampCreateFromJSON(jsonString) {
36
- return safeParse(jsonString, (x) => OnrampCreate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OnrampCreate' from JSON`);
37
- }
38
- //# sourceMappingURL=onrampcreate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onrampcreate.js","sourceRoot":"","sources":["../../../../src/models/components/onrampcreate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,EAAe,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAE1E;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;CACR,CAAC;AA0CX,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAEzC,CAAC,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC;AAErC,gBAAgB;AAChB,MAAM,CAAC,MAAM,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,gCAAgC;IACxC,KAAK,EAAE,yBAAyB;CACjC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,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,MAAM,UAAU,oBAAoB,CAClC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0BAA0B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtD,0CAA0C,CAC3C,CAAC;AACJ,CAAC"}
@@ -1,40 +0,0 @@
1
- import * as z from "zod/v3";
2
- /**
3
- * Create a fiat on-ramp payment delivering USDC on Ethereum.
4
- *
5
- * @remarks
6
- *
7
- * Carries the same fields as the quote (a quote is implicit — we do not
8
- * persist a quote handle). ``quote_id`` is optional and only echoed upstream
9
- * if Halliday's ``/payments/confirm`` requires a previously-issued quote
10
- * handle; omit it to confirm against a fresh quote.
11
- */
12
- export type OnrampCreateRequest = {
13
- /**
14
- * Amount of fiat to spend, as a decimal string (e.g. `100`).
15
- */
16
- fiatAmount: string;
17
- /**
18
- * ISO-4217 fiat currency code. Defaults to `USD`.
19
- */
20
- fiatCurrency?: string | undefined;
21
- /**
22
- * The wallet that will receive the USDC on Ethereum. Funds are delivered here directly — Compass never holds them.
23
- */
24
- destinationAddress: string;
25
- /**
26
- * Optional Halliday quote handle to confirm against. Omit to confirm against a fresh quote derived from the amount and currency.
27
- */
28
- quoteId?: string | null | undefined;
29
- };
30
- /** @internal */
31
- export type OnrampCreateRequest$Outbound = {
32
- fiat_amount: string;
33
- fiat_currency?: string | undefined;
34
- destination_address: string;
35
- quote_id?: string | null | undefined;
36
- };
37
- /** @internal */
38
- export declare const OnrampCreateRequest$outboundSchema: z.ZodType<OnrampCreateRequest$Outbound, z.ZodTypeDef, OnrampCreateRequest>;
39
- export declare function onrampCreateRequestToJSON(onrampCreateRequest: OnrampCreateRequest): string;
40
- //# sourceMappingURL=onrampcreaterequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onrampcreaterequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/onrampcreaterequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;;;;;;;;GASG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAanB,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR"}
@@ -1,23 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v3";
5
- import { remap as remap$ } from "../../lib/primitives.js";
6
- /** @internal */
7
- export const OnrampCreateRequest$outboundSchema = z.object({
8
- fiatAmount: z.string(),
9
- fiatCurrency: z.string().optional(),
10
- destinationAddress: z.string(),
11
- quoteId: z.nullable(z.string()).optional(),
12
- }).transform((v) => {
13
- return remap$(v, {
14
- fiatAmount: "fiat_amount",
15
- fiatCurrency: "fiat_currency",
16
- destinationAddress: "destination_address",
17
- quoteId: "quote_id",
18
- });
19
- });
20
- export function onrampCreateRequestToJSON(onrampCreateRequest) {
21
- return JSON.stringify(OnrampCreateRequest$outboundSchema.parse(onrampCreateRequest));
22
- }
23
- //# sourceMappingURL=onrampcreaterequest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onrampcreaterequest.js","sourceRoot":"","sources":["../../../../src/models/components/onrampcreaterequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAuC1D,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,UAAU,EAAE,aAAa;QACzB,YAAY,EAAE,eAAe;QAC7B,kBAAkB,EAAE,qBAAqB;QACzC,OAAO,EAAE,UAAU;KACpB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,kCAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC"}
@@ -1,29 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- /**
5
- * Fee breakdown for an on-ramp quote.
6
- *
7
- * @remarks
8
- *
9
- * ``business_fees`` is a fixed ``"0"`` for now — monetization is a single
10
- * future lever and is intentionally not charged.
11
- */
12
- export type OnrampFees = {
13
- /**
14
- * Fee charged by the on-ramp provider, in fiat.
15
- */
16
- providerFee: string;
17
- /**
18
- * Estimated network/gas fee, in fiat.
19
- */
20
- networkFee: string;
21
- /**
22
- * Compass business fee, in fiat. Always `0` for now.
23
- */
24
- businessFees?: string | undefined;
25
- };
26
- /** @internal */
27
- export declare const OnrampFees$inboundSchema: z.ZodType<OnrampFees, z.ZodTypeDef, unknown>;
28
- export declare function onrampFeesFromJSON(jsonString: string): SafeParseResult<OnrampFees, SDKValidationError>;
29
- //# sourceMappingURL=onrampfees.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onrampfees.d.ts","sourceRoot":"","sources":["../../../../src/models/components/onrampfees.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAC9C,UAAU,EACV,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AAEH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAMjD"}
@@ -1,22 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v3";
5
- import { remap as remap$ } from "../../lib/primitives.js";
6
- import { safeParse } from "../../lib/schemas.js";
7
- /** @internal */
8
- export const OnrampFees$inboundSchema = z.object({
9
- provider_fee: z.string(),
10
- network_fee: z.string(),
11
- business_fees: z.string().optional(),
12
- }).transform((v) => {
13
- return remap$(v, {
14
- "provider_fee": "providerFee",
15
- "network_fee": "networkFee",
16
- "business_fees": "businessFees",
17
- });
18
- });
19
- export function onrampFeesFromJSON(jsonString) {
20
- return safeParse(jsonString, (x) => OnrampFees$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OnrampFees' from JSON`);
21
- }
22
- //# sourceMappingURL=onrampfees.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onrampfees.js","sourceRoot":"","sources":["../../../../src/models/components/onrampfees.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AA2BjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB,GAIjC,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,aAAa,EAAE,YAAY;QAC3B,eAAe,EAAE,cAAc;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,kBAAkB,CAChC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wBAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpD,wCAAwC,CACzC,CAAC;AACJ,CAAC"}
@@ -1,58 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { OnrampFees } from "./onrampfees.js";
5
- /**
6
- * An indicative fiat -> USDC-on-Ethereum quote.
7
- */
8
- export type OnrampQuote = {
9
- /**
10
- * Fiat amount to spend.
11
- */
12
- fiatAmount: string;
13
- /**
14
- * ISO-4217 fiat currency code.
15
- */
16
- fiatCurrency: string;
17
- /**
18
- * Estimated USDC delivered, human-readable (6-decimal token).
19
- */
20
- outputAmount: string;
21
- /**
22
- * Delivered asset. Always USDC for this on-ramp.
23
- */
24
- outputAsset?: "USDC" | undefined;
25
- /**
26
- * Delivery chain. Always Ethereum for this on-ramp.
27
- */
28
- outputChain?: "ethereum" | undefined;
29
- /**
30
- * USDC received per unit of fiat.
31
- */
32
- exchangeRate: string;
33
- /**
34
- * Fee breakdown for an on-ramp quote.
35
- *
36
- * @remarks
37
- *
38
- * ``business_fees`` is a fixed ``"0"`` for now — monetization is a single
39
- * future lever and is intentionally not charged.
40
- */
41
- fees: OnrampFees;
42
- /**
43
- * Minimum fiat amount accepted, if advertised by the provider.
44
- */
45
- minAmount?: string | null | undefined;
46
- /**
47
- * Maximum fiat amount accepted, if advertised by the provider.
48
- */
49
- maxAmount?: string | null | undefined;
50
- /**
51
- * ISO-8601 timestamp after which this quote is stale, if any.
52
- */
53
- expiresAt?: string | null | undefined;
54
- };
55
- /** @internal */
56
- export declare const OnrampQuote$inboundSchema: z.ZodType<OnrampQuote, z.ZodTypeDef, unknown>;
57
- export declare function onrampQuoteFromJSON(jsonString: string): SafeParseResult<OnrampQuote, SDKValidationError>;
58
- //# sourceMappingURL=onrampquote.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onrampquote.d.ts","sourceRoot":"","sources":["../../../../src/models/components/onrampquote.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,UAAU,EAA4B,MAAM,iBAAiB,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;;;OAOG;IACH,IAAI,EAAE,UAAU,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,WAAW,EACX,CAAC,CAAC,UAAU,EACZ,OAAO,CAwBP,CAAC;AAEH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
@@ -1,36 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v3";
5
- import { remap as remap$ } from "../../lib/primitives.js";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { OnrampFees$inboundSchema } from "./onrampfees.js";
8
- /** @internal */
9
- export const OnrampQuote$inboundSchema = z.object({
10
- fiat_amount: z.string(),
11
- fiat_currency: z.string(),
12
- output_amount: z.string(),
13
- output_asset: z.literal("USDC").optional(),
14
- output_chain: z.literal("ethereum").optional(),
15
- exchange_rate: z.string(),
16
- fees: OnrampFees$inboundSchema,
17
- min_amount: z.nullable(z.string()).optional(),
18
- max_amount: z.nullable(z.string()).optional(),
19
- expires_at: z.nullable(z.string()).optional(),
20
- }).transform((v) => {
21
- return remap$(v, {
22
- "fiat_amount": "fiatAmount",
23
- "fiat_currency": "fiatCurrency",
24
- "output_amount": "outputAmount",
25
- "output_asset": "outputAsset",
26
- "output_chain": "outputChain",
27
- "exchange_rate": "exchangeRate",
28
- "min_amount": "minAmount",
29
- "max_amount": "maxAmount",
30
- "expires_at": "expiresAt",
31
- });
32
- });
33
- export function onrampQuoteFromJSON(jsonString) {
34
- return safeParse(jsonString, (x) => OnrampQuote$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OnrampQuote' from JSON`);
35
- }
36
- //# sourceMappingURL=onrampquote.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onrampquote.js","sourceRoot":"","sources":["../../../../src/models/components/onrampquote.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAAc,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAqDvE,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB,GAIlC,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE;IAC1C,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE;IAC9C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,IAAI,EAAE,wBAAwB;IAC9B,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC7C,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC7C,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,aAAa,EAAE,YAAY;QAC3B,eAAe,EAAE,cAAc;QAC/B,eAAe,EAAE,cAAc;QAC/B,cAAc,EAAE,aAAa;QAC7B,cAAc,EAAE,aAAa;QAC7B,eAAe,EAAE,cAAc;QAC/B,YAAY,EAAE,WAAW;QACzB,YAAY,EAAE,WAAW;QACzB,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,mBAAmB,CACjC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yBAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC"}
@@ -1,34 +0,0 @@
1
- import * as z from "zod/v3";
2
- /**
3
- * An indicative fiat -> USDC-on-Ethereum quote request.
4
- *
5
- * @remarks
6
- *
7
- * The output asset and chain are fixed to USDC on Ethereum and are not
8
- * user-supplied — this product group delivers only USDC to the user's own
9
- * wallet (non-custodial).
10
- */
11
- export type OnrampQuoteRequest = {
12
- /**
13
- * Amount of fiat to spend, as a decimal string (e.g. `100`).
14
- */
15
- fiatAmount: string;
16
- /**
17
- * ISO-4217 fiat currency code. Defaults to `USD`.
18
- */
19
- fiatCurrency?: string | undefined;
20
- /**
21
- * The wallet that will receive the USDC on Ethereum. Funds are delivered here directly — Compass never holds them.
22
- */
23
- destinationAddress: string;
24
- };
25
- /** @internal */
26
- export type OnrampQuoteRequest$Outbound = {
27
- fiat_amount: string;
28
- fiat_currency?: string | undefined;
29
- destination_address: string;
30
- };
31
- /** @internal */
32
- export declare const OnrampQuoteRequest$outboundSchema: z.ZodType<OnrampQuoteRequest$Outbound, z.ZodTypeDef, OnrampQuoteRequest>;
33
- export declare function onrampQuoteRequestToJSON(onrampQuoteRequest: OnrampQuoteRequest): string;
34
- //# sourceMappingURL=onrampquoterequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onrampquoterequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/onrampquoterequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAWlB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR"}
@@ -1,21 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v3";
5
- import { remap as remap$ } from "../../lib/primitives.js";
6
- /** @internal */
7
- export const OnrampQuoteRequest$outboundSchema = z.object({
8
- fiatAmount: z.string(),
9
- fiatCurrency: z.string().optional(),
10
- destinationAddress: z.string(),
11
- }).transform((v) => {
12
- return remap$(v, {
13
- fiatAmount: "fiat_amount",
14
- fiatCurrency: "fiat_currency",
15
- destinationAddress: "destination_address",
16
- });
17
- });
18
- export function onrampQuoteRequestToJSON(onrampQuoteRequest) {
19
- return JSON.stringify(OnrampQuoteRequest$outboundSchema.parse(onrampQuoteRequest));
20
- }
21
- //# sourceMappingURL=onrampquoterequest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onrampquoterequest.js","sourceRoot":"","sources":["../../../../src/models/components/onrampquoterequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAiC1D,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;CAC/B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,UAAU,EAAE,aAAa;QACzB,YAAY,EAAE,eAAe;QAC7B,kBAAkB,EAAE,qBAAqB;KAC1C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,iCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC"}
@@ -1,57 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- import { Result as SafeParseResult } from "../../types/fp.js";
4
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- /**
6
- * Lifecycle state: `pending` (awaiting card payment), `processing` (payment received, bridging/swapping to USDC), `delivered` (USDC received in the destination wallet), or `failed`.
7
- */
8
- export declare const OnrampStatusStatus: {
9
- readonly Pending: "pending";
10
- readonly Processing: "processing";
11
- readonly Delivered: "delivered";
12
- readonly Failed: "failed";
13
- };
14
- /**
15
- * Lifecycle state: `pending` (awaiting card payment), `processing` (payment received, bridging/swapping to USDC), `delivered` (USDC received in the destination wallet), or `failed`.
16
- */
17
- export type OnrampStatusStatus = ClosedEnum<typeof OnrampStatusStatus>;
18
- /**
19
- * Current state of a fiat on-ramp payment.
20
- *
21
- * @remarks
22
- *
23
- * Re-read on demand from Halliday (the system of record) — Compass holds no
24
- * state of its own.
25
- */
26
- export type OnrampStatus = {
27
- /**
28
- * Halliday's payment id, echoed straight through.
29
- */
30
- paymentId: string;
31
- /**
32
- * Lifecycle state: `pending` (awaiting card payment), `processing` (payment received, bridging/swapping to USDC), `delivered` (USDC received in the destination wallet), or `failed`.
33
- */
34
- status: OnrampStatusStatus;
35
- /**
36
- * USDC delivered so far, human-readable. Set once delivered.
37
- */
38
- outputAmountDelivered?: string | null | undefined;
39
- /**
40
- * Ethereum tx hash of the USDC delivery, once available.
41
- */
42
- deliveryTxHash?: string | null | undefined;
43
- /**
44
- * The wallet the USDC is delivered to.
45
- */
46
- destinationAddress?: string | null | undefined;
47
- /**
48
- * ISO-8601 timestamp of the last status change, if provided.
49
- */
50
- updatedAt?: string | null | undefined;
51
- };
52
- /** @internal */
53
- export declare const OnrampStatusStatus$inboundSchema: z.ZodNativeEnum<typeof OnrampStatusStatus>;
54
- /** @internal */
55
- export declare const OnrampStatus$inboundSchema: z.ZodType<OnrampStatus, z.ZodTypeDef, unknown>;
56
- export declare function onrampStatusFromJSON(jsonString: string): SafeParseResult<OnrampStatus, SDKValidationError>;
57
- //# sourceMappingURL=onrampstatus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onrampstatus.d.ts","sourceRoot":"","sources":["../../../../src/models/components/onrampstatus.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;AAErE;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;CAKrB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEvE;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,kBAAkB,CAAC;IAC3B;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACvC,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,CAgBP,CAAC;AAEH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAMnD"}
@@ -1,38 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v3";
5
- import { remap as remap$ } from "../../lib/primitives.js";
6
- import { safeParse } from "../../lib/schemas.js";
7
- /**
8
- * Lifecycle state: `pending` (awaiting card payment), `processing` (payment received, bridging/swapping to USDC), `delivered` (USDC received in the destination wallet), or `failed`.
9
- */
10
- export const OnrampStatusStatus = {
11
- Pending: "pending",
12
- Processing: "processing",
13
- Delivered: "delivered",
14
- Failed: "failed",
15
- };
16
- /** @internal */
17
- export const OnrampStatusStatus$inboundSchema = z.nativeEnum(OnrampStatusStatus);
18
- /** @internal */
19
- export const OnrampStatus$inboundSchema = z.object({
20
- payment_id: z.string(),
21
- status: OnrampStatusStatus$inboundSchema,
22
- output_amount_delivered: z.nullable(z.string()).optional(),
23
- delivery_tx_hash: z.nullable(z.string()).optional(),
24
- destination_address: z.nullable(z.string()).optional(),
25
- updated_at: z.nullable(z.string()).optional(),
26
- }).transform((v) => {
27
- return remap$(v, {
28
- "payment_id": "paymentId",
29
- "output_amount_delivered": "outputAmountDelivered",
30
- "delivery_tx_hash": "deliveryTxHash",
31
- "destination_address": "destinationAddress",
32
- "updated_at": "updatedAt",
33
- });
34
- });
35
- export function onrampStatusFromJSON(jsonString) {
36
- return safeParse(jsonString, (x) => OnrampStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OnrampStatus' from JSON`);
37
- }
38
- //# sourceMappingURL=onrampstatus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onrampstatus.js","sourceRoot":"","sources":["../../../../src/models/components/onrampstatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAKjD;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;CACR,CAAC;AAyCX,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAEzC,CAAC,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC;AAErC,gBAAgB;AAChB,MAAM,CAA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