@privy-io/js-sdk-core
Advanced tools
Comparing version 0.30.4 to 0.31.0
@@ -12,3 +12,4 @@ /** | ||
import type { TypedMessage, MessageTypes } from '@metamask/eth-sig-util'; | ||
import type { PrivyEthereumEmbeddedWalletAccount } from '@privy-io/public-api'; | ||
import type { PrivyEthereumEmbeddedWalletAccount, PrivySolanaEmbeddedWalletAccount, PrivyUser } from '@privy-io/public-api'; | ||
import type { EmbeddedWalletProvider } from './EmbeddedWalletProvider'; | ||
import type { MfaSubmitArgs } from './withMfa'; | ||
@@ -165,4 +166,15 @@ export declare const SUPPORTED_JSON_RPC_METHODS: readonly ["eth_sign", "eth_populateTransactionRequest", "eth_signTransaction", "personal_sign", "eth_signTypedData_v4"]; | ||
export type SetRecoveryInput = { | ||
wallet: PrivyEthereumEmbeddedWalletAccount; | ||
} & (PasswordRecoveryInput | CloudRecoveryInput | ICloudNativeRecoveryInput | PrivyRecoveryInput); | ||
wallet: PrivyEthereumEmbeddedWalletAccount | PrivySolanaEmbeddedWalletAccount; | ||
} & (PasswordRecoveryInput | CloudRecoveryInput | ICloudNativeRecoveryInput); | ||
export interface SetRecoveryOutput { | ||
/** User object with the updated embedded wallet */ | ||
user: PrivyUser; | ||
/** | ||
* Provider for the embedded ethereum wallet. | ||
* | ||
* This value will be `null` if and only if the wallet passed in the input is not an Ethereum wallet. | ||
* @deprecated Get the provider instance from the `getProvider(...)` method instead. | ||
*/ | ||
provider: EmbeddedWalletProvider | null; | ||
} | ||
type BaseProxyRequest = { | ||
@@ -169,0 +181,0 @@ accessToken: string; |
import type { PrivyBitcoinSegwitEmbeddedWalletAccount, PrivyBitcoinTaprootEmbeddedWalletAccount, PrivyEthereumEmbeddedWalletAccount, PrivySolanaEmbeddedWalletAccount, PrivyUser } from '@privy-io/public-api/schemas'; | ||
import { EmbeddedSolanaWalletProvider, EmbeddedWalletProvider } from './embedded'; | ||
import type { EntropyIdVerifier, IEmbeddedWalletRecoveryOptions, PrivyResponseEvent, SetRecoveryInput } from './embedded/types'; | ||
import type { EntropyIdVerifier, IEmbeddedWalletRecoveryOptions, PrivyResponseEvent, SetRecoveryInput, SetRecoveryOutput } from './embedded/types'; | ||
/** Options for creating the Solana embedded wallet */ | ||
@@ -98,8 +98,6 @@ type CreateSolanaOpts = { | ||
* @param currentPassword Current recovery password used to recover the embedded wallet | ||
* @returns EmbeddedWalletProvider implementing EIP1193Provider | ||
* @returns PrivyUser the user object with the updated embedded wallet. | ||
* @returns EmbeddedWalletProvider implementing EIP1193Provider if the input wallet is an Ethereum wallet. | ||
*/ | ||
setRecovery({ wallet, ...recoveryArgs }: SetRecoveryInput): Promise<{ | ||
user: PrivyUser; | ||
provider: EmbeddedWalletProvider; | ||
}>; | ||
setRecovery(setRecoveryInput: SetRecoveryInput): Promise<SetRecoveryOutput>; | ||
/** | ||
@@ -106,0 +104,0 @@ * @returns URL to load in the embedded wallet iframe |
{ | ||
"name": "@privy-io/js-sdk-core", | ||
"version": "0.30.4", | ||
"version": "0.31.0", | ||
"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", | ||
"@privy-io/public-api": "2.12.1", | ||
"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
887227
6710
+ Added@privy-io/public-api@2.12.1(transitive)
- Removed@privy-io/public-api@2.12.0(transitive)
Updated@privy-io/public-api@2.12.1