@privy-io/api-types 0.6.1 → 0.8.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 +72 -0
- package/client.d.mts +53 -29
- package/client.d.mts.map +1 -1
- package/client.d.ts +53 -29
- package/client.d.ts.map +1 -1
- package/client.js +32 -7
- package/client.js.map +1 -1
- package/client.mjs +34 -9
- package/client.mjs.map +1 -1
- package/package.json +12 -1
- package/resources/accounts.d.mts +146 -4
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +146 -4
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs.map +1 -1
- package/resources/aggregations.d.mts +18 -392
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +18 -392
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/aggregations.js.map +1 -1
- package/resources/aggregations.mjs.map +1 -1
- package/resources/apps.d.mts +197 -70
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +197 -70
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs.map +1 -1
- package/resources/client-auth.d.mts +975 -463
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +975 -463
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/client-auth.js.map +1 -1
- package/resources/client-auth.mjs.map +1 -1
- package/resources/cross-app.d.mts +14 -13
- package/resources/cross-app.d.mts.map +1 -1
- package/resources/cross-app.d.ts +14 -13
- package/resources/cross-app.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +165 -81
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +165 -81
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/embedded-wallets.js.map +1 -1
- package/resources/embedded-wallets.mjs.map +1 -1
- package/resources/funding.d.mts +150 -64
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +150 -64
- package/resources/funding.d.ts.map +1 -1
- package/resources/funding.js.map +1 -1
- package/resources/funding.mjs.map +1 -1
- package/resources/index.d.mts +18 -14
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +18 -14
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +6 -2
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +446 -31
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +446 -31
- package/resources/intents.d.ts.map +1 -1
- package/resources/intents.js.map +1 -1
- package/resources/intents.mjs.map +1 -1
- package/resources/key-quorums.d.mts +108 -17
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +108 -17
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +26 -9
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +26 -9
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +62 -0
- package/resources/kraken-embed.d.mts.map +1 -0
- package/resources/kraken-embed.d.ts +62 -0
- package/resources/kraken-embed.d.ts.map +1 -0
- package/resources/kraken-embed.js +9 -0
- package/resources/kraken-embed.js.map +1 -0
- package/resources/kraken-embed.mjs +5 -0
- package/resources/kraken-embed.mjs.map +1 -0
- package/resources/policies.d.mts +342 -926
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +342 -926
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +51 -41
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +51 -41
- package/resources/policies.mjs.map +1 -1
- package/resources/shared.d.mts +59 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +59 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +9 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +5 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/swaps.d.mts +108 -0
- package/resources/swaps.d.mts.map +1 -0
- package/resources/swaps.d.ts +108 -0
- package/resources/swaps.d.ts.map +1 -0
- package/resources/swaps.js +9 -0
- package/resources/swaps.js.map +1 -0
- package/resources/swaps.mjs +5 -0
- package/resources/swaps.mjs.map +1 -0
- package/resources/transactions.d.mts +158 -93
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +158 -93
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js +3 -0
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs +3 -0
- package/resources/transactions.mjs.map +1 -1
- package/resources/users.d.mts +64 -94
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +64 -94
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +3 -0
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +3 -0
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +187 -0
- package/resources/wallet-actions.d.mts.map +1 -0
- package/resources/wallet-actions.d.ts +187 -0
- package/resources/wallet-actions.d.ts.map +1 -0
- package/resources/wallet-actions.js +9 -0
- package/resources/wallet-actions.js.map +1 -0
- package/resources/wallet-actions.mjs +5 -0
- package/resources/wallet-actions.mjs.map +1 -0
- package/resources/wallets/balance.d.mts +7 -4
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +7 -4
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.js +3 -0
- package/resources/wallets/balance.js.map +1 -1
- package/resources/wallets/balance.mjs +3 -0
- package/resources/wallets/balance.mjs.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 +10 -6
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +10 -6
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +3 -0
- package/resources/wallets/transactions.js.map +1 -1
- package/resources/wallets/transactions.mjs +3 -0
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +2399 -936
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +2399 -936
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +28 -10
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +28 -10
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +780 -339
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +780 -339
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/yield.d.mts +50 -9
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +50 -9
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +884 -99
- package/src/resources/accounts.ts +179 -3
- package/src/resources/aggregations.ts +18 -702
- package/src/resources/apps.ts +250 -85
- package/src/resources/client-auth.ts +1453 -786
- package/src/resources/cross-app.ts +19 -15
- package/src/resources/embedded-wallets.ts +219 -123
- package/src/resources/funding.ts +263 -173
- package/src/resources/index.ts +444 -61
- package/src/resources/intents.ts +575 -37
- package/src/resources/key-quorums.ts +137 -21
- package/src/resources/kraken-embed.ts +85 -0
- package/src/resources/policies.ts +582 -1550
- package/src/resources/shared.ts +79 -0
- package/src/resources/swaps.ts +136 -0
- package/src/resources/transactions.ts +188 -91
- package/src/resources/users.ts +82 -132
- package/src/resources/wallet-actions.ts +251 -0
- package/src/resources/wallets/balance.ts +9 -2
- package/src/resources/wallets/index.ts +146 -16
- package/src/resources/wallets/transactions.ts +12 -4
- package/src/resources/wallets/wallets.ts +2922 -974
- package/src/resources/webhooks.ts +970 -454
- package/src/resources/yield.ts +68 -10
- 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
|
@@ -1,10 +1,547 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as IntentsAPI from './intents';
|
|
4
5
|
import * as UsersAPI from './users';
|
|
6
|
+
import * as WalletActionsAPI from './wallet-actions';
|
|
7
|
+
import * as WalletsAPI from './wallets/wallets';
|
|
5
8
|
|
|
6
9
|
export class Webhooks extends APIResource {}
|
|
7
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Payload for the intent.created webhook event.
|
|
13
|
+
*/
|
|
14
|
+
export interface IntentCreatedWebhookPayload {
|
|
15
|
+
/**
|
|
16
|
+
* Unix timestamp when the intent was created.
|
|
17
|
+
*/
|
|
18
|
+
created_at: number;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Unix timestamp when the intent expires.
|
|
22
|
+
*/
|
|
23
|
+
expires_at: number;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The unique ID of the intent.
|
|
27
|
+
*/
|
|
28
|
+
intent_id: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Type of intent.
|
|
32
|
+
*/
|
|
33
|
+
intent_type: IntentsAPI.IntentType;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The current status of the intent.
|
|
37
|
+
*/
|
|
38
|
+
status: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The type of webhook event.
|
|
42
|
+
*/
|
|
43
|
+
type: 'intent.created';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Key quorums that can authorize this intent.
|
|
47
|
+
*/
|
|
48
|
+
authorization_details?: Array<IntentsAPI.IntentAuthorization>;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Display name of the user who created the intent.
|
|
52
|
+
*/
|
|
53
|
+
created_by_display_name?: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The ID of the user who created the intent.
|
|
57
|
+
*/
|
|
58
|
+
created_by_id?: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Payload for the intent.authorized webhook event.
|
|
63
|
+
*/
|
|
64
|
+
export interface IntentAuthorizedWebhookPayload {
|
|
65
|
+
/**
|
|
66
|
+
* Unix timestamp when the authorization was recorded.
|
|
67
|
+
*/
|
|
68
|
+
authorized_at: number;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Unix timestamp when the intent was created.
|
|
72
|
+
*/
|
|
73
|
+
created_at: number;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Unix timestamp when the intent expires.
|
|
77
|
+
*/
|
|
78
|
+
expires_at: number;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* The unique ID of the intent.
|
|
82
|
+
*/
|
|
83
|
+
intent_id: string;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Type of intent.
|
|
87
|
+
*/
|
|
88
|
+
intent_type: IntentsAPI.IntentType;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* A leaf member (user or key) of a nested key quorum in an intent authorization.
|
|
92
|
+
*/
|
|
93
|
+
member: IntentsAPI.IntentAuthorizationKeyQuorumMember;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* The current status of the intent.
|
|
97
|
+
*/
|
|
98
|
+
status: string;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The type of webhook event.
|
|
102
|
+
*/
|
|
103
|
+
type: 'intent.authorized';
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Display name of the user who created the intent.
|
|
107
|
+
*/
|
|
108
|
+
created_by_display_name?: string;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The ID of the user who created the intent.
|
|
112
|
+
*/
|
|
113
|
+
created_by_id?: string;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Payload for the intent.executed webhook event.
|
|
118
|
+
*/
|
|
119
|
+
export interface IntentExecutedWebhookPayload {
|
|
120
|
+
/**
|
|
121
|
+
* Result of the successful intent execution.
|
|
122
|
+
*/
|
|
123
|
+
action_result: IntentsAPI.BaseActionResult;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Unix timestamp when the intent was created.
|
|
127
|
+
*/
|
|
128
|
+
created_at: number;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Unix timestamp when the intent expires.
|
|
132
|
+
*/
|
|
133
|
+
expires_at: number;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* The unique ID of the intent.
|
|
137
|
+
*/
|
|
138
|
+
intent_id: string;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Type of intent.
|
|
142
|
+
*/
|
|
143
|
+
intent_type: IntentsAPI.IntentType;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* The current status of the intent.
|
|
147
|
+
*/
|
|
148
|
+
status: string;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* The type of webhook event.
|
|
152
|
+
*/
|
|
153
|
+
type: 'intent.executed';
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Display name of the user who created the intent.
|
|
157
|
+
*/
|
|
158
|
+
created_by_display_name?: string;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* The ID of the user who created the intent.
|
|
162
|
+
*/
|
|
163
|
+
created_by_id?: string;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Payload for the intent.failed webhook event.
|
|
168
|
+
*/
|
|
169
|
+
export interface IntentFailedWebhookPayload {
|
|
170
|
+
/**
|
|
171
|
+
* Result of the failed intent execution.
|
|
172
|
+
*/
|
|
173
|
+
action_result: IntentsAPI.BaseActionResult;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Unix timestamp when the intent was created.
|
|
177
|
+
*/
|
|
178
|
+
created_at: number;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Unix timestamp when the intent expires.
|
|
182
|
+
*/
|
|
183
|
+
expires_at: number;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The unique ID of the intent.
|
|
187
|
+
*/
|
|
188
|
+
intent_id: string;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Type of intent.
|
|
192
|
+
*/
|
|
193
|
+
intent_type: IntentsAPI.IntentType;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* The current status of the intent.
|
|
197
|
+
*/
|
|
198
|
+
status: string;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* The type of webhook event.
|
|
202
|
+
*/
|
|
203
|
+
type: 'intent.failed';
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Display name of the user who created the intent.
|
|
207
|
+
*/
|
|
208
|
+
created_by_display_name?: string;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* The ID of the user who created the intent.
|
|
212
|
+
*/
|
|
213
|
+
created_by_id?: string;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Payload for the mfa.enabled webhook event.
|
|
218
|
+
*/
|
|
219
|
+
export interface MfaEnabledWebhookPayload {
|
|
220
|
+
/**
|
|
221
|
+
* The MFA method that was enabled.
|
|
222
|
+
*/
|
|
223
|
+
method: 'sms' | 'totp' | 'passkey';
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* The type of webhook event.
|
|
227
|
+
*/
|
|
228
|
+
type: 'mfa.enabled';
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* The ID of the user who enabled MFA.
|
|
232
|
+
*/
|
|
233
|
+
user_id: string;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Payload for the mfa.disabled webhook event.
|
|
238
|
+
*/
|
|
239
|
+
export interface MfaDisabledWebhookPayload {
|
|
240
|
+
/**
|
|
241
|
+
* The MFA method that was disabled.
|
|
242
|
+
*/
|
|
243
|
+
method: 'sms' | 'totp' | 'passkey';
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* The type of webhook event.
|
|
247
|
+
*/
|
|
248
|
+
type: 'mfa.disabled';
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* The ID of the user who disabled MFA.
|
|
252
|
+
*/
|
|
253
|
+
user_id: string;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Payload for the transaction.broadcasted webhook event.
|
|
258
|
+
*/
|
|
259
|
+
export interface TransactionBroadcastedWebhookPayload {
|
|
260
|
+
/**
|
|
261
|
+
* The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
|
|
262
|
+
*/
|
|
263
|
+
caip2: string;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* The blockchain transaction hash.
|
|
267
|
+
*/
|
|
268
|
+
transaction_hash: string;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* The Privy-assigned ID for this transaction.
|
|
272
|
+
*/
|
|
273
|
+
transaction_id: string;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* The type of webhook event.
|
|
277
|
+
*/
|
|
278
|
+
type: 'transaction.broadcasted';
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* The ID of the wallet that initiated the transaction.
|
|
282
|
+
*/
|
|
283
|
+
wallet_id: string;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Developer-provided reference ID for transaction reconciliation, if one was
|
|
287
|
+
* provided.
|
|
288
|
+
*/
|
|
289
|
+
reference_id?: string | null;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Payload for the transaction.confirmed webhook event.
|
|
294
|
+
*/
|
|
295
|
+
export interface TransactionConfirmedWebhookPayload {
|
|
296
|
+
/**
|
|
297
|
+
* The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
|
|
298
|
+
*/
|
|
299
|
+
caip2: string;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* The blockchain transaction hash.
|
|
303
|
+
*/
|
|
304
|
+
transaction_hash: string;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* The Privy-assigned ID for this transaction.
|
|
308
|
+
*/
|
|
309
|
+
transaction_id: string;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* The type of webhook event.
|
|
313
|
+
*/
|
|
314
|
+
type: 'transaction.confirmed';
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* The ID of the wallet that initiated the transaction.
|
|
318
|
+
*/
|
|
319
|
+
wallet_id: string;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Developer-provided reference ID for transaction reconciliation, if one was
|
|
323
|
+
* provided.
|
|
324
|
+
*/
|
|
325
|
+
reference_id?: string | null;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Payload for the transaction.execution_reverted webhook event.
|
|
330
|
+
*/
|
|
331
|
+
export interface TransactionExecutionRevertedWebhookPayload {
|
|
332
|
+
/**
|
|
333
|
+
* The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
|
|
334
|
+
*/
|
|
335
|
+
caip2: string;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* The blockchain transaction hash.
|
|
339
|
+
*/
|
|
340
|
+
transaction_hash: string;
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* The Privy-assigned ID for this transaction.
|
|
344
|
+
*/
|
|
345
|
+
transaction_id: string;
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* The type of webhook event.
|
|
349
|
+
*/
|
|
350
|
+
type: 'transaction.execution_reverted';
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* The ID of the wallet that initiated the transaction.
|
|
354
|
+
*/
|
|
355
|
+
wallet_id: string;
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Developer-provided reference ID for transaction reconciliation, if one was
|
|
359
|
+
* provided.
|
|
360
|
+
*/
|
|
361
|
+
reference_id?: string | null;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Payload for the transaction.still_pending webhook event.
|
|
366
|
+
*/
|
|
367
|
+
export interface TransactionStillPendingWebhookPayload {
|
|
368
|
+
/**
|
|
369
|
+
* The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
|
|
370
|
+
*/
|
|
371
|
+
caip2: string;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* The blockchain transaction hash.
|
|
375
|
+
*/
|
|
376
|
+
transaction_hash: string;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* The Privy-assigned ID for this transaction.
|
|
380
|
+
*/
|
|
381
|
+
transaction_id: string;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* An unsigned Ethereum transaction object.
|
|
385
|
+
*/
|
|
386
|
+
transaction_request: WalletsAPI.UnsignedEthereumTransaction;
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* The type of webhook event.
|
|
390
|
+
*/
|
|
391
|
+
type: 'transaction.still_pending';
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* The ID of the wallet that initiated the transaction.
|
|
395
|
+
*/
|
|
396
|
+
wallet_id: string;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Developer-provided reference ID for transaction reconciliation, if one was
|
|
400
|
+
* provided.
|
|
401
|
+
*/
|
|
402
|
+
reference_id?: string | null;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Payload for the transaction.failed webhook event.
|
|
407
|
+
*/
|
|
408
|
+
export interface TransactionFailedWebhookPayload {
|
|
409
|
+
/**
|
|
410
|
+
* The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
|
|
411
|
+
*/
|
|
412
|
+
caip2: string;
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* The blockchain transaction hash.
|
|
416
|
+
*/
|
|
417
|
+
transaction_hash: string;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* The Privy-assigned ID for this transaction.
|
|
421
|
+
*/
|
|
422
|
+
transaction_id: string;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* The type of webhook event.
|
|
426
|
+
*/
|
|
427
|
+
type: 'transaction.failed';
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* The ID of the wallet that initiated the transaction.
|
|
431
|
+
*/
|
|
432
|
+
wallet_id: string;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Developer-provided reference ID for transaction reconciliation, if one was
|
|
436
|
+
* provided.
|
|
437
|
+
*/
|
|
438
|
+
reference_id?: string | null;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* Payload for the transaction.replaced webhook event.
|
|
443
|
+
*/
|
|
444
|
+
export interface TransactionReplacedWebhookPayload {
|
|
445
|
+
/**
|
|
446
|
+
* The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
|
|
447
|
+
*/
|
|
448
|
+
caip2: string;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* The blockchain transaction hash.
|
|
452
|
+
*/
|
|
453
|
+
transaction_hash: string;
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* The Privy-assigned ID for this transaction.
|
|
457
|
+
*/
|
|
458
|
+
transaction_id: string;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* The type of webhook event.
|
|
462
|
+
*/
|
|
463
|
+
type: 'transaction.replaced';
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* The ID of the wallet that initiated the transaction.
|
|
467
|
+
*/
|
|
468
|
+
wallet_id: string;
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Developer-provided reference ID for transaction reconciliation, if one was
|
|
472
|
+
* provided.
|
|
473
|
+
*/
|
|
474
|
+
reference_id?: string | null;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Payload for the transaction.provider_error webhook event.
|
|
479
|
+
*/
|
|
480
|
+
export interface TransactionProviderErrorWebhookPayload {
|
|
481
|
+
/**
|
|
482
|
+
* The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
|
|
483
|
+
*/
|
|
484
|
+
caip2: string;
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* The blockchain transaction hash.
|
|
488
|
+
*/
|
|
489
|
+
transaction_hash: string;
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* The Privy-assigned ID for this transaction.
|
|
493
|
+
*/
|
|
494
|
+
transaction_id: string;
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* The type of webhook event.
|
|
498
|
+
*/
|
|
499
|
+
type: 'transaction.provider_error';
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* The ID of the wallet that initiated the transaction.
|
|
503
|
+
*/
|
|
504
|
+
wallet_id: string;
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Developer-provided reference ID for transaction reconciliation, if one was
|
|
508
|
+
* provided.
|
|
509
|
+
*/
|
|
510
|
+
reference_id?: string | null;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Payload for the user_operation.completed webhook event.
|
|
515
|
+
*/
|
|
516
|
+
export interface UserOperationCompletedWebhookPayload {
|
|
517
|
+
actual_gas_cost: string;
|
|
518
|
+
|
|
519
|
+
actual_gas_used: string;
|
|
520
|
+
|
|
521
|
+
block_number: number;
|
|
522
|
+
|
|
523
|
+
caip2: string;
|
|
524
|
+
|
|
525
|
+
log_index: number;
|
|
526
|
+
|
|
527
|
+
nonce: string;
|
|
528
|
+
|
|
529
|
+
paymaster: string | null;
|
|
530
|
+
|
|
531
|
+
sender: string;
|
|
532
|
+
|
|
533
|
+
success: boolean;
|
|
534
|
+
|
|
535
|
+
transaction_hash: string;
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* The type of webhook event.
|
|
539
|
+
*/
|
|
540
|
+
type: 'user_operation.completed';
|
|
541
|
+
|
|
542
|
+
user_op_hash: string;
|
|
543
|
+
}
|
|
544
|
+
|
|
8
545
|
/**
|
|
9
546
|
* Payload for the user.created webhook event.
|
|
10
547
|
*/
|
|
@@ -151,263 +688,459 @@ export interface UserWalletCreatedWebhookPayload {
|
|
|
151
688
|
}
|
|
152
689
|
|
|
153
690
|
/**
|
|
154
|
-
* Payload for the
|
|
691
|
+
* Payload for the wallet_action.swap.created webhook event.
|
|
155
692
|
*/
|
|
156
|
-
export interface
|
|
693
|
+
export interface WalletActionSwapCreatedWebhookPayload {
|
|
157
694
|
/**
|
|
158
|
-
*
|
|
695
|
+
* Type of wallet action
|
|
696
|
+
*/
|
|
697
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* Chain identifier.
|
|
159
701
|
*/
|
|
160
702
|
caip2: string;
|
|
161
703
|
|
|
162
704
|
/**
|
|
163
|
-
*
|
|
705
|
+
* Amount of input token in base units. Populated after on-chain confirmation.
|
|
164
706
|
*/
|
|
165
|
-
|
|
707
|
+
input_amount: string | null;
|
|
166
708
|
|
|
167
709
|
/**
|
|
168
|
-
*
|
|
710
|
+
* Token address being sold.
|
|
169
711
|
*/
|
|
170
|
-
|
|
712
|
+
input_token: string;
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* Token address being bought.
|
|
716
|
+
*/
|
|
717
|
+
output_token: string;
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* Status of a wallet action.
|
|
721
|
+
*/
|
|
722
|
+
status: WalletActionsAPI.WalletActionStatus;
|
|
171
723
|
|
|
172
724
|
/**
|
|
173
725
|
* The type of webhook event.
|
|
174
726
|
*/
|
|
175
|
-
type: '
|
|
727
|
+
type: 'wallet_action.swap.created';
|
|
176
728
|
|
|
177
729
|
/**
|
|
178
|
-
* The ID of the wallet
|
|
730
|
+
* The ID of the wallet action.
|
|
731
|
+
*/
|
|
732
|
+
wallet_action_id: string;
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* The ID of the wallet involved in the action.
|
|
179
736
|
*/
|
|
180
737
|
wallet_id: string;
|
|
181
738
|
}
|
|
182
739
|
|
|
183
740
|
/**
|
|
184
|
-
* Payload for the
|
|
741
|
+
* Payload for the wallet_action.swap.succeeded webhook event.
|
|
185
742
|
*/
|
|
186
|
-
export interface
|
|
743
|
+
export interface WalletActionSwapSucceededWebhookPayload {
|
|
187
744
|
/**
|
|
188
|
-
*
|
|
745
|
+
* Type of wallet action
|
|
746
|
+
*/
|
|
747
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* Chain identifier.
|
|
189
751
|
*/
|
|
190
752
|
caip2: string;
|
|
191
753
|
|
|
192
754
|
/**
|
|
193
|
-
*
|
|
755
|
+
* Amount of input token in base units. Populated after on-chain confirmation.
|
|
194
756
|
*/
|
|
195
|
-
|
|
757
|
+
input_amount: string | null;
|
|
196
758
|
|
|
197
759
|
/**
|
|
198
|
-
*
|
|
760
|
+
* Token address being sold.
|
|
199
761
|
*/
|
|
200
|
-
|
|
762
|
+
input_token: string;
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* Amount of output token received, in base units. Populated after on-chain
|
|
766
|
+
* confirmation.
|
|
767
|
+
*/
|
|
768
|
+
output_amount: string | null;
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* Token address being bought.
|
|
772
|
+
*/
|
|
773
|
+
output_token: string;
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* Status of a wallet action.
|
|
777
|
+
*/
|
|
778
|
+
status: WalletActionsAPI.WalletActionStatus;
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* The steps of the wallet action, including transaction hashes.
|
|
782
|
+
*/
|
|
783
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
201
784
|
|
|
202
785
|
/**
|
|
203
786
|
* The type of webhook event.
|
|
204
787
|
*/
|
|
205
|
-
type: '
|
|
788
|
+
type: 'wallet_action.swap.succeeded';
|
|
206
789
|
|
|
207
790
|
/**
|
|
208
|
-
* The ID of the wallet
|
|
791
|
+
* The ID of the wallet action.
|
|
792
|
+
*/
|
|
793
|
+
wallet_action_id: string;
|
|
794
|
+
|
|
795
|
+
/**
|
|
796
|
+
* The ID of the wallet involved in the action.
|
|
209
797
|
*/
|
|
210
798
|
wallet_id: string;
|
|
211
799
|
}
|
|
212
800
|
|
|
213
801
|
/**
|
|
214
|
-
* Payload for the
|
|
802
|
+
* Payload for the wallet_action.swap.rejected webhook event.
|
|
215
803
|
*/
|
|
216
|
-
export interface
|
|
804
|
+
export interface WalletActionSwapRejectedWebhookPayload {
|
|
217
805
|
/**
|
|
218
|
-
*
|
|
806
|
+
* Type of wallet action
|
|
807
|
+
*/
|
|
808
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* Chain identifier.
|
|
219
812
|
*/
|
|
220
813
|
caip2: string;
|
|
221
814
|
|
|
222
815
|
/**
|
|
223
|
-
*
|
|
816
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
224
817
|
*/
|
|
225
|
-
|
|
818
|
+
failure_reason: WalletActionsAPI.FailureReason;
|
|
226
819
|
|
|
227
820
|
/**
|
|
228
|
-
*
|
|
821
|
+
* Amount of input token in base units. Populated after on-chain confirmation.
|
|
229
822
|
*/
|
|
230
|
-
|
|
823
|
+
input_amount: string | null;
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Token address being sold.
|
|
827
|
+
*/
|
|
828
|
+
input_token: string;
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* Token address being bought.
|
|
832
|
+
*/
|
|
833
|
+
output_token: string;
|
|
834
|
+
|
|
835
|
+
/**
|
|
836
|
+
* Status of a wallet action.
|
|
837
|
+
*/
|
|
838
|
+
status: WalletActionsAPI.WalletActionStatus;
|
|
839
|
+
|
|
840
|
+
/**
|
|
841
|
+
* The steps of the wallet action at the time of rejection.
|
|
842
|
+
*/
|
|
843
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
231
844
|
|
|
232
845
|
/**
|
|
233
846
|
* The type of webhook event.
|
|
234
847
|
*/
|
|
235
|
-
type: '
|
|
848
|
+
type: 'wallet_action.swap.rejected';
|
|
236
849
|
|
|
237
850
|
/**
|
|
238
|
-
* The ID of the wallet
|
|
851
|
+
* The ID of the wallet action.
|
|
852
|
+
*/
|
|
853
|
+
wallet_action_id: string;
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* The ID of the wallet involved in the action.
|
|
239
857
|
*/
|
|
240
858
|
wallet_id: string;
|
|
241
859
|
}
|
|
242
860
|
|
|
243
861
|
/**
|
|
244
|
-
* Payload for the
|
|
862
|
+
* Payload for the wallet_action.swap.failed webhook event.
|
|
245
863
|
*/
|
|
246
|
-
export interface
|
|
864
|
+
export interface WalletActionSwapFailedWebhookPayload {
|
|
247
865
|
/**
|
|
248
|
-
*
|
|
866
|
+
* Type of wallet action
|
|
867
|
+
*/
|
|
868
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
869
|
+
|
|
870
|
+
/**
|
|
871
|
+
* Chain identifier.
|
|
249
872
|
*/
|
|
250
873
|
caip2: string;
|
|
251
874
|
|
|
252
875
|
/**
|
|
253
|
-
*
|
|
876
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
254
877
|
*/
|
|
255
|
-
|
|
878
|
+
failure_reason: WalletActionsAPI.FailureReason;
|
|
256
879
|
|
|
257
880
|
/**
|
|
258
|
-
*
|
|
881
|
+
* Amount of input token in base units. Populated after on-chain confirmation.
|
|
259
882
|
*/
|
|
260
|
-
|
|
883
|
+
input_amount: string | null;
|
|
884
|
+
|
|
885
|
+
/**
|
|
886
|
+
* Token address being sold.
|
|
887
|
+
*/
|
|
888
|
+
input_token: string;
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* Token address being bought.
|
|
892
|
+
*/
|
|
893
|
+
output_token: string;
|
|
261
894
|
|
|
262
895
|
/**
|
|
263
|
-
*
|
|
896
|
+
* Status of a wallet action.
|
|
264
897
|
*/
|
|
265
|
-
|
|
898
|
+
status: WalletActionsAPI.WalletActionStatus;
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
902
|
+
* the failing step will have a failure_reason.
|
|
903
|
+
*/
|
|
904
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
266
905
|
|
|
267
906
|
/**
|
|
268
907
|
* The type of webhook event.
|
|
269
908
|
*/
|
|
270
|
-
type: '
|
|
909
|
+
type: 'wallet_action.swap.failed';
|
|
271
910
|
|
|
272
911
|
/**
|
|
273
|
-
* The ID of the wallet
|
|
912
|
+
* The ID of the wallet action.
|
|
913
|
+
*/
|
|
914
|
+
wallet_action_id: string;
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* The ID of the wallet involved in the action.
|
|
274
918
|
*/
|
|
275
919
|
wallet_id: string;
|
|
276
920
|
}
|
|
277
921
|
|
|
278
|
-
|
|
922
|
+
/**
|
|
923
|
+
* Payload for the wallet_action.transfer.created webhook event.
|
|
924
|
+
*/
|
|
925
|
+
export interface WalletActionTransferCreatedWebhookPayload {
|
|
926
|
+
/**
|
|
927
|
+
* Type of wallet action
|
|
928
|
+
*/
|
|
929
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* Recipient address.
|
|
933
|
+
*/
|
|
934
|
+
destination_address: string;
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Decimal amount as provided by the user (e.g. "1.5").
|
|
938
|
+
*/
|
|
939
|
+
source_amount: string;
|
|
940
|
+
|
|
941
|
+
/**
|
|
942
|
+
* Asset identifier (e.g. "usdc", "eth").
|
|
943
|
+
*/
|
|
944
|
+
source_asset: string;
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Chain name (e.g. "base", "ethereum").
|
|
948
|
+
*/
|
|
949
|
+
source_chain: string;
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* Status of a wallet action.
|
|
953
|
+
*/
|
|
954
|
+
status: WalletActionsAPI.WalletActionStatus;
|
|
955
|
+
|
|
279
956
|
/**
|
|
280
|
-
* The
|
|
957
|
+
* The type of webhook event.
|
|
281
958
|
*/
|
|
282
|
-
|
|
283
|
-
authorization_list?: Array<TransactionRequest.AuthorizationList>;
|
|
959
|
+
type: 'wallet_action.transfer.created';
|
|
284
960
|
|
|
285
|
-
|
|
961
|
+
/**
|
|
962
|
+
* The ID of the wallet action.
|
|
963
|
+
*/
|
|
964
|
+
wallet_action_id: string;
|
|
286
965
|
|
|
287
|
-
|
|
966
|
+
/**
|
|
967
|
+
* The ID of the wallet involved in the action.
|
|
968
|
+
*/
|
|
969
|
+
wallet_id: string;
|
|
970
|
+
}
|
|
288
971
|
|
|
289
|
-
|
|
972
|
+
/**
|
|
973
|
+
* Payload for the wallet_action.transfer.succeeded webhook event.
|
|
974
|
+
*/
|
|
975
|
+
export interface WalletActionTransferSucceededWebhookPayload {
|
|
976
|
+
/**
|
|
977
|
+
* Type of wallet action
|
|
978
|
+
*/
|
|
979
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
290
980
|
|
|
291
|
-
|
|
981
|
+
/**
|
|
982
|
+
* Recipient address.
|
|
983
|
+
*/
|
|
984
|
+
destination_address: string;
|
|
292
985
|
|
|
293
|
-
|
|
986
|
+
/**
|
|
987
|
+
* Decimal amount as provided by the user (e.g. "1.5").
|
|
988
|
+
*/
|
|
989
|
+
source_amount: string;
|
|
294
990
|
|
|
295
|
-
|
|
991
|
+
/**
|
|
992
|
+
* Asset identifier (e.g. "usdc", "eth").
|
|
993
|
+
*/
|
|
994
|
+
source_asset: string;
|
|
296
995
|
|
|
297
|
-
|
|
996
|
+
/**
|
|
997
|
+
* Chain name (e.g. "base", "ethereum").
|
|
998
|
+
*/
|
|
999
|
+
source_chain: string;
|
|
298
1000
|
|
|
299
|
-
|
|
1001
|
+
/**
|
|
1002
|
+
* Status of a wallet action.
|
|
1003
|
+
*/
|
|
1004
|
+
status: WalletActionsAPI.WalletActionStatus;
|
|
300
1005
|
|
|
301
|
-
|
|
1006
|
+
/**
|
|
1007
|
+
* The steps of the wallet action, including transaction hashes.
|
|
1008
|
+
*/
|
|
1009
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
302
1010
|
|
|
303
|
-
|
|
1011
|
+
/**
|
|
1012
|
+
* The type of webhook event.
|
|
1013
|
+
*/
|
|
1014
|
+
type: 'wallet_action.transfer.succeeded';
|
|
304
1015
|
|
|
305
|
-
|
|
306
|
-
|
|
1016
|
+
/**
|
|
1017
|
+
* The ID of the wallet action.
|
|
1018
|
+
*/
|
|
1019
|
+
wallet_action_id: string;
|
|
307
1020
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
1021
|
+
/**
|
|
1022
|
+
* The ID of the wallet involved in the action.
|
|
1023
|
+
*/
|
|
1024
|
+
wallet_id: string;
|
|
1025
|
+
}
|
|
311
1026
|
|
|
312
|
-
|
|
1027
|
+
/**
|
|
1028
|
+
* Payload for the wallet_action.transfer.rejected webhook event.
|
|
1029
|
+
*/
|
|
1030
|
+
export interface WalletActionTransferRejectedWebhookPayload {
|
|
1031
|
+
/**
|
|
1032
|
+
* Type of wallet action
|
|
1033
|
+
*/
|
|
1034
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
313
1035
|
|
|
314
|
-
|
|
1036
|
+
/**
|
|
1037
|
+
* Recipient address.
|
|
1038
|
+
*/
|
|
1039
|
+
destination_address: string;
|
|
315
1040
|
|
|
316
|
-
|
|
1041
|
+
/**
|
|
1042
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1043
|
+
*/
|
|
1044
|
+
failure_reason: WalletActionsAPI.FailureReason;
|
|
317
1045
|
|
|
318
|
-
|
|
1046
|
+
/**
|
|
1047
|
+
* Decimal amount as provided by the user (e.g. "1.5").
|
|
1048
|
+
*/
|
|
1049
|
+
source_amount: string;
|
|
319
1050
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
1051
|
+
/**
|
|
1052
|
+
* Asset identifier (e.g. "usdc", "eth").
|
|
1053
|
+
*/
|
|
1054
|
+
source_asset: string;
|
|
324
1055
|
|
|
325
|
-
/**
|
|
326
|
-
* Payload for the transaction.failed webhook event.
|
|
327
|
-
*/
|
|
328
|
-
export interface TransactionFailedWebhookPayload {
|
|
329
1056
|
/**
|
|
330
|
-
*
|
|
1057
|
+
* Chain name (e.g. "base", "ethereum").
|
|
331
1058
|
*/
|
|
332
|
-
|
|
1059
|
+
source_chain: string;
|
|
333
1060
|
|
|
334
1061
|
/**
|
|
335
|
-
*
|
|
1062
|
+
* Status of a wallet action.
|
|
336
1063
|
*/
|
|
337
|
-
|
|
1064
|
+
status: WalletActionsAPI.WalletActionStatus;
|
|
338
1065
|
|
|
339
1066
|
/**
|
|
340
|
-
* The
|
|
1067
|
+
* The steps of the wallet action at the time of rejection.
|
|
341
1068
|
*/
|
|
342
|
-
|
|
1069
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
343
1070
|
|
|
344
1071
|
/**
|
|
345
1072
|
* The type of webhook event.
|
|
346
1073
|
*/
|
|
347
|
-
type: '
|
|
1074
|
+
type: 'wallet_action.transfer.rejected';
|
|
348
1075
|
|
|
349
1076
|
/**
|
|
350
|
-
* The ID of the wallet
|
|
1077
|
+
* The ID of the wallet action.
|
|
1078
|
+
*/
|
|
1079
|
+
wallet_action_id: string;
|
|
1080
|
+
|
|
1081
|
+
/**
|
|
1082
|
+
* The ID of the wallet involved in the action.
|
|
351
1083
|
*/
|
|
352
1084
|
wallet_id: string;
|
|
353
1085
|
}
|
|
354
1086
|
|
|
355
1087
|
/**
|
|
356
|
-
* Payload for the
|
|
1088
|
+
* Payload for the wallet_action.transfer.failed webhook event.
|
|
357
1089
|
*/
|
|
358
|
-
export interface
|
|
1090
|
+
export interface WalletActionTransferFailedWebhookPayload {
|
|
359
1091
|
/**
|
|
360
|
-
*
|
|
1092
|
+
* Type of wallet action
|
|
361
1093
|
*/
|
|
362
|
-
|
|
1094
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
363
1095
|
|
|
364
1096
|
/**
|
|
365
|
-
*
|
|
1097
|
+
* Recipient address.
|
|
366
1098
|
*/
|
|
367
|
-
|
|
1099
|
+
destination_address: string;
|
|
368
1100
|
|
|
369
1101
|
/**
|
|
370
|
-
*
|
|
1102
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
371
1103
|
*/
|
|
372
|
-
|
|
1104
|
+
failure_reason: WalletActionsAPI.FailureReason;
|
|
373
1105
|
|
|
374
1106
|
/**
|
|
375
|
-
*
|
|
1107
|
+
* Decimal amount as provided by the user (e.g. "1.5").
|
|
376
1108
|
*/
|
|
377
|
-
|
|
1109
|
+
source_amount: string;
|
|
378
1110
|
|
|
379
1111
|
/**
|
|
380
|
-
*
|
|
1112
|
+
* Asset identifier (e.g. "usdc", "eth").
|
|
381
1113
|
*/
|
|
382
|
-
|
|
383
|
-
}
|
|
1114
|
+
source_asset: string;
|
|
384
1115
|
|
|
385
|
-
/**
|
|
386
|
-
* Payload for the transaction.provider_error webhook event.
|
|
387
|
-
*/
|
|
388
|
-
export interface TransactionProviderErrorWebhookPayload {
|
|
389
1116
|
/**
|
|
390
|
-
*
|
|
1117
|
+
* Chain name (e.g. "base", "ethereum").
|
|
391
1118
|
*/
|
|
392
|
-
|
|
1119
|
+
source_chain: string;
|
|
393
1120
|
|
|
394
1121
|
/**
|
|
395
|
-
*
|
|
1122
|
+
* Status of a wallet action.
|
|
396
1123
|
*/
|
|
397
|
-
|
|
1124
|
+
status: WalletActionsAPI.WalletActionStatus;
|
|
398
1125
|
|
|
399
1126
|
/**
|
|
400
|
-
* The
|
|
1127
|
+
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1128
|
+
* the failing step will have a failure_reason.
|
|
401
1129
|
*/
|
|
402
|
-
|
|
1130
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
403
1131
|
|
|
404
1132
|
/**
|
|
405
1133
|
* The type of webhook event.
|
|
406
1134
|
*/
|
|
407
|
-
type: '
|
|
1135
|
+
type: 'wallet_action.transfer.failed';
|
|
408
1136
|
|
|
409
1137
|
/**
|
|
410
|
-
* The ID of the wallet
|
|
1138
|
+
* The ID of the wallet action.
|
|
1139
|
+
*/
|
|
1140
|
+
wallet_action_id: string;
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* The ID of the wallet involved in the action.
|
|
411
1144
|
*/
|
|
412
1145
|
wallet_id: string;
|
|
413
1146
|
}
|
|
@@ -727,6 +1460,33 @@ export interface PrivateKeyExportWebhookPayload {
|
|
|
727
1460
|
export_source?: 'display' | 'client';
|
|
728
1461
|
}
|
|
729
1462
|
|
|
1463
|
+
/**
|
|
1464
|
+
* Payload for the wallet.seed_phrase_export webhook event.
|
|
1465
|
+
*/
|
|
1466
|
+
export interface SeedPhraseExportWebhookPayload {
|
|
1467
|
+
/**
|
|
1468
|
+
* The type of webhook event.
|
|
1469
|
+
*/
|
|
1470
|
+
type: 'wallet.seed_phrase_export';
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
* The ID of the user who exported the seed phrase.
|
|
1474
|
+
*/
|
|
1475
|
+
user_id: string;
|
|
1476
|
+
|
|
1477
|
+
/**
|
|
1478
|
+
* The address of the wallet.
|
|
1479
|
+
*/
|
|
1480
|
+
wallet_address: string;
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* The ID of the wallet.
|
|
1484
|
+
*/
|
|
1485
|
+
wallet_id: string;
|
|
1486
|
+
|
|
1487
|
+
export_source?: 'display' | 'client';
|
|
1488
|
+
}
|
|
1489
|
+
|
|
730
1490
|
/**
|
|
731
1491
|
* Payload for the wallet.recovery_setup webhook event.
|
|
732
1492
|
*/
|
|
@@ -789,322 +1549,122 @@ export interface WalletRecoveredWebhookPayload {
|
|
|
789
1549
|
}
|
|
790
1550
|
|
|
791
1551
|
/**
|
|
792
|
-
* Payload for the
|
|
1552
|
+
* Payload for the yield.deposit.confirmed webhook event.
|
|
793
1553
|
*/
|
|
794
|
-
export interface
|
|
795
|
-
|
|
796
|
-
* The MFA method that was enabled.
|
|
797
|
-
*/
|
|
798
|
-
method: 'sms' | 'totp' | 'passkey';
|
|
1554
|
+
export interface YieldDepositConfirmedWebhookPayload {
|
|
1555
|
+
assets: string;
|
|
799
1556
|
|
|
800
|
-
|
|
801
|
-
* The type of webhook event.
|
|
802
|
-
*/
|
|
803
|
-
type: 'mfa.enabled';
|
|
1557
|
+
caip2: string;
|
|
804
1558
|
|
|
805
|
-
|
|
806
|
-
* The ID of the user who enabled MFA.
|
|
807
|
-
*/
|
|
808
|
-
user_id: string;
|
|
809
|
-
}
|
|
1559
|
+
owner: string;
|
|
810
1560
|
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
export interface MfaDisabledWebhookPayload {
|
|
815
|
-
/**
|
|
816
|
-
* The MFA method that was disabled.
|
|
817
|
-
*/
|
|
818
|
-
method: 'sms' | 'totp' | 'passkey';
|
|
1561
|
+
sender: string;
|
|
1562
|
+
|
|
1563
|
+
shares: string;
|
|
819
1564
|
|
|
820
1565
|
/**
|
|
821
1566
|
* The type of webhook event.
|
|
822
1567
|
*/
|
|
823
|
-
type: '
|
|
1568
|
+
type: 'yield.deposit.confirmed';
|
|
824
1569
|
|
|
825
|
-
|
|
826
|
-
* The ID of the user who disabled MFA.
|
|
827
|
-
*/
|
|
828
|
-
user_id: string;
|
|
1570
|
+
vault_address: string;
|
|
829
1571
|
}
|
|
830
1572
|
|
|
831
1573
|
/**
|
|
832
|
-
* Payload for the
|
|
1574
|
+
* Payload for the yield.withdraw.confirmed webhook event.
|
|
833
1575
|
*/
|
|
834
|
-
export interface
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
1576
|
+
export interface YieldWithdrawConfirmedWebhookPayload {
|
|
1577
|
+
assets: string;
|
|
1578
|
+
|
|
1579
|
+
caip2: string;
|
|
1580
|
+
|
|
1581
|
+
owner: string;
|
|
1582
|
+
|
|
1583
|
+
receiver: string;
|
|
1584
|
+
|
|
1585
|
+
sender: string;
|
|
1586
|
+
|
|
1587
|
+
shares: string;
|
|
839
1588
|
|
|
840
1589
|
/**
|
|
841
1590
|
* The type of webhook event.
|
|
842
1591
|
*/
|
|
843
|
-
type: '
|
|
1592
|
+
type: 'yield.withdraw.confirmed';
|
|
844
1593
|
|
|
845
|
-
|
|
846
|
-
* The ID of the user.
|
|
847
|
-
*/
|
|
848
|
-
user_id: string;
|
|
1594
|
+
vault_address: string;
|
|
849
1595
|
}
|
|
850
1596
|
|
|
851
1597
|
/**
|
|
852
|
-
* Payload for the
|
|
1598
|
+
* Payload for the yield.claim.confirmed webhook event.
|
|
853
1599
|
*/
|
|
854
|
-
export interface
|
|
855
|
-
|
|
856
|
-
* ISO 8601 timestamp of when verification failed.
|
|
857
|
-
*/
|
|
858
|
-
failed_at: string;
|
|
1600
|
+
export interface YieldClaimConfirmedWebhookPayload {
|
|
1601
|
+
caip2: string;
|
|
859
1602
|
|
|
860
|
-
|
|
861
|
-
* The reason for the failure.
|
|
862
|
-
*/
|
|
863
|
-
failure_reason: 'timeout' | 'api_error' | 'disabled_or_closed';
|
|
1603
|
+
rewards: Array<YieldClaimConfirmedWebhookPayload.Reward>;
|
|
864
1604
|
|
|
865
|
-
|
|
866
|
-
* The type of webhook event.
|
|
867
|
-
*/
|
|
868
|
-
type: 'kraken_embed.verification_failed';
|
|
1605
|
+
transaction_id: string;
|
|
869
1606
|
|
|
870
1607
|
/**
|
|
871
|
-
* The
|
|
1608
|
+
* The type of webhook event.
|
|
872
1609
|
*/
|
|
873
|
-
|
|
1610
|
+
type: 'yield.claim.confirmed';
|
|
874
1611
|
|
|
875
|
-
|
|
876
|
-
* The user's status at the time of failure.
|
|
877
|
-
*/
|
|
878
|
-
status?:
|
|
879
|
-
| KrakenEmbedVerificationFailedWebhookPayload.UnionMember0
|
|
880
|
-
| KrakenEmbedVerificationFailedWebhookPayload.UnionMember1
|
|
881
|
-
| KrakenEmbedVerificationFailedWebhookPayload.UnionMember2;
|
|
1612
|
+
wallet_id: string;
|
|
882
1613
|
}
|
|
883
1614
|
|
|
884
|
-
export namespace
|
|
885
|
-
export interface
|
|
886
|
-
|
|
887
|
-
UnionMember0.UnionMember0 | UnionMember0.UnionMember1 | UnionMember0.UnionMember2
|
|
888
|
-
>;
|
|
889
|
-
|
|
890
|
-
state: 'ok';
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
export namespace UnionMember0 {
|
|
894
|
-
export interface UnionMember0 {
|
|
895
|
-
action_type: 'verification';
|
|
896
|
-
|
|
897
|
-
deadline: string | null;
|
|
898
|
-
|
|
899
|
-
reasons: Array<string>;
|
|
900
|
-
|
|
901
|
-
verification_type:
|
|
902
|
-
| 'identity'
|
|
903
|
-
| 'residence'
|
|
904
|
-
| 'selfie'
|
|
905
|
-
| 'sanctions_check'
|
|
906
|
-
| 'pep_check'
|
|
907
|
-
| 'negative_news_check'
|
|
908
|
-
| 'tax_id';
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
export interface UnionMember1 {
|
|
912
|
-
action_type: 'provide_details';
|
|
913
|
-
|
|
914
|
-
deadline: string | null;
|
|
915
|
-
|
|
916
|
-
details_type:
|
|
917
|
-
| UnionMember1.UnionMember0
|
|
918
|
-
| UnionMember1.FullNameType
|
|
919
|
-
| UnionMember1.DateOfBirthType
|
|
920
|
-
| UnionMember1.CityOfBirthType
|
|
921
|
-
| UnionMember1.CountryOfBirthType
|
|
922
|
-
| UnionMember1.NationalitiesType
|
|
923
|
-
| UnionMember1.ResidenceType
|
|
924
|
-
| UnionMember1.PhoneType
|
|
925
|
-
| UnionMember1.OccupationType
|
|
926
|
-
| UnionMember1.EmployerType
|
|
927
|
-
| UnionMember1.TaxIdsType
|
|
928
|
-
| UnionMember1.ClientIdentifierType;
|
|
929
|
-
|
|
930
|
-
reason: string | null;
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
export namespace UnionMember1 {
|
|
934
|
-
export interface UnionMember0 {
|
|
935
|
-
type: 'terms_of_service';
|
|
936
|
-
|
|
937
|
-
version?: number;
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
export interface FullNameType {
|
|
941
|
-
type: 'full_name';
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
export interface DateOfBirthType {
|
|
945
|
-
type: 'date_of_birth';
|
|
946
|
-
}
|
|
947
|
-
|
|
948
|
-
export interface CityOfBirthType {
|
|
949
|
-
type: 'city_of_birth';
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
export interface CountryOfBirthType {
|
|
953
|
-
type: 'country_of_birth';
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
export interface NationalitiesType {
|
|
957
|
-
type: 'nationalities';
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
export interface ResidenceType {
|
|
961
|
-
type: 'residence';
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
export interface PhoneType {
|
|
965
|
-
type: 'phone';
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
export interface OccupationType {
|
|
969
|
-
type: 'occupation';
|
|
970
|
-
}
|
|
971
|
-
|
|
972
|
-
export interface EmployerType {
|
|
973
|
-
type: 'employer';
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
export interface TaxIdsType {
|
|
977
|
-
type: 'tax_ids';
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
export interface ClientIdentifierType {
|
|
981
|
-
type: 'client_identifier';
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
export interface UnionMember2 {
|
|
986
|
-
action_type: 'wait';
|
|
987
|
-
|
|
988
|
-
wait_reason_code: string;
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
export interface UnionMember1 {
|
|
993
|
-
reasons: Array<string>;
|
|
994
|
-
|
|
995
|
-
required_actions: Array<
|
|
996
|
-
UnionMember1.UnionMember0 | UnionMember1.UnionMember1 | UnionMember1.UnionMember2
|
|
997
|
-
>;
|
|
1615
|
+
export namespace YieldClaimConfirmedWebhookPayload {
|
|
1616
|
+
export interface Reward {
|
|
1617
|
+
amount: string;
|
|
998
1618
|
|
|
999
|
-
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
export namespace UnionMember1 {
|
|
1003
|
-
export interface UnionMember0 {
|
|
1004
|
-
action_type: 'verification';
|
|
1005
|
-
|
|
1006
|
-
deadline: string | null;
|
|
1007
|
-
|
|
1008
|
-
reasons: Array<string>;
|
|
1009
|
-
|
|
1010
|
-
verification_type:
|
|
1011
|
-
| 'identity'
|
|
1012
|
-
| 'residence'
|
|
1013
|
-
| 'selfie'
|
|
1014
|
-
| 'sanctions_check'
|
|
1015
|
-
| 'pep_check'
|
|
1016
|
-
| 'negative_news_check'
|
|
1017
|
-
| 'tax_id';
|
|
1018
|
-
}
|
|
1019
|
-
|
|
1020
|
-
export interface UnionMember1 {
|
|
1021
|
-
action_type: 'provide_details';
|
|
1022
|
-
|
|
1023
|
-
deadline: string | null;
|
|
1024
|
-
|
|
1025
|
-
details_type:
|
|
1026
|
-
| UnionMember1.UnionMember0
|
|
1027
|
-
| UnionMember1.FullNameType
|
|
1028
|
-
| UnionMember1.DateOfBirthType
|
|
1029
|
-
| UnionMember1.CityOfBirthType
|
|
1030
|
-
| UnionMember1.CountryOfBirthType
|
|
1031
|
-
| UnionMember1.NationalitiesType
|
|
1032
|
-
| UnionMember1.ResidenceType
|
|
1033
|
-
| UnionMember1.PhoneType
|
|
1034
|
-
| UnionMember1.OccupationType
|
|
1035
|
-
| UnionMember1.EmployerType
|
|
1036
|
-
| UnionMember1.TaxIdsType
|
|
1037
|
-
| UnionMember1.ClientIdentifierType;
|
|
1038
|
-
|
|
1039
|
-
reason: string | null;
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
export namespace UnionMember1 {
|
|
1043
|
-
export interface UnionMember0 {
|
|
1044
|
-
type: 'terms_of_service';
|
|
1045
|
-
|
|
1046
|
-
version?: number;
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
export interface FullNameType {
|
|
1050
|
-
type: 'full_name';
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
export interface DateOfBirthType {
|
|
1054
|
-
type: 'date_of_birth';
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
export interface CityOfBirthType {
|
|
1058
|
-
type: 'city_of_birth';
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
export interface CountryOfBirthType {
|
|
1062
|
-
type: 'country_of_birth';
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
export interface NationalitiesType {
|
|
1066
|
-
type: 'nationalities';
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
export interface ResidenceType {
|
|
1070
|
-
type: 'residence';
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
export interface PhoneType {
|
|
1074
|
-
type: 'phone';
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
export interface OccupationType {
|
|
1078
|
-
type: 'occupation';
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
export interface EmployerType {
|
|
1082
|
-
type: 'employer';
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
export interface TaxIdsType {
|
|
1086
|
-
type: 'tax_ids';
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
export interface ClientIdentifierType {
|
|
1090
|
-
type: 'client_identifier';
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
export interface UnionMember2 {
|
|
1095
|
-
action_type: 'wait';
|
|
1096
|
-
|
|
1097
|
-
wait_reason_code: string;
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
export interface UnionMember2 {
|
|
1102
|
-
reasons: Array<string>;
|
|
1619
|
+
token_address: string;
|
|
1103
1620
|
|
|
1104
|
-
|
|
1621
|
+
token_symbol: string;
|
|
1105
1622
|
}
|
|
1106
1623
|
}
|
|
1107
1624
|
|
|
1625
|
+
/**
|
|
1626
|
+
* Union of all webhook payload schemas.
|
|
1627
|
+
*/
|
|
1628
|
+
export type WebhookPayload =
|
|
1629
|
+
| UserCreatedWebhookPayload
|
|
1630
|
+
| UserAuthenticatedWebhookPayload
|
|
1631
|
+
| UserLinkedAccountWebhookPayload
|
|
1632
|
+
| UserUnlinkedAccountWebhookPayload
|
|
1633
|
+
| UserUpdatedAccountWebhookPayload
|
|
1634
|
+
| UserTransferredAccountWebhookPayload
|
|
1635
|
+
| UserWalletCreatedWebhookPayload
|
|
1636
|
+
| TransactionBroadcastedWebhookPayload
|
|
1637
|
+
| TransactionConfirmedWebhookPayload
|
|
1638
|
+
| TransactionExecutionRevertedWebhookPayload
|
|
1639
|
+
| TransactionStillPendingWebhookPayload
|
|
1640
|
+
| TransactionFailedWebhookPayload
|
|
1641
|
+
| TransactionReplacedWebhookPayload
|
|
1642
|
+
| TransactionProviderErrorWebhookPayload
|
|
1643
|
+
| FundsDepositedWebhookPayload
|
|
1644
|
+
| FundsWithdrawnWebhookPayload
|
|
1645
|
+
| PrivateKeyExportWebhookPayload
|
|
1646
|
+
| SeedPhraseExportWebhookPayload
|
|
1647
|
+
| WalletRecoverySetupWebhookPayload
|
|
1648
|
+
| WalletRecoveredWebhookPayload
|
|
1649
|
+
| MfaEnabledWebhookPayload
|
|
1650
|
+
| MfaDisabledWebhookPayload
|
|
1651
|
+
| YieldDepositConfirmedWebhookPayload
|
|
1652
|
+
| YieldWithdrawConfirmedWebhookPayload
|
|
1653
|
+
| YieldClaimConfirmedWebhookPayload
|
|
1654
|
+
| UserOperationCompletedWebhookPayload
|
|
1655
|
+
| IntentCreatedWebhookPayload
|
|
1656
|
+
| IntentAuthorizedWebhookPayload
|
|
1657
|
+
| IntentExecutedWebhookPayload
|
|
1658
|
+
| IntentFailedWebhookPayload
|
|
1659
|
+
| WalletActionSwapCreatedWebhookPayload
|
|
1660
|
+
| WalletActionSwapSucceededWebhookPayload
|
|
1661
|
+
| WalletActionSwapRejectedWebhookPayload
|
|
1662
|
+
| WalletActionSwapFailedWebhookPayload
|
|
1663
|
+
| WalletActionTransferCreatedWebhookPayload
|
|
1664
|
+
| WalletActionTransferSucceededWebhookPayload
|
|
1665
|
+
| WalletActionTransferRejectedWebhookPayload
|
|
1666
|
+
| WalletActionTransferFailedWebhookPayload;
|
|
1667
|
+
|
|
1108
1668
|
/**
|
|
1109
1669
|
* Payload for the kraken_embed.quote_executed webhook event.
|
|
1110
1670
|
*/
|
|
@@ -1252,73 +1812,14 @@ export interface KrakenEmbedUserClosedWebhookPayload {
|
|
|
1252
1812
|
user_id: string;
|
|
1253
1813
|
}
|
|
1254
1814
|
|
|
1255
|
-
/**
|
|
1256
|
-
* Payload for the yield.deposit.confirmed webhook event.
|
|
1257
|
-
*/
|
|
1258
|
-
export interface YieldDepositConfirmedWebhookPayload {
|
|
1259
|
-
assets: string;
|
|
1260
|
-
|
|
1261
|
-
block_number: number;
|
|
1262
|
-
|
|
1263
|
-
caip2: string;
|
|
1264
|
-
|
|
1265
|
-
log_index: number;
|
|
1266
|
-
|
|
1267
|
-
owner: string;
|
|
1268
|
-
|
|
1269
|
-
sender: string;
|
|
1270
|
-
|
|
1271
|
-
shares: string;
|
|
1272
|
-
|
|
1273
|
-
transaction_hash: string;
|
|
1274
|
-
|
|
1275
|
-
/**
|
|
1276
|
-
* The type of webhook event.
|
|
1277
|
-
*/
|
|
1278
|
-
type: 'yield.deposit.confirmed';
|
|
1279
|
-
|
|
1280
|
-
vault_address: string;
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
/**
|
|
1284
|
-
* Payload for the yield.withdraw.confirmed webhook event.
|
|
1285
|
-
*/
|
|
1286
|
-
export interface YieldWithdrawConfirmedWebhookPayload {
|
|
1287
|
-
assets: string;
|
|
1288
|
-
|
|
1289
|
-
block_number: number;
|
|
1290
|
-
|
|
1291
|
-
caip2: string;
|
|
1292
|
-
|
|
1293
|
-
log_index: number;
|
|
1294
|
-
|
|
1295
|
-
owner: string;
|
|
1296
|
-
|
|
1297
|
-
receiver: string;
|
|
1298
|
-
|
|
1299
|
-
sender: string;
|
|
1300
|
-
|
|
1301
|
-
shares: string;
|
|
1302
|
-
|
|
1303
|
-
transaction_hash: string;
|
|
1304
|
-
|
|
1305
|
-
/**
|
|
1306
|
-
* The type of webhook event.
|
|
1307
|
-
*/
|
|
1308
|
-
type: 'yield.withdraw.confirmed';
|
|
1309
|
-
|
|
1310
|
-
vault_address: string;
|
|
1311
|
-
}
|
|
1312
|
-
|
|
1313
1815
|
export declare namespace Webhooks {
|
|
1314
1816
|
export {
|
|
1315
|
-
type
|
|
1316
|
-
type
|
|
1317
|
-
type
|
|
1318
|
-
type
|
|
1319
|
-
type
|
|
1320
|
-
type
|
|
1321
|
-
type UserWalletCreatedWebhookPayload as UserWalletCreatedWebhookPayload,
|
|
1817
|
+
type IntentCreatedWebhookPayload as IntentCreatedWebhookPayload,
|
|
1818
|
+
type IntentAuthorizedWebhookPayload as IntentAuthorizedWebhookPayload,
|
|
1819
|
+
type IntentExecutedWebhookPayload as IntentExecutedWebhookPayload,
|
|
1820
|
+
type IntentFailedWebhookPayload as IntentFailedWebhookPayload,
|
|
1821
|
+
type MfaEnabledWebhookPayload as MfaEnabledWebhookPayload,
|
|
1822
|
+
type MfaDisabledWebhookPayload as MfaDisabledWebhookPayload,
|
|
1322
1823
|
type TransactionBroadcastedWebhookPayload as TransactionBroadcastedWebhookPayload,
|
|
1323
1824
|
type TransactionConfirmedWebhookPayload as TransactionConfirmedWebhookPayload,
|
|
1324
1825
|
type TransactionExecutionRevertedWebhookPayload as TransactionExecutionRevertedWebhookPayload,
|
|
@@ -1326,22 +1827,37 @@ export declare namespace Webhooks {
|
|
|
1326
1827
|
type TransactionFailedWebhookPayload as TransactionFailedWebhookPayload,
|
|
1327
1828
|
type TransactionReplacedWebhookPayload as TransactionReplacedWebhookPayload,
|
|
1328
1829
|
type TransactionProviderErrorWebhookPayload as TransactionProviderErrorWebhookPayload,
|
|
1830
|
+
type UserOperationCompletedWebhookPayload as UserOperationCompletedWebhookPayload,
|
|
1831
|
+
type UserCreatedWebhookPayload as UserCreatedWebhookPayload,
|
|
1832
|
+
type UserAuthenticatedWebhookPayload as UserAuthenticatedWebhookPayload,
|
|
1833
|
+
type UserLinkedAccountWebhookPayload as UserLinkedAccountWebhookPayload,
|
|
1834
|
+
type UserUnlinkedAccountWebhookPayload as UserUnlinkedAccountWebhookPayload,
|
|
1835
|
+
type UserUpdatedAccountWebhookPayload as UserUpdatedAccountWebhookPayload,
|
|
1836
|
+
type UserTransferredAccountWebhookPayload as UserTransferredAccountWebhookPayload,
|
|
1837
|
+
type UserWalletCreatedWebhookPayload as UserWalletCreatedWebhookPayload,
|
|
1838
|
+
type WalletActionSwapCreatedWebhookPayload as WalletActionSwapCreatedWebhookPayload,
|
|
1839
|
+
type WalletActionSwapSucceededWebhookPayload as WalletActionSwapSucceededWebhookPayload,
|
|
1840
|
+
type WalletActionSwapRejectedWebhookPayload as WalletActionSwapRejectedWebhookPayload,
|
|
1841
|
+
type WalletActionSwapFailedWebhookPayload as WalletActionSwapFailedWebhookPayload,
|
|
1842
|
+
type WalletActionTransferCreatedWebhookPayload as WalletActionTransferCreatedWebhookPayload,
|
|
1843
|
+
type WalletActionTransferSucceededWebhookPayload as WalletActionTransferSucceededWebhookPayload,
|
|
1844
|
+
type WalletActionTransferRejectedWebhookPayload as WalletActionTransferRejectedWebhookPayload,
|
|
1845
|
+
type WalletActionTransferFailedWebhookPayload as WalletActionTransferFailedWebhookPayload,
|
|
1329
1846
|
type FundsDepositedWebhookPayload as FundsDepositedWebhookPayload,
|
|
1330
1847
|
type FundsWithdrawnWebhookPayload as FundsWithdrawnWebhookPayload,
|
|
1331
1848
|
type PrivateKeyExportWebhookPayload as PrivateKeyExportWebhookPayload,
|
|
1849
|
+
type SeedPhraseExportWebhookPayload as SeedPhraseExportWebhookPayload,
|
|
1332
1850
|
type WalletRecoverySetupWebhookPayload as WalletRecoverySetupWebhookPayload,
|
|
1333
1851
|
type WalletRecoveredWebhookPayload as WalletRecoveredWebhookPayload,
|
|
1334
|
-
type
|
|
1335
|
-
type
|
|
1336
|
-
type
|
|
1337
|
-
type
|
|
1852
|
+
type YieldDepositConfirmedWebhookPayload as YieldDepositConfirmedWebhookPayload,
|
|
1853
|
+
type YieldWithdrawConfirmedWebhookPayload as YieldWithdrawConfirmedWebhookPayload,
|
|
1854
|
+
type YieldClaimConfirmedWebhookPayload as YieldClaimConfirmedWebhookPayload,
|
|
1855
|
+
type WebhookPayload as WebhookPayload,
|
|
1338
1856
|
type KrakenEmbedQuoteExecutedWebhookPayload as KrakenEmbedQuoteExecutedWebhookPayload,
|
|
1339
1857
|
type KrakenEmbedQuoteExecutionFailedWebhookPayload as KrakenEmbedQuoteExecutionFailedWebhookPayload,
|
|
1340
1858
|
type KrakenEmbedQuoteCancelledWebhookPayload as KrakenEmbedQuoteCancelledWebhookPayload,
|
|
1341
1859
|
type KrakenEmbedUserVerifiedWebhookPayload as KrakenEmbedUserVerifiedWebhookPayload,
|
|
1342
1860
|
type KrakenEmbedUserDisabledWebhookPayload as KrakenEmbedUserDisabledWebhookPayload,
|
|
1343
1861
|
type KrakenEmbedUserClosedWebhookPayload as KrakenEmbedUserClosedWebhookPayload,
|
|
1344
|
-
type YieldDepositConfirmedWebhookPayload as YieldDepositConfirmedWebhookPayload,
|
|
1345
|
-
type YieldWithdrawConfirmedWebhookPayload as YieldWithdrawConfirmedWebhookPayload,
|
|
1346
1862
|
};
|
|
1347
1863
|
}
|