@privy-io/js-sdk-core 0.74.0 → 0.75.0
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/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/index.d.mts +75 -15
- package/dist/dts/index.d.ts +75 -15
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/index.mjs.map +1 -1
- package/package.json +10 -10
package/dist/dts/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AuthenticatedUser, CoinbaseOnRampInitInput, CoinbaseOnRampInitResponse, LinkedAccount, LinkedAccountBitcoinSegwitEmbeddedWallet, LinkedAccountBitcoinTaprootEmbeddedWallet, LinkedAccountEmbeddedWallet, LinkedAccountEmbeddedWalletWithID, LinkedAccountEthereumEmbeddedWallet, LinkedAccountSmartWallet, LinkedAccountSolanaEmbeddedWallet, MfaPasskeyInitRequestBody, MfaSMSInitRequestBody, MoonpayOnRampSignInput, OAuthProviderID, OAuthProviderID as OAuthProviderID$1, OAuthTokens, PasskeyAuthenticatorVerifyResponse, RawSignResponse, SmartWalletConfiguration, SmartWalletType as SmartWalletType$1, UnsignedEthereumTransaction, User, Wallet, WalletCreateParams, WalletRawSignParams, WalletRpcParams, WalletRpcResponse, WalletUpdateParams } from "@privy-io/api-types";
|
|
1
|
+
import { AuthenticatedUser, CoinbaseOnRampInitInput, CoinbaseOnRampInitResponse, LinkedAccount, LinkedAccountBitcoinSegwitEmbeddedWallet, LinkedAccountBitcoinTaprootEmbeddedWallet, LinkedAccountEmbeddedWallet, LinkedAccountEmbeddedWalletWithID, LinkedAccountEthereumEmbeddedWallet, LinkedAccountSmartWallet, LinkedAccountSolanaEmbeddedWallet, MfaPasskeyInitRequestBody, MfaSMSInitRequestBody, MoonpayOnRampSignInput, OAuthProviderID, OAuthProviderID as OAuthProviderID$1, OAuthTokens, PasskeyAuthenticatorVerifyResponse, RawSignResponse, SmartWalletConfiguration, SmartWalletType as SmartWalletType$1, TransferRequestBody, UnsignedEthereumTransaction, User, Wallet, WalletCreateParams, WalletRawSignParams, WalletRpcParams, WalletRpcResponse, WalletUpdateParams, Wallets } from "@privy-io/api-types";
|
|
2
2
|
import { Chain, RpcConfig } from "@privy-io/chains";
|
|
3
|
-
import { Route } from "@privy-io/routes";
|
|
3
|
+
import { CreateCryptoDepositAccountResponse, CryptoDepositAccountQuoteResponse, CryptoDepositAddressRoute, CryptoDepositAsset, CryptoDepositAssetFilter, Route } from "@privy-io/routes";
|
|
4
4
|
import "@metamask/eth-sig-util";
|
|
5
5
|
import "viem/account-abstraction";
|
|
6
6
|
import { StrictUnsignedTempoTransactionRequest, StrictUnsignedTransactionRequest } from "@privy-io/ethereum";
|
|
@@ -2835,7 +2835,7 @@ declare const delegateWallet: (client: Privy) => ({ address, chainType }: Delega
|
|
|
2835
2835
|
declare const revokeWallets: (client: Privy) => () => Promise<{
|
|
2836
2836
|
user: import("@privy-io/api-types").User;
|
|
2837
2837
|
}>;
|
|
2838
|
-
declare namespace index_d_exports$
|
|
2838
|
+
declare namespace index_d_exports$2 {
|
|
2839
2839
|
export { delegateWallet, revokeWallets };
|
|
2840
2840
|
}
|
|
2841
2841
|
//#endregion
|
|
@@ -2948,11 +2948,11 @@ interface SendTransactionOutput {
|
|
|
2948
2948
|
* Requests a cross-app wallet to send a transaction, returning the resulting transaction hash.
|
|
2949
2949
|
*/
|
|
2950
2950
|
declare const sendTransaction: ({ client, openAuthSession }: SendTransactionDependencies) => ({ user, transaction, address, redirectUrl }: SendTransactionInput) => Promise<SendTransactionOutput>;
|
|
2951
|
-
declare namespace index_d_exports$
|
|
2951
|
+
declare namespace index_d_exports$4 {
|
|
2952
2952
|
export { SendTransactionDependencies, SendTransactionInput, SendTransactionOutput, SignMessageDependencies, SignMessageInput, SignMessageOutput, SignTypedDataDependencies, SignTypedDataInput, SignTypedDataOutput, sendTransaction, signMessage, signTypedData };
|
|
2953
2953
|
}
|
|
2954
2954
|
declare namespace index_d_exports {
|
|
2955
|
-
export { LinkWithCrossAppAuthDependencies, LinkWithCrossAppAuthInput, LinkWithCrossAppAuthOutput, LoginWithCrossAppAuthDependencies, LoginWithCrossAppAuthInput, LoginWithCrossAppAuthOutput, linkWithCrossAppAuth, loginWithCrossAppAuth, index_d_exports$
|
|
2955
|
+
export { LinkWithCrossAppAuthDependencies, LinkWithCrossAppAuthInput, LinkWithCrossAppAuthOutput, LoginWithCrossAppAuthDependencies, LoginWithCrossAppAuthInput, LoginWithCrossAppAuthOutput, linkWithCrossAppAuth, loginWithCrossAppAuth, index_d_exports$4 as wallet };
|
|
2956
2956
|
}
|
|
2957
2957
|
//#endregion
|
|
2958
2958
|
//#region src/action/depositAddress/types.d.ts
|
|
@@ -3080,11 +3080,38 @@ declare function waitForDeposit(opts: WaitForDepositInput & {
|
|
|
3080
3080
|
declare function waitForCompletion(opts: WaitForCompletionInput & {
|
|
3081
3081
|
privy: Privy;
|
|
3082
3082
|
}): Promise<DepositAddressPollingResult>;
|
|
3083
|
-
declare namespace index_d_exports$
|
|
3083
|
+
declare namespace index_d_exports$3 {
|
|
3084
3084
|
export { CompletedDepositAddressOrder, DepositAddressOrder, DepositAddressPollingResult, DepositAddressQuote, DepositConfig, GenerateDepositAddressInput, GetDepositInput, IncompleteDepositAddressOrder, ResolveRefundAddressError, ResolveRefundAddressResult, WaitForCompletionInput, WaitForDepositInput, generateDepositAddress, getConfig, getDeposit, resolveRefundAddress, waitForCompletion, waitForDeposit };
|
|
3085
3085
|
}
|
|
3086
3086
|
declare function getConfig(privy: Privy): Promise<DepositConfig>;
|
|
3087
3087
|
//#endregion
|
|
3088
|
+
//#region src/action/cryptoDepositAccount/types.d.ts
|
|
3089
|
+
type CryptoDepositAccountQuote = CryptoDepositAccountQuoteResponse;
|
|
3090
|
+
type CreateCryptoDepositAccountWithConfigInput = {
|
|
3091
|
+
walletId: string;
|
|
3092
|
+
type: 'deposit_config';
|
|
3093
|
+
depositConfigId: string;
|
|
3094
|
+
};
|
|
3095
|
+
type CreateCryptoDepositAccountWithRouteInput = {
|
|
3096
|
+
walletId: string;
|
|
3097
|
+
type: 'inline_route';
|
|
3098
|
+
source: CryptoDepositAssetFilter;
|
|
3099
|
+
destination: CryptoDepositAsset;
|
|
3100
|
+
};
|
|
3101
|
+
type CreateCryptoDepositAccountInput = CreateCryptoDepositAccountWithConfigInput | CreateCryptoDepositAccountWithRouteInput;
|
|
3102
|
+
type CryptoDepositAccountQuoteInput = {
|
|
3103
|
+
source: {
|
|
3104
|
+
chain: string;
|
|
3105
|
+
asset: string;
|
|
3106
|
+
};
|
|
3107
|
+
destination: {
|
|
3108
|
+
chain: string;
|
|
3109
|
+
asset: string;
|
|
3110
|
+
};
|
|
3111
|
+
inputAmount?: string;
|
|
3112
|
+
slippageBps?: number;
|
|
3113
|
+
};
|
|
3114
|
+
//#endregion
|
|
3088
3115
|
//#region src/wallet-api/sign-wallet-request.d.ts
|
|
3089
3116
|
interface SignWalletRequestInput {
|
|
3090
3117
|
/**
|
|
@@ -3116,6 +3143,23 @@ interface WalletApiActionContext {
|
|
|
3116
3143
|
};
|
|
3117
3144
|
}
|
|
3118
3145
|
//#endregion
|
|
3146
|
+
//#region src/action/cryptoDepositAccount/create.d.ts
|
|
3147
|
+
/**
|
|
3148
|
+
* Creates crypto deposit source wallets for a destination wallet.
|
|
3149
|
+
*
|
|
3150
|
+
* Requires a dest-owner authorization signature from the user's signer.
|
|
3151
|
+
*/
|
|
3152
|
+
declare function createCryptoDepositAccount(context: WalletApiActionContext & Pick<Privy, 'track'>, sign: SignWalletRequest, input: CreateCryptoDepositAccountInput): Promise<CreateCryptoDepositAccountResponse>;
|
|
3153
|
+
//#endregion
|
|
3154
|
+
//#region src/action/cryptoDepositAccount/quote.d.ts
|
|
3155
|
+
/** Fetches an indicative quote for a crypto deposit-account route. */
|
|
3156
|
+
declare function getCryptoDepositAccountQuote(privy: Pick<Privy, 'fetchPrivyRoute' | 'track'>, input: CryptoDepositAccountQuoteInput): Promise<CryptoDepositAccountQuote>;
|
|
3157
|
+
/** Conversion rate as dest-per-source, or undefined when the quote amounts are not usable. */
|
|
3158
|
+
declare function indicativeRateFromQuote(quote: CryptoDepositAccountQuote): string | undefined;
|
|
3159
|
+
declare namespace index_d_exports$1 {
|
|
3160
|
+
export { CreateCryptoDepositAccountInput, CreateCryptoDepositAccountResponse, CreateCryptoDepositAccountWithConfigInput, CreateCryptoDepositAccountWithRouteInput, CryptoDepositAccountQuote, CryptoDepositAccountQuoteInput, CryptoDepositAddressRoute, CryptoDepositAsset, CryptoDepositAssetFilter, createCryptoDepositAccount, getCryptoDepositAccountQuote, indicativeRateFromQuote };
|
|
3161
|
+
}
|
|
3162
|
+
//#endregion
|
|
3119
3163
|
//#region src/wallet-api/generate-authorization-signature.d.ts
|
|
3120
3164
|
interface GenerateAuthorizationSignatureInput {
|
|
3121
3165
|
version: 1;
|
|
@@ -3149,7 +3193,7 @@ interface GenerateAuthorizationSignatureOutput {
|
|
|
3149
3193
|
declare function generateAuthorizationSignature(sign: SignWalletRequest, payload: GenerateAuthorizationSignatureInput | Uint8Array): Promise<GenerateAuthorizationSignatureOutput>;
|
|
3150
3194
|
//#endregion
|
|
3151
3195
|
//#region src/wallet-api/create.d.ts
|
|
3152
|
-
type Input$
|
|
3196
|
+
type Input$4 = {
|
|
3153
3197
|
request: WalletCreateParams;
|
|
3154
3198
|
headers?: HeadersInit;
|
|
3155
3199
|
};
|
|
@@ -3161,10 +3205,10 @@ type Input$3 = {
|
|
|
3161
3205
|
* @param headers Optional headers to include in the request
|
|
3162
3206
|
* @returns The Response from the Wallet API create request
|
|
3163
3207
|
*/
|
|
3164
|
-
declare function create(context: WalletApiActionContext, { request, headers }: Input$
|
|
3208
|
+
declare function create(context: WalletApiActionContext, { request, headers }: Input$4): Promise<Wallet>;
|
|
3165
3209
|
//#endregion
|
|
3166
3210
|
//#region src/wallet-api/rpc.d.ts
|
|
3167
|
-
type Input$
|
|
3211
|
+
type Input$3 = WalletRpcParams & {
|
|
3168
3212
|
wallet_id: string;
|
|
3169
3213
|
headers?: Record<string, string>;
|
|
3170
3214
|
};
|
|
@@ -3176,10 +3220,10 @@ type Input$2 = WalletRpcParams & {
|
|
|
3176
3220
|
* @param input The input to the Wallet API RPC request
|
|
3177
3221
|
* @returns The response from the Wallet API RPC request
|
|
3178
3222
|
*/
|
|
3179
|
-
declare function rpc(context: WalletApiActionContext, sign: SignWalletRequest, { wallet_id, headers: extraHeaders, ...request }: Input$
|
|
3223
|
+
declare function rpc(context: WalletApiActionContext, sign: SignWalletRequest, { wallet_id, headers: extraHeaders, ...request }: Input$3): Promise<WalletRpcResponse>;
|
|
3180
3224
|
//#endregion
|
|
3181
3225
|
//#region src/wallet-api/raw-sign.d.ts
|
|
3182
|
-
type Input$
|
|
3226
|
+
type Input$2 = WalletRawSignParams & {
|
|
3183
3227
|
wallet_id: string;
|
|
3184
3228
|
};
|
|
3185
3229
|
/**
|
|
@@ -3192,7 +3236,7 @@ type Input$1 = WalletRawSignParams & {
|
|
|
3192
3236
|
* @param input The input to the Wallet API raw sign request
|
|
3193
3237
|
* @returns The response from the Wallet API raw sign request
|
|
3194
3238
|
*/
|
|
3195
|
-
declare function rawSign(context: WalletApiActionContext, sign: SignWalletRequest, { wallet_id, ...request }: Input$
|
|
3239
|
+
declare function rawSign(context: WalletApiActionContext, sign: SignWalletRequest, { wallet_id, ...request }: Input$2): Promise<RawSignResponse>;
|
|
3196
3240
|
//#endregion
|
|
3197
3241
|
//#region src/wallet-api/get-wallet.d.ts
|
|
3198
3242
|
/**
|
|
@@ -3207,7 +3251,7 @@ declare function getWallet(context: WalletApiActionContext, { wallet_id }: {
|
|
|
3207
3251
|
}): Promise<Wallet>;
|
|
3208
3252
|
//#endregion
|
|
3209
3253
|
//#region src/wallet-api/update-wallet.d.ts
|
|
3210
|
-
type Input = Pick<WalletUpdateParams, 'additional_signers'>;
|
|
3254
|
+
type Input$1 = Pick<WalletUpdateParams, 'additional_signers'>;
|
|
3211
3255
|
/**
|
|
3212
3256
|
* Updates a wallet through the Wallet API.
|
|
3213
3257
|
*
|
|
@@ -3219,7 +3263,7 @@ type Input = Pick<WalletUpdateParams, 'additional_signers'>;
|
|
|
3219
3263
|
*/
|
|
3220
3264
|
declare function updateWallet(context: WalletApiActionContext, { wallet_id }: {
|
|
3221
3265
|
wallet_id: string;
|
|
3222
|
-
}, sign: SignWalletRequest, input: Input): Promise<Wallet>;
|
|
3266
|
+
}, sign: SignWalletRequest, input: Input$1): Promise<Wallet>;
|
|
3223
3267
|
//#endregion
|
|
3224
3268
|
//#region src/wallet-api/unified-wallet.d.ts
|
|
3225
3269
|
/**
|
|
@@ -3230,6 +3274,22 @@ declare function updateWallet(context: WalletApiActionContext, { wallet_id }: {
|
|
|
3230
3274
|
*/
|
|
3231
3275
|
declare const isUnifiedWallet: (account: LinkedAccountEmbeddedWallet) => account is LinkedAccountEmbeddedWalletWithID;
|
|
3232
3276
|
//#endregion
|
|
3277
|
+
//#region src/wallet-api/transfer.d.ts
|
|
3278
|
+
type Input = TransferRequestBody & {
|
|
3279
|
+
wallet_id: string;
|
|
3280
|
+
};
|
|
3281
|
+
/**
|
|
3282
|
+
* Executes a Wallet API transfer request. Resolves as soon as the action is created —
|
|
3283
|
+
* the returned action's `status` is `'pending'`. This does not wait for the action to
|
|
3284
|
+
* reach a terminal status.
|
|
3285
|
+
*
|
|
3286
|
+
* @param context The context needed to execute the action
|
|
3287
|
+
* @param sign A function that signs a wallet request
|
|
3288
|
+
* @param input The input to the Wallet API transfer request
|
|
3289
|
+
* @returns The created transfer action
|
|
3290
|
+
*/
|
|
3291
|
+
declare function transfer(context: WalletApiActionContext, sign: SignWalletRequest, { wallet_id, ...request }: Input): Promise<Wallets.Actions.TransferActionResponse>;
|
|
3292
|
+
//#endregion
|
|
3233
3293
|
//#region src/embedded/stack/session-signers.d.ts
|
|
3234
3294
|
interface SessionSigner {
|
|
3235
3295
|
signer_id: string;
|
|
@@ -3368,4 +3428,4 @@ declare const THIRDWEB: "thirdweb";
|
|
|
3368
3428
|
/** @deprecated {@link SmartWalletType} is a well-typed union, use the `'nexus'` literal instead */
|
|
3369
3429
|
declare const NEXUS: "nexus";
|
|
3370
3430
|
//#endregion
|
|
3371
|
-
export { ALL_WALLET_CLIENT_TYPES, BICONOMY, COINBASE_SMART_WALLET, Cluster, type CoinbaseAssetId, CoinbaseWalletClientType, type CompletedDepositAddressOrder, ConnectedStandardSolanaWallet, ConnectorType, CookieWriteBehavior, type CountryCallingCode, type CountryCode, type CreateSiwsMessageOpts, DATA_SUFFIX_PLUGIN_ID, type DataSuffixPlugin, type DepositAddressOrder, type DepositAddressPollingResult, type DepositAddressQuote, type DepositConfig, type EIP1193Provider, type EmbeddedBitcoinWalletProvider, EmbeddedProviderError, EmbeddedWalletClientType, type EmbeddedWalletConfig, type EmbeddedWalletRecoveryOptions, type EntropyIdVerifier, type ErrorMessageMap, ExternalWallet, ExternalWalletMetadata, FundingMethod, FundingProvider, type GenerateAuthorizationSignatureInput, type GenerateAuthorizationSignatureOutput, type GenerateDepositAddressInput, type GetDepositInput, IdentifierString, InMemoryCache, type IncompleteDepositAddressOrder, InjectedWalletClientType, KERNEL, LIGHT_ACCOUNT, LocalStorage, type LogLevel, type Logger, type MfaMethod, type MfaPromise, type MfaSubmitArgs, type MfaSubmitPromise, MoonpayApiError, type MoonpayTransactionStatus, type MoonpayTransactionStatusResponse, NEXUS, type OAuthProviderID, OAuthProviderType, type OnNeedsRecovery, type ParsedSolanaOffchainMessage, PaymentOption, type PollOptions, type PollResult, type PreparedTransactionRequest, PrivyApiError, PrivyClientError, PrivyConnectorError, PrivyEmbeddedSolanaWalletProvider, PrivyEmbeddedWalletErrorCode, PrivyEmbeddedWalletProvider, type PrivyPlugin, PrivyProviderRpcError, ProviderErrors, type Quantity, type ResolveRefundAddressError, type ResolveRefundAddressResult, SAFE, SUPPORTED_CONNECTOR_TYPES, type SessionSignerInput, type SetRecoveryInput, SmartWalletType, SolanaClient, SolanaCluster, SolanaSignAndSendTransactionInput, SolanaSignAndSendTransactionMode, SolanaSignAndSendTransactionOptions, SolanaSignAndSendTransactionOutput, SolanaSignMessageInput, SolanaSignMessageOutput, SolanaSignTransactionInput, SolanaSignTransactionOptions, SolanaSignTransactionOutput, SolanaStandardWallet, SolanaTransactionCommitment, SolanaUsdcAddressMap, type Storage, THIRDWEB, type TelegramAuthInput, type TelegramAuthResult, type TelegramWebAppData, UnknownWalletClientType, type UnsignedTransactionRequest, type UnsignedTransactionRequestWithChainId, UsdcAddressMap, type WaitForCompletionInput, type WaitForDepositInput, WalletBranding, WalletClientType, WalletConnectWalletClientType, addSessionSigners, buildSolanaOffchainMessage, chainToMoonpayCurrency, cookies, countryCodesAndNumbers, create, createDataSuffixPlugin, createErrorFormatter, createSiwsMessage, index_d_exports as crossApp, Privy as default, index_d_exports$
|
|
3431
|
+
export { ALL_WALLET_CLIENT_TYPES, BICONOMY, COINBASE_SMART_WALLET, Cluster, type CoinbaseAssetId, CoinbaseWalletClientType, type CompletedDepositAddressOrder, ConnectedStandardSolanaWallet, ConnectorType, CookieWriteBehavior, type CountryCallingCode, type CountryCode, type CreateCryptoDepositAccountInput, type CreateCryptoDepositAccountResponse, type CreateSiwsMessageOpts, type CryptoDepositAccountQuote, type CryptoDepositAccountQuoteInput, type CryptoDepositAddressRoute, type CryptoDepositAsset, type CryptoDepositAssetFilter, DATA_SUFFIX_PLUGIN_ID, type DataSuffixPlugin, type DepositAddressOrder, type DepositAddressPollingResult, type DepositAddressQuote, type DepositConfig, type EIP1193Provider, type EmbeddedBitcoinWalletProvider, EmbeddedProviderError, EmbeddedWalletClientType, type EmbeddedWalletConfig, type EmbeddedWalletRecoveryOptions, type EntropyIdVerifier, type ErrorMessageMap, ExternalWallet, ExternalWalletMetadata, FundingMethod, FundingProvider, type GenerateAuthorizationSignatureInput, type GenerateAuthorizationSignatureOutput, type GenerateDepositAddressInput, type GetDepositInput, IdentifierString, InMemoryCache, type IncompleteDepositAddressOrder, InjectedWalletClientType, KERNEL, LIGHT_ACCOUNT, LocalStorage, type LogLevel, type Logger, type MfaMethod, type MfaPromise, type MfaSubmitArgs, type MfaSubmitPromise, MoonpayApiError, type MoonpayTransactionStatus, type MoonpayTransactionStatusResponse, NEXUS, type OAuthProviderID, OAuthProviderType, type OnNeedsRecovery, type ParsedSolanaOffchainMessage, PaymentOption, type PollOptions, type PollResult, type PreparedTransactionRequest, PrivyApiError, PrivyClientError, PrivyConnectorError, PrivyEmbeddedSolanaWalletProvider, PrivyEmbeddedWalletErrorCode, PrivyEmbeddedWalletProvider, type PrivyPlugin, PrivyProviderRpcError, ProviderErrors, type Quantity, type ResolveRefundAddressError, type ResolveRefundAddressResult, SAFE, SUPPORTED_CONNECTOR_TYPES, type SessionSignerInput, type SetRecoveryInput, SmartWalletType, SolanaClient, SolanaCluster, SolanaSignAndSendTransactionInput, SolanaSignAndSendTransactionMode, SolanaSignAndSendTransactionOptions, SolanaSignAndSendTransactionOutput, SolanaSignMessageInput, SolanaSignMessageOutput, SolanaSignTransactionInput, SolanaSignTransactionOptions, SolanaSignTransactionOutput, SolanaStandardWallet, SolanaTransactionCommitment, SolanaUsdcAddressMap, type Storage, THIRDWEB, type TelegramAuthInput, type TelegramAuthResult, type TelegramWebAppData, UnknownWalletClientType, type UnsignedTransactionRequest, type UnsignedTransactionRequestWithChainId, UsdcAddressMap, type WaitForCompletionInput, type WaitForDepositInput, WalletBranding, WalletClientType, WalletConnectWalletClientType, addSessionSigners, buildSolanaOffchainMessage, chainToMoonpayCurrency, cookies, countryCodesAndNumbers, create, createDataSuffixPlugin, createErrorFormatter, createSiwsMessage, index_d_exports as crossApp, index_d_exports$1 as cryptoDepositAccount, Privy as default, index_d_exports$2 as delegatedActions, index_d_exports$3 as depositAddress, deriveSolanaApplicationDomain, errorIndicatesMaxMfaRetries, errorIndicatesMfaCanceled, errorIndicatesMfaRateLimit, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, errorIndicatesRecoveryIsNeeded, formatLamportsAmount, formatPhoneNumber, formatTokenAmount, formatWalletAddress, formatWeiAmount, fundingMethodToMoonpayPaymentMethod, generateAuthorizationSignature, generateWalletIdempotencyKey, getAllUserEmbeddedBitcoinWallets, getAllUserEmbeddedEthereumWallets, getAllUserEmbeddedSolanaWallets, getCoinbaseOnRampUrl, getCountryCallingCode, getDataSuffixPlugin, getEntropyDetailsFromAccount, getEntropyDetailsFromUser, getIsTokenUsdc, getJsonRpcEndpointFromChain, getPhoneCountryCodeAndNumber, getPlaceholderPhoneNumber, getSolanaClusterDisplayName, getSolanaRpcEndpointForCluster, getSolanaUsdcMintAddressForCluster, getUserEmbeddedEthereumWallet, getUserEmbeddedSolanaWallet, getUserEmbeddedWallet, getUserSmartWallet, getWallet, isEmbeddedWalletAccount, isExtensionContext, isSupportedChainIdForCoinbaseOnramp, isSupportedChainIdForMoonpay, isUnifiedWallet, lastFourDigits, parseSolanaOffchainMessage, phoneNumberTypingFormatter, poll, rawSign, removeSessionSigners, rpc, shouldWriteSessionCookies, throwIfInvalidRecoveryUpgradePath, toCoinbaseAssetId, toCoinbaseBlockchainFromChainId, toE164, toObjectKeys, toWalletApiUnsignedEthTransaction, transfer, updateWallet, validatePhoneNumber };
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AuthenticatedUser, CoinbaseOnRampInitInput, CoinbaseOnRampInitResponse, LinkedAccount, LinkedAccountBitcoinSegwitEmbeddedWallet, LinkedAccountBitcoinTaprootEmbeddedWallet, LinkedAccountEmbeddedWallet, LinkedAccountEmbeddedWalletWithID, LinkedAccountEthereumEmbeddedWallet, LinkedAccountSmartWallet, LinkedAccountSolanaEmbeddedWallet, MfaPasskeyInitRequestBody, MfaSMSInitRequestBody, MoonpayOnRampSignInput, OAuthProviderID, OAuthProviderID as OAuthProviderID$1, OAuthTokens, PasskeyAuthenticatorVerifyResponse, RawSignResponse, SmartWalletConfiguration, SmartWalletType as SmartWalletType$1, UnsignedEthereumTransaction, User, Wallet, WalletCreateParams, WalletRawSignParams, WalletRpcParams, WalletRpcResponse, WalletUpdateParams } from "@privy-io/api-types";
|
|
1
|
+
import { AuthenticatedUser, CoinbaseOnRampInitInput, CoinbaseOnRampInitResponse, LinkedAccount, LinkedAccountBitcoinSegwitEmbeddedWallet, LinkedAccountBitcoinTaprootEmbeddedWallet, LinkedAccountEmbeddedWallet, LinkedAccountEmbeddedWalletWithID, LinkedAccountEthereumEmbeddedWallet, LinkedAccountSmartWallet, LinkedAccountSolanaEmbeddedWallet, MfaPasskeyInitRequestBody, MfaSMSInitRequestBody, MoonpayOnRampSignInput, OAuthProviderID, OAuthProviderID as OAuthProviderID$1, OAuthTokens, PasskeyAuthenticatorVerifyResponse, RawSignResponse, SmartWalletConfiguration, SmartWalletType as SmartWalletType$1, TransferRequestBody, UnsignedEthereumTransaction, User, Wallet, WalletCreateParams, WalletRawSignParams, WalletRpcParams, WalletRpcResponse, WalletUpdateParams, Wallets } from "@privy-io/api-types";
|
|
2
2
|
import { Chain, RpcConfig } from "@privy-io/chains";
|
|
3
|
-
import { Route } from "@privy-io/routes";
|
|
3
|
+
import { CreateCryptoDepositAccountResponse, CryptoDepositAccountQuoteResponse, CryptoDepositAddressRoute, CryptoDepositAsset, CryptoDepositAssetFilter, Route } from "@privy-io/routes";
|
|
4
4
|
import "@metamask/eth-sig-util";
|
|
5
5
|
import "viem/account-abstraction";
|
|
6
6
|
import { StrictUnsignedTempoTransactionRequest, StrictUnsignedTransactionRequest } from "@privy-io/ethereum";
|
|
@@ -2835,7 +2835,7 @@ declare const delegateWallet: (client: Privy) => ({ address, chainType }: Delega
|
|
|
2835
2835
|
declare const revokeWallets: (client: Privy) => () => Promise<{
|
|
2836
2836
|
user: import("@privy-io/api-types").User;
|
|
2837
2837
|
}>;
|
|
2838
|
-
declare namespace index_d_exports$
|
|
2838
|
+
declare namespace index_d_exports$2 {
|
|
2839
2839
|
export { delegateWallet, revokeWallets };
|
|
2840
2840
|
}
|
|
2841
2841
|
//#endregion
|
|
@@ -2948,11 +2948,11 @@ interface SendTransactionOutput {
|
|
|
2948
2948
|
* Requests a cross-app wallet to send a transaction, returning the resulting transaction hash.
|
|
2949
2949
|
*/
|
|
2950
2950
|
declare const sendTransaction: ({ client, openAuthSession }: SendTransactionDependencies) => ({ user, transaction, address, redirectUrl }: SendTransactionInput) => Promise<SendTransactionOutput>;
|
|
2951
|
-
declare namespace index_d_exports$
|
|
2951
|
+
declare namespace index_d_exports$4 {
|
|
2952
2952
|
export { SendTransactionDependencies, SendTransactionInput, SendTransactionOutput, SignMessageDependencies, SignMessageInput, SignMessageOutput, SignTypedDataDependencies, SignTypedDataInput, SignTypedDataOutput, sendTransaction, signMessage, signTypedData };
|
|
2953
2953
|
}
|
|
2954
2954
|
declare namespace index_d_exports {
|
|
2955
|
-
export { LinkWithCrossAppAuthDependencies, LinkWithCrossAppAuthInput, LinkWithCrossAppAuthOutput, LoginWithCrossAppAuthDependencies, LoginWithCrossAppAuthInput, LoginWithCrossAppAuthOutput, linkWithCrossAppAuth, loginWithCrossAppAuth, index_d_exports$
|
|
2955
|
+
export { LinkWithCrossAppAuthDependencies, LinkWithCrossAppAuthInput, LinkWithCrossAppAuthOutput, LoginWithCrossAppAuthDependencies, LoginWithCrossAppAuthInput, LoginWithCrossAppAuthOutput, linkWithCrossAppAuth, loginWithCrossAppAuth, index_d_exports$4 as wallet };
|
|
2956
2956
|
}
|
|
2957
2957
|
//#endregion
|
|
2958
2958
|
//#region src/action/depositAddress/types.d.ts
|
|
@@ -3080,11 +3080,38 @@ declare function waitForDeposit(opts: WaitForDepositInput & {
|
|
|
3080
3080
|
declare function waitForCompletion(opts: WaitForCompletionInput & {
|
|
3081
3081
|
privy: Privy;
|
|
3082
3082
|
}): Promise<DepositAddressPollingResult>;
|
|
3083
|
-
declare namespace index_d_exports$
|
|
3083
|
+
declare namespace index_d_exports$3 {
|
|
3084
3084
|
export { CompletedDepositAddressOrder, DepositAddressOrder, DepositAddressPollingResult, DepositAddressQuote, DepositConfig, GenerateDepositAddressInput, GetDepositInput, IncompleteDepositAddressOrder, ResolveRefundAddressError, ResolveRefundAddressResult, WaitForCompletionInput, WaitForDepositInput, generateDepositAddress, getConfig, getDeposit, resolveRefundAddress, waitForCompletion, waitForDeposit };
|
|
3085
3085
|
}
|
|
3086
3086
|
declare function getConfig(privy: Privy): Promise<DepositConfig>;
|
|
3087
3087
|
//#endregion
|
|
3088
|
+
//#region src/action/cryptoDepositAccount/types.d.ts
|
|
3089
|
+
type CryptoDepositAccountQuote = CryptoDepositAccountQuoteResponse;
|
|
3090
|
+
type CreateCryptoDepositAccountWithConfigInput = {
|
|
3091
|
+
walletId: string;
|
|
3092
|
+
type: 'deposit_config';
|
|
3093
|
+
depositConfigId: string;
|
|
3094
|
+
};
|
|
3095
|
+
type CreateCryptoDepositAccountWithRouteInput = {
|
|
3096
|
+
walletId: string;
|
|
3097
|
+
type: 'inline_route';
|
|
3098
|
+
source: CryptoDepositAssetFilter;
|
|
3099
|
+
destination: CryptoDepositAsset;
|
|
3100
|
+
};
|
|
3101
|
+
type CreateCryptoDepositAccountInput = CreateCryptoDepositAccountWithConfigInput | CreateCryptoDepositAccountWithRouteInput;
|
|
3102
|
+
type CryptoDepositAccountQuoteInput = {
|
|
3103
|
+
source: {
|
|
3104
|
+
chain: string;
|
|
3105
|
+
asset: string;
|
|
3106
|
+
};
|
|
3107
|
+
destination: {
|
|
3108
|
+
chain: string;
|
|
3109
|
+
asset: string;
|
|
3110
|
+
};
|
|
3111
|
+
inputAmount?: string;
|
|
3112
|
+
slippageBps?: number;
|
|
3113
|
+
};
|
|
3114
|
+
//#endregion
|
|
3088
3115
|
//#region src/wallet-api/sign-wallet-request.d.ts
|
|
3089
3116
|
interface SignWalletRequestInput {
|
|
3090
3117
|
/**
|
|
@@ -3116,6 +3143,23 @@ interface WalletApiActionContext {
|
|
|
3116
3143
|
};
|
|
3117
3144
|
}
|
|
3118
3145
|
//#endregion
|
|
3146
|
+
//#region src/action/cryptoDepositAccount/create.d.ts
|
|
3147
|
+
/**
|
|
3148
|
+
* Creates crypto deposit source wallets for a destination wallet.
|
|
3149
|
+
*
|
|
3150
|
+
* Requires a dest-owner authorization signature from the user's signer.
|
|
3151
|
+
*/
|
|
3152
|
+
declare function createCryptoDepositAccount(context: WalletApiActionContext & Pick<Privy, 'track'>, sign: SignWalletRequest, input: CreateCryptoDepositAccountInput): Promise<CreateCryptoDepositAccountResponse>;
|
|
3153
|
+
//#endregion
|
|
3154
|
+
//#region src/action/cryptoDepositAccount/quote.d.ts
|
|
3155
|
+
/** Fetches an indicative quote for a crypto deposit-account route. */
|
|
3156
|
+
declare function getCryptoDepositAccountQuote(privy: Pick<Privy, 'fetchPrivyRoute' | 'track'>, input: CryptoDepositAccountQuoteInput): Promise<CryptoDepositAccountQuote>;
|
|
3157
|
+
/** Conversion rate as dest-per-source, or undefined when the quote amounts are not usable. */
|
|
3158
|
+
declare function indicativeRateFromQuote(quote: CryptoDepositAccountQuote): string | undefined;
|
|
3159
|
+
declare namespace index_d_exports$1 {
|
|
3160
|
+
export { CreateCryptoDepositAccountInput, CreateCryptoDepositAccountResponse, CreateCryptoDepositAccountWithConfigInput, CreateCryptoDepositAccountWithRouteInput, CryptoDepositAccountQuote, CryptoDepositAccountQuoteInput, CryptoDepositAddressRoute, CryptoDepositAsset, CryptoDepositAssetFilter, createCryptoDepositAccount, getCryptoDepositAccountQuote, indicativeRateFromQuote };
|
|
3161
|
+
}
|
|
3162
|
+
//#endregion
|
|
3119
3163
|
//#region src/wallet-api/generate-authorization-signature.d.ts
|
|
3120
3164
|
interface GenerateAuthorizationSignatureInput {
|
|
3121
3165
|
version: 1;
|
|
@@ -3149,7 +3193,7 @@ interface GenerateAuthorizationSignatureOutput {
|
|
|
3149
3193
|
declare function generateAuthorizationSignature(sign: SignWalletRequest, payload: GenerateAuthorizationSignatureInput | Uint8Array): Promise<GenerateAuthorizationSignatureOutput>;
|
|
3150
3194
|
//#endregion
|
|
3151
3195
|
//#region src/wallet-api/create.d.ts
|
|
3152
|
-
type Input$
|
|
3196
|
+
type Input$4 = {
|
|
3153
3197
|
request: WalletCreateParams;
|
|
3154
3198
|
headers?: HeadersInit;
|
|
3155
3199
|
};
|
|
@@ -3161,10 +3205,10 @@ type Input$3 = {
|
|
|
3161
3205
|
* @param headers Optional headers to include in the request
|
|
3162
3206
|
* @returns The Response from the Wallet API create request
|
|
3163
3207
|
*/
|
|
3164
|
-
declare function create(context: WalletApiActionContext, { request, headers }: Input$
|
|
3208
|
+
declare function create(context: WalletApiActionContext, { request, headers }: Input$4): Promise<Wallet>;
|
|
3165
3209
|
//#endregion
|
|
3166
3210
|
//#region src/wallet-api/rpc.d.ts
|
|
3167
|
-
type Input$
|
|
3211
|
+
type Input$3 = WalletRpcParams & {
|
|
3168
3212
|
wallet_id: string;
|
|
3169
3213
|
headers?: Record<string, string>;
|
|
3170
3214
|
};
|
|
@@ -3176,10 +3220,10 @@ type Input$2 = WalletRpcParams & {
|
|
|
3176
3220
|
* @param input The input to the Wallet API RPC request
|
|
3177
3221
|
* @returns The response from the Wallet API RPC request
|
|
3178
3222
|
*/
|
|
3179
|
-
declare function rpc(context: WalletApiActionContext, sign: SignWalletRequest, { wallet_id, headers: extraHeaders, ...request }: Input$
|
|
3223
|
+
declare function rpc(context: WalletApiActionContext, sign: SignWalletRequest, { wallet_id, headers: extraHeaders, ...request }: Input$3): Promise<WalletRpcResponse>;
|
|
3180
3224
|
//#endregion
|
|
3181
3225
|
//#region src/wallet-api/raw-sign.d.ts
|
|
3182
|
-
type Input$
|
|
3226
|
+
type Input$2 = WalletRawSignParams & {
|
|
3183
3227
|
wallet_id: string;
|
|
3184
3228
|
};
|
|
3185
3229
|
/**
|
|
@@ -3192,7 +3236,7 @@ type Input$1 = WalletRawSignParams & {
|
|
|
3192
3236
|
* @param input The input to the Wallet API raw sign request
|
|
3193
3237
|
* @returns The response from the Wallet API raw sign request
|
|
3194
3238
|
*/
|
|
3195
|
-
declare function rawSign(context: WalletApiActionContext, sign: SignWalletRequest, { wallet_id, ...request }: Input$
|
|
3239
|
+
declare function rawSign(context: WalletApiActionContext, sign: SignWalletRequest, { wallet_id, ...request }: Input$2): Promise<RawSignResponse>;
|
|
3196
3240
|
//#endregion
|
|
3197
3241
|
//#region src/wallet-api/get-wallet.d.ts
|
|
3198
3242
|
/**
|
|
@@ -3207,7 +3251,7 @@ declare function getWallet(context: WalletApiActionContext, { wallet_id }: {
|
|
|
3207
3251
|
}): Promise<Wallet>;
|
|
3208
3252
|
//#endregion
|
|
3209
3253
|
//#region src/wallet-api/update-wallet.d.ts
|
|
3210
|
-
type Input = Pick<WalletUpdateParams, 'additional_signers'>;
|
|
3254
|
+
type Input$1 = Pick<WalletUpdateParams, 'additional_signers'>;
|
|
3211
3255
|
/**
|
|
3212
3256
|
* Updates a wallet through the Wallet API.
|
|
3213
3257
|
*
|
|
@@ -3219,7 +3263,7 @@ type Input = Pick<WalletUpdateParams, 'additional_signers'>;
|
|
|
3219
3263
|
*/
|
|
3220
3264
|
declare function updateWallet(context: WalletApiActionContext, { wallet_id }: {
|
|
3221
3265
|
wallet_id: string;
|
|
3222
|
-
}, sign: SignWalletRequest, input: Input): Promise<Wallet>;
|
|
3266
|
+
}, sign: SignWalletRequest, input: Input$1): Promise<Wallet>;
|
|
3223
3267
|
//#endregion
|
|
3224
3268
|
//#region src/wallet-api/unified-wallet.d.ts
|
|
3225
3269
|
/**
|
|
@@ -3230,6 +3274,22 @@ declare function updateWallet(context: WalletApiActionContext, { wallet_id }: {
|
|
|
3230
3274
|
*/
|
|
3231
3275
|
declare const isUnifiedWallet: (account: LinkedAccountEmbeddedWallet) => account is LinkedAccountEmbeddedWalletWithID;
|
|
3232
3276
|
//#endregion
|
|
3277
|
+
//#region src/wallet-api/transfer.d.ts
|
|
3278
|
+
type Input = TransferRequestBody & {
|
|
3279
|
+
wallet_id: string;
|
|
3280
|
+
};
|
|
3281
|
+
/**
|
|
3282
|
+
* Executes a Wallet API transfer request. Resolves as soon as the action is created —
|
|
3283
|
+
* the returned action's `status` is `'pending'`. This does not wait for the action to
|
|
3284
|
+
* reach a terminal status.
|
|
3285
|
+
*
|
|
3286
|
+
* @param context The context needed to execute the action
|
|
3287
|
+
* @param sign A function that signs a wallet request
|
|
3288
|
+
* @param input The input to the Wallet API transfer request
|
|
3289
|
+
* @returns The created transfer action
|
|
3290
|
+
*/
|
|
3291
|
+
declare function transfer(context: WalletApiActionContext, sign: SignWalletRequest, { wallet_id, ...request }: Input): Promise<Wallets.Actions.TransferActionResponse>;
|
|
3292
|
+
//#endregion
|
|
3233
3293
|
//#region src/embedded/stack/session-signers.d.ts
|
|
3234
3294
|
interface SessionSigner {
|
|
3235
3295
|
signer_id: string;
|
|
@@ -3368,4 +3428,4 @@ declare const THIRDWEB: "thirdweb";
|
|
|
3368
3428
|
/** @deprecated {@link SmartWalletType} is a well-typed union, use the `'nexus'` literal instead */
|
|
3369
3429
|
declare const NEXUS: "nexus";
|
|
3370
3430
|
//#endregion
|
|
3371
|
-
export { ALL_WALLET_CLIENT_TYPES, BICONOMY, COINBASE_SMART_WALLET, Cluster, type CoinbaseAssetId, CoinbaseWalletClientType, type CompletedDepositAddressOrder, ConnectedStandardSolanaWallet, ConnectorType, CookieWriteBehavior, type CountryCallingCode, type CountryCode, type CreateSiwsMessageOpts, DATA_SUFFIX_PLUGIN_ID, type DataSuffixPlugin, type DepositAddressOrder, type DepositAddressPollingResult, type DepositAddressQuote, type DepositConfig, type EIP1193Provider, type EmbeddedBitcoinWalletProvider, EmbeddedProviderError, EmbeddedWalletClientType, type EmbeddedWalletConfig, type EmbeddedWalletRecoveryOptions, type EntropyIdVerifier, type ErrorMessageMap, ExternalWallet, ExternalWalletMetadata, FundingMethod, FundingProvider, type GenerateAuthorizationSignatureInput, type GenerateAuthorizationSignatureOutput, type GenerateDepositAddressInput, type GetDepositInput, IdentifierString, InMemoryCache, type IncompleteDepositAddressOrder, InjectedWalletClientType, KERNEL, LIGHT_ACCOUNT, LocalStorage, type LogLevel, type Logger, type MfaMethod, type MfaPromise, type MfaSubmitArgs, type MfaSubmitPromise, MoonpayApiError, type MoonpayTransactionStatus, type MoonpayTransactionStatusResponse, NEXUS, type OAuthProviderID, OAuthProviderType, type OnNeedsRecovery, type ParsedSolanaOffchainMessage, PaymentOption, type PollOptions, type PollResult, type PreparedTransactionRequest, PrivyApiError, PrivyClientError, PrivyConnectorError, PrivyEmbeddedSolanaWalletProvider, PrivyEmbeddedWalletErrorCode, PrivyEmbeddedWalletProvider, type PrivyPlugin, PrivyProviderRpcError, ProviderErrors, type Quantity, type ResolveRefundAddressError, type ResolveRefundAddressResult, SAFE, SUPPORTED_CONNECTOR_TYPES, type SessionSignerInput, type SetRecoveryInput, SmartWalletType, SolanaClient, SolanaCluster, SolanaSignAndSendTransactionInput, SolanaSignAndSendTransactionMode, SolanaSignAndSendTransactionOptions, SolanaSignAndSendTransactionOutput, SolanaSignMessageInput, SolanaSignMessageOutput, SolanaSignTransactionInput, SolanaSignTransactionOptions, SolanaSignTransactionOutput, SolanaStandardWallet, SolanaTransactionCommitment, SolanaUsdcAddressMap, type Storage, THIRDWEB, type TelegramAuthInput, type TelegramAuthResult, type TelegramWebAppData, UnknownWalletClientType, type UnsignedTransactionRequest, type UnsignedTransactionRequestWithChainId, UsdcAddressMap, type WaitForCompletionInput, type WaitForDepositInput, WalletBranding, WalletClientType, WalletConnectWalletClientType, addSessionSigners, buildSolanaOffchainMessage, chainToMoonpayCurrency, cookies, countryCodesAndNumbers, create, createDataSuffixPlugin, createErrorFormatter, createSiwsMessage, index_d_exports as crossApp, Privy as default, index_d_exports$
|
|
3431
|
+
export { ALL_WALLET_CLIENT_TYPES, BICONOMY, COINBASE_SMART_WALLET, Cluster, type CoinbaseAssetId, CoinbaseWalletClientType, type CompletedDepositAddressOrder, ConnectedStandardSolanaWallet, ConnectorType, CookieWriteBehavior, type CountryCallingCode, type CountryCode, type CreateCryptoDepositAccountInput, type CreateCryptoDepositAccountResponse, type CreateSiwsMessageOpts, type CryptoDepositAccountQuote, type CryptoDepositAccountQuoteInput, type CryptoDepositAddressRoute, type CryptoDepositAsset, type CryptoDepositAssetFilter, DATA_SUFFIX_PLUGIN_ID, type DataSuffixPlugin, type DepositAddressOrder, type DepositAddressPollingResult, type DepositAddressQuote, type DepositConfig, type EIP1193Provider, type EmbeddedBitcoinWalletProvider, EmbeddedProviderError, EmbeddedWalletClientType, type EmbeddedWalletConfig, type EmbeddedWalletRecoveryOptions, type EntropyIdVerifier, type ErrorMessageMap, ExternalWallet, ExternalWalletMetadata, FundingMethod, FundingProvider, type GenerateAuthorizationSignatureInput, type GenerateAuthorizationSignatureOutput, type GenerateDepositAddressInput, type GetDepositInput, IdentifierString, InMemoryCache, type IncompleteDepositAddressOrder, InjectedWalletClientType, KERNEL, LIGHT_ACCOUNT, LocalStorage, type LogLevel, type Logger, type MfaMethod, type MfaPromise, type MfaSubmitArgs, type MfaSubmitPromise, MoonpayApiError, type MoonpayTransactionStatus, type MoonpayTransactionStatusResponse, NEXUS, type OAuthProviderID, OAuthProviderType, type OnNeedsRecovery, type ParsedSolanaOffchainMessage, PaymentOption, type PollOptions, type PollResult, type PreparedTransactionRequest, PrivyApiError, PrivyClientError, PrivyConnectorError, PrivyEmbeddedSolanaWalletProvider, PrivyEmbeddedWalletErrorCode, PrivyEmbeddedWalletProvider, type PrivyPlugin, PrivyProviderRpcError, ProviderErrors, type Quantity, type ResolveRefundAddressError, type ResolveRefundAddressResult, SAFE, SUPPORTED_CONNECTOR_TYPES, type SessionSignerInput, type SetRecoveryInput, SmartWalletType, SolanaClient, SolanaCluster, SolanaSignAndSendTransactionInput, SolanaSignAndSendTransactionMode, SolanaSignAndSendTransactionOptions, SolanaSignAndSendTransactionOutput, SolanaSignMessageInput, SolanaSignMessageOutput, SolanaSignTransactionInput, SolanaSignTransactionOptions, SolanaSignTransactionOutput, SolanaStandardWallet, SolanaTransactionCommitment, SolanaUsdcAddressMap, type Storage, THIRDWEB, type TelegramAuthInput, type TelegramAuthResult, type TelegramWebAppData, UnknownWalletClientType, type UnsignedTransactionRequest, type UnsignedTransactionRequestWithChainId, UsdcAddressMap, type WaitForCompletionInput, type WaitForDepositInput, WalletBranding, WalletClientType, WalletConnectWalletClientType, addSessionSigners, buildSolanaOffchainMessage, chainToMoonpayCurrency, cookies, countryCodesAndNumbers, create, createDataSuffixPlugin, createErrorFormatter, createSiwsMessage, index_d_exports as crossApp, index_d_exports$1 as cryptoDepositAccount, Privy as default, index_d_exports$2 as delegatedActions, index_d_exports$3 as depositAddress, deriveSolanaApplicationDomain, errorIndicatesMaxMfaRetries, errorIndicatesMfaCanceled, errorIndicatesMfaRateLimit, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, errorIndicatesRecoveryIsNeeded, formatLamportsAmount, formatPhoneNumber, formatTokenAmount, formatWalletAddress, formatWeiAmount, fundingMethodToMoonpayPaymentMethod, generateAuthorizationSignature, generateWalletIdempotencyKey, getAllUserEmbeddedBitcoinWallets, getAllUserEmbeddedEthereumWallets, getAllUserEmbeddedSolanaWallets, getCoinbaseOnRampUrl, getCountryCallingCode, getDataSuffixPlugin, getEntropyDetailsFromAccount, getEntropyDetailsFromUser, getIsTokenUsdc, getJsonRpcEndpointFromChain, getPhoneCountryCodeAndNumber, getPlaceholderPhoneNumber, getSolanaClusterDisplayName, getSolanaRpcEndpointForCluster, getSolanaUsdcMintAddressForCluster, getUserEmbeddedEthereumWallet, getUserEmbeddedSolanaWallet, getUserEmbeddedWallet, getUserSmartWallet, getWallet, isEmbeddedWalletAccount, isExtensionContext, isSupportedChainIdForCoinbaseOnramp, isSupportedChainIdForMoonpay, isUnifiedWallet, lastFourDigits, parseSolanaOffchainMessage, phoneNumberTypingFormatter, poll, rawSign, removeSessionSigners, rpc, shouldWriteSessionCookies, throwIfInvalidRecoveryUpgradePath, toCoinbaseAssetId, toCoinbaseBlockchainFromChainId, toE164, toObjectKeys, toWalletApiUnsignedEthTransaction, transfer, updateWallet, validatePhoneNumber };
|