@privy-io/js-sdk-core 0.65.4 → 0.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/cjs/Error.js.map +1 -1
  2. package/dist/cjs/action/depositAddress/generate.js +2 -0
  3. package/dist/cjs/action/depositAddress/generate.js.map +1 -0
  4. package/dist/cjs/action/depositAddress/index.js +2 -0
  5. package/dist/cjs/action/depositAddress/index.js.map +1 -0
  6. package/dist/cjs/action/depositAddress/polling.js +2 -0
  7. package/dist/cjs/action/depositAddress/polling.js.map +1 -0
  8. package/dist/cjs/action/depositAddress/resolve-refund-address.js +2 -0
  9. package/dist/cjs/action/depositAddress/resolve-refund-address.js.map +1 -0
  10. package/dist/cjs/action/depositAddress/types.js +2 -0
  11. package/dist/cjs/action/depositAddress/types.js.map +1 -0
  12. package/dist/cjs/action/index.js +1 -1
  13. package/dist/cjs/client/PrivyInternal.js +1 -1
  14. package/dist/cjs/client/mfa/MfaApi.js +1 -1
  15. package/dist/cjs/client/mfa/MfaApi.js.map +1 -1
  16. package/dist/cjs/embedded/EmbeddedWalletProxy.js +1 -1
  17. package/dist/cjs/embedded/EmbeddedWalletProxy.js.map +1 -1
  18. package/dist/cjs/embedded/stack/walletRpc.js +1 -1
  19. package/dist/cjs/embedded/types.js.map +1 -1
  20. package/dist/cjs/index--nYkyGeH.js +2 -0
  21. package/dist/cjs/index--nYkyGeH.js.map +1 -0
  22. package/dist/cjs/index.js +1 -1
  23. package/dist/cjs/index.js.map +1 -1
  24. package/dist/cjs/wallet-api/raw-sign.js +1 -1
  25. package/dist/cjs/wallet-api/raw-sign.js.map +1 -1
  26. package/dist/cjs/wallet-api/rpc.js +1 -1
  27. package/dist/cjs/wallet-api/rpc.js.map +1 -1
  28. package/dist/dts/index.d.mts +193 -37
  29. package/dist/dts/index.d.ts +193 -37
  30. package/dist/esm/Error.mjs.map +1 -1
  31. package/dist/esm/action/depositAddress/generate.mjs +2 -0
  32. package/dist/esm/action/depositAddress/generate.mjs.map +1 -0
  33. package/dist/esm/action/depositAddress/index.mjs +2 -0
  34. package/dist/esm/action/depositAddress/index.mjs.map +1 -0
  35. package/dist/esm/action/depositAddress/polling.mjs +2 -0
  36. package/dist/esm/action/depositAddress/polling.mjs.map +1 -0
  37. package/dist/esm/action/depositAddress/resolve-refund-address.mjs +2 -0
  38. package/dist/esm/action/depositAddress/resolve-refund-address.mjs.map +1 -0
  39. package/dist/esm/action/depositAddress/types.mjs +2 -0
  40. package/dist/esm/action/depositAddress/types.mjs.map +1 -0
  41. package/dist/esm/action/index.mjs +1 -1
  42. package/dist/esm/client/PrivyInternal.mjs +1 -1
  43. package/dist/esm/client/mfa/MfaApi.mjs +1 -1
  44. package/dist/esm/client/mfa/MfaApi.mjs.map +1 -1
  45. package/dist/esm/embedded/EmbeddedWalletProxy.mjs +1 -1
  46. package/dist/esm/embedded/EmbeddedWalletProxy.mjs.map +1 -1
  47. package/dist/esm/embedded/stack/walletRpc.mjs +1 -1
  48. package/dist/esm/embedded/types.mjs.map +1 -1
  49. package/dist/esm/index-jTjLf3Z-.mjs +2 -0
  50. package/dist/esm/index-jTjLf3Z-.mjs.map +1 -0
  51. package/dist/esm/index.mjs +1 -1
  52. package/dist/esm/index.mjs.map +1 -1
  53. package/dist/esm/wallet-api/raw-sign.mjs +1 -1
  54. package/dist/esm/wallet-api/raw-sign.mjs.map +1 -1
  55. package/dist/esm/wallet-api/rpc.mjs +1 -1
  56. package/dist/esm/wallet-api/rpc.mjs.map +1 -1
  57. package/package.json +6 -6
@@ -327,7 +327,7 @@ declare class EmbeddedWalletProvider extends EventEmitter implements EIP1193Prov
327
327
 
328
328
  type AuthAction = 'login' | 'link';
329
329
  type Method = 'email' | 'sms' | 'oauth' | 'siwe' | 'passkey' | 'farcaster' | 'siws';
330
- type ClientErrorCode = `failed_to_complete_${AuthAction}_with_oauth` | `${AuthAction}_with_oauth_returned_with_invalid_credentials` | `${AuthAction}_with_oauth_was_cancelled_by_user` | 'attempted_rpc_call_before_logged_in' | 'attempted_submit_otp_before_sending' | 'attempted_to_set_password_before_connected' | 'attempted_to_set_password_but_password_already_set' | `attempted_login_with_${Method}_while_already_logged_in` | `attempted_link_${Method}_before_logged_in` | 'attempted_link_cross_app_before_logged_in' | 'attempted_login_with_cross_app_while_already_logged_in' | 'attempted_cross_app_request_before_logged_in' | 'attempted_update_before_logged_in' | 'attempted_update_email_without_a_linked_email' | 'attempted_update_phone_without_a_linked_phone' | 'cross_app_invalid_app' | 'cross_app_read_only' | 'cross_app_invalid_wallet' | 'cross_app_request_error' | `attempted_unlink_siwe_before_logged_in` | 'oauth_session_failed' | 'oauth_session_timeout' | 'user_signer_sign_error' | 'invalid_input' | 'embedded_wallet_before_logged_in' | 'embedded_wallet_needs_recovery' | 'embedded_wallet_creation_error' | 'embedded_wallet_recovery_error' | 'embedded_wallet_set_password_error' | 'embedded_wallet_set_recovery_error' | 'unknown_embedded_wallet_error' | 'embedded_wallet_does_not_exist' | 'embedded_wallet_already_exists' | 'embedded_wallet_webview_not_loaded' | 'embedded_wallet_request_error' | 'delegated_actions_before_logged_in' | 'delegated_actions_wallet_not_found' | 'delegated_actions_no_wallet_to_revoke' | 'no_passkey_found_for_challenge' | 'pkce_state_code_mismatch' | 'failed_to_create_passkey' | 'failed_to_generate_farcaster_uri' | 'failed_to_generate_farcaster_channel_token' | 'farcaster_polling_timeout' | 'farcaster_polling_canceled' | 'unsupported_recovery_method' | 'attempted_to_create_guest_account_for_logged_in_user' | 'attempted_to_read_storage_before_client_initialized' | 'third_party_auth_error' | 'invalid_native_app_id' | 'unsupported_mfa_method' | 'unsupported_chain_type' | 'invalid_mfa_code' | 'invalid_passkey_response' | 'storage_error' | 'smart_wallet_client_error' | 'chain_not_supported' | 'mfa_canceled' | 'configuration_error' | 'failed_to_fetch_moonpay_transaction_status' | 'unsupported_wallet_type';
330
+ type ClientErrorCode = `failed_to_complete_${AuthAction}_with_oauth` | `${AuthAction}_with_oauth_returned_with_invalid_credentials` | `${AuthAction}_with_oauth_was_cancelled_by_user` | 'attempted_rpc_call_before_logged_in' | 'attempted_submit_otp_before_sending' | 'attempted_to_set_password_before_connected' | 'attempted_to_set_password_but_password_already_set' | `attempted_login_with_${Method}_while_already_logged_in` | `attempted_link_${Method}_before_logged_in` | 'attempted_link_cross_app_before_logged_in' | 'attempted_login_with_cross_app_while_already_logged_in' | 'attempted_cross_app_request_before_logged_in' | 'attempted_update_before_logged_in' | 'attempted_update_email_without_a_linked_email' | 'attempted_update_phone_without_a_linked_phone' | 'cross_app_invalid_app' | 'cross_app_read_only' | 'cross_app_invalid_wallet' | 'cross_app_request_error' | `attempted_unlink_siwe_before_logged_in` | 'oauth_session_failed' | 'oauth_session_timeout' | 'user_signer_sign_error' | 'invalid_input' | 'embedded_wallet_before_logged_in' | 'embedded_wallet_needs_recovery' | 'embedded_wallet_creation_error' | 'embedded_wallet_recovery_error' | 'embedded_wallet_set_password_error' | 'embedded_wallet_set_recovery_error' | 'unknown_embedded_wallet_error' | 'embedded_wallet_does_not_exist' | 'embedded_wallet_already_exists' | 'embedded_wallet_webview_not_loaded' | 'embedded_wallet_request_error' | 'embedded_wallet_request_expired' | 'delegated_actions_before_logged_in' | 'delegated_actions_wallet_not_found' | 'delegated_actions_no_wallet_to_revoke' | 'no_passkey_found_for_challenge' | 'pkce_state_code_mismatch' | 'failed_to_create_passkey' | 'failed_to_generate_farcaster_uri' | 'failed_to_generate_farcaster_channel_token' | 'farcaster_polling_timeout' | 'farcaster_polling_canceled' | 'unsupported_recovery_method' | 'attempted_to_create_guest_account_for_logged_in_user' | 'attempted_to_read_storage_before_client_initialized' | 'third_party_auth_error' | 'invalid_native_app_id' | 'unsupported_mfa_method' | 'unsupported_chain_type' | 'invalid_mfa_code' | 'invalid_passkey_response' | 'storage_error' | 'smart_wallet_client_error' | 'chain_not_supported' | 'mfa_canceled' | 'configuration_error' | 'failed_to_fetch_moonpay_transaction_status' | 'unsupported_wallet_type';
331
331
  type ErrorBody<T extends PrivyErrorCode | ClientErrorCode> = {
332
332
  error: string;
333
333
  code: T;
@@ -520,7 +520,7 @@ interface bitcoin_signTransactionResponse extends BaseBitcoinRpcResponseType {
520
520
  };
521
521
  }
522
522
  type BitcoinRpcResponseType = bitcoin_signResponse | bitcoin_signTransactionResponse;
523
- type PrivyEventType = 'privy:iframe:ready' | 'privy:user-signer:sign' | 'privy:wallets:create' | 'privy:wallets:add' | 'privy:wallets:set-recovery' | 'privy:wallets:connect' | 'privy:wallets:recover' | 'privy:wallets:rpc' | 'privy:wallet:create' | 'privy:wallet:connect' | 'privy:wallet:recover' | 'privy:wallet:rpc' | 'privy:solana-wallet:create' | 'privy:solana-wallet:create-additional' | 'privy:solana-wallet:connect' | 'privy:solana-wallet:recover' | 'privy:solana-wallet:rpc' | 'privy:delegated-actions:consent' | 'privy:mfa:verify' | 'privy:mfa:init-enrollment' | 'privy:mfa:submit-enrollment' | 'privy:mfa:unenroll' | 'privy:mfa:clear';
523
+ type PrivyEventType = 'privy:iframe:ready' | 'privy:user-signer:sign' | 'privy:wallets:create' | 'privy:wallets:add' | 'privy:wallets:set-recovery' | 'privy:wallets:connect' | 'privy:wallets:recover' | 'privy:wallets:rpc' | 'privy:wallet:create' | 'privy:wallet:connect' | 'privy:wallet:recover' | 'privy:wallet:rpc' | 'privy:solana-wallet:create' | 'privy:solana-wallet:create-additional' | 'privy:solana-wallet:connect' | 'privy:solana-wallet:recover' | 'privy:solana-wallet:rpc' | 'privy:delegated-actions:consent' | 'privy:mfa:verify' | 'privy:mfa:init-enrollment' | 'privy:mfa:submit-enrollment' | 'privy:mfa:unenroll' | 'privy:mfa:clear' | 'privy:auth:unlink-passkey';
524
524
  type EmbeddedWalletRecoveryOptions = LinkedAccountEmbeddedWallet['recovery_method'];
525
525
  type IEmbeddedWalletRecoveryOptions = EmbeddedWalletRecoveryOptions | 'icloud-native';
526
526
  type PasswordRecoveryInput = {
@@ -723,7 +723,9 @@ type MfaUnenrollResponseDataType = Record<string, never>;
723
723
  type MfaUnenrollResponseEventType = PrivyResponseBaseEventType<'privy:mfa:unenroll', MfaUnenrollResponseDataType>;
724
724
  type MfaClearResponseDataType = Record<string, never>;
725
725
  type MfaClearResponseEventType = PrivyResponseBaseEventType<'privy:mfa:clear', MfaClearResponseDataType>;
726
- type PrivyResponseDataType = IframeReadyResponseDataType | UserSignerSignResponseDataType | WalletsCreateResponseDataType | WalletsAddResponseDataType | WalletsSetRecoveryResponseDataType | WalletsConnectResponseDataType | WalletsRecoverResponseDataType | WalletsRpcResponseDataType | WalletCreateResponseDataType | WalletConnectResponseDataType | WalletRecoverResponseDataType | WalletRpcResponseDataType | SolanaWalletCreateResponseDataType | SolanaWalletConnectResponseDataType | SolanaWalletRecoverResponseDataType | SolanaWalletRpcResponseDataType | DelegatedActionsConsentResponseDataType | MfaVerifyResponseDataType | MfaInitEnrollmentResponseDataType | MfaSubmitEnrollmentResponseDataType | MfaUnenrollResponseDataType | MfaClearResponseDataType;
726
+ type UnlinkPasskeyResponseDataType = Record<string, never>;
727
+ type UnlinkPasskeyResponseEventType = PrivyResponseBaseEventType<'privy:auth:unlink-passkey', UnlinkPasskeyResponseDataType>;
728
+ type PrivyResponseDataType = IframeReadyResponseDataType | UserSignerSignResponseDataType | WalletsCreateResponseDataType | WalletsAddResponseDataType | WalletsSetRecoveryResponseDataType | WalletsConnectResponseDataType | WalletsRecoverResponseDataType | WalletsRpcResponseDataType | WalletCreateResponseDataType | WalletConnectResponseDataType | WalletRecoverResponseDataType | WalletRpcResponseDataType | SolanaWalletCreateResponseDataType | SolanaWalletConnectResponseDataType | SolanaWalletRecoverResponseDataType | SolanaWalletRpcResponseDataType | DelegatedActionsConsentResponseDataType | MfaVerifyResponseDataType | MfaInitEnrollmentResponseDataType | MfaSubmitEnrollmentResponseDataType | MfaUnenrollResponseDataType | MfaClearResponseDataType | UnlinkPasskeyResponseDataType;
727
729
  declare const PrivyIframeErrorTypes: readonly ["error", "invalid_request_arguments", "wallet_not_on_device", "invalid_recovery_pin", "insufficient_funds", "mfa_timeout", "missing_or_invalid_mfa", "mfa_verification_max_attempts_reached"];
728
730
  type PrivyIframeErrorTypesType = (typeof PrivyIframeErrorTypes)[number];
729
731
  type PrivyErrorResponseEventType = PrivyResponseBaseEventType<PrivyEventType, PrivyResponseDataType> & {
@@ -732,7 +734,7 @@ type PrivyErrorResponseEventType = PrivyResponseBaseEventType<PrivyEventType, Pr
732
734
  message: string;
733
735
  };
734
736
  };
735
- type PrivyResponseEvent = IframeReadyResponseEventType | PrivyErrorResponseEventType | UserSignerSignResponseEventType | WalletsCreateResponseEventType | WalletsAddResponseEventType | WalletsSetRecoveryResponseEventType | WalletsConnectResponseEventType | WalletsRecoverResponseEventType | WalletsRpcResponseEventType | WalletCreateResponseEventType | WalletConnectResponseEventType | WalletRecoverResponseEventType | WalletRpcResponseEventType | SolanaWalletCreateResponseEventType | SolanaWalletCreateAdditionalResponseEventType | SolanaWalletConnectResponseEventType | SolanaWalletRecoverResponseEventType | SolanaWalletRpcResponseEventType | DelegatedActionsConsentResponseEventType | MfaVerifyResponseEventType | MfaInitEnrollmentResponseEventType | MfaSubmitEnrollmentResponseEventType | MfaUnenrollResponseEventType | MfaClearResponseEventType;
737
+ type PrivyResponseEvent = IframeReadyResponseEventType | PrivyErrorResponseEventType | UserSignerSignResponseEventType | WalletsCreateResponseEventType | WalletsAddResponseEventType | WalletsSetRecoveryResponseEventType | WalletsConnectResponseEventType | WalletsRecoverResponseEventType | WalletsRpcResponseEventType | WalletCreateResponseEventType | WalletConnectResponseEventType | WalletRecoverResponseEventType | WalletRpcResponseEventType | SolanaWalletCreateResponseEventType | SolanaWalletCreateAdditionalResponseEventType | SolanaWalletConnectResponseEventType | SolanaWalletRecoverResponseEventType | SolanaWalletRpcResponseEventType | DelegatedActionsConsentResponseEventType | MfaVerifyResponseEventType | MfaInitEnrollmentResponseEventType | MfaSubmitEnrollmentResponseEventType | MfaUnenrollResponseEventType | MfaClearResponseEventType | UnlinkPasskeyResponseEventType;
736
738
  type EmbeddedWalletMessagePoster = {
737
739
  postMessage: (message: any, targetOrigin: string, transfer?: Transferable) => void;
738
740
  reload: () => void;
@@ -1861,6 +1863,14 @@ declare class MfaApi {
1861
1863
  * event through the MfaApi instance.
1862
1864
  */
1863
1865
  unenrollMfa(method: 'sms' | 'totp'): Promise<MfaUnenrollResponseDataType>;
1866
+ /**
1867
+ * Sends privy:auth:unlink-passkey event to the embedded wallet iframe to delete a specific
1868
+ * passkey by credential ID. Requires MFA verification.
1869
+ */
1870
+ unlinkPasskey({ credentialId, removeAsMfa, }: {
1871
+ credentialId: string;
1872
+ removeAsMfa?: boolean;
1873
+ }): Promise<void>;
1864
1874
  /**
1865
1875
  * Sends privy:mfa:clear event to the embedded wallet iframe.
1866
1876
  */
@@ -2471,12 +2481,12 @@ declare const revokeWallets: (client: Privy) => () => Promise<{
2471
2481
  user: _privy_io_api_types.User;
2472
2482
  }>;
2473
2483
 
2474
- declare const index$2_delegateWallet: typeof delegateWallet;
2475
- declare const index$2_revokeWallets: typeof revokeWallets;
2476
- declare namespace index$2 {
2484
+ declare const index$3_delegateWallet: typeof delegateWallet;
2485
+ declare const index$3_revokeWallets: typeof revokeWallets;
2486
+ declare namespace index$3 {
2477
2487
  export {
2478
- index$2_delegateWallet as delegateWallet,
2479
- index$2_revokeWallets as revokeWallets,
2488
+ index$3_delegateWallet as delegateWallet,
2489
+ index$3_revokeWallets as revokeWallets,
2480
2490
  };
2481
2491
  }
2482
2492
 
@@ -2585,34 +2595,180 @@ interface SendTransactionOutput {
2585
2595
  */
2586
2596
  declare const sendTransaction: ({ client, openAuthSession }: SendTransactionDependencies) => ({ user, transaction, address, redirectUrl, }: SendTransactionInput) => Promise<SendTransactionOutput>;
2587
2597
 
2588
- type index$1_SendTransactionDependencies = SendTransactionDependencies;
2589
- type index$1_SendTransactionInput = SendTransactionInput;
2590
- type index$1_SendTransactionOutput = SendTransactionOutput;
2591
- type index$1_SignMessageDependencies = SignMessageDependencies;
2592
- type index$1_SignMessageInput = SignMessageInput;
2593
- type index$1_SignMessageOutput = SignMessageOutput;
2594
- type index$1_SignTypedDataDependencies = SignTypedDataDependencies;
2595
- type index$1_SignTypedDataInput = SignTypedDataInput;
2596
- type index$1_SignTypedDataOutput = SignTypedDataOutput;
2597
- declare const index$1_sendTransaction: typeof sendTransaction;
2598
- declare const index$1_signMessage: typeof signMessage;
2599
- declare const index$1_signTypedData: typeof signTypedData;
2598
+ type index$2_SendTransactionDependencies = SendTransactionDependencies;
2599
+ type index$2_SendTransactionInput = SendTransactionInput;
2600
+ type index$2_SendTransactionOutput = SendTransactionOutput;
2601
+ type index$2_SignMessageDependencies = SignMessageDependencies;
2602
+ type index$2_SignMessageInput = SignMessageInput;
2603
+ type index$2_SignMessageOutput = SignMessageOutput;
2604
+ type index$2_SignTypedDataDependencies = SignTypedDataDependencies;
2605
+ type index$2_SignTypedDataInput = SignTypedDataInput;
2606
+ type index$2_SignTypedDataOutput = SignTypedDataOutput;
2607
+ declare const index$2_sendTransaction: typeof sendTransaction;
2608
+ declare const index$2_signMessage: typeof signMessage;
2609
+ declare const index$2_signTypedData: typeof signTypedData;
2610
+ declare namespace index$2 {
2611
+ export { index$2_sendTransaction as sendTransaction, index$2_signMessage as signMessage, index$2_signTypedData as signTypedData };
2612
+ export type { index$2_SendTransactionDependencies as SendTransactionDependencies, index$2_SendTransactionInput as SendTransactionInput, index$2_SendTransactionOutput as SendTransactionOutput, index$2_SignMessageDependencies as SignMessageDependencies, index$2_SignMessageInput as SignMessageInput, index$2_SignMessageOutput as SignMessageOutput, index$2_SignTypedDataDependencies as SignTypedDataDependencies, index$2_SignTypedDataInput as SignTypedDataInput, index$2_SignTypedDataOutput as SignTypedDataOutput };
2613
+ }
2614
+
2615
+ type index$1_LinkWithCrossAppAuthDependencies = LinkWithCrossAppAuthDependencies;
2616
+ type index$1_LinkWithCrossAppAuthInput = LinkWithCrossAppAuthInput;
2617
+ type index$1_LinkWithCrossAppAuthOutput = LinkWithCrossAppAuthOutput;
2618
+ type index$1_LoginWithCrossAppAuthDependencies = LoginWithCrossAppAuthDependencies;
2619
+ type index$1_LoginWithCrossAppAuthInput = LoginWithCrossAppAuthInput;
2620
+ type index$1_LoginWithCrossAppAuthOutput = LoginWithCrossAppAuthOutput;
2621
+ declare const index$1_linkWithCrossAppAuth: typeof linkWithCrossAppAuth;
2622
+ declare const index$1_loginWithCrossAppAuth: typeof loginWithCrossAppAuth;
2600
2623
  declare namespace index$1 {
2601
- export { index$1_sendTransaction as sendTransaction, index$1_signMessage as signMessage, index$1_signTypedData as signTypedData };
2602
- export type { index$1_SendTransactionDependencies as SendTransactionDependencies, index$1_SendTransactionInput as SendTransactionInput, index$1_SendTransactionOutput as SendTransactionOutput, index$1_SignMessageDependencies as SignMessageDependencies, index$1_SignMessageInput as SignMessageInput, index$1_SignMessageOutput as SignMessageOutput, index$1_SignTypedDataDependencies as SignTypedDataDependencies, index$1_SignTypedDataInput as SignTypedDataInput, index$1_SignTypedDataOutput as SignTypedDataOutput };
2603
- }
2604
-
2605
- type index_LinkWithCrossAppAuthDependencies = LinkWithCrossAppAuthDependencies;
2606
- type index_LinkWithCrossAppAuthInput = LinkWithCrossAppAuthInput;
2607
- type index_LinkWithCrossAppAuthOutput = LinkWithCrossAppAuthOutput;
2608
- type index_LoginWithCrossAppAuthDependencies = LoginWithCrossAppAuthDependencies;
2609
- type index_LoginWithCrossAppAuthInput = LoginWithCrossAppAuthInput;
2610
- type index_LoginWithCrossAppAuthOutput = LoginWithCrossAppAuthOutput;
2611
- declare const index_linkWithCrossAppAuth: typeof linkWithCrossAppAuth;
2612
- declare const index_loginWithCrossAppAuth: typeof loginWithCrossAppAuth;
2624
+ export { index$1_linkWithCrossAppAuth as linkWithCrossAppAuth, index$1_loginWithCrossAppAuth as loginWithCrossAppAuth, index$2 as wallet };
2625
+ export type { index$1_LinkWithCrossAppAuthDependencies as LinkWithCrossAppAuthDependencies, index$1_LinkWithCrossAppAuthInput as LinkWithCrossAppAuthInput, index$1_LinkWithCrossAppAuthOutput as LinkWithCrossAppAuthOutput, index$1_LoginWithCrossAppAuthDependencies as LoginWithCrossAppAuthDependencies, index$1_LoginWithCrossAppAuthInput as LoginWithCrossAppAuthInput, index$1_LoginWithCrossAppAuthOutput as LoginWithCrossAppAuthOutput };
2626
+ }
2627
+
2628
+ type DepositConfig = {
2629
+ currencies: Array<{
2630
+ symbol: string;
2631
+ name: string;
2632
+ logoURI: string;
2633
+ chains: Array<{
2634
+ caip2: string;
2635
+ address: string;
2636
+ decimals: number;
2637
+ }>;
2638
+ }>;
2639
+ chains: Record<string, {
2640
+ chainId: number;
2641
+ caip2: string;
2642
+ displayName: string;
2643
+ iconUrl: string;
2644
+ vmType: string;
2645
+ }>;
2646
+ };
2647
+ type DepositAddressQuote = {
2648
+ id: string;
2649
+ deposit_address: string;
2650
+ source_chain: string;
2651
+ source_currency: string;
2652
+ source_vm_type: string;
2653
+ destination_chain: string;
2654
+ destination_currency: string;
2655
+ destination_address: string;
2656
+ refund_address: string;
2657
+ slippage_bps: number;
2658
+ indicative_rate: string;
2659
+ time_estimate_seconds: number;
2660
+ created_at: string;
2661
+ };
2662
+ type DepositAddressOrderBase = {
2663
+ id: string;
2664
+ provider_request_id: string;
2665
+ source_chain: string;
2666
+ source_currency: string;
2667
+ source_amount: string;
2668
+ depositor_address: string;
2669
+ destination_chain: string;
2670
+ destination_currency: string;
2671
+ tracking_url: string;
2672
+ created_at: string;
2673
+ updated_at: string;
2674
+ };
2675
+ type CompletedDepositAddressOrder = DepositAddressOrderBase & {
2676
+ status: 'completed';
2677
+ destination_amount: string;
2678
+ };
2679
+ type IncompleteDepositAddressOrder = DepositAddressOrderBase & {
2680
+ status: 'executing' | 'refunded' | 'failed';
2681
+ destination_amount: null;
2682
+ };
2683
+ type DepositAddressOrder = CompletedDepositAddressOrder | IncompleteDepositAddressOrder;
2684
+ type DepositAddressPollingResult = {
2685
+ status: 'success';
2686
+ order: DepositAddressOrder;
2687
+ } | {
2688
+ status: 'aborted';
2689
+ error?: Error;
2690
+ } | {
2691
+ status: 'timeout';
2692
+ error?: Error;
2693
+ };
2694
+ type GenerateDepositAddressInput = {
2695
+ sourceChain: string;
2696
+ sourceCurrency: string;
2697
+ destinationChain: string;
2698
+ destinationCurrency: string;
2699
+ destinationAddress: string;
2700
+ refundAddress?: string;
2701
+ slippageBps?: number;
2702
+ };
2703
+ type WaitForDepositInput = {
2704
+ depositAddressId: string;
2705
+ quoteCreatedAt: string;
2706
+ signal?: AbortSignal;
2707
+ pollIntervalMs?: number;
2708
+ timeoutMs?: number;
2709
+ };
2710
+ type WaitForCompletionInput = {
2711
+ orderId: string;
2712
+ signal?: AbortSignal;
2713
+ pollIntervalMs?: number;
2714
+ timeoutMs?: number;
2715
+ };
2716
+ type GetDepositInput = {
2717
+ orderId: string;
2718
+ };
2719
+ type ResolveRefundAddressError = 'NOT_AUTHENTICATED' | 'UNSUPPORTED_CHAIN' | 'REFUND_WALLET_CREATION_FAILED';
2720
+ type ResolveRefundAddressResult = {
2721
+ ok: true;
2722
+ address: string;
2723
+ } | {
2724
+ ok: false;
2725
+ error: ResolveRefundAddressError;
2726
+ };
2727
+
2728
+ declare function generateDepositAddress(opts: GenerateDepositAddressInput & {
2729
+ privy: Privy;
2730
+ onWalletCreated?: () => Promise<unknown>;
2731
+ }): Promise<DepositAddressQuote>;
2732
+
2733
+ declare function resolveRefundAddress(opts: {
2734
+ privy: Privy;
2735
+ caip2: string;
2736
+ onWalletCreated?: () => Promise<unknown>;
2737
+ }): Promise<ResolveRefundAddressResult>;
2738
+
2739
+ declare function getDeposit(opts: GetDepositInput & {
2740
+ privy: Privy;
2741
+ }): Promise<DepositAddressOrder>;
2742
+ declare function waitForDeposit(opts: WaitForDepositInput & {
2743
+ privy: Privy;
2744
+ }): Promise<DepositAddressPollingResult>;
2745
+ declare function waitForCompletion(opts: WaitForCompletionInput & {
2746
+ privy: Privy;
2747
+ }): Promise<DepositAddressPollingResult>;
2748
+
2749
+ declare function getConfig(privy: Privy): Promise<DepositConfig>;
2750
+
2751
+ type index_CompletedDepositAddressOrder = CompletedDepositAddressOrder;
2752
+ type index_DepositAddressOrder = DepositAddressOrder;
2753
+ type index_DepositAddressPollingResult = DepositAddressPollingResult;
2754
+ type index_DepositAddressQuote = DepositAddressQuote;
2755
+ type index_DepositConfig = DepositConfig;
2756
+ type index_GenerateDepositAddressInput = GenerateDepositAddressInput;
2757
+ type index_GetDepositInput = GetDepositInput;
2758
+ type index_IncompleteDepositAddressOrder = IncompleteDepositAddressOrder;
2759
+ type index_ResolveRefundAddressError = ResolveRefundAddressError;
2760
+ type index_ResolveRefundAddressResult = ResolveRefundAddressResult;
2761
+ type index_WaitForCompletionInput = WaitForCompletionInput;
2762
+ type index_WaitForDepositInput = WaitForDepositInput;
2763
+ declare const index_generateDepositAddress: typeof generateDepositAddress;
2764
+ declare const index_getConfig: typeof getConfig;
2765
+ declare const index_getDeposit: typeof getDeposit;
2766
+ declare const index_resolveRefundAddress: typeof resolveRefundAddress;
2767
+ declare const index_waitForCompletion: typeof waitForCompletion;
2768
+ declare const index_waitForDeposit: typeof waitForDeposit;
2613
2769
  declare namespace index {
2614
- export { index_linkWithCrossAppAuth as linkWithCrossAppAuth, index_loginWithCrossAppAuth as loginWithCrossAppAuth, index$1 as wallet };
2615
- export type { index_LinkWithCrossAppAuthDependencies as LinkWithCrossAppAuthDependencies, index_LinkWithCrossAppAuthInput as LinkWithCrossAppAuthInput, index_LinkWithCrossAppAuthOutput as LinkWithCrossAppAuthOutput, index_LoginWithCrossAppAuthDependencies as LoginWithCrossAppAuthDependencies, index_LoginWithCrossAppAuthInput as LoginWithCrossAppAuthInput, index_LoginWithCrossAppAuthOutput as LoginWithCrossAppAuthOutput };
2770
+ export { index_generateDepositAddress as generateDepositAddress, index_getConfig as getConfig, index_getDeposit as getDeposit, index_resolveRefundAddress as resolveRefundAddress, index_waitForCompletion as waitForCompletion, index_waitForDeposit as waitForDeposit };
2771
+ export type { index_CompletedDepositAddressOrder as CompletedDepositAddressOrder, index_DepositAddressOrder as DepositAddressOrder, index_DepositAddressPollingResult as DepositAddressPollingResult, index_DepositAddressQuote as DepositAddressQuote, index_DepositConfig as DepositConfig, index_GenerateDepositAddressInput as GenerateDepositAddressInput, index_GetDepositInput as GetDepositInput, index_IncompleteDepositAddressOrder as IncompleteDepositAddressOrder, index_ResolveRefundAddressError as ResolveRefundAddressError, index_ResolveRefundAddressResult as ResolveRefundAddressResult, index_WaitForCompletionInput as WaitForCompletionInput, index_WaitForDepositInput as WaitForDepositInput };
2616
2772
  }
2617
2773
 
2618
2774
  interface SignWalletRequestInput {
@@ -2885,5 +3041,5 @@ declare const THIRDWEB: "thirdweb";
2885
3041
  /** @deprecated {@link SmartWalletType} is a well-typed union, use the `'nexus'` literal instead */
2886
3042
  declare const NEXUS: "nexus";
2887
3043
 
2888
- export { ALL_WALLET_CLIENT_TYPES, BICONOMY, COINBASE_SMART_WALLET, ConnectedStandardSolanaWallet, EmbeddedBitcoinWalletProvider, EmbeddedProviderError, InMemoryCache, KERNEL, LIGHT_ACCOUNT, LocalStorage, MoonpayApiError, NEXUS, PrivyApiError, PrivyClientError, PrivyConnectorError, PrivyEmbeddedWalletErrorCode, PrivyProviderRpcError, ProviderErrors, SAFE, SUPPORTED_CONNECTOR_TYPES, SolanaClient, SolanaUsdcAddressMap, THIRDWEB, UsdcAddressMap, addSessionSigners, chainToMoonpayCurrency, countryCodesAndNumbers, create, createErrorFormatter, createSiwsMessage, index as crossApp, Privy as default, index$2 as delegatedActions, errorIndicatesMaxMfaRetries, errorIndicatesMfaCanceled, errorIndicatesMfaRateLimit, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, errorIndicatesRecoveryIsNeeded, formatLamportsAmount, formatPhoneNumber, formatTokenAmount, formatWalletAddress, formatWeiAmount, fundingMethodToMoonpayPaymentMethod, generateAuthorizationSignature, generateWalletIdempotencyKey, getAllUserEmbeddedBitcoinWallets, getAllUserEmbeddedEthereumWallets, getAllUserEmbeddedSolanaWallets, getCoinbaseOnRampUrl, getEntropyDetailsFromAccount, getEntropyDetailsFromUser, getIsTokenUsdc, getJsonRpcEndpointFromChain, getPhoneCountryCodeAndNumber, getPlaceholderPhoneNumber, getSolanaClusterDisplayName, getSolanaRpcEndpointForCluster, getSolanaUsdcMintAddressForCluster, getUserEmbeddedEthereumWallet, getUserEmbeddedSolanaWallet, getUserEmbeddedWallet, getUserSmartWallet, getWallet, isEmbeddedWalletAccount, isSupportedChainIdForCoinbaseOnramp, isSupportedChainIdForMoonpay, isUnifiedWallet, lastFourDigits, phoneNumberTypingFormatter, poll, rawSign, removeSessionSigners, rpc, throwIfInvalidRecoveryUpgradePath, toCoinbaseAssetId, toCoinbaseBlockchainFromChainId, toObjectKeys, toWalletApiUnsignedEthTransaction, updateWallet, validatePhoneNumber };
2889
- export type { Cluster, CoinbaseAssetId, CoinbaseWalletClientType, ConnectorType, CreateSiwsMessageOpts, EIP1193Provider, EmbeddedWalletClientType, EmbeddedWalletConfig, EmbeddedWalletRecoveryOptions, EntropyIdVerifier, ErrorMessageMap, ExternalWallet, ExternalWalletMetadata, FundingMethod, FundingProvider, GenerateAuthorizationSignatureInput, GenerateAuthorizationSignatureOutput, IdentifierString, InjectedWalletClientType, LogLevel, Logger, MfaMethod, MfaPromise, MfaSubmitArgs, MfaSubmitPromise, MoonpayTransactionStatus, MoonpayTransactionStatusResponse, OAuthProviderType, OnNeedsRecovery, PaymentOption, PollOptions, PollResult, PreparedTransactionRequest, PrivyEmbeddedSolanaWalletProvider, PrivyEmbeddedWalletProvider, Quantity, SetRecoveryInput, SmartWalletType, SolanaCluster, SolanaSignAndSendTransactionInput, SolanaSignAndSendTransactionMode, SolanaSignAndSendTransactionOptions, SolanaSignAndSendTransactionOutput, SolanaSignMessageInput, SolanaSignMessageOutput, SolanaSignTransactionInput, SolanaSignTransactionOptions, SolanaSignTransactionOutput, SolanaStandardWallet, SolanaTransactionCommitment, Storage, UnknownWalletClientType, UnsignedTransactionRequest, UnsignedTransactionRequestWithChainId, WalletBranding, WalletClientType, WalletConnectWalletClientType };
3044
+ export { ALL_WALLET_CLIENT_TYPES, BICONOMY, COINBASE_SMART_WALLET, ConnectedStandardSolanaWallet, EmbeddedBitcoinWalletProvider, EmbeddedProviderError, InMemoryCache, KERNEL, LIGHT_ACCOUNT, LocalStorage, MoonpayApiError, NEXUS, PrivyApiError, PrivyClientError, PrivyConnectorError, PrivyEmbeddedWalletErrorCode, PrivyProviderRpcError, ProviderErrors, SAFE, SUPPORTED_CONNECTOR_TYPES, SolanaClient, SolanaUsdcAddressMap, THIRDWEB, UsdcAddressMap, addSessionSigners, chainToMoonpayCurrency, countryCodesAndNumbers, create, createErrorFormatter, createSiwsMessage, index$1 as crossApp, Privy as default, index$3 as delegatedActions, index as depositAddress, errorIndicatesMaxMfaRetries, errorIndicatesMfaCanceled, errorIndicatesMfaRateLimit, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, errorIndicatesRecoveryIsNeeded, formatLamportsAmount, formatPhoneNumber, formatTokenAmount, formatWalletAddress, formatWeiAmount, fundingMethodToMoonpayPaymentMethod, generateAuthorizationSignature, generateWalletIdempotencyKey, getAllUserEmbeddedBitcoinWallets, getAllUserEmbeddedEthereumWallets, getAllUserEmbeddedSolanaWallets, getCoinbaseOnRampUrl, getEntropyDetailsFromAccount, getEntropyDetailsFromUser, getIsTokenUsdc, getJsonRpcEndpointFromChain, getPhoneCountryCodeAndNumber, getPlaceholderPhoneNumber, getSolanaClusterDisplayName, getSolanaRpcEndpointForCluster, getSolanaUsdcMintAddressForCluster, getUserEmbeddedEthereumWallet, getUserEmbeddedSolanaWallet, getUserEmbeddedWallet, getUserSmartWallet, getWallet, isEmbeddedWalletAccount, isSupportedChainIdForCoinbaseOnramp, isSupportedChainIdForMoonpay, isUnifiedWallet, lastFourDigits, phoneNumberTypingFormatter, poll, rawSign, removeSessionSigners, rpc, throwIfInvalidRecoveryUpgradePath, toCoinbaseAssetId, toCoinbaseBlockchainFromChainId, toObjectKeys, toWalletApiUnsignedEthTransaction, updateWallet, validatePhoneNumber };
3045
+ export type { Cluster, CoinbaseAssetId, CoinbaseWalletClientType, CompletedDepositAddressOrder, ConnectorType, CreateSiwsMessageOpts, DepositAddressOrder, DepositAddressPollingResult, DepositAddressQuote, DepositConfig, EIP1193Provider, EmbeddedWalletClientType, EmbeddedWalletConfig, EmbeddedWalletRecoveryOptions, EntropyIdVerifier, ErrorMessageMap, ExternalWallet, ExternalWalletMetadata, FundingMethod, FundingProvider, GenerateAuthorizationSignatureInput, GenerateAuthorizationSignatureOutput, GenerateDepositAddressInput, GetDepositInput, IdentifierString, IncompleteDepositAddressOrder, InjectedWalletClientType, LogLevel, Logger, MfaMethod, MfaPromise, MfaSubmitArgs, MfaSubmitPromise, MoonpayTransactionStatus, MoonpayTransactionStatusResponse, OAuthProviderType, OnNeedsRecovery, PaymentOption, PollOptions, PollResult, PreparedTransactionRequest, PrivyEmbeddedSolanaWalletProvider, PrivyEmbeddedWalletProvider, Quantity, ResolveRefundAddressError, ResolveRefundAddressResult, SetRecoveryInput, SmartWalletType, SolanaCluster, SolanaSignAndSendTransactionInput, SolanaSignAndSendTransactionMode, SolanaSignAndSendTransactionOptions, SolanaSignAndSendTransactionOutput, SolanaSignMessageInput, SolanaSignMessageOutput, SolanaSignTransactionInput, SolanaSignTransactionOptions, SolanaSignTransactionOutput, SolanaStandardWallet, SolanaTransactionCommitment, Storage, UnknownWalletClientType, UnsignedTransactionRequest, UnsignedTransactionRequestWithChainId, WaitForCompletionInput, WaitForDepositInput, WalletBranding, WalletClientType, WalletConnectWalletClientType };
@@ -327,7 +327,7 @@ declare class EmbeddedWalletProvider extends EventEmitter implements EIP1193Prov
327
327
 
328
328
  type AuthAction = 'login' | 'link';
329
329
  type Method = 'email' | 'sms' | 'oauth' | 'siwe' | 'passkey' | 'farcaster' | 'siws';
330
- type ClientErrorCode = `failed_to_complete_${AuthAction}_with_oauth` | `${AuthAction}_with_oauth_returned_with_invalid_credentials` | `${AuthAction}_with_oauth_was_cancelled_by_user` | 'attempted_rpc_call_before_logged_in' | 'attempted_submit_otp_before_sending' | 'attempted_to_set_password_before_connected' | 'attempted_to_set_password_but_password_already_set' | `attempted_login_with_${Method}_while_already_logged_in` | `attempted_link_${Method}_before_logged_in` | 'attempted_link_cross_app_before_logged_in' | 'attempted_login_with_cross_app_while_already_logged_in' | 'attempted_cross_app_request_before_logged_in' | 'attempted_update_before_logged_in' | 'attempted_update_email_without_a_linked_email' | 'attempted_update_phone_without_a_linked_phone' | 'cross_app_invalid_app' | 'cross_app_read_only' | 'cross_app_invalid_wallet' | 'cross_app_request_error' | `attempted_unlink_siwe_before_logged_in` | 'oauth_session_failed' | 'oauth_session_timeout' | 'user_signer_sign_error' | 'invalid_input' | 'embedded_wallet_before_logged_in' | 'embedded_wallet_needs_recovery' | 'embedded_wallet_creation_error' | 'embedded_wallet_recovery_error' | 'embedded_wallet_set_password_error' | 'embedded_wallet_set_recovery_error' | 'unknown_embedded_wallet_error' | 'embedded_wallet_does_not_exist' | 'embedded_wallet_already_exists' | 'embedded_wallet_webview_not_loaded' | 'embedded_wallet_request_error' | 'delegated_actions_before_logged_in' | 'delegated_actions_wallet_not_found' | 'delegated_actions_no_wallet_to_revoke' | 'no_passkey_found_for_challenge' | 'pkce_state_code_mismatch' | 'failed_to_create_passkey' | 'failed_to_generate_farcaster_uri' | 'failed_to_generate_farcaster_channel_token' | 'farcaster_polling_timeout' | 'farcaster_polling_canceled' | 'unsupported_recovery_method' | 'attempted_to_create_guest_account_for_logged_in_user' | 'attempted_to_read_storage_before_client_initialized' | 'third_party_auth_error' | 'invalid_native_app_id' | 'unsupported_mfa_method' | 'unsupported_chain_type' | 'invalid_mfa_code' | 'invalid_passkey_response' | 'storage_error' | 'smart_wallet_client_error' | 'chain_not_supported' | 'mfa_canceled' | 'configuration_error' | 'failed_to_fetch_moonpay_transaction_status' | 'unsupported_wallet_type';
330
+ type ClientErrorCode = `failed_to_complete_${AuthAction}_with_oauth` | `${AuthAction}_with_oauth_returned_with_invalid_credentials` | `${AuthAction}_with_oauth_was_cancelled_by_user` | 'attempted_rpc_call_before_logged_in' | 'attempted_submit_otp_before_sending' | 'attempted_to_set_password_before_connected' | 'attempted_to_set_password_but_password_already_set' | `attempted_login_with_${Method}_while_already_logged_in` | `attempted_link_${Method}_before_logged_in` | 'attempted_link_cross_app_before_logged_in' | 'attempted_login_with_cross_app_while_already_logged_in' | 'attempted_cross_app_request_before_logged_in' | 'attempted_update_before_logged_in' | 'attempted_update_email_without_a_linked_email' | 'attempted_update_phone_without_a_linked_phone' | 'cross_app_invalid_app' | 'cross_app_read_only' | 'cross_app_invalid_wallet' | 'cross_app_request_error' | `attempted_unlink_siwe_before_logged_in` | 'oauth_session_failed' | 'oauth_session_timeout' | 'user_signer_sign_error' | 'invalid_input' | 'embedded_wallet_before_logged_in' | 'embedded_wallet_needs_recovery' | 'embedded_wallet_creation_error' | 'embedded_wallet_recovery_error' | 'embedded_wallet_set_password_error' | 'embedded_wallet_set_recovery_error' | 'unknown_embedded_wallet_error' | 'embedded_wallet_does_not_exist' | 'embedded_wallet_already_exists' | 'embedded_wallet_webview_not_loaded' | 'embedded_wallet_request_error' | 'embedded_wallet_request_expired' | 'delegated_actions_before_logged_in' | 'delegated_actions_wallet_not_found' | 'delegated_actions_no_wallet_to_revoke' | 'no_passkey_found_for_challenge' | 'pkce_state_code_mismatch' | 'failed_to_create_passkey' | 'failed_to_generate_farcaster_uri' | 'failed_to_generate_farcaster_channel_token' | 'farcaster_polling_timeout' | 'farcaster_polling_canceled' | 'unsupported_recovery_method' | 'attempted_to_create_guest_account_for_logged_in_user' | 'attempted_to_read_storage_before_client_initialized' | 'third_party_auth_error' | 'invalid_native_app_id' | 'unsupported_mfa_method' | 'unsupported_chain_type' | 'invalid_mfa_code' | 'invalid_passkey_response' | 'storage_error' | 'smart_wallet_client_error' | 'chain_not_supported' | 'mfa_canceled' | 'configuration_error' | 'failed_to_fetch_moonpay_transaction_status' | 'unsupported_wallet_type';
331
331
  type ErrorBody<T extends PrivyErrorCode | ClientErrorCode> = {
332
332
  error: string;
333
333
  code: T;
@@ -520,7 +520,7 @@ interface bitcoin_signTransactionResponse extends BaseBitcoinRpcResponseType {
520
520
  };
521
521
  }
522
522
  type BitcoinRpcResponseType = bitcoin_signResponse | bitcoin_signTransactionResponse;
523
- type PrivyEventType = 'privy:iframe:ready' | 'privy:user-signer:sign' | 'privy:wallets:create' | 'privy:wallets:add' | 'privy:wallets:set-recovery' | 'privy:wallets:connect' | 'privy:wallets:recover' | 'privy:wallets:rpc' | 'privy:wallet:create' | 'privy:wallet:connect' | 'privy:wallet:recover' | 'privy:wallet:rpc' | 'privy:solana-wallet:create' | 'privy:solana-wallet:create-additional' | 'privy:solana-wallet:connect' | 'privy:solana-wallet:recover' | 'privy:solana-wallet:rpc' | 'privy:delegated-actions:consent' | 'privy:mfa:verify' | 'privy:mfa:init-enrollment' | 'privy:mfa:submit-enrollment' | 'privy:mfa:unenroll' | 'privy:mfa:clear';
523
+ type PrivyEventType = 'privy:iframe:ready' | 'privy:user-signer:sign' | 'privy:wallets:create' | 'privy:wallets:add' | 'privy:wallets:set-recovery' | 'privy:wallets:connect' | 'privy:wallets:recover' | 'privy:wallets:rpc' | 'privy:wallet:create' | 'privy:wallet:connect' | 'privy:wallet:recover' | 'privy:wallet:rpc' | 'privy:solana-wallet:create' | 'privy:solana-wallet:create-additional' | 'privy:solana-wallet:connect' | 'privy:solana-wallet:recover' | 'privy:solana-wallet:rpc' | 'privy:delegated-actions:consent' | 'privy:mfa:verify' | 'privy:mfa:init-enrollment' | 'privy:mfa:submit-enrollment' | 'privy:mfa:unenroll' | 'privy:mfa:clear' | 'privy:auth:unlink-passkey';
524
524
  type EmbeddedWalletRecoveryOptions = LinkedAccountEmbeddedWallet['recovery_method'];
525
525
  type IEmbeddedWalletRecoveryOptions = EmbeddedWalletRecoveryOptions | 'icloud-native';
526
526
  type PasswordRecoveryInput = {
@@ -723,7 +723,9 @@ type MfaUnenrollResponseDataType = Record<string, never>;
723
723
  type MfaUnenrollResponseEventType = PrivyResponseBaseEventType<'privy:mfa:unenroll', MfaUnenrollResponseDataType>;
724
724
  type MfaClearResponseDataType = Record<string, never>;
725
725
  type MfaClearResponseEventType = PrivyResponseBaseEventType<'privy:mfa:clear', MfaClearResponseDataType>;
726
- type PrivyResponseDataType = IframeReadyResponseDataType | UserSignerSignResponseDataType | WalletsCreateResponseDataType | WalletsAddResponseDataType | WalletsSetRecoveryResponseDataType | WalletsConnectResponseDataType | WalletsRecoverResponseDataType | WalletsRpcResponseDataType | WalletCreateResponseDataType | WalletConnectResponseDataType | WalletRecoverResponseDataType | WalletRpcResponseDataType | SolanaWalletCreateResponseDataType | SolanaWalletConnectResponseDataType | SolanaWalletRecoverResponseDataType | SolanaWalletRpcResponseDataType | DelegatedActionsConsentResponseDataType | MfaVerifyResponseDataType | MfaInitEnrollmentResponseDataType | MfaSubmitEnrollmentResponseDataType | MfaUnenrollResponseDataType | MfaClearResponseDataType;
726
+ type UnlinkPasskeyResponseDataType = Record<string, never>;
727
+ type UnlinkPasskeyResponseEventType = PrivyResponseBaseEventType<'privy:auth:unlink-passkey', UnlinkPasskeyResponseDataType>;
728
+ type PrivyResponseDataType = IframeReadyResponseDataType | UserSignerSignResponseDataType | WalletsCreateResponseDataType | WalletsAddResponseDataType | WalletsSetRecoveryResponseDataType | WalletsConnectResponseDataType | WalletsRecoverResponseDataType | WalletsRpcResponseDataType | WalletCreateResponseDataType | WalletConnectResponseDataType | WalletRecoverResponseDataType | WalletRpcResponseDataType | SolanaWalletCreateResponseDataType | SolanaWalletConnectResponseDataType | SolanaWalletRecoverResponseDataType | SolanaWalletRpcResponseDataType | DelegatedActionsConsentResponseDataType | MfaVerifyResponseDataType | MfaInitEnrollmentResponseDataType | MfaSubmitEnrollmentResponseDataType | MfaUnenrollResponseDataType | MfaClearResponseDataType | UnlinkPasskeyResponseDataType;
727
729
  declare const PrivyIframeErrorTypes: readonly ["error", "invalid_request_arguments", "wallet_not_on_device", "invalid_recovery_pin", "insufficient_funds", "mfa_timeout", "missing_or_invalid_mfa", "mfa_verification_max_attempts_reached"];
728
730
  type PrivyIframeErrorTypesType = (typeof PrivyIframeErrorTypes)[number];
729
731
  type PrivyErrorResponseEventType = PrivyResponseBaseEventType<PrivyEventType, PrivyResponseDataType> & {
@@ -732,7 +734,7 @@ type PrivyErrorResponseEventType = PrivyResponseBaseEventType<PrivyEventType, Pr
732
734
  message: string;
733
735
  };
734
736
  };
735
- type PrivyResponseEvent = IframeReadyResponseEventType | PrivyErrorResponseEventType | UserSignerSignResponseEventType | WalletsCreateResponseEventType | WalletsAddResponseEventType | WalletsSetRecoveryResponseEventType | WalletsConnectResponseEventType | WalletsRecoverResponseEventType | WalletsRpcResponseEventType | WalletCreateResponseEventType | WalletConnectResponseEventType | WalletRecoverResponseEventType | WalletRpcResponseEventType | SolanaWalletCreateResponseEventType | SolanaWalletCreateAdditionalResponseEventType | SolanaWalletConnectResponseEventType | SolanaWalletRecoverResponseEventType | SolanaWalletRpcResponseEventType | DelegatedActionsConsentResponseEventType | MfaVerifyResponseEventType | MfaInitEnrollmentResponseEventType | MfaSubmitEnrollmentResponseEventType | MfaUnenrollResponseEventType | MfaClearResponseEventType;
737
+ type PrivyResponseEvent = IframeReadyResponseEventType | PrivyErrorResponseEventType | UserSignerSignResponseEventType | WalletsCreateResponseEventType | WalletsAddResponseEventType | WalletsSetRecoveryResponseEventType | WalletsConnectResponseEventType | WalletsRecoverResponseEventType | WalletsRpcResponseEventType | WalletCreateResponseEventType | WalletConnectResponseEventType | WalletRecoverResponseEventType | WalletRpcResponseEventType | SolanaWalletCreateResponseEventType | SolanaWalletCreateAdditionalResponseEventType | SolanaWalletConnectResponseEventType | SolanaWalletRecoverResponseEventType | SolanaWalletRpcResponseEventType | DelegatedActionsConsentResponseEventType | MfaVerifyResponseEventType | MfaInitEnrollmentResponseEventType | MfaSubmitEnrollmentResponseEventType | MfaUnenrollResponseEventType | MfaClearResponseEventType | UnlinkPasskeyResponseEventType;
736
738
  type EmbeddedWalletMessagePoster = {
737
739
  postMessage: (message: any, targetOrigin: string, transfer?: Transferable) => void;
738
740
  reload: () => void;
@@ -1861,6 +1863,14 @@ declare class MfaApi {
1861
1863
  * event through the MfaApi instance.
1862
1864
  */
1863
1865
  unenrollMfa(method: 'sms' | 'totp'): Promise<MfaUnenrollResponseDataType>;
1866
+ /**
1867
+ * Sends privy:auth:unlink-passkey event to the embedded wallet iframe to delete a specific
1868
+ * passkey by credential ID. Requires MFA verification.
1869
+ */
1870
+ unlinkPasskey({ credentialId, removeAsMfa, }: {
1871
+ credentialId: string;
1872
+ removeAsMfa?: boolean;
1873
+ }): Promise<void>;
1864
1874
  /**
1865
1875
  * Sends privy:mfa:clear event to the embedded wallet iframe.
1866
1876
  */
@@ -2471,12 +2481,12 @@ declare const revokeWallets: (client: Privy) => () => Promise<{
2471
2481
  user: _privy_io_api_types.User;
2472
2482
  }>;
2473
2483
 
2474
- declare const index$2_delegateWallet: typeof delegateWallet;
2475
- declare const index$2_revokeWallets: typeof revokeWallets;
2476
- declare namespace index$2 {
2484
+ declare const index$3_delegateWallet: typeof delegateWallet;
2485
+ declare const index$3_revokeWallets: typeof revokeWallets;
2486
+ declare namespace index$3 {
2477
2487
  export {
2478
- index$2_delegateWallet as delegateWallet,
2479
- index$2_revokeWallets as revokeWallets,
2488
+ index$3_delegateWallet as delegateWallet,
2489
+ index$3_revokeWallets as revokeWallets,
2480
2490
  };
2481
2491
  }
2482
2492
 
@@ -2585,34 +2595,180 @@ interface SendTransactionOutput {
2585
2595
  */
2586
2596
  declare const sendTransaction: ({ client, openAuthSession }: SendTransactionDependencies) => ({ user, transaction, address, redirectUrl, }: SendTransactionInput) => Promise<SendTransactionOutput>;
2587
2597
 
2588
- type index$1_SendTransactionDependencies = SendTransactionDependencies;
2589
- type index$1_SendTransactionInput = SendTransactionInput;
2590
- type index$1_SendTransactionOutput = SendTransactionOutput;
2591
- type index$1_SignMessageDependencies = SignMessageDependencies;
2592
- type index$1_SignMessageInput = SignMessageInput;
2593
- type index$1_SignMessageOutput = SignMessageOutput;
2594
- type index$1_SignTypedDataDependencies = SignTypedDataDependencies;
2595
- type index$1_SignTypedDataInput = SignTypedDataInput;
2596
- type index$1_SignTypedDataOutput = SignTypedDataOutput;
2597
- declare const index$1_sendTransaction: typeof sendTransaction;
2598
- declare const index$1_signMessage: typeof signMessage;
2599
- declare const index$1_signTypedData: typeof signTypedData;
2598
+ type index$2_SendTransactionDependencies = SendTransactionDependencies;
2599
+ type index$2_SendTransactionInput = SendTransactionInput;
2600
+ type index$2_SendTransactionOutput = SendTransactionOutput;
2601
+ type index$2_SignMessageDependencies = SignMessageDependencies;
2602
+ type index$2_SignMessageInput = SignMessageInput;
2603
+ type index$2_SignMessageOutput = SignMessageOutput;
2604
+ type index$2_SignTypedDataDependencies = SignTypedDataDependencies;
2605
+ type index$2_SignTypedDataInput = SignTypedDataInput;
2606
+ type index$2_SignTypedDataOutput = SignTypedDataOutput;
2607
+ declare const index$2_sendTransaction: typeof sendTransaction;
2608
+ declare const index$2_signMessage: typeof signMessage;
2609
+ declare const index$2_signTypedData: typeof signTypedData;
2610
+ declare namespace index$2 {
2611
+ export { index$2_sendTransaction as sendTransaction, index$2_signMessage as signMessage, index$2_signTypedData as signTypedData };
2612
+ export type { index$2_SendTransactionDependencies as SendTransactionDependencies, index$2_SendTransactionInput as SendTransactionInput, index$2_SendTransactionOutput as SendTransactionOutput, index$2_SignMessageDependencies as SignMessageDependencies, index$2_SignMessageInput as SignMessageInput, index$2_SignMessageOutput as SignMessageOutput, index$2_SignTypedDataDependencies as SignTypedDataDependencies, index$2_SignTypedDataInput as SignTypedDataInput, index$2_SignTypedDataOutput as SignTypedDataOutput };
2613
+ }
2614
+
2615
+ type index$1_LinkWithCrossAppAuthDependencies = LinkWithCrossAppAuthDependencies;
2616
+ type index$1_LinkWithCrossAppAuthInput = LinkWithCrossAppAuthInput;
2617
+ type index$1_LinkWithCrossAppAuthOutput = LinkWithCrossAppAuthOutput;
2618
+ type index$1_LoginWithCrossAppAuthDependencies = LoginWithCrossAppAuthDependencies;
2619
+ type index$1_LoginWithCrossAppAuthInput = LoginWithCrossAppAuthInput;
2620
+ type index$1_LoginWithCrossAppAuthOutput = LoginWithCrossAppAuthOutput;
2621
+ declare const index$1_linkWithCrossAppAuth: typeof linkWithCrossAppAuth;
2622
+ declare const index$1_loginWithCrossAppAuth: typeof loginWithCrossAppAuth;
2600
2623
  declare namespace index$1 {
2601
- export { index$1_sendTransaction as sendTransaction, index$1_signMessage as signMessage, index$1_signTypedData as signTypedData };
2602
- export type { index$1_SendTransactionDependencies as SendTransactionDependencies, index$1_SendTransactionInput as SendTransactionInput, index$1_SendTransactionOutput as SendTransactionOutput, index$1_SignMessageDependencies as SignMessageDependencies, index$1_SignMessageInput as SignMessageInput, index$1_SignMessageOutput as SignMessageOutput, index$1_SignTypedDataDependencies as SignTypedDataDependencies, index$1_SignTypedDataInput as SignTypedDataInput, index$1_SignTypedDataOutput as SignTypedDataOutput };
2603
- }
2604
-
2605
- type index_LinkWithCrossAppAuthDependencies = LinkWithCrossAppAuthDependencies;
2606
- type index_LinkWithCrossAppAuthInput = LinkWithCrossAppAuthInput;
2607
- type index_LinkWithCrossAppAuthOutput = LinkWithCrossAppAuthOutput;
2608
- type index_LoginWithCrossAppAuthDependencies = LoginWithCrossAppAuthDependencies;
2609
- type index_LoginWithCrossAppAuthInput = LoginWithCrossAppAuthInput;
2610
- type index_LoginWithCrossAppAuthOutput = LoginWithCrossAppAuthOutput;
2611
- declare const index_linkWithCrossAppAuth: typeof linkWithCrossAppAuth;
2612
- declare const index_loginWithCrossAppAuth: typeof loginWithCrossAppAuth;
2624
+ export { index$1_linkWithCrossAppAuth as linkWithCrossAppAuth, index$1_loginWithCrossAppAuth as loginWithCrossAppAuth, index$2 as wallet };
2625
+ export type { index$1_LinkWithCrossAppAuthDependencies as LinkWithCrossAppAuthDependencies, index$1_LinkWithCrossAppAuthInput as LinkWithCrossAppAuthInput, index$1_LinkWithCrossAppAuthOutput as LinkWithCrossAppAuthOutput, index$1_LoginWithCrossAppAuthDependencies as LoginWithCrossAppAuthDependencies, index$1_LoginWithCrossAppAuthInput as LoginWithCrossAppAuthInput, index$1_LoginWithCrossAppAuthOutput as LoginWithCrossAppAuthOutput };
2626
+ }
2627
+
2628
+ type DepositConfig = {
2629
+ currencies: Array<{
2630
+ symbol: string;
2631
+ name: string;
2632
+ logoURI: string;
2633
+ chains: Array<{
2634
+ caip2: string;
2635
+ address: string;
2636
+ decimals: number;
2637
+ }>;
2638
+ }>;
2639
+ chains: Record<string, {
2640
+ chainId: number;
2641
+ caip2: string;
2642
+ displayName: string;
2643
+ iconUrl: string;
2644
+ vmType: string;
2645
+ }>;
2646
+ };
2647
+ type DepositAddressQuote = {
2648
+ id: string;
2649
+ deposit_address: string;
2650
+ source_chain: string;
2651
+ source_currency: string;
2652
+ source_vm_type: string;
2653
+ destination_chain: string;
2654
+ destination_currency: string;
2655
+ destination_address: string;
2656
+ refund_address: string;
2657
+ slippage_bps: number;
2658
+ indicative_rate: string;
2659
+ time_estimate_seconds: number;
2660
+ created_at: string;
2661
+ };
2662
+ type DepositAddressOrderBase = {
2663
+ id: string;
2664
+ provider_request_id: string;
2665
+ source_chain: string;
2666
+ source_currency: string;
2667
+ source_amount: string;
2668
+ depositor_address: string;
2669
+ destination_chain: string;
2670
+ destination_currency: string;
2671
+ tracking_url: string;
2672
+ created_at: string;
2673
+ updated_at: string;
2674
+ };
2675
+ type CompletedDepositAddressOrder = DepositAddressOrderBase & {
2676
+ status: 'completed';
2677
+ destination_amount: string;
2678
+ };
2679
+ type IncompleteDepositAddressOrder = DepositAddressOrderBase & {
2680
+ status: 'executing' | 'refunded' | 'failed';
2681
+ destination_amount: null;
2682
+ };
2683
+ type DepositAddressOrder = CompletedDepositAddressOrder | IncompleteDepositAddressOrder;
2684
+ type DepositAddressPollingResult = {
2685
+ status: 'success';
2686
+ order: DepositAddressOrder;
2687
+ } | {
2688
+ status: 'aborted';
2689
+ error?: Error;
2690
+ } | {
2691
+ status: 'timeout';
2692
+ error?: Error;
2693
+ };
2694
+ type GenerateDepositAddressInput = {
2695
+ sourceChain: string;
2696
+ sourceCurrency: string;
2697
+ destinationChain: string;
2698
+ destinationCurrency: string;
2699
+ destinationAddress: string;
2700
+ refundAddress?: string;
2701
+ slippageBps?: number;
2702
+ };
2703
+ type WaitForDepositInput = {
2704
+ depositAddressId: string;
2705
+ quoteCreatedAt: string;
2706
+ signal?: AbortSignal;
2707
+ pollIntervalMs?: number;
2708
+ timeoutMs?: number;
2709
+ };
2710
+ type WaitForCompletionInput = {
2711
+ orderId: string;
2712
+ signal?: AbortSignal;
2713
+ pollIntervalMs?: number;
2714
+ timeoutMs?: number;
2715
+ };
2716
+ type GetDepositInput = {
2717
+ orderId: string;
2718
+ };
2719
+ type ResolveRefundAddressError = 'NOT_AUTHENTICATED' | 'UNSUPPORTED_CHAIN' | 'REFUND_WALLET_CREATION_FAILED';
2720
+ type ResolveRefundAddressResult = {
2721
+ ok: true;
2722
+ address: string;
2723
+ } | {
2724
+ ok: false;
2725
+ error: ResolveRefundAddressError;
2726
+ };
2727
+
2728
+ declare function generateDepositAddress(opts: GenerateDepositAddressInput & {
2729
+ privy: Privy;
2730
+ onWalletCreated?: () => Promise<unknown>;
2731
+ }): Promise<DepositAddressQuote>;
2732
+
2733
+ declare function resolveRefundAddress(opts: {
2734
+ privy: Privy;
2735
+ caip2: string;
2736
+ onWalletCreated?: () => Promise<unknown>;
2737
+ }): Promise<ResolveRefundAddressResult>;
2738
+
2739
+ declare function getDeposit(opts: GetDepositInput & {
2740
+ privy: Privy;
2741
+ }): Promise<DepositAddressOrder>;
2742
+ declare function waitForDeposit(opts: WaitForDepositInput & {
2743
+ privy: Privy;
2744
+ }): Promise<DepositAddressPollingResult>;
2745
+ declare function waitForCompletion(opts: WaitForCompletionInput & {
2746
+ privy: Privy;
2747
+ }): Promise<DepositAddressPollingResult>;
2748
+
2749
+ declare function getConfig(privy: Privy): Promise<DepositConfig>;
2750
+
2751
+ type index_CompletedDepositAddressOrder = CompletedDepositAddressOrder;
2752
+ type index_DepositAddressOrder = DepositAddressOrder;
2753
+ type index_DepositAddressPollingResult = DepositAddressPollingResult;
2754
+ type index_DepositAddressQuote = DepositAddressQuote;
2755
+ type index_DepositConfig = DepositConfig;
2756
+ type index_GenerateDepositAddressInput = GenerateDepositAddressInput;
2757
+ type index_GetDepositInput = GetDepositInput;
2758
+ type index_IncompleteDepositAddressOrder = IncompleteDepositAddressOrder;
2759
+ type index_ResolveRefundAddressError = ResolveRefundAddressError;
2760
+ type index_ResolveRefundAddressResult = ResolveRefundAddressResult;
2761
+ type index_WaitForCompletionInput = WaitForCompletionInput;
2762
+ type index_WaitForDepositInput = WaitForDepositInput;
2763
+ declare const index_generateDepositAddress: typeof generateDepositAddress;
2764
+ declare const index_getConfig: typeof getConfig;
2765
+ declare const index_getDeposit: typeof getDeposit;
2766
+ declare const index_resolveRefundAddress: typeof resolveRefundAddress;
2767
+ declare const index_waitForCompletion: typeof waitForCompletion;
2768
+ declare const index_waitForDeposit: typeof waitForDeposit;
2613
2769
  declare namespace index {
2614
- export { index_linkWithCrossAppAuth as linkWithCrossAppAuth, index_loginWithCrossAppAuth as loginWithCrossAppAuth, index$1 as wallet };
2615
- export type { index_LinkWithCrossAppAuthDependencies as LinkWithCrossAppAuthDependencies, index_LinkWithCrossAppAuthInput as LinkWithCrossAppAuthInput, index_LinkWithCrossAppAuthOutput as LinkWithCrossAppAuthOutput, index_LoginWithCrossAppAuthDependencies as LoginWithCrossAppAuthDependencies, index_LoginWithCrossAppAuthInput as LoginWithCrossAppAuthInput, index_LoginWithCrossAppAuthOutput as LoginWithCrossAppAuthOutput };
2770
+ export { index_generateDepositAddress as generateDepositAddress, index_getConfig as getConfig, index_getDeposit as getDeposit, index_resolveRefundAddress as resolveRefundAddress, index_waitForCompletion as waitForCompletion, index_waitForDeposit as waitForDeposit };
2771
+ export type { index_CompletedDepositAddressOrder as CompletedDepositAddressOrder, index_DepositAddressOrder as DepositAddressOrder, index_DepositAddressPollingResult as DepositAddressPollingResult, index_DepositAddressQuote as DepositAddressQuote, index_DepositConfig as DepositConfig, index_GenerateDepositAddressInput as GenerateDepositAddressInput, index_GetDepositInput as GetDepositInput, index_IncompleteDepositAddressOrder as IncompleteDepositAddressOrder, index_ResolveRefundAddressError as ResolveRefundAddressError, index_ResolveRefundAddressResult as ResolveRefundAddressResult, index_WaitForCompletionInput as WaitForCompletionInput, index_WaitForDepositInput as WaitForDepositInput };
2616
2772
  }
2617
2773
 
2618
2774
  interface SignWalletRequestInput {
@@ -2885,5 +3041,5 @@ declare const THIRDWEB: "thirdweb";
2885
3041
  /** @deprecated {@link SmartWalletType} is a well-typed union, use the `'nexus'` literal instead */
2886
3042
  declare const NEXUS: "nexus";
2887
3043
 
2888
- export { ALL_WALLET_CLIENT_TYPES, BICONOMY, COINBASE_SMART_WALLET, ConnectedStandardSolanaWallet, EmbeddedBitcoinWalletProvider, EmbeddedProviderError, InMemoryCache, KERNEL, LIGHT_ACCOUNT, LocalStorage, MoonpayApiError, NEXUS, PrivyApiError, PrivyClientError, PrivyConnectorError, PrivyEmbeddedWalletErrorCode, PrivyProviderRpcError, ProviderErrors, SAFE, SUPPORTED_CONNECTOR_TYPES, SolanaClient, SolanaUsdcAddressMap, THIRDWEB, UsdcAddressMap, addSessionSigners, chainToMoonpayCurrency, countryCodesAndNumbers, create, createErrorFormatter, createSiwsMessage, index as crossApp, Privy as default, index$2 as delegatedActions, errorIndicatesMaxMfaRetries, errorIndicatesMfaCanceled, errorIndicatesMfaRateLimit, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, errorIndicatesRecoveryIsNeeded, formatLamportsAmount, formatPhoneNumber, formatTokenAmount, formatWalletAddress, formatWeiAmount, fundingMethodToMoonpayPaymentMethod, generateAuthorizationSignature, generateWalletIdempotencyKey, getAllUserEmbeddedBitcoinWallets, getAllUserEmbeddedEthereumWallets, getAllUserEmbeddedSolanaWallets, getCoinbaseOnRampUrl, getEntropyDetailsFromAccount, getEntropyDetailsFromUser, getIsTokenUsdc, getJsonRpcEndpointFromChain, getPhoneCountryCodeAndNumber, getPlaceholderPhoneNumber, getSolanaClusterDisplayName, getSolanaRpcEndpointForCluster, getSolanaUsdcMintAddressForCluster, getUserEmbeddedEthereumWallet, getUserEmbeddedSolanaWallet, getUserEmbeddedWallet, getUserSmartWallet, getWallet, isEmbeddedWalletAccount, isSupportedChainIdForCoinbaseOnramp, isSupportedChainIdForMoonpay, isUnifiedWallet, lastFourDigits, phoneNumberTypingFormatter, poll, rawSign, removeSessionSigners, rpc, throwIfInvalidRecoveryUpgradePath, toCoinbaseAssetId, toCoinbaseBlockchainFromChainId, toObjectKeys, toWalletApiUnsignedEthTransaction, updateWallet, validatePhoneNumber };
2889
- export type { Cluster, CoinbaseAssetId, CoinbaseWalletClientType, ConnectorType, CreateSiwsMessageOpts, EIP1193Provider, EmbeddedWalletClientType, EmbeddedWalletConfig, EmbeddedWalletRecoveryOptions, EntropyIdVerifier, ErrorMessageMap, ExternalWallet, ExternalWalletMetadata, FundingMethod, FundingProvider, GenerateAuthorizationSignatureInput, GenerateAuthorizationSignatureOutput, IdentifierString, InjectedWalletClientType, LogLevel, Logger, MfaMethod, MfaPromise, MfaSubmitArgs, MfaSubmitPromise, MoonpayTransactionStatus, MoonpayTransactionStatusResponse, OAuthProviderType, OnNeedsRecovery, PaymentOption, PollOptions, PollResult, PreparedTransactionRequest, PrivyEmbeddedSolanaWalletProvider, PrivyEmbeddedWalletProvider, Quantity, SetRecoveryInput, SmartWalletType, SolanaCluster, SolanaSignAndSendTransactionInput, SolanaSignAndSendTransactionMode, SolanaSignAndSendTransactionOptions, SolanaSignAndSendTransactionOutput, SolanaSignMessageInput, SolanaSignMessageOutput, SolanaSignTransactionInput, SolanaSignTransactionOptions, SolanaSignTransactionOutput, SolanaStandardWallet, SolanaTransactionCommitment, Storage, UnknownWalletClientType, UnsignedTransactionRequest, UnsignedTransactionRequestWithChainId, WalletBranding, WalletClientType, WalletConnectWalletClientType };
3044
+ export { ALL_WALLET_CLIENT_TYPES, BICONOMY, COINBASE_SMART_WALLET, ConnectedStandardSolanaWallet, EmbeddedBitcoinWalletProvider, EmbeddedProviderError, InMemoryCache, KERNEL, LIGHT_ACCOUNT, LocalStorage, MoonpayApiError, NEXUS, PrivyApiError, PrivyClientError, PrivyConnectorError, PrivyEmbeddedWalletErrorCode, PrivyProviderRpcError, ProviderErrors, SAFE, SUPPORTED_CONNECTOR_TYPES, SolanaClient, SolanaUsdcAddressMap, THIRDWEB, UsdcAddressMap, addSessionSigners, chainToMoonpayCurrency, countryCodesAndNumbers, create, createErrorFormatter, createSiwsMessage, index$1 as crossApp, Privy as default, index$3 as delegatedActions, index as depositAddress, errorIndicatesMaxMfaRetries, errorIndicatesMfaCanceled, errorIndicatesMfaRateLimit, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, errorIndicatesRecoveryIsNeeded, formatLamportsAmount, formatPhoneNumber, formatTokenAmount, formatWalletAddress, formatWeiAmount, fundingMethodToMoonpayPaymentMethod, generateAuthorizationSignature, generateWalletIdempotencyKey, getAllUserEmbeddedBitcoinWallets, getAllUserEmbeddedEthereumWallets, getAllUserEmbeddedSolanaWallets, getCoinbaseOnRampUrl, getEntropyDetailsFromAccount, getEntropyDetailsFromUser, getIsTokenUsdc, getJsonRpcEndpointFromChain, getPhoneCountryCodeAndNumber, getPlaceholderPhoneNumber, getSolanaClusterDisplayName, getSolanaRpcEndpointForCluster, getSolanaUsdcMintAddressForCluster, getUserEmbeddedEthereumWallet, getUserEmbeddedSolanaWallet, getUserEmbeddedWallet, getUserSmartWallet, getWallet, isEmbeddedWalletAccount, isSupportedChainIdForCoinbaseOnramp, isSupportedChainIdForMoonpay, isUnifiedWallet, lastFourDigits, phoneNumberTypingFormatter, poll, rawSign, removeSessionSigners, rpc, throwIfInvalidRecoveryUpgradePath, toCoinbaseAssetId, toCoinbaseBlockchainFromChainId, toObjectKeys, toWalletApiUnsignedEthTransaction, updateWallet, validatePhoneNumber };
3045
+ export type { Cluster, CoinbaseAssetId, CoinbaseWalletClientType, CompletedDepositAddressOrder, ConnectorType, CreateSiwsMessageOpts, DepositAddressOrder, DepositAddressPollingResult, DepositAddressQuote, DepositConfig, EIP1193Provider, EmbeddedWalletClientType, EmbeddedWalletConfig, EmbeddedWalletRecoveryOptions, EntropyIdVerifier, ErrorMessageMap, ExternalWallet, ExternalWalletMetadata, FundingMethod, FundingProvider, GenerateAuthorizationSignatureInput, GenerateAuthorizationSignatureOutput, GenerateDepositAddressInput, GetDepositInput, IdentifierString, IncompleteDepositAddressOrder, InjectedWalletClientType, LogLevel, Logger, MfaMethod, MfaPromise, MfaSubmitArgs, MfaSubmitPromise, MoonpayTransactionStatus, MoonpayTransactionStatusResponse, OAuthProviderType, OnNeedsRecovery, PaymentOption, PollOptions, PollResult, PreparedTransactionRequest, PrivyEmbeddedSolanaWalletProvider, PrivyEmbeddedWalletProvider, Quantity, ResolveRefundAddressError, ResolveRefundAddressResult, SetRecoveryInput, SmartWalletType, SolanaCluster, SolanaSignAndSendTransactionInput, SolanaSignAndSendTransactionMode, SolanaSignAndSendTransactionOptions, SolanaSignAndSendTransactionOutput, SolanaSignMessageInput, SolanaSignMessageOutput, SolanaSignTransactionInput, SolanaSignTransactionOptions, SolanaSignTransactionOutput, SolanaStandardWallet, SolanaTransactionCommitment, Storage, UnknownWalletClientType, UnsignedTransactionRequest, UnsignedTransactionRequestWithChainId, WaitForCompletionInput, WaitForDepositInput, WalletBranding, WalletClientType, WalletConnectWalletClientType };