@privy-io/api-types 0.14.0 → 0.16.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 (279) hide show
  1. package/CHANGELOG.md +119 -0
  2. package/api-promise.d.mts +1 -0
  3. package/api-promise.d.mts.map +1 -1
  4. package/api-promise.d.ts +1 -0
  5. package/api-promise.d.ts.map +1 -1
  6. package/api-promise.mjs +1 -0
  7. package/api-promise.mjs.map +1 -1
  8. package/client.d.mts +33 -27
  9. package/client.d.mts.map +1 -1
  10. package/client.d.ts +33 -27
  11. package/client.d.ts.map +1 -1
  12. package/client.js +17 -3
  13. package/client.js.map +1 -1
  14. package/client.mjs +17 -3
  15. package/client.mjs.map +1 -1
  16. package/core/api-promise.d.mts.map +1 -1
  17. package/core/api-promise.d.ts.map +1 -1
  18. package/core/api-promise.mjs.map +1 -1
  19. package/core/error.mjs.map +1 -1
  20. package/core/pagination.d.mts.map +1 -1
  21. package/core/pagination.d.ts.map +1 -1
  22. package/core/pagination.mjs.map +1 -1
  23. package/core/resource.d.mts.map +1 -1
  24. package/core/resource.d.ts.map +1 -1
  25. package/core/uploads.d.mts.map +1 -1
  26. package/core/uploads.d.ts.map +1 -1
  27. package/core/uploads.mjs.map +1 -1
  28. package/error.d.mts +1 -0
  29. package/error.d.mts.map +1 -1
  30. package/error.d.ts +1 -0
  31. package/error.d.ts.map +1 -1
  32. package/error.mjs +1 -0
  33. package/error.mjs.map +1 -1
  34. package/index.d.mts.map +1 -1
  35. package/index.d.ts.map +1 -1
  36. package/index.mjs.map +1 -1
  37. package/internal/detect-platform.mjs.map +1 -1
  38. package/internal/headers.mjs.map +1 -1
  39. package/internal/parse.d.mts.map +1 -1
  40. package/internal/parse.d.ts.map +1 -1
  41. package/internal/parse.mjs.map +1 -1
  42. package/internal/qs/formats.d.mts.map +1 -1
  43. package/internal/qs/formats.d.ts.map +1 -1
  44. package/internal/qs/index.d.mts +2 -2
  45. package/internal/qs/index.d.mts.map +1 -1
  46. package/internal/qs/index.d.ts +2 -2
  47. package/internal/qs/index.d.ts.map +1 -1
  48. package/internal/qs/index.mjs.map +1 -1
  49. package/internal/qs/stringify.d.mts.map +1 -1
  50. package/internal/qs/stringify.d.ts.map +1 -1
  51. package/internal/qs/stringify.mjs.map +1 -1
  52. package/internal/qs/utils.d.mts.map +1 -1
  53. package/internal/qs/utils.d.ts.map +1 -1
  54. package/internal/qs/utils.mjs.map +1 -1
  55. package/internal/request-options.d.mts.map +1 -1
  56. package/internal/request-options.d.ts.map +1 -1
  57. package/internal/shims.d.mts +6 -0
  58. package/internal/shims.d.mts.map +1 -1
  59. package/internal/shims.d.ts +6 -0
  60. package/internal/shims.d.ts.map +1 -1
  61. package/internal/to-file.d.mts.map +1 -1
  62. package/internal/to-file.d.ts.map +1 -1
  63. package/internal/to-file.mjs.map +1 -1
  64. package/internal/types.d.mts +4 -4
  65. package/internal/types.d.mts.map +1 -1
  66. package/internal/types.d.ts +4 -4
  67. package/internal/types.d.ts.map +1 -1
  68. package/internal/uploads.d.mts.map +1 -1
  69. package/internal/uploads.d.ts.map +1 -1
  70. package/internal/uploads.mjs.map +1 -1
  71. package/internal/utils/base64.mjs.map +1 -1
  72. package/internal/utils/log.d.mts.map +1 -1
  73. package/internal/utils/log.d.ts.map +1 -1
  74. package/internal/utils/log.mjs.map +1 -1
  75. package/internal/utils/path.mjs.map +1 -1
  76. package/internal/utils/query.mjs.map +1 -1
  77. package/internal/utils/values.mjs.map +1 -1
  78. package/internal/utils.d.mts.map +1 -1
  79. package/internal/utils.d.ts.map +1 -1
  80. package/internal/utils.mjs.map +1 -1
  81. package/package.json +1 -1
  82. package/pagination.d.mts +1 -0
  83. package/pagination.d.mts.map +1 -1
  84. package/pagination.d.ts +1 -0
  85. package/pagination.d.ts.map +1 -1
  86. package/pagination.mjs +1 -0
  87. package/pagination.mjs.map +1 -1
  88. package/resource.d.mts +1 -0
  89. package/resource.d.mts.map +1 -1
  90. package/resource.d.ts +1 -0
  91. package/resource.d.ts.map +1 -1
  92. package/resource.mjs +1 -0
  93. package/resource.mjs.map +1 -1
  94. package/resources/accounts.d.mts +6 -2
  95. package/resources/accounts.d.mts.map +1 -1
  96. package/resources/accounts.d.ts +6 -2
  97. package/resources/accounts.d.ts.map +1 -1
  98. package/resources/accounts.mjs.map +1 -1
  99. package/resources/aggregations.d.mts +14 -4
  100. package/resources/aggregations.d.mts.map +1 -1
  101. package/resources/aggregations.d.ts +14 -4
  102. package/resources/aggregations.d.ts.map +1 -1
  103. package/resources/aggregations.mjs.map +1 -1
  104. package/resources/analytics.d.mts +1 -1
  105. package/resources/analytics.d.mts.map +1 -1
  106. package/resources/analytics.d.ts +1 -1
  107. package/resources/analytics.d.ts.map +1 -1
  108. package/resources/analytics.mjs.map +1 -1
  109. package/resources/apps.d.mts +42 -37
  110. package/resources/apps.d.mts.map +1 -1
  111. package/resources/apps.d.ts +42 -37
  112. package/resources/apps.d.ts.map +1 -1
  113. package/resources/apps.mjs.map +1 -1
  114. package/resources/client-auth.d.mts +176 -217
  115. package/resources/client-auth.d.mts.map +1 -1
  116. package/resources/client-auth.d.ts +176 -217
  117. package/resources/client-auth.d.ts.map +1 -1
  118. package/resources/client-auth.js.map +1 -1
  119. package/resources/client-auth.mjs.map +1 -1
  120. package/resources/cross-app.d.mts.map +1 -1
  121. package/resources/cross-app.d.ts.map +1 -1
  122. package/resources/cross-app.mjs.map +1 -1
  123. package/resources/embedded-wallets.d.mts.map +1 -1
  124. package/resources/embedded-wallets.d.ts.map +1 -1
  125. package/resources/embedded-wallets.mjs.map +1 -1
  126. package/resources/fiat.d.mts.map +1 -1
  127. package/resources/fiat.d.ts.map +1 -1
  128. package/resources/fiat.mjs.map +1 -1
  129. package/resources/funding.d.mts.map +1 -1
  130. package/resources/funding.d.ts.map +1 -1
  131. package/resources/funding.mjs.map +1 -1
  132. package/resources/index.d.mts +15 -13
  133. package/resources/index.d.mts.map +1 -1
  134. package/resources/index.d.ts +15 -13
  135. package/resources/index.d.ts.map +1 -1
  136. package/resources/index.js +5 -1
  137. package/resources/index.js.map +1 -1
  138. package/resources/index.mjs +2 -0
  139. package/resources/index.mjs.map +1 -1
  140. package/resources/intents.d.mts +112 -79
  141. package/resources/intents.d.mts.map +1 -1
  142. package/resources/intents.d.ts +112 -79
  143. package/resources/intents.d.ts.map +1 -1
  144. package/resources/intents.js.map +1 -1
  145. package/resources/intents.mjs.map +1 -1
  146. package/resources/key-quorums.d.mts +9 -8
  147. package/resources/key-quorums.d.mts.map +1 -1
  148. package/resources/key-quorums.d.ts +9 -8
  149. package/resources/key-quorums.d.ts.map +1 -1
  150. package/resources/key-quorums.mjs.map +1 -1
  151. package/resources/kraken-embed.d.mts +252 -154
  152. package/resources/kraken-embed.d.mts.map +1 -1
  153. package/resources/kraken-embed.d.ts +252 -154
  154. package/resources/kraken-embed.d.ts.map +1 -1
  155. package/resources/kraken-embed.js.map +1 -1
  156. package/resources/kraken-embed.mjs.map +1 -1
  157. package/resources/oauth.d.mts +77 -0
  158. package/resources/oauth.d.mts.map +1 -0
  159. package/resources/oauth.d.ts +77 -0
  160. package/resources/oauth.d.ts.map +1 -0
  161. package/resources/oauth.js +9 -0
  162. package/resources/oauth.js.map +1 -0
  163. package/resources/oauth.mjs +5 -0
  164. package/resources/oauth.mjs.map +1 -0
  165. package/resources/onramps.d.mts +458 -0
  166. package/resources/onramps.d.mts.map +1 -0
  167. package/resources/onramps.d.ts +458 -0
  168. package/resources/onramps.d.ts.map +1 -0
  169. package/resources/onramps.js +9 -0
  170. package/resources/onramps.js.map +1 -0
  171. package/resources/onramps.mjs +5 -0
  172. package/resources/onramps.mjs.map +1 -0
  173. package/resources/organizations.d.mts.map +1 -1
  174. package/resources/organizations.d.ts.map +1 -1
  175. package/resources/organizations.mjs.map +1 -1
  176. package/resources/policies.d.mts +73 -18
  177. package/resources/policies.d.mts.map +1 -1
  178. package/resources/policies.d.ts +73 -18
  179. package/resources/policies.d.ts.map +1 -1
  180. package/resources/policies.mjs.map +1 -1
  181. package/resources/shared.d.mts +38 -1
  182. package/resources/shared.d.mts.map +1 -1
  183. package/resources/shared.d.ts +38 -1
  184. package/resources/shared.d.ts.map +1 -1
  185. package/resources/shared.mjs.map +1 -1
  186. package/resources/swaps.d.mts +44 -5
  187. package/resources/swaps.d.mts.map +1 -1
  188. package/resources/swaps.d.ts +44 -5
  189. package/resources/swaps.d.ts.map +1 -1
  190. package/resources/swaps.mjs.map +1 -1
  191. package/resources/transactions.d.mts.map +1 -1
  192. package/resources/transactions.d.ts.map +1 -1
  193. package/resources/transactions.mjs.map +1 -1
  194. package/resources/users.d.mts +3 -0
  195. package/resources/users.d.mts.map +1 -1
  196. package/resources/users.d.ts +3 -0
  197. package/resources/users.d.ts.map +1 -1
  198. package/resources/users.mjs.map +1 -1
  199. package/resources/wallet-actions.d.mts +207 -9
  200. package/resources/wallet-actions.d.mts.map +1 -1
  201. package/resources/wallet-actions.d.ts +207 -9
  202. package/resources/wallet-actions.d.ts.map +1 -1
  203. package/resources/wallet-actions.js.map +1 -1
  204. package/resources/wallet-actions.mjs.map +1 -1
  205. package/resources/wallets/balance.d.mts +8 -4
  206. package/resources/wallets/balance.d.mts.map +1 -1
  207. package/resources/wallets/balance.d.ts +8 -4
  208. package/resources/wallets/balance.d.ts.map +1 -1
  209. package/resources/wallets/balance.mjs.map +1 -1
  210. package/resources/wallets/index.d.mts +1 -1
  211. package/resources/wallets/index.d.mts.map +1 -1
  212. package/resources/wallets/index.d.ts +1 -1
  213. package/resources/wallets/index.d.ts.map +1 -1
  214. package/resources/wallets/index.js.map +1 -1
  215. package/resources/wallets/index.mjs.map +1 -1
  216. package/resources/wallets/transactions.d.mts +5 -1
  217. package/resources/wallets/transactions.d.mts.map +1 -1
  218. package/resources/wallets/transactions.d.ts +5 -1
  219. package/resources/wallets/transactions.d.ts.map +1 -1
  220. package/resources/wallets/transactions.mjs.map +1 -1
  221. package/resources/wallets/wallets.d.mts +749 -84
  222. package/resources/wallets/wallets.d.mts.map +1 -1
  223. package/resources/wallets/wallets.d.ts +749 -84
  224. package/resources/wallets/wallets.d.ts.map +1 -1
  225. package/resources/wallets/wallets.js +15 -2
  226. package/resources/wallets/wallets.js.map +1 -1
  227. package/resources/wallets/wallets.mjs +15 -2
  228. package/resources/wallets/wallets.mjs.map +1 -1
  229. package/resources/wallets.d.mts.map +1 -1
  230. package/resources/wallets.d.ts.map +1 -1
  231. package/resources/wallets.mjs.map +1 -1
  232. package/resources/webhooks.d.mts +314 -54
  233. package/resources/webhooks.d.mts.map +1 -1
  234. package/resources/webhooks.d.ts +314 -54
  235. package/resources/webhooks.d.ts.map +1 -1
  236. package/resources/webhooks.js.map +1 -1
  237. package/resources/webhooks.mjs.map +1 -1
  238. package/resources/yield.d.mts +26 -27
  239. package/resources/yield.d.mts.map +1 -1
  240. package/resources/yield.d.ts +26 -27
  241. package/resources/yield.d.ts.map +1 -1
  242. package/resources/yield.mjs.map +1 -1
  243. package/resources.d.mts.map +1 -1
  244. package/resources.d.ts.map +1 -1
  245. package/resources.mjs.map +1 -1
  246. package/src/client.ts +389 -65
  247. package/src/resources/accounts.ts +7 -1
  248. package/src/resources/aggregations.ts +16 -3
  249. package/src/resources/analytics.ts +1 -1
  250. package/src/resources/apps.ts +57 -51
  251. package/src/resources/client-auth.ts +215 -308
  252. package/src/resources/index.ts +180 -25
  253. package/src/resources/intents.ts +132 -91
  254. package/src/resources/key-quorums.ts +11 -9
  255. package/src/resources/kraken-embed.ts +591 -432
  256. package/src/resources/oauth.ts +96 -0
  257. package/src/resources/onramps.ts +652 -0
  258. package/src/resources/policies.ts +106 -16
  259. package/src/resources/shared.ts +53 -0
  260. package/src/resources/swaps.ts +52 -5
  261. package/src/resources/users.ts +3 -0
  262. package/src/resources/wallet-actions.ts +274 -8
  263. package/src/resources/wallets/balance.ts +13 -1
  264. package/src/resources/wallets/index.ts +43 -0
  265. package/src/resources/wallets/transactions.ts +6 -0
  266. package/src/resources/wallets/wallets.ts +969 -93
  267. package/src/resources/webhooks.ts +383 -57
  268. package/src/resources/yield.ts +29 -30
  269. package/src/version.ts +1 -1
  270. package/uploads.d.mts +1 -0
  271. package/uploads.d.mts.map +1 -1
  272. package/uploads.d.ts +1 -0
  273. package/uploads.d.ts.map +1 -1
  274. package/uploads.mjs +1 -0
  275. package/uploads.mjs.map +1 -1
  276. package/version.d.mts +1 -1
  277. package/version.d.ts +1 -1
  278. package/version.js +1 -1
  279. package/version.mjs +1 -1
@@ -1,9 +1,45 @@
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 WalletsAPI from './wallets/wallets';
4
5
 
5
6
  export class WalletActions extends APIResource {}
6
7
 
8
+ /**
9
+ * A wallet action step representing a transaction executed by a custodian (e.g.
10
+ * Bridge).
11
+ */
12
+ export interface CustodianTransactionWalletActionStep {
13
+ /**
14
+ * Identifier of the custodian executing this transaction (e.g. "bridge").
15
+ */
16
+ custodian: string;
17
+
18
+ /**
19
+ * Status of a custodian transaction step in a wallet action.
20
+ */
21
+ status: CustodianTransactionWalletActionStepStatus;
22
+
23
+ type: 'custodian_transaction';
24
+
25
+ /**
26
+ * A description of why a wallet action (or a step within a wallet action) failed.
27
+ */
28
+ failure_reason?: FailureReason;
29
+ }
30
+
31
+ /**
32
+ * Status of a custodian transaction step in a wallet action.
33
+ */
34
+ export type CustodianTransactionWalletActionStepStatus =
35
+ | 'preparing'
36
+ | 'queued'
37
+ | 'custodian_reviewing'
38
+ | 'pending'
39
+ | 'confirmed'
40
+ | 'rejected'
41
+ | 'failed';
42
+
7
43
  /**
8
44
  * A wallet action step consisting of an EVM transaction.
9
45
  */
@@ -30,6 +66,12 @@ export interface EvmTransactionWalletActionStep {
30
66
  * A description of why a wallet action (or a step within a wallet action) failed.
31
67
  */
32
68
  failure_reason?: FailureReason;
69
+
70
+ /**
71
+ * Whether this step has reached on-chain finality. Absent until finality is
72
+ * confirmed.
73
+ */
74
+ finalized?: boolean;
33
75
  }
34
76
 
35
77
  /**
@@ -69,6 +111,17 @@ export interface EvmUserOperationWalletActionStep {
69
111
  * A description of why a wallet action (or a step within a wallet action) failed.
70
112
  */
71
113
  failure_reason?: FailureReason;
114
+
115
+ /**
116
+ * Whether this step has reached on-chain finality. Absent until finality is
117
+ * confirmed.
118
+ */
119
+ finalized?: boolean;
120
+
121
+ /**
122
+ * Amount charged in USD for gas sponsorship on this step.
123
+ */
124
+ gas_credits_charged_usd?: string;
72
125
  }
73
126
 
74
127
  /**
@@ -272,6 +325,57 @@ export interface EarnIncentiveClaimRequestBody {
272
325
  chain: string;
273
326
  }
274
327
 
328
+ /**
329
+ * A reward token with claimed and unclaimed amounts.
330
+ */
331
+ export interface EarnIncentiveRewardEntry {
332
+ /**
333
+ * Total amount already claimed, in smallest unit.
334
+ */
335
+ amount_claimed: string;
336
+
337
+ /**
338
+ * Amount available to claim on-chain but not yet claimed, in smallest unit.
339
+ */
340
+ amount_unclaimed: string;
341
+
342
+ /**
343
+ * Address of the reward token.
344
+ */
345
+ token_address: string;
346
+
347
+ /**
348
+ * Symbol of the reward token (e.g. "MORPHO").
349
+ */
350
+ token_symbol: string;
351
+
352
+ /**
353
+ * Number of decimals for the reward token.
354
+ */
355
+ token_decimals?: number;
356
+ }
357
+
358
+ /**
359
+ * Query parameters for fetching incentive rewards.
360
+ */
361
+ export interface EarnIncentiveRewardsQuery {
362
+ /**
363
+ * Chain name to fetch rewards for (e.g. "base", "ethereum").
364
+ */
365
+ chain: string;
366
+ }
367
+
368
+ /**
369
+ * All incentive rewards for a wallet, with claimed and unclaimed amounts per
370
+ * token.
371
+ */
372
+ export interface EarnIncentiveRewardsResponse {
373
+ /**
374
+ * Reward tokens with their claimed and unclaimed amounts.
375
+ */
376
+ rewards: Array<EarnIncentiveRewardEntry>;
377
+ }
378
+
275
379
  /**
276
380
  * A specific reward token and amount associated with an earn incentive claim.
277
381
  */
@@ -413,6 +517,11 @@ export interface EthereumEarnPositionQuery {
413
517
  * The vault ID to get position for.
414
518
  */
415
519
  vault_id: string;
520
+
521
+ /**
522
+ * Include archived wallets in lookup. Defaults to false.
523
+ */
524
+ include_archived?: boolean;
416
525
  }
417
526
 
418
527
  /**
@@ -551,6 +660,29 @@ export interface FailureReason {
551
660
  details?: unknown;
552
661
  }
553
662
 
663
+ /**
664
+ * Query parameters for listing wallet actions.
665
+ */
666
+ export interface ListWalletActionsQuery {
667
+ cursor?: string;
668
+
669
+ limit?: number | null;
670
+
671
+ /**
672
+ * Type of wallet action
673
+ */
674
+ type?: WalletActionType;
675
+ }
676
+
677
+ /**
678
+ * Paginated list of wallet actions.
679
+ */
680
+ export interface ListWalletActionsResponse {
681
+ data: Array<WalletActionResponse>;
682
+
683
+ next_cursor: string | null;
684
+ }
685
+
554
686
  /**
555
687
  * A wallet action step consisting of an SVM (Solana) transaction.
556
688
  */
@@ -576,6 +708,17 @@ export interface SvmTransactionWalletActionStep {
576
708
  * A description of why a wallet action (or a step within a wallet action) failed.
577
709
  */
578
710
  failure_reason?: FailureReason;
711
+
712
+ /**
713
+ * Whether this step has reached on-chain finality. Absent until finality is
714
+ * confirmed.
715
+ */
716
+ finalized?: boolean;
717
+
718
+ /**
719
+ * Amount charged in USD for gas sponsorship on this step.
720
+ */
721
+ gas_credits_charged_usd?: string;
579
722
  }
580
723
 
581
724
  /**
@@ -586,7 +729,6 @@ export type SvmWalletActionStepStatus =
586
729
  | 'queued'
587
730
  | 'pending'
588
731
  | 'confirmed'
589
- | 'finalized'
590
732
  | 'rejected'
591
733
  | 'reverted'
592
734
  | 'failed';
@@ -642,17 +784,92 @@ export interface SwapActionResponse {
642
784
  */
643
785
  wallet_id: string;
644
786
 
787
+ /**
788
+ * Recipient address on the destination chain. Present for cross-chain swaps. May
789
+ * differ from the source wallet address when swapping between chain types (e.g.
790
+ * EVM to Solana).
791
+ */
792
+ destination_address?: string;
793
+
794
+ /**
795
+ * Destination chain CAIP-2 identifier. Present for cross-chain swaps.
796
+ */
797
+ destination_caip2?: string;
798
+
799
+ /**
800
+ * Estimated fee breakdown from the provider quote. Only present for cross-chain
801
+ * swaps. Populated after on-chain confirmation.
802
+ */
803
+ estimated_fees?: Array<WalletsAPI.FeeLineItem> | null;
804
+
805
+ /**
806
+ * Gas cost for a blockchain action. Includes both raw base-unit amount and a
807
+ * human-readable decimal string, plus the gas token symbol.
808
+ */
809
+ estimated_gas?: WalletsAPI.Gas | null;
810
+
645
811
  /**
646
812
  * A description of why a wallet action (or a step within a wallet action) failed.
647
813
  */
648
814
  failure_reason?: FailureReason;
649
815
 
816
+ /**
817
+ * Actual fees paid for the swap. Populated after on-chain confirmation. Only
818
+ * present for cross-chain swaps.
819
+ */
820
+ fees?: Array<WalletsAPI.FeeLineItem> | null;
821
+
822
+ /**
823
+ * Gas cost for a blockchain action. Includes both raw base-unit amount and a
824
+ * human-readable decimal string, plus the gas token symbol.
825
+ */
826
+ gas?: WalletsAPI.Gas | null;
827
+
650
828
  /**
651
829
  * The steps of the wallet action. Only returned if `?include=steps` is provided.
652
830
  */
653
831
  steps?: Array<WalletActionStep>;
654
832
  }
655
833
 
834
+ /**
835
+ * A wallet action step consisting of a TVM (Tron) transaction.
836
+ */
837
+ export interface TvmTransactionWalletActionStep {
838
+ /**
839
+ * CAIP-2 chain identifier for the Tron network.
840
+ */
841
+ caip2: string;
842
+
843
+ /**
844
+ * Status of a TVM (Tron) step in a wallet action.
845
+ */
846
+ status: TvmWalletActionStepStatus;
847
+
848
+ /**
849
+ * The Tron transaction ID. Null until broadcast.
850
+ */
851
+ transaction_id: string | null;
852
+
853
+ type: 'tvm_transaction';
854
+
855
+ /**
856
+ * A description of why a wallet action (or a step within a wallet action) failed.
857
+ */
858
+ failure_reason?: FailureReason;
859
+ }
860
+
861
+ /**
862
+ * Status of a TVM (Tron) step in a wallet action.
863
+ */
864
+ export type TvmWalletActionStepStatus =
865
+ | 'preparing'
866
+ | 'queued'
867
+ | 'pending'
868
+ | 'confirmed'
869
+ | 'rejected'
870
+ | 'reverted'
871
+ | 'failed';
872
+
656
873
  /**
657
874
  * Response for a transfer action.
658
875
  */
@@ -672,6 +889,13 @@ export interface TransferActionResponse {
672
889
  */
673
890
  destination_address: string;
674
891
 
892
+ /**
893
+ * Amount received on the destination chain. For exact_output cross-chain
894
+ * transfers, set at creation (the guaranteed exact amount). For exact_input
895
+ * cross-chain transfers, null until fill confirmation.
896
+ */
897
+ destination_amount: string | null;
898
+
675
899
  /**
676
900
  * Chain name (e.g. "base", "ethereum").
677
901
  */
@@ -690,10 +914,9 @@ export interface TransferActionResponse {
690
914
  wallet_id: string;
691
915
 
692
916
  /**
693
- * Amount received on the destination chain. Populated immediately for exact_output
694
- * transfers, or after fill confirmation for exact_input transfers.
917
+ * Whether the amount refers to the input token or output token.
695
918
  */
696
- destination_amount?: string;
919
+ amount_type?: WalletsAPI.AmountType;
697
920
 
698
921
  /**
699
922
  * Destination asset for cross-asset transfers. Omitted for same-asset transfers.
@@ -705,14 +928,38 @@ export interface TransferActionResponse {
705
928
  */
706
929
  destination_chain?: string;
707
930
 
931
+ /**
932
+ * Estimated fee breakdown from the provider quote. Only present for cross-chain or
933
+ * cross-asset transfers. Populated after on-chain confirmation.
934
+ */
935
+ estimated_fees?: Array<WalletsAPI.FeeLineItem> | null;
936
+
937
+ /**
938
+ * Gas cost for a blockchain action. Includes both raw base-unit amount and a
939
+ * human-readable decimal string, plus the gas token symbol.
940
+ */
941
+ estimated_gas?: WalletsAPI.Gas | null;
942
+
708
943
  /**
709
944
  * A description of why a wallet action (or a step within a wallet action) failed.
710
945
  */
711
946
  failure_reason?: FailureReason;
712
947
 
713
948
  /**
714
- * Decimal amount sent on the source chain (e.g. "1.5"). Omitted for exact_output
715
- * cross-chain transfers until the source amount is determined.
949
+ * Actual fees paid for the transfer. Populated after on-chain confirmation. Only
950
+ * present for cross-chain transfers.
951
+ */
952
+ fees?: Array<WalletsAPI.FeeLineItem> | null;
953
+
954
+ /**
955
+ * Gas cost for a blockchain action. Includes both raw base-unit amount and a
956
+ * human-readable decimal string, plus the gas token symbol.
957
+ */
958
+ gas?: WalletsAPI.Gas | null;
959
+
960
+ /**
961
+ * Decimal amount sent on the source chain (e.g. "1.5"). For exact_output
962
+ * cross-chain transfers, null until fill confirmation.
716
963
  */
717
964
  source_amount?: string;
718
965
 
@@ -740,6 +987,11 @@ export interface TransferActionResponse {
740
987
  steps?: Array<WalletActionStep>;
741
988
  }
742
989
 
990
+ /**
991
+ * Expandable relations to include on a wallet action response.
992
+ */
993
+ export type WalletActionInclude = 'steps';
994
+
743
995
  /**
744
996
  * Response for a wallet action, discriminated on type.
745
997
  */
@@ -762,7 +1014,9 @@ export type WalletActionStep =
762
1014
  | EvmTransactionWalletActionStep
763
1015
  | EvmUserOperationWalletActionStep
764
1016
  | SvmTransactionWalletActionStep
765
- | ExternalTransactionWalletActionStep;
1017
+ | TvmTransactionWalletActionStep
1018
+ | ExternalTransactionWalletActionStep
1019
+ | CustodianTransactionWalletActionStep;
766
1020
 
767
1021
  /**
768
1022
  * Type of a wallet action step.
@@ -771,7 +1025,9 @@ export type WalletActionStepType =
771
1025
  | 'evm_transaction'
772
1026
  | 'evm_user_operation'
773
1027
  | 'svm_transaction'
774
- | 'external_transaction';
1028
+ | 'tvm_transaction'
1029
+ | 'external_transaction'
1030
+ | 'custodian_transaction';
775
1031
 
776
1032
  /**
777
1033
  * Type of wallet action
@@ -785,6 +1041,8 @@ export type WalletActionType =
785
1041
 
786
1042
  export declare namespace WalletActions {
787
1043
  export {
1044
+ type CustodianTransactionWalletActionStep as CustodianTransactionWalletActionStep,
1045
+ type CustodianTransactionWalletActionStepStatus as CustodianTransactionWalletActionStepStatus,
788
1046
  type EvmTransactionWalletActionStep as EvmTransactionWalletActionStep,
789
1047
  type EvmUserOperationWalletActionStep as EvmUserOperationWalletActionStep,
790
1048
  type EvmWalletActionStepStatus as EvmWalletActionStepStatus,
@@ -793,6 +1051,9 @@ export declare namespace WalletActions {
793
1051
  type EarnDepositRequestBody as EarnDepositRequestBody,
794
1052
  type EarnIncentiveClaimActionResponse as EarnIncentiveClaimActionResponse,
795
1053
  type EarnIncentiveClaimRequestBody as EarnIncentiveClaimRequestBody,
1054
+ type EarnIncentiveRewardEntry as EarnIncentiveRewardEntry,
1055
+ type EarnIncentiveRewardsQuery as EarnIncentiveRewardsQuery,
1056
+ type EarnIncentiveRewardsResponse as EarnIncentiveRewardsResponse,
796
1057
  type EarnIncetiveClaimRewardEntry as EarnIncetiveClaimRewardEntry,
797
1058
  type EarnWithdrawActionResponse as EarnWithdrawActionResponse,
798
1059
  type EarnWithdrawRequestBody as EarnWithdrawRequestBody,
@@ -803,10 +1064,15 @@ export declare namespace WalletActions {
803
1064
  type ExternalTransactionWalletActionStep as ExternalTransactionWalletActionStep,
804
1065
  type ExternalTransactionWalletActionStepStatus as ExternalTransactionWalletActionStepStatus,
805
1066
  type FailureReason as FailureReason,
1067
+ type ListWalletActionsQuery as ListWalletActionsQuery,
1068
+ type ListWalletActionsResponse as ListWalletActionsResponse,
806
1069
  type SvmTransactionWalletActionStep as SvmTransactionWalletActionStep,
807
1070
  type SvmWalletActionStepStatus as SvmWalletActionStepStatus,
808
1071
  type SwapActionResponse as SwapActionResponse,
1072
+ type TvmTransactionWalletActionStep as TvmTransactionWalletActionStep,
1073
+ type TvmWalletActionStepStatus as TvmWalletActionStepStatus,
809
1074
  type TransferActionResponse as TransferActionResponse,
1075
+ type WalletActionInclude as WalletActionInclude,
810
1076
  type WalletActionResponse as WalletActionResponse,
811
1077
  type WalletActionStatus as WalletActionStatus,
812
1078
  type WalletActionStep as WalletActionStep,
@@ -35,11 +35,12 @@ export interface BalanceGetResponse {
35
35
 
36
36
  export namespace BalanceGetResponse {
37
37
  export interface Balance {
38
- asset: 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
38
+ asset: 'usdc' | 'usdc.e' | 'eth' | 'avax' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
39
39
 
40
40
  chain:
41
41
  | 'ethereum'
42
42
  | 'arbitrum'
43
+ | 'avalanche'
43
44
  | 'base'
44
45
  | 'tempo'
45
46
  | 'linea'
@@ -49,6 +50,7 @@ export namespace BalanceGetResponse {
49
50
  | 'zksync_era'
50
51
  | 'sepolia'
51
52
  | 'arbitrum_sepolia'
53
+ | 'avalanche_fuji'
52
54
  | 'base_sepolia'
53
55
  | 'linea_testnet'
54
56
  | 'optimism_sepolia'
@@ -81,6 +83,7 @@ export interface BalanceGetParams {
81
83
  | 'usdc'
82
84
  | 'usdc.e'
83
85
  | 'eth'
86
+ | 'avax'
84
87
  | 'pol'
85
88
  | 'usdt'
86
89
  | 'eurc'
@@ -95,6 +98,7 @@ export interface BalanceGetParams {
95
98
  chain?:
96
99
  | 'ethereum'
97
100
  | 'arbitrum'
101
+ | 'avalanche'
98
102
  | 'base'
99
103
  | 'tempo'
100
104
  | 'linea'
@@ -104,6 +108,7 @@ export interface BalanceGetParams {
104
108
  | 'zksync_era'
105
109
  | 'sepolia'
106
110
  | 'arbitrum_sepolia'
111
+ | 'avalanche_fuji'
107
112
  | 'base_sepolia'
108
113
  | 'linea_testnet'
109
114
  | 'optimism_sepolia'
@@ -113,6 +118,7 @@ export interface BalanceGetParams {
113
118
  | Array<
114
119
  | 'ethereum'
115
120
  | 'arbitrum'
121
+ | 'avalanche'
116
122
  | 'base'
117
123
  | 'tempo'
118
124
  | 'linea'
@@ -122,6 +128,7 @@ export interface BalanceGetParams {
122
128
  | 'zksync_era'
123
129
  | 'sepolia'
124
130
  | 'arbitrum_sepolia'
131
+ | 'avalanche_fuji'
125
132
  | 'base_sepolia'
126
133
  | 'linea_testnet'
127
134
  | 'optimism_sepolia'
@@ -130,6 +137,11 @@ export interface BalanceGetParams {
130
137
  | 'solana_testnet'
131
138
  >;
132
139
 
140
+ /**
141
+ * Include archived wallets in lookup. Defaults to false.
142
+ */
143
+ include_archived?: boolean;
144
+
133
145
  /**
134
146
  * If set, balances are converted to the specified fiat currency. Not supported
135
147
  * when `token` is provided.
@@ -4,9 +4,13 @@ export { Balance, type BalanceGetResponse, type BalanceGetParams } from './balan
4
4
  export { Transactions, type TransactionGetResponse, type TransactionGetParams } from './transactions';
5
5
  export {
6
6
  Wallets,
7
+ type AccessListEntry,
7
8
  type AdditionalSignerInput,
8
9
  type AdditionalSignerItemInput,
9
10
  type Address,
11
+ type AdvancedSwapPlatformFee,
12
+ type AdvancedSwapRequestBody,
13
+ type AdvancedSwapResponse,
10
14
  type AmountType,
11
15
  type AuthorizationKeyDashboardResponse,
12
16
  type AuthorizationKeyResponse,
@@ -18,6 +22,10 @@ export {
18
22
  type CustodialWalletCreateInput,
19
23
  type CustodialWalletProvider,
20
24
  type CustomTokenTransferSource,
25
+ type DeveloperFee,
26
+ type EncryptedAuthorizationKey,
27
+ type EncryptedBoundAuthenticateResponse,
28
+ type EncryptedWalletAuthenticateResponse,
21
29
  type EthereumPersonalSignRpcInput,
22
30
  type EthereumPersonalSignRpcInputParams,
23
31
  type EthereumPersonalSignRpcResponse,
@@ -61,7 +69,10 @@ export {
61
69
  type ExportSeedPhraseRpcResponse,
62
70
  type ExportType,
63
71
  type ExtendedChainType,
72
+ type FeeConfiguration,
73
+ type FeeLineItem,
64
74
  type FirstClassChainType,
75
+ type Gas,
65
76
  type GetByWalletAddressRequestBody,
66
77
  type HDInitInput,
67
78
  type HDPath,
@@ -70,6 +81,7 @@ export {
70
81
  type HpkeEncryption,
71
82
  type HpkeImportConfig,
72
83
  type Hex,
84
+ type IntentBinding,
73
85
  type NamedTokenTransferSource,
74
86
  type OutputWithPreviousTransactionData,
75
87
  type PolicyInput,
@@ -77,7 +89,9 @@ export {
77
89
  type PrivateKeyExportResponse,
78
90
  type PrivateKeyInitInput,
79
91
  type PrivateKeySubmitInput,
92
+ type PrivyFee,
80
93
  type Quantity,
94
+ type RawBoundAuthenticateResponse,
81
95
  type RawSignBytesEncoding,
82
96
  type RawSignBytesHashFunction,
83
97
  type RawSignBytesParams,
@@ -86,9 +100,13 @@ export {
86
100
  type RawSignInputParams,
87
101
  type RawSignResponse,
88
102
  type RawSignResponseData,
103
+ type RawWalletAuthenticateResponse,
89
104
  type RecipientPublicKey,
105
+ type RelayerFee,
90
106
  type SeedPhraseExportInput,
91
107
  type SeedPhraseExportResponse,
108
+ type SignatureOptions,
109
+ type SignatureType,
92
110
  type SigningAlgorithm,
93
111
  type SolanaRpcInput,
94
112
  type SolanaRpcResponse,
@@ -150,17 +168,36 @@ export {
150
168
  type SparkUserTokenMetadata,
151
169
  type SparkWalletLeaf,
152
170
  type SuiCommandName,
171
+ type SwapSubmissionStatus,
153
172
  type TempoAaAuthorization,
154
173
  type TempoCall,
155
174
  type TempoFeePayerSignature,
156
175
  type TokenOutput,
157
176
  type TokenTransferDestination,
158
177
  type TokenTransferSource,
178
+ type TotalFeeConfigurationBps,
159
179
  type TransactionDetail,
160
180
  type TransactionTokenAddressInput,
181
+ type TransferQuoteRequestBody,
182
+ type TransferQuoteResponse,
161
183
  type TransferReceivedTransactionDetail,
162
184
  type TransferRequestBody,
163
185
  type TransferSentTransactionDetail,
186
+ type TronContract,
187
+ type TronRawDataForSend,
188
+ type TronRawDataForSign,
189
+ type TronRpcInput,
190
+ type TronRpcResponse,
191
+ type TronSendTransactionRpcInput,
192
+ type TronSendTransactionRpcInputParams,
193
+ type TronSendTransactionRpcResponse,
194
+ type TronSendTransactionRpcResponseData,
195
+ type TronSignTransactionRpcInput,
196
+ type TronSignTransactionRpcInputParams,
197
+ type TronSignTransactionRpcResponse,
198
+ type TronSignTransactionRpcResponseData,
199
+ type TronTransferContract,
200
+ type TronTriggerSmartContract,
164
201
  type TypedDataDomainInputParams,
165
202
  type TypedDataTypeFieldInput,
166
203
  type TypedDataTypesInputParams,
@@ -168,12 +205,17 @@ export {
168
205
  type UnsignedStandardEthereumTransaction,
169
206
  type UnsignedTempoTransaction,
170
207
  type UserOperationInput,
208
+ type UserSigningKeyBinding,
171
209
  type Wallet,
172
210
  type WalletAdditionalSigner,
173
211
  type WalletAdditionalSignerItem,
174
212
  type WalletAPIRegisterAuthorizationKeyInput,
175
213
  type WalletAPIRevokeAuthorizationKeyInput,
176
214
  type WalletAsset,
215
+ type WalletAuthenticateBoundEncryptedRequestBody,
216
+ type WalletAuthenticateBoundRequestBody,
217
+ type WalletAuthenticateBoundUnencryptedRequestBody,
218
+ type WalletAuthenticateIntentsResponse,
177
219
  type WalletAuthenticateRequestBody,
178
220
  type WalletAuthenticateWithJwtResponse,
179
221
  type WalletAuthorizationHeaders,
@@ -200,6 +242,7 @@ export {
200
242
  type WalletUpdateParams,
201
243
  type WalletListParams,
202
244
  type WalletExportParams,
245
+ type WalletGetParams,
203
246
  type WalletRawSignParams,
204
247
  type WalletRpcParams,
205
248
  type WalletsCursor,
@@ -93,6 +93,7 @@ export interface TransactionGetParams {
93
93
  | 'usdc'
94
94
  | 'usdc.e'
95
95
  | 'eth'
96
+ | 'avax'
96
97
  | 'pol'
97
98
  | 'usdt'
98
99
  | 'eurc'
@@ -102,6 +103,11 @@ export interface TransactionGetParams {
102
103
 
103
104
  cursor?: string;
104
105
 
106
+ /**
107
+ * Include archived wallets in lookup. Defaults to false.
108
+ */
109
+ include_archived?: boolean;
110
+
105
111
  limit?: number | null;
106
112
 
107
113
  tx_hash?: string;