@privy-io/api-types 0.15.0 → 0.16.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 +82 -0
- package/client.d.mts +29 -29
- package/client.d.mts.map +1 -1
- package/client.d.ts +29 -29
- package/client.d.ts.map +1 -1
- package/client.js +11 -3
- package/client.js.map +1 -1
- package/client.mjs +11 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +6 -2
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +6 -2
- package/resources/accounts.d.ts.map +1 -1
- package/resources/aggregations.d.mts +14 -4
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +14 -4
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/apps.d.mts +44 -23
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +44 -23
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +21 -5
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +21 -5
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/index.d.mts +14 -14
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +14 -14
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +65 -79
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +65 -79
- 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 +9 -8
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +9 -8
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/kraken-embed.d.mts +102 -205
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +102 -205
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/kraken-embed.js.map +1 -1
- package/resources/kraken-embed.mjs.map +1 -1
- package/resources/onramps.d.mts +50 -48
- package/resources/onramps.d.mts.map +1 -1
- package/resources/onramps.d.ts +50 -48
- package/resources/onramps.d.ts.map +1 -1
- package/resources/policies.d.mts +47 -18
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +47 -18
- package/resources/policies.d.ts.map +1 -1
- package/resources/shared.d.mts +15 -3
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +15 -3
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +3 -2
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +3 -2
- package/resources/swaps.d.ts.map +1 -1
- package/resources/wallet-actions.d.mts +134 -21
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +134 -21
- package/resources/wallet-actions.d.ts.map +1 -1
- package/resources/wallets/balance.d.mts +8 -4
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +8 -4
- package/resources/wallets/balance.d.ts.map +1 -1
- 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 +5 -1
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +5 -1
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/wallets.d.mts +603 -87
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +603 -87
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +15 -2
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +15 -2
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +241 -54
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +241 -54
- 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 +26 -27
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +26 -27
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +163 -17
- package/src/resources/accounts.ts +7 -1
- package/src/resources/aggregations.ts +16 -3
- package/src/resources/apps.ts +60 -30
- package/src/resources/client-auth.ts +22 -4
- package/src/resources/index.ts +72 -3
- package/src/resources/intents.ts +73 -91
- package/src/resources/key-quorums.ts +11 -9
- package/src/resources/kraken-embed.ts +386 -482
- package/src/resources/onramps.ts +69 -54
- package/src/resources/policies.ts +66 -16
- package/src/resources/shared.ts +18 -2
- package/src/resources/swaps.ts +3 -2
- package/src/resources/wallet-actions.ts +182 -20
- package/src/resources/wallets/balance.ts +13 -1
- package/src/resources/wallets/index.ts +34 -0
- package/src/resources/wallets/transactions.ts +6 -0
- package/src/resources/wallets/wallets.ts +782 -94
- package/src/resources/webhooks.ts +293 -57
- package/src/resources/yield.ts +29 -30
- 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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as AppsAPI from './apps';
|
|
4
5
|
import * as IntentsAPI from './intents';
|
|
5
6
|
import * as UsersAPI from './users';
|
|
6
7
|
import * as WalletActionsAPI from './wallet-actions';
|
|
@@ -8,6 +9,21 @@ import * as WalletsAPI from './wallets/wallets';
|
|
|
8
9
|
|
|
9
10
|
export class Webhooks extends APIResource {}
|
|
10
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Block metadata for a wallet transfer event.
|
|
14
|
+
*/
|
|
15
|
+
export interface BlockInfo {
|
|
16
|
+
/**
|
|
17
|
+
* The block number.
|
|
18
|
+
*/
|
|
19
|
+
number: number;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The block timestamp.
|
|
23
|
+
*/
|
|
24
|
+
timestamp: number;
|
|
25
|
+
}
|
|
26
|
+
|
|
11
27
|
/**
|
|
12
28
|
* Bridge metadata for a crypto deposit via liquidation address.
|
|
13
29
|
*/
|
|
@@ -144,7 +160,10 @@ export interface FundsDepositedWebhookPayload {
|
|
|
144
160
|
*/
|
|
145
161
|
asset: WalletFundsAsset;
|
|
146
162
|
|
|
147
|
-
|
|
163
|
+
/**
|
|
164
|
+
* Block metadata for a wallet transfer event.
|
|
165
|
+
*/
|
|
166
|
+
block: BlockInfo;
|
|
148
167
|
|
|
149
168
|
/**
|
|
150
169
|
* The CAIP-2 chain identifier.
|
|
@@ -192,20 +211,6 @@ export interface FundsDepositedWebhookPayload {
|
|
|
192
211
|
transaction_fee?: string;
|
|
193
212
|
}
|
|
194
213
|
|
|
195
|
-
export namespace FundsDepositedWebhookPayload {
|
|
196
|
-
export interface Block {
|
|
197
|
-
/**
|
|
198
|
-
* The block number.
|
|
199
|
-
*/
|
|
200
|
-
number: number;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* The block timestamp.
|
|
204
|
-
*/
|
|
205
|
-
timestamp: number;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
214
|
/**
|
|
210
215
|
* Payload for the wallet.funds_withdrawn webhook event.
|
|
211
216
|
*/
|
|
@@ -220,7 +225,10 @@ export interface FundsWithdrawnWebhookPayload {
|
|
|
220
225
|
*/
|
|
221
226
|
asset: WalletFundsAsset;
|
|
222
227
|
|
|
223
|
-
|
|
228
|
+
/**
|
|
229
|
+
* Block metadata for a wallet transfer event.
|
|
230
|
+
*/
|
|
231
|
+
block: BlockInfo;
|
|
224
232
|
|
|
225
233
|
/**
|
|
226
234
|
* The CAIP-2 chain identifier.
|
|
@@ -263,20 +271,6 @@ export interface FundsWithdrawnWebhookPayload {
|
|
|
263
271
|
transaction_fee?: string;
|
|
264
272
|
}
|
|
265
273
|
|
|
266
|
-
export namespace FundsWithdrawnWebhookPayload {
|
|
267
|
-
export interface Block {
|
|
268
|
-
/**
|
|
269
|
-
* The block number.
|
|
270
|
-
*/
|
|
271
|
-
number: number;
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* The block timestamp.
|
|
275
|
-
*/
|
|
276
|
-
timestamp: number;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
274
|
/**
|
|
281
275
|
* Payload for the intent.authorized webhook event.
|
|
282
276
|
*/
|
|
@@ -771,9 +765,9 @@ export interface KrakenEmbedUserVerifiedWebhookPayload {
|
|
|
771
765
|
*/
|
|
772
766
|
export interface MfaDisabledWebhookPayload {
|
|
773
767
|
/**
|
|
774
|
-
*
|
|
768
|
+
* A multi-factor authentication method supported by the app.
|
|
775
769
|
*/
|
|
776
|
-
method:
|
|
770
|
+
method: AppsAPI.MfaMethod;
|
|
777
771
|
|
|
778
772
|
/**
|
|
779
773
|
* The type of webhook event.
|
|
@@ -791,9 +785,9 @@ export interface MfaDisabledWebhookPayload {
|
|
|
791
785
|
*/
|
|
792
786
|
export interface MfaEnabledWebhookPayload {
|
|
793
787
|
/**
|
|
794
|
-
*
|
|
788
|
+
* A multi-factor authentication method supported by the app.
|
|
795
789
|
*/
|
|
796
|
-
method:
|
|
790
|
+
method: AppsAPI.MfaMethod;
|
|
797
791
|
|
|
798
792
|
/**
|
|
799
793
|
* The type of webhook event.
|
|
@@ -1205,6 +1199,13 @@ export interface UserOperationCompletedWebhookPayload {
|
|
|
1205
1199
|
user_op_hash: string;
|
|
1206
1200
|
}
|
|
1207
1201
|
|
|
1202
|
+
/**
|
|
1203
|
+
* A reference to a user by their unique identifier.
|
|
1204
|
+
*/
|
|
1205
|
+
export interface UserReference {
|
|
1206
|
+
id: string;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1208
1209
|
/**
|
|
1209
1210
|
* Payload for the user.transferred_account webhook event.
|
|
1210
1211
|
*/
|
|
@@ -1216,7 +1217,10 @@ export interface UserTransferredAccountWebhookPayload {
|
|
|
1216
1217
|
|
|
1217
1218
|
deletedUser: true;
|
|
1218
1219
|
|
|
1219
|
-
|
|
1220
|
+
/**
|
|
1221
|
+
* A reference to a user by their unique identifier.
|
|
1222
|
+
*/
|
|
1223
|
+
fromUser: UserReference;
|
|
1220
1224
|
|
|
1221
1225
|
/**
|
|
1222
1226
|
* A Privy user object.
|
|
@@ -1229,12 +1233,6 @@ export interface UserTransferredAccountWebhookPayload {
|
|
|
1229
1233
|
type: 'user.transferred_account';
|
|
1230
1234
|
}
|
|
1231
1235
|
|
|
1232
|
-
export namespace UserTransferredAccountWebhookPayload {
|
|
1233
|
-
export interface FromUser {
|
|
1234
|
-
id: string;
|
|
1235
|
-
}
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
1236
|
/**
|
|
1239
1237
|
* Payload for the user.unlinked_account webhook event.
|
|
1240
1238
|
*/
|
|
@@ -1314,6 +1312,11 @@ export interface WalletActionEarnDepositCreatedWebhookPayload {
|
|
|
1314
1312
|
*/
|
|
1315
1313
|
caip2: string;
|
|
1316
1314
|
|
|
1315
|
+
/**
|
|
1316
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1317
|
+
*/
|
|
1318
|
+
created_at: string;
|
|
1319
|
+
|
|
1317
1320
|
/**
|
|
1318
1321
|
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
1319
1322
|
*/
|
|
@@ -1387,6 +1390,16 @@ export interface WalletActionEarnDepositFailedWebhookPayload {
|
|
|
1387
1390
|
*/
|
|
1388
1391
|
caip2: string;
|
|
1389
1392
|
|
|
1393
|
+
/**
|
|
1394
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1395
|
+
*/
|
|
1396
|
+
created_at: string;
|
|
1397
|
+
|
|
1398
|
+
/**
|
|
1399
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
1400
|
+
*/
|
|
1401
|
+
failed_at: string;
|
|
1402
|
+
|
|
1390
1403
|
/**
|
|
1391
1404
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1392
1405
|
*/
|
|
@@ -1471,6 +1484,11 @@ export interface WalletActionEarnDepositRejectedWebhookPayload {
|
|
|
1471
1484
|
*/
|
|
1472
1485
|
caip2: string;
|
|
1473
1486
|
|
|
1487
|
+
/**
|
|
1488
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1489
|
+
*/
|
|
1490
|
+
created_at: string;
|
|
1491
|
+
|
|
1474
1492
|
/**
|
|
1475
1493
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1476
1494
|
*/
|
|
@@ -1481,6 +1499,11 @@ export interface WalletActionEarnDepositRejectedWebhookPayload {
|
|
|
1481
1499
|
*/
|
|
1482
1500
|
raw_amount: string;
|
|
1483
1501
|
|
|
1502
|
+
/**
|
|
1503
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
1504
|
+
*/
|
|
1505
|
+
rejected_at: string;
|
|
1506
|
+
|
|
1484
1507
|
/**
|
|
1485
1508
|
* The status of the wallet action.
|
|
1486
1509
|
*/
|
|
@@ -1554,6 +1577,16 @@ export interface WalletActionEarnDepositSucceededWebhookPayload {
|
|
|
1554
1577
|
*/
|
|
1555
1578
|
caip2: string;
|
|
1556
1579
|
|
|
1580
|
+
/**
|
|
1581
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
1582
|
+
*/
|
|
1583
|
+
completed_at: string;
|
|
1584
|
+
|
|
1585
|
+
/**
|
|
1586
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1587
|
+
*/
|
|
1588
|
+
created_at: string;
|
|
1589
|
+
|
|
1557
1590
|
/**
|
|
1558
1591
|
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
1559
1592
|
*/
|
|
@@ -1632,6 +1665,11 @@ export interface WalletActionEarnIncentiveClaimCreatedWebhookPayload {
|
|
|
1632
1665
|
*/
|
|
1633
1666
|
chain: string;
|
|
1634
1667
|
|
|
1668
|
+
/**
|
|
1669
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1670
|
+
*/
|
|
1671
|
+
created_at: string;
|
|
1672
|
+
|
|
1635
1673
|
/**
|
|
1636
1674
|
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1637
1675
|
*/
|
|
@@ -1672,6 +1710,16 @@ export interface WalletActionEarnIncentiveClaimFailedWebhookPayload {
|
|
|
1672
1710
|
*/
|
|
1673
1711
|
chain: string;
|
|
1674
1712
|
|
|
1713
|
+
/**
|
|
1714
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1715
|
+
*/
|
|
1716
|
+
created_at: string;
|
|
1717
|
+
|
|
1718
|
+
/**
|
|
1719
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
1720
|
+
*/
|
|
1721
|
+
failed_at: string;
|
|
1722
|
+
|
|
1675
1723
|
/**
|
|
1676
1724
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1677
1725
|
*/
|
|
@@ -1723,11 +1771,21 @@ export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
|
|
|
1723
1771
|
*/
|
|
1724
1772
|
chain: string;
|
|
1725
1773
|
|
|
1774
|
+
/**
|
|
1775
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1776
|
+
*/
|
|
1777
|
+
created_at: string;
|
|
1778
|
+
|
|
1726
1779
|
/**
|
|
1727
1780
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1728
1781
|
*/
|
|
1729
1782
|
failure_reason: WalletActionsAPI.FailureReason;
|
|
1730
1783
|
|
|
1784
|
+
/**
|
|
1785
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
1786
|
+
*/
|
|
1787
|
+
rejected_at: string;
|
|
1788
|
+
|
|
1731
1789
|
/**
|
|
1732
1790
|
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1733
1791
|
*/
|
|
@@ -1773,6 +1831,16 @@ export interface WalletActionEarnIncentiveClaimSucceededWebhookPayload {
|
|
|
1773
1831
|
*/
|
|
1774
1832
|
chain: string;
|
|
1775
1833
|
|
|
1834
|
+
/**
|
|
1835
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
1836
|
+
*/
|
|
1837
|
+
completed_at: string;
|
|
1838
|
+
|
|
1839
|
+
/**
|
|
1840
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1841
|
+
*/
|
|
1842
|
+
created_at: string;
|
|
1843
|
+
|
|
1776
1844
|
/**
|
|
1777
1845
|
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1778
1846
|
*/
|
|
@@ -1823,6 +1891,11 @@ export interface WalletActionEarnWithdrawCreatedWebhookPayload {
|
|
|
1823
1891
|
*/
|
|
1824
1892
|
caip2: string;
|
|
1825
1893
|
|
|
1894
|
+
/**
|
|
1895
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1896
|
+
*/
|
|
1897
|
+
created_at: string;
|
|
1898
|
+
|
|
1826
1899
|
/**
|
|
1827
1900
|
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
1828
1901
|
*/
|
|
@@ -1896,6 +1969,16 @@ export interface WalletActionEarnWithdrawFailedWebhookPayload {
|
|
|
1896
1969
|
*/
|
|
1897
1970
|
caip2: string;
|
|
1898
1971
|
|
|
1972
|
+
/**
|
|
1973
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1974
|
+
*/
|
|
1975
|
+
created_at: string;
|
|
1976
|
+
|
|
1977
|
+
/**
|
|
1978
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
1979
|
+
*/
|
|
1980
|
+
failed_at: string;
|
|
1981
|
+
|
|
1899
1982
|
/**
|
|
1900
1983
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1901
1984
|
*/
|
|
@@ -1980,6 +2063,11 @@ export interface WalletActionEarnWithdrawRejectedWebhookPayload {
|
|
|
1980
2063
|
*/
|
|
1981
2064
|
caip2: string;
|
|
1982
2065
|
|
|
2066
|
+
/**
|
|
2067
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2068
|
+
*/
|
|
2069
|
+
created_at: string;
|
|
2070
|
+
|
|
1983
2071
|
/**
|
|
1984
2072
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1985
2073
|
*/
|
|
@@ -1990,6 +2078,11 @@ export interface WalletActionEarnWithdrawRejectedWebhookPayload {
|
|
|
1990
2078
|
*/
|
|
1991
2079
|
raw_amount: string;
|
|
1992
2080
|
|
|
2081
|
+
/**
|
|
2082
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
2083
|
+
*/
|
|
2084
|
+
rejected_at: string;
|
|
2085
|
+
|
|
1993
2086
|
/**
|
|
1994
2087
|
* The status of the wallet action.
|
|
1995
2088
|
*/
|
|
@@ -2063,6 +2156,16 @@ export interface WalletActionEarnWithdrawSucceededWebhookPayload {
|
|
|
2063
2156
|
*/
|
|
2064
2157
|
caip2: string;
|
|
2065
2158
|
|
|
2159
|
+
/**
|
|
2160
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
2161
|
+
*/
|
|
2162
|
+
completed_at: string;
|
|
2163
|
+
|
|
2164
|
+
/**
|
|
2165
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2166
|
+
*/
|
|
2167
|
+
created_at: string;
|
|
2168
|
+
|
|
2066
2169
|
/**
|
|
2067
2170
|
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
2068
2171
|
*/
|
|
@@ -2142,7 +2245,12 @@ export interface WalletActionSwapCreatedWebhookPayload {
|
|
|
2142
2245
|
caip2: string;
|
|
2143
2246
|
|
|
2144
2247
|
/**
|
|
2145
|
-
*
|
|
2248
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2249
|
+
*/
|
|
2250
|
+
created_at: string;
|
|
2251
|
+
|
|
2252
|
+
/**
|
|
2253
|
+
* Amount of input token in base units. Populated after onchain confirmation.
|
|
2146
2254
|
*/
|
|
2147
2255
|
input_amount: string | null;
|
|
2148
2256
|
|
|
@@ -2191,13 +2299,23 @@ export interface WalletActionSwapFailedWebhookPayload {
|
|
|
2191
2299
|
*/
|
|
2192
2300
|
caip2: string;
|
|
2193
2301
|
|
|
2302
|
+
/**
|
|
2303
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2304
|
+
*/
|
|
2305
|
+
created_at: string;
|
|
2306
|
+
|
|
2307
|
+
/**
|
|
2308
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
2309
|
+
*/
|
|
2310
|
+
failed_at: string;
|
|
2311
|
+
|
|
2194
2312
|
/**
|
|
2195
2313
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
2196
2314
|
*/
|
|
2197
2315
|
failure_reason: WalletActionsAPI.FailureReason;
|
|
2198
2316
|
|
|
2199
2317
|
/**
|
|
2200
|
-
* Amount of input token in base units. Populated after
|
|
2318
|
+
* Amount of input token in base units. Populated after onchain confirmation.
|
|
2201
2319
|
*/
|
|
2202
2320
|
input_amount: string | null;
|
|
2203
2321
|
|
|
@@ -2252,13 +2370,18 @@ export interface WalletActionSwapRejectedWebhookPayload {
|
|
|
2252
2370
|
*/
|
|
2253
2371
|
caip2: string;
|
|
2254
2372
|
|
|
2373
|
+
/**
|
|
2374
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2375
|
+
*/
|
|
2376
|
+
created_at: string;
|
|
2377
|
+
|
|
2255
2378
|
/**
|
|
2256
2379
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
2257
2380
|
*/
|
|
2258
2381
|
failure_reason: WalletActionsAPI.FailureReason;
|
|
2259
2382
|
|
|
2260
2383
|
/**
|
|
2261
|
-
* Amount of input token in base units. Populated after
|
|
2384
|
+
* Amount of input token in base units. Populated after onchain confirmation.
|
|
2262
2385
|
*/
|
|
2263
2386
|
input_amount: string | null;
|
|
2264
2387
|
|
|
@@ -2272,6 +2395,11 @@ export interface WalletActionSwapRejectedWebhookPayload {
|
|
|
2272
2395
|
*/
|
|
2273
2396
|
output_token: string;
|
|
2274
2397
|
|
|
2398
|
+
/**
|
|
2399
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
2400
|
+
*/
|
|
2401
|
+
rejected_at: string;
|
|
2402
|
+
|
|
2275
2403
|
/**
|
|
2276
2404
|
* The status of the wallet action.
|
|
2277
2405
|
*/
|
|
@@ -2313,7 +2441,17 @@ export interface WalletActionSwapSucceededWebhookPayload {
|
|
|
2313
2441
|
caip2: string;
|
|
2314
2442
|
|
|
2315
2443
|
/**
|
|
2316
|
-
*
|
|
2444
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
2445
|
+
*/
|
|
2446
|
+
completed_at: string;
|
|
2447
|
+
|
|
2448
|
+
/**
|
|
2449
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2450
|
+
*/
|
|
2451
|
+
created_at: string;
|
|
2452
|
+
|
|
2453
|
+
/**
|
|
2454
|
+
* Amount of input token in base units. Populated after onchain confirmation.
|
|
2317
2455
|
*/
|
|
2318
2456
|
input_amount: string | null;
|
|
2319
2457
|
|
|
@@ -2323,7 +2461,7 @@ export interface WalletActionSwapSucceededWebhookPayload {
|
|
|
2323
2461
|
input_token: string;
|
|
2324
2462
|
|
|
2325
2463
|
/**
|
|
2326
|
-
* Amount of output token received, in base units. Populated after
|
|
2464
|
+
* Amount of output token received, in base units. Populated after onchain
|
|
2327
2465
|
* confirmation.
|
|
2328
2466
|
*/
|
|
2329
2467
|
output_amount: string | null;
|
|
@@ -2368,6 +2506,11 @@ export interface WalletActionTransferCreatedWebhookPayload {
|
|
|
2368
2506
|
*/
|
|
2369
2507
|
action_type: WalletActionsAPI.WalletActionType;
|
|
2370
2508
|
|
|
2509
|
+
/**
|
|
2510
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2511
|
+
*/
|
|
2512
|
+
created_at: string;
|
|
2513
|
+
|
|
2371
2514
|
/**
|
|
2372
2515
|
* Recipient address.
|
|
2373
2516
|
*/
|
|
@@ -2418,7 +2561,7 @@ export interface WalletActionTransferCreatedWebhookPayload {
|
|
|
2418
2561
|
|
|
2419
2562
|
/**
|
|
2420
2563
|
* Number of decimals for the transferred token. Present when the transfer was
|
|
2421
|
-
* initiated with `asset_address` and the decimals were resolved
|
|
2564
|
+
* initiated with `asset_address` and the decimals were resolved onchain.
|
|
2422
2565
|
*/
|
|
2423
2566
|
source_asset_decimals?: number;
|
|
2424
2567
|
}
|
|
@@ -2432,11 +2575,21 @@ export interface WalletActionTransferFailedWebhookPayload {
|
|
|
2432
2575
|
*/
|
|
2433
2576
|
action_type: WalletActionsAPI.WalletActionType;
|
|
2434
2577
|
|
|
2578
|
+
/**
|
|
2579
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2580
|
+
*/
|
|
2581
|
+
created_at: string;
|
|
2582
|
+
|
|
2435
2583
|
/**
|
|
2436
2584
|
* Recipient address.
|
|
2437
2585
|
*/
|
|
2438
2586
|
destination_address: string;
|
|
2439
2587
|
|
|
2588
|
+
/**
|
|
2589
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
2590
|
+
*/
|
|
2591
|
+
failed_at: string;
|
|
2592
|
+
|
|
2440
2593
|
/**
|
|
2441
2594
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
2442
2595
|
*/
|
|
@@ -2493,7 +2646,7 @@ export interface WalletActionTransferFailedWebhookPayload {
|
|
|
2493
2646
|
|
|
2494
2647
|
/**
|
|
2495
2648
|
* Number of decimals for the transferred token. Present when the transfer was
|
|
2496
|
-
* initiated with `asset_address` and the decimals were resolved
|
|
2649
|
+
* initiated with `asset_address` and the decimals were resolved onchain.
|
|
2497
2650
|
*/
|
|
2498
2651
|
source_asset_decimals?: number;
|
|
2499
2652
|
}
|
|
@@ -2507,6 +2660,11 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
2507
2660
|
*/
|
|
2508
2661
|
action_type: WalletActionsAPI.WalletActionType;
|
|
2509
2662
|
|
|
2663
|
+
/**
|
|
2664
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2665
|
+
*/
|
|
2666
|
+
created_at: string;
|
|
2667
|
+
|
|
2510
2668
|
/**
|
|
2511
2669
|
* Recipient address.
|
|
2512
2670
|
*/
|
|
@@ -2517,6 +2675,11 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
2517
2675
|
*/
|
|
2518
2676
|
failure_reason: WalletActionsAPI.FailureReason;
|
|
2519
2677
|
|
|
2678
|
+
/**
|
|
2679
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
2680
|
+
*/
|
|
2681
|
+
rejected_at: string;
|
|
2682
|
+
|
|
2520
2683
|
/**
|
|
2521
2684
|
* Chain name (e.g. "base", "ethereum").
|
|
2522
2685
|
*/
|
|
@@ -2567,7 +2730,7 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
2567
2730
|
|
|
2568
2731
|
/**
|
|
2569
2732
|
* Number of decimals for the transferred token. Present when the transfer was
|
|
2570
|
-
* initiated with `asset_address` and the decimals were resolved
|
|
2733
|
+
* initiated with `asset_address` and the decimals were resolved onchain.
|
|
2571
2734
|
*/
|
|
2572
2735
|
source_asset_decimals?: number;
|
|
2573
2736
|
}
|
|
@@ -2581,6 +2744,16 @@ export interface WalletActionTransferSucceededWebhookPayload {
|
|
|
2581
2744
|
*/
|
|
2582
2745
|
action_type: WalletActionsAPI.WalletActionType;
|
|
2583
2746
|
|
|
2747
|
+
/**
|
|
2748
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
2749
|
+
*/
|
|
2750
|
+
completed_at: string;
|
|
2751
|
+
|
|
2752
|
+
/**
|
|
2753
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2754
|
+
*/
|
|
2755
|
+
created_at: string;
|
|
2756
|
+
|
|
2584
2757
|
/**
|
|
2585
2758
|
* Recipient address.
|
|
2586
2759
|
*/
|
|
@@ -2636,11 +2809,41 @@ export interface WalletActionTransferSucceededWebhookPayload {
|
|
|
2636
2809
|
|
|
2637
2810
|
/**
|
|
2638
2811
|
* Number of decimals for the transferred token. Present when the transfer was
|
|
2639
|
-
* initiated with `asset_address` and the decimals were resolved
|
|
2812
|
+
* initiated with `asset_address` and the decimals were resolved onchain.
|
|
2640
2813
|
*/
|
|
2641
2814
|
source_asset_decimals?: number;
|
|
2642
2815
|
}
|
|
2643
2816
|
|
|
2817
|
+
/**
|
|
2818
|
+
* Payload for the wallet.archived webhook event.
|
|
2819
|
+
*/
|
|
2820
|
+
export interface WalletArchivedWebhookPayload {
|
|
2821
|
+
/**
|
|
2822
|
+
* Unix timestamp of when the wallet was archived.
|
|
2823
|
+
*/
|
|
2824
|
+
archived_at: number;
|
|
2825
|
+
|
|
2826
|
+
/**
|
|
2827
|
+
* The chain type of the archived wallet.
|
|
2828
|
+
*/
|
|
2829
|
+
chain_type: string;
|
|
2830
|
+
|
|
2831
|
+
/**
|
|
2832
|
+
* The type of webhook event.
|
|
2833
|
+
*/
|
|
2834
|
+
type: 'wallet.archived';
|
|
2835
|
+
|
|
2836
|
+
/**
|
|
2837
|
+
* The address of the archived wallet.
|
|
2838
|
+
*/
|
|
2839
|
+
wallet_address: string;
|
|
2840
|
+
|
|
2841
|
+
/**
|
|
2842
|
+
* The ID of the archived wallet.
|
|
2843
|
+
*/
|
|
2844
|
+
wallet_id: string;
|
|
2845
|
+
}
|
|
2846
|
+
|
|
2644
2847
|
/**
|
|
2645
2848
|
* An asset involved in a wallet transfer.
|
|
2646
2849
|
*/
|
|
@@ -2747,6 +2950,31 @@ export interface WalletRecoverySetupWebhookPayload {
|
|
|
2747
2950
|
wallet_id: string;
|
|
2748
2951
|
}
|
|
2749
2952
|
|
|
2953
|
+
/**
|
|
2954
|
+
* Payload for the wallet.restored webhook event.
|
|
2955
|
+
*/
|
|
2956
|
+
export interface WalletRestoredWebhookPayload {
|
|
2957
|
+
/**
|
|
2958
|
+
* The chain type of the restored wallet.
|
|
2959
|
+
*/
|
|
2960
|
+
chain_type: string;
|
|
2961
|
+
|
|
2962
|
+
/**
|
|
2963
|
+
* The type of webhook event.
|
|
2964
|
+
*/
|
|
2965
|
+
type: 'wallet.restored';
|
|
2966
|
+
|
|
2967
|
+
/**
|
|
2968
|
+
* The address of the restored wallet.
|
|
2969
|
+
*/
|
|
2970
|
+
wallet_address: string;
|
|
2971
|
+
|
|
2972
|
+
/**
|
|
2973
|
+
* The ID of the restored wallet.
|
|
2974
|
+
*/
|
|
2975
|
+
wallet_id: string;
|
|
2976
|
+
}
|
|
2977
|
+
|
|
2750
2978
|
/**
|
|
2751
2979
|
* Union of all webhook payload schemas.
|
|
2752
2980
|
*/
|
|
@@ -2771,6 +2999,8 @@ export type WebhookPayload =
|
|
|
2771
2999
|
| SeedPhraseExportWebhookPayload
|
|
2772
3000
|
| WalletRecoverySetupWebhookPayload
|
|
2773
3001
|
| WalletRecoveredWebhookPayload
|
|
3002
|
+
| WalletArchivedWebhookPayload
|
|
3003
|
+
| WalletRestoredWebhookPayload
|
|
2774
3004
|
| MfaEnabledWebhookPayload
|
|
2775
3005
|
| MfaDisabledWebhookPayload
|
|
2776
3006
|
| YieldDepositConfirmedWebhookPayload
|
|
@@ -2809,7 +3039,7 @@ export type WebhookPayload =
|
|
|
2809
3039
|
export interface YieldClaimConfirmedWebhookPayload {
|
|
2810
3040
|
caip2: string;
|
|
2811
3041
|
|
|
2812
|
-
rewards: Array<
|
|
3042
|
+
rewards: Array<YieldClaimReward>;
|
|
2813
3043
|
|
|
2814
3044
|
transaction_id: string;
|
|
2815
3045
|
|
|
@@ -2821,14 +3051,15 @@ export interface YieldClaimConfirmedWebhookPayload {
|
|
|
2821
3051
|
wallet_id: string;
|
|
2822
3052
|
}
|
|
2823
3053
|
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
3054
|
+
/**
|
|
3055
|
+
* A single reward token claimed from a yield vault.
|
|
3056
|
+
*/
|
|
3057
|
+
export interface YieldClaimReward {
|
|
3058
|
+
amount: string;
|
|
2827
3059
|
|
|
2828
|
-
|
|
3060
|
+
token_address: string;
|
|
2829
3061
|
|
|
2830
|
-
|
|
2831
|
-
}
|
|
3062
|
+
token_symbol: string;
|
|
2832
3063
|
}
|
|
2833
3064
|
|
|
2834
3065
|
/**
|
|
@@ -2879,6 +3110,7 @@ export interface YieldWithdrawConfirmedWebhookPayload {
|
|
|
2879
3110
|
|
|
2880
3111
|
export declare namespace Webhooks {
|
|
2881
3112
|
export {
|
|
3113
|
+
type BlockInfo as BlockInfo,
|
|
2882
3114
|
type BridgeCryptoDepositMetadata as BridgeCryptoDepositMetadata,
|
|
2883
3115
|
type BridgeCryptoTransferMetadata as BridgeCryptoTransferMetadata,
|
|
2884
3116
|
type BridgeFiatDepositMetadata as BridgeFiatDepositMetadata,
|
|
@@ -2918,6 +3150,7 @@ export declare namespace Webhooks {
|
|
|
2918
3150
|
type UserCreatedWebhookPayload as UserCreatedWebhookPayload,
|
|
2919
3151
|
type UserLinkedAccountWebhookPayload as UserLinkedAccountWebhookPayload,
|
|
2920
3152
|
type UserOperationCompletedWebhookPayload as UserOperationCompletedWebhookPayload,
|
|
3153
|
+
type UserReference as UserReference,
|
|
2921
3154
|
type UserTransferredAccountWebhookPayload as UserTransferredAccountWebhookPayload,
|
|
2922
3155
|
type UserUnlinkedAccountWebhookPayload as UserUnlinkedAccountWebhookPayload,
|
|
2923
3156
|
type UserUpdatedAccountWebhookPayload as UserUpdatedAccountWebhookPayload,
|
|
@@ -2942,6 +3175,7 @@ export declare namespace Webhooks {
|
|
|
2942
3175
|
type WalletActionTransferFailedWebhookPayload as WalletActionTransferFailedWebhookPayload,
|
|
2943
3176
|
type WalletActionTransferRejectedWebhookPayload as WalletActionTransferRejectedWebhookPayload,
|
|
2944
3177
|
type WalletActionTransferSucceededWebhookPayload as WalletActionTransferSucceededWebhookPayload,
|
|
3178
|
+
type WalletArchivedWebhookPayload as WalletArchivedWebhookPayload,
|
|
2945
3179
|
type WalletFundsAsset as WalletFundsAsset,
|
|
2946
3180
|
type WalletFundsErc20Asset as WalletFundsErc20Asset,
|
|
2947
3181
|
type WalletFundsNativeTokenAsset as WalletFundsNativeTokenAsset,
|
|
@@ -2949,8 +3183,10 @@ export declare namespace Webhooks {
|
|
|
2949
3183
|
type WalletFundsSplAsset as WalletFundsSplAsset,
|
|
2950
3184
|
type WalletRecoveredWebhookPayload as WalletRecoveredWebhookPayload,
|
|
2951
3185
|
type WalletRecoverySetupWebhookPayload as WalletRecoverySetupWebhookPayload,
|
|
3186
|
+
type WalletRestoredWebhookPayload as WalletRestoredWebhookPayload,
|
|
2952
3187
|
type WebhookPayload as WebhookPayload,
|
|
2953
3188
|
type YieldClaimConfirmedWebhookPayload as YieldClaimConfirmedWebhookPayload,
|
|
3189
|
+
type YieldClaimReward as YieldClaimReward,
|
|
2954
3190
|
type YieldDepositConfirmedWebhookPayload as YieldDepositConfirmedWebhookPayload,
|
|
2955
3191
|
type YieldWithdrawConfirmedWebhookPayload as YieldWithdrawConfirmedWebhookPayload,
|
|
2956
3192
|
};
|