@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.
- package/CHANGELOG.md +43 -0
- package/client.d.mts +37 -28
- package/client.d.mts.map +1 -1
- package/client.d.ts +37 -28
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +79 -106
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +79 -106
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs.map +1 -1
- package/resources/aggregations.d.mts +18 -392
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +18 -392
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/aggregations.js.map +1 -1
- package/resources/aggregations.mjs.map +1 -1
- package/resources/apps.d.mts +139 -70
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +139 -70
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs.map +1 -1
- package/resources/client-auth.d.mts +796 -427
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +796 -427
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/client-auth.js.map +1 -1
- package/resources/client-auth.mjs.map +1 -1
- package/resources/cross-app.d.mts +14 -13
- package/resources/cross-app.d.mts.map +1 -1
- package/resources/cross-app.d.ts +14 -13
- package/resources/cross-app.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +165 -81
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +165 -81
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/embedded-wallets.js.map +1 -1
- package/resources/embedded-wallets.mjs.map +1 -1
- package/resources/funding.d.mts +150 -64
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +150 -64
- package/resources/funding.d.ts.map +1 -1
- package/resources/funding.js.map +1 -1
- package/resources/funding.mjs.map +1 -1
- package/resources/index.d.mts +17 -14
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +17 -14
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +224 -1757
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +224 -1757
- package/resources/intents.d.ts.map +1 -1
- package/resources/intents.js.map +1 -1
- package/resources/intents.mjs.map +1 -1
- package/resources/key-quorums.d.mts +74 -26
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +74 -26
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +8 -8
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +8 -8
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/policies.d.mts +335 -926
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +335 -926
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +48 -41
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +48 -41
- package/resources/policies.mjs.map +1 -1
- package/resources/shared.d.mts +59 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +59 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +9 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +5 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/swaps.d.mts +108 -0
- package/resources/swaps.d.mts.map +1 -0
- package/resources/swaps.d.ts +108 -0
- package/resources/swaps.d.ts.map +1 -0
- package/resources/swaps.js +9 -0
- package/resources/swaps.js.map +1 -0
- package/resources/swaps.mjs +5 -0
- package/resources/swaps.mjs.map +1 -0
- package/resources/transactions.d.mts +155 -93
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +155 -93
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +61 -94
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +61 -94
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js.map +1 -1
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +187 -0
- package/resources/wallet-actions.d.mts.map +1 -0
- package/resources/wallet-actions.d.ts +187 -0
- package/resources/wallet-actions.d.ts.map +1 -0
- package/resources/wallet-actions.js +9 -0
- package/resources/wallet-actions.js.map +1 -0
- package/resources/wallet-actions.mjs +5 -0
- package/resources/wallet-actions.mjs.map +1 -0
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +1 -0
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +1 -0
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/wallets.d.mts +2377 -971
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +2377 -971
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +18 -6
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +18 -6
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +438 -33
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +438 -33
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/yield.d.mts +25 -1
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +25 -1
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +721 -72
- package/src/resources/accounts.ts +93 -120
- package/src/resources/aggregations.ts +18 -702
- package/src/resources/apps.ts +187 -110
- package/src/resources/client-auth.ts +1358 -893
- package/src/resources/cross-app.ts +19 -15
- package/src/resources/embedded-wallets.ts +219 -123
- package/src/resources/funding.ts +263 -173
- package/src/resources/index.ts +368 -47
- package/src/resources/intents.ts +370 -3100
- package/src/resources/key-quorums.ts +100 -32
- package/src/resources/policies.ts +583 -1558
- package/src/resources/shared.ts +79 -0
- package/src/resources/swaps.ts +136 -0
- package/src/resources/transactions.ts +185 -91
- package/src/resources/users.ts +79 -132
- package/src/resources/wallet-actions.ts +251 -0
- package/src/resources/wallets/index.ts +144 -16
- package/src/resources/wallets/transactions.ts +2 -0
- package/src/resources/wallets/wallets.ts +2893 -1023
- package/src/resources/webhooks.ts +547 -47
- package/src/resources/yield.ts +29 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- 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
|
-
*
|
|
384
|
+
* An unsigned Ethereum transaction object.
|
|
365
385
|
*/
|
|
366
|
-
transaction_request:
|
|
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
|
-
*
|
|
399
|
+
* Developer-provided reference ID for transaction reconciliation, if one was
|
|
400
|
+
* provided.
|
|
382
401
|
*/
|
|
383
|
-
|
|
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,
|