@privy-io/api-types 0.16.0 → 0.17.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 +59 -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/client-auth.d.mts +12 -4
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +12 -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/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/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 +33 -7
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +33 -7
- package/resources/users.d.ts.map +1 -1
- package/resources/{wallet-actions.d.ts → wallets/actions.d.mts} +257 -55
- package/resources/wallets/actions.d.mts.map +1 -0
- package/resources/{wallet-actions.d.mts → wallets/actions.d.ts} +257 -55
- 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 +7 -4
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +7 -4
- 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 +261 -28
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +261 -28
- 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 +357 -56
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +357 -56
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/yield.d.mts +4 -3
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +4 -3
- 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 +84 -83
- package/src/resources/client-auth.ts +19 -3
- package/src/resources/embedded-wallets.ts +7 -0
- package/src/resources/index.ts +42 -40
- package/src/resources/kraken-embed.ts +439 -848
- package/src/resources/policies.ts +96 -36
- package/src/resources/transactions.ts +18 -9
- package/src/resources/users.ts +38 -6
- package/src/resources/{wallet-actions.ts → wallets/actions.ts} +318 -62
- package/src/resources/wallets/balance.ts +20 -62
- package/src/resources/wallets/index.ts +59 -0
- package/src/resources/wallets/transactions.ts +11 -10
- package/src/resources/wallets/wallets.ts +513 -66
- package/src/resources/webhooks.ts +436 -61
- package/src/resources/yield.ts +4 -11
- 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
|
/**
|
|
@@ -1300,7 +1308,7 @@ export interface WalletActionEarnDepositCreatedWebhookPayload {
|
|
|
1300
1308
|
/**
|
|
1301
1309
|
* Type of wallet action
|
|
1302
1310
|
*/
|
|
1303
|
-
action_type:
|
|
1311
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1304
1312
|
|
|
1305
1313
|
/**
|
|
1306
1314
|
* Underlying asset token address.
|
|
@@ -1378,7 +1386,7 @@ export interface WalletActionEarnDepositFailedWebhookPayload {
|
|
|
1378
1386
|
/**
|
|
1379
1387
|
* Type of wallet action
|
|
1380
1388
|
*/
|
|
1381
|
-
action_type:
|
|
1389
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1382
1390
|
|
|
1383
1391
|
/**
|
|
1384
1392
|
* Underlying asset token address.
|
|
@@ -1403,7 +1411,7 @@ export interface WalletActionEarnDepositFailedWebhookPayload {
|
|
|
1403
1411
|
/**
|
|
1404
1412
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1405
1413
|
*/
|
|
1406
|
-
failure_reason:
|
|
1414
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1407
1415
|
|
|
1408
1416
|
/**
|
|
1409
1417
|
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
@@ -1419,7 +1427,7 @@ export interface WalletActionEarnDepositFailedWebhookPayload {
|
|
|
1419
1427
|
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1420
1428
|
* the failing step will have a failure_reason.
|
|
1421
1429
|
*/
|
|
1422
|
-
steps: Array<
|
|
1430
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1423
1431
|
|
|
1424
1432
|
/**
|
|
1425
1433
|
* The type of webhook event.
|
|
@@ -1472,7 +1480,7 @@ export interface WalletActionEarnDepositRejectedWebhookPayload {
|
|
|
1472
1480
|
/**
|
|
1473
1481
|
* Type of wallet action
|
|
1474
1482
|
*/
|
|
1475
|
-
action_type:
|
|
1483
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1476
1484
|
|
|
1477
1485
|
/**
|
|
1478
1486
|
* Underlying asset token address.
|
|
@@ -1492,7 +1500,7 @@ export interface WalletActionEarnDepositRejectedWebhookPayload {
|
|
|
1492
1500
|
/**
|
|
1493
1501
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1494
1502
|
*/
|
|
1495
|
-
failure_reason:
|
|
1503
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1496
1504
|
|
|
1497
1505
|
/**
|
|
1498
1506
|
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
@@ -1512,7 +1520,7 @@ export interface WalletActionEarnDepositRejectedWebhookPayload {
|
|
|
1512
1520
|
/**
|
|
1513
1521
|
* The steps of the wallet action at the time of rejection.
|
|
1514
1522
|
*/
|
|
1515
|
-
steps: Array<
|
|
1523
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1516
1524
|
|
|
1517
1525
|
/**
|
|
1518
1526
|
* The type of webhook event.
|
|
@@ -1565,7 +1573,7 @@ export interface WalletActionEarnDepositSucceededWebhookPayload {
|
|
|
1565
1573
|
/**
|
|
1566
1574
|
* Type of wallet action
|
|
1567
1575
|
*/
|
|
1568
|
-
action_type:
|
|
1576
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1569
1577
|
|
|
1570
1578
|
/**
|
|
1571
1579
|
* Underlying asset token address.
|
|
@@ -1605,7 +1613,7 @@ export interface WalletActionEarnDepositSucceededWebhookPayload {
|
|
|
1605
1613
|
/**
|
|
1606
1614
|
* The steps of the wallet action, including transaction hashes.
|
|
1607
1615
|
*/
|
|
1608
|
-
steps: Array<
|
|
1616
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1609
1617
|
|
|
1610
1618
|
/**
|
|
1611
1619
|
* The type of webhook event.
|
|
@@ -1651,6 +1659,359 @@ export interface WalletActionEarnDepositSucceededWebhookPayload {
|
|
|
1651
1659
|
decimals?: number;
|
|
1652
1660
|
}
|
|
1653
1661
|
|
|
1662
|
+
/**
|
|
1663
|
+
* Payload for the wallet_action.earn_fee_collect.created webhook event.
|
|
1664
|
+
*/
|
|
1665
|
+
export interface WalletActionEarnFeeCollectCreatedWebhookPayload {
|
|
1666
|
+
/**
|
|
1667
|
+
* Type of wallet action
|
|
1668
|
+
*/
|
|
1669
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1670
|
+
|
|
1671
|
+
/**
|
|
1672
|
+
* Underlying asset token address.
|
|
1673
|
+
*/
|
|
1674
|
+
asset_address: string;
|
|
1675
|
+
|
|
1676
|
+
/**
|
|
1677
|
+
* CAIP-2 chain identifier.
|
|
1678
|
+
*/
|
|
1679
|
+
caip2: string;
|
|
1680
|
+
|
|
1681
|
+
/**
|
|
1682
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1683
|
+
*/
|
|
1684
|
+
created_at: string;
|
|
1685
|
+
|
|
1686
|
+
/**
|
|
1687
|
+
* Base-unit amount of fees collected (e.g. "1500000").
|
|
1688
|
+
*/
|
|
1689
|
+
raw_amount: string;
|
|
1690
|
+
|
|
1691
|
+
/**
|
|
1692
|
+
* The status of the wallet action.
|
|
1693
|
+
*/
|
|
1694
|
+
status: 'pending';
|
|
1695
|
+
|
|
1696
|
+
/**
|
|
1697
|
+
* The type of webhook event.
|
|
1698
|
+
*/
|
|
1699
|
+
type: 'wallet_action.earn_fee_collect.created';
|
|
1700
|
+
|
|
1701
|
+
/**
|
|
1702
|
+
* ERC-4626 vault contract address.
|
|
1703
|
+
*/
|
|
1704
|
+
vault_address: string;
|
|
1705
|
+
|
|
1706
|
+
/**
|
|
1707
|
+
* The vault ID.
|
|
1708
|
+
*/
|
|
1709
|
+
vault_id: string;
|
|
1710
|
+
|
|
1711
|
+
/**
|
|
1712
|
+
* The ID of the wallet action.
|
|
1713
|
+
*/
|
|
1714
|
+
wallet_action_id: string;
|
|
1715
|
+
|
|
1716
|
+
/**
|
|
1717
|
+
* The ID of the wallet involved in the action.
|
|
1718
|
+
*/
|
|
1719
|
+
wallet_id: string;
|
|
1720
|
+
|
|
1721
|
+
/**
|
|
1722
|
+
* Human-readable decimal amount of fees collected (e.g. "1.5"). Only present when
|
|
1723
|
+
* the token is known in the asset registry.
|
|
1724
|
+
*/
|
|
1725
|
+
amount?: string;
|
|
1726
|
+
|
|
1727
|
+
/**
|
|
1728
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1729
|
+
* the asset registry.
|
|
1730
|
+
*/
|
|
1731
|
+
asset?: string;
|
|
1732
|
+
|
|
1733
|
+
/**
|
|
1734
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1735
|
+
* present when the token is known in the asset registry.
|
|
1736
|
+
*/
|
|
1737
|
+
decimals?: number;
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
/**
|
|
1741
|
+
* Payload for the wallet_action.earn_fee_collect.failed webhook event.
|
|
1742
|
+
*/
|
|
1743
|
+
export interface WalletActionEarnFeeCollectFailedWebhookPayload {
|
|
1744
|
+
/**
|
|
1745
|
+
* Type of wallet action
|
|
1746
|
+
*/
|
|
1747
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1748
|
+
|
|
1749
|
+
/**
|
|
1750
|
+
* Underlying asset token address.
|
|
1751
|
+
*/
|
|
1752
|
+
asset_address: string;
|
|
1753
|
+
|
|
1754
|
+
/**
|
|
1755
|
+
* CAIP-2 chain identifier.
|
|
1756
|
+
*/
|
|
1757
|
+
caip2: string;
|
|
1758
|
+
|
|
1759
|
+
/**
|
|
1760
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1761
|
+
*/
|
|
1762
|
+
created_at: string;
|
|
1763
|
+
|
|
1764
|
+
/**
|
|
1765
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
1766
|
+
*/
|
|
1767
|
+
failed_at: string;
|
|
1768
|
+
|
|
1769
|
+
/**
|
|
1770
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1771
|
+
*/
|
|
1772
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1773
|
+
|
|
1774
|
+
/**
|
|
1775
|
+
* Base-unit amount of fees collected (e.g. "1500000").
|
|
1776
|
+
*/
|
|
1777
|
+
raw_amount: string;
|
|
1778
|
+
|
|
1779
|
+
/**
|
|
1780
|
+
* The status of the wallet action.
|
|
1781
|
+
*/
|
|
1782
|
+
status: 'failed';
|
|
1783
|
+
|
|
1784
|
+
/**
|
|
1785
|
+
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1786
|
+
* the failing step will have a failure_reason.
|
|
1787
|
+
*/
|
|
1788
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
* The type of webhook event.
|
|
1792
|
+
*/
|
|
1793
|
+
type: 'wallet_action.earn_fee_collect.failed';
|
|
1794
|
+
|
|
1795
|
+
/**
|
|
1796
|
+
* ERC-4626 vault contract address.
|
|
1797
|
+
*/
|
|
1798
|
+
vault_address: string;
|
|
1799
|
+
|
|
1800
|
+
/**
|
|
1801
|
+
* The vault ID.
|
|
1802
|
+
*/
|
|
1803
|
+
vault_id: string;
|
|
1804
|
+
|
|
1805
|
+
/**
|
|
1806
|
+
* The ID of the wallet action.
|
|
1807
|
+
*/
|
|
1808
|
+
wallet_action_id: string;
|
|
1809
|
+
|
|
1810
|
+
/**
|
|
1811
|
+
* The ID of the wallet involved in the action.
|
|
1812
|
+
*/
|
|
1813
|
+
wallet_id: string;
|
|
1814
|
+
|
|
1815
|
+
/**
|
|
1816
|
+
* Human-readable decimal amount of fees collected (e.g. "1.5"). Only present when
|
|
1817
|
+
* the token is known in the asset registry.
|
|
1818
|
+
*/
|
|
1819
|
+
amount?: string;
|
|
1820
|
+
|
|
1821
|
+
/**
|
|
1822
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1823
|
+
* the asset registry.
|
|
1824
|
+
*/
|
|
1825
|
+
asset?: string;
|
|
1826
|
+
|
|
1827
|
+
/**
|
|
1828
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1829
|
+
* present when the token is known in the asset registry.
|
|
1830
|
+
*/
|
|
1831
|
+
decimals?: number;
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
/**
|
|
1835
|
+
* Payload for the wallet_action.earn_fee_collect.rejected webhook event.
|
|
1836
|
+
*/
|
|
1837
|
+
export interface WalletActionEarnFeeCollectRejectedWebhookPayload {
|
|
1838
|
+
/**
|
|
1839
|
+
* Type of wallet action
|
|
1840
|
+
*/
|
|
1841
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1842
|
+
|
|
1843
|
+
/**
|
|
1844
|
+
* Underlying asset token address.
|
|
1845
|
+
*/
|
|
1846
|
+
asset_address: string;
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* CAIP-2 chain identifier.
|
|
1850
|
+
*/
|
|
1851
|
+
caip2: string;
|
|
1852
|
+
|
|
1853
|
+
/**
|
|
1854
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1855
|
+
*/
|
|
1856
|
+
created_at: string;
|
|
1857
|
+
|
|
1858
|
+
/**
|
|
1859
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1860
|
+
*/
|
|
1861
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1862
|
+
|
|
1863
|
+
/**
|
|
1864
|
+
* Base-unit amount of fees collected (e.g. "1500000").
|
|
1865
|
+
*/
|
|
1866
|
+
raw_amount: string;
|
|
1867
|
+
|
|
1868
|
+
/**
|
|
1869
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
1870
|
+
*/
|
|
1871
|
+
rejected_at: string;
|
|
1872
|
+
|
|
1873
|
+
/**
|
|
1874
|
+
* The status of the wallet action.
|
|
1875
|
+
*/
|
|
1876
|
+
status: 'rejected';
|
|
1877
|
+
|
|
1878
|
+
/**
|
|
1879
|
+
* The steps of the wallet action at the time of rejection.
|
|
1880
|
+
*/
|
|
1881
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1882
|
+
|
|
1883
|
+
/**
|
|
1884
|
+
* The type of webhook event.
|
|
1885
|
+
*/
|
|
1886
|
+
type: 'wallet_action.earn_fee_collect.rejected';
|
|
1887
|
+
|
|
1888
|
+
/**
|
|
1889
|
+
* ERC-4626 vault contract address.
|
|
1890
|
+
*/
|
|
1891
|
+
vault_address: string;
|
|
1892
|
+
|
|
1893
|
+
/**
|
|
1894
|
+
* The vault ID.
|
|
1895
|
+
*/
|
|
1896
|
+
vault_id: string;
|
|
1897
|
+
|
|
1898
|
+
/**
|
|
1899
|
+
* The ID of the wallet action.
|
|
1900
|
+
*/
|
|
1901
|
+
wallet_action_id: string;
|
|
1902
|
+
|
|
1903
|
+
/**
|
|
1904
|
+
* The ID of the wallet involved in the action.
|
|
1905
|
+
*/
|
|
1906
|
+
wallet_id: string;
|
|
1907
|
+
|
|
1908
|
+
/**
|
|
1909
|
+
* Human-readable decimal amount of fees collected (e.g. "1.5"). Only present when
|
|
1910
|
+
* the token is known in the asset registry.
|
|
1911
|
+
*/
|
|
1912
|
+
amount?: string;
|
|
1913
|
+
|
|
1914
|
+
/**
|
|
1915
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1916
|
+
* the asset registry.
|
|
1917
|
+
*/
|
|
1918
|
+
asset?: string;
|
|
1919
|
+
|
|
1920
|
+
/**
|
|
1921
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1922
|
+
* present when the token is known in the asset registry.
|
|
1923
|
+
*/
|
|
1924
|
+
decimals?: number;
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
/**
|
|
1928
|
+
* Payload for the wallet_action.earn_fee_collect.succeeded webhook event.
|
|
1929
|
+
*/
|
|
1930
|
+
export interface WalletActionEarnFeeCollectSucceededWebhookPayload {
|
|
1931
|
+
/**
|
|
1932
|
+
* Type of wallet action
|
|
1933
|
+
*/
|
|
1934
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1935
|
+
|
|
1936
|
+
/**
|
|
1937
|
+
* Underlying asset token address.
|
|
1938
|
+
*/
|
|
1939
|
+
asset_address: string;
|
|
1940
|
+
|
|
1941
|
+
/**
|
|
1942
|
+
* CAIP-2 chain identifier.
|
|
1943
|
+
*/
|
|
1944
|
+
caip2: string;
|
|
1945
|
+
|
|
1946
|
+
/**
|
|
1947
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
1948
|
+
*/
|
|
1949
|
+
completed_at: string;
|
|
1950
|
+
|
|
1951
|
+
/**
|
|
1952
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1953
|
+
*/
|
|
1954
|
+
created_at: string;
|
|
1955
|
+
|
|
1956
|
+
/**
|
|
1957
|
+
* Base-unit amount of fees collected (e.g. "1500000").
|
|
1958
|
+
*/
|
|
1959
|
+
raw_amount: string;
|
|
1960
|
+
|
|
1961
|
+
/**
|
|
1962
|
+
* The status of the wallet action.
|
|
1963
|
+
*/
|
|
1964
|
+
status: 'succeeded';
|
|
1965
|
+
|
|
1966
|
+
/**
|
|
1967
|
+
* The steps of the wallet action, including transaction hashes.
|
|
1968
|
+
*/
|
|
1969
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1970
|
+
|
|
1971
|
+
/**
|
|
1972
|
+
* The type of webhook event.
|
|
1973
|
+
*/
|
|
1974
|
+
type: 'wallet_action.earn_fee_collect.succeeded';
|
|
1975
|
+
|
|
1976
|
+
/**
|
|
1977
|
+
* ERC-4626 vault contract address.
|
|
1978
|
+
*/
|
|
1979
|
+
vault_address: string;
|
|
1980
|
+
|
|
1981
|
+
/**
|
|
1982
|
+
* The vault ID.
|
|
1983
|
+
*/
|
|
1984
|
+
vault_id: string;
|
|
1985
|
+
|
|
1986
|
+
/**
|
|
1987
|
+
* The ID of the wallet action.
|
|
1988
|
+
*/
|
|
1989
|
+
wallet_action_id: string;
|
|
1990
|
+
|
|
1991
|
+
/**
|
|
1992
|
+
* The ID of the wallet involved in the action.
|
|
1993
|
+
*/
|
|
1994
|
+
wallet_id: string;
|
|
1995
|
+
|
|
1996
|
+
/**
|
|
1997
|
+
* Human-readable decimal amount of fees collected (e.g. "1.5"). Only present when
|
|
1998
|
+
* the token is known in the asset registry.
|
|
1999
|
+
*/
|
|
2000
|
+
amount?: string;
|
|
2001
|
+
|
|
2002
|
+
/**
|
|
2003
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
2004
|
+
* the asset registry.
|
|
2005
|
+
*/
|
|
2006
|
+
asset?: string;
|
|
2007
|
+
|
|
2008
|
+
/**
|
|
2009
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
2010
|
+
* present when the token is known in the asset registry.
|
|
2011
|
+
*/
|
|
2012
|
+
decimals?: number;
|
|
2013
|
+
}
|
|
2014
|
+
|
|
1654
2015
|
/**
|
|
1655
2016
|
* Payload for the wallet_action.earn_incentive_claim.created webhook event.
|
|
1656
2017
|
*/
|
|
@@ -1658,7 +2019,7 @@ export interface WalletActionEarnIncentiveClaimCreatedWebhookPayload {
|
|
|
1658
2019
|
/**
|
|
1659
2020
|
* Type of wallet action
|
|
1660
2021
|
*/
|
|
1661
|
-
action_type:
|
|
2022
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1662
2023
|
|
|
1663
2024
|
/**
|
|
1664
2025
|
* EVM chain name (e.g. "base", "ethereum").
|
|
@@ -1673,7 +2034,7 @@ export interface WalletActionEarnIncentiveClaimCreatedWebhookPayload {
|
|
|
1673
2034
|
/**
|
|
1674
2035
|
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1675
2036
|
*/
|
|
1676
|
-
rewards: Array<
|
|
2037
|
+
rewards: Array<ActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
1677
2038
|
|
|
1678
2039
|
/**
|
|
1679
2040
|
* The status of the wallet action.
|
|
@@ -1703,7 +2064,7 @@ export interface WalletActionEarnIncentiveClaimFailedWebhookPayload {
|
|
|
1703
2064
|
/**
|
|
1704
2065
|
* Type of wallet action
|
|
1705
2066
|
*/
|
|
1706
|
-
action_type:
|
|
2067
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1707
2068
|
|
|
1708
2069
|
/**
|
|
1709
2070
|
* EVM chain name (e.g. "base", "ethereum").
|
|
@@ -1723,12 +2084,12 @@ export interface WalletActionEarnIncentiveClaimFailedWebhookPayload {
|
|
|
1723
2084
|
/**
|
|
1724
2085
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1725
2086
|
*/
|
|
1726
|
-
failure_reason:
|
|
2087
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1727
2088
|
|
|
1728
2089
|
/**
|
|
1729
2090
|
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1730
2091
|
*/
|
|
1731
|
-
rewards: Array<
|
|
2092
|
+
rewards: Array<ActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
1732
2093
|
|
|
1733
2094
|
/**
|
|
1734
2095
|
* The status of the wallet action.
|
|
@@ -1739,7 +2100,7 @@ export interface WalletActionEarnIncentiveClaimFailedWebhookPayload {
|
|
|
1739
2100
|
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1740
2101
|
* the failing step will have a failure_reason.
|
|
1741
2102
|
*/
|
|
1742
|
-
steps: Array<
|
|
2103
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1743
2104
|
|
|
1744
2105
|
/**
|
|
1745
2106
|
* The type of webhook event.
|
|
@@ -1764,7 +2125,7 @@ export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
|
|
|
1764
2125
|
/**
|
|
1765
2126
|
* Type of wallet action
|
|
1766
2127
|
*/
|
|
1767
|
-
action_type:
|
|
2128
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1768
2129
|
|
|
1769
2130
|
/**
|
|
1770
2131
|
* EVM chain name (e.g. "base", "ethereum").
|
|
@@ -1779,7 +2140,7 @@ export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
|
|
|
1779
2140
|
/**
|
|
1780
2141
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1781
2142
|
*/
|
|
1782
|
-
failure_reason:
|
|
2143
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1783
2144
|
|
|
1784
2145
|
/**
|
|
1785
2146
|
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
@@ -1789,7 +2150,7 @@ export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
|
|
|
1789
2150
|
/**
|
|
1790
2151
|
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1791
2152
|
*/
|
|
1792
|
-
rewards: Array<
|
|
2153
|
+
rewards: Array<ActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
1793
2154
|
|
|
1794
2155
|
/**
|
|
1795
2156
|
* The status of the wallet action.
|
|
@@ -1799,7 +2160,7 @@ export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
|
|
|
1799
2160
|
/**
|
|
1800
2161
|
* The steps of the wallet action at the time of rejection.
|
|
1801
2162
|
*/
|
|
1802
|
-
steps: Array<
|
|
2163
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1803
2164
|
|
|
1804
2165
|
/**
|
|
1805
2166
|
* The type of webhook event.
|
|
@@ -1824,7 +2185,7 @@ export interface WalletActionEarnIncentiveClaimSucceededWebhookPayload {
|
|
|
1824
2185
|
/**
|
|
1825
2186
|
* Type of wallet action
|
|
1826
2187
|
*/
|
|
1827
|
-
action_type:
|
|
2188
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1828
2189
|
|
|
1829
2190
|
/**
|
|
1830
2191
|
* EVM chain name (e.g. "base", "ethereum").
|
|
@@ -1844,7 +2205,7 @@ export interface WalletActionEarnIncentiveClaimSucceededWebhookPayload {
|
|
|
1844
2205
|
/**
|
|
1845
2206
|
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1846
2207
|
*/
|
|
1847
|
-
rewards: Array<
|
|
2208
|
+
rewards: Array<ActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
1848
2209
|
|
|
1849
2210
|
/**
|
|
1850
2211
|
* The status of the wallet action.
|
|
@@ -1854,7 +2215,7 @@ export interface WalletActionEarnIncentiveClaimSucceededWebhookPayload {
|
|
|
1854
2215
|
/**
|
|
1855
2216
|
* The steps of the wallet action, including transaction hashes.
|
|
1856
2217
|
*/
|
|
1857
|
-
steps: Array<
|
|
2218
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1858
2219
|
|
|
1859
2220
|
/**
|
|
1860
2221
|
* The type of webhook event.
|
|
@@ -1879,7 +2240,7 @@ export interface WalletActionEarnWithdrawCreatedWebhookPayload {
|
|
|
1879
2240
|
/**
|
|
1880
2241
|
* Type of wallet action
|
|
1881
2242
|
*/
|
|
1882
|
-
action_type:
|
|
2243
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1883
2244
|
|
|
1884
2245
|
/**
|
|
1885
2246
|
* Underlying asset token address.
|
|
@@ -1957,7 +2318,7 @@ export interface WalletActionEarnWithdrawFailedWebhookPayload {
|
|
|
1957
2318
|
/**
|
|
1958
2319
|
* Type of wallet action
|
|
1959
2320
|
*/
|
|
1960
|
-
action_type:
|
|
2321
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1961
2322
|
|
|
1962
2323
|
/**
|
|
1963
2324
|
* Underlying asset token address.
|
|
@@ -1982,7 +2343,7 @@ export interface WalletActionEarnWithdrawFailedWebhookPayload {
|
|
|
1982
2343
|
/**
|
|
1983
2344
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1984
2345
|
*/
|
|
1985
|
-
failure_reason:
|
|
2346
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1986
2347
|
|
|
1987
2348
|
/**
|
|
1988
2349
|
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
@@ -1998,7 +2359,7 @@ export interface WalletActionEarnWithdrawFailedWebhookPayload {
|
|
|
1998
2359
|
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1999
2360
|
* the failing step will have a failure_reason.
|
|
2000
2361
|
*/
|
|
2001
|
-
steps: Array<
|
|
2362
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2002
2363
|
|
|
2003
2364
|
/**
|
|
2004
2365
|
* The type of webhook event.
|
|
@@ -2051,7 +2412,7 @@ export interface WalletActionEarnWithdrawRejectedWebhookPayload {
|
|
|
2051
2412
|
/**
|
|
2052
2413
|
* Type of wallet action
|
|
2053
2414
|
*/
|
|
2054
|
-
action_type:
|
|
2415
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2055
2416
|
|
|
2056
2417
|
/**
|
|
2057
2418
|
* Underlying asset token address.
|
|
@@ -2071,7 +2432,7 @@ export interface WalletActionEarnWithdrawRejectedWebhookPayload {
|
|
|
2071
2432
|
/**
|
|
2072
2433
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
2073
2434
|
*/
|
|
2074
|
-
failure_reason:
|
|
2435
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
2075
2436
|
|
|
2076
2437
|
/**
|
|
2077
2438
|
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
@@ -2091,7 +2452,7 @@ export interface WalletActionEarnWithdrawRejectedWebhookPayload {
|
|
|
2091
2452
|
/**
|
|
2092
2453
|
* The steps of the wallet action at the time of rejection.
|
|
2093
2454
|
*/
|
|
2094
|
-
steps: Array<
|
|
2455
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2095
2456
|
|
|
2096
2457
|
/**
|
|
2097
2458
|
* The type of webhook event.
|
|
@@ -2144,7 +2505,7 @@ export interface WalletActionEarnWithdrawSucceededWebhookPayload {
|
|
|
2144
2505
|
/**
|
|
2145
2506
|
* Type of wallet action
|
|
2146
2507
|
*/
|
|
2147
|
-
action_type:
|
|
2508
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2148
2509
|
|
|
2149
2510
|
/**
|
|
2150
2511
|
* Underlying asset token address.
|
|
@@ -2184,7 +2545,7 @@ export interface WalletActionEarnWithdrawSucceededWebhookPayload {
|
|
|
2184
2545
|
/**
|
|
2185
2546
|
* The steps of the wallet action, including transaction hashes.
|
|
2186
2547
|
*/
|
|
2187
|
-
steps: Array<
|
|
2548
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2188
2549
|
|
|
2189
2550
|
/**
|
|
2190
2551
|
* The type of webhook event.
|
|
@@ -2237,7 +2598,7 @@ export interface WalletActionSwapCreatedWebhookPayload {
|
|
|
2237
2598
|
/**
|
|
2238
2599
|
* Type of wallet action
|
|
2239
2600
|
*/
|
|
2240
|
-
action_type:
|
|
2601
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2241
2602
|
|
|
2242
2603
|
/**
|
|
2243
2604
|
* Chain identifier.
|
|
@@ -2292,7 +2653,7 @@ export interface WalletActionSwapFailedWebhookPayload {
|
|
|
2292
2653
|
/**
|
|
2293
2654
|
* Type of wallet action
|
|
2294
2655
|
*/
|
|
2295
|
-
action_type:
|
|
2656
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2296
2657
|
|
|
2297
2658
|
/**
|
|
2298
2659
|
* Chain identifier.
|
|
@@ -2312,7 +2673,7 @@ export interface WalletActionSwapFailedWebhookPayload {
|
|
|
2312
2673
|
/**
|
|
2313
2674
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
2314
2675
|
*/
|
|
2315
|
-
failure_reason:
|
|
2676
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
2316
2677
|
|
|
2317
2678
|
/**
|
|
2318
2679
|
* Amount of input token in base units. Populated after onchain confirmation.
|
|
@@ -2338,7 +2699,7 @@ export interface WalletActionSwapFailedWebhookPayload {
|
|
|
2338
2699
|
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
2339
2700
|
* the failing step will have a failure_reason.
|
|
2340
2701
|
*/
|
|
2341
|
-
steps: Array<
|
|
2702
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2342
2703
|
|
|
2343
2704
|
/**
|
|
2344
2705
|
* The type of webhook event.
|
|
@@ -2363,7 +2724,7 @@ export interface WalletActionSwapRejectedWebhookPayload {
|
|
|
2363
2724
|
/**
|
|
2364
2725
|
* Type of wallet action
|
|
2365
2726
|
*/
|
|
2366
|
-
action_type:
|
|
2727
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2367
2728
|
|
|
2368
2729
|
/**
|
|
2369
2730
|
* Chain identifier.
|
|
@@ -2378,7 +2739,7 @@ export interface WalletActionSwapRejectedWebhookPayload {
|
|
|
2378
2739
|
/**
|
|
2379
2740
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
2380
2741
|
*/
|
|
2381
|
-
failure_reason:
|
|
2742
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
2382
2743
|
|
|
2383
2744
|
/**
|
|
2384
2745
|
* Amount of input token in base units. Populated after onchain confirmation.
|
|
@@ -2408,7 +2769,7 @@ export interface WalletActionSwapRejectedWebhookPayload {
|
|
|
2408
2769
|
/**
|
|
2409
2770
|
* The steps of the wallet action at the time of rejection.
|
|
2410
2771
|
*/
|
|
2411
|
-
steps: Array<
|
|
2772
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2412
2773
|
|
|
2413
2774
|
/**
|
|
2414
2775
|
* The type of webhook event.
|
|
@@ -2433,7 +2794,7 @@ export interface WalletActionSwapSucceededWebhookPayload {
|
|
|
2433
2794
|
/**
|
|
2434
2795
|
* Type of wallet action
|
|
2435
2796
|
*/
|
|
2436
|
-
action_type:
|
|
2797
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2437
2798
|
|
|
2438
2799
|
/**
|
|
2439
2800
|
* Chain identifier.
|
|
@@ -2479,7 +2840,7 @@ export interface WalletActionSwapSucceededWebhookPayload {
|
|
|
2479
2840
|
/**
|
|
2480
2841
|
* The steps of the wallet action, including transaction hashes.
|
|
2481
2842
|
*/
|
|
2482
|
-
steps: Array<
|
|
2843
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2483
2844
|
|
|
2484
2845
|
/**
|
|
2485
2846
|
* The type of webhook event.
|
|
@@ -2504,7 +2865,7 @@ export interface WalletActionTransferCreatedWebhookPayload {
|
|
|
2504
2865
|
/**
|
|
2505
2866
|
* Type of wallet action
|
|
2506
2867
|
*/
|
|
2507
|
-
action_type:
|
|
2868
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2508
2869
|
|
|
2509
2870
|
/**
|
|
2510
2871
|
* ISO 8601 timestamp of when the wallet action was created.
|
|
@@ -2573,7 +2934,7 @@ export interface WalletActionTransferFailedWebhookPayload {
|
|
|
2573
2934
|
/**
|
|
2574
2935
|
* Type of wallet action
|
|
2575
2936
|
*/
|
|
2576
|
-
action_type:
|
|
2937
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2577
2938
|
|
|
2578
2939
|
/**
|
|
2579
2940
|
* ISO 8601 timestamp of when the wallet action was created.
|
|
@@ -2593,7 +2954,7 @@ export interface WalletActionTransferFailedWebhookPayload {
|
|
|
2593
2954
|
/**
|
|
2594
2955
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
2595
2956
|
*/
|
|
2596
|
-
failure_reason:
|
|
2957
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
2597
2958
|
|
|
2598
2959
|
/**
|
|
2599
2960
|
* Chain name (e.g. "base", "ethereum").
|
|
@@ -2609,7 +2970,7 @@ export interface WalletActionTransferFailedWebhookPayload {
|
|
|
2609
2970
|
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
2610
2971
|
* the failing step will have a failure_reason.
|
|
2611
2972
|
*/
|
|
2612
|
-
steps: Array<
|
|
2973
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2613
2974
|
|
|
2614
2975
|
/**
|
|
2615
2976
|
* The type of webhook event.
|
|
@@ -2658,7 +3019,7 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
2658
3019
|
/**
|
|
2659
3020
|
* Type of wallet action
|
|
2660
3021
|
*/
|
|
2661
|
-
action_type:
|
|
3022
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2662
3023
|
|
|
2663
3024
|
/**
|
|
2664
3025
|
* ISO 8601 timestamp of when the wallet action was created.
|
|
@@ -2673,7 +3034,7 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
2673
3034
|
/**
|
|
2674
3035
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
2675
3036
|
*/
|
|
2676
|
-
failure_reason:
|
|
3037
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
2677
3038
|
|
|
2678
3039
|
/**
|
|
2679
3040
|
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
@@ -2693,7 +3054,7 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
2693
3054
|
/**
|
|
2694
3055
|
* The steps of the wallet action at the time of rejection.
|
|
2695
3056
|
*/
|
|
2696
|
-
steps: Array<
|
|
3057
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2697
3058
|
|
|
2698
3059
|
/**
|
|
2699
3060
|
* The type of webhook event.
|
|
@@ -2742,7 +3103,7 @@ export interface WalletActionTransferSucceededWebhookPayload {
|
|
|
2742
3103
|
/**
|
|
2743
3104
|
* Type of wallet action
|
|
2744
3105
|
*/
|
|
2745
|
-
action_type:
|
|
3106
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2746
3107
|
|
|
2747
3108
|
/**
|
|
2748
3109
|
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
@@ -2772,7 +3133,7 @@ export interface WalletActionTransferSucceededWebhookPayload {
|
|
|
2772
3133
|
/**
|
|
2773
3134
|
* The steps of the wallet action, including transaction hashes.
|
|
2774
3135
|
*/
|
|
2775
|
-
steps: Array<
|
|
3136
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2776
3137
|
|
|
2777
3138
|
/**
|
|
2778
3139
|
* The type of webhook event.
|
|
@@ -2914,20 +3275,25 @@ export interface WalletRecoveredWebhookPayload {
|
|
|
2914
3275
|
wallet_id: string;
|
|
2915
3276
|
}
|
|
2916
3277
|
|
|
3278
|
+
/**
|
|
3279
|
+
* Recovery method types for embedded wallet recovery setup webhooks.
|
|
3280
|
+
*/
|
|
3281
|
+
export type WalletRecoverySetupMethod =
|
|
3282
|
+
| 'user_passcode_derived_recovery_key'
|
|
3283
|
+
| 'privy_passcode_derived_recovery_key'
|
|
3284
|
+
| 'privy_generated_recovery_key'
|
|
3285
|
+
| 'google_drive_recovery_secret'
|
|
3286
|
+
| 'icloud_recovery_secret'
|
|
3287
|
+
| 'recovery_encryption_key';
|
|
3288
|
+
|
|
2917
3289
|
/**
|
|
2918
3290
|
* Payload for the wallet.recovery_setup webhook event.
|
|
2919
3291
|
*/
|
|
2920
3292
|
export interface WalletRecoverySetupWebhookPayload {
|
|
2921
3293
|
/**
|
|
2922
|
-
*
|
|
3294
|
+
* Recovery method types for embedded wallet recovery setup webhooks.
|
|
2923
3295
|
*/
|
|
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';
|
|
3296
|
+
method: WalletRecoverySetupMethod;
|
|
2931
3297
|
|
|
2932
3298
|
/**
|
|
2933
3299
|
* The type of webhook event.
|
|
@@ -3031,7 +3397,11 @@ export type WebhookPayload =
|
|
|
3031
3397
|
| WalletActionEarnIncentiveClaimCreatedWebhookPayload
|
|
3032
3398
|
| WalletActionEarnIncentiveClaimSucceededWebhookPayload
|
|
3033
3399
|
| WalletActionEarnIncentiveClaimRejectedWebhookPayload
|
|
3034
|
-
| WalletActionEarnIncentiveClaimFailedWebhookPayload
|
|
3400
|
+
| WalletActionEarnIncentiveClaimFailedWebhookPayload
|
|
3401
|
+
| WalletActionEarnFeeCollectCreatedWebhookPayload
|
|
3402
|
+
| WalletActionEarnFeeCollectSucceededWebhookPayload
|
|
3403
|
+
| WalletActionEarnFeeCollectRejectedWebhookPayload
|
|
3404
|
+
| WalletActionEarnFeeCollectFailedWebhookPayload;
|
|
3035
3405
|
|
|
3036
3406
|
/**
|
|
3037
3407
|
* Payload for the yield.claim.confirmed webhook event.
|
|
@@ -3159,6 +3529,10 @@ export declare namespace Webhooks {
|
|
|
3159
3529
|
type WalletActionEarnDepositFailedWebhookPayload as WalletActionEarnDepositFailedWebhookPayload,
|
|
3160
3530
|
type WalletActionEarnDepositRejectedWebhookPayload as WalletActionEarnDepositRejectedWebhookPayload,
|
|
3161
3531
|
type WalletActionEarnDepositSucceededWebhookPayload as WalletActionEarnDepositSucceededWebhookPayload,
|
|
3532
|
+
type WalletActionEarnFeeCollectCreatedWebhookPayload as WalletActionEarnFeeCollectCreatedWebhookPayload,
|
|
3533
|
+
type WalletActionEarnFeeCollectFailedWebhookPayload as WalletActionEarnFeeCollectFailedWebhookPayload,
|
|
3534
|
+
type WalletActionEarnFeeCollectRejectedWebhookPayload as WalletActionEarnFeeCollectRejectedWebhookPayload,
|
|
3535
|
+
type WalletActionEarnFeeCollectSucceededWebhookPayload as WalletActionEarnFeeCollectSucceededWebhookPayload,
|
|
3162
3536
|
type WalletActionEarnIncentiveClaimCreatedWebhookPayload as WalletActionEarnIncentiveClaimCreatedWebhookPayload,
|
|
3163
3537
|
type WalletActionEarnIncentiveClaimFailedWebhookPayload as WalletActionEarnIncentiveClaimFailedWebhookPayload,
|
|
3164
3538
|
type WalletActionEarnIncentiveClaimRejectedWebhookPayload as WalletActionEarnIncentiveClaimRejectedWebhookPayload,
|
|
@@ -3182,6 +3556,7 @@ export declare namespace Webhooks {
|
|
|
3182
3556
|
type WalletFundsSacAsset as WalletFundsSacAsset,
|
|
3183
3557
|
type WalletFundsSplAsset as WalletFundsSplAsset,
|
|
3184
3558
|
type WalletRecoveredWebhookPayload as WalletRecoveredWebhookPayload,
|
|
3559
|
+
type WalletRecoverySetupMethod as WalletRecoverySetupMethod,
|
|
3185
3560
|
type WalletRecoverySetupWebhookPayload as WalletRecoverySetupWebhookPayload,
|
|
3186
3561
|
type WalletRestoredWebhookPayload as WalletRestoredWebhookPayload,
|
|
3187
3562
|
type WebhookPayload as WebhookPayload,
|