@privy-io/js-sdk-core
Advanced tools
Comparing version 0.30.4-beta-20241101180137 to 0.30.4-beta-20241105191048
@@ -1,2 +0,2 @@ | ||
import type { PrivyResponseCallbacksType, IframeReadyResponseCallbacksType, WalletCreateResponseCallbacksType, WalletConnectResponseCallbacksType, WalletRecoverResponseCallbacksType, WalletRpcResponseCallbacksType, WalletSetRecoveryResponseCallbacksType, SolanaWalletCreateResponseCallbacksType, SolanaWalletConnectResponseCallbacksType, SolanaWalletRecoverResponseCallbacksType, SolanaWalletRpcResponseCallbacksType, SolanaWalletCreateAdditionalResponseCallbacksType, MfaVerifyResponseCallbacksType, MfaInitEnrollmentResponseCallbacksType, MfaSubmitEnrollmentResponseCallbacksType, MfaClearResponseCallbacksType, WalletsAddResponseCallbacksType, WalletsCreateResponseCallbacksType, WalletsRecoverResponseCallbacksType, WalletsConnectResponseCallbacksType, WalletsRpcResponseCallbacksType } from './types'; | ||
import type { PrivyResponseCallbacksType, IframeReadyResponseCallbacksType, WalletCreateResponseCallbacksType, WalletConnectResponseCallbacksType, WalletRecoverResponseCallbacksType, WalletRpcResponseCallbacksType, SolanaWalletCreateResponseCallbacksType, SolanaWalletConnectResponseCallbacksType, SolanaWalletRecoverResponseCallbacksType, SolanaWalletRpcResponseCallbacksType, SolanaWalletCreateAdditionalResponseCallbacksType, MfaVerifyResponseCallbacksType, MfaInitEnrollmentResponseCallbacksType, MfaSubmitEnrollmentResponseCallbacksType, MfaClearResponseCallbacksType, WalletsAddResponseCallbacksType, WalletsCreateResponseCallbacksType, WalletsRecoverResponseCallbacksType, WalletsConnectResponseCallbacksType, WalletsRpcResponseCallbacksType } from './types'; | ||
/** | ||
@@ -26,3 +26,2 @@ * This class helps keep track of callbacks that are created when sending | ||
dequeue(event: 'privy:wallet:recover', eventId: string): WalletRecoverResponseCallbacksType; | ||
dequeue(event: 'privy:wallet:set-recovery', eventId: string): WalletSetRecoveryResponseCallbacksType; | ||
dequeue(event: 'privy:wallet:rpc', eventId: string): WalletRpcResponseCallbacksType; | ||
@@ -29,0 +28,0 @@ dequeue(event: 'privy:solana-wallet:create', eventId: string): SolanaWalletCreateResponseCallbacksType; |
@@ -146,7 +146,6 @@ /** | ||
} | ||
export type PrivyEventType = 'privy:iframe:ready' | 'privy:wallets:create' | 'privy:wallets:add' | 'privy:wallets:set-recovery' | 'privy:wallets:connect' | 'privy:wallets:recover' | 'privy:wallets:rpc' | 'privy:wallet:create' | 'privy:wallet:connect' | 'privy:wallet:recover' | 'privy:wallet:rpc' | 'privy:wallet:set-recovery' | 'privy:solana-wallet:create' | 'privy:solana-wallet:create-additional' | 'privy:solana-wallet:connect' | 'privy:solana-wallet:recover' | 'privy:solana-wallet:rpc' | 'privy:mfa:verify' | 'privy:mfa:init-enrollment' | 'privy:mfa:submit-enrollment' | 'privy:mfa:unenroll' | 'privy:mfa:clear'; | ||
export type PrivyEventType = 'privy:iframe:ready' | 'privy:wallets:create' | 'privy:wallets:add' | 'privy:wallets:set-recovery' | 'privy:wallets:connect' | 'privy:wallets:recover' | 'privy:wallets:rpc' | 'privy:wallet:create' | 'privy:wallet:connect' | 'privy:wallet:recover' | 'privy:wallet:rpc' | 'privy:solana-wallet:create' | 'privy:solana-wallet:create-additional' | 'privy:solana-wallet:connect' | 'privy:solana-wallet:recover' | 'privy:solana-wallet:rpc' | 'privy:mfa:verify' | 'privy:mfa:init-enrollment' | 'privy:mfa:submit-enrollment' | 'privy:mfa:unenroll' | 'privy:mfa:clear'; | ||
export type IEmbeddedWalletRecoveryOptions = 'privy' | 'user-passcode' | 'google-drive' | 'icloud' | 'icloud-native'; | ||
export type IUserRecoveryMethod = 'user-passcode' | 'google-drive' | 'icloud' | 'icloud-native'; | ||
export type EmbeddedWalletRecoveryOptions = 'privy' | 'user-passcode' | 'google-drive' | 'icloud'; | ||
export type EntropyIdType = 'ethereum' | 'solana'; | ||
export type PasswordRecoveryInput = { | ||
@@ -180,5 +179,4 @@ recoveryMethod: 'user-passcode'; | ||
}; | ||
type BaseWalletsRequestData = BaseProxyRequest & { | ||
chainType: 'ethereum' | 'solana' | 'bitcoin-taproot' | 'bitcoin-segwit'; | ||
}; | ||
export type ChainType = 'ethereum' | 'solana' | 'bitcoin-taproot' | 'bitcoin-segwit'; | ||
type BaseWalletsRequestData = BaseProxyRequest; | ||
export type IframeReadyRequestDataType = Record<string, never>; | ||
@@ -205,4 +203,11 @@ export type IframeReadyResponseDataType = Record<string, never>; | ||
type WalletsCreateResponseEventType = PrivyResponseBaseEventType<'privy:wallets:create', WalletsCreateResponseDataType>; | ||
export type EntropyIdVerifier = 'ethereum-address-verifier' | 'solana-address-verifier'; | ||
export type WalletsAddRequestDataType = BaseWalletsRequestData & { | ||
/** | ||
* The HD node index at which to create a wallet. Must be >= 1 for ethereum | ||
* and solana, must be >= 0 otherwise. | ||
*/ | ||
hdWalletIndex: number; | ||
chainType: ChainType; | ||
/** | ||
* Key with which to look up the existing entropy | ||
@@ -212,10 +217,13 @@ */ | ||
/** | ||
* Source of the key with which to look up the existing entropy | ||
* Source of the `entropyId` property. This field determines how the entropyId will | ||
* be used. Possible values include: | ||
* - ethereum-address-verifier: the entropyId is the address of the Ethereum wallet derived | ||
* at index 0 for this entropy | ||
* - solana-address-verifier: the entropyId is a the address of the Solana wallet derived | ||
* at index 0 for this entropy | ||
* | ||
* When this field is a wallet address, we can verify reconstitution was successful by | ||
* deriving the specified wallet and comparing the address to the `entropyId` | ||
*/ | ||
entropyIdType: EntropyIdType; | ||
/** | ||
* The HD node index at which to create a wallet. Must be >= 1 AND equal to the next | ||
* index in the sequence, since the primary wallet is created at index 0. | ||
*/ | ||
hdWalletIndex: number; | ||
entropyIdVerifier: EntropyIdVerifier; | ||
}; | ||
@@ -233,5 +241,13 @@ export type WalletsAddResponseDataType = { | ||
/** | ||
* Source of the key with which to look up the existing entropy | ||
* Source of the `entropyId` property. This field determines how the entropyId will | ||
* be used. Possible values include: | ||
* - ethereum-address-verifier: the entropyId is the address of the Ethereum wallet derived | ||
* at index 0 for this entropy | ||
* - solana-address-verifier: the entropyId is a the address of the Solana wallet derived | ||
* at index 0 for this entropy | ||
* | ||
* When this field is a wallet address, we can verify reconstitution was successful by | ||
* deriving the specified wallet and comparing the address to the `entropyId` | ||
*/ | ||
entropyIdType: EntropyIdType; | ||
entropyIdVerifier: EntropyIdVerifier; | ||
existingRecoveryMethod?: EmbeddedWalletRecoveryOptions; | ||
@@ -256,9 +272,12 @@ }; | ||
}; | ||
export type WalletsSetRecoveryRequestDataType = WalletsSetRecoveryPasswordDataType | WalletsSetRecoveryGoogleDriveDataType | WalletsSetRecoveryICloudDataType | WalletsSetRecoveryICloudNativeDataType; | ||
export type WalletsSetRecoveryRequestDataType = Omit<WalletsSetRecoveryPasswordDataType, 'chainType'> | Omit<WalletsSetRecoveryGoogleDriveDataType, 'chainType'> | Omit<WalletsSetRecoveryICloudDataType, 'chainType'> | Omit<WalletsSetRecoveryICloudNativeDataType, 'chainType'>; | ||
export type RecoveryOnlyWalletsSetRecoveryRequestDataType = Omit<WalletsSetRecoveryPasswordDataType, keyof WalletsSetRecoveryBaseRequestDataType> | Omit<WalletsSetRecoveryGoogleDriveDataType, keyof WalletsSetRecoveryBaseRequestDataType> | Omit<WalletsSetRecoveryICloudDataType, keyof WalletsSetRecoveryBaseRequestDataType> | Omit<WalletsSetRecoveryICloudNativeDataType, keyof WalletsSetRecoveryBaseRequestDataType>; | ||
export type WalletsSetRecoveryResponseDataType = { | ||
address: string; | ||
entropyId: string; | ||
entropyIdVerifier: EntropyIdVerifier; | ||
recoveryMethod: WalletsSetRecoveryRequestDataType['recoveryMethod']; | ||
}; | ||
export type WalletsSetRecoveryResponseCallbacksType = PrivyEventResponseCallbacksType<WalletsSetRecoveryResponseDataType>; | ||
type WalletsSetRecoveryResponseEventType = PrivyResponseBaseEventType<'privy:wallets:set-recovery', WalletsSetRecoveryResponseDataType>; | ||
export type WalletsConnectRequestDataType = BaseWalletsRequestData & { | ||
export type WalletsConnectRequestDataType = BaseProxyRequest & { | ||
/** | ||
@@ -269,5 +288,13 @@ * Key with which to look up the existing entropy | ||
/** | ||
* Source of the key with which to look up the existing entropy | ||
* Source of the `entropyId` property. This field determines how the entropyId will | ||
* be used. Possible values include: | ||
* - ethereum-address-verifier: the entropyId is the address of the Ethereum wallet derived | ||
* at index 0 for this entropy | ||
* - solana-address-verifier: the entropyId is a the address of the Solana wallet derived | ||
* at index 0 for this entropy | ||
* | ||
* When this field is a wallet address, we can verify reconstitution was successful by | ||
* deriving the specified wallet and comparing the address to the `entropyId` | ||
*/ | ||
entropyIdType: EntropyIdType; | ||
entropyIdVerifier: EntropyIdVerifier; | ||
}; | ||
@@ -279,3 +306,3 @@ export type WalletsConnectResponseDataType = { | ||
type WalletsConnectResponseEventType = PrivyResponseBaseEventType<'privy:wallets:connect', WalletsConnectResponseDataType>; | ||
export type WalletsRecoverRequestDataType = BaseWalletsRequestData & { | ||
export type WalletsRecoverRequestDataType = BaseProxyRequest & { | ||
/** | ||
@@ -286,5 +313,13 @@ * Key with which to look up the existing entropy | ||
/** | ||
* Source of the key with which to look up the existing entropy | ||
* Source of the `entropyId` property. This field determines how the entropyId will | ||
* be used. Possible values include: | ||
* - ethereum-address-verifier: the entropyId is the address of the Ethereum wallet derived | ||
* at index 0 for this entropy | ||
* - solana-address-verifier: the entropyId is a the address of the Solana wallet derived | ||
* at index 0 for this entropy | ||
* | ||
* When this field is a wallet address, we can verify reconstitution was successful by | ||
* deriving the specified wallet and comparing the address to the `entropyId` | ||
*/ | ||
entropyIdType: EntropyIdType; | ||
entropyIdVerifier: EntropyIdVerifier; | ||
/** Optional: the user-specified recovery password, replaces recoveryPin */ | ||
@@ -298,3 +333,3 @@ recoveryPassword?: string; | ||
export type WalletsRecoverResponseDataType = { | ||
address: string; | ||
entropyId: string; | ||
}; | ||
@@ -321,5 +356,20 @@ export type WalletsRecoverResponseCallbacksType = PrivyEventResponseCallbacksType<WalletsRecoverResponseDataType>; | ||
/** | ||
* Source of the key with which to look up the existing entropy | ||
* Source of the `entropyId` property. This field determines how the entropyId will | ||
* be used. Possible values include: | ||
* - ethereum-address-verifier: the entropyId is the address of the Ethereum wallet derived | ||
* at index 0 for this entropy | ||
* - solana-address-verifier: the entropyId is a the address of the Solana wallet derived | ||
* at index 0 for this entropy | ||
* | ||
* When this field is a wallet address, we can verify reconstitution was successful by | ||
* deriving the specified wallet and comparing the address to the `entropyId` | ||
*/ | ||
entropyIdType: EntropyIdType; | ||
entropyIdVerifier: EntropyIdVerifier; | ||
/** | ||
* The HD node index at which to create a wallet. | ||
* | ||
* Must be >= 1 AND equal to the next index in the sequence.j | ||
*/ | ||
hdWalletIndex: number; | ||
chainType: ChainType; | ||
} & (WalletsRpcEthereumRequestDataType | WalletsRpcSolanaRequestDataType | WalletsRpcBitcoinRequestDataType); | ||
@@ -392,15 +442,2 @@ type WalletsRpcEthereumResponseDataType = { | ||
type WalletRpcResponseEventType = PrivyResponseBaseEventType<'privy:wallet:rpc', WalletRpcResponseDataType>; | ||
export type WalletSetRecoveryRequestDataType = BaseProxyRequest & { | ||
address: string; | ||
recoveryMethod: IUserRecoveryMethod; | ||
recoveryPassword?: string; | ||
recoveryAccessToken?: string; | ||
recoverySecretOverride?: string; | ||
iCloudRecordNameOverride?: string; | ||
}; | ||
export type WalletSetRecoveryResponseDataType = { | ||
address: string; | ||
}; | ||
export type WalletSetRecoveryResponseCallbacksType = PrivyEventResponseCallbacksType<WalletSetRecoveryResponseDataType>; | ||
type WalletSetRecoveryResponseEventType = PrivyResponseBaseEventType<'privy:wallet:set-recovery', WalletSetRecoveryResponseDataType>; | ||
export type SolanaWalletCreateRequestDataType = BaseProxyRequest & { | ||
@@ -524,7 +561,7 @@ /** | ||
type MfaClearResponseEventType = PrivyResponseBaseEventType<'privy:mfa:clear', MfaClearResponseDataType>; | ||
export type PrivyRequestDataType = IframeReadyRequestDataType | WalletsCreateRequestDataType | WalletsAddRequestDataType | WalletsSetRecoveryRequestDataType | WalletsConnectRequestDataType | WalletsRecoverRequestDataType | WalletsRpcRequestDataType | EthereumWalletCreateRequestDataType | WalletConnectRequestDataType | WalletRecoverRequestDataType | WalletRpcRequestDataType | WalletSetRecoveryRequestDataType | SolanaWalletCreateRequestDataType | SolanaWalletCreateAdditionalRequestDataType | SolanaWalletRecoverRequestDataType | SolanaWalletConnectRequestDataType | SolanaWalletRpcRequestDataType | MfaVerifyRequestDataType | MfaInitEnrollmentRequestDataType | MfaSubmitEnrollmentRequestDataType | MfaUnenrollRequestDataType | MfaClearRequestDataType; | ||
export type PrivyRequestDataType = IframeReadyRequestDataType | WalletsCreateRequestDataType | WalletsAddRequestDataType | WalletsSetRecoveryRequestDataType | WalletsConnectRequestDataType | WalletsRecoverRequestDataType | WalletsRpcRequestDataType | EthereumWalletCreateRequestDataType | WalletConnectRequestDataType | WalletRecoverRequestDataType | WalletRpcRequestDataType | SolanaWalletCreateRequestDataType | SolanaWalletCreateAdditionalRequestDataType | SolanaWalletRecoverRequestDataType | SolanaWalletConnectRequestDataType | SolanaWalletRpcRequestDataType | MfaVerifyRequestDataType | MfaInitEnrollmentRequestDataType | MfaSubmitEnrollmentRequestDataType | MfaUnenrollRequestDataType | MfaClearRequestDataType; | ||
export type PrivyErrorResponseDataType = { | ||
error: Error; | ||
}; | ||
export type PrivyResponseDataType = IframeReadyResponseDataType | WalletsCreateResponseDataType | WalletsAddResponseDataType | WalletsSetRecoveryResponseDataType | WalletsConnectResponseDataType | WalletsRecoverResponseDataType | WalletsRpcResponseDataType | WalletCreateResponseDataType | WalletConnectResponseDataType | WalletRecoverResponseDataType | WalletSetRecoveryResponseDataType | WalletRpcResponseDataType | SolanaWalletCreateResponseDataType | SolanaWalletConnectResponseDataType | SolanaWalletRecoverResponseDataType | SolanaWalletRpcResponseDataType | MfaVerifyResponseDataType | MfaInitEnrollmentResponseDataType | MfaSubmitEnrollmentResponseDataType | MfaUnenrollResponseDataType | MfaClearResponseDataType; | ||
export type PrivyResponseDataType = IframeReadyResponseDataType | WalletsCreateResponseDataType | WalletsAddResponseDataType | WalletsSetRecoveryResponseDataType | WalletsConnectResponseDataType | WalletsRecoverResponseDataType | WalletsRpcResponseDataType | WalletCreateResponseDataType | WalletConnectResponseDataType | WalletRecoverResponseDataType | WalletRpcResponseDataType | SolanaWalletCreateResponseDataType | SolanaWalletConnectResponseDataType | SolanaWalletRecoverResponseDataType | SolanaWalletRpcResponseDataType | MfaVerifyResponseDataType | MfaInitEnrollmentResponseDataType | MfaSubmitEnrollmentResponseDataType | MfaUnenrollResponseDataType | MfaClearResponseDataType; | ||
export declare const PrivyIframeErrorTypes: readonly ["error", "invalid_request_arguments", "wallet_not_on_device", "invalid_recovery_pin", "insufficient_funds", "mfa_timeout", "missing_or_invalid_mfa", "mfa_verification_max_attempts_reached"]; | ||
@@ -538,4 +575,4 @@ export type PrivyIframeErrorTypesType = (typeof PrivyIframeErrorTypes)[number]; | ||
}; | ||
export type PrivyResponseEvent = IframeReadyResponseEventType | PrivyErrorResponseEventType | WalletsCreateResponseEventType | WalletsAddResponseEventType | WalletsSetRecoveryResponseEventType | WalletsConnectResponseEventType | WalletsRecoverResponseEventType | WalletsRpcResponseEventType | WalletCreateResponseEventType | WalletConnectResponseEventType | WalletRecoverResponseEventType | WalletSetRecoveryResponseEventType | WalletRpcResponseEventType | SolanaWalletCreateResponseEventType | SolanaWalletCreateAdditionalResponseEventType | SolanaWalletConnectResponseEventType | SolanaWalletRecoverResponseEventType | SolanaWalletRpcResponseEventType | MfaVerifyResponseEventType | MfaInitEnrollmentResponseEventType | MfaSubmitEnrollmentResponseEventType | MfaUnenrollResponseEventType | MfaClearResponseEventType; | ||
export type PrivyResponseCallbacksType = IframeReadyResponseCallbacksType | WalletsCreateResponseCallbacksType | WalletsAddResponseCallbacksType | WalletsSetRecoveryResponseCallbacksType | WalletsConnectResponseCallbacksType | WalletsRecoverResponseCallbacksType | WalletsRpcResponseCallbacksType | WalletCreateResponseCallbacksType | WalletConnectResponseCallbacksType | WalletRecoverResponseCallbacksType | WalletSetRecoveryResponseCallbacksType | WalletRpcResponseCallbacksType | SolanaWalletCreateResponseCallbacksType | SolanaWalletCreateAdditionalResponseCallbacksType | SolanaWalletConnectResponseCallbacksType | SolanaWalletRecoverResponseCallbacksType | SolanaWalletRpcResponseCallbacksType | MfaVerifyResponseCallbacksType | MfaInitEnrollmentResponseCallbacksType | MfaSubmitEnrollmentResponseCallbacksType | MfaUnenrollResponseCallbacksType | MfaClearResponseCallbacksType; | ||
export type PrivyResponseEvent = IframeReadyResponseEventType | PrivyErrorResponseEventType | WalletsCreateResponseEventType | WalletsAddResponseEventType | WalletsSetRecoveryResponseEventType | WalletsConnectResponseEventType | WalletsRecoverResponseEventType | WalletsRpcResponseEventType | WalletCreateResponseEventType | WalletConnectResponseEventType | WalletRecoverResponseEventType | WalletRpcResponseEventType | SolanaWalletCreateResponseEventType | SolanaWalletCreateAdditionalResponseEventType | SolanaWalletConnectResponseEventType | SolanaWalletRecoverResponseEventType | SolanaWalletRpcResponseEventType | MfaVerifyResponseEventType | MfaInitEnrollmentResponseEventType | MfaSubmitEnrollmentResponseEventType | MfaUnenrollResponseEventType | MfaClearResponseEventType; | ||
export type PrivyResponseCallbacksType = IframeReadyResponseCallbacksType | WalletsCreateResponseCallbacksType | WalletsAddResponseCallbacksType | WalletsSetRecoveryResponseCallbacksType | WalletsConnectResponseCallbacksType | WalletsRecoverResponseCallbacksType | WalletsRpcResponseCallbacksType | WalletCreateResponseCallbacksType | WalletConnectResponseCallbacksType | WalletRecoverResponseCallbacksType | WalletRpcResponseCallbacksType | SolanaWalletCreateResponseCallbacksType | SolanaWalletCreateAdditionalResponseCallbacksType | SolanaWalletConnectResponseCallbacksType | SolanaWalletRecoverResponseCallbacksType | SolanaWalletRpcResponseCallbacksType | MfaVerifyResponseCallbacksType | MfaInitEnrollmentResponseCallbacksType | MfaSubmitEnrollmentResponseCallbacksType | MfaUnenrollResponseCallbacksType | MfaClearResponseCallbacksType; | ||
export type EmbeddedWalletMessagePoster = { | ||
@@ -542,0 +579,0 @@ postMessage: (message: any, targetOrigin: string, transfer?: Transferable) => void; |
@@ -1,4 +0,4 @@ | ||
import type { PrivyEthereumEmbeddedWalletAccount, PrivySolanaEmbeddedWalletAccount, PrivyUser } from '@privy-io/public-api/schemas'; | ||
import type { PrivyBitcoinSegwitEmbeddedWalletAccount, PrivyBitcoinTaprootEmbeddedWalletAccount, PrivyEthereumEmbeddedWalletAccount, PrivySolanaEmbeddedWalletAccount, PrivyUser } from '@privy-io/public-api/schemas'; | ||
import { EmbeddedSolanaWalletProvider, EmbeddedWalletProvider } from './embedded'; | ||
import type { IEmbeddedWalletRecoveryOptions, PrivyResponseEvent, SetRecoveryInput } from './embedded/types'; | ||
import type { EntropyIdVerifier, IEmbeddedWalletRecoveryOptions, PrivyResponseEvent, SetRecoveryInput } from './embedded/types'; | ||
/** Options for creating the Solana embedded wallet */ | ||
@@ -13,2 +13,10 @@ type CreateSolanaOpts = { | ||
}; | ||
export type LoadWalletParams = { | ||
wallet: PrivyEthereumEmbeddedWalletAccount | PrivySolanaEmbeddedWalletAccount | PrivyBitcoinSegwitEmbeddedWalletAccount | PrivyBitcoinTaprootEmbeddedWalletAccount; | ||
entropyId: string; | ||
entropyIdVerifier: EntropyIdVerifier; | ||
recoveryPassword?: string; | ||
recoveryAccessToken?: string; | ||
recoverySecretOverride?: string; | ||
}; | ||
export default class EmbeddedWalletApi { | ||
@@ -68,3 +76,3 @@ /** | ||
*/ | ||
getProvider(wallet: PrivyEthereumEmbeddedWalletAccount, password?: string, recoveryToken?: string, recoverySecretOverride?: string): Promise<EmbeddedWalletProvider>; | ||
getProvider(wallet: PrivyEthereumEmbeddedWalletAccount, recoveryPassword?: string, recoveryAccessToken?: string, recoverySecretOverride?: string): Promise<EmbeddedWalletProvider>; | ||
/** | ||
@@ -76,3 +84,3 @@ * Retrieve this users embedded Solana wallet. | ||
*/ | ||
getSolanaProvider(account: PrivySolanaEmbeddedWalletAccount, primaryPublicKey?: string): Promise<EmbeddedSolanaWalletProvider>; | ||
getSolanaProvider(account: PrivySolanaEmbeddedWalletAccount, primaryPublicKey?: string, recoveryPassword?: string, recoveryAccessToken?: string, recoverySecretOverride?: string): Promise<EmbeddedSolanaWalletProvider>; | ||
/** | ||
@@ -124,10 +132,3 @@ * @deprecated Use `setRecovery` instead. | ||
onMessage(event: PrivyResponseEvent): void; | ||
/** | ||
* Retrieve this users embedded Solana wallet. | ||
* If the wallet has never been used on this device recover. | ||
* | ||
* @returns EmbeddedSolanaWalletProvider | ||
*/ | ||
_loadSolana(wallet: PrivySolanaEmbeddedWalletAccount, primaryPublicKey: string): Promise<string>; | ||
} | ||
export {}; |
{ | ||
"name": "@privy-io/js-sdk-core", | ||
"version": "0.30.4-beta-20241101180137", | ||
"version": "0.30.4-beta-20241105191048", | ||
"description": "Vanilla JS client for the Privy Auth API", | ||
@@ -62,3 +62,3 @@ "keywords": [ | ||
"@privy-io/api-base": "^1.4.0", | ||
"@privy-io/public-api": "2.12.0-beta-20241101180137", | ||
"@privy-io/public-api": "2.12.0-beta-20241105191048", | ||
"eventemitter3": "^5.0.1", | ||
@@ -65,0 +65,0 @@ "fetch-retry": "^5.0.6", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
885607
6698
+ Added@privy-io/public-api@2.12.0-beta-20241105191048(transitive)
- Removed@privy-io/public-api@2.12.0-beta-20241101180137(transitive)