You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react-wallet-kit/src/providers/client/Types.tsx
+19-15Lines changed: 19 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ import type {
24
24
HandleAddPasskeyParams,
25
25
HandleAddPhoneNumberParams,
26
26
HandleAppleOauthParams,
27
+
HandleCoinbaseOnRampParams,
27
28
HandleConnectExternalWalletParams,
28
29
HandleDiscordOauthParams,
29
30
HandleExportPrivateKeyParams,
@@ -334,7 +335,7 @@ export type ClientContextType = Override<
334
335
* @return A void promise.
335
336
*/
336
337
handleExportPrivateKey: (
337
-
params: HandleExportPrivateKeyParams,
338
+
params: HandleExportPrivateKeyParams
338
339
)=>Promise<void>;
339
340
340
341
/**
@@ -361,7 +362,7 @@ export type ClientContextType = Override<
361
362
*/
362
363
363
364
handleExportWalletAccount: (
364
-
params: HandleExportWalletAccountParams,
365
+
params: HandleExportWalletAccountParams
365
366
)=>Promise<void>;
366
367
367
368
/**
@@ -406,7 +407,7 @@ export type ClientContextType = Override<
406
407
* @returns A promise that resolves to the new private key's ID.
407
408
*/
408
409
handleImportPrivateKey: (
409
-
params?: HandleImportPrivateKeyParams,
410
+
params?: HandleImportPrivateKeyParams
410
411
)=>Promise<string>;
411
412
412
413
/**
@@ -431,7 +432,7 @@ export type ClientContextType = Override<
431
432
* @throws {TurnkeyError} If the client is not initialized, no active session is found, or if there is an error updating the user name.
432
433
*/
433
434
handleUpdateUserEmail: (
434
-
params?: HandleUpdateUserEmailParams,
435
+
params?: HandleUpdateUserEmailParams
435
436
)=>Promise<string>;
436
437
437
438
/**
@@ -458,7 +459,7 @@ export type ClientContextType = Override<
458
459
* @throws {TurnkeyError} If the client is not initialized, no active session is found, SMS OTP is not enabled, or if there is an error updating the phone number.
459
460
*/
460
461
handleUpdateUserPhoneNumber: (
461
-
params?: HandleUpdateUserPhoneNumberParams,
462
+
params?: HandleUpdateUserPhoneNumberParams
462
463
)=>Promise<string>;
463
464
/**
464
465
* Handles the update user email flow.
@@ -483,7 +484,7 @@ export type ClientContextType = Override<
483
484
* @throws {TurnkeyError} If the client is not initialized, no active session is found, or if there is an error updating the email.
484
485
*/
485
486
handleUpdateUserName: (
486
-
params?: HandleUpdateUserNameParams,
487
+
params?: HandleUpdateUserNameParams
487
488
)=>Promise<string>;
488
489
/**
489
490
* Handles the add user email flow.
@@ -533,7 +534,7 @@ export type ClientContextType = Override<
533
534
* @throws {TurnkeyError} If the client is not initialized, no active session is found, or if there is an error adding the phone number.
534
535
*/
535
536
handleAddPhoneNumber: (
536
-
params?: HandleAddPhoneNumberParams,
537
+
params?: HandleAddPhoneNumberParams
537
538
)=>Promise<string>;
538
539
539
540
/**
@@ -557,7 +558,7 @@ export type ClientContextType = Override<
557
558
* @throws {TurnkeyError} If the client is not initialized, no active session is found, or if there is an error adding the provider.
558
559
*/
559
560
handleAddOauthProvider: (
560
-
params: HandleAddOauthProviderParams,
561
+
params: HandleAddOauthProviderParams
561
562
)=>Promise<void>;
562
563
563
564
/**
@@ -583,7 +584,7 @@ export type ClientContextType = Override<
583
584
* if there is an error removing the provider, or if the user cancels the action.
584
585
*/
585
586
handleRemoveOauthProvider: (
586
-
params: HandleRemoveOauthProviderParams,
587
+
params: HandleRemoveOauthProviderParams
587
588
)=>Promise<string[]>;
588
589
589
590
/**
@@ -631,7 +632,7 @@ export type ClientContextType = Override<
631
632
* @throws {TurnkeyError} If the client is not initialized, no active session is found, or if there is an error removing the passkey.
632
633
*/
633
634
handleRemovePasskey: (
634
-
params: HandleRemovePasskeyParams,
635
+
params: HandleRemovePasskeyParams
635
636
)=>Promise<string[]>;
636
637
637
638
/**
@@ -656,7 +657,7 @@ export type ClientContextType = Override<
656
657
* @throws {TurnkeyError} If the client is not initialized, if there is an error during the signing process, or if the user cancels the action.
657
658
*/
658
659
handleSignMessage: (
659
-
params: HandleSignMessageParams,
660
+
params: HandleSignMessageParams
660
661
)=>Promise<v1SignRawPayloadResult>;
661
662
662
663
/**
@@ -677,7 +678,7 @@ export type ClientContextType = Override<
677
678
* @throws {TurnkeyError} If the client is not initialized or if the user cancels the action.
678
679
*/
679
680
handleConnectExternalWallet: (
680
-
params?: HandleConnectExternalWalletParams,
681
+
params?: HandleConnectExternalWalletParams
681
682
)=>Promise<{
682
683
type: "connect"|"disconnect";
683
684
account: WalletAccount;
@@ -700,7 +701,7 @@ export type ClientContextType = Override<
700
701
* if the user cancels the action, or if there is an error during the removal process.
701
702
*/
702
703
handleRemoveUserEmail: (
703
-
params?: HandleRemoveUserEmailParams,
704
+
params?: HandleRemoveUserEmailParams
704
705
)=>Promise<string>;
705
706
706
707
/**
@@ -720,12 +721,15 @@ export type ClientContextType = Override<
720
721
* if the user cancels the action, or if there is an error during the removal process.
0 commit comments