@privy-io/api-types 0.15.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 +141 -0
- package/client.d.mts +30 -33
- package/client.d.mts.map +1 -1
- package/client.d.ts +30 -33
- package/client.d.ts.map +1 -1
- package/client.js +9 -4
- package/client.js.map +1 -1
- package/client.mjs +9 -4
- 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 +32 -8
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +32 -8
- 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 +15 -16
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +15 -16
- 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/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 +208 -218
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +208 -218
- 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 +93 -24
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +93 -24
- 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/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} +383 -68
- package/resources/wallets/actions.d.mts.map +1 -0
- package/resources/{wallet-actions.d.mts → wallets/actions.d.ts} +383 -68
- 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 +11 -4
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +11 -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 +14 -3
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +14 -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 +846 -97
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +846 -97
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +19 -2
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +19 -2
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +596 -108
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +596 -108
- 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 +30 -30
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +30 -30
- 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 +223 -76
- 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 +41 -7
- package/src/resources/embedded-wallets.ts +7 -0
- package/src/resources/index.ts +107 -36
- package/src/resources/intents.ts +73 -91
- package/src/resources/key-quorums.ts +11 -9
- package/src/resources/kraken-embed.ts +560 -1065
- package/src/resources/onramps.ts +69 -54
- package/src/resources/policies.ts +162 -52
- package/src/resources/shared.ts +18 -2
- package/src/resources/swaps.ts +3 -2
- package/src/resources/transactions.ts +18 -9
- package/src/resources/users.ts +38 -6
- package/src/resources/{wallet-actions.ts → wallets/actions.ts} +496 -78
- package/src/resources/wallets/balance.ts +26 -56
- package/src/resources/wallets/index.ts +93 -0
- package/src/resources/wallets/transactions.ts +17 -10
- package/src/resources/wallets/wallets.ts +1312 -177
- package/src/resources/webhooks.ts +729 -118
- package/src/resources/yield.ts +33 -41
- 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
|
@@ -1,13 +1,29 @@
|
|
|
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
|
-
import * as
|
|
7
|
+
import * as ActionsAPI from './wallets/actions';
|
|
7
8
|
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.
|
|
@@ -830,7 +824,11 @@ export interface PrivateKeyExportWebhookPayload {
|
|
|
830
824
|
*/
|
|
831
825
|
wallet_id: string;
|
|
832
826
|
|
|
833
|
-
|
|
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;
|
|
834
832
|
}
|
|
835
833
|
|
|
836
834
|
/**
|
|
@@ -857,7 +855,11 @@ export interface SeedPhraseExportWebhookPayload {
|
|
|
857
855
|
*/
|
|
858
856
|
wallet_id: string;
|
|
859
857
|
|
|
860
|
-
|
|
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;
|
|
861
863
|
}
|
|
862
864
|
|
|
863
865
|
/**
|
|
@@ -1205,6 +1207,13 @@ export interface UserOperationCompletedWebhookPayload {
|
|
|
1205
1207
|
user_op_hash: string;
|
|
1206
1208
|
}
|
|
1207
1209
|
|
|
1210
|
+
/**
|
|
1211
|
+
* A reference to a user by their unique identifier.
|
|
1212
|
+
*/
|
|
1213
|
+
export interface UserReference {
|
|
1214
|
+
id: string;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1208
1217
|
/**
|
|
1209
1218
|
* Payload for the user.transferred_account webhook event.
|
|
1210
1219
|
*/
|
|
@@ -1216,7 +1225,10 @@ export interface UserTransferredAccountWebhookPayload {
|
|
|
1216
1225
|
|
|
1217
1226
|
deletedUser: true;
|
|
1218
1227
|
|
|
1219
|
-
|
|
1228
|
+
/**
|
|
1229
|
+
* A reference to a user by their unique identifier.
|
|
1230
|
+
*/
|
|
1231
|
+
fromUser: UserReference;
|
|
1220
1232
|
|
|
1221
1233
|
/**
|
|
1222
1234
|
* A Privy user object.
|
|
@@ -1229,12 +1241,6 @@ export interface UserTransferredAccountWebhookPayload {
|
|
|
1229
1241
|
type: 'user.transferred_account';
|
|
1230
1242
|
}
|
|
1231
1243
|
|
|
1232
|
-
export namespace UserTransferredAccountWebhookPayload {
|
|
1233
|
-
export interface FromUser {
|
|
1234
|
-
id: string;
|
|
1235
|
-
}
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
1244
|
/**
|
|
1239
1245
|
* Payload for the user.unlinked_account webhook event.
|
|
1240
1246
|
*/
|
|
@@ -1302,7 +1308,7 @@ export interface WalletActionEarnDepositCreatedWebhookPayload {
|
|
|
1302
1308
|
/**
|
|
1303
1309
|
* Type of wallet action
|
|
1304
1310
|
*/
|
|
1305
|
-
action_type:
|
|
1311
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1306
1312
|
|
|
1307
1313
|
/**
|
|
1308
1314
|
* Underlying asset token address.
|
|
@@ -1314,6 +1320,11 @@ export interface WalletActionEarnDepositCreatedWebhookPayload {
|
|
|
1314
1320
|
*/
|
|
1315
1321
|
caip2: string;
|
|
1316
1322
|
|
|
1323
|
+
/**
|
|
1324
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1325
|
+
*/
|
|
1326
|
+
created_at: string;
|
|
1327
|
+
|
|
1317
1328
|
/**
|
|
1318
1329
|
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
1319
1330
|
*/
|
|
@@ -1375,7 +1386,7 @@ export interface WalletActionEarnDepositFailedWebhookPayload {
|
|
|
1375
1386
|
/**
|
|
1376
1387
|
* Type of wallet action
|
|
1377
1388
|
*/
|
|
1378
|
-
action_type:
|
|
1389
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1379
1390
|
|
|
1380
1391
|
/**
|
|
1381
1392
|
* Underlying asset token address.
|
|
@@ -1387,10 +1398,20 @@ export interface WalletActionEarnDepositFailedWebhookPayload {
|
|
|
1387
1398
|
*/
|
|
1388
1399
|
caip2: string;
|
|
1389
1400
|
|
|
1401
|
+
/**
|
|
1402
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1403
|
+
*/
|
|
1404
|
+
created_at: string;
|
|
1405
|
+
|
|
1406
|
+
/**
|
|
1407
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
1408
|
+
*/
|
|
1409
|
+
failed_at: string;
|
|
1410
|
+
|
|
1390
1411
|
/**
|
|
1391
1412
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1392
1413
|
*/
|
|
1393
|
-
failure_reason:
|
|
1414
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1394
1415
|
|
|
1395
1416
|
/**
|
|
1396
1417
|
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
@@ -1406,7 +1427,7 @@ export interface WalletActionEarnDepositFailedWebhookPayload {
|
|
|
1406
1427
|
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1407
1428
|
* the failing step will have a failure_reason.
|
|
1408
1429
|
*/
|
|
1409
|
-
steps: Array<
|
|
1430
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1410
1431
|
|
|
1411
1432
|
/**
|
|
1412
1433
|
* The type of webhook event.
|
|
@@ -1459,7 +1480,7 @@ export interface WalletActionEarnDepositRejectedWebhookPayload {
|
|
|
1459
1480
|
/**
|
|
1460
1481
|
* Type of wallet action
|
|
1461
1482
|
*/
|
|
1462
|
-
action_type:
|
|
1483
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1463
1484
|
|
|
1464
1485
|
/**
|
|
1465
1486
|
* Underlying asset token address.
|
|
@@ -1471,16 +1492,26 @@ export interface WalletActionEarnDepositRejectedWebhookPayload {
|
|
|
1471
1492
|
*/
|
|
1472
1493
|
caip2: string;
|
|
1473
1494
|
|
|
1495
|
+
/**
|
|
1496
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1497
|
+
*/
|
|
1498
|
+
created_at: string;
|
|
1499
|
+
|
|
1474
1500
|
/**
|
|
1475
1501
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1476
1502
|
*/
|
|
1477
|
-
failure_reason:
|
|
1503
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1478
1504
|
|
|
1479
1505
|
/**
|
|
1480
1506
|
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
1481
1507
|
*/
|
|
1482
1508
|
raw_amount: string;
|
|
1483
1509
|
|
|
1510
|
+
/**
|
|
1511
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
1512
|
+
*/
|
|
1513
|
+
rejected_at: string;
|
|
1514
|
+
|
|
1484
1515
|
/**
|
|
1485
1516
|
* The status of the wallet action.
|
|
1486
1517
|
*/
|
|
@@ -1489,7 +1520,7 @@ export interface WalletActionEarnDepositRejectedWebhookPayload {
|
|
|
1489
1520
|
/**
|
|
1490
1521
|
* The steps of the wallet action at the time of rejection.
|
|
1491
1522
|
*/
|
|
1492
|
-
steps: Array<
|
|
1523
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1493
1524
|
|
|
1494
1525
|
/**
|
|
1495
1526
|
* The type of webhook event.
|
|
@@ -1542,7 +1573,7 @@ export interface WalletActionEarnDepositSucceededWebhookPayload {
|
|
|
1542
1573
|
/**
|
|
1543
1574
|
* Type of wallet action
|
|
1544
1575
|
*/
|
|
1545
|
-
action_type:
|
|
1576
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1546
1577
|
|
|
1547
1578
|
/**
|
|
1548
1579
|
* Underlying asset token address.
|
|
@@ -1554,6 +1585,16 @@ export interface WalletActionEarnDepositSucceededWebhookPayload {
|
|
|
1554
1585
|
*/
|
|
1555
1586
|
caip2: string;
|
|
1556
1587
|
|
|
1588
|
+
/**
|
|
1589
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
1590
|
+
*/
|
|
1591
|
+
completed_at: string;
|
|
1592
|
+
|
|
1593
|
+
/**
|
|
1594
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1595
|
+
*/
|
|
1596
|
+
created_at: string;
|
|
1597
|
+
|
|
1557
1598
|
/**
|
|
1558
1599
|
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
1559
1600
|
*/
|
|
@@ -1572,7 +1613,7 @@ export interface WalletActionEarnDepositSucceededWebhookPayload {
|
|
|
1572
1613
|
/**
|
|
1573
1614
|
* The steps of the wallet action, including transaction hashes.
|
|
1574
1615
|
*/
|
|
1575
|
-
steps: Array<
|
|
1616
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1576
1617
|
|
|
1577
1618
|
/**
|
|
1578
1619
|
* The type of webhook event.
|
|
@@ -1618,6 +1659,359 @@ export interface WalletActionEarnDepositSucceededWebhookPayload {
|
|
|
1618
1659
|
decimals?: number;
|
|
1619
1660
|
}
|
|
1620
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
|
+
|
|
1621
2015
|
/**
|
|
1622
2016
|
* Payload for the wallet_action.earn_incentive_claim.created webhook event.
|
|
1623
2017
|
*/
|
|
@@ -1625,17 +2019,22 @@ export interface WalletActionEarnIncentiveClaimCreatedWebhookPayload {
|
|
|
1625
2019
|
/**
|
|
1626
2020
|
* Type of wallet action
|
|
1627
2021
|
*/
|
|
1628
|
-
action_type:
|
|
2022
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1629
2023
|
|
|
1630
2024
|
/**
|
|
1631
2025
|
* EVM chain name (e.g. "base", "ethereum").
|
|
1632
2026
|
*/
|
|
1633
2027
|
chain: string;
|
|
1634
2028
|
|
|
2029
|
+
/**
|
|
2030
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2031
|
+
*/
|
|
2032
|
+
created_at: string;
|
|
2033
|
+
|
|
1635
2034
|
/**
|
|
1636
2035
|
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1637
2036
|
*/
|
|
1638
|
-
rewards: Array<
|
|
2037
|
+
rewards: Array<ActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
1639
2038
|
|
|
1640
2039
|
/**
|
|
1641
2040
|
* The status of the wallet action.
|
|
@@ -1665,22 +2064,32 @@ export interface WalletActionEarnIncentiveClaimFailedWebhookPayload {
|
|
|
1665
2064
|
/**
|
|
1666
2065
|
* Type of wallet action
|
|
1667
2066
|
*/
|
|
1668
|
-
action_type:
|
|
2067
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1669
2068
|
|
|
1670
2069
|
/**
|
|
1671
2070
|
* EVM chain name (e.g. "base", "ethereum").
|
|
1672
2071
|
*/
|
|
1673
2072
|
chain: string;
|
|
1674
2073
|
|
|
2074
|
+
/**
|
|
2075
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2076
|
+
*/
|
|
2077
|
+
created_at: string;
|
|
2078
|
+
|
|
2079
|
+
/**
|
|
2080
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
2081
|
+
*/
|
|
2082
|
+
failed_at: string;
|
|
2083
|
+
|
|
1675
2084
|
/**
|
|
1676
2085
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1677
2086
|
*/
|
|
1678
|
-
failure_reason:
|
|
2087
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1679
2088
|
|
|
1680
2089
|
/**
|
|
1681
2090
|
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1682
2091
|
*/
|
|
1683
|
-
rewards: Array<
|
|
2092
|
+
rewards: Array<ActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
1684
2093
|
|
|
1685
2094
|
/**
|
|
1686
2095
|
* The status of the wallet action.
|
|
@@ -1691,7 +2100,7 @@ export interface WalletActionEarnIncentiveClaimFailedWebhookPayload {
|
|
|
1691
2100
|
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1692
2101
|
* the failing step will have a failure_reason.
|
|
1693
2102
|
*/
|
|
1694
|
-
steps: Array<
|
|
2103
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1695
2104
|
|
|
1696
2105
|
/**
|
|
1697
2106
|
* The type of webhook event.
|
|
@@ -1716,22 +2125,32 @@ export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
|
|
|
1716
2125
|
/**
|
|
1717
2126
|
* Type of wallet action
|
|
1718
2127
|
*/
|
|
1719
|
-
action_type:
|
|
2128
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1720
2129
|
|
|
1721
2130
|
/**
|
|
1722
2131
|
* EVM chain name (e.g. "base", "ethereum").
|
|
1723
2132
|
*/
|
|
1724
2133
|
chain: string;
|
|
1725
2134
|
|
|
2135
|
+
/**
|
|
2136
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2137
|
+
*/
|
|
2138
|
+
created_at: string;
|
|
2139
|
+
|
|
1726
2140
|
/**
|
|
1727
2141
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1728
2142
|
*/
|
|
1729
|
-
failure_reason:
|
|
2143
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
2144
|
+
|
|
2145
|
+
/**
|
|
2146
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
2147
|
+
*/
|
|
2148
|
+
rejected_at: string;
|
|
1730
2149
|
|
|
1731
2150
|
/**
|
|
1732
2151
|
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1733
2152
|
*/
|
|
1734
|
-
rewards: Array<
|
|
2153
|
+
rewards: Array<ActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
1735
2154
|
|
|
1736
2155
|
/**
|
|
1737
2156
|
* The status of the wallet action.
|
|
@@ -1741,7 +2160,7 @@ export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
|
|
|
1741
2160
|
/**
|
|
1742
2161
|
* The steps of the wallet action at the time of rejection.
|
|
1743
2162
|
*/
|
|
1744
|
-
steps: Array<
|
|
2163
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1745
2164
|
|
|
1746
2165
|
/**
|
|
1747
2166
|
* The type of webhook event.
|
|
@@ -1766,17 +2185,27 @@ export interface WalletActionEarnIncentiveClaimSucceededWebhookPayload {
|
|
|
1766
2185
|
/**
|
|
1767
2186
|
* Type of wallet action
|
|
1768
2187
|
*/
|
|
1769
|
-
action_type:
|
|
2188
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1770
2189
|
|
|
1771
2190
|
/**
|
|
1772
2191
|
* EVM chain name (e.g. "base", "ethereum").
|
|
1773
2192
|
*/
|
|
1774
2193
|
chain: string;
|
|
1775
2194
|
|
|
2195
|
+
/**
|
|
2196
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
2197
|
+
*/
|
|
2198
|
+
completed_at: string;
|
|
2199
|
+
|
|
2200
|
+
/**
|
|
2201
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2202
|
+
*/
|
|
2203
|
+
created_at: string;
|
|
2204
|
+
|
|
1776
2205
|
/**
|
|
1777
2206
|
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1778
2207
|
*/
|
|
1779
|
-
rewards: Array<
|
|
2208
|
+
rewards: Array<ActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
1780
2209
|
|
|
1781
2210
|
/**
|
|
1782
2211
|
* The status of the wallet action.
|
|
@@ -1786,7 +2215,7 @@ export interface WalletActionEarnIncentiveClaimSucceededWebhookPayload {
|
|
|
1786
2215
|
/**
|
|
1787
2216
|
* The steps of the wallet action, including transaction hashes.
|
|
1788
2217
|
*/
|
|
1789
|
-
steps: Array<
|
|
2218
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1790
2219
|
|
|
1791
2220
|
/**
|
|
1792
2221
|
* The type of webhook event.
|
|
@@ -1811,7 +2240,7 @@ export interface WalletActionEarnWithdrawCreatedWebhookPayload {
|
|
|
1811
2240
|
/**
|
|
1812
2241
|
* Type of wallet action
|
|
1813
2242
|
*/
|
|
1814
|
-
action_type:
|
|
2243
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1815
2244
|
|
|
1816
2245
|
/**
|
|
1817
2246
|
* Underlying asset token address.
|
|
@@ -1823,6 +2252,11 @@ export interface WalletActionEarnWithdrawCreatedWebhookPayload {
|
|
|
1823
2252
|
*/
|
|
1824
2253
|
caip2: string;
|
|
1825
2254
|
|
|
2255
|
+
/**
|
|
2256
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2257
|
+
*/
|
|
2258
|
+
created_at: string;
|
|
2259
|
+
|
|
1826
2260
|
/**
|
|
1827
2261
|
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
1828
2262
|
*/
|
|
@@ -1884,7 +2318,7 @@ export interface WalletActionEarnWithdrawFailedWebhookPayload {
|
|
|
1884
2318
|
/**
|
|
1885
2319
|
* Type of wallet action
|
|
1886
2320
|
*/
|
|
1887
|
-
action_type:
|
|
2321
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1888
2322
|
|
|
1889
2323
|
/**
|
|
1890
2324
|
* Underlying asset token address.
|
|
@@ -1896,10 +2330,20 @@ export interface WalletActionEarnWithdrawFailedWebhookPayload {
|
|
|
1896
2330
|
*/
|
|
1897
2331
|
caip2: string;
|
|
1898
2332
|
|
|
2333
|
+
/**
|
|
2334
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2335
|
+
*/
|
|
2336
|
+
created_at: string;
|
|
2337
|
+
|
|
2338
|
+
/**
|
|
2339
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
2340
|
+
*/
|
|
2341
|
+
failed_at: string;
|
|
2342
|
+
|
|
1899
2343
|
/**
|
|
1900
2344
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1901
2345
|
*/
|
|
1902
|
-
failure_reason:
|
|
2346
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1903
2347
|
|
|
1904
2348
|
/**
|
|
1905
2349
|
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
@@ -1915,7 +2359,7 @@ export interface WalletActionEarnWithdrawFailedWebhookPayload {
|
|
|
1915
2359
|
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1916
2360
|
* the failing step will have a failure_reason.
|
|
1917
2361
|
*/
|
|
1918
|
-
steps: Array<
|
|
2362
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1919
2363
|
|
|
1920
2364
|
/**
|
|
1921
2365
|
* The type of webhook event.
|
|
@@ -1968,7 +2412,7 @@ export interface WalletActionEarnWithdrawRejectedWebhookPayload {
|
|
|
1968
2412
|
/**
|
|
1969
2413
|
* Type of wallet action
|
|
1970
2414
|
*/
|
|
1971
|
-
action_type:
|
|
2415
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1972
2416
|
|
|
1973
2417
|
/**
|
|
1974
2418
|
* Underlying asset token address.
|
|
@@ -1980,16 +2424,26 @@ export interface WalletActionEarnWithdrawRejectedWebhookPayload {
|
|
|
1980
2424
|
*/
|
|
1981
2425
|
caip2: string;
|
|
1982
2426
|
|
|
2427
|
+
/**
|
|
2428
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2429
|
+
*/
|
|
2430
|
+
created_at: string;
|
|
2431
|
+
|
|
1983
2432
|
/**
|
|
1984
2433
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1985
2434
|
*/
|
|
1986
|
-
failure_reason:
|
|
2435
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1987
2436
|
|
|
1988
2437
|
/**
|
|
1989
2438
|
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
1990
2439
|
*/
|
|
1991
2440
|
raw_amount: string;
|
|
1992
2441
|
|
|
2442
|
+
/**
|
|
2443
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
2444
|
+
*/
|
|
2445
|
+
rejected_at: string;
|
|
2446
|
+
|
|
1993
2447
|
/**
|
|
1994
2448
|
* The status of the wallet action.
|
|
1995
2449
|
*/
|
|
@@ -1998,7 +2452,7 @@ export interface WalletActionEarnWithdrawRejectedWebhookPayload {
|
|
|
1998
2452
|
/**
|
|
1999
2453
|
* The steps of the wallet action at the time of rejection.
|
|
2000
2454
|
*/
|
|
2001
|
-
steps: Array<
|
|
2455
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2002
2456
|
|
|
2003
2457
|
/**
|
|
2004
2458
|
* The type of webhook event.
|
|
@@ -2051,7 +2505,7 @@ export interface WalletActionEarnWithdrawSucceededWebhookPayload {
|
|
|
2051
2505
|
/**
|
|
2052
2506
|
* Type of wallet action
|
|
2053
2507
|
*/
|
|
2054
|
-
action_type:
|
|
2508
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2055
2509
|
|
|
2056
2510
|
/**
|
|
2057
2511
|
* Underlying asset token address.
|
|
@@ -2063,6 +2517,16 @@ export interface WalletActionEarnWithdrawSucceededWebhookPayload {
|
|
|
2063
2517
|
*/
|
|
2064
2518
|
caip2: string;
|
|
2065
2519
|
|
|
2520
|
+
/**
|
|
2521
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
2522
|
+
*/
|
|
2523
|
+
completed_at: string;
|
|
2524
|
+
|
|
2525
|
+
/**
|
|
2526
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2527
|
+
*/
|
|
2528
|
+
created_at: string;
|
|
2529
|
+
|
|
2066
2530
|
/**
|
|
2067
2531
|
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
2068
2532
|
*/
|
|
@@ -2081,7 +2545,7 @@ export interface WalletActionEarnWithdrawSucceededWebhookPayload {
|
|
|
2081
2545
|
/**
|
|
2082
2546
|
* The steps of the wallet action, including transaction hashes.
|
|
2083
2547
|
*/
|
|
2084
|
-
steps: Array<
|
|
2548
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2085
2549
|
|
|
2086
2550
|
/**
|
|
2087
2551
|
* The type of webhook event.
|
|
@@ -2134,7 +2598,7 @@ export interface WalletActionSwapCreatedWebhookPayload {
|
|
|
2134
2598
|
/**
|
|
2135
2599
|
* Type of wallet action
|
|
2136
2600
|
*/
|
|
2137
|
-
action_type:
|
|
2601
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2138
2602
|
|
|
2139
2603
|
/**
|
|
2140
2604
|
* Chain identifier.
|
|
@@ -2142,7 +2606,12 @@ export interface WalletActionSwapCreatedWebhookPayload {
|
|
|
2142
2606
|
caip2: string;
|
|
2143
2607
|
|
|
2144
2608
|
/**
|
|
2145
|
-
*
|
|
2609
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2610
|
+
*/
|
|
2611
|
+
created_at: string;
|
|
2612
|
+
|
|
2613
|
+
/**
|
|
2614
|
+
* Amount of input token in base units. Populated after onchain confirmation.
|
|
2146
2615
|
*/
|
|
2147
2616
|
input_amount: string | null;
|
|
2148
2617
|
|
|
@@ -2184,20 +2653,30 @@ export interface WalletActionSwapFailedWebhookPayload {
|
|
|
2184
2653
|
/**
|
|
2185
2654
|
* Type of wallet action
|
|
2186
2655
|
*/
|
|
2187
|
-
action_type:
|
|
2656
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2188
2657
|
|
|
2189
2658
|
/**
|
|
2190
2659
|
* Chain identifier.
|
|
2191
2660
|
*/
|
|
2192
2661
|
caip2: string;
|
|
2193
2662
|
|
|
2663
|
+
/**
|
|
2664
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2665
|
+
*/
|
|
2666
|
+
created_at: string;
|
|
2667
|
+
|
|
2668
|
+
/**
|
|
2669
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
2670
|
+
*/
|
|
2671
|
+
failed_at: string;
|
|
2672
|
+
|
|
2194
2673
|
/**
|
|
2195
2674
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
2196
2675
|
*/
|
|
2197
|
-
failure_reason:
|
|
2676
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
2198
2677
|
|
|
2199
2678
|
/**
|
|
2200
|
-
* Amount of input token in base units. Populated after
|
|
2679
|
+
* Amount of input token in base units. Populated after onchain confirmation.
|
|
2201
2680
|
*/
|
|
2202
2681
|
input_amount: string | null;
|
|
2203
2682
|
|
|
@@ -2220,7 +2699,7 @@ export interface WalletActionSwapFailedWebhookPayload {
|
|
|
2220
2699
|
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
2221
2700
|
* the failing step will have a failure_reason.
|
|
2222
2701
|
*/
|
|
2223
|
-
steps: Array<
|
|
2702
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2224
2703
|
|
|
2225
2704
|
/**
|
|
2226
2705
|
* The type of webhook event.
|
|
@@ -2245,20 +2724,25 @@ export interface WalletActionSwapRejectedWebhookPayload {
|
|
|
2245
2724
|
/**
|
|
2246
2725
|
* Type of wallet action
|
|
2247
2726
|
*/
|
|
2248
|
-
action_type:
|
|
2727
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2249
2728
|
|
|
2250
2729
|
/**
|
|
2251
2730
|
* Chain identifier.
|
|
2252
2731
|
*/
|
|
2253
2732
|
caip2: string;
|
|
2254
2733
|
|
|
2734
|
+
/**
|
|
2735
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2736
|
+
*/
|
|
2737
|
+
created_at: string;
|
|
2738
|
+
|
|
2255
2739
|
/**
|
|
2256
2740
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
2257
2741
|
*/
|
|
2258
|
-
failure_reason:
|
|
2742
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
2259
2743
|
|
|
2260
2744
|
/**
|
|
2261
|
-
* Amount of input token in base units. Populated after
|
|
2745
|
+
* Amount of input token in base units. Populated after onchain confirmation.
|
|
2262
2746
|
*/
|
|
2263
2747
|
input_amount: string | null;
|
|
2264
2748
|
|
|
@@ -2272,6 +2756,11 @@ export interface WalletActionSwapRejectedWebhookPayload {
|
|
|
2272
2756
|
*/
|
|
2273
2757
|
output_token: string;
|
|
2274
2758
|
|
|
2759
|
+
/**
|
|
2760
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
2761
|
+
*/
|
|
2762
|
+
rejected_at: string;
|
|
2763
|
+
|
|
2275
2764
|
/**
|
|
2276
2765
|
* The status of the wallet action.
|
|
2277
2766
|
*/
|
|
@@ -2280,7 +2769,7 @@ export interface WalletActionSwapRejectedWebhookPayload {
|
|
|
2280
2769
|
/**
|
|
2281
2770
|
* The steps of the wallet action at the time of rejection.
|
|
2282
2771
|
*/
|
|
2283
|
-
steps: Array<
|
|
2772
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2284
2773
|
|
|
2285
2774
|
/**
|
|
2286
2775
|
* The type of webhook event.
|
|
@@ -2305,7 +2794,7 @@ export interface WalletActionSwapSucceededWebhookPayload {
|
|
|
2305
2794
|
/**
|
|
2306
2795
|
* Type of wallet action
|
|
2307
2796
|
*/
|
|
2308
|
-
action_type:
|
|
2797
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2309
2798
|
|
|
2310
2799
|
/**
|
|
2311
2800
|
* Chain identifier.
|
|
@@ -2313,7 +2802,17 @@ export interface WalletActionSwapSucceededWebhookPayload {
|
|
|
2313
2802
|
caip2: string;
|
|
2314
2803
|
|
|
2315
2804
|
/**
|
|
2316
|
-
*
|
|
2805
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
2806
|
+
*/
|
|
2807
|
+
completed_at: string;
|
|
2808
|
+
|
|
2809
|
+
/**
|
|
2810
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2811
|
+
*/
|
|
2812
|
+
created_at: string;
|
|
2813
|
+
|
|
2814
|
+
/**
|
|
2815
|
+
* Amount of input token in base units. Populated after onchain confirmation.
|
|
2317
2816
|
*/
|
|
2318
2817
|
input_amount: string | null;
|
|
2319
2818
|
|
|
@@ -2323,7 +2822,7 @@ export interface WalletActionSwapSucceededWebhookPayload {
|
|
|
2323
2822
|
input_token: string;
|
|
2324
2823
|
|
|
2325
2824
|
/**
|
|
2326
|
-
* Amount of output token received, in base units. Populated after
|
|
2825
|
+
* Amount of output token received, in base units. Populated after onchain
|
|
2327
2826
|
* confirmation.
|
|
2328
2827
|
*/
|
|
2329
2828
|
output_amount: string | null;
|
|
@@ -2341,7 +2840,7 @@ export interface WalletActionSwapSucceededWebhookPayload {
|
|
|
2341
2840
|
/**
|
|
2342
2841
|
* The steps of the wallet action, including transaction hashes.
|
|
2343
2842
|
*/
|
|
2344
|
-
steps: Array<
|
|
2843
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2345
2844
|
|
|
2346
2845
|
/**
|
|
2347
2846
|
* The type of webhook event.
|
|
@@ -2366,7 +2865,12 @@ export interface WalletActionTransferCreatedWebhookPayload {
|
|
|
2366
2865
|
/**
|
|
2367
2866
|
* Type of wallet action
|
|
2368
2867
|
*/
|
|
2369
|
-
action_type:
|
|
2868
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2869
|
+
|
|
2870
|
+
/**
|
|
2871
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2872
|
+
*/
|
|
2873
|
+
created_at: string;
|
|
2370
2874
|
|
|
2371
2875
|
/**
|
|
2372
2876
|
* Recipient address.
|
|
@@ -2418,7 +2922,7 @@ export interface WalletActionTransferCreatedWebhookPayload {
|
|
|
2418
2922
|
|
|
2419
2923
|
/**
|
|
2420
2924
|
* Number of decimals for the transferred token. Present when the transfer was
|
|
2421
|
-
* initiated with `asset_address` and the decimals were resolved
|
|
2925
|
+
* initiated with `asset_address` and the decimals were resolved onchain.
|
|
2422
2926
|
*/
|
|
2423
2927
|
source_asset_decimals?: number;
|
|
2424
2928
|
}
|
|
@@ -2430,17 +2934,27 @@ export interface WalletActionTransferFailedWebhookPayload {
|
|
|
2430
2934
|
/**
|
|
2431
2935
|
* Type of wallet action
|
|
2432
2936
|
*/
|
|
2433
|
-
action_type:
|
|
2937
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2938
|
+
|
|
2939
|
+
/**
|
|
2940
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2941
|
+
*/
|
|
2942
|
+
created_at: string;
|
|
2434
2943
|
|
|
2435
2944
|
/**
|
|
2436
2945
|
* Recipient address.
|
|
2437
2946
|
*/
|
|
2438
2947
|
destination_address: string;
|
|
2439
2948
|
|
|
2949
|
+
/**
|
|
2950
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
2951
|
+
*/
|
|
2952
|
+
failed_at: string;
|
|
2953
|
+
|
|
2440
2954
|
/**
|
|
2441
2955
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
2442
2956
|
*/
|
|
2443
|
-
failure_reason:
|
|
2957
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
2444
2958
|
|
|
2445
2959
|
/**
|
|
2446
2960
|
* Chain name (e.g. "base", "ethereum").
|
|
@@ -2456,7 +2970,7 @@ export interface WalletActionTransferFailedWebhookPayload {
|
|
|
2456
2970
|
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
2457
2971
|
* the failing step will have a failure_reason.
|
|
2458
2972
|
*/
|
|
2459
|
-
steps: Array<
|
|
2973
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2460
2974
|
|
|
2461
2975
|
/**
|
|
2462
2976
|
* The type of webhook event.
|
|
@@ -2493,7 +3007,7 @@ export interface WalletActionTransferFailedWebhookPayload {
|
|
|
2493
3007
|
|
|
2494
3008
|
/**
|
|
2495
3009
|
* Number of decimals for the transferred token. Present when the transfer was
|
|
2496
|
-
* initiated with `asset_address` and the decimals were resolved
|
|
3010
|
+
* initiated with `asset_address` and the decimals were resolved onchain.
|
|
2497
3011
|
*/
|
|
2498
3012
|
source_asset_decimals?: number;
|
|
2499
3013
|
}
|
|
@@ -2505,7 +3019,12 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
2505
3019
|
/**
|
|
2506
3020
|
* Type of wallet action
|
|
2507
3021
|
*/
|
|
2508
|
-
action_type:
|
|
3022
|
+
action_type: ActionsAPI.WalletActionType;
|
|
3023
|
+
|
|
3024
|
+
/**
|
|
3025
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
3026
|
+
*/
|
|
3027
|
+
created_at: string;
|
|
2509
3028
|
|
|
2510
3029
|
/**
|
|
2511
3030
|
* Recipient address.
|
|
@@ -2515,7 +3034,12 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
2515
3034
|
/**
|
|
2516
3035
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
2517
3036
|
*/
|
|
2518
|
-
failure_reason:
|
|
3037
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
3038
|
+
|
|
3039
|
+
/**
|
|
3040
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
3041
|
+
*/
|
|
3042
|
+
rejected_at: string;
|
|
2519
3043
|
|
|
2520
3044
|
/**
|
|
2521
3045
|
* Chain name (e.g. "base", "ethereum").
|
|
@@ -2530,7 +3054,7 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
2530
3054
|
/**
|
|
2531
3055
|
* The steps of the wallet action at the time of rejection.
|
|
2532
3056
|
*/
|
|
2533
|
-
steps: Array<
|
|
3057
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2534
3058
|
|
|
2535
3059
|
/**
|
|
2536
3060
|
* The type of webhook event.
|
|
@@ -2567,7 +3091,7 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
2567
3091
|
|
|
2568
3092
|
/**
|
|
2569
3093
|
* Number of decimals for the transferred token. Present when the transfer was
|
|
2570
|
-
* initiated with `asset_address` and the decimals were resolved
|
|
3094
|
+
* initiated with `asset_address` and the decimals were resolved onchain.
|
|
2571
3095
|
*/
|
|
2572
3096
|
source_asset_decimals?: number;
|
|
2573
3097
|
}
|
|
@@ -2579,7 +3103,17 @@ export interface WalletActionTransferSucceededWebhookPayload {
|
|
|
2579
3103
|
/**
|
|
2580
3104
|
* Type of wallet action
|
|
2581
3105
|
*/
|
|
2582
|
-
action_type:
|
|
3106
|
+
action_type: ActionsAPI.WalletActionType;
|
|
3107
|
+
|
|
3108
|
+
/**
|
|
3109
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
3110
|
+
*/
|
|
3111
|
+
completed_at: string;
|
|
3112
|
+
|
|
3113
|
+
/**
|
|
3114
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
3115
|
+
*/
|
|
3116
|
+
created_at: string;
|
|
2583
3117
|
|
|
2584
3118
|
/**
|
|
2585
3119
|
* Recipient address.
|
|
@@ -2599,7 +3133,7 @@ export interface WalletActionTransferSucceededWebhookPayload {
|
|
|
2599
3133
|
/**
|
|
2600
3134
|
* The steps of the wallet action, including transaction hashes.
|
|
2601
3135
|
*/
|
|
2602
|
-
steps: Array<
|
|
3136
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2603
3137
|
|
|
2604
3138
|
/**
|
|
2605
3139
|
* The type of webhook event.
|
|
@@ -2636,11 +3170,41 @@ export interface WalletActionTransferSucceededWebhookPayload {
|
|
|
2636
3170
|
|
|
2637
3171
|
/**
|
|
2638
3172
|
* Number of decimals for the transferred token. Present when the transfer was
|
|
2639
|
-
* initiated with `asset_address` and the decimals were resolved
|
|
3173
|
+
* initiated with `asset_address` and the decimals were resolved onchain.
|
|
2640
3174
|
*/
|
|
2641
3175
|
source_asset_decimals?: number;
|
|
2642
3176
|
}
|
|
2643
3177
|
|
|
3178
|
+
/**
|
|
3179
|
+
* Payload for the wallet.archived webhook event.
|
|
3180
|
+
*/
|
|
3181
|
+
export interface WalletArchivedWebhookPayload {
|
|
3182
|
+
/**
|
|
3183
|
+
* Unix timestamp of when the wallet was archived.
|
|
3184
|
+
*/
|
|
3185
|
+
archived_at: number;
|
|
3186
|
+
|
|
3187
|
+
/**
|
|
3188
|
+
* The chain type of the archived wallet.
|
|
3189
|
+
*/
|
|
3190
|
+
chain_type: string;
|
|
3191
|
+
|
|
3192
|
+
/**
|
|
3193
|
+
* The type of webhook event.
|
|
3194
|
+
*/
|
|
3195
|
+
type: 'wallet.archived';
|
|
3196
|
+
|
|
3197
|
+
/**
|
|
3198
|
+
* The address of the archived wallet.
|
|
3199
|
+
*/
|
|
3200
|
+
wallet_address: string;
|
|
3201
|
+
|
|
3202
|
+
/**
|
|
3203
|
+
* The ID of the archived wallet.
|
|
3204
|
+
*/
|
|
3205
|
+
wallet_id: string;
|
|
3206
|
+
}
|
|
3207
|
+
|
|
2644
3208
|
/**
|
|
2645
3209
|
* An asset involved in a wallet transfer.
|
|
2646
3210
|
*/
|
|
@@ -2711,20 +3275,25 @@ export interface WalletRecoveredWebhookPayload {
|
|
|
2711
3275
|
wallet_id: string;
|
|
2712
3276
|
}
|
|
2713
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
|
+
|
|
2714
3289
|
/**
|
|
2715
3290
|
* Payload for the wallet.recovery_setup webhook event.
|
|
2716
3291
|
*/
|
|
2717
3292
|
export interface WalletRecoverySetupWebhookPayload {
|
|
2718
3293
|
/**
|
|
2719
|
-
*
|
|
3294
|
+
* Recovery method types for embedded wallet recovery setup webhooks.
|
|
2720
3295
|
*/
|
|
2721
|
-
method:
|
|
2722
|
-
| 'user_passcode_derived_recovery_key'
|
|
2723
|
-
| 'privy_passcode_derived_recovery_key'
|
|
2724
|
-
| 'privy_generated_recovery_key'
|
|
2725
|
-
| 'google_drive_recovery_secret'
|
|
2726
|
-
| 'icloud_recovery_secret'
|
|
2727
|
-
| 'recovery_encryption_key';
|
|
3296
|
+
method: WalletRecoverySetupMethod;
|
|
2728
3297
|
|
|
2729
3298
|
/**
|
|
2730
3299
|
* The type of webhook event.
|
|
@@ -2747,6 +3316,31 @@ export interface WalletRecoverySetupWebhookPayload {
|
|
|
2747
3316
|
wallet_id: string;
|
|
2748
3317
|
}
|
|
2749
3318
|
|
|
3319
|
+
/**
|
|
3320
|
+
* Payload for the wallet.restored webhook event.
|
|
3321
|
+
*/
|
|
3322
|
+
export interface WalletRestoredWebhookPayload {
|
|
3323
|
+
/**
|
|
3324
|
+
* The chain type of the restored wallet.
|
|
3325
|
+
*/
|
|
3326
|
+
chain_type: string;
|
|
3327
|
+
|
|
3328
|
+
/**
|
|
3329
|
+
* The type of webhook event.
|
|
3330
|
+
*/
|
|
3331
|
+
type: 'wallet.restored';
|
|
3332
|
+
|
|
3333
|
+
/**
|
|
3334
|
+
* The address of the restored wallet.
|
|
3335
|
+
*/
|
|
3336
|
+
wallet_address: string;
|
|
3337
|
+
|
|
3338
|
+
/**
|
|
3339
|
+
* The ID of the restored wallet.
|
|
3340
|
+
*/
|
|
3341
|
+
wallet_id: string;
|
|
3342
|
+
}
|
|
3343
|
+
|
|
2750
3344
|
/**
|
|
2751
3345
|
* Union of all webhook payload schemas.
|
|
2752
3346
|
*/
|
|
@@ -2771,6 +3365,8 @@ export type WebhookPayload =
|
|
|
2771
3365
|
| SeedPhraseExportWebhookPayload
|
|
2772
3366
|
| WalletRecoverySetupWebhookPayload
|
|
2773
3367
|
| WalletRecoveredWebhookPayload
|
|
3368
|
+
| WalletArchivedWebhookPayload
|
|
3369
|
+
| WalletRestoredWebhookPayload
|
|
2774
3370
|
| MfaEnabledWebhookPayload
|
|
2775
3371
|
| MfaDisabledWebhookPayload
|
|
2776
3372
|
| YieldDepositConfirmedWebhookPayload
|
|
@@ -2801,7 +3397,11 @@ export type WebhookPayload =
|
|
|
2801
3397
|
| WalletActionEarnIncentiveClaimCreatedWebhookPayload
|
|
2802
3398
|
| WalletActionEarnIncentiveClaimSucceededWebhookPayload
|
|
2803
3399
|
| WalletActionEarnIncentiveClaimRejectedWebhookPayload
|
|
2804
|
-
| WalletActionEarnIncentiveClaimFailedWebhookPayload
|
|
3400
|
+
| WalletActionEarnIncentiveClaimFailedWebhookPayload
|
|
3401
|
+
| WalletActionEarnFeeCollectCreatedWebhookPayload
|
|
3402
|
+
| WalletActionEarnFeeCollectSucceededWebhookPayload
|
|
3403
|
+
| WalletActionEarnFeeCollectRejectedWebhookPayload
|
|
3404
|
+
| WalletActionEarnFeeCollectFailedWebhookPayload;
|
|
2805
3405
|
|
|
2806
3406
|
/**
|
|
2807
3407
|
* Payload for the yield.claim.confirmed webhook event.
|
|
@@ -2809,7 +3409,7 @@ export type WebhookPayload =
|
|
|
2809
3409
|
export interface YieldClaimConfirmedWebhookPayload {
|
|
2810
3410
|
caip2: string;
|
|
2811
3411
|
|
|
2812
|
-
rewards: Array<
|
|
3412
|
+
rewards: Array<YieldClaimReward>;
|
|
2813
3413
|
|
|
2814
3414
|
transaction_id: string;
|
|
2815
3415
|
|
|
@@ -2821,14 +3421,15 @@ export interface YieldClaimConfirmedWebhookPayload {
|
|
|
2821
3421
|
wallet_id: string;
|
|
2822
3422
|
}
|
|
2823
3423
|
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
3424
|
+
/**
|
|
3425
|
+
* A single reward token claimed from a yield vault.
|
|
3426
|
+
*/
|
|
3427
|
+
export interface YieldClaimReward {
|
|
3428
|
+
amount: string;
|
|
2827
3429
|
|
|
2828
|
-
|
|
3430
|
+
token_address: string;
|
|
2829
3431
|
|
|
2830
|
-
|
|
2831
|
-
}
|
|
3432
|
+
token_symbol: string;
|
|
2832
3433
|
}
|
|
2833
3434
|
|
|
2834
3435
|
/**
|
|
@@ -2879,6 +3480,7 @@ export interface YieldWithdrawConfirmedWebhookPayload {
|
|
|
2879
3480
|
|
|
2880
3481
|
export declare namespace Webhooks {
|
|
2881
3482
|
export {
|
|
3483
|
+
type BlockInfo as BlockInfo,
|
|
2882
3484
|
type BridgeCryptoDepositMetadata as BridgeCryptoDepositMetadata,
|
|
2883
3485
|
type BridgeCryptoTransferMetadata as BridgeCryptoTransferMetadata,
|
|
2884
3486
|
type BridgeFiatDepositMetadata as BridgeFiatDepositMetadata,
|
|
@@ -2918,6 +3520,7 @@ export declare namespace Webhooks {
|
|
|
2918
3520
|
type UserCreatedWebhookPayload as UserCreatedWebhookPayload,
|
|
2919
3521
|
type UserLinkedAccountWebhookPayload as UserLinkedAccountWebhookPayload,
|
|
2920
3522
|
type UserOperationCompletedWebhookPayload as UserOperationCompletedWebhookPayload,
|
|
3523
|
+
type UserReference as UserReference,
|
|
2921
3524
|
type UserTransferredAccountWebhookPayload as UserTransferredAccountWebhookPayload,
|
|
2922
3525
|
type UserUnlinkedAccountWebhookPayload as UserUnlinkedAccountWebhookPayload,
|
|
2923
3526
|
type UserUpdatedAccountWebhookPayload as UserUpdatedAccountWebhookPayload,
|
|
@@ -2926,6 +3529,10 @@ export declare namespace Webhooks {
|
|
|
2926
3529
|
type WalletActionEarnDepositFailedWebhookPayload as WalletActionEarnDepositFailedWebhookPayload,
|
|
2927
3530
|
type WalletActionEarnDepositRejectedWebhookPayload as WalletActionEarnDepositRejectedWebhookPayload,
|
|
2928
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,
|
|
2929
3536
|
type WalletActionEarnIncentiveClaimCreatedWebhookPayload as WalletActionEarnIncentiveClaimCreatedWebhookPayload,
|
|
2930
3537
|
type WalletActionEarnIncentiveClaimFailedWebhookPayload as WalletActionEarnIncentiveClaimFailedWebhookPayload,
|
|
2931
3538
|
type WalletActionEarnIncentiveClaimRejectedWebhookPayload as WalletActionEarnIncentiveClaimRejectedWebhookPayload,
|
|
@@ -2942,15 +3549,19 @@ export declare namespace Webhooks {
|
|
|
2942
3549
|
type WalletActionTransferFailedWebhookPayload as WalletActionTransferFailedWebhookPayload,
|
|
2943
3550
|
type WalletActionTransferRejectedWebhookPayload as WalletActionTransferRejectedWebhookPayload,
|
|
2944
3551
|
type WalletActionTransferSucceededWebhookPayload as WalletActionTransferSucceededWebhookPayload,
|
|
3552
|
+
type WalletArchivedWebhookPayload as WalletArchivedWebhookPayload,
|
|
2945
3553
|
type WalletFundsAsset as WalletFundsAsset,
|
|
2946
3554
|
type WalletFundsErc20Asset as WalletFundsErc20Asset,
|
|
2947
3555
|
type WalletFundsNativeTokenAsset as WalletFundsNativeTokenAsset,
|
|
2948
3556
|
type WalletFundsSacAsset as WalletFundsSacAsset,
|
|
2949
3557
|
type WalletFundsSplAsset as WalletFundsSplAsset,
|
|
2950
3558
|
type WalletRecoveredWebhookPayload as WalletRecoveredWebhookPayload,
|
|
3559
|
+
type WalletRecoverySetupMethod as WalletRecoverySetupMethod,
|
|
2951
3560
|
type WalletRecoverySetupWebhookPayload as WalletRecoverySetupWebhookPayload,
|
|
3561
|
+
type WalletRestoredWebhookPayload as WalletRestoredWebhookPayload,
|
|
2952
3562
|
type WebhookPayload as WebhookPayload,
|
|
2953
3563
|
type YieldClaimConfirmedWebhookPayload as YieldClaimConfirmedWebhookPayload,
|
|
3564
|
+
type YieldClaimReward as YieldClaimReward,
|
|
2954
3565
|
type YieldDepositConfirmedWebhookPayload as YieldDepositConfirmedWebhookPayload,
|
|
2955
3566
|
type YieldWithdrawConfirmedWebhookPayload as YieldWithdrawConfirmedWebhookPayload,
|
|
2956
3567
|
};
|