@privy-io/react-auth 2.6.1 → 2.6.2
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/AwaitingEvmToSolBridgingScreen-pmGmvR1q.js +22 -0
- package/dist/cjs/abstract-smart-wallets.js +1 -1
- package/dist/cjs/farcaster.js +1 -1
- package/dist/cjs/getEmbeddedConnectedWallet-CGj_I0cc.js +2 -0
- package/dist/cjs/importWallet-Du1BO6qb.js +1 -0
- package/dist/cjs/index.js +5 -22
- package/dist/cjs/internal-context-D5TgeQk8.js +1 -0
- package/dist/cjs/prepareFundingModalData-C2_ED32S.js +1 -0
- package/dist/cjs/smart-wallets-CoYci1bf.js +1 -0
- package/dist/cjs/smart-wallets.js +1 -1
- package/dist/cjs/solana.js +1 -1
- package/dist/cjs/ui.js +2 -2
- package/dist/cjs/useActiveWallet-CaLK0Ao4.js +1 -0
- package/dist/cjs/useFundWallet-92y-LJjK.js +1 -0
- package/dist/dts/farcaster.d.mts +1 -1
- package/dist/dts/farcaster.d.ts +1 -1
- package/dist/dts/index.d.mts +46 -8
- package/dist/dts/index.d.ts +46 -8
- package/dist/dts/smart-wallets.d.mts +1 -1
- package/dist/dts/smart-wallets.d.ts +1 -1
- package/dist/dts/solana.d.mts +4 -4
- package/dist/dts/solana.d.ts +4 -4
- package/dist/dts/{types-cJoXquFV.d.mts → types-CcosPsy6.d.mts} +1 -1
- package/dist/dts/{types-cJoXquFV.d.ts → types-CcosPsy6.d.ts} +1 -1
- package/dist/dts/ui.d.mts +1 -1
- package/dist/dts/ui.d.ts +1 -1
- package/dist/dts/{useSolanaWallets-C6q1MrJz.d.mts → useSolanaWallets-BHduxJmW.d.mts} +1 -1
- package/dist/dts/{useSolanaWallets-C6q1MrJz.d.ts → useSolanaWallets-BHduxJmW.d.ts} +1 -1
- package/dist/esm/AwaitingEvmToSolBridgingScreen-DnBONxHo.mjs +22 -0
- package/dist/esm/abstract-smart-wallets.mjs +1 -1
- package/dist/esm/farcaster.mjs +1 -1
- package/dist/esm/getEmbeddedConnectedWallet-Cyt02rK3.mjs +2 -0
- package/dist/esm/importWallet-Bqr-aqzk.mjs +1 -0
- package/dist/esm/index.mjs +5 -22
- package/dist/esm/internal-context-CL_EG4e1.mjs +1 -0
- package/dist/esm/prepareFundingModalData-Bkg2jc5P.mjs +1 -0
- package/dist/esm/smart-wallets-KrlR2oLu.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-SKrFBYMY.mjs +1 -0
- package/dist/esm/useFundWallet-BvMwnH48.mjs +1 -0
- package/package.json +3 -3
- package/dist/cjs/getEmbeddedConnectedWallet-DTU4T9TJ.js +0 -1
- package/dist/cjs/getPublicClient-hVv5ZSWd.js +0 -1
- package/dist/cjs/importWallet-CqIkwxB-.js +0 -1
- package/dist/cjs/internal-context-DV3MljLU.js +0 -1
- package/dist/cjs/paths-BGBZ-6Nl.js +0 -1
- package/dist/cjs/prepareFundingModalData-BCNQSbXb.js +0 -1
- package/dist/cjs/smart-wallets-BJE1oUqH.js +0 -1
- package/dist/cjs/useActiveWallet-CLPPplpC.js +0 -6
- package/dist/cjs/useFundWallet-BLEO3WzQ.js +0 -1
- package/dist/cjs/useWallets-Dmyb5a0t.js +0 -1
- package/dist/esm/getEmbeddedConnectedWallet-CSSBWE2p.mjs +0 -1
- package/dist/esm/getPublicClient-wHgCncHx.mjs +0 -1
- package/dist/esm/importWallet-CJLTGjPg.mjs +0 -1
- package/dist/esm/internal-context-mSHyF0Gq.mjs +0 -1
- package/dist/esm/paths-Q47X90aK.mjs +0 -1
- package/dist/esm/prepareFundingModalData-due26ueW.mjs +0 -1
- package/dist/esm/smart-wallets-dP5AzE1-.mjs +0 -1
- package/dist/esm/useActiveWallet-C8nSK6cE.mjs +0 -6
- package/dist/esm/useFundWallet-DR5oafbj.mjs +0 -1
- package/dist/esm/useWallets-DTpjk5Rk.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 { C as Chain, 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 RpcConfig, v as EIP1193Provider, w as EntropyIdVerifier$1, x as RequestArguments, y as WalletTimeoutError, z as WalletConnector, B as BaseConnectedEthereumWallet, A as ConnectedWalletMetadata, D as ConnectorType, G as WalletListEntry, H as ExternalWalletsConfig, I as BaseConnectedWallet, l as SolanaWalletConnector, U as User, J as ConnectWalletModalOptions, K as LoginModalOptions, h as CreateWalletOptions, W as Wallet, N as SetWalletRecoveryOptions, j as SignMessageModalUIOptions, Q as SignTypedDataParams, M as MfaMethod, T as UnsignedTransactionRequest, i as SendTransactionModalUIOptions, V as FundWalletConfig, X as ConnectedWallet, O as OAuthTokens, Y as CrossAppProviderDetails, Z as OAuthProviderType, _ as MoonpaySignRequest, $ as MoonpaySignResponse, a0 as SmartWalletConfig, a1 as PrivyServerConfig, a as LoginMethod, a2 as SiweWalletMetadata, a3 as TelegramAuthResult, a4 as TelegramWebAppData, a5 as OAuthUserInfo, a6 as OAuthFlowState, a7 as LoginWithCode, a8 as OtpFlowState, a9 as PasskeyFlowState, aa as SiweFlowState, ab as UnsignedTransactionRequestWithChainId, ac as BaseConnectedWalletType, g as ConnectedSolanaWallet, ad as CustomAuthFlowState, ae as TelegramAuthFlowState } from './types-
|
|
4
|
-
export { ax as Apple, aI as AppleOAuthWithMetadata, aQ as ContractUIOptions, aA as CrossAppAccount, aL as CrossAppAccountWithMetadata, au as Discord, aE as DiscordOAuthWithMetadata, aN as Email, ap as EmailWithMetadata, aU as Farcaster, aJ as FarcasterWithMetadata, av as Github, aF as GithubOAuthWithMetadata, as as Google, aC as GoogleOAuthWithMetadata, aB as LinkedAccountType, b as LinkedAccountWithMetadata, aw as LinkedIn, aH as LinkedInOAuthWithMetadata, aW as LoginMethodOrderOption, ag as MessageTypes, ai as MoonpayConfig, aj as MoonpayCurrencyCode, aS as MoonpayFundingConfig, ak as MoonpayPaymentMethod, aR as NativeFundingConfig, ao as NonEmptyArray, aV as Passkey, aM as PasskeyWithMetadata, aO as Phone, aq as PhoneWithMetadata, aT as PriceDisplayOptions, P as PrivyErrorCode, al as Quantity, ah as SmartWallet, f as SolanaCluster, k as SolanaFundingConfig, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, az as Telegram, aK as TelegramWithMetadata, ay as Tiktok, aG as TiktokOAuthWithMetadata, am as TransactionLog, an as TransactionReceipt, aP as TransactionUIOptions, at as Twitter, aD as TwitterOAuthWithMetadata, af as TypedMessage, ar as WalletWithMetadata } from './types-
|
|
3
|
+
import { C as Chain, 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 RpcConfig, v as EIP1193Provider, w as EntropyIdVerifier$1, x as RequestArguments, y as WalletTimeoutError, z as WalletConnector, B as BaseConnectedEthereumWallet, A as ConnectedWalletMetadata, D as ConnectorType, G as WalletListEntry, H as ExternalWalletsConfig, I as BaseConnectedWallet, l as SolanaWalletConnector, U as User, J as ConnectWalletModalOptions, K as LoginModalOptions, h as CreateWalletOptions, W as Wallet, N as SetWalletRecoveryOptions, j as SignMessageModalUIOptions, Q as SignTypedDataParams, M as MfaMethod, T as UnsignedTransactionRequest, i as SendTransactionModalUIOptions, V as FundWalletConfig, X as ConnectedWallet, O as OAuthTokens, Y as CrossAppProviderDetails, Z as OAuthProviderType, _ as MoonpaySignRequest, $ as MoonpaySignResponse, a0 as SmartWalletConfig, a1 as PrivyServerConfig, a as LoginMethod, a2 as SiweWalletMetadata, a3 as TelegramAuthResult, a4 as TelegramWebAppData, a5 as OAuthUserInfo, a6 as OAuthFlowState, a7 as LoginWithCode, a8 as OtpFlowState, a9 as PasskeyFlowState, aa as SiweFlowState, ab as UnsignedTransactionRequestWithChainId, ac as BaseConnectedWalletType, g as ConnectedSolanaWallet, ad as CustomAuthFlowState, ae as TelegramAuthFlowState } from './types-CcosPsy6.js';
|
|
4
|
+
export { ax as Apple, aI as AppleOAuthWithMetadata, aQ as ContractUIOptions, aA as CrossAppAccount, aL as CrossAppAccountWithMetadata, au as Discord, aE as DiscordOAuthWithMetadata, aN as Email, ap as EmailWithMetadata, aU as Farcaster, aJ as FarcasterWithMetadata, av as Github, aF as GithubOAuthWithMetadata, as as Google, aC as GoogleOAuthWithMetadata, aB as LinkedAccountType, b as LinkedAccountWithMetadata, aw as LinkedIn, aH as LinkedInOAuthWithMetadata, aW as LoginMethodOrderOption, ag as MessageTypes, ai as MoonpayConfig, aj as MoonpayCurrencyCode, aS as MoonpayFundingConfig, ak as MoonpayPaymentMethod, aR as NativeFundingConfig, ao as NonEmptyArray, aV as Passkey, aM as PasskeyWithMetadata, aO as Phone, aq as PhoneWithMetadata, aT as PriceDisplayOptions, P as PrivyErrorCode, al as Quantity, ah as SmartWallet, f as SolanaCluster, k as SolanaFundingConfig, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, az as Telegram, aK as TelegramWithMetadata, ay as Tiktok, aG as TiktokOAuthWithMetadata, am as TransactionLog, an as TransactionReceipt, aP as TransactionUIOptions, at as Twitter, aD as TwitterOAuthWithMetadata, af as TypedMessage, ar as WalletWithMetadata } from './types-CcosPsy6.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';
|
|
@@ -17,8 +17,8 @@ import * as _simplewebauthn_types from '@simplewebauthn/types';
|
|
|
17
17
|
import { PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/types';
|
|
18
18
|
import { Cluster } from '@solana/web3.js';
|
|
19
19
|
import { FetchOptions } from 'ofetch';
|
|
20
|
-
import { P as PrivyEvents } from './useSolanaWallets-
|
|
21
|
-
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-
|
|
20
|
+
import { P as PrivyEvents } from './useSolanaWallets-BHduxJmW.js';
|
|
21
|
+
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-BHduxJmW.js';
|
|
22
22
|
import '@solana/wallet-adapter-base';
|
|
23
23
|
import '@privy-io/js-sdk-core';
|
|
24
24
|
import '@metamask/eth-sig-util';
|
|
@@ -41,9 +41,24 @@ type MobileWalletConfig = {
|
|
|
41
41
|
type BaseProxyRequest = {
|
|
42
42
|
accessToken: string;
|
|
43
43
|
} & Partial<MfaSubmitArgs>;
|
|
44
|
-
type EntropyIdVerifier = 'ethereum-address-verifier' | 'solana-address-verifier';
|
|
44
|
+
type EntropyIdVerifier = 'ethereum-address-verifier' | 'solana-address-verifier' | 'p256';
|
|
45
45
|
type BaseWalletsRequestData = BaseProxyRequest & {
|
|
46
|
-
chainType: 'ethereum' | 'solana' | 'bitcoin-taproot' | 'bitcoin-segwit';
|
|
46
|
+
chainType: 'ethereum' | 'solana' | 'bitcoin-taproot' | 'bitcoin-segwit' | 'p256';
|
|
47
|
+
};
|
|
48
|
+
type CreateSignerRequestDataType = BaseProxyRequest & {
|
|
49
|
+
/** Optional: the user-specified recovery password, replaces recoveryPin */
|
|
50
|
+
recoveryPassword?: string;
|
|
51
|
+
/** Optional: the recovery method to be used for the created wallet */
|
|
52
|
+
recoveryMethod?: UserRecoveryMethod;
|
|
53
|
+
/** Optional: in the case of cloud recovery, the access token to be used to communicated with the cloud provider (eg Google) */
|
|
54
|
+
recoveryAccessToken?: string;
|
|
55
|
+
/** Optional: override the recoverySecret, only for use when we need to store recovery secrets in cloud storage outside of the iframe (eg native) */
|
|
56
|
+
recoverySecretOverride?: string;
|
|
57
|
+
/** Optional: override the iCloudRecordName, only for use when we need to store recovery secrets in cloud storage outside of the iframe (eg native) */
|
|
58
|
+
iCloudRecordNameOverride?: string;
|
|
59
|
+
};
|
|
60
|
+
type CreateSignerResponseDataType = {
|
|
61
|
+
publicKey: string;
|
|
47
62
|
};
|
|
48
63
|
type WalletsCreateRequestDataType = BaseWalletsRequestData & {
|
|
49
64
|
/** Optional: the user-specified recovery password, replaces recoveryPin */
|
|
@@ -191,6 +206,15 @@ type WalletsRpcBitcoinRequestDataType = {
|
|
|
191
206
|
chainType: 'bitcoin-taproot' | 'bitcoin-segwit';
|
|
192
207
|
request: unknown;
|
|
193
208
|
};
|
|
209
|
+
type WalletsRpcP256RequestDataType = {
|
|
210
|
+
chainType: 'p256';
|
|
211
|
+
request: {
|
|
212
|
+
method: 'sign';
|
|
213
|
+
params: {
|
|
214
|
+
message: string;
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
};
|
|
194
218
|
type WalletsRpcRequestDataType = BaseWalletsRequestData & {
|
|
195
219
|
/**
|
|
196
220
|
* Key with which to look up the existing entropy
|
|
@@ -214,7 +238,7 @@ type WalletsRpcRequestDataType = BaseWalletsRequestData & {
|
|
|
214
238
|
hdWalletIndex: number;
|
|
215
239
|
/** For cross-app requests, the app ID of the requester app */
|
|
216
240
|
requesterAppId?: string | null;
|
|
217
|
-
} & (WalletsRpcEthereumRequestDataType | WalletsRpcSolanaRequestDataType | WalletsRpcBitcoinRequestDataType);
|
|
241
|
+
} & (WalletsRpcEthereumRequestDataType | WalletsRpcSolanaRequestDataType | WalletsRpcBitcoinRequestDataType | WalletsRpcP256RequestDataType);
|
|
218
242
|
type WalletsRpcEthereumResponseDataType = {
|
|
219
243
|
chainType: 'ethereum';
|
|
220
244
|
response: EthereumRpcResponseType;
|
|
@@ -227,9 +251,17 @@ type WalletsRpcBitcoinResponseDataType = {
|
|
|
227
251
|
chainType: 'bitcoin-taproot' | 'bitcoin-segwit';
|
|
228
252
|
response: unknown;
|
|
229
253
|
};
|
|
254
|
+
type WalletsRpcP256ResponseDataType = {
|
|
255
|
+
chainType: 'p256';
|
|
256
|
+
response: {
|
|
257
|
+
data: {
|
|
258
|
+
signature: string;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
};
|
|
230
262
|
type WalletsRpcResponseDataType = {
|
|
231
263
|
address: string;
|
|
232
|
-
} & (WalletsRpcEthereumResponseDataType | WalletsRpcSolanaResponseDataType | WalletsRpcBitcoinResponseDataType);
|
|
264
|
+
} & (WalletsRpcEthereumResponseDataType | WalletsRpcSolanaResponseDataType | WalletsRpcBitcoinResponseDataType | WalletsRpcP256ResponseDataType);
|
|
233
265
|
type BaseWalletCreateRequestDataType = {
|
|
234
266
|
accessToken: string;
|
|
235
267
|
};
|
|
@@ -381,6 +413,7 @@ type DelegatedActionsConsentResponseDataType = {
|
|
|
381
413
|
declare const PrivyIframeErrorTypes: readonly ["error", "invalid_request_arguments", "wallet_not_on_device", "invalid_recovery_pin", "insufficient_funds", "missing_or_invalid_mfa", "mfa_verification_max_attempts_reached", "mfa_timeout", "twilio_verification_failed"];
|
|
382
414
|
type PrivyIframeErrorTypesType = (typeof PrivyIframeErrorTypes)[number];
|
|
383
415
|
interface EmbeddedWalletProxy {
|
|
416
|
+
createSigner: (data: CreateSignerRequestDataType) => Promise<CreateSignerResponseDataType>;
|
|
384
417
|
createWallet: (data: WalletsCreateRequestDataType) => Promise<WalletsCreateResponseDataType>;
|
|
385
418
|
addWallet: (data: WalletsAddRequestDataType) => Promise<WalletsAddResponseDataType>;
|
|
386
419
|
importWallet: (data: WalletsImportRequestDataType) => Promise<WalletsImportResponseDataType>;
|
|
@@ -407,6 +440,11 @@ interface EmbeddedWalletProxy {
|
|
|
407
440
|
}): Promise<WalletsRpcResponseDataType & {
|
|
408
441
|
chainType: 'bitcoin-segwit';
|
|
409
442
|
}>;
|
|
443
|
+
rpc(data: WalletsRpcRequestDataType & {
|
|
444
|
+
chainType: 'p256';
|
|
445
|
+
}): Promise<WalletsRpcResponseDataType & {
|
|
446
|
+
chainType: 'p256';
|
|
447
|
+
}>;
|
|
410
448
|
/** @deprecated */
|
|
411
449
|
create: (data: EthereumWalletCreateRequestDataType) => Promise<WalletCreateResponseDataType>;
|
|
412
450
|
/** @deprecated */
|
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 { C as Chain, 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 RpcConfig, v as EIP1193Provider, w as EntropyIdVerifier$1, x as RequestArguments, y as WalletTimeoutError, z as WalletConnector, B as BaseConnectedEthereumWallet, A as ConnectedWalletMetadata, D as ConnectorType, G as WalletListEntry, H as ExternalWalletsConfig, I as BaseConnectedWallet, l as SolanaWalletConnector, U as User, J as ConnectWalletModalOptions, K as LoginModalOptions, h as CreateWalletOptions, W as Wallet, N as SetWalletRecoveryOptions, j as SignMessageModalUIOptions, Q as SignTypedDataParams, M as MfaMethod, T as UnsignedTransactionRequest, i as SendTransactionModalUIOptions, V as FundWalletConfig, X as ConnectedWallet, O as OAuthTokens, Y as CrossAppProviderDetails, Z as OAuthProviderType, _ as MoonpaySignRequest, $ as MoonpaySignResponse, a0 as SmartWalletConfig, a1 as PrivyServerConfig, a as LoginMethod, a2 as SiweWalletMetadata, a3 as TelegramAuthResult, a4 as TelegramWebAppData, a5 as OAuthUserInfo, a6 as OAuthFlowState, a7 as LoginWithCode, a8 as OtpFlowState, a9 as PasskeyFlowState, aa as SiweFlowState, ab as UnsignedTransactionRequestWithChainId, ac as BaseConnectedWalletType, g as ConnectedSolanaWallet, ad as CustomAuthFlowState, ae as TelegramAuthFlowState } from './types-
|
|
4
|
-
export { ax as Apple, aI as AppleOAuthWithMetadata, aQ as ContractUIOptions, aA as CrossAppAccount, aL as CrossAppAccountWithMetadata, au as Discord, aE as DiscordOAuthWithMetadata, aN as Email, ap as EmailWithMetadata, aU as Farcaster, aJ as FarcasterWithMetadata, av as Github, aF as GithubOAuthWithMetadata, as as Google, aC as GoogleOAuthWithMetadata, aB as LinkedAccountType, b as LinkedAccountWithMetadata, aw as LinkedIn, aH as LinkedInOAuthWithMetadata, aW as LoginMethodOrderOption, ag as MessageTypes, ai as MoonpayConfig, aj as MoonpayCurrencyCode, aS as MoonpayFundingConfig, ak as MoonpayPaymentMethod, aR as NativeFundingConfig, ao as NonEmptyArray, aV as Passkey, aM as PasskeyWithMetadata, aO as Phone, aq as PhoneWithMetadata, aT as PriceDisplayOptions, P as PrivyErrorCode, al as Quantity, ah as SmartWallet, f as SolanaCluster, k as SolanaFundingConfig, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, az as Telegram, aK as TelegramWithMetadata, ay as Tiktok, aG as TiktokOAuthWithMetadata, am as TransactionLog, an as TransactionReceipt, aP as TransactionUIOptions, at as Twitter, aD as TwitterOAuthWithMetadata, af as TypedMessage, ar as WalletWithMetadata } from './types-
|
|
3
|
+
import { C as Chain, 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 RpcConfig, v as EIP1193Provider, w as EntropyIdVerifier$1, x as RequestArguments, y as WalletTimeoutError, z as WalletConnector, B as BaseConnectedEthereumWallet, A as ConnectedWalletMetadata, D as ConnectorType, G as WalletListEntry, H as ExternalWalletsConfig, I as BaseConnectedWallet, l as SolanaWalletConnector, U as User, J as ConnectWalletModalOptions, K as LoginModalOptions, h as CreateWalletOptions, W as Wallet, N as SetWalletRecoveryOptions, j as SignMessageModalUIOptions, Q as SignTypedDataParams, M as MfaMethod, T as UnsignedTransactionRequest, i as SendTransactionModalUIOptions, V as FundWalletConfig, X as ConnectedWallet, O as OAuthTokens, Y as CrossAppProviderDetails, Z as OAuthProviderType, _ as MoonpaySignRequest, $ as MoonpaySignResponse, a0 as SmartWalletConfig, a1 as PrivyServerConfig, a as LoginMethod, a2 as SiweWalletMetadata, a3 as TelegramAuthResult, a4 as TelegramWebAppData, a5 as OAuthUserInfo, a6 as OAuthFlowState, a7 as LoginWithCode, a8 as OtpFlowState, a9 as PasskeyFlowState, aa as SiweFlowState, ab as UnsignedTransactionRequestWithChainId, ac as BaseConnectedWalletType, g as ConnectedSolanaWallet, ad as CustomAuthFlowState, ae as TelegramAuthFlowState } from './types-CcosPsy6.js';
|
|
4
|
+
export { ax as Apple, aI as AppleOAuthWithMetadata, aQ as ContractUIOptions, aA as CrossAppAccount, aL as CrossAppAccountWithMetadata, au as Discord, aE as DiscordOAuthWithMetadata, aN as Email, ap as EmailWithMetadata, aU as Farcaster, aJ as FarcasterWithMetadata, av as Github, aF as GithubOAuthWithMetadata, as as Google, aC as GoogleOAuthWithMetadata, aB as LinkedAccountType, b as LinkedAccountWithMetadata, aw as LinkedIn, aH as LinkedInOAuthWithMetadata, aW as LoginMethodOrderOption, ag as MessageTypes, ai as MoonpayConfig, aj as MoonpayCurrencyCode, aS as MoonpayFundingConfig, ak as MoonpayPaymentMethod, aR as NativeFundingConfig, ao as NonEmptyArray, aV as Passkey, aM as PasskeyWithMetadata, aO as Phone, aq as PhoneWithMetadata, aT as PriceDisplayOptions, P as PrivyErrorCode, al as Quantity, ah as SmartWallet, f as SolanaCluster, k as SolanaFundingConfig, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, az as Telegram, aK as TelegramWithMetadata, ay as Tiktok, aG as TiktokOAuthWithMetadata, am as TransactionLog, an as TransactionReceipt, aP as TransactionUIOptions, at as Twitter, aD as TwitterOAuthWithMetadata, af as TypedMessage, ar as WalletWithMetadata } from './types-CcosPsy6.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';
|
|
@@ -17,8 +17,8 @@ import * as _simplewebauthn_types from '@simplewebauthn/types';
|
|
|
17
17
|
import { PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/types';
|
|
18
18
|
import { Cluster } from '@solana/web3.js';
|
|
19
19
|
import { FetchOptions } from 'ofetch';
|
|
20
|
-
import { P as PrivyEvents } from './useSolanaWallets-
|
|
21
|
-
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-
|
|
20
|
+
import { P as PrivyEvents } from './useSolanaWallets-BHduxJmW.js';
|
|
21
|
+
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-BHduxJmW.js';
|
|
22
22
|
import '@solana/wallet-adapter-base';
|
|
23
23
|
import '@privy-io/js-sdk-core';
|
|
24
24
|
import '@metamask/eth-sig-util';
|
|
@@ -41,9 +41,24 @@ type MobileWalletConfig = {
|
|
|
41
41
|
type BaseProxyRequest = {
|
|
42
42
|
accessToken: string;
|
|
43
43
|
} & Partial<MfaSubmitArgs>;
|
|
44
|
-
type EntropyIdVerifier = 'ethereum-address-verifier' | 'solana-address-verifier';
|
|
44
|
+
type EntropyIdVerifier = 'ethereum-address-verifier' | 'solana-address-verifier' | 'p256';
|
|
45
45
|
type BaseWalletsRequestData = BaseProxyRequest & {
|
|
46
|
-
chainType: 'ethereum' | 'solana' | 'bitcoin-taproot' | 'bitcoin-segwit';
|
|
46
|
+
chainType: 'ethereum' | 'solana' | 'bitcoin-taproot' | 'bitcoin-segwit' | 'p256';
|
|
47
|
+
};
|
|
48
|
+
type CreateSignerRequestDataType = BaseProxyRequest & {
|
|
49
|
+
/** Optional: the user-specified recovery password, replaces recoveryPin */
|
|
50
|
+
recoveryPassword?: string;
|
|
51
|
+
/** Optional: the recovery method to be used for the created wallet */
|
|
52
|
+
recoveryMethod?: UserRecoveryMethod;
|
|
53
|
+
/** Optional: in the case of cloud recovery, the access token to be used to communicated with the cloud provider (eg Google) */
|
|
54
|
+
recoveryAccessToken?: string;
|
|
55
|
+
/** Optional: override the recoverySecret, only for use when we need to store recovery secrets in cloud storage outside of the iframe (eg native) */
|
|
56
|
+
recoverySecretOverride?: string;
|
|
57
|
+
/** Optional: override the iCloudRecordName, only for use when we need to store recovery secrets in cloud storage outside of the iframe (eg native) */
|
|
58
|
+
iCloudRecordNameOverride?: string;
|
|
59
|
+
};
|
|
60
|
+
type CreateSignerResponseDataType = {
|
|
61
|
+
publicKey: string;
|
|
47
62
|
};
|
|
48
63
|
type WalletsCreateRequestDataType = BaseWalletsRequestData & {
|
|
49
64
|
/** Optional: the user-specified recovery password, replaces recoveryPin */
|
|
@@ -191,6 +206,15 @@ type WalletsRpcBitcoinRequestDataType = {
|
|
|
191
206
|
chainType: 'bitcoin-taproot' | 'bitcoin-segwit';
|
|
192
207
|
request: unknown;
|
|
193
208
|
};
|
|
209
|
+
type WalletsRpcP256RequestDataType = {
|
|
210
|
+
chainType: 'p256';
|
|
211
|
+
request: {
|
|
212
|
+
method: 'sign';
|
|
213
|
+
params: {
|
|
214
|
+
message: string;
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
};
|
|
194
218
|
type WalletsRpcRequestDataType = BaseWalletsRequestData & {
|
|
195
219
|
/**
|
|
196
220
|
* Key with which to look up the existing entropy
|
|
@@ -214,7 +238,7 @@ type WalletsRpcRequestDataType = BaseWalletsRequestData & {
|
|
|
214
238
|
hdWalletIndex: number;
|
|
215
239
|
/** For cross-app requests, the app ID of the requester app */
|
|
216
240
|
requesterAppId?: string | null;
|
|
217
|
-
} & (WalletsRpcEthereumRequestDataType | WalletsRpcSolanaRequestDataType | WalletsRpcBitcoinRequestDataType);
|
|
241
|
+
} & (WalletsRpcEthereumRequestDataType | WalletsRpcSolanaRequestDataType | WalletsRpcBitcoinRequestDataType | WalletsRpcP256RequestDataType);
|
|
218
242
|
type WalletsRpcEthereumResponseDataType = {
|
|
219
243
|
chainType: 'ethereum';
|
|
220
244
|
response: EthereumRpcResponseType;
|
|
@@ -227,9 +251,17 @@ type WalletsRpcBitcoinResponseDataType = {
|
|
|
227
251
|
chainType: 'bitcoin-taproot' | 'bitcoin-segwit';
|
|
228
252
|
response: unknown;
|
|
229
253
|
};
|
|
254
|
+
type WalletsRpcP256ResponseDataType = {
|
|
255
|
+
chainType: 'p256';
|
|
256
|
+
response: {
|
|
257
|
+
data: {
|
|
258
|
+
signature: string;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
};
|
|
230
262
|
type WalletsRpcResponseDataType = {
|
|
231
263
|
address: string;
|
|
232
|
-
} & (WalletsRpcEthereumResponseDataType | WalletsRpcSolanaResponseDataType | WalletsRpcBitcoinResponseDataType);
|
|
264
|
+
} & (WalletsRpcEthereumResponseDataType | WalletsRpcSolanaResponseDataType | WalletsRpcBitcoinResponseDataType | WalletsRpcP256ResponseDataType);
|
|
233
265
|
type BaseWalletCreateRequestDataType = {
|
|
234
266
|
accessToken: string;
|
|
235
267
|
};
|
|
@@ -381,6 +413,7 @@ type DelegatedActionsConsentResponseDataType = {
|
|
|
381
413
|
declare const PrivyIframeErrorTypes: readonly ["error", "invalid_request_arguments", "wallet_not_on_device", "invalid_recovery_pin", "insufficient_funds", "missing_or_invalid_mfa", "mfa_verification_max_attempts_reached", "mfa_timeout", "twilio_verification_failed"];
|
|
382
414
|
type PrivyIframeErrorTypesType = (typeof PrivyIframeErrorTypes)[number];
|
|
383
415
|
interface EmbeddedWalletProxy {
|
|
416
|
+
createSigner: (data: CreateSignerRequestDataType) => Promise<CreateSignerResponseDataType>;
|
|
384
417
|
createWallet: (data: WalletsCreateRequestDataType) => Promise<WalletsCreateResponseDataType>;
|
|
385
418
|
addWallet: (data: WalletsAddRequestDataType) => Promise<WalletsAddResponseDataType>;
|
|
386
419
|
importWallet: (data: WalletsImportRequestDataType) => Promise<WalletsImportResponseDataType>;
|
|
@@ -407,6 +440,11 @@ interface EmbeddedWalletProxy {
|
|
|
407
440
|
}): Promise<WalletsRpcResponseDataType & {
|
|
408
441
|
chainType: 'bitcoin-segwit';
|
|
409
442
|
}>;
|
|
443
|
+
rpc(data: WalletsRpcRequestDataType & {
|
|
444
|
+
chainType: 'p256';
|
|
445
|
+
}): Promise<WalletsRpcResponseDataType & {
|
|
446
|
+
chainType: 'p256';
|
|
447
|
+
}>;
|
|
410
448
|
/** @deprecated */
|
|
411
449
|
create: (data: EthereumWalletCreateRequestDataType) => Promise<WalletCreateResponseDataType>;
|
|
412
450
|
/** @deprecated */
|
|
@@ -7,7 +7,7 @@ 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 { i as SendTransactionModalUIOptions, j as SignMessageModalUIOptions } from './types-
|
|
10
|
+
import { i as SendTransactionModalUIOptions, j as SignMessageModalUIOptions } from './types-CcosPsy6.js';
|
|
11
11
|
import '@solana/wallet-adapter-base';
|
|
12
12
|
import '@privy-io/public-api';
|
|
13
13
|
import 'eventemitter3';
|
|
@@ -7,7 +7,7 @@ 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 { i as SendTransactionModalUIOptions, j as SignMessageModalUIOptions } from './types-
|
|
10
|
+
import { i as SendTransactionModalUIOptions, j as SignMessageModalUIOptions } from './types-CcosPsy6.js';
|
|
11
11
|
import '@solana/wallet-adapter-base';
|
|
12
12
|
import '@privy-io/public-api';
|
|
13
13
|
import 'eventemitter3';
|
package/dist/dts/solana.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { W as Wallet, k as SolanaFundingConfig, e as SupportedSolanaTransaction, i as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, j as SignMessageModalUIOptions } from './types-
|
|
2
|
-
export { g as ConnectedSolanaWallet, l as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-
|
|
3
|
-
import { P as PrivyEvents } from './useSolanaWallets-
|
|
4
|
-
export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-
|
|
1
|
+
import { W as Wallet, k as SolanaFundingConfig, e as SupportedSolanaTransaction, i as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, j as SignMessageModalUIOptions } from './types-CcosPsy6.js';
|
|
2
|
+
export { g as ConnectedSolanaWallet, l as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-CcosPsy6.js';
|
|
3
|
+
import { P as PrivyEvents } from './useSolanaWallets-BHduxJmW.js';
|
|
4
|
+
export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-BHduxJmW.js';
|
|
5
5
|
import { SendTransactionOptions } from '@solana/wallet-adapter-base';
|
|
6
6
|
import { Connection } from '@solana/web3.js';
|
|
7
7
|
import 'react';
|
package/dist/dts/solana.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { W as Wallet, k as SolanaFundingConfig, e as SupportedSolanaTransaction, i as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, j as SignMessageModalUIOptions } from './types-
|
|
2
|
-
export { g as ConnectedSolanaWallet, l as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-
|
|
3
|
-
import { P as PrivyEvents } from './useSolanaWallets-
|
|
4
|
-
export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-
|
|
1
|
+
import { W as Wallet, k as SolanaFundingConfig, e as SupportedSolanaTransaction, i as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, j as SignMessageModalUIOptions } from './types-CcosPsy6.js';
|
|
2
|
+
export { g as ConnectedSolanaWallet, l as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-CcosPsy6.js';
|
|
3
|
+
import { P as PrivyEvents } from './useSolanaWallets-BHduxJmW.js';
|
|
4
|
+
export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-BHduxJmW.js';
|
|
5
5
|
import { SendTransactionOptions } from '@solana/wallet-adapter-base';
|
|
6
6
|
import { Connection } from '@solana/web3.js';
|
|
7
7
|
import 'react';
|
|
@@ -482,7 +482,7 @@ type MfaSubmitArgs = {
|
|
|
482
482
|
mfaCode: string | PasskeyAuthenticateInputType['authenticator_response'];
|
|
483
483
|
relyingParty: string;
|
|
484
484
|
};
|
|
485
|
-
type EntropyIdVerifier = 'ethereum-address-verifier' | 'solana-address-verifier';
|
|
485
|
+
type EntropyIdVerifier = 'ethereum-address-verifier' | 'solana-address-verifier' | 'p256';
|
|
486
486
|
/**
|
|
487
487
|
* Supported OAuth providers. Can be `'google'`, `'discord'`, `'twitter'`, `'github'`, `'spotify'`,
|
|
488
488
|
* `'instagram'`, `'tiktok'`, `'linkedin'`, or `'apple'`
|
|
@@ -482,7 +482,7 @@ type MfaSubmitArgs = {
|
|
|
482
482
|
mfaCode: string | PasskeyAuthenticateInputType['authenticator_response'];
|
|
483
483
|
relyingParty: string;
|
|
484
484
|
};
|
|
485
|
-
type EntropyIdVerifier = 'ethereum-address-verifier' | 'solana-address-verifier';
|
|
485
|
+
type EntropyIdVerifier = 'ethereum-address-verifier' | 'solana-address-verifier' | 'p256';
|
|
486
486
|
/**
|
|
487
487
|
* Supported OAuth providers. Can be `'google'`, `'discord'`, `'twitter'`, `'github'`, `'spotify'`,
|
|
488
488
|
* `'instagram'`, `'tiktok'`, `'linkedin'`, or `'apple'`
|
package/dist/dts/ui.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { R as RuntimeLoginOverridableOptions, C as Chain } from './types-
|
|
2
|
+
import { R as RuntimeLoginOverridableOptions, C as Chain } from './types-CcosPsy6.js';
|
|
3
3
|
import { Hex } from 'viem';
|
|
4
4
|
import { Cluster } from '@privy-io/js-sdk-core';
|
|
5
5
|
import '@solana/wallet-adapter-base';
|
package/dist/dts/ui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { R as RuntimeLoginOverridableOptions, C as Chain } from './types-
|
|
2
|
+
import { R as RuntimeLoginOverridableOptions, C as Chain } from './types-CcosPsy6.js';
|
|
3
3
|
import { Hex } from 'viem';
|
|
4
4
|
import { Cluster } from '@privy-io/js-sdk-core';
|
|
5
5
|
import '@solana/wallet-adapter-base';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrivyErrorCode, U as User, a as LoginMethod, b as LinkedAccountWithMetadata, B as BaseConnectedEthereumWallet, c as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, d as UserRecoveryMethod, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, O as OAuthTokens, C as Chain, F as FundingMethod, f as SolanaCluster, g as ConnectedSolanaWallet, h as CreateWalletOptions } from './types-
|
|
1
|
+
import { P as PrivyErrorCode, U as User, a as LoginMethod, b as LinkedAccountWithMetadata, B as BaseConnectedEthereumWallet, c as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, d as UserRecoveryMethod, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, O as OAuthTokens, C as Chain, F as FundingMethod, f as SolanaCluster, g as ConnectedSolanaWallet, h as CreateWalletOptions } from './types-CcosPsy6.js';
|
|
2
2
|
import { MouseEvent } from 'react';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PrivyErrorCode, U as User, a as LoginMethod, b as LinkedAccountWithMetadata, B as BaseConnectedEthereumWallet, c as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, d as UserRecoveryMethod, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, O as OAuthTokens, C as Chain, F as FundingMethod, f as SolanaCluster, g as ConnectedSolanaWallet, h as CreateWalletOptions } from './types-
|
|
1
|
+
import { P as PrivyErrorCode, U as User, a as LoginMethod, b as LinkedAccountWithMetadata, B as BaseConnectedEthereumWallet, c as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, d as UserRecoveryMethod, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, O as OAuthTokens, C as Chain, F as FundingMethod, f as SolanaCluster, g as ConnectedSolanaWallet, h as CreateWalletOptions } from './types-CcosPsy6.js';
|
|
2
2
|
import { MouseEvent } from 'react';
|
|
3
3
|
|
|
4
4
|
/**
|