@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
package/src/resources/swaps.ts
CHANGED
|
@@ -179,6 +179,17 @@ export interface SwapRequestBody {
|
|
|
179
179
|
*/
|
|
180
180
|
fee_configuration?: WalletsAPI.FeeConfiguration;
|
|
181
181
|
|
|
182
|
+
/**
|
|
183
|
+
* Unique caller-generated nonce used to prevent replaying a signed wallet action
|
|
184
|
+
* request. Must be at least 24 characters (e.g. a cuid2 or UUID).
|
|
185
|
+
*/
|
|
186
|
+
nonce?: WalletsAPI.WalletActionNonce;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Developer-provided identifier for this request. Must be unique per app.
|
|
190
|
+
*/
|
|
191
|
+
reference_id?: string;
|
|
192
|
+
|
|
182
193
|
/**
|
|
183
194
|
* Maximum slippage tolerance in basis points (e.g., 50 for 0.5%).
|
|
184
195
|
*/
|
package/src/resources/users.ts
CHANGED
|
@@ -218,6 +218,11 @@ export interface LinkedAccountBitcoinSegwitEmbeddedWallet {
|
|
|
218
218
|
wallet_client_type: 'privy';
|
|
219
219
|
|
|
220
220
|
wallet_index: number;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Whether the user can unilaterally sign with this wallet.
|
|
224
|
+
*/
|
|
225
|
+
user_can_sign?: boolean;
|
|
221
226
|
}
|
|
222
227
|
|
|
223
228
|
/**
|
|
@@ -258,6 +263,11 @@ export interface LinkedAccountBitcoinTaprootEmbeddedWallet {
|
|
|
258
263
|
wallet_client_type: 'privy';
|
|
259
264
|
|
|
260
265
|
wallet_index: number;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Whether the user can unilaterally sign with this wallet.
|
|
269
|
+
*/
|
|
270
|
+
user_can_sign?: boolean;
|
|
261
271
|
}
|
|
262
272
|
|
|
263
273
|
/**
|
|
@@ -322,6 +332,11 @@ export interface LinkedAccountCurveSigningEmbeddedWallet {
|
|
|
322
332
|
wallet_client_type: 'privy';
|
|
323
333
|
|
|
324
334
|
wallet_index: number;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Whether the user can unilaterally sign with this wallet.
|
|
338
|
+
*/
|
|
339
|
+
user_can_sign?: boolean;
|
|
325
340
|
}
|
|
326
341
|
|
|
327
342
|
/**
|
|
@@ -564,6 +579,11 @@ export interface LinkedAccountEthereumEmbeddedWallet {
|
|
|
564
579
|
wallet_client_type: 'privy';
|
|
565
580
|
|
|
566
581
|
wallet_index: number;
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* Whether the user can unilaterally sign with this wallet.
|
|
585
|
+
*/
|
|
586
|
+
user_can_sign?: boolean;
|
|
567
587
|
}
|
|
568
588
|
|
|
569
589
|
/**
|
|
@@ -970,6 +990,11 @@ export interface LinkedAccountSolanaEmbeddedWallet {
|
|
|
970
990
|
wallet_client_type: 'privy';
|
|
971
991
|
|
|
972
992
|
wallet_index: number;
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* Whether the user can unilaterally sign with this wallet.
|
|
996
|
+
*/
|
|
997
|
+
user_can_sign?: boolean;
|
|
973
998
|
}
|
|
974
999
|
|
|
975
1000
|
/**
|
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
|
|
5
|
+
export class WalletAutomations extends APIResource {}
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Configuration for an automation action.
|
|
9
|
+
*/
|
|
10
|
+
export type AutomationActionConfig = AutomationSwapActionConfig | AutomationEarnDepositActionConfig;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Configuration for an automation action (input form with alias support).
|
|
14
|
+
*/
|
|
15
|
+
export type AutomationActionConfigInput =
|
|
16
|
+
| AutomationSwapActionConfigInput
|
|
17
|
+
| AutomationEarnDepositActionConfigInput;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Which assets to include/exclude for an automation trigger.
|
|
21
|
+
*/
|
|
22
|
+
export type AutomationAssetFilter =
|
|
23
|
+
| AutomationAssetFilterAll
|
|
24
|
+
| AutomationAssetFilterInclude
|
|
25
|
+
| AutomationAssetFilterExclude;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Match all assets.
|
|
29
|
+
*/
|
|
30
|
+
export interface AutomationAssetFilterAll {
|
|
31
|
+
mode: 'all';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Match all assets except the specified ones.
|
|
36
|
+
*/
|
|
37
|
+
export interface AutomationAssetFilterExclude {
|
|
38
|
+
mode: 'exclude';
|
|
39
|
+
|
|
40
|
+
values: Array<AutomationAssetSpec>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Match only the specified assets.
|
|
45
|
+
*/
|
|
46
|
+
export interface AutomationAssetFilterInclude {
|
|
47
|
+
mode: 'include';
|
|
48
|
+
|
|
49
|
+
values: Array<AutomationAssetSpec>;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Which assets to include/exclude for an automation trigger (input form with alias
|
|
54
|
+
* support).
|
|
55
|
+
*/
|
|
56
|
+
export type AutomationAssetFilterInput =
|
|
57
|
+
| AutomationAssetFilterAll
|
|
58
|
+
| AutomationAssetFilterInputInclude
|
|
59
|
+
| AutomationAssetFilterInputExclude;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Match all assets except the specified ones (input form with alias support).
|
|
63
|
+
*/
|
|
64
|
+
export interface AutomationAssetFilterInputExclude {
|
|
65
|
+
mode: 'exclude';
|
|
66
|
+
|
|
67
|
+
values: Array<AutomationAssetSpecInput>;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Match only the specified assets (input form with alias support).
|
|
72
|
+
*/
|
|
73
|
+
export interface AutomationAssetFilterInputInclude {
|
|
74
|
+
mode: 'include';
|
|
75
|
+
|
|
76
|
+
values: Array<AutomationAssetSpecInput>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* An asset identified by contract address, scoped to a chain via CAIP-2.
|
|
81
|
+
*/
|
|
82
|
+
export interface AutomationAssetSpec {
|
|
83
|
+
asset_address: string;
|
|
84
|
+
|
|
85
|
+
caip2: string;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* An asset spec accepting either raw identifiers (asset_address, caip2) or
|
|
90
|
+
* human-readable aliases (asset, chain). Exactly one of asset_address or asset
|
|
91
|
+
* must be provided; at most one of caip2 or chain may be provided.
|
|
92
|
+
*/
|
|
93
|
+
export interface AutomationAssetSpecInput extends AutomationAssetSpec {
|
|
94
|
+
asset?: string;
|
|
95
|
+
|
|
96
|
+
chain?: string;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Full configuration for a wallet automation (trigger + action).
|
|
101
|
+
*/
|
|
102
|
+
export interface AutomationConfig {
|
|
103
|
+
/**
|
|
104
|
+
* Configuration for an automation action.
|
|
105
|
+
*/
|
|
106
|
+
action: AutomationActionConfig;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Trigger configuration for deposit events.
|
|
110
|
+
*/
|
|
111
|
+
trigger: AutomationTriggerConfig;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Full configuration for a wallet automation (trigger + action) accepting
|
|
116
|
+
* human-readable aliases.
|
|
117
|
+
*/
|
|
118
|
+
export interface AutomationConfigInput {
|
|
119
|
+
/**
|
|
120
|
+
* Configuration for an automation action (input form with alias support).
|
|
121
|
+
*/
|
|
122
|
+
action: AutomationActionConfigInput;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Trigger configuration for deposit events (input form with alias support).
|
|
126
|
+
*/
|
|
127
|
+
trigger: AutomationTriggerConfigInput;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Trigger configuration for deposit events.
|
|
132
|
+
*/
|
|
133
|
+
export interface AutomationDepositTriggerConfig {
|
|
134
|
+
/**
|
|
135
|
+
* Which assets to include/exclude for an automation trigger.
|
|
136
|
+
*/
|
|
137
|
+
assets: AutomationAssetFilter;
|
|
138
|
+
|
|
139
|
+
type: 'deposit';
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Trigger configuration for deposit events (input form with alias support).
|
|
144
|
+
*/
|
|
145
|
+
export interface AutomationDepositTriggerConfigInput {
|
|
146
|
+
/**
|
|
147
|
+
* Which assets to include/exclude for an automation trigger (input form with alias
|
|
148
|
+
* support).
|
|
149
|
+
*/
|
|
150
|
+
assets: AutomationAssetFilterInput;
|
|
151
|
+
|
|
152
|
+
type: 'deposit';
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Destination asset identified by contract address on a specific chain (CAIP-2).
|
|
157
|
+
*/
|
|
158
|
+
export interface AutomationDestinationAsset {
|
|
159
|
+
asset_address: string;
|
|
160
|
+
|
|
161
|
+
caip2: string;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* A destination asset spec accepting either raw identifiers (asset_address, caip2)
|
|
166
|
+
* or human-readable aliases (asset, chain). Exactly one of asset_address or asset
|
|
167
|
+
* must be provided; exactly one of caip2 or chain must be provided.
|
|
168
|
+
*/
|
|
169
|
+
export interface AutomationDestinationAssetInput extends AutomationDestinationAsset {
|
|
170
|
+
asset?: string;
|
|
171
|
+
|
|
172
|
+
chain?: string;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Action configuration for depositing into an Earn vault.
|
|
177
|
+
*/
|
|
178
|
+
export interface AutomationEarnDepositActionConfig {
|
|
179
|
+
type: 'earn_deposit';
|
|
180
|
+
|
|
181
|
+
vault_id: string;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Action configuration for depositing into an Earn vault (input form).
|
|
186
|
+
*/
|
|
187
|
+
export interface AutomationEarnDepositActionConfigInput {
|
|
188
|
+
type: 'earn_deposit';
|
|
189
|
+
|
|
190
|
+
vault_id: string;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Action configuration for swap operations.
|
|
195
|
+
*/
|
|
196
|
+
export interface AutomationSwapActionConfig {
|
|
197
|
+
/**
|
|
198
|
+
* Destination asset identified by contract address on a specific chain (CAIP-2).
|
|
199
|
+
*/
|
|
200
|
+
destination_chain_asset: AutomationDestinationAsset;
|
|
201
|
+
|
|
202
|
+
type: 'swap';
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Action configuration for swap operations (input form with alias support).
|
|
207
|
+
*/
|
|
208
|
+
export interface AutomationSwapActionConfigInput {
|
|
209
|
+
/**
|
|
210
|
+
* A destination asset spec accepting either raw identifiers (asset_address, caip2)
|
|
211
|
+
* or human-readable aliases (asset, chain). Exactly one of asset_address or asset
|
|
212
|
+
* must be provided; exactly one of caip2 or chain must be provided.
|
|
213
|
+
*/
|
|
214
|
+
destination_chain_asset: AutomationDestinationAssetInput;
|
|
215
|
+
|
|
216
|
+
type: 'swap';
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Trigger configuration for deposit events.
|
|
221
|
+
*/
|
|
222
|
+
export interface AutomationTriggerConfig {
|
|
223
|
+
/**
|
|
224
|
+
* Which assets to include/exclude for an automation trigger.
|
|
225
|
+
*/
|
|
226
|
+
assets: AutomationAssetFilter;
|
|
227
|
+
|
|
228
|
+
type: 'deposit';
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Trigger configuration for deposit events (input form with alias support).
|
|
233
|
+
*/
|
|
234
|
+
export interface AutomationTriggerConfigInput {
|
|
235
|
+
/**
|
|
236
|
+
* Which assets to include/exclude for an automation trigger (input form with alias
|
|
237
|
+
* support).
|
|
238
|
+
*/
|
|
239
|
+
assets: AutomationAssetFilterInput;
|
|
240
|
+
|
|
241
|
+
type: 'deposit';
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Request body for creating a wallet automation.
|
|
246
|
+
*/
|
|
247
|
+
export interface CreateAutomationRequestBody {
|
|
248
|
+
/**
|
|
249
|
+
* Full configuration for a wallet automation (trigger + action) accepting
|
|
250
|
+
* human-readable aliases.
|
|
251
|
+
*/
|
|
252
|
+
config: AutomationConfigInput;
|
|
253
|
+
|
|
254
|
+
owner_id: string | null;
|
|
255
|
+
|
|
256
|
+
name?: string;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Per-attachment parameters for swap automations.
|
|
261
|
+
*/
|
|
262
|
+
export interface SwapAttachmentParams {
|
|
263
|
+
destination_address: string;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Request body for updating a wallet automation.
|
|
268
|
+
*/
|
|
269
|
+
export interface UpdateAutomationRequestBody {
|
|
270
|
+
/**
|
|
271
|
+
* Full configuration for a wallet automation (trigger + action) accepting
|
|
272
|
+
* human-readable aliases.
|
|
273
|
+
*/
|
|
274
|
+
config?: AutomationConfigInput;
|
|
275
|
+
|
|
276
|
+
enabled?: boolean;
|
|
277
|
+
|
|
278
|
+
name?: string | null;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Paginated list of wallet automation executions.
|
|
283
|
+
*/
|
|
284
|
+
export interface WalletAutomationExecutionListResponse {
|
|
285
|
+
data: Array<WalletAutomationExecutionResponse>;
|
|
286
|
+
|
|
287
|
+
next_cursor: string | null;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* A record of a single automation execution triggered by a deposit.
|
|
292
|
+
*/
|
|
293
|
+
export interface WalletAutomationExecutionResponse {
|
|
294
|
+
id: string;
|
|
295
|
+
|
|
296
|
+
automation_attachment_id: string | null;
|
|
297
|
+
|
|
298
|
+
completed_at: string | null;
|
|
299
|
+
|
|
300
|
+
created_at: string;
|
|
301
|
+
|
|
302
|
+
failed_at: string | null;
|
|
303
|
+
|
|
304
|
+
failure_reason: string | null;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Execution lifecycle status.
|
|
308
|
+
*/
|
|
309
|
+
status: WalletAutomationExecutionStatus;
|
|
310
|
+
|
|
311
|
+
trigger_asset_address: string;
|
|
312
|
+
|
|
313
|
+
trigger_block_number: string;
|
|
314
|
+
|
|
315
|
+
trigger_caip2: string;
|
|
316
|
+
|
|
317
|
+
trigger_tx_hash: string;
|
|
318
|
+
|
|
319
|
+
triggered_at: string | null;
|
|
320
|
+
|
|
321
|
+
updated_at: string;
|
|
322
|
+
|
|
323
|
+
wallet_action_id: string | null;
|
|
324
|
+
|
|
325
|
+
wallet_id: string;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Execution lifecycle status.
|
|
330
|
+
*/
|
|
331
|
+
export type WalletAutomationExecutionStatus = 'pending' | 'triggered' | 'completed' | 'failed' | 'skipped';
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Paginated list of wallet automations.
|
|
335
|
+
*/
|
|
336
|
+
export interface WalletAutomationListResponse {
|
|
337
|
+
data: Array<WalletAutomationResponse>;
|
|
338
|
+
|
|
339
|
+
next_cursor: string | null;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* A wallet automation.
|
|
344
|
+
*/
|
|
345
|
+
export interface WalletAutomationResponse {
|
|
346
|
+
id: string;
|
|
347
|
+
|
|
348
|
+
app_id: string;
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Full configuration for a wallet automation (trigger + action).
|
|
352
|
+
*/
|
|
353
|
+
config: AutomationConfig;
|
|
354
|
+
|
|
355
|
+
created_at: string;
|
|
356
|
+
|
|
357
|
+
name: string | null;
|
|
358
|
+
|
|
359
|
+
owner_id: string | null;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Automation lifecycle state: 'enabled' = running, 'disabled' = not running.
|
|
363
|
+
*/
|
|
364
|
+
status: WalletAutomationStatus;
|
|
365
|
+
|
|
366
|
+
updated_at: string;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Automation lifecycle state: 'enabled' = running, 'disabled' = not running.
|
|
371
|
+
*/
|
|
372
|
+
export type WalletAutomationStatus = 'enabled' | 'disabled';
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Confirmation of a successful automation operation.
|
|
376
|
+
*/
|
|
377
|
+
export interface WalletAutomationSuccessResponse {
|
|
378
|
+
success: true;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export declare namespace WalletAutomations {
|
|
382
|
+
export {
|
|
383
|
+
type AutomationActionConfig as AutomationActionConfig,
|
|
384
|
+
type AutomationActionConfigInput as AutomationActionConfigInput,
|
|
385
|
+
type AutomationAssetFilter as AutomationAssetFilter,
|
|
386
|
+
type AutomationAssetFilterAll as AutomationAssetFilterAll,
|
|
387
|
+
type AutomationAssetFilterExclude as AutomationAssetFilterExclude,
|
|
388
|
+
type AutomationAssetFilterInclude as AutomationAssetFilterInclude,
|
|
389
|
+
type AutomationAssetFilterInput as AutomationAssetFilterInput,
|
|
390
|
+
type AutomationAssetFilterInputExclude as AutomationAssetFilterInputExclude,
|
|
391
|
+
type AutomationAssetFilterInputInclude as AutomationAssetFilterInputInclude,
|
|
392
|
+
type AutomationAssetSpec as AutomationAssetSpec,
|
|
393
|
+
type AutomationAssetSpecInput as AutomationAssetSpecInput,
|
|
394
|
+
type AutomationConfig as AutomationConfig,
|
|
395
|
+
type AutomationConfigInput as AutomationConfigInput,
|
|
396
|
+
type AutomationDepositTriggerConfig as AutomationDepositTriggerConfig,
|
|
397
|
+
type AutomationDepositTriggerConfigInput as AutomationDepositTriggerConfigInput,
|
|
398
|
+
type AutomationDestinationAsset as AutomationDestinationAsset,
|
|
399
|
+
type AutomationDestinationAssetInput as AutomationDestinationAssetInput,
|
|
400
|
+
type AutomationEarnDepositActionConfig as AutomationEarnDepositActionConfig,
|
|
401
|
+
type AutomationEarnDepositActionConfigInput as AutomationEarnDepositActionConfigInput,
|
|
402
|
+
type AutomationSwapActionConfig as AutomationSwapActionConfig,
|
|
403
|
+
type AutomationSwapActionConfigInput as AutomationSwapActionConfigInput,
|
|
404
|
+
type AutomationTriggerConfig as AutomationTriggerConfig,
|
|
405
|
+
type AutomationTriggerConfigInput as AutomationTriggerConfigInput,
|
|
406
|
+
type CreateAutomationRequestBody as CreateAutomationRequestBody,
|
|
407
|
+
type SwapAttachmentParams as SwapAttachmentParams,
|
|
408
|
+
type UpdateAutomationRequestBody as UpdateAutomationRequestBody,
|
|
409
|
+
type WalletAutomationExecutionListResponse as WalletAutomationExecutionListResponse,
|
|
410
|
+
type WalletAutomationExecutionResponse as WalletAutomationExecutionResponse,
|
|
411
|
+
type WalletAutomationExecutionStatus as WalletAutomationExecutionStatus,
|
|
412
|
+
type WalletAutomationListResponse as WalletAutomationListResponse,
|
|
413
|
+
type WalletAutomationResponse as WalletAutomationResponse,
|
|
414
|
+
type WalletAutomationStatus as WalletAutomationStatus,
|
|
415
|
+
type WalletAutomationSuccessResponse as WalletAutomationSuccessResponse,
|
|
416
|
+
};
|
|
417
|
+
}
|