@privy-io/api-types 0.13.0 → 0.15.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 (256) hide show
  1. package/CHANGELOG.md +49 -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 +25 -19
  9. package/client.d.mts.map +1 -1
  10. package/client.d.ts +25 -19
  11. package/client.d.ts.map +1 -1
  12. package/client.js +8 -2
  13. package/client.js.map +1 -1
  14. package/client.mjs +8 -2
  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.map +1 -1
  95. package/resources/accounts.d.ts.map +1 -1
  96. package/resources/accounts.mjs.map +1 -1
  97. package/resources/aggregations.d.mts.map +1 -1
  98. package/resources/aggregations.d.ts.map +1 -1
  99. package/resources/aggregations.mjs.map +1 -1
  100. package/resources/analytics.d.mts +1 -1
  101. package/resources/analytics.d.mts.map +1 -1
  102. package/resources/analytics.d.ts +1 -1
  103. package/resources/analytics.d.ts.map +1 -1
  104. package/resources/analytics.mjs.map +1 -1
  105. package/resources/apps.d.mts +1 -17
  106. package/resources/apps.d.mts.map +1 -1
  107. package/resources/apps.d.ts +1 -17
  108. package/resources/apps.d.ts.map +1 -1
  109. package/resources/apps.mjs.map +1 -1
  110. package/resources/client-auth.d.mts +156 -213
  111. package/resources/client-auth.d.mts.map +1 -1
  112. package/resources/client-auth.d.ts +156 -213
  113. package/resources/client-auth.d.ts.map +1 -1
  114. package/resources/client-auth.js.map +1 -1
  115. package/resources/client-auth.mjs.map +1 -1
  116. package/resources/cross-app.d.mts.map +1 -1
  117. package/resources/cross-app.d.ts.map +1 -1
  118. package/resources/cross-app.mjs.map +1 -1
  119. package/resources/embedded-wallets.d.mts.map +1 -1
  120. package/resources/embedded-wallets.d.ts.map +1 -1
  121. package/resources/embedded-wallets.mjs.map +1 -1
  122. package/resources/fiat.d.mts.map +1 -1
  123. package/resources/fiat.d.ts.map +1 -1
  124. package/resources/fiat.mjs.map +1 -1
  125. package/resources/funding.d.mts.map +1 -1
  126. package/resources/funding.d.ts.map +1 -1
  127. package/resources/funding.mjs.map +1 -1
  128. package/resources/index.d.mts +11 -9
  129. package/resources/index.d.mts.map +1 -1
  130. package/resources/index.d.ts +11 -9
  131. package/resources/index.d.ts.map +1 -1
  132. package/resources/index.js +5 -1
  133. package/resources/index.js.map +1 -1
  134. package/resources/index.mjs +2 -0
  135. package/resources/index.mjs.map +1 -1
  136. package/resources/intents.d.mts +63 -2
  137. package/resources/intents.d.mts.map +1 -1
  138. package/resources/intents.d.ts +63 -2
  139. package/resources/intents.d.ts.map +1 -1
  140. package/resources/intents.mjs.map +1 -1
  141. package/resources/key-quorums.d.mts.map +1 -1
  142. package/resources/key-quorums.d.ts.map +1 -1
  143. package/resources/key-quorums.mjs.map +1 -1
  144. package/resources/kraken-embed.d.mts +653 -1
  145. package/resources/kraken-embed.d.mts.map +1 -1
  146. package/resources/kraken-embed.d.ts +653 -1
  147. package/resources/kraken-embed.d.ts.map +1 -1
  148. package/resources/kraken-embed.mjs.map +1 -1
  149. package/resources/oauth.d.mts +77 -0
  150. package/resources/oauth.d.mts.map +1 -0
  151. package/resources/oauth.d.ts +77 -0
  152. package/resources/oauth.d.ts.map +1 -0
  153. package/resources/oauth.js +9 -0
  154. package/resources/oauth.js.map +1 -0
  155. package/resources/oauth.mjs +5 -0
  156. package/resources/oauth.mjs.map +1 -0
  157. package/resources/onramps.d.mts +456 -0
  158. package/resources/onramps.d.mts.map +1 -0
  159. package/resources/onramps.d.ts +456 -0
  160. package/resources/onramps.d.ts.map +1 -0
  161. package/resources/onramps.js +9 -0
  162. package/resources/onramps.js.map +1 -0
  163. package/resources/onramps.mjs +5 -0
  164. package/resources/onramps.mjs.map +1 -0
  165. package/resources/organizations.d.mts.map +1 -1
  166. package/resources/organizations.d.ts.map +1 -1
  167. package/resources/organizations.mjs.map +1 -1
  168. package/resources/policies.d.mts +29 -3
  169. package/resources/policies.d.mts.map +1 -1
  170. package/resources/policies.d.ts +29 -3
  171. package/resources/policies.d.ts.map +1 -1
  172. package/resources/policies.mjs.map +1 -1
  173. package/resources/shared.d.mts +26 -1
  174. package/resources/shared.d.mts.map +1 -1
  175. package/resources/shared.d.ts +26 -1
  176. package/resources/shared.d.ts.map +1 -1
  177. package/resources/shared.mjs.map +1 -1
  178. package/resources/swaps.d.mts +43 -5
  179. package/resources/swaps.d.mts.map +1 -1
  180. package/resources/swaps.d.ts +43 -5
  181. package/resources/swaps.d.ts.map +1 -1
  182. package/resources/swaps.mjs.map +1 -1
  183. package/resources/transactions.d.mts.map +1 -1
  184. package/resources/transactions.d.ts.map +1 -1
  185. package/resources/transactions.mjs.map +1 -1
  186. package/resources/users.d.mts +3 -0
  187. package/resources/users.d.mts.map +1 -1
  188. package/resources/users.d.ts +3 -0
  189. package/resources/users.d.ts.map +1 -1
  190. package/resources/users.mjs.map +1 -1
  191. package/resources/wallet-actions.d.mts +86 -1
  192. package/resources/wallet-actions.d.mts.map +1 -1
  193. package/resources/wallet-actions.d.ts +86 -1
  194. package/resources/wallet-actions.d.ts.map +1 -1
  195. package/resources/wallet-actions.js.map +1 -1
  196. package/resources/wallet-actions.mjs.map +1 -1
  197. package/resources/wallets/balance.d.mts.map +1 -1
  198. package/resources/wallets/balance.d.ts.map +1 -1
  199. package/resources/wallets/balance.mjs.map +1 -1
  200. package/resources/wallets/index.d.mts +1 -1
  201. package/resources/wallets/index.d.mts.map +1 -1
  202. package/resources/wallets/index.d.ts +1 -1
  203. package/resources/wallets/index.d.ts.map +1 -1
  204. package/resources/wallets/index.js.map +1 -1
  205. package/resources/wallets/index.mjs.map +1 -1
  206. package/resources/wallets/transactions.d.mts.map +1 -1
  207. package/resources/wallets/transactions.d.ts.map +1 -1
  208. package/resources/wallets/transactions.mjs.map +1 -1
  209. package/resources/wallets/wallets.d.mts +153 -4
  210. package/resources/wallets/wallets.d.mts.map +1 -1
  211. package/resources/wallets/wallets.d.ts +153 -4
  212. package/resources/wallets/wallets.d.ts.map +1 -1
  213. package/resources/wallets/wallets.js.map +1 -1
  214. package/resources/wallets/wallets.mjs.map +1 -1
  215. package/resources/wallets.d.mts.map +1 -1
  216. package/resources/wallets.d.ts.map +1 -1
  217. package/resources/wallets.mjs.map +1 -1
  218. package/resources/webhooks.d.mts +116 -2
  219. package/resources/webhooks.d.mts.map +1 -1
  220. package/resources/webhooks.d.ts +116 -2
  221. package/resources/webhooks.d.ts.map +1 -1
  222. package/resources/webhooks.mjs.map +1 -1
  223. package/resources/yield.d.mts.map +1 -1
  224. package/resources/yield.d.ts.map +1 -1
  225. package/resources/yield.mjs.map +1 -1
  226. package/resources.d.mts.map +1 -1
  227. package/resources.d.ts.map +1 -1
  228. package/resources.mjs.map +1 -1
  229. package/src/client.ts +313 -61
  230. package/src/resources/analytics.ts +1 -1
  231. package/src/resources/apps.ts +0 -24
  232. package/src/resources/client-auth.ts +193 -304
  233. package/src/resources/index.ts +148 -25
  234. package/src/resources/intents.ts +84 -1
  235. package/src/resources/kraken-embed.ts +1661 -0
  236. package/src/resources/oauth.ts +96 -0
  237. package/src/resources/onramps.ts +637 -0
  238. package/src/resources/policies.ts +40 -0
  239. package/src/resources/shared.ts +37 -0
  240. package/src/resources/swaps.ts +51 -5
  241. package/src/resources/users.ts +3 -0
  242. package/src/resources/wallet-actions.ts +104 -0
  243. package/src/resources/wallets/index.ts +9 -0
  244. package/src/resources/wallets/wallets.ts +191 -3
  245. package/src/resources/webhooks.ts +142 -0
  246. package/src/version.ts +1 -1
  247. package/uploads.d.mts +1 -0
  248. package/uploads.d.mts.map +1 -1
  249. package/uploads.d.ts +1 -0
  250. package/uploads.d.ts.map +1 -1
  251. package/uploads.mjs +1 -0
  252. package/uploads.mjs.map +1 -1
  253. package/version.d.mts +1 -1
  254. package/version.d.ts +1 -1
  255. package/version.js +1 -1
  256. package/version.mjs +1 -1
@@ -436,6 +436,7 @@ export type PolicyCondition =
436
436
  | EthereumTypedDataDomainCondition
437
437
  | EthereumTypedDataMessageCondition
438
438
  | Ethereum7702AuthorizationCondition
439
+ | TempoTransactionCondition
439
440
  | SolanaProgramInstructionCondition
440
441
  | SolanaSystemProgramInstructionCondition
441
442
  | SolanaTokenProgramInstructionCondition
@@ -455,6 +456,7 @@ export type PolicyMethod =
455
456
  | 'eth_signTransaction'
456
457
  | 'eth_signUserOperation'
457
458
  | 'eth_signTypedData_v4'
459
+ | 'personal_sign'
458
460
  | 'eth_sign7702Authorization'
459
461
  | 'wallet_sendCalls'
460
462
  | 'signTransaction'
@@ -689,6 +691,42 @@ export interface SystemCondition {
689
691
  value: ConditionValue;
690
692
  }
691
693
 
694
+ /**
695
+ * A Tempo (type 118) transaction-level field. Evaluated once per transaction (not
696
+ * per call).
697
+ */
698
+ export interface TempoTransactionCondition {
699
+ /**
700
+ * Tempo (type 118) transaction-level fields that can be referenced in a policy
701
+ * condition.
702
+ */
703
+ field: TempoTransactionConditionField;
704
+
705
+ field_source: 'tempo_transaction';
706
+
707
+ /**
708
+ * Operator to use for policy conditions.
709
+ */
710
+ operator: ConditionOperator;
711
+
712
+ /**
713
+ * Value to compare against in a policy condition. Can be a single string or an
714
+ * array of strings.
715
+ */
716
+ value: ConditionValue;
717
+ }
718
+
719
+ /**
720
+ * Tempo (type 118) transaction-level fields that can be referenced in a policy
721
+ * condition.
722
+ */
723
+ export type TempoTransactionConditionField =
724
+ | 'fee_token'
725
+ | 'fee_payer_signature'
726
+ | 'nonce_key'
727
+ | 'valid_before'
728
+ | 'valid_after';
729
+
692
730
  /**
693
731
  * Decoded calldata from a TRON TriggerSmartContract interaction.
694
732
  */
@@ -807,6 +845,8 @@ export declare namespace Policies {
807
845
  type SuiTransferObjectsCommandCondition as SuiTransferObjectsCommandCondition,
808
846
  type SuiTransferObjectsCommandField as SuiTransferObjectsCommandField,
809
847
  type SystemCondition as SystemCondition,
848
+ type TempoTransactionCondition as TempoTransactionCondition,
849
+ type TempoTransactionConditionField as TempoTransactionConditionField,
810
850
  type TronCalldataCondition as TronCalldataCondition,
811
851
  type TronTransactionCondition as TronTransactionCondition,
812
852
  type UpdateConditionSetRequestBody as UpdateConditionSetRequestBody,
@@ -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,22 @@ 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 spot token identifier: 0x followed by 32–40 hex characters,
39
+ * normalized to lowercase.
40
+ */
41
+ export type HyperliquidTokenAddress = string;
42
+
22
43
  /**
23
44
  * A unique identifier for a key quorum.
24
45
  */
@@ -58,6 +79,11 @@ export interface OwnerInputUser {
58
79
  */
59
80
  export type P256PublicKey = string;
60
81
 
82
+ /**
83
+ * Solana address: base58-encoded public key (32 bytes).
84
+ */
85
+ export type SolanaAddress = string;
86
+
61
87
  /**
62
88
  * A simple success response.
63
89
  */
@@ -65,15 +91,26 @@ export interface SuccessResponse {
65
91
  success: boolean;
66
92
  }
67
93
 
94
+ /**
95
+ * Tron address: base58check-encoded, starting with T, 34 characters.
96
+ */
97
+ export type TronAddress = string;
98
+
68
99
  export declare namespace Shared {
69
100
  export {
101
+ type BitcoinAddress as BitcoinAddress,
70
102
  type CurrencyAmount as CurrencyAmount,
103
+ type EvmAddress as EvmAddress,
104
+ type EvmChecksumAddress as EvmChecksumAddress,
105
+ type HyperliquidTokenAddress as HyperliquidTokenAddress,
71
106
  type KeyQuorumID as KeyQuorumID,
72
107
  type OwnerIDInput as OwnerIDInput,
73
108
  type OwnerInput as OwnerInput,
74
109
  type OwnerInputPublicKey as OwnerInputPublicKey,
75
110
  type OwnerInputUser as OwnerInputUser,
76
111
  type P256PublicKey as P256PublicKey,
112
+ type SolanaAddress as SolanaAddress,
77
113
  type SuccessResponse as SuccessResponse,
114
+ type TronAddress as TronAddress,
78
115
  };
79
116
  }
@@ -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,27 @@ 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.
132
+ */
133
+ destination_caip2?: string;
134
+
135
+ /**
136
+ * Estimated fees for the swap. Only present for cross-chain swaps.
137
+ */
138
+ estimated_fees?: Array<WalletsAPI.FeeLineItem>;
139
+
140
+ /**
141
+ * Gas cost for a blockchain action. Includes both raw base-unit amount and a
142
+ * human-readable decimal string, plus the gas token symbol.
143
+ */
144
+ estimated_gas?: WalletsAPI.Gas;
145
+
146
+ /**
147
+ * Quote expiry as Unix timestamp (seconds). Present for cross-chain quotes.
148
+ */
149
+ expires_at?: number;
109
150
  }
110
151
 
111
152
  /**
@@ -132,6 +173,11 @@ export interface SwapRequestBody {
132
173
  */
133
174
  amount_type?: WalletsAPI.AmountType;
134
175
 
176
+ /**
177
+ * Total fees assessed on a transfer, in BPS
178
+ */
179
+ fee_configuration?: WalletsAPI.FeeConfiguration;
180
+
135
181
  /**
136
182
  * Maximum slippage tolerance in basis points (e.g., 50 for 0.5%).
137
183
  */
@@ -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
@@ -1,6 +1,7 @@
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
 
@@ -272,6 +273,57 @@ export interface EarnIncentiveClaimRequestBody {
272
273
  chain: string;
273
274
  }
274
275
 
276
+ /**
277
+ * A reward token with claimed and unclaimed amounts.
278
+ */
279
+ export interface EarnIncentiveRewardEntry {
280
+ /**
281
+ * Total amount already claimed, in smallest unit.
282
+ */
283
+ amount_claimed: string;
284
+
285
+ /**
286
+ * Amount available to claim on-chain but not yet claimed, in smallest unit.
287
+ */
288
+ amount_unclaimed: string;
289
+
290
+ /**
291
+ * Address of the reward token.
292
+ */
293
+ token_address: string;
294
+
295
+ /**
296
+ * Symbol of the reward token (e.g. "MORPHO").
297
+ */
298
+ token_symbol: string;
299
+
300
+ /**
301
+ * Number of decimals for the reward token.
302
+ */
303
+ token_decimals?: number;
304
+ }
305
+
306
+ /**
307
+ * Query parameters for fetching incentive rewards.
308
+ */
309
+ export interface EarnIncentiveRewardsQuery {
310
+ /**
311
+ * Chain name to fetch rewards for (e.g. "base", "ethereum").
312
+ */
313
+ chain: string;
314
+ }
315
+
316
+ /**
317
+ * All incentive rewards for a wallet, with claimed and unclaimed amounts per
318
+ * token.
319
+ */
320
+ export interface EarnIncentiveRewardsResponse {
321
+ /**
322
+ * Reward tokens with their claimed and unclaimed amounts.
323
+ */
324
+ rewards: Array<EarnIncentiveRewardEntry>;
325
+ }
326
+
275
327
  /**
276
328
  * A specific reward token and amount associated with an earn incentive claim.
277
329
  */
@@ -642,11 +694,38 @@ export interface SwapActionResponse {
642
694
  */
643
695
  wallet_id: string;
644
696
 
697
+ /**
698
+ * Destination chain CAIP-2 identifier. Present for cross-chain swaps.
699
+ */
700
+ destination_caip2?: string;
701
+
702
+ /**
703
+ * Estimated fee breakdown from the provider quote.
704
+ */
705
+ estimated_fees?: Array<WalletsAPI.FeeLineItem>;
706
+
707
+ /**
708
+ * Gas cost for a blockchain action. Includes both raw base-unit amount and a
709
+ * human-readable decimal string, plus the gas token symbol.
710
+ */
711
+ estimated_gas?: WalletsAPI.Gas;
712
+
645
713
  /**
646
714
  * A description of why a wallet action (or a step within a wallet action) failed.
647
715
  */
648
716
  failure_reason?: FailureReason;
649
717
 
718
+ /**
719
+ * Actual fees paid for the swap. Populated after on-chain confirmation.
720
+ */
721
+ fees?: Array<WalletsAPI.FeeLineItem>;
722
+
723
+ /**
724
+ * Gas cost for a blockchain action. Includes both raw base-unit amount and a
725
+ * human-readable decimal string, plus the gas token symbol.
726
+ */
727
+ gas?: WalletsAPI.Gas;
728
+
650
729
  /**
651
730
  * The steps of the wallet action. Only returned if `?include=steps` is provided.
652
731
  */
@@ -705,11 +784,33 @@ export interface TransferActionResponse {
705
784
  */
706
785
  destination_chain?: string;
707
786
 
787
+ /**
788
+ * Estimated fee breakdown from the provider quote.
789
+ */
790
+ estimated_fees?: Array<WalletsAPI.FeeLineItem>;
791
+
792
+ /**
793
+ * Gas cost for a blockchain action. Includes both raw base-unit amount and a
794
+ * human-readable decimal string, plus the gas token symbol.
795
+ */
796
+ estimated_gas?: WalletsAPI.Gas;
797
+
708
798
  /**
709
799
  * A description of why a wallet action (or a step within a wallet action) failed.
710
800
  */
711
801
  failure_reason?: FailureReason;
712
802
 
803
+ /**
804
+ * Actual fees paid for the transfer. Populated after on-chain confirmation.
805
+ */
806
+ fees?: Array<WalletsAPI.FeeLineItem>;
807
+
808
+ /**
809
+ * Gas cost for a blockchain action. Includes both raw base-unit amount and a
810
+ * human-readable decimal string, plus the gas token symbol.
811
+ */
812
+ gas?: WalletsAPI.Gas;
813
+
713
814
  /**
714
815
  * Decimal amount sent on the source chain (e.g. "1.5"). Omitted for exact_output
715
816
  * cross-chain transfers until the source amount is determined.
@@ -793,6 +894,9 @@ export declare namespace WalletActions {
793
894
  type EarnDepositRequestBody as EarnDepositRequestBody,
794
895
  type EarnIncentiveClaimActionResponse as EarnIncentiveClaimActionResponse,
795
896
  type EarnIncentiveClaimRequestBody as EarnIncentiveClaimRequestBody,
897
+ type EarnIncentiveRewardEntry as EarnIncentiveRewardEntry,
898
+ type EarnIncentiveRewardsQuery as EarnIncentiveRewardsQuery,
899
+ type EarnIncentiveRewardsResponse as EarnIncentiveRewardsResponse,
796
900
  type EarnIncetiveClaimRewardEntry as EarnIncetiveClaimRewardEntry,
797
901
  type EarnWithdrawActionResponse as EarnWithdrawActionResponse,
798
902
  type EarnWithdrawRequestBody as EarnWithdrawRequestBody,
@@ -18,6 +18,7 @@ export {
18
18
  type CustodialWalletCreateInput,
19
19
  type CustodialWalletProvider,
20
20
  type CustomTokenTransferSource,
21
+ type DeveloperFee,
21
22
  type EthereumPersonalSignRpcInput,
22
23
  type EthereumPersonalSignRpcInputParams,
23
24
  type EthereumPersonalSignRpcResponse,
@@ -61,7 +62,10 @@ export {
61
62
  type ExportSeedPhraseRpcResponse,
62
63
  type ExportType,
63
64
  type ExtendedChainType,
65
+ type FeeConfiguration,
66
+ type FeeLineItem,
64
67
  type FirstClassChainType,
68
+ type Gas,
65
69
  type GetByWalletAddressRequestBody,
66
70
  type HDInitInput,
67
71
  type HDPath,
@@ -77,6 +81,7 @@ export {
77
81
  type PrivateKeyExportResponse,
78
82
  type PrivateKeyInitInput,
79
83
  type PrivateKeySubmitInput,
84
+ type PrivyFee,
80
85
  type Quantity,
81
86
  type RawSignBytesEncoding,
82
87
  type RawSignBytesHashFunction,
@@ -87,6 +92,7 @@ export {
87
92
  type RawSignResponse,
88
93
  type RawSignResponseData,
89
94
  type RecipientPublicKey,
95
+ type RelayerFee,
90
96
  type SeedPhraseExportInput,
91
97
  type SeedPhraseExportResponse,
92
98
  type SigningAlgorithm,
@@ -156,8 +162,11 @@ export {
156
162
  type TokenOutput,
157
163
  type TokenTransferDestination,
158
164
  type TokenTransferSource,
165
+ type TotalFeeConfigurationBps,
159
166
  type TransactionDetail,
160
167
  type TransactionTokenAddressInput,
168
+ type TransferQuoteRequestBody,
169
+ type TransferQuoteResponse,
161
170
  type TransferReceivedTransactionDetail,
162
171
  type TransferRequestBody,
163
172
  type TransferSentTransactionDetail,