@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
@@ -3,6 +3,8 @@
3
3
  import { APIResource } from '../core/resource';
4
4
  import * as IntentsAPI from './intents';
5
5
  import * as UsersAPI from './users';
6
+ import * as WalletActionsAPI from './wallet-actions';
7
+ import * as WalletsAPI from './wallets/wallets';
6
8
 
7
9
  export class Webhooks extends APIResource {}
8
10
 
@@ -279,6 +281,12 @@ export interface TransactionBroadcastedWebhookPayload {
279
281
  * The ID of the wallet that initiated the transaction.
280
282
  */
281
283
  wallet_id: string;
284
+
285
+ /**
286
+ * Developer-provided reference ID for transaction reconciliation, if one was
287
+ * provided.
288
+ */
289
+ reference_id?: string | null;
282
290
  }
283
291
 
284
292
  /**
@@ -309,6 +317,12 @@ export interface TransactionConfirmedWebhookPayload {
309
317
  * The ID of the wallet that initiated the transaction.
310
318
  */
311
319
  wallet_id: string;
320
+
321
+ /**
322
+ * Developer-provided reference ID for transaction reconciliation, if one was
323
+ * provided.
324
+ */
325
+ reference_id?: string | null;
312
326
  }
313
327
 
314
328
  /**
@@ -339,6 +353,12 @@ export interface TransactionExecutionRevertedWebhookPayload {
339
353
  * The ID of the wallet that initiated the transaction.
340
354
  */
341
355
  wallet_id: string;
356
+
357
+ /**
358
+ * Developer-provided reference ID for transaction reconciliation, if one was
359
+ * provided.
360
+ */
361
+ reference_id?: string | null;
342
362
  }
343
363
 
344
364
  /**
@@ -361,9 +381,9 @@ export interface TransactionStillPendingWebhookPayload {
361
381
  transaction_id: string;
362
382
 
363
383
  /**
364
- * The original transaction request that is still pending.
384
+ * An unsigned Ethereum transaction object.
365
385
  */
366
- transaction_request: TransactionStillPendingWebhookPayload.TransactionRequest;
386
+ transaction_request: WalletsAPI.UnsignedEthereumTransaction;
367
387
 
368
388
  /**
369
389
  * The type of webhook event.
@@ -374,53 +394,12 @@ export interface TransactionStillPendingWebhookPayload {
374
394
  * The ID of the wallet that initiated the transaction.
375
395
  */
376
396
  wallet_id: string;
377
- }
378
397
 
379
- export namespace TransactionStillPendingWebhookPayload {
380
398
  /**
381
- * The original transaction request that is still pending.
399
+ * Developer-provided reference ID for transaction reconciliation, if one was
400
+ * provided.
382
401
  */
383
- export interface TransactionRequest {
384
- authorization_list?: Array<TransactionRequest.AuthorizationList>;
385
-
386
- chain_id?: string | number;
387
-
388
- data?: string;
389
-
390
- from?: string;
391
-
392
- gas_limit?: string | number;
393
-
394
- gas_price?: string | number;
395
-
396
- max_fee_per_gas?: string | number;
397
-
398
- max_priority_fee_per_gas?: string | number;
399
-
400
- nonce?: string | number;
401
-
402
- to?: string;
403
-
404
- type?: 0 | 1 | 2 | 4;
405
-
406
- value?: string | number;
407
- }
408
-
409
- export namespace TransactionRequest {
410
- export interface AuthorizationList {
411
- chain_id: string | number;
412
-
413
- contract: string;
414
-
415
- nonce: string | number;
416
-
417
- r: string;
418
-
419
- s: string;
420
-
421
- y_parity: number;
422
- }
423
- }
402
+ reference_id?: string | null;
424
403
  }
425
404
 
426
405
  /**
@@ -451,6 +430,12 @@ export interface TransactionFailedWebhookPayload {
451
430
  * The ID of the wallet that initiated the transaction.
452
431
  */
453
432
  wallet_id: string;
433
+
434
+ /**
435
+ * Developer-provided reference ID for transaction reconciliation, if one was
436
+ * provided.
437
+ */
438
+ reference_id?: string | null;
454
439
  }
455
440
 
456
441
  /**
@@ -481,6 +466,12 @@ export interface TransactionReplacedWebhookPayload {
481
466
  * The ID of the wallet that initiated the transaction.
482
467
  */
483
468
  wallet_id: string;
469
+
470
+ /**
471
+ * Developer-provided reference ID for transaction reconciliation, if one was
472
+ * provided.
473
+ */
474
+ reference_id?: string | null;
484
475
  }
485
476
 
486
477
  /**
@@ -511,6 +502,12 @@ export interface TransactionProviderErrorWebhookPayload {
511
502
  * The ID of the wallet that initiated the transaction.
512
503
  */
513
504
  wallet_id: string;
505
+
506
+ /**
507
+ * Developer-provided reference ID for transaction reconciliation, if one was
508
+ * provided.
509
+ */
510
+ reference_id?: string | null;
514
511
  }
515
512
 
516
513
  /**
@@ -691,304 +688,1633 @@ export interface UserWalletCreatedWebhookPayload {
691
688
  }
692
689
 
693
690
  /**
694
- * Payload for the wallet.funds_deposited webhook event.
691
+ * Payload for the wallet_action.swap.created webhook event.
695
692
  */
696
- export interface FundsDepositedWebhookPayload {
693
+ export interface WalletActionSwapCreatedWebhookPayload {
697
694
  /**
698
- * The amount transferred, as a stringified bigint.
695
+ * Type of wallet action
699
696
  */
700
- amount: string;
697
+ action_type: WalletActionsAPI.WalletActionType;
701
698
 
702
699
  /**
703
- * The asset type being transferred.
700
+ * Chain identifier.
704
701
  */
705
- asset:
706
- | FundsDepositedWebhookPayload.UnionMember0
707
- | FundsDepositedWebhookPayload.UnionMember1
708
- | FundsDepositedWebhookPayload.UnionMember2
709
- | FundsDepositedWebhookPayload.UnionMember3;
710
-
711
- block: FundsDepositedWebhookPayload.Block;
702
+ caip2: string;
712
703
 
713
704
  /**
714
- * The CAIP-2 chain identifier.
705
+ * Amount of input token in base units. Populated after on-chain confirmation.
715
706
  */
716
- caip2: string;
707
+ input_amount: string | null;
717
708
 
718
709
  /**
719
- * A unique key for this event.
710
+ * Token address being sold.
720
711
  */
721
- idempotency_key: string;
712
+ input_token: string;
722
713
 
723
714
  /**
724
- * The recipient address.
715
+ * Token address being bought.
725
716
  */
726
- recipient: string;
717
+ output_token: string;
727
718
 
728
719
  /**
729
- * The sender address.
720
+ * Status of a wallet action.
730
721
  */
731
- sender: string;
722
+ status: WalletActionsAPI.WalletActionStatus;
732
723
 
733
724
  /**
734
- * The blockchain transaction hash.
725
+ * The type of webhook event.
735
726
  */
736
- transaction_hash: string;
727
+ type: 'wallet_action.swap.created';
737
728
 
738
729
  /**
739
- * The type of webhook event.
730
+ * The ID of the wallet action.
740
731
  */
741
- type: 'wallet.funds_deposited';
732
+ wallet_action_id: string;
742
733
 
743
734
  /**
744
- * The ID of the wallet.
735
+ * The ID of the wallet involved in the action.
745
736
  */
746
737
  wallet_id: string;
738
+ }
747
739
 
740
+ /**
741
+ * Payload for the wallet_action.swap.succeeded webhook event.
742
+ */
743
+ export interface WalletActionSwapSucceededWebhookPayload {
748
744
  /**
749
- * Optional Bridge metadata for custodial wallet deposits.
745
+ * Type of wallet action
750
746
  */
751
- bridge_metadata?:
752
- | FundsDepositedWebhookPayload.BridgeMetadataUnionMember0
753
- | FundsDepositedWebhookPayload.BridgeMetadataUnionMember1
754
- | FundsDepositedWebhookPayload.BridgeMetadataUnionMember2
755
- | FundsDepositedWebhookPayload.BridgeMetadataUnionMember3
756
- | FundsDepositedWebhookPayload.BridgeMetadataUnionMember4
757
- | FundsDepositedWebhookPayload.BridgeMetadataUnionMember5;
747
+ action_type: WalletActionsAPI.WalletActionType;
758
748
 
759
749
  /**
760
- * The transaction fee paid, as a stringified bigint in the chain's native token.
750
+ * Chain identifier.
761
751
  */
762
- transaction_fee?: string;
763
- }
764
-
765
- export namespace FundsDepositedWebhookPayload {
766
- export interface UnionMember0 {
767
- address: null;
768
-
769
- type: 'native-token';
770
- }
771
-
772
- export interface UnionMember1 {
773
- address: string;
774
-
775
- type: 'erc20';
776
- }
777
-
778
- export interface UnionMember2 {
779
- mint: string;
752
+ caip2: string;
780
753
 
781
- type: 'spl';
782
- }
754
+ /**
755
+ * Amount of input token in base units. Populated after on-chain confirmation.
756
+ */
757
+ input_amount: string | null;
783
758
 
784
- export interface UnionMember3 {
785
- address: string;
759
+ /**
760
+ * Token address being sold.
761
+ */
762
+ input_token: string;
786
763
 
787
- type: 'sac';
788
- }
764
+ /**
765
+ * Amount of output token received, in base units. Populated after on-chain
766
+ * confirmation.
767
+ */
768
+ output_amount: string | null;
789
769
 
790
- export interface Block {
791
- /**
792
- * The block number.
793
- */
794
- number: number;
770
+ /**
771
+ * Token address being bought.
772
+ */
773
+ output_token: string;
795
774
 
796
- /**
797
- * The block timestamp.
798
- */
799
- timestamp: number;
800
- }
775
+ /**
776
+ * Status of a wallet action.
777
+ */
778
+ status: WalletActionsAPI.WalletActionStatus;
801
779
 
802
- export interface BridgeMetadataUnionMember0 {
803
- drain_id: string;
780
+ /**
781
+ * The steps of the wallet action, including transaction hashes.
782
+ */
783
+ steps: Array<WalletActionsAPI.WalletActionStep>;
804
784
 
805
- /**
806
- * The crypto address of the liquidation address that received the deposit.
807
- */
808
- liquidation_address: string;
785
+ /**
786
+ * The type of webhook event.
787
+ */
788
+ type: 'wallet_action.swap.succeeded';
809
789
 
810
- liquidation_address_id: string;
790
+ /**
791
+ * The ID of the wallet action.
792
+ */
793
+ wallet_action_id: string;
811
794
 
812
- method: 'liquidation_address';
795
+ /**
796
+ * The ID of the wallet involved in the action.
797
+ */
798
+ wallet_id: string;
799
+ }
813
800
 
814
- /**
815
- * The address that sent the deposit.
816
- */
817
- source_wallet_address: string;
801
+ /**
802
+ * Payload for the wallet_action.swap.rejected webhook event.
803
+ */
804
+ export interface WalletActionSwapRejectedWebhookPayload {
805
+ /**
806
+ * Type of wallet action
807
+ */
808
+ action_type: WalletActionsAPI.WalletActionType;
818
809
 
819
- type: 'crypto_deposit';
820
- }
810
+ /**
811
+ * Chain identifier.
812
+ */
813
+ caip2: string;
821
814
 
822
- export interface BridgeMetadataUnionMember1 {
823
- drain_id: string;
815
+ /**
816
+ * A description of why a wallet action (or a step within a wallet action) failed.
817
+ */
818
+ failure_reason: WalletActionsAPI.FailureReason;
824
819
 
825
- liquidation_address_id: string;
820
+ /**
821
+ * Amount of input token in base units. Populated after on-chain confirmation.
822
+ */
823
+ input_amount: string | null;
826
824
 
827
- method: 'liquidation_address';
825
+ /**
826
+ * Token address being sold.
827
+ */
828
+ input_token: string;
828
829
 
829
- /**
830
- * The original deposit transaction hash that triggered the failed drain.
831
- */
832
- original_transaction_hash: string;
830
+ /**
831
+ * Token address being bought.
832
+ */
833
+ output_token: string;
833
834
 
834
- type: 'refund';
835
- }
835
+ /**
836
+ * Status of a wallet action.
837
+ */
838
+ status: WalletActionsAPI.WalletActionStatus;
836
839
 
837
- export interface BridgeMetadataUnionMember2 {
838
- activity_id: string;
840
+ /**
841
+ * The steps of the wallet action at the time of rejection.
842
+ */
843
+ steps: Array<WalletActionsAPI.WalletActionStep>;
839
844
 
840
- method: 'virtual_account';
845
+ /**
846
+ * The type of webhook event.
847
+ */
848
+ type: 'wallet_action.swap.rejected';
841
849
 
842
- type: 'fiat_deposit';
850
+ /**
851
+ * The ID of the wallet action.
852
+ */
853
+ wallet_action_id: string;
843
854
 
844
- virtual_account_id: string;
845
- }
855
+ /**
856
+ * The ID of the wallet involved in the action.
857
+ */
858
+ wallet_id: string;
859
+ }
846
860
 
847
- export interface BridgeMetadataUnionMember3 {
848
- method: 'transfer';
861
+ /**
862
+ * Payload for the wallet_action.swap.failed webhook event.
863
+ */
864
+ export interface WalletActionSwapFailedWebhookPayload {
865
+ /**
866
+ * Type of wallet action
867
+ */
868
+ action_type: WalletActionsAPI.WalletActionType;
849
869
 
850
- /**
851
- * The wallet address that sent the transfer.
852
- */
853
- source_wallet_address: string;
870
+ /**
871
+ * Chain identifier.
872
+ */
873
+ caip2: string;
854
874
 
855
- transfer_id: string;
875
+ /**
876
+ * A description of why a wallet action (or a step within a wallet action) failed.
877
+ */
878
+ failure_reason: WalletActionsAPI.FailureReason;
856
879
 
857
- type: 'crypto_deposit';
858
- }
880
+ /**
881
+ * Amount of input token in base units. Populated after on-chain confirmation.
882
+ */
883
+ input_amount: string | null;
859
884
 
860
- export interface BridgeMetadataUnionMember4 {
861
- method: 'transfer';
885
+ /**
886
+ * Token address being sold.
887
+ */
888
+ input_token: string;
862
889
 
863
- transfer_id: string;
890
+ /**
891
+ * Token address being bought.
892
+ */
893
+ output_token: string;
864
894
 
865
- type: 'fiat_deposit';
866
- }
895
+ /**
896
+ * Status of a wallet action.
897
+ */
898
+ status: WalletActionsAPI.WalletActionStatus;
867
899
 
868
- export interface BridgeMetadataUnionMember5 {
869
- method: 'transfer';
900
+ /**
901
+ * The steps of the wallet action. Completed steps will have transaction hashes;
902
+ * the failing step will have a failure_reason.
903
+ */
904
+ steps: Array<WalletActionsAPI.WalletActionStep>;
870
905
 
871
- transfer_id: string;
906
+ /**
907
+ * The type of webhook event.
908
+ */
909
+ type: 'wallet_action.swap.failed';
872
910
 
873
- type: 'refund';
911
+ /**
912
+ * The ID of the wallet action.
913
+ */
914
+ wallet_action_id: string;
874
915
 
875
- /**
876
- * The original transfer transaction hash (if available).
877
- */
878
- original_transaction_hash?: string;
879
- }
916
+ /**
917
+ * The ID of the wallet involved in the action.
918
+ */
919
+ wallet_id: string;
880
920
  }
881
921
 
882
922
  /**
883
- * Payload for the wallet.funds_withdrawn webhook event.
923
+ * Payload for the wallet_action.transfer.created webhook event.
884
924
  */
885
- export interface FundsWithdrawnWebhookPayload {
925
+ export interface WalletActionTransferCreatedWebhookPayload {
886
926
  /**
887
- * The amount transferred, as a stringified bigint.
927
+ * Type of wallet action
888
928
  */
889
- amount: string;
929
+ action_type: WalletActionsAPI.WalletActionType;
890
930
 
891
931
  /**
892
- * The asset type being transferred.
932
+ * Recipient address.
893
933
  */
894
- asset:
895
- | FundsWithdrawnWebhookPayload.UnionMember0
896
- | FundsWithdrawnWebhookPayload.UnionMember1
897
- | FundsWithdrawnWebhookPayload.UnionMember2
898
- | FundsWithdrawnWebhookPayload.UnionMember3;
899
-
900
- block: FundsWithdrawnWebhookPayload.Block;
934
+ destination_address: string;
901
935
 
902
936
  /**
903
- * The CAIP-2 chain identifier.
937
+ * Decimal amount as provided by the user (e.g. "1.5").
904
938
  */
905
- caip2: string;
939
+ source_amount: string;
906
940
 
907
941
  /**
908
- * A unique key for this event.
942
+ * Asset identifier (e.g. "usdc", "eth").
909
943
  */
910
- idempotency_key: string;
944
+ source_asset: string;
911
945
 
912
946
  /**
913
- * The recipient address.
947
+ * Chain name (e.g. "base", "ethereum").
914
948
  */
915
- recipient: string;
949
+ source_chain: string;
916
950
 
917
951
  /**
918
- * The sender address.
952
+ * Status of a wallet action.
919
953
  */
920
- sender: string;
954
+ status: WalletActionsAPI.WalletActionStatus;
921
955
 
922
956
  /**
923
- * The blockchain transaction hash.
957
+ * The type of webhook event.
924
958
  */
925
- transaction_hash: string;
959
+ type: 'wallet_action.transfer.created';
926
960
 
927
961
  /**
928
- * The type of webhook event.
962
+ * The ID of the wallet action.
929
963
  */
930
- type: 'wallet.funds_withdrawn';
964
+ wallet_action_id: string;
931
965
 
932
966
  /**
933
- * The ID of the wallet.
967
+ * The ID of the wallet involved in the action.
934
968
  */
935
969
  wallet_id: string;
970
+ }
936
971
 
972
+ /**
973
+ * Payload for the wallet_action.transfer.succeeded webhook event.
974
+ */
975
+ export interface WalletActionTransferSucceededWebhookPayload {
937
976
  /**
938
- * The transaction fee paid, as a stringified bigint in the chain's native token.
977
+ * Type of wallet action
939
978
  */
940
- transaction_fee?: string;
941
- }
979
+ action_type: WalletActionsAPI.WalletActionType;
942
980
 
943
- export namespace FundsWithdrawnWebhookPayload {
944
- export interface UnionMember0 {
945
- address: null;
946
-
947
- type: 'native-token';
948
- }
981
+ /**
982
+ * Recipient address.
983
+ */
984
+ destination_address: string;
949
985
 
950
- export interface UnionMember1 {
951
- address: string;
986
+ /**
987
+ * Decimal amount as provided by the user (e.g. "1.5").
988
+ */
989
+ source_amount: string;
952
990
 
953
- type: 'erc20';
954
- }
991
+ /**
992
+ * Asset identifier (e.g. "usdc", "eth").
993
+ */
994
+ source_asset: string;
955
995
 
956
- export interface UnionMember2 {
957
- mint: string;
996
+ /**
997
+ * Chain name (e.g. "base", "ethereum").
998
+ */
999
+ source_chain: string;
958
1000
 
959
- type: 'spl';
960
- }
1001
+ /**
1002
+ * Status of a wallet action.
1003
+ */
1004
+ status: WalletActionsAPI.WalletActionStatus;
961
1005
 
962
- export interface UnionMember3 {
963
- address: string;
1006
+ /**
1007
+ * The steps of the wallet action, including transaction hashes.
1008
+ */
1009
+ steps: Array<WalletActionsAPI.WalletActionStep>;
964
1010
 
965
- type: 'sac';
966
- }
1011
+ /**
1012
+ * The type of webhook event.
1013
+ */
1014
+ type: 'wallet_action.transfer.succeeded';
967
1015
 
968
- export interface Block {
969
- /**
970
- * The block number.
971
- */
972
- number: number;
1016
+ /**
1017
+ * The ID of the wallet action.
1018
+ */
1019
+ wallet_action_id: string;
973
1020
 
974
- /**
975
- * The block timestamp.
976
- */
977
- timestamp: number;
978
- }
1021
+ /**
1022
+ * The ID of the wallet involved in the action.
1023
+ */
1024
+ wallet_id: string;
979
1025
  }
980
1026
 
981
1027
  /**
982
- * Payload for the wallet.private_key_export webhook event.
1028
+ * Payload for the wallet_action.transfer.rejected webhook event.
983
1029
  */
984
- export interface PrivateKeyExportWebhookPayload {
1030
+ export interface WalletActionTransferRejectedWebhookPayload {
985
1031
  /**
986
- * The type of webhook event.
1032
+ * Type of wallet action
987
1033
  */
988
- type: 'wallet.private_key_export';
1034
+ action_type: WalletActionsAPI.WalletActionType;
989
1035
 
990
1036
  /**
991
- * The ID of the user who exported the key.
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.
1043
+ */
1044
+ failure_reason: WalletActionsAPI.FailureReason;
1045
+
1046
+ /**
1047
+ * Decimal amount as provided by the user (e.g. "1.5").
1048
+ */
1049
+ source_amount: string;
1050
+
1051
+ /**
1052
+ * Asset identifier (e.g. "usdc", "eth").
1053
+ */
1054
+ source_asset: string;
1055
+
1056
+ /**
1057
+ * Chain name (e.g. "base", "ethereum").
1058
+ */
1059
+ source_chain: string;
1060
+
1061
+ /**
1062
+ * Status of a wallet action.
1063
+ */
1064
+ status: WalletActionsAPI.WalletActionStatus;
1065
+
1066
+ /**
1067
+ * The steps of the wallet action at the time of rejection.
1068
+ */
1069
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1070
+
1071
+ /**
1072
+ * The type of webhook event.
1073
+ */
1074
+ type: 'wallet_action.transfer.rejected';
1075
+
1076
+ /**
1077
+ * The ID of the wallet action.
1078
+ */
1079
+ wallet_action_id: string;
1080
+
1081
+ /**
1082
+ * The ID of the wallet involved in the action.
1083
+ */
1084
+ wallet_id: string;
1085
+ }
1086
+
1087
+ /**
1088
+ * Payload for the wallet_action.transfer.failed webhook event.
1089
+ */
1090
+ export interface WalletActionTransferFailedWebhookPayload {
1091
+ /**
1092
+ * Type of wallet action
1093
+ */
1094
+ action_type: WalletActionsAPI.WalletActionType;
1095
+
1096
+ /**
1097
+ * Recipient address.
1098
+ */
1099
+ destination_address: string;
1100
+
1101
+ /**
1102
+ * A description of why a wallet action (or a step within a wallet action) failed.
1103
+ */
1104
+ failure_reason: WalletActionsAPI.FailureReason;
1105
+
1106
+ /**
1107
+ * Decimal amount as provided by the user (e.g. "1.5").
1108
+ */
1109
+ source_amount: string;
1110
+
1111
+ /**
1112
+ * Asset identifier (e.g. "usdc", "eth").
1113
+ */
1114
+ source_asset: string;
1115
+
1116
+ /**
1117
+ * Chain name (e.g. "base", "ethereum").
1118
+ */
1119
+ source_chain: string;
1120
+
1121
+ /**
1122
+ * Status of a wallet action.
1123
+ */
1124
+ status: WalletActionsAPI.WalletActionStatus;
1125
+
1126
+ /**
1127
+ * The steps of the wallet action. Completed steps will have transaction hashes;
1128
+ * the failing step will have a failure_reason.
1129
+ */
1130
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1131
+
1132
+ /**
1133
+ * The type of webhook event.
1134
+ */
1135
+ type: 'wallet_action.transfer.failed';
1136
+
1137
+ /**
1138
+ * The ID of the wallet action.
1139
+ */
1140
+ wallet_action_id: string;
1141
+
1142
+ /**
1143
+ * The ID of the wallet involved in the action.
1144
+ */
1145
+ wallet_id: string;
1146
+ }
1147
+
1148
+ /**
1149
+ * Payload for the wallet_action.earn_deposit.created webhook event.
1150
+ */
1151
+ export interface WalletActionEarnDepositCreatedWebhookPayload {
1152
+ /**
1153
+ * Type of wallet action
1154
+ */
1155
+ action_type: WalletActionsAPI.WalletActionType;
1156
+
1157
+ /**
1158
+ * Underlying asset token address.
1159
+ */
1160
+ asset_address: string;
1161
+
1162
+ /**
1163
+ * CAIP-2 chain identifier.
1164
+ */
1165
+ caip2: string;
1166
+
1167
+ /**
1168
+ * Base-unit amount of asset deposited (e.g. "1500000").
1169
+ */
1170
+ raw_amount: string;
1171
+
1172
+ /**
1173
+ * Status of a wallet action.
1174
+ */
1175
+ status: WalletActionsAPI.WalletActionStatus;
1176
+
1177
+ /**
1178
+ * The type of webhook event.
1179
+ */
1180
+ type: 'wallet_action.earn_deposit.created';
1181
+
1182
+ /**
1183
+ * ERC-4626 vault contract address.
1184
+ */
1185
+ vault_address: string;
1186
+
1187
+ /**
1188
+ * The vault ID.
1189
+ */
1190
+ vault_id: string;
1191
+
1192
+ /**
1193
+ * The ID of the wallet action.
1194
+ */
1195
+ wallet_action_id: string;
1196
+
1197
+ /**
1198
+ * The ID of the wallet involved in the action.
1199
+ */
1200
+ wallet_id: string;
1201
+
1202
+ /**
1203
+ * Human-readable decimal amount of asset deposited (e.g. "1.5"). Only present when
1204
+ * the token is known in the asset registry.
1205
+ */
1206
+ amount?: string;
1207
+
1208
+ /**
1209
+ * Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
1210
+ * the asset registry.
1211
+ */
1212
+ asset?: string;
1213
+
1214
+ /**
1215
+ * Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
1216
+ * present when the token is known in the asset registry.
1217
+ */
1218
+ decimals?: number;
1219
+ }
1220
+
1221
+ /**
1222
+ * Payload for the wallet_action.earn_deposit.succeeded webhook event.
1223
+ */
1224
+ export interface WalletActionEarnDepositSucceededWebhookPayload {
1225
+ /**
1226
+ * Type of wallet action
1227
+ */
1228
+ action_type: WalletActionsAPI.WalletActionType;
1229
+
1230
+ /**
1231
+ * Underlying asset token address.
1232
+ */
1233
+ asset_address: string;
1234
+
1235
+ /**
1236
+ * CAIP-2 chain identifier.
1237
+ */
1238
+ caip2: string;
1239
+
1240
+ /**
1241
+ * Base-unit amount of asset deposited (e.g. "1500000").
1242
+ */
1243
+ raw_amount: string;
1244
+
1245
+ /**
1246
+ * Vault shares received in base units.
1247
+ */
1248
+ share_amount: string;
1249
+
1250
+ /**
1251
+ * Status of a wallet action.
1252
+ */
1253
+ status: WalletActionsAPI.WalletActionStatus;
1254
+
1255
+ /**
1256
+ * The steps of the wallet action, including transaction hashes.
1257
+ */
1258
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1259
+
1260
+ /**
1261
+ * The type of webhook event.
1262
+ */
1263
+ type: 'wallet_action.earn_deposit.succeeded';
1264
+
1265
+ /**
1266
+ * ERC-4626 vault contract address.
1267
+ */
1268
+ vault_address: string;
1269
+
1270
+ /**
1271
+ * The vault ID.
1272
+ */
1273
+ vault_id: string;
1274
+
1275
+ /**
1276
+ * The ID of the wallet action.
1277
+ */
1278
+ wallet_action_id: string;
1279
+
1280
+ /**
1281
+ * The ID of the wallet involved in the action.
1282
+ */
1283
+ wallet_id: string;
1284
+
1285
+ /**
1286
+ * Human-readable decimal amount of asset deposited (e.g. "1.5"). Only present when
1287
+ * the token is known in the asset registry.
1288
+ */
1289
+ amount?: string;
1290
+
1291
+ /**
1292
+ * Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
1293
+ * the asset registry.
1294
+ */
1295
+ asset?: string;
1296
+
1297
+ /**
1298
+ * Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
1299
+ * present when the token is known in the asset registry.
1300
+ */
1301
+ decimals?: number;
1302
+ }
1303
+
1304
+ /**
1305
+ * Payload for the wallet_action.earn_deposit.rejected webhook event.
1306
+ */
1307
+ export interface WalletActionEarnDepositRejectedWebhookPayload {
1308
+ /**
1309
+ * Type of wallet action
1310
+ */
1311
+ action_type: WalletActionsAPI.WalletActionType;
1312
+
1313
+ /**
1314
+ * Underlying asset token address.
1315
+ */
1316
+ asset_address: string;
1317
+
1318
+ /**
1319
+ * CAIP-2 chain identifier.
1320
+ */
1321
+ caip2: string;
1322
+
1323
+ /**
1324
+ * A description of why a wallet action (or a step within a wallet action) failed.
1325
+ */
1326
+ failure_reason: WalletActionsAPI.FailureReason;
1327
+
1328
+ /**
1329
+ * Base-unit amount of asset deposited (e.g. "1500000").
1330
+ */
1331
+ raw_amount: string;
1332
+
1333
+ /**
1334
+ * Status of a wallet action.
1335
+ */
1336
+ status: WalletActionsAPI.WalletActionStatus;
1337
+
1338
+ /**
1339
+ * The steps of the wallet action at the time of rejection.
1340
+ */
1341
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1342
+
1343
+ /**
1344
+ * The type of webhook event.
1345
+ */
1346
+ type: 'wallet_action.earn_deposit.rejected';
1347
+
1348
+ /**
1349
+ * ERC-4626 vault contract address.
1350
+ */
1351
+ vault_address: string;
1352
+
1353
+ /**
1354
+ * The vault ID.
1355
+ */
1356
+ vault_id: string;
1357
+
1358
+ /**
1359
+ * The ID of the wallet action.
1360
+ */
1361
+ wallet_action_id: string;
1362
+
1363
+ /**
1364
+ * The ID of the wallet involved in the action.
1365
+ */
1366
+ wallet_id: string;
1367
+
1368
+ /**
1369
+ * Human-readable decimal amount of asset deposited (e.g. "1.5"). Only present when
1370
+ * the token is known in the asset registry.
1371
+ */
1372
+ amount?: string;
1373
+
1374
+ /**
1375
+ * Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
1376
+ * the asset registry.
1377
+ */
1378
+ asset?: string;
1379
+
1380
+ /**
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.
1383
+ */
1384
+ decimals?: number;
1385
+ }
1386
+
1387
+ /**
1388
+ * Payload for the wallet_action.earn_deposit.failed webhook event.
1389
+ */
1390
+ export interface WalletActionEarnDepositFailedWebhookPayload {
1391
+ /**
1392
+ * Type of wallet action
1393
+ */
1394
+ action_type: WalletActionsAPI.WalletActionType;
1395
+
1396
+ /**
1397
+ * Underlying asset token address.
1398
+ */
1399
+ asset_address: string;
1400
+
1401
+ /**
1402
+ * CAIP-2 chain identifier.
1403
+ */
1404
+ caip2: string;
1405
+
1406
+ /**
1407
+ * A description of why a wallet action (or a step within a wallet action) failed.
1408
+ */
1409
+ failure_reason: WalletActionsAPI.FailureReason;
1410
+
1411
+ /**
1412
+ * Base-unit amount of asset deposited (e.g. "1500000").
1413
+ */
1414
+ raw_amount: string;
1415
+
1416
+ /**
1417
+ * Status of a wallet action.
1418
+ */
1419
+ status: WalletActionsAPI.WalletActionStatus;
1420
+
1421
+ /**
1422
+ * The steps of the wallet action. Completed steps will have transaction hashes;
1423
+ * the failing step will have a failure_reason.
1424
+ */
1425
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1426
+
1427
+ /**
1428
+ * The type of webhook event.
1429
+ */
1430
+ type: 'wallet_action.earn_deposit.failed';
1431
+
1432
+ /**
1433
+ * ERC-4626 vault contract address.
1434
+ */
1435
+ vault_address: string;
1436
+
1437
+ /**
1438
+ * The vault ID.
1439
+ */
1440
+ vault_id: string;
1441
+
1442
+ /**
1443
+ * The ID of the wallet action.
1444
+ */
1445
+ wallet_action_id: string;
1446
+
1447
+ /**
1448
+ * The ID of the wallet involved in the action.
1449
+ */
1450
+ wallet_id: string;
1451
+
1452
+ /**
1453
+ * Human-readable decimal amount of asset deposited (e.g. "1.5"). Only present when
1454
+ * the token is known in the asset registry.
1455
+ */
1456
+ amount?: string;
1457
+
1458
+ /**
1459
+ * Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
1460
+ * the asset registry.
1461
+ */
1462
+ asset?: string;
1463
+
1464
+ /**
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.
1467
+ */
1468
+ decimals?: number;
1469
+ }
1470
+
1471
+ /**
1472
+ * Payload for the wallet_action.earn_withdraw.created webhook event.
1473
+ */
1474
+ export interface WalletActionEarnWithdrawCreatedWebhookPayload {
1475
+ /**
1476
+ * Type of wallet action
1477
+ */
1478
+ action_type: WalletActionsAPI.WalletActionType;
1479
+
1480
+ /**
1481
+ * Underlying asset token address.
1482
+ */
1483
+ asset_address: string;
1484
+
1485
+ /**
1486
+ * CAIP-2 chain identifier.
1487
+ */
1488
+ caip2: string;
1489
+
1490
+ /**
1491
+ * Base-unit amount of asset withdrawn (e.g. "1500000").
1492
+ */
1493
+ raw_amount: string;
1494
+
1495
+ /**
1496
+ * Status of a wallet action.
1497
+ */
1498
+ status: WalletActionsAPI.WalletActionStatus;
1499
+
1500
+ /**
1501
+ * The type of webhook event.
1502
+ */
1503
+ type: 'wallet_action.earn_withdraw.created';
1504
+
1505
+ /**
1506
+ * ERC-4626 vault contract address.
1507
+ */
1508
+ vault_address: string;
1509
+
1510
+ /**
1511
+ * The vault ID.
1512
+ */
1513
+ vault_id: string;
1514
+
1515
+ /**
1516
+ * The ID of the wallet action.
1517
+ */
1518
+ wallet_action_id: string;
1519
+
1520
+ /**
1521
+ * The ID of the wallet involved in the action.
1522
+ */
1523
+ wallet_id: string;
1524
+
1525
+ /**
1526
+ * Human-readable decimal amount of asset withdrawn (e.g. "1.5"). Only present when
1527
+ * the token is known in the asset registry.
1528
+ */
1529
+ amount?: string;
1530
+
1531
+ /**
1532
+ * Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
1533
+ * the asset registry.
1534
+ */
1535
+ asset?: string;
1536
+
1537
+ /**
1538
+ * Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
1539
+ * present when the token is known in the asset registry.
1540
+ */
1541
+ decimals?: number;
1542
+ }
1543
+
1544
+ /**
1545
+ * Payload for the wallet_action.earn_withdraw.succeeded webhook event.
1546
+ */
1547
+ export interface WalletActionEarnWithdrawSucceededWebhookPayload {
1548
+ /**
1549
+ * Type of wallet action
1550
+ */
1551
+ action_type: WalletActionsAPI.WalletActionType;
1552
+
1553
+ /**
1554
+ * Underlying asset token address.
1555
+ */
1556
+ asset_address: string;
1557
+
1558
+ /**
1559
+ * CAIP-2 chain identifier.
1560
+ */
1561
+ caip2: string;
1562
+
1563
+ /**
1564
+ * Base-unit amount of asset withdrawn (e.g. "1500000").
1565
+ */
1566
+ raw_amount: string;
1567
+
1568
+ /**
1569
+ * Vault shares burned in base units.
1570
+ */
1571
+ share_amount: string;
1572
+
1573
+ /**
1574
+ * Status of a wallet action.
1575
+ */
1576
+ status: WalletActionsAPI.WalletActionStatus;
1577
+
1578
+ /**
1579
+ * The steps of the wallet action, including transaction hashes.
1580
+ */
1581
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1582
+
1583
+ /**
1584
+ * The type of webhook event.
1585
+ */
1586
+ type: 'wallet_action.earn_withdraw.succeeded';
1587
+
1588
+ /**
1589
+ * ERC-4626 vault contract address.
1590
+ */
1591
+ vault_address: string;
1592
+
1593
+ /**
1594
+ * The vault ID.
1595
+ */
1596
+ vault_id: string;
1597
+
1598
+ /**
1599
+ * The ID of the wallet action.
1600
+ */
1601
+ wallet_action_id: string;
1602
+
1603
+ /**
1604
+ * The ID of the wallet involved in the action.
1605
+ */
1606
+ wallet_id: string;
1607
+
1608
+ /**
1609
+ * Human-readable decimal amount of asset withdrawn (e.g. "1.5"). Only present when
1610
+ * the token is known in the asset registry.
1611
+ */
1612
+ amount?: string;
1613
+
1614
+ /**
1615
+ * Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
1616
+ * the asset registry.
1617
+ */
1618
+ asset?: string;
1619
+
1620
+ /**
1621
+ * Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
1622
+ * present when the token is known in the asset registry.
1623
+ */
1624
+ decimals?: number;
1625
+ }
1626
+
1627
+ /**
1628
+ * Payload for the wallet_action.earn_withdraw.rejected webhook event.
1629
+ */
1630
+ export interface WalletActionEarnWithdrawRejectedWebhookPayload {
1631
+ /**
1632
+ * Type of wallet action
1633
+ */
1634
+ action_type: WalletActionsAPI.WalletActionType;
1635
+
1636
+ /**
1637
+ * Underlying asset token address.
1638
+ */
1639
+ asset_address: string;
1640
+
1641
+ /**
1642
+ * CAIP-2 chain identifier.
1643
+ */
1644
+ caip2: string;
1645
+
1646
+ /**
1647
+ * A description of why a wallet action (or a step within a wallet action) failed.
1648
+ */
1649
+ failure_reason: WalletActionsAPI.FailureReason;
1650
+
1651
+ /**
1652
+ * Base-unit amount of asset withdrawn (e.g. "1500000").
1653
+ */
1654
+ raw_amount: string;
1655
+
1656
+ /**
1657
+ * Status of a wallet action.
1658
+ */
1659
+ status: WalletActionsAPI.WalletActionStatus;
1660
+
1661
+ /**
1662
+ * The steps of the wallet action at the time of rejection.
1663
+ */
1664
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1665
+
1666
+ /**
1667
+ * The type of webhook event.
1668
+ */
1669
+ type: 'wallet_action.earn_withdraw.rejected';
1670
+
1671
+ /**
1672
+ * ERC-4626 vault contract address.
1673
+ */
1674
+ vault_address: string;
1675
+
1676
+ /**
1677
+ * The vault ID.
1678
+ */
1679
+ vault_id: string;
1680
+
1681
+ /**
1682
+ * The ID of the wallet action.
1683
+ */
1684
+ wallet_action_id: string;
1685
+
1686
+ /**
1687
+ * The ID of the wallet involved in the action.
1688
+ */
1689
+ wallet_id: string;
1690
+
1691
+ /**
1692
+ * Human-readable decimal amount of asset withdrawn (e.g. "1.5"). Only present when
1693
+ * the token is known in the asset registry.
1694
+ */
1695
+ amount?: string;
1696
+
1697
+ /**
1698
+ * Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
1699
+ * the asset registry.
1700
+ */
1701
+ asset?: string;
1702
+
1703
+ /**
1704
+ * Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
1705
+ * present when the token is known in the asset registry.
1706
+ */
1707
+ decimals?: number;
1708
+ }
1709
+
1710
+ /**
1711
+ * Payload for the wallet_action.earn_withdraw.failed webhook event.
1712
+ */
1713
+ export interface WalletActionEarnWithdrawFailedWebhookPayload {
1714
+ /**
1715
+ * Type of wallet action
1716
+ */
1717
+ action_type: WalletActionsAPI.WalletActionType;
1718
+
1719
+ /**
1720
+ * Underlying asset token address.
1721
+ */
1722
+ asset_address: string;
1723
+
1724
+ /**
1725
+ * CAIP-2 chain identifier.
1726
+ */
1727
+ caip2: string;
1728
+
1729
+ /**
1730
+ * A description of why a wallet action (or a step within a wallet action) failed.
1731
+ */
1732
+ failure_reason: WalletActionsAPI.FailureReason;
1733
+
1734
+ /**
1735
+ * Base-unit amount of asset withdrawn (e.g. "1500000").
1736
+ */
1737
+ raw_amount: string;
1738
+
1739
+ /**
1740
+ * Status of a wallet action.
1741
+ */
1742
+ status: WalletActionsAPI.WalletActionStatus;
1743
+
1744
+ /**
1745
+ * The steps of the wallet action. Completed steps will have transaction hashes;
1746
+ * the failing step will have a failure_reason.
1747
+ */
1748
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1749
+
1750
+ /**
1751
+ * The type of webhook event.
1752
+ */
1753
+ type: 'wallet_action.earn_withdraw.failed';
1754
+
1755
+ /**
1756
+ * ERC-4626 vault contract address.
1757
+ */
1758
+ vault_address: string;
1759
+
1760
+ /**
1761
+ * The vault ID.
1762
+ */
1763
+ vault_id: string;
1764
+
1765
+ /**
1766
+ * The ID of the wallet action.
1767
+ */
1768
+ wallet_action_id: string;
1769
+
1770
+ /**
1771
+ * The ID of the wallet involved in the action.
1772
+ */
1773
+ wallet_id: string;
1774
+
1775
+ /**
1776
+ * Human-readable decimal amount of asset withdrawn (e.g. "1.5"). Only present when
1777
+ * the token is known in the asset registry.
1778
+ */
1779
+ amount?: string;
1780
+
1781
+ /**
1782
+ * Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
1783
+ * the asset registry.
1784
+ */
1785
+ asset?: string;
1786
+
1787
+ /**
1788
+ * Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
1789
+ * present when the token is known in the asset registry.
1790
+ */
1791
+ decimals?: number;
1792
+ }
1793
+
1794
+ /**
1795
+ * Payload for the wallet_action.earn_incentive_claim.created webhook event.
1796
+ */
1797
+ export interface WalletActionEarnIncentiveClaimCreatedWebhookPayload {
1798
+ /**
1799
+ * Type of wallet action
1800
+ */
1801
+ action_type: WalletActionsAPI.WalletActionType;
1802
+
1803
+ /**
1804
+ * EVM chain name (e.g. "base", "ethereum").
1805
+ */
1806
+ chain: string;
1807
+
1808
+ /**
1809
+ * Claimed reward tokens. Populated after the preparation step fetches from Merkl.
1810
+ */
1811
+ rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
1812
+
1813
+ /**
1814
+ * Status of a wallet action.
1815
+ */
1816
+ status: WalletActionsAPI.WalletActionStatus;
1817
+
1818
+ /**
1819
+ * The type of webhook event.
1820
+ */
1821
+ type: 'wallet_action.earn_incentive_claim.created';
1822
+
1823
+ /**
1824
+ * The ID of the wallet action.
1825
+ */
1826
+ wallet_action_id: string;
1827
+
1828
+ /**
1829
+ * The ID of the wallet involved in the action.
1830
+ */
1831
+ wallet_id: string;
1832
+ }
1833
+
1834
+ /**
1835
+ * Payload for the wallet_action.earn_incentive_claim.succeeded webhook event.
1836
+ */
1837
+ export interface WalletActionEarnIncentiveClaimSucceededWebhookPayload {
1838
+ /**
1839
+ * Type of wallet action
1840
+ */
1841
+ action_type: WalletActionsAPI.WalletActionType;
1842
+
1843
+ /**
1844
+ * EVM chain name (e.g. "base", "ethereum").
1845
+ */
1846
+ chain: string;
1847
+
1848
+ /**
1849
+ * Claimed reward tokens. Populated after the preparation step fetches from Merkl.
1850
+ */
1851
+ rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
1852
+
1853
+ /**
1854
+ * Status of a wallet action.
1855
+ */
1856
+ status: WalletActionsAPI.WalletActionStatus;
1857
+
1858
+ /**
1859
+ * The steps of the wallet action, including transaction hashes.
1860
+ */
1861
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1862
+
1863
+ /**
1864
+ * The type of webhook event.
1865
+ */
1866
+ type: 'wallet_action.earn_incentive_claim.succeeded';
1867
+
1868
+ /**
1869
+ * The ID of the wallet action.
1870
+ */
1871
+ wallet_action_id: string;
1872
+
1873
+ /**
1874
+ * The ID of the wallet involved in the action.
1875
+ */
1876
+ wallet_id: string;
1877
+ }
1878
+
1879
+ /**
1880
+ * Payload for the wallet_action.earn_incentive_claim.rejected webhook event.
1881
+ */
1882
+ export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
1883
+ /**
1884
+ * Type of wallet action
1885
+ */
1886
+ action_type: WalletActionsAPI.WalletActionType;
1887
+
1888
+ /**
1889
+ * EVM chain name (e.g. "base", "ethereum").
1890
+ */
1891
+ chain: string;
1892
+
1893
+ /**
1894
+ * A description of why a wallet action (or a step within a wallet action) failed.
1895
+ */
1896
+ failure_reason: WalletActionsAPI.FailureReason;
1897
+
1898
+ /**
1899
+ * Claimed reward tokens. Populated after the preparation step fetches from Merkl.
1900
+ */
1901
+ rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
1902
+
1903
+ /**
1904
+ * Status of a wallet action.
1905
+ */
1906
+ status: WalletActionsAPI.WalletActionStatus;
1907
+
1908
+ /**
1909
+ * The steps of the wallet action at the time of rejection.
1910
+ */
1911
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1912
+
1913
+ /**
1914
+ * The type of webhook event.
1915
+ */
1916
+ type: 'wallet_action.earn_incentive_claim.rejected';
1917
+
1918
+ /**
1919
+ * The ID of the wallet action.
1920
+ */
1921
+ wallet_action_id: string;
1922
+
1923
+ /**
1924
+ * The ID of the wallet involved in the action.
1925
+ */
1926
+ wallet_id: string;
1927
+ }
1928
+
1929
+ /**
1930
+ * Payload for the wallet_action.earn_incentive_claim.failed webhook event.
1931
+ */
1932
+ export interface WalletActionEarnIncentiveClaimFailedWebhookPayload {
1933
+ /**
1934
+ * Type of wallet action
1935
+ */
1936
+ action_type: WalletActionsAPI.WalletActionType;
1937
+
1938
+ /**
1939
+ * EVM chain name (e.g. "base", "ethereum").
1940
+ */
1941
+ chain: string;
1942
+
1943
+ /**
1944
+ * A description of why a wallet action (or a step within a wallet action) failed.
1945
+ */
1946
+ failure_reason: WalletActionsAPI.FailureReason;
1947
+
1948
+ /**
1949
+ * Claimed reward tokens. Populated after the preparation step fetches from Merkl.
1950
+ */
1951
+ rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
1952
+
1953
+ /**
1954
+ * Status of a wallet action.
1955
+ */
1956
+ status: WalletActionsAPI.WalletActionStatus;
1957
+
1958
+ /**
1959
+ * The steps of the wallet action. Completed steps will have transaction hashes;
1960
+ * the failing step will have a failure_reason.
1961
+ */
1962
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1963
+
1964
+ /**
1965
+ * The type of webhook event.
1966
+ */
1967
+ type: 'wallet_action.earn_incentive_claim.failed';
1968
+
1969
+ /**
1970
+ * The ID of the wallet action.
1971
+ */
1972
+ wallet_action_id: string;
1973
+
1974
+ /**
1975
+ * The ID of the wallet involved in the action.
1976
+ */
1977
+ wallet_id: string;
1978
+ }
1979
+
1980
+ /**
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.
2027
+ */
2028
+ export interface BridgeCryptoDepositMetadata {
2029
+ drain_id: string;
2030
+
2031
+ /**
2032
+ * The crypto address of the liquidation address that received the deposit.
2033
+ */
2034
+ liquidation_address: string;
2035
+
2036
+ liquidation_address_id: string;
2037
+
2038
+ method: 'liquidation_address';
2039
+
2040
+ /**
2041
+ * The address that sent the deposit.
2042
+ */
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';
2057
+
2058
+ /**
2059
+ * The original deposit transaction hash that triggered the failed drain.
2060
+ */
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';
2084
+
2085
+ /**
2086
+ * The wallet address that sent the transfer.
2087
+ */
2088
+ source_wallet_address: string;
2089
+
2090
+ transfer_id: string;
2091
+
2092
+ type: 'crypto_deposit';
2093
+ }
2094
+
2095
+ /**
2096
+ * Bridge metadata for a fiat deposit via transfer.
2097
+ */
2098
+ export interface BridgeFiatTransferMetadata {
2099
+ method: 'transfer';
2100
+
2101
+ transfer_id: string;
2102
+
2103
+ type: 'fiat_deposit';
2104
+ }
2105
+
2106
+ /**
2107
+ * Bridge metadata for a transfer refund.
2108
+ */
2109
+ export interface BridgeTransferRefundMetadata {
2110
+ method: 'transfer';
2111
+
2112
+ transfer_id: string;
2113
+
2114
+ type: 'refund';
2115
+
2116
+ /**
2117
+ * The original transfer transaction hash (if available).
2118
+ */
2119
+ original_transaction_hash?: string;
2120
+ }
2121
+
2122
+ /**
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.
2135
+ */
2136
+ export interface FundsDepositedWebhookPayload {
2137
+ /**
2138
+ * The amount transferred, as a stringified bigint.
2139
+ */
2140
+ amount: string;
2141
+
2142
+ /**
2143
+ * An asset involved in a wallet transfer.
2144
+ */
2145
+ asset: WalletFundsAsset;
2146
+
2147
+ block: FundsDepositedWebhookPayload.Block;
2148
+
2149
+ /**
2150
+ * The CAIP-2 chain identifier.
2151
+ */
2152
+ caip2: string;
2153
+
2154
+ /**
2155
+ * A unique key for this event.
2156
+ */
2157
+ idempotency_key: string;
2158
+
2159
+ /**
2160
+ * The recipient address.
2161
+ */
2162
+ recipient: string;
2163
+
2164
+ /**
2165
+ * The sender address.
2166
+ */
2167
+ sender: string;
2168
+
2169
+ /**
2170
+ * The blockchain transaction hash.
2171
+ */
2172
+ transaction_hash: string;
2173
+
2174
+ /**
2175
+ * The type of webhook event.
2176
+ */
2177
+ type: 'wallet.funds_deposited';
2178
+
2179
+ /**
2180
+ * The ID of the wallet.
2181
+ */
2182
+ wallet_id: string;
2183
+
2184
+ /**
2185
+ * Metadata about a Bridge transaction associated with a wallet event.
2186
+ */
2187
+ bridge_metadata?: BridgeMetadata;
2188
+
2189
+ /**
2190
+ * The transaction fee paid, as a stringified bigint in the chain's native token.
2191
+ */
2192
+ transaction_fee?: string;
2193
+ }
2194
+
2195
+ export namespace FundsDepositedWebhookPayload {
2196
+ export interface Block {
2197
+ /**
2198
+ * The block number.
2199
+ */
2200
+ number: number;
2201
+
2202
+ /**
2203
+ * The block timestamp.
2204
+ */
2205
+ timestamp: number;
2206
+ }
2207
+ }
2208
+
2209
+ /**
2210
+ * Payload for the wallet.funds_withdrawn webhook event.
2211
+ */
2212
+ export interface FundsWithdrawnWebhookPayload {
2213
+ /**
2214
+ * The amount transferred, as a stringified bigint.
2215
+ */
2216
+ amount: string;
2217
+
2218
+ /**
2219
+ * An asset involved in a wallet transfer.
2220
+ */
2221
+ asset: WalletFundsAsset;
2222
+
2223
+ block: FundsWithdrawnWebhookPayload.Block;
2224
+
2225
+ /**
2226
+ * The CAIP-2 chain identifier.
2227
+ */
2228
+ caip2: string;
2229
+
2230
+ /**
2231
+ * A unique key for this event.
2232
+ */
2233
+ idempotency_key: string;
2234
+
2235
+ /**
2236
+ * The recipient address.
2237
+ */
2238
+ recipient: string;
2239
+
2240
+ /**
2241
+ * The sender address.
2242
+ */
2243
+ sender: string;
2244
+
2245
+ /**
2246
+ * The blockchain transaction hash.
2247
+ */
2248
+ transaction_hash: string;
2249
+
2250
+ /**
2251
+ * The type of webhook event.
2252
+ */
2253
+ type: 'wallet.funds_withdrawn';
2254
+
2255
+ /**
2256
+ * The ID of the wallet.
2257
+ */
2258
+ wallet_id: string;
2259
+
2260
+ /**
2261
+ * The transaction fee paid, as a stringified bigint in the chain's native token.
2262
+ */
2263
+ transaction_fee?: string;
2264
+ }
2265
+
2266
+ export namespace FundsWithdrawnWebhookPayload {
2267
+ export interface Block {
2268
+ /**
2269
+ * The block number.
2270
+ */
2271
+ number: number;
2272
+
2273
+ /**
2274
+ * The block timestamp.
2275
+ */
2276
+ timestamp: number;
2277
+ }
2278
+ }
2279
+
2280
+ /**
2281
+ * Payload for the wallet.private_key_export webhook event.
2282
+ */
2283
+ export interface PrivateKeyExportWebhookPayload {
2284
+ /**
2285
+ * The type of webhook event.
2286
+ */
2287
+ type: 'wallet.private_key_export';
2288
+
2289
+ /**
2290
+ * The ID of the user who exported the key.
2291
+ */
2292
+ user_id: string;
2293
+
2294
+ /**
2295
+ * The address of the wallet.
2296
+ */
2297
+ wallet_address: string;
2298
+
2299
+ /**
2300
+ * The ID of the wallet.
2301
+ */
2302
+ wallet_id: string;
2303
+
2304
+ export_source?: 'display' | 'client';
2305
+ }
2306
+
2307
+ /**
2308
+ * Payload for the wallet.seed_phrase_export webhook event.
2309
+ */
2310
+ export interface SeedPhraseExportWebhookPayload {
2311
+ /**
2312
+ * The type of webhook event.
2313
+ */
2314
+ type: 'wallet.seed_phrase_export';
2315
+
2316
+ /**
2317
+ * The ID of the user who exported the seed phrase.
992
2318
  */
993
2319
  user_id: string;
994
2320
 
@@ -1161,6 +2487,7 @@ export type WebhookPayload =
1161
2487
  | FundsDepositedWebhookPayload
1162
2488
  | FundsWithdrawnWebhookPayload
1163
2489
  | PrivateKeyExportWebhookPayload
2490
+ | SeedPhraseExportWebhookPayload
1164
2491
  | WalletRecoverySetupWebhookPayload
1165
2492
  | WalletRecoveredWebhookPayload
1166
2493
  | MfaEnabledWebhookPayload
@@ -1172,7 +2499,27 @@ export type WebhookPayload =
1172
2499
  | IntentCreatedWebhookPayload
1173
2500
  | IntentAuthorizedWebhookPayload
1174
2501
  | IntentExecutedWebhookPayload
1175
- | IntentFailedWebhookPayload;
2502
+ | IntentFailedWebhookPayload
2503
+ | WalletActionSwapCreatedWebhookPayload
2504
+ | WalletActionSwapSucceededWebhookPayload
2505
+ | WalletActionSwapRejectedWebhookPayload
2506
+ | WalletActionSwapFailedWebhookPayload
2507
+ | WalletActionTransferCreatedWebhookPayload
2508
+ | WalletActionTransferSucceededWebhookPayload
2509
+ | WalletActionTransferRejectedWebhookPayload
2510
+ | WalletActionTransferFailedWebhookPayload
2511
+ | WalletActionEarnDepositCreatedWebhookPayload
2512
+ | WalletActionEarnDepositSucceededWebhookPayload
2513
+ | WalletActionEarnDepositRejectedWebhookPayload
2514
+ | WalletActionEarnDepositFailedWebhookPayload
2515
+ | WalletActionEarnWithdrawCreatedWebhookPayload
2516
+ | WalletActionEarnWithdrawSucceededWebhookPayload
2517
+ | WalletActionEarnWithdrawRejectedWebhookPayload
2518
+ | WalletActionEarnWithdrawFailedWebhookPayload
2519
+ | WalletActionEarnIncentiveClaimCreatedWebhookPayload
2520
+ | WalletActionEarnIncentiveClaimSucceededWebhookPayload
2521
+ | WalletActionEarnIncentiveClaimRejectedWebhookPayload
2522
+ | WalletActionEarnIncentiveClaimFailedWebhookPayload;
1176
2523
 
1177
2524
  /**
1178
2525
  * Payload for the kraken_embed.quote_executed webhook event.
@@ -1344,9 +2691,42 @@ export declare namespace Webhooks {
1344
2691
  type UserUpdatedAccountWebhookPayload as UserUpdatedAccountWebhookPayload,
1345
2692
  type UserTransferredAccountWebhookPayload as UserTransferredAccountWebhookPayload,
1346
2693
  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
+ type WalletActionEarnDepositCreatedWebhookPayload as WalletActionEarnDepositCreatedWebhookPayload,
2703
+ type WalletActionEarnDepositSucceededWebhookPayload as WalletActionEarnDepositSucceededWebhookPayload,
2704
+ type WalletActionEarnDepositRejectedWebhookPayload as WalletActionEarnDepositRejectedWebhookPayload,
2705
+ type WalletActionEarnDepositFailedWebhookPayload as WalletActionEarnDepositFailedWebhookPayload,
2706
+ type WalletActionEarnWithdrawCreatedWebhookPayload as WalletActionEarnWithdrawCreatedWebhookPayload,
2707
+ type WalletActionEarnWithdrawSucceededWebhookPayload as WalletActionEarnWithdrawSucceededWebhookPayload,
2708
+ type WalletActionEarnWithdrawRejectedWebhookPayload as WalletActionEarnWithdrawRejectedWebhookPayload,
2709
+ type WalletActionEarnWithdrawFailedWebhookPayload as WalletActionEarnWithdrawFailedWebhookPayload,
2710
+ type WalletActionEarnIncentiveClaimCreatedWebhookPayload as WalletActionEarnIncentiveClaimCreatedWebhookPayload,
2711
+ type WalletActionEarnIncentiveClaimSucceededWebhookPayload as WalletActionEarnIncentiveClaimSucceededWebhookPayload,
2712
+ type WalletActionEarnIncentiveClaimRejectedWebhookPayload as WalletActionEarnIncentiveClaimRejectedWebhookPayload,
2713
+ type WalletActionEarnIncentiveClaimFailedWebhookPayload as WalletActionEarnIncentiveClaimFailedWebhookPayload,
2714
+ type WalletFundsNativeTokenAsset as WalletFundsNativeTokenAsset,
2715
+ type WalletFundsErc20Asset as WalletFundsErc20Asset,
2716
+ type WalletFundsSplAsset as WalletFundsSplAsset,
2717
+ 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,
1347
2726
  type FundsDepositedWebhookPayload as FundsDepositedWebhookPayload,
1348
2727
  type FundsWithdrawnWebhookPayload as FundsWithdrawnWebhookPayload,
1349
2728
  type PrivateKeyExportWebhookPayload as PrivateKeyExportWebhookPayload,
2729
+ type SeedPhraseExportWebhookPayload as SeedPhraseExportWebhookPayload,
1350
2730
  type WalletRecoverySetupWebhookPayload as WalletRecoverySetupWebhookPayload,
1351
2731
  type WalletRecoveredWebhookPayload as WalletRecoveredWebhookPayload,
1352
2732
  type YieldDepositConfirmedWebhookPayload as YieldDepositConfirmedWebhookPayload,