@calm-xyz/core 0.11.0 → 0.12.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 CHANGED
@@ -3763,6 +3763,7 @@ type ListVirtualAccounts200 = {
3763
3763
  */
3764
3764
  id: string;
3765
3765
  /**
3766
+ * @description Bank transfer details to show the depositor. Keys vary by currency — USD: `bank_name`, `bank_account_number`, `bank_routing_number`, `bank_address`, `bank_beneficiary_name`, `bank_beneficiary_address`; GBP: `account_number`, `sort_code`, `account_holder_name`; EUR: `iban`, `bic`, `account_holder_name`. Every account also carries `currency` and `payment_rails` (`ach_push`, `faster_payments`, `sepa`). Additive — tolerate unknown keys. Fields still provisioning on the bank side are omitted rather than sent blank.
3766
3767
  * @type object
3767
3768
  */
3768
3769
  source_deposit_instructions: {
@@ -4062,7 +4063,6 @@ type RequestConfig<TData = unknown> = {
4062
4063
  method?: "GET" | "PUT" | "PATCH" | "POST" | "DELETE" | "OPTIONS" | "HEAD";
4063
4064
  params?: unknown;
4064
4065
  data?: TData;
4065
- responseType?: "arraybuffer" | "blob" | "document" | "json" | "text" | "stream";
4066
4066
  signal?: AbortSignal;
4067
4067
  headers?: [string, string][] | Record<string, string>;
4068
4068
  credentials?: RequestCredentials;
@@ -4070,8 +4070,6 @@ type RequestConfig<TData = unknown> = {
4070
4070
  type ResponseConfig<TData = unknown> = {
4071
4071
  data: TData;
4072
4072
  status: number;
4073
- statusText: string;
4074
- headers: Headers;
4075
4073
  };
4076
4074
  type ResponseErrorConfig<TError = unknown> = TError;
4077
4075
  type Client = <TResponseData, _TError = unknown, TRequestData = unknown>(config: RequestConfig<TRequestData>) => Promise<ResponseConfig<TResponseData>>;
@@ -4090,11 +4088,9 @@ declare class ApiError extends Error {
4090
4088
  status: number;
4091
4089
  });
4092
4090
  }
4093
- declare function getConfig(): Partial<RequestConfig>;
4094
- declare function setConfig(config: Partial<RequestConfig>): Partial<RequestConfig>;
4095
4091
  declare const client: Client;
4096
4092
  /**
4097
- * @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.
4093
+ * @description Submits a card checkout for the session wallet using the encrypted card details supplied in `secure_card`. 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.
4098
4094
  * @summary Submit card checkout
4099
4095
  * {@link /v1/wallets/:address/card/checkout}
4100
4096
  */
@@ -4174,7 +4170,7 @@ declare function createExchangeWithdrawQuote(address: CreateExchangeWithdrawQuot
4174
4170
  client?: Client;
4175
4171
  }): Promise<CreateExchangeWithdrawQuote200>;
4176
4172
  /**
4177
- * @description Verifies a Dynamic identity-token bearer, checks the wallet is linked to the user, resolves the tenant from the publishable key, and mints the session cookie pair. Requires an `Authorization: Bearer <token>` header.
4173
+ * @description Creates a session from a Dynamic identity token. The wallet must be linked to the token's user. Requires an `Authorization: Bearer <token>` header and the publishable key.
4178
4174
  * @summary Create a session (Dynamic)
4179
4175
  * {@link /v1/session/:address/dynamic}
4180
4176
  */
@@ -4182,7 +4178,7 @@ declare function createSessionDynamic(address: CreateSessionDynamicPathParams["a
4182
4178
  client?: Client;
4183
4179
  }): Promise<CreateSessionDynamic200>;
4184
4180
  /**
4185
- * @description Verifies a Privy identity-token bearer, checks the wallet is linked to the user, resolves the tenant from the publishable key, and mints the session cookie pair. Requires an `Authorization: Bearer <token>` header.
4181
+ * @description Creates a session from a Privy identity token. The wallet must be linked to the token's user. Requires an `Authorization: Bearer <token>` header and the publishable key.
4186
4182
  * @summary Create a session (Privy)
4187
4183
  * {@link /v1/session/:address/privy}
4188
4184
  */
@@ -4246,7 +4242,7 @@ declare function createSwapQuote(address: CreateSwapQuotePathParams["address"],
4246
4242
  client?: Client;
4247
4243
  }): Promise<CreateSwapQuote200>;
4248
4244
  /**
4249
- * @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.
4245
+ * @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: 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.
4250
4246
  * @summary Create a virtual account
4251
4247
  * {@link /v1/wallets/:address/virtual-accounts}
4252
4248
  */
@@ -4294,7 +4290,7 @@ declare function getBlinkConfig(address: GetBlinkConfigPathParams["address"], co
4294
4290
  client?: Client;
4295
4291
  }): Promise<GetBlinkConfig200>;
4296
4292
  /**
4297
- * @description Returns public configuration used by the SDK to render secure card collection and risk checks.
4293
+ * @description Returns the public client identifiers the card form must be initialized with. Every value is publishable — safe to embed in a browser, like a publishable key; no secret is on this surface.
4298
4294
  * @summary Get card flow config
4299
4295
  * {@link /v1/wallets/:address/card/config}
4300
4296
  */
@@ -4302,7 +4298,7 @@ declare function getCardConfig(address: GetCardConfigPathParams["address"], conf
4302
4298
  client?: Client;
4303
4299
  }): Promise<GetCardConfig200>;
4304
4300
  /**
4305
- * @description Returns the saved registration and billing profile for the session wallet so the card flow can prefill its forms.
4301
+ * @description Returns the saved registration and billing profile for the session wallet.
4306
4302
  * @summary Get card registration + billing
4307
4303
  * {@link /v1/wallets/:address/card/customer}
4308
4304
  */
@@ -4358,7 +4354,7 @@ declare function getExchangeWithdrawal(address: GetExchangeWithdrawalPathParams[
4358
4354
  client?: Client;
4359
4355
  }): Promise<GetExchangeWithdrawal200>;
4360
4356
  /**
4361
- * @description Returns USD→currency rates for showing amounts in the app's display currency. Public; rates are cached upstream.
4357
+ * @description Returns USD→currency rates for showing amounts in the app's display currency. No authentication required.
4362
4358
  * @summary Get display-currency exchange rates
4363
4359
  * {@link /v1/fx}
4364
4360
  */
@@ -4430,7 +4426,7 @@ declare function getWallet(address: GetWalletPathParams["address"], config?: Par
4430
4426
  client?: Client;
4431
4427
  }): Promise<GetWallet200>;
4432
4428
  /**
4433
- * @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.
4429
+ * @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. `deposit_address` is null when the deposit arrived without a Calm-issued intake address. Requires a valid session cookie for the same wallet.
4434
4430
  * @summary List crypto deposits
4435
4431
  * {@link /v1/wallets/:address/crypto-deposits}
4436
4432
  */
@@ -4470,7 +4466,7 @@ declare function refreshSession(address: RefreshSessionPathParams["address"], co
4470
4466
  client?: Client;
4471
4467
  }): Promise<RefreshSession200>;
4472
4468
  /**
4473
- * @description Submits the registration form (name + email) for the wallet. Returns 204; the SDK refetches the wallet state to pick up the new facts.
4469
+ * @description Submits the registration form (name + email) for the wallet. Returns 204; re-read `GET /v1/wallets/{address}` to pick up the new facts.
4474
4470
  * @summary Register a wallet
4475
4471
  * {@link /v1/wallets/:address/register}
4476
4472
  */
@@ -4494,14 +4490,11 @@ declare function submitTermsOfService(address: SubmitTermsOfServicePathParams["a
4494
4490
  client?: Client;
4495
4491
  }): Promise<any>;
4496
4492
  /**
4497
- * @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.
4493
+ * @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 new destination. Omitting it with the chain unchanged leaves the account untouched; 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.
4498
4494
  * @summary Update a virtual account
4499
4495
  * {@link /v1/wallets/:address/virtual-accounts/:virtual-account-id}
4500
4496
  */
4501
4497
  declare function updateVirtualAccount(address: UpdateVirtualAccountPathParams["address"], virtualAccountId: UpdateVirtualAccountPathParams["virtual-account-id"], data: UpdateVirtualAccountMutationRequest, config?: Partial<RequestConfig<UpdateVirtualAccountMutationRequest>> & {
4502
4498
  client?: Client;
4503
4499
  }): Promise<any>;
4504
- declare function configureCalm(options: {
4505
- apiUrl: string;
4506
- }): void;
4507
- export { ApiError, type CheckoutCard200, type CheckoutCard400, type CheckoutCard401, type CheckoutCard403, type CheckoutCard404, type CheckoutCard429, type CheckoutCard502, type CheckoutCardMutation, type CheckoutCardMutationRequest, type CheckoutCardMutationRequestChainEnumKey, type CheckoutCardMutationRequestDestinationTokenEnumKey, type CheckoutCardMutationResponse, type CheckoutCardPathParams, type CheckoutStripeSession200, type CheckoutStripeSession400, type CheckoutStripeSession401, type CheckoutStripeSession402, type CheckoutStripeSession403, type CheckoutStripeSession404, type CheckoutStripeSession409, type CheckoutStripeSession429, type CheckoutStripeSession502, type CheckoutStripeSessionMutation, type CheckoutStripeSessionMutationResponse, type CheckoutStripeSessionPathParams, type ClearSession204, type ClearSession429, type ClearSessionMutation, type ClearSessionMutationResponse, type Client, type ConnectExchange200, type ConnectExchange400, type ConnectExchange401, type ConnectExchange403, type ConnectExchange404, type ConnectExchange429, type ConnectExchange502, type ConnectExchangeMutation, type ConnectExchangeMutationResponse, type ConnectExchangePathParams, type ConnectExchangePathParamsExchangeEnumKey, type CreateBlinkSignature200, type CreateBlinkSignature400, type CreateBlinkSignature401, type CreateBlinkSignature403, type CreateBlinkSignature429, type CreateBlinkSignatureMutation, type CreateBlinkSignatureMutationRequest, type CreateBlinkSignatureMutationRequestDestinationChainEnumKey, type CreateBlinkSignatureMutationRequestDestinationTokenEnumKey, type CreateBlinkSignatureMutationResponse, type CreateBlinkSignaturePathParams, type CreateCardLink200, type CreateCardLink400, type CreateCardLink401, type CreateCardLink403, type CreateCardLink404, type CreateCardLink429, type CreateCardLinkMutation, type CreateCardLinkMutationRequest, type CreateCardLinkMutationRequestCurrencyEnumKey, type CreateCardLinkMutationRequestDestinationChainEnumKey, type CreateCardLinkMutationRequestDestinationTokenEnumKey, type CreateCardLinkMutationResponse, type CreateCardLinkPathParams, type CreateCashAppOrder200, type CreateCashAppOrder200StatusEnumKey, type CreateCashAppOrder400, type CreateCashAppOrder401, type CreateCashAppOrder403, type CreateCashAppOrder404, type CreateCashAppOrder429, type CreateCashAppOrder502, type CreateCashAppOrderMutation, type CreateCashAppOrderMutationRequest, type CreateCashAppOrderMutationRequestChainEnumKey, type CreateCashAppOrderMutationRequestDestinationTokenEnumKey, type CreateCashAppOrderMutationResponse, type CreateCashAppOrderPathParams, type CreateCashAppQuote200, type CreateCashAppQuote400, type CreateCashAppQuote401, type CreateCashAppQuote403, type CreateCashAppQuote429, type CreateCashAppQuote502, type CreateCashAppQuoteMutation, type CreateCashAppQuoteMutationRequest, type CreateCashAppQuoteMutationRequestChainEnumKey, type CreateCashAppQuoteMutationRequestDestinationTokenEnumKey, type CreateCashAppQuoteMutationResponse, type CreateCashAppQuotePathParams, type CreateDepositAddress200, type CreateDepositAddress400, type CreateDepositAddress401, type CreateDepositAddress403, type CreateDepositAddress404, type CreateDepositAddress429, type CreateDepositAddressMutation, type CreateDepositAddressMutationRequest, type CreateDepositAddressMutationRequestDestinationChainEnumKey, type CreateDepositAddressMutationRequestDestinationTokenEnumKey, type CreateDepositAddressMutationRequestSourceChainEnumKey, type CreateDepositAddressMutationRequestSourceTokenEnumKey, type CreateDepositAddressMutationResponse, type CreateDepositAddressPathParams, type CreateExchangeWithdrawQuote200, type CreateExchangeWithdrawQuote400, type CreateExchangeWithdrawQuote401, type CreateExchangeWithdrawQuote403, type CreateExchangeWithdrawQuote404, type CreateExchangeWithdrawQuote409, type CreateExchangeWithdrawQuote429, type CreateExchangeWithdrawQuote502, type CreateExchangeWithdrawQuoteMutation, type CreateExchangeWithdrawQuoteMutationRequest, type CreateExchangeWithdrawQuoteMutationRequestDestinationChainEnumKey, type CreateExchangeWithdrawQuoteMutationRequestDestinationTokenEnumKey, type CreateExchangeWithdrawQuoteMutationRequestOriginChainEnumKey, type CreateExchangeWithdrawQuoteMutationResponse, type CreateExchangeWithdrawQuotePathParams, type CreateExchangeWithdrawQuotePathParamsExchangeEnumKey, type CreateSessionDynamic200, type CreateSessionDynamic400, type CreateSessionDynamic401, type CreateSessionDynamic403, type CreateSessionDynamic429, type CreateSessionDynamicMutation, type CreateSessionDynamicMutationResponse, type CreateSessionDynamicPathParams, type CreateSessionPrivy200, type CreateSessionPrivy400, type CreateSessionPrivy401, type CreateSessionPrivy403, type CreateSessionPrivy429, type CreateSessionPrivyMutation, type CreateSessionPrivyMutationResponse, type CreateSessionPrivyPathParams, type CreateSessionSiwe200, type CreateSessionSiwe400, type CreateSessionSiwe401, type CreateSessionSiwe403, type CreateSessionSiwe429, type CreateSessionSiweMutation, type CreateSessionSiweMutationRequest, type CreateSessionSiweMutationResponse, type CreateSessionSiwePathParams, type CreateSiweNonce200, type CreateSiweNonce400, type CreateSiweNonce429, type CreateSiweNonceMutation, type CreateSiweNonceMutationResponse, type CreateSiweNoncePathParams, type CreateStripeAuthIntent200, type CreateStripeAuthIntent400, type CreateStripeAuthIntent401, type CreateStripeAuthIntent403, type CreateStripeAuthIntent404, type CreateStripeAuthIntent429, type CreateStripeAuthIntent502, type CreateStripeAuthIntentMutation, type CreateStripeAuthIntentMutationRequest, type CreateStripeAuthIntentMutationResponse, type CreateStripeAuthIntentPathParams, type CreateStripeCustomer204, type CreateStripeCustomer400, type CreateStripeCustomer401, type CreateStripeCustomer403, type CreateStripeCustomer404, type CreateStripeCustomer429, type CreateStripeCustomer502, type CreateStripeCustomerMutation, type CreateStripeCustomerMutationResponse, type CreateStripeCustomerPathParams, type CreateStripeSession200, type CreateStripeSession400, type CreateStripeSession401, type CreateStripeSession403, type CreateStripeSession404, type CreateStripeSession429, type CreateStripeSession502, type CreateStripeSessionMutation, type CreateStripeSessionMutationRequest, type CreateStripeSessionMutationRequestDestinationChainEnumKey, type CreateStripeSessionMutationRequestDestinationTokenEnumKey, type CreateStripeSessionMutationResponse, type CreateStripeSessionPathParams, type CreateStripeTokens204, type CreateStripeTokens400, type CreateStripeTokens401, type CreateStripeTokens403, type CreateStripeTokens404, type CreateStripeTokens409, type CreateStripeTokens429, type CreateStripeTokens502, type CreateStripeTokensMutation, type CreateStripeTokensMutationRequest, type CreateStripeTokensMutationResponse, type CreateStripeTokensPathParams, type CreateSwapQuote200, type CreateSwapQuote400, type CreateSwapQuote401, type CreateSwapQuote403, type CreateSwapQuote429, type CreateSwapQuote502, type CreateSwapQuoteMutation, type CreateSwapQuoteMutationRequest, type CreateSwapQuoteMutationRequestDestinationChainEnumKey, type CreateSwapQuoteMutationRequestDestinationTokenEnumKey, type CreateSwapQuoteMutationRequestSourceChainEnumKey, type CreateSwapQuoteMutationRequestSourceTokenEnumKey, type CreateSwapQuoteMutationRequestTradeTypeEnumKey, type CreateSwapQuoteMutationResponse, type CreateSwapQuotePathParams, type CreateVirtualAccount204, type CreateVirtualAccount400, type CreateVirtualAccount401, type CreateVirtualAccount403, type CreateVirtualAccount404, type CreateVirtualAccount409, type CreateVirtualAccount429, type CreateVirtualAccount502, type CreateVirtualAccountMutation, type CreateVirtualAccountMutationRequest, type CreateVirtualAccountMutationRequestChainEnumKey, type CreateVirtualAccountMutationRequestCurrencyEnumKey, type CreateVirtualAccountMutationRequestDestinationTokenEnumKey, type CreateVirtualAccountMutationResponse, type CreateVirtualAccountPathParams, type DataCurrencyEnumKey, type DataStatusEnumKey, type DisconnectExchange204, type DisconnectExchange400, type DisconnectExchange401, type DisconnectExchange403, type DisconnectExchange404, type DisconnectExchange429, type DisconnectExchange502, type DisconnectExchangeMutation, type DisconnectExchangeMutationResponse, type DisconnectExchangePathParams, type DisconnectExchangePathParamsExchangeEnumKey, type Error$1 as Error, type ExecuteExchangeWithdrawal200, type ExecuteExchangeWithdrawal200StatusEnumKey, type ExecuteExchangeWithdrawal400, type ExecuteExchangeWithdrawal401, type ExecuteExchangeWithdrawal403, type ExecuteExchangeWithdrawal404, type ExecuteExchangeWithdrawal409, type ExecuteExchangeWithdrawal429, type ExecuteExchangeWithdrawal502, type ExecuteExchangeWithdrawalMutation, type ExecuteExchangeWithdrawalMutationRequest, type ExecuteExchangeWithdrawalMutationResponse, type ExecuteExchangeWithdrawalPathParams, type ExecuteExchangeWithdrawalPathParamsExchangeEnumKey, type GetBalance200, type GetBalance400, type GetBalance401, type GetBalance403, type GetBalance404, type GetBalance429, type GetBalancePathParams, type GetBalancePathParamsTokenEnumKey, type GetBalanceQuery, type GetBalanceQueryResponse, type GetBalances200, type GetBalances400, type GetBalances401, type GetBalances403, type GetBalances429, type GetBalancesPathParams, type GetBalancesQuery, type GetBalancesQueryParams, type GetBalancesQueryResponse, type GetBlinkConfig200, type GetBlinkConfig400, type GetBlinkConfig401, type GetBlinkConfig403, type GetBlinkConfig429, type GetBlinkConfigPathParams, type GetBlinkConfigQuery, type GetBlinkConfigQueryResponse, type GetCardConfig200, type GetCardConfig400, type GetCardConfig401, type GetCardConfig403, type GetCardConfig429, type GetCardConfig502, type GetCardConfigPathParams, type GetCardConfigQuery, type GetCardConfigQueryResponse, type GetCardCustomer200, type GetCardCustomer400, type GetCardCustomer401, type GetCardCustomer403, type GetCardCustomer404, type GetCardCustomer429, type GetCardCustomerPathParams, type GetCardCustomerQuery, type GetCardCustomerQueryResponse, type GetCardOrder200, type GetCardOrder200ChainEnumKey, type GetCardOrder200StatusEnumKey, type GetCardOrder400, type GetCardOrder401, type GetCardOrder403, type GetCardOrder404, type GetCardOrder429, type GetCardOrderPathParams, type GetCardOrderQuery, type GetCardOrderQueryResponse, type GetCardQuote200, type GetCardQuote400, type GetCardQuote401, type GetCardQuote403, type GetCardQuote429, type GetCardQuote502, type GetCardQuotePathParams, type GetCardQuoteQuery, type GetCardQuoteQueryParams, type GetCardQuoteQueryResponse, type GetCashAppOrder200, type GetCashAppOrder200StatusEnumKey, type GetCashAppOrder400, type GetCashAppOrder401, type GetCashAppOrder403, type GetCashAppOrder404, type GetCashAppOrder429, type GetCashAppOrderPathParams, type GetCashAppOrderQuery, type GetCashAppOrderQueryResponse, type GetExchange200, type GetExchange400, type GetExchange401, type GetExchange403, type GetExchange404, type GetExchange429, type GetExchange502, type GetExchangeAssets200, type GetExchangeAssets400, type GetExchangeAssets401, type GetExchangeAssets403, type GetExchangeAssets404, type GetExchangeAssets409, type GetExchangeAssets429, type GetExchangeAssets502, type GetExchangeAssetsPathParams, type GetExchangeAssetsPathParamsExchangeEnumKey, type GetExchangeAssetsQuery, type GetExchangeAssetsQueryResponse, type GetExchangePathParams, type GetExchangePathParamsExchangeEnumKey, type GetExchangeQuery, type GetExchangeQueryResponse, type GetExchangeWithdrawal200, type GetExchangeWithdrawal200StatusEnumKey, type GetExchangeWithdrawal400, type GetExchangeWithdrawal401, type GetExchangeWithdrawal403, type GetExchangeWithdrawal404, type GetExchangeWithdrawal429, type GetExchangeWithdrawalPathParams, type GetExchangeWithdrawalPathParamsExchangeEnumKey, type GetExchangeWithdrawalQuery, type GetExchangeWithdrawalQueryResponse, type GetFxRates200, type GetFxRates429, type GetFxRates502, type GetFxRatesQuery, type GetFxRatesQueryResponse, type GetIdentityVerificationLink200, type GetIdentityVerificationLink400, type GetIdentityVerificationLink401, type GetIdentityVerificationLink403, type GetIdentityVerificationLink404, type GetIdentityVerificationLink429, type GetIdentityVerificationLink502, type GetIdentityVerificationLinkMutation, type GetIdentityVerificationLinkMutationResponse, type GetIdentityVerificationLinkPathParams, type GetStripeConfig200, type GetStripeConfig400, type GetStripeConfig401, type GetStripeConfig403, type GetStripeConfig429, type GetStripeConfigPathParams, type GetStripeConfigQuery, type GetStripeConfigQueryResponse, type GetStripeCustomerStatus200, type GetStripeCustomerStatus400, type GetStripeCustomerStatus401, type GetStripeCustomerStatus403, type GetStripeCustomerStatus404, type GetStripeCustomerStatus429, type GetStripeCustomerStatus502, type GetStripeCustomerStatusPathParams, type GetStripeCustomerStatusQuery, type GetStripeCustomerStatusQueryResponse, type GetStripeOrder200, type GetStripeOrder200StatusEnumKey, type GetStripeOrder400, type GetStripeOrder401, type GetStripeOrder403, type GetStripeOrder404, type GetStripeOrder429, type GetStripeOrderPathParams, type GetStripeOrderQuery, type GetStripeOrderQueryResponse, type GetStripeQuote200, type GetStripeQuote400, type GetStripeQuote401, type GetStripeQuote403, type GetStripeQuote429, type GetStripeQuote502, type GetStripeQuotePathParams, type GetStripeQuoteQuery, type GetStripeQuoteQueryParams, type GetStripeQuoteQueryResponse, type GetStripeStatus200, type GetStripeStatus400, type GetStripeStatus401, type GetStripeStatus403, type GetStripeStatus429, type GetStripeStatusPathParams, type GetStripeStatusQuery, type GetStripeStatusQueryResponse, type GetTermsOfServiceLink200, type GetTermsOfServiceLink400, type GetTermsOfServiceLink401, type GetTermsOfServiceLink403, type GetTermsOfServiceLink404, type GetTermsOfServiceLink429, type GetTermsOfServiceLink502, type GetTermsOfServiceLinkMutation, type GetTermsOfServiceLinkMutationResponse, type GetTermsOfServiceLinkPathParams, type GetWallet200, type GetWallet200IdentityVerificationStatusEnumKey, type GetWallet400, type GetWallet401, type GetWallet403, type GetWallet404, type GetWallet429, type GetWalletPathParams, type GetWalletQuery, type GetWalletQueryResponse, type ListCryptoDeposits200, type ListCryptoDeposits400, type ListCryptoDeposits401, type ListCryptoDeposits403, type ListCryptoDeposits404, type ListCryptoDeposits429, type ListCryptoDepositsPathParams, type ListCryptoDepositsQuery, type ListCryptoDepositsQueryResponse, type ListStripePaymentTokens200, type ListStripePaymentTokens400, type ListStripePaymentTokens401, type ListStripePaymentTokens403, type ListStripePaymentTokens404, type ListStripePaymentTokens429, type ListStripePaymentTokens502, type ListStripePaymentTokensPathParams, type ListStripePaymentTokensQuery, type ListStripePaymentTokensQueryParams, type ListStripePaymentTokensQueryResponse, type ListStripeWallets200, type ListStripeWallets400, type ListStripeWallets401, type ListStripeWallets403, type ListStripeWallets404, type ListStripeWallets429, type ListStripeWallets502, type ListStripeWalletsPathParams, type ListStripeWalletsQuery, type ListStripeWalletsQueryParams, type ListStripeWalletsQueryResponse, type ListVirtualAccounts200, type ListVirtualAccounts400, type ListVirtualAccounts401, type ListVirtualAccounts403, type ListVirtualAccounts404, type ListVirtualAccounts429, type ListVirtualAccountsPathParams, type ListVirtualAccountsQuery, type ListVirtualAccountsQueryResponse, type ProcessorEnvEnumKey, type RefreshSession200, type RefreshSession400, type RefreshSession401, type RefreshSession403, type RefreshSession429, type RefreshSessionMutation, type RefreshSessionMutationResponse, type RefreshSessionPathParams, type RegisterWallet204, type RegisterWallet400, type RegisterWallet401, type RegisterWallet403, type RegisterWallet404, type RegisterWallet409, type RegisterWallet429, type RegisterWallet502, type RegisterWalletMutation, type RegisterWalletMutationRequest, type RegisterWalletMutationResponse, type RegisterWalletPathParams, type RequestConfig, type RequestCredentials, type ResponseConfig, type ResponseErrorConfig, type SubmitIdentityVerification204, type SubmitIdentityVerification400, type SubmitIdentityVerification401, type SubmitIdentityVerification403, type SubmitIdentityVerification404, type SubmitIdentityVerification429, type SubmitIdentityVerificationMutation, type SubmitIdentityVerificationMutationResponse, type SubmitIdentityVerificationPathParams, type SubmitTermsOfService204, type SubmitTermsOfService400, type SubmitTermsOfService401, type SubmitTermsOfService403, type SubmitTermsOfService404, type SubmitTermsOfService429, type SubmitTermsOfServiceMutation, type SubmitTermsOfServiceMutationResponse, type SubmitTermsOfServicePathParams, type UpdateVirtualAccount204, type UpdateVirtualAccount400, type UpdateVirtualAccount401, type UpdateVirtualAccount403, type UpdateVirtualAccount404, type UpdateVirtualAccount409, type UpdateVirtualAccount429, type UpdateVirtualAccount502, type UpdateVirtualAccountMutation, type UpdateVirtualAccountMutationRequest, type UpdateVirtualAccountMutationRequestChainEnumKey, type UpdateVirtualAccountMutationRequestDestinationTokenEnumKey, type UpdateVirtualAccountMutationResponse, type UpdateVirtualAccountPathParams, 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 };
4500
+ export { ApiError, type CheckoutCard200, type CheckoutCard400, type CheckoutCard401, type CheckoutCard403, type CheckoutCard404, type CheckoutCard429, type CheckoutCard502, type CheckoutCardMutation, type CheckoutCardMutationRequest, type CheckoutCardMutationRequestChainEnumKey, type CheckoutCardMutationRequestDestinationTokenEnumKey, type CheckoutCardMutationResponse, type CheckoutCardPathParams, type CheckoutStripeSession200, type CheckoutStripeSession400, type CheckoutStripeSession401, type CheckoutStripeSession402, type CheckoutStripeSession403, type CheckoutStripeSession404, type CheckoutStripeSession409, type CheckoutStripeSession429, type CheckoutStripeSession502, type CheckoutStripeSessionMutation, type CheckoutStripeSessionMutationResponse, type CheckoutStripeSessionPathParams, type ClearSession204, type ClearSession429, type ClearSessionMutation, type ClearSessionMutationResponse, type Client, type ConnectExchange200, type ConnectExchange400, type ConnectExchange401, type ConnectExchange403, type ConnectExchange404, type ConnectExchange429, type ConnectExchange502, type ConnectExchangeMutation, type ConnectExchangeMutationResponse, type ConnectExchangePathParams, type ConnectExchangePathParamsExchangeEnumKey, type CreateBlinkSignature200, type CreateBlinkSignature400, type CreateBlinkSignature401, type CreateBlinkSignature403, type CreateBlinkSignature429, type CreateBlinkSignatureMutation, type CreateBlinkSignatureMutationRequest, type CreateBlinkSignatureMutationRequestDestinationChainEnumKey, type CreateBlinkSignatureMutationRequestDestinationTokenEnumKey, type CreateBlinkSignatureMutationResponse, type CreateBlinkSignaturePathParams, type CreateCardLink200, type CreateCardLink400, type CreateCardLink401, type CreateCardLink403, type CreateCardLink404, type CreateCardLink429, type CreateCardLinkMutation, type CreateCardLinkMutationRequest, type CreateCardLinkMutationRequestCurrencyEnumKey, type CreateCardLinkMutationRequestDestinationChainEnumKey, type CreateCardLinkMutationRequestDestinationTokenEnumKey, type CreateCardLinkMutationResponse, type CreateCardLinkPathParams, type CreateCashAppOrder200, type CreateCashAppOrder200StatusEnumKey, type CreateCashAppOrder400, type CreateCashAppOrder401, type CreateCashAppOrder403, type CreateCashAppOrder404, type CreateCashAppOrder429, type CreateCashAppOrder502, type CreateCashAppOrderMutation, type CreateCashAppOrderMutationRequest, type CreateCashAppOrderMutationRequestChainEnumKey, type CreateCashAppOrderMutationRequestDestinationTokenEnumKey, type CreateCashAppOrderMutationResponse, type CreateCashAppOrderPathParams, type CreateCashAppQuote200, type CreateCashAppQuote400, type CreateCashAppQuote401, type CreateCashAppQuote403, type CreateCashAppQuote429, type CreateCashAppQuote502, type CreateCashAppQuoteMutation, type CreateCashAppQuoteMutationRequest, type CreateCashAppQuoteMutationRequestChainEnumKey, type CreateCashAppQuoteMutationRequestDestinationTokenEnumKey, type CreateCashAppQuoteMutationResponse, type CreateCashAppQuotePathParams, type CreateDepositAddress200, type CreateDepositAddress400, type CreateDepositAddress401, type CreateDepositAddress403, type CreateDepositAddress404, type CreateDepositAddress429, type CreateDepositAddressMutation, type CreateDepositAddressMutationRequest, type CreateDepositAddressMutationRequestDestinationChainEnumKey, type CreateDepositAddressMutationRequestDestinationTokenEnumKey, type CreateDepositAddressMutationRequestSourceChainEnumKey, type CreateDepositAddressMutationRequestSourceTokenEnumKey, type CreateDepositAddressMutationResponse, type CreateDepositAddressPathParams, type CreateExchangeWithdrawQuote200, type CreateExchangeWithdrawQuote400, type CreateExchangeWithdrawQuote401, type CreateExchangeWithdrawQuote403, type CreateExchangeWithdrawQuote404, type CreateExchangeWithdrawQuote409, type CreateExchangeWithdrawQuote429, type CreateExchangeWithdrawQuote502, type CreateExchangeWithdrawQuoteMutation, type CreateExchangeWithdrawQuoteMutationRequest, type CreateExchangeWithdrawQuoteMutationRequestDestinationChainEnumKey, type CreateExchangeWithdrawQuoteMutationRequestDestinationTokenEnumKey, type CreateExchangeWithdrawQuoteMutationRequestOriginChainEnumKey, type CreateExchangeWithdrawQuoteMutationResponse, type CreateExchangeWithdrawQuotePathParams, type CreateExchangeWithdrawQuotePathParamsExchangeEnumKey, type CreateSessionDynamic200, type CreateSessionDynamic400, type CreateSessionDynamic401, type CreateSessionDynamic403, type CreateSessionDynamic429, type CreateSessionDynamicMutation, type CreateSessionDynamicMutationResponse, type CreateSessionDynamicPathParams, type CreateSessionPrivy200, type CreateSessionPrivy400, type CreateSessionPrivy401, type CreateSessionPrivy403, type CreateSessionPrivy429, type CreateSessionPrivyMutation, type CreateSessionPrivyMutationResponse, type CreateSessionPrivyPathParams, type CreateSessionSiwe200, type CreateSessionSiwe400, type CreateSessionSiwe401, type CreateSessionSiwe403, type CreateSessionSiwe429, type CreateSessionSiweMutation, type CreateSessionSiweMutationRequest, type CreateSessionSiweMutationResponse, type CreateSessionSiwePathParams, type CreateSiweNonce200, type CreateSiweNonce400, type CreateSiweNonce429, type CreateSiweNonceMutation, type CreateSiweNonceMutationResponse, type CreateSiweNoncePathParams, type CreateStripeAuthIntent200, type CreateStripeAuthIntent400, type CreateStripeAuthIntent401, type CreateStripeAuthIntent403, type CreateStripeAuthIntent404, type CreateStripeAuthIntent429, type CreateStripeAuthIntent502, type CreateStripeAuthIntentMutation, type CreateStripeAuthIntentMutationRequest, type CreateStripeAuthIntentMutationResponse, type CreateStripeAuthIntentPathParams, type CreateStripeCustomer204, type CreateStripeCustomer400, type CreateStripeCustomer401, type CreateStripeCustomer403, type CreateStripeCustomer404, type CreateStripeCustomer429, type CreateStripeCustomer502, type CreateStripeCustomerMutation, type CreateStripeCustomerMutationResponse, type CreateStripeCustomerPathParams, type CreateStripeSession200, type CreateStripeSession400, type CreateStripeSession401, type CreateStripeSession403, type CreateStripeSession404, type CreateStripeSession429, type CreateStripeSession502, type CreateStripeSessionMutation, type CreateStripeSessionMutationRequest, type CreateStripeSessionMutationRequestDestinationChainEnumKey, type CreateStripeSessionMutationRequestDestinationTokenEnumKey, type CreateStripeSessionMutationResponse, type CreateStripeSessionPathParams, type CreateStripeTokens204, type CreateStripeTokens400, type CreateStripeTokens401, type CreateStripeTokens403, type CreateStripeTokens404, type CreateStripeTokens409, type CreateStripeTokens429, type CreateStripeTokens502, type CreateStripeTokensMutation, type CreateStripeTokensMutationRequest, type CreateStripeTokensMutationResponse, type CreateStripeTokensPathParams, type CreateSwapQuote200, type CreateSwapQuote400, type CreateSwapQuote401, type CreateSwapQuote403, type CreateSwapQuote429, type CreateSwapQuote502, type CreateSwapQuoteMutation, type CreateSwapQuoteMutationRequest, type CreateSwapQuoteMutationRequestDestinationChainEnumKey, type CreateSwapQuoteMutationRequestDestinationTokenEnumKey, type CreateSwapQuoteMutationRequestSourceChainEnumKey, type CreateSwapQuoteMutationRequestSourceTokenEnumKey, type CreateSwapQuoteMutationRequestTradeTypeEnumKey, type CreateSwapQuoteMutationResponse, type CreateSwapQuotePathParams, type CreateVirtualAccount204, type CreateVirtualAccount400, type CreateVirtualAccount401, type CreateVirtualAccount403, type CreateVirtualAccount404, type CreateVirtualAccount409, type CreateVirtualAccount429, type CreateVirtualAccount502, type CreateVirtualAccountMutation, type CreateVirtualAccountMutationRequest, type CreateVirtualAccountMutationRequestChainEnumKey, type CreateVirtualAccountMutationRequestCurrencyEnumKey, type CreateVirtualAccountMutationRequestDestinationTokenEnumKey, type CreateVirtualAccountMutationResponse, type CreateVirtualAccountPathParams, type DataCurrencyEnumKey, type DataStatusEnumKey, type DisconnectExchange204, type DisconnectExchange400, type DisconnectExchange401, type DisconnectExchange403, type DisconnectExchange404, type DisconnectExchange429, type DisconnectExchange502, type DisconnectExchangeMutation, type DisconnectExchangeMutationResponse, type DisconnectExchangePathParams, type DisconnectExchangePathParamsExchangeEnumKey, type Error$1 as Error, type ExecuteExchangeWithdrawal200, type ExecuteExchangeWithdrawal200StatusEnumKey, type ExecuteExchangeWithdrawal400, type ExecuteExchangeWithdrawal401, type ExecuteExchangeWithdrawal403, type ExecuteExchangeWithdrawal404, type ExecuteExchangeWithdrawal409, type ExecuteExchangeWithdrawal429, type ExecuteExchangeWithdrawal502, type ExecuteExchangeWithdrawalMutation, type ExecuteExchangeWithdrawalMutationRequest, type ExecuteExchangeWithdrawalMutationResponse, type ExecuteExchangeWithdrawalPathParams, type ExecuteExchangeWithdrawalPathParamsExchangeEnumKey, type GetBalance200, type GetBalance400, type GetBalance401, type GetBalance403, type GetBalance404, type GetBalance429, type GetBalancePathParams, type GetBalancePathParamsTokenEnumKey, type GetBalanceQuery, type GetBalanceQueryResponse, type GetBalances200, type GetBalances400, type GetBalances401, type GetBalances403, type GetBalances429, type GetBalancesPathParams, type GetBalancesQuery, type GetBalancesQueryParams, type GetBalancesQueryResponse, type GetBlinkConfig200, type GetBlinkConfig400, type GetBlinkConfig401, type GetBlinkConfig403, type GetBlinkConfig429, type GetBlinkConfigPathParams, type GetBlinkConfigQuery, type GetBlinkConfigQueryResponse, type GetCardConfig200, type GetCardConfig400, type GetCardConfig401, type GetCardConfig403, type GetCardConfig429, type GetCardConfig502, type GetCardConfigPathParams, type GetCardConfigQuery, type GetCardConfigQueryResponse, type GetCardCustomer200, type GetCardCustomer400, type GetCardCustomer401, type GetCardCustomer403, type GetCardCustomer404, type GetCardCustomer429, type GetCardCustomerPathParams, type GetCardCustomerQuery, type GetCardCustomerQueryResponse, type GetCardOrder200, type GetCardOrder200ChainEnumKey, type GetCardOrder200StatusEnumKey, type GetCardOrder400, type GetCardOrder401, type GetCardOrder403, type GetCardOrder404, type GetCardOrder429, type GetCardOrderPathParams, type GetCardOrderQuery, type GetCardOrderQueryResponse, type GetCardQuote200, type GetCardQuote400, type GetCardQuote401, type GetCardQuote403, type GetCardQuote429, type GetCardQuote502, type GetCardQuotePathParams, type GetCardQuoteQuery, type GetCardQuoteQueryParams, type GetCardQuoteQueryResponse, type GetCashAppOrder200, type GetCashAppOrder200StatusEnumKey, type GetCashAppOrder400, type GetCashAppOrder401, type GetCashAppOrder403, type GetCashAppOrder404, type GetCashAppOrder429, type GetCashAppOrderPathParams, type GetCashAppOrderQuery, type GetCashAppOrderQueryResponse, type GetExchange200, type GetExchange400, type GetExchange401, type GetExchange403, type GetExchange404, type GetExchange429, type GetExchange502, type GetExchangeAssets200, type GetExchangeAssets400, type GetExchangeAssets401, type GetExchangeAssets403, type GetExchangeAssets404, type GetExchangeAssets409, type GetExchangeAssets429, type GetExchangeAssets502, type GetExchangeAssetsPathParams, type GetExchangeAssetsPathParamsExchangeEnumKey, type GetExchangeAssetsQuery, type GetExchangeAssetsQueryResponse, type GetExchangePathParams, type GetExchangePathParamsExchangeEnumKey, type GetExchangeQuery, type GetExchangeQueryResponse, type GetExchangeWithdrawal200, type GetExchangeWithdrawal200StatusEnumKey, type GetExchangeWithdrawal400, type GetExchangeWithdrawal401, type GetExchangeWithdrawal403, type GetExchangeWithdrawal404, type GetExchangeWithdrawal429, type GetExchangeWithdrawalPathParams, type GetExchangeWithdrawalPathParamsExchangeEnumKey, type GetExchangeWithdrawalQuery, type GetExchangeWithdrawalQueryResponse, type GetFxRates200, type GetFxRates429, type GetFxRates502, type GetFxRatesQuery, type GetFxRatesQueryResponse, type GetIdentityVerificationLink200, type GetIdentityVerificationLink400, type GetIdentityVerificationLink401, type GetIdentityVerificationLink403, type GetIdentityVerificationLink404, type GetIdentityVerificationLink429, type GetIdentityVerificationLink502, type GetIdentityVerificationLinkMutation, type GetIdentityVerificationLinkMutationResponse, type GetIdentityVerificationLinkPathParams, type GetStripeConfig200, type GetStripeConfig400, type GetStripeConfig401, type GetStripeConfig403, type GetStripeConfig429, type GetStripeConfigPathParams, type GetStripeConfigQuery, type GetStripeConfigQueryResponse, type GetStripeCustomerStatus200, type GetStripeCustomerStatus400, type GetStripeCustomerStatus401, type GetStripeCustomerStatus403, type GetStripeCustomerStatus404, type GetStripeCustomerStatus429, type GetStripeCustomerStatus502, type GetStripeCustomerStatusPathParams, type GetStripeCustomerStatusQuery, type GetStripeCustomerStatusQueryResponse, type GetStripeOrder200, type GetStripeOrder200StatusEnumKey, type GetStripeOrder400, type GetStripeOrder401, type GetStripeOrder403, type GetStripeOrder404, type GetStripeOrder429, type GetStripeOrderPathParams, type GetStripeOrderQuery, type GetStripeOrderQueryResponse, type GetStripeQuote200, type GetStripeQuote400, type GetStripeQuote401, type GetStripeQuote403, type GetStripeQuote429, type GetStripeQuote502, type GetStripeQuotePathParams, type GetStripeQuoteQuery, type GetStripeQuoteQueryParams, type GetStripeQuoteQueryResponse, type GetStripeStatus200, type GetStripeStatus400, type GetStripeStatus401, type GetStripeStatus403, type GetStripeStatus429, type GetStripeStatusPathParams, type GetStripeStatusQuery, type GetStripeStatusQueryResponse, type GetTermsOfServiceLink200, type GetTermsOfServiceLink400, type GetTermsOfServiceLink401, type GetTermsOfServiceLink403, type GetTermsOfServiceLink404, type GetTermsOfServiceLink429, type GetTermsOfServiceLink502, type GetTermsOfServiceLinkMutation, type GetTermsOfServiceLinkMutationResponse, type GetTermsOfServiceLinkPathParams, type GetWallet200, type GetWallet200IdentityVerificationStatusEnumKey, type GetWallet400, type GetWallet401, type GetWallet403, type GetWallet404, type GetWallet429, type GetWalletPathParams, type GetWalletQuery, type GetWalletQueryResponse, type ListCryptoDeposits200, type ListCryptoDeposits400, type ListCryptoDeposits401, type ListCryptoDeposits403, type ListCryptoDeposits404, type ListCryptoDeposits429, type ListCryptoDepositsPathParams, type ListCryptoDepositsQuery, type ListCryptoDepositsQueryResponse, type ListStripePaymentTokens200, type ListStripePaymentTokens400, type ListStripePaymentTokens401, type ListStripePaymentTokens403, type ListStripePaymentTokens404, type ListStripePaymentTokens429, type ListStripePaymentTokens502, type ListStripePaymentTokensPathParams, type ListStripePaymentTokensQuery, type ListStripePaymentTokensQueryParams, type ListStripePaymentTokensQueryResponse, type ListStripeWallets200, type ListStripeWallets400, type ListStripeWallets401, type ListStripeWallets403, type ListStripeWallets404, type ListStripeWallets429, type ListStripeWallets502, type ListStripeWalletsPathParams, type ListStripeWalletsQuery, type ListStripeWalletsQueryParams, type ListStripeWalletsQueryResponse, type ListVirtualAccounts200, type ListVirtualAccounts400, type ListVirtualAccounts401, type ListVirtualAccounts403, type ListVirtualAccounts404, type ListVirtualAccounts429, type ListVirtualAccountsPathParams, type ListVirtualAccountsQuery, type ListVirtualAccountsQueryResponse, type ProcessorEnvEnumKey, type RefreshSession200, type RefreshSession400, type RefreshSession401, type RefreshSession403, type RefreshSession429, type RefreshSessionMutation, type RefreshSessionMutationResponse, type RefreshSessionPathParams, type RegisterWallet204, type RegisterWallet400, type RegisterWallet401, type RegisterWallet403, type RegisterWallet404, type RegisterWallet409, type RegisterWallet429, type RegisterWallet502, type RegisterWalletMutation, type RegisterWalletMutationRequest, type RegisterWalletMutationResponse, type RegisterWalletPathParams, type RequestConfig, type RequestCredentials, type ResponseConfig, type ResponseErrorConfig, type SubmitIdentityVerification204, type SubmitIdentityVerification400, type SubmitIdentityVerification401, type SubmitIdentityVerification403, type SubmitIdentityVerification404, type SubmitIdentityVerification429, type SubmitIdentityVerificationMutation, type SubmitIdentityVerificationMutationResponse, type SubmitIdentityVerificationPathParams, type SubmitTermsOfService204, type SubmitTermsOfService400, type SubmitTermsOfService401, type SubmitTermsOfService403, type SubmitTermsOfService404, type SubmitTermsOfService429, type SubmitTermsOfServiceMutation, type SubmitTermsOfServiceMutationResponse, type SubmitTermsOfServicePathParams, type UpdateVirtualAccount204, type UpdateVirtualAccount400, type UpdateVirtualAccount401, type UpdateVirtualAccount403, type UpdateVirtualAccount404, type UpdateVirtualAccount409, type UpdateVirtualAccount429, type UpdateVirtualAccount502, type UpdateVirtualAccountMutation, type UpdateVirtualAccountMutationRequest, type UpdateVirtualAccountMutationRequestChainEnumKey, type UpdateVirtualAccountMutationRequestDestinationTokenEnumKey, type UpdateVirtualAccountMutationResponse, type UpdateVirtualAccountPathParams, checkoutCard, checkoutCardMutationRequestChainEnum, checkoutCardMutationRequestDestinationTokenEnum, checkoutStripeSession, clearSession, client, client as default, 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, 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, submitIdentityVerification, submitTermsOfService, updateVirtualAccount, updateVirtualAccountMutationRequestChainEnum, updateVirtualAccountMutationRequestDestinationTokenEnum };
package/dist/index.js CHANGED
@@ -14,19 +14,7 @@ var ApiError = class extends Error {
14
14
  this.status = args.status;
15
15
  }
16
16
  };
17
- let baseConfig = {};
18
- function getConfig() {
19
- return baseConfig;
20
- }
21
- function setConfig(config) {
22
- baseConfig = config;
23
- return baseConfig;
24
- }
25
- async function request(paramsConfig) {
26
- const config = {
27
- ...baseConfig,
28
- ...paramsConfig
29
- };
17
+ async function request(config) {
30
18
  const searchParams = new URLSearchParams();
31
19
  for (const [key, value] of Object.entries(config.params ?? {})) if (value != null) searchParams.append(key, String(value));
32
20
  let targetUrl = [config.apiUrl, config.url].filter(Boolean).join("");
@@ -53,9 +41,7 @@ async function request(paramsConfig) {
53
41
  }
54
42
  return {
55
43
  data,
56
- status: response.status,
57
- statusText: response.statusText,
58
- headers: response.headers
44
+ status: response.status
59
45
  };
60
46
  }
61
47
  function normalizeHeaders(headers) {
@@ -74,7 +60,7 @@ function getCheckoutCardUrl(address) {
74
60
  };
75
61
  }
76
62
  /**
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.
63
+ * @description Submits a card checkout for the session wallet using the encrypted card details supplied in `secure_card`. 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
64
  * @summary Submit card checkout
79
65
  * {@link /v1/wallets/:address/card/checkout}
80
66
  */
@@ -318,7 +304,7 @@ function getCreateSessionDynamicUrl(address) {
318
304
  };
319
305
  }
320
306
  /**
321
- * @description Verifies a Dynamic identity-token bearer, checks the wallet is linked to the user, resolves the tenant from the publishable key, and mints the session cookie pair. Requires an `Authorization: Bearer <token>` header.
307
+ * @description Creates a session from a Dynamic identity token. The wallet must be linked to the token's user. Requires an `Authorization: Bearer <token>` header and the publishable key.
322
308
  * @summary Create a session (Dynamic)
323
309
  * {@link /v1/session/:address/dynamic}
324
310
  */
@@ -341,7 +327,7 @@ function getCreateSessionPrivyUrl(address) {
341
327
  };
342
328
  }
343
329
  /**
344
- * @description Verifies a Privy identity-token bearer, checks the wallet is linked to the user, resolves the tenant from the publishable key, and mints the session cookie pair. Requires an `Authorization: Bearer <token>` header.
330
+ * @description Creates a session from a Privy identity token. The wallet must be linked to the token's user. Requires an `Authorization: Bearer <token>` header and the publishable key.
345
331
  * @summary Create a session (Privy)
346
332
  * {@link /v1/session/:address/privy}
347
333
  */
@@ -535,7 +521,7 @@ function getCreateVirtualAccountUrl(address) {
535
521
  };
536
522
  }
537
523
  /**
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.
524
+ * @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: 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.
539
525
  * @summary Create a virtual account
540
526
  * {@link /v1/wallets/:address/virtual-accounts}
541
527
  */
@@ -678,7 +664,7 @@ function getGetCardConfigUrl(address) {
678
664
  };
679
665
  }
680
666
  /**
681
- * @description Returns public configuration used by the SDK to render secure card collection and risk checks.
667
+ * @description Returns the public client identifiers the card form must be initialized with. Every value is publishable — safe to embed in a browser, like a publishable key; no secret is on this surface.
682
668
  * @summary Get card flow config
683
669
  * {@link /v1/wallets/:address/card/config}
684
670
  */
@@ -701,7 +687,7 @@ function getGetCardCustomerUrl(address) {
701
687
  };
702
688
  }
703
689
  /**
704
- * @description Returns the saved registration and billing profile for the session wallet so the card flow can prefill its forms.
690
+ * @description Returns the saved registration and billing profile for the session wallet.
705
691
  * @summary Get card registration + billing
706
692
  * {@link /v1/wallets/:address/card/customer}
707
693
  */
@@ -863,7 +849,7 @@ function getGetFxRatesUrl() {
863
849
  };
864
850
  }
865
851
  /**
866
- * @description Returns USD→currency rates for showing amounts in the app's display currency. Public; rates are cached upstream.
852
+ * @description Returns USD→currency rates for showing amounts in the app's display currency. No authentication required.
867
853
  * @summary Get display-currency exchange rates
868
854
  * {@link /v1/fx}
869
855
  */
@@ -1071,7 +1057,7 @@ function getListCryptoDepositsUrl(address) {
1071
1057
  };
1072
1058
  }
1073
1059
  /**
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.
1060
+ * @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. `deposit_address` is null when the deposit arrived without a Calm-issued intake address. Requires a valid session cookie for the same wallet.
1075
1061
  * @summary List crypto deposits
1076
1062
  * {@link /v1/wallets/:address/crypto-deposits}
1077
1063
  */
@@ -1188,7 +1174,7 @@ function getRegisterWalletUrl(address) {
1188
1174
  };
1189
1175
  }
1190
1176
  /**
1191
- * @description Submits the registration form (name + email) for the wallet. Returns 204; the SDK refetches the wallet state to pick up the new facts.
1177
+ * @description Submits the registration form (name + email) for the wallet. Returns 204; re-read `GET /v1/wallets/{address}` to pick up the new facts.
1192
1178
  * @summary Register a wallet
1193
1179
  * {@link /v1/wallets/:address/register}
1194
1180
  */
@@ -1259,7 +1245,7 @@ function getUpdateVirtualAccountUrl(address, virtualAccountId) {
1259
1245
  };
1260
1246
  }
1261
1247
  /**
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.
1248
+ * @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 new destination. Omitting it with the chain unchanged leaves the account untouched; 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.
1263
1249
  * @summary Update a virtual account
1264
1250
  * {@link /v1/wallets/:address/virtual-accounts/:virtual-account-id}
1265
1251
  */
@@ -1606,7 +1592,4 @@ const updateVirtualAccountMutationRequestDestinationTokenEnum = {
1606
1592
  ausd: "ausd",
1607
1593
  "usdc.e": "usdc.e"
1608
1594
  };
1609
- function configureCalm(options) {
1610
- setConfig({ apiUrl: options.apiUrl });
1611
- }
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 };
1595
+ export { ApiError, checkoutCard, checkoutCardMutationRequestChainEnum, checkoutCardMutationRequestDestinationTokenEnum, checkoutStripeSession, clearSession, client, client as default, 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, 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, submitIdentityVerification, submitTermsOfService, updateVirtualAccount, updateVirtualAccountMutationRequestChainEnum, updateVirtualAccountMutationRequestDestinationTokenEnum };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calm-xyz/core",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "Headless client for the Calm fiat-to-crypto onramp API.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -13,6 +13,9 @@
13
13
  "default": "./dist/index.js"
14
14
  }
15
15
  },
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
16
19
  "scripts": {
17
20
  "build": "tsdown",
18
21
  "generate": "kubb generate",