@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
@@ -2,108 +2,94 @@ import { APIResource } from "../core/resource.js";
2
2
  export declare class Yield extends APIResource {
3
3
  }
4
4
  /**
5
- * An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
6
- */
7
- export type EvmCaip2ChainID = string;
8
- /**
9
- * Supported yield/lending protocol providers.
10
- */
11
- export type EthereumYieldProvider = 'morpho' | 'aave';
12
- /**
13
- * Type of yield sweep.
14
- */
15
- export type EthereumYieldSweepType = 'deposit' | 'withdraw';
16
- /**
17
- * Status of a yield sweep.
18
- */
19
- export type EthereumYieldSweepStatus = 'pending' | 'confirmed' | 'failed';
20
- /**
21
- * Input for depositing assets into an ERC-4626 vault.
5
+ * Input for fetching vault details.
22
6
  */
23
- export interface EthereumYieldDepositInput {
24
- /**
25
- * The amount of the underlying asset to deposit, in the smallest unit (e.g., wei
26
- * for ETH, 6 decimals for USDC). Must be a non-negative integer string.
27
- */
28
- asset_amount: string;
7
+ export interface EthereumVaultDetailsInput {
29
8
  /**
30
- * The ID of the vault to deposit into.
9
+ * The Privy vault ID.
31
10
  */
32
11
  vault_id: string;
33
12
  }
34
13
  /**
35
- * Input for withdrawing assets from an ERC-4626 vault.
14
+ * Detailed vault information including current APY and liquidity.
36
15
  */
37
- export interface EthereumYieldWithdrawInput {
38
- /**
39
- * The amount of the underlying asset to withdraw, in the smallest unit (e.g., wei
40
- * for ETH, 6 decimals for USDC). Must be a non-negative integer string.
41
- */
42
- asset_amount: string;
16
+ export interface EthereumVaultDetailsResponse {
43
17
  /**
44
- * The ID of the vault to withdraw from.
18
+ * Vault identifier.
45
19
  */
46
- vault_id: string;
47
- }
48
- /**
49
- * A yield sweep record representing a deposit or withdrawal.
50
- */
51
- export interface EthereumYieldSweepResponse {
20
+ id: string;
52
21
  /**
53
- * Unique identifier for the yield sweep.
22
+ * Annual percentage yield earned by the app from fee wrapper fees, in basis
23
+ * points. Null when APY data is unavailable.
54
24
  */
55
- id: string;
25
+ app_apy: number | null;
56
26
  /**
57
- * The amount of underlying assets involved. Set after the sweep is confirmed
58
- * on-chain.
27
+ * Underlying asset token address.
59
28
  */
60
- asset_amount: string | null;
29
+ asset_address: string;
61
30
  /**
62
- * Unix timestamp of when the sweep was created, in milliseconds.
31
+ * Assets available for instant withdrawal in USD.
63
32
  */
64
- created_at: number;
33
+ available_liquidity_usd: number | null;
65
34
  /**
66
- * The amount of vault shares involved. Set after the sweep is confirmed on-chain.
35
+ * Chain identifier (e.g., eip155:8453).
67
36
  */
68
- share_amount: string | null;
37
+ caip2: string;
69
38
  /**
70
- * Status of a yield sweep.
39
+ * Human-readable vault name from the yield provider.
71
40
  */
72
- status: EthereumYieldSweepStatus;
41
+ name: string;
73
42
  /**
74
- * Type of yield sweep.
43
+ * Supported yield/lending protocol providers.
75
44
  */
76
- type: EthereumYieldSweepType;
45
+ provider: EthereumYieldProvider;
77
46
  /**
78
- * Unix timestamp of when the sweep was last updated, in milliseconds.
47
+ * Total value locked in USD.
79
48
  */
80
- updated_at: number;
49
+ tvl_usd: number | null;
81
50
  /**
82
- * The ID of the vault involved in the sweep.
51
+ * Current annual percentage yield in basis points (e.g., 500 for 5%). 1 basis
52
+ * point = 0.01%.
83
53
  */
84
- vault_id: string;
54
+ user_apy: number | null;
85
55
  /**
86
- * The ID of the wallet involved in the sweep.
56
+ * On-chain vault contract address.
87
57
  */
88
- wallet_id: string;
58
+ vault_address: string;
89
59
  }
90
60
  /**
91
- * Input for fetching vault details.
61
+ * A user's position in a DeFi vault.
92
62
  */
93
- export interface EthereumVaultDetailsInput {
63
+ export interface EthereumVaultPosition {
64
+ asset: EthereumVaultPosition.Asset;
94
65
  /**
95
- * The Privy vault ID.
66
+ * Current asset value in the vault (realtime from ERC4626), in smallest unit.
96
67
  */
97
- vault_id: string;
98
- }
99
- /**
100
- * Input for fetching a yield sweep by ID.
101
- */
102
- export interface EthereumYieldSweepIDInput {
68
+ assets_in_vault: string;
103
69
  /**
104
- * The yield sweep ID.
70
+ * Current vault shares held (realtime from ERC4626).
105
71
  */
106
- id: string;
72
+ shares_in_vault: string;
73
+ /**
74
+ * Total amount deposited into the vault, in smallest unit.
75
+ */
76
+ total_deposited: string;
77
+ /**
78
+ * Total amount withdrawn from the vault, in smallest unit.
79
+ */
80
+ total_withdrawn: string;
81
+ }
82
+ export declare namespace EthereumVaultPosition {
83
+ interface Asset {
84
+ /**
85
+ * Token contract address.
86
+ */
87
+ address: string;
88
+ /**
89
+ * Token symbol (e.g., "USDC").
90
+ */
91
+ symbol: string;
92
+ }
107
93
  }
108
94
  /**
109
95
  * A vault configuration for yield features.
@@ -140,94 +126,82 @@ export interface EthereumVaultResponse {
140
126
  vault_address: string;
141
127
  }
142
128
  /**
143
- * Detailed vault information including current APY and liquidity.
129
+ * Input for fetching a yield reward claim by ID.
144
130
  */
145
- export interface EthereumVaultDetailsResponse {
131
+ export interface EthereumYieldClaimIDInput {
146
132
  /**
147
- * Vault identifier.
133
+ * The yield claim transaction ID.
148
134
  */
149
135
  id: string;
136
+ }
137
+ /**
138
+ * Input for claiming incentive rewards from vault participation.
139
+ */
140
+ export interface EthereumYieldClaimInput {
150
141
  /**
151
- * Annual percentage yield earned by the app from fee wrapper fees, in basis
152
- * points. Null when APY data is unavailable.
153
- */
154
- app_apy: number | null;
155
- /**
156
- * Underlying asset token address.
157
- */
158
- asset_address: string;
159
- /**
160
- * Assets available for instant withdrawal in USD.
142
+ * An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
161
143
  */
162
- available_liquidity_usd: number | null;
144
+ caip2: EvmCaip2ChainID;
145
+ }
146
+ /**
147
+ * Response from a yield reward claim operation.
148
+ */
149
+ export interface EthereumYieldClaimResponse {
163
150
  /**
164
- * Chain identifier (e.g., eip155:8453).
151
+ * Privy transaction record ID for the claim operation.
165
152
  */
166
- caip2: string;
153
+ id: string;
167
154
  /**
168
- * Human-readable vault name from the yield provider.
155
+ * An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
169
156
  */
170
- name: string;
157
+ caip2: EvmCaip2ChainID;
171
158
  /**
172
- * Supported yield/lending protocol providers.
159
+ * Unix timestamp of when the claim was created, in milliseconds.
173
160
  */
174
- provider: EthereumYieldProvider;
161
+ created_at: number;
175
162
  /**
176
- * Total value locked in USD.
163
+ * List of reward tokens claimed.
177
164
  */
178
- tvl_usd: number | null;
165
+ rewards: Array<EthereumYieldClaimReward>;
179
166
  /**
180
- * Current annual percentage yield in basis points (e.g., 500 for 5%). 1 basis
181
- * point = 0.01%.
167
+ * The current status of the claim transaction.
182
168
  */
183
- user_apy: number | null;
169
+ status: 'broadcasted' | 'confirmed' | 'execution_reverted' | 'failed' | 'replaced' | 'finalized' | 'provider_error' | 'pending';
184
170
  /**
185
- * On-chain vault contract address.
171
+ * Unix timestamp of when the claim was last updated, in milliseconds.
186
172
  */
187
- vault_address: string;
173
+ updated_at: number;
188
174
  }
189
175
  /**
190
- * Input for fetching yield positions.
176
+ * A single reward token claimed from vault participation.
191
177
  */
192
- export interface EthereumYieldPositionsInput {
178
+ export interface EthereumYieldClaimReward {
193
179
  /**
194
- * The vault ID to get position for.
180
+ * Amount claimed in the smallest unit.
195
181
  */
196
- vault_id: string;
197
- }
198
- /**
199
- * A user's position in a DeFi vault.
200
- */
201
- export interface EthereumVaultPosition {
202
- asset: EthereumVaultPosition.Asset;
182
+ amount: string;
203
183
  /**
204
- * Current asset value in the vault (realtime from ERC4626), in smallest unit.
184
+ * Reward token contract address.
205
185
  */
206
- assets_in_vault: string;
186
+ token_address: string;
207
187
  /**
208
- * Current vault shares held (realtime from ERC4626).
188
+ * Reward token symbol (e.g., "MORPHO").
209
189
  */
210
- shares_in_vault: string;
190
+ token_symbol: string;
191
+ }
192
+ /**
193
+ * Input for depositing assets into an ERC-4626 vault.
194
+ */
195
+ export interface EthereumYieldDepositInput {
211
196
  /**
212
- * Total amount deposited into the vault, in smallest unit.
197
+ * The amount of the underlying asset to deposit, in the smallest unit (e.g., wei
198
+ * for ETH, 6 decimals for USDC). Must be a non-negative integer string.
213
199
  */
214
- total_deposited: string;
200
+ asset_amount: string;
215
201
  /**
216
- * Total amount withdrawn from the vault, in smallest unit.
202
+ * The ID of the vault to deposit into.
217
203
  */
218
- total_withdrawn: string;
219
- }
220
- export declare namespace EthereumVaultPosition {
221
- interface Asset {
222
- /**
223
- * Token contract address.
224
- */
225
- address: string;
226
- /**
227
- * Token symbol (e.g., "USDC").
228
- */
229
- symbol: string;
230
- }
204
+ vault_id: string;
231
205
  }
232
206
  /**
233
207
  * A user's position in a yield vault.
@@ -264,69 +238,95 @@ export declare namespace EthereumYieldPositionResponse {
264
238
  }
265
239
  }
266
240
  /**
267
- * Input for claiming incentive rewards from vault participation.
241
+ * Input for fetching yield positions.
268
242
  */
269
- export interface EthereumYieldClaimInput {
243
+ export interface EthereumYieldPositionsInput {
270
244
  /**
271
- * An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
245
+ * The vault ID to get position for.
272
246
  */
273
- caip2: EvmCaip2ChainID;
247
+ vault_id: string;
274
248
  }
275
249
  /**
276
- * A single reward token claimed from vault participation.
250
+ * Supported yield/lending protocol providers.
277
251
  */
278
- export interface EthereumYieldClaimReward {
279
- /**
280
- * Amount claimed in the smallest unit.
281
- */
282
- amount: string;
283
- /**
284
- * Reward token contract address.
285
- */
286
- token_address: string;
252
+ export type EthereumYieldProvider = 'morpho' | 'aave';
253
+ /**
254
+ * Input for fetching a yield sweep by ID.
255
+ */
256
+ export interface EthereumYieldSweepIDInput {
287
257
  /**
288
- * Reward token symbol (e.g., "MORPHO").
258
+ * The yield sweep ID.
289
259
  */
290
- token_symbol: string;
260
+ id: string;
291
261
  }
292
262
  /**
293
- * Response from a yield reward claim operation.
263
+ * A yield sweep record representing a deposit or withdrawal.
294
264
  */
295
- export interface EthereumYieldClaimResponse {
265
+ export interface EthereumYieldSweepResponse {
296
266
  /**
297
- * Privy transaction record ID for the claim operation.
267
+ * Unique identifier for the yield sweep.
298
268
  */
299
269
  id: string;
300
270
  /**
301
- * An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
271
+ * The amount of underlying assets involved. Set after the sweep is confirmed
272
+ * on-chain.
302
273
  */
303
- caip2: EvmCaip2ChainID;
274
+ asset_amount: string | null;
304
275
  /**
305
- * Unix timestamp of when the claim was created, in milliseconds.
276
+ * Unix timestamp of when the sweep was created, in milliseconds.
306
277
  */
307
278
  created_at: number;
308
279
  /**
309
- * List of reward tokens claimed.
280
+ * The amount of vault shares involved. Set after the sweep is confirmed on-chain.
310
281
  */
311
- rewards: Array<EthereumYieldClaimReward>;
282
+ share_amount: string | null;
312
283
  /**
313
- * The current status of the claim transaction.
284
+ * Status of a yield sweep.
314
285
  */
315
- status: 'broadcasted' | 'confirmed' | 'execution_reverted' | 'failed' | 'replaced' | 'finalized' | 'provider_error' | 'pending';
286
+ status: EthereumYieldSweepStatus;
316
287
  /**
317
- * Unix timestamp of when the claim was last updated, in milliseconds.
288
+ * Type of yield sweep.
289
+ */
290
+ type: EthereumYieldSweepType;
291
+ /**
292
+ * Unix timestamp of when the sweep was last updated, in milliseconds.
318
293
  */
319
294
  updated_at: number;
295
+ /**
296
+ * The ID of the vault involved in the sweep.
297
+ */
298
+ vault_id: string;
299
+ /**
300
+ * The ID of the wallet involved in the sweep.
301
+ */
302
+ wallet_id: string;
320
303
  }
321
304
  /**
322
- * Input for fetching a yield reward claim by ID.
305
+ * Status of a yield sweep.
323
306
  */
324
- export interface EthereumYieldClaimIDInput {
307
+ export type EthereumYieldSweepStatus = 'pending' | 'confirmed' | 'failed';
308
+ /**
309
+ * Type of yield sweep.
310
+ */
311
+ export type EthereumYieldSweepType = 'deposit' | 'withdraw';
312
+ /**
313
+ * Input for withdrawing assets from an ERC-4626 vault.
314
+ */
315
+ export interface EthereumYieldWithdrawInput {
325
316
  /**
326
- * The yield claim transaction ID.
317
+ * The amount of the underlying asset to withdraw, in the smallest unit (e.g., wei
318
+ * for ETH, 6 decimals for USDC). Must be a non-negative integer string.
327
319
  */
328
- id: string;
320
+ asset_amount: string;
321
+ /**
322
+ * The ID of the vault to withdraw from.
323
+ */
324
+ vault_id: string;
329
325
  }
326
+ /**
327
+ * An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
328
+ */
329
+ export type EvmCaip2ChainID = string;
330
330
  /**
331
331
  * Headers required to authorize yield operations.
332
332
  */
@@ -347,6 +347,6 @@ export interface YieldAuthorizationHeaders {
347
347
  'privy-request-expiry'?: string;
348
348
  }
349
349
  export declare namespace Yield {
350
- export { type EvmCaip2ChainID as EvmCaip2ChainID, type EthereumYieldProvider as EthereumYieldProvider, type EthereumYieldSweepType as EthereumYieldSweepType, type EthereumYieldSweepStatus as EthereumYieldSweepStatus, type EthereumYieldDepositInput as EthereumYieldDepositInput, type EthereumYieldWithdrawInput as EthereumYieldWithdrawInput, type EthereumYieldSweepResponse as EthereumYieldSweepResponse, type EthereumVaultDetailsInput as EthereumVaultDetailsInput, type EthereumYieldSweepIDInput as EthereumYieldSweepIDInput, type EthereumVaultResponse as EthereumVaultResponse, type EthereumVaultDetailsResponse as EthereumVaultDetailsResponse, type EthereumYieldPositionsInput as EthereumYieldPositionsInput, type EthereumVaultPosition as EthereumVaultPosition, type EthereumYieldPositionResponse as EthereumYieldPositionResponse, type EthereumYieldClaimInput as EthereumYieldClaimInput, type EthereumYieldClaimReward as EthereumYieldClaimReward, type EthereumYieldClaimResponse as EthereumYieldClaimResponse, type EthereumYieldClaimIDInput as EthereumYieldClaimIDInput, type YieldAuthorizationHeaders as YieldAuthorizationHeaders, };
350
+ export { type EthereumVaultDetailsInput as EthereumVaultDetailsInput, type EthereumVaultDetailsResponse as EthereumVaultDetailsResponse, type EthereumVaultPosition as EthereumVaultPosition, type EthereumVaultResponse as EthereumVaultResponse, type EthereumYieldClaimIDInput as EthereumYieldClaimIDInput, type EthereumYieldClaimInput as EthereumYieldClaimInput, type EthereumYieldClaimResponse as EthereumYieldClaimResponse, type EthereumYieldClaimReward as EthereumYieldClaimReward, type EthereumYieldDepositInput as EthereumYieldDepositInput, type EthereumYieldPositionResponse as EthereumYieldPositionResponse, type EthereumYieldPositionsInput as EthereumYieldPositionsInput, type EthereumYieldProvider as EthereumYieldProvider, type EthereumYieldSweepIDInput as EthereumYieldSweepIDInput, type EthereumYieldSweepResponse as EthereumYieldSweepResponse, type EthereumYieldSweepStatus as EthereumYieldSweepStatus, type EthereumYieldSweepType as EthereumYieldSweepType, type EthereumYieldWithdrawInput as EthereumYieldWithdrawInput, type EvmCaip2ChainID as EvmCaip2ChainID, type YieldAuthorizationHeaders as YieldAuthorizationHeaders, };
351
351
  }
352
352
  //# sourceMappingURL=yield.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"yield.d.ts","sourceRoot":"","sources":["../src/resources/yield.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,KAAM,SAAQ,WAAW;CAAG;AAEzC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC;AAErC;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,UAAU,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,MAAM,EAAE,wBAAwB,CAAC;IAEjC;;OAEG;IACH,IAAI,EAAE,sBAAsB,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH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