@calm-xyz/core 0.10.0 → 0.11.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.
- package/dist/index.d.ts +2468 -497
- package/dist/index.js +642 -14
- package/package.json +2 -8
package/dist/index.js
CHANGED
|
@@ -67,6 +67,54 @@ const client = request;
|
|
|
67
67
|
* Generated by Kubb (https://kubb.dev/).
|
|
68
68
|
* Do not edit manually.
|
|
69
69
|
*/
|
|
70
|
+
function getCheckoutCardUrl(address) {
|
|
71
|
+
return {
|
|
72
|
+
method: "POST",
|
|
73
|
+
url: `/v1/wallets/${address}/card/checkout`
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @description Submits a card checkout for the session wallet using encrypted card details collected by the SDK. Every chain is a valid `chain`: the ones the card provider settles to directly are delivered by it, and the rest are routed on arrival, which requires a registered wallet.
|
|
78
|
+
* @summary Submit card checkout
|
|
79
|
+
* {@link /v1/wallets/:address/card/checkout}
|
|
80
|
+
*/
|
|
81
|
+
async function checkoutCard(address, data, config = {}) {
|
|
82
|
+
const { client: request = client, ...requestConfig } = config;
|
|
83
|
+
const requestData = data;
|
|
84
|
+
return (await request({
|
|
85
|
+
method: "POST",
|
|
86
|
+
url: getCheckoutCardUrl(address).url.toString(),
|
|
87
|
+
data: requestData,
|
|
88
|
+
...requestConfig
|
|
89
|
+
})).data;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
93
|
+
* Do not edit manually.
|
|
94
|
+
*/
|
|
95
|
+
function getCheckoutStripeSessionUrl(address, sessionId) {
|
|
96
|
+
return {
|
|
97
|
+
method: "POST",
|
|
98
|
+
url: `/v1/wallets/${address}/stripe/session/${sessionId}/checkout`
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @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.
|
|
103
|
+
* @summary Check out a Stripe onramp session
|
|
104
|
+
* {@link /v1/wallets/:address/stripe/session/:sessionId/checkout}
|
|
105
|
+
*/
|
|
106
|
+
async function checkoutStripeSession(address, sessionId, config = {}) {
|
|
107
|
+
const { client: request = client, ...requestConfig } = config;
|
|
108
|
+
return (await request({
|
|
109
|
+
method: "POST",
|
|
110
|
+
url: getCheckoutStripeSessionUrl(address, sessionId).url.toString(),
|
|
111
|
+
...requestConfig
|
|
112
|
+
})).data;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
116
|
+
* Do not edit manually.
|
|
117
|
+
*/
|
|
70
118
|
function getClearSessionUrl() {
|
|
71
119
|
return {
|
|
72
120
|
method: "POST",
|
|
@@ -113,6 +161,31 @@ async function connectExchange(address, exchange, config = {}) {
|
|
|
113
161
|
* Generated by Kubb (https://kubb.dev/).
|
|
114
162
|
* Do not edit manually.
|
|
115
163
|
*/
|
|
164
|
+
function getCreateBlinkSignatureUrl(address) {
|
|
165
|
+
return {
|
|
166
|
+
method: "POST",
|
|
167
|
+
url: `/v1/wallets/${address}/blink/signature`
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* @description Returns the signed authorization the hosted deposit flow requires before it will accept a deposit. The destination is the session wallet and the destination chain's payout token — USDC on most chains, USDm on MegaETH (`4326`) — or the token named by `destination_token` where the chain offers a choice. The authorization is short-lived.
|
|
172
|
+
* @summary Authorize a deposit
|
|
173
|
+
* {@link /v1/wallets/:address/blink/signature}
|
|
174
|
+
*/
|
|
175
|
+
async function createBlinkSignature(address, data, config = {}) {
|
|
176
|
+
const { client: request = client, ...requestConfig } = config;
|
|
177
|
+
const requestData = data;
|
|
178
|
+
return (await request({
|
|
179
|
+
method: "POST",
|
|
180
|
+
url: getCreateBlinkSignatureUrl(address).url.toString(),
|
|
181
|
+
data: requestData,
|
|
182
|
+
...requestConfig
|
|
183
|
+
})).data;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
187
|
+
* Do not edit manually.
|
|
188
|
+
*/
|
|
116
189
|
function getCreateCardLinkUrl(address) {
|
|
117
190
|
return {
|
|
118
191
|
method: "POST",
|
|
@@ -120,7 +193,7 @@ function getCreateCardLinkUrl(address) {
|
|
|
120
193
|
};
|
|
121
194
|
}
|
|
122
195
|
/**
|
|
123
|
-
* @description Returns the hosted card-onramp URL for the wallet. The card provider authenticates the cardholder and settles USDC to the wallet.
|
|
196
|
+
* @description Returns the hosted card-onramp URL for the wallet. The card provider authenticates the cardholder and settles USDC to the wallet. Every chain is a valid `destination_chain`: the ones the card provider settles to directly are delivered by it, and the rest are routed on arrival, which ignores `destination_asset` and delivers to the session wallet.
|
|
124
197
|
* @summary Get the card-onramp link
|
|
125
198
|
* {@link /v1/wallets/:address/card}
|
|
126
199
|
*/
|
|
@@ -145,7 +218,7 @@ function getCreateCashAppOrderUrl(address) {
|
|
|
145
218
|
};
|
|
146
219
|
}
|
|
147
220
|
/**
|
|
148
|
-
* @description Opens a Cash App onramp order and returns it, including the Cash App payment link. Poll `GET .../cashapp/:id` for status.
|
|
221
|
+
* @description Opens a Cash App onramp order and returns it, including the Cash App payment link. Poll `GET .../cashapp/:id` for status. Every chain is a valid `chain`: the ones Cash App settles to directly are delivered by it, and the rest are routed on arrival, which requires a registered wallet and delivers to the session wallet — pass it as `address` or the request is refused.
|
|
149
222
|
* @summary Create a Cash App order
|
|
150
223
|
* {@link /v1/wallets/:address/cashapp}
|
|
151
224
|
*/
|
|
@@ -170,7 +243,7 @@ function getCreateCashAppQuoteUrl(address) {
|
|
|
170
243
|
};
|
|
171
244
|
}
|
|
172
245
|
/**
|
|
173
|
-
* @description Returns a pricing preview for a Cash App order — the destination amount, the fee, and the fee in basis points.
|
|
246
|
+
* @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 `chain`: the ones Cash App settles to directly are quoted against the destination, and the rest are quoted against the chain the order settles on before it is routed onward, which `routed` and `settlement_chain` name.
|
|
174
247
|
* @summary Quote a Cash App order
|
|
175
248
|
* {@link /v1/wallets/:address/cashapp/quote}
|
|
176
249
|
*/
|
|
@@ -195,7 +268,7 @@ function getCreateDepositAddressUrl(address) {
|
|
|
195
268
|
};
|
|
196
269
|
}
|
|
197
270
|
/**
|
|
198
|
-
* @description Returns an intake address for a `(source chain, source token) → destination` route. Funding it delivers the destination chain's payout token — USDC on most chains, USDm on MegaETH (`4326`) — at that token's own decimals; the same route reuses one address.
|
|
271
|
+
* @description Returns an intake address for a `(source chain, source token) → destination` route. Funding it delivers the destination chain's payout token — USDC on most chains, USDm on MegaETH (`4326`) — at that token's own decimals; the same route reuses one address. Pass `destination_token` to pick among a chain's payout tokens where it offers more than one.
|
|
199
272
|
* @summary Create a crypto deposit address
|
|
200
273
|
* {@link /v1/wallets/:address/deposit-address}
|
|
201
274
|
*/
|
|
@@ -291,7 +364,7 @@ function getCreateSessionSiweUrl(address) {
|
|
|
291
364
|
};
|
|
292
365
|
}
|
|
293
366
|
/**
|
|
294
|
-
* @description Verifies a signed EIP-4361 message and its nonce binding, then mints the session cookie pair. The publishable key
|
|
367
|
+
* @description Verifies a signed EIP-4361 message and its nonce binding, then mints the session cookie pair. The message is standard EIP-4361 with no Calm-specific fields — the publishable key comes from the binding issued by `/siwe/nonce`, which welds it to the nonce the wallet signed over.
|
|
295
368
|
* @summary Create a session (SIWE)
|
|
296
369
|
* {@link /v1/session/:address/siwe}
|
|
297
370
|
*/
|
|
@@ -316,7 +389,7 @@ function getCreateSiweNonceUrl(address) {
|
|
|
316
389
|
};
|
|
317
390
|
}
|
|
318
391
|
/**
|
|
319
|
-
* @description Returns a nonce to embed in an EIP-4361 message and a short-lived binding to echo back on the SIWE create. Each call issues a fresh nonce; the binding expires after a few minutes.
|
|
392
|
+
* @description Returns a nonce to embed in an EIP-4361 message and a short-lived binding to echo back on the SIWE create. Send the publishable key as `X-Calm-Publishable-Key`: it is welded into the binding, so the message itself stays standard EIP-4361 with no Calm-specific fields. Each call issues a fresh nonce; the binding expires after a few minutes.
|
|
320
393
|
* @summary Issue a SIWE nonce binding
|
|
321
394
|
* {@link /v1/session/:address/siwe/nonce}
|
|
322
395
|
*/
|
|
@@ -332,6 +405,54 @@ async function createSiweNonce(address, config = {}) {
|
|
|
332
405
|
* Generated by Kubb (https://kubb.dev/).
|
|
333
406
|
* Do not edit manually.
|
|
334
407
|
*/
|
|
408
|
+
function getCreateStripeAuthIntentUrl(address) {
|
|
409
|
+
return {
|
|
410
|
+
method: "POST",
|
|
411
|
+
url: `/v1/wallets/${address}/stripe/auth-intent`
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* @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. Read-passthrough — nothing is persisted here.
|
|
416
|
+
* @summary Open a Stripe Link auth intent
|
|
417
|
+
* {@link /v1/wallets/:address/stripe/auth-intent}
|
|
418
|
+
*/
|
|
419
|
+
async function createStripeAuthIntent(address, data, config = {}) {
|
|
420
|
+
const { client: request = client, ...requestConfig } = config;
|
|
421
|
+
const requestData = data;
|
|
422
|
+
return (await request({
|
|
423
|
+
method: "POST",
|
|
424
|
+
url: getCreateStripeAuthIntentUrl(address).url.toString(),
|
|
425
|
+
data: requestData,
|
|
426
|
+
...requestConfig
|
|
427
|
+
})).data;
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
431
|
+
* Do not edit manually.
|
|
432
|
+
*/
|
|
433
|
+
function getCreateStripeCustomerUrl(address, crypto_customer_id) {
|
|
434
|
+
return {
|
|
435
|
+
method: "POST",
|
|
436
|
+
url: `/v1/wallets/${address}/stripe/customer/${crypto_customer_id}`
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* @description Validates the crypto customer exists and persists the customer id onto the session so `/status` can re-derive it after a reopen.
|
|
441
|
+
* @summary Persist a Stripe crypto customer
|
|
442
|
+
* {@link /v1/wallets/:address/stripe/customer/:crypto_customer_id}
|
|
443
|
+
*/
|
|
444
|
+
async function createStripeCustomer(address, crypto_customer_id, config = {}) {
|
|
445
|
+
const { client: request = client, ...requestConfig } = config;
|
|
446
|
+
return (await request({
|
|
447
|
+
method: "POST",
|
|
448
|
+
url: getCreateStripeCustomerUrl(address, crypto_customer_id).url.toString(),
|
|
449
|
+
...requestConfig
|
|
450
|
+
})).data;
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
454
|
+
* Do not edit manually.
|
|
455
|
+
*/
|
|
335
456
|
function getCreateStripeSessionUrl(address) {
|
|
336
457
|
return {
|
|
337
458
|
method: "POST",
|
|
@@ -339,7 +460,7 @@ function getCreateStripeSessionUrl(address) {
|
|
|
339
460
|
};
|
|
340
461
|
}
|
|
341
462
|
/**
|
|
342
|
-
* @description
|
|
463
|
+
* @description Opens a headless onramp session and mirrors it into a local order. Returns Stripe's `session_id` (fed to the client SDK's `performCheckout`) plus our own `order_id` to poll via `GET .../stripe/order/:id`. Every chain is a valid `destination_chain`: the ones Stripe settles to directly are delivered by it, and the rest are routed on arrival, which requires a registered wallet and delivers to the session wallet. Pass exactly one of `source_amount` / `destination_amount`.
|
|
343
464
|
* @summary Open a Stripe onramp session
|
|
344
465
|
* {@link /v1/wallets/:address/stripe/session}
|
|
345
466
|
*/
|
|
@@ -357,6 +478,31 @@ async function createStripeSession(address, data, config = {}) {
|
|
|
357
478
|
* Generated by Kubb (https://kubb.dev/).
|
|
358
479
|
* Do not edit manually.
|
|
359
480
|
*/
|
|
481
|
+
function getCreateStripeTokensUrl(address) {
|
|
482
|
+
return {
|
|
483
|
+
method: "POST",
|
|
484
|
+
url: `/v1/wallets/${address}/stripe/tokens`
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
* @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.
|
|
489
|
+
* @summary Exchange an auth intent for tokens
|
|
490
|
+
* {@link /v1/wallets/:address/stripe/tokens}
|
|
491
|
+
*/
|
|
492
|
+
async function createStripeTokens(address, data, config = {}) {
|
|
493
|
+
const { client: request = client, ...requestConfig } = config;
|
|
494
|
+
const requestData = data;
|
|
495
|
+
return (await request({
|
|
496
|
+
method: "POST",
|
|
497
|
+
url: getCreateStripeTokensUrl(address).url.toString(),
|
|
498
|
+
data: requestData,
|
|
499
|
+
...requestConfig
|
|
500
|
+
})).data;
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
504
|
+
* Do not edit manually.
|
|
505
|
+
*/
|
|
360
506
|
function getCreateSwapQuoteUrl(address) {
|
|
361
507
|
return {
|
|
362
508
|
method: "POST",
|
|
@@ -364,7 +510,7 @@ function getCreateSwapQuoteUrl(address) {
|
|
|
364
510
|
};
|
|
365
511
|
}
|
|
366
512
|
/**
|
|
367
|
-
* @description Returns an executable quote for swapping a source token into the destination chain's payout token — USDC on most chains, USDm on MegaETH (`4326`) — at that token's own decimals. The response carries the steps the client executes on-chain; source and destination chains may differ.
|
|
513
|
+
* @description Returns an executable quote for swapping a source token into the destination chain's payout token — USDC on most chains, USDm on MegaETH (`4326`) — at that token's own decimals. Pass `destination_token` to pick among a chain's payout tokens where it offers more than one; omitted, the chain's default applies. The response carries the steps the client executes on-chain; source and destination chains may differ.
|
|
368
514
|
* @summary Quote a swap
|
|
369
515
|
* {@link /v1/wallets/:address/swap/quote}
|
|
370
516
|
*/
|
|
@@ -389,7 +535,7 @@ function getCreateVirtualAccountUrl(address) {
|
|
|
389
535
|
};
|
|
390
536
|
}
|
|
391
537
|
/**
|
|
392
|
-
* @description Provisions a fiat→USDC virtual account for a `(currency, destination chain)`
|
|
538
|
+
* @description Provisions a fiat→USDC virtual account for a `(currency, destination chain, payout token)` triple — repeating a triple returns the account that already exists, while changing `destination_token` on the same currency and chain provisions a SECOND account, since the two deliver different tokens and have different bank details. Every chain is accepted: the ones the banking rail settles to directly are delivered by it, and the rest are routed on arrival. Requires an approved identity verification. Returns 204; refetch the list to see the new account.
|
|
393
539
|
* @summary Create a virtual account
|
|
394
540
|
* {@link /v1/wallets/:address/virtual-accounts}
|
|
395
541
|
*/
|
|
@@ -462,7 +608,7 @@ function getGetBalanceUrl(address, chain, token) {
|
|
|
462
608
|
};
|
|
463
609
|
}
|
|
464
610
|
/**
|
|
465
|
-
* @description Returns a single token's balance on one chain. `token` is a catalog symbol (`eth`, `hype`, `usdc`, `usdt`).
|
|
611
|
+
* @description Returns a single token's balance on one chain. `token` is a catalog symbol (`eth`, `hype`, `mon`, `usdc`, `usdm`, `usdt`).
|
|
466
612
|
* @summary Get one token balance
|
|
467
613
|
* {@link /v1/wallets/:address/balances/:chain/:token}
|
|
468
614
|
*/
|
|
@@ -485,7 +631,7 @@ function getGetBalancesUrl(address) {
|
|
|
485
631
|
};
|
|
486
632
|
}
|
|
487
633
|
/**
|
|
488
|
-
* @description Returns the wallet's token balances across the supported source chains, each with its USD value. Filter with `?chains=1,8453`; the default covers the source chains
|
|
634
|
+
* @description Returns the wallet's token balances across the supported source chains, each with its USD value. Filter with `?chains=1,8453`; the default covers the source chains.
|
|
489
635
|
* @summary List wallet balances
|
|
490
636
|
* {@link /v1/wallets/:address/balances}
|
|
491
637
|
*/
|
|
@@ -502,6 +648,122 @@ async function getBalances(address, params, config = {}) {
|
|
|
502
648
|
* Generated by Kubb (https://kubb.dev/).
|
|
503
649
|
* Do not edit manually.
|
|
504
650
|
*/
|
|
651
|
+
function getGetBlinkConfigUrl(address) {
|
|
652
|
+
return {
|
|
653
|
+
method: "GET",
|
|
654
|
+
url: `/v1/wallets/${address}/blink/config`
|
|
655
|
+
};
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* @description Returns the environment-specific settings the SDK needs to open the hosted deposit flow. A null value means the SDK should use its bundled default.
|
|
659
|
+
* @summary Get the deposit-rail runtime config
|
|
660
|
+
* {@link /v1/wallets/:address/blink/config}
|
|
661
|
+
*/
|
|
662
|
+
async function getBlinkConfig(address, config = {}) {
|
|
663
|
+
const { client: request = client, ...requestConfig } = config;
|
|
664
|
+
return (await request({
|
|
665
|
+
method: "GET",
|
|
666
|
+
url: getGetBlinkConfigUrl(address).url.toString(),
|
|
667
|
+
...requestConfig
|
|
668
|
+
})).data;
|
|
669
|
+
}
|
|
670
|
+
/**
|
|
671
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
672
|
+
* Do not edit manually.
|
|
673
|
+
*/
|
|
674
|
+
function getGetCardConfigUrl(address) {
|
|
675
|
+
return {
|
|
676
|
+
method: "GET",
|
|
677
|
+
url: `/v1/wallets/${address}/card/config`
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
/**
|
|
681
|
+
* @description Returns public configuration used by the SDK to render secure card collection and risk checks.
|
|
682
|
+
* @summary Get card flow config
|
|
683
|
+
* {@link /v1/wallets/:address/card/config}
|
|
684
|
+
*/
|
|
685
|
+
async function getCardConfig(address, config = {}) {
|
|
686
|
+
const { client: request = client, ...requestConfig } = config;
|
|
687
|
+
return (await request({
|
|
688
|
+
method: "GET",
|
|
689
|
+
url: getGetCardConfigUrl(address).url.toString(),
|
|
690
|
+
...requestConfig
|
|
691
|
+
})).data;
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
695
|
+
* Do not edit manually.
|
|
696
|
+
*/
|
|
697
|
+
function getGetCardCustomerUrl(address) {
|
|
698
|
+
return {
|
|
699
|
+
method: "GET",
|
|
700
|
+
url: `/v1/wallets/${address}/card/customer`
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* @description Returns the saved registration and billing profile for the session wallet so the card flow can prefill its forms.
|
|
705
|
+
* @summary Get card registration + billing
|
|
706
|
+
* {@link /v1/wallets/:address/card/customer}
|
|
707
|
+
*/
|
|
708
|
+
async function getCardCustomer(address, config = {}) {
|
|
709
|
+
const { client: request = client, ...requestConfig } = config;
|
|
710
|
+
return (await request({
|
|
711
|
+
method: "GET",
|
|
712
|
+
url: getGetCardCustomerUrl(address).url.toString(),
|
|
713
|
+
...requestConfig
|
|
714
|
+
})).data;
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
718
|
+
* Do not edit manually.
|
|
719
|
+
*/
|
|
720
|
+
function getGetCardOrderUrl(address, id) {
|
|
721
|
+
return {
|
|
722
|
+
method: "GET",
|
|
723
|
+
url: `/v1/wallets/${address}/card/orders/${id}`
|
|
724
|
+
};
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* @description Returns the status of one card order, scoped to the session wallet.
|
|
728
|
+
* @summary Get card order
|
|
729
|
+
* {@link /v1/wallets/:address/card/orders/:id}
|
|
730
|
+
*/
|
|
731
|
+
async function getCardOrder(address, id, config = {}) {
|
|
732
|
+
const { client: request = client, ...requestConfig } = config;
|
|
733
|
+
return (await request({
|
|
734
|
+
method: "GET",
|
|
735
|
+
url: getGetCardOrderUrl(address, id).url.toString(),
|
|
736
|
+
...requestConfig
|
|
737
|
+
})).data;
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
741
|
+
* Do not edit manually.
|
|
742
|
+
*/
|
|
743
|
+
function getGetCardQuoteUrl(address) {
|
|
744
|
+
return {
|
|
745
|
+
method: "GET",
|
|
746
|
+
url: `/v1/wallets/${address}/card/quote`
|
|
747
|
+
};
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
* @description Returns an informational price estimate for a fiat card spend: the net USDC the buyer receives, the all-in fiat charged, the fee, and the exchange rate.
|
|
751
|
+
* @summary Quote a card amount
|
|
752
|
+
* {@link /v1/wallets/:address/card/quote}
|
|
753
|
+
*/
|
|
754
|
+
async function getCardQuote(address, params, config = {}) {
|
|
755
|
+
const { client: request = client, ...requestConfig } = config;
|
|
756
|
+
return (await request({
|
|
757
|
+
method: "GET",
|
|
758
|
+
url: getGetCardQuoteUrl(address).url.toString(),
|
|
759
|
+
params,
|
|
760
|
+
...requestConfig
|
|
761
|
+
})).data;
|
|
762
|
+
}
|
|
763
|
+
/**
|
|
764
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
765
|
+
* Do not edit manually.
|
|
766
|
+
*/
|
|
505
767
|
function getGetCashAppOrderUrl(address, id) {
|
|
506
768
|
return {
|
|
507
769
|
method: "GET",
|
|
@@ -663,6 +925,29 @@ async function getStripeConfig(address, config = {}) {
|
|
|
663
925
|
* Generated by Kubb (https://kubb.dev/).
|
|
664
926
|
* Do not edit manually.
|
|
665
927
|
*/
|
|
928
|
+
function getGetStripeCustomerStatusUrl(address, crypto_customer_id) {
|
|
929
|
+
return {
|
|
930
|
+
method: "GET",
|
|
931
|
+
url: `/v1/wallets/${address}/stripe/customer/${crypto_customer_id}`
|
|
932
|
+
};
|
|
933
|
+
}
|
|
934
|
+
/**
|
|
935
|
+
* @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.
|
|
936
|
+
* @summary Poll a Stripe crypto customer's status
|
|
937
|
+
* {@link /v1/wallets/:address/stripe/customer/:crypto_customer_id}
|
|
938
|
+
*/
|
|
939
|
+
async function getStripeCustomerStatus(address, crypto_customer_id, config = {}) {
|
|
940
|
+
const { client: request = client, ...requestConfig } = config;
|
|
941
|
+
return (await request({
|
|
942
|
+
method: "GET",
|
|
943
|
+
url: getGetStripeCustomerStatusUrl(address, crypto_customer_id).url.toString(),
|
|
944
|
+
...requestConfig
|
|
945
|
+
})).data;
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
949
|
+
* Do not edit manually.
|
|
950
|
+
*/
|
|
666
951
|
function getGetStripeOrderUrl(address, id) {
|
|
667
952
|
return {
|
|
668
953
|
method: "GET",
|
|
@@ -686,6 +971,53 @@ async function getStripeOrder(address, id, config = {}) {
|
|
|
686
971
|
* Generated by Kubb (https://kubb.dev/).
|
|
687
972
|
* Do not edit manually.
|
|
688
973
|
*/
|
|
974
|
+
function getGetStripeQuoteUrl(address) {
|
|
975
|
+
return {
|
|
976
|
+
method: "GET",
|
|
977
|
+
url: `/v1/wallets/${address}/stripe/quote`
|
|
978
|
+
};
|
|
979
|
+
}
|
|
980
|
+
/**
|
|
981
|
+
* @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 customer, token, or session is involved (it prices with the secret key alone), so it's `session`-gated only. Display-only: Stripe sets the final amounts at session creation.
|
|
982
|
+
* @summary Quote a Stripe onramp amount
|
|
983
|
+
* {@link /v1/wallets/:address/stripe/quote}
|
|
984
|
+
*/
|
|
985
|
+
async function getStripeQuote(address, params, config = {}) {
|
|
986
|
+
const { client: request = client, ...requestConfig } = config;
|
|
987
|
+
return (await request({
|
|
988
|
+
method: "GET",
|
|
989
|
+
url: getGetStripeQuoteUrl(address).url.toString(),
|
|
990
|
+
params,
|
|
991
|
+
...requestConfig
|
|
992
|
+
})).data;
|
|
993
|
+
}
|
|
994
|
+
/**
|
|
995
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
996
|
+
* Do not edit manually.
|
|
997
|
+
*/
|
|
998
|
+
function getGetStripeStatusUrl(address) {
|
|
999
|
+
return {
|
|
1000
|
+
method: "GET",
|
|
1001
|
+
url: `/v1/wallets/${address}/stripe/status`
|
|
1002
|
+
};
|
|
1003
|
+
}
|
|
1004
|
+
/**
|
|
1005
|
+
* @description Reports whether this session is still Link-authenticated and, once the customer POST has run, the persisted crypto customer id and the Link account email. Reads Redis only, so an un-authed session is a 200 with `authenticated: false` (not a 401) — the SDK polls it to re-derive the Stripe session on a cold open.
|
|
1006
|
+
* @summary Get the session's Stripe login state
|
|
1007
|
+
* {@link /v1/wallets/:address/stripe/status}
|
|
1008
|
+
*/
|
|
1009
|
+
async function getStripeStatus(address, config = {}) {
|
|
1010
|
+
const { client: request = client, ...requestConfig } = config;
|
|
1011
|
+
return (await request({
|
|
1012
|
+
method: "GET",
|
|
1013
|
+
url: getGetStripeStatusUrl(address).url.toString(),
|
|
1014
|
+
...requestConfig
|
|
1015
|
+
})).data;
|
|
1016
|
+
}
|
|
1017
|
+
/**
|
|
1018
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1019
|
+
* Do not edit manually.
|
|
1020
|
+
*/
|
|
689
1021
|
function getGetTermsOfServiceLinkUrl(address) {
|
|
690
1022
|
return {
|
|
691
1023
|
method: "POST",
|
|
@@ -732,6 +1064,77 @@ async function getWallet(address, config = {}) {
|
|
|
732
1064
|
* Generated by Kubb (https://kubb.dev/).
|
|
733
1065
|
* Do not edit manually.
|
|
734
1066
|
*/
|
|
1067
|
+
function getListCryptoDepositsUrl(address) {
|
|
1068
|
+
return {
|
|
1069
|
+
method: "GET",
|
|
1070
|
+
url: `/v1/wallets/${address}/crypto-deposits`
|
|
1071
|
+
};
|
|
1072
|
+
}
|
|
1073
|
+
/**
|
|
1074
|
+
* @description Returns the wallet's crypto-deposit history, newest first: every detected deposit with its current status (processing, completed, failed, or refunded), amounts, and transaction hashes. Served from the local ledger, which is reconciled against the upstream provider as each transfer progresses. `deposit_address` is null for deposits made through a provider that mints its own intake address. Requires a valid session cookie for the same wallet.
|
|
1075
|
+
* @summary List crypto deposits
|
|
1076
|
+
* {@link /v1/wallets/:address/crypto-deposits}
|
|
1077
|
+
*/
|
|
1078
|
+
async function listCryptoDeposits(address, config = {}) {
|
|
1079
|
+
const { client: request = client, ...requestConfig } = config;
|
|
1080
|
+
return (await request({
|
|
1081
|
+
method: "GET",
|
|
1082
|
+
url: getListCryptoDepositsUrl(address).url.toString(),
|
|
1083
|
+
...requestConfig
|
|
1084
|
+
})).data;
|
|
1085
|
+
}
|
|
1086
|
+
/**
|
|
1087
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1088
|
+
* Do not edit manually.
|
|
1089
|
+
*/
|
|
1090
|
+
function getListStripePaymentTokensUrl(address) {
|
|
1091
|
+
return {
|
|
1092
|
+
method: "GET",
|
|
1093
|
+
url: `/v1/wallets/${address}/stripe/payment-tokens`
|
|
1094
|
+
};
|
|
1095
|
+
}
|
|
1096
|
+
/**
|
|
1097
|
+
* @description Returns the payment methods the customer has on file. Read-passthrough — the SDK checks this before `collectPaymentMethod` to offer a saved method.
|
|
1098
|
+
* @summary List the customer's payment methods
|
|
1099
|
+
* {@link /v1/wallets/:address/stripe/payment-tokens}
|
|
1100
|
+
*/
|
|
1101
|
+
async function listStripePaymentTokens(address, params, config = {}) {
|
|
1102
|
+
const { client: request = client, ...requestConfig } = config;
|
|
1103
|
+
return (await request({
|
|
1104
|
+
method: "GET",
|
|
1105
|
+
url: getListStripePaymentTokensUrl(address).url.toString(),
|
|
1106
|
+
params,
|
|
1107
|
+
...requestConfig
|
|
1108
|
+
})).data;
|
|
1109
|
+
}
|
|
1110
|
+
/**
|
|
1111
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1112
|
+
* Do not edit manually.
|
|
1113
|
+
*/
|
|
1114
|
+
function getListStripeWalletsUrl(address) {
|
|
1115
|
+
return {
|
|
1116
|
+
method: "GET",
|
|
1117
|
+
url: `/v1/wallets/${address}/stripe/wallets`
|
|
1118
|
+
};
|
|
1119
|
+
}
|
|
1120
|
+
/**
|
|
1121
|
+
* @description Returns the crypto wallets registered to the customer's Link account. Read-passthrough — the SDK checks this before `registerWalletAddress` to avoid re-registering a known address.
|
|
1122
|
+
* @summary List the customer's crypto wallets
|
|
1123
|
+
* {@link /v1/wallets/:address/stripe/wallets}
|
|
1124
|
+
*/
|
|
1125
|
+
async function listStripeWallets(address, params, config = {}) {
|
|
1126
|
+
const { client: request = client, ...requestConfig } = config;
|
|
1127
|
+
return (await request({
|
|
1128
|
+
method: "GET",
|
|
1129
|
+
url: getListStripeWalletsUrl(address).url.toString(),
|
|
1130
|
+
params,
|
|
1131
|
+
...requestConfig
|
|
1132
|
+
})).data;
|
|
1133
|
+
}
|
|
1134
|
+
/**
|
|
1135
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1136
|
+
* Do not edit manually.
|
|
1137
|
+
*/
|
|
735
1138
|
function getListVirtualAccountsUrl(address) {
|
|
736
1139
|
return {
|
|
737
1140
|
method: "GET",
|
|
@@ -739,7 +1142,7 @@ function getListVirtualAccountsUrl(address) {
|
|
|
739
1142
|
};
|
|
740
1143
|
}
|
|
741
1144
|
/**
|
|
742
|
-
* @description Returns the wallet's virtual accounts, each with the bank-side deposit instructions the user needs to send fiat.
|
|
1145
|
+
* @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.
|
|
743
1146
|
* @summary List virtual accounts
|
|
744
1147
|
* {@link /v1/wallets/:address/virtual-accounts}
|
|
745
1148
|
*/
|
|
@@ -856,7 +1259,7 @@ function getUpdateVirtualAccountUrl(address, virtualAccountId) {
|
|
|
856
1259
|
};
|
|
857
1260
|
}
|
|
858
1261
|
/**
|
|
859
|
-
* @description Updates a virtual account's destination chain. Returns 204; refetch the list to see the change.
|
|
1262
|
+
* @description Updates a virtual account's destination chain. Every chain is accepted: the ones the banking rail settles to directly are delivered by it, and the rest are routed on arrival. `destination_token` picks the payout token for the account's new destination; omitting it with the chain unchanged leaves the account untouched, while omitting it on a chain change takes the NEW chain's default rather than carrying the current token over. Send `destination_token` explicitly whenever the account should keep a non-default payout. Returns 204; refetch the list to see the change.
|
|
860
1263
|
* @summary Update a virtual account
|
|
861
1264
|
* {@link /v1/wallets/:address/virtual-accounts/:virtual-account-id}
|
|
862
1265
|
*/
|
|
@@ -870,12 +1273,57 @@ async function updateVirtualAccount(address, virtualAccountId, data, config = {}
|
|
|
870
1273
|
...requestConfig
|
|
871
1274
|
})).data;
|
|
872
1275
|
}
|
|
1276
|
+
const checkoutCardMutationRequestChainEnum = {
|
|
1277
|
+
"1": 1,
|
|
1278
|
+
"8453": 8453,
|
|
1279
|
+
"999": 999,
|
|
1280
|
+
"1337": 1337,
|
|
1281
|
+
"4326": 4326,
|
|
1282
|
+
"143": 143,
|
|
1283
|
+
"137": 137
|
|
1284
|
+
};
|
|
1285
|
+
const checkoutCardMutationRequestDestinationTokenEnum = {
|
|
1286
|
+
usdc: "usdc",
|
|
1287
|
+
usdm: "usdm",
|
|
1288
|
+
ausd: "ausd",
|
|
1289
|
+
"usdc.e": "usdc.e"
|
|
1290
|
+
};
|
|
873
1291
|
const connectExchangePathParamsExchangeEnum = { coinbase: "coinbase" };
|
|
1292
|
+
const createBlinkSignatureMutationRequestDestinationChainEnum = {
|
|
1293
|
+
"1": 1,
|
|
1294
|
+
"8453": 8453,
|
|
1295
|
+
"999": 999,
|
|
1296
|
+
"1337": 1337,
|
|
1297
|
+
"4326": 4326,
|
|
1298
|
+
"143": 143,
|
|
1299
|
+
"137": 137
|
|
1300
|
+
};
|
|
1301
|
+
const createBlinkSignatureMutationRequestDestinationTokenEnum = {
|
|
1302
|
+
usdc: "usdc",
|
|
1303
|
+
usdm: "usdm",
|
|
1304
|
+
ausd: "ausd",
|
|
1305
|
+
"usdc.e": "usdc.e"
|
|
1306
|
+
};
|
|
874
1307
|
const createCardLinkMutationRequestCurrencyEnum = {
|
|
875
1308
|
usd: "usd",
|
|
876
1309
|
gbp: "gbp",
|
|
877
1310
|
eur: "eur"
|
|
878
1311
|
};
|
|
1312
|
+
const createCardLinkMutationRequestDestinationChainEnum = {
|
|
1313
|
+
"1": 1,
|
|
1314
|
+
"8453": 8453,
|
|
1315
|
+
"999": 999,
|
|
1316
|
+
"1337": 1337,
|
|
1317
|
+
"4326": 4326,
|
|
1318
|
+
"143": 143,
|
|
1319
|
+
"137": 137
|
|
1320
|
+
};
|
|
1321
|
+
const createCardLinkMutationRequestDestinationTokenEnum = {
|
|
1322
|
+
usdc: "usdc",
|
|
1323
|
+
usdm: "usdm",
|
|
1324
|
+
ausd: "ausd",
|
|
1325
|
+
"usdc.e": "usdc.e"
|
|
1326
|
+
};
|
|
879
1327
|
const createCashAppOrder200StatusEnum = {
|
|
880
1328
|
pending: "pending",
|
|
881
1329
|
processing: "processing",
|
|
@@ -891,17 +1339,138 @@ const createCashAppOrder200StatusEnum = {
|
|
|
891
1339
|
unfulfilled: "unfulfilled",
|
|
892
1340
|
expired: "expired"
|
|
893
1341
|
};
|
|
1342
|
+
const createCashAppOrderMutationRequestChainEnum = {
|
|
1343
|
+
"1": 1,
|
|
1344
|
+
"8453": 8453,
|
|
1345
|
+
"999": 999,
|
|
1346
|
+
"1337": 1337,
|
|
1347
|
+
"4326": 4326,
|
|
1348
|
+
"143": 143,
|
|
1349
|
+
"137": 137
|
|
1350
|
+
};
|
|
1351
|
+
const createCashAppOrderMutationRequestDestinationTokenEnum = {
|
|
1352
|
+
usdc: "usdc",
|
|
1353
|
+
usdm: "usdm",
|
|
1354
|
+
ausd: "ausd",
|
|
1355
|
+
"usdc.e": "usdc.e"
|
|
1356
|
+
};
|
|
1357
|
+
const createCashAppQuoteMutationRequestChainEnum = {
|
|
1358
|
+
"1": 1,
|
|
1359
|
+
"8453": 8453,
|
|
1360
|
+
"999": 999,
|
|
1361
|
+
"1337": 1337,
|
|
1362
|
+
"4326": 4326,
|
|
1363
|
+
"143": 143,
|
|
1364
|
+
"137": 137
|
|
1365
|
+
};
|
|
1366
|
+
const createCashAppQuoteMutationRequestDestinationTokenEnum = {
|
|
1367
|
+
usdc: "usdc",
|
|
1368
|
+
usdm: "usdm",
|
|
1369
|
+
ausd: "ausd",
|
|
1370
|
+
"usdc.e": "usdc.e"
|
|
1371
|
+
};
|
|
1372
|
+
const createDepositAddressMutationRequestDestinationChainEnum = {
|
|
1373
|
+
"1": 1,
|
|
1374
|
+
"8453": 8453,
|
|
1375
|
+
"999": 999,
|
|
1376
|
+
"1337": 1337,
|
|
1377
|
+
"4326": 4326,
|
|
1378
|
+
"143": 143,
|
|
1379
|
+
"137": 137
|
|
1380
|
+
};
|
|
1381
|
+
const createDepositAddressMutationRequestDestinationTokenEnum = {
|
|
1382
|
+
usdc: "usdc",
|
|
1383
|
+
usdm: "usdm",
|
|
1384
|
+
ausd: "ausd",
|
|
1385
|
+
"usdc.e": "usdc.e"
|
|
1386
|
+
};
|
|
1387
|
+
const createDepositAddressMutationRequestSourceChainEnum = {
|
|
1388
|
+
"1": 1,
|
|
1389
|
+
"8453": 8453,
|
|
1390
|
+
"999": 999,
|
|
1391
|
+
"4326": 4326,
|
|
1392
|
+
"143": 143,
|
|
1393
|
+
"137": 137
|
|
1394
|
+
};
|
|
894
1395
|
const createDepositAddressMutationRequestSourceTokenEnum = {
|
|
895
1396
|
eth: "eth",
|
|
896
1397
|
hype: "hype",
|
|
1398
|
+
mon: "mon",
|
|
1399
|
+
pol: "pol",
|
|
897
1400
|
usdc: "usdc",
|
|
1401
|
+
usdm: "usdm",
|
|
898
1402
|
usdt: "usdt"
|
|
899
1403
|
};
|
|
900
1404
|
const createExchangeWithdrawQuotePathParamsExchangeEnum = { coinbase: "coinbase" };
|
|
1405
|
+
const createExchangeWithdrawQuoteMutationRequestDestinationChainEnum = {
|
|
1406
|
+
"1": 1,
|
|
1407
|
+
"8453": 8453,
|
|
1408
|
+
"999": 999,
|
|
1409
|
+
"1337": 1337,
|
|
1410
|
+
"4326": 4326,
|
|
1411
|
+
"143": 143,
|
|
1412
|
+
"137": 137
|
|
1413
|
+
};
|
|
1414
|
+
const createExchangeWithdrawQuoteMutationRequestDestinationTokenEnum = {
|
|
1415
|
+
usdc: "usdc",
|
|
1416
|
+
usdm: "usdm",
|
|
1417
|
+
ausd: "ausd",
|
|
1418
|
+
"usdc.e": "usdc.e"
|
|
1419
|
+
};
|
|
1420
|
+
const createExchangeWithdrawQuoteMutationRequestOriginChainEnum = {
|
|
1421
|
+
"1": 1,
|
|
1422
|
+
"8453": 8453,
|
|
1423
|
+
"999": 999,
|
|
1424
|
+
"1337": 1337,
|
|
1425
|
+
"4326": 4326,
|
|
1426
|
+
"143": 143,
|
|
1427
|
+
"137": 137
|
|
1428
|
+
};
|
|
1429
|
+
const createStripeSessionMutationRequestDestinationChainEnum = {
|
|
1430
|
+
"1": 1,
|
|
1431
|
+
"8453": 8453,
|
|
1432
|
+
"999": 999,
|
|
1433
|
+
"1337": 1337,
|
|
1434
|
+
"4326": 4326,
|
|
1435
|
+
"143": 143,
|
|
1436
|
+
"137": 137
|
|
1437
|
+
};
|
|
1438
|
+
const createStripeSessionMutationRequestDestinationTokenEnum = {
|
|
1439
|
+
usdc: "usdc",
|
|
1440
|
+
usdm: "usdm",
|
|
1441
|
+
ausd: "ausd",
|
|
1442
|
+
"usdc.e": "usdc.e"
|
|
1443
|
+
};
|
|
1444
|
+
const createSwapQuoteMutationRequestDestinationChainEnum = {
|
|
1445
|
+
"1": 1,
|
|
1446
|
+
"8453": 8453,
|
|
1447
|
+
"999": 999,
|
|
1448
|
+
"1337": 1337,
|
|
1449
|
+
"4326": 4326,
|
|
1450
|
+
"143": 143,
|
|
1451
|
+
"137": 137
|
|
1452
|
+
};
|
|
1453
|
+
const createSwapQuoteMutationRequestDestinationTokenEnum = {
|
|
1454
|
+
usdc: "usdc",
|
|
1455
|
+
usdm: "usdm",
|
|
1456
|
+
ausd: "ausd",
|
|
1457
|
+
"usdc.e": "usdc.e"
|
|
1458
|
+
};
|
|
1459
|
+
const createSwapQuoteMutationRequestSourceChainEnum = {
|
|
1460
|
+
"1": 1,
|
|
1461
|
+
"8453": 8453,
|
|
1462
|
+
"999": 999,
|
|
1463
|
+
"4326": 4326,
|
|
1464
|
+
"143": 143,
|
|
1465
|
+
"137": 137
|
|
1466
|
+
};
|
|
901
1467
|
const createSwapQuoteMutationRequestSourceTokenEnum = {
|
|
902
1468
|
eth: "eth",
|
|
903
1469
|
hype: "hype",
|
|
1470
|
+
mon: "mon",
|
|
1471
|
+
pol: "pol",
|
|
904
1472
|
usdc: "usdc",
|
|
1473
|
+
usdm: "usdm",
|
|
905
1474
|
usdt: "usdt"
|
|
906
1475
|
};
|
|
907
1476
|
const createSwapQuoteMutationRequestTradeTypeEnum = {
|
|
@@ -909,11 +1478,26 @@ const createSwapQuoteMutationRequestTradeTypeEnum = {
|
|
|
909
1478
|
EXACT_OUTPUT: "EXACT_OUTPUT",
|
|
910
1479
|
EXPECTED_OUTPUT: "EXPECTED_OUTPUT"
|
|
911
1480
|
};
|
|
1481
|
+
const createVirtualAccountMutationRequestChainEnum = {
|
|
1482
|
+
"1": 1,
|
|
1483
|
+
"8453": 8453,
|
|
1484
|
+
"999": 999,
|
|
1485
|
+
"1337": 1337,
|
|
1486
|
+
"4326": 4326,
|
|
1487
|
+
"143": 143,
|
|
1488
|
+
"137": 137
|
|
1489
|
+
};
|
|
912
1490
|
const createVirtualAccountMutationRequestCurrencyEnum = {
|
|
913
1491
|
usd: "usd",
|
|
914
1492
|
gbp: "gbp",
|
|
915
1493
|
eur: "eur"
|
|
916
1494
|
};
|
|
1495
|
+
const createVirtualAccountMutationRequestDestinationTokenEnum = {
|
|
1496
|
+
usdc: "usdc",
|
|
1497
|
+
usdm: "usdm",
|
|
1498
|
+
ausd: "ausd",
|
|
1499
|
+
"usdc.e": "usdc.e"
|
|
1500
|
+
};
|
|
917
1501
|
const disconnectExchangePathParamsExchangeEnum = { coinbase: "coinbase" };
|
|
918
1502
|
const executeExchangeWithdrawalPathParamsExchangeEnum = { coinbase: "coinbase" };
|
|
919
1503
|
const executeExchangeWithdrawal200StatusEnum = {
|
|
@@ -926,9 +1510,32 @@ const executeExchangeWithdrawal200StatusEnum = {
|
|
|
926
1510
|
const getBalancePathParamsTokenEnum = {
|
|
927
1511
|
eth: "eth",
|
|
928
1512
|
hype: "hype",
|
|
1513
|
+
mon: "mon",
|
|
1514
|
+
pol: "pol",
|
|
929
1515
|
usdc: "usdc",
|
|
1516
|
+
usdm: "usdm",
|
|
930
1517
|
usdt: "usdt"
|
|
931
1518
|
};
|
|
1519
|
+
const processorEnvEnum = {
|
|
1520
|
+
sandbox: "sandbox",
|
|
1521
|
+
prod: "prod"
|
|
1522
|
+
};
|
|
1523
|
+
const getCardOrder200ChainEnum = {
|
|
1524
|
+
"1": 1,
|
|
1525
|
+
"8453": 8453,
|
|
1526
|
+
"999": 999,
|
|
1527
|
+
"1337": 1337,
|
|
1528
|
+
"4326": 4326,
|
|
1529
|
+
"143": 143,
|
|
1530
|
+
"137": 137
|
|
1531
|
+
};
|
|
1532
|
+
const getCardOrder200StatusEnum = {
|
|
1533
|
+
submitted: "submitted",
|
|
1534
|
+
processing: "processing",
|
|
1535
|
+
completed: "completed",
|
|
1536
|
+
failed: "failed",
|
|
1537
|
+
requires_3ds: "requires_3ds"
|
|
1538
|
+
};
|
|
932
1539
|
const getCashAppOrder200StatusEnum = {
|
|
933
1540
|
pending: "pending",
|
|
934
1541
|
processing: "processing",
|
|
@@ -973,12 +1580,33 @@ const getWallet200IdentityVerificationStatusEnum = {
|
|
|
973
1580
|
paused: "paused",
|
|
974
1581
|
offboarded: "offboarded"
|
|
975
1582
|
};
|
|
1583
|
+
const dataStatusEnum = {
|
|
1584
|
+
processing: "processing",
|
|
1585
|
+
completed: "completed",
|
|
1586
|
+
failed: "failed",
|
|
1587
|
+
refunded: "refunded"
|
|
1588
|
+
};
|
|
976
1589
|
const dataCurrencyEnum = {
|
|
977
1590
|
usd: "usd",
|
|
978
1591
|
gbp: "gbp",
|
|
979
1592
|
eur: "eur"
|
|
980
1593
|
};
|
|
1594
|
+
const updateVirtualAccountMutationRequestChainEnum = {
|
|
1595
|
+
"1": 1,
|
|
1596
|
+
"8453": 8453,
|
|
1597
|
+
"999": 999,
|
|
1598
|
+
"1337": 1337,
|
|
1599
|
+
"4326": 4326,
|
|
1600
|
+
"143": 143,
|
|
1601
|
+
"137": 137
|
|
1602
|
+
};
|
|
1603
|
+
const updateVirtualAccountMutationRequestDestinationTokenEnum = {
|
|
1604
|
+
usdc: "usdc",
|
|
1605
|
+
usdm: "usdm",
|
|
1606
|
+
ausd: "ausd",
|
|
1607
|
+
"usdc.e": "usdc.e"
|
|
1608
|
+
};
|
|
981
1609
|
function configureCalm(options) {
|
|
982
1610
|
setConfig({ apiUrl: options.apiUrl });
|
|
983
1611
|
}
|
|
984
|
-
export { ApiError, clearSession, client, client as default, configureCalm, connectExchange, connectExchangePathParamsExchangeEnum, createCardLink, createCardLinkMutationRequestCurrencyEnum, createCashAppOrder, createCashAppOrder200StatusEnum, createCashAppQuote, createDepositAddress, createDepositAddressMutationRequestSourceTokenEnum, createExchangeWithdrawQuote, createExchangeWithdrawQuotePathParamsExchangeEnum, createSessionDynamic, createSessionPrivy, createSessionSiwe, createSiweNonce, createStripeSession, createSwapQuote, createSwapQuoteMutationRequestSourceTokenEnum, createSwapQuoteMutationRequestTradeTypeEnum, createVirtualAccount, createVirtualAccountMutationRequestCurrencyEnum, dataCurrencyEnum, disconnectExchange, disconnectExchangePathParamsExchangeEnum, executeExchangeWithdrawal, executeExchangeWithdrawal200StatusEnum, executeExchangeWithdrawalPathParamsExchangeEnum, getBalance, getBalancePathParamsTokenEnum, getBalances, getCashAppOrder, getCashAppOrder200StatusEnum, getConfig, getExchange, getExchangeAssets, getExchangeAssetsPathParamsExchangeEnum, getExchangePathParamsExchangeEnum, getExchangeWithdrawal, getExchangeWithdrawal200StatusEnum, getExchangeWithdrawalPathParamsExchangeEnum, getFxRates, getIdentityVerificationLink, getStripeConfig, getStripeOrder, getStripeOrder200StatusEnum, getTermsOfServiceLink, getWallet, getWallet200IdentityVerificationStatusEnum, listVirtualAccounts, refreshSession, registerWallet, setConfig, submitIdentityVerification, submitTermsOfService, updateVirtualAccount };
|
|
1612
|
+
export { ApiError, checkoutCard, checkoutCardMutationRequestChainEnum, checkoutCardMutationRequestDestinationTokenEnum, checkoutStripeSession, clearSession, client, client as default, configureCalm, connectExchange, connectExchangePathParamsExchangeEnum, createBlinkSignature, createBlinkSignatureMutationRequestDestinationChainEnum, createBlinkSignatureMutationRequestDestinationTokenEnum, createCardLink, createCardLinkMutationRequestCurrencyEnum, createCardLinkMutationRequestDestinationChainEnum, createCardLinkMutationRequestDestinationTokenEnum, createCashAppOrder, createCashAppOrder200StatusEnum, createCashAppOrderMutationRequestChainEnum, createCashAppOrderMutationRequestDestinationTokenEnum, createCashAppQuote, createCashAppQuoteMutationRequestChainEnum, createCashAppQuoteMutationRequestDestinationTokenEnum, createDepositAddress, createDepositAddressMutationRequestDestinationChainEnum, createDepositAddressMutationRequestDestinationTokenEnum, createDepositAddressMutationRequestSourceChainEnum, createDepositAddressMutationRequestSourceTokenEnum, createExchangeWithdrawQuote, createExchangeWithdrawQuoteMutationRequestDestinationChainEnum, createExchangeWithdrawQuoteMutationRequestDestinationTokenEnum, createExchangeWithdrawQuoteMutationRequestOriginChainEnum, createExchangeWithdrawQuotePathParamsExchangeEnum, createSessionDynamic, createSessionPrivy, createSessionSiwe, createSiweNonce, createStripeAuthIntent, createStripeCustomer, createStripeSession, createStripeSessionMutationRequestDestinationChainEnum, createStripeSessionMutationRequestDestinationTokenEnum, createStripeTokens, createSwapQuote, createSwapQuoteMutationRequestDestinationChainEnum, createSwapQuoteMutationRequestDestinationTokenEnum, createSwapQuoteMutationRequestSourceChainEnum, createSwapQuoteMutationRequestSourceTokenEnum, createSwapQuoteMutationRequestTradeTypeEnum, createVirtualAccount, createVirtualAccountMutationRequestChainEnum, createVirtualAccountMutationRequestCurrencyEnum, createVirtualAccountMutationRequestDestinationTokenEnum, dataCurrencyEnum, dataStatusEnum, disconnectExchange, disconnectExchangePathParamsExchangeEnum, executeExchangeWithdrawal, executeExchangeWithdrawal200StatusEnum, executeExchangeWithdrawalPathParamsExchangeEnum, getBalance, getBalancePathParamsTokenEnum, getBalances, getBlinkConfig, getCardConfig, getCardCustomer, getCardOrder, getCardOrder200ChainEnum, getCardOrder200StatusEnum, getCardQuote, getCashAppOrder, getCashAppOrder200StatusEnum, getConfig, getExchange, getExchangeAssets, getExchangeAssetsPathParamsExchangeEnum, getExchangePathParamsExchangeEnum, getExchangeWithdrawal, getExchangeWithdrawal200StatusEnum, getExchangeWithdrawalPathParamsExchangeEnum, getFxRates, getIdentityVerificationLink, getStripeConfig, getStripeCustomerStatus, getStripeOrder, getStripeOrder200StatusEnum, getStripeQuote, getStripeStatus, getTermsOfServiceLink, getWallet, getWallet200IdentityVerificationStatusEnum, listCryptoDeposits, listStripePaymentTokens, listStripeWallets, listVirtualAccounts, processorEnvEnum, refreshSession, registerWallet, setConfig, submitIdentityVerification, submitTermsOfService, updateVirtualAccount, updateVirtualAccountMutationRequestChainEnum, updateVirtualAccountMutationRequestDestinationTokenEnum };
|