@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
@@ -87,7 +87,17 @@ export interface AggregationCondition {
87
87
  /**
88
88
  * Operator to use for policy conditions.
89
89
  */
90
- export type ConditionOperator = 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
90
+ export type ConditionOperator =
91
+ | 'eq'
92
+ | 'gt'
93
+ | 'gte'
94
+ | 'lt'
95
+ | 'lte'
96
+ | 'in'
97
+ | 'in_condition_set'
98
+ | 'contains'
99
+ | 'starts_with'
100
+ | 'ends_with';
91
101
 
92
102
  /**
93
103
  * A condition set for grouping related condition values.
@@ -112,7 +122,7 @@ export interface ConditionSet {
112
122
  /**
113
123
  * A unique identifier for a key quorum.
114
124
  */
115
- owner_id: SharedAPI.KeyQuorumID;
125
+ owner_id: SharedAPI.KeyQuorumID | null;
116
126
  }
117
127
 
118
128
  /**
@@ -205,8 +215,8 @@ export interface ConditionSetItemsResponse {
205
215
  }
206
216
 
207
217
  /**
208
- * Request body for creating a condition set. Exactly one of `owner` or `owner_id`
209
- * is required.
218
+ * Request body for creating a condition set. Optionally provide `owner` or
219
+ * `owner_id` (but not both) to specify ownership.
210
220
  */
211
221
  export interface ConditionSetRequestBody {
212
222
  /**
@@ -342,7 +352,11 @@ export interface EthereumTypedDataMessageCondition {
342
352
  */
343
353
  operator: ConditionOperator;
344
354
 
345
- typed_data: EthereumTypedDataMessageCondition.TypedData;
355
+ /**
356
+ * The typed data structure containing EIP-712 types and the primary type for typed
357
+ * data message policy conditions.
358
+ */
359
+ typed_data: TypedDataInput;
346
360
 
347
361
  /**
348
362
  * Value to compare against in a policy condition. Can be a single string or an
@@ -351,17 +365,34 @@ export interface EthereumTypedDataMessageCondition {
351
365
  value: ConditionValue;
352
366
  }
353
367
 
354
- export namespace EthereumTypedDataMessageCondition {
355
- export interface TypedData {
356
- primary_type: string;
368
+ /**
369
+ * Condition on the message being signed (e.g. in personal_sign).
370
+ */
371
+ export interface MessageSigningCondition {
372
+ /**
373
+ * Supported fields for message signing conditions.
374
+ */
375
+ field: MessageSigningField;
357
376
 
358
- /**
359
- * The type definitions for EIP-712 typed data signing.
360
- */
361
- types: WalletsAPI.TypedDataTypesInputParams;
362
- }
377
+ field_source: 'message';
378
+
379
+ /**
380
+ * Operator to use for policy conditions.
381
+ */
382
+ operator: ConditionOperator;
383
+
384
+ /**
385
+ * Value to compare against in a policy condition. Can be a single string or an
386
+ * array of strings.
387
+ */
388
+ value: ConditionValue;
363
389
  }
364
390
 
391
+ /**
392
+ * Supported fields for message signing conditions.
393
+ */
394
+ export type MessageSigningField = 'content' | 'byte_length';
395
+
365
396
  /**
366
397
  * A policy for controlling wallet operations.
367
398
  */
@@ -388,9 +419,9 @@ export interface Policy {
388
419
  name: string;
389
420
 
390
421
  /**
391
- * The key quorum ID of the owner of the policy.
422
+ * A unique identifier for a key quorum.
392
423
  */
393
- owner_id: string | null;
424
+ owner_id: SharedAPI.KeyQuorumID | null;
394
425
 
395
426
  rules: Array<PolicyRuleResponse>;
396
427
 
@@ -436,6 +467,7 @@ export type PolicyCondition =
436
467
  | EthereumTypedDataDomainCondition
437
468
  | EthereumTypedDataMessageCondition
438
469
  | Ethereum7702AuthorizationCondition
470
+ | TempoTransactionCondition
439
471
  | SolanaProgramInstructionCondition
440
472
  | SolanaSystemProgramInstructionCondition
441
473
  | SolanaTokenProgramInstructionCondition
@@ -445,7 +477,8 @@ export type PolicyCondition =
445
477
  | SuiTransactionCommandCondition
446
478
  | SuiTransferObjectsCommandCondition
447
479
  | ActionRequestBodyCondition
448
- | AggregationCondition;
480
+ | AggregationCondition
481
+ | MessageSigningCondition;
449
482
 
450
483
  /**
451
484
  * Method the rule applies to.
@@ -455,13 +488,16 @@ export type PolicyMethod =
455
488
  | 'eth_signTransaction'
456
489
  | 'eth_signUserOperation'
457
490
  | 'eth_signTypedData_v4'
491
+ | 'personal_sign'
458
492
  | 'eth_sign7702Authorization'
459
493
  | 'wallet_sendCalls'
460
494
  | 'signTransaction'
461
495
  | 'signAndSendTransaction'
496
+ | 'signMessage'
462
497
  | 'exportPrivateKey'
463
498
  | 'exportSeedPhrase'
464
499
  | 'signTransactionBytes'
500
+ | 'signRawMessageBytes'
465
501
  | 'earn_deposit'
466
502
  | 'earn_withdraw'
467
503
  | 'transfer'
@@ -689,6 +725,42 @@ export interface SystemCondition {
689
725
  value: ConditionValue;
690
726
  }
691
727
 
728
+ /**
729
+ * A Tempo (type 118) transaction-level field. Evaluated once per transaction (not
730
+ * per call).
731
+ */
732
+ export interface TempoTransactionCondition {
733
+ /**
734
+ * Tempo (type 118) transaction-level fields that can be referenced in a policy
735
+ * condition.
736
+ */
737
+ field: TempoTransactionConditionField;
738
+
739
+ field_source: 'tempo_transaction';
740
+
741
+ /**
742
+ * Operator to use for policy conditions.
743
+ */
744
+ operator: ConditionOperator;
745
+
746
+ /**
747
+ * Value to compare against in a policy condition. Can be a single string or an
748
+ * array of strings.
749
+ */
750
+ value: ConditionValue;
751
+ }
752
+
753
+ /**
754
+ * Tempo (type 118) transaction-level fields that can be referenced in a policy
755
+ * condition.
756
+ */
757
+ export type TempoTransactionConditionField =
758
+ | 'fee_token'
759
+ | 'fee_payer_signature'
760
+ | 'nonce_key'
761
+ | 'valid_before'
762
+ | 'valid_after';
763
+
692
764
  /**
693
765
  * Decoded calldata from a TRON TriggerSmartContract interaction.
694
766
  */
@@ -744,6 +816,19 @@ export interface TronTransactionCondition {
744
816
  value: ConditionValue;
745
817
  }
746
818
 
819
+ /**
820
+ * The typed data structure containing EIP-712 types and the primary type for typed
821
+ * data message policy conditions.
822
+ */
823
+ export interface TypedDataInput {
824
+ primary_type: string;
825
+
826
+ /**
827
+ * The type definitions for EIP-712 typed data signing.
828
+ */
829
+ types: WalletsAPI.TypedDataTypesInputParams;
830
+ }
831
+
747
832
  /**
748
833
  * Request body for updating a condition set. At least one field must be provided.
749
834
  * `owner` and `owner_id` are mutually exclusive.
@@ -790,6 +875,8 @@ export declare namespace Policies {
790
875
  type EthereumTransactionCondition as EthereumTransactionCondition,
791
876
  type EthereumTypedDataDomainCondition as EthereumTypedDataDomainCondition,
792
877
  type EthereumTypedDataMessageCondition as EthereumTypedDataMessageCondition,
878
+ type MessageSigningCondition as MessageSigningCondition,
879
+ type MessageSigningField as MessageSigningField,
793
880
  type Policy as Policy,
794
881
  type PolicyAction as PolicyAction,
795
882
  type PolicyAuthorizationHeaders as PolicyAuthorizationHeaders,
@@ -807,8 +894,11 @@ export declare namespace Policies {
807
894
  type SuiTransferObjectsCommandCondition as SuiTransferObjectsCommandCondition,
808
895
  type SuiTransferObjectsCommandField as SuiTransferObjectsCommandField,
809
896
  type SystemCondition as SystemCondition,
897
+ type TempoTransactionCondition as TempoTransactionCondition,
898
+ type TempoTransactionConditionField as TempoTransactionConditionField,
810
899
  type TronCalldataCondition as TronCalldataCondition,
811
900
  type TronTransactionCondition as TronTransactionCondition,
901
+ type TypedDataInput as TypedDataInput,
812
902
  type UpdateConditionSetRequestBody as UpdateConditionSetRequestBody,
813
903
  };
814
904
  }
@@ -4,6 +4,11 @@ import { APIResource } from '../core/resource';
4
4
 
5
5
  export class Shared extends APIResource {}
6
6
 
7
+ /**
8
+ * Bitcoin address: bech32 (bc1), P2SH (3), or P2PKH (1).
9
+ */
10
+ export type BitcoinAddress = string;
11
+
7
12
  /**
8
13
  * A monetary value with its currency denomination.
9
14
  */
@@ -19,6 +24,23 @@ export interface CurrencyAmount {
19
24
  value: string;
20
25
  }
21
26
 
27
+ /**
28
+ * EVM address: 0x followed by 40 hex characters. Preserves input case.
29
+ */
30
+ export type EvmAddress = string;
31
+
32
+ /**
33
+ * EVM address normalized to EIP-55 checksum case.
34
+ */
35
+ export type EvmChecksumAddress = string;
36
+
37
+ /**
38
+ * Hyperliquid L1 token identifier: 0x followed by either 32 hex characters
39
+ * (16-byte spot/perps token IDs) or 40 hex characters (20-byte HIP-3 DEX token
40
+ * IDs), normalized to lowercase.
41
+ */
42
+ export type HyperliquidTokenAddress = string;
43
+
22
44
  /**
23
45
  * A unique identifier for a key quorum.
24
46
  */
@@ -58,6 +80,11 @@ export interface OwnerInputUser {
58
80
  */
59
81
  export type P256PublicKey = string;
60
82
 
83
+ /**
84
+ * Solana address: base58-encoded public key (32 bytes).
85
+ */
86
+ export type SolanaAddress = string;
87
+
61
88
  /**
62
89
  * A simple success response.
63
90
  */
@@ -65,15 +92,41 @@ export interface SuccessResponse {
65
92
  success: boolean;
66
93
  }
67
94
 
95
+ /**
96
+ * Token identifier string. EVM-shaped 40-hex token addresses normalize to checksum
97
+ * case, 16-byte Hyperliquid token IDs normalize to lowercase, and all other
98
+ * identifiers pass through unchanged.
99
+ */
100
+ export type TokenIdentifier = string;
101
+
102
+ /**
103
+ * Tron address: base58check-encoded, starting with T, 34 characters.
104
+ */
105
+ export type TronAddress = string;
106
+
107
+ /**
108
+ * Tron address in hex format: 41-prefixed, 42 hex characters (21 bytes), no 0x
109
+ * prefix.
110
+ */
111
+ export type TronHexAddress = string;
112
+
68
113
  export declare namespace Shared {
69
114
  export {
115
+ type BitcoinAddress as BitcoinAddress,
70
116
  type CurrencyAmount as CurrencyAmount,
117
+ type EvmAddress as EvmAddress,
118
+ type EvmChecksumAddress as EvmChecksumAddress,
119
+ type HyperliquidTokenAddress as HyperliquidTokenAddress,
71
120
  type KeyQuorumID as KeyQuorumID,
72
121
  type OwnerIDInput as OwnerIDInput,
73
122
  type OwnerInput as OwnerInput,
74
123
  type OwnerInputPublicKey as OwnerInputPublicKey,
75
124
  type OwnerInputUser as OwnerInputUser,
76
125
  type P256PublicKey as P256PublicKey,
126
+ type SolanaAddress as SolanaAddress,
77
127
  type SuccessResponse as SuccessResponse,
128
+ type TokenIdentifier as TokenIdentifier,
129
+ type TronAddress as TronAddress,
130
+ type TronHexAddress as TronHexAddress,
78
131
  };
79
132
  }
@@ -15,10 +15,16 @@ export interface SwapDestination {
15
15
  asset_address: string;
16
16
 
17
17
  /**
18
- * CAIP-2 chain identifier for the destination. Must match source chain —
19
- * cross-chain swaps are not yet supported. Defaults to source chain if omitted.
18
+ * CAIP-2 chain identifier for the destination. Defaults to source chain if
19
+ * omitted. Specify a different chain for cross-chain swaps.
20
20
  */
21
21
  caip2?: string;
22
+
23
+ /**
24
+ * Address to receive the output tokens. Defaults to the swapping wallet address.
25
+ * Required when swapping between different chain types (e.g. EVM to Solana).
26
+ */
27
+ destination_address?: string;
22
28
  }
23
29
 
24
30
  /**
@@ -31,10 +37,18 @@ export interface SwapQuoteDestination {
31
37
  asset_address: string;
32
38
 
33
39
  /**
34
- * CAIP-2 chain identifier for the destination. Must match source chain —
35
- * cross-chain swaps are not yet supported. Defaults to source chain if omitted.
40
+ * CAIP-2 chain identifier for the destination. Defaults to source chain if
41
+ * omitted. Will result in a cross-chain swap if source and destination chains
42
+ * differ.
36
43
  */
37
44
  caip2?: string;
45
+
46
+ /**
47
+ * Address to receive the output tokens. Defaults to the swapping wallet address.
48
+ * Required when swapping between chains with different address types (e.g. EVM to
49
+ * Solana).
50
+ */
51
+ destination_address?: string;
38
52
  }
39
53
 
40
54
  /**
@@ -61,6 +75,11 @@ export interface SwapQuoteRequestBody {
61
75
  */
62
76
  amount_type?: WalletsAPI.AmountType;
63
77
 
78
+ /**
79
+ * Total fees assessed on a transfer, in BPS
80
+ */
81
+ fee_configuration?: WalletsAPI.FeeConfiguration;
82
+
64
83
  /**
65
84
  * Maximum slippage tolerance in basis points (e.g., 50 for 0.5%). If omitted,
66
85
  * auto-slippage is used.
@@ -83,7 +102,8 @@ export interface SwapQuoteResponse {
83
102
  est_output_amount: string;
84
103
 
85
104
  /**
86
- * Estimated gas cost in base units of the native token.
105
+ * Estimated gas cost in base units of the native token. @deprecated For
106
+ * cross-chain swaps, use estimated_gas instead.
87
107
  */
88
108
  gas_estimate: string;
89
109
 
@@ -106,6 +126,28 @@ export interface SwapQuoteResponse {
106
126
  * Token address being bought.
107
127
  */
108
128
  output_token: string;
129
+
130
+ /**
131
+ * Destination chain CAIP-2 identifier for cross-chain swaps. Only present for
132
+ * cross-chain swaps.
133
+ */
134
+ destination_caip2?: string;
135
+
136
+ /**
137
+ * Estimated fees for the swap. Only present for cross-chain swaps.
138
+ */
139
+ estimated_fees?: Array<WalletsAPI.FeeLineItem>;
140
+
141
+ /**
142
+ * Gas cost for a blockchain action. Includes both raw base-unit amount and a
143
+ * human-readable decimal string, plus the gas token symbol.
144
+ */
145
+ estimated_gas?: WalletsAPI.Gas;
146
+
147
+ /**
148
+ * Quote expiry as Unix timestamp (seconds). Only present for cross-chain quotes.
149
+ */
150
+ expires_at?: number;
109
151
  }
110
152
 
111
153
  /**
@@ -132,6 +174,11 @@ export interface SwapRequestBody {
132
174
  */
133
175
  amount_type?: WalletsAPI.AmountType;
134
176
 
177
+ /**
178
+ * Total fees assessed on a transfer, in BPS
179
+ */
180
+ fee_configuration?: WalletsAPI.FeeConfiguration;
181
+
135
182
  /**
136
183
  * Maximum slippage tolerance in basis points (e.g., 50 for 0.5%).
137
184
  */
@@ -406,6 +406,9 @@ export interface LinkedAccountEmailInput {
406
406
  type: 'email';
407
407
  }
408
408
 
409
+ /**
410
+ * A linked embedded wallet account across all supported chain types.
411
+ */
409
412
  export type LinkedAccountEmbeddedWallet =
410
413
  | LinkedAccountEthereumEmbeddedWallet
411
414
  | LinkedAccountSolanaEmbeddedWallet