@privy-io/api-types 0.9.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.
- package/CHANGELOG.md +38 -0
- package/client.d.mts +33 -30
- package/client.d.mts.map +1 -1
- package/client.d.ts +33 -30
- package/client.d.ts.map +1 -1
- package/client.js +22 -8
- package/client.js.map +1 -1
- package/client.mjs +23 -9
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +128 -86
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +128 -86
- package/resources/accounts.d.ts.map +1 -1
- package/resources/aggregations.d.mts +43 -43
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +43 -43
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/apps.d.mts +169 -135
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +169 -135
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +646 -644
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +646 -644
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +114 -114
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +114 -114
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/funding.d.mts +42 -42
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +42 -42
- package/resources/funding.d.ts.map +1 -1
- package/resources/index.d.mts +19 -18
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +19 -18
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +269 -265
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +269 -265
- package/resources/intents.d.ts.map +1 -1
- package/resources/key-quorums.d.mts +20 -20
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +20 -20
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/kraken-embed.d.mts +12 -20
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +12 -20
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/organizations.d.mts +65 -0
- package/resources/organizations.d.mts.map +1 -0
- package/resources/organizations.d.ts +65 -0
- package/resources/organizations.d.ts.map +1 -0
- package/resources/organizations.js +9 -0
- package/resources/organizations.js.map +1 -0
- package/resources/organizations.mjs +5 -0
- package/resources/organizations.mjs.map +1 -0
- package/resources/policies.d.mts +258 -240
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +258 -240
- package/resources/policies.d.ts.map +1 -1
- package/resources/shared.d.mts +28 -28
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +28 -28
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +6 -9
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +6 -9
- package/resources/swaps.d.ts.map +1 -1
- package/resources/swaps.js.map +1 -1
- package/resources/swaps.mjs.map +1 -1
- package/resources/transactions.d.mts +53 -53
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +53 -53
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +468 -459
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +468 -459
- package/resources/users.d.ts.map +1 -1
- package/resources/wallet-actions.d.mts +302 -145
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +302 -145
- package/resources/wallet-actions.d.ts.map +1 -1
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +7 -2
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +7 -2
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +1 -1
- package/resources/wallets/transactions.mjs +1 -1
- package/resources/wallets/wallets.d.mts +1424 -1227
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +1424 -1227
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +4 -1
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +4 -1
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +935 -877
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +935 -877
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/yield.d.mts +157 -157
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +157 -157
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +594 -516
- package/src/internal/types.ts +6 -8
- package/src/resources/accounts.ts +157 -103
- package/src/resources/aggregations.ts +55 -55
- package/src/resources/apps.ts +221 -178
- package/src/resources/client-auth.ts +887 -887
- package/src/resources/embedded-wallets.ts +150 -150
- package/src/resources/funding.ts +66 -66
- package/src/resources/index.ts +504 -475
- package/src/resources/intents.ts +326 -322
- package/src/resources/key-quorums.ts +23 -23
- package/src/resources/kraken-embed.ts +14 -22
- package/src/resources/organizations.ts +82 -0
- package/src/resources/policies.ts +379 -352
- package/src/resources/shared.ts +34 -34
- package/src/resources/swaps.ts +5 -10
- package/src/resources/transactions.ts +86 -86
- package/src/resources/users.ts +707 -696
- package/src/resources/wallet-actions.ts +392 -185
- package/src/resources/wallets/index.ts +157 -148
- package/src/resources/wallets/transactions.ts +18 -3
- package/src/resources/wallets/wallets.ts +1937 -1686
- package/src/resources/webhooks.ts +1172 -1100
- package/src/resources/yield.ts +188 -188
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
package/resources/yield.d.ts
CHANGED
|
@@ -2,108 +2,94 @@ import { APIResource } from "../core/resource.js";
|
|
|
2
2
|
export declare class Yield extends APIResource {
|
|
3
3
|
}
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
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
|
|
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
|
|
9
|
+
* The Privy vault ID.
|
|
31
10
|
*/
|
|
32
11
|
vault_id: string;
|
|
33
12
|
}
|
|
34
13
|
/**
|
|
35
|
-
*
|
|
14
|
+
* Detailed vault information including current APY and liquidity.
|
|
36
15
|
*/
|
|
37
|
-
export interface
|
|
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
|
-
*
|
|
18
|
+
* Vault identifier.
|
|
45
19
|
*/
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* A yield sweep record representing a deposit or withdrawal.
|
|
50
|
-
*/
|
|
51
|
-
export interface EthereumYieldSweepResponse {
|
|
20
|
+
id: string;
|
|
52
21
|
/**
|
|
53
|
-
*
|
|
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
|
-
|
|
25
|
+
app_apy: number | null;
|
|
56
26
|
/**
|
|
57
|
-
*
|
|
58
|
-
* on-chain.
|
|
27
|
+
* Underlying asset token address.
|
|
59
28
|
*/
|
|
60
|
-
|
|
29
|
+
asset_address: string;
|
|
61
30
|
/**
|
|
62
|
-
*
|
|
31
|
+
* Assets available for instant withdrawal in USD.
|
|
63
32
|
*/
|
|
64
|
-
|
|
33
|
+
available_liquidity_usd: number | null;
|
|
65
34
|
/**
|
|
66
|
-
*
|
|
35
|
+
* Chain identifier (e.g., eip155:8453).
|
|
67
36
|
*/
|
|
68
|
-
|
|
37
|
+
caip2: string;
|
|
69
38
|
/**
|
|
70
|
-
*
|
|
39
|
+
* Human-readable vault name from the yield provider.
|
|
71
40
|
*/
|
|
72
|
-
|
|
41
|
+
name: string;
|
|
73
42
|
/**
|
|
74
|
-
*
|
|
43
|
+
* Supported yield/lending protocol providers.
|
|
75
44
|
*/
|
|
76
|
-
|
|
45
|
+
provider: EthereumYieldProvider;
|
|
77
46
|
/**
|
|
78
|
-
*
|
|
47
|
+
* Total value locked in USD.
|
|
79
48
|
*/
|
|
80
|
-
|
|
49
|
+
tvl_usd: number | null;
|
|
81
50
|
/**
|
|
82
|
-
*
|
|
51
|
+
* Current annual percentage yield in basis points (e.g., 500 for 5%). 1 basis
|
|
52
|
+
* point = 0.01%.
|
|
83
53
|
*/
|
|
84
|
-
|
|
54
|
+
user_apy: number | null;
|
|
85
55
|
/**
|
|
86
|
-
*
|
|
56
|
+
* On-chain vault contract address.
|
|
87
57
|
*/
|
|
88
|
-
|
|
58
|
+
vault_address: string;
|
|
89
59
|
}
|
|
90
60
|
/**
|
|
91
|
-
*
|
|
61
|
+
* A user's position in a DeFi vault.
|
|
92
62
|
*/
|
|
93
|
-
export interface
|
|
63
|
+
export interface EthereumVaultPosition {
|
|
64
|
+
asset: EthereumVaultPosition.Asset;
|
|
94
65
|
/**
|
|
95
|
-
*
|
|
66
|
+
* Current asset value in the vault (realtime from ERC4626), in smallest unit.
|
|
96
67
|
*/
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Input for fetching a yield sweep by ID.
|
|
101
|
-
*/
|
|
102
|
-
export interface EthereumYieldSweepIDInput {
|
|
68
|
+
assets_in_vault: string;
|
|
103
69
|
/**
|
|
104
|
-
*
|
|
70
|
+
* Current vault shares held (realtime from ERC4626).
|
|
105
71
|
*/
|
|
106
|
-
|
|
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
|
-
*
|
|
129
|
+
* Input for fetching a yield reward claim by ID.
|
|
144
130
|
*/
|
|
145
|
-
export interface
|
|
131
|
+
export interface EthereumYieldClaimIDInput {
|
|
146
132
|
/**
|
|
147
|
-
*
|
|
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
|
-
*
|
|
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
|
-
|
|
144
|
+
caip2: EvmCaip2ChainID;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Response from a yield reward claim operation.
|
|
148
|
+
*/
|
|
149
|
+
export interface EthereumYieldClaimResponse {
|
|
163
150
|
/**
|
|
164
|
-
*
|
|
151
|
+
* Privy transaction record ID for the claim operation.
|
|
165
152
|
*/
|
|
166
|
-
|
|
153
|
+
id: string;
|
|
167
154
|
/**
|
|
168
|
-
*
|
|
155
|
+
* An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
|
|
169
156
|
*/
|
|
170
|
-
|
|
157
|
+
caip2: EvmCaip2ChainID;
|
|
171
158
|
/**
|
|
172
|
-
*
|
|
159
|
+
* Unix timestamp of when the claim was created, in milliseconds.
|
|
173
160
|
*/
|
|
174
|
-
|
|
161
|
+
created_at: number;
|
|
175
162
|
/**
|
|
176
|
-
*
|
|
163
|
+
* List of reward tokens claimed.
|
|
177
164
|
*/
|
|
178
|
-
|
|
165
|
+
rewards: Array<EthereumYieldClaimReward>;
|
|
179
166
|
/**
|
|
180
|
-
*
|
|
181
|
-
* point = 0.01%.
|
|
167
|
+
* The current status of the claim transaction.
|
|
182
168
|
*/
|
|
183
|
-
|
|
169
|
+
status: 'broadcasted' | 'confirmed' | 'execution_reverted' | 'failed' | 'replaced' | 'finalized' | 'provider_error' | 'pending';
|
|
184
170
|
/**
|
|
185
|
-
*
|
|
171
|
+
* Unix timestamp of when the claim was last updated, in milliseconds.
|
|
186
172
|
*/
|
|
187
|
-
|
|
173
|
+
updated_at: number;
|
|
188
174
|
}
|
|
189
175
|
/**
|
|
190
|
-
*
|
|
176
|
+
* A single reward token claimed from vault participation.
|
|
191
177
|
*/
|
|
192
|
-
export interface
|
|
178
|
+
export interface EthereumYieldClaimReward {
|
|
193
179
|
/**
|
|
194
|
-
*
|
|
180
|
+
* Amount claimed in the smallest unit.
|
|
195
181
|
*/
|
|
196
|
-
|
|
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
|
-
*
|
|
184
|
+
* Reward token contract address.
|
|
205
185
|
*/
|
|
206
|
-
|
|
186
|
+
token_address: string;
|
|
207
187
|
/**
|
|
208
|
-
*
|
|
188
|
+
* Reward token symbol (e.g., "MORPHO").
|
|
209
189
|
*/
|
|
210
|
-
|
|
190
|
+
token_symbol: string;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Input for depositing assets into an ERC-4626 vault.
|
|
194
|
+
*/
|
|
195
|
+
export interface EthereumYieldDepositInput {
|
|
211
196
|
/**
|
|
212
|
-
*
|
|
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
|
-
|
|
200
|
+
asset_amount: string;
|
|
215
201
|
/**
|
|
216
|
-
*
|
|
202
|
+
* The ID of the vault to deposit into.
|
|
217
203
|
*/
|
|
218
|
-
|
|
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
|
|
241
|
+
* Input for fetching yield positions.
|
|
268
242
|
*/
|
|
269
|
-
export interface
|
|
243
|
+
export interface EthereumYieldPositionsInput {
|
|
270
244
|
/**
|
|
271
|
-
*
|
|
245
|
+
* The vault ID to get position for.
|
|
272
246
|
*/
|
|
273
|
-
|
|
247
|
+
vault_id: string;
|
|
274
248
|
}
|
|
275
249
|
/**
|
|
276
|
-
*
|
|
250
|
+
* Supported yield/lending protocol providers.
|
|
277
251
|
*/
|
|
278
|
-
export
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
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
|
-
*
|
|
258
|
+
* The yield sweep ID.
|
|
289
259
|
*/
|
|
290
|
-
|
|
260
|
+
id: string;
|
|
291
261
|
}
|
|
292
262
|
/**
|
|
293
|
-
*
|
|
263
|
+
* A yield sweep record representing a deposit or withdrawal.
|
|
294
264
|
*/
|
|
295
|
-
export interface
|
|
265
|
+
export interface EthereumYieldSweepResponse {
|
|
296
266
|
/**
|
|
297
|
-
*
|
|
267
|
+
* Unique identifier for the yield sweep.
|
|
298
268
|
*/
|
|
299
269
|
id: string;
|
|
300
270
|
/**
|
|
301
|
-
*
|
|
271
|
+
* The amount of underlying assets involved. Set after the sweep is confirmed
|
|
272
|
+
* on-chain.
|
|
302
273
|
*/
|
|
303
|
-
|
|
274
|
+
asset_amount: string | null;
|
|
304
275
|
/**
|
|
305
|
-
* Unix timestamp of when the
|
|
276
|
+
* Unix timestamp of when the sweep was created, in milliseconds.
|
|
306
277
|
*/
|
|
307
278
|
created_at: number;
|
|
308
279
|
/**
|
|
309
|
-
*
|
|
280
|
+
* The amount of vault shares involved. Set after the sweep is confirmed on-chain.
|
|
310
281
|
*/
|
|
311
|
-
|
|
282
|
+
share_amount: string | null;
|
|
312
283
|
/**
|
|
313
|
-
*
|
|
284
|
+
* Status of a yield sweep.
|
|
314
285
|
*/
|
|
315
|
-
status:
|
|
286
|
+
status: EthereumYieldSweepStatus;
|
|
316
287
|
/**
|
|
317
|
-
*
|
|
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
|
-
*
|
|
305
|
+
* Status of a yield sweep.
|
|
323
306
|
*/
|
|
324
|
-
export
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
package/resources/yield.d.ts.map
CHANGED
|
@@ -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,
|
|
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,WAAW,yBAAyB;IACxC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM,C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