@privy-io/js-sdk-core 0.68.6 → 0.69.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 +100 -1
- package/dist/dts/index.d.ts +100 -1
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/dts/index.d.mts
CHANGED
|
@@ -1686,6 +1686,101 @@ declare class SmartWalletApi {
|
|
|
1686
1686
|
}>;
|
|
1687
1687
|
}
|
|
1688
1688
|
//#endregion
|
|
1689
|
+
//#region src/client/auth/TelegramApi.d.ts
|
|
1690
|
+
declare class TelegramApi {
|
|
1691
|
+
/**
|
|
1692
|
+
* Authenticate a user with Privy using Telegram auth data.
|
|
1693
|
+
*
|
|
1694
|
+
* This is the low-level building block for seamless Telegram Mini App auth. Read the signed
|
|
1695
|
+
* launch parameters from Telegram (e.g. `window.Telegram.WebApp.initData`), parse them, and
|
|
1696
|
+
* pass the result here. Privy verifies the payload (Ed25519 or HMAC depending on your app's
|
|
1697
|
+
* configuration) and returns the authenticated user. The SDK stores the returned tokens and
|
|
1698
|
+
* manages session refresh for you.
|
|
1699
|
+
*
|
|
1700
|
+
* @param input The Telegram auth data (`telegramWebAppData` or `telegramAuthResult`) and,
|
|
1701
|
+
* optionally, the `mode` controlling whether new users may be created. `mode` defaults to
|
|
1702
|
+
* `'login-or-sign-up'`; pass `'no-signup'` to reject users that do not already exist.
|
|
1703
|
+
* @param opts Login options, e.g. embedded wallet creation config.
|
|
1704
|
+
*/
|
|
1705
|
+
authenticate({ telegramWebAppData, telegramAuthResult, captchaToken, mode }: TelegramAuthInput & {
|
|
1706
|
+
mode?: 'login-or-sign-up' | 'no-signup';
|
|
1707
|
+
}, opts?: LoginOptions): Promise<Omit<import("@privy-io/api-types").AuthenticatedUser, "session_update_action">>;
|
|
1708
|
+
/**
|
|
1709
|
+
* Link a Telegram account to the currently authenticated user.
|
|
1710
|
+
*
|
|
1711
|
+
* @param input The Telegram auth data (`telegramWebAppData` or `telegramAuthResult`).
|
|
1712
|
+
*/
|
|
1713
|
+
link({ telegramWebAppData, telegramAuthResult, captchaToken }: TelegramAuthInput): Promise<{
|
|
1714
|
+
user: import("@privy-io/api-types").User;
|
|
1715
|
+
identity_token: string | undefined;
|
|
1716
|
+
}>;
|
|
1717
|
+
/**
|
|
1718
|
+
* Unlink a Telegram account from the currently authenticated user.
|
|
1719
|
+
*
|
|
1720
|
+
* @param telegramUserId The Telegram user ID to unlink.
|
|
1721
|
+
*/
|
|
1722
|
+
unlink({ telegramUserId }: {
|
|
1723
|
+
telegramUserId: string;
|
|
1724
|
+
}): Promise<{
|
|
1725
|
+
user: import("@privy-io/api-types").User;
|
|
1726
|
+
identity_token: string | undefined;
|
|
1727
|
+
}>;
|
|
1728
|
+
}
|
|
1729
|
+
/**
|
|
1730
|
+
* The auth result returned by Telegram's Login Widget / LoginUrl button flow.
|
|
1731
|
+
*
|
|
1732
|
+
* @see https://core.telegram.org/widgets/login#receiving-authorization-data
|
|
1733
|
+
*/
|
|
1734
|
+
type TelegramAuthResult = {
|
|
1735
|
+
id: number;
|
|
1736
|
+
first_name: string;
|
|
1737
|
+
auth_date: number;
|
|
1738
|
+
hash: string;
|
|
1739
|
+
last_name?: string;
|
|
1740
|
+
photo_url?: string;
|
|
1741
|
+
username?: string;
|
|
1742
|
+
};
|
|
1743
|
+
/**
|
|
1744
|
+
* The signed launch parameters from a Telegram Mini App
|
|
1745
|
+
* (`window.Telegram.WebApp.initData`), parsed into an object with each field decoded exactly once.
|
|
1746
|
+
*
|
|
1747
|
+
* @see https://core.telegram.org/bots/webapps#webappinitdata
|
|
1748
|
+
*/
|
|
1749
|
+
type TelegramWebAppData = {
|
|
1750
|
+
query_id?: string;
|
|
1751
|
+
auth_date: number;
|
|
1752
|
+
hash: string;
|
|
1753
|
+
user: string;
|
|
1754
|
+
chat_instance?: string;
|
|
1755
|
+
chat_type?: string;
|
|
1756
|
+
start_param?: string;
|
|
1757
|
+
signature?: string;
|
|
1758
|
+
};
|
|
1759
|
+
/**
|
|
1760
|
+
* The Telegram auth data used to authenticate or link a Telegram account.
|
|
1761
|
+
*
|
|
1762
|
+
* Exactly one of `telegramWebAppData` or `telegramAuthResult` should be provided:
|
|
1763
|
+
* - `telegramWebAppData` — for Telegram Mini Apps. Parse `window.Telegram.WebApp.initData`
|
|
1764
|
+
* into an object (decoding each field exactly once) and pass it here.
|
|
1765
|
+
* - `telegramAuthResult` — for the Telegram Login Widget / LoginUrl button flow, where auth
|
|
1766
|
+
* data arrives in the redirect URL's query parameters.
|
|
1767
|
+
*/
|
|
1768
|
+
type TelegramAuthInput = {
|
|
1769
|
+
/**
|
|
1770
|
+
* The parsed `initData` object from a Telegram Mini App
|
|
1771
|
+
* (`window.Telegram.WebApp.initData`, split into key-value pairs with each value decoded once).
|
|
1772
|
+
*/
|
|
1773
|
+
telegramWebAppData?: TelegramWebAppData;
|
|
1774
|
+
/**
|
|
1775
|
+
* The auth result from the Telegram Login Widget / LoginUrl button flow.
|
|
1776
|
+
*/
|
|
1777
|
+
telegramAuthResult?: TelegramAuthResult;
|
|
1778
|
+
/**
|
|
1779
|
+
* An optional captcha token, if captcha is enabled for the app.
|
|
1780
|
+
*/
|
|
1781
|
+
captchaToken?: string;
|
|
1782
|
+
};
|
|
1783
|
+
//#endregion
|
|
1689
1784
|
//#region src/client/auth/AuthApi.d.ts
|
|
1690
1785
|
declare class AuthApi {
|
|
1691
1786
|
/**
|
|
@@ -1733,6 +1828,10 @@ declare class AuthApi {
|
|
|
1733
1828
|
* APIs for guest login
|
|
1734
1829
|
*/
|
|
1735
1830
|
readonly guest: GuestApi;
|
|
1831
|
+
/**
|
|
1832
|
+
* APIs for login with Telegram
|
|
1833
|
+
*/
|
|
1834
|
+
readonly telegram: TelegramApi;
|
|
1736
1835
|
/**
|
|
1737
1836
|
* Logs the current user out.
|
|
1738
1837
|
*/
|
|
@@ -3136,4 +3235,4 @@ declare const THIRDWEB: "thirdweb";
|
|
|
3136
3235
|
/** @deprecated {@link SmartWalletType} is a well-typed union, use the `'nexus'` literal instead */
|
|
3137
3236
|
declare const NEXUS: "nexus";
|
|
3138
3237
|
//#endregion
|
|
3139
|
-
export { ALL_WALLET_CLIENT_TYPES, BICONOMY, COINBASE_SMART_WALLET, Cluster, type CoinbaseAssetId, CoinbaseWalletClientType, type CompletedDepositAddressOrder, ConnectedStandardSolanaWallet, ConnectorType, type CountryCallingCode, type CountryCode, type CreateSiwsMessageOpts, 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, PrivyProviderRpcError, ProviderErrors, type Quantity, type ResolveRefundAddressError, type ResolveRefundAddressResult, SAFE, SUPPORTED_CONNECTOR_TYPES, type SetRecoveryInput, SmartWalletType, SolanaClient, SolanaCluster, SolanaSignAndSendTransactionInput, SolanaSignAndSendTransactionMode, SolanaSignAndSendTransactionOptions, SolanaSignAndSendTransactionOutput, SolanaSignMessageInput, SolanaSignMessageOutput, SolanaSignTransactionInput, SolanaSignTransactionOptions, SolanaSignTransactionOutput, SolanaStandardWallet, SolanaTransactionCommitment, SolanaUsdcAddressMap, type Storage, THIRDWEB, UnknownWalletClientType, type UnsignedTransactionRequest, type UnsignedTransactionRequestWithChainId, UsdcAddressMap, type WaitForCompletionInput, type WaitForDepositInput, WalletBranding, WalletClientType, WalletConnectWalletClientType, addSessionSigners, buildSolanaOffchainMessage, chainToMoonpayCurrency, countryCodesAndNumbers, create, createErrorFormatter, createSiwsMessage, index_d_exports as crossApp, Privy as default, index_d_exports$1 as delegatedActions, index_d_exports$2 as depositAddress, deriveSolanaApplicationDomain, errorIndicatesMaxMfaRetries, errorIndicatesMfaCanceled, errorIndicatesMfaRateLimit, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, errorIndicatesRecoveryIsNeeded, formatLamportsAmount, formatPhoneNumber, formatTokenAmount, formatWalletAddress, formatWeiAmount, fundingMethodToMoonpayPaymentMethod, generateAuthorizationSignature, generateWalletIdempotencyKey, getAllUserEmbeddedBitcoinWallets, getAllUserEmbeddedEthereumWallets, getAllUserEmbeddedSolanaWallets, getCoinbaseOnRampUrl, getCountryCallingCode, getEntropyDetailsFromAccount, getEntropyDetailsFromUser, getIsTokenUsdc, getJsonRpcEndpointFromChain, getPhoneCountryCodeAndNumber, getPlaceholderPhoneNumber, getSolanaClusterDisplayName, getSolanaRpcEndpointForCluster, getSolanaUsdcMintAddressForCluster, getUserEmbeddedEthereumWallet, getUserEmbeddedSolanaWallet, getUserEmbeddedWallet, getUserSmartWallet, getWallet, isEmbeddedWalletAccount, isSupportedChainIdForCoinbaseOnramp, isSupportedChainIdForMoonpay, isUnifiedWallet, lastFourDigits, parseSolanaOffchainMessage, phoneNumberTypingFormatter, poll, rawSign, removeSessionSigners, rpc, throwIfInvalidRecoveryUpgradePath, toCoinbaseAssetId, toCoinbaseBlockchainFromChainId, toObjectKeys, toWalletApiUnsignedEthTransaction, updateWallet, validatePhoneNumber };
|
|
3238
|
+
export { ALL_WALLET_CLIENT_TYPES, BICONOMY, COINBASE_SMART_WALLET, Cluster, type CoinbaseAssetId, CoinbaseWalletClientType, type CompletedDepositAddressOrder, ConnectedStandardSolanaWallet, ConnectorType, type CountryCallingCode, type CountryCode, type CreateSiwsMessageOpts, 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, PrivyProviderRpcError, ProviderErrors, type Quantity, type ResolveRefundAddressError, type ResolveRefundAddressResult, SAFE, SUPPORTED_CONNECTOR_TYPES, 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, countryCodesAndNumbers, create, createErrorFormatter, createSiwsMessage, index_d_exports as crossApp, Privy as default, index_d_exports$1 as delegatedActions, index_d_exports$2 as depositAddress, deriveSolanaApplicationDomain, errorIndicatesMaxMfaRetries, errorIndicatesMfaCanceled, errorIndicatesMfaRateLimit, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, errorIndicatesRecoveryIsNeeded, formatLamportsAmount, formatPhoneNumber, formatTokenAmount, formatWalletAddress, formatWeiAmount, fundingMethodToMoonpayPaymentMethod, generateAuthorizationSignature, generateWalletIdempotencyKey, getAllUserEmbeddedBitcoinWallets, getAllUserEmbeddedEthereumWallets, getAllUserEmbeddedSolanaWallets, getCoinbaseOnRampUrl, getCountryCallingCode, getEntropyDetailsFromAccount, getEntropyDetailsFromUser, getIsTokenUsdc, getJsonRpcEndpointFromChain, getPhoneCountryCodeAndNumber, getPlaceholderPhoneNumber, getSolanaClusterDisplayName, getSolanaRpcEndpointForCluster, getSolanaUsdcMintAddressForCluster, getUserEmbeddedEthereumWallet, getUserEmbeddedSolanaWallet, getUserEmbeddedWallet, getUserSmartWallet, getWallet, isEmbeddedWalletAccount, isSupportedChainIdForCoinbaseOnramp, isSupportedChainIdForMoonpay, isUnifiedWallet, lastFourDigits, parseSolanaOffchainMessage, phoneNumberTypingFormatter, poll, rawSign, removeSessionSigners, rpc, throwIfInvalidRecoveryUpgradePath, toCoinbaseAssetId, toCoinbaseBlockchainFromChainId, toObjectKeys, toWalletApiUnsignedEthTransaction, updateWallet, validatePhoneNumber };
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -1686,6 +1686,101 @@ declare class SmartWalletApi {
|
|
|
1686
1686
|
}>;
|
|
1687
1687
|
}
|
|
1688
1688
|
//#endregion
|
|
1689
|
+
//#region src/client/auth/TelegramApi.d.ts
|
|
1690
|
+
declare class TelegramApi {
|
|
1691
|
+
/**
|
|
1692
|
+
* Authenticate a user with Privy using Telegram auth data.
|
|
1693
|
+
*
|
|
1694
|
+
* This is the low-level building block for seamless Telegram Mini App auth. Read the signed
|
|
1695
|
+
* launch parameters from Telegram (e.g. `window.Telegram.WebApp.initData`), parse them, and
|
|
1696
|
+
* pass the result here. Privy verifies the payload (Ed25519 or HMAC depending on your app's
|
|
1697
|
+
* configuration) and returns the authenticated user. The SDK stores the returned tokens and
|
|
1698
|
+
* manages session refresh for you.
|
|
1699
|
+
*
|
|
1700
|
+
* @param input The Telegram auth data (`telegramWebAppData` or `telegramAuthResult`) and,
|
|
1701
|
+
* optionally, the `mode` controlling whether new users may be created. `mode` defaults to
|
|
1702
|
+
* `'login-or-sign-up'`; pass `'no-signup'` to reject users that do not already exist.
|
|
1703
|
+
* @param opts Login options, e.g. embedded wallet creation config.
|
|
1704
|
+
*/
|
|
1705
|
+
authenticate({ telegramWebAppData, telegramAuthResult, captchaToken, mode }: TelegramAuthInput & {
|
|
1706
|
+
mode?: 'login-or-sign-up' | 'no-signup';
|
|
1707
|
+
}, opts?: LoginOptions): Promise<Omit<import("@privy-io/api-types").AuthenticatedUser, "session_update_action">>;
|
|
1708
|
+
/**
|
|
1709
|
+
* Link a Telegram account to the currently authenticated user.
|
|
1710
|
+
*
|
|
1711
|
+
* @param input The Telegram auth data (`telegramWebAppData` or `telegramAuthResult`).
|
|
1712
|
+
*/
|
|
1713
|
+
link({ telegramWebAppData, telegramAuthResult, captchaToken }: TelegramAuthInput): Promise<{
|
|
1714
|
+
user: import("@privy-io/api-types").User;
|
|
1715
|
+
identity_token: string | undefined;
|
|
1716
|
+
}>;
|
|
1717
|
+
/**
|
|
1718
|
+
* Unlink a Telegram account from the currently authenticated user.
|
|
1719
|
+
*
|
|
1720
|
+
* @param telegramUserId The Telegram user ID to unlink.
|
|
1721
|
+
*/
|
|
1722
|
+
unlink({ telegramUserId }: {
|
|
1723
|
+
telegramUserId: string;
|
|
1724
|
+
}): Promise<{
|
|
1725
|
+
user: import("@privy-io/api-types").User;
|
|
1726
|
+
identity_token: string | undefined;
|
|
1727
|
+
}>;
|
|
1728
|
+
}
|
|
1729
|
+
/**
|
|
1730
|
+
* The auth result returned by Telegram's Login Widget / LoginUrl button flow.
|
|
1731
|
+
*
|
|
1732
|
+
* @see https://core.telegram.org/widgets/login#receiving-authorization-data
|
|
1733
|
+
*/
|
|
1734
|
+
type TelegramAuthResult = {
|
|
1735
|
+
id: number;
|
|
1736
|
+
first_name: string;
|
|
1737
|
+
auth_date: number;
|
|
1738
|
+
hash: string;
|
|
1739
|
+
last_name?: string;
|
|
1740
|
+
photo_url?: string;
|
|
1741
|
+
username?: string;
|
|
1742
|
+
};
|
|
1743
|
+
/**
|
|
1744
|
+
* The signed launch parameters from a Telegram Mini App
|
|
1745
|
+
* (`window.Telegram.WebApp.initData`), parsed into an object with each field decoded exactly once.
|
|
1746
|
+
*
|
|
1747
|
+
* @see https://core.telegram.org/bots/webapps#webappinitdata
|
|
1748
|
+
*/
|
|
1749
|
+
type TelegramWebAppData = {
|
|
1750
|
+
query_id?: string;
|
|
1751
|
+
auth_date: number;
|
|
1752
|
+
hash: string;
|
|
1753
|
+
user: string;
|
|
1754
|
+
chat_instance?: string;
|
|
1755
|
+
chat_type?: string;
|
|
1756
|
+
start_param?: string;
|
|
1757
|
+
signature?: string;
|
|
1758
|
+
};
|
|
1759
|
+
/**
|
|
1760
|
+
* The Telegram auth data used to authenticate or link a Telegram account.
|
|
1761
|
+
*
|
|
1762
|
+
* Exactly one of `telegramWebAppData` or `telegramAuthResult` should be provided:
|
|
1763
|
+
* - `telegramWebAppData` — for Telegram Mini Apps. Parse `window.Telegram.WebApp.initData`
|
|
1764
|
+
* into an object (decoding each field exactly once) and pass it here.
|
|
1765
|
+
* - `telegramAuthResult` — for the Telegram Login Widget / LoginUrl button flow, where auth
|
|
1766
|
+
* data arrives in the redirect URL's query parameters.
|
|
1767
|
+
*/
|
|
1768
|
+
type TelegramAuthInput = {
|
|
1769
|
+
/**
|
|
1770
|
+
* The parsed `initData` object from a Telegram Mini App
|
|
1771
|
+
* (`window.Telegram.WebApp.initData`, split into key-value pairs with each value decoded once).
|
|
1772
|
+
*/
|
|
1773
|
+
telegramWebAppData?: TelegramWebAppData;
|
|
1774
|
+
/**
|
|
1775
|
+
* The auth result from the Telegram Login Widget / LoginUrl button flow.
|
|
1776
|
+
*/
|
|
1777
|
+
telegramAuthResult?: TelegramAuthResult;
|
|
1778
|
+
/**
|
|
1779
|
+
* An optional captcha token, if captcha is enabled for the app.
|
|
1780
|
+
*/
|
|
1781
|
+
captchaToken?: string;
|
|
1782
|
+
};
|
|
1783
|
+
//#endregion
|
|
1689
1784
|
//#region src/client/auth/AuthApi.d.ts
|
|
1690
1785
|
declare class AuthApi {
|
|
1691
1786
|
/**
|
|
@@ -1733,6 +1828,10 @@ declare class AuthApi {
|
|
|
1733
1828
|
* APIs for guest login
|
|
1734
1829
|
*/
|
|
1735
1830
|
readonly guest: GuestApi;
|
|
1831
|
+
/**
|
|
1832
|
+
* APIs for login with Telegram
|
|
1833
|
+
*/
|
|
1834
|
+
readonly telegram: TelegramApi;
|
|
1736
1835
|
/**
|
|
1737
1836
|
* Logs the current user out.
|
|
1738
1837
|
*/
|
|
@@ -3136,4 +3235,4 @@ declare const THIRDWEB: "thirdweb";
|
|
|
3136
3235
|
/** @deprecated {@link SmartWalletType} is a well-typed union, use the `'nexus'` literal instead */
|
|
3137
3236
|
declare const NEXUS: "nexus";
|
|
3138
3237
|
//#endregion
|
|
3139
|
-
export { ALL_WALLET_CLIENT_TYPES, BICONOMY, COINBASE_SMART_WALLET, Cluster, type CoinbaseAssetId, CoinbaseWalletClientType, type CompletedDepositAddressOrder, ConnectedStandardSolanaWallet, ConnectorType, type CountryCallingCode, type CountryCode, type CreateSiwsMessageOpts, 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, PrivyProviderRpcError, ProviderErrors, type Quantity, type ResolveRefundAddressError, type ResolveRefundAddressResult, SAFE, SUPPORTED_CONNECTOR_TYPES, type SetRecoveryInput, SmartWalletType, SolanaClient, SolanaCluster, SolanaSignAndSendTransactionInput, SolanaSignAndSendTransactionMode, SolanaSignAndSendTransactionOptions, SolanaSignAndSendTransactionOutput, SolanaSignMessageInput, SolanaSignMessageOutput, SolanaSignTransactionInput, SolanaSignTransactionOptions, SolanaSignTransactionOutput, SolanaStandardWallet, SolanaTransactionCommitment, SolanaUsdcAddressMap, type Storage, THIRDWEB, UnknownWalletClientType, type UnsignedTransactionRequest, type UnsignedTransactionRequestWithChainId, UsdcAddressMap, type WaitForCompletionInput, type WaitForDepositInput, WalletBranding, WalletClientType, WalletConnectWalletClientType, addSessionSigners, buildSolanaOffchainMessage, chainToMoonpayCurrency, countryCodesAndNumbers, create, createErrorFormatter, createSiwsMessage, index_d_exports as crossApp, Privy as default, index_d_exports$1 as delegatedActions, index_d_exports$2 as depositAddress, deriveSolanaApplicationDomain, errorIndicatesMaxMfaRetries, errorIndicatesMfaCanceled, errorIndicatesMfaRateLimit, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, errorIndicatesRecoveryIsNeeded, formatLamportsAmount, formatPhoneNumber, formatTokenAmount, formatWalletAddress, formatWeiAmount, fundingMethodToMoonpayPaymentMethod, generateAuthorizationSignature, generateWalletIdempotencyKey, getAllUserEmbeddedBitcoinWallets, getAllUserEmbeddedEthereumWallets, getAllUserEmbeddedSolanaWallets, getCoinbaseOnRampUrl, getCountryCallingCode, getEntropyDetailsFromAccount, getEntropyDetailsFromUser, getIsTokenUsdc, getJsonRpcEndpointFromChain, getPhoneCountryCodeAndNumber, getPlaceholderPhoneNumber, getSolanaClusterDisplayName, getSolanaRpcEndpointForCluster, getSolanaUsdcMintAddressForCluster, getUserEmbeddedEthereumWallet, getUserEmbeddedSolanaWallet, getUserEmbeddedWallet, getUserSmartWallet, getWallet, isEmbeddedWalletAccount, isSupportedChainIdForCoinbaseOnramp, isSupportedChainIdForMoonpay, isUnifiedWallet, lastFourDigits, parseSolanaOffchainMessage, phoneNumberTypingFormatter, poll, rawSign, removeSessionSigners, rpc, throwIfInvalidRecoveryUpgradePath, toCoinbaseAssetId, toCoinbaseBlockchainFromChainId, toObjectKeys, toWalletApiUnsignedEthTransaction, updateWallet, validatePhoneNumber };
|
|
3238
|
+
export { ALL_WALLET_CLIENT_TYPES, BICONOMY, COINBASE_SMART_WALLET, Cluster, type CoinbaseAssetId, CoinbaseWalletClientType, type CompletedDepositAddressOrder, ConnectedStandardSolanaWallet, ConnectorType, type CountryCallingCode, type CountryCode, type CreateSiwsMessageOpts, 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, PrivyProviderRpcError, ProviderErrors, type Quantity, type ResolveRefundAddressError, type ResolveRefundAddressResult, SAFE, SUPPORTED_CONNECTOR_TYPES, 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, countryCodesAndNumbers, create, createErrorFormatter, createSiwsMessage, index_d_exports as crossApp, Privy as default, index_d_exports$1 as delegatedActions, index_d_exports$2 as depositAddress, deriveSolanaApplicationDomain, errorIndicatesMaxMfaRetries, errorIndicatesMfaCanceled, errorIndicatesMfaRateLimit, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, errorIndicatesRecoveryIsNeeded, formatLamportsAmount, formatPhoneNumber, formatTokenAmount, formatWalletAddress, formatWeiAmount, fundingMethodToMoonpayPaymentMethod, generateAuthorizationSignature, generateWalletIdempotencyKey, getAllUserEmbeddedBitcoinWallets, getAllUserEmbeddedEthereumWallets, getAllUserEmbeddedSolanaWallets, getCoinbaseOnRampUrl, getCountryCallingCode, getEntropyDetailsFromAccount, getEntropyDetailsFromUser, getIsTokenUsdc, getJsonRpcEndpointFromChain, getPhoneCountryCodeAndNumber, getPlaceholderPhoneNumber, getSolanaClusterDisplayName, getSolanaRpcEndpointForCluster, getSolanaUsdcMintAddressForCluster, getUserEmbeddedEthereumWallet, getUserEmbeddedSolanaWallet, getUserEmbeddedWallet, getUserSmartWallet, getWallet, isEmbeddedWalletAccount, isSupportedChainIdForCoinbaseOnramp, isSupportedChainIdForMoonpay, isUnifiedWallet, lastFourDigits, parseSolanaOffchainMessage, phoneNumberTypingFormatter, poll, rawSign, removeSessionSigners, rpc, throwIfInvalidRecoveryUpgradePath, toCoinbaseAssetId, toCoinbaseBlockchainFromChainId, toObjectKeys, toWalletApiUnsignedEthTransaction, updateWallet, validatePhoneNumber };
|