@privy-io/react-auth 2.11.1 → 2.13.0-beta-20250429210734
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/abstract-smart-wallets.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/privy-provider-BRLoNLzO.js +28 -0
- package/dist/cjs/smart-wallets-C4gFTR0Y.js +1 -0
- package/dist/cjs/smart-wallets.js +1 -1
- package/dist/cjs/solana.js +1 -1
- package/dist/cjs/ui.js +1 -1
- package/dist/cjs/{useActiveWallet-BJPtwRwN.js → useActiveWallet-CFjocDW3.js} +1 -1
- package/dist/cjs/{useFundWallet-CHZEiRO4.js → useFundWallet-DepHOq2e.js} +1 -1
- package/dist/dts/farcaster.d.mts +4 -1
- package/dist/dts/farcaster.d.ts +4 -1
- package/dist/dts/index.d.mts +70 -39
- package/dist/dts/index.d.ts +70 -39
- package/dist/dts/smart-wallets.d.mts +4 -1
- package/dist/dts/smart-wallets.d.ts +4 -1
- package/dist/dts/solana.d.mts +129 -7
- package/dist/dts/solana.d.ts +129 -7
- package/dist/dts/{types-B6jqW_Bc.d.mts → types-DWeM9B29.d.mts} +40 -15
- package/dist/dts/{types-B6jqW_Bc.d.ts → types-DWeM9B29.d.ts} +40 -15
- package/dist/dts/ui.d.mts +4 -1
- package/dist/dts/ui.d.ts +4 -1
- package/dist/dts/{useSolanaWallets-DtHAHWtA.d.mts → useSolanaWallets-DG2oXveQ.d.mts} +1 -1
- package/dist/dts/{useSolanaWallets-DtHAHWtA.d.ts → useSolanaWallets-DG2oXveQ.d.ts} +1 -1
- package/dist/esm/abstract-smart-wallets.mjs +1 -1
- package/dist/esm/farcaster.mjs +1 -1
- package/dist/esm/{frame-BeG8p5X6.mjs → frame-B1kjU0LI.mjs} +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/{internal-context-eu0bC04Q.mjs → internal-context-lAHxpYRu.mjs} +1 -1
- package/dist/esm/privy-provider-DHU2bEeW.mjs +28 -0
- package/dist/esm/smart-wallets-55YSeFOS.mjs +1 -0
- package/dist/esm/smart-wallets.mjs +1 -1
- package/dist/esm/solana.mjs +1 -1
- package/dist/esm/ui.mjs +2 -2
- package/dist/esm/useActiveWallet-C0t_HPvH.mjs +1 -0
- package/dist/esm/{useFundWallet-CCbN4yzN.mjs → useFundWallet-CA9Qmx4f.mjs} +1 -1
- package/package.json +6 -5
- package/dist/cjs/privy-provider-Cddj6OMJ.js +0 -28
- package/dist/cjs/smart-wallets-CyVw0HIK.js +0 -1
- package/dist/esm/privy-provider-B9IzlOpv.mjs +0 -28
- package/dist/esm/smart-wallets-D0LqwcPM.mjs +0 -1
- package/dist/esm/useActiveWallet-Cvm0O_EX.mjs +0 -1
package/dist/dts/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import react__default, { MouseEvent } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
3
|
+
import { m as WalletClientType, d as UserRecoveryMethod, n as PrivyFarcasterSignerInitResponse, o as MfaSubmitArgs, E as EthereumRpcRequestType, p as SolanaRpcRequestType, q as EthereumRpcResponseType, r as SolanaRpcResponseType, s as PrivyClientConfig, u as EIP1193Provider, v as EntropyIdVerifier$1, w as RequestArguments, x as WalletTimeoutError, y as WalletConnector, B as BaseConnectedEthereumWallet, z as ConnectedWalletMetadata, A as ConnectorType, D as WalletListEntry, G as ExternalWalletsConfig, H as BaseConnectedWallet, l as SolanaWalletConnector, U as User, I as ConnectWalletModalOptions, J as LoginModalOptions, g as CreateWalletOptions, W as Wallet, K as SetWalletRecoveryOptions, i as SignMessageModalUIOptions, N as SignTypedDataParams, M as MfaMethod, Q as UnsignedTransactionRequest, h as SendTransactionModalUIOptions, T as FundWalletConfig, V as ConnectedWallet, O as OAuthTokens, X as CrossAppProviderDetails, Y as OAuthProviderType, Z as MoonpaySignRequest, _ as MoonpaySignResponse, $ as SmartWalletConfig, a as LoginMethod, a0 as SiweWalletMetadata, a1 as TelegramAuthResult, a2 as TelegramWebAppData, a3 as OAuthUserInfo, a4 as OAuthFlowState, a5 as LoginWithCode, a6 as OtpFlowState, a7 as PasskeyFlowState, a8 as SiweFlowState, a9 as UnsignedTransactionRequestWithChainId, aa as BaseConnectedWalletType, C as ConnectedSolanaWallet, ab as TelegramAuthFlowState } from './types-DWeM9B29.js';
|
|
4
|
+
export { au as Apple, aF as AppleOAuthWithMetadata, aN as ContractUIOptions, ax as CrossAppAccount, aI as CrossAppAccountWithMetadata, ar as Discord, aB as DiscordOAuthWithMetadata, aK as Email, am as EmailWithMetadata, aR as Farcaster, aG as FarcasterWithMetadata, as as Github, aC as GithubOAuthWithMetadata, ap as Google, az as GoogleOAuthWithMetadata, ay as LinkedAccountType, b as LinkedAccountWithMetadata, at as LinkedIn, aE as LinkedInOAuthWithMetadata, aT as LoginMethodOrderOption, ad as MessageTypes, af as MoonpayConfig, ag as MoonpayCurrencyCode, aP as MoonpayFundingConfig, ah as MoonpayPaymentMethod, aO as NativeFundingConfig, al as NonEmptyArray, aS as Passkey, aJ as PasskeyWithMetadata, aL as Phone, an as PhoneWithMetadata, aQ as PriceDisplayOptions, P as PrivyErrorCode, ai as Quantity, ae as SmartWallet, f as SolanaCluster, k as SolanaFundingConfig, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, aw as Telegram, aH as TelegramWithMetadata, av as Tiktok, aD as TiktokOAuthWithMetadata, aj as TransactionLog, ak as TransactionReceipt, aM as TransactionUIOptions, aq as Twitter, aA as TwitterOAuthWithMetadata, ac as TypedMessage, ao as WalletWithMetadata } from './types-DWeM9B29.js';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { TurnstileProps } from '@marsidev/react-turnstile';
|
|
7
7
|
import EventEmitter from 'eventemitter3';
|
|
@@ -16,9 +16,12 @@ 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-
|
|
20
|
-
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-
|
|
19
|
+
import { P as PrivyEvents } from './useSolanaWallets-DG2oXveQ.js';
|
|
20
|
+
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-DG2oXveQ.js';
|
|
21
21
|
import '@solana/wallet-adapter-base';
|
|
22
|
+
import '@solana/wallet-standard-features';
|
|
23
|
+
import '@wallet-standard/base';
|
|
24
|
+
import '@wallet-standard/features';
|
|
22
25
|
import '@metamask/eth-sig-util';
|
|
23
26
|
|
|
24
27
|
type MobileWalletConfig = {
|
|
@@ -37,9 +40,9 @@ type MobileWalletConfig = {
|
|
|
37
40
|
type BaseProxyRequest = {
|
|
38
41
|
accessToken: string;
|
|
39
42
|
} & Partial<MfaSubmitArgs>;
|
|
40
|
-
type EntropyIdVerifier = 'ethereum-address-verifier' | 'solana-address-verifier'
|
|
43
|
+
type EntropyIdVerifier = 'ethereum-address-verifier' | 'solana-address-verifier';
|
|
41
44
|
type BaseWalletsRequestData = BaseProxyRequest & {
|
|
42
|
-
chainType: 'ethereum' | 'solana' | 'bitcoin-taproot' | 'bitcoin-segwit'
|
|
45
|
+
chainType: 'ethereum' | 'solana' | 'bitcoin-taproot' | 'bitcoin-segwit';
|
|
43
46
|
};
|
|
44
47
|
type CreateSignerRequestDataType = BaseProxyRequest & {
|
|
45
48
|
/** Optional: the user-specified recovery password, replaces recoveryPin */
|
|
@@ -71,6 +74,16 @@ type WalletsCreateRequestDataType = BaseWalletsRequestData & {
|
|
|
71
74
|
type WalletsCreateResponseDataType = {
|
|
72
75
|
address: string;
|
|
73
76
|
};
|
|
77
|
+
type UserSignerSignRequestDataType = BaseProxyRequest & {
|
|
78
|
+
/** The message to be signed */
|
|
79
|
+
message: string;
|
|
80
|
+
/** For cross-app requests, the app ID of the requester app */
|
|
81
|
+
requesterAppId?: string | null;
|
|
82
|
+
};
|
|
83
|
+
type UserSignerSignResponseDataType = {
|
|
84
|
+
/** The signature */
|
|
85
|
+
signature: string;
|
|
86
|
+
};
|
|
74
87
|
type WalletsAddRequestDataType = BaseWalletsRequestData & {
|
|
75
88
|
/**
|
|
76
89
|
* Key with which to look up the existing entropy
|
|
@@ -204,15 +217,6 @@ type WalletsRpcBitcoinRequestDataType = {
|
|
|
204
217
|
chainType: 'bitcoin-taproot' | 'bitcoin-segwit';
|
|
205
218
|
request: unknown;
|
|
206
219
|
};
|
|
207
|
-
type WalletsRpcP256RequestDataType = {
|
|
208
|
-
chainType: 'p256';
|
|
209
|
-
request: {
|
|
210
|
-
method: 'sign';
|
|
211
|
-
params: {
|
|
212
|
-
message: string;
|
|
213
|
-
};
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
220
|
type WalletsRpcRequestDataType = BaseWalletsRequestData & {
|
|
217
221
|
/**
|
|
218
222
|
* Key with which to look up the existing entropy
|
|
@@ -236,7 +240,7 @@ type WalletsRpcRequestDataType = BaseWalletsRequestData & {
|
|
|
236
240
|
hdWalletIndex: number;
|
|
237
241
|
/** For cross-app requests, the app ID of the requester app */
|
|
238
242
|
requesterAppId?: string | null;
|
|
239
|
-
} & (WalletsRpcEthereumRequestDataType | WalletsRpcSolanaRequestDataType | WalletsRpcBitcoinRequestDataType
|
|
243
|
+
} & (WalletsRpcEthereumRequestDataType | WalletsRpcSolanaRequestDataType | WalletsRpcBitcoinRequestDataType);
|
|
240
244
|
type WalletsRpcEthereumResponseDataType = {
|
|
241
245
|
chainType: 'ethereum';
|
|
242
246
|
response: EthereumRpcResponseType;
|
|
@@ -249,17 +253,9 @@ type WalletsRpcBitcoinResponseDataType = {
|
|
|
249
253
|
chainType: 'bitcoin-taproot' | 'bitcoin-segwit';
|
|
250
254
|
response: unknown;
|
|
251
255
|
};
|
|
252
|
-
type WalletsRpcP256ResponseDataType = {
|
|
253
|
-
chainType: 'p256';
|
|
254
|
-
response: {
|
|
255
|
-
data: {
|
|
256
|
-
signature: string;
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
};
|
|
260
256
|
type WalletsRpcResponseDataType = {
|
|
261
257
|
address: string;
|
|
262
|
-
} & (WalletsRpcEthereumResponseDataType | WalletsRpcSolanaResponseDataType | WalletsRpcBitcoinResponseDataType
|
|
258
|
+
} & (WalletsRpcEthereumResponseDataType | WalletsRpcSolanaResponseDataType | WalletsRpcBitcoinResponseDataType);
|
|
263
259
|
type BaseWalletCreateRequestDataType = {
|
|
264
260
|
accessToken: string;
|
|
265
261
|
};
|
|
@@ -412,6 +408,7 @@ declare const PrivyIframeErrorTypes: readonly ["error", "invalid_request_argumen
|
|
|
412
408
|
type PrivyIframeErrorTypesType = (typeof PrivyIframeErrorTypes)[number];
|
|
413
409
|
interface EmbeddedWalletProxy {
|
|
414
410
|
createSigner: (data: CreateSignerRequestDataType) => Promise<CreateSignerResponseDataType>;
|
|
411
|
+
signWithUserSigner: (data: UserSignerSignRequestDataType) => Promise<UserSignerSignResponseDataType>;
|
|
415
412
|
createWallet: (data: WalletsCreateRequestDataType) => Promise<WalletsCreateResponseDataType>;
|
|
416
413
|
addWallet: (data: WalletsAddRequestDataType) => Promise<WalletsAddResponseDataType>;
|
|
417
414
|
importWallet: (data: WalletsImportRequestDataType) => Promise<WalletsImportResponseDataType>;
|
|
@@ -438,11 +435,6 @@ interface EmbeddedWalletProxy {
|
|
|
438
435
|
}): Promise<WalletsRpcResponseDataType & {
|
|
439
436
|
chainType: 'bitcoin-segwit';
|
|
440
437
|
}>;
|
|
441
|
-
rpc(data: WalletsRpcRequestDataType & {
|
|
442
|
-
chainType: 'p256';
|
|
443
|
-
}): Promise<WalletsRpcResponseDataType & {
|
|
444
|
-
chainType: 'p256';
|
|
445
|
-
}>;
|
|
446
438
|
/** @deprecated */
|
|
447
439
|
create: (data: EthereumWalletCreateRequestDataType) => Promise<WalletCreateResponseDataType>;
|
|
448
440
|
/** @deprecated */
|
|
@@ -2413,14 +2405,7 @@ interface ResponseCrossAppAccount {
|
|
|
2413
2405
|
first_verified_at: number | null;
|
|
2414
2406
|
latest_verified_at: number | null;
|
|
2415
2407
|
}
|
|
2416
|
-
|
|
2417
|
-
type: 'authorization_key';
|
|
2418
|
-
public_key: string;
|
|
2419
|
-
verified_at: number;
|
|
2420
|
-
first_verified_at: number | null;
|
|
2421
|
-
latest_verified_at: number | null;
|
|
2422
|
-
}
|
|
2423
|
-
type LinkedAccountsResponseType = Array<ResponseEmailAccount | ResponsePhoneAccount | ResponseEthereumAccount | ResponseSmartWalletAccount | ResponseSolanaAccount | ResponseOAuthGoogle | ResponseOAuthTwitter | ResponseOAuthDiscord | ResponseOAuthGithub | ResponseOAuthSpotify | ResponseOAuthInstagram | ResponseOAuthTiktok | ResponseOAuthLinkedIn | ResponseOAuthApple | ResponseCustomJwtAccount | ResponseFarcasterAccount | ResponsePasskeyAccount | ResponseTelegramAccount | ResponseCrossAppAccount | ResponseAuthorizationKeyAccount>;
|
|
2408
|
+
type LinkedAccountsResponseType = Array<ResponseEmailAccount | ResponsePhoneAccount | ResponseEthereumAccount | ResponseSmartWalletAccount | ResponseSolanaAccount | ResponseOAuthGoogle | ResponseOAuthTwitter | ResponseOAuthDiscord | ResponseOAuthGithub | ResponseOAuthSpotify | ResponseOAuthInstagram | ResponseOAuthTiktok | ResponseOAuthLinkedIn | ResponseOAuthApple | ResponseCustomJwtAccount | ResponseFarcasterAccount | ResponsePasskeyAccount | ResponseTelegramAccount | ResponseCrossAppAccount>;
|
|
2424
2409
|
interface ResponseSmsMfaMethod {
|
|
2425
2410
|
type: 'sms';
|
|
2426
2411
|
verified_at: number;
|
|
@@ -3832,11 +3817,14 @@ declare function useFarcasterSigner(): {
|
|
|
3832
3817
|
};
|
|
3833
3818
|
|
|
3834
3819
|
/**
|
|
3820
|
+
* @deprecated use useSessionSigners instead
|
|
3835
3821
|
* Hook to delegate permissions to execute certain transactions to the wallet API.
|
|
3836
3822
|
*
|
|
3837
3823
|
*/
|
|
3838
3824
|
interface UseDelegatedActionsInterface {
|
|
3839
3825
|
/**
|
|
3826
|
+
* @deprecated use useSessionSigners instead
|
|
3827
|
+
*
|
|
3840
3828
|
* Prompts the user to delegate access to their wallet to allow an app to transact on behalf of a user
|
|
3841
3829
|
* within a set of pre-defined permissions. Users can always decline or revoke delegation.
|
|
3842
3830
|
*
|
|
@@ -3849,6 +3837,9 @@ interface UseDelegatedActionsInterface {
|
|
|
3849
3837
|
chainType: 'solana' | 'ethereum';
|
|
3850
3838
|
}) => Promise<void>;
|
|
3851
3839
|
/**
|
|
3840
|
+
*
|
|
3841
|
+
* @deprecated use useSessionSigners instead
|
|
3842
|
+
*
|
|
3852
3843
|
* Revokes the wallet API's ability to transact with a user's delegated wallets. This will revoke
|
|
3853
3844
|
* ALL wallets that have been delegated by the user, in case the user has delegated multiple embedded
|
|
3854
3845
|
* wallets.
|
|
@@ -3860,6 +3851,40 @@ interface UseDelegatedActionsInterface {
|
|
|
3860
3851
|
}
|
|
3861
3852
|
declare const useDelegatedActions: () => UseDelegatedActionsInterface;
|
|
3862
3853
|
|
|
3854
|
+
/**
|
|
3855
|
+
* Hook to add session signers to a user wallet.
|
|
3856
|
+
*
|
|
3857
|
+
*/
|
|
3858
|
+
interface UseSessionSignersInterface {
|
|
3859
|
+
/**
|
|
3860
|
+
* Headlessly grants access of the user wallet to a specified key quorum.
|
|
3861
|
+
*
|
|
3862
|
+
* @param address address of the wallet to delegate
|
|
3863
|
+
* @param signers array of signers to add as session keys to the wallet
|
|
3864
|
+
* @returns Promise that resolves if adding signers was successful, and errors otherwise
|
|
3865
|
+
*/
|
|
3866
|
+
addSessionSigners: ({ address, signers, }: {
|
|
3867
|
+
address: string;
|
|
3868
|
+
signers: {
|
|
3869
|
+
signerId: string;
|
|
3870
|
+
}[];
|
|
3871
|
+
}) => Promise<{
|
|
3872
|
+
user: User;
|
|
3873
|
+
}>;
|
|
3874
|
+
/**
|
|
3875
|
+
* Removes all session keys from a user wallet.
|
|
3876
|
+
*
|
|
3877
|
+
* @param address address of the wallet to revoke access for
|
|
3878
|
+
* @returns Promise that resolves if the revocation was successful, and errors otherwise
|
|
3879
|
+
*/
|
|
3880
|
+
removeSessionSigners: ({ address }: {
|
|
3881
|
+
address: string;
|
|
3882
|
+
}) => Promise<{
|
|
3883
|
+
user: User;
|
|
3884
|
+
}>;
|
|
3885
|
+
}
|
|
3886
|
+
declare const useSessionSigners: () => UseSessionSignersInterface;
|
|
3887
|
+
|
|
3863
3888
|
/**
|
|
3864
3889
|
* Use this hook to programmatically update the user in response to any backend change
|
|
3865
3890
|
*
|
|
@@ -3898,11 +3923,15 @@ type UseLoginWithTelegram = {
|
|
|
3898
3923
|
declare const useLoginWithTelegram: (callbacks?: PrivyEvents["login"]) => UseLoginWithTelegram;
|
|
3899
3924
|
|
|
3900
3925
|
/**
|
|
3926
|
+
* @deprecated use useSessionSigners instead
|
|
3927
|
+
*
|
|
3901
3928
|
* Hook to headlessly permissions to execute certain transactions to the wallet API.
|
|
3902
3929
|
*
|
|
3903
3930
|
*/
|
|
3904
3931
|
interface UseHeadlessDelegatedActionsInterface {
|
|
3905
3932
|
/**
|
|
3933
|
+
* @deprecated use useSessionSigners instead
|
|
3934
|
+
*
|
|
3906
3935
|
* Prompts the user to headlessly delegate access to their wallet to allow an app to transact on behalf of a user
|
|
3907
3936
|
* within a set of pre-defined permissions. Users can always decline or revoke delegation.
|
|
3908
3937
|
*
|
|
@@ -3915,6 +3944,8 @@ interface UseHeadlessDelegatedActionsInterface {
|
|
|
3915
3944
|
chainType: 'solana' | 'ethereum';
|
|
3916
3945
|
}) => Promise<void>;
|
|
3917
3946
|
/**
|
|
3947
|
+
* @deprecated use useSessionSigners instead
|
|
3948
|
+
*
|
|
3918
3949
|
* Headlessly revokes the wallet API's ability to transact with a user's delegated wallets. This will revoke
|
|
3919
3950
|
* ALL wallets that have been delegated by the user, in case the user has delegated multiple embedded
|
|
3920
3951
|
* wallets.
|
|
@@ -3938,4 +3969,4 @@ declare const LoginModal: ({ open }: {
|
|
|
3938
3969
|
open: boolean;
|
|
3939
3970
|
}) => react_jsx_runtime.JSX.Element;
|
|
3940
3971
|
|
|
3941
|
-
export { BaseConnectedWalletType, Captcha, ConnectWalletModalOptions, ConnectedSolanaWallet, ConnectedWallet, ConnectorManager, type CustomAuthFlowState, EIP1193Provider, EthereumWalletConnector, FundWalletConfig, type JwtAuthFlowState, 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 UseConnectCoinbaseSmartWalletInterface, type UseCustomAuth, type UseDelegatedActionsInterface, type UseFundWalletInterface, type UseImportWalletInterface, type UseLinkWithPasskey, type UseLoginWithEmail, type UseLoginWithPasskey, type UseLoginWithSms, type UseLoginWithTelegram, type UseOAuthTokens, type UseRecoverEmbeddedWalletInterface, type UseSignupWithPasskey, type UseSubscribeToJwtAuthWithFlagInput, type UseSyncJwtBasedAuthStateInput, type UseSyncJwtBasedAuthStateInterface, type UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletListEntry, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getCustomerAccessToken as getAccessToken, getEmbeddedConnectedWallet, useActiveWallet, useConnectCoinbaseSmartWallet, useConnectOrCreateWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useFarcasterSigner, useFundWallet, useGuestAccounts, useHeadlessDelegatedActions, useIdentityToken, useImportWallet, useLinkAccount, useLinkWithPasskey, useLinkWithSiwe, useLogin, useLoginWithEmail, useLoginWithFarcasterV2, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSiwe, useLoginWithSms, useLoginWithTelegram, useLogout, useMfa, useMfaEnrollment, useModalStatus, useOAuthTokens, usePrivy, useRecoverEmbeddedWallet, useRegisterMfaListener, useSendTransaction, useSetWalletPassword, useSetWalletRecovery, useSignAuthorization, useSignMessage, useSignTransaction, useSignTypedData, useSignupWithPasskey, useSubscribeToJwtAuthWithFlag, useSyncJwtBasedAuthState, useToken, useUpdateAccount, useUser, useWallets };
|
|
3972
|
+
export { BaseConnectedWalletType, Captcha, ConnectWalletModalOptions, ConnectedSolanaWallet, ConnectedWallet, ConnectorManager, type CustomAuthFlowState, EIP1193Provider, EthereumWalletConnector, FundWalletConfig, type JwtAuthFlowState, 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 UseConnectCoinbaseSmartWalletInterface, type UseCustomAuth, type UseDelegatedActionsInterface, type UseFundWalletInterface, type UseImportWalletInterface, type UseLinkWithPasskey, type UseLoginWithEmail, type UseLoginWithPasskey, 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, useActiveWallet, useConnectCoinbaseSmartWallet, useConnectOrCreateWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useFarcasterSigner, useFundWallet, useGuestAccounts, useHeadlessDelegatedActions, useIdentityToken, useImportWallet, useLinkAccount, useLinkWithPasskey, useLinkWithSiwe, useLogin, useLoginWithEmail, useLoginWithFarcasterV2, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSiwe, useLoginWithSms, useLoginWithTelegram, useLogout, useMfa, useMfaEnrollment, useModalStatus, useOAuthTokens, usePrivy, useRecoverEmbeddedWallet, useRegisterMfaListener, useSendTransaction, useSessionSigners, useSetWalletPassword, useSetWalletRecovery, useSignAuthorization, useSignMessage, useSignTransaction, useSignTypedData, useSignupWithPasskey, useSubscribeToJwtAuthWithFlag, useSyncJwtBasedAuthState, useToken, useUpdateAccount, useUser, useWallets };
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import react__default, { MouseEvent } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
3
|
+
import { m as WalletClientType, d as UserRecoveryMethod, n as PrivyFarcasterSignerInitResponse, o as MfaSubmitArgs, E as EthereumRpcRequestType, p as SolanaRpcRequestType, q as EthereumRpcResponseType, r as SolanaRpcResponseType, s as PrivyClientConfig, u as EIP1193Provider, v as EntropyIdVerifier$1, w as RequestArguments, x as WalletTimeoutError, y as WalletConnector, B as BaseConnectedEthereumWallet, z as ConnectedWalletMetadata, A as ConnectorType, D as WalletListEntry, G as ExternalWalletsConfig, H as BaseConnectedWallet, l as SolanaWalletConnector, U as User, I as ConnectWalletModalOptions, J as LoginModalOptions, g as CreateWalletOptions, W as Wallet, K as SetWalletRecoveryOptions, i as SignMessageModalUIOptions, N as SignTypedDataParams, M as MfaMethod, Q as UnsignedTransactionRequest, h as SendTransactionModalUIOptions, T as FundWalletConfig, V as ConnectedWallet, O as OAuthTokens, X as CrossAppProviderDetails, Y as OAuthProviderType, Z as MoonpaySignRequest, _ as MoonpaySignResponse, $ as SmartWalletConfig, a as LoginMethod, a0 as SiweWalletMetadata, a1 as TelegramAuthResult, a2 as TelegramWebAppData, a3 as OAuthUserInfo, a4 as OAuthFlowState, a5 as LoginWithCode, a6 as OtpFlowState, a7 as PasskeyFlowState, a8 as SiweFlowState, a9 as UnsignedTransactionRequestWithChainId, aa as BaseConnectedWalletType, C as ConnectedSolanaWallet, ab as TelegramAuthFlowState } from './types-DWeM9B29.js';
|
|
4
|
+
export { au as Apple, aF as AppleOAuthWithMetadata, aN as ContractUIOptions, ax as CrossAppAccount, aI as CrossAppAccountWithMetadata, ar as Discord, aB as DiscordOAuthWithMetadata, aK as Email, am as EmailWithMetadata, aR as Farcaster, aG as FarcasterWithMetadata, as as Github, aC as GithubOAuthWithMetadata, ap as Google, az as GoogleOAuthWithMetadata, ay as LinkedAccountType, b as LinkedAccountWithMetadata, at as LinkedIn, aE as LinkedInOAuthWithMetadata, aT as LoginMethodOrderOption, ad as MessageTypes, af as MoonpayConfig, ag as MoonpayCurrencyCode, aP as MoonpayFundingConfig, ah as MoonpayPaymentMethod, aO as NativeFundingConfig, al as NonEmptyArray, aS as Passkey, aJ as PasskeyWithMetadata, aL as Phone, an as PhoneWithMetadata, aQ as PriceDisplayOptions, P as PrivyErrorCode, ai as Quantity, ae as SmartWallet, f as SolanaCluster, k as SolanaFundingConfig, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, aw as Telegram, aH as TelegramWithMetadata, av as Tiktok, aD as TiktokOAuthWithMetadata, aj as TransactionLog, ak as TransactionReceipt, aM as TransactionUIOptions, aq as Twitter, aA as TwitterOAuthWithMetadata, ac as TypedMessage, ao as WalletWithMetadata } from './types-DWeM9B29.js';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { TurnstileProps } from '@marsidev/react-turnstile';
|
|
7
7
|
import EventEmitter from 'eventemitter3';
|
|
@@ -16,9 +16,12 @@ 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-
|
|
20
|
-
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-
|
|
19
|
+
import { P as PrivyEvents } from './useSolanaWallets-DG2oXveQ.js';
|
|
20
|
+
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-DG2oXveQ.js';
|
|
21
21
|
import '@solana/wallet-adapter-base';
|
|
22
|
+
import '@solana/wallet-standard-features';
|
|
23
|
+
import '@wallet-standard/base';
|
|
24
|
+
import '@wallet-standard/features';
|
|
22
25
|
import '@metamask/eth-sig-util';
|
|
23
26
|
|
|
24
27
|
type MobileWalletConfig = {
|
|
@@ -37,9 +40,9 @@ type MobileWalletConfig = {
|
|
|
37
40
|
type BaseProxyRequest = {
|
|
38
41
|
accessToken: string;
|
|
39
42
|
} & Partial<MfaSubmitArgs>;
|
|
40
|
-
type EntropyIdVerifier = 'ethereum-address-verifier' | 'solana-address-verifier'
|
|
43
|
+
type EntropyIdVerifier = 'ethereum-address-verifier' | 'solana-address-verifier';
|
|
41
44
|
type BaseWalletsRequestData = BaseProxyRequest & {
|
|
42
|
-
chainType: 'ethereum' | 'solana' | 'bitcoin-taproot' | 'bitcoin-segwit'
|
|
45
|
+
chainType: 'ethereum' | 'solana' | 'bitcoin-taproot' | 'bitcoin-segwit';
|
|
43
46
|
};
|
|
44
47
|
type CreateSignerRequestDataType = BaseProxyRequest & {
|
|
45
48
|
/** Optional: the user-specified recovery password, replaces recoveryPin */
|
|
@@ -71,6 +74,16 @@ type WalletsCreateRequestDataType = BaseWalletsRequestData & {
|
|
|
71
74
|
type WalletsCreateResponseDataType = {
|
|
72
75
|
address: string;
|
|
73
76
|
};
|
|
77
|
+
type UserSignerSignRequestDataType = BaseProxyRequest & {
|
|
78
|
+
/** The message to be signed */
|
|
79
|
+
message: string;
|
|
80
|
+
/** For cross-app requests, the app ID of the requester app */
|
|
81
|
+
requesterAppId?: string | null;
|
|
82
|
+
};
|
|
83
|
+
type UserSignerSignResponseDataType = {
|
|
84
|
+
/** The signature */
|
|
85
|
+
signature: string;
|
|
86
|
+
};
|
|
74
87
|
type WalletsAddRequestDataType = BaseWalletsRequestData & {
|
|
75
88
|
/**
|
|
76
89
|
* Key with which to look up the existing entropy
|
|
@@ -204,15 +217,6 @@ type WalletsRpcBitcoinRequestDataType = {
|
|
|
204
217
|
chainType: 'bitcoin-taproot' | 'bitcoin-segwit';
|
|
205
218
|
request: unknown;
|
|
206
219
|
};
|
|
207
|
-
type WalletsRpcP256RequestDataType = {
|
|
208
|
-
chainType: 'p256';
|
|
209
|
-
request: {
|
|
210
|
-
method: 'sign';
|
|
211
|
-
params: {
|
|
212
|
-
message: string;
|
|
213
|
-
};
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
220
|
type WalletsRpcRequestDataType = BaseWalletsRequestData & {
|
|
217
221
|
/**
|
|
218
222
|
* Key with which to look up the existing entropy
|
|
@@ -236,7 +240,7 @@ type WalletsRpcRequestDataType = BaseWalletsRequestData & {
|
|
|
236
240
|
hdWalletIndex: number;
|
|
237
241
|
/** For cross-app requests, the app ID of the requester app */
|
|
238
242
|
requesterAppId?: string | null;
|
|
239
|
-
} & (WalletsRpcEthereumRequestDataType | WalletsRpcSolanaRequestDataType | WalletsRpcBitcoinRequestDataType
|
|
243
|
+
} & (WalletsRpcEthereumRequestDataType | WalletsRpcSolanaRequestDataType | WalletsRpcBitcoinRequestDataType);
|
|
240
244
|
type WalletsRpcEthereumResponseDataType = {
|
|
241
245
|
chainType: 'ethereum';
|
|
242
246
|
response: EthereumRpcResponseType;
|
|
@@ -249,17 +253,9 @@ type WalletsRpcBitcoinResponseDataType = {
|
|
|
249
253
|
chainType: 'bitcoin-taproot' | 'bitcoin-segwit';
|
|
250
254
|
response: unknown;
|
|
251
255
|
};
|
|
252
|
-
type WalletsRpcP256ResponseDataType = {
|
|
253
|
-
chainType: 'p256';
|
|
254
|
-
response: {
|
|
255
|
-
data: {
|
|
256
|
-
signature: string;
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
};
|
|
260
256
|
type WalletsRpcResponseDataType = {
|
|
261
257
|
address: string;
|
|
262
|
-
} & (WalletsRpcEthereumResponseDataType | WalletsRpcSolanaResponseDataType | WalletsRpcBitcoinResponseDataType
|
|
258
|
+
} & (WalletsRpcEthereumResponseDataType | WalletsRpcSolanaResponseDataType | WalletsRpcBitcoinResponseDataType);
|
|
263
259
|
type BaseWalletCreateRequestDataType = {
|
|
264
260
|
accessToken: string;
|
|
265
261
|
};
|
|
@@ -412,6 +408,7 @@ declare const PrivyIframeErrorTypes: readonly ["error", "invalid_request_argumen
|
|
|
412
408
|
type PrivyIframeErrorTypesType = (typeof PrivyIframeErrorTypes)[number];
|
|
413
409
|
interface EmbeddedWalletProxy {
|
|
414
410
|
createSigner: (data: CreateSignerRequestDataType) => Promise<CreateSignerResponseDataType>;
|
|
411
|
+
signWithUserSigner: (data: UserSignerSignRequestDataType) => Promise<UserSignerSignResponseDataType>;
|
|
415
412
|
createWallet: (data: WalletsCreateRequestDataType) => Promise<WalletsCreateResponseDataType>;
|
|
416
413
|
addWallet: (data: WalletsAddRequestDataType) => Promise<WalletsAddResponseDataType>;
|
|
417
414
|
importWallet: (data: WalletsImportRequestDataType) => Promise<WalletsImportResponseDataType>;
|
|
@@ -438,11 +435,6 @@ interface EmbeddedWalletProxy {
|
|
|
438
435
|
}): Promise<WalletsRpcResponseDataType & {
|
|
439
436
|
chainType: 'bitcoin-segwit';
|
|
440
437
|
}>;
|
|
441
|
-
rpc(data: WalletsRpcRequestDataType & {
|
|
442
|
-
chainType: 'p256';
|
|
443
|
-
}): Promise<WalletsRpcResponseDataType & {
|
|
444
|
-
chainType: 'p256';
|
|
445
|
-
}>;
|
|
446
438
|
/** @deprecated */
|
|
447
439
|
create: (data: EthereumWalletCreateRequestDataType) => Promise<WalletCreateResponseDataType>;
|
|
448
440
|
/** @deprecated */
|
|
@@ -2413,14 +2405,7 @@ interface ResponseCrossAppAccount {
|
|
|
2413
2405
|
first_verified_at: number | null;
|
|
2414
2406
|
latest_verified_at: number | null;
|
|
2415
2407
|
}
|
|
2416
|
-
|
|
2417
|
-
type: 'authorization_key';
|
|
2418
|
-
public_key: string;
|
|
2419
|
-
verified_at: number;
|
|
2420
|
-
first_verified_at: number | null;
|
|
2421
|
-
latest_verified_at: number | null;
|
|
2422
|
-
}
|
|
2423
|
-
type LinkedAccountsResponseType = Array<ResponseEmailAccount | ResponsePhoneAccount | ResponseEthereumAccount | ResponseSmartWalletAccount | ResponseSolanaAccount | ResponseOAuthGoogle | ResponseOAuthTwitter | ResponseOAuthDiscord | ResponseOAuthGithub | ResponseOAuthSpotify | ResponseOAuthInstagram | ResponseOAuthTiktok | ResponseOAuthLinkedIn | ResponseOAuthApple | ResponseCustomJwtAccount | ResponseFarcasterAccount | ResponsePasskeyAccount | ResponseTelegramAccount | ResponseCrossAppAccount | ResponseAuthorizationKeyAccount>;
|
|
2408
|
+
type LinkedAccountsResponseType = Array<ResponseEmailAccount | ResponsePhoneAccount | ResponseEthereumAccount | ResponseSmartWalletAccount | ResponseSolanaAccount | ResponseOAuthGoogle | ResponseOAuthTwitter | ResponseOAuthDiscord | ResponseOAuthGithub | ResponseOAuthSpotify | ResponseOAuthInstagram | ResponseOAuthTiktok | ResponseOAuthLinkedIn | ResponseOAuthApple | ResponseCustomJwtAccount | ResponseFarcasterAccount | ResponsePasskeyAccount | ResponseTelegramAccount | ResponseCrossAppAccount>;
|
|
2424
2409
|
interface ResponseSmsMfaMethod {
|
|
2425
2410
|
type: 'sms';
|
|
2426
2411
|
verified_at: number;
|
|
@@ -3832,11 +3817,14 @@ declare function useFarcasterSigner(): {
|
|
|
3832
3817
|
};
|
|
3833
3818
|
|
|
3834
3819
|
/**
|
|
3820
|
+
* @deprecated use useSessionSigners instead
|
|
3835
3821
|
* Hook to delegate permissions to execute certain transactions to the wallet API.
|
|
3836
3822
|
*
|
|
3837
3823
|
*/
|
|
3838
3824
|
interface UseDelegatedActionsInterface {
|
|
3839
3825
|
/**
|
|
3826
|
+
* @deprecated use useSessionSigners instead
|
|
3827
|
+
*
|
|
3840
3828
|
* Prompts the user to delegate access to their wallet to allow an app to transact on behalf of a user
|
|
3841
3829
|
* within a set of pre-defined permissions. Users can always decline or revoke delegation.
|
|
3842
3830
|
*
|
|
@@ -3849,6 +3837,9 @@ interface UseDelegatedActionsInterface {
|
|
|
3849
3837
|
chainType: 'solana' | 'ethereum';
|
|
3850
3838
|
}) => Promise<void>;
|
|
3851
3839
|
/**
|
|
3840
|
+
*
|
|
3841
|
+
* @deprecated use useSessionSigners instead
|
|
3842
|
+
*
|
|
3852
3843
|
* Revokes the wallet API's ability to transact with a user's delegated wallets. This will revoke
|
|
3853
3844
|
* ALL wallets that have been delegated by the user, in case the user has delegated multiple embedded
|
|
3854
3845
|
* wallets.
|
|
@@ -3860,6 +3851,40 @@ interface UseDelegatedActionsInterface {
|
|
|
3860
3851
|
}
|
|
3861
3852
|
declare const useDelegatedActions: () => UseDelegatedActionsInterface;
|
|
3862
3853
|
|
|
3854
|
+
/**
|
|
3855
|
+
* Hook to add session signers to a user wallet.
|
|
3856
|
+
*
|
|
3857
|
+
*/
|
|
3858
|
+
interface UseSessionSignersInterface {
|
|
3859
|
+
/**
|
|
3860
|
+
* Headlessly grants access of the user wallet to a specified key quorum.
|
|
3861
|
+
*
|
|
3862
|
+
* @param address address of the wallet to delegate
|
|
3863
|
+
* @param signers array of signers to add as session keys to the wallet
|
|
3864
|
+
* @returns Promise that resolves if adding signers was successful, and errors otherwise
|
|
3865
|
+
*/
|
|
3866
|
+
addSessionSigners: ({ address, signers, }: {
|
|
3867
|
+
address: string;
|
|
3868
|
+
signers: {
|
|
3869
|
+
signerId: string;
|
|
3870
|
+
}[];
|
|
3871
|
+
}) => Promise<{
|
|
3872
|
+
user: User;
|
|
3873
|
+
}>;
|
|
3874
|
+
/**
|
|
3875
|
+
* Removes all session keys from a user wallet.
|
|
3876
|
+
*
|
|
3877
|
+
* @param address address of the wallet to revoke access for
|
|
3878
|
+
* @returns Promise that resolves if the revocation was successful, and errors otherwise
|
|
3879
|
+
*/
|
|
3880
|
+
removeSessionSigners: ({ address }: {
|
|
3881
|
+
address: string;
|
|
3882
|
+
}) => Promise<{
|
|
3883
|
+
user: User;
|
|
3884
|
+
}>;
|
|
3885
|
+
}
|
|
3886
|
+
declare const useSessionSigners: () => UseSessionSignersInterface;
|
|
3887
|
+
|
|
3863
3888
|
/**
|
|
3864
3889
|
* Use this hook to programmatically update the user in response to any backend change
|
|
3865
3890
|
*
|
|
@@ -3898,11 +3923,15 @@ type UseLoginWithTelegram = {
|
|
|
3898
3923
|
declare const useLoginWithTelegram: (callbacks?: PrivyEvents["login"]) => UseLoginWithTelegram;
|
|
3899
3924
|
|
|
3900
3925
|
/**
|
|
3926
|
+
* @deprecated use useSessionSigners instead
|
|
3927
|
+
*
|
|
3901
3928
|
* Hook to headlessly permissions to execute certain transactions to the wallet API.
|
|
3902
3929
|
*
|
|
3903
3930
|
*/
|
|
3904
3931
|
interface UseHeadlessDelegatedActionsInterface {
|
|
3905
3932
|
/**
|
|
3933
|
+
* @deprecated use useSessionSigners instead
|
|
3934
|
+
*
|
|
3906
3935
|
* Prompts the user to headlessly delegate access to their wallet to allow an app to transact on behalf of a user
|
|
3907
3936
|
* within a set of pre-defined permissions. Users can always decline or revoke delegation.
|
|
3908
3937
|
*
|
|
@@ -3915,6 +3944,8 @@ interface UseHeadlessDelegatedActionsInterface {
|
|
|
3915
3944
|
chainType: 'solana' | 'ethereum';
|
|
3916
3945
|
}) => Promise<void>;
|
|
3917
3946
|
/**
|
|
3947
|
+
* @deprecated use useSessionSigners instead
|
|
3948
|
+
*
|
|
3918
3949
|
* Headlessly revokes the wallet API's ability to transact with a user's delegated wallets. This will revoke
|
|
3919
3950
|
* ALL wallets that have been delegated by the user, in case the user has delegated multiple embedded
|
|
3920
3951
|
* wallets.
|
|
@@ -3938,4 +3969,4 @@ declare const LoginModal: ({ open }: {
|
|
|
3938
3969
|
open: boolean;
|
|
3939
3970
|
}) => react_jsx_runtime.JSX.Element;
|
|
3940
3971
|
|
|
3941
|
-
export { BaseConnectedWalletType, Captcha, ConnectWalletModalOptions, ConnectedSolanaWallet, ConnectedWallet, ConnectorManager, type CustomAuthFlowState, EIP1193Provider, EthereumWalletConnector, FundWalletConfig, type JwtAuthFlowState, 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 UseConnectCoinbaseSmartWalletInterface, type UseCustomAuth, type UseDelegatedActionsInterface, type UseFundWalletInterface, type UseImportWalletInterface, type UseLinkWithPasskey, type UseLoginWithEmail, type UseLoginWithPasskey, type UseLoginWithSms, type UseLoginWithTelegram, type UseOAuthTokens, type UseRecoverEmbeddedWalletInterface, type UseSignupWithPasskey, type UseSubscribeToJwtAuthWithFlagInput, type UseSyncJwtBasedAuthStateInput, type UseSyncJwtBasedAuthStateInterface, type UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletListEntry, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getCustomerAccessToken as getAccessToken, getEmbeddedConnectedWallet, useActiveWallet, useConnectCoinbaseSmartWallet, useConnectOrCreateWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useFarcasterSigner, useFundWallet, useGuestAccounts, useHeadlessDelegatedActions, useIdentityToken, useImportWallet, useLinkAccount, useLinkWithPasskey, useLinkWithSiwe, useLogin, useLoginWithEmail, useLoginWithFarcasterV2, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSiwe, useLoginWithSms, useLoginWithTelegram, useLogout, useMfa, useMfaEnrollment, useModalStatus, useOAuthTokens, usePrivy, useRecoverEmbeddedWallet, useRegisterMfaListener, useSendTransaction, useSetWalletPassword, useSetWalletRecovery, useSignAuthorization, useSignMessage, useSignTransaction, useSignTypedData, useSignupWithPasskey, useSubscribeToJwtAuthWithFlag, useSyncJwtBasedAuthState, useToken, useUpdateAccount, useUser, useWallets };
|
|
3972
|
+
export { BaseConnectedWalletType, Captcha, ConnectWalletModalOptions, ConnectedSolanaWallet, ConnectedWallet, ConnectorManager, type CustomAuthFlowState, EIP1193Provider, EthereumWalletConnector, FundWalletConfig, type JwtAuthFlowState, 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 UseConnectCoinbaseSmartWalletInterface, type UseCustomAuth, type UseDelegatedActionsInterface, type UseFundWalletInterface, type UseImportWalletInterface, type UseLinkWithPasskey, type UseLoginWithEmail, type UseLoginWithPasskey, 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, useActiveWallet, useConnectCoinbaseSmartWallet, useConnectOrCreateWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useFarcasterSigner, useFundWallet, useGuestAccounts, useHeadlessDelegatedActions, useIdentityToken, useImportWallet, useLinkAccount, useLinkWithPasskey, useLinkWithSiwe, useLogin, useLoginWithEmail, useLoginWithFarcasterV2, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSiwe, useLoginWithSms, useLoginWithTelegram, useLogout, useMfa, useMfaEnrollment, useModalStatus, useOAuthTokens, usePrivy, useRecoverEmbeddedWallet, useRegisterMfaListener, useSendTransaction, useSessionSigners, useSetWalletPassword, useSetWalletRecovery, useSignAuthorization, useSignMessage, useSignTransaction, useSignTypedData, useSignupWithPasskey, useSubscribeToJwtAuthWithFlag, useSyncJwtBasedAuthState, useToken, useUpdateAccount, useUser, useWallets };
|
|
@@ -7,9 +7,12 @@ import { SmartAccount, SendUserOperationParameters } from 'viem/account-abstract
|
|
|
7
7
|
import * as viem from 'viem';
|
|
8
8
|
import { SendTransactionParameters, Chain, Hash, SignableMessage, Hex, TypedData, SignTypedDataParameters, EIP1193Provider, PublicClient, Client } from 'viem';
|
|
9
9
|
import { SmartWalletType } from '@privy-io/js-sdk-core';
|
|
10
|
-
import { h as SendTransactionModalUIOptions, i as SignMessageModalUIOptions } from './types-
|
|
10
|
+
import { h as SendTransactionModalUIOptions, i as SignMessageModalUIOptions } from './types-DWeM9B29.js';
|
|
11
11
|
import '@solana/wallet-adapter-base';
|
|
12
12
|
import '@privy-io/public-api';
|
|
13
|
+
import '@solana/wallet-standard-features';
|
|
14
|
+
import '@wallet-standard/base';
|
|
15
|
+
import '@wallet-standard/features';
|
|
13
16
|
import '@metamask/eth-sig-util';
|
|
14
17
|
import '@solana/web3.js';
|
|
15
18
|
import 'eventemitter3';
|
|
@@ -7,9 +7,12 @@ import { SmartAccount, SendUserOperationParameters } from 'viem/account-abstract
|
|
|
7
7
|
import * as viem from 'viem';
|
|
8
8
|
import { SendTransactionParameters, Chain, Hash, SignableMessage, Hex, TypedData, SignTypedDataParameters, EIP1193Provider, PublicClient, Client } from 'viem';
|
|
9
9
|
import { SmartWalletType } from '@privy-io/js-sdk-core';
|
|
10
|
-
import { h as SendTransactionModalUIOptions, i as SignMessageModalUIOptions } from './types-
|
|
10
|
+
import { h as SendTransactionModalUIOptions, i as SignMessageModalUIOptions } from './types-DWeM9B29.js';
|
|
11
11
|
import '@solana/wallet-adapter-base';
|
|
12
12
|
import '@privy-io/public-api';
|
|
13
|
+
import '@solana/wallet-standard-features';
|
|
14
|
+
import '@wallet-standard/base';
|
|
15
|
+
import '@wallet-standard/features';
|
|
13
16
|
import '@metamask/eth-sig-util';
|
|
14
17
|
import '@solana/web3.js';
|
|
15
18
|
import 'eventemitter3';
|