@privy-io/api-types 0.20.0 → 0.22.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 (146) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/client.d.mts +25 -16
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +25 -16
  5. package/client.d.ts.map +1 -1
  6. package/client.js +9 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +9 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/actions.d.mts +14 -0
  12. package/resources/actions.d.mts.map +1 -0
  13. package/resources/actions.d.ts +14 -0
  14. package/resources/actions.d.ts.map +1 -0
  15. package/resources/actions.js +9 -0
  16. package/resources/actions.js.map +1 -0
  17. package/resources/actions.mjs +5 -0
  18. package/resources/actions.mjs.map +1 -0
  19. package/resources/apps.d.mts +4 -0
  20. package/resources/apps.d.mts.map +1 -1
  21. package/resources/apps.d.ts +4 -0
  22. package/resources/apps.d.ts.map +1 -1
  23. package/resources/cards.d.mts +449 -0
  24. package/resources/cards.d.mts.map +1 -0
  25. package/resources/cards.d.ts +449 -0
  26. package/resources/cards.d.ts.map +1 -0
  27. package/resources/cards.js +9 -0
  28. package/resources/cards.js.map +1 -0
  29. package/resources/cards.mjs +5 -0
  30. package/resources/cards.mjs.map +1 -0
  31. package/resources/client-auth.d.mts +22 -5
  32. package/resources/client-auth.d.mts.map +1 -1
  33. package/resources/client-auth.d.ts +22 -5
  34. package/resources/client-auth.d.ts.map +1 -1
  35. package/resources/fiat.d.mts +921 -2
  36. package/resources/fiat.d.mts.map +1 -1
  37. package/resources/fiat.d.ts +921 -2
  38. package/resources/fiat.d.ts.map +1 -1
  39. package/resources/fiat.js.map +1 -1
  40. package/resources/fiat.mjs.map +1 -1
  41. package/resources/index.d.mts +11 -8
  42. package/resources/index.d.mts.map +1 -1
  43. package/resources/index.d.ts +11 -8
  44. package/resources/index.d.ts.map +1 -1
  45. package/resources/index.js +7 -1
  46. package/resources/index.js.map +1 -1
  47. package/resources/index.mjs +3 -0
  48. package/resources/index.mjs.map +1 -1
  49. package/resources/intents.d.mts +1 -0
  50. package/resources/intents.d.mts.map +1 -1
  51. package/resources/intents.d.ts +1 -0
  52. package/resources/intents.d.ts.map +1 -1
  53. package/resources/onramps.d.mts +39 -1
  54. package/resources/onramps.d.mts.map +1 -1
  55. package/resources/onramps.d.ts +39 -1
  56. package/resources/onramps.d.ts.map +1 -1
  57. package/resources/onramps.js.map +1 -1
  58. package/resources/onramps.mjs.map +1 -1
  59. package/resources/organizations.d.mts +54 -1
  60. package/resources/organizations.d.mts.map +1 -1
  61. package/resources/organizations.d.ts +54 -1
  62. package/resources/organizations.d.ts.map +1 -1
  63. package/resources/organizations.js.map +1 -1
  64. package/resources/organizations.mjs.map +1 -1
  65. package/resources/policies.d.mts +26 -3
  66. package/resources/policies.d.mts.map +1 -1
  67. package/resources/policies.d.ts +26 -3
  68. package/resources/policies.d.ts.map +1 -1
  69. package/resources/shared.d.mts +31 -1
  70. package/resources/shared.d.mts.map +1 -1
  71. package/resources/shared.d.ts +31 -1
  72. package/resources/shared.d.ts.map +1 -1
  73. package/resources/swaps.d.mts +11 -1
  74. package/resources/swaps.d.mts.map +1 -1
  75. package/resources/swaps.d.ts +11 -1
  76. package/resources/swaps.d.ts.map +1 -1
  77. package/resources/transactions.d.mts +3 -0
  78. package/resources/transactions.d.mts.map +1 -1
  79. package/resources/transactions.d.ts +3 -0
  80. package/resources/transactions.d.ts.map +1 -1
  81. package/resources/wallet-automations.d.mts +387 -0
  82. package/resources/wallet-automations.d.mts.map +1 -0
  83. package/resources/wallet-automations.d.ts +387 -0
  84. package/resources/wallet-automations.d.ts.map +1 -0
  85. package/resources/wallet-automations.js +9 -0
  86. package/resources/wallet-automations.js.map +1 -0
  87. package/resources/wallet-automations.mjs +5 -0
  88. package/resources/wallet-automations.mjs.map +1 -0
  89. package/resources/wallets/actions.d.mts +207 -8
  90. package/resources/wallets/actions.d.mts.map +1 -1
  91. package/resources/wallets/actions.d.ts +207 -8
  92. package/resources/wallets/actions.d.ts.map +1 -1
  93. package/resources/wallets/actions.js.map +1 -1
  94. package/resources/wallets/actions.mjs.map +1 -1
  95. package/resources/wallets/balance.d.mts +3 -3
  96. package/resources/wallets/balance.d.mts.map +1 -1
  97. package/resources/wallets/balance.d.ts +3 -3
  98. package/resources/wallets/balance.d.ts.map +1 -1
  99. package/resources/wallets/index.d.mts +2 -2
  100. package/resources/wallets/index.d.mts.map +1 -1
  101. package/resources/wallets/index.d.ts +2 -2
  102. package/resources/wallets/index.d.ts.map +1 -1
  103. package/resources/wallets/index.js.map +1 -1
  104. package/resources/wallets/index.mjs.map +1 -1
  105. package/resources/wallets/transactions.d.mts +11 -2
  106. package/resources/wallets/transactions.d.mts.map +1 -1
  107. package/resources/wallets/transactions.d.ts +11 -2
  108. package/resources/wallets/transactions.d.ts.map +1 -1
  109. package/resources/wallets/wallets.d.mts +672 -48
  110. package/resources/wallets/wallets.d.mts.map +1 -1
  111. package/resources/wallets/wallets.d.ts +672 -48
  112. package/resources/wallets/wallets.d.ts.map +1 -1
  113. package/resources/wallets/wallets.js.map +1 -1
  114. package/resources/wallets/wallets.mjs.map +1 -1
  115. package/resources/webhooks.d.mts +686 -3
  116. package/resources/webhooks.d.mts.map +1 -1
  117. package/resources/webhooks.d.ts +686 -3
  118. package/resources/webhooks.d.ts.map +1 -1
  119. package/resources/webhooks.js.map +1 -1
  120. package/resources/webhooks.mjs.map +1 -1
  121. package/src/client.ts +481 -0
  122. package/src/resources/actions.ts +17 -0
  123. package/src/resources/apps.ts +5 -0
  124. package/src/resources/cards.ts +586 -0
  125. package/src/resources/client-auth.ts +29 -4
  126. package/src/resources/fiat.ts +1226 -3
  127. package/src/resources/index.ts +236 -0
  128. package/src/resources/intents.ts +2 -0
  129. package/src/resources/onramps.ts +43 -0
  130. package/src/resources/organizations.ts +68 -0
  131. package/src/resources/policies.ts +61 -0
  132. package/src/resources/shared.ts +44 -0
  133. package/src/resources/swaps.ts +13 -1
  134. package/src/resources/transactions.ts +3 -0
  135. package/src/resources/wallet-automations.ts +529 -0
  136. package/src/resources/wallets/actions.ts +261 -7
  137. package/src/resources/wallets/balance.ts +41 -1
  138. package/src/resources/wallets/index.ts +55 -0
  139. package/src/resources/wallets/transactions.ts +11 -1
  140. package/src/resources/wallets/wallets.ts +888 -39
  141. package/src/resources/webhooks.ts +878 -9
  142. package/src/version.ts +1 -1
  143. package/version.d.mts +1 -1
  144. package/version.d.ts +1 -1
  145. package/version.js +1 -1
  146. package/version.mjs +1 -1
@@ -4,6 +4,7 @@ import { APIResource } from '../../core/resource';
4
4
  import * as WalletsAPI from './wallets';
5
5
  import * as AppsAPI from '../apps';
6
6
  import * as SharedAPI from '../shared';
7
+ import * as WalletAutomationsAPI from '../wallet-automations';
7
8
  import * as ActionsAPI from './actions';
8
9
  import {
9
10
  AaveVaultDetails,
@@ -21,6 +22,8 @@ import {
21
22
  EarnIncentiveRewardsQuery,
22
23
  EarnIncentiveRewardsResponse,
23
24
  EarnIncetiveClaimRewardEntry,
25
+ EarnPositionApyAllocation,
26
+ EarnPositionApyType,
24
27
  EarnWithdrawActionResponse,
25
28
  EarnWithdrawRequestBody,
26
29
  EthereumEarnPositionQuery,
@@ -37,9 +40,11 @@ import {
37
40
  ListWalletActionsQuery,
38
41
  ListWalletActionsResponse,
39
42
  MorphoVaultDetails,
43
+ PayoutResponse,
40
44
  SvmTransactionWalletActionStep,
41
45
  SvmWalletActionStepStatus,
42
46
  SwapActionResponse,
47
+ TempoVaultDetails,
43
48
  TransferActionResponse,
44
49
  TvmTransactionWalletActionStep,
45
50
  TvmWalletActionStepStatus,
@@ -473,6 +478,117 @@ export interface AdvancedSwapResponse {
473
478
  */
474
479
  export type AmountType = 'exact_input' | 'exact_output';
475
480
 
481
+ /**
482
+ * A non-empty, 0x-prefixed, even-length BCS hex string.
483
+ */
484
+ export type AptosBcsHex = string;
485
+
486
+ /**
487
+ * Executes the Aptos `aptos_signTransaction` RPC to sign a legacy single-signer
488
+ * Ed25519 RawTransaction. The caller is responsible for broadcasting.
489
+ */
490
+ export interface AptosRpcInput {
491
+ method: 'aptos_signTransaction';
492
+
493
+ /**
494
+ * Parameters for the Aptos `aptos_signTransaction` RPC.
495
+ */
496
+ params: AptosSignTransactionRpcInputParams;
497
+ }
498
+
499
+ /**
500
+ * Response to the Aptos `aptos_signTransaction` RPC.
501
+ */
502
+ export interface AptosRpcResponse {
503
+ /**
504
+ * Data returned by the Aptos `aptos_signTransaction` RPC.
505
+ */
506
+ data: AptosSignTransactionRpcResponseData;
507
+
508
+ method: 'aptos_signTransaction';
509
+ }
510
+
511
+ /**
512
+ * Executes the Aptos `aptos_signTransaction` RPC to sign a legacy single-signer
513
+ * Ed25519 RawTransaction. The caller is responsible for broadcasting.
514
+ */
515
+ export interface AptosSignTransactionRpcInput {
516
+ method: 'aptos_signTransaction';
517
+
518
+ /**
519
+ * Parameters for the Aptos `aptos_signTransaction` RPC.
520
+ */
521
+ params: AptosSignTransactionRpcInputParams;
522
+ }
523
+
524
+ /**
525
+ * Parameters for the Aptos `aptos_signTransaction` RPC.
526
+ */
527
+ export interface AptosSignTransactionRpcInputParams {
528
+ /**
529
+ * A non-empty, 0x-prefixed, even-length BCS hex string.
530
+ */
531
+ transaction: AptosBcsHex;
532
+ }
533
+
534
+ /**
535
+ * Response to the Aptos `aptos_signTransaction` RPC.
536
+ */
537
+ export interface AptosSignTransactionRpcResponse {
538
+ /**
539
+ * Data returned by the Aptos `aptos_signTransaction` RPC.
540
+ */
541
+ data: AptosSignTransactionRpcResponseData;
542
+
543
+ method: 'aptos_signTransaction';
544
+ }
545
+
546
+ /**
547
+ * Data returned by the Aptos `aptos_signTransaction` RPC.
548
+ */
549
+ export interface AptosSignTransactionRpcResponseData {
550
+ encoding: 'hex';
551
+
552
+ /**
553
+ * A non-empty, 0x-prefixed, even-length BCS legacy Ed25519 SignedTransaction.
554
+ */
555
+ signed_transaction: AptosSignedTransactionBcsHex;
556
+ }
557
+
558
+ /**
559
+ * A non-empty, 0x-prefixed, even-length BCS legacy Ed25519 SignedTransaction.
560
+ */
561
+ export type AptosSignedTransactionBcsHex = string;
562
+
563
+ /**
564
+ * Request body for attaching automations to a wallet (wallet ID comes from the
565
+ * URL).
566
+ */
567
+ export interface AttachWalletAutomationRequestBody {
568
+ automation_ids: Array<string>;
569
+
570
+ /**
571
+ * Per-attachment parameters for swap automations.
572
+ */
573
+ params?: WalletAutomationsAPI.SwapAttachmentParams;
574
+ }
575
+
576
+ /**
577
+ * A summary of an automation attached to a wallet.
578
+ */
579
+ export interface AttachedWalletAutomation {
580
+ /**
581
+ * ID of the automation.
582
+ */
583
+ id: string;
584
+
585
+ /**
586
+ * Whether this attachment is currently active — true only if both the attachment
587
+ * and the underlying automation are enabled.
588
+ */
589
+ enabled: boolean;
590
+ }
591
+
476
592
  /**
477
593
  * Dashboard response for a wallet authorization key (includes role, which is an
478
594
  * internal-only concept).
@@ -512,6 +628,203 @@ export interface AuthorizationKeyResponse {
512
628
  */
513
629
  export type AuthorizationKeyRole = 'root' | 'manager' | 'delegated-actions' | null;
514
630
 
631
+ /**
632
+ * Request body for creating a crypto deposit account.
633
+ */
634
+ export type CreateCryptoDepositAccountRequestBody =
635
+ | CreateCryptoDepositAccountWithConfigRequestBody
636
+ | CreateCryptoDepositAccountWithRouteRequestBody;
637
+
638
+ /**
639
+ * Response returned after creating a crypto deposit account.
640
+ */
641
+ export interface CreateCryptoDepositAccountResponse {
642
+ deposit_accounts: Array<CryptoDepositAddressRoute>;
643
+ }
644
+
645
+ /**
646
+ * Creates a crypto deposit account from an existing deposit configuration.
647
+ */
648
+ export interface CreateCryptoDepositAccountWithConfigRequestBody {
649
+ deposit_config_id: string;
650
+
651
+ type: 'deposit_config';
652
+ }
653
+
654
+ /**
655
+ * Creates a crypto deposit account from an inline source and destination.
656
+ */
657
+ export interface CreateCryptoDepositAccountWithRouteRequestBody {
658
+ /**
659
+ * An asset on a chain. Uses a human-readable alias (usdc, tempo) when one is on
660
+ * file, otherwise the raw asset address and CAIP-2.
661
+ */
662
+ destination: CryptoDepositAsset;
663
+
664
+ /**
665
+ * Which assets a deposit address accepts. Asset and chain use human-readable
666
+ * aliases when known.
667
+ */
668
+ source: CryptoDepositAssetFilter;
669
+
670
+ type: 'inline_route';
671
+ }
672
+
673
+ /**
674
+ * EVM CAIP-2 chain identifier (e.g. "eip155:4217" for Tempo, "eip155:1" for
675
+ * Ethereum).
676
+ */
677
+ export type CryptoDepositAccountCaip2 = string;
678
+
679
+ /**
680
+ * Chain metadata for rendering the crypto deposit-account source picker.
681
+ */
682
+ export interface CryptoDepositAccountChain {
683
+ /**
684
+ * EVM CAIP-2 chain identifier (e.g. "eip155:4217" for Tempo, "eip155:1" for
685
+ * Ethereum).
686
+ */
687
+ caip2: CryptoDepositAccountCaip2;
688
+
689
+ /**
690
+ * Numeric chain id used by some clients as an alias.
691
+ */
692
+ chain_id: number;
693
+
694
+ display_name: string;
695
+
696
+ /**
697
+ * URL of the chain icon.
698
+ */
699
+ icon_url: string;
700
+
701
+ /**
702
+ * Execution VM, e.g. evm or svm.
703
+ */
704
+ vm_type: string;
705
+ }
706
+
707
+ /**
708
+ * Source-token catalog for crypto deposit accounts. Only automation-sweepable,
709
+ * gas-sponsored mainnets.
710
+ */
711
+ export interface CryptoDepositAccountConfigResponse {
712
+ chains: { [key: string]: CryptoDepositAccountChain };
713
+
714
+ currencies: Array<CryptoDepositAccountSourceCurrency>;
715
+ }
716
+
717
+ /**
718
+ * A token contract on one source chain in the crypto deposit-account catalog.
719
+ */
720
+ export interface CryptoDepositAccountSourceChain {
721
+ /**
722
+ * Token contract or native asset address on this chain.
723
+ */
724
+ address: string;
725
+
726
+ /**
727
+ * EVM CAIP-2 chain identifier (e.g. "eip155:4217" for Tempo, "eip155:1" for
728
+ * Ethereum).
729
+ */
730
+ caip2: CryptoDepositAccountCaip2;
731
+
732
+ /**
733
+ * Token decimals on this chain.
734
+ */
735
+ decimals: number;
736
+ }
737
+
738
+ /**
739
+ * A source token in the crypto deposit-account catalog, with the chains it can be
740
+ * sent from.
741
+ */
742
+ export interface CryptoDepositAccountSourceCurrency {
743
+ chains: Array<CryptoDepositAccountSourceChain>;
744
+
745
+ /**
746
+ * URL of the token logo.
747
+ */
748
+ logo_uri: string;
749
+
750
+ name: string;
751
+
752
+ symbol: string;
753
+ }
754
+
755
+ /**
756
+ * One deposit address and the source/destination route it accepts.
757
+ */
758
+ export interface CryptoDepositAddressRoute {
759
+ deposit_address: string;
760
+
761
+ /**
762
+ * An asset on a chain. Uses a human-readable alias (usdc, tempo) when one is on
763
+ * file, otherwise the raw asset address and CAIP-2.
764
+ */
765
+ destination: CryptoDepositAsset;
766
+
767
+ /**
768
+ * Which assets a deposit address accepts. Asset and chain use human-readable
769
+ * aliases when known.
770
+ */
771
+ source: CryptoDepositAssetFilter;
772
+
773
+ wallet_id: string;
774
+ }
775
+
776
+ /**
777
+ * An asset on a chain. Uses a human-readable alias (usdc, tempo) when one is on
778
+ * file, otherwise the raw asset address and CAIP-2.
779
+ */
780
+ export interface CryptoDepositAsset {
781
+ /**
782
+ * Known alias (usdc) or raw asset address.
783
+ */
784
+ asset: string;
785
+
786
+ /**
787
+ * Known alias (base) or CAIP-2. Omit on a source value to match every supported
788
+ * chain for that asset.
789
+ */
790
+ chain?: string;
791
+ }
792
+
793
+ /**
794
+ * Which assets a deposit address accepts. Asset and chain use human-readable
795
+ * aliases when known.
796
+ */
797
+ export type CryptoDepositAssetFilter =
798
+ | CryptoDepositAssetFilterAll
799
+ | CryptoDepositAssetFilterInclude
800
+ | CryptoDepositAssetFilterExclude;
801
+
802
+ /**
803
+ * Match all assets.
804
+ */
805
+ export interface CryptoDepositAssetFilterAll {
806
+ mode: 'all';
807
+ }
808
+
809
+ /**
810
+ * Match all assets except the specified ones, using human-readable aliases when
811
+ * known.
812
+ */
813
+ export interface CryptoDepositAssetFilterExclude {
814
+ mode: 'exclude';
815
+
816
+ values: Array<CryptoDepositAsset>;
817
+ }
818
+
819
+ /**
820
+ * Match only the specified assets, using human-readable aliases when known.
821
+ */
822
+ export interface CryptoDepositAssetFilterInclude {
823
+ mode: 'include';
824
+
825
+ values: Array<CryptoDepositAsset>;
826
+ }
827
+
515
828
  /**
516
829
  * The wallet chain types that support curve-based signing.
517
830
  */
@@ -527,7 +840,8 @@ export type CurveSigningChainType =
527
840
  | 'pearl'
528
841
  | 'near'
529
842
  | 'ton'
530
- | 'starknet';
843
+ | 'starknet'
844
+ | 'xrpl';
531
845
 
532
846
  /**
533
847
  * The cryptographic curve type used by the wallet.
@@ -543,9 +857,9 @@ export interface CustodialWallet {
543
857
  address: string;
544
858
 
545
859
  /**
546
- * The chain type of the custodial wallet.
860
+ * The chain of the custodial wallet.
547
861
  */
548
- chain_type: CustodialWalletChainType;
862
+ chain: CustodialWalletChain;
549
863
 
550
864
  /**
551
865
  * Information about the custodian managing this wallet.
@@ -562,11 +876,21 @@ export interface CustodialWallet {
562
876
  */
563
877
  additional_signers?: WalletAdditionalSigner;
564
878
 
879
+ /**
880
+ * @deprecated The chain type of the custodial wallet (deprecated).
881
+ */
882
+ chain_type?: CustodialWalletChainType;
883
+
565
884
  policy_ids?: Array<string>;
566
885
  }
567
886
 
568
887
  /**
569
- * The chain type of the custodial wallet.
888
+ * The chain of the custodial wallet.
889
+ */
890
+ export type CustodialWalletChain = 'base' | 'solana' | 'tempo';
891
+
892
+ /**
893
+ * The chain type of the custodial wallet (deprecated).
570
894
  */
571
895
  export type CustodialWalletChainType = 'ethereum' | 'solana';
572
896
 
@@ -574,11 +898,6 @@ export type CustodialWalletChainType = 'ethereum' | 'solana';
574
898
  * The input for creating a custodial wallet.
575
899
  */
576
900
  export interface CustodialWalletCreateInput {
577
- /**
578
- * The chain type of the custodial wallet.
579
- */
580
- chain_type: CustodialWalletChainType;
581
-
582
901
  /**
583
902
  * The provider of the custodial wallet.
584
903
  */
@@ -595,6 +914,16 @@ export interface CustodialWalletCreateInput {
595
914
  */
596
915
  additional_signers?: AdditionalSignerInput;
597
916
 
917
+ /**
918
+ * The chain of the custodial wallet.
919
+ */
920
+ chain?: CustodialWalletChain;
921
+
922
+ /**
923
+ * @deprecated The chain type of the custodial wallet (deprecated).
924
+ */
925
+ chain_type?: CustodialWalletChainType;
926
+
598
927
  /**
599
928
  * The owner of the resource, specified as a Privy user ID, a P-256 public key, or
600
929
  * null to remove the current owner.
@@ -639,6 +968,14 @@ export interface CustomTokenTransferSource {
639
968
  amount?: string;
640
969
  }
641
970
 
971
+ /**
972
+ * Request body for detaching automations from a wallet (wallet ID comes from the
973
+ * URL).
974
+ */
975
+ export interface DetachWalletAutomationRequestBody {
976
+ automation_ids: Array<string>;
977
+ }
978
+
642
979
  /**
643
980
  * Estimated fee paid to the developer.
644
981
  */
@@ -709,6 +1046,11 @@ export interface EncryptedWalletAuthenticateResponse {
709
1046
  wallets: Array<Wallet>;
710
1047
  }
711
1048
 
1049
+ /**
1050
+ * A Privy entity ID.
1051
+ */
1052
+ export type EntityID = string;
1053
+
712
1054
  /**
713
1055
  * Executes the EVM `personal_sign` RPC (EIP-191) to sign a message.
714
1056
  */
@@ -962,6 +1304,9 @@ export interface EthereumSendTransactionRpcInput {
962
1304
  */
963
1305
  experimental_data_suffix?: Hex;
964
1306
 
1307
+ /**
1308
+ * Developer-provided identifier for this request. Must be unique per app.
1309
+ */
965
1310
  reference_id?: string;
966
1311
 
967
1312
  sponsor?: boolean;
@@ -1009,6 +1354,9 @@ export interface EthereumSendTransactionRpcResponseData {
1009
1354
 
1010
1355
  hash: string;
1011
1356
 
1357
+ /**
1358
+ * Developer-provided reference ID, if one was included in the request.
1359
+ */
1012
1360
  reference_id?: string | null;
1013
1361
 
1014
1362
  transaction_id?: string;
@@ -1379,6 +1727,7 @@ export type ExtendedChainType =
1379
1727
  | 'near'
1380
1728
  | 'ton'
1381
1729
  | 'starknet'
1730
+ | 'xrpl'
1382
1731
  | 'spark';
1383
1732
 
1384
1733
  /**
@@ -1445,6 +1794,34 @@ export interface GetByWalletAddressRequestBody {
1445
1794
  include_archived?: boolean;
1446
1795
  }
1447
1796
 
1797
+ /**
1798
+ * The next crypto deposit-account sweep into the path wallet after `after`, or
1799
+ * null if none. The order object matches GET order.
1800
+ */
1801
+ export interface GetCryptoDepositAccountNextOrderResponse {
1802
+ /**
1803
+ * A crypto deposit-account sweep identified by its wallet action ID. Status is the
1804
+ * wallet-action status.
1805
+ */
1806
+ order: GetCryptoDepositAccountOrderResponse | null;
1807
+ }
1808
+
1809
+ /**
1810
+ * A crypto deposit-account sweep identified by its wallet action ID. Status is the
1811
+ * wallet-action status.
1812
+ */
1813
+ export interface GetCryptoDepositAccountOrderResponse {
1814
+ /**
1815
+ * Wallet action ID of the deposit sweep.
1816
+ */
1817
+ id: string;
1818
+
1819
+ /**
1820
+ * Status of a wallet action.
1821
+ */
1822
+ status: ActionsAPI.WalletActionStatus;
1823
+ }
1824
+
1448
1825
  /**
1449
1826
  * The input for HD wallets.
1450
1827
  */
@@ -1456,7 +1833,7 @@ export interface HDInitInput {
1456
1833
 
1457
1834
  /**
1458
1835
  * The chain type of the wallet to import. Supports `ethereum`, `solana`,
1459
- * `stellar`, `tron`, `sui`, and `aptos`.
1836
+ * `stellar`, `tron`, `sui`, `aptos`, and `xrpl`.
1460
1837
  */
1461
1838
  chain_type: WalletImportSupportedChains;
1462
1839
 
@@ -1492,7 +1869,7 @@ export interface HDSubmitInput {
1492
1869
 
1493
1870
  /**
1494
1871
  * The chain type of the wallet to import. Supports `ethereum`, `solana`,
1495
- * `stellar`, `tron`, `sui`, and `aptos`.
1872
+ * `stellar`, `tron`, `sui`, `aptos`, and `xrpl`.
1496
1873
  */
1497
1874
  chain_type: WalletImportSupportedChains;
1498
1875
 
@@ -1579,14 +1956,23 @@ export interface IntentBinding {
1579
1956
  type: 'intent';
1580
1957
  }
1581
1958
 
1959
+ /**
1960
+ * A page of active crypto deposit accounts for a destination wallet.
1961
+ */
1962
+ export interface ListCryptoDepositAccountsResponse {
1963
+ data: Array<CryptoDepositAddressRoute>;
1964
+
1965
+ next_cursor: string | null;
1966
+ }
1967
+
1582
1968
  /**
1583
1969
  * Source for a transfer identified by a named asset (e.g. "usdc", "eth"). Use this
1584
1970
  * variant for first-class assets maintained by Privy.
1585
1971
  */
1586
1972
  export interface NamedTokenTransferSource {
1587
1973
  /**
1588
- * The asset to transfer. Supported: 'usdc', 'usdb', 'usdt', 'pathusd'
1589
- * (stablecoins), 'eth' (native Ethereum), 'sol' (native Solana).
1974
+ * The asset to transfer. Supported: 'usdc', 'usdb', 'usdt', 'eurc', 'ousd',
1975
+ * 'pathusd' (stablecoins), 'eth' (native Ethereum), 'sol' (native Solana).
1590
1976
  */
1591
1977
  asset: string;
1592
1978
 
@@ -1606,6 +1992,88 @@ export interface NamedTokenTransferSource {
1606
1992
  amount?: string;
1607
1993
  }
1608
1994
 
1995
+ /**
1996
+ * Executes the NEAR `near_signTransaction` RPC to sign a transaction. The caller
1997
+ * is responsible for broadcasting.
1998
+ */
1999
+ export interface NearRpcRequestBody {
2000
+ method: 'near_signTransaction';
2001
+
2002
+ /**
2003
+ * Parameters for the NEAR `near_signTransaction` RPC.
2004
+ */
2005
+ params: NearSignTransactionRpcRequestBodyParams;
2006
+ }
2007
+
2008
+ /**
2009
+ * Response to the NEAR `near_signTransaction` RPC.
2010
+ */
2011
+ export interface NearRpcResponse {
2012
+ /**
2013
+ * Data returned by the NEAR `near_signTransaction` RPC.
2014
+ */
2015
+ data: NearSignTransactionRpcResponseData;
2016
+
2017
+ method: 'near_signTransaction';
2018
+ }
2019
+
2020
+ /**
2021
+ * Executes the NEAR `near_signTransaction` RPC to sign a transaction. The caller
2022
+ * is responsible for broadcasting.
2023
+ */
2024
+ export interface NearSignTransactionRpcRequestBody {
2025
+ method: 'near_signTransaction';
2026
+
2027
+ /**
2028
+ * Parameters for the NEAR `near_signTransaction` RPC.
2029
+ */
2030
+ params: NearSignTransactionRpcRequestBodyParams;
2031
+ }
2032
+
2033
+ /**
2034
+ * Parameters for the NEAR `near_signTransaction` RPC.
2035
+ */
2036
+ export interface NearSignTransactionRpcRequestBodyParams {
2037
+ /**
2038
+ * A non-empty, base64-encoded Borsh NEAR Transaction.
2039
+ */
2040
+ transaction: NearUnsignedTransactionBorshBase64;
2041
+ }
2042
+
2043
+ /**
2044
+ * Response to the NEAR `near_signTransaction` RPC.
2045
+ */
2046
+ export interface NearSignTransactionRpcResponse {
2047
+ /**
2048
+ * Data returned by the NEAR `near_signTransaction` RPC.
2049
+ */
2050
+ data: NearSignTransactionRpcResponseData;
2051
+
2052
+ method: 'near_signTransaction';
2053
+ }
2054
+
2055
+ /**
2056
+ * Data returned by the NEAR `near_signTransaction` RPC.
2057
+ */
2058
+ export interface NearSignTransactionRpcResponseData {
2059
+ encoding: 'base64';
2060
+
2061
+ /**
2062
+ * A non-empty, base64-encoded NEAR Ed25519 SignedTransaction.
2063
+ */
2064
+ signed_transaction: NearSignedTransactionBorshBase64;
2065
+ }
2066
+
2067
+ /**
2068
+ * A non-empty, base64-encoded NEAR Ed25519 SignedTransaction.
2069
+ */
2070
+ export type NearSignedTransactionBorshBase64 = string;
2071
+
2072
+ /**
2073
+ * A non-empty, base64-encoded Borsh NEAR Transaction.
2074
+ */
2075
+ export type NearUnsignedTransactionBorshBase64 = string;
2076
+
1609
2077
  /**
1610
2078
  * A Spark token output with its previous transaction data.
1611
2079
  */
@@ -1674,7 +2142,7 @@ export interface PrivateKeyInitInput {
1674
2142
 
1675
2143
  /**
1676
2144
  * The chain type of the wallet to import. Supports `ethereum`, `solana`,
1677
- * `stellar`, `tron`, `sui`, and `aptos`.
2145
+ * `stellar`, `tron`, `sui`, `aptos`, and `xrpl`.
1678
2146
  */
1679
2147
  chain_type: WalletImportSupportedChains;
1680
2148
 
@@ -1697,7 +2165,7 @@ export interface PrivateKeySubmitInput {
1697
2165
 
1698
2166
  /**
1699
2167
  * The chain type of the wallet to import. Supports `ethereum`, `solana`,
1700
- * `stellar`, `tron`, `sui`, and `aptos`.
2168
+ * `stellar`, `tron`, `sui`, `aptos`, and `xrpl`.
1701
2169
  */
1702
2170
  chain_type: WalletImportSupportedChains;
1703
2171
 
@@ -2000,6 +2468,9 @@ export interface SolanaSignAndSendTransactionRpcInput {
2000
2468
 
2001
2469
  optimistic_broadcast?: boolean;
2002
2470
 
2471
+ /**
2472
+ * Developer-provided identifier for this request. Must be unique per app.
2473
+ */
2003
2474
  reference_id?: string;
2004
2475
 
2005
2476
  sponsor?: boolean;
@@ -2045,6 +2516,9 @@ export interface SolanaSignAndSendTransactionRpcResponseData {
2045
2516
 
2046
2517
  hash: string;
2047
2518
 
2519
+ /**
2520
+ * Developer-provided reference ID, if one was included in the request.
2521
+ */
2048
2522
  reference_id?: string | null;
2049
2523
 
2050
2524
  signed_transaction?: string;
@@ -3113,7 +3587,9 @@ export type TransactionChainNameInput =
3113
3587
  | 'optimism'
3114
3588
  | 'polygon'
3115
3589
  | 'solana'
3116
- | 'sepolia';
3590
+ | 'sepolia'
3591
+ | 'arc'
3592
+ | (string & {});
3117
3593
 
3118
3594
  /**
3119
3595
  * Details of a wallet transaction, varying by transaction type.
@@ -3232,6 +3708,7 @@ export interface TransferReceivedTransactionDetail {
3232
3708
  | 'usdt'
3233
3709
  | 'eurc'
3234
3710
  | 'usdb'
3711
+ | 'ousd'
3235
3712
  | 'pathusd'
3236
3713
  | 'sol'
3237
3714
  | 'trx'
@@ -3292,6 +3769,17 @@ export interface TransferRequestBody {
3292
3769
  */
3293
3770
  fee_configuration?: FeeConfiguration;
3294
3771
 
3772
+ /**
3773
+ * Unique caller-generated nonce used to prevent replaying a signed wallet action
3774
+ * request. Must be at least 24 characters (e.g. a cuid2 or UUID).
3775
+ */
3776
+ nonce?: WalletActionNonce;
3777
+
3778
+ /**
3779
+ * Developer-provided identifier for this request. Must be unique per app.
3780
+ */
3781
+ reference_id?: string;
3782
+
3295
3783
  /**
3296
3784
  * Maximum allowed slippage in basis points (1 bps = 0.01%). Only applicable for
3297
3785
  * cross-chain or cross-asset transfers; omit to use the provider default.
@@ -3313,6 +3801,7 @@ export interface TransferSentTransactionDetail {
3313
3801
  | 'usdt'
3314
3802
  | 'eurc'
3315
3803
  | 'usdb'
3804
+ | 'ousd'
3316
3805
  | 'pathusd'
3317
3806
  | 'sol'
3318
3807
  | 'trx'
@@ -3854,6 +4343,16 @@ export interface Wallet {
3854
4343
  */
3855
4344
  authorization_threshold?: number;
3856
4345
 
4346
+ /**
4347
+ * Automations attached to the wallet, including disabled ones.
4348
+ */
4349
+ automations?: Array<AttachedWalletAutomation>;
4350
+
4351
+ /**
4352
+ * The chain of the custodial wallet.
4353
+ */
4354
+ chain?: CustodialWalletChain;
4355
+
3857
4356
  /**
3858
4357
  * Information about the custodian managing this wallet.
3859
4358
  */
@@ -3870,8 +4369,9 @@ export interface Wallet {
3870
4369
  entity?: WalletEntity | null;
3871
4370
 
3872
4371
  /**
3873
- * A customer-provided identifier for mapping to external systems. Write-once, set
3874
- * only at creation.
4372
+ * A customer-provided identifier for mapping to external systems. URL-safe
4373
+ * characters only ([a-zA-Z0-9_-]), max 64 chars. Write-once: cannot be changed
4374
+ * once set.
3875
4375
  */
3876
4376
  external_id?: string;
3877
4377
 
@@ -3882,6 +4382,12 @@ export interface Wallet {
3882
4382
  public_key?: string;
3883
4383
  }
3884
4384
 
4385
+ /**
4386
+ * Unique caller-generated nonce used to prevent replaying a signed wallet action
4387
+ * request. Must be at least 24 characters (e.g. a cuid2 or UUID).
4388
+ */
4389
+ export type WalletActionNonce = string;
4390
+
3885
4391
  /**
3886
4392
  * Additional signers for the wallet.
3887
4393
  */
@@ -3938,6 +4444,7 @@ export type WalletAsset =
3938
4444
  | 'usdt'
3939
4445
  | 'eurc'
3940
4446
  | 'usdb'
4447
+ | 'ousd'
3941
4448
  | 'pathusd'
3942
4449
  | 'sol'
3943
4450
  | 'trx';
@@ -3958,6 +4465,16 @@ export type WalletAssetChainNameInput =
3958
4465
  | 'solana'
3959
4466
  | 'tron'
3960
4467
  | 'zksync_era'
4468
+ | 'robinhood'
4469
+ | 'unichain'
4470
+ | 'worldchain'
4471
+ | 'ink'
4472
+ | 'soneium'
4473
+ | 'megaeth'
4474
+ | 'hyperevm'
4475
+ | 'hypercore'
4476
+ | 'arc'
4477
+ | 'tempo_testnet'
3961
4478
  | 'hoodi'
3962
4479
  | 'sepolia'
3963
4480
  | 'arbitrum_sepolia'
@@ -3966,9 +4483,13 @@ export type WalletAssetChainNameInput =
3966
4483
  | 'linea_testnet'
3967
4484
  | 'optimism_sepolia'
3968
4485
  | 'polygon_amoy'
4486
+ | 'bsc_testnet'
3969
4487
  | 'solana_devnet'
3970
4488
  | 'solana_testnet'
3971
- | 'tron_nile';
4489
+ | 'tron_nile'
4490
+ | 'robinhood_testnet'
4491
+ | 'ink_sepolia'
4492
+ | (string & {});
3972
4493
 
3973
4494
  /**
3974
4495
  * Request body for creating an encrypted, bound user signing key.
@@ -4067,6 +4588,38 @@ export interface WalletAuthorizationHeaders {
4067
4588
  'privy-request-expiry'?: string;
4068
4589
  }
4069
4590
 
4591
+ /**
4592
+ * List of wallet automation attachments.
4593
+ */
4594
+ export interface WalletAutomationAttachmentListResponse {
4595
+ data: Array<WalletAutomationAttachmentResponse>;
4596
+ }
4597
+
4598
+ /**
4599
+ * A wallet automation attachment linking an automation to a specific wallet.
4600
+ */
4601
+ export interface WalletAutomationAttachmentResponse {
4602
+ id: string;
4603
+
4604
+ automation_id: string;
4605
+
4606
+ created_at: string;
4607
+
4608
+ /**
4609
+ * Per-attachment parameters for swap automations.
4610
+ */
4611
+ params: WalletAutomationsAPI.SwapAttachmentParams | null;
4612
+
4613
+ /**
4614
+ * Automation lifecycle state: 'enabled' = running, 'disabled' = not running.
4615
+ */
4616
+ status: WalletAutomationsAPI.WalletAutomationStatus;
4617
+
4618
+ updated_at: string;
4619
+
4620
+ wallet_id: string;
4621
+ }
4622
+
4070
4623
  /**
4071
4624
  * Request body for batch wallet creation.
4072
4625
  */
@@ -4155,6 +4708,11 @@ export interface WalletBatchItemInput {
4155
4708
  */
4156
4709
  display_name?: string;
4157
4710
 
4711
+ /**
4712
+ * Request body for assigning an entity to a wallet.
4713
+ */
4714
+ entity?: WalletEntityAssignmentRequestBody;
4715
+
4158
4716
  /**
4159
4717
  * A customer-provided identifier for mapping to external systems. URL-safe
4160
4718
  * characters only ([a-zA-Z0-9_-]), max 64 chars. Write-once: cannot be changed
@@ -4199,6 +4757,7 @@ export type WalletChainType =
4199
4757
  | 'near'
4200
4758
  | 'ton'
4201
4759
  | 'starknet'
4760
+ | 'xrpl'
4202
4761
  | 'spark';
4203
4762
 
4204
4763
  /**
@@ -4236,13 +4795,66 @@ export interface WalletCustodian {
4236
4795
  */
4237
4796
  export interface WalletEntity {
4238
4797
  /**
4239
- * The Privy DID of the entity.
4798
+ * A Privy entity ID.
4799
+ */
4800
+ id: EntityID;
4801
+
4802
+ /**
4803
+ * The type of entity a wallet is attributed to.
4804
+ */
4805
+ type: WalletEntityType;
4806
+ }
4807
+
4808
+ /**
4809
+ * Request body for assigning an entity to a wallet.
4810
+ */
4811
+ export interface WalletEntityAssignmentRequestBody {
4812
+ /**
4813
+ * A Privy entity ID.
4814
+ */
4815
+ id: EntityID;
4816
+
4817
+ /**
4818
+ * The type of entity a wallet is attributed to.
4819
+ */
4820
+ type: WalletEntityType;
4821
+ }
4822
+
4823
+ /**
4824
+ * The entity assignment for a wallet.
4825
+ */
4826
+ export interface WalletEntityAssignmentResponse {
4827
+ /**
4828
+ * Unique wallet entity assignment identifier.
4240
4829
  */
4241
4830
  id: string;
4242
4831
 
4243
- type: 'user';
4832
+ /**
4833
+ * Unix timestamp when the assignment was created.
4834
+ */
4835
+ created_at: number;
4836
+
4837
+ /**
4838
+ * The entity a wallet is attributed to.
4839
+ */
4840
+ entity: WalletEntity;
4841
+
4842
+ /**
4843
+ * Unix timestamp when the assignment was last updated.
4844
+ */
4845
+ updated_at: number;
4846
+
4847
+ /**
4848
+ * ID of the assigned wallet.
4849
+ */
4850
+ wallet_id: string;
4244
4851
  }
4245
4852
 
4853
+ /**
4854
+ * The type of entity a wallet is attributed to.
4855
+ */
4856
+ export type WalletEntityType = 'user' | 'organization';
4857
+
4246
4858
  /**
4247
4859
  * The entropy type of the wallet.
4248
4860
  */
@@ -4261,6 +4873,7 @@ export type WalletEthereumAsset =
4261
4873
  | 'usdt'
4262
4874
  | 'eurc'
4263
4875
  | 'usdb'
4876
+ | 'ousd'
4264
4877
  | 'pathusd';
4265
4878
 
4266
4879
  /**
@@ -4318,9 +4931,16 @@ export interface WalletImportInitResponse {
4318
4931
 
4319
4932
  /**
4320
4933
  * The chain type of the wallet to import. Supports `ethereum`, `solana`,
4321
- * `stellar`, `tron`, `sui`, and `aptos`.
4934
+ * `stellar`, `tron`, `sui`, `aptos`, and `xrpl`.
4322
4935
  */
4323
- export type WalletImportSupportedChains = 'ethereum' | 'solana' | 'stellar' | 'tron' | 'sui' | 'aptos';
4936
+ export type WalletImportSupportedChains =
4937
+ | 'ethereum'
4938
+ | 'solana'
4939
+ | 'stellar'
4940
+ | 'tron'
4941
+ | 'sui'
4942
+ | 'aptos'
4943
+ | 'xrpl';
4324
4944
 
4325
4945
  /**
4326
4946
  * The entropy type of the wallet to import. Supports `private-key` for raw private
@@ -4347,6 +4967,7 @@ export type WalletRpcRequestBody =
4347
4967
  | EthereumSign7702AuthorizationRpcInput
4348
4968
  | EthereumSignUserOperationRpcInput
4349
4969
  | EthereumSendCallsRpcInput
4970
+ | AptosSignTransactionRpcInput
4350
4971
  | SolanaSignTransactionRpcInput
4351
4972
  | SolanaSignAndSendTransactionRpcInput
4352
4973
  | SolanaSignMessageRpcInput
@@ -4363,6 +4984,8 @@ export type WalletRpcRequestBody =
4363
4984
  | SparkGetWithdrawalFeeQuoteRpcInput
4364
4985
  | TronSignTransactionRpcInput
4365
4986
  | TronSendTransactionRpcInput
4987
+ | XrplSignTransactionRpcInput
4988
+ | NearSignTransactionRpcRequestBody
4366
4989
  | ExportPrivateKeyRpcInput
4367
4990
  | ExportSeedPhraseRpcInput;
4368
4991
 
@@ -4378,6 +5001,7 @@ export type WalletRpcResponse =
4378
5001
  | EthereumSign7702AuthorizationRpcResponse
4379
5002
  | EthereumSecp256k1SignRpcResponse
4380
5003
  | EthereumSendCallsRpcResponse
5004
+ | AptosSignTransactionRpcResponse
4381
5005
  | SolanaSignMessageRpcResponse
4382
5006
  | SolanaSignTransactionRpcResponse
4383
5007
  | SolanaSignAndSendTransactionRpcResponse
@@ -4394,13 +5018,15 @@ export type WalletRpcResponse =
4394
5018
  | SparkGetWithdrawalFeeQuoteRpcResponse
4395
5019
  | TronSignTransactionRpcResponse
4396
5020
  | TronSendTransactionRpcResponse
5021
+ | XrplSignTransactionRpcResponse
5022
+ | NearSignTransactionRpcResponse
4397
5023
  | ExportPrivateKeyRpcResponse
4398
5024
  | ExportSeedPhraseRpcResponse;
4399
5025
 
4400
5026
  /**
4401
5027
  * A named asset on Solana.
4402
5028
  */
4403
- export type WalletSolanaAsset = 'sol' | 'usdc' | 'eurc' | 'usdb';
5029
+ export type WalletSolanaAsset = 'sol' | 'usdc' | 'eurc' | 'usdb' | 'ousd';
4404
5030
 
4405
5031
  /**
4406
5032
  * A named asset on Tron.
@@ -4422,6 +5048,13 @@ export interface WalletUpdateRequestBody {
4422
5048
  */
4423
5049
  display_name?: string | null;
4424
5050
 
5051
+ /**
5052
+ * A customer-provided identifier for mapping to external systems. URL-safe
5053
+ * characters only ([a-zA-Z0-9_-]), max 64 chars. Write-once: cannot be changed
5054
+ * once set.
5055
+ */
5056
+ external_id?: string;
5057
+
4425
5058
  /**
4426
5059
  * The owner of the resource, specified as a Privy user ID, a P-256 public key, or
4427
5060
  * null to remove the current owner.
@@ -4441,6 +5074,76 @@ export interface WalletUpdateRequestBody {
4441
5074
  policy_ids?: Array<string>;
4442
5075
  }
4443
5076
 
5077
+ /**
5078
+ * Executes the XRPL `xrpl_signTransaction` RPC to sign a transaction. The caller
5079
+ * is responsible for broadcasting.
5080
+ */
5081
+ export interface XrplRpcInput {
5082
+ method: 'xrpl_signTransaction';
5083
+
5084
+ /**
5085
+ * Parameters for the XRPL `xrpl_signTransaction` RPC.
5086
+ */
5087
+ params: XrplSignTransactionRpcInputParams;
5088
+ }
5089
+
5090
+ /**
5091
+ * Response to the XRPL `xrpl_signTransaction` RPC.
5092
+ */
5093
+ export interface XrplRpcResponse {
5094
+ /**
5095
+ * Data returned by the XRPL `xrpl_signTransaction` RPC.
5096
+ */
5097
+ data: XrplSignTransactionRpcResponseData;
5098
+
5099
+ method: 'xrpl_signTransaction';
5100
+ }
5101
+
5102
+ /**
5103
+ * Executes the XRPL `xrpl_signTransaction` RPC to sign a transaction. The caller
5104
+ * is responsible for broadcasting.
5105
+ */
5106
+ export interface XrplSignTransactionRpcInput {
5107
+ method: 'xrpl_signTransaction';
5108
+
5109
+ /**
5110
+ * Parameters for the XRPL `xrpl_signTransaction` RPC.
5111
+ */
5112
+ params: XrplSignTransactionRpcInputParams;
5113
+ }
5114
+
5115
+ /**
5116
+ * Parameters for the XRPL `xrpl_signTransaction` RPC.
5117
+ */
5118
+ export interface XrplSignTransactionRpcInputParams {
5119
+ encoding: 'hex';
5120
+
5121
+ transaction: string;
5122
+ }
5123
+
5124
+ /**
5125
+ * Response to the XRPL `xrpl_signTransaction` RPC.
5126
+ */
5127
+ export interface XrplSignTransactionRpcResponse {
5128
+ /**
5129
+ * Data returned by the XRPL `xrpl_signTransaction` RPC.
5130
+ */
5131
+ data: XrplSignTransactionRpcResponseData;
5132
+
5133
+ method: 'xrpl_signTransaction';
5134
+ }
5135
+
5136
+ /**
5137
+ * Data returned by the XRPL `xrpl_signTransaction` RPC.
5138
+ */
5139
+ export interface XrplSignTransactionRpcResponseData {
5140
+ encoding: 'hex';
5141
+
5142
+ signed_transaction: string;
5143
+
5144
+ txn_signature: string;
5145
+ }
5146
+
4444
5147
  export interface WalletCreateParams {
4445
5148
  /**
4446
5149
  * Body param: The wallet chain types.
@@ -4458,9 +5161,9 @@ export interface WalletCreateParams {
4458
5161
  display_name?: string;
4459
5162
 
4460
5163
  /**
4461
- * Body param: The entity the wallet is attributed to.
5164
+ * Body param: Request body for assigning an entity to a wallet.
4462
5165
  */
4463
- entity?: WalletCreateParams.Entity;
5166
+ entity?: WalletEntityAssignmentRequestBody;
4464
5167
 
4465
5168
  /**
4466
5169
  * Body param: A customer-provided identifier for mapping to external systems.
@@ -4493,17 +5196,6 @@ export interface WalletCreateParams {
4493
5196
  'privy-idempotency-key'?: string;
4494
5197
  }
4495
5198
 
4496
- export namespace WalletCreateParams {
4497
- /**
4498
- * The entity the wallet is attributed to.
4499
- */
4500
- export interface Entity {
4501
- id: string;
4502
-
4503
- type: 'user';
4504
- }
4505
- }
4506
-
4507
5199
  export interface WalletUpdateParams {
4508
5200
  /**
4509
5201
  * Body param: Additional signers for the wallet.
@@ -4515,6 +5207,13 @@ export interface WalletUpdateParams {
4515
5207
  */
4516
5208
  display_name?: string | null;
4517
5209
 
5210
+ /**
5211
+ * Body param: A customer-provided identifier for mapping to external systems.
5212
+ * URL-safe characters only ([a-zA-Z0-9_-]), max 64 chars. Write-once: cannot be
5213
+ * changed once set.
5214
+ */
5215
+ external_id?: string;
5216
+
4518
5217
  /**
4519
5218
  * Body param: The owner of the resource, specified as a Privy user ID, a P-256
4520
5219
  * public key, or null to remove the current owner.
@@ -4659,6 +5358,7 @@ export type WalletRpcParams =
4659
5358
  | WalletRpcParams.EthereumSign7702AuthorizationRpcInput
4660
5359
  | WalletRpcParams.EthereumSignUserOperationRpcInput
4661
5360
  | WalletRpcParams.EthereumSendCallsRpcInput
5361
+ | WalletRpcParams.AptosSignTransactionRpcInput
4662
5362
  | WalletRpcParams.SolanaSignTransactionRpcInput
4663
5363
  | WalletRpcParams.SolanaSignAndSendTransactionRpcInput
4664
5364
  | WalletRpcParams.SolanaSignMessageRpcInput
@@ -4675,6 +5375,8 @@ export type WalletRpcParams =
4675
5375
  | WalletRpcParams.SparkGetWithdrawalFeeQuoteRpcInput
4676
5376
  | WalletRpcParams.TronSignTransactionRpcInput
4677
5377
  | WalletRpcParams.TronSendTransactionRpcInput
5378
+ | WalletRpcParams.XrplSignTransactionRpcInput
5379
+ | WalletRpcParams.NearSignTransactionRpcRequestBody
4678
5380
  | WalletRpcParams.ExportPrivateKeyRpcInput
4679
5381
  | WalletRpcParams.ExportSeedPhraseRpcInput;
4680
5382
 
@@ -4758,7 +5460,8 @@ export declare namespace WalletRpcParams {
4758
5460
  experimental_data_suffix?: Hex;
4759
5461
 
4760
5462
  /**
4761
- * Body param
5463
+ * Body param: Developer-provided identifier for this request. Must be unique per
5464
+ * app.
4762
5465
  */
4763
5466
  reference_id?: string;
4764
5467
 
@@ -5116,6 +5819,36 @@ export declare namespace WalletRpcParams {
5116
5819
  'privy-request-expiry'?: string;
5117
5820
  }
5118
5821
 
5822
+ export interface AptosSignTransactionRpcInput {
5823
+ /**
5824
+ * Body param
5825
+ */
5826
+ method: 'aptos_signTransaction';
5827
+
5828
+ /**
5829
+ * Body param: Parameters for the Aptos `aptos_signTransaction` RPC.
5830
+ */
5831
+ params: AptosSignTransactionRpcInputParams;
5832
+
5833
+ /**
5834
+ * Header param: Request authorization signature. If multiple signatures are
5835
+ * required, they should be comma separated.
5836
+ */
5837
+ 'privy-authorization-signature'?: string;
5838
+
5839
+ /**
5840
+ * Header param: Idempotency keys ensure API requests are executed only once within
5841
+ * a 24-hour window.
5842
+ */
5843
+ 'privy-idempotency-key'?: string;
5844
+
5845
+ /**
5846
+ * Header param: Request expiry. Value is a Unix timestamp in milliseconds
5847
+ * representing the deadline by which the request must be processed.
5848
+ */
5849
+ 'privy-request-expiry'?: string;
5850
+ }
5851
+
5119
5852
  export interface SolanaSignTransactionRpcInput {
5120
5853
  /**
5121
5854
  * Body param
@@ -5194,7 +5927,8 @@ export declare namespace WalletRpcParams {
5194
5927
  optimistic_broadcast?: boolean;
5195
5928
 
5196
5929
  /**
5197
- * Body param
5930
+ * Body param: Developer-provided identifier for this request. Must be unique per
5931
+ * app.
5198
5932
  */
5199
5933
  reference_id?: string;
5200
5934
 
@@ -5720,6 +6454,66 @@ export declare namespace WalletRpcParams {
5720
6454
  'privy-request-expiry'?: string;
5721
6455
  }
5722
6456
 
6457
+ export interface XrplSignTransactionRpcInput {
6458
+ /**
6459
+ * Body param
6460
+ */
6461
+ method: 'xrpl_signTransaction';
6462
+
6463
+ /**
6464
+ * Body param: Parameters for the XRPL `xrpl_signTransaction` RPC.
6465
+ */
6466
+ params: XrplSignTransactionRpcInputParams;
6467
+
6468
+ /**
6469
+ * Header param: Request authorization signature. If multiple signatures are
6470
+ * required, they should be comma separated.
6471
+ */
6472
+ 'privy-authorization-signature'?: string;
6473
+
6474
+ /**
6475
+ * Header param: Idempotency keys ensure API requests are executed only once within
6476
+ * a 24-hour window.
6477
+ */
6478
+ 'privy-idempotency-key'?: string;
6479
+
6480
+ /**
6481
+ * Header param: Request expiry. Value is a Unix timestamp in milliseconds
6482
+ * representing the deadline by which the request must be processed.
6483
+ */
6484
+ 'privy-request-expiry'?: string;
6485
+ }
6486
+
6487
+ export interface NearSignTransactionRpcRequestBody {
6488
+ /**
6489
+ * Body param
6490
+ */
6491
+ method: 'near_signTransaction';
6492
+
6493
+ /**
6494
+ * Body param: Parameters for the NEAR `near_signTransaction` RPC.
6495
+ */
6496
+ params: NearSignTransactionRpcRequestBodyParams;
6497
+
6498
+ /**
6499
+ * Header param: Request authorization signature. If multiple signatures are
6500
+ * required, they should be comma separated.
6501
+ */
6502
+ 'privy-authorization-signature'?: string;
6503
+
6504
+ /**
6505
+ * Header param: Idempotency keys ensure API requests are executed only once within
6506
+ * a 24-hour window.
6507
+ */
6508
+ 'privy-idempotency-key'?: string;
6509
+
6510
+ /**
6511
+ * Header param: Request expiry. Value is a Unix timestamp in milliseconds
6512
+ * representing the deadline by which the request must be processed.
6513
+ */
6514
+ 'privy-request-expiry'?: string;
6515
+ }
6516
+
5723
6517
  export interface ExportPrivateKeyRpcInput {
5724
6518
  /**
5725
6519
  * Body param
@@ -5807,20 +6601,48 @@ export declare namespace Wallets {
5807
6601
  type AdvancedSwapRequestBody as AdvancedSwapRequestBody,
5808
6602
  type AdvancedSwapResponse as AdvancedSwapResponse,
5809
6603
  type AmountType as AmountType,
6604
+ type AptosBcsHex as AptosBcsHex,
6605
+ type AptosRpcInput as AptosRpcInput,
6606
+ type AptosRpcResponse as AptosRpcResponse,
6607
+ type AptosSignTransactionRpcInput as AptosSignTransactionRpcInput,
6608
+ type AptosSignTransactionRpcInputParams as AptosSignTransactionRpcInputParams,
6609
+ type AptosSignTransactionRpcResponse as AptosSignTransactionRpcResponse,
6610
+ type AptosSignTransactionRpcResponseData as AptosSignTransactionRpcResponseData,
6611
+ type AptosSignedTransactionBcsHex as AptosSignedTransactionBcsHex,
6612
+ type AttachWalletAutomationRequestBody as AttachWalletAutomationRequestBody,
6613
+ type AttachedWalletAutomation as AttachedWalletAutomation,
5810
6614
  type AuthorizationKeyDashboardResponse as AuthorizationKeyDashboardResponse,
5811
6615
  type AuthorizationKeyResponse as AuthorizationKeyResponse,
5812
6616
  type AuthorizationKeyRole as AuthorizationKeyRole,
6617
+ type CreateCryptoDepositAccountRequestBody as CreateCryptoDepositAccountRequestBody,
6618
+ type CreateCryptoDepositAccountResponse as CreateCryptoDepositAccountResponse,
6619
+ type CreateCryptoDepositAccountWithConfigRequestBody as CreateCryptoDepositAccountWithConfigRequestBody,
6620
+ type CreateCryptoDepositAccountWithRouteRequestBody as CreateCryptoDepositAccountWithRouteRequestBody,
6621
+ type CryptoDepositAccountCaip2 as CryptoDepositAccountCaip2,
6622
+ type CryptoDepositAccountChain as CryptoDepositAccountChain,
6623
+ type CryptoDepositAccountConfigResponse as CryptoDepositAccountConfigResponse,
6624
+ type CryptoDepositAccountSourceChain as CryptoDepositAccountSourceChain,
6625
+ type CryptoDepositAccountSourceCurrency as CryptoDepositAccountSourceCurrency,
6626
+ type CryptoDepositAddressRoute as CryptoDepositAddressRoute,
6627
+ type CryptoDepositAsset as CryptoDepositAsset,
6628
+ type CryptoDepositAssetFilter as CryptoDepositAssetFilter,
6629
+ type CryptoDepositAssetFilterAll as CryptoDepositAssetFilterAll,
6630
+ type CryptoDepositAssetFilterExclude as CryptoDepositAssetFilterExclude,
6631
+ type CryptoDepositAssetFilterInclude as CryptoDepositAssetFilterInclude,
5813
6632
  type CurveSigningChainType as CurveSigningChainType,
5814
6633
  type CurveType as CurveType,
5815
6634
  type CustodialWallet as CustodialWallet,
6635
+ type CustodialWalletChain as CustodialWalletChain,
5816
6636
  type CustodialWalletChainType as CustodialWalletChainType,
5817
6637
  type CustodialWalletCreateInput as CustodialWalletCreateInput,
5818
6638
  type CustodialWalletProvider as CustodialWalletProvider,
5819
6639
  type CustomTokenTransferSource as CustomTokenTransferSource,
6640
+ type DetachWalletAutomationRequestBody as DetachWalletAutomationRequestBody,
5820
6641
  type DeveloperFee as DeveloperFee,
5821
6642
  type EncryptedAuthorizationKey as EncryptedAuthorizationKey,
5822
6643
  type EncryptedBoundAuthenticateResponse as EncryptedBoundAuthenticateResponse,
5823
6644
  type EncryptedWalletAuthenticateResponse as EncryptedWalletAuthenticateResponse,
6645
+ type EntityID as EntityID,
5824
6646
  type EthereumPersonalSignRpcInput as EthereumPersonalSignRpcInput,
5825
6647
  type EthereumPersonalSignRpcInputParams as EthereumPersonalSignRpcInputParams,
5826
6648
  type EthereumPersonalSignRpcResponse as EthereumPersonalSignRpcResponse,
@@ -5869,6 +6691,8 @@ export declare namespace Wallets {
5869
6691
  type FirstClassChainType as FirstClassChainType,
5870
6692
  type Gas as Gas,
5871
6693
  type GetByWalletAddressRequestBody as GetByWalletAddressRequestBody,
6694
+ type GetCryptoDepositAccountNextOrderResponse as GetCryptoDepositAccountNextOrderResponse,
6695
+ type GetCryptoDepositAccountOrderResponse as GetCryptoDepositAccountOrderResponse,
5872
6696
  type HDInitInput as HDInitInput,
5873
6697
  type HDPath as HDPath,
5874
6698
  type HDSubmitInput as HDSubmitInput,
@@ -5877,7 +6701,16 @@ export declare namespace Wallets {
5877
6701
  type HpkeImportConfig as HpkeImportConfig,
5878
6702
  type Hex as Hex,
5879
6703
  type IntentBinding as IntentBinding,
6704
+ type ListCryptoDepositAccountsResponse as ListCryptoDepositAccountsResponse,
5880
6705
  type NamedTokenTransferSource as NamedTokenTransferSource,
6706
+ type NearRpcRequestBody as NearRpcRequestBody,
6707
+ type NearRpcResponse as NearRpcResponse,
6708
+ type NearSignTransactionRpcRequestBody as NearSignTransactionRpcRequestBody,
6709
+ type NearSignTransactionRpcRequestBodyParams as NearSignTransactionRpcRequestBodyParams,
6710
+ type NearSignTransactionRpcResponse as NearSignTransactionRpcResponse,
6711
+ type NearSignTransactionRpcResponseData as NearSignTransactionRpcResponseData,
6712
+ type NearSignedTransactionBorshBase64 as NearSignedTransactionBorshBase64,
6713
+ type NearUnsignedTransactionBorshBase64 as NearUnsignedTransactionBorshBase64,
5881
6714
  type OutputWithPreviousTransactionData as OutputWithPreviousTransactionData,
5882
6715
  type PolicyInput as PolicyInput,
5883
6716
  type PrivateKeyExportInput as PrivateKeyExportInput,
@@ -6015,6 +6848,7 @@ export declare namespace Wallets {
6015
6848
  type UserOperationInput as UserOperationInput,
6016
6849
  type UserSigningKeyBinding as UserSigningKeyBinding,
6017
6850
  type Wallet as Wallet,
6851
+ type WalletActionNonce as WalletActionNonce,
6018
6852
  type WalletAdditionalSigner as WalletAdditionalSigner,
6019
6853
  type WalletAdditionalSignerItem as WalletAdditionalSignerItem,
6020
6854
  type WalletAPIRegisterAuthorizationKeyInput as WalletAPIRegisterAuthorizationKeyInput,
@@ -6028,6 +6862,8 @@ export declare namespace Wallets {
6028
6862
  type WalletAuthenticateRequestBody as WalletAuthenticateRequestBody,
6029
6863
  type WalletAuthenticateWithJwtResponse as WalletAuthenticateWithJwtResponse,
6030
6864
  type WalletAuthorizationHeaders as WalletAuthorizationHeaders,
6865
+ type WalletAutomationAttachmentListResponse as WalletAutomationAttachmentListResponse,
6866
+ type WalletAutomationAttachmentResponse as WalletAutomationAttachmentResponse,
6031
6867
  type WalletBatchCreateInput as WalletBatchCreateInput,
6032
6868
  type WalletBatchCreateResponse as WalletBatchCreateResponse,
6033
6869
  type WalletBatchCreateResult as WalletBatchCreateResult,
@@ -6036,6 +6872,9 @@ export declare namespace Wallets {
6036
6872
  type WalletCreateWalletsWithRecoveryResponse as WalletCreateWalletsWithRecoveryResponse,
6037
6873
  type WalletCustodian as WalletCustodian,
6038
6874
  type WalletEntity as WalletEntity,
6875
+ type WalletEntityAssignmentRequestBody as WalletEntityAssignmentRequestBody,
6876
+ type WalletEntityAssignmentResponse as WalletEntityAssignmentResponse,
6877
+ type WalletEntityType as WalletEntityType,
6039
6878
  type WalletEntropyType as WalletEntropyType,
6040
6879
  type WalletEthereumAsset as WalletEthereumAsset,
6041
6880
  type WalletExportRequestBody as WalletExportRequestBody,
@@ -6049,6 +6888,12 @@ export declare namespace Wallets {
6049
6888
  type WalletSolanaAsset as WalletSolanaAsset,
6050
6889
  type WalletTronAsset as WalletTronAsset,
6051
6890
  type WalletUpdateRequestBody as WalletUpdateRequestBody,
6891
+ type XrplRpcInput as XrplRpcInput,
6892
+ type XrplRpcResponse as XrplRpcResponse,
6893
+ type XrplSignTransactionRpcInput as XrplSignTransactionRpcInput,
6894
+ type XrplSignTransactionRpcInputParams as XrplSignTransactionRpcInputParams,
6895
+ type XrplSignTransactionRpcResponse as XrplSignTransactionRpcResponse,
6896
+ type XrplSignTransactionRpcResponseData as XrplSignTransactionRpcResponseData,
6052
6897
  type WalletsCursor as WalletsCursor,
6053
6898
  type WalletCreateParams as WalletCreateParams,
6054
6899
  type WalletUpdateParams as WalletUpdateParams,
@@ -6091,6 +6936,8 @@ export declare namespace Wallets {
6091
6936
  type EarnIncentiveRewardsQuery as EarnIncentiveRewardsQuery,
6092
6937
  type EarnIncentiveRewardsResponse as EarnIncentiveRewardsResponse,
6093
6938
  type EarnIncetiveClaimRewardEntry as EarnIncetiveClaimRewardEntry,
6939
+ type EarnPositionApyAllocation as EarnPositionApyAllocation,
6940
+ type EarnPositionApyType as EarnPositionApyType,
6094
6941
  type EarnWithdrawActionResponse as EarnWithdrawActionResponse,
6095
6942
  type EarnWithdrawRequestBody as EarnWithdrawRequestBody,
6096
6943
  type EthereumEarnPositionQuery as EthereumEarnPositionQuery,
@@ -6103,11 +6950,13 @@ export declare namespace Wallets {
6103
6950
  type ListWalletActionsQuery as ListWalletActionsQuery,
6104
6951
  type ListWalletActionsResponse as ListWalletActionsResponse,
6105
6952
  type MorphoVaultDetails as MorphoVaultDetails,
6953
+ type PayoutResponse as PayoutResponse,
6106
6954
  type SvmTransactionWalletActionStep as SvmTransactionWalletActionStep,
6107
6955
  type SvmWalletActionStepStatus as SvmWalletActionStepStatus,
6108
6956
  type SwapActionResponse as SwapActionResponse,
6109
6957
  type TvmTransactionWalletActionStep as TvmTransactionWalletActionStep,
6110
6958
  type TvmWalletActionStepStatus as TvmWalletActionStepStatus,
6959
+ type TempoVaultDetails as TempoVaultDetails,
6111
6960
  type TransferActionResponse as TransferActionResponse,
6112
6961
  type VedaVaultDetails as VedaVaultDetails,
6113
6962
  type WalletActionInclude as WalletActionInclude,