@calm-xyz/core 0.14.0 → 0.16.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 (3) hide show
  1. package/dist/index.d.ts +8230 -2357
  2. package/dist/index.js +2028 -519
  3. package/package.json +8 -5
package/dist/index.js CHANGED
@@ -1,125 +1,301 @@
1
+ const errorCodeEnum = {
2
+ already_registered: "already_registered",
3
+ ambiguous_query: "ambiguous_query",
4
+ amount_above_maximum: "amount_above_maximum",
5
+ amount_below_minimum: "amount_below_minimum",
6
+ auth_required: "auth_required",
7
+ bank_transfer_unavailable: "bank_transfer_unavailable",
8
+ binding_invalid: "binding_invalid",
9
+ blink_error: "blink_error",
10
+ card_3d_secure_challenge_failed: "card_3d_secure_challenge_failed",
11
+ card_3d_secure_rejected: "card_3d_secure_rejected",
12
+ card_3d_secure_verification_failed: "card_3d_secure_verification_failed",
13
+ card_account_blocked: "card_account_blocked",
14
+ card_account_closed: "card_account_closed",
15
+ card_account_not_activated: "card_account_not_activated",
16
+ card_activity_limit_exceeded: "card_activity_limit_exceeded",
17
+ card_address_mismatch: "card_address_mismatch",
18
+ card_brand_unsupported: "card_brand_unsupported",
19
+ card_chargeback_protection_declined: "card_chargeback_protection_declined",
20
+ card_contact_issuer: "card_contact_issuer",
21
+ card_country_unsupported: "card_country_unsupported",
22
+ card_customer_not_found: "card_customer_not_found",
23
+ card_daily_purchase_limit_reached: "card_daily_purchase_limit_reached",
24
+ card_declined: "card_declined",
25
+ card_do_not_honor: "card_do_not_honor",
26
+ card_exceeds_withdrawal_limit: "card_exceeds_withdrawal_limit",
27
+ card_expired: "card_expired",
28
+ card_fraud_security_decline: "card_fraud_security_decline",
29
+ card_identity_required: "card_identity_required",
30
+ card_insufficient_funds: "card_insufficient_funds",
31
+ card_invalid_amount: "card_invalid_amount",
32
+ card_invalid_input: "card_invalid_input",
33
+ card_invalid_number: "card_invalid_number",
34
+ card_invalid_transaction: "card_invalid_transaction",
35
+ card_issuer_file_unavailable: "card_issuer_file_unavailable",
36
+ card_issuer_gateway_unavailable: "card_issuer_gateway_unavailable",
37
+ card_issuer_inoperative: "card_issuer_inoperative",
38
+ card_issuer_system_malfunction: "card_issuer_system_malfunction",
39
+ card_issuing_country_unsupported: "card_issuing_country_unsupported",
40
+ card_limit_exceeded: "card_limit_exceeded",
41
+ card_location_unsupported: "card_location_unsupported",
42
+ card_locked: "card_locked",
43
+ card_lost: "card_lost",
44
+ card_name_mismatch: "card_name_mismatch",
45
+ card_no_such_issuer: "card_no_such_issuer",
46
+ card_not_activated: "card_not_activated",
47
+ card_order_not_found: "card_order_not_found",
48
+ card_partial_approval: "card_partial_approval",
49
+ card_payment_method_blocked: "card_payment_method_blocked",
50
+ card_payment_method_in_use: "card_payment_method_in_use",
51
+ card_pickup: "card_pickup",
52
+ card_pickup_special_condition: "card_pickup_special_condition",
53
+ card_quote_expired: "card_quote_expired",
54
+ card_quote_price_changed: "card_quote_price_changed",
55
+ card_record_not_found: "card_record_not_found",
56
+ card_reenter_transaction: "card_reenter_transaction",
57
+ card_refer_to_issuer: "card_refer_to_issuer",
58
+ card_refer_to_issuer_special_condition: "card_refer_to_issuer_special_condition",
59
+ card_security_code_mismatch: "card_security_code_mismatch",
60
+ card_security_violation: "card_security_violation",
61
+ card_state_unsupported: "card_state_unsupported",
62
+ card_state_unsupported_by_ip_address: "card_state_unsupported_by_ip_address",
63
+ card_stolen: "card_stolen",
64
+ card_suspected_fraud: "card_suspected_fraud",
65
+ card_transaction_frequency_limit_exceeded: "card_transaction_frequency_limit_exceeded",
66
+ card_transaction_not_permitted: "card_transaction_not_permitted",
67
+ card_transaction_not_supported: "card_transaction_not_supported",
68
+ card_unavailable: "card_unavailable",
69
+ card_violation: "card_violation",
70
+ card_wallet_pay_unavailable: "card_wallet_pay_unavailable",
71
+ cashapp_unavailable: "cashapp_unavailable",
72
+ challenge_expired: "challenge_expired",
73
+ challenge_rate_limited: "challenge_rate_limited",
74
+ challenge_wallet_mismatch: "challenge_wallet_mismatch",
75
+ client_ip_unknown: "client_ip_unknown",
76
+ customer_details_invalid: "customer_details_invalid",
77
+ customer_not_registered: "customer_not_registered",
78
+ email_error: "email_error",
79
+ email_invalid_recipient: "email_invalid_recipient",
80
+ email_quota_exceeded: "email_quota_exceeded",
81
+ email_rate_limited: "email_rate_limited",
82
+ email_unauthorized: "email_unauthorized",
83
+ fixed_delivery_unavailable: "fixed_delivery_unavailable",
84
+ forbidden: "forbidden",
85
+ fx_unavailable: "fx_unavailable",
86
+ idempotency_conflict: "idempotency_conflict",
87
+ idempotency_in_progress: "idempotency_in_progress",
88
+ idempotency_key_in_use: "idempotency_key_in_use",
89
+ idempotency_key_mismatch: "idempotency_key_mismatch",
90
+ idempotency_key_required: "idempotency_key_required",
91
+ internal_error: "internal_error",
92
+ invalid_address: "invalid_address",
93
+ invalid_body: "invalid_body",
94
+ invalid_otp: "invalid_otp",
95
+ invalid_publishable_key: "invalid_publishable_key",
96
+ invalid_query: "invalid_query",
97
+ invalid_request: "invalid_request",
98
+ invoice_required: "invoice_required",
99
+ kyc_required: "kyc_required",
100
+ lighter_account_not_found: "lighter_account_not_found",
101
+ link_error: "link_error",
102
+ link_forbidden: "link_forbidden",
103
+ link_not_found: "link_not_found",
104
+ link_refresh_token_missing: "link_refresh_token_missing",
105
+ link_revoked: "link_revoked",
106
+ merchant_not_active: "merchant_not_active",
107
+ merchant_not_registered: "merchant_not_registered",
108
+ method_not_allowed: "method_not_allowed",
109
+ missing_idempotency_key: "missing_idempotency_key",
110
+ next_action_mismatch: "next_action_mismatch",
111
+ not_found: "not_found",
112
+ order_not_found: "order_not_found",
113
+ origin_not_allowed: "origin_not_allowed",
114
+ partner_disabled: "partner_disabled",
115
+ partner_token_rejected: "partner_token_rejected",
116
+ payload_too_large: "payload_too_large",
117
+ payment_method_not_enabled: "payment_method_not_enabled",
118
+ price_impact_too_high: "price_impact_too_high",
119
+ publishable_key_missing: "publishable_key_missing",
120
+ quote_unavailable: "quote_unavailable",
121
+ rate_limited: "rate_limited",
122
+ recipient_invalid: "recipient_invalid",
123
+ route_disabled: "route_disabled",
124
+ service_unavailable: "service_unavailable",
125
+ session_required: "session_required",
126
+ spot_unavailable: "spot_unavailable",
127
+ stripe_auth_required: "stripe_auth_required",
128
+ stripe_country_unsupported: "stripe_country_unsupported",
129
+ stripe_currency_unavailable_in_region: "stripe_currency_unavailable_in_region",
130
+ stripe_customer_unsupported: "stripe_customer_unsupported",
131
+ stripe_document_verification_required: "stripe_document_verification_required",
132
+ stripe_error: "stripe_error",
133
+ stripe_resource_not_found: "stripe_resource_not_found",
134
+ stripe_transaction_blocked: "stripe_transaction_blocked",
135
+ stripe_wallet_not_registered: "stripe_wallet_not_registered",
136
+ swap_unavailable: "swap_unavailable",
137
+ terms_of_service_required: "terms_of_service_required",
138
+ three_d_secure_required: "three_d_secure_required",
139
+ too_many_attempts: "too_many_attempts",
140
+ unauthorized: "unauthorized",
141
+ unsupported_amount_mode: "unsupported_amount_mode",
142
+ unsupported_asset: "unsupported_asset",
143
+ unsupported_chain: "unsupported_chain",
144
+ unsupported_delivery_mode: "unsupported_delivery_mode",
145
+ unsupported_fee_plan: "unsupported_fee_plan",
146
+ unsupported_media_type: "unsupported_media_type",
147
+ unsupported_route: "unsupported_route",
148
+ validation_error: "validation_error",
149
+ wallet_sanctioned: "wallet_sanctioned",
150
+ webhook_signature_invalid: "webhook_signature_invalid",
151
+ webhook_signature_malformed: "webhook_signature_malformed",
152
+ webhook_signature_missing: "webhook_signature_missing",
153
+ webhook_signature_stale: "webhook_signature_stale"
154
+ };
1
155
  /**
2
- * Typed error every operation throws on a non-2xx response; carries `code`
3
- * and `status`.
156
+ * Typed error every operation throws on a non-2xx response; carries `code`,
157
+ * `status`, and `params` when particular request properties are invalid.
4
158
  *
5
159
  * @see https://docs.calmtreasury.xyz/sdk/errors
6
160
  */
7
161
  var ApiError = class extends Error {
8
162
  code;
9
163
  status;
164
+ params;
10
165
  constructor(args) {
11
166
  super(args.message);
12
167
  this.name = "ApiError";
13
168
  this.code = args.code;
14
169
  this.status = args.status;
170
+ this.params = args.params;
15
171
  }
16
172
  };
173
+ function isErrorCode(code) {
174
+ return Object.values(errorCodeEnum).some((known) => known === code);
175
+ }
17
176
  async function request(config) {
18
- const searchParams = new URLSearchParams();
19
- for (const [key, value] of Object.entries(config.params ?? {})) if (value != null) searchParams.append(key, String(value));
20
- let targetUrl = [config.apiUrl, config.url].filter(Boolean).join("");
21
- if (config.params) targetUrl += `?${searchParams}`;
22
- const hasBody = config.data !== void 0;
23
- const response = await fetch(targetUrl, {
24
- method: config.method,
25
- body: hasBody ? JSON.stringify(config.data) : void 0,
26
- signal: config.signal,
27
- headers: hasBody ? {
28
- "Content-Type": "application/json",
29
- ...normalizeHeaders(config.headers)
30
- } : normalizeHeaders(config.headers)
31
- });
32
- const data = response.status === 204 ? void 0 : await response.json();
177
+ if (!config.apiUrl) throw new Error("A request needs an apiUrl");
178
+ const query = new URLSearchParams(config.params).toString();
179
+ let response;
180
+ try {
181
+ response = await fetch(`${config.apiUrl}${config.url ?? ""}${query && `?${query}`}`, {
182
+ method: config.method,
183
+ body: JSON.stringify(config.data),
184
+ signal: config.signal,
185
+ headers: config.headers,
186
+ credentials: "include"
187
+ });
188
+ } catch (error) {
189
+ if (config.signal?.aborted) throw error;
190
+ throw new ApiError({
191
+ code: "unreachable",
192
+ message: "We couldn't connect. Check your connection and try again.",
193
+ status: 0
194
+ });
195
+ }
33
196
  if (!response.ok) {
34
- const envelope = data;
197
+ const envelope = await response.json().catch(() => void 0);
198
+ const code = envelope?.error?.code;
199
+ let message = "Something went wrong. Try again.";
200
+ if (typeof envelope?.error?.message === "string") message = envelope.error.message;
201
+ if (isErrorCode(code)) throw new ApiError({
202
+ code,
203
+ message,
204
+ status: response.status,
205
+ params: envelope?.error?.params
206
+ });
35
207
  throw new ApiError({
36
- message: envelope?.error?.message ?? "API error",
37
- code: envelope?.error?.code,
208
+ code: "unexpected_response",
209
+ message,
38
210
  status: response.status
39
211
  });
40
212
  }
213
+ if (response.status === 204) return {
214
+ data: void 0,
215
+ status: response.status
216
+ };
41
217
  return {
42
- data,
218
+ data: await response.json(),
43
219
  status: response.status
44
220
  };
45
221
  }
46
- function normalizeHeaders(headers) {
47
- if (!headers) return void 0;
48
- return Array.isArray(headers) ? Object.fromEntries(headers) : headers;
49
- }
50
222
  const client = request;
51
223
  /**
52
224
  * Generated by Kubb (https://kubb.dev/).
53
225
  * Do not edit manually.
54
226
  */
55
- function getCheckoutCardUrl() {
227
+ function getCheckoutStripeSessionUrl(id) {
56
228
  return {
57
229
  method: "POST",
58
- url: `/v1/card/checkout`
230
+ url: `/v1/stripe/sessions/${id}/checkout`
59
231
  };
60
232
  }
61
233
  /**
62
- * @description Starts a card purchase for the `wallet` in the body. Returns the order to poll and the hosted card URL to render, with the amount, currency, payment method and country already applied and locked so the widget opens on the payment step.
63
- * @summary Start a card checkout
64
- * {@link /v1/card/checkout}
234
+ * @description Checks out a session and returns its `client_secret`. The `performCheckout` callback of the client SDK calls it, and the SDK does the next step, such as 3-D Secure, between the calls. The request needs an `Idempotency-Key` header. For 24 hours after a checkout succeeds, a second request with the same key and session returns the same `client_secret` without checking out again, and the same key with a different session returns `idempotency_key_mismatch`. A request sent while the first checkout with its key is still running returns `idempotency_key_in_use`: send it again shortly.
235
+ * @summary Check out a Stripe onramp session
236
+ * {@link /v1/stripe/sessions/:id/checkout}
65
237
  */
66
- async function checkoutCard(data, config = {}) {
238
+ async function checkoutStripeSession(id, headers, config = {}) {
67
239
  const { client: request = client, ...requestConfig } = config;
68
- const requestData = data;
69
240
  return (await request({
70
241
  method: "POST",
71
- url: getCheckoutCardUrl().url.toString(),
72
- data: requestData,
73
- ...requestConfig
242
+ url: getCheckoutStripeSessionUrl(id).url.toString(),
243
+ ...requestConfig,
244
+ headers: {
245
+ ...headers,
246
+ ...requestConfig.headers
247
+ }
74
248
  })).data;
75
249
  }
76
250
  /**
77
251
  * Generated by Kubb (https://kubb.dev/).
78
252
  * Do not edit manually.
79
253
  */
80
- function getCheckoutStripeSessionUrl(sessionId) {
254
+ function getConfirmCardOrderUrl(id) {
81
255
  return {
82
256
  method: "POST",
83
- url: `/v1/stripe/session/${sessionId}/checkout`
257
+ url: `/v1/card/orders/${id}/confirm`
84
258
  };
85
259
  }
86
260
  /**
87
- * @description Checks out a session and returns its `client_secret`. Driven by the client SDK's `performCheckout` callback — never called standalone; the SDK handles required next actions (3DS) between calls.
88
- * @summary Check out a Stripe onramp session
89
- * {@link /v1/stripe/session/:sessionId/checkout}
261
+ * @description Sends the answer to the order's `next_action`. The body has one key, named after the `next_action.type` it answers: `collect_card` takes the card, the customer and the billing address, `collect_apple_pay` takes the token and the billing contact that the Apple Pay sheet returns, `three_d_secure` takes the `transaction_id` of the challenge, and `mount_payment` takes the `request_id` that the payment surface returns. A key that does not match the order's `next_action.type` returns `next_action_mismatch`, and so does a confirm sent while another confirm of the same order is in flight: read the order again. The request needs an `Idempotency-Key` header. For 24 hours after a confirm succeeds, a second request with the same key and body returns the order without answering again, and the same key with a different body returns `idempotency_key_mismatch`. A request sent while the first confirm with its key is still running returns `idempotency_key_in_use`. The price is checked again before a charge: when the crypto the buyer receives has fallen more than 2% below the quote, this operation returns `card_quote_price_changed` and charges nothing.
262
+ * @summary Confirm a card order
263
+ * {@link /v1/card/orders/:id/confirm}
90
264
  */
91
- async function checkoutStripeSession(sessionId, data, config = {}) {
265
+ async function confirmCardOrder(id, data, headers, config = {}) {
92
266
  const { client: request = client, ...requestConfig } = config;
93
267
  const requestData = data;
94
268
  return (await request({
95
269
  method: "POST",
96
- url: getCheckoutStripeSessionUrl(sessionId).url.toString(),
270
+ url: getConfirmCardOrderUrl(id).url.toString(),
97
271
  data: requestData,
98
- ...requestConfig
272
+ ...requestConfig,
273
+ headers: {
274
+ ...headers,
275
+ ...requestConfig.headers
276
+ }
99
277
  })).data;
100
278
  }
101
279
  /**
102
280
  * Generated by Kubb (https://kubb.dev/).
103
281
  * Do not edit manually.
104
282
  */
105
- function getConnectExchangeUrl(exchange) {
283
+ function getCreateApplePaySessionUrl(id) {
106
284
  return {
107
285
  method: "POST",
108
- url: `/v1/exchange/${exchange}`
286
+ url: `/v1/card/orders/${id}/apple-pay-session`
109
287
  };
110
288
  }
111
289
  /**
112
- * @description Starts an exchange connection for the `wallet` in the body and returns the URL the user authorizes at. On success, the connection turns live and can be read via `GET /v1/exchange/{exchange}`.
113
- * @summary Connect an exchange
114
- * {@link /v1/exchange/:exchange}
290
+ * @description Returns the merchant session that the Apple Pay sheet asks for in `onvalidatemerchant`. Pass it to `completeMerchantValidation` as it is. The domain is the host of the request's `Origin`, which Apple must have verified for the app. The order's `next_action.type` must be `collect_apple_pay`, otherwise this operation returns `next_action_mismatch`.
291
+ * @summary Start an Apple Pay session
292
+ * {@link /v1/card/orders/:id/apple-pay-session}
115
293
  */
116
- async function connectExchange(exchange, data, config = {}) {
294
+ async function createApplePaySession(id, config = {}) {
117
295
  const { client: request = client, ...requestConfig } = config;
118
- const requestData = data;
119
296
  return (await request({
120
297
  method: "POST",
121
- url: getConnectExchangeUrl(exchange).url.toString(),
122
- data: requestData,
298
+ url: getCreateApplePaySessionUrl(id).url.toString(),
123
299
  ...requestConfig
124
300
  })).data;
125
301
  }
@@ -134,7 +310,7 @@ function getCreateBlinkSignatureUrl() {
134
310
  };
135
311
  }
136
312
  /**
137
- * @description Returns the signed authorization the hosted deposit flow requires before it will accept a deposit. The destination is the `wallet` in the body and the destination chain's payout token — USDC on most chains, USDm on MegaETH (`4326`). The authorization is short-lived.
313
+ * @description Returns the signed authorization that the hosted deposit flow needs before it accepts a deposit. The destination is the `wallet` in the body, and the payout token of the destination chain. The authorization has a short life.
138
314
  * @summary Authorize a deposit
139
315
  * {@link /v1/blink/signature}
140
316
  */
@@ -152,6 +328,60 @@ async function createBlinkSignature(data, config = {}) {
152
328
  * Generated by Kubb (https://kubb.dev/).
153
329
  * Do not edit manually.
154
330
  */
331
+ function getCreateCardFcaSubmissionUrl() {
332
+ return {
333
+ method: "POST",
334
+ url: `/v1/card/identity-verification/fca/requirements`
335
+ };
336
+ }
337
+ /**
338
+ * @description Sends the answers of the buyer, or the signature of the buyer on the investor agreement, to the provider. Returns the result from the provider: an investor category, `signed`, or `PASS` or `FAIL`. The identity is the verified email address of the session. This API stores nothing from this request, and writes no answer, no signature and no question to a log. On a deployment where the FCA journey of this card provider is off, the response is 404. Off is the default, because the journey waits for a UK compliance decision.
339
+ * @summary Submit one step of the UK investor-categorisation journey
340
+ * {@link /v1/card/identity-verification/fca/requirements}
341
+ */
342
+ async function createCardFcaSubmission(data, config = {}) {
343
+ const { client: request = client, ...requestConfig } = config;
344
+ const requestData = data;
345
+ return (await request({
346
+ method: "POST",
347
+ url: getCreateCardFcaSubmissionUrl().url.toString(),
348
+ data: requestData,
349
+ ...requestConfig
350
+ })).data;
351
+ }
352
+ /**
353
+ * Generated by Kubb (https://kubb.dev/).
354
+ * Do not edit manually.
355
+ */
356
+ function getCreateCardOrderUrl() {
357
+ return {
358
+ method: "POST",
359
+ url: `/v1/card/orders`
360
+ };
361
+ }
362
+ /**
363
+ * @description Creates a card order for a quote. The amount, the currency, the payment method, the country and the destination come from the quote. The request needs an `Idempotency-Key` header, and a second request with the same key and body returns the same order. The same key with a different body returns `idempotency_key_mismatch`. A request sent while the first request with its key is still running returns `idempotency_key_in_use`: send it again shortly. The order has a `next_action`, which names what the buyer does next: do it, send the answer to `POST /v1/card/orders/{id}/confirm` when it takes one, and read the order again. `appearance` styles every payment surface the order opens. `reference` is your own id for the order, and `metadata` holds up to 50 string pairs of your own: the order and its webhook events carry both back.
364
+ * @summary Create a card order
365
+ * {@link /v1/card/orders}
366
+ */
367
+ async function createCardOrder(data, headers, config = {}) {
368
+ const { client: request = client, ...requestConfig } = config;
369
+ const requestData = data;
370
+ return (await request({
371
+ method: "POST",
372
+ url: getCreateCardOrderUrl().url.toString(),
373
+ data: requestData,
374
+ ...requestConfig,
375
+ headers: {
376
+ ...headers,
377
+ ...requestConfig.headers
378
+ }
379
+ })).data;
380
+ }
381
+ /**
382
+ * Generated by Kubb (https://kubb.dev/).
383
+ * Do not edit manually.
384
+ */
155
385
  function getCreateCardQuoteUrl() {
156
386
  return {
157
387
  method: "POST",
@@ -159,7 +389,7 @@ function getCreateCardQuoteUrl() {
159
389
  };
160
390
  }
161
391
  /**
162
- * @description Returns a price estimate for a card spend: the crypto the buyer receives and the all-in fiat charged.
392
+ * @description Returns a price for a card purchase: the crypto that the buyer receives, the total fiat that the buyer pays, and the provider's fee. Depending on the provider, the fee is added to what the buyer pays or taken from the crypto the buyer receives. Send the `quote_id` to `POST /v1/card/orders`. A quote is valid for 15 minutes. The price is for the wallet of the session.
163
393
  * @summary Quote a card amount
164
394
  * {@link /v1/card/quote}
165
395
  */
@@ -180,22 +410,26 @@ async function createCardQuote(data, config = {}) {
180
410
  function getCreateCashAppOrderUrl() {
181
411
  return {
182
412
  method: "POST",
183
- url: `/v1/cashapp`
413
+ url: `/v1/cashapp/orders`
184
414
  };
185
415
  }
186
416
  /**
187
- * @description Opens a Cash App onramp order and returns it, including the Cash App payment url. Poll `GET /v1/cashapp/{id}` for status. The order delivers to the `wallet` in the body.
417
+ * @description Creates a Cash App order and returns it, with the Cash App payment URL. Send the buyer to the URL to pay, then poll `GET /v1/cashapp/orders/{id}`. The order delivers to the wallet of the session. The request needs an `Idempotency-Key` header, and a second request with the same key and body returns the same order. The same key with a different body returns `idempotency_key_mismatch`. A request sent while the first request with its key is still running returns `idempotency_key_in_use`: send it again shortly.
188
418
  * @summary Create a Cash App order
189
- * {@link /v1/cashapp}
419
+ * {@link /v1/cashapp/orders}
190
420
  */
191
- async function createCashAppOrder(data, config = {}) {
421
+ async function createCashAppOrder(data, headers, config = {}) {
192
422
  const { client: request = client, ...requestConfig } = config;
193
423
  const requestData = data;
194
424
  return (await request({
195
425
  method: "POST",
196
426
  url: getCreateCashAppOrderUrl().url.toString(),
197
427
  data: requestData,
198
- ...requestConfig
428
+ ...requestConfig,
429
+ headers: {
430
+ ...headers,
431
+ ...requestConfig.headers
432
+ }
199
433
  })).data;
200
434
  }
201
435
  /**
@@ -209,7 +443,7 @@ function getCreateCashAppQuoteUrl() {
209
443
  };
210
444
  }
211
445
  /**
212
- * @description Returns a pricing preview for a Cash App order — the destination amount, the fee, and the fee in basis points. Every chain is a valid `destination_chain`. Read the amount against `destination.token` and `destination.decimals` rather than the payout you configured.
446
+ * @description Returns a price for a Cash App order: the destination amount, the fee, and the fee in basis points. Every chain is a valid `destination.chain`.
213
447
  * @summary Quote a Cash App order
214
448
  * {@link /v1/cashapp/quote}
215
449
  */
@@ -227,23 +461,23 @@ async function createCashAppQuote(data, config = {}) {
227
461
  * Generated by Kubb (https://kubb.dev/).
228
462
  * Do not edit manually.
229
463
  */
230
- function getCreateExchangeWithdrawQuoteUrl(exchange) {
464
+ function getCreateStripeAuthIntentUrl() {
231
465
  return {
232
466
  method: "POST",
233
- url: `/v1/exchange/${exchange}/withdraw/quote`
467
+ url: `/v1/stripe/auth-intents`
234
468
  };
235
469
  }
236
470
  /**
237
- * @description Quotes a USDC withdrawal from the connected exchange to a deposit address that settles to the chosen destination. The returned `id` is the handle the withdraw call executes.
238
- * @summary Quote an exchange withdrawal
239
- * {@link /v1/exchange/:exchange/withdraw/quote}
471
+ * @description Starts a Link authentication for the email address of the buyer. The Stripe session that `POST /v1/stripe/tokens` starts belongs to the `wallet` in this request. Returns the id to give to the `authenticate(...)` function of the client SDK, and the time the id expires.
472
+ * @summary Start a Stripe Link authentication
473
+ * {@link /v1/stripe/auth-intents}
240
474
  */
241
- async function createExchangeWithdrawQuote(exchange, data, config = {}) {
475
+ async function createStripeAuthIntent(data, config = {}) {
242
476
  const { client: request = client, ...requestConfig } = config;
243
477
  const requestData = data;
244
478
  return (await request({
245
479
  method: "POST",
246
- url: getCreateExchangeWithdrawQuoteUrl(exchange).url.toString(),
480
+ url: getCreateStripeAuthIntentUrl().url.toString(),
247
481
  data: requestData,
248
482
  ...requestConfig
249
483
  })).data;
@@ -252,24 +486,22 @@ async function createExchangeWithdrawQuote(exchange, data, config = {}) {
252
486
  * Generated by Kubb (https://kubb.dev/).
253
487
  * Do not edit manually.
254
488
  */
255
- function getCreateStripeAuthIntentUrl() {
489
+ function getCreateStripeCustomerUrl(id) {
256
490
  return {
257
491
  method: "POST",
258
- url: `/v1/stripe/auth-intent`
492
+ url: `/v1/stripe/customers/${id}`
259
493
  };
260
494
  }
261
495
  /**
262
- * @description Opens a Link OAuth intent for the buyer's email and returns its id (handed to the client SDK's `authenticate(...)`) plus its expiry.
263
- * @summary Open a Stripe Link auth intent
264
- * {@link /v1/stripe/auth-intent}
496
+ * @description Checks that the crypto customer exists, then keeps the customer id for the wallet of the session.
497
+ * @summary Keep a Stripe crypto customer
498
+ * {@link /v1/stripe/customers/:id}
265
499
  */
266
- async function createStripeAuthIntent(data, config = {}) {
500
+ async function createStripeCustomer(id, config = {}) {
267
501
  const { client: request = client, ...requestConfig } = config;
268
- const requestData = data;
269
502
  return (await request({
270
503
  method: "POST",
271
- url: getCreateStripeAuthIntentUrl().url.toString(),
272
- data: requestData,
504
+ url: getCreateStripeCustomerUrl(id).url.toString(),
273
505
  ...requestConfig
274
506
  })).data;
275
507
  }
@@ -277,23 +509,23 @@ async function createStripeAuthIntent(data, config = {}) {
277
509
  * Generated by Kubb (https://kubb.dev/).
278
510
  * Do not edit manually.
279
511
  */
280
- function getCreateStripeCustomerUrl(crypto_customer_id) {
512
+ function getCreateStripeQuoteUrl() {
281
513
  return {
282
514
  method: "POST",
283
- url: `/v1/stripe/customer/${crypto_customer_id}`
515
+ url: `/v1/stripe/quote`
284
516
  };
285
517
  }
286
518
  /**
287
- * @description Validates the crypto customer exists and persists the customer id onto the session so `/status` can re-derive it after a reopen.
288
- * @summary Persist a Stripe crypto customer
289
- * {@link /v1/stripe/customer/:crypto_customer_id}
519
+ * @description Returns a price for an `amount` in fiat. `currency` is `USD` or `EUR`. Every chain is a valid `destination.chain`. Calm prices USDC on the network where the purchase settles, the same network that `resolveStripeDestination` returns. A token other than USDC, or a chain the onramp does not serve, is priced on the origin network, and a `EUR` quote for any chain except Ethereum is priced on Ethereum. The response has the total that the buyer pays in `source`, the crypto that the buyer receives in `destination`, the parts of the fee in the source currency, and the time Calm read the rate. Stripe sets the final amounts when you open the session.
520
+ * @summary Quote a Stripe onramp amount
521
+ * {@link /v1/stripe/quote}
290
522
  */
291
- async function createStripeCustomer(crypto_customer_id, data, config = {}) {
523
+ async function createStripeQuote(data, config = {}) {
292
524
  const { client: request = client, ...requestConfig } = config;
293
525
  const requestData = data;
294
526
  return (await request({
295
527
  method: "POST",
296
- url: getCreateStripeCustomerUrl(crypto_customer_id).url.toString(),
528
+ url: getCreateStripeQuoteUrl().url.toString(),
297
529
  data: requestData,
298
530
  ...requestConfig
299
531
  })).data;
@@ -305,13 +537,13 @@ async function createStripeCustomer(crypto_customer_id, data, config = {}) {
305
537
  function getCreateStripeSessionUrl() {
306
538
  return {
307
539
  method: "POST",
308
- url: `/v1/stripe/session`
540
+ url: `/v1/stripe/sessions`
309
541
  };
310
542
  }
311
543
  /**
312
- * @description Opens a headless onramp session. Returns Stripe's `session_id` (fed to the client SDK's `performCheckout`) alongside a Calm `order_id` to poll via `GET .../stripe/order/:id`. Every chain is a valid `destination_chain`. Pass exactly one of `source_amount` / `destination_amount`.
544
+ * @description Opens an onramp session. Returns the Stripe `session_id` for the `performCheckout` function of the client SDK, and a Calm `order_id` to poll at `GET /v1/stripe/orders/{id}`. Every chain is a valid `destination.chain`. `amount` is the fiat amount, and `currency` is `USD` or `EUR`: give the session the same `currency` as `resolveStripeDestination`. `status` is `requires_payment_method` until the checkout.
313
545
  * @summary Open a Stripe onramp session
314
- * {@link /v1/stripe/session}
546
+ * {@link /v1/stripe/sessions}
315
547
  */
316
548
  async function createStripeSession(data, config = {}) {
317
549
  const { client: request = client, ...requestConfig } = config;
@@ -334,8 +566,8 @@ function getCreateStripeTokensUrl() {
334
566
  };
335
567
  }
336
568
  /**
337
- * @description Exchanges a consented auth intent for the per-user OAuth tokens and stores them server-side. Returns 204; the access token never reaches the browser. The bound intent must match this session.
338
- * @summary Exchange an auth intent for tokens
569
+ * @description Exchanges a consented authentication intent for the OAuth tokens of the buyer, and keeps the tokens on the server. The response sets the `calm_stripe_session` cookie, which the other Stripe operations need. The cookie is `HttpOnly`, and the tokens do not go to the browser. The session is bound to the wallet of the authentication intent and to the publishable key, and it is valid for one hour after its last use.
570
+ * @summary Exchange an authentication intent for a Stripe session
339
571
  * {@link /v1/stripe/tokens}
340
572
  */
341
573
  async function createStripeTokens(data, config = {}) {
@@ -359,7 +591,7 @@ function getCreateVirtualAccountUrl() {
359
591
  };
360
592
  }
361
593
  /**
362
- * @description Provisions a virtual account for a `(currency, destination chain, payout token)` triple. Repeating a triple returns the account that already exists. Changing `destination_token` on the same currency and chain provisions a separate account with its own bank details. Every chain is accepted. Requires an approved identity verification. Returns 204; refetch the list to see the new account.
594
+ * @description Creates a virtual account for one currency, one destination chain and one payout token. The same three values return the account that exists already. A different `destination.token` on the same currency and chain creates a separate account, with its own bank details. Every chain is valid. The email of the session needs accepted terms of service and an approved identity verification, and the account pays out to the wallet of the session. Read the list again to see the new account.
363
595
  * @summary Create a virtual account
364
596
  * {@link /v1/virtual-accounts}
365
597
  */
@@ -377,23 +609,22 @@ async function createVirtualAccount(data, config = {}) {
377
609
  * Generated by Kubb (https://kubb.dev/).
378
610
  * Do not edit manually.
379
611
  */
380
- function getDisconnectExchangeUrl(exchange) {
612
+ function getGetAppUrl() {
381
613
  return {
382
- method: "DELETE",
383
- url: `/v1/exchange/${exchange}`
614
+ method: "GET",
615
+ url: `/v1/app`
384
616
  };
385
617
  }
386
618
  /**
387
- * @description Disconnects an exchange and returns 204. Idempotent: disconnecting an already-disconnected exchange still returns 204.
388
- * @summary Disconnect an exchange
389
- * {@link /v1/exchange/:exchange}
619
+ * @description Gets the name and logo of the app that owns the publishable key, as set in the dashboard. `logo_url` is an absolute URL of the logo, a 256×256 WebP, and is Calm's logo when the app has none.
620
+ * @summary Get the app
621
+ * {@link /v1/app}
390
622
  */
391
- async function disconnectExchange(exchange, params, config = {}) {
623
+ async function getApp(config = {}) {
392
624
  const { client: request = client, ...requestConfig } = config;
393
625
  return (await request({
394
- method: "DELETE",
395
- url: getDisconnectExchangeUrl(exchange).url.toString(),
396
- params,
626
+ method: "GET",
627
+ url: getGetAppUrl().url.toString(),
397
628
  ...requestConfig
398
629
  })).data;
399
630
  }
@@ -401,24 +632,23 @@ async function disconnectExchange(exchange, params, config = {}) {
401
632
  * Generated by Kubb (https://kubb.dev/).
402
633
  * Do not edit manually.
403
634
  */
404
- function getExecuteExchangeWithdrawalUrl(exchange) {
635
+ function getGetBalancesUrl() {
405
636
  return {
406
- method: "POST",
407
- url: `/v1/exchange/${exchange}/withdraw`
637
+ method: "GET",
638
+ url: `/v1/balances`
408
639
  };
409
640
  }
410
641
  /**
411
- * @description Executes a quoted withdrawal. Returns the withdrawal (now `pending`), or `{ requires_2fa: true }` when the exchange demands a 2FA code — re-submit with `twofa`.
412
- * @summary Execute an exchange withdrawal
413
- * {@link /v1/exchange/:exchange/withdraw}
642
+ * @description Returns the token balances of the wallet on every supported chain (1, 8453, 999, 1337, 4326, 143, 137, 42161, 4663, 3586256). `balance` is the amount on the chain, in base units. To get an amount to show, move the decimal point of `balance` to the left by `decimals` places. `token` is the symbol, the same value that `destination.token` takes on the other operations. `address` identifies the token on that chain: a contract on an EVM chain, and a spot token id on HyperCore.
643
+ * @summary List the wallet balances
644
+ * {@link /v1/balances}
414
645
  */
415
- async function executeExchangeWithdrawal(exchange, data, config = {}) {
646
+ async function getBalances(params, config = {}) {
416
647
  const { client: request = client, ...requestConfig } = config;
417
- const requestData = data;
418
648
  return (await request({
419
- method: "POST",
420
- url: getExecuteExchangeWithdrawalUrl(exchange).url.toString(),
421
- data: requestData,
649
+ method: "GET",
650
+ url: getGetBalancesUrl().url.toString(),
651
+ params,
422
652
  ...requestConfig
423
653
  })).data;
424
654
  }
@@ -426,23 +656,22 @@ async function executeExchangeWithdrawal(exchange, data, config = {}) {
426
656
  * Generated by Kubb (https://kubb.dev/).
427
657
  * Do not edit manually.
428
658
  */
429
- function getGetBalancesUrl() {
659
+ function getGetBlinkConfigUrl() {
430
660
  return {
431
661
  method: "GET",
432
- url: `/v1/balances`
662
+ url: `/v1/blink/config`
433
663
  };
434
664
  }
435
665
  /**
436
- * @description Returns the wallet's token balances on every supported chain (1, 8453, 999, 1337, 4326, 143, 137, 42161), each with its USD value.
437
- * @summary List wallet balances
438
- * {@link /v1/balances}
666
+ * @description Returns the settings that open the hosted deposit flow. The values are different in each environment. The merchant identifier only names the merchant; it does not authorize anything.
667
+ * @summary Read the runtime config
668
+ * {@link /v1/blink/config}
439
669
  */
440
- async function getBalances(params, config = {}) {
670
+ async function getBlinkConfig(config = {}) {
441
671
  const { client: request = client, ...requestConfig } = config;
442
672
  return (await request({
443
673
  method: "GET",
444
- url: getGetBalancesUrl().url.toString(),
445
- params,
674
+ url: getGetBlinkConfigUrl().url.toString(),
446
675
  ...requestConfig
447
676
  })).data;
448
677
  }
@@ -450,22 +679,22 @@ async function getBalances(params, config = {}) {
450
679
  * Generated by Kubb (https://kubb.dev/).
451
680
  * Do not edit manually.
452
681
  */
453
- function getGetBlinkConfigUrl() {
682
+ function getGetCardCustomerUrl() {
454
683
  return {
455
684
  method: "GET",
456
- url: `/v1/blink/config`
685
+ url: `/v1/card/customer`
457
686
  };
458
687
  }
459
688
  /**
460
- * @description Returns the environment-specific settings the SDK needs to open the hosted deposit flow. A null host means the SDK should use its bundled default; the merchant identifier is a warm-up hint and carries no authority.
461
- * @summary Get the deposit-rail runtime config
462
- * {@link /v1/blink/config}
689
+ * @description Returns the billing details that the buyer of the session used for their last card purchase, so that the card form can show them.
690
+ * @summary Read the saved card customer
691
+ * {@link /v1/card/customer}
463
692
  */
464
- async function getBlinkConfig(config = {}) {
693
+ async function getCardCustomer(config = {}) {
465
694
  const { client: request = client, ...requestConfig } = config;
466
695
  return (await request({
467
696
  method: "GET",
468
- url: getGetBlinkConfigUrl().url.toString(),
697
+ url: getGetCardCustomerUrl().url.toString(),
469
698
  ...requestConfig
470
699
  })).data;
471
700
  }
@@ -473,22 +702,22 @@ async function getBlinkConfig(config = {}) {
473
702
  * Generated by Kubb (https://kubb.dev/).
474
703
  * Do not edit manually.
475
704
  */
476
- function getGetCardOrderUrl(id) {
705
+ function getGetCardFcaRequirementsUrl() {
477
706
  return {
478
707
  method: "GET",
479
- url: `/v1/card/orders/${id}`
708
+ url: `/v1/card/identity-verification/fca/requirements`
480
709
  };
481
710
  }
482
711
  /**
483
- * @description Returns the status of one card order, scoped to the `wallet` in the query.
484
- * @summary Get card order
485
- * {@link /v1/card/orders/:id}
712
+ * @description Returns the content to show the buyer for the step that `status` names: the questions of one of the two quizzes, the text of the investor agreement, the end of the cooling-off period, or the retry block. Show the questions and the agreement with no change, because they are the regulated text of the provider. This API stores nothing that it reads here. On a deployment where the FCA journey of this card provider is off, the response is 404. Off is the default, because the journey waits for a UK compliance decision.
713
+ * @summary Read the current step of the UK investor-categorisation journey
714
+ * {@link /v1/card/identity-verification/fca/requirements}
486
715
  */
487
- async function getCardOrder(id, params, config = {}) {
716
+ async function getCardFcaRequirements(params, config = {}) {
488
717
  const { client: request = client, ...requestConfig } = config;
489
718
  return (await request({
490
719
  method: "GET",
491
- url: getGetCardOrderUrl(id).url.toString(),
720
+ url: getGetCardFcaRequirementsUrl().url.toString(),
492
721
  params,
493
722
  ...requestConfig
494
723
  })).data;
@@ -497,23 +726,22 @@ async function getCardOrder(id, params, config = {}) {
497
726
  * Generated by Kubb (https://kubb.dev/).
498
727
  * Do not edit manually.
499
728
  */
500
- function getGetCashAppOrderUrl(id) {
729
+ function getGetCardFcaStatusUrl() {
501
730
  return {
502
731
  method: "GET",
503
- url: `/v1/cashapp/${id}`
732
+ url: `/v1/card/identity-verification/fca/status`
504
733
  };
505
734
  }
506
735
  /**
507
- * @description Returns a Cash App order by id, including its current status and payment url.
508
- * @summary Get a Cash App order
509
- * {@link /v1/cashapp/:id}
736
+ * @description Reports the step of the journey that the buyer is on, and sends nothing to the provider. A flow that starts again reads this operation first, because the journey has a cooling-off period that the buyer must wait out. On a deployment where the FCA journey of this card provider is off, the response is 404. Off is the default, because the journey waits for a UK compliance decision.
737
+ * @summary Read where the buyer stands in the UK journey
738
+ * {@link /v1/card/identity-verification/fca/status}
510
739
  */
511
- async function getCashAppOrder(id, params, config = {}) {
740
+ async function getCardFcaStatus(config = {}) {
512
741
  const { client: request = client, ...requestConfig } = config;
513
742
  return (await request({
514
743
  method: "GET",
515
- url: getGetCashAppOrderUrl(id).url.toString(),
516
- params,
744
+ url: getGetCardFcaStatusUrl().url.toString(),
517
745
  ...requestConfig
518
746
  })).data;
519
747
  }
@@ -521,23 +749,22 @@ async function getCashAppOrder(id, params, config = {}) {
521
749
  * Generated by Kubb (https://kubb.dev/).
522
750
  * Do not edit manually.
523
751
  */
524
- function getGetExchangeUrl(exchange) {
752
+ function getGetCardOrderUrl(id) {
525
753
  return {
526
754
  method: "GET",
527
- url: `/v1/exchange/${exchange}`
755
+ url: `/v1/card/orders/${id}`
528
756
  };
529
757
  }
530
758
  /**
531
- * @description Returns the connection status for an exchange. Not-connected is a 200 with `connected: false` — poll this to drive the connect UI.
532
- * @summary Get exchange connection status
533
- * {@link /v1/exchange/:exchange}
759
+ * @description Returns the state of one card order. The session must hold the email address that the order belongs to. `next_action` names what the buyer does next, and is `null` once the buyer has nothing left to do. `routed` is `true` when the purchase needs two steps to reach the destination chain. In that case the card provider pays `settlement.intake_address`, and `status` describes the card step only.
760
+ * @summary Read a card order
761
+ * {@link /v1/card/orders/:id}
534
762
  */
535
- async function getExchange(exchange, params, config = {}) {
763
+ async function getCardOrder(id, config = {}) {
536
764
  const { client: request = client, ...requestConfig } = config;
537
765
  return (await request({
538
766
  method: "GET",
539
- url: getGetExchangeUrl(exchange).url.toString(),
540
- params,
767
+ url: getGetCardOrderUrl(id).url.toString(),
541
768
  ...requestConfig
542
769
  })).data;
543
770
  }
@@ -545,23 +772,22 @@ async function getExchange(exchange, params, config = {}) {
545
772
  * Generated by Kubb (https://kubb.dev/).
546
773
  * Do not edit manually.
547
774
  */
548
- function getGetExchangeAssetsUrl(exchange) {
775
+ function getGetCardReturnUrl(orderId, outcome) {
549
776
  return {
550
777
  method: "GET",
551
- url: `/v1/exchange/${exchange}/assets`
778
+ url: `/v1/card/return/${orderId}/${outcome}`
552
779
  };
553
780
  }
554
781
  /**
555
- * @description Returns the assets the connected exchange can pay out and, per asset, the networks it withdraws to with their live per-network limits.
556
- * @summary List exchange withdrawable assets
557
- * {@link /v1/exchange/:exchange/assets}
782
+ * @description The page that the authentication step of the card provider returns to. The page sends the result to the page that holds it, then closes itself. A client does not call this operation, and the response is HTML and not JSON.
783
+ * @summary Card authentication landing page
784
+ * {@link /v1/card/return/:orderId/:outcome}
558
785
  */
559
- async function getExchangeAssets(exchange, params, config = {}) {
786
+ async function getCardReturn(orderId, outcome, config = {}) {
560
787
  const { client: request = client, ...requestConfig } = config;
561
788
  return (await request({
562
789
  method: "GET",
563
- url: getGetExchangeAssetsUrl(exchange).url.toString(),
564
- params,
790
+ url: getGetCardReturnUrl(orderId, outcome).url.toString(),
565
791
  ...requestConfig
566
792
  })).data;
567
793
  }
@@ -569,23 +795,45 @@ async function getExchangeAssets(exchange, params, config = {}) {
569
795
  * Generated by Kubb (https://kubb.dev/).
570
796
  * Do not edit manually.
571
797
  */
572
- function getGetExchangeWithdrawalUrl(exchange, id) {
798
+ function getGetCashAppOrderUrl(id) {
573
799
  return {
574
800
  method: "GET",
575
- url: `/v1/exchange/${exchange}/withdraw/${id}`
801
+ url: `/v1/cashapp/orders/${id}`
576
802
  };
577
803
  }
578
804
  /**
579
- * @description Returns a withdrawal by id, including its status and — once broadcast — its transaction hash.
580
- * @summary Get an exchange withdrawal
581
- * {@link /v1/exchange/:exchange/withdraw/:id}
805
+ * @description Returns one Cash App order, with its state and its payment URL.
806
+ * @summary Read a Cash App order
807
+ * {@link /v1/cashapp/orders/:id}
582
808
  */
583
- async function getExchangeWithdrawal(exchange, id, params, config = {}) {
809
+ async function getCashAppOrder(id, config = {}) {
584
810
  const { client: request = client, ...requestConfig } = config;
585
811
  return (await request({
586
812
  method: "GET",
587
- url: getGetExchangeWithdrawalUrl(exchange, id).url.toString(),
588
- params,
813
+ url: getGetCashAppOrderUrl(id).url.toString(),
814
+ ...requestConfig
815
+ })).data;
816
+ }
817
+ /**
818
+ * Generated by Kubb (https://kubb.dev/).
819
+ * Do not edit manually.
820
+ */
821
+ function getGetEmailSessionUrl() {
822
+ return {
823
+ method: "GET",
824
+ url: `/v1/auth/session`
825
+ };
826
+ }
827
+ /**
828
+ * @description Returns the email address and the wallet of the session. Each request makes the 30-day period of the session start again. A token for a different publishable key does not work here.
829
+ * @summary Read the session
830
+ * {@link /v1/auth/session}
831
+ */
832
+ async function getEmailSession(config = {}) {
833
+ const { client: request = client, ...requestConfig } = config;
834
+ return (await request({
835
+ method: "GET",
836
+ url: getGetEmailSessionUrl().url.toString(),
589
837
  ...requestConfig
590
838
  })).data;
591
839
  }
@@ -600,8 +848,8 @@ function getGetFxRatesUrl() {
600
848
  };
601
849
  }
602
850
  /**
603
- * @description Returns USD→currency rates for showing amounts in the app's display currency. It is the only operation that takes no publishable key.
604
- * @summary Get display-currency exchange rates
851
+ * @description Returns USD to currency rates, to show an amount in the display currency of the app.
852
+ * @summary Read the exchange rates
605
853
  * {@link /v1/fx}
606
854
  */
607
855
  async function getFxRates(config = {}) {
@@ -618,22 +866,20 @@ async function getFxRates(config = {}) {
618
866
  */
619
867
  function getGetIdentityVerificationUrlUrl() {
620
868
  return {
621
- method: "POST",
869
+ method: "GET",
622
870
  url: `/v1/virtual-accounts/identity-verification`
623
871
  };
624
872
  }
625
873
  /**
626
- * @description Returns the hosted identity-verification URL for the wallet. Present it to the user, then poll `GET /v1/virtual-accounts/status` for the outcome.
627
- * @summary Get the identity-verification URL
874
+ * @description Returns the URL where the buyer verifies an identity. Open the URL for the buyer, then poll `GET /v1/virtual-accounts/status` for the result.
875
+ * @summary Read the identity-verification URL
628
876
  * {@link /v1/virtual-accounts/identity-verification}
629
877
  */
630
- async function getIdentityVerificationUrl(data, config = {}) {
878
+ async function getIdentityVerificationUrl(config = {}) {
631
879
  const { client: request = client, ...requestConfig } = config;
632
- const requestData = data;
633
880
  return (await request({
634
- method: "POST",
881
+ method: "GET",
635
882
  url: getGetIdentityVerificationUrlUrl().url.toString(),
636
- data: requestData,
637
883
  ...requestConfig
638
884
  })).data;
639
885
  }
@@ -648,8 +894,8 @@ function getGetStripeConfigUrl() {
648
894
  };
649
895
  }
650
896
  /**
651
- * @description Returns the environment's Stripe publishable key, which the SDK feeds to `loadCryptoOnrampAndInitialize(pk)` on init.
652
- * @summary Get the Stripe config
897
+ * @description Returns the Stripe publishable key of the environment. Give it to `loadCryptoOnrampAndInitialize` in the Stripe client SDK.
898
+ * @summary Read the Stripe publishable key
653
899
  * {@link /v1/stripe/config}
654
900
  */
655
901
  async function getStripeConfig(config = {}) {
@@ -664,23 +910,22 @@ async function getStripeConfig(config = {}) {
664
910
  * Generated by Kubb (https://kubb.dev/).
665
911
  * Do not edit manually.
666
912
  */
667
- function getGetStripeCustomerStatusUrl(crypto_customer_id) {
913
+ function getGetStripeCustomerStatusUrl(id) {
668
914
  return {
669
915
  method: "GET",
670
- url: `/v1/stripe/customer/${crypto_customer_id}`
916
+ url: `/v1/stripe/customers/${id}`
671
917
  };
672
918
  }
673
919
  /**
674
- * @description Reads the crypto customer's KYC and document-verification statuses (the two the SDK branches on) plus its provided fields — the same projection as the customer POST, but a pure read with no persistence. The SDK polls it while the verifying step is on screen.
675
- * @summary Poll a Stripe crypto customer's status
676
- * {@link /v1/stripe/customer/:crypto_customer_id}
920
+ * @description Returns the identity-verification state and the document-verification state of the crypto customer, the fields that the buyer gave, the KYC region, and the state of the `l2` tier. Read it again while a verification page is open. This operation changes no data. `kyc_region` is `null` until the buyer gives basic identity details, then `us` or `eu` from the country of residence. An `eu` buyer can buy when `l2_status` is `verified` and `provided_fields` has both `identifiers` and `attestation`. `status` and `next_action` say what to do next, so a client does not need these rules: `status` is `requires_action` while the buyer has a step to complete, and `next_action.type` names it. `collect_identity` collects basic identity details, `collect_identifiers` the national identification numbers, `collect_attestation` the declaration, `verify_document` a photo ID and a selfie, and `await_verification` means Stripe is reviewing, so read the customer again. `verified` means the buyer can buy. `rejected` and `not_available` end the flow, and `next_action` is `null` for all three.
921
+ * @summary Read the identity-verification progress
922
+ * {@link /v1/stripe/customers/:id}
677
923
  */
678
- async function getStripeCustomerStatus(crypto_customer_id, params, config = {}) {
924
+ async function getStripeCustomerStatus(id, config = {}) {
679
925
  const { client: request = client, ...requestConfig } = config;
680
926
  return (await request({
681
927
  method: "GET",
682
- url: getGetStripeCustomerStatusUrl(crypto_customer_id).url.toString(),
683
- params,
928
+ url: getGetStripeCustomerStatusUrl(id).url.toString(),
684
929
  ...requestConfig
685
930
  })).data;
686
931
  }
@@ -691,20 +936,19 @@ async function getStripeCustomerStatus(crypto_customer_id, params, config = {})
691
936
  function getGetStripeOrderUrl(id) {
692
937
  return {
693
938
  method: "GET",
694
- url: `/v1/stripe/order/${id}`
939
+ url: `/v1/stripe/orders/${id}`
695
940
  };
696
941
  }
697
942
  /**
698
- * @description Returns the settlement status of one onramp order, scoped to the wallet in the path. Poll it after checkout until the order reaches a terminal state — `fulfillment_complete`, `rejected`, or `error`.
699
- * @summary Get a Stripe onramp order
700
- * {@link /v1/stripe/order/:id}
943
+ * @description Returns the state of one onramp order. The operation finds only the orders of the wallet of the session. After the checkout, send this request again until the order is in a final state: `succeeded` or `failed`. `requires_payment_method` means the checkout has not run, and `pending` means Stripe is delivering the crypto.
944
+ * @summary Read a Stripe onramp order
945
+ * {@link /v1/stripe/orders/:id}
701
946
  */
702
- async function getStripeOrder(id, params, config = {}) {
947
+ async function getStripeOrder(id, config = {}) {
703
948
  const { client: request = client, ...requestConfig } = config;
704
949
  return (await request({
705
950
  method: "GET",
706
951
  url: getGetStripeOrderUrl(id).url.toString(),
707
- params,
708
952
  ...requestConfig
709
953
  })).data;
710
954
  }
@@ -712,23 +956,22 @@ async function getStripeOrder(id, params, config = {}) {
712
956
  * Generated by Kubb (https://kubb.dev/).
713
957
  * Do not edit manually.
714
958
  */
715
- function getGetStripeQuoteUrl() {
959
+ function getGetTermsOfServiceUrlUrl() {
716
960
  return {
717
961
  method: "GET",
718
- url: `/v1/stripe/quote`
962
+ url: `/v1/virtual-accounts/terms-of-service`
719
963
  };
720
964
  }
721
965
  /**
722
- * @description Returns an informational price estimate for a source amount (fiat spend) or destination amount (target USDC) — the destination amount, the buyer's all-in source total, the fee components, and when the rate was fetched. Pin exactly one. No authenticated buyer is needed. Display-only: the final amounts are set at session creation.
723
- * @summary Quote a Stripe onramp amount
724
- * {@link /v1/stripe/quote}
966
+ * @description Returns the URL where the buyer accepts the terms of service. Open the URL for the buyer, then poll `GET /v1/virtual-accounts/status`.
967
+ * @summary Read the terms-of-service URL
968
+ * {@link /v1/virtual-accounts/terms-of-service}
725
969
  */
726
- async function getStripeQuote(params, config = {}) {
970
+ async function getTermsOfServiceUrl(config = {}) {
727
971
  const { client: request = client, ...requestConfig } = config;
728
972
  return (await request({
729
973
  method: "GET",
730
- url: getGetStripeQuoteUrl().url.toString(),
731
- params,
974
+ url: getGetTermsOfServiceUrlUrl().url.toString(),
732
975
  ...requestConfig
733
976
  })).data;
734
977
  }
@@ -736,23 +979,22 @@ async function getStripeQuote(params, config = {}) {
736
979
  * Generated by Kubb (https://kubb.dev/).
737
980
  * Do not edit manually.
738
981
  */
739
- function getGetStripeStatusUrl() {
982
+ function getGetVirtualAccountStatusUrl() {
740
983
  return {
741
984
  method: "GET",
742
- url: `/v1/stripe/status`
985
+ url: `/v1/virtual-accounts/status`
743
986
  };
744
987
  }
745
988
  /**
746
- * @description Reports whether this wallet is still Link-authenticated and, once the customer POST has run, the persisted crypto customer id and the Link account email. An un-authenticated wallet is a 200 with `authenticated: false`, not a 401 — poll it to re-derive the Stripe session on a cold open.
747
- * @summary Get the wallet's Stripe login state
748
- * {@link /v1/stripe/status}
989
+ * @description Returns the bank onboarding state of the email of the session: if the buyer accepted the terms, and the state of the identity verification. The state belongs to the email address, so a buyer who onboarded in another app is already onboarded here. Until the email goes through `POST /v1/virtual-accounts/register`, the response is 404.
990
+ * @summary Read the onboarding status
991
+ * {@link /v1/virtual-accounts/status}
749
992
  */
750
- async function getStripeStatus(params, config = {}) {
993
+ async function getVirtualAccountStatus(config = {}) {
751
994
  const { client: request = client, ...requestConfig } = config;
752
995
  return (await request({
753
996
  method: "GET",
754
- url: getGetStripeStatusUrl().url.toString(),
755
- params,
997
+ url: getGetVirtualAccountStatusUrl().url.toString(),
756
998
  ...requestConfig
757
999
  })).data;
758
1000
  }
@@ -760,24 +1002,22 @@ async function getStripeStatus(params, config = {}) {
760
1002
  * Generated by Kubb (https://kubb.dev/).
761
1003
  * Do not edit manually.
762
1004
  */
763
- function getGetTermsOfServiceUrlUrl() {
1005
+ function getListCountriesUrl() {
764
1006
  return {
765
- method: "POST",
766
- url: `/v1/virtual-accounts/terms-of-service`
1007
+ method: "GET",
1008
+ url: `/v1/countries`
767
1009
  };
768
1010
  }
769
1011
  /**
770
- * @description Returns the hosted terms-of-service URL for the wallet. Present it to the user, then poll `GET /v1/virtual-accounts/status` for acceptance.
771
- * @summary Get the terms-of-service URL
772
- * {@link /v1/virtual-accounts/terms-of-service}
1012
+ * @description Lists the countries that a buyer can be in, in order of name. `code` is the 2-letter ISO-3166 code that the other operations take as `country`. `icon` is an absolute URL of the flag, as an SVG at the size to show.
1013
+ * @summary List the supported countries
1014
+ * {@link /v1/countries}
773
1015
  */
774
- async function getTermsOfServiceUrl(data, config = {}) {
1016
+ async function listCountries(config = {}) {
775
1017
  const { client: request = client, ...requestConfig } = config;
776
- const requestData = data;
777
1018
  return (await request({
778
- method: "POST",
779
- url: getGetTermsOfServiceUrlUrl().url.toString(),
780
- data: requestData,
1019
+ method: "GET",
1020
+ url: getListCountriesUrl().url.toString(),
781
1021
  ...requestConfig
782
1022
  })).data;
783
1023
  }
@@ -785,22 +1025,22 @@ async function getTermsOfServiceUrl(data, config = {}) {
785
1025
  * Generated by Kubb (https://kubb.dev/).
786
1026
  * Do not edit manually.
787
1027
  */
788
- function getGetVirtualAccountStatusUrl() {
1028
+ function getListPaymentMethodsUrl() {
789
1029
  return {
790
1030
  method: "GET",
791
- url: `/v1/virtual-accounts/status`
1031
+ url: `/v1/payment-methods`
792
1032
  };
793
1033
  }
794
1034
  /**
795
- * @description Returns the bank-onboarding facts for a wallet: verification status, terms acceptance, and event timestamps. 404 until the wallet has been through `POST /v1/virtual-accounts/register`.
796
- * @summary Get onboarding status
797
- * {@link /v1/virtual-accounts/status}
1035
+ * @description Lists the payment methods for a buyer in `country`, with one row for each method, in the order the app lists them, and bank transfer and Blink last. `currency` is the currency the buyer pays in, which the country decides, and the limits are in it. Send the `payment_method` value of a row to the quote operation and the checkout operation. `country` is a 2-letter ISO-3166 code from `GET /v1/countries`. Without `country`, the list is for the country of the buyer's IP address, or `US` where that is unknown, and `country` in the response names the country the list is for. For a country that Calm does not serve, the list is empty.
1036
+ * @summary List the payment methods
1037
+ * {@link /v1/payment-methods}
798
1038
  */
799
- async function getVirtualAccountStatus(params, config = {}) {
1039
+ async function listPaymentMethods(params, config = {}) {
800
1040
  const { client: request = client, ...requestConfig } = config;
801
1041
  return (await request({
802
1042
  method: "GET",
803
- url: getGetVirtualAccountStatusUrl().url.toString(),
1043
+ url: getListPaymentMethodsUrl().url.toString(),
804
1044
  params,
805
1045
  ...requestConfig
806
1046
  })).data;
@@ -809,22 +1049,22 @@ async function getVirtualAccountStatus(params, config = {}) {
809
1049
  * Generated by Kubb (https://kubb.dev/).
810
1050
  * Do not edit manually.
811
1051
  */
812
- function getListBlinkDepositsUrl() {
1052
+ function getListStripePaymentTokensUrl() {
813
1053
  return {
814
1054
  method: "GET",
815
- url: `/v1/blink/deposits`
1055
+ url: `/v1/stripe/payment-tokens`
816
1056
  };
817
1057
  }
818
1058
  /**
819
- * @description Returns the wallet's deposit history, newest first: every detected deposit with its current status, amounts and transaction hashes. An authorization that was never funded is not listed.
820
- * @summary List deposits
821
- * {@link /v1/blink/deposits}
1059
+ * @description Lists the payment methods that the customer has on file. Read this operation before you call `collectPaymentMethod`, to offer a method that the buyer used before. `card` holds the brand, the expiry and the last four digits when `type` is `card`, and is `null` otherwise.
1060
+ * @summary List the payment methods of the customer
1061
+ * {@link /v1/stripe/payment-tokens}
822
1062
  */
823
- async function listBlinkDeposits(params, config = {}) {
1063
+ async function listStripePaymentTokens(params, config = {}) {
824
1064
  const { client: request = client, ...requestConfig } = config;
825
1065
  return (await request({
826
1066
  method: "GET",
827
- url: getListBlinkDepositsUrl().url.toString(),
1067
+ url: getListStripePaymentTokensUrl().url.toString(),
828
1068
  params,
829
1069
  ...requestConfig
830
1070
  })).data;
@@ -833,24 +1073,23 @@ async function listBlinkDeposits(params, config = {}) {
833
1073
  * Generated by Kubb (https://kubb.dev/).
834
1074
  * Do not edit manually.
835
1075
  */
836
- function getListCardPaymentMethodsUrl() {
1076
+ function getListStripeWalletsUrl() {
837
1077
  return {
838
- method: "POST",
839
- url: `/v1/card/payment-methods`
1078
+ method: "GET",
1079
+ url: `/v1/stripe/wallets`
840
1080
  };
841
1081
  }
842
1082
  /**
843
- * @description Deprecated — use `POST /v1/payment-methods`, which takes the same body and returns the same rows. This path is kept working for integrations that have not moved yet and will be removed once they have.
844
- * @summary List card payment methods
845
- * {@link /v1/card/payment-methods}
1083
+ * @description Lists the crypto wallets in the Link account of the customer. Read this operation before you call `registerWalletAddress`, so that you do not register the same address two times.
1084
+ * @summary List the crypto wallets of the customer
1085
+ * {@link /v1/stripe/wallets}
846
1086
  */
847
- async function listCardPaymentMethods(data, config = {}) {
1087
+ async function listStripeWallets(params, config = {}) {
848
1088
  const { client: request = client, ...requestConfig } = config;
849
- const requestData = data;
850
1089
  return (await request({
851
- method: "POST",
852
- url: getListCardPaymentMethodsUrl().url.toString(),
853
- data: requestData,
1090
+ method: "GET",
1091
+ url: getListStripeWalletsUrl().url.toString(),
1092
+ params,
854
1093
  ...requestConfig
855
1094
  })).data;
856
1095
  }
@@ -858,22 +1097,22 @@ async function listCardPaymentMethods(data, config = {}) {
858
1097
  * Generated by Kubb (https://kubb.dev/).
859
1098
  * Do not edit manually.
860
1099
  */
861
- function getListCountriesUrl() {
1100
+ function getListVirtualAccountsUrl() {
862
1101
  return {
863
1102
  method: "GET",
864
- url: `/v1/countries`
1103
+ url: `/v1/virtual-accounts`
865
1104
  };
866
1105
  }
867
1106
  /**
868
- * @description Lists the countries a buyer can be in, ordered by name. `code` is the 2-letter ISO-3166 code the other routes take as `country`, `name` is its English display name, and `icon` is an absolute URL to its flag as an SVG sized to render as-is. The list follows what the rails actually serve rather than a set compiled into the API, so it grows on its own. A country absent from it is one no rail serves, so treat it as unavailable rather than trying it and reading the error.
869
- * @summary List supported countries
870
- * {@link /v1/countries}
1107
+ * @description Lists the virtual accounts of the wallet of the session, each one with the bank details that the buyer needs to send fiat. A wallet can hold more than one account for the same currency and chain, when the payout token is different. `destination.token` is the field that separates them, and the bank details of one account do not work for a different account.
1108
+ * @summary List the virtual accounts
1109
+ * {@link /v1/virtual-accounts}
871
1110
  */
872
- async function listCountries(config = {}) {
1111
+ async function listVirtualAccounts(config = {}) {
873
1112
  const { client: request = client, ...requestConfig } = config;
874
1113
  return (await request({
875
1114
  method: "GET",
876
- url: getListCountriesUrl().url.toString(),
1115
+ url: getListVirtualAccountsUrl().url.toString(),
877
1116
  ...requestConfig
878
1117
  })).data;
879
1118
  }
@@ -881,23 +1120,23 @@ async function listCountries(config = {}) {
881
1120
  * Generated by Kubb (https://kubb.dev/).
882
1121
  * Do not edit manually.
883
1122
  */
884
- function getListPaymentMethodsUrl() {
1123
+ function getRegisterVirtualAccountCustomerUrl() {
885
1124
  return {
886
1125
  method: "POST",
887
- url: `/v1/payment-methods`
1126
+ url: `/v1/virtual-accounts/register`
888
1127
  };
889
1128
  }
890
1129
  /**
891
- * @description Lists the payment methods available to a buyer, one row per method — the value the quote and checkout routes accept. `country` and `currency` are both required; a country that is not served returns an empty list. `currency` is the fiat the buyer pays in and filters the list, and is echoed back; it is not the unit of anything in the response. `min_amount` and `max_amount` are in `currency` — every method's limits are converted into the fiat you asked for and rounded up, so they can be rendered against the amount the buyer types with no further conversion. `icon` is an absolute URL to that method's mark, an SVG sized to render as-is. `payment_method` is an open string and the catalog varies by country, so render each row's `name` and `icon` and pass its `payment_method` straight back rather than matching against a fixed set.
892
- * @summary List payment methods
893
- * {@link /v1/payment-methods}
1130
+ * @description Registers the buyer of the session with their name. Calm takes the email address from the session, so the body carries only the name. The registration belongs to the email address, in every app: a buyer who registered in another app gets `already_registered`. Read `GET /v1/virtual-accounts/status` again to see the new state.
1131
+ * @summary Register the buyer
1132
+ * {@link /v1/virtual-accounts/register}
894
1133
  */
895
- async function listPaymentMethods(data, config = {}) {
1134
+ async function registerVirtualAccountCustomer(data, config = {}) {
896
1135
  const { client: request = client, ...requestConfig } = config;
897
1136
  const requestData = data;
898
1137
  return (await request({
899
1138
  method: "POST",
900
- url: getListPaymentMethodsUrl().url.toString(),
1139
+ url: getRegisterVirtualAccountCustomerUrl().url.toString(),
901
1140
  data: requestData,
902
1141
  ...requestConfig
903
1142
  })).data;
@@ -906,23 +1145,24 @@ async function listPaymentMethods(data, config = {}) {
906
1145
  * Generated by Kubb (https://kubb.dev/).
907
1146
  * Do not edit manually.
908
1147
  */
909
- function getListStripePaymentTokensUrl() {
1148
+ function getResolveStripeDestinationUrl() {
910
1149
  return {
911
- method: "GET",
912
- url: `/v1/stripe/payment-tokens`
1150
+ method: "POST",
1151
+ url: `/v1/stripe/destination`
913
1152
  };
914
1153
  }
915
1154
  /**
916
- * @description Returns the payment methods the customer has on file. Read it before `collectPaymentMethod` to offer a saved method instead of collecting a new one.
917
- * @summary List the customer's payment methods
918
- * {@link /v1/stripe/payment-tokens}
1155
+ * @description Returns where the purchase settles: the chain and token in `destination`, the Stripe name of the network in `network`, and the address that receives the crypto in `address`. If the onramp serves the chain, these are that chain and the wallet of the buyer. If the onramp does not serve the chain, these are the origin network and an intake address that sends the crypto on. A `EUR` purchase settles on Ethereum, so every chain except Ethereum gets an intake address. Give the quote and the session the same `currency`. Register the address with `registerWalletAddress` before you open a session.
1156
+ * @summary Resolve the Stripe destination for a chain
1157
+ * {@link /v1/stripe/destination}
919
1158
  */
920
- async function listStripePaymentTokens(params, config = {}) {
1159
+ async function resolveStripeDestination(data, config = {}) {
921
1160
  const { client: request = client, ...requestConfig } = config;
1161
+ const requestData = data;
922
1162
  return (await request({
923
- method: "GET",
924
- url: getListStripePaymentTokensUrl().url.toString(),
925
- params,
1163
+ method: "POST",
1164
+ url: getResolveStripeDestinationUrl().url.toString(),
1165
+ data: requestData,
926
1166
  ...requestConfig
927
1167
  })).data;
928
1168
  }
@@ -930,23 +1170,22 @@ async function listStripePaymentTokens(params, config = {}) {
930
1170
  * Generated by Kubb (https://kubb.dev/).
931
1171
  * Do not edit manually.
932
1172
  */
933
- function getListStripeWalletsUrl() {
1173
+ function getRevokeEmailSessionUrl() {
934
1174
  return {
935
- method: "GET",
936
- url: `/v1/stripe/wallets`
1175
+ method: "DELETE",
1176
+ url: `/v1/auth/session`
937
1177
  };
938
1178
  }
939
1179
  /**
940
- * @description Returns the crypto wallets registered to the customer's Link account. Read it before `registerWalletAddress` to avoid re-registering a known address.
941
- * @summary List the customer's crypto wallets
942
- * {@link /v1/stripe/wallets}
1180
+ * @description Ends the session that the token names. After this, the token stops working.
1181
+ * @summary End the session
1182
+ * {@link /v1/auth/session}
943
1183
  */
944
- async function listStripeWallets(params, config = {}) {
1184
+ async function revokeEmailSession(config = {}) {
945
1185
  const { client: request = client, ...requestConfig } = config;
946
1186
  return (await request({
947
- method: "GET",
948
- url: getListStripeWalletsUrl().url.toString(),
949
- params,
1187
+ method: "DELETE",
1188
+ url: getRevokeEmailSessionUrl().url.toString(),
950
1189
  ...requestConfig
951
1190
  })).data;
952
1191
  }
@@ -954,23 +1193,24 @@ async function listStripeWallets(params, config = {}) {
954
1193
  * Generated by Kubb (https://kubb.dev/).
955
1194
  * Do not edit manually.
956
1195
  */
957
- function getListVirtualAccountsUrl() {
1196
+ function getStartEmailLoginUrl() {
958
1197
  return {
959
- method: "GET",
960
- url: `/v1/virtual-accounts`
1198
+ method: "POST",
1199
+ url: `/v1/auth/email/start`
961
1200
  };
962
1201
  }
963
1202
  /**
964
- * @description Returns the wallet's virtual accounts, each with the bank-side deposit instructions the user needs to send fiat. A wallet can hold more than one account per `(currency, chain)` when the payout token differs; `destination_token` is what tells them apart, and the bank details are not interchangeable between them.
965
- * @summary List virtual accounts
966
- * {@link /v1/virtual-accounts}
1203
+ * @description Sends a six-digit code to the email address. The code is valid for 10 minutes and works only with the wallet in the request. Calm does not say if the address is already registered. If you send the request again, the new code replaces the old code. A second request for the same address within 30 seconds is refused. A new code does not reset the count of wrong attempts.
1204
+ * @summary Send a login code
1205
+ * {@link /v1/auth/email/start}
967
1206
  */
968
- async function listVirtualAccounts(params, config = {}) {
1207
+ async function startEmailLogin(data, config = {}) {
969
1208
  const { client: request = client, ...requestConfig } = config;
1209
+ const requestData = data;
970
1210
  return (await request({
971
- method: "GET",
972
- url: getListVirtualAccountsUrl().url.toString(),
973
- params,
1211
+ method: "POST",
1212
+ url: getStartEmailLoginUrl().url.toString(),
1213
+ data: requestData,
974
1214
  ...requestConfig
975
1215
  })).data;
976
1216
  }
@@ -978,110 +1218,86 @@ async function listVirtualAccounts(params, config = {}) {
978
1218
  * Generated by Kubb (https://kubb.dev/).
979
1219
  * Do not edit manually.
980
1220
  */
981
- function getRegisterWalletUrl() {
1221
+ function getVerifyEmailLoginUrl() {
982
1222
  return {
983
1223
  method: "POST",
984
- url: `/v1/virtual-accounts/register`
1224
+ url: `/v1/auth/email/verify`
985
1225
  };
986
1226
  }
987
1227
  /**
988
- * @description Submits the registration form (name + email) for the wallet. Returns 204; re-read `GET /v1/virtual-accounts/status` to pick up the new facts.
989
- * @summary Register a wallet
990
- * {@link /v1/virtual-accounts/register}
1228
+ * @description Exchanges the code for a session token. Send the token in the `Authorization` header as `Bearer <token>` on every operation behind the login. The token works only with the wallet and the publishable key in this request. The session is valid for 30 days after its last use. Each code works one time only. The buyer has seven attempts in 10 minutes, and a new code does not reset them.
1229
+ * @summary Exchange a login code for a session token
1230
+ * {@link /v1/auth/email/verify}
991
1231
  */
992
- async function registerWallet(data, config = {}) {
1232
+ async function verifyEmailLogin(data, config = {}) {
993
1233
  const { client: request = client, ...requestConfig } = config;
994
1234
  const requestData = data;
995
1235
  return (await request({
996
1236
  method: "POST",
997
- url: getRegisterWalletUrl().url.toString(),
1237
+ url: getVerifyEmailLoginUrl().url.toString(),
998
1238
  data: requestData,
999
1239
  ...requestConfig
1000
1240
  })).data;
1001
1241
  }
1002
- const checkoutCardMutationRequestCurrencyEnum = {
1003
- USD: "USD",
1004
- GBP: "GBP",
1005
- EUR: "EUR"
1006
- };
1007
- const checkoutCardMutationRequestDestinationChainEnum = {
1008
- "1": 1,
1009
- "8453": 8453,
1010
- "999": 999,
1011
- "1337": 1337,
1012
- "4326": 4326,
1013
- "143": 143,
1014
- "137": 137,
1015
- "42161": 42161
1242
+ /**
1243
+ * Generated by Kubb (https://kubb.dev/).
1244
+ * Do not edit manually.
1245
+ */
1246
+ const paymentMethodTypeEnum = {
1247
+ debit: "debit",
1248
+ credit: "credit",
1249
+ prepaid: "prepaid",
1250
+ store: "store"
1016
1251
  };
1017
- const checkoutCardMutationRequestDestinationTokenEnum = {
1018
- USDC: "USDC",
1019
- USDm: "USDm",
1020
- AUSD: "AUSD",
1021
- "USDC.e": "USDC.e"
1022
- };
1023
- const checkoutCardMutationRequestTradeTypeEnum = {
1024
- EXACT_INPUT: "EXACT_INPUT",
1025
- EXACT_OUTPUT: "EXACT_OUTPUT"
1026
- };
1027
- const connectExchangePathParamsExchangeEnum = { coinbase: "coinbase" };
1028
- const createBlinkSignatureMutationRequestDestinationChainEnum = {
1029
- "1": 1,
1030
- "8453": 8453,
1031
- "999": 999,
1032
- "1337": 1337,
1033
- "4326": 4326,
1034
- "143": 143,
1035
- "137": 137,
1036
- "42161": 42161
1037
- };
1038
- const createBlinkSignatureMutationRequestDestinationTokenEnum = {
1039
- USDC: "USDC",
1040
- USDm: "USDm",
1041
- AUSD: "AUSD",
1042
- "USDC.e": "USDC.e"
1043
- };
1044
- const createCardQuoteMutationRequestCurrencyEnum = {
1045
- USD: "USD",
1046
- GBP: "GBP",
1047
- EUR: "EUR"
1048
- };
1049
- const createCardQuoteMutationRequestDestinationChainEnum = {
1050
- "1": 1,
1051
- "8453": 8453,
1052
- "999": 999,
1053
- "1337": 1337,
1054
- "4326": 4326,
1055
- "143": 143,
1056
- "137": 137,
1057
- "42161": 42161
1252
+ /**
1253
+ * Generated by Kubb (https://kubb.dev/).
1254
+ * Do not edit manually.
1255
+ */
1256
+ const mountPaymentEnvironmentEnum = {
1257
+ staging: "staging",
1258
+ production: "production"
1058
1259
  };
1059
- const createCardQuoteMutationRequestDestinationTokenEnum = {
1060
- USDC: "USDC",
1061
- USDm: "USDm",
1062
- AUSD: "AUSD",
1063
- "USDC.e": "USDC.e"
1260
+ const verifyIdentityEnvironmentEnum = {
1261
+ staging: "staging",
1262
+ production: "production"
1064
1263
  };
1065
- const createCardQuoteMutationRequestTradeTypeEnum = {
1066
- EXACT_INPUT: "EXACT_INPUT",
1067
- EXACT_OUTPUT: "EXACT_OUTPUT"
1264
+ /**
1265
+ * Generated by Kubb (https://kubb.dev/).
1266
+ * Do not edit manually.
1267
+ */
1268
+ const cardOrderEventStatusEnum = {
1269
+ "card.requires_payment_method": "card.requires_payment_method",
1270
+ "card.requires_action": "card.requires_action",
1271
+ "card.pending": "card.pending",
1272
+ "card.charged": "card.charged",
1273
+ "card.succeeded": "card.succeeded",
1274
+ "card.disputed": "card.disputed",
1275
+ "card.declined": "card.declined",
1276
+ "card.failed": "card.failed",
1277
+ "card.refunded": "card.refunded"
1068
1278
  };
1069
- const createCashAppOrder200StatusEnum = {
1279
+ /**
1280
+ * Generated by Kubb (https://kubb.dev/).
1281
+ * Do not edit manually.
1282
+ */
1283
+ const cardOrderStatusEnum = {
1284
+ requires_payment_method: "requires_payment_method",
1285
+ requires_action: "requires_action",
1070
1286
  pending: "pending",
1071
- processing: "processing",
1072
- confirming: "confirming",
1073
- swapping: "swapping",
1074
- bridging: "bridging",
1075
- awaiting_approval: "awaiting_approval",
1076
- delivering: "delivering",
1077
- completed: "completed",
1287
+ charged: "charged",
1288
+ succeeded: "succeeded",
1289
+ disputed: "disputed",
1290
+ declined: "declined",
1078
1291
  failed: "failed",
1079
- refunding: "refunding",
1080
1292
  refunded: "refunded",
1081
- unfulfilled: "unfulfilled",
1082
- expired: "expired"
1293
+ verification_failed: "verification_failed",
1294
+ unavailable: "unavailable"
1083
1295
  };
1084
- const createCashAppOrderMutationRequestDestinationChainEnum = {
1296
+ /**
1297
+ * Generated by Kubb (https://kubb.dev/).
1298
+ * Do not edit manually.
1299
+ */
1300
+ const chainEnum = {
1085
1301
  "1": 1,
1086
1302
  "8453": 8453,
1087
1303
  "999": 999,
@@ -1089,182 +1305,1475 @@ const createCashAppOrderMutationRequestDestinationChainEnum = {
1089
1305
  "4326": 4326,
1090
1306
  "143": 143,
1091
1307
  "137": 137,
1092
- "42161": 42161
1093
- };
1094
- const createCashAppOrderMutationRequestDestinationTokenEnum = {
1095
- USDC: "USDC",
1096
- USDm: "USDm",
1097
- AUSD: "AUSD",
1098
- "USDC.e": "USDC.e"
1308
+ "42161": 42161,
1309
+ "4663": 4663,
1310
+ "3586256": 3586256
1099
1311
  };
1100
- const createCashAppQuoteMutationRequestDestinationChainEnum = {
1101
- "1": 1,
1102
- "8453": 8453,
1103
- "999": 999,
1104
- "1337": 1337,
1105
- "4326": 4326,
1106
- "143": 143,
1107
- "137": 137,
1108
- "42161": 42161
1312
+ /**
1313
+ * Generated by Kubb (https://kubb.dev/).
1314
+ * Do not edit manually.
1315
+ */
1316
+ const checkoutStripeSession400ErrorCodeEnum = {
1317
+ idempotency_key_required: "idempotency_key_required",
1318
+ validation_error: "validation_error"
1109
1319
  };
1110
- const createCashAppQuoteMutationRequestDestinationTokenEnum = {
1111
- USDC: "USDC",
1112
- USDm: "USDm",
1113
- AUSD: "AUSD",
1114
- "USDC.e": "USDC.e"
1320
+ /**
1321
+ * Generated by Kubb (https://kubb.dev/).
1322
+ * Do not edit manually.
1323
+ */
1324
+ const checkoutStripeSession401ErrorCodeEnum = {
1325
+ invalid_publishable_key: "invalid_publishable_key",
1326
+ publishable_key_missing: "publishable_key_missing",
1327
+ stripe_auth_required: "stripe_auth_required"
1115
1328
  };
1116
- const createExchangeWithdrawQuotePathParamsExchangeEnum = { coinbase: "coinbase" };
1117
- const createExchangeWithdrawQuoteMutationRequestDestinationChainEnum = {
1118
- "1": 1,
1119
- "8453": 8453,
1120
- "999": 999,
1121
- "1337": 1337,
1122
- "4326": 4326,
1123
- "143": 143,
1124
- "137": 137,
1125
- "42161": 42161
1329
+ /**
1330
+ * Generated by Kubb (https://kubb.dev/).
1331
+ * Do not edit manually.
1332
+ */
1333
+ const checkoutStripeSession402ErrorCodeEnum = {
1334
+ card_declined: "card_declined",
1335
+ stripe_transaction_blocked: "stripe_transaction_blocked"
1126
1336
  };
1127
- const createExchangeWithdrawQuoteMutationRequestDestinationTokenEnum = {
1128
- USDC: "USDC",
1129
- USDm: "USDm",
1130
- AUSD: "AUSD",
1131
- "USDC.e": "USDC.e"
1337
+ /**
1338
+ * Generated by Kubb (https://kubb.dev/).
1339
+ * Do not edit manually.
1340
+ */
1341
+ const checkoutStripeSession403ErrorCodeEnum = {
1342
+ origin_not_allowed: "origin_not_allowed",
1343
+ payment_method_not_enabled: "payment_method_not_enabled"
1132
1344
  };
1133
- const createExchangeWithdrawQuoteMutationRequestOriginChainEnum = {
1134
- "1": 1,
1135
- "8453": 8453,
1136
- "999": 999,
1137
- "1337": 1337,
1138
- "4326": 4326,
1139
- "143": 143,
1140
- "137": 137,
1141
- "42161": 42161
1345
+ /**
1346
+ * Generated by Kubb (https://kubb.dev/).
1347
+ * Do not edit manually.
1348
+ */
1349
+ const checkoutStripeSession404ErrorCodeEnum = { stripe_resource_not_found: "stripe_resource_not_found" };
1350
+ /**
1351
+ * Generated by Kubb (https://kubb.dev/).
1352
+ * Do not edit manually.
1353
+ */
1354
+ const checkoutStripeSession409ErrorCodeEnum = { idempotency_key_in_use: "idempotency_key_in_use" };
1355
+ /**
1356
+ * Generated by Kubb (https://kubb.dev/).
1357
+ * Do not edit manually.
1358
+ */
1359
+ const checkoutStripeSession422ErrorCodeEnum = { idempotency_key_mismatch: "idempotency_key_mismatch" };
1360
+ /**
1361
+ * Generated by Kubb (https://kubb.dev/).
1362
+ * Do not edit manually.
1363
+ */
1364
+ const confirmCardOrder400ErrorCodeEnum = {
1365
+ card_3d_secure_challenge_failed: "card_3d_secure_challenge_failed",
1366
+ card_3d_secure_rejected: "card_3d_secure_rejected",
1367
+ card_3d_secure_verification_failed: "card_3d_secure_verification_failed",
1368
+ card_account_blocked: "card_account_blocked",
1369
+ card_account_closed: "card_account_closed",
1370
+ card_account_not_activated: "card_account_not_activated",
1371
+ card_activity_limit_exceeded: "card_activity_limit_exceeded",
1372
+ card_address_mismatch: "card_address_mismatch",
1373
+ card_brand_unsupported: "card_brand_unsupported",
1374
+ card_chargeback_protection_declined: "card_chargeback_protection_declined",
1375
+ card_contact_issuer: "card_contact_issuer",
1376
+ card_country_unsupported: "card_country_unsupported",
1377
+ card_daily_purchase_limit_reached: "card_daily_purchase_limit_reached",
1378
+ card_do_not_honor: "card_do_not_honor",
1379
+ card_exceeds_withdrawal_limit: "card_exceeds_withdrawal_limit",
1380
+ card_expired: "card_expired",
1381
+ card_fraud_security_decline: "card_fraud_security_decline",
1382
+ card_insufficient_funds: "card_insufficient_funds",
1383
+ card_invalid_amount: "card_invalid_amount",
1384
+ card_invalid_input: "card_invalid_input",
1385
+ card_invalid_number: "card_invalid_number",
1386
+ card_invalid_transaction: "card_invalid_transaction",
1387
+ card_issuing_country_unsupported: "card_issuing_country_unsupported",
1388
+ card_limit_exceeded: "card_limit_exceeded",
1389
+ card_location_unsupported: "card_location_unsupported",
1390
+ card_locked: "card_locked",
1391
+ card_lost: "card_lost",
1392
+ card_name_mismatch: "card_name_mismatch",
1393
+ card_no_such_issuer: "card_no_such_issuer",
1394
+ card_not_activated: "card_not_activated",
1395
+ card_partial_approval: "card_partial_approval",
1396
+ card_payment_method_blocked: "card_payment_method_blocked",
1397
+ card_payment_method_in_use: "card_payment_method_in_use",
1398
+ card_pickup: "card_pickup",
1399
+ card_pickup_special_condition: "card_pickup_special_condition",
1400
+ card_quote_price_changed: "card_quote_price_changed",
1401
+ card_record_not_found: "card_record_not_found",
1402
+ card_reenter_transaction: "card_reenter_transaction",
1403
+ card_refer_to_issuer: "card_refer_to_issuer",
1404
+ card_refer_to_issuer_special_condition: "card_refer_to_issuer_special_condition",
1405
+ card_security_code_mismatch: "card_security_code_mismatch",
1406
+ card_security_violation: "card_security_violation",
1407
+ card_state_unsupported: "card_state_unsupported",
1408
+ card_state_unsupported_by_ip_address: "card_state_unsupported_by_ip_address",
1409
+ card_stolen: "card_stolen",
1410
+ card_suspected_fraud: "card_suspected_fraud",
1411
+ card_transaction_frequency_limit_exceeded: "card_transaction_frequency_limit_exceeded",
1412
+ card_transaction_not_permitted: "card_transaction_not_permitted",
1413
+ card_transaction_not_supported: "card_transaction_not_supported",
1414
+ card_violation: "card_violation",
1415
+ idempotency_key_required: "idempotency_key_required",
1416
+ recipient_invalid: "recipient_invalid",
1417
+ unsupported_chain: "unsupported_chain",
1418
+ unsupported_route: "unsupported_route",
1419
+ validation_error: "validation_error"
1142
1420
  };
1143
- const createStripeSessionMutationRequestDestinationChainEnum = {
1144
- "1": 1,
1145
- "8453": 8453,
1146
- "999": 999,
1147
- "1337": 1337,
1148
- "4326": 4326,
1149
- "143": 143,
1150
- "137": 137,
1151
- "42161": 42161
1421
+ /**
1422
+ * Generated by Kubb (https://kubb.dev/).
1423
+ * Do not edit manually.
1424
+ */
1425
+ const confirmCardOrder401ErrorCodeEnum = {
1426
+ invalid_publishable_key: "invalid_publishable_key",
1427
+ publishable_key_missing: "publishable_key_missing",
1428
+ session_required: "session_required"
1152
1429
  };
1153
- const createStripeSessionMutationRequestDestinationTokenEnum = {
1154
- USDC: "USDC",
1155
- USDm: "USDm",
1156
- AUSD: "AUSD",
1157
- "USDC.e": "USDC.e"
1430
+ /**
1431
+ * Generated by Kubb (https://kubb.dev/).
1432
+ * Do not edit manually.
1433
+ */
1434
+ const confirmCardOrder402ErrorCodeEnum = { card_declined: "card_declined" };
1435
+ /**
1436
+ * Generated by Kubb (https://kubb.dev/).
1437
+ * Do not edit manually.
1438
+ */
1439
+ const confirmCardOrder403ErrorCodeEnum = {
1440
+ card_identity_required: "card_identity_required",
1441
+ origin_not_allowed: "origin_not_allowed",
1442
+ payment_method_not_enabled: "payment_method_not_enabled",
1443
+ wallet_sanctioned: "wallet_sanctioned"
1158
1444
  };
1159
- const createVirtualAccountMutationRequestCurrencyEnum = {
1160
- USD: "USD",
1161
- GBP: "GBP",
1162
- EUR: "EUR"
1445
+ /**
1446
+ * Generated by Kubb (https://kubb.dev/).
1447
+ * Do not edit manually.
1448
+ */
1449
+ const confirmCardOrder404ErrorCodeEnum = {
1450
+ lighter_account_not_found: "lighter_account_not_found",
1451
+ order_not_found: "order_not_found"
1163
1452
  };
1164
- const createVirtualAccountMutationRequestDestinationChainEnum = {
1165
- "1": 1,
1166
- "8453": 8453,
1167
- "999": 999,
1168
- "1337": 1337,
1169
- "4326": 4326,
1170
- "143": 143,
1171
- "137": 137,
1172
- "42161": 42161
1453
+ /**
1454
+ * Generated by Kubb (https://kubb.dev/).
1455
+ * Do not edit manually.
1456
+ */
1457
+ const confirmCardOrder409ErrorCodeEnum = {
1458
+ idempotency_key_in_use: "idempotency_key_in_use",
1459
+ next_action_mismatch: "next_action_mismatch"
1173
1460
  };
1174
- const createVirtualAccountMutationRequestDestinationTokenEnum = {
1175
- USDC: "USDC",
1176
- USDm: "USDm",
1177
- AUSD: "AUSD",
1178
- "USDC.e": "USDC.e"
1461
+ /**
1462
+ * Generated by Kubb (https://kubb.dev/).
1463
+ * Do not edit manually.
1464
+ */
1465
+ const confirmCardOrder415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
1466
+ /**
1467
+ * Generated by Kubb (https://kubb.dev/).
1468
+ * Do not edit manually.
1469
+ */
1470
+ const confirmCardOrder422ErrorCodeEnum = { idempotency_key_mismatch: "idempotency_key_mismatch" };
1471
+ /**
1472
+ * Generated by Kubb (https://kubb.dev/).
1473
+ * Do not edit manually.
1474
+ */
1475
+ const createApplePaySession400ErrorCodeEnum = { validation_error: "validation_error" };
1476
+ /**
1477
+ * Generated by Kubb (https://kubb.dev/).
1478
+ * Do not edit manually.
1479
+ */
1480
+ const createApplePaySession401ErrorCodeEnum = {
1481
+ invalid_publishable_key: "invalid_publishable_key",
1482
+ publishable_key_missing: "publishable_key_missing",
1483
+ session_required: "session_required"
1179
1484
  };
1180
- const disconnectExchangePathParamsExchangeEnum = { coinbase: "coinbase" };
1181
- const executeExchangeWithdrawalPathParamsExchangeEnum = { coinbase: "coinbase" };
1182
- const executeExchangeWithdrawal200StatusEnum = {
1183
- quoted: "quoted",
1184
- pending: "pending",
1185
- broadcasted: "broadcasted",
1186
- failed: "failed",
1187
- delayed: "delayed"
1485
+ /**
1486
+ * Generated by Kubb (https://kubb.dev/).
1487
+ * Do not edit manually.
1488
+ */
1489
+ const createApplePaySession403ErrorCodeEnum = {
1490
+ origin_not_allowed: "origin_not_allowed",
1491
+ payment_method_not_enabled: "payment_method_not_enabled"
1188
1492
  };
1189
- const destinationChainEnum = {
1190
- "1": 1,
1191
- "8453": 8453,
1192
- "999": 999,
1193
- "1337": 1337,
1194
- "4326": 4326,
1195
- "143": 143,
1196
- "137": 137,
1197
- "42161": 42161
1493
+ /**
1494
+ * Generated by Kubb (https://kubb.dev/).
1495
+ * Do not edit manually.
1496
+ */
1497
+ const createApplePaySession404ErrorCodeEnum = { order_not_found: "order_not_found" };
1498
+ /**
1499
+ * Generated by Kubb (https://kubb.dev/).
1500
+ * Do not edit manually.
1501
+ */
1502
+ const createApplePaySession409ErrorCodeEnum = { next_action_mismatch: "next_action_mismatch" };
1503
+ const createBlinkSignatureMutationRequestCurrencyEnum = { USD: "USD" };
1504
+ /**
1505
+ * Generated by Kubb (https://kubb.dev/).
1506
+ * Do not edit manually.
1507
+ */
1508
+ const createBlinkSignature400ErrorCodeEnum = {
1509
+ unsupported_chain: "unsupported_chain",
1510
+ validation_error: "validation_error"
1198
1511
  };
1199
- const getCardOrder200StatusEnum = {
1200
- payment_pending: "payment_pending",
1201
- order_completed: "order_completed",
1202
- order_broadcasted: "order_broadcasted",
1203
- order_cancelled: "order_cancelled"
1512
+ /**
1513
+ * Generated by Kubb (https://kubb.dev/).
1514
+ * Do not edit manually.
1515
+ */
1516
+ const createBlinkSignature401ErrorCodeEnum = {
1517
+ invalid_publishable_key: "invalid_publishable_key",
1518
+ publishable_key_missing: "publishable_key_missing"
1204
1519
  };
1205
- const getCashAppOrder200StatusEnum = {
1206
- pending: "pending",
1207
- processing: "processing",
1208
- confirming: "confirming",
1209
- swapping: "swapping",
1210
- bridging: "bridging",
1211
- awaiting_approval: "awaiting_approval",
1212
- delivering: "delivering",
1213
- completed: "completed",
1214
- failed: "failed",
1215
- refunding: "refunding",
1216
- refunded: "refunded",
1217
- unfulfilled: "unfulfilled",
1218
- expired: "expired"
1520
+ /**
1521
+ * Generated by Kubb (https://kubb.dev/).
1522
+ * Do not edit manually.
1523
+ */
1524
+ const createBlinkSignature403ErrorCodeEnum = {
1525
+ origin_not_allowed: "origin_not_allowed",
1526
+ payment_method_not_enabled: "payment_method_not_enabled"
1219
1527
  };
1220
- const getExchangePathParamsExchangeEnum = { coinbase: "coinbase" };
1221
- const getExchangeAssetsPathParamsExchangeEnum = { coinbase: "coinbase" };
1222
- const getExchangeWithdrawalPathParamsExchangeEnum = { coinbase: "coinbase" };
1223
- const getExchangeWithdrawal200StatusEnum = {
1224
- quoted: "quoted",
1225
- pending: "pending",
1226
- broadcasted: "broadcasted",
1227
- failed: "failed",
1228
- delayed: "delayed"
1528
+ /**
1529
+ * Generated by Kubb (https://kubb.dev/).
1530
+ * Do not edit manually.
1531
+ */
1532
+ const createBlinkSignature415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
1533
+ const createCardFcaSubmission200StatusEnum = {
1534
+ CATEGORIZATION_PENDING: "CATEGORIZATION_PENDING",
1535
+ AGREEMENT_PENDING: "AGREEMENT_PENDING",
1536
+ RISK_ASSESSMENT_PENDING: "RISK_ASSESSMENT_PENDING",
1537
+ RISK_ASSESSMENT_FAILED: "RISK_ASSESSMENT_FAILED",
1538
+ COOLING_PERIOD: "COOLING_PERIOD",
1539
+ BLOCKED_RETRY: "BLOCKED_RETRY",
1540
+ COMPLETED: "COMPLETED"
1229
1541
  };
1230
- const getStripeOrder200StatusEnum = {
1231
- initialized: "initialized",
1232
- requires_payment: "requires_payment",
1233
- fulfillment_processing: "fulfillment_processing",
1234
- fulfillment_complete: "fulfillment_complete",
1235
- rejected: "rejected",
1236
- error: "error"
1542
+ /**
1543
+ * Generated by Kubb (https://kubb.dev/).
1544
+ * Do not edit manually.
1545
+ */
1546
+ const createCardFcaSubmission400ErrorCodeEnum = { validation_error: "validation_error" };
1547
+ /**
1548
+ * Generated by Kubb (https://kubb.dev/).
1549
+ * Do not edit manually.
1550
+ */
1551
+ const createCardFcaSubmission401ErrorCodeEnum = {
1552
+ invalid_publishable_key: "invalid_publishable_key",
1553
+ publishable_key_missing: "publishable_key_missing",
1554
+ session_required: "session_required"
1237
1555
  };
1238
- const getVirtualAccountStatus200IdentityVerificationStatusEnum = {
1239
- not_started: "not_started",
1240
- incomplete: "incomplete",
1241
- awaiting_questionnaire: "awaiting_questionnaire",
1242
- awaiting_ubo: "awaiting_ubo",
1243
- under_review: "under_review",
1244
- active: "active",
1245
- rejected: "rejected",
1246
- paused: "paused",
1247
- offboarded: "offboarded"
1556
+ /**
1557
+ * Generated by Kubb (https://kubb.dev/).
1558
+ * Do not edit manually.
1559
+ */
1560
+ const createCardFcaSubmission403ErrorCodeEnum = {
1561
+ card_identity_required: "card_identity_required",
1562
+ origin_not_allowed: "origin_not_allowed",
1563
+ payment_method_not_enabled: "payment_method_not_enabled"
1248
1564
  };
1249
- const dataStatusEnum = {
1250
- processing: "processing",
1251
- completed: "completed",
1565
+ /**
1566
+ * Generated by Kubb (https://kubb.dev/).
1567
+ * Do not edit manually.
1568
+ */
1569
+ const createCardFcaSubmission415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
1570
+ const appearanceColorModeEnum = {
1571
+ light: "light",
1572
+ dark: "dark"
1573
+ };
1574
+ /**
1575
+ * Generated by Kubb (https://kubb.dev/).
1576
+ * Do not edit manually.
1577
+ */
1578
+ const createCardOrder400ErrorCodeEnum = {
1579
+ card_quote_expired: "card_quote_expired",
1580
+ idempotency_key_required: "idempotency_key_required",
1581
+ recipient_invalid: "recipient_invalid",
1582
+ unsupported_chain: "unsupported_chain",
1583
+ unsupported_route: "unsupported_route",
1584
+ validation_error: "validation_error"
1585
+ };
1586
+ /**
1587
+ * Generated by Kubb (https://kubb.dev/).
1588
+ * Do not edit manually.
1589
+ */
1590
+ const createCardOrder401ErrorCodeEnum = {
1591
+ invalid_publishable_key: "invalid_publishable_key",
1592
+ publishable_key_missing: "publishable_key_missing",
1593
+ session_required: "session_required"
1594
+ };
1595
+ /**
1596
+ * Generated by Kubb (https://kubb.dev/).
1597
+ * Do not edit manually.
1598
+ */
1599
+ const createCardOrder403ErrorCodeEnum = {
1600
+ card_identity_required: "card_identity_required",
1601
+ origin_not_allowed: "origin_not_allowed",
1602
+ payment_method_not_enabled: "payment_method_not_enabled",
1603
+ wallet_sanctioned: "wallet_sanctioned"
1604
+ };
1605
+ /**
1606
+ * Generated by Kubb (https://kubb.dev/).
1607
+ * Do not edit manually.
1608
+ */
1609
+ const createCardOrder404ErrorCodeEnum = { lighter_account_not_found: "lighter_account_not_found" };
1610
+ /**
1611
+ * Generated by Kubb (https://kubb.dev/).
1612
+ * Do not edit manually.
1613
+ */
1614
+ const createCardOrder409ErrorCodeEnum = { idempotency_key_in_use: "idempotency_key_in_use" };
1615
+ /**
1616
+ * Generated by Kubb (https://kubb.dev/).
1617
+ * Do not edit manually.
1618
+ */
1619
+ const createCardOrder415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
1620
+ /**
1621
+ * Generated by Kubb (https://kubb.dev/).
1622
+ * Do not edit manually.
1623
+ */
1624
+ const createCardOrder422ErrorCodeEnum = { idempotency_key_mismatch: "idempotency_key_mismatch" };
1625
+ /**
1626
+ * Generated by Kubb (https://kubb.dev/).
1627
+ * Do not edit manually.
1628
+ */
1629
+ const createCardQuote400ErrorCodeEnum = {
1630
+ amount_below_minimum: "amount_below_minimum",
1631
+ card_limit_exceeded: "card_limit_exceeded",
1632
+ card_quote_expired: "card_quote_expired",
1633
+ recipient_invalid: "recipient_invalid",
1634
+ unsupported_chain: "unsupported_chain",
1635
+ unsupported_route: "unsupported_route",
1636
+ validation_error: "validation_error"
1637
+ };
1638
+ /**
1639
+ * Generated by Kubb (https://kubb.dev/).
1640
+ * Do not edit manually.
1641
+ */
1642
+ const createCardQuote401ErrorCodeEnum = {
1643
+ invalid_publishable_key: "invalid_publishable_key",
1644
+ publishable_key_missing: "publishable_key_missing",
1645
+ session_required: "session_required"
1646
+ };
1647
+ /**
1648
+ * Generated by Kubb (https://kubb.dev/).
1649
+ * Do not edit manually.
1650
+ */
1651
+ const createCardQuote403ErrorCodeEnum = {
1652
+ card_identity_required: "card_identity_required",
1653
+ origin_not_allowed: "origin_not_allowed",
1654
+ payment_method_not_enabled: "payment_method_not_enabled",
1655
+ wallet_sanctioned: "wallet_sanctioned"
1656
+ };
1657
+ /**
1658
+ * Generated by Kubb (https://kubb.dev/).
1659
+ * Do not edit manually.
1660
+ */
1661
+ const createCardQuote404ErrorCodeEnum = { lighter_account_not_found: "lighter_account_not_found" };
1662
+ /**
1663
+ * Generated by Kubb (https://kubb.dev/).
1664
+ * Do not edit manually.
1665
+ */
1666
+ const createCardQuote415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
1667
+ const createCashAppOrder200StatusEnum = {
1668
+ pending: "pending",
1669
+ processing: "processing",
1670
+ confirming: "confirming",
1671
+ swapping: "swapping",
1672
+ bridging: "bridging",
1673
+ awaiting_approval: "awaiting_approval",
1674
+ delivering: "delivering",
1675
+ succeeded: "succeeded",
1252
1676
  failed: "failed",
1253
- refunded: "refunded"
1677
+ refunding: "refunding",
1678
+ refunded: "refunded",
1679
+ unfulfilled: "unfulfilled",
1680
+ expired: "expired"
1254
1681
  };
1255
- const listCardPaymentMethodsMutationRequestCurrencyEnum = {
1256
- USD: "USD",
1257
- GBP: "GBP",
1258
- EUR: "EUR"
1682
+ const createCashAppOrderMutationRequestCurrencyEnum = { USD: "USD" };
1683
+ /**
1684
+ * Generated by Kubb (https://kubb.dev/).
1685
+ * Do not edit manually.
1686
+ */
1687
+ const createCashAppOrder400ErrorCodeEnum = {
1688
+ amount_above_maximum: "amount_above_maximum",
1689
+ amount_below_minimum: "amount_below_minimum",
1690
+ idempotency_key_required: "idempotency_key_required",
1691
+ invalid_address: "invalid_address",
1692
+ price_impact_too_high: "price_impact_too_high",
1693
+ recipient_invalid: "recipient_invalid",
1694
+ unsupported_asset: "unsupported_asset",
1695
+ unsupported_chain: "unsupported_chain",
1696
+ unsupported_route: "unsupported_route",
1697
+ validation_error: "validation_error"
1698
+ };
1699
+ /**
1700
+ * Generated by Kubb (https://kubb.dev/).
1701
+ * Do not edit manually.
1702
+ */
1703
+ const createCashAppOrder401ErrorCodeEnum = {
1704
+ invalid_publishable_key: "invalid_publishable_key",
1705
+ publishable_key_missing: "publishable_key_missing",
1706
+ session_required: "session_required"
1707
+ };
1708
+ /**
1709
+ * Generated by Kubb (https://kubb.dev/).
1710
+ * Do not edit manually.
1711
+ */
1712
+ const createCashAppOrder403ErrorCodeEnum = {
1713
+ origin_not_allowed: "origin_not_allowed",
1714
+ payment_method_not_enabled: "payment_method_not_enabled",
1715
+ wallet_sanctioned: "wallet_sanctioned"
1716
+ };
1717
+ /**
1718
+ * Generated by Kubb (https://kubb.dev/).
1719
+ * Do not edit manually.
1720
+ */
1721
+ const createCashAppOrder404ErrorCodeEnum = { lighter_account_not_found: "lighter_account_not_found" };
1722
+ /**
1723
+ * Generated by Kubb (https://kubb.dev/).
1724
+ * Do not edit manually.
1725
+ */
1726
+ const createCashAppOrder409ErrorCodeEnum = { idempotency_key_in_use: "idempotency_key_in_use" };
1727
+ /**
1728
+ * Generated by Kubb (https://kubb.dev/).
1729
+ * Do not edit manually.
1730
+ */
1731
+ const createCashAppOrder415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
1732
+ /**
1733
+ * Generated by Kubb (https://kubb.dev/).
1734
+ * Do not edit manually.
1735
+ */
1736
+ const createCashAppOrder422ErrorCodeEnum = { idempotency_key_mismatch: "idempotency_key_mismatch" };
1737
+ /**
1738
+ * Generated by Kubb (https://kubb.dev/).
1739
+ * Do not edit manually.
1740
+ */
1741
+ const createCashAppOrder503ErrorCodeEnum = { rate_limited: "rate_limited" };
1742
+ const createCashAppQuoteMutationRequestCurrencyEnum = { USD: "USD" };
1743
+ /**
1744
+ * Generated by Kubb (https://kubb.dev/).
1745
+ * Do not edit manually.
1746
+ */
1747
+ const createCashAppQuote400ErrorCodeEnum = {
1748
+ amount_above_maximum: "amount_above_maximum",
1749
+ amount_below_minimum: "amount_below_minimum",
1750
+ price_impact_too_high: "price_impact_too_high",
1751
+ recipient_invalid: "recipient_invalid",
1752
+ unsupported_asset: "unsupported_asset",
1753
+ unsupported_chain: "unsupported_chain",
1754
+ unsupported_route: "unsupported_route",
1755
+ validation_error: "validation_error"
1756
+ };
1757
+ /**
1758
+ * Generated by Kubb (https://kubb.dev/).
1759
+ * Do not edit manually.
1760
+ */
1761
+ const createCashAppQuote401ErrorCodeEnum = {
1762
+ invalid_publishable_key: "invalid_publishable_key",
1763
+ publishable_key_missing: "publishable_key_missing",
1764
+ session_required: "session_required"
1765
+ };
1766
+ /**
1767
+ * Generated by Kubb (https://kubb.dev/).
1768
+ * Do not edit manually.
1769
+ */
1770
+ const createCashAppQuote403ErrorCodeEnum = {
1771
+ origin_not_allowed: "origin_not_allowed",
1772
+ payment_method_not_enabled: "payment_method_not_enabled",
1773
+ wallet_sanctioned: "wallet_sanctioned"
1774
+ };
1775
+ /**
1776
+ * Generated by Kubb (https://kubb.dev/).
1777
+ * Do not edit manually.
1778
+ */
1779
+ const createCashAppQuote404ErrorCodeEnum = { lighter_account_not_found: "lighter_account_not_found" };
1780
+ /**
1781
+ * Generated by Kubb (https://kubb.dev/).
1782
+ * Do not edit manually.
1783
+ */
1784
+ const createCashAppQuote415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
1785
+ /**
1786
+ * Generated by Kubb (https://kubb.dev/).
1787
+ * Do not edit manually.
1788
+ */
1789
+ const createCashAppQuote503ErrorCodeEnum = { rate_limited: "rate_limited" };
1790
+ /**
1791
+ * Generated by Kubb (https://kubb.dev/).
1792
+ * Do not edit manually.
1793
+ */
1794
+ const createStripeAuthIntent400ErrorCodeEnum = { validation_error: "validation_error" };
1795
+ /**
1796
+ * Generated by Kubb (https://kubb.dev/).
1797
+ * Do not edit manually.
1798
+ */
1799
+ const createStripeAuthIntent401ErrorCodeEnum = {
1800
+ invalid_publishable_key: "invalid_publishable_key",
1801
+ publishable_key_missing: "publishable_key_missing"
1802
+ };
1803
+ /**
1804
+ * Generated by Kubb (https://kubb.dev/).
1805
+ * Do not edit manually.
1806
+ */
1807
+ const createStripeAuthIntent403ErrorCodeEnum = {
1808
+ origin_not_allowed: "origin_not_allowed",
1809
+ payment_method_not_enabled: "payment_method_not_enabled"
1810
+ };
1811
+ /**
1812
+ * Generated by Kubb (https://kubb.dev/).
1813
+ * Do not edit manually.
1814
+ */
1815
+ const createStripeAuthIntent404ErrorCodeEnum = { link_not_found: "link_not_found" };
1816
+ /**
1817
+ * Generated by Kubb (https://kubb.dev/).
1818
+ * Do not edit manually.
1819
+ */
1820
+ const createStripeAuthIntent409ErrorCodeEnum = { link_revoked: "link_revoked" };
1821
+ /**
1822
+ * Generated by Kubb (https://kubb.dev/).
1823
+ * Do not edit manually.
1824
+ */
1825
+ const createStripeAuthIntent415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
1826
+ /**
1827
+ * Generated by Kubb (https://kubb.dev/).
1828
+ * Do not edit manually.
1829
+ */
1830
+ const createStripeCustomer400ErrorCodeEnum = { validation_error: "validation_error" };
1831
+ /**
1832
+ * Generated by Kubb (https://kubb.dev/).
1833
+ * Do not edit manually.
1834
+ */
1835
+ const createStripeCustomer401ErrorCodeEnum = {
1836
+ invalid_publishable_key: "invalid_publishable_key",
1837
+ publishable_key_missing: "publishable_key_missing",
1838
+ stripe_auth_required: "stripe_auth_required"
1839
+ };
1840
+ /**
1841
+ * Generated by Kubb (https://kubb.dev/).
1842
+ * Do not edit manually.
1843
+ */
1844
+ const createStripeCustomer403ErrorCodeEnum = {
1845
+ origin_not_allowed: "origin_not_allowed",
1846
+ payment_method_not_enabled: "payment_method_not_enabled"
1259
1847
  };
1260
- const listPaymentMethodsMutationRequestCurrencyEnum = {
1848
+ /**
1849
+ * Generated by Kubb (https://kubb.dev/).
1850
+ * Do not edit manually.
1851
+ */
1852
+ const createStripeCustomer404ErrorCodeEnum = { stripe_resource_not_found: "stripe_resource_not_found" };
1853
+ const createStripeQuoteMutationRequestCurrencyEnum = {
1261
1854
  USD: "USD",
1262
- GBP: "GBP",
1263
1855
  EUR: "EUR"
1264
1856
  };
1265
- const dataCurrencyEnum = {
1857
+ /**
1858
+ * Generated by Kubb (https://kubb.dev/).
1859
+ * Do not edit manually.
1860
+ */
1861
+ const createStripeQuote400ErrorCodeEnum = {
1862
+ recipient_invalid: "recipient_invalid",
1863
+ unsupported_chain: "unsupported_chain",
1864
+ unsupported_route: "unsupported_route",
1865
+ validation_error: "validation_error"
1866
+ };
1867
+ /**
1868
+ * Generated by Kubb (https://kubb.dev/).
1869
+ * Do not edit manually.
1870
+ */
1871
+ const createStripeQuote401ErrorCodeEnum = {
1872
+ invalid_publishable_key: "invalid_publishable_key",
1873
+ publishable_key_missing: "publishable_key_missing",
1874
+ stripe_auth_required: "stripe_auth_required"
1875
+ };
1876
+ /**
1877
+ * Generated by Kubb (https://kubb.dev/).
1878
+ * Do not edit manually.
1879
+ */
1880
+ const createStripeQuote403ErrorCodeEnum = {
1881
+ origin_not_allowed: "origin_not_allowed",
1882
+ payment_method_not_enabled: "payment_method_not_enabled",
1883
+ wallet_sanctioned: "wallet_sanctioned"
1884
+ };
1885
+ /**
1886
+ * Generated by Kubb (https://kubb.dev/).
1887
+ * Do not edit manually.
1888
+ */
1889
+ const createStripeQuote404ErrorCodeEnum = { lighter_account_not_found: "lighter_account_not_found" };
1890
+ /**
1891
+ * Generated by Kubb (https://kubb.dev/).
1892
+ * Do not edit manually.
1893
+ */
1894
+ const createStripeQuote415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
1895
+ const createStripeSession200StatusEnum = {
1896
+ requires_payment_method: "requires_payment_method",
1897
+ pending: "pending",
1898
+ succeeded: "succeeded",
1899
+ failed: "failed"
1900
+ };
1901
+ const createStripeSessionMutationRequestCurrencyEnum = {
1266
1902
  USD: "USD",
1267
- GBP: "GBP",
1268
1903
  EUR: "EUR"
1269
1904
  };
1270
- export { ApiError, checkoutCard, checkoutCardMutationRequestCurrencyEnum, checkoutCardMutationRequestDestinationChainEnum, checkoutCardMutationRequestDestinationTokenEnum, checkoutCardMutationRequestTradeTypeEnum, checkoutStripeSession, client, client as default, connectExchange, connectExchangePathParamsExchangeEnum, createBlinkSignature, createBlinkSignatureMutationRequestDestinationChainEnum, createBlinkSignatureMutationRequestDestinationTokenEnum, createCardQuote, createCardQuoteMutationRequestCurrencyEnum, createCardQuoteMutationRequestDestinationChainEnum, createCardQuoteMutationRequestDestinationTokenEnum, createCardQuoteMutationRequestTradeTypeEnum, createCashAppOrder, createCashAppOrder200StatusEnum, createCashAppOrderMutationRequestDestinationChainEnum, createCashAppOrderMutationRequestDestinationTokenEnum, createCashAppQuote, createCashAppQuoteMutationRequestDestinationChainEnum, createCashAppQuoteMutationRequestDestinationTokenEnum, createExchangeWithdrawQuote, createExchangeWithdrawQuoteMutationRequestDestinationChainEnum, createExchangeWithdrawQuoteMutationRequestDestinationTokenEnum, createExchangeWithdrawQuoteMutationRequestOriginChainEnum, createExchangeWithdrawQuotePathParamsExchangeEnum, createStripeAuthIntent, createStripeCustomer, createStripeSession, createStripeSessionMutationRequestDestinationChainEnum, createStripeSessionMutationRequestDestinationTokenEnum, createStripeTokens, createVirtualAccount, createVirtualAccountMutationRequestCurrencyEnum, createVirtualAccountMutationRequestDestinationChainEnum, createVirtualAccountMutationRequestDestinationTokenEnum, dataCurrencyEnum, dataStatusEnum, destinationChainEnum, disconnectExchange, disconnectExchangePathParamsExchangeEnum, executeExchangeWithdrawal, executeExchangeWithdrawal200StatusEnum, executeExchangeWithdrawalPathParamsExchangeEnum, getBalances, getBlinkConfig, getCardOrder, getCardOrder200StatusEnum, getCashAppOrder, getCashAppOrder200StatusEnum, getExchange, getExchangeAssets, getExchangeAssetsPathParamsExchangeEnum, getExchangePathParamsExchangeEnum, getExchangeWithdrawal, getExchangeWithdrawal200StatusEnum, getExchangeWithdrawalPathParamsExchangeEnum, getFxRates, getIdentityVerificationUrl, getStripeConfig, getStripeCustomerStatus, getStripeOrder, getStripeOrder200StatusEnum, getStripeQuote, getStripeStatus, getTermsOfServiceUrl, getVirtualAccountStatus, getVirtualAccountStatus200IdentityVerificationStatusEnum, listBlinkDeposits, listCardPaymentMethods, listCardPaymentMethodsMutationRequestCurrencyEnum, listCountries, listPaymentMethods, listPaymentMethodsMutationRequestCurrencyEnum, listStripePaymentTokens, listStripeWallets, listVirtualAccounts, registerWallet };
1905
+ /**
1906
+ * Generated by Kubb (https://kubb.dev/).
1907
+ * Do not edit manually.
1908
+ */
1909
+ const createStripeSession400ErrorCodeEnum = {
1910
+ recipient_invalid: "recipient_invalid",
1911
+ stripe_country_unsupported: "stripe_country_unsupported",
1912
+ stripe_currency_unavailable_in_region: "stripe_currency_unavailable_in_region",
1913
+ stripe_customer_unsupported: "stripe_customer_unsupported",
1914
+ stripe_document_verification_required: "stripe_document_verification_required",
1915
+ stripe_wallet_not_registered: "stripe_wallet_not_registered",
1916
+ unsupported_chain: "unsupported_chain",
1917
+ unsupported_route: "unsupported_route",
1918
+ validation_error: "validation_error"
1919
+ };
1920
+ /**
1921
+ * Generated by Kubb (https://kubb.dev/).
1922
+ * Do not edit manually.
1923
+ */
1924
+ const createStripeSession401ErrorCodeEnum = {
1925
+ invalid_publishable_key: "invalid_publishable_key",
1926
+ publishable_key_missing: "publishable_key_missing",
1927
+ stripe_auth_required: "stripe_auth_required"
1928
+ };
1929
+ /**
1930
+ * Generated by Kubb (https://kubb.dev/).
1931
+ * Do not edit manually.
1932
+ */
1933
+ const createStripeSession402ErrorCodeEnum = { stripe_transaction_blocked: "stripe_transaction_blocked" };
1934
+ /**
1935
+ * Generated by Kubb (https://kubb.dev/).
1936
+ * Do not edit manually.
1937
+ */
1938
+ const createStripeSession403ErrorCodeEnum = {
1939
+ origin_not_allowed: "origin_not_allowed",
1940
+ payment_method_not_enabled: "payment_method_not_enabled",
1941
+ wallet_sanctioned: "wallet_sanctioned"
1942
+ };
1943
+ /**
1944
+ * Generated by Kubb (https://kubb.dev/).
1945
+ * Do not edit manually.
1946
+ */
1947
+ const createStripeSession404ErrorCodeEnum = {
1948
+ lighter_account_not_found: "lighter_account_not_found",
1949
+ stripe_resource_not_found: "stripe_resource_not_found"
1950
+ };
1951
+ /**
1952
+ * Generated by Kubb (https://kubb.dev/).
1953
+ * Do not edit manually.
1954
+ */
1955
+ const createStripeSession415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
1956
+ /**
1957
+ * Generated by Kubb (https://kubb.dev/).
1958
+ * Do not edit manually.
1959
+ */
1960
+ const createStripeTokens400ErrorCodeEnum = { validation_error: "validation_error" };
1961
+ /**
1962
+ * Generated by Kubb (https://kubb.dev/).
1963
+ * Do not edit manually.
1964
+ */
1965
+ const createStripeTokens401ErrorCodeEnum = {
1966
+ invalid_publishable_key: "invalid_publishable_key",
1967
+ publishable_key_missing: "publishable_key_missing"
1968
+ };
1969
+ /**
1970
+ * Generated by Kubb (https://kubb.dev/).
1971
+ * Do not edit manually.
1972
+ */
1973
+ const createStripeTokens403ErrorCodeEnum = {
1974
+ binding_invalid: "binding_invalid",
1975
+ link_forbidden: "link_forbidden",
1976
+ origin_not_allowed: "origin_not_allowed",
1977
+ payment_method_not_enabled: "payment_method_not_enabled"
1978
+ };
1979
+ /**
1980
+ * Generated by Kubb (https://kubb.dev/).
1981
+ * Do not edit manually.
1982
+ */
1983
+ const createStripeTokens415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
1984
+ /**
1985
+ * Generated by Kubb (https://kubb.dev/).
1986
+ * Do not edit manually.
1987
+ */
1988
+ const createVirtualAccount400ErrorCodeEnum = {
1989
+ customer_details_invalid: "customer_details_invalid",
1990
+ recipient_invalid: "recipient_invalid",
1991
+ unsupported_chain: "unsupported_chain",
1992
+ unsupported_route: "unsupported_route",
1993
+ validation_error: "validation_error"
1994
+ };
1995
+ /**
1996
+ * Generated by Kubb (https://kubb.dev/).
1997
+ * Do not edit manually.
1998
+ */
1999
+ const createVirtualAccount401ErrorCodeEnum = {
2000
+ invalid_publishable_key: "invalid_publishable_key",
2001
+ publishable_key_missing: "publishable_key_missing",
2002
+ session_required: "session_required"
2003
+ };
2004
+ /**
2005
+ * Generated by Kubb (https://kubb.dev/).
2006
+ * Do not edit manually.
2007
+ */
2008
+ const createVirtualAccount403ErrorCodeEnum = {
2009
+ origin_not_allowed: "origin_not_allowed",
2010
+ payment_method_not_enabled: "payment_method_not_enabled",
2011
+ wallet_sanctioned: "wallet_sanctioned"
2012
+ };
2013
+ /**
2014
+ * Generated by Kubb (https://kubb.dev/).
2015
+ * Do not edit manually.
2016
+ */
2017
+ const createVirtualAccount404ErrorCodeEnum = {
2018
+ customer_not_registered: "customer_not_registered",
2019
+ lighter_account_not_found: "lighter_account_not_found"
2020
+ };
2021
+ /**
2022
+ * Generated by Kubb (https://kubb.dev/).
2023
+ * Do not edit manually.
2024
+ */
2025
+ const createVirtualAccount409ErrorCodeEnum = {
2026
+ kyc_required: "kyc_required",
2027
+ terms_of_service_required: "terms_of_service_required"
2028
+ };
2029
+ /**
2030
+ * Generated by Kubb (https://kubb.dev/).
2031
+ * Do not edit manually.
2032
+ */
2033
+ const createVirtualAccount415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
2034
+ /**
2035
+ * Generated by Kubb (https://kubb.dev/).
2036
+ * Do not edit manually.
2037
+ */
2038
+ const destinationTokenEnum = {
2039
+ USDC: "USDC",
2040
+ USDm: "USDm",
2041
+ AUSD: "AUSD",
2042
+ "USDC.e": "USDC.e",
2043
+ USDG: "USDG"
2044
+ };
2045
+ /**
2046
+ * Generated by Kubb (https://kubb.dev/).
2047
+ * Do not edit manually.
2048
+ */
2049
+ const fiatCurrencyEnum = {
2050
+ USD: "USD",
2051
+ GBP: "GBP",
2052
+ EUR: "EUR"
2053
+ };
2054
+ /**
2055
+ * Generated by Kubb (https://kubb.dev/).
2056
+ * Do not edit manually.
2057
+ */
2058
+ const getApp401ErrorCodeEnum = {
2059
+ invalid_publishable_key: "invalid_publishable_key",
2060
+ publishable_key_missing: "publishable_key_missing"
2061
+ };
2062
+ /**
2063
+ * Generated by Kubb (https://kubb.dev/).
2064
+ * Do not edit manually.
2065
+ */
2066
+ const getApp403ErrorCodeEnum = { origin_not_allowed: "origin_not_allowed" };
2067
+ /**
2068
+ * Generated by Kubb (https://kubb.dev/).
2069
+ * Do not edit manually.
2070
+ */
2071
+ const getBalances400ErrorCodeEnum = { validation_error: "validation_error" };
2072
+ /**
2073
+ * Generated by Kubb (https://kubb.dev/).
2074
+ * Do not edit manually.
2075
+ */
2076
+ const getBalances401ErrorCodeEnum = {
2077
+ invalid_publishable_key: "invalid_publishable_key",
2078
+ publishable_key_missing: "publishable_key_missing"
2079
+ };
2080
+ /**
2081
+ * Generated by Kubb (https://kubb.dev/).
2082
+ * Do not edit manually.
2083
+ */
2084
+ const getBalances403ErrorCodeEnum = { origin_not_allowed: "origin_not_allowed" };
2085
+ /**
2086
+ * Generated by Kubb (https://kubb.dev/).
2087
+ * Do not edit manually.
2088
+ */
2089
+ const getBlinkConfig401ErrorCodeEnum = {
2090
+ invalid_publishable_key: "invalid_publishable_key",
2091
+ publishable_key_missing: "publishable_key_missing"
2092
+ };
2093
+ /**
2094
+ * Generated by Kubb (https://kubb.dev/).
2095
+ * Do not edit manually.
2096
+ */
2097
+ const getBlinkConfig403ErrorCodeEnum = {
2098
+ origin_not_allowed: "origin_not_allowed",
2099
+ payment_method_not_enabled: "payment_method_not_enabled"
2100
+ };
2101
+ /**
2102
+ * Generated by Kubb (https://kubb.dev/).
2103
+ * Do not edit manually.
2104
+ */
2105
+ const getCardCustomer401ErrorCodeEnum = {
2106
+ invalid_publishable_key: "invalid_publishable_key",
2107
+ publishable_key_missing: "publishable_key_missing",
2108
+ session_required: "session_required"
2109
+ };
2110
+ /**
2111
+ * Generated by Kubb (https://kubb.dev/).
2112
+ * Do not edit manually.
2113
+ */
2114
+ const getCardCustomer403ErrorCodeEnum = {
2115
+ origin_not_allowed: "origin_not_allowed",
2116
+ payment_method_not_enabled: "payment_method_not_enabled"
2117
+ };
2118
+ /**
2119
+ * Generated by Kubb (https://kubb.dev/).
2120
+ * Do not edit manually.
2121
+ */
2122
+ const getCardCustomer404ErrorCodeEnum = { card_customer_not_found: "card_customer_not_found" };
2123
+ const getCardFcaRequirementsQueryParamsStatusEnum = {
2124
+ CATEGORIZATION_PENDING: "CATEGORIZATION_PENDING",
2125
+ AGREEMENT_PENDING: "AGREEMENT_PENDING",
2126
+ RISK_ASSESSMENT_PENDING: "RISK_ASSESSMENT_PENDING",
2127
+ RISK_ASSESSMENT_FAILED: "RISK_ASSESSMENT_FAILED",
2128
+ COOLING_PERIOD: "COOLING_PERIOD",
2129
+ BLOCKED_RETRY: "BLOCKED_RETRY",
2130
+ COMPLETED: "COMPLETED"
2131
+ };
2132
+ const getCardFcaRequirements200StatusEnum = {
2133
+ CATEGORIZATION_PENDING: "CATEGORIZATION_PENDING",
2134
+ AGREEMENT_PENDING: "AGREEMENT_PENDING",
2135
+ RISK_ASSESSMENT_PENDING: "RISK_ASSESSMENT_PENDING",
2136
+ RISK_ASSESSMENT_FAILED: "RISK_ASSESSMENT_FAILED",
2137
+ COOLING_PERIOD: "COOLING_PERIOD",
2138
+ BLOCKED_RETRY: "BLOCKED_RETRY",
2139
+ COMPLETED: "COMPLETED"
2140
+ };
2141
+ /**
2142
+ * Generated by Kubb (https://kubb.dev/).
2143
+ * Do not edit manually.
2144
+ */
2145
+ const getCardFcaRequirements400ErrorCodeEnum = { validation_error: "validation_error" };
2146
+ /**
2147
+ * Generated by Kubb (https://kubb.dev/).
2148
+ * Do not edit manually.
2149
+ */
2150
+ const getCardFcaRequirements401ErrorCodeEnum = {
2151
+ invalid_publishable_key: "invalid_publishable_key",
2152
+ publishable_key_missing: "publishable_key_missing",
2153
+ session_required: "session_required"
2154
+ };
2155
+ /**
2156
+ * Generated by Kubb (https://kubb.dev/).
2157
+ * Do not edit manually.
2158
+ */
2159
+ const getCardFcaRequirements403ErrorCodeEnum = {
2160
+ card_identity_required: "card_identity_required",
2161
+ origin_not_allowed: "origin_not_allowed",
2162
+ payment_method_not_enabled: "payment_method_not_enabled"
2163
+ };
2164
+ /**
2165
+ * Generated by Kubb (https://kubb.dev/).
2166
+ * Do not edit manually.
2167
+ */
2168
+ const getCardFcaStatus400ErrorCodeEnum = { validation_error: "validation_error" };
2169
+ /**
2170
+ * Generated by Kubb (https://kubb.dev/).
2171
+ * Do not edit manually.
2172
+ */
2173
+ const getCardFcaStatus401ErrorCodeEnum = {
2174
+ invalid_publishable_key: "invalid_publishable_key",
2175
+ publishable_key_missing: "publishable_key_missing",
2176
+ session_required: "session_required"
2177
+ };
2178
+ /**
2179
+ * Generated by Kubb (https://kubb.dev/).
2180
+ * Do not edit manually.
2181
+ */
2182
+ const getCardFcaStatus403ErrorCodeEnum = {
2183
+ card_identity_required: "card_identity_required",
2184
+ origin_not_allowed: "origin_not_allowed",
2185
+ payment_method_not_enabled: "payment_method_not_enabled"
2186
+ };
2187
+ /**
2188
+ * Generated by Kubb (https://kubb.dev/).
2189
+ * Do not edit manually.
2190
+ */
2191
+ const getCardOrder400ErrorCodeEnum = { validation_error: "validation_error" };
2192
+ /**
2193
+ * Generated by Kubb (https://kubb.dev/).
2194
+ * Do not edit manually.
2195
+ */
2196
+ const getCardOrder401ErrorCodeEnum = {
2197
+ invalid_publishable_key: "invalid_publishable_key",
2198
+ publishable_key_missing: "publishable_key_missing",
2199
+ session_required: "session_required"
2200
+ };
2201
+ /**
2202
+ * Generated by Kubb (https://kubb.dev/).
2203
+ * Do not edit manually.
2204
+ */
2205
+ const getCardOrder403ErrorCodeEnum = {
2206
+ origin_not_allowed: "origin_not_allowed",
2207
+ payment_method_not_enabled: "payment_method_not_enabled"
2208
+ };
2209
+ /**
2210
+ * Generated by Kubb (https://kubb.dev/).
2211
+ * Do not edit manually.
2212
+ */
2213
+ const getCardOrder404ErrorCodeEnum = { order_not_found: "order_not_found" };
2214
+ /**
2215
+ * Generated by Kubb (https://kubb.dev/).
2216
+ * Do not edit manually.
2217
+ */
2218
+ const getCardReturnPathParamsOutcomeEnum = {
2219
+ success: "success",
2220
+ failure: "failure"
2221
+ };
2222
+ const getCashAppOrder200StatusEnum = {
2223
+ pending: "pending",
2224
+ processing: "processing",
2225
+ confirming: "confirming",
2226
+ swapping: "swapping",
2227
+ bridging: "bridging",
2228
+ awaiting_approval: "awaiting_approval",
2229
+ delivering: "delivering",
2230
+ succeeded: "succeeded",
2231
+ failed: "failed",
2232
+ refunding: "refunding",
2233
+ refunded: "refunded",
2234
+ unfulfilled: "unfulfilled",
2235
+ expired: "expired"
2236
+ };
2237
+ /**
2238
+ * Generated by Kubb (https://kubb.dev/).
2239
+ * Do not edit manually.
2240
+ */
2241
+ const getCashAppOrder400ErrorCodeEnum = { validation_error: "validation_error" };
2242
+ /**
2243
+ * Generated by Kubb (https://kubb.dev/).
2244
+ * Do not edit manually.
2245
+ */
2246
+ const getCashAppOrder401ErrorCodeEnum = {
2247
+ invalid_publishable_key: "invalid_publishable_key",
2248
+ publishable_key_missing: "publishable_key_missing",
2249
+ session_required: "session_required"
2250
+ };
2251
+ /**
2252
+ * Generated by Kubb (https://kubb.dev/).
2253
+ * Do not edit manually.
2254
+ */
2255
+ const getCashAppOrder403ErrorCodeEnum = {
2256
+ origin_not_allowed: "origin_not_allowed",
2257
+ payment_method_not_enabled: "payment_method_not_enabled"
2258
+ };
2259
+ /**
2260
+ * Generated by Kubb (https://kubb.dev/).
2261
+ * Do not edit manually.
2262
+ */
2263
+ const getCashAppOrder404ErrorCodeEnum = { order_not_found: "order_not_found" };
2264
+ /**
2265
+ * Generated by Kubb (https://kubb.dev/).
2266
+ * Do not edit manually.
2267
+ */
2268
+ const getEmailSession401ErrorCodeEnum = {
2269
+ invalid_publishable_key: "invalid_publishable_key",
2270
+ publishable_key_missing: "publishable_key_missing",
2271
+ session_required: "session_required"
2272
+ };
2273
+ /**
2274
+ * Generated by Kubb (https://kubb.dev/).
2275
+ * Do not edit manually.
2276
+ */
2277
+ const getEmailSession403ErrorCodeEnum = { origin_not_allowed: "origin_not_allowed" };
2278
+ /**
2279
+ * Generated by Kubb (https://kubb.dev/).
2280
+ * Do not edit manually.
2281
+ */
2282
+ const getFxRates401ErrorCodeEnum = {
2283
+ invalid_publishable_key: "invalid_publishable_key",
2284
+ publishable_key_missing: "publishable_key_missing"
2285
+ };
2286
+ /**
2287
+ * Generated by Kubb (https://kubb.dev/).
2288
+ * Do not edit manually.
2289
+ */
2290
+ const getFxRates403ErrorCodeEnum = { origin_not_allowed: "origin_not_allowed" };
2291
+ /**
2292
+ * Generated by Kubb (https://kubb.dev/).
2293
+ * Do not edit manually.
2294
+ */
2295
+ const getFxRates502ErrorCodeEnum = { fx_unavailable: "fx_unavailable" };
2296
+ /**
2297
+ * Generated by Kubb (https://kubb.dev/).
2298
+ * Do not edit manually.
2299
+ */
2300
+ const getIdentityVerificationUrl400ErrorCodeEnum = { customer_details_invalid: "customer_details_invalid" };
2301
+ /**
2302
+ * Generated by Kubb (https://kubb.dev/).
2303
+ * Do not edit manually.
2304
+ */
2305
+ const getIdentityVerificationUrl401ErrorCodeEnum = {
2306
+ invalid_publishable_key: "invalid_publishable_key",
2307
+ publishable_key_missing: "publishable_key_missing",
2308
+ session_required: "session_required"
2309
+ };
2310
+ /**
2311
+ * Generated by Kubb (https://kubb.dev/).
2312
+ * Do not edit manually.
2313
+ */
2314
+ const getIdentityVerificationUrl403ErrorCodeEnum = {
2315
+ origin_not_allowed: "origin_not_allowed",
2316
+ payment_method_not_enabled: "payment_method_not_enabled"
2317
+ };
2318
+ /**
2319
+ * Generated by Kubb (https://kubb.dev/).
2320
+ * Do not edit manually.
2321
+ */
2322
+ const getIdentityVerificationUrl404ErrorCodeEnum = { customer_not_registered: "customer_not_registered" };
2323
+ /**
2324
+ * Generated by Kubb (https://kubb.dev/).
2325
+ * Do not edit manually.
2326
+ */
2327
+ const getIdentityVerificationUrl502ErrorCodeEnum = { bank_transfer_unavailable: "bank_transfer_unavailable" };
2328
+ /**
2329
+ * Generated by Kubb (https://kubb.dev/).
2330
+ * Do not edit manually.
2331
+ */
2332
+ const getStripeConfig401ErrorCodeEnum = {
2333
+ invalid_publishable_key: "invalid_publishable_key",
2334
+ publishable_key_missing: "publishable_key_missing"
2335
+ };
2336
+ /**
2337
+ * Generated by Kubb (https://kubb.dev/).
2338
+ * Do not edit manually.
2339
+ */
2340
+ const getStripeConfig403ErrorCodeEnum = {
2341
+ origin_not_allowed: "origin_not_allowed",
2342
+ payment_method_not_enabled: "payment_method_not_enabled"
2343
+ };
2344
+ const getStripeCustomerStatus200IdDocumentStatusEnum = {
2345
+ not_available: "not_available",
2346
+ not_started: "not_started",
2347
+ pending: "pending",
2348
+ rejected: "rejected",
2349
+ verified: "verified"
2350
+ };
2351
+ const getStripeCustomerStatus200KycRegionEnum = {
2352
+ us: "us",
2353
+ eu: "eu"
2354
+ };
2355
+ const getStripeCustomerStatus200KycStatusEnum = {
2356
+ not_available: "not_available",
2357
+ not_started: "not_started",
2358
+ pending: "pending",
2359
+ rejected: "rejected",
2360
+ verified: "verified"
2361
+ };
2362
+ const getStripeCustomerStatus200L2StatusEnum = {
2363
+ not_available: "not_available",
2364
+ not_started: "not_started",
2365
+ pending: "pending",
2366
+ rejected: "rejected",
2367
+ verified: "verified"
2368
+ };
2369
+ /**
2370
+ * Generated by Kubb (https://kubb.dev/).
2371
+ * Do not edit manually.
2372
+ */
2373
+ const getStripeCustomerStatus400ErrorCodeEnum = { validation_error: "validation_error" };
2374
+ /**
2375
+ * Generated by Kubb (https://kubb.dev/).
2376
+ * Do not edit manually.
2377
+ */
2378
+ const getStripeCustomerStatus401ErrorCodeEnum = {
2379
+ invalid_publishable_key: "invalid_publishable_key",
2380
+ publishable_key_missing: "publishable_key_missing",
2381
+ stripe_auth_required: "stripe_auth_required"
2382
+ };
2383
+ /**
2384
+ * Generated by Kubb (https://kubb.dev/).
2385
+ * Do not edit manually.
2386
+ */
2387
+ const getStripeCustomerStatus403ErrorCodeEnum = {
2388
+ origin_not_allowed: "origin_not_allowed",
2389
+ payment_method_not_enabled: "payment_method_not_enabled"
2390
+ };
2391
+ /**
2392
+ * Generated by Kubb (https://kubb.dev/).
2393
+ * Do not edit manually.
2394
+ */
2395
+ const getStripeCustomerStatus404ErrorCodeEnum = { stripe_resource_not_found: "stripe_resource_not_found" };
2396
+ const getStripeOrder200StatusEnum = {
2397
+ requires_payment_method: "requires_payment_method",
2398
+ pending: "pending",
2399
+ succeeded: "succeeded",
2400
+ failed: "failed"
2401
+ };
2402
+ /**
2403
+ * Generated by Kubb (https://kubb.dev/).
2404
+ * Do not edit manually.
2405
+ */
2406
+ const getStripeOrder400ErrorCodeEnum = { validation_error: "validation_error" };
2407
+ /**
2408
+ * Generated by Kubb (https://kubb.dev/).
2409
+ * Do not edit manually.
2410
+ */
2411
+ const getStripeOrder401ErrorCodeEnum = {
2412
+ invalid_publishable_key: "invalid_publishable_key",
2413
+ publishable_key_missing: "publishable_key_missing",
2414
+ stripe_auth_required: "stripe_auth_required"
2415
+ };
2416
+ /**
2417
+ * Generated by Kubb (https://kubb.dev/).
2418
+ * Do not edit manually.
2419
+ */
2420
+ const getStripeOrder403ErrorCodeEnum = {
2421
+ origin_not_allowed: "origin_not_allowed",
2422
+ payment_method_not_enabled: "payment_method_not_enabled"
2423
+ };
2424
+ /**
2425
+ * Generated by Kubb (https://kubb.dev/).
2426
+ * Do not edit manually.
2427
+ */
2428
+ const getStripeOrder404ErrorCodeEnum = { order_not_found: "order_not_found" };
2429
+ /**
2430
+ * Generated by Kubb (https://kubb.dev/).
2431
+ * Do not edit manually.
2432
+ */
2433
+ const getTermsOfServiceUrl400ErrorCodeEnum = { customer_details_invalid: "customer_details_invalid" };
2434
+ /**
2435
+ * Generated by Kubb (https://kubb.dev/).
2436
+ * Do not edit manually.
2437
+ */
2438
+ const getTermsOfServiceUrl401ErrorCodeEnum = {
2439
+ invalid_publishable_key: "invalid_publishable_key",
2440
+ publishable_key_missing: "publishable_key_missing",
2441
+ session_required: "session_required"
2442
+ };
2443
+ /**
2444
+ * Generated by Kubb (https://kubb.dev/).
2445
+ * Do not edit manually.
2446
+ */
2447
+ const getTermsOfServiceUrl403ErrorCodeEnum = {
2448
+ origin_not_allowed: "origin_not_allowed",
2449
+ payment_method_not_enabled: "payment_method_not_enabled"
2450
+ };
2451
+ /**
2452
+ * Generated by Kubb (https://kubb.dev/).
2453
+ * Do not edit manually.
2454
+ */
2455
+ const getTermsOfServiceUrl404ErrorCodeEnum = { customer_not_registered: "customer_not_registered" };
2456
+ /**
2457
+ * Generated by Kubb (https://kubb.dev/).
2458
+ * Do not edit manually.
2459
+ */
2460
+ const getTermsOfServiceUrl502ErrorCodeEnum = { bank_transfer_unavailable: "bank_transfer_unavailable" };
2461
+ const getVirtualAccountStatus200IdentityVerificationStatusEnum = {
2462
+ not_started: "not_started",
2463
+ incomplete: "incomplete",
2464
+ awaiting_questionnaire: "awaiting_questionnaire",
2465
+ awaiting_ubo: "awaiting_ubo",
2466
+ under_review: "under_review",
2467
+ active: "active",
2468
+ deposits_restricted: "deposits_restricted",
2469
+ rejected: "rejected",
2470
+ paused: "paused",
2471
+ offboarded: "offboarded"
2472
+ };
2473
+ /**
2474
+ * Generated by Kubb (https://kubb.dev/).
2475
+ * Do not edit manually.
2476
+ */
2477
+ const getVirtualAccountStatus401ErrorCodeEnum = {
2478
+ invalid_publishable_key: "invalid_publishable_key",
2479
+ publishable_key_missing: "publishable_key_missing",
2480
+ session_required: "session_required"
2481
+ };
2482
+ /**
2483
+ * Generated by Kubb (https://kubb.dev/).
2484
+ * Do not edit manually.
2485
+ */
2486
+ const getVirtualAccountStatus403ErrorCodeEnum = {
2487
+ origin_not_allowed: "origin_not_allowed",
2488
+ payment_method_not_enabled: "payment_method_not_enabled"
2489
+ };
2490
+ /**
2491
+ * Generated by Kubb (https://kubb.dev/).
2492
+ * Do not edit manually.
2493
+ */
2494
+ const getVirtualAccountStatus404ErrorCodeEnum = { customer_not_registered: "customer_not_registered" };
2495
+ /**
2496
+ * Generated by Kubb (https://kubb.dev/).
2497
+ * Do not edit manually.
2498
+ */
2499
+ const listCountries401ErrorCodeEnum = {
2500
+ invalid_publishable_key: "invalid_publishable_key",
2501
+ publishable_key_missing: "publishable_key_missing"
2502
+ };
2503
+ /**
2504
+ * Generated by Kubb (https://kubb.dev/).
2505
+ * Do not edit manually.
2506
+ */
2507
+ const listCountries403ErrorCodeEnum = { origin_not_allowed: "origin_not_allowed" };
2508
+ /**
2509
+ * Generated by Kubb (https://kubb.dev/).
2510
+ * Do not edit manually.
2511
+ */
2512
+ const listPaymentMethods400ErrorCodeEnum = { validation_error: "validation_error" };
2513
+ /**
2514
+ * Generated by Kubb (https://kubb.dev/).
2515
+ * Do not edit manually.
2516
+ */
2517
+ const listPaymentMethods401ErrorCodeEnum = {
2518
+ invalid_publishable_key: "invalid_publishable_key",
2519
+ publishable_key_missing: "publishable_key_missing"
2520
+ };
2521
+ /**
2522
+ * Generated by Kubb (https://kubb.dev/).
2523
+ * Do not edit manually.
2524
+ */
2525
+ const listPaymentMethods403ErrorCodeEnum = { origin_not_allowed: "origin_not_allowed" };
2526
+ /**
2527
+ * Generated by Kubb (https://kubb.dev/).
2528
+ * Do not edit manually.
2529
+ */
2530
+ const listStripePaymentTokens400ErrorCodeEnum = { validation_error: "validation_error" };
2531
+ /**
2532
+ * Generated by Kubb (https://kubb.dev/).
2533
+ * Do not edit manually.
2534
+ */
2535
+ const listStripePaymentTokens401ErrorCodeEnum = {
2536
+ invalid_publishable_key: "invalid_publishable_key",
2537
+ publishable_key_missing: "publishable_key_missing",
2538
+ stripe_auth_required: "stripe_auth_required"
2539
+ };
2540
+ /**
2541
+ * Generated by Kubb (https://kubb.dev/).
2542
+ * Do not edit manually.
2543
+ */
2544
+ const listStripePaymentTokens403ErrorCodeEnum = {
2545
+ origin_not_allowed: "origin_not_allowed",
2546
+ payment_method_not_enabled: "payment_method_not_enabled"
2547
+ };
2548
+ /**
2549
+ * Generated by Kubb (https://kubb.dev/).
2550
+ * Do not edit manually.
2551
+ */
2552
+ const listStripePaymentTokens404ErrorCodeEnum = { stripe_resource_not_found: "stripe_resource_not_found" };
2553
+ /**
2554
+ * Generated by Kubb (https://kubb.dev/).
2555
+ * Do not edit manually.
2556
+ */
2557
+ const listStripeWallets400ErrorCodeEnum = { validation_error: "validation_error" };
2558
+ /**
2559
+ * Generated by Kubb (https://kubb.dev/).
2560
+ * Do not edit manually.
2561
+ */
2562
+ const listStripeWallets401ErrorCodeEnum = {
2563
+ invalid_publishable_key: "invalid_publishable_key",
2564
+ publishable_key_missing: "publishable_key_missing",
2565
+ stripe_auth_required: "stripe_auth_required"
2566
+ };
2567
+ /**
2568
+ * Generated by Kubb (https://kubb.dev/).
2569
+ * Do not edit manually.
2570
+ */
2571
+ const listStripeWallets403ErrorCodeEnum = {
2572
+ origin_not_allowed: "origin_not_allowed",
2573
+ payment_method_not_enabled: "payment_method_not_enabled"
2574
+ };
2575
+ /**
2576
+ * Generated by Kubb (https://kubb.dev/).
2577
+ * Do not edit manually.
2578
+ */
2579
+ const listStripeWallets404ErrorCodeEnum = { stripe_resource_not_found: "stripe_resource_not_found" };
2580
+ /**
2581
+ * Generated by Kubb (https://kubb.dev/).
2582
+ * Do not edit manually.
2583
+ */
2584
+ const listVirtualAccounts401ErrorCodeEnum = {
2585
+ invalid_publishable_key: "invalid_publishable_key",
2586
+ publishable_key_missing: "publishable_key_missing",
2587
+ session_required: "session_required"
2588
+ };
2589
+ /**
2590
+ * Generated by Kubb (https://kubb.dev/).
2591
+ * Do not edit manually.
2592
+ */
2593
+ const listVirtualAccounts403ErrorCodeEnum = {
2594
+ origin_not_allowed: "origin_not_allowed",
2595
+ payment_method_not_enabled: "payment_method_not_enabled"
2596
+ };
2597
+ /**
2598
+ * Generated by Kubb (https://kubb.dev/).
2599
+ * Do not edit manually.
2600
+ */
2601
+ const paymentMethodEnumEnum = {
2602
+ bank_transfer: "bank_transfer",
2603
+ cashapp: "cashapp",
2604
+ card: "card",
2605
+ apple_pay: "apple_pay",
2606
+ google_pay: "google_pay",
2607
+ blink: "blink"
2608
+ };
2609
+ /**
2610
+ * Generated by Kubb (https://kubb.dev/).
2611
+ * Do not edit manually.
2612
+ */
2613
+ const registerVirtualAccountCustomer400ErrorCodeEnum = {
2614
+ customer_details_invalid: "customer_details_invalid",
2615
+ validation_error: "validation_error"
2616
+ };
2617
+ /**
2618
+ * Generated by Kubb (https://kubb.dev/).
2619
+ * Do not edit manually.
2620
+ */
2621
+ const registerVirtualAccountCustomer401ErrorCodeEnum = {
2622
+ invalid_publishable_key: "invalid_publishable_key",
2623
+ publishable_key_missing: "publishable_key_missing",
2624
+ session_required: "session_required"
2625
+ };
2626
+ /**
2627
+ * Generated by Kubb (https://kubb.dev/).
2628
+ * Do not edit manually.
2629
+ */
2630
+ const registerVirtualAccountCustomer403ErrorCodeEnum = {
2631
+ origin_not_allowed: "origin_not_allowed",
2632
+ payment_method_not_enabled: "payment_method_not_enabled"
2633
+ };
2634
+ /**
2635
+ * Generated by Kubb (https://kubb.dev/).
2636
+ * Do not edit manually.
2637
+ */
2638
+ const registerVirtualAccountCustomer409ErrorCodeEnum = { already_registered: "already_registered" };
2639
+ /**
2640
+ * Generated by Kubb (https://kubb.dev/).
2641
+ * Do not edit manually.
2642
+ */
2643
+ const registerVirtualAccountCustomer415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
2644
+ /**
2645
+ * Generated by Kubb (https://kubb.dev/).
2646
+ * Do not edit manually.
2647
+ */
2648
+ const registerVirtualAccountCustomer502ErrorCodeEnum = { bank_transfer_unavailable: "bank_transfer_unavailable" };
2649
+ const resolveStripeDestinationMutationRequestCurrencyEnum = {
2650
+ USD: "USD",
2651
+ EUR: "EUR"
2652
+ };
2653
+ /**
2654
+ * Generated by Kubb (https://kubb.dev/).
2655
+ * Do not edit manually.
2656
+ */
2657
+ const resolveStripeDestination400ErrorCodeEnum = {
2658
+ recipient_invalid: "recipient_invalid",
2659
+ unsupported_chain: "unsupported_chain",
2660
+ unsupported_route: "unsupported_route",
2661
+ validation_error: "validation_error"
2662
+ };
2663
+ /**
2664
+ * Generated by Kubb (https://kubb.dev/).
2665
+ * Do not edit manually.
2666
+ */
2667
+ const resolveStripeDestination401ErrorCodeEnum = {
2668
+ invalid_publishable_key: "invalid_publishable_key",
2669
+ publishable_key_missing: "publishable_key_missing",
2670
+ stripe_auth_required: "stripe_auth_required"
2671
+ };
2672
+ /**
2673
+ * Generated by Kubb (https://kubb.dev/).
2674
+ * Do not edit manually.
2675
+ */
2676
+ const resolveStripeDestination403ErrorCodeEnum = {
2677
+ origin_not_allowed: "origin_not_allowed",
2678
+ payment_method_not_enabled: "payment_method_not_enabled",
2679
+ wallet_sanctioned: "wallet_sanctioned"
2680
+ };
2681
+ /**
2682
+ * Generated by Kubb (https://kubb.dev/).
2683
+ * Do not edit manually.
2684
+ */
2685
+ const resolveStripeDestination404ErrorCodeEnum = { lighter_account_not_found: "lighter_account_not_found" };
2686
+ /**
2687
+ * Generated by Kubb (https://kubb.dev/).
2688
+ * Do not edit manually.
2689
+ */
2690
+ const resolveStripeDestination415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
2691
+ /**
2692
+ * Generated by Kubb (https://kubb.dev/).
2693
+ * Do not edit manually.
2694
+ */
2695
+ const revokeEmailSession401ErrorCodeEnum = {
2696
+ invalid_publishable_key: "invalid_publishable_key",
2697
+ publishable_key_missing: "publishable_key_missing",
2698
+ session_required: "session_required"
2699
+ };
2700
+ /**
2701
+ * Generated by Kubb (https://kubb.dev/).
2702
+ * Do not edit manually.
2703
+ */
2704
+ const revokeEmailSession403ErrorCodeEnum = { origin_not_allowed: "origin_not_allowed" };
2705
+ /**
2706
+ * Generated by Kubb (https://kubb.dev/).
2707
+ * Do not edit manually.
2708
+ */
2709
+ const startEmailLogin400ErrorCodeEnum = {
2710
+ email_invalid_recipient: "email_invalid_recipient",
2711
+ validation_error: "validation_error"
2712
+ };
2713
+ /**
2714
+ * Generated by Kubb (https://kubb.dev/).
2715
+ * Do not edit manually.
2716
+ */
2717
+ const startEmailLogin401ErrorCodeEnum = {
2718
+ invalid_publishable_key: "invalid_publishable_key",
2719
+ publishable_key_missing: "publishable_key_missing"
2720
+ };
2721
+ /**
2722
+ * Generated by Kubb (https://kubb.dev/).
2723
+ * Do not edit manually.
2724
+ */
2725
+ const startEmailLogin403ErrorCodeEnum = { origin_not_allowed: "origin_not_allowed" };
2726
+ /**
2727
+ * Generated by Kubb (https://kubb.dev/).
2728
+ * Do not edit manually.
2729
+ */
2730
+ const startEmailLogin415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
2731
+ /**
2732
+ * Generated by Kubb (https://kubb.dev/).
2733
+ * Do not edit manually.
2734
+ */
2735
+ const startEmailLogin429ErrorCodeEnum = { challenge_rate_limited: "challenge_rate_limited" };
2736
+ /**
2737
+ * Generated by Kubb (https://kubb.dev/).
2738
+ * Do not edit manually.
2739
+ */
2740
+ const stripeOnboardingStatusEnum = {
2741
+ requires_action: "requires_action",
2742
+ verified: "verified",
2743
+ rejected: "rejected",
2744
+ not_available: "not_available"
2745
+ };
2746
+ /**
2747
+ * Generated by Kubb (https://kubb.dev/).
2748
+ * Do not edit manually.
2749
+ */
2750
+ const verifyEmailLogin400ErrorCodeEnum = {
2751
+ invalid_otp: "invalid_otp",
2752
+ validation_error: "validation_error"
2753
+ };
2754
+ /**
2755
+ * Generated by Kubb (https://kubb.dev/).
2756
+ * Do not edit manually.
2757
+ */
2758
+ const verifyEmailLogin401ErrorCodeEnum = {
2759
+ challenge_expired: "challenge_expired",
2760
+ challenge_wallet_mismatch: "challenge_wallet_mismatch",
2761
+ invalid_publishable_key: "invalid_publishable_key",
2762
+ publishable_key_missing: "publishable_key_missing"
2763
+ };
2764
+ /**
2765
+ * Generated by Kubb (https://kubb.dev/).
2766
+ * Do not edit manually.
2767
+ */
2768
+ const verifyEmailLogin403ErrorCodeEnum = { origin_not_allowed: "origin_not_allowed" };
2769
+ /**
2770
+ * Generated by Kubb (https://kubb.dev/).
2771
+ * Do not edit manually.
2772
+ */
2773
+ const verifyEmailLogin415ErrorCodeEnum = { unsupported_media_type: "unsupported_media_type" };
2774
+ /**
2775
+ * Generated by Kubb (https://kubb.dev/).
2776
+ * Do not edit manually.
2777
+ */
2778
+ const verifyEmailLogin429ErrorCodeEnum = { too_many_attempts: "too_many_attempts" };
2779
+ export { ApiError, appearanceColorModeEnum, cardOrderEventStatusEnum, cardOrderStatusEnum, chainEnum, checkoutStripeSession, checkoutStripeSession400ErrorCodeEnum, checkoutStripeSession401ErrorCodeEnum, checkoutStripeSession402ErrorCodeEnum, checkoutStripeSession403ErrorCodeEnum, checkoutStripeSession404ErrorCodeEnum, checkoutStripeSession409ErrorCodeEnum, checkoutStripeSession422ErrorCodeEnum, client, confirmCardOrder, confirmCardOrder400ErrorCodeEnum, confirmCardOrder401ErrorCodeEnum, confirmCardOrder402ErrorCodeEnum, confirmCardOrder403ErrorCodeEnum, confirmCardOrder404ErrorCodeEnum, confirmCardOrder409ErrorCodeEnum, confirmCardOrder415ErrorCodeEnum, confirmCardOrder422ErrorCodeEnum, createApplePaySession, createApplePaySession400ErrorCodeEnum, createApplePaySession401ErrorCodeEnum, createApplePaySession403ErrorCodeEnum, createApplePaySession404ErrorCodeEnum, createApplePaySession409ErrorCodeEnum, createBlinkSignature, createBlinkSignature400ErrorCodeEnum, createBlinkSignature401ErrorCodeEnum, createBlinkSignature403ErrorCodeEnum, createBlinkSignature415ErrorCodeEnum, createBlinkSignatureMutationRequestCurrencyEnum, createCardFcaSubmission, createCardFcaSubmission200StatusEnum, createCardFcaSubmission400ErrorCodeEnum, createCardFcaSubmission401ErrorCodeEnum, createCardFcaSubmission403ErrorCodeEnum, createCardFcaSubmission415ErrorCodeEnum, createCardOrder, createCardOrder400ErrorCodeEnum, createCardOrder401ErrorCodeEnum, createCardOrder403ErrorCodeEnum, createCardOrder404ErrorCodeEnum, createCardOrder409ErrorCodeEnum, createCardOrder415ErrorCodeEnum, createCardOrder422ErrorCodeEnum, createCardQuote, createCardQuote400ErrorCodeEnum, createCardQuote401ErrorCodeEnum, createCardQuote403ErrorCodeEnum, createCardQuote404ErrorCodeEnum, createCardQuote415ErrorCodeEnum, createCashAppOrder, createCashAppOrder200StatusEnum, createCashAppOrder400ErrorCodeEnum, createCashAppOrder401ErrorCodeEnum, createCashAppOrder403ErrorCodeEnum, createCashAppOrder404ErrorCodeEnum, createCashAppOrder409ErrorCodeEnum, createCashAppOrder415ErrorCodeEnum, createCashAppOrder422ErrorCodeEnum, createCashAppOrder503ErrorCodeEnum, createCashAppOrderMutationRequestCurrencyEnum, createCashAppQuote, createCashAppQuote400ErrorCodeEnum, createCashAppQuote401ErrorCodeEnum, createCashAppQuote403ErrorCodeEnum, createCashAppQuote404ErrorCodeEnum, createCashAppQuote415ErrorCodeEnum, createCashAppQuote503ErrorCodeEnum, createCashAppQuoteMutationRequestCurrencyEnum, createStripeAuthIntent, createStripeAuthIntent400ErrorCodeEnum, createStripeAuthIntent401ErrorCodeEnum, createStripeAuthIntent403ErrorCodeEnum, createStripeAuthIntent404ErrorCodeEnum, createStripeAuthIntent409ErrorCodeEnum, createStripeAuthIntent415ErrorCodeEnum, createStripeCustomer, createStripeCustomer400ErrorCodeEnum, createStripeCustomer401ErrorCodeEnum, createStripeCustomer403ErrorCodeEnum, createStripeCustomer404ErrorCodeEnum, createStripeQuote, createStripeQuote400ErrorCodeEnum, createStripeQuote401ErrorCodeEnum, createStripeQuote403ErrorCodeEnum, createStripeQuote404ErrorCodeEnum, createStripeQuote415ErrorCodeEnum, createStripeQuoteMutationRequestCurrencyEnum, createStripeSession, createStripeSession200StatusEnum, createStripeSession400ErrorCodeEnum, createStripeSession401ErrorCodeEnum, createStripeSession402ErrorCodeEnum, createStripeSession403ErrorCodeEnum, createStripeSession404ErrorCodeEnum, createStripeSession415ErrorCodeEnum, createStripeSessionMutationRequestCurrencyEnum, createStripeTokens, createStripeTokens400ErrorCodeEnum, createStripeTokens401ErrorCodeEnum, createStripeTokens403ErrorCodeEnum, createStripeTokens415ErrorCodeEnum, createVirtualAccount, createVirtualAccount400ErrorCodeEnum, createVirtualAccount401ErrorCodeEnum, createVirtualAccount403ErrorCodeEnum, createVirtualAccount404ErrorCodeEnum, createVirtualAccount409ErrorCodeEnum, createVirtualAccount415ErrorCodeEnum, destinationTokenEnum, errorCodeEnum, fiatCurrencyEnum, getApp, getApp401ErrorCodeEnum, getApp403ErrorCodeEnum, getBalances, getBalances400ErrorCodeEnum, getBalances401ErrorCodeEnum, getBalances403ErrorCodeEnum, getBlinkConfig, getBlinkConfig401ErrorCodeEnum, getBlinkConfig403ErrorCodeEnum, getCardCustomer, getCardCustomer401ErrorCodeEnum, getCardCustomer403ErrorCodeEnum, getCardCustomer404ErrorCodeEnum, getCardFcaRequirements, getCardFcaRequirements200StatusEnum, getCardFcaRequirements400ErrorCodeEnum, getCardFcaRequirements401ErrorCodeEnum, getCardFcaRequirements403ErrorCodeEnum, getCardFcaRequirementsQueryParamsStatusEnum, getCardFcaStatus, getCardFcaStatus400ErrorCodeEnum, getCardFcaStatus401ErrorCodeEnum, getCardFcaStatus403ErrorCodeEnum, getCardOrder, getCardOrder400ErrorCodeEnum, getCardOrder401ErrorCodeEnum, getCardOrder403ErrorCodeEnum, getCardOrder404ErrorCodeEnum, getCardReturn, getCardReturnPathParamsOutcomeEnum, getCashAppOrder, getCashAppOrder200StatusEnum, getCashAppOrder400ErrorCodeEnum, getCashAppOrder401ErrorCodeEnum, getCashAppOrder403ErrorCodeEnum, getCashAppOrder404ErrorCodeEnum, getEmailSession, getEmailSession401ErrorCodeEnum, getEmailSession403ErrorCodeEnum, getFxRates, getFxRates401ErrorCodeEnum, getFxRates403ErrorCodeEnum, getFxRates502ErrorCodeEnum, getIdentityVerificationUrl, getIdentityVerificationUrl400ErrorCodeEnum, getIdentityVerificationUrl401ErrorCodeEnum, getIdentityVerificationUrl403ErrorCodeEnum, getIdentityVerificationUrl404ErrorCodeEnum, getIdentityVerificationUrl502ErrorCodeEnum, getStripeConfig, getStripeConfig401ErrorCodeEnum, getStripeConfig403ErrorCodeEnum, getStripeCustomerStatus, getStripeCustomerStatus200IdDocumentStatusEnum, getStripeCustomerStatus200KycRegionEnum, getStripeCustomerStatus200KycStatusEnum, getStripeCustomerStatus200L2StatusEnum, getStripeCustomerStatus400ErrorCodeEnum, getStripeCustomerStatus401ErrorCodeEnum, getStripeCustomerStatus403ErrorCodeEnum, getStripeCustomerStatus404ErrorCodeEnum, getStripeOrder, getStripeOrder200StatusEnum, getStripeOrder400ErrorCodeEnum, getStripeOrder401ErrorCodeEnum, getStripeOrder403ErrorCodeEnum, getStripeOrder404ErrorCodeEnum, getTermsOfServiceUrl, getTermsOfServiceUrl400ErrorCodeEnum, getTermsOfServiceUrl401ErrorCodeEnum, getTermsOfServiceUrl403ErrorCodeEnum, getTermsOfServiceUrl404ErrorCodeEnum, getTermsOfServiceUrl502ErrorCodeEnum, getVirtualAccountStatus, getVirtualAccountStatus200IdentityVerificationStatusEnum, getVirtualAccountStatus401ErrorCodeEnum, getVirtualAccountStatus403ErrorCodeEnum, getVirtualAccountStatus404ErrorCodeEnum, listCountries, listCountries401ErrorCodeEnum, listCountries403ErrorCodeEnum, listPaymentMethods, listPaymentMethods400ErrorCodeEnum, listPaymentMethods401ErrorCodeEnum, listPaymentMethods403ErrorCodeEnum, listStripePaymentTokens, listStripePaymentTokens400ErrorCodeEnum, listStripePaymentTokens401ErrorCodeEnum, listStripePaymentTokens403ErrorCodeEnum, listStripePaymentTokens404ErrorCodeEnum, listStripeWallets, listStripeWallets400ErrorCodeEnum, listStripeWallets401ErrorCodeEnum, listStripeWallets403ErrorCodeEnum, listStripeWallets404ErrorCodeEnum, listVirtualAccounts, listVirtualAccounts401ErrorCodeEnum, listVirtualAccounts403ErrorCodeEnum, mountPaymentEnvironmentEnum, paymentMethodEnumEnum, paymentMethodTypeEnum, registerVirtualAccountCustomer, registerVirtualAccountCustomer400ErrorCodeEnum, registerVirtualAccountCustomer401ErrorCodeEnum, registerVirtualAccountCustomer403ErrorCodeEnum, registerVirtualAccountCustomer409ErrorCodeEnum, registerVirtualAccountCustomer415ErrorCodeEnum, registerVirtualAccountCustomer502ErrorCodeEnum, resolveStripeDestination, resolveStripeDestination400ErrorCodeEnum, resolveStripeDestination401ErrorCodeEnum, resolveStripeDestination403ErrorCodeEnum, resolveStripeDestination404ErrorCodeEnum, resolveStripeDestination415ErrorCodeEnum, resolveStripeDestinationMutationRequestCurrencyEnum, revokeEmailSession, revokeEmailSession401ErrorCodeEnum, revokeEmailSession403ErrorCodeEnum, startEmailLogin, startEmailLogin400ErrorCodeEnum, startEmailLogin401ErrorCodeEnum, startEmailLogin403ErrorCodeEnum, startEmailLogin415ErrorCodeEnum, startEmailLogin429ErrorCodeEnum, stripeOnboardingStatusEnum, verifyEmailLogin, verifyEmailLogin400ErrorCodeEnum, verifyEmailLogin401ErrorCodeEnum, verifyEmailLogin403ErrorCodeEnum, verifyEmailLogin415ErrorCodeEnum, verifyEmailLogin429ErrorCodeEnum, verifyIdentityEnvironmentEnum };