@privy-io/api-types 0.19.0 → 0.21.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 +48 -0
- package/client.d.mts +25 -16
- package/client.d.mts.map +1 -1
- package/client.d.ts +25 -16
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/actions.d.mts +14 -0
- package/resources/actions.d.mts.map +1 -0
- package/resources/actions.d.ts +14 -0
- package/resources/actions.d.ts.map +1 -0
- package/resources/actions.js +9 -0
- package/resources/actions.js.map +1 -0
- package/resources/actions.mjs +5 -0
- package/resources/actions.mjs.map +1 -0
- package/resources/apps.d.mts +4 -0
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +4 -0
- package/resources/apps.d.ts.map +1 -1
- package/resources/cards.d.mts +436 -0
- package/resources/cards.d.mts.map +1 -0
- package/resources/cards.d.ts +436 -0
- package/resources/cards.d.ts.map +1 -0
- package/resources/cards.js +9 -0
- package/resources/cards.js.map +1 -0
- package/resources/cards.mjs +5 -0
- package/resources/cards.mjs.map +1 -0
- package/resources/client-auth.d.mts +22 -5
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +22 -5
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/fiat.d.mts +921 -2
- package/resources/fiat.d.mts.map +1 -1
- package/resources/fiat.d.ts +921 -2
- package/resources/fiat.d.ts.map +1 -1
- package/resources/fiat.js.map +1 -1
- package/resources/fiat.mjs.map +1 -1
- package/resources/index.d.mts +11 -8
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +1 -0
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +1 -0
- package/resources/intents.d.ts.map +1 -1
- package/resources/onramps.d.mts +39 -1
- package/resources/onramps.d.mts.map +1 -1
- package/resources/onramps.d.ts +39 -1
- package/resources/onramps.d.ts.map +1 -1
- package/resources/onramps.js.map +1 -1
- package/resources/onramps.mjs.map +1 -1
- package/resources/organizations.d.mts +54 -1
- package/resources/organizations.d.mts.map +1 -1
- package/resources/organizations.d.ts +54 -1
- package/resources/organizations.d.ts.map +1 -1
- package/resources/organizations.js.map +1 -1
- package/resources/organizations.mjs.map +1 -1
- package/resources/policies.d.mts +26 -3
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +26 -3
- package/resources/policies.d.ts.map +1 -1
- package/resources/shared.d.mts +9 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +9 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +9 -0
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +9 -0
- package/resources/swaps.d.ts.map +1 -1
- package/resources/transactions.d.mts +3 -0
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +3 -0
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +20 -0
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +20 -0
- package/resources/users.d.ts.map +1 -1
- package/resources/wallet-automations.d.mts +295 -0
- package/resources/wallet-automations.d.mts.map +1 -0
- package/resources/wallet-automations.d.ts +295 -0
- package/resources/wallet-automations.d.ts.map +1 -0
- package/resources/wallet-automations.js +9 -0
- package/resources/wallet-automations.js.map +1 -0
- package/resources/wallet-automations.mjs +5 -0
- package/resources/wallet-automations.mjs.map +1 -0
- package/resources/wallets/actions.d.mts +171 -5
- package/resources/wallets/actions.d.mts.map +1 -1
- package/resources/wallets/actions.d.ts +171 -5
- package/resources/wallets/actions.d.ts.map +1 -1
- package/resources/wallets/actions.js.map +1 -1
- package/resources/wallets/actions.mjs.map +1 -1
- package/resources/wallets/balance.d.mts +3 -3
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +3 -3
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/index.d.mts +2 -2
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +2 -2
- 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 +11 -2
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +11 -2
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/wallets.d.mts +530 -41
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +530 -41
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +686 -3
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +686 -3
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +439 -0
- package/src/resources/actions.ts +17 -0
- package/src/resources/apps.ts +5 -0
- package/src/resources/cards.ts +570 -0
- package/src/resources/client-auth.ts +29 -4
- package/src/resources/fiat.ts +1226 -3
- package/src/resources/index.ts +215 -0
- package/src/resources/intents.ts +2 -0
- package/src/resources/onramps.ts +43 -0
- package/src/resources/organizations.ts +68 -0
- package/src/resources/policies.ts +61 -0
- package/src/resources/shared.ts +12 -0
- package/src/resources/swaps.ts +11 -0
- package/src/resources/transactions.ts +3 -0
- package/src/resources/users.ts +25 -0
- package/src/resources/wallet-automations.ts +417 -0
- package/src/resources/wallets/actions.ts +216 -4
- package/src/resources/wallets/balance.ts +32 -1
- package/src/resources/wallets/index.ts +43 -0
- package/src/resources/wallets/transactions.ts +11 -1
- package/src/resources/wallets/wallets.ts +696 -31
- package/src/resources/webhooks.ts +878 -9
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
export declare class WalletAutomations extends APIResource {
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Configuration for an automation action.
|
|
6
|
+
*/
|
|
7
|
+
export type AutomationActionConfig = AutomationSwapActionConfig | AutomationEarnDepositActionConfig;
|
|
8
|
+
/**
|
|
9
|
+
* Configuration for an automation action (input form with alias support).
|
|
10
|
+
*/
|
|
11
|
+
export type AutomationActionConfigInput = AutomationSwapActionConfigInput | AutomationEarnDepositActionConfigInput;
|
|
12
|
+
/**
|
|
13
|
+
* Which assets to include/exclude for an automation trigger.
|
|
14
|
+
*/
|
|
15
|
+
export type AutomationAssetFilter = AutomationAssetFilterAll | AutomationAssetFilterInclude | AutomationAssetFilterExclude;
|
|
16
|
+
/**
|
|
17
|
+
* Match all assets.
|
|
18
|
+
*/
|
|
19
|
+
export interface AutomationAssetFilterAll {
|
|
20
|
+
mode: 'all';
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Match all assets except the specified ones.
|
|
24
|
+
*/
|
|
25
|
+
export interface AutomationAssetFilterExclude {
|
|
26
|
+
mode: 'exclude';
|
|
27
|
+
values: Array<AutomationAssetSpec>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Match only the specified assets.
|
|
31
|
+
*/
|
|
32
|
+
export interface AutomationAssetFilterInclude {
|
|
33
|
+
mode: 'include';
|
|
34
|
+
values: Array<AutomationAssetSpec>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Which assets to include/exclude for an automation trigger (input form with alias
|
|
38
|
+
* support).
|
|
39
|
+
*/
|
|
40
|
+
export type AutomationAssetFilterInput = AutomationAssetFilterAll | AutomationAssetFilterInputInclude | AutomationAssetFilterInputExclude;
|
|
41
|
+
/**
|
|
42
|
+
* Match all assets except the specified ones (input form with alias support).
|
|
43
|
+
*/
|
|
44
|
+
export interface AutomationAssetFilterInputExclude {
|
|
45
|
+
mode: 'exclude';
|
|
46
|
+
values: Array<AutomationAssetSpecInput>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Match only the specified assets (input form with alias support).
|
|
50
|
+
*/
|
|
51
|
+
export interface AutomationAssetFilterInputInclude {
|
|
52
|
+
mode: 'include';
|
|
53
|
+
values: Array<AutomationAssetSpecInput>;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* An asset identified by contract address, scoped to a chain via CAIP-2.
|
|
57
|
+
*/
|
|
58
|
+
export interface AutomationAssetSpec {
|
|
59
|
+
asset_address: string;
|
|
60
|
+
caip2: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* An asset spec accepting either raw identifiers (asset_address, caip2) or
|
|
64
|
+
* human-readable aliases (asset, chain). Exactly one of asset_address or asset
|
|
65
|
+
* must be provided; at most one of caip2 or chain may be provided.
|
|
66
|
+
*/
|
|
67
|
+
export interface AutomationAssetSpecInput extends AutomationAssetSpec {
|
|
68
|
+
asset?: string;
|
|
69
|
+
chain?: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Full configuration for a wallet automation (trigger + action).
|
|
73
|
+
*/
|
|
74
|
+
export interface AutomationConfig {
|
|
75
|
+
/**
|
|
76
|
+
* Configuration for an automation action.
|
|
77
|
+
*/
|
|
78
|
+
action: AutomationActionConfig;
|
|
79
|
+
/**
|
|
80
|
+
* Trigger configuration for deposit events.
|
|
81
|
+
*/
|
|
82
|
+
trigger: AutomationTriggerConfig;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Full configuration for a wallet automation (trigger + action) accepting
|
|
86
|
+
* human-readable aliases.
|
|
87
|
+
*/
|
|
88
|
+
export interface AutomationConfigInput {
|
|
89
|
+
/**
|
|
90
|
+
* Configuration for an automation action (input form with alias support).
|
|
91
|
+
*/
|
|
92
|
+
action: AutomationActionConfigInput;
|
|
93
|
+
/**
|
|
94
|
+
* Trigger configuration for deposit events (input form with alias support).
|
|
95
|
+
*/
|
|
96
|
+
trigger: AutomationTriggerConfigInput;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Trigger configuration for deposit events.
|
|
100
|
+
*/
|
|
101
|
+
export interface AutomationDepositTriggerConfig {
|
|
102
|
+
/**
|
|
103
|
+
* Which assets to include/exclude for an automation trigger.
|
|
104
|
+
*/
|
|
105
|
+
assets: AutomationAssetFilter;
|
|
106
|
+
type: 'deposit';
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Trigger configuration for deposit events (input form with alias support).
|
|
110
|
+
*/
|
|
111
|
+
export interface AutomationDepositTriggerConfigInput {
|
|
112
|
+
/**
|
|
113
|
+
* Which assets to include/exclude for an automation trigger (input form with alias
|
|
114
|
+
* support).
|
|
115
|
+
*/
|
|
116
|
+
assets: AutomationAssetFilterInput;
|
|
117
|
+
type: 'deposit';
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Destination asset identified by contract address on a specific chain (CAIP-2).
|
|
121
|
+
*/
|
|
122
|
+
export interface AutomationDestinationAsset {
|
|
123
|
+
asset_address: string;
|
|
124
|
+
caip2: string;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* A destination asset spec accepting either raw identifiers (asset_address, caip2)
|
|
128
|
+
* or human-readable aliases (asset, chain). Exactly one of asset_address or asset
|
|
129
|
+
* must be provided; exactly one of caip2 or chain must be provided.
|
|
130
|
+
*/
|
|
131
|
+
export interface AutomationDestinationAssetInput extends AutomationDestinationAsset {
|
|
132
|
+
asset?: string;
|
|
133
|
+
chain?: string;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Action configuration for depositing into an Earn vault.
|
|
137
|
+
*/
|
|
138
|
+
export interface AutomationEarnDepositActionConfig {
|
|
139
|
+
type: 'earn_deposit';
|
|
140
|
+
vault_id: string;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Action configuration for depositing into an Earn vault (input form).
|
|
144
|
+
*/
|
|
145
|
+
export interface AutomationEarnDepositActionConfigInput {
|
|
146
|
+
type: 'earn_deposit';
|
|
147
|
+
vault_id: string;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Action configuration for swap operations.
|
|
151
|
+
*/
|
|
152
|
+
export interface AutomationSwapActionConfig {
|
|
153
|
+
/**
|
|
154
|
+
* Destination asset identified by contract address on a specific chain (CAIP-2).
|
|
155
|
+
*/
|
|
156
|
+
destination_chain_asset: AutomationDestinationAsset;
|
|
157
|
+
type: 'swap';
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Action configuration for swap operations (input form with alias support).
|
|
161
|
+
*/
|
|
162
|
+
export interface AutomationSwapActionConfigInput {
|
|
163
|
+
/**
|
|
164
|
+
* A destination asset spec accepting either raw identifiers (asset_address, caip2)
|
|
165
|
+
* or human-readable aliases (asset, chain). Exactly one of asset_address or asset
|
|
166
|
+
* must be provided; exactly one of caip2 or chain must be provided.
|
|
167
|
+
*/
|
|
168
|
+
destination_chain_asset: AutomationDestinationAssetInput;
|
|
169
|
+
type: 'swap';
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Trigger configuration for deposit events.
|
|
173
|
+
*/
|
|
174
|
+
export interface AutomationTriggerConfig {
|
|
175
|
+
/**
|
|
176
|
+
* Which assets to include/exclude for an automation trigger.
|
|
177
|
+
*/
|
|
178
|
+
assets: AutomationAssetFilter;
|
|
179
|
+
type: 'deposit';
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Trigger configuration for deposit events (input form with alias support).
|
|
183
|
+
*/
|
|
184
|
+
export interface AutomationTriggerConfigInput {
|
|
185
|
+
/**
|
|
186
|
+
* Which assets to include/exclude for an automation trigger (input form with alias
|
|
187
|
+
* support).
|
|
188
|
+
*/
|
|
189
|
+
assets: AutomationAssetFilterInput;
|
|
190
|
+
type: 'deposit';
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Request body for creating a wallet automation.
|
|
194
|
+
*/
|
|
195
|
+
export interface CreateAutomationRequestBody {
|
|
196
|
+
/**
|
|
197
|
+
* Full configuration for a wallet automation (trigger + action) accepting
|
|
198
|
+
* human-readable aliases.
|
|
199
|
+
*/
|
|
200
|
+
config: AutomationConfigInput;
|
|
201
|
+
owner_id: string | null;
|
|
202
|
+
name?: string;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Per-attachment parameters for swap automations.
|
|
206
|
+
*/
|
|
207
|
+
export interface SwapAttachmentParams {
|
|
208
|
+
destination_address: string;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Request body for updating a wallet automation.
|
|
212
|
+
*/
|
|
213
|
+
export interface UpdateAutomationRequestBody {
|
|
214
|
+
/**
|
|
215
|
+
* Full configuration for a wallet automation (trigger + action) accepting
|
|
216
|
+
* human-readable aliases.
|
|
217
|
+
*/
|
|
218
|
+
config?: AutomationConfigInput;
|
|
219
|
+
enabled?: boolean;
|
|
220
|
+
name?: string | null;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Paginated list of wallet automation executions.
|
|
224
|
+
*/
|
|
225
|
+
export interface WalletAutomationExecutionListResponse {
|
|
226
|
+
data: Array<WalletAutomationExecutionResponse>;
|
|
227
|
+
next_cursor: string | null;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* A record of a single automation execution triggered by a deposit.
|
|
231
|
+
*/
|
|
232
|
+
export interface WalletAutomationExecutionResponse {
|
|
233
|
+
id: string;
|
|
234
|
+
automation_attachment_id: string | null;
|
|
235
|
+
completed_at: string | null;
|
|
236
|
+
created_at: string;
|
|
237
|
+
failed_at: string | null;
|
|
238
|
+
failure_reason: string | null;
|
|
239
|
+
/**
|
|
240
|
+
* Execution lifecycle status.
|
|
241
|
+
*/
|
|
242
|
+
status: WalletAutomationExecutionStatus;
|
|
243
|
+
trigger_asset_address: string;
|
|
244
|
+
trigger_block_number: string;
|
|
245
|
+
trigger_caip2: string;
|
|
246
|
+
trigger_tx_hash: string;
|
|
247
|
+
triggered_at: string | null;
|
|
248
|
+
updated_at: string;
|
|
249
|
+
wallet_action_id: string | null;
|
|
250
|
+
wallet_id: string;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Execution lifecycle status.
|
|
254
|
+
*/
|
|
255
|
+
export type WalletAutomationExecutionStatus = 'pending' | 'triggered' | 'completed' | 'failed' | 'skipped';
|
|
256
|
+
/**
|
|
257
|
+
* Paginated list of wallet automations.
|
|
258
|
+
*/
|
|
259
|
+
export interface WalletAutomationListResponse {
|
|
260
|
+
data: Array<WalletAutomationResponse>;
|
|
261
|
+
next_cursor: string | null;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* A wallet automation.
|
|
265
|
+
*/
|
|
266
|
+
export interface WalletAutomationResponse {
|
|
267
|
+
id: string;
|
|
268
|
+
app_id: string;
|
|
269
|
+
/**
|
|
270
|
+
* Full configuration for a wallet automation (trigger + action).
|
|
271
|
+
*/
|
|
272
|
+
config: AutomationConfig;
|
|
273
|
+
created_at: string;
|
|
274
|
+
name: string | null;
|
|
275
|
+
owner_id: string | null;
|
|
276
|
+
/**
|
|
277
|
+
* Automation lifecycle state: 'enabled' = running, 'disabled' = not running.
|
|
278
|
+
*/
|
|
279
|
+
status: WalletAutomationStatus;
|
|
280
|
+
updated_at: string;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Automation lifecycle state: 'enabled' = running, 'disabled' = not running.
|
|
284
|
+
*/
|
|
285
|
+
export type WalletAutomationStatus = 'enabled' | 'disabled';
|
|
286
|
+
/**
|
|
287
|
+
* Confirmation of a successful automation operation.
|
|
288
|
+
*/
|
|
289
|
+
export interface WalletAutomationSuccessResponse {
|
|
290
|
+
success: true;
|
|
291
|
+
}
|
|
292
|
+
export declare namespace WalletAutomations {
|
|
293
|
+
export { type AutomationActionConfig as AutomationActionConfig, type AutomationActionConfigInput as AutomationActionConfigInput, type AutomationAssetFilter as AutomationAssetFilter, type AutomationAssetFilterAll as AutomationAssetFilterAll, type AutomationAssetFilterExclude as AutomationAssetFilterExclude, type AutomationAssetFilterInclude as AutomationAssetFilterInclude, type AutomationAssetFilterInput as AutomationAssetFilterInput, type AutomationAssetFilterInputExclude as AutomationAssetFilterInputExclude, type AutomationAssetFilterInputInclude as AutomationAssetFilterInputInclude, type AutomationAssetSpec as AutomationAssetSpec, type AutomationAssetSpecInput as AutomationAssetSpecInput, type AutomationConfig as AutomationConfig, type AutomationConfigInput as AutomationConfigInput, type AutomationDepositTriggerConfig as AutomationDepositTriggerConfig, type AutomationDepositTriggerConfigInput as AutomationDepositTriggerConfigInput, type AutomationDestinationAsset as AutomationDestinationAsset, type AutomationDestinationAssetInput as AutomationDestinationAssetInput, type AutomationEarnDepositActionConfig as AutomationEarnDepositActionConfig, type AutomationEarnDepositActionConfigInput as AutomationEarnDepositActionConfigInput, type AutomationSwapActionConfig as AutomationSwapActionConfig, type AutomationSwapActionConfigInput as AutomationSwapActionConfigInput, type AutomationTriggerConfig as AutomationTriggerConfig, type AutomationTriggerConfigInput as AutomationTriggerConfigInput, type CreateAutomationRequestBody as CreateAutomationRequestBody, type SwapAttachmentParams as SwapAttachmentParams, type UpdateAutomationRequestBody as UpdateAutomationRequestBody, type WalletAutomationExecutionListResponse as WalletAutomationExecutionListResponse, type WalletAutomationExecutionResponse as WalletAutomationExecutionResponse, type WalletAutomationExecutionStatus as WalletAutomationExecutionStatus, type WalletAutomationListResponse as WalletAutomationListResponse, type WalletAutomationResponse as WalletAutomationResponse, type WalletAutomationStatus as WalletAutomationStatus, type WalletAutomationSuccessResponse as WalletAutomationSuccessResponse, };
|
|
294
|
+
}
|
|
295
|
+
//# sourceMappingURL=wallet-automations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-automations.d.ts","sourceRoot":"","sources":["../src/resources/wallet-automations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAE/C,qBAAa,iBAAkB,SAAQ,WAAW;CAAG;AAErD;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,0BAA0B,GAAG,iCAAiC,CAAC;AAEpG;;GAEG;AACH,MAAM,MAAM,2BAA2B,GACnC,+BAA+B,GAC/B,sCAAsC,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAC7B,wBAAwB,GACxB,4BAA4B,GAC5B,4BAA4B,CAAC;AAEjC;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,KAAK,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,SAAS,CAAC;IAEhB,MAAM,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,SAAS,CAAC;IAEhB,MAAM,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;CACpC;AAED;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAClC,wBAAwB,GACxB,iCAAiC,GACjC,iCAAiC,CAAC;AAEtC;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,IAAI,EAAE,SAAS,CAAC;IAEhB,MAAM,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,IAAI,EAAE,SAAS,CAAC;IAEhB,MAAM,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE,MAAM,CAAC;IAEtB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,wBAAyB,SAAQ,mBAAm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AAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.WalletAutomations = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class WalletAutomations extends resource_1.APIResource {
|
|
7
|
+
}
|
|
8
|
+
exports.WalletAutomations = WalletAutomations;
|
|
9
|
+
//# sourceMappingURL=wallet-automations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-automations.js","sourceRoot":"","sources":["../src/resources/wallet-automations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,MAAa,iBAAkB,SAAQ,sBAAW;CAAG;AAArD,8CAAqD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-automations.mjs","sourceRoot":"","sources":["../src/resources/wallet-automations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,MAAM,OAAO,iBAAkB,SAAQ,WAAW;CAAG"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as FiatAPI from "../fiat.mjs";
|
|
3
|
+
import * as SharedAPI from "../shared.mjs";
|
|
2
4
|
import * as WalletsAPI from "./wallets.mjs";
|
|
3
5
|
export declare class Actions extends APIResource {
|
|
4
6
|
}
|
|
@@ -239,6 +241,10 @@ export interface EarnDepositActionResponse {
|
|
|
239
241
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
240
242
|
*/
|
|
241
243
|
failure_reason?: FailureReason;
|
|
244
|
+
/**
|
|
245
|
+
* Developer-provided reference ID, if one was included in the request.
|
|
246
|
+
*/
|
|
247
|
+
reference_id?: string | null;
|
|
242
248
|
/**
|
|
243
249
|
* The steps of the wallet action. Only returned if `?include=steps` is provided.
|
|
244
250
|
*/
|
|
@@ -258,11 +264,20 @@ export interface EarnDepositRequestBody {
|
|
|
258
264
|
* of `amount` or `raw_amount` must be provided.
|
|
259
265
|
*/
|
|
260
266
|
amount?: string;
|
|
267
|
+
/**
|
|
268
|
+
* Unique caller-generated nonce used to prevent replaying a signed wallet action
|
|
269
|
+
* request. Must be at least 24 characters (e.g. a cuid2 or UUID).
|
|
270
|
+
*/
|
|
271
|
+
nonce?: WalletsAPI.WalletActionNonce;
|
|
261
272
|
/**
|
|
262
273
|
* Amount in smallest unit to deposit (e.g. "1500000" for 1.5 USDC with 6
|
|
263
274
|
* decimals). Exactly one of `amount` or `raw_amount` must be provided.
|
|
264
275
|
*/
|
|
265
276
|
raw_amount?: string;
|
|
277
|
+
/**
|
|
278
|
+
* Developer-provided identifier for this request. Must be unique per app.
|
|
279
|
+
*/
|
|
280
|
+
reference_id?: string;
|
|
266
281
|
}
|
|
267
282
|
/**
|
|
268
283
|
* Response for an earn fee collect action.
|
|
@@ -326,6 +341,10 @@ export interface EarnFeeCollectActionResponse {
|
|
|
326
341
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
327
342
|
*/
|
|
328
343
|
failure_reason?: FailureReason;
|
|
344
|
+
/**
|
|
345
|
+
* Developer-provided reference ID, if one was included in the request.
|
|
346
|
+
*/
|
|
347
|
+
reference_id?: string | null;
|
|
329
348
|
/**
|
|
330
349
|
* The steps of the wallet action. Only returned if `?include=steps` is provided.
|
|
331
350
|
*/
|
|
@@ -339,6 +358,15 @@ export interface EarnFeeCollectRequestBody {
|
|
|
339
358
|
* The ID of the vault to collect fees from.
|
|
340
359
|
*/
|
|
341
360
|
vault_id: string;
|
|
361
|
+
/**
|
|
362
|
+
* Unique caller-generated nonce used to prevent replaying a signed wallet action
|
|
363
|
+
* request. Must be at least 24 characters (e.g. a cuid2 or UUID).
|
|
364
|
+
*/
|
|
365
|
+
nonce?: WalletsAPI.WalletActionNonce;
|
|
366
|
+
/**
|
|
367
|
+
* Developer-provided identifier for this request. Must be unique per app.
|
|
368
|
+
*/
|
|
369
|
+
reference_id?: string;
|
|
342
370
|
}
|
|
343
371
|
/**
|
|
344
372
|
* Response for an earn incentive claim action.
|
|
@@ -373,6 +401,10 @@ export interface EarnIncentiveClaimActionResponse {
|
|
|
373
401
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
374
402
|
*/
|
|
375
403
|
failure_reason?: FailureReason;
|
|
404
|
+
/**
|
|
405
|
+
* Developer-provided reference ID, if one was included in the request.
|
|
406
|
+
*/
|
|
407
|
+
reference_id?: string | null;
|
|
376
408
|
/**
|
|
377
409
|
* The steps of the wallet action. Only returned if `?include=steps` is provided.
|
|
378
410
|
*/
|
|
@@ -388,6 +420,15 @@ export interface EarnIncentiveClaimRequestBody {
|
|
|
388
420
|
* along with their respective testnets.
|
|
389
421
|
*/
|
|
390
422
|
chain: string;
|
|
423
|
+
/**
|
|
424
|
+
* Unique caller-generated nonce used to prevent replaying a signed wallet action
|
|
425
|
+
* request. Must be at least 24 characters (e.g. a cuid2 or UUID).
|
|
426
|
+
*/
|
|
427
|
+
nonce?: WalletsAPI.WalletActionNonce;
|
|
428
|
+
/**
|
|
429
|
+
* Developer-provided identifier for this request. Must be unique per app.
|
|
430
|
+
*/
|
|
431
|
+
reference_id?: string;
|
|
391
432
|
}
|
|
392
433
|
/**
|
|
393
434
|
* A reward token with claimed and unclaimed amounts.
|
|
@@ -518,6 +559,10 @@ export interface EarnWithdrawActionResponse {
|
|
|
518
559
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
519
560
|
*/
|
|
520
561
|
failure_reason?: FailureReason;
|
|
562
|
+
/**
|
|
563
|
+
* Developer-provided reference ID, if one was included in the request.
|
|
564
|
+
*/
|
|
565
|
+
reference_id?: string | null;
|
|
521
566
|
/**
|
|
522
567
|
* The steps of the wallet action. Only returned if `?include=steps` is provided.
|
|
523
568
|
*/
|
|
@@ -537,11 +582,20 @@ export interface EarnWithdrawRequestBody {
|
|
|
537
582
|
* of `amount` or `raw_amount` must be provided.
|
|
538
583
|
*/
|
|
539
584
|
amount?: string;
|
|
585
|
+
/**
|
|
586
|
+
* Unique caller-generated nonce used to prevent replaying a signed wallet action
|
|
587
|
+
* request. Must be at least 24 characters (e.g. a cuid2 or UUID).
|
|
588
|
+
*/
|
|
589
|
+
nonce?: WalletsAPI.WalletActionNonce;
|
|
540
590
|
/**
|
|
541
591
|
* Amount in smallest unit to withdraw (e.g. "1500000" for 1.5 USDC with 6
|
|
542
592
|
* decimals). Exactly one of `amount` or `raw_amount` must be provided.
|
|
543
593
|
*/
|
|
544
594
|
raw_amount?: string;
|
|
595
|
+
/**
|
|
596
|
+
* Developer-provided identifier for this request. Must be unique per app.
|
|
597
|
+
*/
|
|
598
|
+
reference_id?: string;
|
|
545
599
|
}
|
|
546
600
|
/**
|
|
547
601
|
* Query parameters for fetching an earn vault position.
|
|
@@ -584,12 +638,12 @@ export interface EthereumEarnPositionResponse {
|
|
|
584
638
|
/**
|
|
585
639
|
* Supported earn provider protocols.
|
|
586
640
|
*/
|
|
587
|
-
export type EthereumEarnProvider = 'morpho' | 'aave' | 'veda';
|
|
641
|
+
export type EthereumEarnProvider = 'morpho' | 'aave' | 'veda' | 'tempo';
|
|
588
642
|
/**
|
|
589
643
|
* Detailed vault information including current APY, liquidity, and asset metadata.
|
|
590
644
|
* Discriminated on provider.
|
|
591
645
|
*/
|
|
592
|
-
export type EthereumEarnVaultDetailsResponse = AaveVaultDetails | MorphoVaultDetails | VedaVaultDetails;
|
|
646
|
+
export type EthereumEarnVaultDetailsResponse = AaveVaultDetails | MorphoVaultDetails | TempoVaultDetails | VedaVaultDetails;
|
|
593
647
|
/**
|
|
594
648
|
* A wallet action step representing a cross-chain/cross-asset fill by an external
|
|
595
649
|
* provider.
|
|
@@ -696,6 +750,57 @@ export interface MorphoVaultDetails {
|
|
|
696
750
|
*/
|
|
697
751
|
vault_address: string;
|
|
698
752
|
}
|
|
753
|
+
/**
|
|
754
|
+
* A payout wallet action. Crypto is sent on-chain to a liquidation address that
|
|
755
|
+
* offramps to the destination bank account.
|
|
756
|
+
*/
|
|
757
|
+
export interface PayoutResponse {
|
|
758
|
+
/**
|
|
759
|
+
* The ID of the wallet action.
|
|
760
|
+
*/
|
|
761
|
+
id: string;
|
|
762
|
+
/**
|
|
763
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
764
|
+
*/
|
|
765
|
+
created_at: string;
|
|
766
|
+
/**
|
|
767
|
+
* The destination bank account for a payout.
|
|
768
|
+
*/
|
|
769
|
+
destination: FiatAPI.PayoutDestination;
|
|
770
|
+
/**
|
|
771
|
+
* The Privy API environment.
|
|
772
|
+
*/
|
|
773
|
+
environment: SharedAPI.IntegrationEnvironment;
|
|
774
|
+
/**
|
|
775
|
+
* Supported fiat orchestration providers.
|
|
776
|
+
*/
|
|
777
|
+
provider: SharedAPI.OrchestrationProvider;
|
|
778
|
+
/**
|
|
779
|
+
* The source crypto asset, chain, and amount for a payout.
|
|
780
|
+
*/
|
|
781
|
+
source: FiatAPI.PayoutSource;
|
|
782
|
+
/**
|
|
783
|
+
* Status of a wallet action.
|
|
784
|
+
*/
|
|
785
|
+
status: WalletActionStatus;
|
|
786
|
+
type: 'payout';
|
|
787
|
+
/**
|
|
788
|
+
* The ID of the wallet involved in the action.
|
|
789
|
+
*/
|
|
790
|
+
wallet_id: string;
|
|
791
|
+
/**
|
|
792
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
793
|
+
*/
|
|
794
|
+
failure_reason?: FailureReason;
|
|
795
|
+
/**
|
|
796
|
+
* Developer-provided reference ID, if one was included in the request.
|
|
797
|
+
*/
|
|
798
|
+
reference_id?: string | null;
|
|
799
|
+
/**
|
|
800
|
+
* The steps of the wallet action. Only returned if `?include=steps` is provided.
|
|
801
|
+
*/
|
|
802
|
+
steps?: Array<WalletActionStep>;
|
|
803
|
+
}
|
|
699
804
|
/**
|
|
700
805
|
* A wallet action step consisting of an SVM (Solana) transaction.
|
|
701
806
|
*/
|
|
@@ -806,6 +911,10 @@ export interface SwapActionResponse {
|
|
|
806
911
|
* human-readable decimal string, plus the gas token symbol.
|
|
807
912
|
*/
|
|
808
913
|
gas?: WalletsAPI.Gas | null;
|
|
914
|
+
/**
|
|
915
|
+
* Developer-provided reference ID, if one was included in the request.
|
|
916
|
+
*/
|
|
917
|
+
reference_id?: string | null;
|
|
809
918
|
/**
|
|
810
919
|
* The steps of the wallet action. Only returned if `?include=steps` is provided.
|
|
811
920
|
*/
|
|
@@ -837,6 +946,59 @@ export interface TvmTransactionWalletActionStep {
|
|
|
837
946
|
* Status of a TVM (Tron) step in a wallet action.
|
|
838
947
|
*/
|
|
839
948
|
export type TvmWalletActionStepStatus = 'preparing' | 'queued' | 'pending' | 'confirmed' | 'rejected' | 'reverted' | 'failed';
|
|
949
|
+
/**
|
|
950
|
+
* Vault details for a Tempo earn vault.
|
|
951
|
+
*/
|
|
952
|
+
export interface TempoVaultDetails {
|
|
953
|
+
/**
|
|
954
|
+
* Vault identifier.
|
|
955
|
+
*/
|
|
956
|
+
id: string;
|
|
957
|
+
/**
|
|
958
|
+
* EVM address of the vault admin wallet.
|
|
959
|
+
*/
|
|
960
|
+
admin_wallet_address: string;
|
|
961
|
+
/**
|
|
962
|
+
* Privy wallet ID of the vault admin, or null when the Tempo vault admin is not
|
|
963
|
+
* Privy-managed.
|
|
964
|
+
*/
|
|
965
|
+
admin_wallet_id: string | null;
|
|
966
|
+
/**
|
|
967
|
+
* Annual percentage yield earned by the app from fee wrapper fees, in basis
|
|
968
|
+
* points.
|
|
969
|
+
*/
|
|
970
|
+
app_apy: number | null;
|
|
971
|
+
/**
|
|
972
|
+
* Asset metadata for an earn vault position.
|
|
973
|
+
*/
|
|
974
|
+
asset: EarnAsset;
|
|
975
|
+
/**
|
|
976
|
+
* Available liquidity in USD.
|
|
977
|
+
*/
|
|
978
|
+
available_liquidity_usd: number | null;
|
|
979
|
+
/**
|
|
980
|
+
* CAIP-2 chain identifier (e.g. "eip155:4217" for Tempo, "eip155:8453" for Base).
|
|
981
|
+
*/
|
|
982
|
+
caip2: string;
|
|
983
|
+
/**
|
|
984
|
+
* Human-readable vault name from the yield provider.
|
|
985
|
+
*/
|
|
986
|
+
name: string;
|
|
987
|
+
provider: 'tempo';
|
|
988
|
+
/**
|
|
989
|
+
* Total value locked in USD.
|
|
990
|
+
*/
|
|
991
|
+
tvl_usd: number | null;
|
|
992
|
+
/**
|
|
993
|
+
* Annual percentage yield available to the user, after fees and excluding rewards,
|
|
994
|
+
* in basis points (e.g. 500 for 5%). 1 basis point = 0.01%.
|
|
995
|
+
*/
|
|
996
|
+
user_apy: number | null;
|
|
997
|
+
/**
|
|
998
|
+
* Onchain vault contract address.
|
|
999
|
+
*/
|
|
1000
|
+
vault_address: string;
|
|
1001
|
+
}
|
|
840
1002
|
/**
|
|
841
1003
|
* Response for a transfer action.
|
|
842
1004
|
*/
|
|
@@ -908,6 +1070,10 @@ export interface TransferActionResponse {
|
|
|
908
1070
|
* human-readable decimal string, plus the gas token symbol.
|
|
909
1071
|
*/
|
|
910
1072
|
gas?: WalletsAPI.Gas | null;
|
|
1073
|
+
/**
|
|
1074
|
+
* Developer-provided reference ID, if one was included in the request.
|
|
1075
|
+
*/
|
|
1076
|
+
reference_id?: string | null;
|
|
911
1077
|
/**
|
|
912
1078
|
* Decimal amount sent on the source chain (e.g. "1.5"). For exact_output
|
|
913
1079
|
* cross-chain transfers, null until fill confirmation.
|
|
@@ -992,7 +1158,7 @@ export type WalletActionInclude = 'steps';
|
|
|
992
1158
|
/**
|
|
993
1159
|
* Response for a wallet action, discriminated on type.
|
|
994
1160
|
*/
|
|
995
|
-
export type WalletActionResponse = SwapActionResponse | TransferActionResponse | EarnDepositActionResponse | EarnWithdrawActionResponse | EarnIncentiveClaimActionResponse | EarnFeeCollectActionResponse;
|
|
1161
|
+
export type WalletActionResponse = SwapActionResponse | TransferActionResponse | EarnDepositActionResponse | EarnWithdrawActionResponse | EarnIncentiveClaimActionResponse | EarnFeeCollectActionResponse | PayoutResponse;
|
|
996
1162
|
/**
|
|
997
1163
|
* Status of a wallet action.
|
|
998
1164
|
*/
|
|
@@ -1008,8 +1174,8 @@ export type WalletActionStepType = 'evm_transaction' | 'evm_user_operation' | 's
|
|
|
1008
1174
|
/**
|
|
1009
1175
|
* Type of wallet action
|
|
1010
1176
|
*/
|
|
1011
|
-
export type WalletActionType = 'swap' | 'transfer' | 'earn_deposit' | 'earn_withdraw' | 'earn_incentive_claim' | 'earn_fee_collect';
|
|
1177
|
+
export type WalletActionType = 'swap' | 'transfer' | 'earn_deposit' | 'earn_withdraw' | 'earn_incentive_claim' | 'earn_fee_collect' | 'payout';
|
|
1012
1178
|
export declare namespace Actions {
|
|
1013
|
-
export { type AaveVaultDetails as AaveVaultDetails, type CustodianTransactionWalletActionStep as CustodianTransactionWalletActionStep, type CustodianTransactionWalletActionStepStatus as CustodianTransactionWalletActionStepStatus, type EvmTransactionWalletActionStep as EvmTransactionWalletActionStep, type EvmUserOperationEntrypointVersion as EvmUserOperationEntrypointVersion, type EvmUserOperationWalletActionStep as EvmUserOperationWalletActionStep, type EvmWalletActionStepStatus as EvmWalletActionStepStatus, type EarnAsset as EarnAsset, type EarnDepositActionResponse as EarnDepositActionResponse, type EarnDepositRequestBody as EarnDepositRequestBody, type EarnFeeCollectActionResponse as EarnFeeCollectActionResponse, type EarnFeeCollectRequestBody as EarnFeeCollectRequestBody, type EarnIncentiveClaimActionResponse as EarnIncentiveClaimActionResponse, type EarnIncentiveClaimRequestBody as EarnIncentiveClaimRequestBody, type EarnIncentiveRewardEntry as EarnIncentiveRewardEntry, type EarnIncentiveRewardsQuery as EarnIncentiveRewardsQuery, type EarnIncentiveRewardsResponse as EarnIncentiveRewardsResponse, type EarnIncetiveClaimRewardEntry as EarnIncetiveClaimRewardEntry, type EarnWithdrawActionResponse as EarnWithdrawActionResponse, type EarnWithdrawRequestBody as EarnWithdrawRequestBody, type EthereumEarnPositionQuery as EthereumEarnPositionQuery, type EthereumEarnPositionResponse as EthereumEarnPositionResponse, type EthereumEarnProvider as EthereumEarnProvider, type EthereumEarnVaultDetailsResponse as EthereumEarnVaultDetailsResponse, type ExternalTransactionWalletActionStep as ExternalTransactionWalletActionStep, type ExternalTransactionWalletActionStepStatus as ExternalTransactionWalletActionStepStatus, type FailureReason as FailureReason, type ListWalletActionsQuery as ListWalletActionsQuery, type ListWalletActionsResponse as ListWalletActionsResponse, type MorphoVaultDetails as MorphoVaultDetails, type SvmTransactionWalletActionStep as SvmTransactionWalletActionStep, type SvmWalletActionStepStatus as SvmWalletActionStepStatus, type SwapActionResponse as SwapActionResponse, type TvmTransactionWalletActionStep as TvmTransactionWalletActionStep, type TvmWalletActionStepStatus as TvmWalletActionStepStatus, type TransferActionResponse as TransferActionResponse, type VedaVaultDetails as VedaVaultDetails, type WalletActionInclude as WalletActionInclude, type WalletActionResponse as WalletActionResponse, type WalletActionStatus as WalletActionStatus, type WalletActionStep as WalletActionStep, type WalletActionStepType as WalletActionStepType, type WalletActionType as WalletActionType, };
|
|
1179
|
+
export { type AaveVaultDetails as AaveVaultDetails, type CustodianTransactionWalletActionStep as CustodianTransactionWalletActionStep, type CustodianTransactionWalletActionStepStatus as CustodianTransactionWalletActionStepStatus, type EvmTransactionWalletActionStep as EvmTransactionWalletActionStep, type EvmUserOperationEntrypointVersion as EvmUserOperationEntrypointVersion, type EvmUserOperationWalletActionStep as EvmUserOperationWalletActionStep, type EvmWalletActionStepStatus as EvmWalletActionStepStatus, type EarnAsset as EarnAsset, type EarnDepositActionResponse as EarnDepositActionResponse, type EarnDepositRequestBody as EarnDepositRequestBody, type EarnFeeCollectActionResponse as EarnFeeCollectActionResponse, type EarnFeeCollectRequestBody as EarnFeeCollectRequestBody, type EarnIncentiveClaimActionResponse as EarnIncentiveClaimActionResponse, type EarnIncentiveClaimRequestBody as EarnIncentiveClaimRequestBody, type EarnIncentiveRewardEntry as EarnIncentiveRewardEntry, type EarnIncentiveRewardsQuery as EarnIncentiveRewardsQuery, type EarnIncentiveRewardsResponse as EarnIncentiveRewardsResponse, type EarnIncetiveClaimRewardEntry as EarnIncetiveClaimRewardEntry, type EarnWithdrawActionResponse as EarnWithdrawActionResponse, type EarnWithdrawRequestBody as EarnWithdrawRequestBody, type EthereumEarnPositionQuery as EthereumEarnPositionQuery, type EthereumEarnPositionResponse as EthereumEarnPositionResponse, type EthereumEarnProvider as EthereumEarnProvider, type EthereumEarnVaultDetailsResponse as EthereumEarnVaultDetailsResponse, type ExternalTransactionWalletActionStep as ExternalTransactionWalletActionStep, type ExternalTransactionWalletActionStepStatus as ExternalTransactionWalletActionStepStatus, type FailureReason as FailureReason, type ListWalletActionsQuery as ListWalletActionsQuery, type ListWalletActionsResponse as ListWalletActionsResponse, type MorphoVaultDetails as MorphoVaultDetails, type PayoutResponse as PayoutResponse, type SvmTransactionWalletActionStep as SvmTransactionWalletActionStep, type SvmWalletActionStepStatus as SvmWalletActionStepStatus, type SwapActionResponse as SwapActionResponse, type TvmTransactionWalletActionStep as TvmTransactionWalletActionStep, type TvmWalletActionStepStatus as TvmWalletActionStepStatus, type TempoVaultDetails as TempoVaultDetails, type TransferActionResponse as TransferActionResponse, type VedaVaultDetails as VedaVaultDetails, type WalletActionInclude as WalletActionInclude, type WalletActionResponse as WalletActionResponse, type WalletActionStatus as WalletActionStatus, type WalletActionStep as WalletActionStep, type WalletActionStepType as WalletActionStepType, type WalletActionType as WalletActionType, };
|
|
1014
1180
|
}
|
|
1015
1181
|
//# sourceMappingURL=actions.d.mts.map
|