@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
@@ -1,6 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
+ import * as FiatAPI from '../fiat';
5
+ import * as SharedAPI from '../shared';
4
6
  import * as WalletsAPI from './wallets';
5
7
 
6
8
  export class Actions extends APIResource {}
@@ -141,6 +143,11 @@ export interface EvmTransactionWalletActionStep {
141
143
  * confirmed.
142
144
  */
143
145
  finalized?: boolean;
146
+
147
+ /**
148
+ * Amount charged in USD for gas sponsorship on this step.
149
+ */
150
+ gas_credits_charged_usd?: string;
144
151
  }
145
152
 
146
153
  /**
@@ -311,6 +318,11 @@ export interface EarnDepositActionResponse {
311
318
  */
312
319
  failure_reason?: FailureReason;
313
320
 
321
+ /**
322
+ * Developer-provided reference ID, if one was included in the request.
323
+ */
324
+ reference_id?: string | null;
325
+
314
326
  /**
315
327
  * The steps of the wallet action. Only returned if `?include=steps` is provided.
316
328
  */
@@ -333,11 +345,22 @@ export interface EarnDepositRequestBody {
333
345
  */
334
346
  amount?: string;
335
347
 
348
+ /**
349
+ * Unique caller-generated nonce used to prevent replaying a signed wallet action
350
+ * request. Must be at least 24 characters (e.g. a cuid2 or UUID).
351
+ */
352
+ nonce?: WalletsAPI.WalletActionNonce;
353
+
336
354
  /**
337
355
  * Amount in smallest unit to deposit (e.g. "1500000" for 1.5 USDC with 6
338
356
  * decimals). Exactly one of `amount` or `raw_amount` must be provided.
339
357
  */
340
358
  raw_amount?: string;
359
+
360
+ /**
361
+ * Developer-provided identifier for this request. Must be unique per app.
362
+ */
363
+ reference_id?: string;
341
364
  }
342
365
 
343
366
  /**
@@ -416,6 +439,11 @@ export interface EarnFeeCollectActionResponse {
416
439
  */
417
440
  failure_reason?: FailureReason;
418
441
 
442
+ /**
443
+ * Developer-provided reference ID, if one was included in the request.
444
+ */
445
+ reference_id?: string | null;
446
+
419
447
  /**
420
448
  * The steps of the wallet action. Only returned if `?include=steps` is provided.
421
449
  */
@@ -430,6 +458,17 @@ export interface EarnFeeCollectRequestBody {
430
458
  * The ID of the vault to collect fees from.
431
459
  */
432
460
  vault_id: string;
461
+
462
+ /**
463
+ * Unique caller-generated nonce used to prevent replaying a signed wallet action
464
+ * request. Must be at least 24 characters (e.g. a cuid2 or UUID).
465
+ */
466
+ nonce?: WalletsAPI.WalletActionNonce;
467
+
468
+ /**
469
+ * Developer-provided identifier for this request. Must be unique per app.
470
+ */
471
+ reference_id?: string;
433
472
  }
434
473
 
435
474
  /**
@@ -473,6 +512,11 @@ export interface EarnIncentiveClaimActionResponse {
473
512
  */
474
513
  failure_reason?: FailureReason;
475
514
 
515
+ /**
516
+ * Developer-provided reference ID, if one was included in the request.
517
+ */
518
+ reference_id?: string | null;
519
+
476
520
  /**
477
521
  * The steps of the wallet action. Only returned if `?include=steps` is provided.
478
522
  */
@@ -489,6 +533,17 @@ export interface EarnIncentiveClaimRequestBody {
489
533
  * along with their respective testnets.
490
534
  */
491
535
  chain: string;
536
+
537
+ /**
538
+ * Unique caller-generated nonce used to prevent replaying a signed wallet action
539
+ * request. Must be at least 24 characters (e.g. a cuid2 or UUID).
540
+ */
541
+ nonce?: WalletsAPI.WalletActionNonce;
542
+
543
+ /**
544
+ * Developer-provided identifier for this request. Must be unique per app.
545
+ */
546
+ reference_id?: string;
492
547
  }
493
548
 
494
549
  /**
@@ -567,6 +622,31 @@ export interface EarnIncetiveClaimRewardEntry {
567
622
  token_decimals?: number;
568
623
  }
569
624
 
625
+ /**
626
+ * An APY allocation within a vault position.
627
+ */
628
+ export interface EarnPositionApyAllocation {
629
+ /**
630
+ * Net APY in basis points, rounded to the nearest integer.
631
+ */
632
+ apy_bps: number;
633
+
634
+ /**
635
+ * Allocated assets in the smallest unit of the underlying asset.
636
+ */
637
+ assets_in_vault: string;
638
+
639
+ /**
640
+ * Whether an APY allocation earns the base or boosted rate.
641
+ */
642
+ type: EarnPositionApyType;
643
+ }
644
+
645
+ /**
646
+ * Whether an APY allocation earns the base or boosted rate.
647
+ */
648
+ export type EarnPositionApyType = 'boost' | 'base';
649
+
570
650
  /**
571
651
  * Response for an earn withdraw action.
572
652
  */
@@ -646,6 +726,11 @@ export interface EarnWithdrawActionResponse {
646
726
  */
647
727
  failure_reason?: FailureReason;
648
728
 
729
+ /**
730
+ * Developer-provided reference ID, if one was included in the request.
731
+ */
732
+ reference_id?: string | null;
733
+
649
734
  /**
650
735
  * The steps of the wallet action. Only returned if `?include=steps` is provided.
651
736
  */
@@ -668,11 +753,22 @@ export interface EarnWithdrawRequestBody {
668
753
  */
669
754
  amount?: string;
670
755
 
756
+ /**
757
+ * Unique caller-generated nonce used to prevent replaying a signed wallet action
758
+ * request. Must be at least 24 characters (e.g. a cuid2 or UUID).
759
+ */
760
+ nonce?: WalletsAPI.WalletActionNonce;
761
+
671
762
  /**
672
763
  * Amount in smallest unit to withdraw (e.g. "1500000" for 1.5 USDC with 6
673
764
  * decimals). Exactly one of `amount` or `raw_amount` must be provided.
674
765
  */
675
766
  raw_amount?: string;
767
+
768
+ /**
769
+ * Developer-provided identifier for this request. Must be unique per app.
770
+ */
771
+ reference_id?: string;
676
772
  }
677
773
 
678
774
  /**
@@ -718,18 +814,33 @@ export interface EthereumEarnPositionResponse {
718
814
  * Total amount withdrawn from the vault, in smallest unit.
719
815
  */
720
816
  total_withdrawn: string;
817
+
818
+ /**
819
+ * Vault APY allocations by origin, returned together with apy_bps when available.
820
+ */
821
+ apy_allocation?: Array<EarnPositionApyAllocation>;
822
+
823
+ /**
824
+ * Wallet-specific net APY in basis points, rounded to the nearest integer.
825
+ * Returned together with apy_allocation when available.
826
+ */
827
+ apy_bps?: number;
721
828
  }
722
829
 
723
830
  /**
724
831
  * Supported earn provider protocols.
725
832
  */
726
- export type EthereumEarnProvider = 'morpho' | 'aave' | 'veda';
833
+ export type EthereumEarnProvider = 'morpho' | 'aave' | 'veda' | 'tempo';
727
834
 
728
835
  /**
729
836
  * Detailed vault information including current APY, liquidity, and asset metadata.
730
837
  * Discriminated on provider.
731
838
  */
732
- export type EthereumEarnVaultDetailsResponse = AaveVaultDetails | MorphoVaultDetails | VedaVaultDetails;
839
+ export type EthereumEarnVaultDetailsResponse =
840
+ | AaveVaultDetails
841
+ | MorphoVaultDetails
842
+ | TempoVaultDetails
843
+ | VedaVaultDetails;
733
844
 
734
845
  /**
735
846
  * A wallet action step representing a cross-chain/cross-asset fill by an external
@@ -867,6 +978,69 @@ export interface MorphoVaultDetails {
867
978
  vault_address: string;
868
979
  }
869
980
 
981
+ /**
982
+ * A payout wallet action. Crypto is sent on-chain to a liquidation address that
983
+ * offramps to the destination bank account.
984
+ */
985
+ export interface PayoutResponse {
986
+ /**
987
+ * The ID of the wallet action.
988
+ */
989
+ id: string;
990
+
991
+ /**
992
+ * ISO 8601 timestamp of when the wallet action was created.
993
+ */
994
+ created_at: string;
995
+
996
+ /**
997
+ * The destination bank account for a payout.
998
+ */
999
+ destination: FiatAPI.PayoutDestination;
1000
+
1001
+ /**
1002
+ * The Privy API environment.
1003
+ */
1004
+ environment: SharedAPI.IntegrationEnvironment;
1005
+
1006
+ /**
1007
+ * Supported fiat orchestration providers.
1008
+ */
1009
+ provider: SharedAPI.OrchestrationProvider;
1010
+
1011
+ /**
1012
+ * The source crypto asset, chain, and amount for a payout.
1013
+ */
1014
+ source: FiatAPI.PayoutSource;
1015
+
1016
+ /**
1017
+ * Status of a wallet action.
1018
+ */
1019
+ status: WalletActionStatus;
1020
+
1021
+ type: 'payout';
1022
+
1023
+ /**
1024
+ * The ID of the wallet involved in the action.
1025
+ */
1026
+ wallet_id: string;
1027
+
1028
+ /**
1029
+ * A description of why a wallet action (or a step within a wallet action) failed.
1030
+ */
1031
+ failure_reason?: FailureReason;
1032
+
1033
+ /**
1034
+ * Developer-provided reference ID, if one was included in the request.
1035
+ */
1036
+ reference_id?: string | null;
1037
+
1038
+ /**
1039
+ * The steps of the wallet action. Only returned if `?include=steps` is provided.
1040
+ */
1041
+ steps?: Array<WalletActionStep>;
1042
+ }
1043
+
870
1044
  /**
871
1045
  * A wallet action step consisting of an SVM (Solana) transaction.
872
1046
  */
@@ -969,9 +1143,8 @@ export interface SwapActionResponse {
969
1143
  wallet_id: string;
970
1144
 
971
1145
  /**
972
- * Recipient address on the destination chain. Present for cross-chain swaps. May
973
- * differ from the source wallet address when swapping between chain types (e.g.
974
- * EVM to Solana).
1146
+ * Recipient address for the swap. Present for newly created swaps; may be absent
1147
+ * for older swap actions.
975
1148
  */
976
1149
  destination_address?: string;
977
1150
 
@@ -1009,6 +1182,11 @@ export interface SwapActionResponse {
1009
1182
  */
1010
1183
  gas?: WalletsAPI.Gas | null;
1011
1184
 
1185
+ /**
1186
+ * Developer-provided reference ID, if one was included in the request.
1187
+ */
1188
+ reference_id?: string | null;
1189
+
1012
1190
  /**
1013
1191
  * The steps of the wallet action. Only returned if `?include=steps` is provided.
1014
1192
  */
@@ -1054,6 +1232,71 @@ export type TvmWalletActionStepStatus =
1054
1232
  | 'reverted'
1055
1233
  | 'failed';
1056
1234
 
1235
+ /**
1236
+ * Vault details for a Tempo earn vault.
1237
+ */
1238
+ export interface TempoVaultDetails {
1239
+ /**
1240
+ * Vault identifier.
1241
+ */
1242
+ id: string;
1243
+
1244
+ /**
1245
+ * EVM address of the vault admin wallet.
1246
+ */
1247
+ admin_wallet_address: string;
1248
+
1249
+ /**
1250
+ * Privy wallet ID of the vault admin, or null when the Tempo vault admin is not
1251
+ * Privy-managed.
1252
+ */
1253
+ admin_wallet_id: string | null;
1254
+
1255
+ /**
1256
+ * Annual percentage yield earned by the app from fee wrapper fees, in basis
1257
+ * points.
1258
+ */
1259
+ app_apy: number | null;
1260
+
1261
+ /**
1262
+ * Asset metadata for an earn vault position.
1263
+ */
1264
+ asset: EarnAsset;
1265
+
1266
+ /**
1267
+ * Available liquidity in USD.
1268
+ */
1269
+ available_liquidity_usd: number | null;
1270
+
1271
+ /**
1272
+ * CAIP-2 chain identifier (e.g. "eip155:4217" for Tempo, "eip155:8453" for Base).
1273
+ */
1274
+ caip2: string;
1275
+
1276
+ /**
1277
+ * Human-readable vault name from the yield provider.
1278
+ */
1279
+ name: string;
1280
+
1281
+ provider: 'tempo';
1282
+
1283
+ /**
1284
+ * Total value locked in USD.
1285
+ */
1286
+ tvl_usd: number | null;
1287
+
1288
+ /**
1289
+ * Annual percentage yield available to the user, after fees and excluding rewards,
1290
+ * in basis points (e.g. 500 for 5%). 1 basis point = 0.01%.
1291
+ */
1292
+ user_apy: number | null;
1293
+
1294
+ /**
1295
+ * Onchain vault contract address.
1296
+ */
1297
+ vault_address: string;
1298
+ }
1299
+
1057
1300
  /**
1058
1301
  * Response for a transfer action.
1059
1302
  */
@@ -1141,6 +1384,11 @@ export interface TransferActionResponse {
1141
1384
  */
1142
1385
  gas?: WalletsAPI.Gas | null;
1143
1386
 
1387
+ /**
1388
+ * Developer-provided reference ID, if one was included in the request.
1389
+ */
1390
+ reference_id?: string | null;
1391
+
1144
1392
  /**
1145
1393
  * Decimal amount sent on the source chain (e.g. "1.5"). For exact_output
1146
1394
  * cross-chain transfers, null until fill confirmation.
@@ -1249,7 +1497,8 @@ export type WalletActionResponse =
1249
1497
  | EarnDepositActionResponse
1250
1498
  | EarnWithdrawActionResponse
1251
1499
  | EarnIncentiveClaimActionResponse
1252
- | EarnFeeCollectActionResponse;
1500
+ | EarnFeeCollectActionResponse
1501
+ | PayoutResponse;
1253
1502
 
1254
1503
  /**
1255
1504
  * Status of a wallet action.
@@ -1287,7 +1536,8 @@ export type WalletActionType =
1287
1536
  | 'earn_deposit'
1288
1537
  | 'earn_withdraw'
1289
1538
  | 'earn_incentive_claim'
1290
- | 'earn_fee_collect';
1539
+ | 'earn_fee_collect'
1540
+ | 'payout';
1291
1541
 
1292
1542
  export declare namespace Actions {
1293
1543
  export {
@@ -1309,6 +1559,8 @@ export declare namespace Actions {
1309
1559
  type EarnIncentiveRewardsQuery as EarnIncentiveRewardsQuery,
1310
1560
  type EarnIncentiveRewardsResponse as EarnIncentiveRewardsResponse,
1311
1561
  type EarnIncetiveClaimRewardEntry as EarnIncetiveClaimRewardEntry,
1562
+ type EarnPositionApyAllocation as EarnPositionApyAllocation,
1563
+ type EarnPositionApyType as EarnPositionApyType,
1312
1564
  type EarnWithdrawActionResponse as EarnWithdrawActionResponse,
1313
1565
  type EarnWithdrawRequestBody as EarnWithdrawRequestBody,
1314
1566
  type EthereumEarnPositionQuery as EthereumEarnPositionQuery,
@@ -1321,11 +1573,13 @@ export declare namespace Actions {
1321
1573
  type ListWalletActionsQuery as ListWalletActionsQuery,
1322
1574
  type ListWalletActionsResponse as ListWalletActionsResponse,
1323
1575
  type MorphoVaultDetails as MorphoVaultDetails,
1576
+ type PayoutResponse as PayoutResponse,
1324
1577
  type SvmTransactionWalletActionStep as SvmTransactionWalletActionStep,
1325
1578
  type SvmWalletActionStepStatus as SvmWalletActionStepStatus,
1326
1579
  type SwapActionResponse as SwapActionResponse,
1327
1580
  type TvmTransactionWalletActionStep as TvmTransactionWalletActionStep,
1328
1581
  type TvmWalletActionStepStatus as TvmWalletActionStepStatus,
1582
+ type TempoVaultDetails as TempoVaultDetails,
1329
1583
  type TransferActionResponse as TransferActionResponse,
1330
1584
  type VedaVaultDetails as VedaVaultDetails,
1331
1585
  type WalletActionInclude as WalletActionInclude,
@@ -45,6 +45,7 @@ export namespace BalanceGetResponse {
45
45
  | 'usdt'
46
46
  | 'eurc'
47
47
  | 'usdb'
48
+ | 'ousd'
48
49
  | 'pathusd'
49
50
  | 'sol'
50
51
  | 'trx'
@@ -86,6 +87,7 @@ export interface BalanceGetParams {
86
87
  | 'usdt'
87
88
  | 'eurc'
88
89
  | 'usdb'
90
+ | 'ousd'
89
91
  | 'pathusd'
90
92
  | 'sol'
91
93
  | 'trx'
@@ -95,7 +97,45 @@ export interface BalanceGetParams {
95
97
  * Chain(s) to query named assets on (e.g. `tempo`, `base`). Use together with
96
98
  * `asset`. Cannot be used with `token`.
97
99
  */
98
- chain?: WalletsAPI.WalletAssetChainNameInput | Array<WalletsAPI.WalletAssetChainNameInput>;
100
+ chain?:
101
+ | 'ethereum'
102
+ | 'arbitrum'
103
+ | 'avalanche'
104
+ | 'base'
105
+ | 'tempo'
106
+ | 'linea'
107
+ | 'optimism'
108
+ | 'polygon'
109
+ | 'bsc'
110
+ | 'solana'
111
+ | 'tron'
112
+ | 'zksync_era'
113
+ | 'robinhood'
114
+ | 'unichain'
115
+ | 'worldchain'
116
+ | 'ink'
117
+ | 'soneium'
118
+ | 'megaeth'
119
+ | 'hyperevm'
120
+ | 'hypercore'
121
+ | 'arc'
122
+ | 'tempo_testnet'
123
+ | 'hoodi'
124
+ | 'sepolia'
125
+ | 'arbitrum_sepolia'
126
+ | 'avalanche_fuji'
127
+ | 'base_sepolia'
128
+ | 'linea_testnet'
129
+ | 'optimism_sepolia'
130
+ | 'polygon_amoy'
131
+ | 'bsc_testnet'
132
+ | 'solana_devnet'
133
+ | 'solana_testnet'
134
+ | 'tron_nile'
135
+ | 'robinhood_testnet'
136
+ | 'ink_sepolia'
137
+ | string
138
+ | Array<WalletsAPI.WalletAssetChainNameInput>;
99
139
 
100
140
  /**
101
141
  * Include archived wallets in lookup. Defaults to false.
@@ -20,6 +20,8 @@ export {
20
20
  type EarnIncentiveRewardsQuery,
21
21
  type EarnIncentiveRewardsResponse,
22
22
  type EarnIncetiveClaimRewardEntry,
23
+ type EarnPositionApyAllocation,
24
+ type EarnPositionApyType,
23
25
  type EarnWithdrawActionResponse,
24
26
  type EarnWithdrawRequestBody,
25
27
  type EthereumEarnPositionQuery,
@@ -32,11 +34,13 @@ export {
32
34
  type ListWalletActionsQuery,
33
35
  type ListWalletActionsResponse,
34
36
  type MorphoVaultDetails,
37
+ type PayoutResponse,
35
38
  type SvmTransactionWalletActionStep,
36
39
  type SvmWalletActionStepStatus,
37
40
  type SwapActionResponse,
38
41
  type TvmTransactionWalletActionStep,
39
42
  type TvmWalletActionStepStatus,
43
+ type TempoVaultDetails,
40
44
  type TransferActionResponse,
41
45
  type VedaVaultDetails,
42
46
  type WalletActionInclude,
@@ -58,20 +62,48 @@ export {
58
62
  type AdvancedSwapRequestBody,
59
63
  type AdvancedSwapResponse,
60
64
  type AmountType,
65
+ type AptosBcsHex,
66
+ type AptosRpcInput,
67
+ type AptosRpcResponse,
68
+ type AptosSignTransactionRpcInput,
69
+ type AptosSignTransactionRpcInputParams,
70
+ type AptosSignTransactionRpcResponse,
71
+ type AptosSignTransactionRpcResponseData,
72
+ type AptosSignedTransactionBcsHex,
73
+ type AttachWalletAutomationRequestBody,
74
+ type AttachedWalletAutomation,
61
75
  type AuthorizationKeyDashboardResponse,
62
76
  type AuthorizationKeyResponse,
63
77
  type AuthorizationKeyRole,
78
+ type CreateCryptoDepositAccountRequestBody,
79
+ type CreateCryptoDepositAccountResponse,
80
+ type CreateCryptoDepositAccountWithConfigRequestBody,
81
+ type CreateCryptoDepositAccountWithRouteRequestBody,
82
+ type CryptoDepositAccountCaip2,
83
+ type CryptoDepositAccountChain,
84
+ type CryptoDepositAccountConfigResponse,
85
+ type CryptoDepositAccountSourceChain,
86
+ type CryptoDepositAccountSourceCurrency,
87
+ type CryptoDepositAddressRoute,
88
+ type CryptoDepositAsset,
89
+ type CryptoDepositAssetFilter,
90
+ type CryptoDepositAssetFilterAll,
91
+ type CryptoDepositAssetFilterExclude,
92
+ type CryptoDepositAssetFilterInclude,
64
93
  type CurveSigningChainType,
65
94
  type CurveType,
66
95
  type CustodialWallet,
96
+ type CustodialWalletChain,
67
97
  type CustodialWalletChainType,
68
98
  type CustodialWalletCreateInput,
69
99
  type CustodialWalletProvider,
70
100
  type CustomTokenTransferSource,
101
+ type DetachWalletAutomationRequestBody,
71
102
  type DeveloperFee,
72
103
  type EncryptedAuthorizationKey,
73
104
  type EncryptedBoundAuthenticateResponse,
74
105
  type EncryptedWalletAuthenticateResponse,
106
+ type EntityID,
75
107
  type EthereumPersonalSignRpcInput,
76
108
  type EthereumPersonalSignRpcInputParams,
77
109
  type EthereumPersonalSignRpcResponse,
@@ -120,6 +152,8 @@ export {
120
152
  type FirstClassChainType,
121
153
  type Gas,
122
154
  type GetByWalletAddressRequestBody,
155
+ type GetCryptoDepositAccountNextOrderResponse,
156
+ type GetCryptoDepositAccountOrderResponse,
123
157
  type HDInitInput,
124
158
  type HDPath,
125
159
  type HDSubmitInput,
@@ -128,7 +162,16 @@ export {
128
162
  type HpkeImportConfig,
129
163
  type Hex,
130
164
  type IntentBinding,
165
+ type ListCryptoDepositAccountsResponse,
131
166
  type NamedTokenTransferSource,
167
+ type NearRpcRequestBody,
168
+ type NearRpcResponse,
169
+ type NearSignTransactionRpcRequestBody,
170
+ type NearSignTransactionRpcRequestBodyParams,
171
+ type NearSignTransactionRpcResponse,
172
+ type NearSignTransactionRpcResponseData,
173
+ type NearSignedTransactionBorshBase64,
174
+ type NearUnsignedTransactionBorshBase64,
132
175
  type OutputWithPreviousTransactionData,
133
176
  type PolicyInput,
134
177
  type PrivateKeyExportInput,
@@ -266,6 +309,7 @@ export {
266
309
  type UserOperationInput,
267
310
  type UserSigningKeyBinding,
268
311
  type Wallet,
312
+ type WalletActionNonce,
269
313
  type WalletAdditionalSigner,
270
314
  type WalletAdditionalSignerItem,
271
315
  type WalletAPIRegisterAuthorizationKeyInput,
@@ -279,6 +323,8 @@ export {
279
323
  type WalletAuthenticateRequestBody,
280
324
  type WalletAuthenticateWithJwtResponse,
281
325
  type WalletAuthorizationHeaders,
326
+ type WalletAutomationAttachmentListResponse,
327
+ type WalletAutomationAttachmentResponse,
282
328
  type WalletBatchCreateInput,
283
329
  type WalletBatchCreateResponse,
284
330
  type WalletBatchCreateResult,
@@ -287,6 +333,9 @@ export {
287
333
  type WalletCreateWalletsWithRecoveryResponse,
288
334
  type WalletCustodian,
289
335
  type WalletEntity,
336
+ type WalletEntityAssignmentRequestBody,
337
+ type WalletEntityAssignmentResponse,
338
+ type WalletEntityType,
290
339
  type WalletEntropyType,
291
340
  type WalletEthereumAsset,
292
341
  type WalletExportRequestBody,
@@ -300,6 +349,12 @@ export {
300
349
  type WalletSolanaAsset,
301
350
  type WalletTronAsset,
302
351
  type WalletUpdateRequestBody,
352
+ type XrplRpcInput,
353
+ type XrplRpcResponse,
354
+ type XrplSignTransactionRpcInput,
355
+ type XrplSignTransactionRpcInputParams,
356
+ type XrplSignTransactionRpcResponse,
357
+ type XrplSignTransactionRpcResponseData,
303
358
  type WalletCreateParams,
304
359
  type WalletUpdateParams,
305
360
  type WalletListParams,
@@ -48,7 +48,11 @@ export namespace TransactionGetResponse {
48
48
  */
49
49
  details: Transaction.Details;
50
50
 
51
- privy_transaction_id: string;
51
+ /**
52
+ * Privy's ID for the transaction, or `null` if the transaction was not broadcasted
53
+ * through Privy.
54
+ */
55
+ privy_transaction_id: string | null;
52
56
 
53
57
  /**
54
58
  * Status of a blockchain transaction submitted by Privy.
@@ -57,6 +61,11 @@ export namespace TransactionGetResponse {
57
61
 
58
62
  transaction_hash: string | null;
59
63
 
64
+ /**
65
+ * The wallet whose history this transaction belongs to. The sending wallet for
66
+ * outbound transactions, including every transaction Privy broadcasted, and the
67
+ * receiving wallet for inbound transfers.
68
+ */
60
69
  wallet_id: string;
61
70
 
62
71
  sponsored?: boolean;
@@ -98,6 +107,7 @@ export interface TransactionGetParams {
98
107
  | 'usdt'
99
108
  | 'eurc'
100
109
  | 'usdb'
110
+ | 'ousd'
101
111
  | 'pathusd'
102
112
  | 'sol'
103
113
  | 'trx'