@privy-io/react-auth 2.19.0 → 2.19.1
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/extended-chains.js +1 -1
- package/dist/cjs/farcaster.js +1 -1
- package/dist/cjs/{frame-B38H7ILa.js → frame-8JZCzmCf.js} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/{internal-context-BChQoYJ7.js → internal-context-B_aIJuQh.js} +1 -1
- package/dist/cjs/{paths-CdRs2pll.js → paths-B00ZrFQm.js} +1 -1
- package/dist/cjs/{privy-provider-CENM9vOZ.js → privy-provider-w2CZwYgl.js} +25 -25
- package/dist/cjs/{smart-wallets-B8cmx9jP.js → smart-wallets-Dr1Osypf.js} +1 -1
- 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/{use-sign-with-user-signer-YijW4Qvj.js → use-sign-with-user-signer-BQ_24mRh.js} +1 -1
- package/dist/cjs/{useActiveWallet-ChBjCxdS.js → useActiveWallet-DtQAu2Xs.js} +1 -1
- package/dist/cjs/{useFundWallet-ChzgQztK.js → useFundWallet-BwCeN7KG.js} +1 -1
- package/dist/dts/extended-chains.d.mts +2 -2
- package/dist/dts/extended-chains.d.ts +2 -2
- package/dist/dts/farcaster.d.mts +2 -2
- package/dist/dts/farcaster.d.ts +2 -2
- package/dist/dts/index.d.mts +89 -99
- package/dist/dts/index.d.ts +89 -99
- package/dist/dts/smart-wallets.d.mts +2 -2
- package/dist/dts/smart-wallets.d.ts +2 -2
- package/dist/dts/solana.d.mts +5 -5
- package/dist/dts/solana.d.ts +5 -5
- package/dist/dts/{types-C5FjymFC.d.mts → types-ZqHmGCwO.d.mts} +40 -6
- package/dist/dts/{types-C5FjymFC.d.ts → types-ZqHmGCwO.d.ts} +40 -6
- package/dist/dts/ui.d.mts +2 -2
- package/dist/dts/ui.d.ts +2 -2
- package/dist/dts/{useSolanaWallets-C_wdD6lb.d.mts → useSolanaWallets-idhSZbQC.d.mts} +1 -1
- package/dist/dts/{useSolanaWallets-C_wdD6lb.d.ts → useSolanaWallets-idhSZbQC.d.ts} +1 -1
- package/dist/esm/abstract-smart-wallets.mjs +1 -1
- package/dist/esm/extended-chains.mjs +1 -1
- package/dist/esm/farcaster.mjs +1 -1
- package/dist/esm/{frame-FpttHlk8.mjs → frame-DMd4vZ0H.mjs} +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/{internal-context-DelFGnzS.mjs → internal-context-qdNgTV5f.mjs} +1 -1
- package/dist/esm/{paths-CYLUXo_U.mjs → paths-DCwuPDUk.mjs} +1 -1
- package/dist/esm/privy-provider-CCrdZtua.mjs +29 -0
- package/dist/esm/{smart-wallets-Cp5Kl2CX.mjs → smart-wallets-hHAH4Mag.mjs} +1 -1
- package/dist/esm/smart-wallets.mjs +1 -1
- package/dist/esm/solana.mjs +1 -1
- package/dist/esm/ui.mjs +1 -1
- package/dist/esm/{use-sign-with-user-signer-DCN1LHu1.mjs → use-sign-with-user-signer-DnNPDfxp.mjs} +1 -1
- package/dist/esm/{useActiveWallet-Bu4Myhqk.mjs → useActiveWallet-DevxnhSd.mjs} +1 -1
- package/dist/esm/{useFundWallet-DpRl0Fim.mjs → useFundWallet-NTlLFshj.mjs} +1 -1
- package/package.json +4 -4
- package/dist/esm/privy-provider-BrsjzEmo.mjs +0 -29
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 { d as UserRecoveryMethod, m as PrivyFarcasterSignerInitResponse, n as MfaSubmitArgs, E as EthereumRpcRequestType, o as SolanaRpcRequestType, p as EthereumRpcResponseType, q as SolanaRpcResponseType, r as EIP1193Provider, s as EntropyIdVerifier$1, H as HDWalletWithMetadata, u as RequestArguments, v as WalletConnector, B as BaseConnectedEthereumWallet, w as PrivyProxyProvider, x as WalletClientType, y as ConnectedWalletMetadata, z as PrivyClientConfig, A as ConnectorType, D as SetBaseAccountSdkType, G as WalletListEntry, I as AppConfig, J as BaseConnectedWallet, l as SolanaWalletConnector, U as User, K as ConnectWalletModalOptions, N as LoginModalOptions, g as CreateWalletOptions, W as Wallet, Q as SetWalletRecoveryOptions, i as SignMessageModalUIOptions, T as SignTypedDataParams, M as MfaMethod, V as UnsignedTransactionRequest, h as SendTransactionModalUIOptions, X as FundWalletConfig, Y as ConnectedWallet, O as OAuthTokens, Z as CrossAppProviderDetails, _ as OAuthProviderType, $ as MoonpaySignRequest, a0 as MoonpaySignResponse, a1 as SmartWalletConfig, a as LoginMethod, a2 as ExternalWalletMetadata, a3 as TelegramAuthResult, a4 as TelegramWebAppData, a5 as OAuthUserInfo, a6 as SiwsMessageType, a7 as OAuthFlowState, a8 as LoginWithCode, a9 as OtpFlowState, aa as PasskeyFlowState, ab as SiweFlowState, ac as BaseAccountSdkType, ad as UnsignedTransactionRequestWithChainId, ae as BaseConnectedWalletType, C as ConnectedSolanaWallet, af as SessionSignerInput, ag as TelegramAuthFlowState } from './types-ZqHmGCwO.js';
|
|
4
|
+
export { az as Apple, aM as AppleOAuthWithMetadata, aU as ContractUIOptions, aD as CrossAppAccount, aP as CrossAppAccountWithMetadata, aw as Discord, aH as DiscordOAuthWithMetadata, aR as Email, ar as EmailWithMetadata, aY as Farcaster, aN as FarcasterWithMetadata, ax as Github, aI as GithubOAuthWithMetadata, au as Google, aF as GoogleOAuthWithMetadata, aB as Line, aK as LineOAuthWithMetadata, aE as LinkedAccountType, b as LinkedAccountWithMetadata, ay as LinkedIn, aL as LinkedInOAuthWithMetadata, a_ as LoginMethodOrderOption, ai as MessageTypes, ak as MoonpayConfig, al as MoonpayCurrencyCode, aW as MoonpayFundingConfig, am as MoonpayPaymentMethod, aV as NativeFundingConfig, aq as NonEmptyArray, aZ as Passkey, aQ as PasskeyWithMetadata, aS as Phone, as as PhoneWithMetadata, aX as PriceDisplayOptions, P as PrivyErrorCode, an as Quantity, aj as SmartWallet, f as SolanaCluster, k as SolanaFundingConfig, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, aC as Telegram, aO as TelegramWithMetadata, aA as Tiktok, aJ as TiktokOAuthWithMetadata, ao as TransactionLog, ap as TransactionReceipt, aT as TransactionUIOptions, av as Twitter, aG as TwitterOAuthWithMetadata, ah as TypedMessage, at as WalletWithMetadata } from './types-ZqHmGCwO.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,30 +16,17 @@ 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-idhSZbQC.js';
|
|
20
|
+
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-idhSZbQC.js';
|
|
21
21
|
import * as viem_accounts from 'viem/accounts';
|
|
22
|
-
import '@base-org/account';
|
|
23
22
|
import '@coinbase/wallet-sdk';
|
|
24
23
|
import '@solana/wallet-adapter-base';
|
|
24
|
+
import '@base-org/account';
|
|
25
25
|
import '@solana/wallet-standard-features';
|
|
26
26
|
import '@wallet-standard/base';
|
|
27
27
|
import '@wallet-standard/features';
|
|
28
28
|
import '@metamask/eth-sig-util';
|
|
29
29
|
|
|
30
|
-
type MobileWalletConfig = {
|
|
31
|
-
client: WalletClientType;
|
|
32
|
-
name: string;
|
|
33
|
-
isInstalled: boolean;
|
|
34
|
-
installLink: string;
|
|
35
|
-
chainTypes: Array<'ethereum' | 'solana'>;
|
|
36
|
-
getMobileRedirect: (args: {
|
|
37
|
-
useUniversalLink: boolean;
|
|
38
|
-
isSolana: boolean;
|
|
39
|
-
connectOnly: boolean;
|
|
40
|
-
}) => string | undefined;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
30
|
type BaseProxyRequest = {
|
|
44
31
|
accessToken: string;
|
|
45
32
|
} & Partial<MfaSubmitArgs>;
|
|
@@ -453,57 +440,6 @@ interface EmbeddedWalletProxy {
|
|
|
453
440
|
signFarcasterMessage: (data: FarcasterSignRequestDataType) => Promise<FarcasterSignResponseDataType>;
|
|
454
441
|
}
|
|
455
442
|
|
|
456
|
-
declare function getCustomerAccessToken(): Promise<string | null>;
|
|
457
|
-
/**
|
|
458
|
-
* Properties to initialize the {@link PrivyProvider}.
|
|
459
|
-
*/
|
|
460
|
-
interface PrivyProviderProps {
|
|
461
|
-
/** Your Privy App ID, which can be retrieved from the Privy dashboard. */
|
|
462
|
-
appId: string;
|
|
463
|
-
/** Your Privy App Client ID, which can be retrieved from the Privy dashboard. */
|
|
464
|
-
clientId?: string;
|
|
465
|
-
/**
|
|
466
|
-
* Client configuration options.
|
|
467
|
-
* Values here will override their server-configuration counterparts.
|
|
468
|
-
*/
|
|
469
|
-
config?: PrivyClientConfig;
|
|
470
|
-
/**
|
|
471
|
-
* @ignore
|
|
472
|
-
* @class
|
|
473
|
-
*/
|
|
474
|
-
children: react__default.ReactNode;
|
|
475
|
-
}
|
|
476
|
-
/**
|
|
477
|
-
* Passes the Privy authentication context to your React components.
|
|
478
|
-
*
|
|
479
|
-
* This should wrap any components that will to use the Privy SDK via the {@link usePrivy} hook. As an example:
|
|
480
|
-
*
|
|
481
|
-
* ```typescript
|
|
482
|
-
* // At your application root (e.g. `_app.tsx` in NextJS):
|
|
483
|
-
* import {PrivyProvider} from '@privy-io/react-auth';
|
|
484
|
-
*
|
|
485
|
-
* <PrivyProvider appId="APP_ID_FROM_DASHBOARD" onSuccess={() => console.log('Success!')}>
|
|
486
|
-
* <Component {...pageProps} />
|
|
487
|
-
* </PrivyProvider>
|
|
488
|
-
* ```
|
|
489
|
-
*
|
|
490
|
-
*/
|
|
491
|
-
declare const PrivyProvider: ({ config, ...props }: PrivyProviderProps) => JSX.Element;
|
|
492
|
-
|
|
493
|
-
type CaptchaProps = Partial<Pick<TurnstileProps, 'onUnsupported' | 'onError' | 'onSuccess' | 'onExpire' | 'onSubmit'>> & {
|
|
494
|
-
delayedExecution?: boolean;
|
|
495
|
-
};
|
|
496
|
-
/**
|
|
497
|
-
* Used to render an invisible captcha alongside important forms
|
|
498
|
-
*
|
|
499
|
-
* Notes:
|
|
500
|
-
* - **Only for internal use, or use with headless SDK** _(the Privy modal handles captchas internally with this component)_
|
|
501
|
-
* - Only one `<Captcha />` should be rendered at a time, since it injects/removes a global script
|
|
502
|
-
* - the state of the captcha workflow can be accessed using `useCaptcha`
|
|
503
|
-
* - wrapper around [marsidev/react-turnstile](https://github.com/marsidev/react-turnstile), _accepts same [props](https://docs.page/marsidev/react-turnstile/props)_
|
|
504
|
-
*/
|
|
505
|
-
declare const Captcha: ({ delayedExecution, ...props }: CaptchaProps) => react_jsx_runtime.JSX.Element | null;
|
|
506
|
-
|
|
507
443
|
/**
|
|
508
444
|
* Build a viem public client for a given chainId if it is one of our
|
|
509
445
|
* supported chains.
|
|
@@ -792,8 +728,8 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
792
728
|
blockNumber?: bigint | undefined;
|
|
793
729
|
blockTag?: viem.BlockTag | undefined;
|
|
794
730
|
address?: Address | undefined;
|
|
795
|
-
domain?: string | undefined;
|
|
796
731
|
nonce?: string | undefined;
|
|
732
|
+
domain?: string | undefined;
|
|
797
733
|
scheme?: string | undefined;
|
|
798
734
|
time?: Date | undefined;
|
|
799
735
|
message: string;
|
|
@@ -1331,31 +1267,6 @@ declare class Embedded1193Provider extends EventEmitter implements EIP1193Provid
|
|
|
1331
1267
|
private handleWalletApiRequest;
|
|
1332
1268
|
}
|
|
1333
1269
|
|
|
1334
|
-
declare global {
|
|
1335
|
-
interface Window {
|
|
1336
|
-
ethereum?: any;
|
|
1337
|
-
}
|
|
1338
|
-
}
|
|
1339
|
-
/**
|
|
1340
|
-
* @hidden
|
|
1341
|
-
*
|
|
1342
|
-
* The PrivyProxyProvider adds a middleware layer on top of the underlying wallet provider.
|
|
1343
|
-
* */
|
|
1344
|
-
declare class PrivyProxyProvider implements EIP1193Provider {
|
|
1345
|
-
rpcTimeoutDuration: number;
|
|
1346
|
-
walletProvider?: EIP1193Provider;
|
|
1347
|
-
private _subscriptions;
|
|
1348
|
-
constructor(walletProvider?: EIP1193Provider, rpcTimeoutDuration?: number);
|
|
1349
|
-
on(eventName: string, listener: (...args: any[]) => void): any;
|
|
1350
|
-
request(request: {
|
|
1351
|
-
method: string;
|
|
1352
|
-
params?: any[] | undefined;
|
|
1353
|
-
}): Promise<any>;
|
|
1354
|
-
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => any;
|
|
1355
|
-
walletTimeout: (error?: WalletTimeoutError, timeoutMs?: number) => Promise<string[]>;
|
|
1356
|
-
setWalletProvider: (provider: EIP1193Provider) => void;
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
1270
|
declare abstract class EthereumWalletConnector extends WalletConnector {
|
|
1360
1271
|
wallets: BaseConnectedEthereumWallet[];
|
|
1361
1272
|
chains: Chain[];
|
|
@@ -1407,6 +1318,70 @@ declare abstract class EthereumWalletConnector extends WalletConnector {
|
|
|
1407
1318
|
unsubscribeListeners(): void;
|
|
1408
1319
|
}
|
|
1409
1320
|
|
|
1321
|
+
type MobileWalletConfig = {
|
|
1322
|
+
client: WalletClientType;
|
|
1323
|
+
name: string;
|
|
1324
|
+
isInstalled: boolean;
|
|
1325
|
+
installLink: string;
|
|
1326
|
+
chainTypes: Array<'ethereum' | 'solana'>;
|
|
1327
|
+
getMobileRedirect: (args: {
|
|
1328
|
+
useUniversalLink: boolean;
|
|
1329
|
+
isSolana: boolean;
|
|
1330
|
+
connectOnly: boolean;
|
|
1331
|
+
}) => string | undefined;
|
|
1332
|
+
};
|
|
1333
|
+
|
|
1334
|
+
declare function getCustomerAccessToken(): Promise<string | null>;
|
|
1335
|
+
/**
|
|
1336
|
+
* Properties to initialize the {@link PrivyProvider}.
|
|
1337
|
+
*/
|
|
1338
|
+
interface PrivyProviderProps {
|
|
1339
|
+
/** Your Privy App ID, which can be retrieved from the Privy dashboard. */
|
|
1340
|
+
appId: string;
|
|
1341
|
+
/** Your Privy App Client ID, which can be retrieved from the Privy dashboard. */
|
|
1342
|
+
clientId?: string;
|
|
1343
|
+
/**
|
|
1344
|
+
* Client configuration options.
|
|
1345
|
+
* Values here will override their server-configuration counterparts.
|
|
1346
|
+
*/
|
|
1347
|
+
config?: PrivyClientConfig;
|
|
1348
|
+
/**
|
|
1349
|
+
* @ignore
|
|
1350
|
+
* @class
|
|
1351
|
+
*/
|
|
1352
|
+
children: react__default.ReactNode;
|
|
1353
|
+
}
|
|
1354
|
+
/**
|
|
1355
|
+
* Passes the Privy authentication context to your React components.
|
|
1356
|
+
*
|
|
1357
|
+
* This should wrap any components that will to use the Privy SDK via the {@link usePrivy} hook. As an example:
|
|
1358
|
+
*
|
|
1359
|
+
* ```typescript
|
|
1360
|
+
* // At your application root (e.g. `_app.tsx` in NextJS):
|
|
1361
|
+
* import {PrivyProvider} from '@privy-io/react-auth';
|
|
1362
|
+
*
|
|
1363
|
+
* <PrivyProvider appId="APP_ID_FROM_DASHBOARD" onSuccess={() => console.log('Success!')}>
|
|
1364
|
+
* <Component {...pageProps} />
|
|
1365
|
+
* </PrivyProvider>
|
|
1366
|
+
* ```
|
|
1367
|
+
*
|
|
1368
|
+
*/
|
|
1369
|
+
declare const PrivyProvider: ({ config, ...props }: PrivyProviderProps) => JSX.Element;
|
|
1370
|
+
|
|
1371
|
+
type CaptchaProps = Partial<Pick<TurnstileProps, 'onUnsupported' | 'onError' | 'onSuccess' | 'onExpire' | 'onSubmit'>> & {
|
|
1372
|
+
delayedExecution?: boolean;
|
|
1373
|
+
};
|
|
1374
|
+
/**
|
|
1375
|
+
* Used to render an invisible captcha alongside important forms
|
|
1376
|
+
*
|
|
1377
|
+
* Notes:
|
|
1378
|
+
* - **Only for internal use, or use with headless SDK** _(the Privy modal handles captchas internally with this component)_
|
|
1379
|
+
* - Only one `<Captcha />` should be rendered at a time, since it injects/removes a global script
|
|
1380
|
+
* - the state of the captcha workflow can be accessed using `useCaptcha`
|
|
1381
|
+
* - wrapper around [marsidev/react-turnstile](https://github.com/marsidev/react-turnstile), _accepts same [props](https://docs.page/marsidev/react-turnstile/props)_
|
|
1382
|
+
*/
|
|
1383
|
+
declare const Captcha: ({ delayedExecution, ...props }: CaptchaProps) => react_jsx_runtime.JSX.Element | null;
|
|
1384
|
+
|
|
1410
1385
|
declare class EmbeddedWalletConnector extends EthereumWalletConnector {
|
|
1411
1386
|
connectorType: ConnectorType;
|
|
1412
1387
|
walletIndex: number;
|
|
@@ -1439,6 +1414,7 @@ interface ConnectorManagerEvents {
|
|
|
1439
1414
|
declare class ConnectorManager extends EventEmitter<ConnectorManagerEvents> {
|
|
1440
1415
|
walletConnectors: WalletConnector[];
|
|
1441
1416
|
initialized: boolean;
|
|
1417
|
+
setBaseAccountSdk: SetBaseAccountSdkType;
|
|
1442
1418
|
private storedConnections;
|
|
1443
1419
|
private activeWallet?;
|
|
1444
1420
|
private privyAppId;
|
|
@@ -1453,7 +1429,7 @@ declare class ConnectorManager extends EventEmitter<ConnectorManagerEvents> {
|
|
|
1453
1429
|
private walletChainType;
|
|
1454
1430
|
private externalWalletConfig;
|
|
1455
1431
|
private appKit?;
|
|
1456
|
-
constructor(privyAppId: string, walletConnectCloudProjectId: string, rpcConfig: RpcConfig, chains: Chain[], defaultChain: Chain, store: Store, walletList: WalletListEntry[], shouldEnforceDefaultChainOnConnect: boolean, externalWalletConfig: AppConfig['externalWallets'], privyAppName: string, walletChainType?: 'ethereum-and-solana' | 'ethereum-only' | 'solana-only', appKit?: AppKit);
|
|
1432
|
+
constructor(privyAppId: string, walletConnectCloudProjectId: string, rpcConfig: RpcConfig, chains: Chain[], defaultChain: Chain, store: Store, walletList: WalletListEntry[], shouldEnforceDefaultChainOnConnect: boolean, externalWalletConfig: AppConfig['externalWallets'], privyAppName: string, setBaseAccountSdk: SetBaseAccountSdkType, walletChainType?: 'ethereum-and-solana' | 'ethereum-only' | 'solana-only', appKit?: AppKit);
|
|
1457
1433
|
/**
|
|
1458
1434
|
* The core wallets array that is exposed to developers. It builds
|
|
1459
1435
|
* the wallets away with the following logic:
|
|
@@ -2600,7 +2576,7 @@ declare class PrivyClient {
|
|
|
2600
2576
|
* config. We can set this once and only once. If it is set twice, event listeners will be created
|
|
2601
2577
|
* on the first ConnectorManager and are not re-created.
|
|
2602
2578
|
*/
|
|
2603
|
-
initializeConnectorManager({ walletConnectCloudProjectId, rpcConfig, chains, defaultChain, store, walletList, shouldEnforceDefaultChainOnConnect, externalWalletConfig, appName, walletChainType, appKit, }: {
|
|
2579
|
+
initializeConnectorManager({ walletConnectCloudProjectId, rpcConfig, chains, defaultChain, store, walletList, shouldEnforceDefaultChainOnConnect, externalWalletConfig, appName, walletChainType, setBaseAccountSdk, appKit, }: {
|
|
2604
2580
|
walletConnectCloudProjectId: string;
|
|
2605
2581
|
rpcConfig: RpcConfig;
|
|
2606
2582
|
chains: Chain[];
|
|
@@ -2611,6 +2587,7 @@ declare class PrivyClient {
|
|
|
2611
2587
|
externalWalletConfig: AppConfig['externalWallets'];
|
|
2612
2588
|
appName: string;
|
|
2613
2589
|
walletChainType: 'ethereum-and-solana' | 'ethereum-only' | 'solana-only';
|
|
2590
|
+
setBaseAccountSdk: SetBaseAccountSdkType;
|
|
2614
2591
|
appKit?: AppKit;
|
|
2615
2592
|
}): void;
|
|
2616
2593
|
generateApi(): Http;
|
|
@@ -2768,7 +2745,7 @@ declare class PrivyClient {
|
|
|
2768
2745
|
nonce: string;
|
|
2769
2746
|
account: string;
|
|
2770
2747
|
accountType: LoginMethod;
|
|
2771
|
-
externalWalletMetadata?:
|
|
2748
|
+
externalWalletMetadata?: ExternalWalletMetadata;
|
|
2772
2749
|
telegramAuthResult?: TelegramAuthResult;
|
|
2773
2750
|
telegramWebAppData?: TelegramWebAppData;
|
|
2774
2751
|
farcasterEmbeddedAddress?: string;
|
|
@@ -3414,6 +3391,19 @@ interface UseConnectBaseAccountInterface {
|
|
|
3414
3391
|
}
|
|
3415
3392
|
declare const useConnectBaseAccount: () => UseConnectBaseAccountInterface;
|
|
3416
3393
|
|
|
3394
|
+
/**
|
|
3395
|
+
* Hook to access the instance of the Base Account SDK that Privy loads.
|
|
3396
|
+
*/
|
|
3397
|
+
interface UseBaseAccountSdkInterface {
|
|
3398
|
+
/**
|
|
3399
|
+
* The instance of the Base Account SDK that Privy loads. This state will be
|
|
3400
|
+
* undefined until the SDK initializes.
|
|
3401
|
+
* @experimental
|
|
3402
|
+
*/
|
|
3403
|
+
baseAccountSdk: BaseAccountSdkType | undefined;
|
|
3404
|
+
}
|
|
3405
|
+
declare const useBaseAccountSdk: () => UseBaseAccountSdkInterface;
|
|
3406
|
+
|
|
3417
3407
|
type UseAuthMfa = {
|
|
3418
3408
|
/**
|
|
3419
3409
|
* Trigger the verification flow for auth MFA.
|
|
@@ -4228,4 +4218,4 @@ declare const toViemAccount: ({ wallet }: {
|
|
|
4228
4218
|
type: "local";
|
|
4229
4219
|
}>;
|
|
4230
4220
|
|
|
4231
|
-
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 UseAuthorizationSignatureInterface, type UseConnectBaseAccountInterface, type UseConnectCoinbaseSmartWalletInterface, type UseCustomAuth, type UseDelegatedActionsInterface, type UseFundWalletInterface, type UseImportWalletInterface, type UseLinkJwtAccount, 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, toViemAccount, useActiveWallet, useAuthMfa, useAuthMfaEnrollment, useAuthorizationSignature, useConnectBaseAccount, useConnectCoinbaseSmartWallet, useConnectOrCreateWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useFarcasterSigner, useFundWallet, useGuestAccounts, useHeadlessDelegatedActions, useIdentityToken, useImportWallet, useLinkAccount, useLinkJwtAccount, useLinkWithPasskey, useLinkWithSiwe, useLogin, useLoginWithEmail, useLoginWithFarcasterV2, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSiwe, useLoginWithSms, useLoginWithTelegram, useLogout, useMfa, useMfaEnrollment, useModalStatus, useOAuthTokens, usePrivy, useRecoverEmbeddedWallet, useRegisterMfaListener, useSendTransaction, useSessionSigners, useSetWalletPassword, useSetWalletRecovery, useSign7702Authorization, useSignAuthorization, useSignMessage, useSignTransaction, useSignTypedData, useSignupWithPasskey, useSubscribeToJwtAuthWithFlag, useSyncJwtBasedAuthState, useToken, useUpdateAccount, useUpdateEmail, useUser, useWallets };
|
|
4221
|
+
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 UseAuthorizationSignatureInterface, type UseBaseAccountSdkInterface, type UseConnectBaseAccountInterface, type UseConnectCoinbaseSmartWalletInterface, type UseCustomAuth, type UseDelegatedActionsInterface, type UseFundWalletInterface, type UseImportWalletInterface, type UseLinkJwtAccount, 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, toViemAccount, useActiveWallet, useAuthMfa, useAuthMfaEnrollment, useAuthorizationSignature, useBaseAccountSdk, useConnectBaseAccount, useConnectCoinbaseSmartWallet, useConnectOrCreateWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useFarcasterSigner, useFundWallet, useGuestAccounts, useHeadlessDelegatedActions, useIdentityToken, useImportWallet, useLinkAccount, useLinkJwtAccount, useLinkWithPasskey, useLinkWithSiwe, useLogin, useLoginWithEmail, useLoginWithFarcasterV2, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSiwe, useLoginWithSms, useLoginWithTelegram, useLogout, useMfa, useMfaEnrollment, useModalStatus, useOAuthTokens, usePrivy, useRecoverEmbeddedWallet, useRegisterMfaListener, useSendTransaction, useSessionSigners, useSetWalletPassword, useSetWalletRecovery, useSign7702Authorization, useSignAuthorization, useSignMessage, useSignTransaction, useSignTypedData, useSignupWithPasskey, useSubscribeToJwtAuthWithFlag, useSyncJwtBasedAuthState, useToken, useUpdateAccount, useUpdateEmail, 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 { d as UserRecoveryMethod, m as PrivyFarcasterSignerInitResponse, n as MfaSubmitArgs, E as EthereumRpcRequestType, o as SolanaRpcRequestType, p as EthereumRpcResponseType, q as SolanaRpcResponseType, r as EIP1193Provider, s as EntropyIdVerifier$1, H as HDWalletWithMetadata, u as RequestArguments, v as WalletConnector, B as BaseConnectedEthereumWallet, w as PrivyProxyProvider, x as WalletClientType, y as ConnectedWalletMetadata, z as PrivyClientConfig, A as ConnectorType, D as SetBaseAccountSdkType, G as WalletListEntry, I as AppConfig, J as BaseConnectedWallet, l as SolanaWalletConnector, U as User, K as ConnectWalletModalOptions, N as LoginModalOptions, g as CreateWalletOptions, W as Wallet, Q as SetWalletRecoveryOptions, i as SignMessageModalUIOptions, T as SignTypedDataParams, M as MfaMethod, V as UnsignedTransactionRequest, h as SendTransactionModalUIOptions, X as FundWalletConfig, Y as ConnectedWallet, O as OAuthTokens, Z as CrossAppProviderDetails, _ as OAuthProviderType, $ as MoonpaySignRequest, a0 as MoonpaySignResponse, a1 as SmartWalletConfig, a as LoginMethod, a2 as ExternalWalletMetadata, a3 as TelegramAuthResult, a4 as TelegramWebAppData, a5 as OAuthUserInfo, a6 as SiwsMessageType, a7 as OAuthFlowState, a8 as LoginWithCode, a9 as OtpFlowState, aa as PasskeyFlowState, ab as SiweFlowState, ac as BaseAccountSdkType, ad as UnsignedTransactionRequestWithChainId, ae as BaseConnectedWalletType, C as ConnectedSolanaWallet, af as SessionSignerInput, ag as TelegramAuthFlowState } from './types-ZqHmGCwO.js';
|
|
4
|
+
export { az as Apple, aM as AppleOAuthWithMetadata, aU as ContractUIOptions, aD as CrossAppAccount, aP as CrossAppAccountWithMetadata, aw as Discord, aH as DiscordOAuthWithMetadata, aR as Email, ar as EmailWithMetadata, aY as Farcaster, aN as FarcasterWithMetadata, ax as Github, aI as GithubOAuthWithMetadata, au as Google, aF as GoogleOAuthWithMetadata, aB as Line, aK as LineOAuthWithMetadata, aE as LinkedAccountType, b as LinkedAccountWithMetadata, ay as LinkedIn, aL as LinkedInOAuthWithMetadata, a_ as LoginMethodOrderOption, ai as MessageTypes, ak as MoonpayConfig, al as MoonpayCurrencyCode, aW as MoonpayFundingConfig, am as MoonpayPaymentMethod, aV as NativeFundingConfig, aq as NonEmptyArray, aZ as Passkey, aQ as PasskeyWithMetadata, aS as Phone, as as PhoneWithMetadata, aX as PriceDisplayOptions, P as PrivyErrorCode, an as Quantity, aj as SmartWallet, f as SolanaCluster, k as SolanaFundingConfig, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, aC as Telegram, aO as TelegramWithMetadata, aA as Tiktok, aJ as TiktokOAuthWithMetadata, ao as TransactionLog, ap as TransactionReceipt, aT as TransactionUIOptions, av as Twitter, aG as TwitterOAuthWithMetadata, ah as TypedMessage, at as WalletWithMetadata } from './types-ZqHmGCwO.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,30 +16,17 @@ 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-idhSZbQC.js';
|
|
20
|
+
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-idhSZbQC.js';
|
|
21
21
|
import * as viem_accounts from 'viem/accounts';
|
|
22
|
-
import '@base-org/account';
|
|
23
22
|
import '@coinbase/wallet-sdk';
|
|
24
23
|
import '@solana/wallet-adapter-base';
|
|
24
|
+
import '@base-org/account';
|
|
25
25
|
import '@solana/wallet-standard-features';
|
|
26
26
|
import '@wallet-standard/base';
|
|
27
27
|
import '@wallet-standard/features';
|
|
28
28
|
import '@metamask/eth-sig-util';
|
|
29
29
|
|
|
30
|
-
type MobileWalletConfig = {
|
|
31
|
-
client: WalletClientType;
|
|
32
|
-
name: string;
|
|
33
|
-
isInstalled: boolean;
|
|
34
|
-
installLink: string;
|
|
35
|
-
chainTypes: Array<'ethereum' | 'solana'>;
|
|
36
|
-
getMobileRedirect: (args: {
|
|
37
|
-
useUniversalLink: boolean;
|
|
38
|
-
isSolana: boolean;
|
|
39
|
-
connectOnly: boolean;
|
|
40
|
-
}) => string | undefined;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
30
|
type BaseProxyRequest = {
|
|
44
31
|
accessToken: string;
|
|
45
32
|
} & Partial<MfaSubmitArgs>;
|
|
@@ -453,57 +440,6 @@ interface EmbeddedWalletProxy {
|
|
|
453
440
|
signFarcasterMessage: (data: FarcasterSignRequestDataType) => Promise<FarcasterSignResponseDataType>;
|
|
454
441
|
}
|
|
455
442
|
|
|
456
|
-
declare function getCustomerAccessToken(): Promise<string | null>;
|
|
457
|
-
/**
|
|
458
|
-
* Properties to initialize the {@link PrivyProvider}.
|
|
459
|
-
*/
|
|
460
|
-
interface PrivyProviderProps {
|
|
461
|
-
/** Your Privy App ID, which can be retrieved from the Privy dashboard. */
|
|
462
|
-
appId: string;
|
|
463
|
-
/** Your Privy App Client ID, which can be retrieved from the Privy dashboard. */
|
|
464
|
-
clientId?: string;
|
|
465
|
-
/**
|
|
466
|
-
* Client configuration options.
|
|
467
|
-
* Values here will override their server-configuration counterparts.
|
|
468
|
-
*/
|
|
469
|
-
config?: PrivyClientConfig;
|
|
470
|
-
/**
|
|
471
|
-
* @ignore
|
|
472
|
-
* @class
|
|
473
|
-
*/
|
|
474
|
-
children: react__default.ReactNode;
|
|
475
|
-
}
|
|
476
|
-
/**
|
|
477
|
-
* Passes the Privy authentication context to your React components.
|
|
478
|
-
*
|
|
479
|
-
* This should wrap any components that will to use the Privy SDK via the {@link usePrivy} hook. As an example:
|
|
480
|
-
*
|
|
481
|
-
* ```typescript
|
|
482
|
-
* // At your application root (e.g. `_app.tsx` in NextJS):
|
|
483
|
-
* import {PrivyProvider} from '@privy-io/react-auth';
|
|
484
|
-
*
|
|
485
|
-
* <PrivyProvider appId="APP_ID_FROM_DASHBOARD" onSuccess={() => console.log('Success!')}>
|
|
486
|
-
* <Component {...pageProps} />
|
|
487
|
-
* </PrivyProvider>
|
|
488
|
-
* ```
|
|
489
|
-
*
|
|
490
|
-
*/
|
|
491
|
-
declare const PrivyProvider: ({ config, ...props }: PrivyProviderProps) => JSX.Element;
|
|
492
|
-
|
|
493
|
-
type CaptchaProps = Partial<Pick<TurnstileProps, 'onUnsupported' | 'onError' | 'onSuccess' | 'onExpire' | 'onSubmit'>> & {
|
|
494
|
-
delayedExecution?: boolean;
|
|
495
|
-
};
|
|
496
|
-
/**
|
|
497
|
-
* Used to render an invisible captcha alongside important forms
|
|
498
|
-
*
|
|
499
|
-
* Notes:
|
|
500
|
-
* - **Only for internal use, or use with headless SDK** _(the Privy modal handles captchas internally with this component)_
|
|
501
|
-
* - Only one `<Captcha />` should be rendered at a time, since it injects/removes a global script
|
|
502
|
-
* - the state of the captcha workflow can be accessed using `useCaptcha`
|
|
503
|
-
* - wrapper around [marsidev/react-turnstile](https://github.com/marsidev/react-turnstile), _accepts same [props](https://docs.page/marsidev/react-turnstile/props)_
|
|
504
|
-
*/
|
|
505
|
-
declare const Captcha: ({ delayedExecution, ...props }: CaptchaProps) => react_jsx_runtime.JSX.Element | null;
|
|
506
|
-
|
|
507
443
|
/**
|
|
508
444
|
* Build a viem public client for a given chainId if it is one of our
|
|
509
445
|
* supported chains.
|
|
@@ -792,8 +728,8 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
792
728
|
blockNumber?: bigint | undefined;
|
|
793
729
|
blockTag?: viem.BlockTag | undefined;
|
|
794
730
|
address?: Address | undefined;
|
|
795
|
-
domain?: string | undefined;
|
|
796
731
|
nonce?: string | undefined;
|
|
732
|
+
domain?: string | undefined;
|
|
797
733
|
scheme?: string | undefined;
|
|
798
734
|
time?: Date | undefined;
|
|
799
735
|
message: string;
|
|
@@ -1331,31 +1267,6 @@ declare class Embedded1193Provider extends EventEmitter implements EIP1193Provid
|
|
|
1331
1267
|
private handleWalletApiRequest;
|
|
1332
1268
|
}
|
|
1333
1269
|
|
|
1334
|
-
declare global {
|
|
1335
|
-
interface Window {
|
|
1336
|
-
ethereum?: any;
|
|
1337
|
-
}
|
|
1338
|
-
}
|
|
1339
|
-
/**
|
|
1340
|
-
* @hidden
|
|
1341
|
-
*
|
|
1342
|
-
* The PrivyProxyProvider adds a middleware layer on top of the underlying wallet provider.
|
|
1343
|
-
* */
|
|
1344
|
-
declare class PrivyProxyProvider implements EIP1193Provider {
|
|
1345
|
-
rpcTimeoutDuration: number;
|
|
1346
|
-
walletProvider?: EIP1193Provider;
|
|
1347
|
-
private _subscriptions;
|
|
1348
|
-
constructor(walletProvider?: EIP1193Provider, rpcTimeoutDuration?: number);
|
|
1349
|
-
on(eventName: string, listener: (...args: any[]) => void): any;
|
|
1350
|
-
request(request: {
|
|
1351
|
-
method: string;
|
|
1352
|
-
params?: any[] | undefined;
|
|
1353
|
-
}): Promise<any>;
|
|
1354
|
-
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => any;
|
|
1355
|
-
walletTimeout: (error?: WalletTimeoutError, timeoutMs?: number) => Promise<string[]>;
|
|
1356
|
-
setWalletProvider: (provider: EIP1193Provider) => void;
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
1270
|
declare abstract class EthereumWalletConnector extends WalletConnector {
|
|
1360
1271
|
wallets: BaseConnectedEthereumWallet[];
|
|
1361
1272
|
chains: Chain[];
|
|
@@ -1407,6 +1318,70 @@ declare abstract class EthereumWalletConnector extends WalletConnector {
|
|
|
1407
1318
|
unsubscribeListeners(): void;
|
|
1408
1319
|
}
|
|
1409
1320
|
|
|
1321
|
+
type MobileWalletConfig = {
|
|
1322
|
+
client: WalletClientType;
|
|
1323
|
+
name: string;
|
|
1324
|
+
isInstalled: boolean;
|
|
1325
|
+
installLink: string;
|
|
1326
|
+
chainTypes: Array<'ethereum' | 'solana'>;
|
|
1327
|
+
getMobileRedirect: (args: {
|
|
1328
|
+
useUniversalLink: boolean;
|
|
1329
|
+
isSolana: boolean;
|
|
1330
|
+
connectOnly: boolean;
|
|
1331
|
+
}) => string | undefined;
|
|
1332
|
+
};
|
|
1333
|
+
|
|
1334
|
+
declare function getCustomerAccessToken(): Promise<string | null>;
|
|
1335
|
+
/**
|
|
1336
|
+
* Properties to initialize the {@link PrivyProvider}.
|
|
1337
|
+
*/
|
|
1338
|
+
interface PrivyProviderProps {
|
|
1339
|
+
/** Your Privy App ID, which can be retrieved from the Privy dashboard. */
|
|
1340
|
+
appId: string;
|
|
1341
|
+
/** Your Privy App Client ID, which can be retrieved from the Privy dashboard. */
|
|
1342
|
+
clientId?: string;
|
|
1343
|
+
/**
|
|
1344
|
+
* Client configuration options.
|
|
1345
|
+
* Values here will override their server-configuration counterparts.
|
|
1346
|
+
*/
|
|
1347
|
+
config?: PrivyClientConfig;
|
|
1348
|
+
/**
|
|
1349
|
+
* @ignore
|
|
1350
|
+
* @class
|
|
1351
|
+
*/
|
|
1352
|
+
children: react__default.ReactNode;
|
|
1353
|
+
}
|
|
1354
|
+
/**
|
|
1355
|
+
* Passes the Privy authentication context to your React components.
|
|
1356
|
+
*
|
|
1357
|
+
* This should wrap any components that will to use the Privy SDK via the {@link usePrivy} hook. As an example:
|
|
1358
|
+
*
|
|
1359
|
+
* ```typescript
|
|
1360
|
+
* // At your application root (e.g. `_app.tsx` in NextJS):
|
|
1361
|
+
* import {PrivyProvider} from '@privy-io/react-auth';
|
|
1362
|
+
*
|
|
1363
|
+
* <PrivyProvider appId="APP_ID_FROM_DASHBOARD" onSuccess={() => console.log('Success!')}>
|
|
1364
|
+
* <Component {...pageProps} />
|
|
1365
|
+
* </PrivyProvider>
|
|
1366
|
+
* ```
|
|
1367
|
+
*
|
|
1368
|
+
*/
|
|
1369
|
+
declare const PrivyProvider: ({ config, ...props }: PrivyProviderProps) => JSX.Element;
|
|
1370
|
+
|
|
1371
|
+
type CaptchaProps = Partial<Pick<TurnstileProps, 'onUnsupported' | 'onError' | 'onSuccess' | 'onExpire' | 'onSubmit'>> & {
|
|
1372
|
+
delayedExecution?: boolean;
|
|
1373
|
+
};
|
|
1374
|
+
/**
|
|
1375
|
+
* Used to render an invisible captcha alongside important forms
|
|
1376
|
+
*
|
|
1377
|
+
* Notes:
|
|
1378
|
+
* - **Only for internal use, or use with headless SDK** _(the Privy modal handles captchas internally with this component)_
|
|
1379
|
+
* - Only one `<Captcha />` should be rendered at a time, since it injects/removes a global script
|
|
1380
|
+
* - the state of the captcha workflow can be accessed using `useCaptcha`
|
|
1381
|
+
* - wrapper around [marsidev/react-turnstile](https://github.com/marsidev/react-turnstile), _accepts same [props](https://docs.page/marsidev/react-turnstile/props)_
|
|
1382
|
+
*/
|
|
1383
|
+
declare const Captcha: ({ delayedExecution, ...props }: CaptchaProps) => react_jsx_runtime.JSX.Element | null;
|
|
1384
|
+
|
|
1410
1385
|
declare class EmbeddedWalletConnector extends EthereumWalletConnector {
|
|
1411
1386
|
connectorType: ConnectorType;
|
|
1412
1387
|
walletIndex: number;
|
|
@@ -1439,6 +1414,7 @@ interface ConnectorManagerEvents {
|
|
|
1439
1414
|
declare class ConnectorManager extends EventEmitter<ConnectorManagerEvents> {
|
|
1440
1415
|
walletConnectors: WalletConnector[];
|
|
1441
1416
|
initialized: boolean;
|
|
1417
|
+
setBaseAccountSdk: SetBaseAccountSdkType;
|
|
1442
1418
|
private storedConnections;
|
|
1443
1419
|
private activeWallet?;
|
|
1444
1420
|
private privyAppId;
|
|
@@ -1453,7 +1429,7 @@ declare class ConnectorManager extends EventEmitter<ConnectorManagerEvents> {
|
|
|
1453
1429
|
private walletChainType;
|
|
1454
1430
|
private externalWalletConfig;
|
|
1455
1431
|
private appKit?;
|
|
1456
|
-
constructor(privyAppId: string, walletConnectCloudProjectId: string, rpcConfig: RpcConfig, chains: Chain[], defaultChain: Chain, store: Store, walletList: WalletListEntry[], shouldEnforceDefaultChainOnConnect: boolean, externalWalletConfig: AppConfig['externalWallets'], privyAppName: string, walletChainType?: 'ethereum-and-solana' | 'ethereum-only' | 'solana-only', appKit?: AppKit);
|
|
1432
|
+
constructor(privyAppId: string, walletConnectCloudProjectId: string, rpcConfig: RpcConfig, chains: Chain[], defaultChain: Chain, store: Store, walletList: WalletListEntry[], shouldEnforceDefaultChainOnConnect: boolean, externalWalletConfig: AppConfig['externalWallets'], privyAppName: string, setBaseAccountSdk: SetBaseAccountSdkType, walletChainType?: 'ethereum-and-solana' | 'ethereum-only' | 'solana-only', appKit?: AppKit);
|
|
1457
1433
|
/**
|
|
1458
1434
|
* The core wallets array that is exposed to developers. It builds
|
|
1459
1435
|
* the wallets away with the following logic:
|
|
@@ -2600,7 +2576,7 @@ declare class PrivyClient {
|
|
|
2600
2576
|
* config. We can set this once and only once. If it is set twice, event listeners will be created
|
|
2601
2577
|
* on the first ConnectorManager and are not re-created.
|
|
2602
2578
|
*/
|
|
2603
|
-
initializeConnectorManager({ walletConnectCloudProjectId, rpcConfig, chains, defaultChain, store, walletList, shouldEnforceDefaultChainOnConnect, externalWalletConfig, appName, walletChainType, appKit, }: {
|
|
2579
|
+
initializeConnectorManager({ walletConnectCloudProjectId, rpcConfig, chains, defaultChain, store, walletList, shouldEnforceDefaultChainOnConnect, externalWalletConfig, appName, walletChainType, setBaseAccountSdk, appKit, }: {
|
|
2604
2580
|
walletConnectCloudProjectId: string;
|
|
2605
2581
|
rpcConfig: RpcConfig;
|
|
2606
2582
|
chains: Chain[];
|
|
@@ -2611,6 +2587,7 @@ declare class PrivyClient {
|
|
|
2611
2587
|
externalWalletConfig: AppConfig['externalWallets'];
|
|
2612
2588
|
appName: string;
|
|
2613
2589
|
walletChainType: 'ethereum-and-solana' | 'ethereum-only' | 'solana-only';
|
|
2590
|
+
setBaseAccountSdk: SetBaseAccountSdkType;
|
|
2614
2591
|
appKit?: AppKit;
|
|
2615
2592
|
}): void;
|
|
2616
2593
|
generateApi(): Http;
|
|
@@ -2768,7 +2745,7 @@ declare class PrivyClient {
|
|
|
2768
2745
|
nonce: string;
|
|
2769
2746
|
account: string;
|
|
2770
2747
|
accountType: LoginMethod;
|
|
2771
|
-
externalWalletMetadata?:
|
|
2748
|
+
externalWalletMetadata?: ExternalWalletMetadata;
|
|
2772
2749
|
telegramAuthResult?: TelegramAuthResult;
|
|
2773
2750
|
telegramWebAppData?: TelegramWebAppData;
|
|
2774
2751
|
farcasterEmbeddedAddress?: string;
|
|
@@ -3414,6 +3391,19 @@ interface UseConnectBaseAccountInterface {
|
|
|
3414
3391
|
}
|
|
3415
3392
|
declare const useConnectBaseAccount: () => UseConnectBaseAccountInterface;
|
|
3416
3393
|
|
|
3394
|
+
/**
|
|
3395
|
+
* Hook to access the instance of the Base Account SDK that Privy loads.
|
|
3396
|
+
*/
|
|
3397
|
+
interface UseBaseAccountSdkInterface {
|
|
3398
|
+
/**
|
|
3399
|
+
* The instance of the Base Account SDK that Privy loads. This state will be
|
|
3400
|
+
* undefined until the SDK initializes.
|
|
3401
|
+
* @experimental
|
|
3402
|
+
*/
|
|
3403
|
+
baseAccountSdk: BaseAccountSdkType | undefined;
|
|
3404
|
+
}
|
|
3405
|
+
declare const useBaseAccountSdk: () => UseBaseAccountSdkInterface;
|
|
3406
|
+
|
|
3417
3407
|
type UseAuthMfa = {
|
|
3418
3408
|
/**
|
|
3419
3409
|
* Trigger the verification flow for auth MFA.
|
|
@@ -4228,4 +4218,4 @@ declare const toViemAccount: ({ wallet }: {
|
|
|
4228
4218
|
type: "local";
|
|
4229
4219
|
}>;
|
|
4230
4220
|
|
|
4231
|
-
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 UseAuthorizationSignatureInterface, type UseConnectBaseAccountInterface, type UseConnectCoinbaseSmartWalletInterface, type UseCustomAuth, type UseDelegatedActionsInterface, type UseFundWalletInterface, type UseImportWalletInterface, type UseLinkJwtAccount, 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, toViemAccount, useActiveWallet, useAuthMfa, useAuthMfaEnrollment, useAuthorizationSignature, useConnectBaseAccount, useConnectCoinbaseSmartWallet, useConnectOrCreateWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useFarcasterSigner, useFundWallet, useGuestAccounts, useHeadlessDelegatedActions, useIdentityToken, useImportWallet, useLinkAccount, useLinkJwtAccount, useLinkWithPasskey, useLinkWithSiwe, useLogin, useLoginWithEmail, useLoginWithFarcasterV2, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSiwe, useLoginWithSms, useLoginWithTelegram, useLogout, useMfa, useMfaEnrollment, useModalStatus, useOAuthTokens, usePrivy, useRecoverEmbeddedWallet, useRegisterMfaListener, useSendTransaction, useSessionSigners, useSetWalletPassword, useSetWalletRecovery, useSign7702Authorization, useSignAuthorization, useSignMessage, useSignTransaction, useSignTypedData, useSignupWithPasskey, useSubscribeToJwtAuthWithFlag, useSyncJwtBasedAuthState, useToken, useUpdateAccount, useUpdateEmail, useUser, useWallets };
|
|
4221
|
+
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 UseAuthorizationSignatureInterface, type UseBaseAccountSdkInterface, type UseConnectBaseAccountInterface, type UseConnectCoinbaseSmartWalletInterface, type UseCustomAuth, type UseDelegatedActionsInterface, type UseFundWalletInterface, type UseImportWalletInterface, type UseLinkJwtAccount, 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, toViemAccount, useActiveWallet, useAuthMfa, useAuthMfaEnrollment, useAuthorizationSignature, useBaseAccountSdk, useConnectBaseAccount, useConnectCoinbaseSmartWallet, useConnectOrCreateWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useFarcasterSigner, useFundWallet, useGuestAccounts, useHeadlessDelegatedActions, useIdentityToken, useImportWallet, useLinkAccount, useLinkJwtAccount, useLinkWithPasskey, useLinkWithSiwe, useLogin, useLoginWithEmail, useLoginWithFarcasterV2, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSiwe, useLoginWithSms, useLoginWithTelegram, useLogout, useMfa, useMfaEnrollment, useModalStatus, useOAuthTokens, usePrivy, useRecoverEmbeddedWallet, useRegisterMfaListener, useSendTransaction, useSessionSigners, useSetWalletPassword, useSetWalletRecovery, useSign7702Authorization, useSignAuthorization, useSignMessage, useSignTransaction, useSignTypedData, useSignupWithPasskey, useSubscribeToJwtAuthWithFlag, useSyncJwtBasedAuthState, useToken, useUpdateAccount, useUpdateEmail, useUser, useWallets };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import react__default from 'react';
|
|
3
|
+
import { h as SendTransactionModalUIOptions, i as SignMessageModalUIOptions } from './types-ZqHmGCwO.js';
|
|
3
4
|
import { SmartAccountClient } from 'permissionless';
|
|
4
5
|
import { SendTransactionParameters, Chain, Hash, SignableMessage, Hex, TypedData, SignTypedDataParameters, EIP1193Provider, PublicClient, HttpTransport, WalletClient, PaymasterRpcSchema } from 'viem';
|
|
5
6
|
import { SmartAccount, SendUserOperationParameters } from 'viem/account-abstraction';
|
|
6
7
|
import { SmartWalletType } from '@privy-io/js-sdk-core';
|
|
7
|
-
import { h as SendTransactionModalUIOptions, i as SignMessageModalUIOptions } from './types-C5FjymFC.js';
|
|
8
|
-
import '@base-org/account';
|
|
9
8
|
import '@coinbase/wallet-sdk';
|
|
10
9
|
import '@reown/appkit';
|
|
11
10
|
import '@solana/wallet-adapter-base';
|
|
12
11
|
import '@privy-io/public-api';
|
|
12
|
+
import '@base-org/account';
|
|
13
13
|
import '@solana/wallet-standard-features';
|
|
14
14
|
import '@wallet-standard/base';
|
|
15
15
|
import '@wallet-standard/features';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import react__default from 'react';
|
|
3
|
+
import { h as SendTransactionModalUIOptions, i as SignMessageModalUIOptions } from './types-ZqHmGCwO.js';
|
|
3
4
|
import { SmartAccountClient } from 'permissionless';
|
|
4
5
|
import { SendTransactionParameters, Chain, Hash, SignableMessage, Hex, TypedData, SignTypedDataParameters, EIP1193Provider, PublicClient, HttpTransport, WalletClient, PaymasterRpcSchema } from 'viem';
|
|
5
6
|
import { SmartAccount, SendUserOperationParameters } from 'viem/account-abstraction';
|
|
6
7
|
import { SmartWalletType } from '@privy-io/js-sdk-core';
|
|
7
|
-
import { h as SendTransactionModalUIOptions, i as SignMessageModalUIOptions } from './types-C5FjymFC.js';
|
|
8
|
-
import '@base-org/account';
|
|
9
8
|
import '@coinbase/wallet-sdk';
|
|
10
9
|
import '@reown/appkit';
|
|
11
10
|
import '@solana/wallet-adapter-base';
|
|
12
11
|
import '@privy-io/public-api';
|
|
12
|
+
import '@base-org/account';
|
|
13
13
|
import '@solana/wallet-standard-features';
|
|
14
14
|
import '@wallet-standard/base';
|
|
15
15
|
import '@wallet-standard/features';
|