@privy-io/react-auth 1.28.0-beta.4 → 1.28.0-beta.6
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/esm/index.js +161 -160
- package/dist/index.d.ts +34 -21
- package/dist/index.js +161 -160
- package/package.json +5 -7
package/dist/index.d.ts
CHANGED
|
@@ -184,7 +184,7 @@ declare class ProviderRpcError extends PrivyError {
|
|
|
184
184
|
|
|
185
185
|
declare global {
|
|
186
186
|
interface Window {
|
|
187
|
-
ethereum?:
|
|
187
|
+
ethereum?: any;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
type ProviderConnectInfo = {
|
|
@@ -396,26 +396,36 @@ interface LinkMetadata {
|
|
|
396
396
|
interface Wallet {
|
|
397
397
|
/** The wallet address. */
|
|
398
398
|
address: string;
|
|
399
|
-
/**
|
|
399
|
+
/**
|
|
400
|
+
* @deprecated Use `chainId` instead.
|
|
401
|
+
*
|
|
402
|
+
* Chain type of the wallet address.
|
|
403
|
+
*/
|
|
400
404
|
chainType: 'ethereum' | 'solana';
|
|
401
405
|
/**
|
|
402
|
-
*
|
|
403
|
-
* DO NOT USE: This feature is under active development.
|
|
406
|
+
* CAIP-2 formatted chain ID during the most recent verification.
|
|
404
407
|
*
|
|
405
|
-
* e.g.
|
|
408
|
+
* e.g. eip155:1, eip155:5, eip155:137, etc.
|
|
409
|
+
*/
|
|
406
410
|
chainId?: string;
|
|
407
411
|
/**
|
|
408
|
-
*
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
+
* @deprecated Use `walletClientType` instead.
|
|
413
|
+
*/
|
|
414
|
+
walletClient: 'privy' | 'unknown';
|
|
415
|
+
/**
|
|
416
|
+
* The wallet client used for this wallet during the most recent verification.
|
|
412
417
|
*
|
|
413
418
|
* If the value is `privy`, then this is a privy embedded wallet.
|
|
414
419
|
*
|
|
415
|
-
*
|
|
416
|
-
* like metamask, coinbase, etc.
|
|
420
|
+
* Other values include but are not limited to `metamask`, `rainbow`, `coinbase_wallet`, etc.
|
|
417
421
|
*/
|
|
418
|
-
|
|
422
|
+
walletClientType?: string;
|
|
423
|
+
/**
|
|
424
|
+
* The connector type used for this wallet during the most recent verification.
|
|
425
|
+
*
|
|
426
|
+
* This includes but is not limited to `injected`, `wallet_connect`, `coinbase_wallet`, `embedded`.
|
|
427
|
+
*/
|
|
428
|
+
connectorType?: string;
|
|
419
429
|
/**
|
|
420
430
|
* If this is a 'privy' embedded wallet, stores the recovery method:
|
|
421
431
|
*
|
|
@@ -633,7 +643,6 @@ type PrivyServerConfig = {
|
|
|
633
643
|
createdAt?: Date;
|
|
634
644
|
updatedAt?: Date;
|
|
635
645
|
customApiUrl?: string | null;
|
|
636
|
-
walletConnectV2Enabled?: boolean | null;
|
|
637
646
|
walletConnectCloudProjectId?: string | null;
|
|
638
647
|
embeddedWalletConfig: EmbeddedWalletsConfig;
|
|
639
648
|
/** May be deprecated from the server config in a future release */
|
|
@@ -685,10 +694,7 @@ type PrivyClientConfig = {
|
|
|
685
694
|
* This overrides the server setting `privacy_policy_url` */
|
|
686
695
|
privacyPolicyUrl?: string | null;
|
|
687
696
|
};
|
|
688
|
-
|
|
689
|
-
enabled?: boolean;
|
|
690
|
-
walletConnectCloudProjectId?: string;
|
|
691
|
-
};
|
|
697
|
+
walletConnectCloudProjectId?: string;
|
|
692
698
|
/** All embedded wallets configuration */
|
|
693
699
|
embeddedWallets?: {
|
|
694
700
|
/**
|
|
@@ -856,10 +862,6 @@ declare class ConnectorManager extends EventEmitter<ConnectorManagerEvents> {
|
|
|
856
862
|
* Detect and add all valid wallet connectors.
|
|
857
863
|
*/
|
|
858
864
|
initialize(): void;
|
|
859
|
-
/**
|
|
860
|
-
* Restore previous Wallet Connect connections that have been stored in local storage.
|
|
861
|
-
*/
|
|
862
|
-
restoreWalletConnectConnectors(): void;
|
|
863
865
|
/**
|
|
864
866
|
* Helper function to find a wallet connector by connector type and wallet client type.
|
|
865
867
|
*/
|
|
@@ -1139,8 +1141,19 @@ interface ResponsePhoneAccount {
|
|
|
1139
1141
|
interface ResponseEthereumAccount {
|
|
1140
1142
|
type: 'wallet';
|
|
1141
1143
|
address: string;
|
|
1144
|
+
/**
|
|
1145
|
+
* @deprecated This will be removed in favor of the CAIP-2 formatted chain_id field.
|
|
1146
|
+
*
|
|
1147
|
+
* Chain type of the wallet address.
|
|
1148
|
+
*/
|
|
1142
1149
|
chain_type: 'ethereum';
|
|
1150
|
+
chain_id?: string;
|
|
1151
|
+
/**
|
|
1152
|
+
* @deprecated Use `wallet_client_type` instead.
|
|
1153
|
+
*/
|
|
1143
1154
|
wallet_client: 'privy' | 'unknown';
|
|
1155
|
+
wallet_client_type?: string;
|
|
1156
|
+
connector_type?: string;
|
|
1144
1157
|
recovery_method?: 'privy' | 'user-passcode';
|
|
1145
1158
|
verified_at: number;
|
|
1146
1159
|
}
|