@privy-io/api-types 0.7.0 → 0.9.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 (188) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/client.d.mts +39 -30
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +39 -30
  5. package/client.d.ts.map +1 -1
  6. package/client.js +9 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +9 -0
  9. package/client.mjs.map +1 -1
  10. package/internal/utils/env.js +2 -2
  11. package/internal/utils/env.js.map +1 -1
  12. package/internal/utils/env.mjs +2 -2
  13. package/internal/utils/env.mjs.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/accounts.d.mts +79 -106
  16. package/resources/accounts.d.mts.map +1 -1
  17. package/resources/accounts.d.ts +79 -106
  18. package/resources/accounts.d.ts.map +1 -1
  19. package/resources/accounts.js.map +1 -1
  20. package/resources/accounts.mjs.map +1 -1
  21. package/resources/aggregations.d.mts +18 -392
  22. package/resources/aggregations.d.mts.map +1 -1
  23. package/resources/aggregations.d.ts +18 -392
  24. package/resources/aggregations.d.ts.map +1 -1
  25. package/resources/aggregations.js.map +1 -1
  26. package/resources/aggregations.mjs.map +1 -1
  27. package/resources/apps.d.mts +154 -71
  28. package/resources/apps.d.mts.map +1 -1
  29. package/resources/apps.d.ts +154 -71
  30. package/resources/apps.d.ts.map +1 -1
  31. package/resources/apps.js.map +1 -1
  32. package/resources/apps.mjs.map +1 -1
  33. package/resources/client-auth.d.mts +796 -427
  34. package/resources/client-auth.d.mts.map +1 -1
  35. package/resources/client-auth.d.ts +796 -427
  36. package/resources/client-auth.d.ts.map +1 -1
  37. package/resources/client-auth.js.map +1 -1
  38. package/resources/client-auth.mjs.map +1 -1
  39. package/resources/cross-app.d.mts +14 -13
  40. package/resources/cross-app.d.mts.map +1 -1
  41. package/resources/cross-app.d.ts +14 -13
  42. package/resources/cross-app.d.ts.map +1 -1
  43. package/resources/embedded-wallets.d.mts +167 -83
  44. package/resources/embedded-wallets.d.mts.map +1 -1
  45. package/resources/embedded-wallets.d.ts +167 -83
  46. package/resources/embedded-wallets.d.ts.map +1 -1
  47. package/resources/embedded-wallets.js.map +1 -1
  48. package/resources/embedded-wallets.mjs.map +1 -1
  49. package/resources/funding.d.mts +150 -64
  50. package/resources/funding.d.mts.map +1 -1
  51. package/resources/funding.d.ts +150 -64
  52. package/resources/funding.d.ts.map +1 -1
  53. package/resources/funding.js.map +1 -1
  54. package/resources/funding.mjs.map +1 -1
  55. package/resources/index.d.mts +18 -15
  56. package/resources/index.d.mts.map +1 -1
  57. package/resources/index.d.ts +18 -15
  58. package/resources/index.d.ts.map +1 -1
  59. package/resources/index.js +7 -1
  60. package/resources/index.js.map +1 -1
  61. package/resources/index.mjs +3 -0
  62. package/resources/index.mjs.map +1 -1
  63. package/resources/intents.d.mts +224 -1757
  64. package/resources/intents.d.mts.map +1 -1
  65. package/resources/intents.d.ts +224 -1757
  66. package/resources/intents.d.ts.map +1 -1
  67. package/resources/intents.js.map +1 -1
  68. package/resources/intents.mjs.map +1 -1
  69. package/resources/key-quorums.d.mts +74 -26
  70. package/resources/key-quorums.d.mts.map +1 -1
  71. package/resources/key-quorums.d.ts +74 -26
  72. package/resources/key-quorums.d.ts.map +1 -1
  73. package/resources/key-quorums.js +8 -8
  74. package/resources/key-quorums.js.map +1 -1
  75. package/resources/key-quorums.mjs +8 -8
  76. package/resources/key-quorums.mjs.map +1 -1
  77. package/resources/kraken-embed.d.mts +52 -1
  78. package/resources/kraken-embed.d.mts.map +1 -1
  79. package/resources/kraken-embed.d.ts +52 -1
  80. package/resources/kraken-embed.d.ts.map +1 -1
  81. package/resources/policies.d.mts +512 -992
  82. package/resources/policies.d.mts.map +1 -1
  83. package/resources/policies.d.ts +512 -992
  84. package/resources/policies.d.ts.map +1 -1
  85. package/resources/policies.js +48 -41
  86. package/resources/policies.js.map +1 -1
  87. package/resources/policies.mjs +48 -41
  88. package/resources/policies.mjs.map +1 -1
  89. package/resources/shared.d.mts +59 -0
  90. package/resources/shared.d.mts.map +1 -0
  91. package/resources/shared.d.ts +59 -0
  92. package/resources/shared.d.ts.map +1 -0
  93. package/resources/shared.js +9 -0
  94. package/resources/shared.js.map +1 -0
  95. package/resources/shared.mjs +5 -0
  96. package/resources/shared.mjs.map +1 -0
  97. package/resources/swaps.d.mts +108 -0
  98. package/resources/swaps.d.mts.map +1 -0
  99. package/resources/swaps.d.ts +108 -0
  100. package/resources/swaps.d.ts.map +1 -0
  101. package/resources/swaps.js +9 -0
  102. package/resources/swaps.js.map +1 -0
  103. package/resources/swaps.mjs +5 -0
  104. package/resources/swaps.mjs.map +1 -0
  105. package/resources/transactions.d.mts +150 -98
  106. package/resources/transactions.d.mts.map +1 -1
  107. package/resources/transactions.d.ts +150 -98
  108. package/resources/transactions.d.ts.map +1 -1
  109. package/resources/users.d.mts +207 -240
  110. package/resources/users.d.mts.map +1 -1
  111. package/resources/users.d.ts +207 -240
  112. package/resources/users.d.ts.map +1 -1
  113. package/resources/users.js.map +1 -1
  114. package/resources/users.mjs.map +1 -1
  115. package/resources/wallet-actions.d.mts +439 -0
  116. package/resources/wallet-actions.d.mts.map +1 -0
  117. package/resources/wallet-actions.d.ts +439 -0
  118. package/resources/wallet-actions.d.ts.map +1 -0
  119. package/resources/wallet-actions.js +9 -0
  120. package/resources/wallet-actions.js.map +1 -0
  121. package/resources/wallet-actions.mjs +5 -0
  122. package/resources/wallet-actions.mjs.map +1 -0
  123. package/resources/wallets/balance.d.mts +2 -1
  124. package/resources/wallets/balance.d.mts.map +1 -1
  125. package/resources/wallets/balance.d.ts +2 -1
  126. package/resources/wallets/balance.d.ts.map +1 -1
  127. package/resources/wallets/balance.js.map +1 -1
  128. package/resources/wallets/balance.mjs.map +1 -1
  129. package/resources/wallets/index.d.mts +1 -1
  130. package/resources/wallets/index.d.mts.map +1 -1
  131. package/resources/wallets/index.d.ts +1 -1
  132. package/resources/wallets/index.d.ts.map +1 -1
  133. package/resources/wallets/index.js.map +1 -1
  134. package/resources/wallets/index.mjs.map +1 -1
  135. package/resources/wallets/transactions.d.mts +11 -30
  136. package/resources/wallets/transactions.d.mts.map +1 -1
  137. package/resources/wallets/transactions.d.ts +11 -30
  138. package/resources/wallets/transactions.d.ts.map +1 -1
  139. package/resources/wallets/transactions.js.map +1 -1
  140. package/resources/wallets/transactions.mjs.map +1 -1
  141. package/resources/wallets/wallets.d.mts +2435 -923
  142. package/resources/wallets/wallets.d.mts.map +1 -1
  143. package/resources/wallets/wallets.d.ts +2435 -923
  144. package/resources/wallets/wallets.d.ts.map +1 -1
  145. package/resources/wallets/wallets.js +24 -11
  146. package/resources/wallets/wallets.js.map +1 -1
  147. package/resources/wallets/wallets.mjs +24 -11
  148. package/resources/wallets/wallets.mjs.map +1 -1
  149. package/resources/webhooks.d.mts +1296 -186
  150. package/resources/webhooks.d.mts.map +1 -1
  151. package/resources/webhooks.d.ts +1296 -186
  152. package/resources/webhooks.d.ts.map +1 -1
  153. package/resources/webhooks.js.map +1 -1
  154. package/resources/webhooks.mjs.map +1 -1
  155. package/resources/yield.d.mts +25 -1
  156. package/resources/yield.d.mts.map +1 -1
  157. package/resources/yield.d.ts +25 -1
  158. package/resources/yield.d.ts.map +1 -1
  159. package/src/client.ts +869 -92
  160. package/src/internal/utils/env.ts +2 -2
  161. package/src/resources/accounts.ts +93 -120
  162. package/src/resources/aggregations.ts +18 -702
  163. package/src/resources/apps.ts +211 -111
  164. package/src/resources/client-auth.ts +1361 -896
  165. package/src/resources/cross-app.ts +19 -15
  166. package/src/resources/embedded-wallets.ts +219 -123
  167. package/src/resources/funding.ts +263 -173
  168. package/src/resources/index.ts +447 -65
  169. package/src/resources/intents.ts +370 -3100
  170. package/src/resources/key-quorums.ts +100 -32
  171. package/src/resources/kraken-embed.ts +105 -0
  172. package/src/resources/policies.ts +648 -1494
  173. package/src/resources/shared.ts +79 -0
  174. package/src/resources/swaps.ts +136 -0
  175. package/src/resources/transactions.ts +169 -102
  176. package/src/resources/users.ts +676 -729
  177. package/src/resources/wallet-actions.ts +573 -0
  178. package/src/resources/wallets/balance.ts +2 -1
  179. package/src/resources/wallets/index.ts +156 -17
  180. package/src/resources/wallets/transactions.ts +12 -88
  181. package/src/resources/wallets/wallets.ts +3162 -1109
  182. package/src/resources/webhooks.ts +1609 -229
  183. package/src/resources/yield.ts +29 -0
  184. package/src/version.ts +1 -1
  185. package/version.d.mts +1 -1
  186. package/version.d.ts +1 -1
  187. package/version.js +1 -1
  188. package/version.mjs +1 -1
@@ -1,6 +1,8 @@
1
1
  import { APIResource } from "../core/resource.js";
2
2
  import * as IntentsAPI from "./intents.js";
3
3
  import * as UsersAPI from "./users.js";
4
+ import * as WalletActionsAPI from "./wallet-actions.js";
5
+ import * as WalletsAPI from "./wallets/wallets.js";
4
6
  export declare class Webhooks extends APIResource {
5
7
  }
6
8
  /**
@@ -229,6 +231,11 @@ export interface TransactionBroadcastedWebhookPayload {
229
231
  * The ID of the wallet that initiated the transaction.
230
232
  */
231
233
  wallet_id: string;
234
+ /**
235
+ * Developer-provided reference ID for transaction reconciliation, if one was
236
+ * provided.
237
+ */
238
+ reference_id?: string | null;
232
239
  }
233
240
  /**
234
241
  * Payload for the transaction.confirmed webhook event.
@@ -254,6 +261,11 @@ export interface TransactionConfirmedWebhookPayload {
254
261
  * The ID of the wallet that initiated the transaction.
255
262
  */
256
263
  wallet_id: string;
264
+ /**
265
+ * Developer-provided reference ID for transaction reconciliation, if one was
266
+ * provided.
267
+ */
268
+ reference_id?: string | null;
257
269
  }
258
270
  /**
259
271
  * Payload for the transaction.execution_reverted webhook event.
@@ -279,6 +291,11 @@ export interface TransactionExecutionRevertedWebhookPayload {
279
291
  * The ID of the wallet that initiated the transaction.
280
292
  */
281
293
  wallet_id: string;
294
+ /**
295
+ * Developer-provided reference ID for transaction reconciliation, if one was
296
+ * provided.
297
+ */
298
+ reference_id?: string | null;
282
299
  }
283
300
  /**
284
301
  * Payload for the transaction.still_pending webhook event.
@@ -297,9 +314,9 @@ export interface TransactionStillPendingWebhookPayload {
297
314
  */
298
315
  transaction_id: string;
299
316
  /**
300
- * The original transaction request that is still pending.
317
+ * An unsigned Ethereum transaction object.
301
318
  */
302
- transaction_request: TransactionStillPendingWebhookPayload.TransactionRequest;
319
+ transaction_request: WalletsAPI.UnsignedEthereumTransaction;
303
320
  /**
304
321
  * The type of webhook event.
305
322
  */
@@ -308,35 +325,11 @@ export interface TransactionStillPendingWebhookPayload {
308
325
  * The ID of the wallet that initiated the transaction.
309
326
  */
310
327
  wallet_id: string;
311
- }
312
- export declare namespace TransactionStillPendingWebhookPayload {
313
328
  /**
314
- * The original transaction request that is still pending.
329
+ * Developer-provided reference ID for transaction reconciliation, if one was
330
+ * provided.
315
331
  */
316
- interface TransactionRequest {
317
- authorization_list?: Array<TransactionRequest.AuthorizationList>;
318
- chain_id?: string | number;
319
- data?: string;
320
- from?: string;
321
- gas_limit?: string | number;
322
- gas_price?: string | number;
323
- max_fee_per_gas?: string | number;
324
- max_priority_fee_per_gas?: string | number;
325
- nonce?: string | number;
326
- to?: string;
327
- type?: 0 | 1 | 2 | 4;
328
- value?: string | number;
329
- }
330
- namespace TransactionRequest {
331
- interface AuthorizationList {
332
- chain_id: string | number;
333
- contract: string;
334
- nonce: string | number;
335
- r: string;
336
- s: string;
337
- y_parity: number;
338
- }
339
- }
332
+ reference_id?: string | null;
340
333
  }
341
334
  /**
342
335
  * Payload for the transaction.failed webhook event.
@@ -362,6 +355,11 @@ export interface TransactionFailedWebhookPayload {
362
355
  * The ID of the wallet that initiated the transaction.
363
356
  */
364
357
  wallet_id: string;
358
+ /**
359
+ * Developer-provided reference ID for transaction reconciliation, if one was
360
+ * provided.
361
+ */
362
+ reference_id?: string | null;
365
363
  }
366
364
  /**
367
365
  * Payload for the transaction.replaced webhook event.
@@ -387,6 +385,11 @@ export interface TransactionReplacedWebhookPayload {
387
385
  * The ID of the wallet that initiated the transaction.
388
386
  */
389
387
  wallet_id: string;
388
+ /**
389
+ * Developer-provided reference ID for transaction reconciliation, if one was
390
+ * provided.
391
+ */
392
+ reference_id?: string | null;
390
393
  }
391
394
  /**
392
395
  * Payload for the transaction.provider_error webhook event.
@@ -412,6 +415,11 @@ export interface TransactionProviderErrorWebhookPayload {
412
415
  * The ID of the wallet that initiated the transaction.
413
416
  */
414
417
  wallet_id: string;
418
+ /**
419
+ * Developer-provided reference ID for transaction reconciliation, if one was
420
+ * provided.
421
+ */
422
+ reference_id?: string | null;
415
423
  }
416
424
  /**
417
425
  * Payload for the user_operation.completed webhook event.
@@ -556,220 +564,1322 @@ export interface UserWalletCreatedWebhookPayload {
556
564
  wallet: UsersAPI.LinkedAccountBaseWallet;
557
565
  }
558
566
  /**
559
- * Payload for the wallet.funds_deposited webhook event.
567
+ * Payload for the wallet_action.swap.created webhook event.
560
568
  */
561
- export interface FundsDepositedWebhookPayload {
569
+ export interface WalletActionSwapCreatedWebhookPayload {
562
570
  /**
563
- * The amount transferred, as a stringified bigint.
571
+ * Type of wallet action
564
572
  */
565
- amount: string;
573
+ action_type: WalletActionsAPI.WalletActionType;
566
574
  /**
567
- * The asset type being transferred.
575
+ * Chain identifier.
568
576
  */
569
- asset: FundsDepositedWebhookPayload.UnionMember0 | FundsDepositedWebhookPayload.UnionMember1 | FundsDepositedWebhookPayload.UnionMember2 | FundsDepositedWebhookPayload.UnionMember3;
570
- block: FundsDepositedWebhookPayload.Block;
577
+ caip2: string;
571
578
  /**
572
- * The CAIP-2 chain identifier.
579
+ * Amount of input token in base units. Populated after on-chain confirmation.
580
+ */
581
+ input_amount: string | null;
582
+ /**
583
+ * Token address being sold.
584
+ */
585
+ input_token: string;
586
+ /**
587
+ * Token address being bought.
588
+ */
589
+ output_token: string;
590
+ /**
591
+ * Status of a wallet action.
592
+ */
593
+ status: WalletActionsAPI.WalletActionStatus;
594
+ /**
595
+ * The type of webhook event.
596
+ */
597
+ type: 'wallet_action.swap.created';
598
+ /**
599
+ * The ID of the wallet action.
600
+ */
601
+ wallet_action_id: string;
602
+ /**
603
+ * The ID of the wallet involved in the action.
604
+ */
605
+ wallet_id: string;
606
+ }
607
+ /**
608
+ * Payload for the wallet_action.swap.succeeded webhook event.
609
+ */
610
+ export interface WalletActionSwapSucceededWebhookPayload {
611
+ /**
612
+ * Type of wallet action
613
+ */
614
+ action_type: WalletActionsAPI.WalletActionType;
615
+ /**
616
+ * Chain identifier.
573
617
  */
574
618
  caip2: string;
575
619
  /**
576
- * A unique key for this event.
620
+ * Amount of input token in base units. Populated after on-chain confirmation.
577
621
  */
578
- idempotency_key: string;
622
+ input_amount: string | null;
579
623
  /**
580
- * The recipient address.
624
+ * Token address being sold.
581
625
  */
582
- recipient: string;
626
+ input_token: string;
583
627
  /**
584
- * The sender address.
628
+ * Amount of output token received, in base units. Populated after on-chain
629
+ * confirmation.
585
630
  */
586
- sender: string;
631
+ output_amount: string | null;
587
632
  /**
588
- * The blockchain transaction hash.
633
+ * Token address being bought.
589
634
  */
590
- transaction_hash: string;
635
+ output_token: string;
636
+ /**
637
+ * Status of a wallet action.
638
+ */
639
+ status: WalletActionsAPI.WalletActionStatus;
640
+ /**
641
+ * The steps of the wallet action, including transaction hashes.
642
+ */
643
+ steps: Array<WalletActionsAPI.WalletActionStep>;
591
644
  /**
592
645
  * The type of webhook event.
593
646
  */
594
- type: 'wallet.funds_deposited';
647
+ type: 'wallet_action.swap.succeeded';
595
648
  /**
596
- * The ID of the wallet.
649
+ * The ID of the wallet action.
650
+ */
651
+ wallet_action_id: string;
652
+ /**
653
+ * The ID of the wallet involved in the action.
597
654
  */
598
655
  wallet_id: string;
656
+ }
657
+ /**
658
+ * Payload for the wallet_action.swap.rejected webhook event.
659
+ */
660
+ export interface WalletActionSwapRejectedWebhookPayload {
599
661
  /**
600
- * Optional Bridge metadata for custodial wallet deposits.
662
+ * Type of wallet action
601
663
  */
602
- bridge_metadata?: FundsDepositedWebhookPayload.BridgeMetadataUnionMember0 | FundsDepositedWebhookPayload.BridgeMetadataUnionMember1 | FundsDepositedWebhookPayload.BridgeMetadataUnionMember2 | FundsDepositedWebhookPayload.BridgeMetadataUnionMember3 | FundsDepositedWebhookPayload.BridgeMetadataUnionMember4 | FundsDepositedWebhookPayload.BridgeMetadataUnionMember5;
664
+ action_type: WalletActionsAPI.WalletActionType;
603
665
  /**
604
- * The transaction fee paid, as a stringified bigint in the chain's native token.
666
+ * Chain identifier.
605
667
  */
606
- transaction_fee?: string;
607
- }
608
- export declare namespace FundsDepositedWebhookPayload {
609
- interface UnionMember0 {
610
- address: null;
611
- type: 'native-token';
612
- }
613
- interface UnionMember1 {
614
- address: string;
615
- type: 'erc20';
616
- }
617
- interface UnionMember2 {
618
- mint: string;
619
- type: 'spl';
620
- }
621
- interface UnionMember3 {
622
- address: string;
623
- type: 'sac';
624
- }
625
- interface Block {
626
- /**
627
- * The block number.
628
- */
629
- number: number;
630
- /**
631
- * The block timestamp.
632
- */
633
- timestamp: number;
634
- }
635
- interface BridgeMetadataUnionMember0 {
636
- drain_id: string;
637
- /**
638
- * The crypto address of the liquidation address that received the deposit.
639
- */
640
- liquidation_address: string;
641
- liquidation_address_id: string;
642
- method: 'liquidation_address';
643
- /**
644
- * The address that sent the deposit.
645
- */
646
- source_wallet_address: string;
647
- type: 'crypto_deposit';
648
- }
649
- interface BridgeMetadataUnionMember1 {
650
- drain_id: string;
651
- liquidation_address_id: string;
652
- method: 'liquidation_address';
653
- /**
654
- * The original deposit transaction hash that triggered the failed drain.
655
- */
656
- original_transaction_hash: string;
657
- type: 'refund';
658
- }
659
- interface BridgeMetadataUnionMember2 {
660
- activity_id: string;
661
- method: 'virtual_account';
662
- type: 'fiat_deposit';
663
- virtual_account_id: string;
664
- }
665
- interface BridgeMetadataUnionMember3 {
666
- method: 'transfer';
667
- /**
668
- * The wallet address that sent the transfer.
669
- */
670
- source_wallet_address: string;
671
- transfer_id: string;
672
- type: 'crypto_deposit';
673
- }
674
- interface BridgeMetadataUnionMember4 {
675
- method: 'transfer';
676
- transfer_id: string;
677
- type: 'fiat_deposit';
678
- }
679
- interface BridgeMetadataUnionMember5 {
680
- method: 'transfer';
681
- transfer_id: string;
682
- type: 'refund';
683
- /**
684
- * The original transfer transaction hash (if available).
685
- */
686
- original_transaction_hash?: string;
687
- }
668
+ caip2: string;
669
+ /**
670
+ * A description of why a wallet action (or a step within a wallet action) failed.
671
+ */
672
+ failure_reason: WalletActionsAPI.FailureReason;
673
+ /**
674
+ * Amount of input token in base units. Populated after on-chain confirmation.
675
+ */
676
+ input_amount: string | null;
677
+ /**
678
+ * Token address being sold.
679
+ */
680
+ input_token: string;
681
+ /**
682
+ * Token address being bought.
683
+ */
684
+ output_token: string;
685
+ /**
686
+ * Status of a wallet action.
687
+ */
688
+ status: WalletActionsAPI.WalletActionStatus;
689
+ /**
690
+ * The steps of the wallet action at the time of rejection.
691
+ */
692
+ steps: Array<WalletActionsAPI.WalletActionStep>;
693
+ /**
694
+ * The type of webhook event.
695
+ */
696
+ type: 'wallet_action.swap.rejected';
697
+ /**
698
+ * The ID of the wallet action.
699
+ */
700
+ wallet_action_id: string;
701
+ /**
702
+ * The ID of the wallet involved in the action.
703
+ */
704
+ wallet_id: string;
688
705
  }
689
706
  /**
690
- * Payload for the wallet.funds_withdrawn webhook event.
707
+ * Payload for the wallet_action.swap.failed webhook event.
691
708
  */
692
- export interface FundsWithdrawnWebhookPayload {
709
+ export interface WalletActionSwapFailedWebhookPayload {
693
710
  /**
694
- * The amount transferred, as a stringified bigint.
711
+ * Type of wallet action
695
712
  */
696
- amount: string;
713
+ action_type: WalletActionsAPI.WalletActionType;
697
714
  /**
698
- * The asset type being transferred.
715
+ * Chain identifier.
699
716
  */
700
- asset: FundsWithdrawnWebhookPayload.UnionMember0 | FundsWithdrawnWebhookPayload.UnionMember1 | FundsWithdrawnWebhookPayload.UnionMember2 | FundsWithdrawnWebhookPayload.UnionMember3;
701
- block: FundsWithdrawnWebhookPayload.Block;
717
+ caip2: string;
702
718
  /**
703
- * The CAIP-2 chain identifier.
719
+ * A description of why a wallet action (or a step within a wallet action) failed.
704
720
  */
705
- caip2: string;
721
+ failure_reason: WalletActionsAPI.FailureReason;
706
722
  /**
707
- * A unique key for this event.
723
+ * Amount of input token in base units. Populated after on-chain confirmation.
708
724
  */
709
- idempotency_key: string;
725
+ input_amount: string | null;
710
726
  /**
711
- * The recipient address.
727
+ * Token address being sold.
712
728
  */
713
- recipient: string;
729
+ input_token: string;
714
730
  /**
715
- * The sender address.
731
+ * Token address being bought.
716
732
  */
717
- sender: string;
733
+ output_token: string;
718
734
  /**
719
- * The blockchain transaction hash.
735
+ * Status of a wallet action.
720
736
  */
721
- transaction_hash: string;
737
+ status: WalletActionsAPI.WalletActionStatus;
738
+ /**
739
+ * The steps of the wallet action. Completed steps will have transaction hashes;
740
+ * the failing step will have a failure_reason.
741
+ */
742
+ steps: Array<WalletActionsAPI.WalletActionStep>;
722
743
  /**
723
744
  * The type of webhook event.
724
745
  */
725
- type: 'wallet.funds_withdrawn';
746
+ type: 'wallet_action.swap.failed';
726
747
  /**
727
- * The ID of the wallet.
748
+ * The ID of the wallet action.
749
+ */
750
+ wallet_action_id: string;
751
+ /**
752
+ * The ID of the wallet involved in the action.
728
753
  */
729
754
  wallet_id: string;
755
+ }
756
+ /**
757
+ * Payload for the wallet_action.transfer.created webhook event.
758
+ */
759
+ export interface WalletActionTransferCreatedWebhookPayload {
730
760
  /**
731
- * The transaction fee paid, as a stringified bigint in the chain's native token.
761
+ * Type of wallet action
732
762
  */
733
- transaction_fee?: string;
763
+ action_type: WalletActionsAPI.WalletActionType;
764
+ /**
765
+ * Recipient address.
766
+ */
767
+ destination_address: string;
768
+ /**
769
+ * Decimal amount as provided by the user (e.g. "1.5").
770
+ */
771
+ source_amount: string;
772
+ /**
773
+ * Asset identifier (e.g. "usdc", "eth").
774
+ */
775
+ source_asset: string;
776
+ /**
777
+ * Chain name (e.g. "base", "ethereum").
778
+ */
779
+ source_chain: string;
780
+ /**
781
+ * Status of a wallet action.
782
+ */
783
+ status: WalletActionsAPI.WalletActionStatus;
784
+ /**
785
+ * The type of webhook event.
786
+ */
787
+ type: 'wallet_action.transfer.created';
788
+ /**
789
+ * The ID of the wallet action.
790
+ */
791
+ wallet_action_id: string;
792
+ /**
793
+ * The ID of the wallet involved in the action.
794
+ */
795
+ wallet_id: string;
734
796
  }
735
- export declare namespace FundsWithdrawnWebhookPayload {
736
- interface UnionMember0 {
737
- address: null;
738
- type: 'native-token';
739
- }
740
- interface UnionMember1 {
741
- address: string;
742
- type: 'erc20';
743
- }
744
- interface UnionMember2 {
745
- mint: string;
746
- type: 'spl';
747
- }
748
- interface UnionMember3 {
749
- address: string;
750
- type: 'sac';
751
- }
752
- interface Block {
753
- /**
754
- * The block number.
755
- */
756
- number: number;
757
- /**
758
- * The block timestamp.
759
- */
760
- timestamp: number;
761
- }
797
+ /**
798
+ * Payload for the wallet_action.transfer.succeeded webhook event.
799
+ */
800
+ export interface WalletActionTransferSucceededWebhookPayload {
801
+ /**
802
+ * Type of wallet action
803
+ */
804
+ action_type: WalletActionsAPI.WalletActionType;
805
+ /**
806
+ * Recipient address.
807
+ */
808
+ destination_address: string;
809
+ /**
810
+ * Decimal amount as provided by the user (e.g. "1.5").
811
+ */
812
+ source_amount: string;
813
+ /**
814
+ * Asset identifier (e.g. "usdc", "eth").
815
+ */
816
+ source_asset: string;
817
+ /**
818
+ * Chain name (e.g. "base", "ethereum").
819
+ */
820
+ source_chain: string;
821
+ /**
822
+ * Status of a wallet action.
823
+ */
824
+ status: WalletActionsAPI.WalletActionStatus;
825
+ /**
826
+ * The steps of the wallet action, including transaction hashes.
827
+ */
828
+ steps: Array<WalletActionsAPI.WalletActionStep>;
829
+ /**
830
+ * The type of webhook event.
831
+ */
832
+ type: 'wallet_action.transfer.succeeded';
833
+ /**
834
+ * The ID of the wallet action.
835
+ */
836
+ wallet_action_id: string;
837
+ /**
838
+ * The ID of the wallet involved in the action.
839
+ */
840
+ wallet_id: string;
762
841
  }
763
842
  /**
764
- * Payload for the wallet.private_key_export webhook event.
843
+ * Payload for the wallet_action.transfer.rejected webhook event.
765
844
  */
766
- export interface PrivateKeyExportWebhookPayload {
845
+ export interface WalletActionTransferRejectedWebhookPayload {
846
+ /**
847
+ * Type of wallet action
848
+ */
849
+ action_type: WalletActionsAPI.WalletActionType;
850
+ /**
851
+ * Recipient address.
852
+ */
853
+ destination_address: string;
854
+ /**
855
+ * A description of why a wallet action (or a step within a wallet action) failed.
856
+ */
857
+ failure_reason: WalletActionsAPI.FailureReason;
858
+ /**
859
+ * Decimal amount as provided by the user (e.g. "1.5").
860
+ */
861
+ source_amount: string;
862
+ /**
863
+ * Asset identifier (e.g. "usdc", "eth").
864
+ */
865
+ source_asset: string;
866
+ /**
867
+ * Chain name (e.g. "base", "ethereum").
868
+ */
869
+ source_chain: string;
870
+ /**
871
+ * Status of a wallet action.
872
+ */
873
+ status: WalletActionsAPI.WalletActionStatus;
874
+ /**
875
+ * The steps of the wallet action at the time of rejection.
876
+ */
877
+ steps: Array<WalletActionsAPI.WalletActionStep>;
767
878
  /**
768
879
  * The type of webhook event.
769
880
  */
770
- type: 'wallet.private_key_export';
881
+ type: 'wallet_action.transfer.rejected';
771
882
  /**
772
- * The ID of the user who exported the key.
883
+ * The ID of the wallet action.
884
+ */
885
+ wallet_action_id: string;
886
+ /**
887
+ * The ID of the wallet involved in the action.
888
+ */
889
+ wallet_id: string;
890
+ }
891
+ /**
892
+ * Payload for the wallet_action.transfer.failed webhook event.
893
+ */
894
+ export interface WalletActionTransferFailedWebhookPayload {
895
+ /**
896
+ * Type of wallet action
897
+ */
898
+ action_type: WalletActionsAPI.WalletActionType;
899
+ /**
900
+ * Recipient address.
901
+ */
902
+ destination_address: string;
903
+ /**
904
+ * A description of why a wallet action (or a step within a wallet action) failed.
905
+ */
906
+ failure_reason: WalletActionsAPI.FailureReason;
907
+ /**
908
+ * Decimal amount as provided by the user (e.g. "1.5").
909
+ */
910
+ source_amount: string;
911
+ /**
912
+ * Asset identifier (e.g. "usdc", "eth").
913
+ */
914
+ source_asset: string;
915
+ /**
916
+ * Chain name (e.g. "base", "ethereum").
917
+ */
918
+ source_chain: string;
919
+ /**
920
+ * Status of a wallet action.
921
+ */
922
+ status: WalletActionsAPI.WalletActionStatus;
923
+ /**
924
+ * The steps of the wallet action. Completed steps will have transaction hashes;
925
+ * the failing step will have a failure_reason.
926
+ */
927
+ steps: Array<WalletActionsAPI.WalletActionStep>;
928
+ /**
929
+ * The type of webhook event.
930
+ */
931
+ type: 'wallet_action.transfer.failed';
932
+ /**
933
+ * The ID of the wallet action.
934
+ */
935
+ wallet_action_id: string;
936
+ /**
937
+ * The ID of the wallet involved in the action.
938
+ */
939
+ wallet_id: string;
940
+ }
941
+ /**
942
+ * Payload for the wallet_action.earn_deposit.created webhook event.
943
+ */
944
+ export interface WalletActionEarnDepositCreatedWebhookPayload {
945
+ /**
946
+ * Type of wallet action
947
+ */
948
+ action_type: WalletActionsAPI.WalletActionType;
949
+ /**
950
+ * Underlying asset token address.
951
+ */
952
+ asset_address: string;
953
+ /**
954
+ * CAIP-2 chain identifier.
955
+ */
956
+ caip2: string;
957
+ /**
958
+ * Base-unit amount of asset deposited (e.g. "1500000").
959
+ */
960
+ raw_amount: string;
961
+ /**
962
+ * Status of a wallet action.
963
+ */
964
+ status: WalletActionsAPI.WalletActionStatus;
965
+ /**
966
+ * The type of webhook event.
967
+ */
968
+ type: 'wallet_action.earn_deposit.created';
969
+ /**
970
+ * ERC-4626 vault contract address.
971
+ */
972
+ vault_address: string;
973
+ /**
974
+ * The vault ID.
975
+ */
976
+ vault_id: string;
977
+ /**
978
+ * The ID of the wallet action.
979
+ */
980
+ wallet_action_id: string;
981
+ /**
982
+ * The ID of the wallet involved in the action.
983
+ */
984
+ wallet_id: string;
985
+ /**
986
+ * Human-readable decimal amount of asset deposited (e.g. "1.5"). Only present when
987
+ * the token is known in the asset registry.
988
+ */
989
+ amount?: string;
990
+ /**
991
+ * Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
992
+ * the asset registry.
993
+ */
994
+ asset?: string;
995
+ /**
996
+ * Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
997
+ * present when the token is known in the asset registry.
998
+ */
999
+ decimals?: number;
1000
+ }
1001
+ /**
1002
+ * Payload for the wallet_action.earn_deposit.succeeded webhook event.
1003
+ */
1004
+ export interface WalletActionEarnDepositSucceededWebhookPayload {
1005
+ /**
1006
+ * Type of wallet action
1007
+ */
1008
+ action_type: WalletActionsAPI.WalletActionType;
1009
+ /**
1010
+ * Underlying asset token address.
1011
+ */
1012
+ asset_address: string;
1013
+ /**
1014
+ * CAIP-2 chain identifier.
1015
+ */
1016
+ caip2: string;
1017
+ /**
1018
+ * Base-unit amount of asset deposited (e.g. "1500000").
1019
+ */
1020
+ raw_amount: string;
1021
+ /**
1022
+ * Vault shares received in base units.
1023
+ */
1024
+ share_amount: string;
1025
+ /**
1026
+ * Status of a wallet action.
1027
+ */
1028
+ status: WalletActionsAPI.WalletActionStatus;
1029
+ /**
1030
+ * The steps of the wallet action, including transaction hashes.
1031
+ */
1032
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1033
+ /**
1034
+ * The type of webhook event.
1035
+ */
1036
+ type: 'wallet_action.earn_deposit.succeeded';
1037
+ /**
1038
+ * ERC-4626 vault contract address.
1039
+ */
1040
+ vault_address: string;
1041
+ /**
1042
+ * The vault ID.
1043
+ */
1044
+ vault_id: string;
1045
+ /**
1046
+ * The ID of the wallet action.
1047
+ */
1048
+ wallet_action_id: string;
1049
+ /**
1050
+ * The ID of the wallet involved in the action.
1051
+ */
1052
+ wallet_id: string;
1053
+ /**
1054
+ * Human-readable decimal amount of asset deposited (e.g. "1.5"). Only present when
1055
+ * the token is known in the asset registry.
1056
+ */
1057
+ amount?: string;
1058
+ /**
1059
+ * Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
1060
+ * the asset registry.
1061
+ */
1062
+ asset?: string;
1063
+ /**
1064
+ * Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
1065
+ * present when the token is known in the asset registry.
1066
+ */
1067
+ decimals?: number;
1068
+ }
1069
+ /**
1070
+ * Payload for the wallet_action.earn_deposit.rejected webhook event.
1071
+ */
1072
+ export interface WalletActionEarnDepositRejectedWebhookPayload {
1073
+ /**
1074
+ * Type of wallet action
1075
+ */
1076
+ action_type: WalletActionsAPI.WalletActionType;
1077
+ /**
1078
+ * Underlying asset token address.
1079
+ */
1080
+ asset_address: string;
1081
+ /**
1082
+ * CAIP-2 chain identifier.
1083
+ */
1084
+ caip2: string;
1085
+ /**
1086
+ * A description of why a wallet action (or a step within a wallet action) failed.
1087
+ */
1088
+ failure_reason: WalletActionsAPI.FailureReason;
1089
+ /**
1090
+ * Base-unit amount of asset deposited (e.g. "1500000").
1091
+ */
1092
+ raw_amount: string;
1093
+ /**
1094
+ * Status of a wallet action.
1095
+ */
1096
+ status: WalletActionsAPI.WalletActionStatus;
1097
+ /**
1098
+ * The steps of the wallet action at the time of rejection.
1099
+ */
1100
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1101
+ /**
1102
+ * The type of webhook event.
1103
+ */
1104
+ type: 'wallet_action.earn_deposit.rejected';
1105
+ /**
1106
+ * ERC-4626 vault contract address.
1107
+ */
1108
+ vault_address: string;
1109
+ /**
1110
+ * The vault ID.
1111
+ */
1112
+ vault_id: string;
1113
+ /**
1114
+ * The ID of the wallet action.
1115
+ */
1116
+ wallet_action_id: string;
1117
+ /**
1118
+ * The ID of the wallet involved in the action.
1119
+ */
1120
+ wallet_id: string;
1121
+ /**
1122
+ * Human-readable decimal amount of asset deposited (e.g. "1.5"). Only present when
1123
+ * the token is known in the asset registry.
1124
+ */
1125
+ amount?: string;
1126
+ /**
1127
+ * Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
1128
+ * the asset registry.
1129
+ */
1130
+ asset?: string;
1131
+ /**
1132
+ * Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
1133
+ * present when the token is known in the asset registry.
1134
+ */
1135
+ decimals?: number;
1136
+ }
1137
+ /**
1138
+ * Payload for the wallet_action.earn_deposit.failed webhook event.
1139
+ */
1140
+ export interface WalletActionEarnDepositFailedWebhookPayload {
1141
+ /**
1142
+ * Type of wallet action
1143
+ */
1144
+ action_type: WalletActionsAPI.WalletActionType;
1145
+ /**
1146
+ * Underlying asset token address.
1147
+ */
1148
+ asset_address: string;
1149
+ /**
1150
+ * CAIP-2 chain identifier.
1151
+ */
1152
+ caip2: string;
1153
+ /**
1154
+ * A description of why a wallet action (or a step within a wallet action) failed.
1155
+ */
1156
+ failure_reason: WalletActionsAPI.FailureReason;
1157
+ /**
1158
+ * Base-unit amount of asset deposited (e.g. "1500000").
1159
+ */
1160
+ raw_amount: string;
1161
+ /**
1162
+ * Status of a wallet action.
1163
+ */
1164
+ status: WalletActionsAPI.WalletActionStatus;
1165
+ /**
1166
+ * The steps of the wallet action. Completed steps will have transaction hashes;
1167
+ * the failing step will have a failure_reason.
1168
+ */
1169
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1170
+ /**
1171
+ * The type of webhook event.
1172
+ */
1173
+ type: 'wallet_action.earn_deposit.failed';
1174
+ /**
1175
+ * ERC-4626 vault contract address.
1176
+ */
1177
+ vault_address: string;
1178
+ /**
1179
+ * The vault ID.
1180
+ */
1181
+ vault_id: string;
1182
+ /**
1183
+ * The ID of the wallet action.
1184
+ */
1185
+ wallet_action_id: string;
1186
+ /**
1187
+ * The ID of the wallet involved in the action.
1188
+ */
1189
+ wallet_id: string;
1190
+ /**
1191
+ * Human-readable decimal amount of asset deposited (e.g. "1.5"). Only present when
1192
+ * the token is known in the asset registry.
1193
+ */
1194
+ amount?: string;
1195
+ /**
1196
+ * Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
1197
+ * the asset registry.
1198
+ */
1199
+ asset?: string;
1200
+ /**
1201
+ * Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
1202
+ * present when the token is known in the asset registry.
1203
+ */
1204
+ decimals?: number;
1205
+ }
1206
+ /**
1207
+ * Payload for the wallet_action.earn_withdraw.created webhook event.
1208
+ */
1209
+ export interface WalletActionEarnWithdrawCreatedWebhookPayload {
1210
+ /**
1211
+ * Type of wallet action
1212
+ */
1213
+ action_type: WalletActionsAPI.WalletActionType;
1214
+ /**
1215
+ * Underlying asset token address.
1216
+ */
1217
+ asset_address: string;
1218
+ /**
1219
+ * CAIP-2 chain identifier.
1220
+ */
1221
+ caip2: string;
1222
+ /**
1223
+ * Base-unit amount of asset withdrawn (e.g. "1500000").
1224
+ */
1225
+ raw_amount: string;
1226
+ /**
1227
+ * Status of a wallet action.
1228
+ */
1229
+ status: WalletActionsAPI.WalletActionStatus;
1230
+ /**
1231
+ * The type of webhook event.
1232
+ */
1233
+ type: 'wallet_action.earn_withdraw.created';
1234
+ /**
1235
+ * ERC-4626 vault contract address.
1236
+ */
1237
+ vault_address: string;
1238
+ /**
1239
+ * The vault ID.
1240
+ */
1241
+ vault_id: string;
1242
+ /**
1243
+ * The ID of the wallet action.
1244
+ */
1245
+ wallet_action_id: string;
1246
+ /**
1247
+ * The ID of the wallet involved in the action.
1248
+ */
1249
+ wallet_id: string;
1250
+ /**
1251
+ * Human-readable decimal amount of asset withdrawn (e.g. "1.5"). Only present when
1252
+ * the token is known in the asset registry.
1253
+ */
1254
+ amount?: string;
1255
+ /**
1256
+ * Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
1257
+ * the asset registry.
1258
+ */
1259
+ asset?: string;
1260
+ /**
1261
+ * Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
1262
+ * present when the token is known in the asset registry.
1263
+ */
1264
+ decimals?: number;
1265
+ }
1266
+ /**
1267
+ * Payload for the wallet_action.earn_withdraw.succeeded webhook event.
1268
+ */
1269
+ export interface WalletActionEarnWithdrawSucceededWebhookPayload {
1270
+ /**
1271
+ * Type of wallet action
1272
+ */
1273
+ action_type: WalletActionsAPI.WalletActionType;
1274
+ /**
1275
+ * Underlying asset token address.
1276
+ */
1277
+ asset_address: string;
1278
+ /**
1279
+ * CAIP-2 chain identifier.
1280
+ */
1281
+ caip2: string;
1282
+ /**
1283
+ * Base-unit amount of asset withdrawn (e.g. "1500000").
1284
+ */
1285
+ raw_amount: string;
1286
+ /**
1287
+ * Vault shares burned in base units.
1288
+ */
1289
+ share_amount: string;
1290
+ /**
1291
+ * Status of a wallet action.
1292
+ */
1293
+ status: WalletActionsAPI.WalletActionStatus;
1294
+ /**
1295
+ * The steps of the wallet action, including transaction hashes.
1296
+ */
1297
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1298
+ /**
1299
+ * The type of webhook event.
1300
+ */
1301
+ type: 'wallet_action.earn_withdraw.succeeded';
1302
+ /**
1303
+ * ERC-4626 vault contract address.
1304
+ */
1305
+ vault_address: string;
1306
+ /**
1307
+ * The vault ID.
1308
+ */
1309
+ vault_id: string;
1310
+ /**
1311
+ * The ID of the wallet action.
1312
+ */
1313
+ wallet_action_id: string;
1314
+ /**
1315
+ * The ID of the wallet involved in the action.
1316
+ */
1317
+ wallet_id: string;
1318
+ /**
1319
+ * Human-readable decimal amount of asset withdrawn (e.g. "1.5"). Only present when
1320
+ * the token is known in the asset registry.
1321
+ */
1322
+ amount?: string;
1323
+ /**
1324
+ * Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
1325
+ * the asset registry.
1326
+ */
1327
+ asset?: string;
1328
+ /**
1329
+ * Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
1330
+ * present when the token is known in the asset registry.
1331
+ */
1332
+ decimals?: number;
1333
+ }
1334
+ /**
1335
+ * Payload for the wallet_action.earn_withdraw.rejected webhook event.
1336
+ */
1337
+ export interface WalletActionEarnWithdrawRejectedWebhookPayload {
1338
+ /**
1339
+ * Type of wallet action
1340
+ */
1341
+ action_type: WalletActionsAPI.WalletActionType;
1342
+ /**
1343
+ * Underlying asset token address.
1344
+ */
1345
+ asset_address: string;
1346
+ /**
1347
+ * CAIP-2 chain identifier.
1348
+ */
1349
+ caip2: string;
1350
+ /**
1351
+ * A description of why a wallet action (or a step within a wallet action) failed.
1352
+ */
1353
+ failure_reason: WalletActionsAPI.FailureReason;
1354
+ /**
1355
+ * Base-unit amount of asset withdrawn (e.g. "1500000").
1356
+ */
1357
+ raw_amount: string;
1358
+ /**
1359
+ * Status of a wallet action.
1360
+ */
1361
+ status: WalletActionsAPI.WalletActionStatus;
1362
+ /**
1363
+ * The steps of the wallet action at the time of rejection.
1364
+ */
1365
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1366
+ /**
1367
+ * The type of webhook event.
1368
+ */
1369
+ type: 'wallet_action.earn_withdraw.rejected';
1370
+ /**
1371
+ * ERC-4626 vault contract address.
1372
+ */
1373
+ vault_address: string;
1374
+ /**
1375
+ * The vault ID.
1376
+ */
1377
+ vault_id: string;
1378
+ /**
1379
+ * The ID of the wallet action.
1380
+ */
1381
+ wallet_action_id: string;
1382
+ /**
1383
+ * The ID of the wallet involved in the action.
1384
+ */
1385
+ wallet_id: string;
1386
+ /**
1387
+ * Human-readable decimal amount of asset withdrawn (e.g. "1.5"). Only present when
1388
+ * the token is known in the asset registry.
1389
+ */
1390
+ amount?: string;
1391
+ /**
1392
+ * Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
1393
+ * the asset registry.
1394
+ */
1395
+ asset?: string;
1396
+ /**
1397
+ * Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
1398
+ * present when the token is known in the asset registry.
1399
+ */
1400
+ decimals?: number;
1401
+ }
1402
+ /**
1403
+ * Payload for the wallet_action.earn_withdraw.failed webhook event.
1404
+ */
1405
+ export interface WalletActionEarnWithdrawFailedWebhookPayload {
1406
+ /**
1407
+ * Type of wallet action
1408
+ */
1409
+ action_type: WalletActionsAPI.WalletActionType;
1410
+ /**
1411
+ * Underlying asset token address.
1412
+ */
1413
+ asset_address: string;
1414
+ /**
1415
+ * CAIP-2 chain identifier.
1416
+ */
1417
+ caip2: string;
1418
+ /**
1419
+ * A description of why a wallet action (or a step within a wallet action) failed.
1420
+ */
1421
+ failure_reason: WalletActionsAPI.FailureReason;
1422
+ /**
1423
+ * Base-unit amount of asset withdrawn (e.g. "1500000").
1424
+ */
1425
+ raw_amount: string;
1426
+ /**
1427
+ * Status of a wallet action.
1428
+ */
1429
+ status: WalletActionsAPI.WalletActionStatus;
1430
+ /**
1431
+ * The steps of the wallet action. Completed steps will have transaction hashes;
1432
+ * the failing step will have a failure_reason.
1433
+ */
1434
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1435
+ /**
1436
+ * The type of webhook event.
1437
+ */
1438
+ type: 'wallet_action.earn_withdraw.failed';
1439
+ /**
1440
+ * ERC-4626 vault contract address.
1441
+ */
1442
+ vault_address: string;
1443
+ /**
1444
+ * The vault ID.
1445
+ */
1446
+ vault_id: string;
1447
+ /**
1448
+ * The ID of the wallet action.
1449
+ */
1450
+ wallet_action_id: string;
1451
+ /**
1452
+ * The ID of the wallet involved in the action.
1453
+ */
1454
+ wallet_id: string;
1455
+ /**
1456
+ * Human-readable decimal amount of asset withdrawn (e.g. "1.5"). Only present when
1457
+ * the token is known in the asset registry.
1458
+ */
1459
+ amount?: string;
1460
+ /**
1461
+ * Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
1462
+ * the asset registry.
1463
+ */
1464
+ asset?: string;
1465
+ /**
1466
+ * Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
1467
+ * present when the token is known in the asset registry.
1468
+ */
1469
+ decimals?: number;
1470
+ }
1471
+ /**
1472
+ * Payload for the wallet_action.earn_incentive_claim.created webhook event.
1473
+ */
1474
+ export interface WalletActionEarnIncentiveClaimCreatedWebhookPayload {
1475
+ /**
1476
+ * Type of wallet action
1477
+ */
1478
+ action_type: WalletActionsAPI.WalletActionType;
1479
+ /**
1480
+ * EVM chain name (e.g. "base", "ethereum").
1481
+ */
1482
+ chain: string;
1483
+ /**
1484
+ * Claimed reward tokens. Populated after the preparation step fetches from Merkl.
1485
+ */
1486
+ rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
1487
+ /**
1488
+ * Status of a wallet action.
1489
+ */
1490
+ status: WalletActionsAPI.WalletActionStatus;
1491
+ /**
1492
+ * The type of webhook event.
1493
+ */
1494
+ type: 'wallet_action.earn_incentive_claim.created';
1495
+ /**
1496
+ * The ID of the wallet action.
1497
+ */
1498
+ wallet_action_id: string;
1499
+ /**
1500
+ * The ID of the wallet involved in the action.
1501
+ */
1502
+ wallet_id: string;
1503
+ }
1504
+ /**
1505
+ * Payload for the wallet_action.earn_incentive_claim.succeeded webhook event.
1506
+ */
1507
+ export interface WalletActionEarnIncentiveClaimSucceededWebhookPayload {
1508
+ /**
1509
+ * Type of wallet action
1510
+ */
1511
+ action_type: WalletActionsAPI.WalletActionType;
1512
+ /**
1513
+ * EVM chain name (e.g. "base", "ethereum").
1514
+ */
1515
+ chain: string;
1516
+ /**
1517
+ * Claimed reward tokens. Populated after the preparation step fetches from Merkl.
1518
+ */
1519
+ rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
1520
+ /**
1521
+ * Status of a wallet action.
1522
+ */
1523
+ status: WalletActionsAPI.WalletActionStatus;
1524
+ /**
1525
+ * The steps of the wallet action, including transaction hashes.
1526
+ */
1527
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1528
+ /**
1529
+ * The type of webhook event.
1530
+ */
1531
+ type: 'wallet_action.earn_incentive_claim.succeeded';
1532
+ /**
1533
+ * The ID of the wallet action.
1534
+ */
1535
+ wallet_action_id: string;
1536
+ /**
1537
+ * The ID of the wallet involved in the action.
1538
+ */
1539
+ wallet_id: string;
1540
+ }
1541
+ /**
1542
+ * Payload for the wallet_action.earn_incentive_claim.rejected webhook event.
1543
+ */
1544
+ export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
1545
+ /**
1546
+ * Type of wallet action
1547
+ */
1548
+ action_type: WalletActionsAPI.WalletActionType;
1549
+ /**
1550
+ * EVM chain name (e.g. "base", "ethereum").
1551
+ */
1552
+ chain: string;
1553
+ /**
1554
+ * A description of why a wallet action (or a step within a wallet action) failed.
1555
+ */
1556
+ failure_reason: WalletActionsAPI.FailureReason;
1557
+ /**
1558
+ * Claimed reward tokens. Populated after the preparation step fetches from Merkl.
1559
+ */
1560
+ rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
1561
+ /**
1562
+ * Status of a wallet action.
1563
+ */
1564
+ status: WalletActionsAPI.WalletActionStatus;
1565
+ /**
1566
+ * The steps of the wallet action at the time of rejection.
1567
+ */
1568
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1569
+ /**
1570
+ * The type of webhook event.
1571
+ */
1572
+ type: 'wallet_action.earn_incentive_claim.rejected';
1573
+ /**
1574
+ * The ID of the wallet action.
1575
+ */
1576
+ wallet_action_id: string;
1577
+ /**
1578
+ * The ID of the wallet involved in the action.
1579
+ */
1580
+ wallet_id: string;
1581
+ }
1582
+ /**
1583
+ * Payload for the wallet_action.earn_incentive_claim.failed webhook event.
1584
+ */
1585
+ export interface WalletActionEarnIncentiveClaimFailedWebhookPayload {
1586
+ /**
1587
+ * Type of wallet action
1588
+ */
1589
+ action_type: WalletActionsAPI.WalletActionType;
1590
+ /**
1591
+ * EVM chain name (e.g. "base", "ethereum").
1592
+ */
1593
+ chain: string;
1594
+ /**
1595
+ * A description of why a wallet action (or a step within a wallet action) failed.
1596
+ */
1597
+ failure_reason: WalletActionsAPI.FailureReason;
1598
+ /**
1599
+ * Claimed reward tokens. Populated after the preparation step fetches from Merkl.
1600
+ */
1601
+ rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
1602
+ /**
1603
+ * Status of a wallet action.
1604
+ */
1605
+ status: WalletActionsAPI.WalletActionStatus;
1606
+ /**
1607
+ * The steps of the wallet action. Completed steps will have transaction hashes;
1608
+ * the failing step will have a failure_reason.
1609
+ */
1610
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1611
+ /**
1612
+ * The type of webhook event.
1613
+ */
1614
+ type: 'wallet_action.earn_incentive_claim.failed';
1615
+ /**
1616
+ * The ID of the wallet action.
1617
+ */
1618
+ wallet_action_id: string;
1619
+ /**
1620
+ * The ID of the wallet involved in the action.
1621
+ */
1622
+ wallet_id: string;
1623
+ }
1624
+ /**
1625
+ * A native token asset (e.g. ETH, SOL).
1626
+ */
1627
+ export interface WalletFundsNativeTokenAsset {
1628
+ address: null;
1629
+ type: 'native-token';
1630
+ }
1631
+ /**
1632
+ * An ERC-20 token asset.
1633
+ */
1634
+ export interface WalletFundsErc20Asset {
1635
+ address: string;
1636
+ type: 'erc20';
1637
+ }
1638
+ /**
1639
+ * A Solana SPL token asset.
1640
+ */
1641
+ export interface WalletFundsSplAsset {
1642
+ mint: string;
1643
+ type: 'spl';
1644
+ }
1645
+ /**
1646
+ * A Stellar Asset Contract (SAC) asset.
1647
+ */
1648
+ export interface WalletFundsSacAsset {
1649
+ address: string;
1650
+ type: 'sac';
1651
+ }
1652
+ /**
1653
+ * An asset involved in a wallet transfer.
1654
+ */
1655
+ export type WalletFundsAsset = WalletFundsNativeTokenAsset | WalletFundsErc20Asset | WalletFundsSplAsset | WalletFundsSacAsset;
1656
+ /**
1657
+ * Bridge metadata for a crypto deposit via liquidation address.
1658
+ */
1659
+ export interface BridgeCryptoDepositMetadata {
1660
+ drain_id: string;
1661
+ /**
1662
+ * The crypto address of the liquidation address that received the deposit.
1663
+ */
1664
+ liquidation_address: string;
1665
+ liquidation_address_id: string;
1666
+ method: 'liquidation_address';
1667
+ /**
1668
+ * The address that sent the deposit.
1669
+ */
1670
+ source_wallet_address: string;
1671
+ type: 'crypto_deposit';
1672
+ }
1673
+ /**
1674
+ * Bridge metadata for a refund via liquidation address.
1675
+ */
1676
+ export interface BridgeRefundMetadata {
1677
+ drain_id: string;
1678
+ liquidation_address_id: string;
1679
+ method: 'liquidation_address';
1680
+ /**
1681
+ * The original deposit transaction hash that triggered the failed drain.
1682
+ */
1683
+ original_transaction_hash: string;
1684
+ type: 'refund';
1685
+ }
1686
+ /**
1687
+ * Bridge metadata for a fiat deposit via virtual account.
1688
+ */
1689
+ export interface BridgeFiatDepositMetadata {
1690
+ activity_id: string;
1691
+ method: 'virtual_account';
1692
+ type: 'fiat_deposit';
1693
+ virtual_account_id: string;
1694
+ }
1695
+ /**
1696
+ * Bridge metadata for a crypto deposit via transfer.
1697
+ */
1698
+ export interface BridgeCryptoTransferMetadata {
1699
+ method: 'transfer';
1700
+ /**
1701
+ * The wallet address that sent the transfer.
1702
+ */
1703
+ source_wallet_address: string;
1704
+ transfer_id: string;
1705
+ type: 'crypto_deposit';
1706
+ }
1707
+ /**
1708
+ * Bridge metadata for a fiat deposit via transfer.
1709
+ */
1710
+ export interface BridgeFiatTransferMetadata {
1711
+ method: 'transfer';
1712
+ transfer_id: string;
1713
+ type: 'fiat_deposit';
1714
+ }
1715
+ /**
1716
+ * Bridge metadata for a transfer refund.
1717
+ */
1718
+ export interface BridgeTransferRefundMetadata {
1719
+ method: 'transfer';
1720
+ transfer_id: string;
1721
+ type: 'refund';
1722
+ /**
1723
+ * The original transfer transaction hash (if available).
1724
+ */
1725
+ original_transaction_hash?: string;
1726
+ }
1727
+ /**
1728
+ * Metadata about a Bridge transaction associated with a wallet event.
1729
+ */
1730
+ export type BridgeMetadata = BridgeCryptoDepositMetadata | BridgeRefundMetadata | BridgeFiatDepositMetadata | BridgeCryptoTransferMetadata | BridgeFiatTransferMetadata | BridgeTransferRefundMetadata;
1731
+ /**
1732
+ * Payload for the wallet.funds_deposited webhook event.
1733
+ */
1734
+ export interface FundsDepositedWebhookPayload {
1735
+ /**
1736
+ * The amount transferred, as a stringified bigint.
1737
+ */
1738
+ amount: string;
1739
+ /**
1740
+ * An asset involved in a wallet transfer.
1741
+ */
1742
+ asset: WalletFundsAsset;
1743
+ block: FundsDepositedWebhookPayload.Block;
1744
+ /**
1745
+ * The CAIP-2 chain identifier.
1746
+ */
1747
+ caip2: string;
1748
+ /**
1749
+ * A unique key for this event.
1750
+ */
1751
+ idempotency_key: string;
1752
+ /**
1753
+ * The recipient address.
1754
+ */
1755
+ recipient: string;
1756
+ /**
1757
+ * The sender address.
1758
+ */
1759
+ sender: string;
1760
+ /**
1761
+ * The blockchain transaction hash.
1762
+ */
1763
+ transaction_hash: string;
1764
+ /**
1765
+ * The type of webhook event.
1766
+ */
1767
+ type: 'wallet.funds_deposited';
1768
+ /**
1769
+ * The ID of the wallet.
1770
+ */
1771
+ wallet_id: string;
1772
+ /**
1773
+ * Metadata about a Bridge transaction associated with a wallet event.
1774
+ */
1775
+ bridge_metadata?: BridgeMetadata;
1776
+ /**
1777
+ * The transaction fee paid, as a stringified bigint in the chain's native token.
1778
+ */
1779
+ transaction_fee?: string;
1780
+ }
1781
+ export declare namespace FundsDepositedWebhookPayload {
1782
+ interface Block {
1783
+ /**
1784
+ * The block number.
1785
+ */
1786
+ number: number;
1787
+ /**
1788
+ * The block timestamp.
1789
+ */
1790
+ timestamp: number;
1791
+ }
1792
+ }
1793
+ /**
1794
+ * Payload for the wallet.funds_withdrawn webhook event.
1795
+ */
1796
+ export interface FundsWithdrawnWebhookPayload {
1797
+ /**
1798
+ * The amount transferred, as a stringified bigint.
1799
+ */
1800
+ amount: string;
1801
+ /**
1802
+ * An asset involved in a wallet transfer.
1803
+ */
1804
+ asset: WalletFundsAsset;
1805
+ block: FundsWithdrawnWebhookPayload.Block;
1806
+ /**
1807
+ * The CAIP-2 chain identifier.
1808
+ */
1809
+ caip2: string;
1810
+ /**
1811
+ * A unique key for this event.
1812
+ */
1813
+ idempotency_key: string;
1814
+ /**
1815
+ * The recipient address.
1816
+ */
1817
+ recipient: string;
1818
+ /**
1819
+ * The sender address.
1820
+ */
1821
+ sender: string;
1822
+ /**
1823
+ * The blockchain transaction hash.
1824
+ */
1825
+ transaction_hash: string;
1826
+ /**
1827
+ * The type of webhook event.
1828
+ */
1829
+ type: 'wallet.funds_withdrawn';
1830
+ /**
1831
+ * The ID of the wallet.
1832
+ */
1833
+ wallet_id: string;
1834
+ /**
1835
+ * The transaction fee paid, as a stringified bigint in the chain's native token.
1836
+ */
1837
+ transaction_fee?: string;
1838
+ }
1839
+ export declare namespace FundsWithdrawnWebhookPayload {
1840
+ interface Block {
1841
+ /**
1842
+ * The block number.
1843
+ */
1844
+ number: number;
1845
+ /**
1846
+ * The block timestamp.
1847
+ */
1848
+ timestamp: number;
1849
+ }
1850
+ }
1851
+ /**
1852
+ * Payload for the wallet.private_key_export webhook event.
1853
+ */
1854
+ export interface PrivateKeyExportWebhookPayload {
1855
+ /**
1856
+ * The type of webhook event.
1857
+ */
1858
+ type: 'wallet.private_key_export';
1859
+ /**
1860
+ * The ID of the user who exported the key.
1861
+ */
1862
+ user_id: string;
1863
+ /**
1864
+ * The address of the wallet.
1865
+ */
1866
+ wallet_address: string;
1867
+ /**
1868
+ * The ID of the wallet.
1869
+ */
1870
+ wallet_id: string;
1871
+ export_source?: 'display' | 'client';
1872
+ }
1873
+ /**
1874
+ * Payload for the wallet.seed_phrase_export webhook event.
1875
+ */
1876
+ export interface SeedPhraseExportWebhookPayload {
1877
+ /**
1878
+ * The type of webhook event.
1879
+ */
1880
+ type: 'wallet.seed_phrase_export';
1881
+ /**
1882
+ * The ID of the user who exported the seed phrase.
773
1883
  */
774
1884
  user_id: string;
775
1885
  /**
@@ -882,7 +1992,7 @@ export declare namespace YieldClaimConfirmedWebhookPayload {
882
1992
  /**
883
1993
  * Union of all webhook payload schemas.
884
1994
  */
885
- export type WebhookPayload = UserCreatedWebhookPayload | UserAuthenticatedWebhookPayload | UserLinkedAccountWebhookPayload | UserUnlinkedAccountWebhookPayload | UserUpdatedAccountWebhookPayload | UserTransferredAccountWebhookPayload | UserWalletCreatedWebhookPayload | TransactionBroadcastedWebhookPayload | TransactionConfirmedWebhookPayload | TransactionExecutionRevertedWebhookPayload | TransactionStillPendingWebhookPayload | TransactionFailedWebhookPayload | TransactionReplacedWebhookPayload | TransactionProviderErrorWebhookPayload | FundsDepositedWebhookPayload | FundsWithdrawnWebhookPayload | PrivateKeyExportWebhookPayload | WalletRecoverySetupWebhookPayload | WalletRecoveredWebhookPayload | MfaEnabledWebhookPayload | MfaDisabledWebhookPayload | YieldDepositConfirmedWebhookPayload | YieldWithdrawConfirmedWebhookPayload | YieldClaimConfirmedWebhookPayload | UserOperationCompletedWebhookPayload | IntentCreatedWebhookPayload | IntentAuthorizedWebhookPayload | IntentExecutedWebhookPayload | IntentFailedWebhookPayload;
1995
+ export type WebhookPayload = UserCreatedWebhookPayload | UserAuthenticatedWebhookPayload | UserLinkedAccountWebhookPayload | UserUnlinkedAccountWebhookPayload | UserUpdatedAccountWebhookPayload | UserTransferredAccountWebhookPayload | UserWalletCreatedWebhookPayload | TransactionBroadcastedWebhookPayload | TransactionConfirmedWebhookPayload | TransactionExecutionRevertedWebhookPayload | TransactionStillPendingWebhookPayload | TransactionFailedWebhookPayload | TransactionReplacedWebhookPayload | TransactionProviderErrorWebhookPayload | FundsDepositedWebhookPayload | FundsWithdrawnWebhookPayload | PrivateKeyExportWebhookPayload | SeedPhraseExportWebhookPayload | WalletRecoverySetupWebhookPayload | WalletRecoveredWebhookPayload | MfaEnabledWebhookPayload | MfaDisabledWebhookPayload | YieldDepositConfirmedWebhookPayload | YieldWithdrawConfirmedWebhookPayload | YieldClaimConfirmedWebhookPayload | UserOperationCompletedWebhookPayload | IntentCreatedWebhookPayload | IntentAuthorizedWebhookPayload | IntentExecutedWebhookPayload | IntentFailedWebhookPayload | WalletActionSwapCreatedWebhookPayload | WalletActionSwapSucceededWebhookPayload | WalletActionSwapRejectedWebhookPayload | WalletActionSwapFailedWebhookPayload | WalletActionTransferCreatedWebhookPayload | WalletActionTransferSucceededWebhookPayload | WalletActionTransferRejectedWebhookPayload | WalletActionTransferFailedWebhookPayload | WalletActionEarnDepositCreatedWebhookPayload | WalletActionEarnDepositSucceededWebhookPayload | WalletActionEarnDepositRejectedWebhookPayload | WalletActionEarnDepositFailedWebhookPayload | WalletActionEarnWithdrawCreatedWebhookPayload | WalletActionEarnWithdrawSucceededWebhookPayload | WalletActionEarnWithdrawRejectedWebhookPayload | WalletActionEarnWithdrawFailedWebhookPayload | WalletActionEarnIncentiveClaimCreatedWebhookPayload | WalletActionEarnIncentiveClaimSucceededWebhookPayload | WalletActionEarnIncentiveClaimRejectedWebhookPayload | WalletActionEarnIncentiveClaimFailedWebhookPayload;
886
1996
  /**
887
1997
  * Payload for the kraken_embed.quote_executed webhook event.
888
1998
  */
@@ -1008,6 +2118,6 @@ export interface KrakenEmbedUserClosedWebhookPayload {
1008
2118
  user_id: string;
1009
2119
  }
1010
2120
  export declare namespace Webhooks {
1011
- export { type IntentCreatedWebhookPayload as IntentCreatedWebhookPayload, type IntentAuthorizedWebhookPayload as IntentAuthorizedWebhookPayload, type IntentExecutedWebhookPayload as IntentExecutedWebhookPayload, type IntentFailedWebhookPayload as IntentFailedWebhookPayload, type MfaEnabledWebhookPayload as MfaEnabledWebhookPayload, type MfaDisabledWebhookPayload as MfaDisabledWebhookPayload, type TransactionBroadcastedWebhookPayload as TransactionBroadcastedWebhookPayload, type TransactionConfirmedWebhookPayload as TransactionConfirmedWebhookPayload, type TransactionExecutionRevertedWebhookPayload as TransactionExecutionRevertedWebhookPayload, type TransactionStillPendingWebhookPayload as TransactionStillPendingWebhookPayload, type TransactionFailedWebhookPayload as TransactionFailedWebhookPayload, type TransactionReplacedWebhookPayload as TransactionReplacedWebhookPayload, type TransactionProviderErrorWebhookPayload as TransactionProviderErrorWebhookPayload, type UserOperationCompletedWebhookPayload as UserOperationCompletedWebhookPayload, type UserCreatedWebhookPayload as UserCreatedWebhookPayload, type UserAuthenticatedWebhookPayload as UserAuthenticatedWebhookPayload, type UserLinkedAccountWebhookPayload as UserLinkedAccountWebhookPayload, type UserUnlinkedAccountWebhookPayload as UserUnlinkedAccountWebhookPayload, type UserUpdatedAccountWebhookPayload as UserUpdatedAccountWebhookPayload, type UserTransferredAccountWebhookPayload as UserTransferredAccountWebhookPayload, type UserWalletCreatedWebhookPayload as UserWalletCreatedWebhookPayload, type FundsDepositedWebhookPayload as FundsDepositedWebhookPayload, type FundsWithdrawnWebhookPayload as FundsWithdrawnWebhookPayload, type PrivateKeyExportWebhookPayload as PrivateKeyExportWebhookPayload, type WalletRecoverySetupWebhookPayload as WalletRecoverySetupWebhookPayload, type WalletRecoveredWebhookPayload as WalletRecoveredWebhookPayload, type YieldDepositConfirmedWebhookPayload as YieldDepositConfirmedWebhookPayload, type YieldWithdrawConfirmedWebhookPayload as YieldWithdrawConfirmedWebhookPayload, type YieldClaimConfirmedWebhookPayload as YieldClaimConfirmedWebhookPayload, type WebhookPayload as WebhookPayload, type KrakenEmbedQuoteExecutedWebhookPayload as KrakenEmbedQuoteExecutedWebhookPayload, type KrakenEmbedQuoteExecutionFailedWebhookPayload as KrakenEmbedQuoteExecutionFailedWebhookPayload, type KrakenEmbedQuoteCancelledWebhookPayload as KrakenEmbedQuoteCancelledWebhookPayload, type KrakenEmbedUserVerifiedWebhookPayload as KrakenEmbedUserVerifiedWebhookPayload, type KrakenEmbedUserDisabledWebhookPayload as KrakenEmbedUserDisabledWebhookPayload, type KrakenEmbedUserClosedWebhookPayload as KrakenEmbedUserClosedWebhookPayload, };
2121
+ export { type IntentCreatedWebhookPayload as IntentCreatedWebhookPayload, type IntentAuthorizedWebhookPayload as IntentAuthorizedWebhookPayload, type IntentExecutedWebhookPayload as IntentExecutedWebhookPayload, type IntentFailedWebhookPayload as IntentFailedWebhookPayload, type MfaEnabledWebhookPayload as MfaEnabledWebhookPayload, type MfaDisabledWebhookPayload as MfaDisabledWebhookPayload, type TransactionBroadcastedWebhookPayload as TransactionBroadcastedWebhookPayload, type TransactionConfirmedWebhookPayload as TransactionConfirmedWebhookPayload, type TransactionExecutionRevertedWebhookPayload as TransactionExecutionRevertedWebhookPayload, type TransactionStillPendingWebhookPayload as TransactionStillPendingWebhookPayload, type TransactionFailedWebhookPayload as TransactionFailedWebhookPayload, type TransactionReplacedWebhookPayload as TransactionReplacedWebhookPayload, type TransactionProviderErrorWebhookPayload as TransactionProviderErrorWebhookPayload, type UserOperationCompletedWebhookPayload as UserOperationCompletedWebhookPayload, type UserCreatedWebhookPayload as UserCreatedWebhookPayload, type UserAuthenticatedWebhookPayload as UserAuthenticatedWebhookPayload, type UserLinkedAccountWebhookPayload as UserLinkedAccountWebhookPayload, type UserUnlinkedAccountWebhookPayload as UserUnlinkedAccountWebhookPayload, type UserUpdatedAccountWebhookPayload as UserUpdatedAccountWebhookPayload, type UserTransferredAccountWebhookPayload as UserTransferredAccountWebhookPayload, type UserWalletCreatedWebhookPayload as UserWalletCreatedWebhookPayload, type WalletActionSwapCreatedWebhookPayload as WalletActionSwapCreatedWebhookPayload, type WalletActionSwapSucceededWebhookPayload as WalletActionSwapSucceededWebhookPayload, type WalletActionSwapRejectedWebhookPayload as WalletActionSwapRejectedWebhookPayload, type WalletActionSwapFailedWebhookPayload as WalletActionSwapFailedWebhookPayload, type WalletActionTransferCreatedWebhookPayload as WalletActionTransferCreatedWebhookPayload, type WalletActionTransferSucceededWebhookPayload as WalletActionTransferSucceededWebhookPayload, type WalletActionTransferRejectedWebhookPayload as WalletActionTransferRejectedWebhookPayload, type WalletActionTransferFailedWebhookPayload as WalletActionTransferFailedWebhookPayload, type WalletActionEarnDepositCreatedWebhookPayload as WalletActionEarnDepositCreatedWebhookPayload, type WalletActionEarnDepositSucceededWebhookPayload as WalletActionEarnDepositSucceededWebhookPayload, type WalletActionEarnDepositRejectedWebhookPayload as WalletActionEarnDepositRejectedWebhookPayload, type WalletActionEarnDepositFailedWebhookPayload as WalletActionEarnDepositFailedWebhookPayload, type WalletActionEarnWithdrawCreatedWebhookPayload as WalletActionEarnWithdrawCreatedWebhookPayload, type WalletActionEarnWithdrawSucceededWebhookPayload as WalletActionEarnWithdrawSucceededWebhookPayload, type WalletActionEarnWithdrawRejectedWebhookPayload as WalletActionEarnWithdrawRejectedWebhookPayload, type WalletActionEarnWithdrawFailedWebhookPayload as WalletActionEarnWithdrawFailedWebhookPayload, type WalletActionEarnIncentiveClaimCreatedWebhookPayload as WalletActionEarnIncentiveClaimCreatedWebhookPayload, type WalletActionEarnIncentiveClaimSucceededWebhookPayload as WalletActionEarnIncentiveClaimSucceededWebhookPayload, type WalletActionEarnIncentiveClaimRejectedWebhookPayload as WalletActionEarnIncentiveClaimRejectedWebhookPayload, type WalletActionEarnIncentiveClaimFailedWebhookPayload as WalletActionEarnIncentiveClaimFailedWebhookPayload, type WalletFundsNativeTokenAsset as WalletFundsNativeTokenAsset, type WalletFundsErc20Asset as WalletFundsErc20Asset, type WalletFundsSplAsset as WalletFundsSplAsset, type WalletFundsSacAsset as WalletFundsSacAsset, type WalletFundsAsset as WalletFundsAsset, type BridgeCryptoDepositMetadata as BridgeCryptoDepositMetadata, type BridgeRefundMetadata as BridgeRefundMetadata, type BridgeFiatDepositMetadata as BridgeFiatDepositMetadata, type BridgeCryptoTransferMetadata as BridgeCryptoTransferMetadata, type BridgeFiatTransferMetadata as BridgeFiatTransferMetadata, type BridgeTransferRefundMetadata as BridgeTransferRefundMetadata, type BridgeMetadata as BridgeMetadata, type FundsDepositedWebhookPayload as FundsDepositedWebhookPayload, type FundsWithdrawnWebhookPayload as FundsWithdrawnWebhookPayload, type PrivateKeyExportWebhookPayload as PrivateKeyExportWebhookPayload, type SeedPhraseExportWebhookPayload as SeedPhraseExportWebhookPayload, type WalletRecoverySetupWebhookPayload as WalletRecoverySetupWebhookPayload, type WalletRecoveredWebhookPayload as WalletRecoveredWebhookPayload, type YieldDepositConfirmedWebhookPayload as YieldDepositConfirmedWebhookPayload, type YieldWithdrawConfirmedWebhookPayload as YieldWithdrawConfirmedWebhookPayload, type YieldClaimConfirmedWebhookPayload as YieldClaimConfirmedWebhookPayload, type WebhookPayload as WebhookPayload, type KrakenEmbedQuoteExecutedWebhookPayload as KrakenEmbedQuoteExecutedWebhookPayload, type KrakenEmbedQuoteExecutionFailedWebhookPayload as KrakenEmbedQuoteExecutionFailedWebhookPayload, type KrakenEmbedQuoteCancelledWebhookPayload as KrakenEmbedQuoteCancelledWebhookPayload, type KrakenEmbedUserVerifiedWebhookPayload as KrakenEmbedUserVerifiedWebhookPayload, type KrakenEmbedUserDisabledWebhookPayload as KrakenEmbedUserDisabledWebhookPayload, type KrakenEmbedUserClosedWebhookPayload as KrakenEmbedUserClosedWebhookPayload, };
1012
2122
  }
1013
2123
  //# sourceMappingURL=webhooks.d.ts.map