@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.
Files changed (197) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/client.d.mts +53 -29
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +53 -29
  5. package/client.d.ts.map +1 -1
  6. package/client.js +32 -7
  7. package/client.js.map +1 -1
  8. package/client.mjs +34 -9
  9. package/client.mjs.map +1 -1
  10. package/package.json +12 -1
  11. package/resources/accounts.d.mts +146 -4
  12. package/resources/accounts.d.mts.map +1 -1
  13. package/resources/accounts.d.ts +146 -4
  14. package/resources/accounts.d.ts.map +1 -1
  15. package/resources/accounts.js.map +1 -1
  16. package/resources/accounts.mjs.map +1 -1
  17. package/resources/aggregations.d.mts +18 -392
  18. package/resources/aggregations.d.mts.map +1 -1
  19. package/resources/aggregations.d.ts +18 -392
  20. package/resources/aggregations.d.ts.map +1 -1
  21. package/resources/aggregations.js.map +1 -1
  22. package/resources/aggregations.mjs.map +1 -1
  23. package/resources/apps.d.mts +197 -70
  24. package/resources/apps.d.mts.map +1 -1
  25. package/resources/apps.d.ts +197 -70
  26. package/resources/apps.d.ts.map +1 -1
  27. package/resources/apps.js.map +1 -1
  28. package/resources/apps.mjs.map +1 -1
  29. package/resources/client-auth.d.mts +975 -463
  30. package/resources/client-auth.d.mts.map +1 -1
  31. package/resources/client-auth.d.ts +975 -463
  32. package/resources/client-auth.d.ts.map +1 -1
  33. package/resources/client-auth.js.map +1 -1
  34. package/resources/client-auth.mjs.map +1 -1
  35. package/resources/cross-app.d.mts +14 -13
  36. package/resources/cross-app.d.mts.map +1 -1
  37. package/resources/cross-app.d.ts +14 -13
  38. package/resources/cross-app.d.ts.map +1 -1
  39. package/resources/embedded-wallets.d.mts +165 -81
  40. package/resources/embedded-wallets.d.mts.map +1 -1
  41. package/resources/embedded-wallets.d.ts +165 -81
  42. package/resources/embedded-wallets.d.ts.map +1 -1
  43. package/resources/embedded-wallets.js.map +1 -1
  44. package/resources/embedded-wallets.mjs.map +1 -1
  45. package/resources/funding.d.mts +150 -64
  46. package/resources/funding.d.mts.map +1 -1
  47. package/resources/funding.d.ts +150 -64
  48. package/resources/funding.d.ts.map +1 -1
  49. package/resources/funding.js.map +1 -1
  50. package/resources/funding.mjs.map +1 -1
  51. package/resources/index.d.mts +18 -14
  52. package/resources/index.d.mts.map +1 -1
  53. package/resources/index.d.ts +18 -14
  54. package/resources/index.d.ts.map +1 -1
  55. package/resources/index.js +9 -1
  56. package/resources/index.js.map +1 -1
  57. package/resources/index.mjs +6 -2
  58. package/resources/index.mjs.map +1 -1
  59. package/resources/intents.d.mts +446 -31
  60. package/resources/intents.d.mts.map +1 -1
  61. package/resources/intents.d.ts +446 -31
  62. package/resources/intents.d.ts.map +1 -1
  63. package/resources/intents.js.map +1 -1
  64. package/resources/intents.mjs.map +1 -1
  65. package/resources/key-quorums.d.mts +108 -17
  66. package/resources/key-quorums.d.mts.map +1 -1
  67. package/resources/key-quorums.d.ts +108 -17
  68. package/resources/key-quorums.d.ts.map +1 -1
  69. package/resources/key-quorums.js +26 -9
  70. package/resources/key-quorums.js.map +1 -1
  71. package/resources/key-quorums.mjs +26 -9
  72. package/resources/key-quorums.mjs.map +1 -1
  73. package/resources/kraken-embed.d.mts +62 -0
  74. package/resources/kraken-embed.d.mts.map +1 -0
  75. package/resources/kraken-embed.d.ts +62 -0
  76. package/resources/kraken-embed.d.ts.map +1 -0
  77. package/resources/kraken-embed.js +9 -0
  78. package/resources/kraken-embed.js.map +1 -0
  79. package/resources/kraken-embed.mjs +5 -0
  80. package/resources/kraken-embed.mjs.map +1 -0
  81. package/resources/policies.d.mts +342 -926
  82. package/resources/policies.d.mts.map +1 -1
  83. package/resources/policies.d.ts +342 -926
  84. package/resources/policies.d.ts.map +1 -1
  85. package/resources/policies.js +51 -41
  86. package/resources/policies.js.map +1 -1
  87. package/resources/policies.mjs +51 -41
  88. package/resources/policies.mjs.map +1 -1
  89. package/resources/shared.d.mts +59 -0
  90. package/resources/shared.d.mts.map +1 -0
  91. package/resources/shared.d.ts +59 -0
  92. package/resources/shared.d.ts.map +1 -0
  93. package/resources/shared.js +9 -0
  94. package/resources/shared.js.map +1 -0
  95. package/resources/shared.mjs +5 -0
  96. package/resources/shared.mjs.map +1 -0
  97. package/resources/swaps.d.mts +108 -0
  98. package/resources/swaps.d.mts.map +1 -0
  99. package/resources/swaps.d.ts +108 -0
  100. package/resources/swaps.d.ts.map +1 -0
  101. package/resources/swaps.js +9 -0
  102. package/resources/swaps.js.map +1 -0
  103. package/resources/swaps.mjs +5 -0
  104. package/resources/swaps.mjs.map +1 -0
  105. package/resources/transactions.d.mts +158 -93
  106. package/resources/transactions.d.mts.map +1 -1
  107. package/resources/transactions.d.ts +158 -93
  108. package/resources/transactions.d.ts.map +1 -1
  109. package/resources/transactions.js +3 -0
  110. package/resources/transactions.js.map +1 -1
  111. package/resources/transactions.mjs +3 -0
  112. package/resources/transactions.mjs.map +1 -1
  113. package/resources/users.d.mts +64 -94
  114. package/resources/users.d.mts.map +1 -1
  115. package/resources/users.d.ts +64 -94
  116. package/resources/users.d.ts.map +1 -1
  117. package/resources/users.js +3 -0
  118. package/resources/users.js.map +1 -1
  119. package/resources/users.mjs +3 -0
  120. package/resources/users.mjs.map +1 -1
  121. package/resources/wallet-actions.d.mts +187 -0
  122. package/resources/wallet-actions.d.mts.map +1 -0
  123. package/resources/wallet-actions.d.ts +187 -0
  124. package/resources/wallet-actions.d.ts.map +1 -0
  125. package/resources/wallet-actions.js +9 -0
  126. package/resources/wallet-actions.js.map +1 -0
  127. package/resources/wallet-actions.mjs +5 -0
  128. package/resources/wallet-actions.mjs.map +1 -0
  129. package/resources/wallets/balance.d.mts +7 -4
  130. package/resources/wallets/balance.d.mts.map +1 -1
  131. package/resources/wallets/balance.d.ts +7 -4
  132. package/resources/wallets/balance.d.ts.map +1 -1
  133. package/resources/wallets/balance.js +3 -0
  134. package/resources/wallets/balance.js.map +1 -1
  135. package/resources/wallets/balance.mjs +3 -0
  136. package/resources/wallets/balance.mjs.map +1 -1
  137. package/resources/wallets/index.d.mts +1 -1
  138. package/resources/wallets/index.d.mts.map +1 -1
  139. package/resources/wallets/index.d.ts +1 -1
  140. package/resources/wallets/index.d.ts.map +1 -1
  141. package/resources/wallets/index.js.map +1 -1
  142. package/resources/wallets/index.mjs.map +1 -1
  143. package/resources/wallets/transactions.d.mts +10 -6
  144. package/resources/wallets/transactions.d.mts.map +1 -1
  145. package/resources/wallets/transactions.d.ts +10 -6
  146. package/resources/wallets/transactions.d.ts.map +1 -1
  147. package/resources/wallets/transactions.js +3 -0
  148. package/resources/wallets/transactions.js.map +1 -1
  149. package/resources/wallets/transactions.mjs +3 -0
  150. package/resources/wallets/transactions.mjs.map +1 -1
  151. package/resources/wallets/wallets.d.mts +2399 -936
  152. package/resources/wallets/wallets.d.mts.map +1 -1
  153. package/resources/wallets/wallets.d.ts +2399 -936
  154. package/resources/wallets/wallets.d.ts.map +1 -1
  155. package/resources/wallets/wallets.js +28 -10
  156. package/resources/wallets/wallets.js.map +1 -1
  157. package/resources/wallets/wallets.mjs +28 -10
  158. package/resources/wallets/wallets.mjs.map +1 -1
  159. package/resources/webhooks.d.mts +780 -339
  160. package/resources/webhooks.d.mts.map +1 -1
  161. package/resources/webhooks.d.ts +780 -339
  162. package/resources/webhooks.d.ts.map +1 -1
  163. package/resources/webhooks.js.map +1 -1
  164. package/resources/webhooks.mjs.map +1 -1
  165. package/resources/yield.d.mts +50 -9
  166. package/resources/yield.d.mts.map +1 -1
  167. package/resources/yield.d.ts +50 -9
  168. package/resources/yield.d.ts.map +1 -1
  169. package/src/client.ts +884 -99
  170. package/src/resources/accounts.ts +179 -3
  171. package/src/resources/aggregations.ts +18 -702
  172. package/src/resources/apps.ts +250 -85
  173. package/src/resources/client-auth.ts +1453 -786
  174. package/src/resources/cross-app.ts +19 -15
  175. package/src/resources/embedded-wallets.ts +219 -123
  176. package/src/resources/funding.ts +263 -173
  177. package/src/resources/index.ts +444 -61
  178. package/src/resources/intents.ts +575 -37
  179. package/src/resources/key-quorums.ts +137 -21
  180. package/src/resources/kraken-embed.ts +85 -0
  181. package/src/resources/policies.ts +582 -1550
  182. package/src/resources/shared.ts +79 -0
  183. package/src/resources/swaps.ts +136 -0
  184. package/src/resources/transactions.ts +188 -91
  185. package/src/resources/users.ts +82 -132
  186. package/src/resources/wallet-actions.ts +251 -0
  187. package/src/resources/wallets/balance.ts +9 -2
  188. package/src/resources/wallets/index.ts +146 -16
  189. package/src/resources/wallets/transactions.ts +12 -4
  190. package/src/resources/wallets/wallets.ts +2922 -974
  191. package/src/resources/webhooks.ts +970 -454
  192. package/src/resources/yield.ts +68 -10
  193. package/src/version.ts +1 -1
  194. package/version.d.mts +1 -1
  195. package/version.d.ts +1 -1
  196. package/version.js +1 -1
  197. 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 transaction.broadcasted webhook event.
691
+ * Payload for the wallet_action.swap.created webhook event.
155
692
  */
156
- export interface TransactionBroadcastedWebhookPayload {
693
+ export interface WalletActionSwapCreatedWebhookPayload {
157
694
  /**
158
- * The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
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
- * The blockchain transaction hash.
705
+ * Amount of input token in base units. Populated after on-chain confirmation.
164
706
  */
165
- transaction_hash: string;
707
+ input_amount: string | null;
166
708
 
167
709
  /**
168
- * The Privy-assigned ID for this transaction.
710
+ * Token address being sold.
169
711
  */
170
- transaction_id: string;
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: 'transaction.broadcasted';
727
+ type: 'wallet_action.swap.created';
176
728
 
177
729
  /**
178
- * The ID of the wallet that initiated the transaction.
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 transaction.confirmed webhook event.
741
+ * Payload for the wallet_action.swap.succeeded webhook event.
185
742
  */
186
- export interface TransactionConfirmedWebhookPayload {
743
+ export interface WalletActionSwapSucceededWebhookPayload {
187
744
  /**
188
- * The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
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
- * The blockchain transaction hash.
755
+ * Amount of input token in base units. Populated after on-chain confirmation.
194
756
  */
195
- transaction_hash: string;
757
+ input_amount: string | null;
196
758
 
197
759
  /**
198
- * The Privy-assigned ID for this transaction.
760
+ * Token address being sold.
199
761
  */
200
- transaction_id: string;
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: 'transaction.confirmed';
788
+ type: 'wallet_action.swap.succeeded';
206
789
 
207
790
  /**
208
- * The ID of the wallet that initiated the transaction.
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 transaction.execution_reverted webhook event.
802
+ * Payload for the wallet_action.swap.rejected webhook event.
215
803
  */
216
- export interface TransactionExecutionRevertedWebhookPayload {
804
+ export interface WalletActionSwapRejectedWebhookPayload {
217
805
  /**
218
- * The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
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
- * The blockchain transaction hash.
816
+ * A description of why a wallet action (or a step within a wallet action) failed.
224
817
  */
225
- transaction_hash: string;
818
+ failure_reason: WalletActionsAPI.FailureReason;
226
819
 
227
820
  /**
228
- * The Privy-assigned ID for this transaction.
821
+ * Amount of input token in base units. Populated after on-chain confirmation.
229
822
  */
230
- transaction_id: string;
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: 'transaction.execution_reverted';
848
+ type: 'wallet_action.swap.rejected';
236
849
 
237
850
  /**
238
- * The ID of the wallet that initiated the transaction.
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 transaction.still_pending webhook event.
862
+ * Payload for the wallet_action.swap.failed webhook event.
245
863
  */
246
- export interface TransactionStillPendingWebhookPayload {
864
+ export interface WalletActionSwapFailedWebhookPayload {
247
865
  /**
248
- * The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
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
- * The blockchain transaction hash.
876
+ * A description of why a wallet action (or a step within a wallet action) failed.
254
877
  */
255
- transaction_hash: string;
878
+ failure_reason: WalletActionsAPI.FailureReason;
256
879
 
257
880
  /**
258
- * The Privy-assigned ID for this transaction.
881
+ * Amount of input token in base units. Populated after on-chain confirmation.
259
882
  */
260
- transaction_id: string;
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
- * The original transaction request that is still pending.
896
+ * Status of a wallet action.
264
897
  */
265
- transaction_request: TransactionStillPendingWebhookPayload.TransactionRequest;
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: 'transaction.still_pending';
909
+ type: 'wallet_action.swap.failed';
271
910
 
272
911
  /**
273
- * The ID of the wallet that initiated the transaction.
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
- export namespace TransactionStillPendingWebhookPayload {
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 original transaction request that is still pending.
957
+ * The type of webhook event.
281
958
  */
282
- export interface TransactionRequest {
283
- authorization_list?: Array<TransactionRequest.AuthorizationList>;
959
+ type: 'wallet_action.transfer.created';
284
960
 
285
- chain_id?: string | number;
961
+ /**
962
+ * The ID of the wallet action.
963
+ */
964
+ wallet_action_id: string;
286
965
 
287
- data?: string;
966
+ /**
967
+ * The ID of the wallet involved in the action.
968
+ */
969
+ wallet_id: string;
970
+ }
288
971
 
289
- from?: string;
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
- gas_limit?: string | number;
981
+ /**
982
+ * Recipient address.
983
+ */
984
+ destination_address: string;
292
985
 
293
- gas_price?: string | number;
986
+ /**
987
+ * Decimal amount as provided by the user (e.g. "1.5").
988
+ */
989
+ source_amount: string;
294
990
 
295
- max_fee_per_gas?: string | number;
991
+ /**
992
+ * Asset identifier (e.g. "usdc", "eth").
993
+ */
994
+ source_asset: string;
296
995
 
297
- max_priority_fee_per_gas?: string | number;
996
+ /**
997
+ * Chain name (e.g. "base", "ethereum").
998
+ */
999
+ source_chain: string;
298
1000
 
299
- nonce?: string | number;
1001
+ /**
1002
+ * Status of a wallet action.
1003
+ */
1004
+ status: WalletActionsAPI.WalletActionStatus;
300
1005
 
301
- to?: string;
1006
+ /**
1007
+ * The steps of the wallet action, including transaction hashes.
1008
+ */
1009
+ steps: Array<WalletActionsAPI.WalletActionStep>;
302
1010
 
303
- type?: 0 | 1 | 2 | 4;
1011
+ /**
1012
+ * The type of webhook event.
1013
+ */
1014
+ type: 'wallet_action.transfer.succeeded';
304
1015
 
305
- value?: string | number;
306
- }
1016
+ /**
1017
+ * The ID of the wallet action.
1018
+ */
1019
+ wallet_action_id: string;
307
1020
 
308
- export namespace TransactionRequest {
309
- export interface AuthorizationList {
310
- chain_id: string | number;
1021
+ /**
1022
+ * The ID of the wallet involved in the action.
1023
+ */
1024
+ wallet_id: string;
1025
+ }
311
1026
 
312
- contract: string;
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
- nonce: string | number;
1036
+ /**
1037
+ * Recipient address.
1038
+ */
1039
+ destination_address: string;
315
1040
 
316
- r: string;
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
- s: string;
1046
+ /**
1047
+ * Decimal amount as provided by the user (e.g. "1.5").
1048
+ */
1049
+ source_amount: string;
319
1050
 
320
- y_parity: number;
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
- * The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
1057
+ * Chain name (e.g. "base", "ethereum").
331
1058
  */
332
- caip2: string;
1059
+ source_chain: string;
333
1060
 
334
1061
  /**
335
- * The blockchain transaction hash.
1062
+ * Status of a wallet action.
336
1063
  */
337
- transaction_hash: string;
1064
+ status: WalletActionsAPI.WalletActionStatus;
338
1065
 
339
1066
  /**
340
- * The Privy-assigned ID for this transaction.
1067
+ * The steps of the wallet action at the time of rejection.
341
1068
  */
342
- transaction_id: string;
1069
+ steps: Array<WalletActionsAPI.WalletActionStep>;
343
1070
 
344
1071
  /**
345
1072
  * The type of webhook event.
346
1073
  */
347
- type: 'transaction.failed';
1074
+ type: 'wallet_action.transfer.rejected';
348
1075
 
349
1076
  /**
350
- * The ID of the wallet that initiated the transaction.
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 transaction.replaced webhook event.
1088
+ * Payload for the wallet_action.transfer.failed webhook event.
357
1089
  */
358
- export interface TransactionReplacedWebhookPayload {
1090
+ export interface WalletActionTransferFailedWebhookPayload {
359
1091
  /**
360
- * The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
1092
+ * Type of wallet action
361
1093
  */
362
- caip2: string;
1094
+ action_type: WalletActionsAPI.WalletActionType;
363
1095
 
364
1096
  /**
365
- * The blockchain transaction hash.
1097
+ * Recipient address.
366
1098
  */
367
- transaction_hash: string;
1099
+ destination_address: string;
368
1100
 
369
1101
  /**
370
- * The Privy-assigned ID for this transaction.
1102
+ * A description of why a wallet action (or a step within a wallet action) failed.
371
1103
  */
372
- transaction_id: string;
1104
+ failure_reason: WalletActionsAPI.FailureReason;
373
1105
 
374
1106
  /**
375
- * The type of webhook event.
1107
+ * Decimal amount as provided by the user (e.g. "1.5").
376
1108
  */
377
- type: 'transaction.replaced';
1109
+ source_amount: string;
378
1110
 
379
1111
  /**
380
- * The ID of the wallet that initiated the transaction.
1112
+ * Asset identifier (e.g. "usdc", "eth").
381
1113
  */
382
- wallet_id: string;
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
- * The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
1117
+ * Chain name (e.g. "base", "ethereum").
391
1118
  */
392
- caip2: string;
1119
+ source_chain: string;
393
1120
 
394
1121
  /**
395
- * The blockchain transaction hash.
1122
+ * Status of a wallet action.
396
1123
  */
397
- transaction_hash: string;
1124
+ status: WalletActionsAPI.WalletActionStatus;
398
1125
 
399
1126
  /**
400
- * The Privy-assigned ID for this transaction.
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
- transaction_id: string;
1130
+ steps: Array<WalletActionsAPI.WalletActionStep>;
403
1131
 
404
1132
  /**
405
1133
  * The type of webhook event.
406
1134
  */
407
- type: 'transaction.provider_error';
1135
+ type: 'wallet_action.transfer.failed';
408
1136
 
409
1137
  /**
410
- * The ID of the wallet that initiated the transaction.
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 mfa.enabled webhook event.
1552
+ * Payload for the yield.deposit.confirmed webhook event.
793
1553
  */
794
- export interface MfaEnabledWebhookPayload {
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
- * Payload for the mfa.disabled webhook event.
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: 'mfa.disabled';
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 kraken_embed.verification_completed webhook event.
1574
+ * Payload for the yield.withdraw.confirmed webhook event.
833
1575
  */
834
- export interface KrakenEmbedVerificationCompletedWebhookPayload {
835
- /**
836
- * ISO 8601 timestamp of when verification completed.
837
- */
838
- completed_at: string;
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: 'kraken_embed.verification_completed';
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 kraken_embed.verification_failed webhook event.
1598
+ * Payload for the yield.claim.confirmed webhook event.
853
1599
  */
854
- export interface KrakenEmbedVerificationFailedWebhookPayload {
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 ID of the user.
1608
+ * The type of webhook event.
872
1609
  */
873
- user_id: string;
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 KrakenEmbedVerificationFailedWebhookPayload {
885
- export interface UnionMember0 {
886
- required_actions: Array<
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
- state: 'disabled';
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
- state: 'closed';
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 UserCreatedWebhookPayload as UserCreatedWebhookPayload,
1316
- type UserAuthenticatedWebhookPayload as UserAuthenticatedWebhookPayload,
1317
- type UserLinkedAccountWebhookPayload as UserLinkedAccountWebhookPayload,
1318
- type UserUnlinkedAccountWebhookPayload as UserUnlinkedAccountWebhookPayload,
1319
- type UserUpdatedAccountWebhookPayload as UserUpdatedAccountWebhookPayload,
1320
- type UserTransferredAccountWebhookPayload as UserTransferredAccountWebhookPayload,
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 MfaEnabledWebhookPayload as MfaEnabledWebhookPayload,
1335
- type MfaDisabledWebhookPayload as MfaDisabledWebhookPayload,
1336
- type KrakenEmbedVerificationCompletedWebhookPayload as KrakenEmbedVerificationCompletedWebhookPayload,
1337
- type KrakenEmbedVerificationFailedWebhookPayload as KrakenEmbedVerificationFailedWebhookPayload,
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
  }