@calm-xyz/core 0.9.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.
Files changed (3) hide show
  1. package/dist/index.d.ts +1558 -210
  2. package/dist/index.js +436 -22
  3. package/package.json +2 -8
package/dist/index.js CHANGED
@@ -67,6 +67,31 @@ 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
+ */
70
95
  function getCheckoutStripeSessionUrl(address, sessionId) {
71
96
  return {
72
97
  method: "POST",
@@ -136,6 +161,31 @@ async function connectExchange(address, exchange, config = {}) {
136
161
  * Generated by Kubb (https://kubb.dev/).
137
162
  * Do not edit manually.
138
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
+ */
139
189
  function getCreateCardLinkUrl(address) {
140
190
  return {
141
191
  method: "POST",
@@ -143,7 +193,7 @@ function getCreateCardLinkUrl(address) {
143
193
  };
144
194
  }
145
195
  /**
146
- * @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.
147
197
  * @summary Get the card-onramp link
148
198
  * {@link /v1/wallets/:address/card}
149
199
  */
@@ -168,7 +218,7 @@ function getCreateCashAppOrderUrl(address) {
168
218
  };
169
219
  }
170
220
  /**
171
- * @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.
172
222
  * @summary Create a Cash App order
173
223
  * {@link /v1/wallets/:address/cashapp}
174
224
  */
@@ -193,7 +243,7 @@ function getCreateCashAppQuoteUrl(address) {
193
243
  };
194
244
  }
195
245
  /**
196
- * @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.
197
247
  * @summary Quote a Cash App order
198
248
  * {@link /v1/wallets/:address/cashapp/quote}
199
249
  */
@@ -218,7 +268,7 @@ function getCreateDepositAddressUrl(address) {
218
268
  };
219
269
  }
220
270
  /**
221
- * @description Returns an intake address for a `(source chain, source token) → destination` route. Funding it delivers USDC to the destination; 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.
222
272
  * @summary Create a crypto deposit address
223
273
  * {@link /v1/wallets/:address/deposit-address}
224
274
  */
@@ -314,7 +364,7 @@ function getCreateSessionSiweUrl(address) {
314
364
  };
315
365
  }
316
366
  /**
317
- * @description Verifies a signed EIP-4361 message and its nonce binding, then mints the session cookie pair. The publishable key rides inside the signed message's `Resources` field, so the wallet attests it.
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.
318
368
  * @summary Create a session (SIWE)
319
369
  * {@link /v1/session/:address/siwe}
320
370
  */
@@ -339,7 +389,7 @@ function getCreateSiweNonceUrl(address) {
339
389
  };
340
390
  }
341
391
  /**
342
- * @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.
343
393
  * @summary Issue a SIWE nonce binding
344
394
  * {@link /v1/session/:address/siwe/nonce}
345
395
  */
@@ -410,7 +460,7 @@ function getCreateStripeSessionUrl(address) {
410
460
  };
411
461
  }
412
462
  /**
413
- * @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`. Pass exactly one of `source_amount` / `destination_amount`.
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`.
414
464
  * @summary Open a Stripe onramp session
415
465
  * {@link /v1/wallets/:address/stripe/session}
416
466
  */
@@ -460,7 +510,7 @@ function getCreateSwapQuoteUrl(address) {
460
510
  };
461
511
  }
462
512
  /**
463
- * @description Returns an executable quote for swapping a source token into destination USDC. 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.
464
514
  * @summary Quote a swap
465
515
  * {@link /v1/wallets/:address/swap/quote}
466
516
  */
@@ -485,7 +535,7 @@ function getCreateVirtualAccountUrl(address) {
485
535
  };
486
536
  }
487
537
  /**
488
- * @description Provisions a fiat→USDC virtual account for a `(currency, destination chain)` pair. Requires an approved identity verification. Returns 204; refetch the list to see the new account.
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.
489
539
  * @summary Create a virtual account
490
540
  * {@link /v1/wallets/:address/virtual-accounts}
491
541
  */
@@ -558,7 +608,7 @@ function getGetBalanceUrl(address, chain, token) {
558
608
  };
559
609
  }
560
610
  /**
561
- * @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`).
562
612
  * @summary Get one token balance
563
613
  * {@link /v1/wallets/:address/balances/:chain/:token}
564
614
  */
@@ -581,7 +631,7 @@ function getGetBalancesUrl(address) {
581
631
  };
582
632
  }
583
633
  /**
584
- * @description Returns the wallet's token balances across the supported source chains, each with its USD value. Filter with `?chains=1,8453`; the default is every readable chain.
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.
585
635
  * @summary List wallet balances
586
636
  * {@link /v1/wallets/:address/balances}
587
637
  */
@@ -598,6 +648,122 @@ async function getBalances(address, params, config = {}) {
598
648
  * Generated by Kubb (https://kubb.dev/).
599
649
  * Do not edit manually.
600
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
+ */
601
767
  function getGetCashAppOrderUrl(address, id) {
602
768
  return {
603
769
  method: "GET",
@@ -716,13 +882,13 @@ async function getFxRates(config = {}) {
716
882
  function getGetIdentityVerificationLinkUrl(address) {
717
883
  return {
718
884
  method: "POST",
719
- url: `/v1/wallets/${address}/identity-verification`
885
+ url: `/v1/wallets/${address}/virtual-accounts/identity-verification`
720
886
  };
721
887
  }
722
888
  /**
723
889
  * @description Returns the hosted identity-verification URL for the wallet. Present it to the user, then poll `GET /v1/wallets/:address` for the resulting status.
724
890
  * @summary Get the identity-verification link
725
- * {@link /v1/wallets/:address/identity-verification}
891
+ * {@link /v1/wallets/:address/virtual-accounts/identity-verification}
726
892
  */
727
893
  async function getIdentityVerificationLink(address, config = {}) {
728
894
  const { client: request = client, ...requestConfig } = config;
@@ -855,13 +1021,13 @@ async function getStripeStatus(address, config = {}) {
855
1021
  function getGetTermsOfServiceLinkUrl(address) {
856
1022
  return {
857
1023
  method: "POST",
858
- url: `/v1/wallets/${address}/terms-of-service`
1024
+ url: `/v1/wallets/${address}/virtual-accounts/terms-of-service`
859
1025
  };
860
1026
  }
861
1027
  /**
862
1028
  * @description Returns the hosted terms-of-service URL for the wallet. Present it to the user, then poll `GET /v1/wallets/:address` for acceptance.
863
1029
  * @summary Get the terms-of-service link
864
- * {@link /v1/wallets/:address/terms-of-service}
1030
+ * {@link /v1/wallets/:address/virtual-accounts/terms-of-service}
865
1031
  */
866
1032
  async function getTermsOfServiceLink(address, config = {}) {
867
1033
  const { client: request = client, ...requestConfig } = config;
@@ -898,6 +1064,29 @@ async function getWallet(address, config = {}) {
898
1064
  * Generated by Kubb (https://kubb.dev/).
899
1065
  * Do not edit manually.
900
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
+ */
901
1090
  function getListStripePaymentTokensUrl(address) {
902
1091
  return {
903
1092
  method: "GET",
@@ -953,7 +1142,7 @@ function getListVirtualAccountsUrl(address) {
953
1142
  };
954
1143
  }
955
1144
  /**
956
- * @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.
957
1146
  * @summary List virtual accounts
958
1147
  * {@link /v1/wallets/:address/virtual-accounts}
959
1148
  */
@@ -1020,13 +1209,13 @@ async function registerWallet(address, data, config = {}) {
1020
1209
  function getSubmitIdentityVerificationUrl(address) {
1021
1210
  return {
1022
1211
  method: "POST",
1023
- url: `/v1/wallets/${address}/identity-verification/submit`
1212
+ url: `/v1/wallets/${address}/virtual-accounts/identity-verification/submit`
1024
1213
  };
1025
1214
  }
1026
1215
  /**
1027
1216
  * @description Records that the user finished the identity-verification flow and returns 204. Internal to the SDK's instant-submit UX — partners should create the link, then poll `GET /v1/wallets/:address` for the resulting status instead.
1028
1217
  * @summary Record identity-verification completion
1029
- * {@link /v1/wallets/:address/identity-verification/submit}
1218
+ * {@link /v1/wallets/:address/virtual-accounts/identity-verification/submit}
1030
1219
  */
1031
1220
  async function submitIdentityVerification(address, config = {}) {
1032
1221
  const { client: request = client, ...requestConfig } = config;
@@ -1043,13 +1232,13 @@ async function submitIdentityVerification(address, config = {}) {
1043
1232
  function getSubmitTermsOfServiceUrl(address) {
1044
1233
  return {
1045
1234
  method: "POST",
1046
- url: `/v1/wallets/${address}/terms-of-service/submit`
1235
+ url: `/v1/wallets/${address}/virtual-accounts/terms-of-service/submit`
1047
1236
  };
1048
1237
  }
1049
1238
  /**
1050
1239
  * @description Records that the user finished the terms-of-service flow and returns 204. Internal to the SDK's instant-submit UX — partners should create the link, then poll `GET /v1/wallets/:address` for acceptance instead.
1051
1240
  * @summary Record terms-of-service completion
1052
- * {@link /v1/wallets/:address/terms-of-service/submit}
1241
+ * {@link /v1/wallets/:address/virtual-accounts/terms-of-service/submit}
1053
1242
  */
1054
1243
  async function submitTermsOfService(address, config = {}) {
1055
1244
  const { client: request = client, ...requestConfig } = config;
@@ -1070,7 +1259,7 @@ function getUpdateVirtualAccountUrl(address, virtualAccountId) {
1070
1259
  };
1071
1260
  }
1072
1261
  /**
1073
- * @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.
1074
1263
  * @summary Update a virtual account
1075
1264
  * {@link /v1/wallets/:address/virtual-accounts/:virtual-account-id}
1076
1265
  */
@@ -1084,12 +1273,57 @@ async function updateVirtualAccount(address, virtualAccountId, data, config = {}
1084
1273
  ...requestConfig
1085
1274
  })).data;
1086
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
+ };
1087
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
+ };
1088
1307
  const createCardLinkMutationRequestCurrencyEnum = {
1089
1308
  usd: "usd",
1090
1309
  gbp: "gbp",
1091
1310
  eur: "eur"
1092
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
+ };
1093
1327
  const createCashAppOrder200StatusEnum = {
1094
1328
  pending: "pending",
1095
1329
  processing: "processing",
@@ -1105,17 +1339,138 @@ const createCashAppOrder200StatusEnum = {
1105
1339
  unfulfilled: "unfulfilled",
1106
1340
  expired: "expired"
1107
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
+ };
1108
1395
  const createDepositAddressMutationRequestSourceTokenEnum = {
1109
1396
  eth: "eth",
1110
1397
  hype: "hype",
1398
+ mon: "mon",
1399
+ pol: "pol",
1111
1400
  usdc: "usdc",
1401
+ usdm: "usdm",
1112
1402
  usdt: "usdt"
1113
1403
  };
1114
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
+ };
1115
1467
  const createSwapQuoteMutationRequestSourceTokenEnum = {
1116
1468
  eth: "eth",
1117
1469
  hype: "hype",
1470
+ mon: "mon",
1471
+ pol: "pol",
1118
1472
  usdc: "usdc",
1473
+ usdm: "usdm",
1119
1474
  usdt: "usdt"
1120
1475
  };
1121
1476
  const createSwapQuoteMutationRequestTradeTypeEnum = {
@@ -1123,11 +1478,26 @@ const createSwapQuoteMutationRequestTradeTypeEnum = {
1123
1478
  EXACT_OUTPUT: "EXACT_OUTPUT",
1124
1479
  EXPECTED_OUTPUT: "EXPECTED_OUTPUT"
1125
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
+ };
1126
1490
  const createVirtualAccountMutationRequestCurrencyEnum = {
1127
1491
  usd: "usd",
1128
1492
  gbp: "gbp",
1129
1493
  eur: "eur"
1130
1494
  };
1495
+ const createVirtualAccountMutationRequestDestinationTokenEnum = {
1496
+ usdc: "usdc",
1497
+ usdm: "usdm",
1498
+ ausd: "ausd",
1499
+ "usdc.e": "usdc.e"
1500
+ };
1131
1501
  const disconnectExchangePathParamsExchangeEnum = { coinbase: "coinbase" };
1132
1502
  const executeExchangeWithdrawalPathParamsExchangeEnum = { coinbase: "coinbase" };
1133
1503
  const executeExchangeWithdrawal200StatusEnum = {
@@ -1140,9 +1510,32 @@ const executeExchangeWithdrawal200StatusEnum = {
1140
1510
  const getBalancePathParamsTokenEnum = {
1141
1511
  eth: "eth",
1142
1512
  hype: "hype",
1513
+ mon: "mon",
1514
+ pol: "pol",
1143
1515
  usdc: "usdc",
1516
+ usdm: "usdm",
1144
1517
  usdt: "usdt"
1145
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
+ };
1146
1539
  const getCashAppOrder200StatusEnum = {
1147
1540
  pending: "pending",
1148
1541
  processing: "processing",
@@ -1187,12 +1580,33 @@ const getWallet200IdentityVerificationStatusEnum = {
1187
1580
  paused: "paused",
1188
1581
  offboarded: "offboarded"
1189
1582
  };
1583
+ const dataStatusEnum = {
1584
+ processing: "processing",
1585
+ completed: "completed",
1586
+ failed: "failed",
1587
+ refunded: "refunded"
1588
+ };
1190
1589
  const dataCurrencyEnum = {
1191
1590
  usd: "usd",
1192
1591
  gbp: "gbp",
1193
1592
  eur: "eur"
1194
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
+ };
1195
1609
  function configureCalm(options) {
1196
1610
  setConfig({ apiUrl: options.apiUrl });
1197
1611
  }
1198
- export { ApiError, checkoutStripeSession, clearSession, client, client as default, configureCalm, connectExchange, connectExchangePathParamsExchangeEnum, createCardLink, createCardLinkMutationRequestCurrencyEnum, createCashAppOrder, createCashAppOrder200StatusEnum, createCashAppQuote, createDepositAddress, createDepositAddressMutationRequestSourceTokenEnum, createExchangeWithdrawQuote, createExchangeWithdrawQuotePathParamsExchangeEnum, createSessionDynamic, createSessionPrivy, createSessionSiwe, createSiweNonce, createStripeAuthIntent, createStripeCustomer, createStripeSession, createStripeTokens, 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, getStripeCustomerStatus, getStripeOrder, getStripeOrder200StatusEnum, getStripeQuote, getStripeStatus, getTermsOfServiceLink, getWallet, getWallet200IdentityVerificationStatusEnum, listStripePaymentTokens, listStripeWallets, 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 };