@privy-io/api-types 0.1.1 → 0.3.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.
Files changed (71) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/client-auth.d.mts +1 -1
  10. package/resources/client-auth.d.mts.map +1 -1
  11. package/resources/client-auth.d.ts +1 -1
  12. package/resources/client-auth.d.ts.map +1 -1
  13. package/resources/embedded-wallets.d.mts +2 -2
  14. package/resources/embedded-wallets.d.mts.map +1 -1
  15. package/resources/embedded-wallets.d.ts +2 -2
  16. package/resources/embedded-wallets.d.ts.map +1 -1
  17. package/resources/index.d.mts +1 -1
  18. package/resources/index.d.mts.map +1 -1
  19. package/resources/index.d.ts +1 -1
  20. package/resources/index.d.ts.map +1 -1
  21. package/resources/index.js.map +1 -1
  22. package/resources/index.mjs.map +1 -1
  23. package/resources/key-quorums.d.mts +18 -3
  24. package/resources/key-quorums.d.mts.map +1 -1
  25. package/resources/key-quorums.d.ts +18 -3
  26. package/resources/key-quorums.d.ts.map +1 -1
  27. package/resources/policies.d.mts +128 -22
  28. package/resources/policies.d.mts.map +1 -1
  29. package/resources/policies.d.ts +128 -22
  30. package/resources/policies.d.ts.map +1 -1
  31. package/resources/users.d.mts +7 -4
  32. package/resources/users.d.mts.map +1 -1
  33. package/resources/users.d.ts +7 -4
  34. package/resources/users.d.ts.map +1 -1
  35. package/resources/users.js +1 -1
  36. package/resources/users.mjs +1 -1
  37. package/resources/wallets/index.d.mts +1 -1
  38. package/resources/wallets/index.d.mts.map +1 -1
  39. package/resources/wallets/index.d.ts +1 -1
  40. package/resources/wallets/index.d.ts.map +1 -1
  41. package/resources/wallets/index.js.map +1 -1
  42. package/resources/wallets/index.mjs.map +1 -1
  43. package/resources/wallets/transactions.d.mts +3 -2
  44. package/resources/wallets/transactions.d.mts.map +1 -1
  45. package/resources/wallets/transactions.d.ts +3 -2
  46. package/resources/wallets/transactions.d.ts.map +1 -1
  47. package/resources/wallets/transactions.js +1 -1
  48. package/resources/wallets/transactions.mjs +1 -1
  49. package/resources/wallets/wallets.d.mts +559 -214
  50. package/resources/wallets/wallets.d.mts.map +1 -1
  51. package/resources/wallets/wallets.d.ts +559 -214
  52. package/resources/wallets/wallets.d.ts.map +1 -1
  53. package/resources/wallets/wallets.js +7 -3
  54. package/resources/wallets/wallets.js.map +1 -1
  55. package/resources/wallets/wallets.mjs +7 -3
  56. package/resources/wallets/wallets.mjs.map +1 -1
  57. package/src/client.ts +42 -0
  58. package/src/resources/client-auth.ts +1 -1
  59. package/src/resources/embedded-wallets.ts +2 -2
  60. package/src/resources/index.ts +21 -0
  61. package/src/resources/key-quorums.ts +18 -3
  62. package/src/resources/policies.ts +216 -6
  63. package/src/resources/users.ts +7 -17
  64. package/src/resources/wallets/index.ts +21 -0
  65. package/src/resources/wallets/transactions.ts +4 -2
  66. package/src/resources/wallets/wallets.ts +736 -245
  67. package/src/version.ts +1 -1
  68. package/version.d.mts +1 -1
  69. package/version.d.ts +1 -1
  70. package/version.js +1 -1
  71. package/version.mjs +1 -1
@@ -113,7 +113,11 @@ export class Wallets extends APIResource {
113
113
  * ```ts
114
114
  * const response = await client.wallets._rawSign(
115
115
  * 'wallet_id',
116
- * { params: {} },
116
+ * {
117
+ * params: {
118
+ * hash: '0x0775aeed9c9ce6e0fbc4db25c5e4e6368029651c905c286f813126a09025a21e',
119
+ * },
120
+ * },
117
121
  * );
118
122
  * ```
119
123
  */
@@ -148,8 +152,8 @@ export class Wallets extends APIResource {
148
152
  * @example
149
153
  * ```ts
150
154
  * const response = await client.wallets._rpc('wallet_id', {
151
- * method: 'eth_signTransaction',
152
- * params: { transaction: {} },
155
+ * method: 'personal_sign',
156
+ * params: { encoding: 'utf-8', message: 'message' },
153
157
  * });
154
158
  * ```
155
159
  */
@@ -284,7 +288,7 @@ export type CurveSigningChainType =
284
288
  /**
285
289
  * The wallet chain types that offer first class support.
286
290
  */
287
- export type FirstClassChainType = 'solana' | 'ethereum';
291
+ export type FirstClassChainType = 'ethereum' | 'solana';
288
292
 
289
293
  export interface Wallet {
290
294
  /**
@@ -358,8 +362,8 @@ export namespace Wallet {
358
362
  * The wallet chain types.
359
363
  */
360
364
  export type WalletChainType =
361
- | 'solana'
362
365
  | 'ethereum'
366
+ | 'solana'
363
367
  | 'cosmos'
364
368
  | 'stellar'
365
369
  | 'sui'
@@ -379,233 +383,611 @@ export interface WalletRevokeResponse {
379
383
  message: string;
380
384
  }
381
385
 
382
- export interface WalletExportResponse {
383
- /**
384
- * The encrypted private key.
385
- */
386
- ciphertext: string;
386
+ /**
387
+ * The wallet chain types that are not first class chains.
388
+ */
389
+ export type ExtendedChainType =
390
+ | 'cosmos'
391
+ | 'stellar'
392
+ | 'sui'
393
+ | 'aptos'
394
+ | 'movement'
395
+ | 'tron'
396
+ | 'bitcoin-segwit'
397
+ | 'near'
398
+ | 'ton'
399
+ | 'starknet'
400
+ | 'spark';
387
401
 
388
- /**
389
- * The base64-encoded encapsulated key that was generated during encryption, for
390
- * use during decryption.
391
- */
392
- encapsulated_key: string;
402
+ /**
403
+ * Executes the EVM `personal_sign` RPC (EIP-191) to sign a message.
404
+ */
405
+ export interface EthereumPersonalSignRpcInput {
406
+ method: 'personal_sign';
393
407
 
394
- /**
395
- * The encryption type of the wallet to import. Currently only supports `HPKE`.
396
- */
397
- encryption_type: 'HPKE';
408
+ params: EthereumPersonalSignRpcInput.Params;
409
+
410
+ address?: string;
411
+
412
+ chain_type?: 'ethereum';
398
413
  }
399
414
 
400
- export interface WalletInitImportResponse {
401
- /**
402
- * The base64-encoded encryption public key to encrypt the wallet entropy with.
403
- */
404
- encryption_public_key: string;
415
+ export namespace EthereumPersonalSignRpcInput {
416
+ export interface Params {
417
+ encoding: 'utf-8' | 'hex';
405
418
 
406
- /**
407
- * The encryption type of the wallet to import. Currently only supports `HPKE`.
408
- */
409
- encryption_type: 'HPKE';
419
+ message: string;
420
+ }
410
421
  }
411
422
 
412
- export interface WalletRawSignResponse {
413
- data: WalletRawSignResponse.Data;
423
+ /**
424
+ * Executes the EVM `eth_signTransaction` RPC to sign a transaction.
425
+ */
426
+ export interface EthereumSignTransactionRpcInput {
427
+ method: 'eth_signTransaction';
428
+
429
+ params: EthereumSignTransactionRpcInput.Params;
430
+
431
+ address?: string;
432
+
433
+ chain_type?: 'ethereum';
414
434
  }
415
435
 
416
- export namespace WalletRawSignResponse {
417
- export interface Data {
418
- encoding: 'hex';
436
+ export namespace EthereumSignTransactionRpcInput {
437
+ export interface Params {
438
+ transaction: Params.Transaction;
439
+ }
419
440
 
420
- signature: string;
441
+ export namespace Params {
442
+ export interface Transaction {
443
+ chain_id?: string | number;
444
+
445
+ data?: string;
446
+
447
+ from?: string;
448
+
449
+ gas_limit?: string | number;
450
+
451
+ gas_price?: string | number;
452
+
453
+ max_fee_per_gas?: string | number;
454
+
455
+ max_priority_fee_per_gas?: string | number;
456
+
457
+ nonce?: string | number;
458
+
459
+ to?: string;
460
+
461
+ type?: 0 | 1 | 2;
462
+
463
+ value?: string | number;
464
+ }
421
465
  }
422
466
  }
423
467
 
424
- export type WalletRpcResponse =
425
- | WalletRpcResponse.SolanaSignTransactionRpcResponse
426
- | WalletRpcResponse.SolanaSignAndSendTransactionRpcResponse
427
- | WalletRpcResponse.SolanaSignMessageRpcResponse
428
- | WalletRpcResponse.EthereumSignTransactionRpcResponse
429
- | WalletRpcResponse.EthereumSendTransactionRpcResponse
430
- | WalletRpcResponse.EthereumPersonalSignRpcResponse
431
- | WalletRpcResponse.EthereumSignTypedDataRpcResponse
432
- | WalletRpcResponse.EthereumSign7702AuthorizationRpcResponse
433
- | WalletRpcResponse.EthereumSecp256k1SignRpcResponse;
434
-
435
- export namespace WalletRpcResponse {
436
- export interface SolanaSignTransactionRpcResponse {
437
- data: SolanaSignTransactionRpcResponse.Data;
468
+ /**
469
+ * Executes the EVM `eth_sendTransaction` RPC to sign and broadcast a transaction.
470
+ */
471
+ export interface EthereumSendTransactionRpcInput {
472
+ caip2: string;
438
473
 
439
- method: 'signTransaction';
474
+ method: 'eth_sendTransaction';
475
+
476
+ params: EthereumSendTransactionRpcInput.Params;
477
+
478
+ address?: string;
479
+
480
+ chain_type?: 'ethereum';
481
+
482
+ sponsor?: boolean;
483
+ }
484
+
485
+ export namespace EthereumSendTransactionRpcInput {
486
+ export interface Params {
487
+ transaction: Params.Transaction;
440
488
  }
441
489
 
442
- export namespace SolanaSignTransactionRpcResponse {
443
- export interface Data {
444
- encoding: 'base64';
490
+ export namespace Params {
491
+ export interface Transaction {
492
+ chain_id?: string | number;
493
+
494
+ data?: string;
495
+
496
+ from?: string;
497
+
498
+ gas_limit?: string | number;
499
+
500
+ gas_price?: string | number;
501
+
502
+ max_fee_per_gas?: string | number;
503
+
504
+ max_priority_fee_per_gas?: string | number;
505
+
506
+ nonce?: string | number;
507
+
508
+ to?: string;
445
509
 
446
- signed_transaction: string;
510
+ type?: 0 | 1 | 2;
511
+
512
+ value?: string | number;
447
513
  }
448
514
  }
515
+ }
449
516
 
450
- export interface SolanaSignAndSendTransactionRpcResponse {
451
- data: SolanaSignAndSendTransactionRpcResponse.Data;
517
+ /**
518
+ * Executes the EVM `eth_signTypedData_v4` RPC (EIP-712) to sign a typed data
519
+ * object.
520
+ */
521
+ export interface EthereumSignTypedDataRpcInput {
522
+ method: 'eth_signTypedData_v4';
452
523
 
453
- method: 'signAndSendTransaction';
524
+ params: EthereumSignTypedDataRpcInput.Params;
525
+
526
+ address?: string;
527
+
528
+ chain_type?: 'ethereum';
529
+ }
530
+
531
+ export namespace EthereumSignTypedDataRpcInput {
532
+ export interface Params {
533
+ typed_data: Params.TypedData;
454
534
  }
455
535
 
456
- export namespace SolanaSignAndSendTransactionRpcResponse {
457
- export interface Data {
458
- caip2: string;
536
+ export namespace Params {
537
+ export interface TypedData {
538
+ domain: { [key: string]: unknown };
459
539
 
460
- hash: string;
540
+ message: { [key: string]: unknown };
541
+
542
+ primary_type: string;
543
+
544
+ types: { [key: string]: Array<TypedData.Type> };
545
+ }
546
+
547
+ export namespace TypedData {
548
+ export interface Type {
549
+ name: string;
461
550
 
462
- transaction_id?: string;
551
+ type: string;
552
+ }
463
553
  }
464
554
  }
555
+ }
465
556
 
466
- export interface SolanaSignMessageRpcResponse {
467
- data: SolanaSignMessageRpcResponse.Data;
557
+ /**
558
+ * Executes an RPC method to hash and sign a UserOperation.
559
+ */
560
+ export interface EthereumSignUserOperationRpcInput {
561
+ method: 'eth_signUserOperation';
468
562
 
469
- method: 'signMessage';
563
+ params: EthereumSignUserOperationRpcInput.Params;
564
+
565
+ address?: string;
566
+
567
+ chain_type?: 'ethereum';
568
+ }
569
+
570
+ export namespace EthereumSignUserOperationRpcInput {
571
+ export interface Params {
572
+ chain_id: string | number;
573
+
574
+ contract: string;
575
+
576
+ user_operation: Params.UserOperation;
470
577
  }
471
578
 
472
- export namespace SolanaSignMessageRpcResponse {
473
- export interface Data {
474
- encoding: 'base64';
579
+ export namespace Params {
580
+ export interface UserOperation {
581
+ call_data: string;
582
+
583
+ call_gas_limit: string;
584
+
585
+ max_fee_per_gas: string;
475
586
 
476
- signature: string;
587
+ max_priority_fee_per_gas: string;
588
+
589
+ nonce: string;
590
+
591
+ paymaster: string;
592
+
593
+ paymaster_data: string;
594
+
595
+ paymaster_post_op_gas_limit: string;
596
+
597
+ paymaster_verification_gas_limit: string;
598
+
599
+ pre_verification_gas: string;
600
+
601
+ sender: string;
602
+
603
+ verification_gas_limit: string;
477
604
  }
478
605
  }
606
+ }
607
+
608
+ /**
609
+ * Signs an EIP-7702 authorization.
610
+ */
611
+ export interface EthereumSign7702AuthorizationRpcInput {
612
+ method: 'eth_sign7702Authorization';
479
613
 
480
- export interface EthereumSignTransactionRpcResponse {
481
- data: EthereumSignTransactionRpcResponse.Data;
614
+ params: EthereumSign7702AuthorizationRpcInput.Params;
482
615
 
483
- method: 'eth_signTransaction';
616
+ address?: string;
617
+
618
+ chain_type?: 'ethereum';
619
+ }
620
+
621
+ export namespace EthereumSign7702AuthorizationRpcInput {
622
+ export interface Params {
623
+ chain_id: string | number;
624
+
625
+ contract: string;
626
+
627
+ nonce?: string | number;
484
628
  }
629
+ }
485
630
 
486
- export namespace EthereumSignTransactionRpcResponse {
487
- export interface Data {
488
- encoding: 'rlp';
631
+ /**
632
+ * Signs a raw hash on the secp256k1 curve.
633
+ */
634
+ export interface EthereumSecp256k1SignRpcInput {
635
+ method: 'secp256k1_sign';
489
636
 
490
- signed_transaction: string;
491
- }
637
+ params: EthereumSecp256k1SignRpcInput.Params;
638
+
639
+ address?: string;
640
+
641
+ chain_type?: 'ethereum';
642
+ }
643
+
644
+ export namespace EthereumSecp256k1SignRpcInput {
645
+ export interface Params {
646
+ hash: string;
492
647
  }
648
+ }
649
+
650
+ /**
651
+ * Executes the SVM `signTransaction` RPC to sign a transaction.
652
+ */
653
+ export interface SolanaSignTransactionRpcInput {
654
+ method: 'signTransaction';
493
655
 
494
- export interface EthereumSendTransactionRpcResponse {
495
- data: EthereumSendTransactionRpcResponse.Data;
656
+ params: SolanaSignTransactionRpcInput.Params;
496
657
 
497
- method: 'eth_sendTransaction';
658
+ address?: string;
659
+
660
+ chain_type?: 'solana';
661
+ }
662
+
663
+ export namespace SolanaSignTransactionRpcInput {
664
+ export interface Params {
665
+ encoding: 'base64';
666
+
667
+ transaction: string;
668
+ }
669
+ }
670
+
671
+ /**
672
+ * Executes the SVM `signAndSendTransaction` RPC to sign and broadcast a
673
+ * transaction.
674
+ */
675
+ export interface SolanaSignAndSendTransactionRpcInput {
676
+ caip2: string;
677
+
678
+ method: 'signAndSendTransaction';
679
+
680
+ params: SolanaSignAndSendTransactionRpcInput.Params;
681
+
682
+ address?: string;
683
+
684
+ chain_type?: 'solana';
685
+
686
+ sponsor?: boolean;
687
+ }
688
+
689
+ export namespace SolanaSignAndSendTransactionRpcInput {
690
+ export interface Params {
691
+ encoding: 'base64';
692
+
693
+ transaction: string;
498
694
  }
695
+ }
499
696
 
500
- export namespace EthereumSendTransactionRpcResponse {
501
- export interface Data {
502
- caip2: string;
697
+ /**
698
+ * Executes the SVM `signMessage` RPC to sign a message.
699
+ */
700
+ export interface SolanaSignMessageRpcInput {
701
+ method: 'signMessage';
503
702
 
504
- hash: string;
703
+ params: SolanaSignMessageRpcInput.Params;
505
704
 
506
- transaction_id?: string;
705
+ address?: string;
507
706
 
508
- transaction_request?: Data.TransactionRequest;
509
- }
707
+ chain_type?: 'solana';
708
+ }
510
709
 
511
- export namespace Data {
512
- export interface TransactionRequest {
513
- chain_id?: string | number;
710
+ export namespace SolanaSignMessageRpcInput {
711
+ export interface Params {
712
+ encoding: 'base64';
514
713
 
515
- data?: string;
714
+ message: string;
715
+ }
716
+ }
516
717
 
517
- from?: string;
718
+ /**
719
+ * Response to the EVM `eth_signTransaction` RPC.
720
+ */
721
+ export interface EthereumSignTransactionRpcResponse {
722
+ data: EthereumSignTransactionRpcResponse.Data;
518
723
 
519
- gas_limit?: string | number;
724
+ method: 'eth_signTransaction';
725
+ }
520
726
 
521
- gas_price?: string | number;
727
+ export namespace EthereumSignTransactionRpcResponse {
728
+ export interface Data {
729
+ encoding: 'rlp';
522
730
 
523
- max_fee_per_gas?: string | number;
731
+ signed_transaction: string;
732
+ }
733
+ }
524
734
 
525
- max_priority_fee_per_gas?: string | number;
735
+ /**
736
+ * Response to the EVM `eth_sendTransaction` RPC.
737
+ */
738
+ export interface EthereumSendTransactionRpcResponse {
739
+ data: EthereumSendTransactionRpcResponse.Data;
526
740
 
527
- nonce?: string | number;
741
+ method: 'eth_sendTransaction';
742
+ }
528
743
 
529
- to?: string;
744
+ export namespace EthereumSendTransactionRpcResponse {
745
+ export interface Data {
746
+ caip2: string;
530
747
 
531
- type?: 0 | 1 | 2;
748
+ hash: string;
532
749
 
533
- value?: string | number;
534
- }
750
+ transaction_id?: string;
751
+
752
+ transaction_request?: Data.TransactionRequest;
753
+ }
754
+
755
+ export namespace Data {
756
+ export interface TransactionRequest {
757
+ chain_id?: string | number;
758
+
759
+ data?: string;
760
+
761
+ from?: string;
762
+
763
+ gas_limit?: string | number;
764
+
765
+ gas_price?: string | number;
766
+
767
+ max_fee_per_gas?: string | number;
768
+
769
+ max_priority_fee_per_gas?: string | number;
770
+
771
+ nonce?: string | number;
772
+
773
+ to?: string;
774
+
775
+ type?: 0 | 1 | 2;
776
+
777
+ value?: string | number;
535
778
  }
536
779
  }
780
+ }
781
+
782
+ /**
783
+ * Response to the EVM `personal_sign` RPC.
784
+ */
785
+ export interface EthereumPersonalSignRpcResponse {
786
+ data: EthereumPersonalSignRpcResponse.Data;
537
787
 
538
- export interface EthereumPersonalSignRpcResponse {
539
- data: EthereumPersonalSignRpcResponse.Data;
788
+ method: 'personal_sign';
789
+ }
540
790
 
541
- method: 'personal_sign';
791
+ export namespace EthereumPersonalSignRpcResponse {
792
+ export interface Data {
793
+ encoding: 'hex';
794
+
795
+ signature: string;
542
796
  }
797
+ }
798
+
799
+ /**
800
+ * Response to the EVM `eth_signTypedData_v4` RPC.
801
+ */
802
+ export interface EthereumSignTypedDataRpcResponse {
803
+ data: EthereumSignTypedDataRpcResponse.Data;
543
804
 
544
- export namespace EthereumPersonalSignRpcResponse {
545
- export interface Data {
546
- encoding: 'hex';
805
+ method: 'eth_signTypedData_v4';
806
+ }
547
807
 
548
- signature: string;
549
- }
808
+ export namespace EthereumSignTypedDataRpcResponse {
809
+ export interface Data {
810
+ encoding: 'hex';
811
+
812
+ signature: string;
550
813
  }
814
+ }
551
815
 
552
- export interface EthereumSignTypedDataRpcResponse {
553
- data: EthereumSignTypedDataRpcResponse.Data;
816
+ /**
817
+ * Response to the EVM `eth_signUserOperation` RPC.
818
+ */
819
+ export interface EthereumSignUserOperationRpcResponse {
820
+ data: EthereumSignUserOperationRpcResponse.Data;
554
821
 
555
- method: 'eth_signTypedData_v4';
822
+ method: 'eth_signUserOperation';
823
+ }
824
+
825
+ export namespace EthereumSignUserOperationRpcResponse {
826
+ export interface Data {
827
+ encoding: 'hex';
828
+
829
+ signature: string;
830
+ }
831
+ }
832
+
833
+ /**
834
+ * Response to the EVM `eth_sign7702Authorization` RPC.
835
+ */
836
+ export interface EthereumSign7702AuthorizationRpcResponse {
837
+ data: EthereumSign7702AuthorizationRpcResponse.Data;
838
+
839
+ method: 'eth_sign7702Authorization';
840
+ }
841
+
842
+ export namespace EthereumSign7702AuthorizationRpcResponse {
843
+ export interface Data {
844
+ authorization: Data.Authorization;
556
845
  }
557
846
 
558
- export namespace EthereumSignTypedDataRpcResponse {
559
- export interface Data {
560
- encoding: 'hex';
847
+ export namespace Data {
848
+ export interface Authorization {
849
+ chain_id: string | number;
850
+
851
+ contract: string;
852
+
853
+ nonce: string | number;
561
854
 
562
- signature: string;
855
+ r: string;
856
+
857
+ s: string;
858
+
859
+ y_parity: number;
563
860
  }
564
861
  }
862
+ }
863
+
864
+ /**
865
+ * Response to the EVM `secp256k1_sign` RPC.
866
+ */
867
+ export interface EthereumSecp256k1SignRpcResponse {
868
+ data: EthereumSecp256k1SignRpcResponse.Data;
565
869
 
566
- export interface EthereumSign7702AuthorizationRpcResponse {
567
- data: EthereumSign7702AuthorizationRpcResponse.Data;
870
+ method: 'secp256k1_sign';
871
+ }
568
872
 
569
- method: 'eth_sign7702Authorization';
873
+ export namespace EthereumSecp256k1SignRpcResponse {
874
+ export interface Data {
875
+ encoding: 'hex';
876
+
877
+ signature: string;
570
878
  }
879
+ }
571
880
 
572
- export namespace EthereumSign7702AuthorizationRpcResponse {
573
- export interface Data {
574
- authorization: Data.Authorization;
575
- }
881
+ /**
882
+ * Response to the SVM `signTransaction` RPC.
883
+ */
884
+ export interface SolanaSignTransactionRpcResponse {
885
+ data: SolanaSignTransactionRpcResponse.Data;
886
+
887
+ method: 'signTransaction';
888
+ }
889
+
890
+ export namespace SolanaSignTransactionRpcResponse {
891
+ export interface Data {
892
+ encoding: 'base64';
576
893
 
577
- export namespace Data {
578
- export interface Authorization {
579
- chain_id: string | number;
894
+ signed_transaction: string;
895
+ }
896
+ }
580
897
 
581
- contract: string;
898
+ /**
899
+ * Response to the SVM `signAndSendTransaction` RPC.
900
+ */
901
+ export interface SolanaSignAndSendTransactionRpcResponse {
902
+ data: SolanaSignAndSendTransactionRpcResponse.Data;
582
903
 
583
- nonce: string | number;
904
+ method: 'signAndSendTransaction';
905
+ }
584
906
 
585
- r: string;
907
+ export namespace SolanaSignAndSendTransactionRpcResponse {
908
+ export interface Data {
909
+ caip2: string;
586
910
 
587
- s: string;
911
+ hash: string;
588
912
 
589
- y_parity: number;
590
- }
591
- }
913
+ transaction_id?: string;
914
+ }
915
+ }
916
+
917
+ /**
918
+ * Response to the SVM `signMessage` RPC.
919
+ */
920
+ export interface SolanaSignMessageRpcResponse {
921
+ data: SolanaSignMessageRpcResponse.Data;
922
+
923
+ method: 'signMessage';
924
+ }
925
+
926
+ export namespace SolanaSignMessageRpcResponse {
927
+ export interface Data {
928
+ encoding: 'base64';
929
+
930
+ signature: string;
592
931
  }
932
+ }
933
+
934
+ export interface WalletExportResponse {
935
+ /**
936
+ * The encrypted private key.
937
+ */
938
+ ciphertext: string;
939
+
940
+ /**
941
+ * The base64-encoded encapsulated key that was generated during encryption, for
942
+ * use during decryption.
943
+ */
944
+ encapsulated_key: string;
945
+
946
+ /**
947
+ * The encryption type of the wallet to import. Currently only supports `HPKE`.
948
+ */
949
+ encryption_type: 'HPKE';
950
+ }
951
+
952
+ export interface WalletInitImportResponse {
953
+ /**
954
+ * The base64-encoded encryption public key to encrypt the wallet entropy with.
955
+ */
956
+ encryption_public_key: string;
593
957
 
594
- export interface EthereumSecp256k1SignRpcResponse {
595
- data: EthereumSecp256k1SignRpcResponse.Data;
958
+ /**
959
+ * The encryption type of the wallet to import. Currently only supports `HPKE`.
960
+ */
961
+ encryption_type: 'HPKE';
962
+ }
596
963
 
597
- method: 'secp256k1_sign';
598
- }
964
+ export interface WalletRawSignResponse {
965
+ data: WalletRawSignResponse.Data;
966
+ }
599
967
 
600
- export namespace EthereumSecp256k1SignRpcResponse {
601
- export interface Data {
602
- encoding: 'hex';
968
+ export namespace WalletRawSignResponse {
969
+ export interface Data {
970
+ encoding: 'hex';
603
971
 
604
- signature: string;
605
- }
972
+ signature: string;
606
973
  }
607
974
  }
608
975
 
976
+ /**
977
+ * Response to the EVM `personal_sign` RPC.
978
+ */
979
+ export type WalletRpcResponse =
980
+ | EthereumPersonalSignRpcResponse
981
+ | EthereumSignTypedDataRpcResponse
982
+ | EthereumSignTransactionRpcResponse
983
+ | EthereumSendTransactionRpcResponse
984
+ | EthereumSignUserOperationRpcResponse
985
+ | EthereumSign7702AuthorizationRpcResponse
986
+ | EthereumSecp256k1SignRpcResponse
987
+ | SolanaSignMessageRpcResponse
988
+ | SolanaSignTransactionRpcResponse
989
+ | SolanaSignAndSendTransactionRpcResponse;
990
+
609
991
  export type WalletAuthenticateWithJwtResponse =
610
992
  | WalletAuthenticateWithJwtResponse.WithEncryption
611
993
  | WalletAuthenticateWithJwtResponse.WithoutEncryption;
@@ -725,8 +1107,9 @@ export namespace WalletCreateParams {
725
1107
  }
726
1108
 
727
1109
  /**
728
- * The P-256 public key of the owner of the resource. If you provide this, do not
729
- * specify an owner_id as it will be generated automatically.
1110
+ * The P-256 public key of the owner of the resource, in base64-encoded DER format.
1111
+ * If you provide this, do not specify an owner_id as it will be generated
1112
+ * automatically.
730
1113
  */
731
1114
  export interface PublicKeyOwner {
732
1115
  public_key: string;
@@ -743,20 +1126,10 @@ export namespace WalletCreateParams {
743
1126
  }
744
1127
 
745
1128
  export interface WalletListParams extends CursorParams {
746
- chain_type?:
747
- | 'cosmos'
748
- | 'stellar'
749
- | 'sui'
750
- | 'aptos'
751
- | 'movement'
752
- | 'tron'
753
- | 'bitcoin-segwit'
754
- | 'near'
755
- | 'ton'
756
- | 'starknet'
757
- | 'spark'
758
- | 'solana'
759
- | 'ethereum';
1129
+ /**
1130
+ * The wallet chain types.
1131
+ */
1132
+ chain_type?: WalletChainType;
760
1133
 
761
1134
  user_id?: string;
762
1135
  }
@@ -837,9 +1210,9 @@ export declare namespace WalletInitImportParams {
837
1210
 
838
1211
  export interface WalletRawSignParams {
839
1212
  /**
840
- * Body param:
1213
+ * Body param: Sign a pre-computed hash
841
1214
  */
842
- params: WalletRawSignParams.Params;
1215
+ params: WalletRawSignParams.Hash | WalletRawSignParams.UnionMember1;
843
1216
 
844
1217
  /**
845
1218
  * Header param: Request authorization signature. If multiple signatures are
@@ -855,36 +1228,60 @@ export interface WalletRawSignParams {
855
1228
  }
856
1229
 
857
1230
  export namespace WalletRawSignParams {
858
- export interface Params {
1231
+ /**
1232
+ * Sign a pre-computed hash
1233
+ */
1234
+ export interface Hash {
859
1235
  /**
860
1236
  * The hash to sign. Must start with `0x`.
861
1237
  */
862
- hash?: string;
1238
+ hash: string;
1239
+ }
1240
+
1241
+ /**
1242
+ * Hash and sign bytes
1243
+ */
1244
+ export interface UnionMember1 {
1245
+ /**
1246
+ * The bytes to hash and sign.
1247
+ */
1248
+ bytes: string;
1249
+
1250
+ /**
1251
+ * Encoding scheme for the bytes.
1252
+ */
1253
+ encoding: 'utf-8' | 'hex';
1254
+
1255
+ /**
1256
+ * Hash function to use for the bytes.
1257
+ */
1258
+ hash_function: 'keccak256' | 'sha256';
863
1259
  }
864
1260
  }
865
1261
 
866
1262
  export type WalletRpcParams =
867
- | WalletRpcParams.EthereumSignTransactionRpcInput
868
- | WalletRpcParams.EthereumSendTransactionRpcInput
869
1263
  | WalletRpcParams.EthereumPersonalSignRpcInput
870
1264
  | WalletRpcParams.EthereumSignTypedDataRpcInput
1265
+ | WalletRpcParams.EthereumSignTransactionRpcInput
1266
+ | WalletRpcParams.EthereumSignUserOperationRpcInput
1267
+ | WalletRpcParams.EthereumSendTransactionRpcInput
871
1268
  | WalletRpcParams.EthereumSign7702AuthorizationRpcInput
872
1269
  | WalletRpcParams.EthereumSecp256k1SignRpcInput
1270
+ | WalletRpcParams.SolanaSignMessageRpcInput
873
1271
  | WalletRpcParams.SolanaSignTransactionRpcInput
874
- | WalletRpcParams.SolanaSignAndSendTransactionRpcInput
875
- | WalletRpcParams.SolanaSignMessageRpcInput;
1272
+ | WalletRpcParams.SolanaSignAndSendTransactionRpcInput;
876
1273
 
877
1274
  export declare namespace WalletRpcParams {
878
- export interface EthereumSignTransactionRpcInput {
1275
+ export interface EthereumPersonalSignRpcInput {
879
1276
  /**
880
1277
  * Body param:
881
1278
  */
882
- method: 'eth_signTransaction';
1279
+ method: 'personal_sign';
883
1280
 
884
1281
  /**
885
1282
  * Body param:
886
1283
  */
887
- params: EthereumSignTransactionRpcInput.Params;
1284
+ params: EthereumPersonalSignRpcInput.Params;
888
1285
 
889
1286
  /**
890
1287
  * Body param:
@@ -909,53 +1306,84 @@ export declare namespace WalletRpcParams {
909
1306
  'privy-idempotency-key'?: string;
910
1307
  }
911
1308
 
912
- export namespace EthereumSignTransactionRpcInput {
1309
+ export namespace EthereumPersonalSignRpcInput {
913
1310
  export interface Params {
914
- transaction: Params.Transaction;
1311
+ encoding: 'utf-8' | 'hex';
1312
+
1313
+ message: string;
915
1314
  }
1315
+ }
916
1316
 
917
- export namespace Params {
918
- export interface Transaction {
919
- chain_id?: string | number;
1317
+ export interface EthereumSignTypedDataRpcInput {
1318
+ /**
1319
+ * Body param:
1320
+ */
1321
+ method: 'eth_signTypedData_v4';
920
1322
 
921
- data?: string;
1323
+ /**
1324
+ * Body param:
1325
+ */
1326
+ params: EthereumSignTypedDataRpcInput.Params;
922
1327
 
923
- from?: string;
1328
+ /**
1329
+ * Body param:
1330
+ */
1331
+ address?: string;
924
1332
 
925
- gas_limit?: string | number;
1333
+ /**
1334
+ * Body param:
1335
+ */
1336
+ chain_type?: 'ethereum';
926
1337
 
927
- gas_price?: string | number;
1338
+ /**
1339
+ * Header param: Request authorization signature. If multiple signatures are
1340
+ * required, they should be comma separated.
1341
+ */
1342
+ 'privy-authorization-signature'?: string;
928
1343
 
929
- max_fee_per_gas?: string | number;
1344
+ /**
1345
+ * Header param: Idempotency keys ensure API requests are executed only once within
1346
+ * a 24-hour window.
1347
+ */
1348
+ 'privy-idempotency-key'?: string;
1349
+ }
930
1350
 
931
- max_priority_fee_per_gas?: string | number;
1351
+ export namespace EthereumSignTypedDataRpcInput {
1352
+ export interface Params {
1353
+ typed_data: Params.TypedData;
1354
+ }
932
1355
 
933
- nonce?: string | number;
1356
+ export namespace Params {
1357
+ export interface TypedData {
1358
+ domain: { [key: string]: unknown };
934
1359
 
935
- to?: string;
1360
+ message: { [key: string]: unknown };
936
1361
 
937
- type?: 0 | 1 | 2;
1362
+ primary_type: string;
938
1363
 
939
- value?: string | number;
1364
+ types: { [key: string]: Array<TypedData.Type> };
1365
+ }
1366
+
1367
+ export namespace TypedData {
1368
+ export interface Type {
1369
+ name: string;
1370
+
1371
+ type: string;
1372
+ }
940
1373
  }
941
1374
  }
942
1375
  }
943
1376
 
944
- export interface EthereumSendTransactionRpcInput {
945
- /**
946
- * Body param:
947
- */
948
- caip2: string;
949
-
1377
+ export interface EthereumSignTransactionRpcInput {
950
1378
  /**
951
1379
  * Body param:
952
1380
  */
953
- method: 'eth_sendTransaction';
1381
+ method: 'eth_signTransaction';
954
1382
 
955
1383
  /**
956
1384
  * Body param:
957
1385
  */
958
- params: EthereumSendTransactionRpcInput.Params;
1386
+ params: EthereumSignTransactionRpcInput.Params;
959
1387
 
960
1388
  /**
961
1389
  * Body param:
@@ -967,11 +1395,6 @@ export declare namespace WalletRpcParams {
967
1395
  */
968
1396
  chain_type?: 'ethereum';
969
1397
 
970
- /**
971
- * Body param:
972
- */
973
- sponsor?: boolean;
974
-
975
1398
  /**
976
1399
  * Header param: Request authorization signature. If multiple signatures are
977
1400
  * required, they should be comma separated.
@@ -985,7 +1408,7 @@ export declare namespace WalletRpcParams {
985
1408
  'privy-idempotency-key'?: string;
986
1409
  }
987
1410
 
988
- export namespace EthereumSendTransactionRpcInput {
1411
+ export namespace EthereumSignTransactionRpcInput {
989
1412
  export interface Params {
990
1413
  transaction: Params.Transaction;
991
1414
  }
@@ -1017,16 +1440,16 @@ export declare namespace WalletRpcParams {
1017
1440
  }
1018
1441
  }
1019
1442
 
1020
- export interface EthereumPersonalSignRpcInput {
1443
+ export interface EthereumSignUserOperationRpcInput {
1021
1444
  /**
1022
1445
  * Body param:
1023
1446
  */
1024
- method: 'personal_sign';
1447
+ method: 'eth_signUserOperation';
1025
1448
 
1026
1449
  /**
1027
1450
  * Body param:
1028
1451
  */
1029
- params: EthereumPersonalSignRpcInput.Params;
1452
+ params: EthereumSignUserOperationRpcInput.Params;
1030
1453
 
1031
1454
  /**
1032
1455
  * Body param:
@@ -1051,24 +1474,59 @@ export declare namespace WalletRpcParams {
1051
1474
  'privy-idempotency-key'?: string;
1052
1475
  }
1053
1476
 
1054
- export namespace EthereumPersonalSignRpcInput {
1477
+ export namespace EthereumSignUserOperationRpcInput {
1055
1478
  export interface Params {
1056
- encoding: 'utf-8' | 'hex';
1479
+ chain_id: string | number;
1057
1480
 
1058
- message: string;
1481
+ contract: string;
1482
+
1483
+ user_operation: Params.UserOperation;
1484
+ }
1485
+
1486
+ export namespace Params {
1487
+ export interface UserOperation {
1488
+ call_data: string;
1489
+
1490
+ call_gas_limit: string;
1491
+
1492
+ max_fee_per_gas: string;
1493
+
1494
+ max_priority_fee_per_gas: string;
1495
+
1496
+ nonce: string;
1497
+
1498
+ paymaster: string;
1499
+
1500
+ paymaster_data: string;
1501
+
1502
+ paymaster_post_op_gas_limit: string;
1503
+
1504
+ paymaster_verification_gas_limit: string;
1505
+
1506
+ pre_verification_gas: string;
1507
+
1508
+ sender: string;
1509
+
1510
+ verification_gas_limit: string;
1511
+ }
1059
1512
  }
1060
1513
  }
1061
1514
 
1062
- export interface EthereumSignTypedDataRpcInput {
1515
+ export interface EthereumSendTransactionRpcInput {
1063
1516
  /**
1064
1517
  * Body param:
1065
1518
  */
1066
- method: 'eth_signTypedData_v4';
1519
+ caip2: string;
1067
1520
 
1068
1521
  /**
1069
1522
  * Body param:
1070
1523
  */
1071
- params: EthereumSignTypedDataRpcInput.Params;
1524
+ method: 'eth_sendTransaction';
1525
+
1526
+ /**
1527
+ * Body param:
1528
+ */
1529
+ params: EthereumSendTransactionRpcInput.Params;
1072
1530
 
1073
1531
  /**
1074
1532
  * Body param:
@@ -1080,6 +1538,11 @@ export declare namespace WalletRpcParams {
1080
1538
  */
1081
1539
  chain_type?: 'ethereum';
1082
1540
 
1541
+ /**
1542
+ * Body param:
1543
+ */
1544
+ sponsor?: boolean;
1545
+
1083
1546
  /**
1084
1547
  * Header param: Request authorization signature. If multiple signatures are
1085
1548
  * required, they should be comma separated.
@@ -1093,28 +1556,34 @@ export declare namespace WalletRpcParams {
1093
1556
  'privy-idempotency-key'?: string;
1094
1557
  }
1095
1558
 
1096
- export namespace EthereumSignTypedDataRpcInput {
1559
+ export namespace EthereumSendTransactionRpcInput {
1097
1560
  export interface Params {
1098
- typed_data: Params.TypedData;
1561
+ transaction: Params.Transaction;
1099
1562
  }
1100
1563
 
1101
1564
  export namespace Params {
1102
- export interface TypedData {
1103
- domain: { [key: string]: unknown };
1565
+ export interface Transaction {
1566
+ chain_id?: string | number;
1104
1567
 
1105
- message: { [key: string]: unknown };
1568
+ data?: string;
1106
1569
 
1107
- primary_type: string;
1570
+ from?: string;
1108
1571
 
1109
- types: { [key: string]: Array<TypedData.Type> };
1110
- }
1572
+ gas_limit?: string | number;
1111
1573
 
1112
- export namespace TypedData {
1113
- export interface Type {
1114
- name: string;
1574
+ gas_price?: string | number;
1115
1575
 
1116
- type: string;
1117
- }
1576
+ max_fee_per_gas?: string | number;
1577
+
1578
+ max_priority_fee_per_gas?: string | number;
1579
+
1580
+ nonce?: string | number;
1581
+
1582
+ to?: string;
1583
+
1584
+ type?: 0 | 1 | 2;
1585
+
1586
+ value?: string | number;
1118
1587
  }
1119
1588
  }
1120
1589
  }
@@ -1203,16 +1672,16 @@ export declare namespace WalletRpcParams {
1203
1672
  }
1204
1673
  }
1205
1674
 
1206
- export interface SolanaSignTransactionRpcInput {
1675
+ export interface SolanaSignMessageRpcInput {
1207
1676
  /**
1208
1677
  * Body param:
1209
1678
  */
1210
- method: 'signTransaction';
1679
+ method: 'signMessage';
1211
1680
 
1212
1681
  /**
1213
1682
  * Body param:
1214
1683
  */
1215
- params: SolanaSignTransactionRpcInput.Params;
1684
+ params: SolanaSignMessageRpcInput.Params;
1216
1685
 
1217
1686
  /**
1218
1687
  * Body param:
@@ -1237,29 +1706,24 @@ export declare namespace WalletRpcParams {
1237
1706
  'privy-idempotency-key'?: string;
1238
1707
  }
1239
1708
 
1240
- export namespace SolanaSignTransactionRpcInput {
1709
+ export namespace SolanaSignMessageRpcInput {
1241
1710
  export interface Params {
1242
1711
  encoding: 'base64';
1243
1712
 
1244
- transaction: string;
1713
+ message: string;
1245
1714
  }
1246
1715
  }
1247
1716
 
1248
- export interface SolanaSignAndSendTransactionRpcInput {
1249
- /**
1250
- * Body param:
1251
- */
1252
- caip2: string;
1253
-
1717
+ export interface SolanaSignTransactionRpcInput {
1254
1718
  /**
1255
1719
  * Body param:
1256
1720
  */
1257
- method: 'signAndSendTransaction';
1721
+ method: 'signTransaction';
1258
1722
 
1259
1723
  /**
1260
1724
  * Body param:
1261
1725
  */
1262
- params: SolanaSignAndSendTransactionRpcInput.Params;
1726
+ params: SolanaSignTransactionRpcInput.Params;
1263
1727
 
1264
1728
  /**
1265
1729
  * Body param:
@@ -1271,11 +1735,6 @@ export declare namespace WalletRpcParams {
1271
1735
  */
1272
1736
  chain_type?: 'solana';
1273
1737
 
1274
- /**
1275
- * Body param:
1276
- */
1277
- sponsor?: boolean;
1278
-
1279
1738
  /**
1280
1739
  * Header param: Request authorization signature. If multiple signatures are
1281
1740
  * required, they should be comma separated.
@@ -1289,7 +1748,7 @@ export declare namespace WalletRpcParams {
1289
1748
  'privy-idempotency-key'?: string;
1290
1749
  }
1291
1750
 
1292
- export namespace SolanaSignAndSendTransactionRpcInput {
1751
+ export namespace SolanaSignTransactionRpcInput {
1293
1752
  export interface Params {
1294
1753
  encoding: 'base64';
1295
1754
 
@@ -1297,16 +1756,21 @@ export declare namespace WalletRpcParams {
1297
1756
  }
1298
1757
  }
1299
1758
 
1300
- export interface SolanaSignMessageRpcInput {
1759
+ export interface SolanaSignAndSendTransactionRpcInput {
1301
1760
  /**
1302
1761
  * Body param:
1303
1762
  */
1304
- method: 'signMessage';
1763
+ caip2: string;
1305
1764
 
1306
1765
  /**
1307
1766
  * Body param:
1308
1767
  */
1309
- params: SolanaSignMessageRpcInput.Params;
1768
+ method: 'signAndSendTransaction';
1769
+
1770
+ /**
1771
+ * Body param:
1772
+ */
1773
+ params: SolanaSignAndSendTransactionRpcInput.Params;
1310
1774
 
1311
1775
  /**
1312
1776
  * Body param:
@@ -1318,6 +1782,11 @@ export declare namespace WalletRpcParams {
1318
1782
  */
1319
1783
  chain_type?: 'solana';
1320
1784
 
1785
+ /**
1786
+ * Body param:
1787
+ */
1788
+ sponsor?: boolean;
1789
+
1321
1790
  /**
1322
1791
  * Header param: Request authorization signature. If multiple signatures are
1323
1792
  * required, they should be comma separated.
@@ -1331,11 +1800,11 @@ export declare namespace WalletRpcParams {
1331
1800
  'privy-idempotency-key'?: string;
1332
1801
  }
1333
1802
 
1334
- export namespace SolanaSignMessageRpcInput {
1803
+ export namespace SolanaSignAndSendTransactionRpcInput {
1335
1804
  export interface Params {
1336
1805
  encoding: 'base64';
1337
1806
 
1338
- message: string;
1807
+ transaction: string;
1339
1808
  }
1340
1809
  }
1341
1810
  }
@@ -1482,8 +1951,9 @@ export namespace WalletUpdateParams {
1482
1951
  }
1483
1952
 
1484
1953
  /**
1485
- * The P-256 public key of the owner of the resource. If you provide this, do not
1486
- * specify an owner_id as it will be generated automatically.
1954
+ * The P-256 public key of the owner of the resource, in base64-encoded DER format.
1955
+ * If you provide this, do not specify an owner_id as it will be generated
1956
+ * automatically.
1487
1957
  */
1488
1958
  export interface PublicKeyOwner {
1489
1959
  public_key: string;
@@ -1582,6 +2052,27 @@ export declare namespace Wallets {
1582
2052
  type Wallet as Wallet,
1583
2053
  type WalletChainType as WalletChainType,
1584
2054
  type WalletRevokeResponse as WalletRevokeResponse,
2055
+ type ExtendedChainType as ExtendedChainType,
2056
+ type EthereumPersonalSignRpcInput as EthereumPersonalSignRpcInput,
2057
+ type EthereumSignTransactionRpcInput as EthereumSignTransactionRpcInput,
2058
+ type EthereumSendTransactionRpcInput as EthereumSendTransactionRpcInput,
2059
+ type EthereumSignTypedDataRpcInput as EthereumSignTypedDataRpcInput,
2060
+ type EthereumSignUserOperationRpcInput as EthereumSignUserOperationRpcInput,
2061
+ type EthereumSign7702AuthorizationRpcInput as EthereumSign7702AuthorizationRpcInput,
2062
+ type EthereumSecp256k1SignRpcInput as EthereumSecp256k1SignRpcInput,
2063
+ type SolanaSignTransactionRpcInput as SolanaSignTransactionRpcInput,
2064
+ type SolanaSignAndSendTransactionRpcInput as SolanaSignAndSendTransactionRpcInput,
2065
+ type SolanaSignMessageRpcInput as SolanaSignMessageRpcInput,
2066
+ type EthereumSignTransactionRpcResponse as EthereumSignTransactionRpcResponse,
2067
+ type EthereumSendTransactionRpcResponse as EthereumSendTransactionRpcResponse,
2068
+ type EthereumPersonalSignRpcResponse as EthereumPersonalSignRpcResponse,
2069
+ type EthereumSignTypedDataRpcResponse as EthereumSignTypedDataRpcResponse,
2070
+ type EthereumSignUserOperationRpcResponse as EthereumSignUserOperationRpcResponse,
2071
+ type EthereumSign7702AuthorizationRpcResponse as EthereumSign7702AuthorizationRpcResponse,
2072
+ type EthereumSecp256k1SignRpcResponse as EthereumSecp256k1SignRpcResponse,
2073
+ type SolanaSignTransactionRpcResponse as SolanaSignTransactionRpcResponse,
2074
+ type SolanaSignAndSendTransactionRpcResponse as SolanaSignAndSendTransactionRpcResponse,
2075
+ type SolanaSignMessageRpcResponse as SolanaSignMessageRpcResponse,
1585
2076
  type WalletExportResponse as WalletExportResponse,
1586
2077
  type WalletInitImportResponse as WalletInitImportResponse,
1587
2078
  type WalletRawSignResponse as WalletRawSignResponse,