@privy-io/api-types 0.8.0 → 0.10.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 (167) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/client.d.mts +35 -32
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +35 -32
  5. package/client.d.ts.map +1 -1
  6. package/client.js +22 -8
  7. package/client.js.map +1 -1
  8. package/client.mjs +22 -8
  9. package/client.mjs.map +1 -1
  10. package/internal/types.d.mts +6 -6
  11. package/internal/types.d.mts.map +1 -1
  12. package/internal/types.d.ts +6 -6
  13. package/internal/types.d.ts.map +1 -1
  14. package/internal/utils/env.js +2 -2
  15. package/internal/utils/env.js.map +1 -1
  16. package/internal/utils/env.mjs +2 -2
  17. package/internal/utils/env.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/resources/accounts.d.mts +128 -86
  20. package/resources/accounts.d.mts.map +1 -1
  21. package/resources/accounts.d.ts +128 -86
  22. package/resources/accounts.d.ts.map +1 -1
  23. package/resources/aggregations.d.mts +43 -43
  24. package/resources/aggregations.d.mts.map +1 -1
  25. package/resources/aggregations.d.ts +43 -43
  26. package/resources/aggregations.d.ts.map +1 -1
  27. package/resources/apps.d.mts +177 -129
  28. package/resources/apps.d.mts.map +1 -1
  29. package/resources/apps.d.ts +177 -129
  30. package/resources/apps.d.ts.map +1 -1
  31. package/resources/client-auth.d.mts +650 -648
  32. package/resources/client-auth.d.mts.map +1 -1
  33. package/resources/client-auth.d.ts +650 -648
  34. package/resources/client-auth.d.ts.map +1 -1
  35. package/resources/embedded-wallets.d.mts +84 -84
  36. package/resources/embedded-wallets.d.mts.map +1 -1
  37. package/resources/embedded-wallets.d.ts +84 -84
  38. package/resources/embedded-wallets.d.ts.map +1 -1
  39. package/resources/funding.d.mts +42 -42
  40. package/resources/funding.d.mts.map +1 -1
  41. package/resources/funding.d.ts +42 -42
  42. package/resources/funding.d.ts.map +1 -1
  43. package/resources/index.d.mts +19 -18
  44. package/resources/index.d.mts.map +1 -1
  45. package/resources/index.d.ts +19 -18
  46. package/resources/index.d.ts.map +1 -1
  47. package/resources/index.js +3 -1
  48. package/resources/index.js.map +1 -1
  49. package/resources/index.mjs +2 -1
  50. package/resources/index.mjs.map +1 -1
  51. package/resources/intents.d.mts +270 -266
  52. package/resources/intents.d.mts.map +1 -1
  53. package/resources/intents.d.ts +270 -266
  54. package/resources/intents.d.ts.map +1 -1
  55. package/resources/key-quorums.d.mts +20 -20
  56. package/resources/key-quorums.d.mts.map +1 -1
  57. package/resources/key-quorums.d.ts +20 -20
  58. package/resources/key-quorums.d.ts.map +1 -1
  59. package/resources/kraken-embed.d.mts +62 -19
  60. package/resources/kraken-embed.d.mts.map +1 -1
  61. package/resources/kraken-embed.d.ts +62 -19
  62. package/resources/kraken-embed.d.ts.map +1 -1
  63. package/resources/organizations.d.mts +65 -0
  64. package/resources/organizations.d.mts.map +1 -0
  65. package/resources/organizations.d.ts +65 -0
  66. package/resources/organizations.d.ts.map +1 -0
  67. package/resources/organizations.js +9 -0
  68. package/resources/organizations.js.map +1 -0
  69. package/resources/organizations.mjs +5 -0
  70. package/resources/organizations.mjs.map +1 -0
  71. package/resources/policies.d.mts +360 -231
  72. package/resources/policies.d.mts.map +1 -1
  73. package/resources/policies.d.ts +360 -231
  74. package/resources/policies.d.ts.map +1 -1
  75. package/resources/shared.d.mts +28 -28
  76. package/resources/shared.d.mts.map +1 -1
  77. package/resources/shared.d.ts +28 -28
  78. package/resources/shared.d.ts.map +1 -1
  79. package/resources/swaps.d.mts +8 -11
  80. package/resources/swaps.d.mts.map +1 -1
  81. package/resources/swaps.d.ts +8 -11
  82. package/resources/swaps.d.ts.map +1 -1
  83. package/resources/swaps.js.map +1 -1
  84. package/resources/swaps.mjs.map +1 -1
  85. package/resources/transactions.d.mts +56 -66
  86. package/resources/transactions.d.mts.map +1 -1
  87. package/resources/transactions.d.ts +56 -66
  88. package/resources/transactions.d.ts.map +1 -1
  89. package/resources/users.d.mts +457 -448
  90. package/resources/users.d.mts.map +1 -1
  91. package/resources/users.d.ts +457 -448
  92. package/resources/users.d.ts.map +1 -1
  93. package/resources/wallet-actions.d.mts +450 -41
  94. package/resources/wallet-actions.d.mts.map +1 -1
  95. package/resources/wallet-actions.d.ts +450 -41
  96. package/resources/wallet-actions.d.ts.map +1 -1
  97. package/resources/wallets/balance.d.mts +2 -1
  98. package/resources/wallets/balance.d.mts.map +1 -1
  99. package/resources/wallets/balance.d.ts +2 -1
  100. package/resources/wallets/balance.d.ts.map +1 -1
  101. package/resources/wallets/balance.js.map +1 -1
  102. package/resources/wallets/balance.mjs.map +1 -1
  103. package/resources/wallets/index.d.mts +1 -1
  104. package/resources/wallets/index.d.mts.map +1 -1
  105. package/resources/wallets/index.d.ts +1 -1
  106. package/resources/wallets/index.d.ts.map +1 -1
  107. package/resources/wallets/index.js.map +1 -1
  108. package/resources/wallets/index.mjs.map +1 -1
  109. package/resources/wallets/transactions.d.mts +16 -31
  110. package/resources/wallets/transactions.d.mts.map +1 -1
  111. package/resources/wallets/transactions.d.ts +16 -31
  112. package/resources/wallets/transactions.d.ts.map +1 -1
  113. package/resources/wallets/transactions.js +1 -1
  114. package/resources/wallets/transactions.js.map +1 -1
  115. package/resources/wallets/transactions.mjs +1 -1
  116. package/resources/wallets/transactions.mjs.map +1 -1
  117. package/resources/wallets/wallets.d.mts +1475 -1172
  118. package/resources/wallets/wallets.d.mts.map +1 -1
  119. package/resources/wallets/wallets.d.ts +1475 -1172
  120. package/resources/wallets/wallets.d.ts.map +1 -1
  121. package/resources/wallets/wallets.js +10 -6
  122. package/resources/wallets/wallets.js.map +1 -1
  123. package/resources/wallets/wallets.mjs +10 -6
  124. package/resources/wallets/wallets.mjs.map +1 -1
  125. package/resources/webhooks.d.mts +1345 -582
  126. package/resources/webhooks.d.mts.map +1 -1
  127. package/resources/webhooks.d.ts +1345 -582
  128. package/resources/webhooks.d.ts.map +1 -1
  129. package/resources/yield.d.mts +157 -157
  130. package/resources/yield.d.mts.map +1 -1
  131. package/resources/yield.d.ts +157 -157
  132. package/resources/yield.d.ts.map +1 -1
  133. package/src/client.ts +661 -455
  134. package/src/internal/types.ts +6 -8
  135. package/src/internal/utils/env.ts +2 -2
  136. package/src/resources/accounts.ts +157 -103
  137. package/src/resources/aggregations.ts +55 -55
  138. package/src/resources/apps.ts +232 -166
  139. package/src/resources/client-auth.ts +890 -890
  140. package/src/resources/embedded-wallets.ts +123 -123
  141. package/src/resources/funding.ts +66 -66
  142. package/src/resources/index.ts +521 -431
  143. package/src/resources/intents.ts +326 -322
  144. package/src/resources/key-quorums.ts +23 -23
  145. package/src/resources/kraken-embed.ts +116 -19
  146. package/src/resources/organizations.ts +82 -0
  147. package/src/resources/policies.ts +495 -339
  148. package/src/resources/shared.ts +34 -34
  149. package/src/resources/swaps.ts +9 -14
  150. package/src/resources/transactions.ts +88 -115
  151. package/src/resources/users.ts +664 -653
  152. package/src/resources/wallet-actions.ts +585 -56
  153. package/src/resources/wallets/balance.ts +2 -1
  154. package/src/resources/wallets/index.ts +158 -138
  155. package/src/resources/wallets/transactions.ts +20 -83
  156. package/src/resources/wallets/wallets.ts +1997 -1563
  157. package/src/resources/webhooks.ts +1652 -700
  158. package/src/resources/yield.ts +188 -188
  159. package/src/version.ts +1 -1
  160. package/version.d.mts +1 -1
  161. package/version.d.mts.map +1 -1
  162. package/version.d.ts +1 -1
  163. package/version.d.ts.map +1 -1
  164. package/version.js +1 -1
  165. package/version.js.map +1 -1
  166. package/version.mjs +1 -1
  167. package/version.mjs.map +1 -1
@@ -5,126 +5,111 @@ import { APIResource } from '../core/resource';
5
5
  export class Yield extends APIResource {}
6
6
 
7
7
  /**
8
- * An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
9
- */
10
- export type EvmCaip2ChainID = string;
11
-
12
- /**
13
- * Supported yield/lending protocol providers.
14
- */
15
- export type EthereumYieldProvider = 'morpho' | 'aave';
16
-
17
- /**
18
- * Type of yield sweep.
19
- */
20
- export type EthereumYieldSweepType = 'deposit' | 'withdraw';
21
-
22
- /**
23
- * Status of a yield sweep.
8
+ * Input for fetching vault details.
24
9
  */
25
- export type EthereumYieldSweepStatus = 'pending' | 'confirmed' | 'failed';
10
+ export interface EthereumVaultDetailsInput {
11
+ /**
12
+ * The Privy vault ID.
13
+ */
14
+ vault_id: string;
15
+ }
26
16
 
27
17
  /**
28
- * Input for depositing assets into an ERC-4626 vault.
18
+ * Detailed vault information including current APY and liquidity.
29
19
  */
30
- export interface EthereumYieldDepositInput {
20
+ export interface EthereumVaultDetailsResponse {
31
21
  /**
32
- * The amount of the underlying asset to deposit, in the smallest unit (e.g., wei
33
- * for ETH, 6 decimals for USDC). Must be a non-negative integer string.
22
+ * Vault identifier.
34
23
  */
35
- asset_amount: string;
24
+ id: string;
36
25
 
37
26
  /**
38
- * The ID of the vault to deposit into.
27
+ * Annual percentage yield earned by the app from fee wrapper fees, in basis
28
+ * points. Null when APY data is unavailable.
39
29
  */
40
- vault_id: string;
41
- }
30
+ app_apy: number | null;
42
31
 
43
- /**
44
- * Input for withdrawing assets from an ERC-4626 vault.
45
- */
46
- export interface EthereumYieldWithdrawInput {
47
32
  /**
48
- * The amount of the underlying asset to withdraw, in the smallest unit (e.g., wei
49
- * for ETH, 6 decimals for USDC). Must be a non-negative integer string.
33
+ * Underlying asset token address.
50
34
  */
51
- asset_amount: string;
35
+ asset_address: string;
52
36
 
53
37
  /**
54
- * The ID of the vault to withdraw from.
38
+ * Assets available for instant withdrawal in USD.
55
39
  */
56
- vault_id: string;
57
- }
40
+ available_liquidity_usd: number | null;
58
41
 
59
- /**
60
- * A yield sweep record representing a deposit or withdrawal.
61
- */
62
- export interface EthereumYieldSweepResponse {
63
42
  /**
64
- * Unique identifier for the yield sweep.
43
+ * Chain identifier (e.g., eip155:8453).
65
44
  */
66
- id: string;
45
+ caip2: string;
67
46
 
68
47
  /**
69
- * The amount of underlying assets involved. Set after the sweep is confirmed
70
- * on-chain.
48
+ * Human-readable vault name from the yield provider.
71
49
  */
72
- asset_amount: string | null;
50
+ name: string;
73
51
 
74
52
  /**
75
- * Unix timestamp of when the sweep was created, in milliseconds.
53
+ * Supported yield/lending protocol providers.
76
54
  */
77
- created_at: number;
55
+ provider: EthereumYieldProvider;
78
56
 
79
57
  /**
80
- * The amount of vault shares involved. Set after the sweep is confirmed on-chain.
58
+ * Total value locked in USD.
81
59
  */
82
- share_amount: string | null;
60
+ tvl_usd: number | null;
83
61
 
84
62
  /**
85
- * Status of a yield sweep.
63
+ * Current annual percentage yield in basis points (e.g., 500 for 5%). 1 basis
64
+ * point = 0.01%.
86
65
  */
87
- status: EthereumYieldSweepStatus;
66
+ user_apy: number | null;
88
67
 
89
68
  /**
90
- * Type of yield sweep.
69
+ * On-chain vault contract address.
91
70
  */
92
- type: EthereumYieldSweepType;
71
+ vault_address: string;
72
+ }
73
+
74
+ /**
75
+ * A user's position in a DeFi vault.
76
+ */
77
+ export interface EthereumVaultPosition {
78
+ asset: EthereumVaultPosition.Asset;
93
79
 
94
80
  /**
95
- * Unix timestamp of when the sweep was last updated, in milliseconds.
81
+ * Current asset value in the vault (realtime from ERC4626), in smallest unit.
96
82
  */
97
- updated_at: number;
83
+ assets_in_vault: string;
98
84
 
99
85
  /**
100
- * The ID of the vault involved in the sweep.
86
+ * Current vault shares held (realtime from ERC4626).
101
87
  */
102
- vault_id: string;
88
+ shares_in_vault: string;
103
89
 
104
90
  /**
105
- * The ID of the wallet involved in the sweep.
91
+ * Total amount deposited into the vault, in smallest unit.
106
92
  */
107
- wallet_id: string;
108
- }
93
+ total_deposited: string;
109
94
 
110
- /**
111
- * Input for fetching vault details.
112
- */
113
- export interface EthereumVaultDetailsInput {
114
95
  /**
115
- * The Privy vault ID.
96
+ * Total amount withdrawn from the vault, in smallest unit.
116
97
  */
117
- vault_id: string;
98
+ total_withdrawn: string;
118
99
  }
119
100
 
120
- /**
121
- * Input for fetching a yield sweep by ID.
122
- */
123
- export interface EthereumYieldSweepIDInput {
124
- /**
125
- * The yield sweep ID.
126
- */
127
- id: string;
101
+ export namespace EthereumVaultPosition {
102
+ export interface Asset {
103
+ /**
104
+ * Token contract address.
105
+ */
106
+ address: string;
107
+
108
+ /**
109
+ * Token symbol (e.g., "USDC").
110
+ */
111
+ symbol: string;
112
+ }
128
113
  }
129
114
 
130
115
  /**
@@ -169,111 +154,102 @@ export interface EthereumVaultResponse {
169
154
  }
170
155
 
171
156
  /**
172
- * Detailed vault information including current APY and liquidity.
157
+ * Input for fetching a yield reward claim by ID.
173
158
  */
174
- export interface EthereumVaultDetailsResponse {
159
+ export interface EthereumYieldClaimIDInput {
175
160
  /**
176
- * Vault identifier.
161
+ * The yield claim transaction ID.
177
162
  */
178
163
  id: string;
164
+ }
179
165
 
166
+ /**
167
+ * Input for claiming incentive rewards from vault participation.
168
+ */
169
+ export interface EthereumYieldClaimInput {
180
170
  /**
181
- * Annual percentage yield earned by the app from fee wrapper fees, in basis
182
- * points. Null when APY data is unavailable.
183
- */
184
- app_apy: number | null;
185
-
186
- /**
187
- * Underlying asset token address.
188
- */
189
- asset_address: string;
190
-
191
- /**
192
- * Assets available for instant withdrawal in USD.
171
+ * An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
193
172
  */
194
- available_liquidity_usd: number | null;
173
+ caip2: EvmCaip2ChainID;
174
+ }
195
175
 
176
+ /**
177
+ * Response from a yield reward claim operation.
178
+ */
179
+ export interface EthereumYieldClaimResponse {
196
180
  /**
197
- * Chain identifier (e.g., eip155:8453).
181
+ * Privy transaction record ID for the claim operation.
198
182
  */
199
- caip2: string;
183
+ id: string;
200
184
 
201
185
  /**
202
- * Human-readable vault name from the yield provider.
186
+ * An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
203
187
  */
204
- name: string;
188
+ caip2: EvmCaip2ChainID;
205
189
 
206
190
  /**
207
- * Supported yield/lending protocol providers.
191
+ * Unix timestamp of when the claim was created, in milliseconds.
208
192
  */
209
- provider: EthereumYieldProvider;
193
+ created_at: number;
210
194
 
211
195
  /**
212
- * Total value locked in USD.
196
+ * List of reward tokens claimed.
213
197
  */
214
- tvl_usd: number | null;
198
+ rewards: Array<EthereumYieldClaimReward>;
215
199
 
216
200
  /**
217
- * Current annual percentage yield in basis points (e.g., 500 for 5%). 1 basis
218
- * point = 0.01%.
201
+ * The current status of the claim transaction.
219
202
  */
220
- user_apy: number | null;
203
+ status:
204
+ | 'broadcasted'
205
+ | 'confirmed'
206
+ | 'execution_reverted'
207
+ | 'failed'
208
+ | 'replaced'
209
+ | 'finalized'
210
+ | 'provider_error'
211
+ | 'pending';
221
212
 
222
213
  /**
223
- * On-chain vault contract address.
214
+ * Unix timestamp of when the claim was last updated, in milliseconds.
224
215
  */
225
- vault_address: string;
216
+ updated_at: number;
226
217
  }
227
218
 
228
219
  /**
229
- * Input for fetching yield positions.
220
+ * A single reward token claimed from vault participation.
230
221
  */
231
- export interface EthereumYieldPositionsInput {
222
+ export interface EthereumYieldClaimReward {
232
223
  /**
233
- * The vault ID to get position for.
224
+ * Amount claimed in the smallest unit.
234
225
  */
235
- vault_id: string;
236
- }
237
-
238
- /**
239
- * A user's position in a DeFi vault.
240
- */
241
- export interface EthereumVaultPosition {
242
- asset: EthereumVaultPosition.Asset;
226
+ amount: string;
243
227
 
244
228
  /**
245
- * Current asset value in the vault (realtime from ERC4626), in smallest unit.
229
+ * Reward token contract address.
246
230
  */
247
- assets_in_vault: string;
231
+ token_address: string;
248
232
 
249
233
  /**
250
- * Current vault shares held (realtime from ERC4626).
234
+ * Reward token symbol (e.g., "MORPHO").
251
235
  */
252
- shares_in_vault: string;
236
+ token_symbol: string;
237
+ }
253
238
 
239
+ /**
240
+ * Input for depositing assets into an ERC-4626 vault.
241
+ */
242
+ export interface EthereumYieldDepositInput {
254
243
  /**
255
- * Total amount deposited into the vault, in smallest unit.
244
+ * The amount of the underlying asset to deposit, in the smallest unit (e.g., wei
245
+ * for ETH, 6 decimals for USDC). Must be a non-negative integer string.
256
246
  */
257
- total_deposited: string;
247
+ asset_amount: string;
258
248
 
259
249
  /**
260
- * Total amount withdrawn from the vault, in smallest unit.
250
+ * The ID of the vault to deposit into.
261
251
  */
262
- total_withdrawn: string;
263
- }
264
-
265
- export namespace EthereumVaultPosition {
266
- export interface Asset {
267
- /**
268
- * Token contract address.
269
- */
270
- address: string;
271
-
272
- /**
273
- * Token symbol (e.g., "USDC").
274
- */
275
- symbol: string;
276
- }
252
+ vault_id: string;
277
253
  }
278
254
 
279
255
  /**
@@ -318,88 +294,112 @@ export namespace EthereumYieldPositionResponse {
318
294
  }
319
295
 
320
296
  /**
321
- * Input for claiming incentive rewards from vault participation.
297
+ * Input for fetching yield positions.
322
298
  */
323
- export interface EthereumYieldClaimInput {
299
+ export interface EthereumYieldPositionsInput {
324
300
  /**
325
- * An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
301
+ * The vault ID to get position for.
326
302
  */
327
- caip2: EvmCaip2ChainID;
303
+ vault_id: string;
328
304
  }
329
305
 
330
306
  /**
331
- * A single reward token claimed from vault participation.
307
+ * Supported yield/lending protocol providers.
332
308
  */
333
- export interface EthereumYieldClaimReward {
334
- /**
335
- * Amount claimed in the smallest unit.
336
- */
337
- amount: string;
338
-
339
- /**
340
- * Reward token contract address.
341
- */
342
- token_address: string;
309
+ export type EthereumYieldProvider = 'morpho' | 'aave';
343
310
 
311
+ /**
312
+ * Input for fetching a yield sweep by ID.
313
+ */
314
+ export interface EthereumYieldSweepIDInput {
344
315
  /**
345
- * Reward token symbol (e.g., "MORPHO").
316
+ * The yield sweep ID.
346
317
  */
347
- token_symbol: string;
318
+ id: string;
348
319
  }
349
320
 
350
321
  /**
351
- * Response from a yield reward claim operation.
322
+ * A yield sweep record representing a deposit or withdrawal.
352
323
  */
353
- export interface EthereumYieldClaimResponse {
324
+ export interface EthereumYieldSweepResponse {
354
325
  /**
355
- * Privy transaction record ID for the claim operation.
326
+ * Unique identifier for the yield sweep.
356
327
  */
357
328
  id: string;
358
329
 
359
330
  /**
360
- * An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
331
+ * The amount of underlying assets involved. Set after the sweep is confirmed
332
+ * on-chain.
361
333
  */
362
- caip2: EvmCaip2ChainID;
334
+ asset_amount: string | null;
363
335
 
364
336
  /**
365
- * Unix timestamp of when the claim was created, in milliseconds.
337
+ * Unix timestamp of when the sweep was created, in milliseconds.
366
338
  */
367
339
  created_at: number;
368
340
 
369
341
  /**
370
- * List of reward tokens claimed.
342
+ * The amount of vault shares involved. Set after the sweep is confirmed on-chain.
371
343
  */
372
- rewards: Array<EthereumYieldClaimReward>;
344
+ share_amount: string | null;
373
345
 
374
346
  /**
375
- * The current status of the claim transaction.
347
+ * Status of a yield sweep.
376
348
  */
377
- status:
378
- | 'broadcasted'
379
- | 'confirmed'
380
- | 'execution_reverted'
381
- | 'failed'
382
- | 'replaced'
383
- | 'finalized'
384
- | 'provider_error'
385
- | 'pending';
349
+ status: EthereumYieldSweepStatus;
386
350
 
387
351
  /**
388
- * Unix timestamp of when the claim was last updated, in milliseconds.
352
+ * Type of yield sweep.
353
+ */
354
+ type: EthereumYieldSweepType;
355
+
356
+ /**
357
+ * Unix timestamp of when the sweep was last updated, in milliseconds.
389
358
  */
390
359
  updated_at: number;
360
+
361
+ /**
362
+ * The ID of the vault involved in the sweep.
363
+ */
364
+ vault_id: string;
365
+
366
+ /**
367
+ * The ID of the wallet involved in the sweep.
368
+ */
369
+ wallet_id: string;
391
370
  }
392
371
 
393
372
  /**
394
- * Input for fetching a yield reward claim by ID.
373
+ * Status of a yield sweep.
395
374
  */
396
- export interface EthereumYieldClaimIDInput {
375
+ export type EthereumYieldSweepStatus = 'pending' | 'confirmed' | 'failed';
376
+
377
+ /**
378
+ * Type of yield sweep.
379
+ */
380
+ export type EthereumYieldSweepType = 'deposit' | 'withdraw';
381
+
382
+ /**
383
+ * Input for withdrawing assets from an ERC-4626 vault.
384
+ */
385
+ export interface EthereumYieldWithdrawInput {
397
386
  /**
398
- * The yield claim transaction ID.
387
+ * The amount of the underlying asset to withdraw, in the smallest unit (e.g., wei
388
+ * for ETH, 6 decimals for USDC). Must be a non-negative integer string.
399
389
  */
400
- id: string;
390
+ asset_amount: string;
391
+
392
+ /**
393
+ * The ID of the vault to withdraw from.
394
+ */
395
+ vault_id: string;
401
396
  }
402
397
 
398
+ /**
399
+ * An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
400
+ */
401
+ export type EvmCaip2ChainID = string;
402
+
403
403
  /**
404
404
  * Headers required to authorize yield operations.
405
405
  */
@@ -424,24 +424,24 @@ export interface YieldAuthorizationHeaders {
424
424
 
425
425
  export declare namespace Yield {
426
426
  export {
427
- type EvmCaip2ChainID as EvmCaip2ChainID,
428
- type EthereumYieldProvider as EthereumYieldProvider,
429
- type EthereumYieldSweepType as EthereumYieldSweepType,
430
- type EthereumYieldSweepStatus as EthereumYieldSweepStatus,
431
- type EthereumYieldDepositInput as EthereumYieldDepositInput,
432
- type EthereumYieldWithdrawInput as EthereumYieldWithdrawInput,
433
- type EthereumYieldSweepResponse as EthereumYieldSweepResponse,
434
427
  type EthereumVaultDetailsInput as EthereumVaultDetailsInput,
435
- type EthereumYieldSweepIDInput as EthereumYieldSweepIDInput,
436
- type EthereumVaultResponse as EthereumVaultResponse,
437
428
  type EthereumVaultDetailsResponse as EthereumVaultDetailsResponse,
438
- type EthereumYieldPositionsInput as EthereumYieldPositionsInput,
439
429
  type EthereumVaultPosition as EthereumVaultPosition,
440
- type EthereumYieldPositionResponse as EthereumYieldPositionResponse,
430
+ type EthereumVaultResponse as EthereumVaultResponse,
431
+ type EthereumYieldClaimIDInput as EthereumYieldClaimIDInput,
441
432
  type EthereumYieldClaimInput as EthereumYieldClaimInput,
442
- type EthereumYieldClaimReward as EthereumYieldClaimReward,
443
433
  type EthereumYieldClaimResponse as EthereumYieldClaimResponse,
444
- type EthereumYieldClaimIDInput as EthereumYieldClaimIDInput,
434
+ type EthereumYieldClaimReward as EthereumYieldClaimReward,
435
+ type EthereumYieldDepositInput as EthereumYieldDepositInput,
436
+ type EthereumYieldPositionResponse as EthereumYieldPositionResponse,
437
+ type EthereumYieldPositionsInput as EthereumYieldPositionsInput,
438
+ type EthereumYieldProvider as EthereumYieldProvider,
439
+ type EthereumYieldSweepIDInput as EthereumYieldSweepIDInput,
440
+ type EthereumYieldSweepResponse as EthereumYieldSweepResponse,
441
+ type EthereumYieldSweepStatus as EthereumYieldSweepStatus,
442
+ type EthereumYieldSweepType as EthereumYieldSweepType,
443
+ type EthereumYieldWithdrawInput as EthereumYieldWithdrawInput,
444
+ type EvmCaip2ChainID as EvmCaip2ChainID,
445
445
  type YieldAuthorizationHeaders as YieldAuthorizationHeaders,
446
446
  };
447
447
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.8.0'; // x-release-please-version
1
+ export const VERSION = '0.10.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.8.0";
1
+ export declare const VERSION = "0.10.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.mts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.8.0";
1
+ export declare const VERSION = "0.10.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.8.0'; // x-release-please-version
4
+ exports.VERSION = '0.10.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.8.0'; // x-release-please-version
1
+ export const VERSION = '0.10.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
package/version.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}