@privy-io/api-types 0.16.0 → 0.18.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 +74 -0
- package/client.d.mts +14 -17
- package/client.d.mts.map +1 -1
- package/client.d.ts +14 -17
- package/client.d.ts.map +1 -1
- package/client.js +0 -3
- package/client.js.map +1 -1
- package/client.mjs +0 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +1 -1
- package/resources/accounts.d.ts +1 -1
- package/resources/apps.d.mts +3 -3
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +3 -3
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +42 -4
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +42 -4
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +6 -0
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +6 -0
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/index.d.mts +7 -8
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +7 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +110 -17
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +110 -17
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/onramps.d.mts +4 -4
- package/resources/onramps.d.ts +4 -4
- package/resources/policies.d.mts +48 -8
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +48 -8
- package/resources/policies.d.ts.map +1 -1
- package/resources/swaps.d.mts +2 -1
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +2 -1
- package/resources/swaps.d.ts.map +1 -1
- package/resources/transactions.d.mts +9 -2
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +9 -2
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +41 -8
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +41 -8
- package/resources/users.d.ts.map +1 -1
- package/resources/{wallet-actions.d.ts → wallets/actions.d.mts} +262 -60
- package/resources/wallets/actions.d.mts.map +1 -0
- package/resources/{wallet-actions.d.mts → wallets/actions.d.ts} +262 -60
- package/resources/wallets/actions.d.ts.map +1 -0
- package/resources/wallets/actions.js +9 -0
- package/resources/wallets/actions.js.map +1 -0
- package/resources/wallets/actions.mjs +5 -0
- package/resources/wallets/actions.mjs.map +1 -0
- package/resources/wallets/balance.d.mts +9 -6
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +9 -6
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/index.d.mts +2 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +2 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js +3 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs +1 -0
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +10 -3
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +10 -3
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js.map +1 -1
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +323 -78
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +323 -78
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +4 -0
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +4 -0
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +379 -71
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +379 -71
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/yield.d.mts +11 -7
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +11 -7
- package/resources/yield.d.ts.map +1 -1
- package/resources/yield.js.map +1 -1
- package/resources/yield.mjs.map +1 -1
- package/src/client.ts +96 -83
- package/src/resources/accounts.ts +1 -1
- package/src/resources/apps.ts +3 -3
- package/src/resources/client-auth.ts +61 -3
- package/src/resources/embedded-wallets.ts +7 -0
- package/src/resources/index.ts +48 -40
- package/src/resources/kraken-embed.ts +439 -848
- package/src/resources/onramps.ts +4 -4
- package/src/resources/policies.ts +96 -36
- package/src/resources/swaps.ts +2 -1
- package/src/resources/transactions.ts +18 -9
- package/src/resources/users.ts +49 -7
- package/src/resources/{wallet-actions.ts → wallets/actions.ts} +323 -67
- package/src/resources/wallets/balance.ts +24 -64
- package/src/resources/wallets/index.ts +59 -0
- package/src/resources/wallets/transactions.ts +12 -10
- package/src/resources/wallets/wallets.ts +582 -116
- package/src/resources/webhooks.ts +458 -76
- package/src/resources/yield.ts +11 -15
- 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
- package/resources/wallet-actions.d.mts.map +0 -1
- package/resources/wallet-actions.d.ts.map +0 -1
- package/resources/wallet-actions.js +0 -9
- package/resources/wallet-actions.js.map +0 -1
- package/resources/wallet-actions.mjs +0 -5
- package/resources/wallet-actions.mjs.map +0 -1
|
@@ -4,7 +4,7 @@ import { APIResource } from '../core/resource';
|
|
|
4
4
|
import * as AppsAPI from './apps';
|
|
5
5
|
import * as IntentsAPI from './intents';
|
|
6
6
|
import * as UsersAPI from './users';
|
|
7
|
-
import * as
|
|
7
|
+
import * as ActionsAPI from './wallets/actions';
|
|
8
8
|
import * as WalletsAPI from './wallets/wallets';
|
|
9
9
|
|
|
10
10
|
export class Webhooks extends APIResource {}
|
|
@@ -824,7 +824,11 @@ export interface PrivateKeyExportWebhookPayload {
|
|
|
824
824
|
*/
|
|
825
825
|
wallet_id: string;
|
|
826
826
|
|
|
827
|
-
|
|
827
|
+
/**
|
|
828
|
+
* The export type. 'display' is for showing the key to the user in the UI,
|
|
829
|
+
* 'client' is for exporting to the client application.
|
|
830
|
+
*/
|
|
831
|
+
export_source?: WalletsAPI.ExportType;
|
|
828
832
|
}
|
|
829
833
|
|
|
830
834
|
/**
|
|
@@ -851,7 +855,11 @@ export interface SeedPhraseExportWebhookPayload {
|
|
|
851
855
|
*/
|
|
852
856
|
wallet_id: string;
|
|
853
857
|
|
|
854
|
-
|
|
858
|
+
/**
|
|
859
|
+
* The export type. 'display' is for showing the key to the user in the UI,
|
|
860
|
+
* 'client' is for exporting to the client application.
|
|
861
|
+
*/
|
|
862
|
+
export_source?: WalletsAPI.ExportType;
|
|
855
863
|
}
|
|
856
864
|
|
|
857
865
|
/**
|
|
@@ -859,7 +867,8 @@ export interface SeedPhraseExportWebhookPayload {
|
|
|
859
867
|
*/
|
|
860
868
|
export interface TransactionBroadcastedWebhookPayload {
|
|
861
869
|
/**
|
|
862
|
-
* The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum
|
|
870
|
+
* The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
|
|
871
|
+
* mainnet).
|
|
863
872
|
*/
|
|
864
873
|
caip2: string;
|
|
865
874
|
|
|
@@ -895,7 +904,8 @@ export interface TransactionBroadcastedWebhookPayload {
|
|
|
895
904
|
*/
|
|
896
905
|
export interface TransactionConfirmedWebhookPayload {
|
|
897
906
|
/**
|
|
898
|
-
* The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum
|
|
907
|
+
* The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
|
|
908
|
+
* mainnet).
|
|
899
909
|
*/
|
|
900
910
|
caip2: string;
|
|
901
911
|
|
|
@@ -931,7 +941,8 @@ export interface TransactionConfirmedWebhookPayload {
|
|
|
931
941
|
*/
|
|
932
942
|
export interface TransactionExecutionRevertedWebhookPayload {
|
|
933
943
|
/**
|
|
934
|
-
* The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum
|
|
944
|
+
* The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
|
|
945
|
+
* mainnet).
|
|
935
946
|
*/
|
|
936
947
|
caip2: string;
|
|
937
948
|
|
|
@@ -967,7 +978,8 @@ export interface TransactionExecutionRevertedWebhookPayload {
|
|
|
967
978
|
*/
|
|
968
979
|
export interface TransactionFailedWebhookPayload {
|
|
969
980
|
/**
|
|
970
|
-
* The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum
|
|
981
|
+
* The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
|
|
982
|
+
* mainnet).
|
|
971
983
|
*/
|
|
972
984
|
caip2: string;
|
|
973
985
|
|
|
@@ -1003,7 +1015,8 @@ export interface TransactionFailedWebhookPayload {
|
|
|
1003
1015
|
*/
|
|
1004
1016
|
export interface TransactionProviderErrorWebhookPayload {
|
|
1005
1017
|
/**
|
|
1006
|
-
* The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum
|
|
1018
|
+
* The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
|
|
1019
|
+
* mainnet).
|
|
1007
1020
|
*/
|
|
1008
1021
|
caip2: string;
|
|
1009
1022
|
|
|
@@ -1039,7 +1052,8 @@ export interface TransactionProviderErrorWebhookPayload {
|
|
|
1039
1052
|
*/
|
|
1040
1053
|
export interface TransactionReplacedWebhookPayload {
|
|
1041
1054
|
/**
|
|
1042
|
-
* The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum
|
|
1055
|
+
* The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
|
|
1056
|
+
* mainnet).
|
|
1043
1057
|
*/
|
|
1044
1058
|
caip2: string;
|
|
1045
1059
|
|
|
@@ -1075,7 +1089,8 @@ export interface TransactionReplacedWebhookPayload {
|
|
|
1075
1089
|
*/
|
|
1076
1090
|
export interface TransactionStillPendingWebhookPayload {
|
|
1077
1091
|
/**
|
|
1078
|
-
* The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum
|
|
1092
|
+
* The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
|
|
1093
|
+
* mainnet).
|
|
1079
1094
|
*/
|
|
1080
1095
|
caip2: string;
|
|
1081
1096
|
|
|
@@ -1300,7 +1315,7 @@ export interface WalletActionEarnDepositCreatedWebhookPayload {
|
|
|
1300
1315
|
/**
|
|
1301
1316
|
* Type of wallet action
|
|
1302
1317
|
*/
|
|
1303
|
-
action_type:
|
|
1318
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1304
1319
|
|
|
1305
1320
|
/**
|
|
1306
1321
|
* Underlying asset token address.
|
|
@@ -1378,7 +1393,7 @@ export interface WalletActionEarnDepositFailedWebhookPayload {
|
|
|
1378
1393
|
/**
|
|
1379
1394
|
* Type of wallet action
|
|
1380
1395
|
*/
|
|
1381
|
-
action_type:
|
|
1396
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1382
1397
|
|
|
1383
1398
|
/**
|
|
1384
1399
|
* Underlying asset token address.
|
|
@@ -1403,7 +1418,7 @@ export interface WalletActionEarnDepositFailedWebhookPayload {
|
|
|
1403
1418
|
/**
|
|
1404
1419
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1405
1420
|
*/
|
|
1406
|
-
failure_reason:
|
|
1421
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1407
1422
|
|
|
1408
1423
|
/**
|
|
1409
1424
|
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
@@ -1419,7 +1434,7 @@ export interface WalletActionEarnDepositFailedWebhookPayload {
|
|
|
1419
1434
|
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1420
1435
|
* the failing step will have a failure_reason.
|
|
1421
1436
|
*/
|
|
1422
|
-
steps: Array<
|
|
1437
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1423
1438
|
|
|
1424
1439
|
/**
|
|
1425
1440
|
* The type of webhook event.
|
|
@@ -1472,7 +1487,7 @@ export interface WalletActionEarnDepositRejectedWebhookPayload {
|
|
|
1472
1487
|
/**
|
|
1473
1488
|
* Type of wallet action
|
|
1474
1489
|
*/
|
|
1475
|
-
action_type:
|
|
1490
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1476
1491
|
|
|
1477
1492
|
/**
|
|
1478
1493
|
* Underlying asset token address.
|
|
@@ -1492,7 +1507,7 @@ export interface WalletActionEarnDepositRejectedWebhookPayload {
|
|
|
1492
1507
|
/**
|
|
1493
1508
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1494
1509
|
*/
|
|
1495
|
-
failure_reason:
|
|
1510
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1496
1511
|
|
|
1497
1512
|
/**
|
|
1498
1513
|
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
@@ -1512,7 +1527,7 @@ export interface WalletActionEarnDepositRejectedWebhookPayload {
|
|
|
1512
1527
|
/**
|
|
1513
1528
|
* The steps of the wallet action at the time of rejection.
|
|
1514
1529
|
*/
|
|
1515
|
-
steps: Array<
|
|
1530
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1516
1531
|
|
|
1517
1532
|
/**
|
|
1518
1533
|
* The type of webhook event.
|
|
@@ -1565,7 +1580,7 @@ export interface WalletActionEarnDepositSucceededWebhookPayload {
|
|
|
1565
1580
|
/**
|
|
1566
1581
|
* Type of wallet action
|
|
1567
1582
|
*/
|
|
1568
|
-
action_type:
|
|
1583
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1569
1584
|
|
|
1570
1585
|
/**
|
|
1571
1586
|
* Underlying asset token address.
|
|
@@ -1605,7 +1620,7 @@ export interface WalletActionEarnDepositSucceededWebhookPayload {
|
|
|
1605
1620
|
/**
|
|
1606
1621
|
* The steps of the wallet action, including transaction hashes.
|
|
1607
1622
|
*/
|
|
1608
|
-
steps: Array<
|
|
1623
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1609
1624
|
|
|
1610
1625
|
/**
|
|
1611
1626
|
* The type of webhook event.
|
|
@@ -1651,6 +1666,359 @@ export interface WalletActionEarnDepositSucceededWebhookPayload {
|
|
|
1651
1666
|
decimals?: number;
|
|
1652
1667
|
}
|
|
1653
1668
|
|
|
1669
|
+
/**
|
|
1670
|
+
* Payload for the wallet_action.earn_fee_collect.created webhook event.
|
|
1671
|
+
*/
|
|
1672
|
+
export interface WalletActionEarnFeeCollectCreatedWebhookPayload {
|
|
1673
|
+
/**
|
|
1674
|
+
* Type of wallet action
|
|
1675
|
+
*/
|
|
1676
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1677
|
+
|
|
1678
|
+
/**
|
|
1679
|
+
* Underlying asset token address.
|
|
1680
|
+
*/
|
|
1681
|
+
asset_address: string;
|
|
1682
|
+
|
|
1683
|
+
/**
|
|
1684
|
+
* CAIP-2 chain identifier.
|
|
1685
|
+
*/
|
|
1686
|
+
caip2: string;
|
|
1687
|
+
|
|
1688
|
+
/**
|
|
1689
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1690
|
+
*/
|
|
1691
|
+
created_at: string;
|
|
1692
|
+
|
|
1693
|
+
/**
|
|
1694
|
+
* Base-unit amount of fees collected (e.g. "1500000").
|
|
1695
|
+
*/
|
|
1696
|
+
raw_amount: string;
|
|
1697
|
+
|
|
1698
|
+
/**
|
|
1699
|
+
* The status of the wallet action.
|
|
1700
|
+
*/
|
|
1701
|
+
status: 'pending';
|
|
1702
|
+
|
|
1703
|
+
/**
|
|
1704
|
+
* The type of webhook event.
|
|
1705
|
+
*/
|
|
1706
|
+
type: 'wallet_action.earn_fee_collect.created';
|
|
1707
|
+
|
|
1708
|
+
/**
|
|
1709
|
+
* ERC-4626 vault contract address.
|
|
1710
|
+
*/
|
|
1711
|
+
vault_address: string;
|
|
1712
|
+
|
|
1713
|
+
/**
|
|
1714
|
+
* The vault ID.
|
|
1715
|
+
*/
|
|
1716
|
+
vault_id: string;
|
|
1717
|
+
|
|
1718
|
+
/**
|
|
1719
|
+
* The ID of the wallet action.
|
|
1720
|
+
*/
|
|
1721
|
+
wallet_action_id: string;
|
|
1722
|
+
|
|
1723
|
+
/**
|
|
1724
|
+
* The ID of the wallet involved in the action.
|
|
1725
|
+
*/
|
|
1726
|
+
wallet_id: string;
|
|
1727
|
+
|
|
1728
|
+
/**
|
|
1729
|
+
* Human-readable decimal amount of fees collected (e.g. "1.5"). Only present when
|
|
1730
|
+
* the token is known in the asset registry.
|
|
1731
|
+
*/
|
|
1732
|
+
amount?: string;
|
|
1733
|
+
|
|
1734
|
+
/**
|
|
1735
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1736
|
+
* the asset registry.
|
|
1737
|
+
*/
|
|
1738
|
+
asset?: string;
|
|
1739
|
+
|
|
1740
|
+
/**
|
|
1741
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1742
|
+
* present when the token is known in the asset registry.
|
|
1743
|
+
*/
|
|
1744
|
+
decimals?: number;
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
/**
|
|
1748
|
+
* Payload for the wallet_action.earn_fee_collect.failed webhook event.
|
|
1749
|
+
*/
|
|
1750
|
+
export interface WalletActionEarnFeeCollectFailedWebhookPayload {
|
|
1751
|
+
/**
|
|
1752
|
+
* Type of wallet action
|
|
1753
|
+
*/
|
|
1754
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1755
|
+
|
|
1756
|
+
/**
|
|
1757
|
+
* Underlying asset token address.
|
|
1758
|
+
*/
|
|
1759
|
+
asset_address: string;
|
|
1760
|
+
|
|
1761
|
+
/**
|
|
1762
|
+
* CAIP-2 chain identifier.
|
|
1763
|
+
*/
|
|
1764
|
+
caip2: string;
|
|
1765
|
+
|
|
1766
|
+
/**
|
|
1767
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1768
|
+
*/
|
|
1769
|
+
created_at: string;
|
|
1770
|
+
|
|
1771
|
+
/**
|
|
1772
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
1773
|
+
*/
|
|
1774
|
+
failed_at: string;
|
|
1775
|
+
|
|
1776
|
+
/**
|
|
1777
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1778
|
+
*/
|
|
1779
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1780
|
+
|
|
1781
|
+
/**
|
|
1782
|
+
* Base-unit amount of fees collected (e.g. "1500000").
|
|
1783
|
+
*/
|
|
1784
|
+
raw_amount: string;
|
|
1785
|
+
|
|
1786
|
+
/**
|
|
1787
|
+
* The status of the wallet action.
|
|
1788
|
+
*/
|
|
1789
|
+
status: 'failed';
|
|
1790
|
+
|
|
1791
|
+
/**
|
|
1792
|
+
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1793
|
+
* the failing step will have a failure_reason.
|
|
1794
|
+
*/
|
|
1795
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1796
|
+
|
|
1797
|
+
/**
|
|
1798
|
+
* The type of webhook event.
|
|
1799
|
+
*/
|
|
1800
|
+
type: 'wallet_action.earn_fee_collect.failed';
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* ERC-4626 vault contract address.
|
|
1804
|
+
*/
|
|
1805
|
+
vault_address: string;
|
|
1806
|
+
|
|
1807
|
+
/**
|
|
1808
|
+
* The vault ID.
|
|
1809
|
+
*/
|
|
1810
|
+
vault_id: string;
|
|
1811
|
+
|
|
1812
|
+
/**
|
|
1813
|
+
* The ID of the wallet action.
|
|
1814
|
+
*/
|
|
1815
|
+
wallet_action_id: string;
|
|
1816
|
+
|
|
1817
|
+
/**
|
|
1818
|
+
* The ID of the wallet involved in the action.
|
|
1819
|
+
*/
|
|
1820
|
+
wallet_id: string;
|
|
1821
|
+
|
|
1822
|
+
/**
|
|
1823
|
+
* Human-readable decimal amount of fees collected (e.g. "1.5"). Only present when
|
|
1824
|
+
* the token is known in the asset registry.
|
|
1825
|
+
*/
|
|
1826
|
+
amount?: string;
|
|
1827
|
+
|
|
1828
|
+
/**
|
|
1829
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1830
|
+
* the asset registry.
|
|
1831
|
+
*/
|
|
1832
|
+
asset?: string;
|
|
1833
|
+
|
|
1834
|
+
/**
|
|
1835
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1836
|
+
* present when the token is known in the asset registry.
|
|
1837
|
+
*/
|
|
1838
|
+
decimals?: number;
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* Payload for the wallet_action.earn_fee_collect.rejected webhook event.
|
|
1843
|
+
*/
|
|
1844
|
+
export interface WalletActionEarnFeeCollectRejectedWebhookPayload {
|
|
1845
|
+
/**
|
|
1846
|
+
* Type of wallet action
|
|
1847
|
+
*/
|
|
1848
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1849
|
+
|
|
1850
|
+
/**
|
|
1851
|
+
* Underlying asset token address.
|
|
1852
|
+
*/
|
|
1853
|
+
asset_address: string;
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* CAIP-2 chain identifier.
|
|
1857
|
+
*/
|
|
1858
|
+
caip2: string;
|
|
1859
|
+
|
|
1860
|
+
/**
|
|
1861
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1862
|
+
*/
|
|
1863
|
+
created_at: string;
|
|
1864
|
+
|
|
1865
|
+
/**
|
|
1866
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1867
|
+
*/
|
|
1868
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1869
|
+
|
|
1870
|
+
/**
|
|
1871
|
+
* Base-unit amount of fees collected (e.g. "1500000").
|
|
1872
|
+
*/
|
|
1873
|
+
raw_amount: string;
|
|
1874
|
+
|
|
1875
|
+
/**
|
|
1876
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
1877
|
+
*/
|
|
1878
|
+
rejected_at: string;
|
|
1879
|
+
|
|
1880
|
+
/**
|
|
1881
|
+
* The status of the wallet action.
|
|
1882
|
+
*/
|
|
1883
|
+
status: 'rejected';
|
|
1884
|
+
|
|
1885
|
+
/**
|
|
1886
|
+
* The steps of the wallet action at the time of rejection.
|
|
1887
|
+
*/
|
|
1888
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1889
|
+
|
|
1890
|
+
/**
|
|
1891
|
+
* The type of webhook event.
|
|
1892
|
+
*/
|
|
1893
|
+
type: 'wallet_action.earn_fee_collect.rejected';
|
|
1894
|
+
|
|
1895
|
+
/**
|
|
1896
|
+
* ERC-4626 vault contract address.
|
|
1897
|
+
*/
|
|
1898
|
+
vault_address: string;
|
|
1899
|
+
|
|
1900
|
+
/**
|
|
1901
|
+
* The vault ID.
|
|
1902
|
+
*/
|
|
1903
|
+
vault_id: string;
|
|
1904
|
+
|
|
1905
|
+
/**
|
|
1906
|
+
* The ID of the wallet action.
|
|
1907
|
+
*/
|
|
1908
|
+
wallet_action_id: string;
|
|
1909
|
+
|
|
1910
|
+
/**
|
|
1911
|
+
* The ID of the wallet involved in the action.
|
|
1912
|
+
*/
|
|
1913
|
+
wallet_id: string;
|
|
1914
|
+
|
|
1915
|
+
/**
|
|
1916
|
+
* Human-readable decimal amount of fees collected (e.g. "1.5"). Only present when
|
|
1917
|
+
* the token is known in the asset registry.
|
|
1918
|
+
*/
|
|
1919
|
+
amount?: string;
|
|
1920
|
+
|
|
1921
|
+
/**
|
|
1922
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1923
|
+
* the asset registry.
|
|
1924
|
+
*/
|
|
1925
|
+
asset?: string;
|
|
1926
|
+
|
|
1927
|
+
/**
|
|
1928
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1929
|
+
* present when the token is known in the asset registry.
|
|
1930
|
+
*/
|
|
1931
|
+
decimals?: number;
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
/**
|
|
1935
|
+
* Payload for the wallet_action.earn_fee_collect.succeeded webhook event.
|
|
1936
|
+
*/
|
|
1937
|
+
export interface WalletActionEarnFeeCollectSucceededWebhookPayload {
|
|
1938
|
+
/**
|
|
1939
|
+
* Type of wallet action
|
|
1940
|
+
*/
|
|
1941
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1942
|
+
|
|
1943
|
+
/**
|
|
1944
|
+
* Underlying asset token address.
|
|
1945
|
+
*/
|
|
1946
|
+
asset_address: string;
|
|
1947
|
+
|
|
1948
|
+
/**
|
|
1949
|
+
* CAIP-2 chain identifier.
|
|
1950
|
+
*/
|
|
1951
|
+
caip2: string;
|
|
1952
|
+
|
|
1953
|
+
/**
|
|
1954
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
1955
|
+
*/
|
|
1956
|
+
completed_at: string;
|
|
1957
|
+
|
|
1958
|
+
/**
|
|
1959
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1960
|
+
*/
|
|
1961
|
+
created_at: string;
|
|
1962
|
+
|
|
1963
|
+
/**
|
|
1964
|
+
* Base-unit amount of fees collected (e.g. "1500000").
|
|
1965
|
+
*/
|
|
1966
|
+
raw_amount: string;
|
|
1967
|
+
|
|
1968
|
+
/**
|
|
1969
|
+
* The status of the wallet action.
|
|
1970
|
+
*/
|
|
1971
|
+
status: 'succeeded';
|
|
1972
|
+
|
|
1973
|
+
/**
|
|
1974
|
+
* The steps of the wallet action, including transaction hashes.
|
|
1975
|
+
*/
|
|
1976
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1977
|
+
|
|
1978
|
+
/**
|
|
1979
|
+
* The type of webhook event.
|
|
1980
|
+
*/
|
|
1981
|
+
type: 'wallet_action.earn_fee_collect.succeeded';
|
|
1982
|
+
|
|
1983
|
+
/**
|
|
1984
|
+
* ERC-4626 vault contract address.
|
|
1985
|
+
*/
|
|
1986
|
+
vault_address: string;
|
|
1987
|
+
|
|
1988
|
+
/**
|
|
1989
|
+
* The vault ID.
|
|
1990
|
+
*/
|
|
1991
|
+
vault_id: string;
|
|
1992
|
+
|
|
1993
|
+
/**
|
|
1994
|
+
* The ID of the wallet action.
|
|
1995
|
+
*/
|
|
1996
|
+
wallet_action_id: string;
|
|
1997
|
+
|
|
1998
|
+
/**
|
|
1999
|
+
* The ID of the wallet involved in the action.
|
|
2000
|
+
*/
|
|
2001
|
+
wallet_id: string;
|
|
2002
|
+
|
|
2003
|
+
/**
|
|
2004
|
+
* Human-readable decimal amount of fees collected (e.g. "1.5"). Only present when
|
|
2005
|
+
* the token is known in the asset registry.
|
|
2006
|
+
*/
|
|
2007
|
+
amount?: string;
|
|
2008
|
+
|
|
2009
|
+
/**
|
|
2010
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
2011
|
+
* the asset registry.
|
|
2012
|
+
*/
|
|
2013
|
+
asset?: string;
|
|
2014
|
+
|
|
2015
|
+
/**
|
|
2016
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
2017
|
+
* present when the token is known in the asset registry.
|
|
2018
|
+
*/
|
|
2019
|
+
decimals?: number;
|
|
2020
|
+
}
|
|
2021
|
+
|
|
1654
2022
|
/**
|
|
1655
2023
|
* Payload for the wallet_action.earn_incentive_claim.created webhook event.
|
|
1656
2024
|
*/
|
|
@@ -1658,10 +2026,10 @@ export interface WalletActionEarnIncentiveClaimCreatedWebhookPayload {
|
|
|
1658
2026
|
/**
|
|
1659
2027
|
* Type of wallet action
|
|
1660
2028
|
*/
|
|
1661
|
-
action_type:
|
|
2029
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1662
2030
|
|
|
1663
2031
|
/**
|
|
1664
|
-
* EVM chain name (e.g. "
|
|
2032
|
+
* EVM chain name (e.g. "tempo", "base").
|
|
1665
2033
|
*/
|
|
1666
2034
|
chain: string;
|
|
1667
2035
|
|
|
@@ -1673,7 +2041,7 @@ export interface WalletActionEarnIncentiveClaimCreatedWebhookPayload {
|
|
|
1673
2041
|
/**
|
|
1674
2042
|
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1675
2043
|
*/
|
|
1676
|
-
rewards: Array<
|
|
2044
|
+
rewards: Array<ActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
1677
2045
|
|
|
1678
2046
|
/**
|
|
1679
2047
|
* The status of the wallet action.
|
|
@@ -1703,10 +2071,10 @@ export interface WalletActionEarnIncentiveClaimFailedWebhookPayload {
|
|
|
1703
2071
|
/**
|
|
1704
2072
|
* Type of wallet action
|
|
1705
2073
|
*/
|
|
1706
|
-
action_type:
|
|
2074
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1707
2075
|
|
|
1708
2076
|
/**
|
|
1709
|
-
* EVM chain name (e.g. "
|
|
2077
|
+
* EVM chain name (e.g. "tempo", "base").
|
|
1710
2078
|
*/
|
|
1711
2079
|
chain: string;
|
|
1712
2080
|
|
|
@@ -1723,12 +2091,12 @@ export interface WalletActionEarnIncentiveClaimFailedWebhookPayload {
|
|
|
1723
2091
|
/**
|
|
1724
2092
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1725
2093
|
*/
|
|
1726
|
-
failure_reason:
|
|
2094
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1727
2095
|
|
|
1728
2096
|
/**
|
|
1729
2097
|
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1730
2098
|
*/
|
|
1731
|
-
rewards: Array<
|
|
2099
|
+
rewards: Array<ActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
1732
2100
|
|
|
1733
2101
|
/**
|
|
1734
2102
|
* The status of the wallet action.
|
|
@@ -1739,7 +2107,7 @@ export interface WalletActionEarnIncentiveClaimFailedWebhookPayload {
|
|
|
1739
2107
|
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1740
2108
|
* the failing step will have a failure_reason.
|
|
1741
2109
|
*/
|
|
1742
|
-
steps: Array<
|
|
2110
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1743
2111
|
|
|
1744
2112
|
/**
|
|
1745
2113
|
* The type of webhook event.
|
|
@@ -1764,10 +2132,10 @@ export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
|
|
|
1764
2132
|
/**
|
|
1765
2133
|
* Type of wallet action
|
|
1766
2134
|
*/
|
|
1767
|
-
action_type:
|
|
2135
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1768
2136
|
|
|
1769
2137
|
/**
|
|
1770
|
-
* EVM chain name (e.g. "
|
|
2138
|
+
* EVM chain name (e.g. "tempo", "base").
|
|
1771
2139
|
*/
|
|
1772
2140
|
chain: string;
|
|
1773
2141
|
|
|
@@ -1779,7 +2147,7 @@ export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
|
|
|
1779
2147
|
/**
|
|
1780
2148
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1781
2149
|
*/
|
|
1782
|
-
failure_reason:
|
|
2150
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1783
2151
|
|
|
1784
2152
|
/**
|
|
1785
2153
|
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
@@ -1789,7 +2157,7 @@ export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
|
|
|
1789
2157
|
/**
|
|
1790
2158
|
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1791
2159
|
*/
|
|
1792
|
-
rewards: Array<
|
|
2160
|
+
rewards: Array<ActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
1793
2161
|
|
|
1794
2162
|
/**
|
|
1795
2163
|
* The status of the wallet action.
|
|
@@ -1799,7 +2167,7 @@ export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
|
|
|
1799
2167
|
/**
|
|
1800
2168
|
* The steps of the wallet action at the time of rejection.
|
|
1801
2169
|
*/
|
|
1802
|
-
steps: Array<
|
|
2170
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1803
2171
|
|
|
1804
2172
|
/**
|
|
1805
2173
|
* The type of webhook event.
|
|
@@ -1824,10 +2192,10 @@ export interface WalletActionEarnIncentiveClaimSucceededWebhookPayload {
|
|
|
1824
2192
|
/**
|
|
1825
2193
|
* Type of wallet action
|
|
1826
2194
|
*/
|
|
1827
|
-
action_type:
|
|
2195
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1828
2196
|
|
|
1829
2197
|
/**
|
|
1830
|
-
* EVM chain name (e.g. "
|
|
2198
|
+
* EVM chain name (e.g. "tempo", "base").
|
|
1831
2199
|
*/
|
|
1832
2200
|
chain: string;
|
|
1833
2201
|
|
|
@@ -1844,7 +2212,7 @@ export interface WalletActionEarnIncentiveClaimSucceededWebhookPayload {
|
|
|
1844
2212
|
/**
|
|
1845
2213
|
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1846
2214
|
*/
|
|
1847
|
-
rewards: Array<
|
|
2215
|
+
rewards: Array<ActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
1848
2216
|
|
|
1849
2217
|
/**
|
|
1850
2218
|
* The status of the wallet action.
|
|
@@ -1854,7 +2222,7 @@ export interface WalletActionEarnIncentiveClaimSucceededWebhookPayload {
|
|
|
1854
2222
|
/**
|
|
1855
2223
|
* The steps of the wallet action, including transaction hashes.
|
|
1856
2224
|
*/
|
|
1857
|
-
steps: Array<
|
|
2225
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1858
2226
|
|
|
1859
2227
|
/**
|
|
1860
2228
|
* The type of webhook event.
|
|
@@ -1879,7 +2247,7 @@ export interface WalletActionEarnWithdrawCreatedWebhookPayload {
|
|
|
1879
2247
|
/**
|
|
1880
2248
|
* Type of wallet action
|
|
1881
2249
|
*/
|
|
1882
|
-
action_type:
|
|
2250
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1883
2251
|
|
|
1884
2252
|
/**
|
|
1885
2253
|
* Underlying asset token address.
|
|
@@ -1957,7 +2325,7 @@ export interface WalletActionEarnWithdrawFailedWebhookPayload {
|
|
|
1957
2325
|
/**
|
|
1958
2326
|
* Type of wallet action
|
|
1959
2327
|
*/
|
|
1960
|
-
action_type:
|
|
2328
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1961
2329
|
|
|
1962
2330
|
/**
|
|
1963
2331
|
* Underlying asset token address.
|
|
@@ -1982,7 +2350,7 @@ export interface WalletActionEarnWithdrawFailedWebhookPayload {
|
|
|
1982
2350
|
/**
|
|
1983
2351
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1984
2352
|
*/
|
|
1985
|
-
failure_reason:
|
|
2353
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1986
2354
|
|
|
1987
2355
|
/**
|
|
1988
2356
|
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
@@ -1998,7 +2366,7 @@ export interface WalletActionEarnWithdrawFailedWebhookPayload {
|
|
|
1998
2366
|
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1999
2367
|
* the failing step will have a failure_reason.
|
|
2000
2368
|
*/
|
|
2001
|
-
steps: Array<
|
|
2369
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2002
2370
|
|
|
2003
2371
|
/**
|
|
2004
2372
|
* The type of webhook event.
|
|
@@ -2051,7 +2419,7 @@ export interface WalletActionEarnWithdrawRejectedWebhookPayload {
|
|
|
2051
2419
|
/**
|
|
2052
2420
|
* Type of wallet action
|
|
2053
2421
|
*/
|
|
2054
|
-
action_type:
|
|
2422
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2055
2423
|
|
|
2056
2424
|
/**
|
|
2057
2425
|
* Underlying asset token address.
|
|
@@ -2071,7 +2439,7 @@ export interface WalletActionEarnWithdrawRejectedWebhookPayload {
|
|
|
2071
2439
|
/**
|
|
2072
2440
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
2073
2441
|
*/
|
|
2074
|
-
failure_reason:
|
|
2442
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
2075
2443
|
|
|
2076
2444
|
/**
|
|
2077
2445
|
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
@@ -2091,7 +2459,7 @@ export interface WalletActionEarnWithdrawRejectedWebhookPayload {
|
|
|
2091
2459
|
/**
|
|
2092
2460
|
* The steps of the wallet action at the time of rejection.
|
|
2093
2461
|
*/
|
|
2094
|
-
steps: Array<
|
|
2462
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2095
2463
|
|
|
2096
2464
|
/**
|
|
2097
2465
|
* The type of webhook event.
|
|
@@ -2144,7 +2512,7 @@ export interface WalletActionEarnWithdrawSucceededWebhookPayload {
|
|
|
2144
2512
|
/**
|
|
2145
2513
|
* Type of wallet action
|
|
2146
2514
|
*/
|
|
2147
|
-
action_type:
|
|
2515
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2148
2516
|
|
|
2149
2517
|
/**
|
|
2150
2518
|
* Underlying asset token address.
|
|
@@ -2184,7 +2552,7 @@ export interface WalletActionEarnWithdrawSucceededWebhookPayload {
|
|
|
2184
2552
|
/**
|
|
2185
2553
|
* The steps of the wallet action, including transaction hashes.
|
|
2186
2554
|
*/
|
|
2187
|
-
steps: Array<
|
|
2555
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2188
2556
|
|
|
2189
2557
|
/**
|
|
2190
2558
|
* The type of webhook event.
|
|
@@ -2237,7 +2605,7 @@ export interface WalletActionSwapCreatedWebhookPayload {
|
|
|
2237
2605
|
/**
|
|
2238
2606
|
* Type of wallet action
|
|
2239
2607
|
*/
|
|
2240
|
-
action_type:
|
|
2608
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2241
2609
|
|
|
2242
2610
|
/**
|
|
2243
2611
|
* Chain identifier.
|
|
@@ -2292,7 +2660,7 @@ export interface WalletActionSwapFailedWebhookPayload {
|
|
|
2292
2660
|
/**
|
|
2293
2661
|
* Type of wallet action
|
|
2294
2662
|
*/
|
|
2295
|
-
action_type:
|
|
2663
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2296
2664
|
|
|
2297
2665
|
/**
|
|
2298
2666
|
* Chain identifier.
|
|
@@ -2312,7 +2680,7 @@ export interface WalletActionSwapFailedWebhookPayload {
|
|
|
2312
2680
|
/**
|
|
2313
2681
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
2314
2682
|
*/
|
|
2315
|
-
failure_reason:
|
|
2683
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
2316
2684
|
|
|
2317
2685
|
/**
|
|
2318
2686
|
* Amount of input token in base units. Populated after onchain confirmation.
|
|
@@ -2338,7 +2706,7 @@ export interface WalletActionSwapFailedWebhookPayload {
|
|
|
2338
2706
|
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
2339
2707
|
* the failing step will have a failure_reason.
|
|
2340
2708
|
*/
|
|
2341
|
-
steps: Array<
|
|
2709
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2342
2710
|
|
|
2343
2711
|
/**
|
|
2344
2712
|
* The type of webhook event.
|
|
@@ -2363,7 +2731,7 @@ export interface WalletActionSwapRejectedWebhookPayload {
|
|
|
2363
2731
|
/**
|
|
2364
2732
|
* Type of wallet action
|
|
2365
2733
|
*/
|
|
2366
|
-
action_type:
|
|
2734
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2367
2735
|
|
|
2368
2736
|
/**
|
|
2369
2737
|
* Chain identifier.
|
|
@@ -2378,7 +2746,7 @@ export interface WalletActionSwapRejectedWebhookPayload {
|
|
|
2378
2746
|
/**
|
|
2379
2747
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
2380
2748
|
*/
|
|
2381
|
-
failure_reason:
|
|
2749
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
2382
2750
|
|
|
2383
2751
|
/**
|
|
2384
2752
|
* Amount of input token in base units. Populated after onchain confirmation.
|
|
@@ -2408,7 +2776,7 @@ export interface WalletActionSwapRejectedWebhookPayload {
|
|
|
2408
2776
|
/**
|
|
2409
2777
|
* The steps of the wallet action at the time of rejection.
|
|
2410
2778
|
*/
|
|
2411
|
-
steps: Array<
|
|
2779
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2412
2780
|
|
|
2413
2781
|
/**
|
|
2414
2782
|
* The type of webhook event.
|
|
@@ -2433,7 +2801,7 @@ export interface WalletActionSwapSucceededWebhookPayload {
|
|
|
2433
2801
|
/**
|
|
2434
2802
|
* Type of wallet action
|
|
2435
2803
|
*/
|
|
2436
|
-
action_type:
|
|
2804
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2437
2805
|
|
|
2438
2806
|
/**
|
|
2439
2807
|
* Chain identifier.
|
|
@@ -2479,7 +2847,7 @@ export interface WalletActionSwapSucceededWebhookPayload {
|
|
|
2479
2847
|
/**
|
|
2480
2848
|
* The steps of the wallet action, including transaction hashes.
|
|
2481
2849
|
*/
|
|
2482
|
-
steps: Array<
|
|
2850
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2483
2851
|
|
|
2484
2852
|
/**
|
|
2485
2853
|
* The type of webhook event.
|
|
@@ -2504,7 +2872,7 @@ export interface WalletActionTransferCreatedWebhookPayload {
|
|
|
2504
2872
|
/**
|
|
2505
2873
|
* Type of wallet action
|
|
2506
2874
|
*/
|
|
2507
|
-
action_type:
|
|
2875
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2508
2876
|
|
|
2509
2877
|
/**
|
|
2510
2878
|
* ISO 8601 timestamp of when the wallet action was created.
|
|
@@ -2517,7 +2885,7 @@ export interface WalletActionTransferCreatedWebhookPayload {
|
|
|
2517
2885
|
destination_address: string;
|
|
2518
2886
|
|
|
2519
2887
|
/**
|
|
2520
|
-
* Chain name (e.g. "
|
|
2888
|
+
* Chain name (e.g. "tempo", "base").
|
|
2521
2889
|
*/
|
|
2522
2890
|
source_chain: string;
|
|
2523
2891
|
|
|
@@ -2573,7 +2941,7 @@ export interface WalletActionTransferFailedWebhookPayload {
|
|
|
2573
2941
|
/**
|
|
2574
2942
|
* Type of wallet action
|
|
2575
2943
|
*/
|
|
2576
|
-
action_type:
|
|
2944
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2577
2945
|
|
|
2578
2946
|
/**
|
|
2579
2947
|
* ISO 8601 timestamp of when the wallet action was created.
|
|
@@ -2593,10 +2961,10 @@ export interface WalletActionTransferFailedWebhookPayload {
|
|
|
2593
2961
|
/**
|
|
2594
2962
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
2595
2963
|
*/
|
|
2596
|
-
failure_reason:
|
|
2964
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
2597
2965
|
|
|
2598
2966
|
/**
|
|
2599
|
-
* Chain name (e.g. "
|
|
2967
|
+
* Chain name (e.g. "tempo", "base").
|
|
2600
2968
|
*/
|
|
2601
2969
|
source_chain: string;
|
|
2602
2970
|
|
|
@@ -2609,7 +2977,7 @@ export interface WalletActionTransferFailedWebhookPayload {
|
|
|
2609
2977
|
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
2610
2978
|
* the failing step will have a failure_reason.
|
|
2611
2979
|
*/
|
|
2612
|
-
steps: Array<
|
|
2980
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2613
2981
|
|
|
2614
2982
|
/**
|
|
2615
2983
|
* The type of webhook event.
|
|
@@ -2658,7 +3026,7 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
2658
3026
|
/**
|
|
2659
3027
|
* Type of wallet action
|
|
2660
3028
|
*/
|
|
2661
|
-
action_type:
|
|
3029
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2662
3030
|
|
|
2663
3031
|
/**
|
|
2664
3032
|
* ISO 8601 timestamp of when the wallet action was created.
|
|
@@ -2673,7 +3041,7 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
2673
3041
|
/**
|
|
2674
3042
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
2675
3043
|
*/
|
|
2676
|
-
failure_reason:
|
|
3044
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
2677
3045
|
|
|
2678
3046
|
/**
|
|
2679
3047
|
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
@@ -2681,7 +3049,7 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
2681
3049
|
rejected_at: string;
|
|
2682
3050
|
|
|
2683
3051
|
/**
|
|
2684
|
-
* Chain name (e.g. "
|
|
3052
|
+
* Chain name (e.g. "tempo", "base").
|
|
2685
3053
|
*/
|
|
2686
3054
|
source_chain: string;
|
|
2687
3055
|
|
|
@@ -2693,7 +3061,7 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
2693
3061
|
/**
|
|
2694
3062
|
* The steps of the wallet action at the time of rejection.
|
|
2695
3063
|
*/
|
|
2696
|
-
steps: Array<
|
|
3064
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2697
3065
|
|
|
2698
3066
|
/**
|
|
2699
3067
|
* The type of webhook event.
|
|
@@ -2742,7 +3110,7 @@ export interface WalletActionTransferSucceededWebhookPayload {
|
|
|
2742
3110
|
/**
|
|
2743
3111
|
* Type of wallet action
|
|
2744
3112
|
*/
|
|
2745
|
-
action_type:
|
|
3113
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2746
3114
|
|
|
2747
3115
|
/**
|
|
2748
3116
|
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
@@ -2760,7 +3128,7 @@ export interface WalletActionTransferSucceededWebhookPayload {
|
|
|
2760
3128
|
destination_address: string;
|
|
2761
3129
|
|
|
2762
3130
|
/**
|
|
2763
|
-
* Chain name (e.g. "
|
|
3131
|
+
* Chain name (e.g. "tempo", "base").
|
|
2764
3132
|
*/
|
|
2765
3133
|
source_chain: string;
|
|
2766
3134
|
|
|
@@ -2772,7 +3140,7 @@ export interface WalletActionTransferSucceededWebhookPayload {
|
|
|
2772
3140
|
/**
|
|
2773
3141
|
* The steps of the wallet action, including transaction hashes.
|
|
2774
3142
|
*/
|
|
2775
|
-
steps: Array<
|
|
3143
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2776
3144
|
|
|
2777
3145
|
/**
|
|
2778
3146
|
* The type of webhook event.
|
|
@@ -2914,20 +3282,25 @@ export interface WalletRecoveredWebhookPayload {
|
|
|
2914
3282
|
wallet_id: string;
|
|
2915
3283
|
}
|
|
2916
3284
|
|
|
3285
|
+
/**
|
|
3286
|
+
* Recovery method types for embedded wallet recovery setup webhooks.
|
|
3287
|
+
*/
|
|
3288
|
+
export type WalletRecoverySetupMethod =
|
|
3289
|
+
| 'user_passcode_derived_recovery_key'
|
|
3290
|
+
| 'privy_passcode_derived_recovery_key'
|
|
3291
|
+
| 'privy_generated_recovery_key'
|
|
3292
|
+
| 'google_drive_recovery_secret'
|
|
3293
|
+
| 'icloud_recovery_secret'
|
|
3294
|
+
| 'recovery_encryption_key';
|
|
3295
|
+
|
|
2917
3296
|
/**
|
|
2918
3297
|
* Payload for the wallet.recovery_setup webhook event.
|
|
2919
3298
|
*/
|
|
2920
3299
|
export interface WalletRecoverySetupWebhookPayload {
|
|
2921
3300
|
/**
|
|
2922
|
-
*
|
|
3301
|
+
* Recovery method types for embedded wallet recovery setup webhooks.
|
|
2923
3302
|
*/
|
|
2924
|
-
method:
|
|
2925
|
-
| 'user_passcode_derived_recovery_key'
|
|
2926
|
-
| 'privy_passcode_derived_recovery_key'
|
|
2927
|
-
| 'privy_generated_recovery_key'
|
|
2928
|
-
| 'google_drive_recovery_secret'
|
|
2929
|
-
| 'icloud_recovery_secret'
|
|
2930
|
-
| 'recovery_encryption_key';
|
|
3303
|
+
method: WalletRecoverySetupMethod;
|
|
2931
3304
|
|
|
2932
3305
|
/**
|
|
2933
3306
|
* The type of webhook event.
|
|
@@ -3031,7 +3404,11 @@ export type WebhookPayload =
|
|
|
3031
3404
|
| WalletActionEarnIncentiveClaimCreatedWebhookPayload
|
|
3032
3405
|
| WalletActionEarnIncentiveClaimSucceededWebhookPayload
|
|
3033
3406
|
| WalletActionEarnIncentiveClaimRejectedWebhookPayload
|
|
3034
|
-
| WalletActionEarnIncentiveClaimFailedWebhookPayload
|
|
3407
|
+
| WalletActionEarnIncentiveClaimFailedWebhookPayload
|
|
3408
|
+
| WalletActionEarnFeeCollectCreatedWebhookPayload
|
|
3409
|
+
| WalletActionEarnFeeCollectSucceededWebhookPayload
|
|
3410
|
+
| WalletActionEarnFeeCollectRejectedWebhookPayload
|
|
3411
|
+
| WalletActionEarnFeeCollectFailedWebhookPayload;
|
|
3035
3412
|
|
|
3036
3413
|
/**
|
|
3037
3414
|
* Payload for the yield.claim.confirmed webhook event.
|
|
@@ -3159,6 +3536,10 @@ export declare namespace Webhooks {
|
|
|
3159
3536
|
type WalletActionEarnDepositFailedWebhookPayload as WalletActionEarnDepositFailedWebhookPayload,
|
|
3160
3537
|
type WalletActionEarnDepositRejectedWebhookPayload as WalletActionEarnDepositRejectedWebhookPayload,
|
|
3161
3538
|
type WalletActionEarnDepositSucceededWebhookPayload as WalletActionEarnDepositSucceededWebhookPayload,
|
|
3539
|
+
type WalletActionEarnFeeCollectCreatedWebhookPayload as WalletActionEarnFeeCollectCreatedWebhookPayload,
|
|
3540
|
+
type WalletActionEarnFeeCollectFailedWebhookPayload as WalletActionEarnFeeCollectFailedWebhookPayload,
|
|
3541
|
+
type WalletActionEarnFeeCollectRejectedWebhookPayload as WalletActionEarnFeeCollectRejectedWebhookPayload,
|
|
3542
|
+
type WalletActionEarnFeeCollectSucceededWebhookPayload as WalletActionEarnFeeCollectSucceededWebhookPayload,
|
|
3162
3543
|
type WalletActionEarnIncentiveClaimCreatedWebhookPayload as WalletActionEarnIncentiveClaimCreatedWebhookPayload,
|
|
3163
3544
|
type WalletActionEarnIncentiveClaimFailedWebhookPayload as WalletActionEarnIncentiveClaimFailedWebhookPayload,
|
|
3164
3545
|
type WalletActionEarnIncentiveClaimRejectedWebhookPayload as WalletActionEarnIncentiveClaimRejectedWebhookPayload,
|
|
@@ -3182,6 +3563,7 @@ export declare namespace Webhooks {
|
|
|
3182
3563
|
type WalletFundsSacAsset as WalletFundsSacAsset,
|
|
3183
3564
|
type WalletFundsSplAsset as WalletFundsSplAsset,
|
|
3184
3565
|
type WalletRecoveredWebhookPayload as WalletRecoveredWebhookPayload,
|
|
3566
|
+
type WalletRecoverySetupMethod as WalletRecoverySetupMethod,
|
|
3185
3567
|
type WalletRecoverySetupWebhookPayload as WalletRecoverySetupWebhookPayload,
|
|
3186
3568
|
type WalletRestoredWebhookPayload as WalletRestoredWebhookPayload,
|
|
3187
3569
|
type WebhookPayload as WebhookPayload,
|