@privy-io/js-sdk-core 0.79.2 → 0.79.4

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.
@@ -350,7 +350,10 @@ declare class PrivyApiError extends Error {
350
350
  declare class PrivyClientError extends Error {
351
351
  error: string;
352
352
  code: ClientErrorCode;
353
- constructor({ error, code }: ErrorBody<ClientErrorCode>);
353
+ cause?: unknown;
354
+ constructor({ error, code, cause }: ErrorBody<ClientErrorCode> & {
355
+ cause?: unknown;
356
+ });
354
357
  }
355
358
  declare class MoonpayApiError extends Error {
356
359
  error: string;
@@ -1032,6 +1035,28 @@ declare class EmbeddedBitcoinWalletProvider {
1032
1035
  toJSON(): string;
1033
1036
  }
1034
1037
  //#endregion
1038
+ //#region src/embedded/with-mfa-error-handling.d.ts
1039
+ /** Return the updated user after enrollment completes. */
1040
+ type OnMfaEnrollmentRequired = (opts: {
1041
+ error: PrivyApiError;
1042
+ }) => Promise<{
1043
+ user: User;
1044
+ }>;
1045
+ /** Fulfill after MFA verification succeeds, or reject to fail the wallet operation. */
1046
+ type OnMfaVerificationRequired = (opts: {
1047
+ error: PrivyApiError;
1048
+ }) => Promise<void | Record<string, never>>;
1049
+ /**
1050
+ * Optional MFA handlers for TEE wallets; on-device wallets do not use these callbacks.
1051
+ * Each requirement is handled once per operation.
1052
+ */
1053
+ type TeeWalletMfaCallbacks = {
1054
+ /** Return the enrolled user when the Wallet API requires enrollment. */
1055
+ onMfaEnrollmentRequired?: OnMfaEnrollmentRequired;
1056
+ /** Complete verification when the Wallet API requires MFA. */
1057
+ onMfaVerificationRequired?: OnMfaVerificationRequired;
1058
+ };
1059
+ //#endregion
1035
1060
  //#region src/client/EmbeddedWalletApi.d.ts
1036
1061
  /** Options for creating the Solana embedded wallet */
1037
1062
  type CreateSolanaOpts = {
@@ -1070,7 +1095,7 @@ declare class EmbeddedWalletApi {
1070
1095
  * @param o.entropyId the key used to look up the existing wallet
1071
1096
  * @param o.entropyIdVerifier the method used to verify the entropy ID
1072
1097
  *
1073
- * @returns the updated user
1098
+ * @returns the updated user and the created account, if present in the refreshed user
1074
1099
  */
1075
1100
  add(opts: {
1076
1101
  chainType: ChainType;
@@ -1079,6 +1104,7 @@ declare class EmbeddedWalletApi {
1079
1104
  entropyIdVerifier: EntropyIdVerifier;
1080
1105
  }): Promise<{
1081
1106
  user: import("@privy-io/api-types").User;
1107
+ account: import("@privy-io/api-types").LinkedAccountEmbeddedWallet | undefined;
1082
1108
  }>;
1083
1109
  getBitcoinProvider({ wallet, entropyId, entropyIdVerifier, recoveryPassword, recoveryAccessToken, recoverySecretOverride }: {
1084
1110
  wallet: LinkedAccountBitcoinSegwitEmbeddedWallet | LinkedAccountBitcoinTaprootEmbeddedWallet;
@@ -1155,7 +1181,11 @@ declare class EmbeddedWalletApi {
1155
1181
  * @param password Recovery password for the embedded wallet
1156
1182
  * @returns EmbeddedWalletProvider implementing EIP1193Provider
1157
1183
  */
1158
- getProvider(wallet: LinkedAccountEthereumEmbeddedWallet, recoveryPassword?: string, recoveryAccessToken?: string, recoverySecretOverride?: string, recoveryKey?: string): Promise<EmbeddedWalletProvider>;
1184
+ getProvider(wallet: LinkedAccountEthereumEmbeddedWallet, recoveryPassword?: string, recoveryAccessToken?: string, recoverySecretOverride?: string, recoveryKey?: string,
1185
+ /** TEE only: return the updated user after enrollment, or reject to fail. */
1186
+ onMfaEnrollmentRequired?: OnMfaEnrollmentRequired,
1187
+ /** TEE only: fulfill after verification, or reject to fail. */
1188
+ onMfaVerificationRequired?: OnMfaVerificationRequired): Promise<EmbeddedWalletProvider>;
1159
1189
  /**
1160
1190
  * Load this user's embedded ethereum wallet through the given entropy.
1161
1191
  * If the wallet has never been used on this device recover.
@@ -1165,7 +1195,7 @@ declare class EmbeddedWalletApi {
1165
1195
  *
1166
1196
  * @returns EmbeddedWalletProvider implementing EIP1193Provider
1167
1197
  */
1168
- getEthereumProvider({ wallet, entropyId, entropyIdVerifier, recoveryPassword, recoveryAccessToken, recoverySecretOverride, recoveryKey, onNeedsRecovery }: {
1198
+ getEthereumProvider({ wallet, entropyId, entropyIdVerifier, recoveryPassword, recoveryAccessToken, recoverySecretOverride, recoveryKey, onNeedsRecovery, onMfaEnrollmentRequired, onMfaVerificationRequired }: {
1169
1199
  wallet: LinkedAccountEthereumEmbeddedWallet;
1170
1200
  entropyId: string;
1171
1201
  entropyIdVerifier: EntropyIdVerifier;
@@ -1186,6 +1216,10 @@ declare class EmbeddedWalletApi {
1186
1216
  * })
1187
1217
  */
1188
1218
  onNeedsRecovery?: OnNeedsRecovery;
1219
+ /** TEE only: return the updated user after enrollment, or reject to fail. */
1220
+ onMfaEnrollmentRequired?: OnMfaEnrollmentRequired;
1221
+ /** TEE only: fulfill after verification, or reject to fail. */
1222
+ onMfaVerificationRequired?: OnMfaVerificationRequired;
1189
1223
  }): Promise<EmbeddedWalletProvider>;
1190
1224
  /**
1191
1225
  * Retrieve this users embedded Solana wallet.
@@ -1209,7 +1243,11 @@ declare class EmbeddedWalletApi {
1209
1243
  * },
1210
1244
  * })
1211
1245
  */
1212
- onNeedsRecovery?: OnNeedsRecovery): Promise<EmbeddedSolanaWalletProvider>;
1246
+ onNeedsRecovery?: OnNeedsRecovery,
1247
+ /** TEE only: return the updated user after enrollment, or reject to fail. */
1248
+ onMfaEnrollmentRequired?: OnMfaEnrollmentRequired,
1249
+ /** TEE only: fulfill after verification, or reject to fail. */
1250
+ onMfaVerificationRequired?: OnMfaVerificationRequired): Promise<EmbeddedSolanaWalletProvider>;
1213
1251
  /**
1214
1252
  * Add or change the recovery method used to recover an embedded wallet.
1215
1253
  *
@@ -3651,6 +3689,83 @@ declare const buildRecentMonths: ({ cardCreatedAt, environment, now }: {
3651
3689
  now?: Date;
3652
3690
  }) => StatementMonth[];
3653
3691
  //#endregion
3692
+ //#region src/cards/card-face-layout.d.ts
3693
+ /**
3694
+ * Card face layout shared by every surface that draws a Privy card: the react-auth card face, the
3695
+ * Expo card face, and the Visa card art PNG. Card art (logo, Visa lockup, edge inset) is given in
3696
+ * millimetres of the physical card, so it scales exactly with the card's width. Text scales with
3697
+ * the width too, clamped between a minimum and a maximum so it stays readable.
3698
+ */
3699
+ /** ISO/IEC 7810 ID-1, the physical card every surface is scaled from. */
3700
+ declare const CARD_WIDTH_MM = 85.6;
3701
+ declare const CARD_HEIGHT_MM = 53.98;
3702
+ /**
3703
+ * Visa Brand Mark with Debit Identifier, lower-right placement. The same values the Visa card art
3704
+ * PNG and the react-auth card face used before this module.
3705
+ */
3706
+ declare const VISA_BRAND_MARK_WIDTH_MM = 18.872;
3707
+ declare const VISA_BRAND_MARK_HEIGHT_MM = 6.095;
3708
+ declare const VISA_BRAND_MARK_EDGE_CLEARANCE_MM = 3;
3709
+ declare const DEBIT_IDENTIFIER_GAP_MM = 3;
3710
+ declare const DEBIT_IDENTIFIER_MIN_SIZE_PT = 11;
3711
+ /**
3712
+ * Logo height as a fraction of card height: 7.6mm, taller than the 6.095mm Visa Brand Mark, which
3713
+ * Visa requires of the issuer logo.
3714
+ */
3715
+ declare const LOGO_HEIGHT_FRACTION = 0.14;
3716
+ /**
3717
+ * Brightness (0–255) at or above which a card color counts as light and gets a dark foreground and
3718
+ * Visa lockup. Matches tinycolor's `isLight`.
3719
+ */
3720
+ declare const LIGHT_CARD_BRIGHTNESS_CUTOFF = 128;
3721
+ /**
3722
+ * Card width at which text is the react-auth card face's fixed size before this module (16px
3723
+ * number, 14px values, 10px labels). Narrower cards keep that size.
3724
+ */
3725
+ declare const CARD_FACE_TEXT_REFERENCE_WIDTH_PX = 360;
3726
+ type CardFaceTextRole = 'cardNumber' | 'fieldValue' | 'fieldLabel';
3727
+ /**
3728
+ * Font size per text role: `widthFraction` of the card's width, clamped to `[minPx, maxPx]`. In CSS
3729
+ * that is `clamp(minPx, widthFraction * 100cqw, maxPx)`.
3730
+ */
3731
+ declare const CARD_FACE_TEXT_SIZES: Record<CardFaceTextRole, {
3732
+ widthFraction: number;
3733
+ minPx: number;
3734
+ maxPx: number;
3735
+ }>;
3736
+ /**
3737
+ * Logo size on a card of the given pixel size: {@link LOGO_HEIGHT_FRACTION} of the card height at
3738
+ * the logo's own aspect ratio. Only a logo too wide to fit between the card edges at that height
3739
+ * (wider than ~10:1) is scaled down to fit. A logo whose size isn't known yet is a square.
3740
+ */
3741
+ declare const fitLogoSize: (logo: {
3742
+ width: number;
3743
+ height: number;
3744
+ } | null, card: {
3745
+ widthPx: number;
3746
+ heightPx: number;
3747
+ }) => {
3748
+ widthPx: number;
3749
+ heightPx: number;
3750
+ };
3751
+ type CardFaceLayout = {
3752
+ widthPx: number;
3753
+ heightPx: number;
3754
+ /** Inset of the logo and the Visa lockup from the card edges. */
3755
+ edgeInsetPx: number;
3756
+ logoHeightPx: number;
3757
+ visaMarkWidthPx: number;
3758
+ visaMarkHeightPx: number;
3759
+ debitSizePx: number;
3760
+ debitGapPx: number;
3761
+ textSizePx: Record<CardFaceTextRole, number>;
3762
+ };
3763
+ /**
3764
+ * Every card face size for a card `widthPx` wide, in the caller's unit (CSS px, points, or art
3765
+ * pixels). Card art scales exactly with the width; text is clamped by {@link CARD_FACE_TEXT_SIZES}.
3766
+ */
3767
+ declare const getCardFaceLayout: (widthPx: number) => CardFaceLayout;
3768
+ //#endregion
3654
3769
  //#region src/cards/card-funding-source.d.ts
3655
3770
  /**
3656
3771
  * Funds a card can spend: its wallet's stablecoin, or its shares in an Earn vault. `selected` marks
@@ -4298,4 +4413,4 @@ declare const THIRDWEB: "thirdweb";
4298
4413
  /** @deprecated {@link SmartWalletType} is a well-typed union, use the `'nexus'` literal instead */
4299
4414
  declare const NEXUS: "nexus";
4300
4415
  //#endregion
4301
- export { ALL_WALLET_CLIENT_TYPES, BICONOMY, COINBASE_SMART_WALLET, type CardFundingSource, type CardResponse, type CardSignUp, type CardSignUpEvmWallet, type CardSignUpHostedPage, type CardSignUpPlatform, type CardSignUpSpendApproval, type CardSignUpStep, type CardTransactionBadge, type CardTransactionRow, type CardsConfig, Cluster, type CoinbaseAssetId, CoinbaseWalletClientType, type CompletedDepositAddressOrder, ConnectedStandardSolanaWallet, ConnectorType, CookieWriteBehavior, type CountryCallingCode, type CountryCode, type CreateCryptoDepositAccountInput, type CreateCryptoDepositAccountResponse, type CreateSiwsMessageOpts, type CryptoDepositAccountConfig, type CryptoDepositAccountQuote, type CryptoDepositAccountQuoteInput, type CryptoDepositAccountSearchResult, type CryptoDepositAddressRoute, type CryptoDepositAddressStrategy, type CryptoDepositAsset, type CryptoDepositAssetFilter, DATA_SUFFIX_PLUGIN_ID, type DataSuffixPlugin, type DepositAddressOrder, type DepositAddressPollingResult, type DepositAddressQuote, type DepositConfig, type DevSpendApprovalTarget, type EIP1193Provider, type EmbeddedBitcoinWalletProvider, EmbeddedProviderError, EmbeddedWalletClientType, type EmbeddedWalletConfig, type EmbeddedWalletRecoveryOptions, type EntropyIdVerifier, type ErrorMessageMap, type EvmDevSpendApprovalTarget, ExternalWallet, ExternalWalletMetadata, FundingMethod, FundingProvider, type GenerateAuthorizationSignatureInput, type GenerateAuthorizationSignatureOutput, type GenerateDepositAddressInput, type GetCryptoDepositAccountNextOrderInput, type GetCryptoDepositAccountNextOrderResponse, type GetCryptoDepositAccountOrderInput, type GetCryptoDepositAccountOrderResponse, type GetDepositInput, IdentifierString, InMemoryCache, type IncompleteDepositAddressOrder, InjectedWalletClientType, KERNEL, LIGHT_ACCOUNT, LIST_CARDS_MAX_LIMIT, LocalStorage, type LogLevel, type Logger, type MfaMethod, type MfaPromise, type MfaSubmitArgs, type MfaSubmitPromise, MoonpayApiError, type MoonpayTransactionStatus, type MoonpayTransactionStatusResponse, NEXUS, type OAuthProviderID, OAuthProviderType, type OnNeedsRecovery, type ParsedSolanaOffchainMessage, PaymentOption, type PollOptions, type PollResult, type PreparedTransactionRequest, PrivyApiError, PrivyClientError, PrivyConnectorError, PrivyEmbeddedSolanaWalletProvider, PrivyEmbeddedWalletErrorCode, PrivyEmbeddedWalletProvider, type PrivyPlugin, PrivyProviderRpcError, ProviderErrors, type Quantity, type ResolveRefundAddressError, type ResolveRefundAddressResult, SAFE, SUPPORTED_CONNECTOR_TYPES, type SendSpendApproval, type SessionSignerInput, type SetRecoveryInput, SmartWalletType, SolanaClient, SolanaCluster, SolanaSignAndSendTransactionInput, SolanaSignAndSendTransactionMode, SolanaSignAndSendTransactionOptions, SolanaSignAndSendTransactionOutput, SolanaSignMessageInput, SolanaSignMessageOutput, SolanaSignTransactionInput, SolanaSignTransactionOptions, SolanaSignTransactionOutput, type SolanaSpendApprovalChain, SolanaStandardWallet, SolanaTransactionCommitment, SolanaUsdcAddressMap, type SpendApprovalConfig, type SpendApprovalProvider, type StatementMonth, type Storage, type SvmDevSpendApprovalTarget, THIRDWEB, type TelegramAuthInput, type TelegramAuthResult, type TelegramWebAppData, UnknownWalletClientType, type UnsignedTransactionRequest, type UnsignedTransactionRequestWithChainId, type UpdateWalletInput, UsdcAddressMap, type WaitForCompletionInput, type WaitForDepositInput, WalletBranding, WalletClientType, WalletConnectWalletClientType, acceptCardConsents, addSessionSigners, approveSpend, buildRecentMonths, buildSolanaOffchainMessage, chainToMoonpayCurrency, chooseTempoEarnVault, cookies, countryCodesAndNumbers, create, createCard, createCardSignUp, createDataSuffixPlugin, createErrorFormatter, createSiwsMessage, index_d_exports as crossApp, index_d_exports$1 as cryptoDepositAccount, Privy as default, index_d_exports$2 as delegatedActions, index_d_exports$3 as depositAddress, deriveSolanaApplicationDomain, downloadCardStatement, errorIndicatesMaxMfaRetries, errorIndicatesMfaCanceled, errorIndicatesMfaRateLimit, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, errorIndicatesRecoveryIsNeeded, formatLamportsAmount, formatPhoneNumber, formatSignedTransactionAmount, formatTokenAmount, formatTransactionDate, formatUsdAmount, formatWalletAddress, formatWeiAmount, fundingMethodToMoonpayPaymentMethod, generateAuthorizationSignature, generateWalletIdempotencyKey, getAllUserEmbeddedBitcoinWallets, getAllUserEmbeddedEthereumWallets, getAllUserEmbeddedSolanaWallets, getCardAssetDisplayName, getCardById, getCardCustomer, getCardDisclosure, getCardEphemeralKey, getCardsConfig, getCoinbaseOnRampUrl, getCountryCallingCode, getDataSuffixPlugin, getEntropyDetailsFromAccount, getEntropyDetailsFromUser, getFiatOnrampProviderBrand, getFiatOnrampProviderId, getIsTokenUsdc, getJsonRpcEndpointFromChain, getOrCreateCardCustomer, getPhoneCountryCodeAndNumber, getPlaceholderPhoneNumber, getSolanaClusterDisplayName, getSolanaRpcEndpointForCluster, getSolanaUsdcMintAddressForCluster, getSpendApproval, getTransactionBadge, getUserEmbeddedEthereumWallet, getUserEmbeddedSolanaWallet, getUserEmbeddedWallet, getUserSmartWallet, getWallet, getWalletAction, handleSignUpClose, isCardExpired, isEmbeddedWalletAccount, isExtensionContext, isSupportedChainIdForCoinbaseOnramp, isSupportedChainIdForMoonpay, isUnifiedWallet, lastFourDigits, listCardTransactions, listCards, listWalletActions, parseSolanaOffchainMessage, phoneNumberTypingFormatter, poll, rawSign, readSpendAllowance, readTempoEarnVault, removeSessionSigners, replaceCard, rpc, shouldWriteSessionCookies, throwIfInvalidRecoveryUpgradePath, toCoinbaseAssetId, toCoinbaseBlockchainFromChainId, toE164, toObjectKeys, toTransactionRow, toWalletApiUnsignedEthTransaction, transfer, updateCardPin, updateCardStatus, updateWallet, validatePhoneNumber };
4416
+ export { ALL_WALLET_CLIENT_TYPES, BICONOMY, CARD_FACE_TEXT_REFERENCE_WIDTH_PX, CARD_FACE_TEXT_SIZES, CARD_HEIGHT_MM, CARD_WIDTH_MM, COINBASE_SMART_WALLET, type CardFaceLayout, type CardFaceTextRole, type CardFundingSource, type CardResponse, type CardSignUp, type CardSignUpEvmWallet, type CardSignUpHostedPage, type CardSignUpPlatform, type CardSignUpSpendApproval, type CardSignUpStep, type CardTransactionBadge, type CardTransactionRow, type CardsConfig, Cluster, type CoinbaseAssetId, CoinbaseWalletClientType, type CompletedDepositAddressOrder, ConnectedStandardSolanaWallet, ConnectorType, CookieWriteBehavior, type CountryCallingCode, type CountryCode, type CreateCryptoDepositAccountInput, type CreateCryptoDepositAccountResponse, type CreateSiwsMessageOpts, type CryptoDepositAccountConfig, type CryptoDepositAccountQuote, type CryptoDepositAccountQuoteInput, type CryptoDepositAccountSearchResult, type CryptoDepositAddressRoute, type CryptoDepositAddressStrategy, type CryptoDepositAsset, type CryptoDepositAssetFilter, DATA_SUFFIX_PLUGIN_ID, DEBIT_IDENTIFIER_GAP_MM, DEBIT_IDENTIFIER_MIN_SIZE_PT, type DataSuffixPlugin, type DepositAddressOrder, type DepositAddressPollingResult, type DepositAddressQuote, type DepositConfig, type DevSpendApprovalTarget, type EIP1193Provider, type EmbeddedBitcoinWalletProvider, EmbeddedProviderError, EmbeddedWalletClientType, type EmbeddedWalletConfig, type EmbeddedWalletRecoveryOptions, type EntropyIdVerifier, type ErrorMessageMap, type EvmDevSpendApprovalTarget, ExternalWallet, ExternalWalletMetadata, FundingMethod, FundingProvider, type GenerateAuthorizationSignatureInput, type GenerateAuthorizationSignatureOutput, type GenerateDepositAddressInput, type GetCryptoDepositAccountNextOrderInput, type GetCryptoDepositAccountNextOrderResponse, type GetCryptoDepositAccountOrderInput, type GetCryptoDepositAccountOrderResponse, type GetDepositInput, IdentifierString, InMemoryCache, type IncompleteDepositAddressOrder, InjectedWalletClientType, KERNEL, LIGHT_ACCOUNT, LIGHT_CARD_BRIGHTNESS_CUTOFF, LIST_CARDS_MAX_LIMIT, LOGO_HEIGHT_FRACTION, LocalStorage, type LogLevel, type Logger, type MfaMethod, type MfaPromise, type MfaSubmitArgs, type MfaSubmitPromise, MoonpayApiError, type MoonpayTransactionStatus, type MoonpayTransactionStatusResponse, NEXUS, type OAuthProviderID, OAuthProviderType, type OnMfaEnrollmentRequired, type OnMfaVerificationRequired, type OnNeedsRecovery, type ParsedSolanaOffchainMessage, PaymentOption, type PollOptions, type PollResult, type PreparedTransactionRequest, PrivyApiError, PrivyClientError, PrivyConnectorError, PrivyEmbeddedSolanaWalletProvider, PrivyEmbeddedWalletErrorCode, PrivyEmbeddedWalletProvider, type PrivyPlugin, PrivyProviderRpcError, ProviderErrors, type Quantity, type ResolveRefundAddressError, type ResolveRefundAddressResult, SAFE, SUPPORTED_CONNECTOR_TYPES, type SendSpendApproval, type SessionSignerInput, type SetRecoveryInput, SmartWalletType, SolanaClient, SolanaCluster, SolanaSignAndSendTransactionInput, SolanaSignAndSendTransactionMode, SolanaSignAndSendTransactionOptions, SolanaSignAndSendTransactionOutput, SolanaSignMessageInput, SolanaSignMessageOutput, SolanaSignTransactionInput, SolanaSignTransactionOptions, SolanaSignTransactionOutput, type SolanaSpendApprovalChain, SolanaStandardWallet, SolanaTransactionCommitment, SolanaUsdcAddressMap, type SpendApprovalConfig, type SpendApprovalProvider, type StatementMonth, type Storage, type SvmDevSpendApprovalTarget, THIRDWEB, type TeeWalletMfaCallbacks, type TelegramAuthInput, type TelegramAuthResult, type TelegramWebAppData, UnknownWalletClientType, type UnsignedTransactionRequest, type UnsignedTransactionRequestWithChainId, type UpdateWalletInput, UsdcAddressMap, VISA_BRAND_MARK_EDGE_CLEARANCE_MM, VISA_BRAND_MARK_HEIGHT_MM, VISA_BRAND_MARK_WIDTH_MM, type WaitForCompletionInput, type WaitForDepositInput, WalletBranding, WalletClientType, WalletConnectWalletClientType, acceptCardConsents, addSessionSigners, approveSpend, buildRecentMonths, buildSolanaOffchainMessage, chainToMoonpayCurrency, chooseTempoEarnVault, cookies, countryCodesAndNumbers, create, createCard, createCardSignUp, createDataSuffixPlugin, createErrorFormatter, createSiwsMessage, index_d_exports as crossApp, index_d_exports$1 as cryptoDepositAccount, Privy as default, index_d_exports$2 as delegatedActions, index_d_exports$3 as depositAddress, deriveSolanaApplicationDomain, downloadCardStatement, errorIndicatesMaxMfaRetries, errorIndicatesMfaCanceled, errorIndicatesMfaRateLimit, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, errorIndicatesRecoveryIsNeeded, fitLogoSize, formatLamportsAmount, formatPhoneNumber, formatSignedTransactionAmount, formatTokenAmount, formatTransactionDate, formatUsdAmount, formatWalletAddress, formatWeiAmount, fundingMethodToMoonpayPaymentMethod, generateAuthorizationSignature, generateWalletIdempotencyKey, getAllUserEmbeddedBitcoinWallets, getAllUserEmbeddedEthereumWallets, getAllUserEmbeddedSolanaWallets, getCardAssetDisplayName, getCardById, getCardCustomer, getCardDisclosure, getCardEphemeralKey, getCardFaceLayout, getCardsConfig, getCoinbaseOnRampUrl, getCountryCallingCode, getDataSuffixPlugin, getEntropyDetailsFromAccount, getEntropyDetailsFromUser, getFiatOnrampProviderBrand, getFiatOnrampProviderId, getIsTokenUsdc, getJsonRpcEndpointFromChain, getOrCreateCardCustomer, getPhoneCountryCodeAndNumber, getPlaceholderPhoneNumber, getSolanaClusterDisplayName, getSolanaRpcEndpointForCluster, getSolanaUsdcMintAddressForCluster, getSpendApproval, getTransactionBadge, getUserEmbeddedEthereumWallet, getUserEmbeddedSolanaWallet, getUserEmbeddedWallet, getUserSmartWallet, getWallet, getWalletAction, handleSignUpClose, isCardExpired, isEmbeddedWalletAccount, isExtensionContext, isSupportedChainIdForCoinbaseOnramp, isSupportedChainIdForMoonpay, isUnifiedWallet, lastFourDigits, listCardTransactions, listCards, listWalletActions, parseSolanaOffchainMessage, phoneNumberTypingFormatter, poll, rawSign, readSpendAllowance, readTempoEarnVault, removeSessionSigners, replaceCard, rpc, shouldWriteSessionCookies, throwIfInvalidRecoveryUpgradePath, toCoinbaseAssetId, toCoinbaseBlockchainFromChainId, toE164, toObjectKeys, toTransactionRow, toWalletApiUnsignedEthTransaction, transfer, updateCardPin, updateCardStatus, updateWallet, validatePhoneNumber };
@@ -350,7 +350,10 @@ declare class PrivyApiError extends Error {
350
350
  declare class PrivyClientError extends Error {
351
351
  error: string;
352
352
  code: ClientErrorCode;
353
- constructor({ error, code }: ErrorBody<ClientErrorCode>);
353
+ cause?: unknown;
354
+ constructor({ error, code, cause }: ErrorBody<ClientErrorCode> & {
355
+ cause?: unknown;
356
+ });
354
357
  }
355
358
  declare class MoonpayApiError extends Error {
356
359
  error: string;
@@ -1032,6 +1035,28 @@ declare class EmbeddedBitcoinWalletProvider {
1032
1035
  toJSON(): string;
1033
1036
  }
1034
1037
  //#endregion
1038
+ //#region src/embedded/with-mfa-error-handling.d.ts
1039
+ /** Return the updated user after enrollment completes. */
1040
+ type OnMfaEnrollmentRequired = (opts: {
1041
+ error: PrivyApiError;
1042
+ }) => Promise<{
1043
+ user: User;
1044
+ }>;
1045
+ /** Fulfill after MFA verification succeeds, or reject to fail the wallet operation. */
1046
+ type OnMfaVerificationRequired = (opts: {
1047
+ error: PrivyApiError;
1048
+ }) => Promise<void | Record<string, never>>;
1049
+ /**
1050
+ * Optional MFA handlers for TEE wallets; on-device wallets do not use these callbacks.
1051
+ * Each requirement is handled once per operation.
1052
+ */
1053
+ type TeeWalletMfaCallbacks = {
1054
+ /** Return the enrolled user when the Wallet API requires enrollment. */
1055
+ onMfaEnrollmentRequired?: OnMfaEnrollmentRequired;
1056
+ /** Complete verification when the Wallet API requires MFA. */
1057
+ onMfaVerificationRequired?: OnMfaVerificationRequired;
1058
+ };
1059
+ //#endregion
1035
1060
  //#region src/client/EmbeddedWalletApi.d.ts
1036
1061
  /** Options for creating the Solana embedded wallet */
1037
1062
  type CreateSolanaOpts = {
@@ -1070,7 +1095,7 @@ declare class EmbeddedWalletApi {
1070
1095
  * @param o.entropyId the key used to look up the existing wallet
1071
1096
  * @param o.entropyIdVerifier the method used to verify the entropy ID
1072
1097
  *
1073
- * @returns the updated user
1098
+ * @returns the updated user and the created account, if present in the refreshed user
1074
1099
  */
1075
1100
  add(opts: {
1076
1101
  chainType: ChainType;
@@ -1079,6 +1104,7 @@ declare class EmbeddedWalletApi {
1079
1104
  entropyIdVerifier: EntropyIdVerifier;
1080
1105
  }): Promise<{
1081
1106
  user: import("@privy-io/api-types").User;
1107
+ account: import("@privy-io/api-types").LinkedAccountEmbeddedWallet | undefined;
1082
1108
  }>;
1083
1109
  getBitcoinProvider({ wallet, entropyId, entropyIdVerifier, recoveryPassword, recoveryAccessToken, recoverySecretOverride }: {
1084
1110
  wallet: LinkedAccountBitcoinSegwitEmbeddedWallet | LinkedAccountBitcoinTaprootEmbeddedWallet;
@@ -1155,7 +1181,11 @@ declare class EmbeddedWalletApi {
1155
1181
  * @param password Recovery password for the embedded wallet
1156
1182
  * @returns EmbeddedWalletProvider implementing EIP1193Provider
1157
1183
  */
1158
- getProvider(wallet: LinkedAccountEthereumEmbeddedWallet, recoveryPassword?: string, recoveryAccessToken?: string, recoverySecretOverride?: string, recoveryKey?: string): Promise<EmbeddedWalletProvider>;
1184
+ getProvider(wallet: LinkedAccountEthereumEmbeddedWallet, recoveryPassword?: string, recoveryAccessToken?: string, recoverySecretOverride?: string, recoveryKey?: string,
1185
+ /** TEE only: return the updated user after enrollment, or reject to fail. */
1186
+ onMfaEnrollmentRequired?: OnMfaEnrollmentRequired,
1187
+ /** TEE only: fulfill after verification, or reject to fail. */
1188
+ onMfaVerificationRequired?: OnMfaVerificationRequired): Promise<EmbeddedWalletProvider>;
1159
1189
  /**
1160
1190
  * Load this user's embedded ethereum wallet through the given entropy.
1161
1191
  * If the wallet has never been used on this device recover.
@@ -1165,7 +1195,7 @@ declare class EmbeddedWalletApi {
1165
1195
  *
1166
1196
  * @returns EmbeddedWalletProvider implementing EIP1193Provider
1167
1197
  */
1168
- getEthereumProvider({ wallet, entropyId, entropyIdVerifier, recoveryPassword, recoveryAccessToken, recoverySecretOverride, recoveryKey, onNeedsRecovery }: {
1198
+ getEthereumProvider({ wallet, entropyId, entropyIdVerifier, recoveryPassword, recoveryAccessToken, recoverySecretOverride, recoveryKey, onNeedsRecovery, onMfaEnrollmentRequired, onMfaVerificationRequired }: {
1169
1199
  wallet: LinkedAccountEthereumEmbeddedWallet;
1170
1200
  entropyId: string;
1171
1201
  entropyIdVerifier: EntropyIdVerifier;
@@ -1186,6 +1216,10 @@ declare class EmbeddedWalletApi {
1186
1216
  * })
1187
1217
  */
1188
1218
  onNeedsRecovery?: OnNeedsRecovery;
1219
+ /** TEE only: return the updated user after enrollment, or reject to fail. */
1220
+ onMfaEnrollmentRequired?: OnMfaEnrollmentRequired;
1221
+ /** TEE only: fulfill after verification, or reject to fail. */
1222
+ onMfaVerificationRequired?: OnMfaVerificationRequired;
1189
1223
  }): Promise<EmbeddedWalletProvider>;
1190
1224
  /**
1191
1225
  * Retrieve this users embedded Solana wallet.
@@ -1209,7 +1243,11 @@ declare class EmbeddedWalletApi {
1209
1243
  * },
1210
1244
  * })
1211
1245
  */
1212
- onNeedsRecovery?: OnNeedsRecovery): Promise<EmbeddedSolanaWalletProvider>;
1246
+ onNeedsRecovery?: OnNeedsRecovery,
1247
+ /** TEE only: return the updated user after enrollment, or reject to fail. */
1248
+ onMfaEnrollmentRequired?: OnMfaEnrollmentRequired,
1249
+ /** TEE only: fulfill after verification, or reject to fail. */
1250
+ onMfaVerificationRequired?: OnMfaVerificationRequired): Promise<EmbeddedSolanaWalletProvider>;
1213
1251
  /**
1214
1252
  * Add or change the recovery method used to recover an embedded wallet.
1215
1253
  *
@@ -3651,6 +3689,83 @@ declare const buildRecentMonths: ({ cardCreatedAt, environment, now }: {
3651
3689
  now?: Date;
3652
3690
  }) => StatementMonth[];
3653
3691
  //#endregion
3692
+ //#region src/cards/card-face-layout.d.ts
3693
+ /**
3694
+ * Card face layout shared by every surface that draws a Privy card: the react-auth card face, the
3695
+ * Expo card face, and the Visa card art PNG. Card art (logo, Visa lockup, edge inset) is given in
3696
+ * millimetres of the physical card, so it scales exactly with the card's width. Text scales with
3697
+ * the width too, clamped between a minimum and a maximum so it stays readable.
3698
+ */
3699
+ /** ISO/IEC 7810 ID-1, the physical card every surface is scaled from. */
3700
+ declare const CARD_WIDTH_MM = 85.6;
3701
+ declare const CARD_HEIGHT_MM = 53.98;
3702
+ /**
3703
+ * Visa Brand Mark with Debit Identifier, lower-right placement. The same values the Visa card art
3704
+ * PNG and the react-auth card face used before this module.
3705
+ */
3706
+ declare const VISA_BRAND_MARK_WIDTH_MM = 18.872;
3707
+ declare const VISA_BRAND_MARK_HEIGHT_MM = 6.095;
3708
+ declare const VISA_BRAND_MARK_EDGE_CLEARANCE_MM = 3;
3709
+ declare const DEBIT_IDENTIFIER_GAP_MM = 3;
3710
+ declare const DEBIT_IDENTIFIER_MIN_SIZE_PT = 11;
3711
+ /**
3712
+ * Logo height as a fraction of card height: 7.6mm, taller than the 6.095mm Visa Brand Mark, which
3713
+ * Visa requires of the issuer logo.
3714
+ */
3715
+ declare const LOGO_HEIGHT_FRACTION = 0.14;
3716
+ /**
3717
+ * Brightness (0–255) at or above which a card color counts as light and gets a dark foreground and
3718
+ * Visa lockup. Matches tinycolor's `isLight`.
3719
+ */
3720
+ declare const LIGHT_CARD_BRIGHTNESS_CUTOFF = 128;
3721
+ /**
3722
+ * Card width at which text is the react-auth card face's fixed size before this module (16px
3723
+ * number, 14px values, 10px labels). Narrower cards keep that size.
3724
+ */
3725
+ declare const CARD_FACE_TEXT_REFERENCE_WIDTH_PX = 360;
3726
+ type CardFaceTextRole = 'cardNumber' | 'fieldValue' | 'fieldLabel';
3727
+ /**
3728
+ * Font size per text role: `widthFraction` of the card's width, clamped to `[minPx, maxPx]`. In CSS
3729
+ * that is `clamp(minPx, widthFraction * 100cqw, maxPx)`.
3730
+ */
3731
+ declare const CARD_FACE_TEXT_SIZES: Record<CardFaceTextRole, {
3732
+ widthFraction: number;
3733
+ minPx: number;
3734
+ maxPx: number;
3735
+ }>;
3736
+ /**
3737
+ * Logo size on a card of the given pixel size: {@link LOGO_HEIGHT_FRACTION} of the card height at
3738
+ * the logo's own aspect ratio. Only a logo too wide to fit between the card edges at that height
3739
+ * (wider than ~10:1) is scaled down to fit. A logo whose size isn't known yet is a square.
3740
+ */
3741
+ declare const fitLogoSize: (logo: {
3742
+ width: number;
3743
+ height: number;
3744
+ } | null, card: {
3745
+ widthPx: number;
3746
+ heightPx: number;
3747
+ }) => {
3748
+ widthPx: number;
3749
+ heightPx: number;
3750
+ };
3751
+ type CardFaceLayout = {
3752
+ widthPx: number;
3753
+ heightPx: number;
3754
+ /** Inset of the logo and the Visa lockup from the card edges. */
3755
+ edgeInsetPx: number;
3756
+ logoHeightPx: number;
3757
+ visaMarkWidthPx: number;
3758
+ visaMarkHeightPx: number;
3759
+ debitSizePx: number;
3760
+ debitGapPx: number;
3761
+ textSizePx: Record<CardFaceTextRole, number>;
3762
+ };
3763
+ /**
3764
+ * Every card face size for a card `widthPx` wide, in the caller's unit (CSS px, points, or art
3765
+ * pixels). Card art scales exactly with the width; text is clamped by {@link CARD_FACE_TEXT_SIZES}.
3766
+ */
3767
+ declare const getCardFaceLayout: (widthPx: number) => CardFaceLayout;
3768
+ //#endregion
3654
3769
  //#region src/cards/card-funding-source.d.ts
3655
3770
  /**
3656
3771
  * Funds a card can spend: its wallet's stablecoin, or its shares in an Earn vault. `selected` marks
@@ -4298,4 +4413,4 @@ declare const THIRDWEB: "thirdweb";
4298
4413
  /** @deprecated {@link SmartWalletType} is a well-typed union, use the `'nexus'` literal instead */
4299
4414
  declare const NEXUS: "nexus";
4300
4415
  //#endregion
4301
- export { ALL_WALLET_CLIENT_TYPES, BICONOMY, COINBASE_SMART_WALLET, type CardFundingSource, type CardResponse, type CardSignUp, type CardSignUpEvmWallet, type CardSignUpHostedPage, type CardSignUpPlatform, type CardSignUpSpendApproval, type CardSignUpStep, type CardTransactionBadge, type CardTransactionRow, type CardsConfig, Cluster, type CoinbaseAssetId, CoinbaseWalletClientType, type CompletedDepositAddressOrder, ConnectedStandardSolanaWallet, ConnectorType, CookieWriteBehavior, type CountryCallingCode, type CountryCode, type CreateCryptoDepositAccountInput, type CreateCryptoDepositAccountResponse, type CreateSiwsMessageOpts, type CryptoDepositAccountConfig, type CryptoDepositAccountQuote, type CryptoDepositAccountQuoteInput, type CryptoDepositAccountSearchResult, type CryptoDepositAddressRoute, type CryptoDepositAddressStrategy, type CryptoDepositAsset, type CryptoDepositAssetFilter, DATA_SUFFIX_PLUGIN_ID, type DataSuffixPlugin, type DepositAddressOrder, type DepositAddressPollingResult, type DepositAddressQuote, type DepositConfig, type DevSpendApprovalTarget, type EIP1193Provider, type EmbeddedBitcoinWalletProvider, EmbeddedProviderError, EmbeddedWalletClientType, type EmbeddedWalletConfig, type EmbeddedWalletRecoveryOptions, type EntropyIdVerifier, type ErrorMessageMap, type EvmDevSpendApprovalTarget, ExternalWallet, ExternalWalletMetadata, FundingMethod, FundingProvider, type GenerateAuthorizationSignatureInput, type GenerateAuthorizationSignatureOutput, type GenerateDepositAddressInput, type GetCryptoDepositAccountNextOrderInput, type GetCryptoDepositAccountNextOrderResponse, type GetCryptoDepositAccountOrderInput, type GetCryptoDepositAccountOrderResponse, type GetDepositInput, IdentifierString, InMemoryCache, type IncompleteDepositAddressOrder, InjectedWalletClientType, KERNEL, LIGHT_ACCOUNT, LIST_CARDS_MAX_LIMIT, LocalStorage, type LogLevel, type Logger, type MfaMethod, type MfaPromise, type MfaSubmitArgs, type MfaSubmitPromise, MoonpayApiError, type MoonpayTransactionStatus, type MoonpayTransactionStatusResponse, NEXUS, type OAuthProviderID, OAuthProviderType, type OnNeedsRecovery, type ParsedSolanaOffchainMessage, PaymentOption, type PollOptions, type PollResult, type PreparedTransactionRequest, PrivyApiError, PrivyClientError, PrivyConnectorError, PrivyEmbeddedSolanaWalletProvider, PrivyEmbeddedWalletErrorCode, PrivyEmbeddedWalletProvider, type PrivyPlugin, PrivyProviderRpcError, ProviderErrors, type Quantity, type ResolveRefundAddressError, type ResolveRefundAddressResult, SAFE, SUPPORTED_CONNECTOR_TYPES, type SendSpendApproval, type SessionSignerInput, type SetRecoveryInput, SmartWalletType, SolanaClient, SolanaCluster, SolanaSignAndSendTransactionInput, SolanaSignAndSendTransactionMode, SolanaSignAndSendTransactionOptions, SolanaSignAndSendTransactionOutput, SolanaSignMessageInput, SolanaSignMessageOutput, SolanaSignTransactionInput, SolanaSignTransactionOptions, SolanaSignTransactionOutput, type SolanaSpendApprovalChain, SolanaStandardWallet, SolanaTransactionCommitment, SolanaUsdcAddressMap, type SpendApprovalConfig, type SpendApprovalProvider, type StatementMonth, type Storage, type SvmDevSpendApprovalTarget, THIRDWEB, type TelegramAuthInput, type TelegramAuthResult, type TelegramWebAppData, UnknownWalletClientType, type UnsignedTransactionRequest, type UnsignedTransactionRequestWithChainId, type UpdateWalletInput, UsdcAddressMap, type WaitForCompletionInput, type WaitForDepositInput, WalletBranding, WalletClientType, WalletConnectWalletClientType, acceptCardConsents, addSessionSigners, approveSpend, buildRecentMonths, buildSolanaOffchainMessage, chainToMoonpayCurrency, chooseTempoEarnVault, cookies, countryCodesAndNumbers, create, createCard, createCardSignUp, createDataSuffixPlugin, createErrorFormatter, createSiwsMessage, index_d_exports as crossApp, index_d_exports$1 as cryptoDepositAccount, Privy as default, index_d_exports$2 as delegatedActions, index_d_exports$3 as depositAddress, deriveSolanaApplicationDomain, downloadCardStatement, errorIndicatesMaxMfaRetries, errorIndicatesMfaCanceled, errorIndicatesMfaRateLimit, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, errorIndicatesRecoveryIsNeeded, formatLamportsAmount, formatPhoneNumber, formatSignedTransactionAmount, formatTokenAmount, formatTransactionDate, formatUsdAmount, formatWalletAddress, formatWeiAmount, fundingMethodToMoonpayPaymentMethod, generateAuthorizationSignature, generateWalletIdempotencyKey, getAllUserEmbeddedBitcoinWallets, getAllUserEmbeddedEthereumWallets, getAllUserEmbeddedSolanaWallets, getCardAssetDisplayName, getCardById, getCardCustomer, getCardDisclosure, getCardEphemeralKey, getCardsConfig, getCoinbaseOnRampUrl, getCountryCallingCode, getDataSuffixPlugin, getEntropyDetailsFromAccount, getEntropyDetailsFromUser, getFiatOnrampProviderBrand, getFiatOnrampProviderId, getIsTokenUsdc, getJsonRpcEndpointFromChain, getOrCreateCardCustomer, getPhoneCountryCodeAndNumber, getPlaceholderPhoneNumber, getSolanaClusterDisplayName, getSolanaRpcEndpointForCluster, getSolanaUsdcMintAddressForCluster, getSpendApproval, getTransactionBadge, getUserEmbeddedEthereumWallet, getUserEmbeddedSolanaWallet, getUserEmbeddedWallet, getUserSmartWallet, getWallet, getWalletAction, handleSignUpClose, isCardExpired, isEmbeddedWalletAccount, isExtensionContext, isSupportedChainIdForCoinbaseOnramp, isSupportedChainIdForMoonpay, isUnifiedWallet, lastFourDigits, listCardTransactions, listCards, listWalletActions, parseSolanaOffchainMessage, phoneNumberTypingFormatter, poll, rawSign, readSpendAllowance, readTempoEarnVault, removeSessionSigners, replaceCard, rpc, shouldWriteSessionCookies, throwIfInvalidRecoveryUpgradePath, toCoinbaseAssetId, toCoinbaseBlockchainFromChainId, toE164, toObjectKeys, toTransactionRow, toWalletApiUnsignedEthTransaction, transfer, updateCardPin, updateCardStatus, updateWallet, validatePhoneNumber };
4416
+ export { ALL_WALLET_CLIENT_TYPES, BICONOMY, CARD_FACE_TEXT_REFERENCE_WIDTH_PX, CARD_FACE_TEXT_SIZES, CARD_HEIGHT_MM, CARD_WIDTH_MM, COINBASE_SMART_WALLET, type CardFaceLayout, type CardFaceTextRole, type CardFundingSource, type CardResponse, type CardSignUp, type CardSignUpEvmWallet, type CardSignUpHostedPage, type CardSignUpPlatform, type CardSignUpSpendApproval, type CardSignUpStep, type CardTransactionBadge, type CardTransactionRow, type CardsConfig, Cluster, type CoinbaseAssetId, CoinbaseWalletClientType, type CompletedDepositAddressOrder, ConnectedStandardSolanaWallet, ConnectorType, CookieWriteBehavior, type CountryCallingCode, type CountryCode, type CreateCryptoDepositAccountInput, type CreateCryptoDepositAccountResponse, type CreateSiwsMessageOpts, type CryptoDepositAccountConfig, type CryptoDepositAccountQuote, type CryptoDepositAccountQuoteInput, type CryptoDepositAccountSearchResult, type CryptoDepositAddressRoute, type CryptoDepositAddressStrategy, type CryptoDepositAsset, type CryptoDepositAssetFilter, DATA_SUFFIX_PLUGIN_ID, DEBIT_IDENTIFIER_GAP_MM, DEBIT_IDENTIFIER_MIN_SIZE_PT, type DataSuffixPlugin, type DepositAddressOrder, type DepositAddressPollingResult, type DepositAddressQuote, type DepositConfig, type DevSpendApprovalTarget, type EIP1193Provider, type EmbeddedBitcoinWalletProvider, EmbeddedProviderError, EmbeddedWalletClientType, type EmbeddedWalletConfig, type EmbeddedWalletRecoveryOptions, type EntropyIdVerifier, type ErrorMessageMap, type EvmDevSpendApprovalTarget, ExternalWallet, ExternalWalletMetadata, FundingMethod, FundingProvider, type GenerateAuthorizationSignatureInput, type GenerateAuthorizationSignatureOutput, type GenerateDepositAddressInput, type GetCryptoDepositAccountNextOrderInput, type GetCryptoDepositAccountNextOrderResponse, type GetCryptoDepositAccountOrderInput, type GetCryptoDepositAccountOrderResponse, type GetDepositInput, IdentifierString, InMemoryCache, type IncompleteDepositAddressOrder, InjectedWalletClientType, KERNEL, LIGHT_ACCOUNT, LIGHT_CARD_BRIGHTNESS_CUTOFF, LIST_CARDS_MAX_LIMIT, LOGO_HEIGHT_FRACTION, LocalStorage, type LogLevel, type Logger, type MfaMethod, type MfaPromise, type MfaSubmitArgs, type MfaSubmitPromise, MoonpayApiError, type MoonpayTransactionStatus, type MoonpayTransactionStatusResponse, NEXUS, type OAuthProviderID, OAuthProviderType, type OnMfaEnrollmentRequired, type OnMfaVerificationRequired, type OnNeedsRecovery, type ParsedSolanaOffchainMessage, PaymentOption, type PollOptions, type PollResult, type PreparedTransactionRequest, PrivyApiError, PrivyClientError, PrivyConnectorError, PrivyEmbeddedSolanaWalletProvider, PrivyEmbeddedWalletErrorCode, PrivyEmbeddedWalletProvider, type PrivyPlugin, PrivyProviderRpcError, ProviderErrors, type Quantity, type ResolveRefundAddressError, type ResolveRefundAddressResult, SAFE, SUPPORTED_CONNECTOR_TYPES, type SendSpendApproval, type SessionSignerInput, type SetRecoveryInput, SmartWalletType, SolanaClient, SolanaCluster, SolanaSignAndSendTransactionInput, SolanaSignAndSendTransactionMode, SolanaSignAndSendTransactionOptions, SolanaSignAndSendTransactionOutput, SolanaSignMessageInput, SolanaSignMessageOutput, SolanaSignTransactionInput, SolanaSignTransactionOptions, SolanaSignTransactionOutput, type SolanaSpendApprovalChain, SolanaStandardWallet, SolanaTransactionCommitment, SolanaUsdcAddressMap, type SpendApprovalConfig, type SpendApprovalProvider, type StatementMonth, type Storage, type SvmDevSpendApprovalTarget, THIRDWEB, type TeeWalletMfaCallbacks, type TelegramAuthInput, type TelegramAuthResult, type TelegramWebAppData, UnknownWalletClientType, type UnsignedTransactionRequest, type UnsignedTransactionRequestWithChainId, type UpdateWalletInput, UsdcAddressMap, VISA_BRAND_MARK_EDGE_CLEARANCE_MM, VISA_BRAND_MARK_HEIGHT_MM, VISA_BRAND_MARK_WIDTH_MM, type WaitForCompletionInput, type WaitForDepositInput, WalletBranding, WalletClientType, WalletConnectWalletClientType, acceptCardConsents, addSessionSigners, approveSpend, buildRecentMonths, buildSolanaOffchainMessage, chainToMoonpayCurrency, chooseTempoEarnVault, cookies, countryCodesAndNumbers, create, createCard, createCardSignUp, createDataSuffixPlugin, createErrorFormatter, createSiwsMessage, index_d_exports as crossApp, index_d_exports$1 as cryptoDepositAccount, Privy as default, index_d_exports$2 as delegatedActions, index_d_exports$3 as depositAddress, deriveSolanaApplicationDomain, downloadCardStatement, errorIndicatesMaxMfaRetries, errorIndicatesMfaCanceled, errorIndicatesMfaRateLimit, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, errorIndicatesRecoveryIsNeeded, fitLogoSize, formatLamportsAmount, formatPhoneNumber, formatSignedTransactionAmount, formatTokenAmount, formatTransactionDate, formatUsdAmount, formatWalletAddress, formatWeiAmount, fundingMethodToMoonpayPaymentMethod, generateAuthorizationSignature, generateWalletIdempotencyKey, getAllUserEmbeddedBitcoinWallets, getAllUserEmbeddedEthereumWallets, getAllUserEmbeddedSolanaWallets, getCardAssetDisplayName, getCardById, getCardCustomer, getCardDisclosure, getCardEphemeralKey, getCardFaceLayout, getCardsConfig, getCoinbaseOnRampUrl, getCountryCallingCode, getDataSuffixPlugin, getEntropyDetailsFromAccount, getEntropyDetailsFromUser, getFiatOnrampProviderBrand, getFiatOnrampProviderId, getIsTokenUsdc, getJsonRpcEndpointFromChain, getOrCreateCardCustomer, getPhoneCountryCodeAndNumber, getPlaceholderPhoneNumber, getSolanaClusterDisplayName, getSolanaRpcEndpointForCluster, getSolanaUsdcMintAddressForCluster, getSpendApproval, getTransactionBadge, getUserEmbeddedEthereumWallet, getUserEmbeddedSolanaWallet, getUserEmbeddedWallet, getUserSmartWallet, getWallet, getWalletAction, handleSignUpClose, isCardExpired, isEmbeddedWalletAccount, isExtensionContext, isSupportedChainIdForCoinbaseOnramp, isSupportedChainIdForMoonpay, isUnifiedWallet, lastFourDigits, listCardTransactions, listCards, listWalletActions, parseSolanaOffchainMessage, phoneNumberTypingFormatter, poll, rawSign, readSpendAllowance, readTempoEarnVault, removeSessionSigners, replaceCard, rpc, shouldWriteSessionCookies, throwIfInvalidRecoveryUpgradePath, toCoinbaseAssetId, toCoinbaseBlockchainFromChainId, toE164, toObjectKeys, toTransactionRow, toWalletApiUnsignedEthTransaction, transfer, updateCardPin, updateCardStatus, updateWallet, validatePhoneNumber };