@privy-io/react-auth 1.37.2-beta.3 → 1.38.0-beta.1

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,16 +175,26 @@ 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
+ */
178
183
  recoveryPin?: string;
179
184
  };
180
- type WalletConnectRequestDataType = {
181
- accessToken: string;
185
+ type WalletRecoverRequestDataType = {
182
186
  address: string;
187
+ accessToken: string;
188
+ recoveryPassword?: string;
189
+ /**
190
+ * Will be deprecated in a future release, use `recoveryPassword` instead
191
+ * @deprecated
192
+ */
193
+ recoveryPin?: string;
183
194
  };
184
- type WalletRecoverRequestDataType = {
195
+ type WalletConnectRequestDataType = {
185
196
  accessToken: string;
186
197
  address: string;
187
- recoveryPin?: string;
188
198
  };
189
199
  type WalletRpcRequestDataType = {
190
200
  accessToken: string;
@@ -784,7 +794,7 @@ type MoonpaySignResponse = {
784
794
  };
785
795
 
786
796
  declare const SUPPORTED_OAUTH_PROVIDERS: readonly ["google", "discord", "twitter", "github", "apple"];
787
- type OAuthProviderType = typeof SUPPORTED_OAUTH_PROVIDERS[number];
797
+ type OAuthProviderType = (typeof SUPPORTED_OAUTH_PROVIDERS)[number];
788
798
  /** @hidden */
789
799
  type EmbeddedWalletClientType = 'privy';
790
800
  /** @hidden */
@@ -817,7 +827,7 @@ type WalletConnectWalletClientType = 'metamask' | 'trust' | 'safe' | 'rainbow' |
817
827
  type UnknownWalletClientType = 'unknown';
818
828
  type WalletClientType = InjectedWalletClientType | CoinbaseWalletClientType | WalletConnectWalletClientType | EmbeddedWalletClientType | UnknownWalletClientType;
819
829
  declare const SUPPORTED_CONNECTOR_TYPES: string[];
820
- type ConnectorType = typeof SUPPORTED_CONNECTOR_TYPES[number];
830
+ type ConnectorType = (typeof SUPPORTED_CONNECTOR_TYPES)[number];
821
831
  /**
822
832
  * Wallet metadata currently for internal use only
823
833
  */