@privy-io/api-types 0.9.0 → 0.11.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 (180) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/client.d.mts +40 -43
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +40 -43
  5. package/client.d.ts.map +1 -1
  6. package/client.js +28 -20
  7. package/client.js.map +1 -1
  8. package/client.mjs +29 -21
  9. package/client.mjs.map +1 -1
  10. package/internal/types.d.mts +6 -6
  11. package/internal/types.d.mts.map +1 -1
  12. package/internal/types.d.ts +6 -6
  13. package/internal/types.d.ts.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/accounts.d.mts +128 -86
  16. package/resources/accounts.d.mts.map +1 -1
  17. package/resources/accounts.d.ts +128 -86
  18. package/resources/accounts.d.ts.map +1 -1
  19. package/resources/aggregations.d.mts +43 -43
  20. package/resources/aggregations.d.mts.map +1 -1
  21. package/resources/aggregations.d.ts +43 -43
  22. package/resources/aggregations.d.ts.map +1 -1
  23. package/resources/apps.d.mts +169 -135
  24. package/resources/apps.d.mts.map +1 -1
  25. package/resources/apps.d.ts +169 -135
  26. package/resources/apps.d.ts.map +1 -1
  27. package/resources/client-auth.d.mts +931 -947
  28. package/resources/client-auth.d.mts.map +1 -1
  29. package/resources/client-auth.d.ts +931 -947
  30. package/resources/client-auth.d.ts.map +1 -1
  31. package/resources/client-auth.js.map +1 -1
  32. package/resources/client-auth.mjs.map +1 -1
  33. package/resources/embedded-wallets.d.mts +122 -122
  34. package/resources/embedded-wallets.d.mts.map +1 -1
  35. package/resources/embedded-wallets.d.ts +122 -122
  36. package/resources/embedded-wallets.d.ts.map +1 -1
  37. package/resources/fiat.d.mts +110 -0
  38. package/resources/fiat.d.mts.map +1 -0
  39. package/resources/fiat.d.ts +110 -0
  40. package/resources/fiat.d.ts.map +1 -0
  41. package/resources/fiat.js +9 -0
  42. package/resources/fiat.js.map +1 -0
  43. package/resources/fiat.mjs +5 -0
  44. package/resources/fiat.mjs.map +1 -0
  45. package/resources/funding.d.mts +86 -86
  46. package/resources/funding.d.mts.map +1 -1
  47. package/resources/funding.d.ts +86 -86
  48. package/resources/funding.d.ts.map +1 -1
  49. package/resources/index.d.mts +20 -18
  50. package/resources/index.d.mts.map +1 -1
  51. package/resources/index.d.ts +20 -18
  52. package/resources/index.d.ts.map +1 -1
  53. package/resources/index.js +5 -1
  54. package/resources/index.js.map +1 -1
  55. package/resources/index.mjs +3 -1
  56. package/resources/index.mjs.map +1 -1
  57. package/resources/intents.d.mts +269 -265
  58. package/resources/intents.d.mts.map +1 -1
  59. package/resources/intents.d.ts +269 -265
  60. package/resources/intents.d.ts.map +1 -1
  61. package/resources/key-quorums.d.mts +15 -146
  62. package/resources/key-quorums.d.mts.map +1 -1
  63. package/resources/key-quorums.d.ts +15 -146
  64. package/resources/key-quorums.d.ts.map +1 -1
  65. package/resources/key-quorums.js +0 -92
  66. package/resources/key-quorums.js.map +1 -1
  67. package/resources/key-quorums.mjs +0 -92
  68. package/resources/key-quorums.mjs.map +1 -1
  69. package/resources/kraken-embed.d.mts +12 -20
  70. package/resources/kraken-embed.d.mts.map +1 -1
  71. package/resources/kraken-embed.d.ts +12 -20
  72. package/resources/kraken-embed.d.ts.map +1 -1
  73. package/resources/organizations.d.mts +65 -0
  74. package/resources/organizations.d.mts.map +1 -0
  75. package/resources/organizations.d.ts +65 -0
  76. package/resources/organizations.d.ts.map +1 -0
  77. package/resources/organizations.js +9 -0
  78. package/resources/organizations.js.map +1 -0
  79. package/resources/organizations.mjs +5 -0
  80. package/resources/organizations.mjs.map +1 -0
  81. package/resources/policies.d.mts +261 -553
  82. package/resources/policies.d.mts.map +1 -1
  83. package/resources/policies.d.ts +261 -553
  84. package/resources/policies.d.ts.map +1 -1
  85. package/resources/policies.js +0 -229
  86. package/resources/policies.js.map +1 -1
  87. package/resources/policies.mjs +0 -229
  88. package/resources/policies.mjs.map +1 -1
  89. package/resources/shared.d.mts +28 -28
  90. package/resources/shared.d.mts.map +1 -1
  91. package/resources/shared.d.ts +28 -28
  92. package/resources/shared.d.ts.map +1 -1
  93. package/resources/swaps.d.mts +6 -9
  94. package/resources/swaps.d.mts.map +1 -1
  95. package/resources/swaps.d.ts +6 -9
  96. package/resources/swaps.d.ts.map +1 -1
  97. package/resources/swaps.js.map +1 -1
  98. package/resources/swaps.mjs.map +1 -1
  99. package/resources/transactions.d.mts +80 -96
  100. package/resources/transactions.d.mts.map +1 -1
  101. package/resources/transactions.d.ts +80 -96
  102. package/resources/transactions.d.ts.map +1 -1
  103. package/resources/transactions.js +0 -17
  104. package/resources/transactions.js.map +1 -1
  105. package/resources/transactions.mjs +0 -17
  106. package/resources/transactions.mjs.map +1 -1
  107. package/resources/users.d.mts +480 -815
  108. package/resources/users.d.mts.map +1 -1
  109. package/resources/users.d.ts +480 -815
  110. package/resources/users.d.ts.map +1 -1
  111. package/resources/users.js +0 -272
  112. package/resources/users.js.map +1 -1
  113. package/resources/users.mjs +0 -272
  114. package/resources/users.mjs.map +1 -1
  115. package/resources/wallet-actions.d.mts +302 -145
  116. package/resources/wallet-actions.d.mts.map +1 -1
  117. package/resources/wallet-actions.d.ts +302 -145
  118. package/resources/wallet-actions.d.ts.map +1 -1
  119. package/resources/wallets/index.d.mts +1 -1
  120. package/resources/wallets/index.d.mts.map +1 -1
  121. package/resources/wallets/index.d.ts +1 -1
  122. package/resources/wallets/index.d.ts.map +1 -1
  123. package/resources/wallets/index.js.map +1 -1
  124. package/resources/wallets/index.mjs.map +1 -1
  125. package/resources/wallets/transactions.d.mts +7 -2
  126. package/resources/wallets/transactions.d.mts.map +1 -1
  127. package/resources/wallets/transactions.d.ts +7 -2
  128. package/resources/wallets/transactions.d.ts.map +1 -1
  129. package/resources/wallets/transactions.js +1 -1
  130. package/resources/wallets/transactions.mjs +1 -1
  131. package/resources/wallets/wallets.d.mts +1592 -1580
  132. package/resources/wallets/wallets.d.mts.map +1 -1
  133. package/resources/wallets/wallets.d.ts +1592 -1580
  134. package/resources/wallets/wallets.d.ts.map +1 -1
  135. package/resources/wallets/wallets.js +45 -103
  136. package/resources/wallets/wallets.js.map +1 -1
  137. package/resources/wallets/wallets.mjs +45 -103
  138. package/resources/wallets/wallets.mjs.map +1 -1
  139. package/resources/webhooks.d.mts +935 -877
  140. package/resources/webhooks.d.mts.map +1 -1
  141. package/resources/webhooks.d.ts +935 -877
  142. package/resources/webhooks.d.ts.map +1 -1
  143. package/resources/yield.d.mts +157 -157
  144. package/resources/yield.d.mts.map +1 -1
  145. package/resources/yield.d.ts +157 -157
  146. package/resources/yield.d.ts.map +1 -1
  147. package/src/client.ts +650 -618
  148. package/src/internal/types.ts +6 -8
  149. package/src/resources/accounts.ts +157 -103
  150. package/src/resources/aggregations.ts +55 -55
  151. package/src/resources/apps.ts +221 -178
  152. package/src/resources/client-auth.ts +1271 -1315
  153. package/src/resources/embedded-wallets.ts +160 -160
  154. package/src/resources/fiat.ts +177 -0
  155. package/src/resources/funding.ts +130 -130
  156. package/src/resources/index.ts +551 -542
  157. package/src/resources/intents.ts +326 -322
  158. package/src/resources/key-quorums.ts +16 -218
  159. package/src/resources/kraken-embed.ts +14 -22
  160. package/src/resources/organizations.ts +82 -0
  161. package/src/resources/policies.ts +383 -848
  162. package/src/resources/shared.ts +34 -34
  163. package/src/resources/swaps.ts +5 -10
  164. package/src/resources/transactions.ts +116 -136
  165. package/src/resources/users.ts +693 -1160
  166. package/src/resources/wallet-actions.ts +392 -185
  167. package/src/resources/wallets/index.ts +160 -156
  168. package/src/resources/wallets/transactions.ts +18 -3
  169. package/src/resources/wallets/wallets.ts +2123 -2113
  170. package/src/resources/webhooks.ts +1172 -1100
  171. package/src/resources/yield.ts +188 -188
  172. package/src/version.ts +1 -1
  173. package/version.d.mts +1 -1
  174. package/version.d.mts.map +1 -1
  175. package/version.d.ts +1 -1
  176. package/version.d.ts.map +1 -1
  177. package/version.js +1 -1
  178. package/version.js.map +1 -1
  179. package/version.mjs +1 -1
  180. package/version.mjs.map +1 -1
@@ -9,168 +9,282 @@ import * as WalletsAPI from './wallets/wallets';
9
9
  export class Webhooks extends APIResource {}
10
10
 
11
11
  /**
12
- * Payload for the intent.created webhook event.
12
+ * Bridge metadata for a crypto deposit via liquidation address.
13
13
  */
14
- export interface IntentCreatedWebhookPayload {
15
- /**
16
- * Unix timestamp when the intent was created.
17
- */
18
- created_at: number;
14
+ export interface BridgeCryptoDepositMetadata {
15
+ drain_id: string;
19
16
 
20
17
  /**
21
- * Unix timestamp when the intent expires.
18
+ * The crypto address of the liquidation address that received the deposit.
22
19
  */
23
- expires_at: number;
20
+ liquidation_address: string;
24
21
 
25
- /**
26
- * The unique ID of the intent.
27
- */
28
- intent_id: string;
22
+ liquidation_address_id: string;
29
23
 
30
- /**
31
- * Type of intent.
32
- */
33
- intent_type: IntentsAPI.IntentType;
24
+ method: 'liquidation_address';
34
25
 
35
26
  /**
36
- * The current status of the intent.
27
+ * The address that sent the deposit.
37
28
  */
38
- status: string;
29
+ source_wallet_address: string;
39
30
 
40
- /**
41
- * The type of webhook event.
42
- */
43
- type: 'intent.created';
31
+ type: 'crypto_deposit';
32
+ }
33
+
34
+ /**
35
+ * Bridge metadata for a crypto deposit via transfer.
36
+ */
37
+ export interface BridgeCryptoTransferMetadata {
38
+ method: 'transfer';
44
39
 
45
40
  /**
46
- * Key quorums that can authorize this intent.
41
+ * The wallet address that sent the transfer.
47
42
  */
48
- authorization_details?: Array<IntentsAPI.IntentAuthorization>;
43
+ source_wallet_address: string;
44
+
45
+ transfer_id: string;
46
+
47
+ type: 'crypto_deposit';
48
+ }
49
+
50
+ /**
51
+ * Bridge metadata for a fiat deposit via virtual account.
52
+ */
53
+ export interface BridgeFiatDepositMetadata {
54
+ activity_id: string;
55
+
56
+ method: 'virtual_account';
57
+
58
+ type: 'fiat_deposit';
59
+
60
+ virtual_account_id: string;
61
+ }
62
+
63
+ /**
64
+ * Bridge metadata for a fiat deposit via transfer.
65
+ */
66
+ export interface BridgeFiatTransferMetadata {
67
+ method: 'transfer';
68
+
69
+ transfer_id: string;
70
+
71
+ type: 'fiat_deposit';
72
+ }
73
+
74
+ /**
75
+ * Metadata about a Bridge transaction associated with a wallet event.
76
+ */
77
+ export type BridgeMetadata =
78
+ | BridgeCryptoDepositMetadata
79
+ | BridgeRefundMetadata
80
+ | BridgeFiatDepositMetadata
81
+ | BridgeCryptoTransferMetadata
82
+ | BridgeFiatTransferMetadata
83
+ | BridgeTransferRefundMetadata
84
+ | BridgeStaticMemoDepositMetadata;
85
+
86
+ /**
87
+ * Bridge metadata for a refund via liquidation address.
88
+ */
89
+ export interface BridgeRefundMetadata {
90
+ drain_id: string;
91
+
92
+ liquidation_address_id: string;
93
+
94
+ method: 'liquidation_address';
49
95
 
50
96
  /**
51
- * Display name of the user who created the intent.
97
+ * The original deposit transaction hash that triggered the failed drain.
52
98
  */
53
- created_by_display_name?: string;
99
+ original_transaction_hash: string;
100
+
101
+ type: 'refund';
102
+ }
103
+
104
+ /**
105
+ * Bridge metadata for a fiat deposit via static memo.
106
+ */
107
+ export interface BridgeStaticMemoDepositMetadata {
108
+ method: 'static_memo';
109
+
110
+ static_memo_event_id: string;
111
+
112
+ static_memo_id: string;
113
+
114
+ type: 'fiat_deposit';
115
+ }
116
+
117
+ /**
118
+ * Bridge metadata for a transfer refund.
119
+ */
120
+ export interface BridgeTransferRefundMetadata {
121
+ method: 'transfer';
122
+
123
+ transfer_id: string;
124
+
125
+ type: 'refund';
54
126
 
55
127
  /**
56
- * The ID of the user who created the intent.
128
+ * The original transfer transaction hash (if available).
57
129
  */
58
- created_by_id?: string;
130
+ original_transaction_hash?: string;
59
131
  }
60
132
 
61
133
  /**
62
- * Payload for the intent.authorized webhook event.
134
+ * Payload for the wallet.funds_deposited webhook event.
63
135
  */
64
- export interface IntentAuthorizedWebhookPayload {
136
+ export interface FundsDepositedWebhookPayload {
65
137
  /**
66
- * Unix timestamp when the authorization was recorded.
138
+ * The amount transferred, as a stringified bigint.
67
139
  */
68
- authorized_at: number;
140
+ amount: string;
69
141
 
70
142
  /**
71
- * Unix timestamp when the intent was created.
143
+ * An asset involved in a wallet transfer.
72
144
  */
73
- created_at: number;
145
+ asset: WalletFundsAsset;
146
+
147
+ block: FundsDepositedWebhookPayload.Block;
74
148
 
75
149
  /**
76
- * Unix timestamp when the intent expires.
150
+ * The CAIP-2 chain identifier.
77
151
  */
78
- expires_at: number;
152
+ caip2: string;
79
153
 
80
154
  /**
81
- * The unique ID of the intent.
155
+ * A unique key for this event.
82
156
  */
83
- intent_id: string;
157
+ idempotency_key: string;
84
158
 
85
159
  /**
86
- * Type of intent.
160
+ * The recipient address.
87
161
  */
88
- intent_type: IntentsAPI.IntentType;
162
+ recipient: string;
89
163
 
90
164
  /**
91
- * A leaf member (user or key) of a nested key quorum in an intent authorization.
165
+ * The sender address.
92
166
  */
93
- member: IntentsAPI.IntentAuthorizationKeyQuorumMember;
167
+ sender: string;
94
168
 
95
169
  /**
96
- * The current status of the intent.
170
+ * The blockchain transaction hash.
97
171
  */
98
- status: string;
172
+ transaction_hash: string;
99
173
 
100
174
  /**
101
175
  * The type of webhook event.
102
176
  */
103
- type: 'intent.authorized';
177
+ type: 'wallet.funds_deposited';
104
178
 
105
179
  /**
106
- * Display name of the user who created the intent.
180
+ * The ID of the wallet.
107
181
  */
108
- created_by_display_name?: string;
182
+ wallet_id: string;
109
183
 
110
184
  /**
111
- * The ID of the user who created the intent.
185
+ * Metadata about a Bridge transaction associated with a wallet event.
112
186
  */
113
- created_by_id?: string;
187
+ bridge_metadata?: BridgeMetadata;
188
+
189
+ /**
190
+ * The transaction fee paid, as a stringified bigint in the chain's native token.
191
+ */
192
+ transaction_fee?: string;
193
+ }
194
+
195
+ export namespace FundsDepositedWebhookPayload {
196
+ export interface Block {
197
+ /**
198
+ * The block number.
199
+ */
200
+ number: number;
201
+
202
+ /**
203
+ * The block timestamp.
204
+ */
205
+ timestamp: number;
206
+ }
114
207
  }
115
208
 
116
209
  /**
117
- * Payload for the intent.executed webhook event.
210
+ * Payload for the wallet.funds_withdrawn webhook event.
118
211
  */
119
- export interface IntentExecutedWebhookPayload {
212
+ export interface FundsWithdrawnWebhookPayload {
120
213
  /**
121
- * Result of the successful intent execution.
214
+ * The amount transferred, as a stringified bigint.
122
215
  */
123
- action_result: IntentsAPI.BaseActionResult;
216
+ amount: string;
124
217
 
125
218
  /**
126
- * Unix timestamp when the intent was created.
219
+ * An asset involved in a wallet transfer.
127
220
  */
128
- created_at: number;
221
+ asset: WalletFundsAsset;
222
+
223
+ block: FundsWithdrawnWebhookPayload.Block;
129
224
 
130
225
  /**
131
- * Unix timestamp when the intent expires.
226
+ * The CAIP-2 chain identifier.
132
227
  */
133
- expires_at: number;
228
+ caip2: string;
134
229
 
135
230
  /**
136
- * The unique ID of the intent.
231
+ * A unique key for this event.
137
232
  */
138
- intent_id: string;
233
+ idempotency_key: string;
139
234
 
140
235
  /**
141
- * Type of intent.
236
+ * The recipient address.
142
237
  */
143
- intent_type: IntentsAPI.IntentType;
238
+ recipient: string;
144
239
 
145
240
  /**
146
- * The current status of the intent.
241
+ * The sender address.
147
242
  */
148
- status: string;
243
+ sender: string;
244
+
245
+ /**
246
+ * The blockchain transaction hash.
247
+ */
248
+ transaction_hash: string;
149
249
 
150
250
  /**
151
251
  * The type of webhook event.
152
252
  */
153
- type: 'intent.executed';
253
+ type: 'wallet.funds_withdrawn';
154
254
 
155
255
  /**
156
- * Display name of the user who created the intent.
256
+ * The ID of the wallet.
157
257
  */
158
- created_by_display_name?: string;
258
+ wallet_id: string;
159
259
 
160
260
  /**
161
- * The ID of the user who created the intent.
261
+ * The transaction fee paid, as a stringified bigint in the chain's native token.
162
262
  */
163
- created_by_id?: string;
263
+ transaction_fee?: string;
264
+ }
265
+
266
+ export namespace FundsWithdrawnWebhookPayload {
267
+ export interface Block {
268
+ /**
269
+ * The block number.
270
+ */
271
+ number: number;
272
+
273
+ /**
274
+ * The block timestamp.
275
+ */
276
+ timestamp: number;
277
+ }
164
278
  }
165
279
 
166
280
  /**
167
- * Payload for the intent.failed webhook event.
281
+ * Payload for the intent.authorized webhook event.
168
282
  */
169
- export interface IntentFailedWebhookPayload {
283
+ export interface IntentAuthorizedWebhookPayload {
170
284
  /**
171
- * Result of the failed intent execution.
285
+ * Unix timestamp when the authorization was recorded.
172
286
  */
173
- action_result: IntentsAPI.BaseActionResult;
287
+ authorized_at: number;
174
288
 
175
289
  /**
176
290
  * Unix timestamp when the intent was created.
@@ -192,6 +306,11 @@ export interface IntentFailedWebhookPayload {
192
306
  */
193
307
  intent_type: IntentsAPI.IntentType;
194
308
 
309
+ /**
310
+ * A leaf member (user or key) of a nested key quorum in an intent authorization.
311
+ */
312
+ member: IntentsAPI.IntentAuthorizationKeyQuorumMember;
313
+
195
314
  /**
196
315
  * The current status of the intent.
197
316
  */
@@ -200,7 +319,7 @@ export interface IntentFailedWebhookPayload {
200
319
  /**
201
320
  * The type of webhook event.
202
321
  */
203
- type: 'intent.failed';
322
+ type: 'intent.authorized';
204
323
 
205
324
  /**
206
325
  * Display name of the user who created the intent.
@@ -214,864 +333,874 @@ export interface IntentFailedWebhookPayload {
214
333
  }
215
334
 
216
335
  /**
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.
336
+ * Payload for the intent.created webhook event.
258
337
  */
259
- export interface TransactionBroadcastedWebhookPayload {
338
+ export interface IntentCreatedWebhookPayload {
260
339
  /**
261
- * The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
340
+ * Unix timestamp when the intent was created.
262
341
  */
263
- caip2: string;
342
+ created_at: number;
264
343
 
265
344
  /**
266
- * The blockchain transaction hash.
345
+ * Unix timestamp when the intent expires.
267
346
  */
268
- transaction_hash: string;
347
+ expires_at: number;
269
348
 
270
349
  /**
271
- * The Privy-assigned ID for this transaction.
350
+ * The unique ID of the intent.
272
351
  */
273
- transaction_id: string;
352
+ intent_id: string;
274
353
 
275
354
  /**
276
- * The type of webhook event.
355
+ * Type of intent.
277
356
  */
278
- type: 'transaction.broadcasted';
357
+ intent_type: IntentsAPI.IntentType;
279
358
 
280
359
  /**
281
- * The ID of the wallet that initiated the transaction.
360
+ * The current status of the intent.
282
361
  */
283
- wallet_id: string;
362
+ status: string;
284
363
 
285
364
  /**
286
- * Developer-provided reference ID for transaction reconciliation, if one was
287
- * provided.
365
+ * The type of webhook event.
288
366
  */
289
- reference_id?: string | null;
290
- }
367
+ type: 'intent.created';
291
368
 
292
- /**
293
- * Payload for the transaction.confirmed webhook event.
294
- */
295
- export interface TransactionConfirmedWebhookPayload {
296
369
  /**
297
- * The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
370
+ * Key quorums that can authorize this intent.
298
371
  */
299
- caip2: string;
372
+ authorization_details?: Array<IntentsAPI.IntentAuthorization>;
300
373
 
301
374
  /**
302
- * The blockchain transaction hash.
375
+ * Display name of the user who created the intent.
303
376
  */
304
- transaction_hash: string;
377
+ created_by_display_name?: string;
305
378
 
306
379
  /**
307
- * The Privy-assigned ID for this transaction.
380
+ * The ID of the user who created the intent.
308
381
  */
309
- transaction_id: string;
382
+ created_by_id?: string;
383
+ }
310
384
 
385
+ /**
386
+ * Payload for the intent.executed webhook event.
387
+ */
388
+ export interface IntentExecutedWebhookPayload {
311
389
  /**
312
- * The type of webhook event.
390
+ * Result of the successful intent execution.
313
391
  */
314
- type: 'transaction.confirmed';
392
+ action_result: IntentsAPI.BaseActionResult;
315
393
 
316
394
  /**
317
- * The ID of the wallet that initiated the transaction.
395
+ * Unix timestamp when the intent was created.
318
396
  */
319
- wallet_id: string;
397
+ created_at: number;
320
398
 
321
399
  /**
322
- * Developer-provided reference ID for transaction reconciliation, if one was
323
- * provided.
400
+ * Unix timestamp when the intent expires.
324
401
  */
325
- reference_id?: string | null;
326
- }
402
+ expires_at: number;
327
403
 
328
- /**
329
- * Payload for the transaction.execution_reverted webhook event.
330
- */
331
- export interface TransactionExecutionRevertedWebhookPayload {
332
404
  /**
333
- * The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
405
+ * The unique ID of the intent.
334
406
  */
335
- caip2: string;
407
+ intent_id: string;
336
408
 
337
409
  /**
338
- * The blockchain transaction hash.
410
+ * Type of intent.
339
411
  */
340
- transaction_hash: string;
412
+ intent_type: IntentsAPI.IntentType;
341
413
 
342
414
  /**
343
- * The Privy-assigned ID for this transaction.
415
+ * The current status of the intent.
344
416
  */
345
- transaction_id: string;
417
+ status: string;
346
418
 
347
419
  /**
348
420
  * The type of webhook event.
349
421
  */
350
- type: 'transaction.execution_reverted';
422
+ type: 'intent.executed';
351
423
 
352
424
  /**
353
- * The ID of the wallet that initiated the transaction.
425
+ * Display name of the user who created the intent.
354
426
  */
355
- wallet_id: string;
427
+ created_by_display_name?: string;
356
428
 
357
429
  /**
358
- * Developer-provided reference ID for transaction reconciliation, if one was
359
- * provided.
430
+ * The ID of the user who created the intent.
360
431
  */
361
- reference_id?: string | null;
432
+ created_by_id?: string;
362
433
  }
363
434
 
364
435
  /**
365
- * Payload for the transaction.still_pending webhook event.
436
+ * Payload for the intent.failed webhook event.
366
437
  */
367
- export interface TransactionStillPendingWebhookPayload {
438
+ export interface IntentFailedWebhookPayload {
368
439
  /**
369
- * The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
440
+ * Result of the failed intent execution.
370
441
  */
371
- caip2: string;
442
+ action_result: IntentsAPI.BaseActionResult;
372
443
 
373
444
  /**
374
- * The blockchain transaction hash.
445
+ * Unix timestamp when the intent was created.
375
446
  */
376
- transaction_hash: string;
447
+ created_at: number;
377
448
 
378
449
  /**
379
- * The Privy-assigned ID for this transaction.
450
+ * Unix timestamp when the intent expires.
380
451
  */
381
- transaction_id: string;
452
+ expires_at: number;
453
+
454
+ /**
455
+ * The unique ID of the intent.
456
+ */
457
+ intent_id: string;
458
+
459
+ /**
460
+ * Type of intent.
461
+ */
462
+ intent_type: IntentsAPI.IntentType;
382
463
 
383
464
  /**
384
- * An unsigned Ethereum transaction object.
465
+ * The current status of the intent.
385
466
  */
386
- transaction_request: WalletsAPI.UnsignedEthereumTransaction;
467
+ status: string;
387
468
 
388
469
  /**
389
470
  * The type of webhook event.
390
471
  */
391
- type: 'transaction.still_pending';
472
+ type: 'intent.failed';
392
473
 
393
474
  /**
394
- * The ID of the wallet that initiated the transaction.
475
+ * Display name of the user who created the intent.
395
476
  */
396
- wallet_id: string;
477
+ created_by_display_name?: string;
397
478
 
398
479
  /**
399
- * Developer-provided reference ID for transaction reconciliation, if one was
400
- * provided.
480
+ * The ID of the user who created the intent.
401
481
  */
402
- reference_id?: string | null;
482
+ created_by_id?: string;
403
483
  }
404
484
 
405
485
  /**
406
- * Payload for the transaction.failed webhook event.
486
+ * Payload for the kraken_embed.quote.cancelled webhook event.
407
487
  */
408
- export interface TransactionFailedWebhookPayload {
488
+ export interface KrakenEmbedQuoteCancelledWebhookPayload {
409
489
  /**
410
- * The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
490
+ * ISO 8601 timestamp of when the quote was cancelled.
411
491
  */
412
- caip2: string;
492
+ cancelled_at: string;
413
493
 
414
494
  /**
415
- * The blockchain transaction hash.
495
+ * The ID of the cancelled quote.
416
496
  */
417
- transaction_hash: string;
497
+ quote_id: string;
418
498
 
419
499
  /**
420
- * The Privy-assigned ID for this transaction.
500
+ * A human-readable description of why the quote was cancelled. Intended for
501
+ * display and logging purposes only.
421
502
  */
422
- transaction_id: string;
503
+ reason: string;
423
504
 
424
505
  /**
425
506
  * The type of webhook event.
426
507
  */
427
- type: 'transaction.failed';
428
-
429
- /**
430
- * The ID of the wallet that initiated the transaction.
431
- */
432
- wallet_id: string;
508
+ type: 'kraken_embed.quote.cancelled';
433
509
 
434
510
  /**
435
- * Developer-provided reference ID for transaction reconciliation, if one was
436
- * provided.
511
+ * The ID of the user.
437
512
  */
438
- reference_id?: string | null;
513
+ user_id: string;
439
514
  }
440
515
 
441
516
  /**
442
- * Payload for the transaction.replaced webhook event.
517
+ * Payload for the kraken_embed.quote_executed webhook event.
443
518
  */
444
- export interface TransactionReplacedWebhookPayload {
445
- /**
446
- * The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
447
- */
448
- caip2: string;
449
-
519
+ export interface KrakenEmbedQuoteExecutedWebhookPayload {
450
520
  /**
451
- * The blockchain transaction hash.
521
+ * ISO 8601 timestamp of when the quote was executed.
452
522
  */
453
- transaction_hash: string;
523
+ executed_at: string;
454
524
 
455
525
  /**
456
- * The Privy-assigned ID for this transaction.
526
+ * The ID of the executed quote.
457
527
  */
458
- transaction_id: string;
528
+ quote_id: string;
459
529
 
460
530
  /**
461
531
  * The type of webhook event.
462
532
  */
463
- type: 'transaction.replaced';
464
-
465
- /**
466
- * The ID of the wallet that initiated the transaction.
467
- */
468
- wallet_id: string;
533
+ type: 'kraken_embed.quote.executed';
469
534
 
470
535
  /**
471
- * Developer-provided reference ID for transaction reconciliation, if one was
472
- * provided.
536
+ * The ID of the user.
473
537
  */
474
- reference_id?: string | null;
538
+ user_id: string;
475
539
  }
476
540
 
477
541
  /**
478
- * Payload for the transaction.provider_error webhook event.
542
+ * Payload for the kraken_embed.quote.execution_failed webhook event.
479
543
  */
480
- export interface TransactionProviderErrorWebhookPayload {
544
+ export interface KrakenEmbedQuoteExecutionFailedWebhookPayload {
481
545
  /**
482
- * The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
546
+ * ISO 8601 timestamp of when the quote execution failed.
483
547
  */
484
- caip2: string;
548
+ failed_at: string;
485
549
 
486
550
  /**
487
- * The blockchain transaction hash.
551
+ * The ID of the quote that failed to execute.
488
552
  */
489
- transaction_hash: string;
553
+ quote_id: string;
490
554
 
491
555
  /**
492
- * The Privy-assigned ID for this transaction.
556
+ * A human-readable description of why the quote execution failed. Intended for
557
+ * display and logging purposes only.
493
558
  */
494
- transaction_id: string;
559
+ reason: string;
495
560
 
496
561
  /**
497
562
  * The type of webhook event.
498
563
  */
499
- type: 'transaction.provider_error';
500
-
501
- /**
502
- * The ID of the wallet that initiated the transaction.
503
- */
504
- wallet_id: string;
564
+ type: 'kraken_embed.quote.execution_failed';
505
565
 
506
566
  /**
507
- * Developer-provided reference ID for transaction reconciliation, if one was
508
- * provided.
567
+ * The ID of the user.
509
568
  */
510
- reference_id?: string | null;
569
+ user_id: string;
511
570
  }
512
571
 
513
572
  /**
514
- * Payload for the user_operation.completed webhook event.
573
+ * Payload for the kraken_embed.user.closed webhook event.
515
574
  */
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;
575
+ export interface KrakenEmbedUserClosedWebhookPayload {
576
+ /**
577
+ * ISO 8601 timestamp of when the user was closed.
578
+ */
579
+ closed_at: string;
536
580
 
537
581
  /**
538
582
  * The type of webhook event.
539
583
  */
540
- type: 'user_operation.completed';
584
+ type: 'kraken_embed.user.closed';
541
585
 
542
- user_op_hash: string;
586
+ /**
587
+ * The ID of the user.
588
+ */
589
+ user_id: string;
543
590
  }
544
591
 
545
592
  /**
546
- * Payload for the user.created webhook event.
593
+ * Payload for the kraken_embed.user.disabled webhook event.
547
594
  */
548
- export interface UserCreatedWebhookPayload {
595
+ export interface KrakenEmbedUserDisabledWebhookPayload {
596
+ /**
597
+ * ISO 8601 timestamp of when the user was disabled.
598
+ */
599
+ disabled_at: string;
600
+
549
601
  /**
550
602
  * The type of webhook event.
551
603
  */
552
- type: 'user.created';
604
+ type: 'kraken_embed.user.disabled';
553
605
 
554
606
  /**
555
- * A Privy user object.
607
+ * The ID of the user.
556
608
  */
557
- user: UsersAPI.User;
609
+ user_id: string;
558
610
  }
559
611
 
560
612
  /**
561
- * Payload for the user.authenticated webhook event.
613
+ * Payload for the kraken_embed.user.verified webhook event.
562
614
  */
563
- export interface UserAuthenticatedWebhookPayload {
615
+ export interface KrakenEmbedUserVerifiedWebhookPayload {
564
616
  /**
565
- * A linked account for the user.
617
+ * The type of webhook event.
566
618
  */
567
- account: UsersAPI.LinkedAccount;
619
+ type: 'kraken_embed.user.verified';
568
620
 
569
621
  /**
570
- * The type of webhook event.
622
+ * The ID of the user.
571
623
  */
572
- type: 'user.authenticated';
624
+ user_id: string;
573
625
 
574
626
  /**
575
- * A Privy user object.
627
+ * ISO 8601 timestamp of when the user was verified.
576
628
  */
577
- user: UsersAPI.User;
629
+ verified_at: string;
578
630
  }
579
631
 
580
632
  /**
581
- * Payload for the user.linked_account webhook event.
633
+ * Payload for the mfa.disabled webhook event.
582
634
  */
583
- export interface UserLinkedAccountWebhookPayload {
635
+ export interface MfaDisabledWebhookPayload {
584
636
  /**
585
- * A linked account for the user.
637
+ * The MFA method that was disabled.
586
638
  */
587
- account: UsersAPI.LinkedAccount;
639
+ method: 'sms' | 'totp' | 'passkey';
588
640
 
589
641
  /**
590
642
  * The type of webhook event.
591
643
  */
592
- type: 'user.linked_account';
644
+ type: 'mfa.disabled';
593
645
 
594
646
  /**
595
- * A Privy user object.
647
+ * The ID of the user who disabled MFA.
596
648
  */
597
- user: UsersAPI.User;
649
+ user_id: string;
598
650
  }
599
651
 
600
652
  /**
601
- * Payload for the user.unlinked_account webhook event.
653
+ * Payload for the mfa.enabled webhook event.
602
654
  */
603
- export interface UserUnlinkedAccountWebhookPayload {
655
+ export interface MfaEnabledWebhookPayload {
604
656
  /**
605
- * A linked account for the user.
657
+ * The MFA method that was enabled.
606
658
  */
607
- account: UsersAPI.LinkedAccount;
659
+ method: 'sms' | 'totp' | 'passkey';
608
660
 
609
661
  /**
610
662
  * The type of webhook event.
611
663
  */
612
- type: 'user.unlinked_account';
664
+ type: 'mfa.enabled';
613
665
 
614
666
  /**
615
- * A Privy user object.
667
+ * The ID of the user who enabled MFA.
616
668
  */
617
- user: UsersAPI.User;
669
+ user_id: string;
618
670
  }
619
671
 
620
672
  /**
621
- * Payload for the user.updated_account webhook event.
673
+ * Payload for the wallet.private_key_export webhook event.
622
674
  */
623
- export interface UserUpdatedAccountWebhookPayload {
675
+ export interface PrivateKeyExportWebhookPayload {
624
676
  /**
625
- * A linked account for the user.
677
+ * The type of webhook event.
626
678
  */
627
- account: UsersAPI.LinkedAccount;
679
+ type: 'wallet.private_key_export';
628
680
 
629
681
  /**
630
- * The type of webhook event.
682
+ * The ID of the user who exported the key.
631
683
  */
632
- type: 'user.updated_account';
684
+ user_id: string;
633
685
 
634
686
  /**
635
- * A Privy user object.
687
+ * The address of the wallet.
636
688
  */
637
- user: UsersAPI.User;
689
+ wallet_address: string;
690
+
691
+ /**
692
+ * The ID of the wallet.
693
+ */
694
+ wallet_id: string;
695
+
696
+ export_source?: 'display' | 'client';
638
697
  }
639
698
 
640
699
  /**
641
- * Payload for the user.transferred_account webhook event.
700
+ * Payload for the wallet.seed_phrase_export webhook event.
642
701
  */
643
- export interface UserTransferredAccountWebhookPayload {
702
+ export interface SeedPhraseExportWebhookPayload {
644
703
  /**
645
- * A linked account for the user.
704
+ * The type of webhook event.
646
705
  */
647
- account: UsersAPI.LinkedAccount;
648
-
649
- deletedUser: true;
706
+ type: 'wallet.seed_phrase_export';
650
707
 
651
- fromUser: UserTransferredAccountWebhookPayload.FromUser;
708
+ /**
709
+ * The ID of the user who exported the seed phrase.
710
+ */
711
+ user_id: string;
652
712
 
653
713
  /**
654
- * A Privy user object.
714
+ * The address of the wallet.
655
715
  */
656
- toUser: UsersAPI.User;
716
+ wallet_address: string;
657
717
 
658
718
  /**
659
- * The type of webhook event.
719
+ * The ID of the wallet.
660
720
  */
661
- type: 'user.transferred_account';
662
- }
721
+ wallet_id: string;
663
722
 
664
- export namespace UserTransferredAccountWebhookPayload {
665
- export interface FromUser {
666
- id: string;
667
- }
723
+ export_source?: 'display' | 'client';
668
724
  }
669
725
 
670
726
  /**
671
- * Payload for the user.wallet_created webhook event.
727
+ * Payload for the transaction.broadcasted webhook event.
672
728
  */
673
- export interface UserWalletCreatedWebhookPayload {
729
+ export interface TransactionBroadcastedWebhookPayload {
674
730
  /**
675
- * The type of webhook event.
731
+ * The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
676
732
  */
677
- type: 'user.wallet_created';
733
+ caip2: string;
678
734
 
679
735
  /**
680
- * A Privy user object.
736
+ * The blockchain transaction hash.
681
737
  */
682
- user: UsersAPI.User;
738
+ transaction_hash: string;
683
739
 
684
740
  /**
685
- * Base schema for wallet accounts linked to the user.
741
+ * The Privy-assigned ID for this transaction.
686
742
  */
687
- wallet: UsersAPI.LinkedAccountBaseWallet;
688
- }
743
+ transaction_id: string;
689
744
 
690
- /**
691
- * Payload for the wallet_action.swap.created webhook event.
692
- */
693
- export interface WalletActionSwapCreatedWebhookPayload {
694
745
  /**
695
- * Type of wallet action
746
+ * The type of webhook event.
696
747
  */
697
- action_type: WalletActionsAPI.WalletActionType;
748
+ type: 'transaction.broadcasted';
698
749
 
699
750
  /**
700
- * Chain identifier.
751
+ * The ID of the wallet that initiated the transaction.
701
752
  */
702
- caip2: string;
753
+ wallet_id: string;
703
754
 
704
755
  /**
705
- * Amount of input token in base units. Populated after on-chain confirmation.
756
+ * Developer-provided reference ID for transaction reconciliation, if one was
757
+ * provided.
706
758
  */
707
- input_amount: string | null;
759
+ reference_id?: string | null;
760
+ }
708
761
 
762
+ /**
763
+ * Payload for the transaction.confirmed webhook event.
764
+ */
765
+ export interface TransactionConfirmedWebhookPayload {
709
766
  /**
710
- * Token address being sold.
767
+ * The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
711
768
  */
712
- input_token: string;
769
+ caip2: string;
713
770
 
714
771
  /**
715
- * Token address being bought.
772
+ * The blockchain transaction hash.
716
773
  */
717
- output_token: string;
774
+ transaction_hash: string;
718
775
 
719
776
  /**
720
- * Status of a wallet action.
777
+ * The Privy-assigned ID for this transaction.
721
778
  */
722
- status: WalletActionsAPI.WalletActionStatus;
779
+ transaction_id: string;
723
780
 
724
781
  /**
725
782
  * The type of webhook event.
726
783
  */
727
- type: 'wallet_action.swap.created';
784
+ type: 'transaction.confirmed';
728
785
 
729
786
  /**
730
- * The ID of the wallet action.
787
+ * The ID of the wallet that initiated the transaction.
731
788
  */
732
- wallet_action_id: string;
789
+ wallet_id: string;
733
790
 
734
791
  /**
735
- * The ID of the wallet involved in the action.
792
+ * Developer-provided reference ID for transaction reconciliation, if one was
793
+ * provided.
736
794
  */
737
- wallet_id: string;
795
+ reference_id?: string | null;
738
796
  }
739
797
 
740
798
  /**
741
- * Payload for the wallet_action.swap.succeeded webhook event.
799
+ * Payload for the transaction.execution_reverted webhook event.
742
800
  */
743
- export interface WalletActionSwapSucceededWebhookPayload {
801
+ export interface TransactionExecutionRevertedWebhookPayload {
744
802
  /**
745
- * Type of wallet action
803
+ * The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
746
804
  */
747
- action_type: WalletActionsAPI.WalletActionType;
805
+ caip2: string;
748
806
 
749
807
  /**
750
- * Chain identifier.
808
+ * The blockchain transaction hash.
751
809
  */
752
- caip2: string;
810
+ transaction_hash: string;
753
811
 
754
812
  /**
755
- * Amount of input token in base units. Populated after on-chain confirmation.
813
+ * The Privy-assigned ID for this transaction.
756
814
  */
757
- input_amount: string | null;
815
+ transaction_id: string;
758
816
 
759
817
  /**
760
- * Token address being sold.
818
+ * The type of webhook event.
761
819
  */
762
- input_token: string;
820
+ type: 'transaction.execution_reverted';
763
821
 
764
822
  /**
765
- * Amount of output token received, in base units. Populated after on-chain
766
- * confirmation.
823
+ * The ID of the wallet that initiated the transaction.
767
824
  */
768
- output_amount: string | null;
825
+ wallet_id: string;
769
826
 
770
827
  /**
771
- * Token address being bought.
828
+ * Developer-provided reference ID for transaction reconciliation, if one was
829
+ * provided.
772
830
  */
773
- output_token: string;
831
+ reference_id?: string | null;
832
+ }
774
833
 
834
+ /**
835
+ * Payload for the transaction.failed webhook event.
836
+ */
837
+ export interface TransactionFailedWebhookPayload {
775
838
  /**
776
- * Status of a wallet action.
839
+ * The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
777
840
  */
778
- status: WalletActionsAPI.WalletActionStatus;
841
+ caip2: string;
779
842
 
780
843
  /**
781
- * The steps of the wallet action, including transaction hashes.
844
+ * The blockchain transaction hash.
782
845
  */
783
- steps: Array<WalletActionsAPI.WalletActionStep>;
846
+ transaction_hash: string;
784
847
 
785
848
  /**
786
- * The type of webhook event.
849
+ * The Privy-assigned ID for this transaction.
787
850
  */
788
- type: 'wallet_action.swap.succeeded';
851
+ transaction_id: string;
789
852
 
790
853
  /**
791
- * The ID of the wallet action.
854
+ * The type of webhook event.
792
855
  */
793
- wallet_action_id: string;
856
+ type: 'transaction.failed';
794
857
 
795
858
  /**
796
- * The ID of the wallet involved in the action.
859
+ * The ID of the wallet that initiated the transaction.
797
860
  */
798
861
  wallet_id: string;
862
+
863
+ /**
864
+ * Developer-provided reference ID for transaction reconciliation, if one was
865
+ * provided.
866
+ */
867
+ reference_id?: string | null;
799
868
  }
800
869
 
801
870
  /**
802
- * Payload for the wallet_action.swap.rejected webhook event.
871
+ * Payload for the transaction.provider_error webhook event.
803
872
  */
804
- export interface WalletActionSwapRejectedWebhookPayload {
873
+ export interface TransactionProviderErrorWebhookPayload {
805
874
  /**
806
- * Type of wallet action
875
+ * The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
807
876
  */
808
- action_type: WalletActionsAPI.WalletActionType;
877
+ caip2: string;
809
878
 
810
879
  /**
811
- * Chain identifier.
880
+ * The blockchain transaction hash.
812
881
  */
813
- caip2: string;
882
+ transaction_hash: string;
814
883
 
815
884
  /**
816
- * A description of why a wallet action (or a step within a wallet action) failed.
885
+ * The Privy-assigned ID for this transaction.
817
886
  */
818
- failure_reason: WalletActionsAPI.FailureReason;
887
+ transaction_id: string;
819
888
 
820
889
  /**
821
- * Amount of input token in base units. Populated after on-chain confirmation.
890
+ * The type of webhook event.
822
891
  */
823
- input_amount: string | null;
892
+ type: 'transaction.provider_error';
824
893
 
825
894
  /**
826
- * Token address being sold.
895
+ * The ID of the wallet that initiated the transaction.
827
896
  */
828
- input_token: string;
897
+ wallet_id: string;
829
898
 
830
899
  /**
831
- * Token address being bought.
900
+ * Developer-provided reference ID for transaction reconciliation, if one was
901
+ * provided.
832
902
  */
833
- output_token: string;
903
+ reference_id?: string | null;
904
+ }
834
905
 
906
+ /**
907
+ * Payload for the transaction.replaced webhook event.
908
+ */
909
+ export interface TransactionReplacedWebhookPayload {
835
910
  /**
836
- * Status of a wallet action.
911
+ * The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
837
912
  */
838
- status: WalletActionsAPI.WalletActionStatus;
913
+ caip2: string;
839
914
 
840
915
  /**
841
- * The steps of the wallet action at the time of rejection.
916
+ * The blockchain transaction hash.
842
917
  */
843
- steps: Array<WalletActionsAPI.WalletActionStep>;
918
+ transaction_hash: string;
844
919
 
845
920
  /**
846
- * The type of webhook event.
921
+ * The Privy-assigned ID for this transaction.
847
922
  */
848
- type: 'wallet_action.swap.rejected';
923
+ transaction_id: string;
849
924
 
850
925
  /**
851
- * The ID of the wallet action.
926
+ * The type of webhook event.
852
927
  */
853
- wallet_action_id: string;
928
+ type: 'transaction.replaced';
854
929
 
855
930
  /**
856
- * The ID of the wallet involved in the action.
931
+ * The ID of the wallet that initiated the transaction.
857
932
  */
858
933
  wallet_id: string;
934
+
935
+ /**
936
+ * Developer-provided reference ID for transaction reconciliation, if one was
937
+ * provided.
938
+ */
939
+ reference_id?: string | null;
859
940
  }
860
941
 
861
942
  /**
862
- * Payload for the wallet_action.swap.failed webhook event.
943
+ * Payload for the transaction.still_pending webhook event.
863
944
  */
864
- export interface WalletActionSwapFailedWebhookPayload {
865
- /**
866
- * Type of wallet action
867
- */
868
- action_type: WalletActionsAPI.WalletActionType;
869
-
945
+ export interface TransactionStillPendingWebhookPayload {
870
946
  /**
871
- * Chain identifier.
947
+ * The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
872
948
  */
873
949
  caip2: string;
874
950
 
875
951
  /**
876
- * A description of why a wallet action (or a step within a wallet action) failed.
952
+ * The blockchain transaction hash.
877
953
  */
878
- failure_reason: WalletActionsAPI.FailureReason;
954
+ transaction_hash: string;
879
955
 
880
956
  /**
881
- * Amount of input token in base units. Populated after on-chain confirmation.
957
+ * The Privy-assigned ID for this transaction.
882
958
  */
883
- input_amount: string | null;
959
+ transaction_id: string;
884
960
 
885
961
  /**
886
- * Token address being sold.
962
+ * An unsigned standard Ethereum transaction object. Supports EVM transaction types
963
+ * 0, 1, 2, and 4.
887
964
  */
888
- input_token: string;
965
+ transaction_request: WalletsAPI.UnsignedStandardEthereumTransaction;
889
966
 
890
967
  /**
891
- * Token address being bought.
968
+ * The type of webhook event.
892
969
  */
893
- output_token: string;
970
+ type: 'transaction.still_pending';
894
971
 
895
972
  /**
896
- * Status of a wallet action.
973
+ * The ID of the wallet that initiated the transaction.
897
974
  */
898
- status: WalletActionsAPI.WalletActionStatus;
975
+ wallet_id: string;
899
976
 
900
977
  /**
901
- * The steps of the wallet action. Completed steps will have transaction hashes;
902
- * the failing step will have a failure_reason.
978
+ * Developer-provided reference ID for transaction reconciliation, if one was
979
+ * provided.
903
980
  */
904
- steps: Array<WalletActionsAPI.WalletActionStep>;
981
+ reference_id?: string | null;
982
+ }
905
983
 
984
+ /**
985
+ * Payload for the user.authenticated webhook event.
986
+ */
987
+ export interface UserAuthenticatedWebhookPayload {
906
988
  /**
907
- * The type of webhook event.
989
+ * A linked account for the user.
908
990
  */
909
- type: 'wallet_action.swap.failed';
991
+ account: UsersAPI.LinkedAccount;
910
992
 
911
993
  /**
912
- * The ID of the wallet action.
994
+ * The type of webhook event.
913
995
  */
914
- wallet_action_id: string;
996
+ type: 'user.authenticated';
915
997
 
916
998
  /**
917
- * The ID of the wallet involved in the action.
999
+ * A Privy user object.
918
1000
  */
919
- wallet_id: string;
1001
+ user: UsersAPI.User;
920
1002
  }
921
1003
 
922
1004
  /**
923
- * Payload for the wallet_action.transfer.created webhook event.
1005
+ * Payload for the user.created webhook event.
924
1006
  */
925
- export interface WalletActionTransferCreatedWebhookPayload {
1007
+ export interface UserCreatedWebhookPayload {
926
1008
  /**
927
- * Type of wallet action
1009
+ * The type of webhook event.
928
1010
  */
929
- action_type: WalletActionsAPI.WalletActionType;
1011
+ type: 'user.created';
930
1012
 
931
1013
  /**
932
- * Recipient address.
1014
+ * A Privy user object.
933
1015
  */
934
- destination_address: string;
1016
+ user: UsersAPI.User;
1017
+ }
935
1018
 
1019
+ /**
1020
+ * Payload for the user.linked_account webhook event.
1021
+ */
1022
+ export interface UserLinkedAccountWebhookPayload {
936
1023
  /**
937
- * Decimal amount as provided by the user (e.g. "1.5").
1024
+ * A linked account for the user.
938
1025
  */
939
- source_amount: string;
1026
+ account: UsersAPI.LinkedAccount;
940
1027
 
941
1028
  /**
942
- * Asset identifier (e.g. "usdc", "eth").
1029
+ * The type of webhook event.
943
1030
  */
944
- source_asset: string;
1031
+ type: 'user.linked_account';
945
1032
 
946
1033
  /**
947
- * Chain name (e.g. "base", "ethereum").
1034
+ * A Privy user object.
948
1035
  */
949
- source_chain: string;
1036
+ user: UsersAPI.User;
1037
+ }
1038
+
1039
+ /**
1040
+ * Payload for the user_operation.completed webhook event.
1041
+ */
1042
+ export interface UserOperationCompletedWebhookPayload {
1043
+ actual_gas_cost: string;
1044
+
1045
+ actual_gas_used: string;
1046
+
1047
+ block_number: number;
1048
+
1049
+ caip2: string;
1050
+
1051
+ log_index: number;
1052
+
1053
+ nonce: string;
1054
+
1055
+ paymaster: string | null;
1056
+
1057
+ sender: string;
1058
+
1059
+ success: boolean;
1060
+
1061
+ transaction_hash: string;
950
1062
 
951
1063
  /**
952
- * Status of a wallet action.
1064
+ * The type of webhook event.
953
1065
  */
954
- status: WalletActionsAPI.WalletActionStatus;
1066
+ type: 'user_operation.completed';
1067
+
1068
+ user_op_hash: string;
1069
+ }
955
1070
 
1071
+ /**
1072
+ * Payload for the user.transferred_account webhook event.
1073
+ */
1074
+ export interface UserTransferredAccountWebhookPayload {
956
1075
  /**
957
- * The type of webhook event.
1076
+ * A linked account for the user.
958
1077
  */
959
- type: 'wallet_action.transfer.created';
1078
+ account: UsersAPI.LinkedAccount;
1079
+
1080
+ deletedUser: true;
1081
+
1082
+ fromUser: UserTransferredAccountWebhookPayload.FromUser;
960
1083
 
961
1084
  /**
962
- * The ID of the wallet action.
1085
+ * A Privy user object.
963
1086
  */
964
- wallet_action_id: string;
1087
+ toUser: UsersAPI.User;
965
1088
 
966
1089
  /**
967
- * The ID of the wallet involved in the action.
1090
+ * The type of webhook event.
968
1091
  */
969
- wallet_id: string;
1092
+ type: 'user.transferred_account';
1093
+ }
1094
+
1095
+ export namespace UserTransferredAccountWebhookPayload {
1096
+ export interface FromUser {
1097
+ id: string;
1098
+ }
970
1099
  }
971
1100
 
972
1101
  /**
973
- * Payload for the wallet_action.transfer.succeeded webhook event.
1102
+ * Payload for the user.unlinked_account webhook event.
974
1103
  */
975
- export interface WalletActionTransferSucceededWebhookPayload {
976
- /**
977
- * Type of wallet action
978
- */
979
- action_type: WalletActionsAPI.WalletActionType;
980
-
1104
+ export interface UserUnlinkedAccountWebhookPayload {
981
1105
  /**
982
- * Recipient address.
1106
+ * A linked account for the user.
983
1107
  */
984
- destination_address: string;
1108
+ account: UsersAPI.LinkedAccount;
985
1109
 
986
1110
  /**
987
- * Decimal amount as provided by the user (e.g. "1.5").
1111
+ * The type of webhook event.
988
1112
  */
989
- source_amount: string;
1113
+ type: 'user.unlinked_account';
990
1114
 
991
1115
  /**
992
- * Asset identifier (e.g. "usdc", "eth").
1116
+ * A Privy user object.
993
1117
  */
994
- source_asset: string;
1118
+ user: UsersAPI.User;
1119
+ }
995
1120
 
1121
+ /**
1122
+ * Payload for the user.updated_account webhook event.
1123
+ */
1124
+ export interface UserUpdatedAccountWebhookPayload {
996
1125
  /**
997
- * Chain name (e.g. "base", "ethereum").
1126
+ * A linked account for the user.
998
1127
  */
999
- source_chain: string;
1128
+ account: UsersAPI.LinkedAccount;
1000
1129
 
1001
1130
  /**
1002
- * Status of a wallet action.
1131
+ * The type of webhook event.
1003
1132
  */
1004
- status: WalletActionsAPI.WalletActionStatus;
1133
+ type: 'user.updated_account';
1005
1134
 
1006
1135
  /**
1007
- * The steps of the wallet action, including transaction hashes.
1136
+ * A Privy user object.
1008
1137
  */
1009
- steps: Array<WalletActionsAPI.WalletActionStep>;
1138
+ user: UsersAPI.User;
1139
+ }
1010
1140
 
1141
+ /**
1142
+ * Payload for the user.wallet_created webhook event.
1143
+ */
1144
+ export interface UserWalletCreatedWebhookPayload {
1011
1145
  /**
1012
1146
  * The type of webhook event.
1013
1147
  */
1014
- type: 'wallet_action.transfer.succeeded';
1148
+ type: 'user.wallet_created';
1015
1149
 
1016
1150
  /**
1017
- * The ID of the wallet action.
1151
+ * A Privy user object.
1018
1152
  */
1019
- wallet_action_id: string;
1153
+ user: UsersAPI.User;
1020
1154
 
1021
1155
  /**
1022
- * The ID of the wallet involved in the action.
1156
+ * Base schema for wallet accounts linked to the user.
1023
1157
  */
1024
- wallet_id: string;
1158
+ wallet: UsersAPI.LinkedAccountBaseWallet;
1025
1159
  }
1026
1160
 
1027
1161
  /**
1028
- * Payload for the wallet_action.transfer.rejected webhook event.
1162
+ * Payload for the wallet_action.earn_deposit.created webhook event.
1029
1163
  */
1030
- export interface WalletActionTransferRejectedWebhookPayload {
1164
+ export interface WalletActionEarnDepositCreatedWebhookPayload {
1031
1165
  /**
1032
1166
  * Type of wallet action
1033
1167
  */
1034
1168
  action_type: WalletActionsAPI.WalletActionType;
1035
1169
 
1036
1170
  /**
1037
- * Recipient address.
1038
- */
1039
- destination_address: string;
1040
-
1041
- /**
1042
- * A description of why a wallet action (or a step within a wallet action) failed.
1171
+ * Underlying asset token address.
1043
1172
  */
1044
- failure_reason: WalletActionsAPI.FailureReason;
1173
+ asset_address: string;
1045
1174
 
1046
1175
  /**
1047
- * Decimal amount as provided by the user (e.g. "1.5").
1176
+ * CAIP-2 chain identifier.
1048
1177
  */
1049
- source_amount: string;
1178
+ caip2: string;
1050
1179
 
1051
1180
  /**
1052
- * Asset identifier (e.g. "usdc", "eth").
1181
+ * Base-unit amount of asset deposited (e.g. "1500000").
1053
1182
  */
1054
- source_asset: string;
1183
+ raw_amount: string;
1055
1184
 
1056
1185
  /**
1057
- * Chain name (e.g. "base", "ethereum").
1186
+ * The status of the wallet action.
1058
1187
  */
1059
- source_chain: string;
1188
+ status: 'pending';
1060
1189
 
1061
1190
  /**
1062
- * Status of a wallet action.
1191
+ * The type of webhook event.
1063
1192
  */
1064
- status: WalletActionsAPI.WalletActionStatus;
1193
+ type: 'wallet_action.earn_deposit.created';
1065
1194
 
1066
1195
  /**
1067
- * The steps of the wallet action at the time of rejection.
1196
+ * ERC-4626 vault contract address.
1068
1197
  */
1069
- steps: Array<WalletActionsAPI.WalletActionStep>;
1198
+ vault_address: string;
1070
1199
 
1071
1200
  /**
1072
- * The type of webhook event.
1201
+ * The vault ID.
1073
1202
  */
1074
- type: 'wallet_action.transfer.rejected';
1203
+ vault_id: string;
1075
1204
 
1076
1205
  /**
1077
1206
  * The ID of the wallet action.
@@ -1082,21 +1211,44 @@ export interface WalletActionTransferRejectedWebhookPayload {
1082
1211
  * The ID of the wallet involved in the action.
1083
1212
  */
1084
1213
  wallet_id: string;
1214
+
1215
+ /**
1216
+ * Human-readable decimal amount of asset deposited (e.g. "1.5"). Only present when
1217
+ * the token is known in the asset registry.
1218
+ */
1219
+ amount?: string;
1220
+
1221
+ /**
1222
+ * Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
1223
+ * the asset registry.
1224
+ */
1225
+ asset?: string;
1226
+
1227
+ /**
1228
+ * Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
1229
+ * present when the token is known in the asset registry.
1230
+ */
1231
+ decimals?: number;
1085
1232
  }
1086
1233
 
1087
1234
  /**
1088
- * Payload for the wallet_action.transfer.failed webhook event.
1235
+ * Payload for the wallet_action.earn_deposit.failed webhook event.
1089
1236
  */
1090
- export interface WalletActionTransferFailedWebhookPayload {
1237
+ export interface WalletActionEarnDepositFailedWebhookPayload {
1091
1238
  /**
1092
1239
  * Type of wallet action
1093
1240
  */
1094
1241
  action_type: WalletActionsAPI.WalletActionType;
1095
1242
 
1096
1243
  /**
1097
- * Recipient address.
1244
+ * Underlying asset token address.
1098
1245
  */
1099
- destination_address: string;
1246
+ asset_address: string;
1247
+
1248
+ /**
1249
+ * CAIP-2 chain identifier.
1250
+ */
1251
+ caip2: string;
1100
1252
 
1101
1253
  /**
1102
1254
  * A description of why a wallet action (or a step within a wallet action) failed.
@@ -1104,51 +1256,69 @@ export interface WalletActionTransferFailedWebhookPayload {
1104
1256
  failure_reason: WalletActionsAPI.FailureReason;
1105
1257
 
1106
1258
  /**
1107
- * Decimal amount as provided by the user (e.g. "1.5").
1259
+ * Base-unit amount of asset deposited (e.g. "1500000").
1260
+ */
1261
+ raw_amount: string;
1262
+
1263
+ /**
1264
+ * The status of the wallet action.
1265
+ */
1266
+ status: 'failed';
1267
+
1268
+ /**
1269
+ * The steps of the wallet action. Completed steps will have transaction hashes;
1270
+ * the failing step will have a failure_reason.
1271
+ */
1272
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1273
+
1274
+ /**
1275
+ * The type of webhook event.
1108
1276
  */
1109
- source_amount: string;
1277
+ type: 'wallet_action.earn_deposit.failed';
1110
1278
 
1111
1279
  /**
1112
- * Asset identifier (e.g. "usdc", "eth").
1280
+ * ERC-4626 vault contract address.
1113
1281
  */
1114
- source_asset: string;
1282
+ vault_address: string;
1115
1283
 
1116
1284
  /**
1117
- * Chain name (e.g. "base", "ethereum").
1285
+ * The vault ID.
1118
1286
  */
1119
- source_chain: string;
1287
+ vault_id: string;
1120
1288
 
1121
1289
  /**
1122
- * Status of a wallet action.
1290
+ * The ID of the wallet action.
1123
1291
  */
1124
- status: WalletActionsAPI.WalletActionStatus;
1292
+ wallet_action_id: string;
1125
1293
 
1126
1294
  /**
1127
- * The steps of the wallet action. Completed steps will have transaction hashes;
1128
- * the failing step will have a failure_reason.
1295
+ * The ID of the wallet involved in the action.
1129
1296
  */
1130
- steps: Array<WalletActionsAPI.WalletActionStep>;
1297
+ wallet_id: string;
1131
1298
 
1132
1299
  /**
1133
- * The type of webhook event.
1300
+ * Human-readable decimal amount of asset deposited (e.g. "1.5"). Only present when
1301
+ * the token is known in the asset registry.
1134
1302
  */
1135
- type: 'wallet_action.transfer.failed';
1303
+ amount?: string;
1136
1304
 
1137
1305
  /**
1138
- * The ID of the wallet action.
1306
+ * Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
1307
+ * the asset registry.
1139
1308
  */
1140
- wallet_action_id: string;
1309
+ asset?: string;
1141
1310
 
1142
1311
  /**
1143
- * The ID of the wallet involved in the action.
1312
+ * Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
1313
+ * present when the token is known in the asset registry.
1144
1314
  */
1145
- wallet_id: string;
1315
+ decimals?: number;
1146
1316
  }
1147
1317
 
1148
1318
  /**
1149
- * Payload for the wallet_action.earn_deposit.created webhook event.
1319
+ * Payload for the wallet_action.earn_deposit.rejected webhook event.
1150
1320
  */
1151
- export interface WalletActionEarnDepositCreatedWebhookPayload {
1321
+ export interface WalletActionEarnDepositRejectedWebhookPayload {
1152
1322
  /**
1153
1323
  * Type of wallet action
1154
1324
  */
@@ -1164,20 +1334,30 @@ export interface WalletActionEarnDepositCreatedWebhookPayload {
1164
1334
  */
1165
1335
  caip2: string;
1166
1336
 
1337
+ /**
1338
+ * A description of why a wallet action (or a step within a wallet action) failed.
1339
+ */
1340
+ failure_reason: WalletActionsAPI.FailureReason;
1341
+
1167
1342
  /**
1168
1343
  * Base-unit amount of asset deposited (e.g. "1500000").
1169
1344
  */
1170
1345
  raw_amount: string;
1171
1346
 
1172
1347
  /**
1173
- * Status of a wallet action.
1348
+ * The status of the wallet action.
1349
+ */
1350
+ status: 'rejected';
1351
+
1352
+ /**
1353
+ * The steps of the wallet action at the time of rejection.
1174
1354
  */
1175
- status: WalletActionsAPI.WalletActionStatus;
1355
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1176
1356
 
1177
1357
  /**
1178
1358
  * The type of webhook event.
1179
1359
  */
1180
- type: 'wallet_action.earn_deposit.created';
1360
+ type: 'wallet_action.earn_deposit.rejected';
1181
1361
 
1182
1362
  /**
1183
1363
  * ERC-4626 vault contract address.
@@ -1248,9 +1428,9 @@ export interface WalletActionEarnDepositSucceededWebhookPayload {
1248
1428
  share_amount: string;
1249
1429
 
1250
1430
  /**
1251
- * Status of a wallet action.
1431
+ * The status of the wallet action.
1252
1432
  */
1253
- status: WalletActionsAPI.WalletActionStatus;
1433
+ status: 'succeeded';
1254
1434
 
1255
1435
  /**
1256
1436
  * The steps of the wallet action, including transaction hashes.
@@ -1302,106 +1482,109 @@ export interface WalletActionEarnDepositSucceededWebhookPayload {
1302
1482
  }
1303
1483
 
1304
1484
  /**
1305
- * Payload for the wallet_action.earn_deposit.rejected webhook event.
1485
+ * Payload for the wallet_action.earn_incentive_claim.created webhook event.
1306
1486
  */
1307
- export interface WalletActionEarnDepositRejectedWebhookPayload {
1487
+ export interface WalletActionEarnIncentiveClaimCreatedWebhookPayload {
1308
1488
  /**
1309
1489
  * Type of wallet action
1310
1490
  */
1311
1491
  action_type: WalletActionsAPI.WalletActionType;
1312
1492
 
1313
1493
  /**
1314
- * Underlying asset token address.
1494
+ * EVM chain name (e.g. "base", "ethereum").
1315
1495
  */
1316
- asset_address: string;
1496
+ chain: string;
1317
1497
 
1318
1498
  /**
1319
- * CAIP-2 chain identifier.
1499
+ * Claimed reward tokens. Populated after the preparation step fetches from Merkl.
1320
1500
  */
1321
- caip2: string;
1501
+ rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
1322
1502
 
1323
1503
  /**
1324
- * A description of why a wallet action (or a step within a wallet action) failed.
1504
+ * The status of the wallet action.
1325
1505
  */
1326
- failure_reason: WalletActionsAPI.FailureReason;
1506
+ status: 'pending';
1327
1507
 
1328
1508
  /**
1329
- * Base-unit amount of asset deposited (e.g. "1500000").
1509
+ * The type of webhook event.
1330
1510
  */
1331
- raw_amount: string;
1511
+ type: 'wallet_action.earn_incentive_claim.created';
1332
1512
 
1333
1513
  /**
1334
- * Status of a wallet action.
1514
+ * The ID of the wallet action.
1335
1515
  */
1336
- status: WalletActionsAPI.WalletActionStatus;
1516
+ wallet_action_id: string;
1337
1517
 
1338
1518
  /**
1339
- * The steps of the wallet action at the time of rejection.
1519
+ * The ID of the wallet involved in the action.
1340
1520
  */
1341
- steps: Array<WalletActionsAPI.WalletActionStep>;
1521
+ wallet_id: string;
1522
+ }
1342
1523
 
1524
+ /**
1525
+ * Payload for the wallet_action.earn_incentive_claim.failed webhook event.
1526
+ */
1527
+ export interface WalletActionEarnIncentiveClaimFailedWebhookPayload {
1343
1528
  /**
1344
- * The type of webhook event.
1529
+ * Type of wallet action
1345
1530
  */
1346
- type: 'wallet_action.earn_deposit.rejected';
1531
+ action_type: WalletActionsAPI.WalletActionType;
1347
1532
 
1348
1533
  /**
1349
- * ERC-4626 vault contract address.
1534
+ * EVM chain name (e.g. "base", "ethereum").
1350
1535
  */
1351
- vault_address: string;
1536
+ chain: string;
1352
1537
 
1353
1538
  /**
1354
- * The vault ID.
1539
+ * A description of why a wallet action (or a step within a wallet action) failed.
1355
1540
  */
1356
- vault_id: string;
1541
+ failure_reason: WalletActionsAPI.FailureReason;
1357
1542
 
1358
1543
  /**
1359
- * The ID of the wallet action.
1544
+ * Claimed reward tokens. Populated after the preparation step fetches from Merkl.
1360
1545
  */
1361
- wallet_action_id: string;
1546
+ rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
1362
1547
 
1363
1548
  /**
1364
- * The ID of the wallet involved in the action.
1549
+ * The status of the wallet action.
1365
1550
  */
1366
- wallet_id: string;
1551
+ status: 'failed';
1367
1552
 
1368
1553
  /**
1369
- * Human-readable decimal amount of asset deposited (e.g. "1.5"). Only present when
1370
- * the token is known in the asset registry.
1554
+ * The steps of the wallet action. Completed steps will have transaction hashes;
1555
+ * the failing step will have a failure_reason.
1371
1556
  */
1372
- amount?: string;
1557
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1373
1558
 
1374
1559
  /**
1375
- * Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
1376
- * the asset registry.
1560
+ * The type of webhook event.
1377
1561
  */
1378
- asset?: string;
1562
+ type: 'wallet_action.earn_incentive_claim.failed';
1379
1563
 
1380
1564
  /**
1381
- * Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
1382
- * present when the token is known in the asset registry.
1565
+ * The ID of the wallet action.
1383
1566
  */
1384
- decimals?: number;
1567
+ wallet_action_id: string;
1568
+
1569
+ /**
1570
+ * The ID of the wallet involved in the action.
1571
+ */
1572
+ wallet_id: string;
1385
1573
  }
1386
1574
 
1387
1575
  /**
1388
- * Payload for the wallet_action.earn_deposit.failed webhook event.
1576
+ * Payload for the wallet_action.earn_incentive_claim.rejected webhook event.
1389
1577
  */
1390
- export interface WalletActionEarnDepositFailedWebhookPayload {
1578
+ export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
1391
1579
  /**
1392
1580
  * Type of wallet action
1393
1581
  */
1394
1582
  action_type: WalletActionsAPI.WalletActionType;
1395
1583
 
1396
1584
  /**
1397
- * Underlying asset token address.
1398
- */
1399
- asset_address: string;
1400
-
1401
- /**
1402
- * CAIP-2 chain identifier.
1585
+ * EVM chain name (e.g. "base", "ethereum").
1403
1586
  */
1404
- caip2: string;
1587
+ chain: string;
1405
1588
 
1406
1589
  /**
1407
1590
  * A description of why a wallet action (or a step within a wallet action) failed.
@@ -1409,63 +1592,79 @@ export interface WalletActionEarnDepositFailedWebhookPayload {
1409
1592
  failure_reason: WalletActionsAPI.FailureReason;
1410
1593
 
1411
1594
  /**
1412
- * Base-unit amount of asset deposited (e.g. "1500000").
1595
+ * Claimed reward tokens. Populated after the preparation step fetches from Merkl.
1413
1596
  */
1414
- raw_amount: string;
1597
+ rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
1415
1598
 
1416
1599
  /**
1417
- * Status of a wallet action.
1600
+ * The status of the wallet action.
1418
1601
  */
1419
- status: WalletActionsAPI.WalletActionStatus;
1602
+ status: 'rejected';
1420
1603
 
1421
1604
  /**
1422
- * The steps of the wallet action. Completed steps will have transaction hashes;
1423
- * the failing step will have a failure_reason.
1605
+ * The steps of the wallet action at the time of rejection.
1424
1606
  */
1425
1607
  steps: Array<WalletActionsAPI.WalletActionStep>;
1426
1608
 
1427
1609
  /**
1428
1610
  * The type of webhook event.
1429
1611
  */
1430
- type: 'wallet_action.earn_deposit.failed';
1612
+ type: 'wallet_action.earn_incentive_claim.rejected';
1431
1613
 
1432
1614
  /**
1433
- * ERC-4626 vault contract address.
1615
+ * The ID of the wallet action.
1434
1616
  */
1435
- vault_address: string;
1617
+ wallet_action_id: string;
1436
1618
 
1437
1619
  /**
1438
- * The vault ID.
1620
+ * The ID of the wallet involved in the action.
1439
1621
  */
1440
- vault_id: string;
1622
+ wallet_id: string;
1623
+ }
1441
1624
 
1625
+ /**
1626
+ * Payload for the wallet_action.earn_incentive_claim.succeeded webhook event.
1627
+ */
1628
+ export interface WalletActionEarnIncentiveClaimSucceededWebhookPayload {
1442
1629
  /**
1443
- * The ID of the wallet action.
1630
+ * Type of wallet action
1444
1631
  */
1445
- wallet_action_id: string;
1632
+ action_type: WalletActionsAPI.WalletActionType;
1446
1633
 
1447
1634
  /**
1448
- * The ID of the wallet involved in the action.
1635
+ * EVM chain name (e.g. "base", "ethereum").
1449
1636
  */
1450
- wallet_id: string;
1637
+ chain: string;
1451
1638
 
1452
1639
  /**
1453
- * Human-readable decimal amount of asset deposited (e.g. "1.5"). Only present when
1454
- * the token is known in the asset registry.
1640
+ * Claimed reward tokens. Populated after the preparation step fetches from Merkl.
1455
1641
  */
1456
- amount?: string;
1642
+ rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
1457
1643
 
1458
1644
  /**
1459
- * Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
1460
- * the asset registry.
1645
+ * The status of the wallet action.
1461
1646
  */
1462
- asset?: string;
1647
+ status: 'succeeded';
1463
1648
 
1464
1649
  /**
1465
- * Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
1466
- * present when the token is known in the asset registry.
1650
+ * The steps of the wallet action, including transaction hashes.
1467
1651
  */
1468
- decimals?: number;
1652
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1653
+
1654
+ /**
1655
+ * The type of webhook event.
1656
+ */
1657
+ type: 'wallet_action.earn_incentive_claim.succeeded';
1658
+
1659
+ /**
1660
+ * The ID of the wallet action.
1661
+ */
1662
+ wallet_action_id: string;
1663
+
1664
+ /**
1665
+ * The ID of the wallet involved in the action.
1666
+ */
1667
+ wallet_id: string;
1469
1668
  }
1470
1669
 
1471
1670
  /**
@@ -1493,9 +1692,9 @@ export interface WalletActionEarnWithdrawCreatedWebhookPayload {
1493
1692
  raw_amount: string;
1494
1693
 
1495
1694
  /**
1496
- * Status of a wallet action.
1695
+ * The status of the wallet action.
1497
1696
  */
1498
- status: WalletActionsAPI.WalletActionStatus;
1697
+ status: 'pending';
1499
1698
 
1500
1699
  /**
1501
1700
  * The type of webhook event.
@@ -1542,9 +1741,9 @@ export interface WalletActionEarnWithdrawCreatedWebhookPayload {
1542
1741
  }
1543
1742
 
1544
1743
  /**
1545
- * Payload for the wallet_action.earn_withdraw.succeeded webhook event.
1744
+ * Payload for the wallet_action.earn_withdraw.failed webhook event.
1546
1745
  */
1547
- export interface WalletActionEarnWithdrawSucceededWebhookPayload {
1746
+ export interface WalletActionEarnWithdrawFailedWebhookPayload {
1548
1747
  /**
1549
1748
  * Type of wallet action
1550
1749
  */
@@ -1561,29 +1760,30 @@ export interface WalletActionEarnWithdrawSucceededWebhookPayload {
1561
1760
  caip2: string;
1562
1761
 
1563
1762
  /**
1564
- * Base-unit amount of asset withdrawn (e.g. "1500000").
1763
+ * A description of why a wallet action (or a step within a wallet action) failed.
1565
1764
  */
1566
- raw_amount: string;
1765
+ failure_reason: WalletActionsAPI.FailureReason;
1567
1766
 
1568
1767
  /**
1569
- * Vault shares burned in base units.
1768
+ * Base-unit amount of asset withdrawn (e.g. "1500000").
1570
1769
  */
1571
- share_amount: string;
1770
+ raw_amount: string;
1572
1771
 
1573
1772
  /**
1574
- * Status of a wallet action.
1773
+ * The status of the wallet action.
1575
1774
  */
1576
- status: WalletActionsAPI.WalletActionStatus;
1775
+ status: 'failed';
1577
1776
 
1578
1777
  /**
1579
- * The steps of the wallet action, including transaction hashes.
1778
+ * The steps of the wallet action. Completed steps will have transaction hashes;
1779
+ * the failing step will have a failure_reason.
1580
1780
  */
1581
1781
  steps: Array<WalletActionsAPI.WalletActionStep>;
1582
1782
 
1583
1783
  /**
1584
1784
  * The type of webhook event.
1585
1785
  */
1586
- type: 'wallet_action.earn_withdraw.succeeded';
1786
+ type: 'wallet_action.earn_withdraw.failed';
1587
1787
 
1588
1788
  /**
1589
1789
  * ERC-4626 vault contract address.
@@ -1654,9 +1854,9 @@ export interface WalletActionEarnWithdrawRejectedWebhookPayload {
1654
1854
  raw_amount: string;
1655
1855
 
1656
1856
  /**
1657
- * Status of a wallet action.
1857
+ * The status of the wallet action.
1658
1858
  */
1659
- status: WalletActionsAPI.WalletActionStatus;
1859
+ status: 'rejected';
1660
1860
 
1661
1861
  /**
1662
1862
  * The steps of the wallet action at the time of rejection.
@@ -1708,9 +1908,9 @@ export interface WalletActionEarnWithdrawRejectedWebhookPayload {
1708
1908
  }
1709
1909
 
1710
1910
  /**
1711
- * Payload for the wallet_action.earn_withdraw.failed webhook event.
1911
+ * Payload for the wallet_action.earn_withdraw.succeeded webhook event.
1712
1912
  */
1713
- export interface WalletActionEarnWithdrawFailedWebhookPayload {
1913
+ export interface WalletActionEarnWithdrawSucceededWebhookPayload {
1714
1914
  /**
1715
1915
  * Type of wallet action
1716
1916
  */
@@ -1727,30 +1927,29 @@ export interface WalletActionEarnWithdrawFailedWebhookPayload {
1727
1927
  caip2: string;
1728
1928
 
1729
1929
  /**
1730
- * A description of why a wallet action (or a step within a wallet action) failed.
1930
+ * Base-unit amount of asset withdrawn (e.g. "1500000").
1731
1931
  */
1732
- failure_reason: WalletActionsAPI.FailureReason;
1932
+ raw_amount: string;
1733
1933
 
1734
1934
  /**
1735
- * Base-unit amount of asset withdrawn (e.g. "1500000").
1935
+ * Vault shares burned in base units.
1736
1936
  */
1737
- raw_amount: string;
1937
+ share_amount: string;
1738
1938
 
1739
1939
  /**
1740
- * Status of a wallet action.
1940
+ * The status of the wallet action.
1741
1941
  */
1742
- status: WalletActionsAPI.WalletActionStatus;
1942
+ status: 'succeeded';
1743
1943
 
1744
1944
  /**
1745
- * The steps of the wallet action. Completed steps will have transaction hashes;
1746
- * the failing step will have a failure_reason.
1945
+ * The steps of the wallet action, including transaction hashes.
1747
1946
  */
1748
1947
  steps: Array<WalletActionsAPI.WalletActionStep>;
1749
1948
 
1750
1949
  /**
1751
1950
  * The type of webhook event.
1752
1951
  */
1753
- type: 'wallet_action.earn_withdraw.failed';
1952
+ type: 'wallet_action.earn_withdraw.succeeded';
1754
1953
 
1755
1954
  /**
1756
1955
  * ERC-4626 vault contract address.
@@ -1792,33 +1991,43 @@ export interface WalletActionEarnWithdrawFailedWebhookPayload {
1792
1991
  }
1793
1992
 
1794
1993
  /**
1795
- * Payload for the wallet_action.earn_incentive_claim.created webhook event.
1994
+ * Payload for the wallet_action.swap.created webhook event.
1796
1995
  */
1797
- export interface WalletActionEarnIncentiveClaimCreatedWebhookPayload {
1996
+ export interface WalletActionSwapCreatedWebhookPayload {
1798
1997
  /**
1799
1998
  * Type of wallet action
1800
1999
  */
1801
2000
  action_type: WalletActionsAPI.WalletActionType;
1802
2001
 
1803
2002
  /**
1804
- * EVM chain name (e.g. "base", "ethereum").
2003
+ * Chain identifier.
1805
2004
  */
1806
- chain: string;
2005
+ caip2: string;
1807
2006
 
1808
2007
  /**
1809
- * Claimed reward tokens. Populated after the preparation step fetches from Merkl.
2008
+ * Amount of input token in base units. Populated after on-chain confirmation.
1810
2009
  */
1811
- rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
2010
+ input_amount: string | null;
2011
+
2012
+ /**
2013
+ * Token address being sold.
2014
+ */
2015
+ input_token: string;
1812
2016
 
1813
2017
  /**
1814
- * Status of a wallet action.
2018
+ * Token address being bought.
2019
+ */
2020
+ output_token: string;
2021
+
2022
+ /**
2023
+ * The status of the wallet action.
1815
2024
  */
1816
- status: WalletActionsAPI.WalletActionStatus;
2025
+ status: 'pending';
1817
2026
 
1818
2027
  /**
1819
2028
  * The type of webhook event.
1820
2029
  */
1821
- type: 'wallet_action.earn_incentive_claim.created';
2030
+ type: 'wallet_action.swap.created';
1822
2031
 
1823
2032
  /**
1824
2033
  * The ID of the wallet action.
@@ -1832,38 +2041,54 @@ export interface WalletActionEarnIncentiveClaimCreatedWebhookPayload {
1832
2041
  }
1833
2042
 
1834
2043
  /**
1835
- * Payload for the wallet_action.earn_incentive_claim.succeeded webhook event.
2044
+ * Payload for the wallet_action.swap.failed webhook event.
1836
2045
  */
1837
- export interface WalletActionEarnIncentiveClaimSucceededWebhookPayload {
2046
+ export interface WalletActionSwapFailedWebhookPayload {
2047
+ /**
2048
+ * Type of wallet action
2049
+ */
2050
+ action_type: WalletActionsAPI.WalletActionType;
2051
+
2052
+ /**
2053
+ * Chain identifier.
2054
+ */
2055
+ caip2: string;
2056
+
2057
+ /**
2058
+ * A description of why a wallet action (or a step within a wallet action) failed.
2059
+ */
2060
+ failure_reason: WalletActionsAPI.FailureReason;
2061
+
1838
2062
  /**
1839
- * Type of wallet action
2063
+ * Amount of input token in base units. Populated after on-chain confirmation.
1840
2064
  */
1841
- action_type: WalletActionsAPI.WalletActionType;
2065
+ input_amount: string | null;
1842
2066
 
1843
2067
  /**
1844
- * EVM chain name (e.g. "base", "ethereum").
2068
+ * Token address being sold.
1845
2069
  */
1846
- chain: string;
2070
+ input_token: string;
1847
2071
 
1848
2072
  /**
1849
- * Claimed reward tokens. Populated after the preparation step fetches from Merkl.
2073
+ * Token address being bought.
1850
2074
  */
1851
- rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
2075
+ output_token: string;
1852
2076
 
1853
2077
  /**
1854
- * Status of a wallet action.
2078
+ * The status of the wallet action.
1855
2079
  */
1856
- status: WalletActionsAPI.WalletActionStatus;
2080
+ status: 'failed';
1857
2081
 
1858
2082
  /**
1859
- * The steps of the wallet action, including transaction hashes.
2083
+ * The steps of the wallet action. Completed steps will have transaction hashes;
2084
+ * the failing step will have a failure_reason.
1860
2085
  */
1861
2086
  steps: Array<WalletActionsAPI.WalletActionStep>;
1862
2087
 
1863
2088
  /**
1864
2089
  * The type of webhook event.
1865
2090
  */
1866
- type: 'wallet_action.earn_incentive_claim.succeeded';
2091
+ type: 'wallet_action.swap.failed';
1867
2092
 
1868
2093
  /**
1869
2094
  * The ID of the wallet action.
@@ -1877,18 +2102,18 @@ export interface WalletActionEarnIncentiveClaimSucceededWebhookPayload {
1877
2102
  }
1878
2103
 
1879
2104
  /**
1880
- * Payload for the wallet_action.earn_incentive_claim.rejected webhook event.
2105
+ * Payload for the wallet_action.swap.rejected webhook event.
1881
2106
  */
1882
- export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
2107
+ export interface WalletActionSwapRejectedWebhookPayload {
1883
2108
  /**
1884
2109
  * Type of wallet action
1885
2110
  */
1886
2111
  action_type: WalletActionsAPI.WalletActionType;
1887
2112
 
1888
2113
  /**
1889
- * EVM chain name (e.g. "base", "ethereum").
2114
+ * Chain identifier.
1890
2115
  */
1891
- chain: string;
2116
+ caip2: string;
1892
2117
 
1893
2118
  /**
1894
2119
  * A description of why a wallet action (or a step within a wallet action) failed.
@@ -1896,14 +2121,24 @@ export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
1896
2121
  failure_reason: WalletActionsAPI.FailureReason;
1897
2122
 
1898
2123
  /**
1899
- * Claimed reward tokens. Populated after the preparation step fetches from Merkl.
2124
+ * Amount of input token in base units. Populated after on-chain confirmation.
1900
2125
  */
1901
- rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
2126
+ input_amount: string | null;
2127
+
2128
+ /**
2129
+ * Token address being sold.
2130
+ */
2131
+ input_token: string;
2132
+
2133
+ /**
2134
+ * Token address being bought.
2135
+ */
2136
+ output_token: string;
1902
2137
 
1903
2138
  /**
1904
- * Status of a wallet action.
2139
+ * The status of the wallet action.
1905
2140
  */
1906
- status: WalletActionsAPI.WalletActionStatus;
2141
+ status: 'rejected';
1907
2142
 
1908
2143
  /**
1909
2144
  * The steps of the wallet action at the time of rejection.
@@ -1913,7 +2148,7 @@ export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
1913
2148
  /**
1914
2149
  * The type of webhook event.
1915
2150
  */
1916
- type: 'wallet_action.earn_incentive_claim.rejected';
2151
+ type: 'wallet_action.swap.rejected';
1917
2152
 
1918
2153
  /**
1919
2154
  * The ID of the wallet action.
@@ -1927,44 +2162,54 @@ export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
1927
2162
  }
1928
2163
 
1929
2164
  /**
1930
- * Payload for the wallet_action.earn_incentive_claim.failed webhook event.
2165
+ * Payload for the wallet_action.swap.succeeded webhook event.
1931
2166
  */
1932
- export interface WalletActionEarnIncentiveClaimFailedWebhookPayload {
2167
+ export interface WalletActionSwapSucceededWebhookPayload {
1933
2168
  /**
1934
2169
  * Type of wallet action
1935
2170
  */
1936
2171
  action_type: WalletActionsAPI.WalletActionType;
1937
2172
 
1938
2173
  /**
1939
- * EVM chain name (e.g. "base", "ethereum").
2174
+ * Chain identifier.
1940
2175
  */
1941
- chain: string;
2176
+ caip2: string;
1942
2177
 
1943
2178
  /**
1944
- * A description of why a wallet action (or a step within a wallet action) failed.
2179
+ * Amount of input token in base units. Populated after on-chain confirmation.
1945
2180
  */
1946
- failure_reason: WalletActionsAPI.FailureReason;
2181
+ input_amount: string | null;
1947
2182
 
1948
2183
  /**
1949
- * Claimed reward tokens. Populated after the preparation step fetches from Merkl.
2184
+ * Token address being sold.
1950
2185
  */
1951
- rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
2186
+ input_token: string;
1952
2187
 
1953
2188
  /**
1954
- * Status of a wallet action.
2189
+ * Amount of output token received, in base units. Populated after on-chain
2190
+ * confirmation.
1955
2191
  */
1956
- status: WalletActionsAPI.WalletActionStatus;
2192
+ output_amount: string | null;
1957
2193
 
1958
2194
  /**
1959
- * The steps of the wallet action. Completed steps will have transaction hashes;
1960
- * the failing step will have a failure_reason.
2195
+ * Token address being bought.
2196
+ */
2197
+ output_token: string;
2198
+
2199
+ /**
2200
+ * The status of the wallet action.
2201
+ */
2202
+ status: 'succeeded';
2203
+
2204
+ /**
2205
+ * The steps of the wallet action, including transaction hashes.
1961
2206
  */
1962
2207
  steps: Array<WalletActionsAPI.WalletActionStep>;
1963
2208
 
1964
2209
  /**
1965
2210
  * The type of webhook event.
1966
2211
  */
1967
- type: 'wallet_action.earn_incentive_claim.failed';
2212
+ type: 'wallet_action.swap.succeeded';
1968
2213
 
1969
2214
  /**
1970
2215
  * The ID of the wallet action.
@@ -1978,393 +2223,330 @@ export interface WalletActionEarnIncentiveClaimFailedWebhookPayload {
1978
2223
  }
1979
2224
 
1980
2225
  /**
1981
- * A native token asset (e.g. ETH, SOL).
1982
- */
1983
- export interface WalletFundsNativeTokenAsset {
1984
- address: null;
1985
-
1986
- type: 'native-token';
1987
- }
1988
-
1989
- /**
1990
- * An ERC-20 token asset.
1991
- */
1992
- export interface WalletFundsErc20Asset {
1993
- address: string;
1994
-
1995
- type: 'erc20';
1996
- }
1997
-
1998
- /**
1999
- * A Solana SPL token asset.
2000
- */
2001
- export interface WalletFundsSplAsset {
2002
- mint: string;
2003
-
2004
- type: 'spl';
2005
- }
2006
-
2007
- /**
2008
- * A Stellar Asset Contract (SAC) asset.
2009
- */
2010
- export interface WalletFundsSacAsset {
2011
- address: string;
2012
-
2013
- type: 'sac';
2014
- }
2015
-
2016
- /**
2017
- * An asset involved in a wallet transfer.
2018
- */
2019
- export type WalletFundsAsset =
2020
- | WalletFundsNativeTokenAsset
2021
- | WalletFundsErc20Asset
2022
- | WalletFundsSplAsset
2023
- | WalletFundsSacAsset;
2024
-
2025
- /**
2026
- * Bridge metadata for a crypto deposit via liquidation address.
2226
+ * Payload for the wallet_action.transfer.created webhook event.
2027
2227
  */
2028
- export interface BridgeCryptoDepositMetadata {
2029
- drain_id: string;
2030
-
2228
+ export interface WalletActionTransferCreatedWebhookPayload {
2031
2229
  /**
2032
- * The crypto address of the liquidation address that received the deposit.
2230
+ * Type of wallet action
2033
2231
  */
2034
- liquidation_address: string;
2035
-
2036
- liquidation_address_id: string;
2037
-
2038
- method: 'liquidation_address';
2232
+ action_type: WalletActionsAPI.WalletActionType;
2039
2233
 
2040
2234
  /**
2041
- * The address that sent the deposit.
2235
+ * Recipient address.
2042
2236
  */
2043
- source_wallet_address: string;
2044
-
2045
- type: 'crypto_deposit';
2046
- }
2047
-
2048
- /**
2049
- * Bridge metadata for a refund via liquidation address.
2050
- */
2051
- export interface BridgeRefundMetadata {
2052
- drain_id: string;
2053
-
2054
- liquidation_address_id: string;
2055
-
2056
- method: 'liquidation_address';
2237
+ destination_address: string;
2057
2238
 
2058
2239
  /**
2059
- * The original deposit transaction hash that triggered the failed drain.
2240
+ * Chain name (e.g. "base", "ethereum").
2060
2241
  */
2061
- original_transaction_hash: string;
2062
-
2063
- type: 'refund';
2064
- }
2065
-
2066
- /**
2067
- * Bridge metadata for a fiat deposit via virtual account.
2068
- */
2069
- export interface BridgeFiatDepositMetadata {
2070
- activity_id: string;
2071
-
2072
- method: 'virtual_account';
2073
-
2074
- type: 'fiat_deposit';
2075
-
2076
- virtual_account_id: string;
2077
- }
2078
-
2079
- /**
2080
- * Bridge metadata for a crypto deposit via transfer.
2081
- */
2082
- export interface BridgeCryptoTransferMetadata {
2083
- method: 'transfer';
2242
+ source_chain: string;
2084
2243
 
2085
2244
  /**
2086
- * The wallet address that sent the transfer.
2245
+ * The status of the wallet action.
2087
2246
  */
2088
- source_wallet_address: string;
2089
-
2090
- transfer_id: string;
2091
-
2092
- type: 'crypto_deposit';
2093
- }
2247
+ status: 'pending';
2094
2248
 
2095
- /**
2096
- * Bridge metadata for a fiat deposit via transfer.
2097
- */
2098
- export interface BridgeFiatTransferMetadata {
2099
- method: 'transfer';
2249
+ /**
2250
+ * The type of webhook event.
2251
+ */
2252
+ type: 'wallet_action.transfer.created';
2100
2253
 
2101
- transfer_id: string;
2254
+ /**
2255
+ * The ID of the wallet action.
2256
+ */
2257
+ wallet_action_id: string;
2102
2258
 
2103
- type: 'fiat_deposit';
2104
- }
2259
+ /**
2260
+ * The ID of the wallet involved in the action.
2261
+ */
2262
+ wallet_id: string;
2105
2263
 
2106
- /**
2107
- * Bridge metadata for a transfer refund.
2108
- */
2109
- export interface BridgeTransferRefundMetadata {
2110
- method: 'transfer';
2264
+ /**
2265
+ * Decimal amount sent on the source chain (e.g. "1.5"). Omitted for exact_output
2266
+ * cross-chain transfers until the source amount is determined.
2267
+ */
2268
+ source_amount?: string;
2111
2269
 
2112
- transfer_id: string;
2270
+ /**
2271
+ * Asset identifier (e.g. "usdc", "eth"). Present when the transfer was initiated
2272
+ * with a named asset; omitted for custom-token transfers.
2273
+ */
2274
+ source_asset?: string;
2113
2275
 
2114
- type: 'refund';
2276
+ /**
2277
+ * Token contract address (EVM) or mint address (Solana). Present when the transfer
2278
+ * was initiated with `asset_address`.
2279
+ */
2280
+ source_asset_address?: string;
2115
2281
 
2116
2282
  /**
2117
- * The original transfer transaction hash (if available).
2283
+ * Number of decimals for the transferred token. Present when the transfer was
2284
+ * initiated with `asset_address` and the decimals were resolved on-chain.
2118
2285
  */
2119
- original_transaction_hash?: string;
2286
+ source_asset_decimals?: number;
2120
2287
  }
2121
2288
 
2122
2289
  /**
2123
- * Metadata about a Bridge transaction associated with a wallet event.
2124
- */
2125
- export type BridgeMetadata =
2126
- | BridgeCryptoDepositMetadata
2127
- | BridgeRefundMetadata
2128
- | BridgeFiatDepositMetadata
2129
- | BridgeCryptoTransferMetadata
2130
- | BridgeFiatTransferMetadata
2131
- | BridgeTransferRefundMetadata;
2132
-
2133
- /**
2134
- * Payload for the wallet.funds_deposited webhook event.
2290
+ * Payload for the wallet_action.transfer.failed webhook event.
2135
2291
  */
2136
- export interface FundsDepositedWebhookPayload {
2292
+ export interface WalletActionTransferFailedWebhookPayload {
2137
2293
  /**
2138
- * The amount transferred, as a stringified bigint.
2294
+ * Type of wallet action
2139
2295
  */
2140
- amount: string;
2296
+ action_type: WalletActionsAPI.WalletActionType;
2141
2297
 
2142
2298
  /**
2143
- * An asset involved in a wallet transfer.
2299
+ * Recipient address.
2144
2300
  */
2145
- asset: WalletFundsAsset;
2146
-
2147
- block: FundsDepositedWebhookPayload.Block;
2301
+ destination_address: string;
2148
2302
 
2149
2303
  /**
2150
- * The CAIP-2 chain identifier.
2304
+ * A description of why a wallet action (or a step within a wallet action) failed.
2151
2305
  */
2152
- caip2: string;
2306
+ failure_reason: WalletActionsAPI.FailureReason;
2153
2307
 
2154
2308
  /**
2155
- * A unique key for this event.
2309
+ * Chain name (e.g. "base", "ethereum").
2156
2310
  */
2157
- idempotency_key: string;
2311
+ source_chain: string;
2158
2312
 
2159
2313
  /**
2160
- * The recipient address.
2314
+ * The status of the wallet action.
2161
2315
  */
2162
- recipient: string;
2316
+ status: 'failed';
2163
2317
 
2164
2318
  /**
2165
- * The sender address.
2319
+ * The steps of the wallet action. Completed steps will have transaction hashes;
2320
+ * the failing step will have a failure_reason.
2166
2321
  */
2167
- sender: string;
2322
+ steps: Array<WalletActionsAPI.WalletActionStep>;
2168
2323
 
2169
2324
  /**
2170
- * The blockchain transaction hash.
2325
+ * The type of webhook event.
2171
2326
  */
2172
- transaction_hash: string;
2327
+ type: 'wallet_action.transfer.failed';
2173
2328
 
2174
2329
  /**
2175
- * The type of webhook event.
2330
+ * The ID of the wallet action.
2176
2331
  */
2177
- type: 'wallet.funds_deposited';
2332
+ wallet_action_id: string;
2178
2333
 
2179
2334
  /**
2180
- * The ID of the wallet.
2335
+ * The ID of the wallet involved in the action.
2181
2336
  */
2182
2337
  wallet_id: string;
2183
2338
 
2184
2339
  /**
2185
- * Metadata about a Bridge transaction associated with a wallet event.
2340
+ * Decimal amount sent on the source chain (e.g. "1.5"). Omitted for exact_output
2341
+ * cross-chain transfers until the source amount is determined.
2186
2342
  */
2187
- bridge_metadata?: BridgeMetadata;
2343
+ source_amount?: string;
2188
2344
 
2189
2345
  /**
2190
- * The transaction fee paid, as a stringified bigint in the chain's native token.
2346
+ * Asset identifier (e.g. "usdc", "eth"). Present when the transfer was initiated
2347
+ * with a named asset; omitted for custom-token transfers.
2191
2348
  */
2192
- transaction_fee?: string;
2193
- }
2349
+ source_asset?: string;
2194
2350
 
2195
- export namespace FundsDepositedWebhookPayload {
2196
- export interface Block {
2197
- /**
2198
- * The block number.
2199
- */
2200
- number: number;
2351
+ /**
2352
+ * Token contract address (EVM) or mint address (Solana). Present when the transfer
2353
+ * was initiated with `asset_address`.
2354
+ */
2355
+ source_asset_address?: string;
2201
2356
 
2202
- /**
2203
- * The block timestamp.
2204
- */
2205
- timestamp: number;
2206
- }
2357
+ /**
2358
+ * Number of decimals for the transferred token. Present when the transfer was
2359
+ * initiated with `asset_address` and the decimals were resolved on-chain.
2360
+ */
2361
+ source_asset_decimals?: number;
2207
2362
  }
2208
2363
 
2209
2364
  /**
2210
- * Payload for the wallet.funds_withdrawn webhook event.
2365
+ * Payload for the wallet_action.transfer.rejected webhook event.
2211
2366
  */
2212
- export interface FundsWithdrawnWebhookPayload {
2367
+ export interface WalletActionTransferRejectedWebhookPayload {
2213
2368
  /**
2214
- * The amount transferred, as a stringified bigint.
2369
+ * Type of wallet action
2215
2370
  */
2216
- amount: string;
2371
+ action_type: WalletActionsAPI.WalletActionType;
2217
2372
 
2218
2373
  /**
2219
- * An asset involved in a wallet transfer.
2374
+ * Recipient address.
2220
2375
  */
2221
- asset: WalletFundsAsset;
2222
-
2223
- block: FundsWithdrawnWebhookPayload.Block;
2376
+ destination_address: string;
2224
2377
 
2225
2378
  /**
2226
- * The CAIP-2 chain identifier.
2379
+ * A description of why a wallet action (or a step within a wallet action) failed.
2227
2380
  */
2228
- caip2: string;
2381
+ failure_reason: WalletActionsAPI.FailureReason;
2229
2382
 
2230
2383
  /**
2231
- * A unique key for this event.
2384
+ * Chain name (e.g. "base", "ethereum").
2232
2385
  */
2233
- idempotency_key: string;
2386
+ source_chain: string;
2234
2387
 
2235
2388
  /**
2236
- * The recipient address.
2389
+ * The status of the wallet action.
2237
2390
  */
2238
- recipient: string;
2391
+ status: 'rejected';
2239
2392
 
2240
2393
  /**
2241
- * The sender address.
2394
+ * The steps of the wallet action at the time of rejection.
2242
2395
  */
2243
- sender: string;
2396
+ steps: Array<WalletActionsAPI.WalletActionStep>;
2244
2397
 
2245
2398
  /**
2246
- * The blockchain transaction hash.
2399
+ * The type of webhook event.
2247
2400
  */
2248
- transaction_hash: string;
2401
+ type: 'wallet_action.transfer.rejected';
2249
2402
 
2250
2403
  /**
2251
- * The type of webhook event.
2404
+ * The ID of the wallet action.
2252
2405
  */
2253
- type: 'wallet.funds_withdrawn';
2406
+ wallet_action_id: string;
2254
2407
 
2255
2408
  /**
2256
- * The ID of the wallet.
2409
+ * The ID of the wallet involved in the action.
2257
2410
  */
2258
2411
  wallet_id: string;
2259
2412
 
2260
2413
  /**
2261
- * The transaction fee paid, as a stringified bigint in the chain's native token.
2414
+ * Decimal amount sent on the source chain (e.g. "1.5"). Omitted for exact_output
2415
+ * cross-chain transfers until the source amount is determined.
2262
2416
  */
2263
- transaction_fee?: string;
2264
- }
2417
+ source_amount?: string;
2265
2418
 
2266
- export namespace FundsWithdrawnWebhookPayload {
2267
- export interface Block {
2268
- /**
2269
- * The block number.
2270
- */
2271
- number: number;
2419
+ /**
2420
+ * Asset identifier (e.g. "usdc", "eth"). Present when the transfer was initiated
2421
+ * with a named asset; omitted for custom-token transfers.
2422
+ */
2423
+ source_asset?: string;
2272
2424
 
2273
- /**
2274
- * The block timestamp.
2275
- */
2276
- timestamp: number;
2277
- }
2425
+ /**
2426
+ * Token contract address (EVM) or mint address (Solana). Present when the transfer
2427
+ * was initiated with `asset_address`.
2428
+ */
2429
+ source_asset_address?: string;
2430
+
2431
+ /**
2432
+ * Number of decimals for the transferred token. Present when the transfer was
2433
+ * initiated with `asset_address` and the decimals were resolved on-chain.
2434
+ */
2435
+ source_asset_decimals?: number;
2278
2436
  }
2279
2437
 
2280
2438
  /**
2281
- * Payload for the wallet.private_key_export webhook event.
2439
+ * Payload for the wallet_action.transfer.succeeded webhook event.
2282
2440
  */
2283
- export interface PrivateKeyExportWebhookPayload {
2441
+ export interface WalletActionTransferSucceededWebhookPayload {
2284
2442
  /**
2285
- * The type of webhook event.
2443
+ * Type of wallet action
2286
2444
  */
2287
- type: 'wallet.private_key_export';
2445
+ action_type: WalletActionsAPI.WalletActionType;
2288
2446
 
2289
2447
  /**
2290
- * The ID of the user who exported the key.
2448
+ * Recipient address.
2291
2449
  */
2292
- user_id: string;
2450
+ destination_address: string;
2293
2451
 
2294
2452
  /**
2295
- * The address of the wallet.
2453
+ * Chain name (e.g. "base", "ethereum").
2296
2454
  */
2297
- wallet_address: string;
2455
+ source_chain: string;
2298
2456
 
2299
2457
  /**
2300
- * The ID of the wallet.
2458
+ * The status of the wallet action.
2301
2459
  */
2302
- wallet_id: string;
2303
-
2304
- export_source?: 'display' | 'client';
2305
- }
2460
+ status: 'succeeded';
2306
2461
 
2307
- /**
2308
- * Payload for the wallet.seed_phrase_export webhook event.
2309
- */
2310
- export interface SeedPhraseExportWebhookPayload {
2311
2462
  /**
2312
- * The type of webhook event.
2463
+ * The steps of the wallet action, including transaction hashes.
2313
2464
  */
2314
- type: 'wallet.seed_phrase_export';
2465
+ steps: Array<WalletActionsAPI.WalletActionStep>;
2315
2466
 
2316
2467
  /**
2317
- * The ID of the user who exported the seed phrase.
2468
+ * The type of webhook event.
2318
2469
  */
2319
- user_id: string;
2470
+ type: 'wallet_action.transfer.succeeded';
2320
2471
 
2321
2472
  /**
2322
- * The address of the wallet.
2473
+ * The ID of the wallet action.
2323
2474
  */
2324
- wallet_address: string;
2475
+ wallet_action_id: string;
2325
2476
 
2326
2477
  /**
2327
- * The ID of the wallet.
2478
+ * The ID of the wallet involved in the action.
2328
2479
  */
2329
2480
  wallet_id: string;
2330
2481
 
2331
- export_source?: 'display' | 'client';
2332
- }
2333
-
2334
- /**
2335
- * Payload for the wallet.recovery_setup webhook event.
2336
- */
2337
- export interface WalletRecoverySetupWebhookPayload {
2338
2482
  /**
2339
- * The recovery method that was set up.
2483
+ * Decimal amount sent on the source chain (e.g. "1.5"). Omitted for exact_output
2484
+ * cross-chain transfers until the source amount is determined.
2340
2485
  */
2341
- method:
2342
- | 'user_passcode_derived_recovery_key'
2343
- | 'privy_passcode_derived_recovery_key'
2344
- | 'privy_generated_recovery_key'
2345
- | 'google_drive_recovery_secret'
2346
- | 'icloud_recovery_secret'
2347
- | 'recovery_encryption_key';
2486
+ source_amount?: string;
2348
2487
 
2349
2488
  /**
2350
- * The type of webhook event.
2489
+ * Asset identifier (e.g. "usdc", "eth"). Present when the transfer was initiated
2490
+ * with a named asset; omitted for custom-token transfers.
2351
2491
  */
2352
- type: 'wallet.recovery_setup';
2492
+ source_asset?: string;
2353
2493
 
2354
2494
  /**
2355
- * The ID of the user.
2495
+ * Token contract address (EVM) or mint address (Solana). Present when the transfer
2496
+ * was initiated with `asset_address`.
2356
2497
  */
2357
- user_id: string;
2498
+ source_asset_address?: string;
2358
2499
 
2359
2500
  /**
2360
- * The address of the wallet.
2501
+ * Number of decimals for the transferred token. Present when the transfer was
2502
+ * initiated with `asset_address` and the decimals were resolved on-chain.
2361
2503
  */
2362
- wallet_address: string;
2504
+ source_asset_decimals?: number;
2505
+ }
2363
2506
 
2364
- /**
2365
- * The ID of the wallet.
2366
- */
2367
- wallet_id: string;
2507
+ /**
2508
+ * An asset involved in a wallet transfer.
2509
+ */
2510
+ export type WalletFundsAsset =
2511
+ | WalletFundsNativeTokenAsset
2512
+ | WalletFundsErc20Asset
2513
+ | WalletFundsSplAsset
2514
+ | WalletFundsSacAsset;
2515
+
2516
+ /**
2517
+ * An ERC-20 token asset.
2518
+ */
2519
+ export interface WalletFundsErc20Asset {
2520
+ address: string;
2521
+
2522
+ type: 'erc20';
2523
+ }
2524
+
2525
+ /**
2526
+ * A native token asset (e.g. ETH, SOL).
2527
+ */
2528
+ export interface WalletFundsNativeTokenAsset {
2529
+ address: null;
2530
+
2531
+ type: 'native-token';
2532
+ }
2533
+
2534
+ /**
2535
+ * A Stellar Asset Contract (SAC) asset.
2536
+ */
2537
+ export interface WalletFundsSacAsset {
2538
+ address: string;
2539
+
2540
+ type: 'sac';
2541
+ }
2542
+
2543
+ /**
2544
+ * A Solana SPL token asset.
2545
+ */
2546
+ export interface WalletFundsSplAsset {
2547
+ mint: string;
2548
+
2549
+ type: 'spl';
2368
2550
  }
2369
2551
 
2370
2552
  /**
@@ -2393,79 +2575,41 @@ export interface WalletRecoveredWebhookPayload {
2393
2575
  }
2394
2576
 
2395
2577
  /**
2396
- * Payload for the yield.deposit.confirmed webhook event.
2578
+ * Payload for the wallet.recovery_setup webhook event.
2397
2579
  */
2398
- export interface YieldDepositConfirmedWebhookPayload {
2399
- assets: string;
2400
-
2401
- caip2: string;
2402
-
2403
- owner: string;
2404
-
2405
- sender: string;
2406
-
2407
- shares: string;
2408
-
2580
+ export interface WalletRecoverySetupWebhookPayload {
2409
2581
  /**
2410
- * The type of webhook event.
2582
+ * The recovery method that was set up.
2411
2583
  */
2412
- type: 'yield.deposit.confirmed';
2413
-
2414
- vault_address: string;
2415
- }
2416
-
2417
- /**
2418
- * Payload for the yield.withdraw.confirmed webhook event.
2419
- */
2420
- export interface YieldWithdrawConfirmedWebhookPayload {
2421
- assets: string;
2422
-
2423
- caip2: string;
2424
-
2425
- owner: string;
2426
-
2427
- receiver: string;
2428
-
2429
- sender: string;
2430
-
2431
- shares: string;
2584
+ method:
2585
+ | 'user_passcode_derived_recovery_key'
2586
+ | 'privy_passcode_derived_recovery_key'
2587
+ | 'privy_generated_recovery_key'
2588
+ | 'google_drive_recovery_secret'
2589
+ | 'icloud_recovery_secret'
2590
+ | 'recovery_encryption_key';
2432
2591
 
2433
2592
  /**
2434
2593
  * The type of webhook event.
2435
2594
  */
2436
- type: 'yield.withdraw.confirmed';
2437
-
2438
- vault_address: string;
2439
- }
2440
-
2441
- /**
2442
- * Payload for the yield.claim.confirmed webhook event.
2443
- */
2444
- export interface YieldClaimConfirmedWebhookPayload {
2445
- caip2: string;
2446
-
2447
- rewards: Array<YieldClaimConfirmedWebhookPayload.Reward>;
2595
+ type: 'wallet.recovery_setup';
2448
2596
 
2449
- transaction_id: string;
2597
+ /**
2598
+ * The ID of the user.
2599
+ */
2600
+ user_id: string;
2450
2601
 
2451
2602
  /**
2452
- * The type of webhook event.
2603
+ * The address of the wallet.
2453
2604
  */
2454
- type: 'yield.claim.confirmed';
2605
+ wallet_address: string;
2455
2606
 
2607
+ /**
2608
+ * The ID of the wallet.
2609
+ */
2456
2610
  wallet_id: string;
2457
2611
  }
2458
2612
 
2459
- export namespace YieldClaimConfirmedWebhookPayload {
2460
- export interface Reward {
2461
- amount: string;
2462
-
2463
- token_address: string;
2464
-
2465
- token_symbol: string;
2466
- }
2467
- }
2468
-
2469
2613
  /**
2470
2614
  * Union of all webhook payload schemas.
2471
2615
  */
@@ -2522,222 +2666,150 @@ export type WebhookPayload =
2522
2666
  | WalletActionEarnIncentiveClaimFailedWebhookPayload;
2523
2667
 
2524
2668
  /**
2525
- * Payload for the kraken_embed.quote_executed webhook event.
2669
+ * Payload for the yield.claim.confirmed webhook event.
2526
2670
  */
2527
- export interface KrakenEmbedQuoteExecutedWebhookPayload {
2528
- /**
2529
- * ISO 8601 timestamp of when the quote was executed.
2530
- */
2531
- executed_at: string;
2671
+ export interface YieldClaimConfirmedWebhookPayload {
2672
+ caip2: string;
2532
2673
 
2533
- /**
2534
- * The ID of the executed quote.
2535
- */
2536
- quote_id: string;
2674
+ rewards: Array<YieldClaimConfirmedWebhookPayload.Reward>;
2675
+
2676
+ transaction_id: string;
2537
2677
 
2538
2678
  /**
2539
2679
  * The type of webhook event.
2540
2680
  */
2541
- type: 'kraken_embed.quote.executed';
2681
+ type: 'yield.claim.confirmed';
2542
2682
 
2543
- /**
2544
- * The ID of the user.
2545
- */
2546
- user_id: string;
2683
+ wallet_id: string;
2547
2684
  }
2548
2685
 
2549
- /**
2550
- * Payload for the kraken_embed.quote.execution_failed webhook event.
2551
- */
2552
- export interface KrakenEmbedQuoteExecutionFailedWebhookPayload {
2553
- /**
2554
- * ISO 8601 timestamp of when the quote execution failed.
2555
- */
2556
- failed_at: string;
2557
-
2558
- /**
2559
- * The ID of the quote that failed to execute.
2560
- */
2561
- quote_id: string;
2562
-
2563
- /**
2564
- * A human-readable description of why the quote execution failed. Intended for
2565
- * display and logging purposes only.
2566
- */
2567
- reason: string;
2686
+ export namespace YieldClaimConfirmedWebhookPayload {
2687
+ export interface Reward {
2688
+ amount: string;
2568
2689
 
2569
- /**
2570
- * The type of webhook event.
2571
- */
2572
- type: 'kraken_embed.quote.execution_failed';
2690
+ token_address: string;
2573
2691
 
2574
- /**
2575
- * The ID of the user.
2576
- */
2577
- user_id: string;
2692
+ token_symbol: string;
2693
+ }
2578
2694
  }
2579
2695
 
2580
2696
  /**
2581
- * Payload for the kraken_embed.quote.cancelled webhook event.
2697
+ * Payload for the yield.deposit.confirmed webhook event.
2582
2698
  */
2583
- export interface KrakenEmbedQuoteCancelledWebhookPayload {
2584
- /**
2585
- * ISO 8601 timestamp of when the quote was cancelled.
2586
- */
2587
- cancelled_at: string;
2699
+ export interface YieldDepositConfirmedWebhookPayload {
2700
+ assets: string;
2588
2701
 
2589
- /**
2590
- * The ID of the cancelled quote.
2591
- */
2592
- quote_id: string;
2702
+ caip2: string;
2593
2703
 
2594
- /**
2595
- * A human-readable description of why the quote was cancelled. Intended for
2596
- * display and logging purposes only.
2597
- */
2598
- reason: string;
2704
+ owner: string;
2599
2705
 
2600
- /**
2601
- * The type of webhook event.
2602
- */
2603
- type: 'kraken_embed.quote.cancelled';
2706
+ sender: string;
2604
2707
 
2605
- /**
2606
- * The ID of the user.
2607
- */
2608
- user_id: string;
2609
- }
2708
+ shares: string;
2610
2709
 
2611
- /**
2612
- * Payload for the kraken_embed.user.verified webhook event.
2613
- */
2614
- export interface KrakenEmbedUserVerifiedWebhookPayload {
2615
2710
  /**
2616
2711
  * The type of webhook event.
2617
2712
  */
2618
- type: 'kraken_embed.user.verified';
2619
-
2620
- /**
2621
- * The ID of the user.
2622
- */
2623
- user_id: string;
2713
+ type: 'yield.deposit.confirmed';
2624
2714
 
2625
- /**
2626
- * ISO 8601 timestamp of when the user was verified.
2627
- */
2628
- verified_at: string;
2715
+ vault_address: string;
2629
2716
  }
2630
2717
 
2631
2718
  /**
2632
- * Payload for the kraken_embed.user.disabled webhook event.
2719
+ * Payload for the yield.withdraw.confirmed webhook event.
2633
2720
  */
2634
- export interface KrakenEmbedUserDisabledWebhookPayload {
2635
- /**
2636
- * ISO 8601 timestamp of when the user was disabled.
2637
- */
2638
- disabled_at: string;
2721
+ export interface YieldWithdrawConfirmedWebhookPayload {
2722
+ assets: string;
2639
2723
 
2640
- /**
2641
- * The type of webhook event.
2642
- */
2643
- type: 'kraken_embed.user.disabled';
2724
+ caip2: string;
2644
2725
 
2645
- /**
2646
- * The ID of the user.
2647
- */
2648
- user_id: string;
2649
- }
2726
+ owner: string;
2650
2727
 
2651
- /**
2652
- * Payload for the kraken_embed.user.closed webhook event.
2653
- */
2654
- export interface KrakenEmbedUserClosedWebhookPayload {
2655
- /**
2656
- * ISO 8601 timestamp of when the user was closed.
2657
- */
2658
- closed_at: string;
2728
+ receiver: string;
2729
+
2730
+ sender: string;
2731
+
2732
+ shares: string;
2659
2733
 
2660
2734
  /**
2661
2735
  * The type of webhook event.
2662
2736
  */
2663
- type: 'kraken_embed.user.closed';
2737
+ type: 'yield.withdraw.confirmed';
2664
2738
 
2665
- /**
2666
- * The ID of the user.
2667
- */
2668
- user_id: string;
2739
+ vault_address: string;
2669
2740
  }
2670
2741
 
2671
2742
  export declare namespace Webhooks {
2672
2743
  export {
2673
- type IntentCreatedWebhookPayload as IntentCreatedWebhookPayload,
2744
+ type BridgeCryptoDepositMetadata as BridgeCryptoDepositMetadata,
2745
+ type BridgeCryptoTransferMetadata as BridgeCryptoTransferMetadata,
2746
+ type BridgeFiatDepositMetadata as BridgeFiatDepositMetadata,
2747
+ type BridgeFiatTransferMetadata as BridgeFiatTransferMetadata,
2748
+ type BridgeMetadata as BridgeMetadata,
2749
+ type BridgeRefundMetadata as BridgeRefundMetadata,
2750
+ type BridgeStaticMemoDepositMetadata as BridgeStaticMemoDepositMetadata,
2751
+ type BridgeTransferRefundMetadata as BridgeTransferRefundMetadata,
2752
+ type FundsDepositedWebhookPayload as FundsDepositedWebhookPayload,
2753
+ type FundsWithdrawnWebhookPayload as FundsWithdrawnWebhookPayload,
2674
2754
  type IntentAuthorizedWebhookPayload as IntentAuthorizedWebhookPayload,
2755
+ type IntentCreatedWebhookPayload as IntentCreatedWebhookPayload,
2675
2756
  type IntentExecutedWebhookPayload as IntentExecutedWebhookPayload,
2676
2757
  type IntentFailedWebhookPayload as IntentFailedWebhookPayload,
2677
- type MfaEnabledWebhookPayload as MfaEnabledWebhookPayload,
2758
+ type KrakenEmbedQuoteCancelledWebhookPayload as KrakenEmbedQuoteCancelledWebhookPayload,
2759
+ type KrakenEmbedQuoteExecutedWebhookPayload as KrakenEmbedQuoteExecutedWebhookPayload,
2760
+ type KrakenEmbedQuoteExecutionFailedWebhookPayload as KrakenEmbedQuoteExecutionFailedWebhookPayload,
2761
+ type KrakenEmbedUserClosedWebhookPayload as KrakenEmbedUserClosedWebhookPayload,
2762
+ type KrakenEmbedUserDisabledWebhookPayload as KrakenEmbedUserDisabledWebhookPayload,
2763
+ type KrakenEmbedUserVerifiedWebhookPayload as KrakenEmbedUserVerifiedWebhookPayload,
2678
2764
  type MfaDisabledWebhookPayload as MfaDisabledWebhookPayload,
2765
+ type MfaEnabledWebhookPayload as MfaEnabledWebhookPayload,
2766
+ type PrivateKeyExportWebhookPayload as PrivateKeyExportWebhookPayload,
2767
+ type SeedPhraseExportWebhookPayload as SeedPhraseExportWebhookPayload,
2679
2768
  type TransactionBroadcastedWebhookPayload as TransactionBroadcastedWebhookPayload,
2680
2769
  type TransactionConfirmedWebhookPayload as TransactionConfirmedWebhookPayload,
2681
2770
  type TransactionExecutionRevertedWebhookPayload as TransactionExecutionRevertedWebhookPayload,
2682
- type TransactionStillPendingWebhookPayload as TransactionStillPendingWebhookPayload,
2683
2771
  type TransactionFailedWebhookPayload as TransactionFailedWebhookPayload,
2684
- type TransactionReplacedWebhookPayload as TransactionReplacedWebhookPayload,
2685
2772
  type TransactionProviderErrorWebhookPayload as TransactionProviderErrorWebhookPayload,
2686
- type UserOperationCompletedWebhookPayload as UserOperationCompletedWebhookPayload,
2687
- type UserCreatedWebhookPayload as UserCreatedWebhookPayload,
2773
+ type TransactionReplacedWebhookPayload as TransactionReplacedWebhookPayload,
2774
+ type TransactionStillPendingWebhookPayload as TransactionStillPendingWebhookPayload,
2688
2775
  type UserAuthenticatedWebhookPayload as UserAuthenticatedWebhookPayload,
2776
+ type UserCreatedWebhookPayload as UserCreatedWebhookPayload,
2689
2777
  type UserLinkedAccountWebhookPayload as UserLinkedAccountWebhookPayload,
2778
+ type UserOperationCompletedWebhookPayload as UserOperationCompletedWebhookPayload,
2779
+ type UserTransferredAccountWebhookPayload as UserTransferredAccountWebhookPayload,
2690
2780
  type UserUnlinkedAccountWebhookPayload as UserUnlinkedAccountWebhookPayload,
2691
2781
  type UserUpdatedAccountWebhookPayload as UserUpdatedAccountWebhookPayload,
2692
- type UserTransferredAccountWebhookPayload as UserTransferredAccountWebhookPayload,
2693
2782
  type UserWalletCreatedWebhookPayload as UserWalletCreatedWebhookPayload,
2694
- type WalletActionSwapCreatedWebhookPayload as WalletActionSwapCreatedWebhookPayload,
2695
- type WalletActionSwapSucceededWebhookPayload as WalletActionSwapSucceededWebhookPayload,
2696
- type WalletActionSwapRejectedWebhookPayload as WalletActionSwapRejectedWebhookPayload,
2697
- type WalletActionSwapFailedWebhookPayload as WalletActionSwapFailedWebhookPayload,
2698
- type WalletActionTransferCreatedWebhookPayload as WalletActionTransferCreatedWebhookPayload,
2699
- type WalletActionTransferSucceededWebhookPayload as WalletActionTransferSucceededWebhookPayload,
2700
- type WalletActionTransferRejectedWebhookPayload as WalletActionTransferRejectedWebhookPayload,
2701
- type WalletActionTransferFailedWebhookPayload as WalletActionTransferFailedWebhookPayload,
2702
2783
  type WalletActionEarnDepositCreatedWebhookPayload as WalletActionEarnDepositCreatedWebhookPayload,
2703
- type WalletActionEarnDepositSucceededWebhookPayload as WalletActionEarnDepositSucceededWebhookPayload,
2704
- type WalletActionEarnDepositRejectedWebhookPayload as WalletActionEarnDepositRejectedWebhookPayload,
2705
2784
  type WalletActionEarnDepositFailedWebhookPayload as WalletActionEarnDepositFailedWebhookPayload,
2706
- type WalletActionEarnWithdrawCreatedWebhookPayload as WalletActionEarnWithdrawCreatedWebhookPayload,
2707
- type WalletActionEarnWithdrawSucceededWebhookPayload as WalletActionEarnWithdrawSucceededWebhookPayload,
2708
- type WalletActionEarnWithdrawRejectedWebhookPayload as WalletActionEarnWithdrawRejectedWebhookPayload,
2709
- type WalletActionEarnWithdrawFailedWebhookPayload as WalletActionEarnWithdrawFailedWebhookPayload,
2785
+ type WalletActionEarnDepositRejectedWebhookPayload as WalletActionEarnDepositRejectedWebhookPayload,
2786
+ type WalletActionEarnDepositSucceededWebhookPayload as WalletActionEarnDepositSucceededWebhookPayload,
2710
2787
  type WalletActionEarnIncentiveClaimCreatedWebhookPayload as WalletActionEarnIncentiveClaimCreatedWebhookPayload,
2711
- type WalletActionEarnIncentiveClaimSucceededWebhookPayload as WalletActionEarnIncentiveClaimSucceededWebhookPayload,
2712
- type WalletActionEarnIncentiveClaimRejectedWebhookPayload as WalletActionEarnIncentiveClaimRejectedWebhookPayload,
2713
2788
  type WalletActionEarnIncentiveClaimFailedWebhookPayload as WalletActionEarnIncentiveClaimFailedWebhookPayload,
2714
- type WalletFundsNativeTokenAsset as WalletFundsNativeTokenAsset,
2789
+ type WalletActionEarnIncentiveClaimRejectedWebhookPayload as WalletActionEarnIncentiveClaimRejectedWebhookPayload,
2790
+ type WalletActionEarnIncentiveClaimSucceededWebhookPayload as WalletActionEarnIncentiveClaimSucceededWebhookPayload,
2791
+ type WalletActionEarnWithdrawCreatedWebhookPayload as WalletActionEarnWithdrawCreatedWebhookPayload,
2792
+ type WalletActionEarnWithdrawFailedWebhookPayload as WalletActionEarnWithdrawFailedWebhookPayload,
2793
+ type WalletActionEarnWithdrawRejectedWebhookPayload as WalletActionEarnWithdrawRejectedWebhookPayload,
2794
+ type WalletActionEarnWithdrawSucceededWebhookPayload as WalletActionEarnWithdrawSucceededWebhookPayload,
2795
+ type WalletActionSwapCreatedWebhookPayload as WalletActionSwapCreatedWebhookPayload,
2796
+ type WalletActionSwapFailedWebhookPayload as WalletActionSwapFailedWebhookPayload,
2797
+ type WalletActionSwapRejectedWebhookPayload as WalletActionSwapRejectedWebhookPayload,
2798
+ type WalletActionSwapSucceededWebhookPayload as WalletActionSwapSucceededWebhookPayload,
2799
+ type WalletActionTransferCreatedWebhookPayload as WalletActionTransferCreatedWebhookPayload,
2800
+ type WalletActionTransferFailedWebhookPayload as WalletActionTransferFailedWebhookPayload,
2801
+ type WalletActionTransferRejectedWebhookPayload as WalletActionTransferRejectedWebhookPayload,
2802
+ type WalletActionTransferSucceededWebhookPayload as WalletActionTransferSucceededWebhookPayload,
2803
+ type WalletFundsAsset as WalletFundsAsset,
2715
2804
  type WalletFundsErc20Asset as WalletFundsErc20Asset,
2716
- type WalletFundsSplAsset as WalletFundsSplAsset,
2805
+ type WalletFundsNativeTokenAsset as WalletFundsNativeTokenAsset,
2717
2806
  type WalletFundsSacAsset as WalletFundsSacAsset,
2718
- type WalletFundsAsset as WalletFundsAsset,
2719
- type BridgeCryptoDepositMetadata as BridgeCryptoDepositMetadata,
2720
- type BridgeRefundMetadata as BridgeRefundMetadata,
2721
- type BridgeFiatDepositMetadata as BridgeFiatDepositMetadata,
2722
- type BridgeCryptoTransferMetadata as BridgeCryptoTransferMetadata,
2723
- type BridgeFiatTransferMetadata as BridgeFiatTransferMetadata,
2724
- type BridgeTransferRefundMetadata as BridgeTransferRefundMetadata,
2725
- type BridgeMetadata as BridgeMetadata,
2726
- type FundsDepositedWebhookPayload as FundsDepositedWebhookPayload,
2727
- type FundsWithdrawnWebhookPayload as FundsWithdrawnWebhookPayload,
2728
- type PrivateKeyExportWebhookPayload as PrivateKeyExportWebhookPayload,
2729
- type SeedPhraseExportWebhookPayload as SeedPhraseExportWebhookPayload,
2730
- type WalletRecoverySetupWebhookPayload as WalletRecoverySetupWebhookPayload,
2807
+ type WalletFundsSplAsset as WalletFundsSplAsset,
2731
2808
  type WalletRecoveredWebhookPayload as WalletRecoveredWebhookPayload,
2809
+ type WalletRecoverySetupWebhookPayload as WalletRecoverySetupWebhookPayload,
2810
+ type WebhookPayload as WebhookPayload,
2811
+ type YieldClaimConfirmedWebhookPayload as YieldClaimConfirmedWebhookPayload,
2732
2812
  type YieldDepositConfirmedWebhookPayload as YieldDepositConfirmedWebhookPayload,
2733
2813
  type YieldWithdrawConfirmedWebhookPayload as YieldWithdrawConfirmedWebhookPayload,
2734
- type YieldClaimConfirmedWebhookPayload as YieldClaimConfirmedWebhookPayload,
2735
- type WebhookPayload as WebhookPayload,
2736
- type KrakenEmbedQuoteExecutedWebhookPayload as KrakenEmbedQuoteExecutedWebhookPayload,
2737
- type KrakenEmbedQuoteExecutionFailedWebhookPayload as KrakenEmbedQuoteExecutionFailedWebhookPayload,
2738
- type KrakenEmbedQuoteCancelledWebhookPayload as KrakenEmbedQuoteCancelledWebhookPayload,
2739
- type KrakenEmbedUserVerifiedWebhookPayload as KrakenEmbedUserVerifiedWebhookPayload,
2740
- type KrakenEmbedUserDisabledWebhookPayload as KrakenEmbedUserDisabledWebhookPayload,
2741
- type KrakenEmbedUserClosedWebhookPayload as KrakenEmbedUserClosedWebhookPayload,
2742
2814
  };
2743
2815
  }