@privy-io/react-auth 1.38.0-beta.5 → 1.38.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/index.d.ts CHANGED
@@ -17,7 +17,7 @@ import { FetchOptions } from 'ofetch';
17
17
  */
18
18
 
19
19
  declare const SUPPORTED_JSON_RPC_METHODS: readonly ["eth_sign", "eth_populateTransactionRequest", "eth_signTransaction", "personal_sign", "eth_signTypedData_v4"];
20
- type JsonRpcMethodType = (typeof SUPPORTED_JSON_RPC_METHODS)[number];
20
+ type JsonRpcMethodType = typeof SUPPORTED_JSON_RPC_METHODS[number];
21
21
  type Quantity = string | number | bigint;
22
22
  type UnsignedTransactionRequest = {
23
23
  from?: string;
@@ -175,26 +175,16 @@ declare const DEFAULT_SUPPORTED_CHAINS: readonly [Chain, Chain, Chain, Chain, Ch
175
175
 
176
176
  type WalletCreateRequestDataType = {
177
177
  accessToken: string;
178
- recoveryPassword?: string;
179
- /**
180
- * Will be deprecated in a future release, use `recoveryPassword` instead
181
- * @deprecated
182
- */
183
178
  recoveryPin?: string;
184
179
  };
185
- type WalletRecoverRequestDataType = {
186
- address: string;
180
+ type WalletConnectRequestDataType = {
187
181
  accessToken: string;
188
- recoveryPassword?: string;
189
- /**
190
- * Will be deprecated in a future release, use `recoveryPassword` instead
191
- * @deprecated
192
- */
193
- recoveryPin?: string;
182
+ address: string;
194
183
  };
195
- type WalletConnectRequestDataType = {
184
+ type WalletRecoverRequestDataType = {
196
185
  accessToken: string;
197
186
  address: string;
187
+ recoveryPin?: string;
198
188
  };
199
189
  type WalletRpcRequestDataType = {
200
190
  accessToken: string;
@@ -767,14 +757,14 @@ type MoonpaySignResponse = {
767
757
  };
768
758
 
769
759
  declare const SUPPORTED_OAUTH_PROVIDERS: readonly ["google", "discord", "twitter", "github", "apple"];
770
- type OAuthProviderType = (typeof SUPPORTED_OAUTH_PROVIDERS)[number];
760
+ type OAuthProviderType = typeof SUPPORTED_OAUTH_PROVIDERS[number];
771
761
  type EmbeddedWalletClientType = 'privy';
772
762
  type InjectedWalletClientType = 'metamask' | 'phantom';
773
763
  type CoinbaseWalletClientType = 'coinbase_wallet';
774
764
  type UnknownWalletClientType = 'unknown';
775
765
  type WalletClientType = InjectedWalletClientType | CoinbaseWalletClientType | WalletConnectWalletClientType | EmbeddedWalletClientType | UnknownWalletClientType;
776
766
  declare const SUPPORTED_CONNECTOR_TYPES: string[];
777
- type ConnectorType = (typeof SUPPORTED_CONNECTOR_TYPES)[number];
767
+ type ConnectorType = typeof SUPPORTED_CONNECTOR_TYPES[number];
778
768
  /**
779
769
  * Wallet metadata currently for internal use only
780
770
  */