@privy-io/react-auth 2.23.0 → 2.24.0-beta-20250829191935

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 (45) hide show
  1. package/dist/cjs/abstract-smart-wallets.js +1 -1
  2. package/dist/cjs/extended-chains.js +1 -1
  3. package/dist/cjs/farcaster.js +1 -1
  4. package/dist/cjs/index.js +1 -1
  5. package/dist/cjs/{internal-context-C3Ps4gAt.js → internal-context-B_aIJuQh.js} +1 -1
  6. package/dist/cjs/privy-provider-DvBetfj7.js +34 -0
  7. package/dist/cjs/{smart-wallets-DiLEwIKs.js → smart-wallets-BxzUj4XV.js} +1 -1
  8. package/dist/cjs/smart-wallets.js +1 -1
  9. package/dist/cjs/solana.js +1 -1
  10. package/dist/cjs/ui.js +1 -1
  11. package/dist/cjs/{use-sign-with-user-signer-L1_W0zce.js → use-sign-with-user-signer-mIruAdfm.js} +1 -1
  12. package/dist/cjs/{useActiveWallet-DEknGgdp.js → useActiveWallet-BI2cGlZO.js} +1 -1
  13. package/dist/cjs/{useFundWallet-BOm_c85i.js → useFundWallet-DIA0rzqo.js} +1 -1
  14. package/dist/dts/extended-chains.d.mts +2 -1
  15. package/dist/dts/extended-chains.d.ts +2 -1
  16. package/dist/dts/farcaster.d.mts +2 -1
  17. package/dist/dts/farcaster.d.ts +2 -1
  18. package/dist/dts/index.d.mts +9 -17
  19. package/dist/dts/index.d.ts +9 -17
  20. package/dist/dts/smart-wallets.d.mts +2 -1
  21. package/dist/dts/smart-wallets.d.ts +2 -1
  22. package/dist/dts/solana.d.mts +99 -16
  23. package/dist/dts/solana.d.ts +99 -16
  24. package/dist/dts/{types-cjyKPOmY.d.mts → types-zpHmPFW8.d.mts} +37 -1
  25. package/dist/dts/{types-cjyKPOmY.d.ts → types-zpHmPFW8.d.ts} +37 -1
  26. package/dist/dts/ui.d.mts +2 -1
  27. package/dist/dts/ui.d.ts +2 -1
  28. package/dist/dts/{useSolanaWallets-CZcmg0rm.d.mts → useSolanaWallets-Bnyf2wo3.d.mts} +1 -1
  29. package/dist/dts/{useSolanaWallets-CZcmg0rm.d.ts → useSolanaWallets-Bnyf2wo3.d.ts} +1 -1
  30. package/dist/esm/abstract-smart-wallets.mjs +1 -1
  31. package/dist/esm/extended-chains.mjs +1 -1
  32. package/dist/esm/farcaster.mjs +1 -1
  33. package/dist/esm/index.mjs +1 -1
  34. package/dist/esm/{internal-context-D0EM1HLm.mjs → internal-context-qdNgTV5f.mjs} +1 -1
  35. package/dist/esm/privy-provider-CAS3yDsS.mjs +31 -0
  36. package/dist/esm/{smart-wallets-eeVPZj7Y.mjs → smart-wallets-DyGp_Lr1.mjs} +1 -1
  37. package/dist/esm/smart-wallets.mjs +1 -1
  38. package/dist/esm/solana.mjs +1 -1
  39. package/dist/esm/ui.mjs +2 -2
  40. package/dist/esm/{use-sign-with-user-signer-BWQ0PcRX.mjs → use-sign-with-user-signer-CpL9I6iB.mjs} +1 -1
  41. package/dist/esm/{useActiveWallet-CzofJJwe.mjs → useActiveWallet-DgjaLYuh.mjs} +1 -1
  42. package/dist/esm/{useFundWallet-YwYOhvEX.mjs → useFundWallet-Cd4d05ts.mjs} +1 -1
  43. package/package.json +9 -4
  44. package/dist/cjs/privy-provider-Q9EYyb3N.js +0 -34
  45. package/dist/esm/privy-provider-BOSSQASA.mjs +0 -31
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import react__default, { MouseEvent } from 'react';
3
- import { c as UserRecoveryMethod, n as PrivyFarcasterSignerInitResponse, o as MfaSubmitArgs, E as EthereumRpcRequestType, p as SolanaRpcRequestType, q as EthereumRpcResponseType, r as SolanaRpcResponseType, s as EIP1193Provider, u as EntropyIdVerifier$1, H as HDWalletWithMetadata, v as RequestArguments, w as WalletConnector, B as BaseConnectedEthereumWallet, x as PrivyProxyProvider, y as WalletClientType, z as ConnectedWalletMetadata, A as PrivyClientConfig, D as ConnectorType, G as SetBaseAccountSdkType, I as WalletListEntry, J as AppConfig, K as BaseConnectedWallet, m as SolanaWalletConnector, U as User, N as ConnectWalletModalOptions, Q as LoginModalOptions, f as CreateWalletOptions, W as Wallet, T as SetWalletRecoveryOptions, j as SignMessageModalUIOptions, V as SignTypedDataParams, M as MfaMethod, X as UnsignedTransactionRequest, i as SendTransactionModalUIOptions, Y as FundWalletConfig, Z as ConnectedWallet, O as OAuthTokens, _ as CrossAppProviderDetails, $ as OAuthProviderType, a0 as MoonpaySignRequest, a1 as MoonpaySignResponse, a2 as SmartWalletConfig, a3 as SiwsMessageType, L as LoginMethod, a4 as ExternalWalletMetadata, a5 as TelegramAuthResult, a6 as TelegramWebAppData, a7 as OAuthUserInfo, a8 as OAuthFlowState, a9 as LoginWithCode, aa as OtpFlowState, ab as PasskeyFlowState, ac as SiweFlowState, ad as SiwsFlowState, a as LinkedAccountWithMetadata, ae as BaseAccountSdkType, af as UnsignedTransactionRequestWithChainId, ag as BaseConnectedWalletType, C as ConnectedSolanaWallet, ah as SessionSignerInput, ai as TelegramAuthFlowState } from './types-cjyKPOmY.js';
4
- export { aB as Apple, aO as AppleOAuthWithMetadata, aW as ContractUIOptions, aF as CrossAppAccount, aR as CrossAppAccountWithMetadata, ay as Discord, aJ as DiscordOAuthWithMetadata, aT as Email, at as EmailWithMetadata, a_ as Farcaster, aP as FarcasterWithMetadata, az as Github, aK as GithubOAuthWithMetadata, aw as Google, aH as GoogleOAuthWithMetadata, aD as Line, aM as LineOAuthWithMetadata, aG as LinkedAccountType, aA as LinkedIn, aN as LinkedInOAuthWithMetadata, b0 as LoginMethodOrderOption, ak as MessageTypes, am as MoonpayConfig, an as MoonpayCurrencyCode, aY as MoonpayFundingConfig, ao as MoonpayPaymentMethod, aX as NativeFundingConfig, as as NonEmptyArray, a$ as Passkey, aS as PasskeyWithMetadata, aU as Phone, au as PhoneWithMetadata, aZ as PriceDisplayOptions, P as PrivyErrorCode, ap as Quantity, al as SmartWallet, e as SolanaCluster, l as SolanaFundingConfig, S as SolanaTransactionReceipt, d as SupportedSolanaTransaction, aE as Telegram, aQ as TelegramWithMetadata, aC as Tiktok, aL as TiktokOAuthWithMetadata, aq as TransactionLog, ar as TransactionReceipt, aV as TransactionUIOptions, ax as Twitter, aI as TwitterOAuthWithMetadata, aj as TypedMessage, av as WalletWithMetadata } from './types-cjyKPOmY.js';
3
+ import { c as UserRecoveryMethod, o as PrivyFarcasterSignerInitResponse, p as MfaSubmitArgs, E as EthereumRpcRequestType, q as SolanaRpcRequestType, r as EthereumRpcResponseType, s as SolanaRpcResponseType, u as EIP1193Provider, v as EntropyIdVerifier$1, H as HDWalletWithMetadata, w as RequestArguments, x as WalletConnector, B as BaseConnectedEthereumWallet, y as PrivyProxyProvider, z as WalletClientType, A as ConnectedWalletMetadata, D as PrivyClientConfig, G as ConnectorType, I as SetBaseAccountSdkType, J as WalletListEntry, K as AppConfig, N as BaseConnectedWallet, n as SolanaWalletConnector, U as User, Q as ConnectWalletModalOptions, T as LoginModalOptions, f as CreateWalletOptions, W as Wallet, V as SetWalletRecoveryOptions, j as SignMessageModalUIOptions, X as SignTypedDataParams, M as MfaMethod, Y as UnsignedTransactionRequest, i as SendTransactionModalUIOptions, Z as FundWalletConfig, _ as ConnectedWallet, O as OAuthTokens, $ as CrossAppProviderDetails, a0 as OAuthProviderType, a1 as MoonpaySignRequest, a2 as MoonpaySignResponse, a3 as SmartWalletConfig, a4 as SiwsMessageType, L as LoginMethod, a5 as ExternalWalletMetadata, a6 as TelegramAuthResult, a7 as TelegramWebAppData, a8 as OAuthUserInfo, a9 as OAuthFlowState, aa as LoginWithCode, ab as OtpFlowState, ac as PasskeyFlowState, ad as SiweFlowState, a as LinkedAccountWithMetadata, ae as BaseAccountSdkType, af as UnsignedTransactionRequestWithChainId, ag as BaseConnectedWalletType, C as ConnectedSolanaWallet, ah as SessionSignerInput, ai as TelegramAuthFlowState } from './types-zpHmPFW8.js';
4
+ export { aB as Apple, aO as AppleOAuthWithMetadata, aW as ContractUIOptions, aF as CrossAppAccount, aR as CrossAppAccountWithMetadata, ay as Discord, aJ as DiscordOAuthWithMetadata, aT as Email, at as EmailWithMetadata, a_ as Farcaster, aP as FarcasterWithMetadata, az as Github, aK as GithubOAuthWithMetadata, aw as Google, aH as GoogleOAuthWithMetadata, aD as Line, aM as LineOAuthWithMetadata, aG as LinkedAccountType, aA as LinkedIn, aN as LinkedInOAuthWithMetadata, b0 as LoginMethodOrderOption, ak as MessageTypes, am as MoonpayConfig, an as MoonpayCurrencyCode, aY as MoonpayFundingConfig, ao as MoonpayPaymentMethod, aX as NativeFundingConfig, as as NonEmptyArray, a$ as Passkey, aS as PasskeyWithMetadata, aU as Phone, au as PhoneWithMetadata, aZ as PriceDisplayOptions, P as PrivyErrorCode, ap as Quantity, b1 as SiwsFlowState, al as SmartWallet, e as SolanaCluster, m as SolanaFundingConfig, S as SolanaTransactionReceipt, d as SupportedSolanaTransaction, aE as Telegram, aQ as TelegramWithMetadata, aC as Tiktok, aL as TiktokOAuthWithMetadata, aq as TransactionLog, ar as TransactionReceipt, aV as TransactionUIOptions, ax as Twitter, aI as TwitterOAuthWithMetadata, aj as TypedMessage, av as WalletWithMetadata } from './types-zpHmPFW8.js';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { TurnstileProps } from '@marsidev/react-turnstile';
7
7
  import { AppKit } from '@reown/appkit';
@@ -16,10 +16,11 @@ import * as _simplewebauthn_types from '@simplewebauthn/types';
16
16
  import { PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/types';
17
17
  import { Cluster } from '@solana/web3.js';
18
18
  import { FetchOptions } from 'ofetch';
19
- import { P as PrivyEvents } from './useSolanaWallets-CZcmg0rm.js';
20
- export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-CZcmg0rm.js';
19
+ import { P as PrivyEvents } from './useSolanaWallets-Bnyf2wo3.js';
20
+ export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-Bnyf2wo3.js';
21
21
  import * as viem_accounts from 'viem/accounts';
22
22
  import '@coinbase/wallet-sdk';
23
+ import '@solana/kit';
23
24
  import '@solana/wallet-adapter-base';
24
25
  import '@base-org/account';
25
26
  import '@solana/wallet-standard-features';
@@ -3171,9 +3172,8 @@ type UseLoginWithSiws = {
3171
3172
  * @param opts.address {string} Base58-encoded Solana address performing the signing.
3172
3173
  * @returns {string} SIWS message for signing.
3173
3174
  */
3174
- generateSiwsMessage: ({ address, disableSignup, }: {
3175
+ generateSiwsMessage: ({ address }: {
3175
3176
  address: string;
3176
- disableSignup?: boolean;
3177
3177
  }) => Promise<string>;
3178
3178
  /**
3179
3179
  * Log a user in with a SIWS message and signature.
@@ -3188,12 +3188,8 @@ type UseLoginWithSiws = {
3188
3188
  message: string;
3189
3189
  disableSignup?: boolean;
3190
3190
  }) => Promise<User>;
3191
- /**
3192
- * The current state of the SIWS login operation
3193
- */
3194
- state: SiwsFlowState;
3195
3191
  };
3196
- declare const useLoginWithSiws: (callbacks?: PrivyEvents["login"]) => UseLoginWithSiws;
3192
+ declare const useLoginWithSiws: () => UseLoginWithSiws;
3197
3193
 
3198
3194
  type UseLinkWithSiws = {
3199
3195
  /**
@@ -3226,12 +3222,8 @@ type UseLinkWithSiws = {
3226
3222
  user: User;
3227
3223
  linkedAccount: LinkedAccountWithMetadata | null;
3228
3224
  }>;
3229
- /**
3230
- * The current state of the SIWS link operation
3231
- */
3232
- state: SiwsFlowState;
3233
3225
  };
3234
- declare const useLinkWithSiws: (callbacks?: PrivyEvents["linkAccount"]) => UseLinkWithSiws;
3226
+ declare const useLinkWithSiws: () => UseLinkWithSiws;
3235
3227
 
3236
3228
  /**
3237
3229
  * Use this hook to sign a transaction using the embedded wallet.
@@ -4333,4 +4325,4 @@ declare const useMigrateWallets: () => {
4333
4325
  }>;
4334
4326
  };
4335
4327
 
4336
- export { BaseConnectedWalletType, Captcha, ConnectWalletModalOptions, ConnectedSolanaWallet, ConnectedWallet, ConnectorManager, type CustomAuthFlowState, EIP1193Provider, EthereumWalletConnector, FundWalletConfig, type JwtAuthFlowState, LinkedAccountWithMetadata, LoginModal, LoginModalOptions, LoginWithCode, MfaMethod, OAuthFlowState, OAuthProviderType, OAuthTokens, OtpFlowState, PasskeyFlowState, PrivyClient, PrivyClientConfig, PrivyEvents, type PrivyInterface, PrivyProvider, type PrivyProviderProps, type SendCodeToEmail, type SendCodeToSms, SendTransactionModalUIOptions, SignMessageModalUIOptions, SignTypedDataParams, SiweFlowState, SiwsFlowState, TelegramAuthFlowState, UnsignedTransactionRequest, type UseAuthorizationSignatureInterface, type UseBaseAccountSdkInterface, type UseConnectBaseAccountInterface, type UseConnectCoinbaseSmartWalletInterface, type UseCustomAuth, type UseDelegatedActionsInterface, type UseFundWalletInterface, type UseImportWalletInterface, type UseLinkJwtAccount, type UseLinkWithPasskey, type UseLinkWithSiws, type UseLoginWithEmail, type UseLoginWithPasskey, type UseLoginWithSiws, type UseLoginWithSms, type UseLoginWithTelegram, type UseOAuthTokens, type UseRecoverEmbeddedWalletInterface, type UseSessionSignersInterface, type UseSignupWithPasskey, type UseSubscribeToJwtAuthWithFlagInput, type UseSyncJwtBasedAuthStateInput, type UseSyncJwtBasedAuthStateInterface, type UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletListEntry, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getCustomerAccessToken as getAccessToken, getEmbeddedConnectedWallet, toViemAccount, useActiveWallet, useAuthMfa, useAuthMfaEnrollment, useAuthorizationSignature, useBaseAccountSdk, useConnectBaseAccount, useConnectCoinbaseSmartWallet, useConnectOrCreateWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useFarcasterSigner, useFundWallet, useGuestAccounts, useHeadlessDelegatedActions, useIdentityToken, useImportWallet, useLinkAccount, useLinkJwtAccount, useLinkWithPasskey, useLinkWithSiwe, useLinkWithSiws, useLogin, useLoginWithEmail, useLoginWithFarcasterV2, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSiwe, useLoginWithSiws, useLoginWithSms, useLoginWithTelegram, useLogout, useMfa, useMfaEnrollment, useMigrateWallets, useModalStatus, useOAuthTokens, usePrivy, useRecoverEmbeddedWallet, useRegisterMfaListener, useSendTransaction, useSessionSigners, useSetWalletPassword, useSetWalletRecovery, useSign7702Authorization, useSignAuthorization, useSignMessage, useSignTransaction, useSignTypedData, useSignupWithPasskey, useSubscribeToJwtAuthWithFlag, useSyncJwtBasedAuthState, useToken, useUpdateAccount, useUpdateEmail, useUser, useWallets };
4328
+ export { BaseConnectedWalletType, Captcha, ConnectWalletModalOptions, ConnectedSolanaWallet, ConnectedWallet, ConnectorManager, type CustomAuthFlowState, EIP1193Provider, EthereumWalletConnector, FundWalletConfig, type JwtAuthFlowState, LinkedAccountWithMetadata, LoginModal, LoginModalOptions, LoginWithCode, MfaMethod, OAuthFlowState, OAuthProviderType, OAuthTokens, OtpFlowState, PasskeyFlowState, PrivyClient, PrivyClientConfig, PrivyEvents, type PrivyInterface, PrivyProvider, type PrivyProviderProps, type SendCodeToEmail, type SendCodeToSms, SendTransactionModalUIOptions, SignMessageModalUIOptions, SignTypedDataParams, SiweFlowState, TelegramAuthFlowState, UnsignedTransactionRequest, type UseAuthorizationSignatureInterface, type UseBaseAccountSdkInterface, type UseConnectBaseAccountInterface, type UseConnectCoinbaseSmartWalletInterface, type UseCustomAuth, type UseDelegatedActionsInterface, type UseFundWalletInterface, type UseImportWalletInterface, type UseLinkJwtAccount, type UseLinkWithPasskey, type UseLinkWithSiws, type UseLoginWithEmail, type UseLoginWithPasskey, type UseLoginWithSiws, type UseLoginWithSms, type UseLoginWithTelegram, type UseOAuthTokens, type UseRecoverEmbeddedWalletInterface, type UseSessionSignersInterface, type UseSignupWithPasskey, type UseSubscribeToJwtAuthWithFlagInput, type UseSyncJwtBasedAuthStateInput, type UseSyncJwtBasedAuthStateInterface, type UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletListEntry, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getCustomerAccessToken as getAccessToken, getEmbeddedConnectedWallet, toViemAccount, useActiveWallet, useAuthMfa, useAuthMfaEnrollment, useAuthorizationSignature, useBaseAccountSdk, useConnectBaseAccount, useConnectCoinbaseSmartWallet, useConnectOrCreateWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useFarcasterSigner, useFundWallet, useGuestAccounts, useHeadlessDelegatedActions, useIdentityToken, useImportWallet, useLinkAccount, useLinkJwtAccount, useLinkWithPasskey, useLinkWithSiwe, useLinkWithSiws, useLogin, useLoginWithEmail, useLoginWithFarcasterV2, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSiwe, useLoginWithSiws, useLoginWithSms, useLoginWithTelegram, useLogout, useMfa, useMfaEnrollment, useMigrateWallets, useModalStatus, useOAuthTokens, usePrivy, useRecoverEmbeddedWallet, useRegisterMfaListener, useSendTransaction, useSessionSigners, useSetWalletPassword, useSetWalletRecovery, useSign7702Authorization, useSignAuthorization, useSignMessage, useSignTransaction, useSignTypedData, useSignupWithPasskey, useSubscribeToJwtAuthWithFlag, useSyncJwtBasedAuthState, useToken, useUpdateAccount, useUpdateEmail, useUser, useWallets };
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import react__default, { MouseEvent } from 'react';
3
- import { c as UserRecoveryMethod, n as PrivyFarcasterSignerInitResponse, o as MfaSubmitArgs, E as EthereumRpcRequestType, p as SolanaRpcRequestType, q as EthereumRpcResponseType, r as SolanaRpcResponseType, s as EIP1193Provider, u as EntropyIdVerifier$1, H as HDWalletWithMetadata, v as RequestArguments, w as WalletConnector, B as BaseConnectedEthereumWallet, x as PrivyProxyProvider, y as WalletClientType, z as ConnectedWalletMetadata, A as PrivyClientConfig, D as ConnectorType, G as SetBaseAccountSdkType, I as WalletListEntry, J as AppConfig, K as BaseConnectedWallet, m as SolanaWalletConnector, U as User, N as ConnectWalletModalOptions, Q as LoginModalOptions, f as CreateWalletOptions, W as Wallet, T as SetWalletRecoveryOptions, j as SignMessageModalUIOptions, V as SignTypedDataParams, M as MfaMethod, X as UnsignedTransactionRequest, i as SendTransactionModalUIOptions, Y as FundWalletConfig, Z as ConnectedWallet, O as OAuthTokens, _ as CrossAppProviderDetails, $ as OAuthProviderType, a0 as MoonpaySignRequest, a1 as MoonpaySignResponse, a2 as SmartWalletConfig, a3 as SiwsMessageType, L as LoginMethod, a4 as ExternalWalletMetadata, a5 as TelegramAuthResult, a6 as TelegramWebAppData, a7 as OAuthUserInfo, a8 as OAuthFlowState, a9 as LoginWithCode, aa as OtpFlowState, ab as PasskeyFlowState, ac as SiweFlowState, ad as SiwsFlowState, a as LinkedAccountWithMetadata, ae as BaseAccountSdkType, af as UnsignedTransactionRequestWithChainId, ag as BaseConnectedWalletType, C as ConnectedSolanaWallet, ah as SessionSignerInput, ai as TelegramAuthFlowState } from './types-cjyKPOmY.js';
4
- export { aB as Apple, aO as AppleOAuthWithMetadata, aW as ContractUIOptions, aF as CrossAppAccount, aR as CrossAppAccountWithMetadata, ay as Discord, aJ as DiscordOAuthWithMetadata, aT as Email, at as EmailWithMetadata, a_ as Farcaster, aP as FarcasterWithMetadata, az as Github, aK as GithubOAuthWithMetadata, aw as Google, aH as GoogleOAuthWithMetadata, aD as Line, aM as LineOAuthWithMetadata, aG as LinkedAccountType, aA as LinkedIn, aN as LinkedInOAuthWithMetadata, b0 as LoginMethodOrderOption, ak as MessageTypes, am as MoonpayConfig, an as MoonpayCurrencyCode, aY as MoonpayFundingConfig, ao as MoonpayPaymentMethod, aX as NativeFundingConfig, as as NonEmptyArray, a$ as Passkey, aS as PasskeyWithMetadata, aU as Phone, au as PhoneWithMetadata, aZ as PriceDisplayOptions, P as PrivyErrorCode, ap as Quantity, al as SmartWallet, e as SolanaCluster, l as SolanaFundingConfig, S as SolanaTransactionReceipt, d as SupportedSolanaTransaction, aE as Telegram, aQ as TelegramWithMetadata, aC as Tiktok, aL as TiktokOAuthWithMetadata, aq as TransactionLog, ar as TransactionReceipt, aV as TransactionUIOptions, ax as Twitter, aI as TwitterOAuthWithMetadata, aj as TypedMessage, av as WalletWithMetadata } from './types-cjyKPOmY.js';
3
+ import { c as UserRecoveryMethod, o as PrivyFarcasterSignerInitResponse, p as MfaSubmitArgs, E as EthereumRpcRequestType, q as SolanaRpcRequestType, r as EthereumRpcResponseType, s as SolanaRpcResponseType, u as EIP1193Provider, v as EntropyIdVerifier$1, H as HDWalletWithMetadata, w as RequestArguments, x as WalletConnector, B as BaseConnectedEthereumWallet, y as PrivyProxyProvider, z as WalletClientType, A as ConnectedWalletMetadata, D as PrivyClientConfig, G as ConnectorType, I as SetBaseAccountSdkType, J as WalletListEntry, K as AppConfig, N as BaseConnectedWallet, n as SolanaWalletConnector, U as User, Q as ConnectWalletModalOptions, T as LoginModalOptions, f as CreateWalletOptions, W as Wallet, V as SetWalletRecoveryOptions, j as SignMessageModalUIOptions, X as SignTypedDataParams, M as MfaMethod, Y as UnsignedTransactionRequest, i as SendTransactionModalUIOptions, Z as FundWalletConfig, _ as ConnectedWallet, O as OAuthTokens, $ as CrossAppProviderDetails, a0 as OAuthProviderType, a1 as MoonpaySignRequest, a2 as MoonpaySignResponse, a3 as SmartWalletConfig, a4 as SiwsMessageType, L as LoginMethod, a5 as ExternalWalletMetadata, a6 as TelegramAuthResult, a7 as TelegramWebAppData, a8 as OAuthUserInfo, a9 as OAuthFlowState, aa as LoginWithCode, ab as OtpFlowState, ac as PasskeyFlowState, ad as SiweFlowState, a as LinkedAccountWithMetadata, ae as BaseAccountSdkType, af as UnsignedTransactionRequestWithChainId, ag as BaseConnectedWalletType, C as ConnectedSolanaWallet, ah as SessionSignerInput, ai as TelegramAuthFlowState } from './types-zpHmPFW8.js';
4
+ export { aB as Apple, aO as AppleOAuthWithMetadata, aW as ContractUIOptions, aF as CrossAppAccount, aR as CrossAppAccountWithMetadata, ay as Discord, aJ as DiscordOAuthWithMetadata, aT as Email, at as EmailWithMetadata, a_ as Farcaster, aP as FarcasterWithMetadata, az as Github, aK as GithubOAuthWithMetadata, aw as Google, aH as GoogleOAuthWithMetadata, aD as Line, aM as LineOAuthWithMetadata, aG as LinkedAccountType, aA as LinkedIn, aN as LinkedInOAuthWithMetadata, b0 as LoginMethodOrderOption, ak as MessageTypes, am as MoonpayConfig, an as MoonpayCurrencyCode, aY as MoonpayFundingConfig, ao as MoonpayPaymentMethod, aX as NativeFundingConfig, as as NonEmptyArray, a$ as Passkey, aS as PasskeyWithMetadata, aU as Phone, au as PhoneWithMetadata, aZ as PriceDisplayOptions, P as PrivyErrorCode, ap as Quantity, b1 as SiwsFlowState, al as SmartWallet, e as SolanaCluster, m as SolanaFundingConfig, S as SolanaTransactionReceipt, d as SupportedSolanaTransaction, aE as Telegram, aQ as TelegramWithMetadata, aC as Tiktok, aL as TiktokOAuthWithMetadata, aq as TransactionLog, ar as TransactionReceipt, aV as TransactionUIOptions, ax as Twitter, aI as TwitterOAuthWithMetadata, aj as TypedMessage, av as WalletWithMetadata } from './types-zpHmPFW8.js';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { TurnstileProps } from '@marsidev/react-turnstile';
7
7
  import { AppKit } from '@reown/appkit';
@@ -16,10 +16,11 @@ import * as _simplewebauthn_types from '@simplewebauthn/types';
16
16
  import { PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/types';
17
17
  import { Cluster } from '@solana/web3.js';
18
18
  import { FetchOptions } from 'ofetch';
19
- import { P as PrivyEvents } from './useSolanaWallets-CZcmg0rm.js';
20
- export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-CZcmg0rm.js';
19
+ import { P as PrivyEvents } from './useSolanaWallets-Bnyf2wo3.js';
20
+ export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-Bnyf2wo3.js';
21
21
  import * as viem_accounts from 'viem/accounts';
22
22
  import '@coinbase/wallet-sdk';
23
+ import '@solana/kit';
23
24
  import '@solana/wallet-adapter-base';
24
25
  import '@base-org/account';
25
26
  import '@solana/wallet-standard-features';
@@ -3171,9 +3172,8 @@ type UseLoginWithSiws = {
3171
3172
  * @param opts.address {string} Base58-encoded Solana address performing the signing.
3172
3173
  * @returns {string} SIWS message for signing.
3173
3174
  */
3174
- generateSiwsMessage: ({ address, disableSignup, }: {
3175
+ generateSiwsMessage: ({ address }: {
3175
3176
  address: string;
3176
- disableSignup?: boolean;
3177
3177
  }) => Promise<string>;
3178
3178
  /**
3179
3179
  * Log a user in with a SIWS message and signature.
@@ -3188,12 +3188,8 @@ type UseLoginWithSiws = {
3188
3188
  message: string;
3189
3189
  disableSignup?: boolean;
3190
3190
  }) => Promise<User>;
3191
- /**
3192
- * The current state of the SIWS login operation
3193
- */
3194
- state: SiwsFlowState;
3195
3191
  };
3196
- declare const useLoginWithSiws: (callbacks?: PrivyEvents["login"]) => UseLoginWithSiws;
3192
+ declare const useLoginWithSiws: () => UseLoginWithSiws;
3197
3193
 
3198
3194
  type UseLinkWithSiws = {
3199
3195
  /**
@@ -3226,12 +3222,8 @@ type UseLinkWithSiws = {
3226
3222
  user: User;
3227
3223
  linkedAccount: LinkedAccountWithMetadata | null;
3228
3224
  }>;
3229
- /**
3230
- * The current state of the SIWS link operation
3231
- */
3232
- state: SiwsFlowState;
3233
3225
  };
3234
- declare const useLinkWithSiws: (callbacks?: PrivyEvents["linkAccount"]) => UseLinkWithSiws;
3226
+ declare const useLinkWithSiws: () => UseLinkWithSiws;
3235
3227
 
3236
3228
  /**
3237
3229
  * Use this hook to sign a transaction using the embedded wallet.
@@ -4333,4 +4325,4 @@ declare const useMigrateWallets: () => {
4333
4325
  }>;
4334
4326
  };
4335
4327
 
4336
- export { BaseConnectedWalletType, Captcha, ConnectWalletModalOptions, ConnectedSolanaWallet, ConnectedWallet, ConnectorManager, type CustomAuthFlowState, EIP1193Provider, EthereumWalletConnector, FundWalletConfig, type JwtAuthFlowState, LinkedAccountWithMetadata, LoginModal, LoginModalOptions, LoginWithCode, MfaMethod, OAuthFlowState, OAuthProviderType, OAuthTokens, OtpFlowState, PasskeyFlowState, PrivyClient, PrivyClientConfig, PrivyEvents, type PrivyInterface, PrivyProvider, type PrivyProviderProps, type SendCodeToEmail, type SendCodeToSms, SendTransactionModalUIOptions, SignMessageModalUIOptions, SignTypedDataParams, SiweFlowState, SiwsFlowState, TelegramAuthFlowState, UnsignedTransactionRequest, type UseAuthorizationSignatureInterface, type UseBaseAccountSdkInterface, type UseConnectBaseAccountInterface, type UseConnectCoinbaseSmartWalletInterface, type UseCustomAuth, type UseDelegatedActionsInterface, type UseFundWalletInterface, type UseImportWalletInterface, type UseLinkJwtAccount, type UseLinkWithPasskey, type UseLinkWithSiws, type UseLoginWithEmail, type UseLoginWithPasskey, type UseLoginWithSiws, type UseLoginWithSms, type UseLoginWithTelegram, type UseOAuthTokens, type UseRecoverEmbeddedWalletInterface, type UseSessionSignersInterface, type UseSignupWithPasskey, type UseSubscribeToJwtAuthWithFlagInput, type UseSyncJwtBasedAuthStateInput, type UseSyncJwtBasedAuthStateInterface, type UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletListEntry, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getCustomerAccessToken as getAccessToken, getEmbeddedConnectedWallet, toViemAccount, useActiveWallet, useAuthMfa, useAuthMfaEnrollment, useAuthorizationSignature, useBaseAccountSdk, useConnectBaseAccount, useConnectCoinbaseSmartWallet, useConnectOrCreateWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useFarcasterSigner, useFundWallet, useGuestAccounts, useHeadlessDelegatedActions, useIdentityToken, useImportWallet, useLinkAccount, useLinkJwtAccount, useLinkWithPasskey, useLinkWithSiwe, useLinkWithSiws, useLogin, useLoginWithEmail, useLoginWithFarcasterV2, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSiwe, useLoginWithSiws, useLoginWithSms, useLoginWithTelegram, useLogout, useMfa, useMfaEnrollment, useMigrateWallets, useModalStatus, useOAuthTokens, usePrivy, useRecoverEmbeddedWallet, useRegisterMfaListener, useSendTransaction, useSessionSigners, useSetWalletPassword, useSetWalletRecovery, useSign7702Authorization, useSignAuthorization, useSignMessage, useSignTransaction, useSignTypedData, useSignupWithPasskey, useSubscribeToJwtAuthWithFlag, useSyncJwtBasedAuthState, useToken, useUpdateAccount, useUpdateEmail, useUser, useWallets };
4328
+ export { BaseConnectedWalletType, Captcha, ConnectWalletModalOptions, ConnectedSolanaWallet, ConnectedWallet, ConnectorManager, type CustomAuthFlowState, EIP1193Provider, EthereumWalletConnector, FundWalletConfig, type JwtAuthFlowState, LinkedAccountWithMetadata, LoginModal, LoginModalOptions, LoginWithCode, MfaMethod, OAuthFlowState, OAuthProviderType, OAuthTokens, OtpFlowState, PasskeyFlowState, PrivyClient, PrivyClientConfig, PrivyEvents, type PrivyInterface, PrivyProvider, type PrivyProviderProps, type SendCodeToEmail, type SendCodeToSms, SendTransactionModalUIOptions, SignMessageModalUIOptions, SignTypedDataParams, SiweFlowState, TelegramAuthFlowState, UnsignedTransactionRequest, type UseAuthorizationSignatureInterface, type UseBaseAccountSdkInterface, type UseConnectBaseAccountInterface, type UseConnectCoinbaseSmartWalletInterface, type UseCustomAuth, type UseDelegatedActionsInterface, type UseFundWalletInterface, type UseImportWalletInterface, type UseLinkJwtAccount, type UseLinkWithPasskey, type UseLinkWithSiws, type UseLoginWithEmail, type UseLoginWithPasskey, type UseLoginWithSiws, type UseLoginWithSms, type UseLoginWithTelegram, type UseOAuthTokens, type UseRecoverEmbeddedWalletInterface, type UseSessionSignersInterface, type UseSignupWithPasskey, type UseSubscribeToJwtAuthWithFlagInput, type UseSyncJwtBasedAuthStateInput, type UseSyncJwtBasedAuthStateInterface, type UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletListEntry, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getCustomerAccessToken as getAccessToken, getEmbeddedConnectedWallet, toViemAccount, useActiveWallet, useAuthMfa, useAuthMfaEnrollment, useAuthorizationSignature, useBaseAccountSdk, useConnectBaseAccount, useConnectCoinbaseSmartWallet, useConnectOrCreateWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useFarcasterSigner, useFundWallet, useGuestAccounts, useHeadlessDelegatedActions, useIdentityToken, useImportWallet, useLinkAccount, useLinkJwtAccount, useLinkWithPasskey, useLinkWithSiwe, useLinkWithSiws, useLogin, useLoginWithEmail, useLoginWithFarcasterV2, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSiwe, useLoginWithSiws, useLoginWithSms, useLoginWithTelegram, useLogout, useMfa, useMfaEnrollment, useMigrateWallets, useModalStatus, useOAuthTokens, usePrivy, useRecoverEmbeddedWallet, useRegisterMfaListener, useSendTransaction, useSessionSigners, useSetWalletPassword, useSetWalletRecovery, useSign7702Authorization, useSignAuthorization, useSignMessage, useSignTransaction, useSignTypedData, useSignupWithPasskey, useSubscribeToJwtAuthWithFlag, useSyncJwtBasedAuthState, useToken, useUpdateAccount, useUpdateEmail, useUser, useWallets };
@@ -1,12 +1,13 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import react__default from 'react';
3
- import { i as SendTransactionModalUIOptions, j as SignMessageModalUIOptions } from './types-cjyKPOmY.js';
3
+ import { i as SendTransactionModalUIOptions, j as SignMessageModalUIOptions } from './types-zpHmPFW8.js';
4
4
  import { SmartAccountClient } from 'permissionless';
5
5
  import { SendTransactionParameters, Chain, Hash, SignableMessage, Hex, TypedData, SignTypedDataParameters, EIP1193Provider, PublicClient, HttpTransport, WalletClient, PaymasterRpcSchema } from 'viem';
6
6
  import { SmartAccount, SendUserOperationParameters } from 'viem/account-abstraction';
7
7
  import { SmartWalletType } from '@privy-io/js-sdk-core';
8
8
  import '@coinbase/wallet-sdk';
9
9
  import '@reown/appkit';
10
+ import '@solana/kit';
10
11
  import '@solana/wallet-adapter-base';
11
12
  import '@privy-io/public-api';
12
13
  import '@base-org/account';
@@ -1,12 +1,13 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import react__default from 'react';
3
- import { i as SendTransactionModalUIOptions, j as SignMessageModalUIOptions } from './types-cjyKPOmY.js';
3
+ import { i as SendTransactionModalUIOptions, j as SignMessageModalUIOptions } from './types-zpHmPFW8.js';
4
4
  import { SmartAccountClient } from 'permissionless';
5
5
  import { SendTransactionParameters, Chain, Hash, SignableMessage, Hex, TypedData, SignTypedDataParameters, EIP1193Provider, PublicClient, HttpTransport, WalletClient, PaymasterRpcSchema } from 'viem';
6
6
  import { SmartAccount, SendUserOperationParameters } from 'viem/account-abstraction';
7
7
  import { SmartWalletType } from '@privy-io/js-sdk-core';
8
8
  import '@coinbase/wallet-sdk';
9
9
  import '@reown/appkit';
10
+ import '@solana/kit';
10
11
  import '@solana/wallet-adapter-base';
11
12
  import '@privy-io/public-api';
12
13
  import '@base-org/account';
@@ -1,17 +1,18 @@
1
- import { W as Wallet, k as SolanaStandardWallet, l as SolanaFundingConfig, d as SupportedSolanaTransaction, i as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, j as SignMessageModalUIOptions, f as CreateWalletOptions } from './types-cjyKPOmY.js';
2
- export { C as ConnectedSolanaWallet, m as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-cjyKPOmY.js';
3
- import { P as PrivyEvents } from './useSolanaWallets-CZcmg0rm.js';
4
- export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-CZcmg0rm.js';
1
+ import { W as Wallet, j as SignMessageModalUIOptions, k as SolanaChain, l as SolanaStandardWallet, m as SolanaFundingConfig, d as SupportedSolanaTransaction, i as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, f as CreateWalletOptions } from './types-zpHmPFW8.js';
2
+ export { C as ConnectedSolanaWallet, n as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-zpHmPFW8.js';
3
+ import { P as PrivyEvents } from './useSolanaWallets-Bnyf2wo3.js';
4
+ export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-Bnyf2wo3.js';
5
5
  import { SolanaSignAndSendTransactionFeature, SolanaSignTransactionFeature, SolanaSignMessageFeature } from '@solana/wallet-standard-features';
6
6
  import { WalletAccount, WalletIcon, WalletVersion } from '@wallet-standard/base';
7
7
  import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
8
- import { Transaction, VersionedTransaction, Cluster, SendOptions, TransactionSignature, Connection } from '@solana/web3.js';
9
8
  import EventEmitter from 'eventemitter3';
10
- import { SendTransactionOptions } from '@solana/wallet-adapter-base';
11
- import { ConnectedStandardSolanaWallet } from '@privy-io/js-sdk-core';
9
+ import { SolanaSignAndSendTransactionOptions, SolanaSignTransactionOptions, ConnectedStandardSolanaWallet } from '@privy-io/js-sdk-core';
12
10
  export { ConnectedStandardSolanaWallet } from '@privy-io/js-sdk-core';
11
+ import { SendTransactionOptions } from '@solana/wallet-adapter-base';
12
+ import { Connection } from '@solana/web3.js';
13
13
  import '@coinbase/wallet-sdk';
14
14
  import '@reown/appkit';
15
+ import '@solana/kit';
15
16
  import 'react';
16
17
  import 'viem';
17
18
  import '@privy-io/public-api';
@@ -61,19 +62,37 @@ interface StandardWalletImplementation {
61
62
  /**
62
63
  * Sign a message.
63
64
  */
64
- signMessage(message: Uint8Array, address: string): Promise<{
65
+ signMessage(args: {
66
+ message: Uint8Array;
67
+ address: string;
68
+ options?: {
69
+ uiOptions?: SignMessageModalUIOptions;
70
+ };
71
+ }): Promise<{
65
72
  signature: Uint8Array;
66
73
  }>;
67
74
  /**
68
75
  * Sign and send a transaction.
69
76
  */
70
- signAndSendTransaction<T extends Transaction | VersionedTransaction>(transaction: T, address: string, cluster: Cluster, options?: SendOptions): Promise<{
71
- signature: TransactionSignature;
77
+ signAndSendTransaction(args: {
78
+ transaction: Uint8Array;
79
+ address: string;
80
+ chain: SolanaChain;
81
+ options?: SolanaSignAndSendTransactionOptions;
82
+ }): Promise<{
83
+ signature: Uint8Array;
72
84
  }>;
73
85
  /**
74
86
  * Sign a transaction without sending it to the network.
75
87
  */
76
- signTransaction<T extends Transaction | VersionedTransaction>(transaction: T, address: string, cluster: Cluster, options?: SendOptions): Promise<T>;
88
+ signTransaction(args: {
89
+ transaction: Uint8Array;
90
+ address: string;
91
+ chain: SolanaChain;
92
+ options?: SolanaSignTransactionOptions;
93
+ }): Promise<{
94
+ signedTransaction: Uint8Array;
95
+ }>;
77
96
  }
78
97
  type StandardWalletInjectionEvents = {
79
98
  accountChanged: (accounts?: Array<{
@@ -89,13 +108,15 @@ declare class StandardWalletInjection extends EventEmitter<StandardWalletInjecti
89
108
  #private;
90
109
  constructor(implementation: StandardWalletImplementation);
91
110
  setImplementation(implementation: StandardWalletImplementation): void;
92
- signMessage(message: Uint8Array, address: string): Promise<{
111
+ signMessage(args: Parameters<StandardWalletImplementation['signMessage']>[0]): Promise<{
93
112
  signature: Uint8Array;
94
113
  }>;
95
- signAndSendTransaction<T extends Transaction | VersionedTransaction>(transaction: T, address: string, cluster: Cluster, options?: SendOptions): Promise<{
96
- signature: TransactionSignature;
114
+ signAndSendTransaction(args: Parameters<StandardWalletImplementation['signAndSendTransaction']>[0]): Promise<{
115
+ signature: Uint8Array;
116
+ }>;
117
+ signTransaction(args: Parameters<StandardWalletImplementation['signTransaction']>[0]): Promise<{
118
+ signedTransaction: Uint8Array;
97
119
  }>;
98
- signTransaction<T extends Transaction | VersionedTransaction>(transaction: T, address: string, cluster: Cluster, options?: SendOptions): Promise<T>;
99
120
  }
100
121
 
101
122
  type PrivyFeature = {
@@ -373,4 +394,66 @@ interface UseExportWalletInterface {
373
394
  }
374
395
  declare function useExportWallet(): UseExportWalletInterface;
375
396
 
376
- export { PrivyStandardWallet, SolanaStandardWallet, SolanaTransactionReceipt, SupportedSolanaTransaction, type UseConnectedStandardWallets, type UseFundWalletInterface, type UseImportWalletInterface, type UsePrivyStandardWalletInterface, type UseSendTransactionInterface, type UseSignMessageInterface, type UseSignTransactionInterface, type UseSolanaStandardWalletsInterface, useConnectedStandardWallets, useCreateWallet, useExportWallet, useFundWallet, useImportWallet, usePrivyStandardWallet, useSendTransaction, useSignMessage, useSignTransaction, useSolanaFundingPlugin, useSolanaLedgerPlugin, useSolanaStandardWallets };
397
+ /**
398
+ * Use this hook to sign a message using a Solana embedded wallet.
399
+ */
400
+ type UseStandardSignMessage = {
401
+ /**
402
+ * Prompts a user to sign a message using a Solana standard wallet.
403
+ */
404
+ signMessage: (o: {
405
+ message: Uint8Array;
406
+ wallet: ConnectedStandardSolanaWallet;
407
+ options?: {
408
+ uiOptions?: SignMessageModalUIOptions;
409
+ };
410
+ }) => Promise<{
411
+ signature: Uint8Array;
412
+ }>;
413
+ };
414
+ declare function useStandardSignMessage(): UseStandardSignMessage;
415
+
416
+ /**
417
+ * Use this hook to sign a transaction using a Solana embedded wallet.
418
+ */
419
+ type UseStandardSignTransaction = {
420
+ /**
421
+ * Prompts a user to sign a transaction using a Solana standard wallet.
422
+ */
423
+ signTransaction: (o: {
424
+ transaction: Uint8Array;
425
+ wallet: ConnectedStandardSolanaWallet;
426
+ chain?: SolanaChain;
427
+ options?: SolanaSignTransactionOptions & {
428
+ uiOptions?: SendTransactionModalUIOptions;
429
+ };
430
+ }) => Promise<{
431
+ signedTransaction: Uint8Array;
432
+ }>;
433
+ };
434
+ /**
435
+ * Use this hook to sign a transaction using a Solana embedded wallet.
436
+ */
437
+ declare function useStandardSignTransaction(): UseStandardSignTransaction;
438
+
439
+ /**
440
+ * Use this hook to sign and send a transaction using a Solana standard wallet.
441
+ */
442
+ type UseStandardSignAndSendTransaction = {
443
+ /**
444
+ * Prompts a user to sign and send a transaction using a Solana standard wallet.
445
+ */
446
+ signAndSendTransaction: (o: {
447
+ transaction: Uint8Array;
448
+ wallet: ConnectedStandardSolanaWallet;
449
+ chain?: SolanaChain;
450
+ options?: SolanaSignAndSendTransactionOptions & {
451
+ uiOptions?: SendTransactionModalUIOptions;
452
+ };
453
+ }) => Promise<{
454
+ signature: Uint8Array;
455
+ }>;
456
+ };
457
+ declare function useStandardSignAndSendTransaction(): UseStandardSignAndSendTransaction;
458
+
459
+ export { PrivyStandardWallet, SolanaStandardWallet, SolanaTransactionReceipt, SupportedSolanaTransaction, type UseConnectedStandardWallets, type UseFundWalletInterface, type UseImportWalletInterface, type UsePrivyStandardWalletInterface, type UseSendTransactionInterface, type UseSignMessageInterface, type UseSignTransactionInterface, type UseSolanaStandardWalletsInterface, useConnectedStandardWallets, useCreateWallet, useExportWallet, useFundWallet, useImportWallet, usePrivyStandardWallet, useSendTransaction, useSignMessage, useSignTransaction, useSolanaFundingPlugin, useSolanaLedgerPlugin, useSolanaStandardWallets, useStandardSignAndSendTransaction, useStandardSignMessage, useStandardSignTransaction };
@@ -1,17 +1,18 @@
1
- import { W as Wallet, k as SolanaStandardWallet, l as SolanaFundingConfig, d as SupportedSolanaTransaction, i as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, j as SignMessageModalUIOptions, f as CreateWalletOptions } from './types-cjyKPOmY.js';
2
- export { C as ConnectedSolanaWallet, m as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-cjyKPOmY.js';
3
- import { P as PrivyEvents } from './useSolanaWallets-CZcmg0rm.js';
4
- export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-CZcmg0rm.js';
1
+ import { W as Wallet, j as SignMessageModalUIOptions, k as SolanaChain, l as SolanaStandardWallet, m as SolanaFundingConfig, d as SupportedSolanaTransaction, i as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, f as CreateWalletOptions } from './types-zpHmPFW8.js';
2
+ export { C as ConnectedSolanaWallet, n as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-zpHmPFW8.js';
3
+ import { P as PrivyEvents } from './useSolanaWallets-Bnyf2wo3.js';
4
+ export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-Bnyf2wo3.js';
5
5
  import { SolanaSignAndSendTransactionFeature, SolanaSignTransactionFeature, SolanaSignMessageFeature } from '@solana/wallet-standard-features';
6
6
  import { WalletAccount, WalletIcon, WalletVersion } from '@wallet-standard/base';
7
7
  import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
8
- import { Transaction, VersionedTransaction, Cluster, SendOptions, TransactionSignature, Connection } from '@solana/web3.js';
9
8
  import EventEmitter from 'eventemitter3';
10
- import { SendTransactionOptions } from '@solana/wallet-adapter-base';
11
- import { ConnectedStandardSolanaWallet } from '@privy-io/js-sdk-core';
9
+ import { SolanaSignAndSendTransactionOptions, SolanaSignTransactionOptions, ConnectedStandardSolanaWallet } from '@privy-io/js-sdk-core';
12
10
  export { ConnectedStandardSolanaWallet } from '@privy-io/js-sdk-core';
11
+ import { SendTransactionOptions } from '@solana/wallet-adapter-base';
12
+ import { Connection } from '@solana/web3.js';
13
13
  import '@coinbase/wallet-sdk';
14
14
  import '@reown/appkit';
15
+ import '@solana/kit';
15
16
  import 'react';
16
17
  import 'viem';
17
18
  import '@privy-io/public-api';
@@ -61,19 +62,37 @@ interface StandardWalletImplementation {
61
62
  /**
62
63
  * Sign a message.
63
64
  */
64
- signMessage(message: Uint8Array, address: string): Promise<{
65
+ signMessage(args: {
66
+ message: Uint8Array;
67
+ address: string;
68
+ options?: {
69
+ uiOptions?: SignMessageModalUIOptions;
70
+ };
71
+ }): Promise<{
65
72
  signature: Uint8Array;
66
73
  }>;
67
74
  /**
68
75
  * Sign and send a transaction.
69
76
  */
70
- signAndSendTransaction<T extends Transaction | VersionedTransaction>(transaction: T, address: string, cluster: Cluster, options?: SendOptions): Promise<{
71
- signature: TransactionSignature;
77
+ signAndSendTransaction(args: {
78
+ transaction: Uint8Array;
79
+ address: string;
80
+ chain: SolanaChain;
81
+ options?: SolanaSignAndSendTransactionOptions;
82
+ }): Promise<{
83
+ signature: Uint8Array;
72
84
  }>;
73
85
  /**
74
86
  * Sign a transaction without sending it to the network.
75
87
  */
76
- signTransaction<T extends Transaction | VersionedTransaction>(transaction: T, address: string, cluster: Cluster, options?: SendOptions): Promise<T>;
88
+ signTransaction(args: {
89
+ transaction: Uint8Array;
90
+ address: string;
91
+ chain: SolanaChain;
92
+ options?: SolanaSignTransactionOptions;
93
+ }): Promise<{
94
+ signedTransaction: Uint8Array;
95
+ }>;
77
96
  }
78
97
  type StandardWalletInjectionEvents = {
79
98
  accountChanged: (accounts?: Array<{
@@ -89,13 +108,15 @@ declare class StandardWalletInjection extends EventEmitter<StandardWalletInjecti
89
108
  #private;
90
109
  constructor(implementation: StandardWalletImplementation);
91
110
  setImplementation(implementation: StandardWalletImplementation): void;
92
- signMessage(message: Uint8Array, address: string): Promise<{
111
+ signMessage(args: Parameters<StandardWalletImplementation['signMessage']>[0]): Promise<{
93
112
  signature: Uint8Array;
94
113
  }>;
95
- signAndSendTransaction<T extends Transaction | VersionedTransaction>(transaction: T, address: string, cluster: Cluster, options?: SendOptions): Promise<{
96
- signature: TransactionSignature;
114
+ signAndSendTransaction(args: Parameters<StandardWalletImplementation['signAndSendTransaction']>[0]): Promise<{
115
+ signature: Uint8Array;
116
+ }>;
117
+ signTransaction(args: Parameters<StandardWalletImplementation['signTransaction']>[0]): Promise<{
118
+ signedTransaction: Uint8Array;
97
119
  }>;
98
- signTransaction<T extends Transaction | VersionedTransaction>(transaction: T, address: string, cluster: Cluster, options?: SendOptions): Promise<T>;
99
120
  }
100
121
 
101
122
  type PrivyFeature = {
@@ -373,4 +394,66 @@ interface UseExportWalletInterface {
373
394
  }
374
395
  declare function useExportWallet(): UseExportWalletInterface;
375
396
 
376
- export { PrivyStandardWallet, SolanaStandardWallet, SolanaTransactionReceipt, SupportedSolanaTransaction, type UseConnectedStandardWallets, type UseFundWalletInterface, type UseImportWalletInterface, type UsePrivyStandardWalletInterface, type UseSendTransactionInterface, type UseSignMessageInterface, type UseSignTransactionInterface, type UseSolanaStandardWalletsInterface, useConnectedStandardWallets, useCreateWallet, useExportWallet, useFundWallet, useImportWallet, usePrivyStandardWallet, useSendTransaction, useSignMessage, useSignTransaction, useSolanaFundingPlugin, useSolanaLedgerPlugin, useSolanaStandardWallets };
397
+ /**
398
+ * Use this hook to sign a message using a Solana embedded wallet.
399
+ */
400
+ type UseStandardSignMessage = {
401
+ /**
402
+ * Prompts a user to sign a message using a Solana standard wallet.
403
+ */
404
+ signMessage: (o: {
405
+ message: Uint8Array;
406
+ wallet: ConnectedStandardSolanaWallet;
407
+ options?: {
408
+ uiOptions?: SignMessageModalUIOptions;
409
+ };
410
+ }) => Promise<{
411
+ signature: Uint8Array;
412
+ }>;
413
+ };
414
+ declare function useStandardSignMessage(): UseStandardSignMessage;
415
+
416
+ /**
417
+ * Use this hook to sign a transaction using a Solana embedded wallet.
418
+ */
419
+ type UseStandardSignTransaction = {
420
+ /**
421
+ * Prompts a user to sign a transaction using a Solana standard wallet.
422
+ */
423
+ signTransaction: (o: {
424
+ transaction: Uint8Array;
425
+ wallet: ConnectedStandardSolanaWallet;
426
+ chain?: SolanaChain;
427
+ options?: SolanaSignTransactionOptions & {
428
+ uiOptions?: SendTransactionModalUIOptions;
429
+ };
430
+ }) => Promise<{
431
+ signedTransaction: Uint8Array;
432
+ }>;
433
+ };
434
+ /**
435
+ * Use this hook to sign a transaction using a Solana embedded wallet.
436
+ */
437
+ declare function useStandardSignTransaction(): UseStandardSignTransaction;
438
+
439
+ /**
440
+ * Use this hook to sign and send a transaction using a Solana standard wallet.
441
+ */
442
+ type UseStandardSignAndSendTransaction = {
443
+ /**
444
+ * Prompts a user to sign and send a transaction using a Solana standard wallet.
445
+ */
446
+ signAndSendTransaction: (o: {
447
+ transaction: Uint8Array;
448
+ wallet: ConnectedStandardSolanaWallet;
449
+ chain?: SolanaChain;
450
+ options?: SolanaSignAndSendTransactionOptions & {
451
+ uiOptions?: SendTransactionModalUIOptions;
452
+ };
453
+ }) => Promise<{
454
+ signature: Uint8Array;
455
+ }>;
456
+ };
457
+ declare function useStandardSignAndSendTransaction(): UseStandardSignAndSendTransaction;
458
+
459
+ export { PrivyStandardWallet, SolanaStandardWallet, SolanaTransactionReceipt, SupportedSolanaTransaction, type UseConnectedStandardWallets, type UseFundWalletInterface, type UseImportWalletInterface, type UsePrivyStandardWalletInterface, type UseSendTransactionInterface, type UseSignMessageInterface, type UseSignTransactionInterface, type UseSolanaStandardWalletsInterface, useConnectedStandardWallets, useCreateWallet, useExportWallet, useFundWallet, useImportWallet, usePrivyStandardWallet, useSendTransaction, useSignMessage, useSignTransaction, useSolanaFundingPlugin, useSolanaLedgerPlugin, useSolanaStandardWallets, useStandardSignAndSendTransaction, useStandardSignMessage, useStandardSignTransaction };
@@ -1,5 +1,6 @@
1
1
  import { createCoinbaseWalletSDK } from '@coinbase/wallet-sdk';
2
2
  import { AppKit } from '@reown/appkit';
3
+ import { Rpc, SolanaRpcApi, RpcSubscriptions, SolanaRpcSubscriptionsApi } from '@solana/kit';
3
4
  import { StandardWalletAdapter, Adapter, WalletError, MessageSignerWalletAdapterProps, WalletAdapterProps, SignerWalletAdapterProps } from '@solana/wallet-adapter-base';
4
5
  import { ReactElement, ReactNode } from 'react';
5
6
  import { Hex } from 'viem';
@@ -344,6 +345,10 @@ type BaseAccountSdkCreateParams = Parameters<typeof createBaseAccountSDK>[0];
344
345
  type BaseAccountSdkType = ReturnType<typeof createBaseAccountSDK>;
345
346
  type SetBaseAccountSdkType = (sdk: BaseAccountSdkType | undefined) => void;
346
347
 
348
+ /**
349
+ * Type of all Solana chains supported by Privy.
350
+ */
351
+ type SolanaChain = (typeof SOLANA_CHAINS)[number];
347
352
  /**
348
353
  * Helper type for defining a Standard Wallet with a union of Solana features.
349
354
  */
@@ -1737,6 +1742,32 @@ interface PrivyClientConfig {
1737
1742
  uiConfig?: MoonpayUiConfig;
1738
1743
  };
1739
1744
  };
1745
+ /**
1746
+ * Configuration for Solana
1747
+ */
1748
+ solana?: {
1749
+ /**
1750
+ * @solana/kit RPC configuration objects for each solana chain. This applies for solana standard wallet hooks like `useStandardSignMessage`,
1751
+ * `useStandardSignTransaction`, `useStandardSignAndSendTransaction`.
1752
+ *
1753
+ * @example
1754
+ * ```typescript
1755
+ * import {createSolanaRpc, createSolanaRpcSubscriptions} from '@solana/kit';
1756
+ *
1757
+ * const rpcs = {
1758
+ * 'solana:mainnet': {
1759
+ * rpc: createSolanaRpc('https://api.mainnet-beta.solana.com'),
1760
+ * rpcSubscriptions: createSolanaRpcSubscriptions('wss://api.mainnet-beta.solana.com'),
1761
+ * blockExplorerUrl: 'https://explorer.solana.com',
1762
+ * },
1763
+ * }
1764
+ */
1765
+ rpcs?: Partial<Record<SolanaChain, {
1766
+ rpc: Rpc<SolanaRpcApi>;
1767
+ rpcSubscriptions: RpcSubscriptions<SolanaRpcSubscriptionsApi>;
1768
+ blockExplorerUrl?: string;
1769
+ }>>;
1770
+ };
1740
1771
  }
1741
1772
  /**
1742
1773
  * The data received from Telegram when the user is authenticated.
@@ -1957,6 +1988,11 @@ type AppConfig = {
1957
1988
  };
1958
1989
  fundingMethodConfig: NonNullable<PrivyClientConfig['fundingMethodConfig']>;
1959
1990
  whatsAppEnabled: boolean;
1991
+ solanaRpcs: Record<SolanaChain, {
1992
+ rpc: Rpc<SolanaRpcApi>;
1993
+ rpcSubscriptions: RpcSubscriptions<SolanaRpcSubscriptionsApi>;
1994
+ blockExplorerUrl?: string;
1995
+ } | null>;
1960
1996
  };
1961
1997
  /** Privy's generated color palette.
1962
1998
  * This will be generated, given a passed theme and accent color (from configuration),
@@ -2389,4 +2425,4 @@ type SessionSignerInput = {
2389
2425
  policyIds?: string[];
2390
2426
  }[];
2391
2427
 
2392
- export { type OAuthProviderType as $, type PrivyClientConfig as A, type BaseConnectedEthereumWallet as B, type ConnectedSolanaWallet as C, type ConnectorType as D, type EthereumRpcRequestType as E, type FundingMethod as F, type SetBaseAccountSdkType as G, type HDWalletWithMetadata as H, type WalletListEntry as I, type AppConfig as J, type BaseConnectedWallet as K, type LoginMethod as L, type MfaMethod as M, type ConnectWalletModalOptions as N, type OAuthTokens as O, PrivyErrorCode as P, type LoginModalOptions as Q, type RuntimeLoginOverridableOptions as R, type SolanaTransactionReceipt as S, type SetWalletRecoveryOptions as T, type User as U, type SignTypedDataParams as V, type Wallet as W, type UnsignedTransactionRequest as X, type FundWalletConfig as Y, type ConnectedWallet as Z, type CrossAppProviderDetails as _, type LinkedAccountWithMetadata as a, type Passkey as a$, type MoonpaySignRequest as a0, type MoonpaySignResponse as a1, type SmartWalletConfig as a2, type SiwsMessageType as a3, type ExternalWalletMetadata as a4, type TelegramAuthResult as a5, type TelegramWebAppData as a6, type OAuthUserInfo as a7, type OAuthFlowState as a8, type LoginWithCode as a9, type LinkedIn as aA, type Apple as aB, type Tiktok as aC, type Line as aD, type Telegram as aE, type CrossAppAccount as aF, type LinkedAccountType as aG, type GoogleOAuthWithMetadata as aH, type TwitterOAuthWithMetadata as aI, type DiscordOAuthWithMetadata as aJ, type GithubOAuthWithMetadata as aK, type TiktokOAuthWithMetadata as aL, type LineOAuthWithMetadata as aM, type LinkedInOAuthWithMetadata as aN, type AppleOAuthWithMetadata as aO, type FarcasterWithMetadata as aP, type TelegramWithMetadata as aQ, type CrossAppAccountWithMetadata as aR, type PasskeyWithMetadata as aS, type Email as aT, type Phone as aU, type TransactionUIOptions as aV, type ContractUIOptions as aW, type NativeFundingConfig as aX, type MoonpayFundingConfig as aY, type PriceDisplayOptions as aZ, type Farcaster as a_, type OtpFlowState as aa, type PasskeyFlowState as ab, type SiweFlowState as ac, type SiwsFlowState as ad, type BaseAccountSdkType as ae, type UnsignedTransactionRequestWithChainId as af, type BaseConnectedWalletType as ag, type SessionSignerInput as ah, type TelegramAuthFlowState as ai, type TypedMessage as aj, type MessageTypes as ak, type SmartWallet as al, type MoonpayConfig as am, type MoonpayCurrencyCode as an, type MoonpayPaymentMethod as ao, type Quantity as ap, type TransactionLog as aq, type TransactionReceipt as ar, type NonEmptyArray as as, type EmailWithMetadata as at, type PhoneWithMetadata as au, type WalletWithMetadata as av, type Google as aw, type Twitter as ax, type Discord as ay, type Github as az, type BaseConnectedSolanaWallet as b, type LoginMethodOrderOption as b0, type UserRecoveryMethod as c, type SupportedSolanaTransaction as d, type SolanaCluster as e, type CreateWalletOptions as f, type LoginToFrame as g, type LoginToMiniApp as h, type SendTransactionModalUIOptions as i, type SignMessageModalUIOptions as j, type SolanaStandardWallet as k, type SolanaFundingConfig as l, SolanaWalletConnector as m, type PrivyFarcasterSignerInitResponse as n, type MfaSubmitArgs as o, type SolanaRpcRequestType as p, type EthereumRpcResponseType as q, type SolanaRpcResponseType as r, type EIP1193Provider as s, toSolanaWalletConnectors as t, type EntropyIdVerifier as u, type RequestArguments as v, WalletConnector as w, PrivyProxyProvider as x, type WalletClientType as y, type ConnectedWalletMetadata as z };
2428
+ export { type CrossAppProviderDetails as $, type ConnectedWalletMetadata as A, type BaseConnectedEthereumWallet as B, type ConnectedSolanaWallet as C, type PrivyClientConfig as D, type EthereumRpcRequestType as E, type FundingMethod as F, type ConnectorType as G, type HDWalletWithMetadata as H, type SetBaseAccountSdkType as I, type WalletListEntry as J, type AppConfig as K, type LoginMethod as L, type MfaMethod as M, type BaseConnectedWallet as N, type OAuthTokens as O, PrivyErrorCode as P, type ConnectWalletModalOptions as Q, type RuntimeLoginOverridableOptions as R, type SolanaTransactionReceipt as S, type LoginModalOptions as T, type User as U, type SetWalletRecoveryOptions as V, type Wallet as W, type SignTypedDataParams as X, type UnsignedTransactionRequest as Y, type FundWalletConfig as Z, type ConnectedWallet as _, type LinkedAccountWithMetadata as a, type Passkey as a$, type OAuthProviderType as a0, type MoonpaySignRequest as a1, type MoonpaySignResponse as a2, type SmartWalletConfig as a3, type SiwsMessageType as a4, type ExternalWalletMetadata as a5, type TelegramAuthResult as a6, type TelegramWebAppData as a7, type OAuthUserInfo as a8, type OAuthFlowState as a9, type LinkedIn as aA, type Apple as aB, type Tiktok as aC, type Line as aD, type Telegram as aE, type CrossAppAccount as aF, type LinkedAccountType as aG, type GoogleOAuthWithMetadata as aH, type TwitterOAuthWithMetadata as aI, type DiscordOAuthWithMetadata as aJ, type GithubOAuthWithMetadata as aK, type TiktokOAuthWithMetadata as aL, type LineOAuthWithMetadata as aM, type LinkedInOAuthWithMetadata as aN, type AppleOAuthWithMetadata as aO, type FarcasterWithMetadata as aP, type TelegramWithMetadata as aQ, type CrossAppAccountWithMetadata as aR, type PasskeyWithMetadata as aS, type Email as aT, type Phone as aU, type TransactionUIOptions as aV, type ContractUIOptions as aW, type NativeFundingConfig as aX, type MoonpayFundingConfig as aY, type PriceDisplayOptions as aZ, type Farcaster as a_, type LoginWithCode as aa, type OtpFlowState as ab, type PasskeyFlowState as ac, type SiweFlowState as ad, type BaseAccountSdkType as ae, type UnsignedTransactionRequestWithChainId as af, type BaseConnectedWalletType as ag, type SessionSignerInput as ah, type TelegramAuthFlowState as ai, type TypedMessage as aj, type MessageTypes as ak, type SmartWallet as al, type MoonpayConfig as am, type MoonpayCurrencyCode as an, type MoonpayPaymentMethod as ao, type Quantity as ap, type TransactionLog as aq, type TransactionReceipt as ar, type NonEmptyArray as as, type EmailWithMetadata as at, type PhoneWithMetadata as au, type WalletWithMetadata as av, type Google as aw, type Twitter as ax, type Discord as ay, type Github as az, type BaseConnectedSolanaWallet as b, type LoginMethodOrderOption as b0, type SiwsFlowState as b1, type UserRecoveryMethod as c, type SupportedSolanaTransaction as d, type SolanaCluster as e, type CreateWalletOptions as f, type LoginToFrame as g, type LoginToMiniApp as h, type SendTransactionModalUIOptions as i, type SignMessageModalUIOptions as j, type SolanaChain as k, type SolanaStandardWallet as l, type SolanaFundingConfig as m, SolanaWalletConnector as n, type PrivyFarcasterSignerInitResponse as o, type MfaSubmitArgs as p, type SolanaRpcRequestType as q, type EthereumRpcResponseType as r, type SolanaRpcResponseType as s, toSolanaWalletConnectors as t, type EIP1193Provider as u, type EntropyIdVerifier as v, type RequestArguments as w, WalletConnector as x, PrivyProxyProvider as y, type WalletClientType as z };