@privy-io/api-types 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/client.d.mts +37 -28
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +37 -28
  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/package.json +1 -1
  11. package/resources/accounts.d.mts +79 -106
  12. package/resources/accounts.d.mts.map +1 -1
  13. package/resources/accounts.d.ts +79 -106
  14. package/resources/accounts.d.ts.map +1 -1
  15. package/resources/accounts.js.map +1 -1
  16. package/resources/accounts.mjs.map +1 -1
  17. package/resources/aggregations.d.mts +18 -392
  18. package/resources/aggregations.d.mts.map +1 -1
  19. package/resources/aggregations.d.ts +18 -392
  20. package/resources/aggregations.d.ts.map +1 -1
  21. package/resources/aggregations.js.map +1 -1
  22. package/resources/aggregations.mjs.map +1 -1
  23. package/resources/apps.d.mts +139 -70
  24. package/resources/apps.d.mts.map +1 -1
  25. package/resources/apps.d.ts +139 -70
  26. package/resources/apps.d.ts.map +1 -1
  27. package/resources/apps.js.map +1 -1
  28. package/resources/apps.mjs.map +1 -1
  29. package/resources/client-auth.d.mts +796 -427
  30. package/resources/client-auth.d.mts.map +1 -1
  31. package/resources/client-auth.d.ts +796 -427
  32. package/resources/client-auth.d.ts.map +1 -1
  33. package/resources/client-auth.js.map +1 -1
  34. package/resources/client-auth.mjs.map +1 -1
  35. package/resources/cross-app.d.mts +14 -13
  36. package/resources/cross-app.d.mts.map +1 -1
  37. package/resources/cross-app.d.ts +14 -13
  38. package/resources/cross-app.d.ts.map +1 -1
  39. package/resources/embedded-wallets.d.mts +165 -81
  40. package/resources/embedded-wallets.d.mts.map +1 -1
  41. package/resources/embedded-wallets.d.ts +165 -81
  42. package/resources/embedded-wallets.d.ts.map +1 -1
  43. package/resources/embedded-wallets.js.map +1 -1
  44. package/resources/embedded-wallets.mjs.map +1 -1
  45. package/resources/funding.d.mts +150 -64
  46. package/resources/funding.d.mts.map +1 -1
  47. package/resources/funding.d.ts +150 -64
  48. package/resources/funding.d.ts.map +1 -1
  49. package/resources/funding.js.map +1 -1
  50. package/resources/funding.mjs.map +1 -1
  51. package/resources/index.d.mts +17 -14
  52. package/resources/index.d.mts.map +1 -1
  53. package/resources/index.d.ts +17 -14
  54. package/resources/index.d.ts.map +1 -1
  55. package/resources/index.js +7 -1
  56. package/resources/index.js.map +1 -1
  57. package/resources/index.mjs +3 -0
  58. package/resources/index.mjs.map +1 -1
  59. package/resources/intents.d.mts +224 -1757
  60. package/resources/intents.d.mts.map +1 -1
  61. package/resources/intents.d.ts +224 -1757
  62. package/resources/intents.d.ts.map +1 -1
  63. package/resources/intents.js.map +1 -1
  64. package/resources/intents.mjs.map +1 -1
  65. package/resources/key-quorums.d.mts +74 -26
  66. package/resources/key-quorums.d.mts.map +1 -1
  67. package/resources/key-quorums.d.ts +74 -26
  68. package/resources/key-quorums.d.ts.map +1 -1
  69. package/resources/key-quorums.js +8 -8
  70. package/resources/key-quorums.js.map +1 -1
  71. package/resources/key-quorums.mjs +8 -8
  72. package/resources/key-quorums.mjs.map +1 -1
  73. package/resources/policies.d.mts +335 -926
  74. package/resources/policies.d.mts.map +1 -1
  75. package/resources/policies.d.ts +335 -926
  76. package/resources/policies.d.ts.map +1 -1
  77. package/resources/policies.js +48 -41
  78. package/resources/policies.js.map +1 -1
  79. package/resources/policies.mjs +48 -41
  80. package/resources/policies.mjs.map +1 -1
  81. package/resources/shared.d.mts +59 -0
  82. package/resources/shared.d.mts.map +1 -0
  83. package/resources/shared.d.ts +59 -0
  84. package/resources/shared.d.ts.map +1 -0
  85. package/resources/shared.js +9 -0
  86. package/resources/shared.js.map +1 -0
  87. package/resources/shared.mjs +5 -0
  88. package/resources/shared.mjs.map +1 -0
  89. package/resources/swaps.d.mts +108 -0
  90. package/resources/swaps.d.mts.map +1 -0
  91. package/resources/swaps.d.ts +108 -0
  92. package/resources/swaps.d.ts.map +1 -0
  93. package/resources/swaps.js +9 -0
  94. package/resources/swaps.js.map +1 -0
  95. package/resources/swaps.mjs +5 -0
  96. package/resources/swaps.mjs.map +1 -0
  97. package/resources/transactions.d.mts +155 -93
  98. package/resources/transactions.d.mts.map +1 -1
  99. package/resources/transactions.d.ts +155 -93
  100. package/resources/transactions.d.ts.map +1 -1
  101. package/resources/users.d.mts +61 -94
  102. package/resources/users.d.mts.map +1 -1
  103. package/resources/users.d.ts +61 -94
  104. package/resources/users.d.ts.map +1 -1
  105. package/resources/users.js.map +1 -1
  106. package/resources/users.mjs.map +1 -1
  107. package/resources/wallet-actions.d.mts +187 -0
  108. package/resources/wallet-actions.d.mts.map +1 -0
  109. package/resources/wallet-actions.d.ts +187 -0
  110. package/resources/wallet-actions.d.ts.map +1 -0
  111. package/resources/wallet-actions.js +9 -0
  112. package/resources/wallet-actions.js.map +1 -0
  113. package/resources/wallet-actions.mjs +5 -0
  114. package/resources/wallet-actions.mjs.map +1 -0
  115. package/resources/wallets/index.d.mts +1 -1
  116. package/resources/wallets/index.d.mts.map +1 -1
  117. package/resources/wallets/index.d.ts +1 -1
  118. package/resources/wallets/index.d.ts.map +1 -1
  119. package/resources/wallets/index.js.map +1 -1
  120. package/resources/wallets/index.mjs.map +1 -1
  121. package/resources/wallets/transactions.d.mts +1 -0
  122. package/resources/wallets/transactions.d.mts.map +1 -1
  123. package/resources/wallets/transactions.d.ts +1 -0
  124. package/resources/wallets/transactions.d.ts.map +1 -1
  125. package/resources/wallets/wallets.d.mts +2377 -971
  126. package/resources/wallets/wallets.d.mts.map +1 -1
  127. package/resources/wallets/wallets.d.ts +2377 -971
  128. package/resources/wallets/wallets.d.ts.map +1 -1
  129. package/resources/wallets/wallets.js +18 -6
  130. package/resources/wallets/wallets.js.map +1 -1
  131. package/resources/wallets/wallets.mjs +18 -6
  132. package/resources/wallets/wallets.mjs.map +1 -1
  133. package/resources/webhooks.d.mts +438 -33
  134. package/resources/webhooks.d.mts.map +1 -1
  135. package/resources/webhooks.d.ts +438 -33
  136. package/resources/webhooks.d.ts.map +1 -1
  137. package/resources/webhooks.js.map +1 -1
  138. package/resources/webhooks.mjs.map +1 -1
  139. package/resources/yield.d.mts +25 -1
  140. package/resources/yield.d.mts.map +1 -1
  141. package/resources/yield.d.ts +25 -1
  142. package/resources/yield.d.ts.map +1 -1
  143. package/src/client.ts +721 -72
  144. package/src/resources/accounts.ts +93 -120
  145. package/src/resources/aggregations.ts +18 -702
  146. package/src/resources/apps.ts +187 -110
  147. package/src/resources/client-auth.ts +1358 -893
  148. package/src/resources/cross-app.ts +19 -15
  149. package/src/resources/embedded-wallets.ts +219 -123
  150. package/src/resources/funding.ts +263 -173
  151. package/src/resources/index.ts +368 -47
  152. package/src/resources/intents.ts +370 -3100
  153. package/src/resources/key-quorums.ts +100 -32
  154. package/src/resources/policies.ts +583 -1558
  155. package/src/resources/shared.ts +79 -0
  156. package/src/resources/swaps.ts +136 -0
  157. package/src/resources/transactions.ts +185 -91
  158. package/src/resources/users.ts +79 -132
  159. package/src/resources/wallet-actions.ts +251 -0
  160. package/src/resources/wallets/index.ts +144 -16
  161. package/src/resources/wallets/transactions.ts +2 -0
  162. package/src/resources/wallets/wallets.ts +2893 -1023
  163. package/src/resources/webhooks.ts +547 -47
  164. package/src/resources/yield.ts +29 -0
  165. package/src/version.ts +1 -1
  166. package/version.d.mts +1 -1
  167. package/version.d.ts +1 -1
  168. package/version.js +1 -1
  169. 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
  /**
@@ -690,6 +687,464 @@ export interface UserWalletCreatedWebhookPayload {
690
687
  wallet: UsersAPI.LinkedAccountBaseWallet;
691
688
  }
692
689
 
690
+ /**
691
+ * Payload for the wallet_action.swap.created webhook event.
692
+ */
693
+ export interface WalletActionSwapCreatedWebhookPayload {
694
+ /**
695
+ * Type of wallet action
696
+ */
697
+ action_type: WalletActionsAPI.WalletActionType;
698
+
699
+ /**
700
+ * Chain identifier.
701
+ */
702
+ caip2: string;
703
+
704
+ /**
705
+ * Amount of input token in base units. Populated after on-chain confirmation.
706
+ */
707
+ input_amount: string | null;
708
+
709
+ /**
710
+ * Token address being sold.
711
+ */
712
+ input_token: string;
713
+
714
+ /**
715
+ * Token address being bought.
716
+ */
717
+ output_token: string;
718
+
719
+ /**
720
+ * Status of a wallet action.
721
+ */
722
+ status: WalletActionsAPI.WalletActionStatus;
723
+
724
+ /**
725
+ * The type of webhook event.
726
+ */
727
+ type: 'wallet_action.swap.created';
728
+
729
+ /**
730
+ * The ID of the wallet action.
731
+ */
732
+ wallet_action_id: string;
733
+
734
+ /**
735
+ * The ID of the wallet involved in the action.
736
+ */
737
+ wallet_id: string;
738
+ }
739
+
740
+ /**
741
+ * Payload for the wallet_action.swap.succeeded webhook event.
742
+ */
743
+ export interface WalletActionSwapSucceededWebhookPayload {
744
+ /**
745
+ * Type of wallet action
746
+ */
747
+ action_type: WalletActionsAPI.WalletActionType;
748
+
749
+ /**
750
+ * Chain identifier.
751
+ */
752
+ caip2: string;
753
+
754
+ /**
755
+ * Amount of input token in base units. Populated after on-chain confirmation.
756
+ */
757
+ input_amount: string | null;
758
+
759
+ /**
760
+ * Token address being sold.
761
+ */
762
+ input_token: string;
763
+
764
+ /**
765
+ * Amount of output token received, in base units. Populated after on-chain
766
+ * confirmation.
767
+ */
768
+ output_amount: string | null;
769
+
770
+ /**
771
+ * Token address being bought.
772
+ */
773
+ output_token: string;
774
+
775
+ /**
776
+ * Status of a wallet action.
777
+ */
778
+ status: WalletActionsAPI.WalletActionStatus;
779
+
780
+ /**
781
+ * The steps of the wallet action, including transaction hashes.
782
+ */
783
+ steps: Array<WalletActionsAPI.WalletActionStep>;
784
+
785
+ /**
786
+ * The type of webhook event.
787
+ */
788
+ type: 'wallet_action.swap.succeeded';
789
+
790
+ /**
791
+ * The ID of the wallet action.
792
+ */
793
+ wallet_action_id: string;
794
+
795
+ /**
796
+ * The ID of the wallet involved in the action.
797
+ */
798
+ wallet_id: string;
799
+ }
800
+
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;
809
+
810
+ /**
811
+ * Chain identifier.
812
+ */
813
+ caip2: string;
814
+
815
+ /**
816
+ * A description of why a wallet action (or a step within a wallet action) failed.
817
+ */
818
+ failure_reason: WalletActionsAPI.FailureReason;
819
+
820
+ /**
821
+ * Amount of input token in base units. Populated after on-chain confirmation.
822
+ */
823
+ input_amount: string | null;
824
+
825
+ /**
826
+ * Token address being sold.
827
+ */
828
+ input_token: string;
829
+
830
+ /**
831
+ * Token address being bought.
832
+ */
833
+ output_token: string;
834
+
835
+ /**
836
+ * Status of a wallet action.
837
+ */
838
+ status: WalletActionsAPI.WalletActionStatus;
839
+
840
+ /**
841
+ * The steps of the wallet action at the time of rejection.
842
+ */
843
+ steps: Array<WalletActionsAPI.WalletActionStep>;
844
+
845
+ /**
846
+ * The type of webhook event.
847
+ */
848
+ type: 'wallet_action.swap.rejected';
849
+
850
+ /**
851
+ * The ID of the wallet action.
852
+ */
853
+ wallet_action_id: string;
854
+
855
+ /**
856
+ * The ID of the wallet involved in the action.
857
+ */
858
+ wallet_id: string;
859
+ }
860
+
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;
869
+
870
+ /**
871
+ * Chain identifier.
872
+ */
873
+ caip2: string;
874
+
875
+ /**
876
+ * A description of why a wallet action (or a step within a wallet action) failed.
877
+ */
878
+ failure_reason: WalletActionsAPI.FailureReason;
879
+
880
+ /**
881
+ * Amount of input token in base units. Populated after on-chain confirmation.
882
+ */
883
+ input_amount: string | null;
884
+
885
+ /**
886
+ * Token address being sold.
887
+ */
888
+ input_token: string;
889
+
890
+ /**
891
+ * Token address being bought.
892
+ */
893
+ output_token: string;
894
+
895
+ /**
896
+ * Status of a wallet action.
897
+ */
898
+ status: WalletActionsAPI.WalletActionStatus;
899
+
900
+ /**
901
+ * The steps of the wallet action. Completed steps will have transaction hashes;
902
+ * the failing step will have a failure_reason.
903
+ */
904
+ steps: Array<WalletActionsAPI.WalletActionStep>;
905
+
906
+ /**
907
+ * The type of webhook event.
908
+ */
909
+ type: 'wallet_action.swap.failed';
910
+
911
+ /**
912
+ * The ID of the wallet action.
913
+ */
914
+ wallet_action_id: string;
915
+
916
+ /**
917
+ * The ID of the wallet involved in the action.
918
+ */
919
+ wallet_id: string;
920
+ }
921
+
922
+ /**
923
+ * Payload for the wallet_action.transfer.created webhook event.
924
+ */
925
+ export interface WalletActionTransferCreatedWebhookPayload {
926
+ /**
927
+ * Type of wallet action
928
+ */
929
+ action_type: WalletActionsAPI.WalletActionType;
930
+
931
+ /**
932
+ * Recipient address.
933
+ */
934
+ destination_address: string;
935
+
936
+ /**
937
+ * Decimal amount as provided by the user (e.g. "1.5").
938
+ */
939
+ source_amount: string;
940
+
941
+ /**
942
+ * Asset identifier (e.g. "usdc", "eth").
943
+ */
944
+ source_asset: string;
945
+
946
+ /**
947
+ * Chain name (e.g. "base", "ethereum").
948
+ */
949
+ source_chain: string;
950
+
951
+ /**
952
+ * Status of a wallet action.
953
+ */
954
+ status: WalletActionsAPI.WalletActionStatus;
955
+
956
+ /**
957
+ * The type of webhook event.
958
+ */
959
+ type: 'wallet_action.transfer.created';
960
+
961
+ /**
962
+ * The ID of the wallet action.
963
+ */
964
+ wallet_action_id: string;
965
+
966
+ /**
967
+ * The ID of the wallet involved in the action.
968
+ */
969
+ wallet_id: string;
970
+ }
971
+
972
+ /**
973
+ * Payload for the wallet_action.transfer.succeeded webhook event.
974
+ */
975
+ export interface WalletActionTransferSucceededWebhookPayload {
976
+ /**
977
+ * Type of wallet action
978
+ */
979
+ action_type: WalletActionsAPI.WalletActionType;
980
+
981
+ /**
982
+ * Recipient address.
983
+ */
984
+ destination_address: string;
985
+
986
+ /**
987
+ * Decimal amount as provided by the user (e.g. "1.5").
988
+ */
989
+ source_amount: string;
990
+
991
+ /**
992
+ * Asset identifier (e.g. "usdc", "eth").
993
+ */
994
+ source_asset: string;
995
+
996
+ /**
997
+ * Chain name (e.g. "base", "ethereum").
998
+ */
999
+ source_chain: string;
1000
+
1001
+ /**
1002
+ * Status of a wallet action.
1003
+ */
1004
+ status: WalletActionsAPI.WalletActionStatus;
1005
+
1006
+ /**
1007
+ * The steps of the wallet action, including transaction hashes.
1008
+ */
1009
+ steps: Array<WalletActionsAPI.WalletActionStep>;
1010
+
1011
+ /**
1012
+ * The type of webhook event.
1013
+ */
1014
+ type: 'wallet_action.transfer.succeeded';
1015
+
1016
+ /**
1017
+ * The ID of the wallet action.
1018
+ */
1019
+ wallet_action_id: string;
1020
+
1021
+ /**
1022
+ * The ID of the wallet involved in the action.
1023
+ */
1024
+ wallet_id: string;
1025
+ }
1026
+
1027
+ /**
1028
+ * Payload for the wallet_action.transfer.rejected webhook event.
1029
+ */
1030
+ export interface WalletActionTransferRejectedWebhookPayload {
1031
+ /**
1032
+ * Type of wallet action
1033
+ */
1034
+ action_type: WalletActionsAPI.WalletActionType;
1035
+
1036
+ /**
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
+
693
1148
  /**
694
1149
  * Payload for the wallet.funds_deposited webhook event.
695
1150
  */
@@ -1005,6 +1460,33 @@ export interface PrivateKeyExportWebhookPayload {
1005
1460
  export_source?: 'display' | 'client';
1006
1461
  }
1007
1462
 
1463
+ /**
1464
+ * Payload for the wallet.seed_phrase_export webhook event.
1465
+ */
1466
+ export interface SeedPhraseExportWebhookPayload {
1467
+ /**
1468
+ * The type of webhook event.
1469
+ */
1470
+ type: 'wallet.seed_phrase_export';
1471
+
1472
+ /**
1473
+ * The ID of the user who exported the seed phrase.
1474
+ */
1475
+ user_id: string;
1476
+
1477
+ /**
1478
+ * The address of the wallet.
1479
+ */
1480
+ wallet_address: string;
1481
+
1482
+ /**
1483
+ * The ID of the wallet.
1484
+ */
1485
+ wallet_id: string;
1486
+
1487
+ export_source?: 'display' | 'client';
1488
+ }
1489
+
1008
1490
  /**
1009
1491
  * Payload for the wallet.recovery_setup webhook event.
1010
1492
  */
@@ -1161,6 +1643,7 @@ export type WebhookPayload =
1161
1643
  | FundsDepositedWebhookPayload
1162
1644
  | FundsWithdrawnWebhookPayload
1163
1645
  | PrivateKeyExportWebhookPayload
1646
+ | SeedPhraseExportWebhookPayload
1164
1647
  | WalletRecoverySetupWebhookPayload
1165
1648
  | WalletRecoveredWebhookPayload
1166
1649
  | MfaEnabledWebhookPayload
@@ -1172,7 +1655,15 @@ export type WebhookPayload =
1172
1655
  | IntentCreatedWebhookPayload
1173
1656
  | IntentAuthorizedWebhookPayload
1174
1657
  | IntentExecutedWebhookPayload
1175
- | IntentFailedWebhookPayload;
1658
+ | IntentFailedWebhookPayload
1659
+ | WalletActionSwapCreatedWebhookPayload
1660
+ | WalletActionSwapSucceededWebhookPayload
1661
+ | WalletActionSwapRejectedWebhookPayload
1662
+ | WalletActionSwapFailedWebhookPayload
1663
+ | WalletActionTransferCreatedWebhookPayload
1664
+ | WalletActionTransferSucceededWebhookPayload
1665
+ | WalletActionTransferRejectedWebhookPayload
1666
+ | WalletActionTransferFailedWebhookPayload;
1176
1667
 
1177
1668
  /**
1178
1669
  * Payload for the kraken_embed.quote_executed webhook event.
@@ -1344,9 +1835,18 @@ export declare namespace Webhooks {
1344
1835
  type UserUpdatedAccountWebhookPayload as UserUpdatedAccountWebhookPayload,
1345
1836
  type UserTransferredAccountWebhookPayload as UserTransferredAccountWebhookPayload,
1346
1837
  type UserWalletCreatedWebhookPayload as UserWalletCreatedWebhookPayload,
1838
+ type WalletActionSwapCreatedWebhookPayload as WalletActionSwapCreatedWebhookPayload,
1839
+ type WalletActionSwapSucceededWebhookPayload as WalletActionSwapSucceededWebhookPayload,
1840
+ type WalletActionSwapRejectedWebhookPayload as WalletActionSwapRejectedWebhookPayload,
1841
+ type WalletActionSwapFailedWebhookPayload as WalletActionSwapFailedWebhookPayload,
1842
+ type WalletActionTransferCreatedWebhookPayload as WalletActionTransferCreatedWebhookPayload,
1843
+ type WalletActionTransferSucceededWebhookPayload as WalletActionTransferSucceededWebhookPayload,
1844
+ type WalletActionTransferRejectedWebhookPayload as WalletActionTransferRejectedWebhookPayload,
1845
+ type WalletActionTransferFailedWebhookPayload as WalletActionTransferFailedWebhookPayload,
1347
1846
  type FundsDepositedWebhookPayload as FundsDepositedWebhookPayload,
1348
1847
  type FundsWithdrawnWebhookPayload as FundsWithdrawnWebhookPayload,
1349
1848
  type PrivateKeyExportWebhookPayload as PrivateKeyExportWebhookPayload,
1849
+ type SeedPhraseExportWebhookPayload as SeedPhraseExportWebhookPayload,
1350
1850
  type WalletRecoverySetupWebhookPayload as WalletRecoverySetupWebhookPayload,
1351
1851
  type WalletRecoveredWebhookPayload as WalletRecoveredWebhookPayload,
1352
1852
  type YieldDepositConfirmedWebhookPayload as YieldDepositConfirmedWebhookPayload,