@privy-io/react-auth 2.18.2 → 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-Uge-4WDr.js → internal-context-B_aIJuQh.js} +1 -1
- package/dist/cjs/{paths-CdRs2pll.js → paths-B00ZrFQm.js} +1 -1
- package/dist/cjs/privy-provider-w2CZwYgl.js +29 -0
- package/dist/cjs/smart-wallets-Dr1Osypf.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/{use-sign-with-user-signer-BrJ6QN6E.js → use-sign-with-user-signer-BQ_24mRh.js} +1 -1
- package/dist/cjs/{useActiveWallet-Bid3gn-d.js → useActiveWallet-DtQAu2Xs.js} +1 -1
- package/dist/cjs/{useFundWallet-BSIeXhtj.js → useFundWallet-BwCeN7KG.js} +1 -1
- package/dist/dts/extended-chains.d.mts +2 -1
- package/dist/dts/extended-chains.d.ts +2 -1
- package/dist/dts/farcaster.d.mts +2 -1
- package/dist/dts/farcaster.d.ts +2 -1
- package/dist/dts/index.d.mts +106 -99
- package/dist/dts/index.d.ts +106 -99
- package/dist/dts/smart-wallets.d.mts +2 -1
- package/dist/dts/smart-wallets.d.ts +2 -1
- package/dist/dts/solana.d.mts +5 -4
- package/dist/dts/solana.d.ts +5 -4
- package/dist/dts/{types-cSndhqyV.d.mts → types-ZqHmGCwO.d.mts} +55 -6
- package/dist/dts/{types-cSndhqyV.d.ts → types-ZqHmGCwO.d.ts} +55 -6
- package/dist/dts/ui.d.mts +2 -1
- package/dist/dts/ui.d.ts +2 -1
- package/dist/dts/{useSolanaWallets-BGaZqngA.d.mts → useSolanaWallets-idhSZbQC.d.mts} +1 -1
- package/dist/dts/{useSolanaWallets-BGaZqngA.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-BzsB315R.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-hHAH4Mag.mjs +1 -0
- 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-C21K9CRz.mjs → use-sign-with-user-signer-DnNPDfxp.mjs} +1 -1
- package/dist/esm/{useActiveWallet-DwAADhPG.mjs → useActiveWallet-DevxnhSd.mjs} +1 -1
- package/dist/esm/{useFundWallet-CHnKKMFA.mjs → useFundWallet-NTlLFshj.mjs} +1 -1
- package/package.json +5 -4
- package/dist/cjs/privy-provider-CUA5RhGV.js +0 -29
- package/dist/cjs/smart-wallets-Dh0jTSUz.js +0 -1
- package/dist/esm/privy-provider-CGNOFJ8i.mjs +0 -29
- package/dist/esm/smart-wallets-DWVzc4NE.mjs +0 -1
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,29 +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
22
|
import '@coinbase/wallet-sdk';
|
|
23
23
|
import '@solana/wallet-adapter-base';
|
|
24
|
+
import '@base-org/account';
|
|
24
25
|
import '@solana/wallet-standard-features';
|
|
25
26
|
import '@wallet-standard/base';
|
|
26
27
|
import '@wallet-standard/features';
|
|
27
28
|
import '@metamask/eth-sig-util';
|
|
28
29
|
|
|
29
|
-
type MobileWalletConfig = {
|
|
30
|
-
client: WalletClientType;
|
|
31
|
-
name: string;
|
|
32
|
-
isInstalled: boolean;
|
|
33
|
-
installLink: string;
|
|
34
|
-
chainTypes: Array<'ethereum' | 'solana'>;
|
|
35
|
-
getMobileRedirect: (args: {
|
|
36
|
-
useUniversalLink: boolean;
|
|
37
|
-
isSolana: boolean;
|
|
38
|
-
connectOnly: boolean;
|
|
39
|
-
}) => string | undefined;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
30
|
type BaseProxyRequest = {
|
|
43
31
|
accessToken: string;
|
|
44
32
|
} & Partial<MfaSubmitArgs>;
|
|
@@ -452,57 +440,6 @@ interface EmbeddedWalletProxy {
|
|
|
452
440
|
signFarcasterMessage: (data: FarcasterSignRequestDataType) => Promise<FarcasterSignResponseDataType>;
|
|
453
441
|
}
|
|
454
442
|
|
|
455
|
-
declare function getCustomerAccessToken(): Promise<string | null>;
|
|
456
|
-
/**
|
|
457
|
-
* Properties to initialize the {@link PrivyProvider}.
|
|
458
|
-
*/
|
|
459
|
-
interface PrivyProviderProps {
|
|
460
|
-
/** Your Privy App ID, which can be retrieved from the Privy dashboard. */
|
|
461
|
-
appId: string;
|
|
462
|
-
/** Your Privy App Client ID, which can be retrieved from the Privy dashboard. */
|
|
463
|
-
clientId?: string;
|
|
464
|
-
/**
|
|
465
|
-
* Client configuration options.
|
|
466
|
-
* Values here will override their server-configuration counterparts.
|
|
467
|
-
*/
|
|
468
|
-
config?: PrivyClientConfig;
|
|
469
|
-
/**
|
|
470
|
-
* @ignore
|
|
471
|
-
* @class
|
|
472
|
-
*/
|
|
473
|
-
children: react__default.ReactNode;
|
|
474
|
-
}
|
|
475
|
-
/**
|
|
476
|
-
* Passes the Privy authentication context to your React components.
|
|
477
|
-
*
|
|
478
|
-
* This should wrap any components that will to use the Privy SDK via the {@link usePrivy} hook. As an example:
|
|
479
|
-
*
|
|
480
|
-
* ```typescript
|
|
481
|
-
* // At your application root (e.g. `_app.tsx` in NextJS):
|
|
482
|
-
* import {PrivyProvider} from '@privy-io/react-auth';
|
|
483
|
-
*
|
|
484
|
-
* <PrivyProvider appId="APP_ID_FROM_DASHBOARD" onSuccess={() => console.log('Success!')}>
|
|
485
|
-
* <Component {...pageProps} />
|
|
486
|
-
* </PrivyProvider>
|
|
487
|
-
* ```
|
|
488
|
-
*
|
|
489
|
-
*/
|
|
490
|
-
declare const PrivyProvider: ({ config, ...props }: PrivyProviderProps) => JSX.Element;
|
|
491
|
-
|
|
492
|
-
type CaptchaProps = Partial<Pick<TurnstileProps, 'onUnsupported' | 'onError' | 'onSuccess' | 'onExpire' | 'onSubmit'>> & {
|
|
493
|
-
delayedExecution?: boolean;
|
|
494
|
-
};
|
|
495
|
-
/**
|
|
496
|
-
* Used to render an invisible captcha alongside important forms
|
|
497
|
-
*
|
|
498
|
-
* Notes:
|
|
499
|
-
* - **Only for internal use, or use with headless SDK** _(the Privy modal handles captchas internally with this component)_
|
|
500
|
-
* - Only one `<Captcha />` should be rendered at a time, since it injects/removes a global script
|
|
501
|
-
* - the state of the captcha workflow can be accessed using `useCaptcha`
|
|
502
|
-
* - wrapper around [marsidev/react-turnstile](https://github.com/marsidev/react-turnstile), _accepts same [props](https://docs.page/marsidev/react-turnstile/props)_
|
|
503
|
-
*/
|
|
504
|
-
declare const Captcha: ({ delayedExecution, ...props }: CaptchaProps) => react_jsx_runtime.JSX.Element | null;
|
|
505
|
-
|
|
506
443
|
/**
|
|
507
444
|
* Build a viem public client for a given chainId if it is one of our
|
|
508
445
|
* supported chains.
|
|
@@ -791,8 +728,8 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
791
728
|
blockNumber?: bigint | undefined;
|
|
792
729
|
blockTag?: viem.BlockTag | undefined;
|
|
793
730
|
address?: Address | undefined;
|
|
794
|
-
domain?: string | undefined;
|
|
795
731
|
nonce?: string | undefined;
|
|
732
|
+
domain?: string | undefined;
|
|
796
733
|
scheme?: string | undefined;
|
|
797
734
|
time?: Date | undefined;
|
|
798
735
|
message: string;
|
|
@@ -1330,31 +1267,6 @@ declare class Embedded1193Provider extends EventEmitter implements EIP1193Provid
|
|
|
1330
1267
|
private handleWalletApiRequest;
|
|
1331
1268
|
}
|
|
1332
1269
|
|
|
1333
|
-
declare global {
|
|
1334
|
-
interface Window {
|
|
1335
|
-
ethereum?: any;
|
|
1336
|
-
}
|
|
1337
|
-
}
|
|
1338
|
-
/**
|
|
1339
|
-
* @hidden
|
|
1340
|
-
*
|
|
1341
|
-
* The PrivyProxyProvider adds a middleware layer on top of the underlying wallet provider.
|
|
1342
|
-
* */
|
|
1343
|
-
declare class PrivyProxyProvider implements EIP1193Provider {
|
|
1344
|
-
rpcTimeoutDuration: number;
|
|
1345
|
-
walletProvider?: EIP1193Provider;
|
|
1346
|
-
private _subscriptions;
|
|
1347
|
-
constructor(walletProvider?: EIP1193Provider, rpcTimeoutDuration?: number);
|
|
1348
|
-
on(eventName: string, listener: (...args: any[]) => void): any;
|
|
1349
|
-
request(request: {
|
|
1350
|
-
method: string;
|
|
1351
|
-
params?: any[] | undefined;
|
|
1352
|
-
}): Promise<any>;
|
|
1353
|
-
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => any;
|
|
1354
|
-
walletTimeout: (error?: WalletTimeoutError, timeoutMs?: number) => Promise<string[]>;
|
|
1355
|
-
setWalletProvider: (provider: EIP1193Provider) => void;
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
1270
|
declare abstract class EthereumWalletConnector extends WalletConnector {
|
|
1359
1271
|
wallets: BaseConnectedEthereumWallet[];
|
|
1360
1272
|
chains: Chain[];
|
|
@@ -1406,6 +1318,70 @@ declare abstract class EthereumWalletConnector extends WalletConnector {
|
|
|
1406
1318
|
unsubscribeListeners(): void;
|
|
1407
1319
|
}
|
|
1408
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
|
+
|
|
1409
1385
|
declare class EmbeddedWalletConnector extends EthereumWalletConnector {
|
|
1410
1386
|
connectorType: ConnectorType;
|
|
1411
1387
|
walletIndex: number;
|
|
@@ -1438,6 +1414,7 @@ interface ConnectorManagerEvents {
|
|
|
1438
1414
|
declare class ConnectorManager extends EventEmitter<ConnectorManagerEvents> {
|
|
1439
1415
|
walletConnectors: WalletConnector[];
|
|
1440
1416
|
initialized: boolean;
|
|
1417
|
+
setBaseAccountSdk: SetBaseAccountSdkType;
|
|
1441
1418
|
private storedConnections;
|
|
1442
1419
|
private activeWallet?;
|
|
1443
1420
|
private privyAppId;
|
|
@@ -1452,7 +1429,7 @@ declare class ConnectorManager extends EventEmitter<ConnectorManagerEvents> {
|
|
|
1452
1429
|
private walletChainType;
|
|
1453
1430
|
private externalWalletConfig;
|
|
1454
1431
|
private appKit?;
|
|
1455
|
-
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);
|
|
1456
1433
|
/**
|
|
1457
1434
|
* The core wallets array that is exposed to developers. It builds
|
|
1458
1435
|
* the wallets away with the following logic:
|
|
@@ -2599,7 +2576,7 @@ declare class PrivyClient {
|
|
|
2599
2576
|
* config. We can set this once and only once. If it is set twice, event listeners will be created
|
|
2600
2577
|
* on the first ConnectorManager and are not re-created.
|
|
2601
2578
|
*/
|
|
2602
|
-
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, }: {
|
|
2603
2580
|
walletConnectCloudProjectId: string;
|
|
2604
2581
|
rpcConfig: RpcConfig;
|
|
2605
2582
|
chains: Chain[];
|
|
@@ -2610,6 +2587,7 @@ declare class PrivyClient {
|
|
|
2610
2587
|
externalWalletConfig: AppConfig['externalWallets'];
|
|
2611
2588
|
appName: string;
|
|
2612
2589
|
walletChainType: 'ethereum-and-solana' | 'ethereum-only' | 'solana-only';
|
|
2590
|
+
setBaseAccountSdk: SetBaseAccountSdkType;
|
|
2613
2591
|
appKit?: AppKit;
|
|
2614
2592
|
}): void;
|
|
2615
2593
|
generateApi(): Http;
|
|
@@ -2767,7 +2745,7 @@ declare class PrivyClient {
|
|
|
2767
2745
|
nonce: string;
|
|
2768
2746
|
account: string;
|
|
2769
2747
|
accountType: LoginMethod;
|
|
2770
|
-
externalWalletMetadata?:
|
|
2748
|
+
externalWalletMetadata?: ExternalWalletMetadata;
|
|
2771
2749
|
telegramAuthResult?: TelegramAuthResult;
|
|
2772
2750
|
telegramWebAppData?: TelegramWebAppData;
|
|
2773
2751
|
farcasterEmbeddedAddress?: string;
|
|
@@ -3386,17 +3364,46 @@ interface UseFundWalletInterface {
|
|
|
3386
3364
|
declare const useFundWallet: (callbacks?: PrivyEvents["fundWallet"]) => UseFundWalletInterface;
|
|
3387
3365
|
|
|
3388
3366
|
/**
|
|
3367
|
+
* @deprecated in favor of UseConnectBaseAccountInterface
|
|
3389
3368
|
* Hook to headlessly connect a Coinbase Smart Wallet to a user.
|
|
3390
3369
|
*/
|
|
3391
3370
|
interface UseConnectCoinbaseSmartWalletInterface {
|
|
3392
3371
|
/**
|
|
3393
3372
|
* Method to headlessly connect a Coinbase Smart Wallet to a user.
|
|
3394
|
-
* @
|
|
3373
|
+
* @deprecated in favor of connectBaseAccount
|
|
3395
3374
|
*/
|
|
3396
3375
|
connectCoinbaseSmartWallet: () => void;
|
|
3397
3376
|
}
|
|
3377
|
+
/**
|
|
3378
|
+
* @deprecated in favor of useConnectBaseAccount
|
|
3379
|
+
*/
|
|
3398
3380
|
declare const useConnectCoinbaseSmartWallet: () => UseConnectCoinbaseSmartWalletInterface;
|
|
3399
3381
|
|
|
3382
|
+
/**
|
|
3383
|
+
* Hook to headlessly connect a Base Account to a user.
|
|
3384
|
+
*/
|
|
3385
|
+
interface UseConnectBaseAccountInterface {
|
|
3386
|
+
/**
|
|
3387
|
+
* Method to headlessly connect a Base Account to a user.
|
|
3388
|
+
* @experimental
|
|
3389
|
+
*/
|
|
3390
|
+
connectBaseAccount: () => void;
|
|
3391
|
+
}
|
|
3392
|
+
declare const useConnectBaseAccount: () => UseConnectBaseAccountInterface;
|
|
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
|
+
|
|
3400
3407
|
type UseAuthMfa = {
|
|
3401
3408
|
/**
|
|
3402
3409
|
* Trigger the verification flow for auth MFA.
|
|
@@ -4211,4 +4218,4 @@ declare const toViemAccount: ({ wallet }: {
|
|
|
4211
4218
|
type: "local";
|
|
4212
4219
|
}>;
|
|
4213
4220
|
|
|
4214
|
-
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 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, 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,14 +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-cSndhqyV.js';
|
|
8
8
|
import '@coinbase/wallet-sdk';
|
|
9
9
|
import '@reown/appkit';
|
|
10
10
|
import '@solana/wallet-adapter-base';
|
|
11
11
|
import '@privy-io/public-api';
|
|
12
|
+
import '@base-org/account';
|
|
12
13
|
import '@solana/wallet-standard-features';
|
|
13
14
|
import '@wallet-standard/base';
|
|
14
15
|
import '@wallet-standard/features';
|
|
@@ -1,14 +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-cSndhqyV.js';
|
|
8
8
|
import '@coinbase/wallet-sdk';
|
|
9
9
|
import '@reown/appkit';
|
|
10
10
|
import '@solana/wallet-adapter-base';
|
|
11
11
|
import '@privy-io/public-api';
|
|
12
|
+
import '@base-org/account';
|
|
12
13
|
import '@solana/wallet-standard-features';
|
|
13
14
|
import '@wallet-standard/base';
|
|
14
15
|
import '@wallet-standard/features';
|
package/dist/dts/solana.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { W as Wallet, j as SolanaStandardWallet, k as SolanaFundingConfig, e as SupportedSolanaTransaction, h as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, i as SignMessageModalUIOptions } from './types-
|
|
2
|
-
export { C 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, j as SolanaStandardWallet, k as SolanaFundingConfig, e as SupportedSolanaTransaction, h as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, i as SignMessageModalUIOptions } from './types-ZqHmGCwO.js';
|
|
2
|
+
export { C as ConnectedSolanaWallet, l as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-ZqHmGCwO.js';
|
|
3
|
+
import { P as PrivyEvents } from './useSolanaWallets-idhSZbQC.js';
|
|
4
|
+
export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-idhSZbQC.js';
|
|
5
5
|
import { SolanaSignAndSendTransactionFeature, SolanaSignTransactionFeature, SolanaSignMessageFeature } from '@solana/wallet-standard-features';
|
|
6
6
|
import { WalletAccount, WalletIcon, WalletVersion } from '@wallet-standard/base';
|
|
7
7
|
import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
|
|
@@ -14,6 +14,7 @@ import 'react';
|
|
|
14
14
|
import 'viem';
|
|
15
15
|
import '@privy-io/js-sdk-core';
|
|
16
16
|
import '@privy-io/public-api';
|
|
17
|
+
import '@base-org/account';
|
|
17
18
|
import '@metamask/eth-sig-util';
|
|
18
19
|
|
|
19
20
|
interface UseImportWalletInterface {
|
package/dist/dts/solana.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { W as Wallet, j as SolanaStandardWallet, k as SolanaFundingConfig, e as SupportedSolanaTransaction, h as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, i as SignMessageModalUIOptions } from './types-
|
|
2
|
-
export { C 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, j as SolanaStandardWallet, k as SolanaFundingConfig, e as SupportedSolanaTransaction, h as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, i as SignMessageModalUIOptions } from './types-ZqHmGCwO.js';
|
|
2
|
+
export { C as ConnectedSolanaWallet, l as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-ZqHmGCwO.js';
|
|
3
|
+
import { P as PrivyEvents } from './useSolanaWallets-idhSZbQC.js';
|
|
4
|
+
export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-idhSZbQC.js';
|
|
5
5
|
import { SolanaSignAndSendTransactionFeature, SolanaSignTransactionFeature, SolanaSignMessageFeature } from '@solana/wallet-standard-features';
|
|
6
6
|
import { WalletAccount, WalletIcon, WalletVersion } from '@wallet-standard/base';
|
|
7
7
|
import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
|
|
@@ -14,6 +14,7 @@ import 'react';
|
|
|
14
14
|
import 'viem';
|
|
15
15
|
import '@privy-io/js-sdk-core';
|
|
16
16
|
import '@privy-io/public-api';
|
|
17
|
+
import '@base-org/account';
|
|
17
18
|
import '@metamask/eth-sig-util';
|
|
18
19
|
|
|
19
20
|
interface UseImportWalletInterface {
|
|
@@ -5,6 +5,7 @@ import { ReactElement, ReactNode } from 'react';
|
|
|
5
5
|
import { Hex } from 'viem';
|
|
6
6
|
import { Cluster as Cluster$1, ChainLikeWithId, CountryCode, Chain, RpcConfig } from '@privy-io/js-sdk-core';
|
|
7
7
|
import { ChainType, SmartWalletType, CustomMetadataType, PrivyAppResponse, PasskeyAuthenticateInputType } from '@privy-io/public-api';
|
|
8
|
+
import { createBaseAccountSDK } from '@base-org/account';
|
|
8
9
|
import { SolanaSignMessageFeature, SolanaSignTransactionFeature, SolanaSignAndSendTransactionFeature, SolanaSignInFeature } from '@solana/wallet-standard-features';
|
|
9
10
|
import { WalletWithFeatures } from '@wallet-standard/base';
|
|
10
11
|
import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
|
|
@@ -314,6 +315,35 @@ interface RequestArguments {
|
|
|
314
315
|
readonly params?: readonly unknown[] | object | any;
|
|
315
316
|
}
|
|
316
317
|
|
|
318
|
+
declare global {
|
|
319
|
+
interface Window {
|
|
320
|
+
ethereum?: any;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* @hidden
|
|
325
|
+
*
|
|
326
|
+
* The PrivyProxyProvider adds a middleware layer on top of the underlying wallet provider.
|
|
327
|
+
* */
|
|
328
|
+
declare class PrivyProxyProvider implements EIP1193Provider {
|
|
329
|
+
rpcTimeoutDuration: number;
|
|
330
|
+
walletProvider?: EIP1193Provider;
|
|
331
|
+
private _subscriptions;
|
|
332
|
+
constructor(walletProvider?: EIP1193Provider, rpcTimeoutDuration?: number);
|
|
333
|
+
on(eventName: string, listener: (...args: any[]) => void): any;
|
|
334
|
+
request(request: {
|
|
335
|
+
method: string;
|
|
336
|
+
params?: any[] | undefined;
|
|
337
|
+
}): Promise<any>;
|
|
338
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => any;
|
|
339
|
+
walletTimeout: (error?: WalletTimeoutError, timeoutMs?: number) => Promise<string[]>;
|
|
340
|
+
setWalletProvider: (provider: EIP1193Provider) => void;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
type BaseAccountSdkCreateParams = Parameters<typeof createBaseAccountSDK>[0];
|
|
344
|
+
type BaseAccountSdkType = ReturnType<typeof createBaseAccountSDK>;
|
|
345
|
+
type SetBaseAccountSdkType = (sdk: BaseAccountSdkType | undefined) => void;
|
|
346
|
+
|
|
317
347
|
/**
|
|
318
348
|
* Helper type for defining a Standard Wallet with a union of Solana features.
|
|
319
349
|
*/
|
|
@@ -555,7 +585,7 @@ declare const EMBEDDED_WALLET_CLIENT_TYPES: readonly ["privy"];
|
|
|
555
585
|
type EmbeddedWalletClientType = (typeof EMBEDDED_WALLET_CLIENT_TYPES)[number];
|
|
556
586
|
declare const INJECTED_WALLET_CLIENT_TYPES: readonly ["metamask", "phantom", "brave_wallet", "rainbow", "uniswap_wallet_extension", "uniswap_extension", "rabby_wallet", "bybit_wallet", "ronin_wallet", "haha_wallet", "crypto.com_wallet_extension", "crypto.com_onchain", "binance"];
|
|
557
587
|
type InjectedWalletClientType = (typeof INJECTED_WALLET_CLIENT_TYPES)[number];
|
|
558
|
-
declare const COINBASE_WALLET_CLIENT_TYPES: readonly ["coinbase_wallet", "coinbase_smart_wallet"];
|
|
588
|
+
declare const COINBASE_WALLET_CLIENT_TYPES: readonly ["coinbase_wallet", "coinbase_smart_wallet", "base_account"];
|
|
559
589
|
type CoinbaseWalletClientType = (typeof COINBASE_WALLET_CLIENT_TYPES)[number];
|
|
560
590
|
type WalletConnectWalletClientType = (typeof WALLET_CONNECT_WALLET_CLIENT_TYPES)[number];
|
|
561
591
|
declare const UNKNOWN_WALLET_CLIENT_TYPES: readonly ["unknown"];
|
|
@@ -1232,7 +1262,7 @@ type PriceDisplayOptions = {
|
|
|
1232
1262
|
primary: 'native-token';
|
|
1233
1263
|
secondary: null;
|
|
1234
1264
|
};
|
|
1235
|
-
type WalletListEntry = 'metamask' | 'coinbase_wallet' | 'rainbow' | 'phantom' | 'zerion' | 'cryptocom' | 'uniswap' | 'okx_wallet' | 'universal_profile'
|
|
1265
|
+
type WalletListEntry = 'metamask' | 'coinbase_wallet' | 'base_account' | 'rainbow' | 'phantom' | 'zerion' | 'cryptocom' | 'uniswap' | 'okx_wallet' | 'universal_profile'
|
|
1236
1266
|
/** @deprecated Use `detected_ethereum_wallets` or `detected_solana_wallets` instead */
|
|
1237
1267
|
| 'detected_wallets' | 'detected_solana_wallets' | 'detected_ethereum_wallets' | 'wallet_connect' | 'rabby_wallet' | 'bybit_wallet' | 'ronin_wallet' | 'haha_wallet' | 'safe' | 'solflare' | 'backpack' | 'binance';
|
|
1238
1268
|
type NonEmptyArray<T> = [T, ...T[]];
|
|
@@ -1264,6 +1294,17 @@ type ExternalWalletsConfig = {
|
|
|
1264
1294
|
*/
|
|
1265
1295
|
config?: Parameters<typeof createCoinbaseWalletSDK>[0];
|
|
1266
1296
|
};
|
|
1297
|
+
/**
|
|
1298
|
+
* Options to configure connections to the Base Account (passkey-based smart wallet).
|
|
1299
|
+
*/
|
|
1300
|
+
baseAccount?: {
|
|
1301
|
+
/**
|
|
1302
|
+
* Allows you to override the default configuration options for initializing the Base Account
|
|
1303
|
+
* connector. This includes overriding the connection options (via config.preference.options)
|
|
1304
|
+
* or adding additional configuration (i.e. enabling subAccounts)
|
|
1305
|
+
*/
|
|
1306
|
+
config?: BaseAccountSdkCreateParams;
|
|
1307
|
+
};
|
|
1267
1308
|
/**
|
|
1268
1309
|
* Mapping between `walletClientType`s to the length of time after which signature and RPC requests will timeout for that
|
|
1269
1310
|
* `walletClientType`.
|
|
@@ -1709,7 +1750,7 @@ interface TelegramWebAppData {
|
|
|
1709
1750
|
signature?: string;
|
|
1710
1751
|
}
|
|
1711
1752
|
/**
|
|
1712
|
-
* Data received from an OAuth user endpoint
|
|
1753
|
+
* Data received from an OAuth user endpoint -- only used in account transfer flows
|
|
1713
1754
|
*/
|
|
1714
1755
|
interface OAuthUserInfo {
|
|
1715
1756
|
subject: string;
|
|
@@ -1718,13 +1759,18 @@ interface OAuthUserInfo {
|
|
|
1718
1759
|
email?: string;
|
|
1719
1760
|
profilePictureUrl?: string;
|
|
1720
1761
|
vanityName?: string;
|
|
1762
|
+
meta?: {
|
|
1763
|
+
providerAppId?: string;
|
|
1764
|
+
};
|
|
1765
|
+
embeddedWalletAddresses?: string[];
|
|
1766
|
+
smartWalletAddresses?: string[];
|
|
1721
1767
|
}
|
|
1722
1768
|
/**
|
|
1723
1769
|
* Object representation of metadata reported by a connected wallet during the SIWE flow
|
|
1724
1770
|
*/
|
|
1725
|
-
interface
|
|
1771
|
+
interface ExternalWalletMetadata {
|
|
1726
1772
|
walletClientType: WalletClientType;
|
|
1727
|
-
chainId
|
|
1773
|
+
chainId?: string;
|
|
1728
1774
|
connectorType: string;
|
|
1729
1775
|
}
|
|
1730
1776
|
/**
|
|
@@ -1825,6 +1871,9 @@ type AppConfig = {
|
|
|
1825
1871
|
coinbaseWallet: {
|
|
1826
1872
|
config: NonNullable<NonNullable<NonNullable<PrivyClientConfig['externalWallets']>['coinbaseWallet']>['config']>;
|
|
1827
1873
|
};
|
|
1874
|
+
baseAccount: {
|
|
1875
|
+
config: NonNullable<NonNullable<NonNullable<PrivyClientConfig['externalWallets']>['baseAccount']>['config']>;
|
|
1876
|
+
};
|
|
1828
1877
|
walletConnect: {
|
|
1829
1878
|
enabled: boolean;
|
|
1830
1879
|
appKit?: AppKit;
|
|
@@ -2247,4 +2296,4 @@ type SessionSignerInput = {
|
|
|
2247
2296
|
policyIds?: string[];
|
|
2248
2297
|
}[];
|
|
2249
2298
|
|
|
2250
|
-
export { type
|
|
2299
|
+
export { type MoonpaySignRequest as $, type ConnectorType as A, type BaseConnectedEthereumWallet as B, type ConnectedSolanaWallet as C, type SetBaseAccountSdkType as D, type EthereumRpcRequestType as E, type FundingMethod as F, type WalletListEntry as G, type HDWalletWithMetadata as H, type AppConfig as I, type BaseConnectedWallet as J, type ConnectWalletModalOptions as K, type LoginToFrame as L, type MfaMethod as M, type LoginModalOptions as N, type OAuthTokens as O, PrivyErrorCode as P, type SetWalletRecoveryOptions as Q, type RuntimeLoginOverridableOptions as R, type SolanaTransactionReceipt as S, type SignTypedDataParams as T, type User as U, type UnsignedTransactionRequest as V, type Wallet as W, type FundWalletConfig as X, type ConnectedWallet as Y, type CrossAppProviderDetails as Z, type OAuthProviderType as _, type LoginMethod as a, type MoonpaySignResponse as a0, type SmartWalletConfig as a1, type ExternalWalletMetadata as a2, type TelegramAuthResult as a3, type TelegramWebAppData as a4, type OAuthUserInfo as a5, type SiwsMessageType as a6, type OAuthFlowState as a7, type LoginWithCode as a8, type OtpFlowState as a9, type Tiktok as aA, type Line as aB, type Telegram as aC, type CrossAppAccount as aD, type LinkedAccountType as aE, type GoogleOAuthWithMetadata as aF, type TwitterOAuthWithMetadata as aG, type DiscordOAuthWithMetadata as aH, type GithubOAuthWithMetadata as aI, type TiktokOAuthWithMetadata as aJ, type LineOAuthWithMetadata as aK, type LinkedInOAuthWithMetadata as aL, type AppleOAuthWithMetadata as aM, type FarcasterWithMetadata as aN, type TelegramWithMetadata as aO, type CrossAppAccountWithMetadata as aP, type PasskeyWithMetadata as aQ, type Email as aR, type Phone as aS, type TransactionUIOptions as aT, type ContractUIOptions as aU, type NativeFundingConfig as aV, type MoonpayFundingConfig as aW, type PriceDisplayOptions as aX, type Farcaster as aY, type Passkey as aZ, type LoginMethodOrderOption as a_, type PasskeyFlowState as aa, type SiweFlowState as ab, type BaseAccountSdkType as ac, type UnsignedTransactionRequestWithChainId as ad, type BaseConnectedWalletType as ae, type SessionSignerInput as af, type TelegramAuthFlowState as ag, type TypedMessage as ah, type MessageTypes as ai, type SmartWallet as aj, type MoonpayConfig as ak, type MoonpayCurrencyCode as al, type MoonpayPaymentMethod as am, type Quantity as an, type TransactionLog as ao, type TransactionReceipt as ap, type NonEmptyArray as aq, type EmailWithMetadata as ar, type PhoneWithMetadata as as, type WalletWithMetadata as at, type Google as au, type Twitter as av, type Discord as aw, type Github as ax, type LinkedIn as ay, type Apple as az, type LinkedAccountWithMetadata as b, type BaseConnectedSolanaWallet as c, type UserRecoveryMethod as d, type SupportedSolanaTransaction as e, type SolanaCluster as f, type CreateWalletOptions as g, type SendTransactionModalUIOptions as h, type SignMessageModalUIOptions as i, type SolanaStandardWallet as j, type SolanaFundingConfig as k, SolanaWalletConnector as l, type PrivyFarcasterSignerInitResponse as m, type MfaSubmitArgs as n, type SolanaRpcRequestType as o, type EthereumRpcResponseType as p, type SolanaRpcResponseType as q, type EIP1193Provider as r, type EntropyIdVerifier as s, toSolanaWalletConnectors as t, type RequestArguments as u, WalletConnector as v, PrivyProxyProvider as w, type WalletClientType as x, type ConnectedWalletMetadata as y, type PrivyClientConfig as z };
|