@privy-io/api-types 0.8.0 → 0.9.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 +19 -0
- package/client.d.mts +19 -19
- package/client.d.mts.map +1 -1
- package/client.d.ts +19 -19
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +16 -2
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +16 -2
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +14 -14
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +14 -14
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +50 -50
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +50 -50
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/index.d.mts +11 -11
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -11
- 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 +2 -2
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +2 -2
- package/resources/intents.d.ts.map +1 -1
- package/resources/kraken-embed.d.mts +52 -1
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +52 -1
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/policies.d.mts +223 -112
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +223 -112
- package/resources/policies.d.ts.map +1 -1
- package/resources/swaps.d.mts +3 -3
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +3 -3
- package/resources/swaps.d.ts.map +1 -1
- package/resources/transactions.d.mts +10 -20
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +10 -20
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +199 -199
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +199 -199
- package/resources/users.d.ts.map +1 -1
- package/resources/wallet-actions.d.mts +255 -3
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +255 -3
- package/resources/wallet-actions.d.ts.map +1 -1
- package/resources/wallets/balance.d.mts +2 -1
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +2 -1
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.js.map +1 -1
- package/resources/wallets/balance.mjs.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 +10 -30
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +10 -30
- 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 +222 -116
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +222 -116
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +6 -5
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +6 -5
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +798 -93
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +798 -93
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +163 -35
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/apps.ts +24 -1
- package/src/resources/client-auth.ts +17 -17
- package/src/resources/embedded-wallets.ts +59 -59
- package/src/resources/index.ts +92 -31
- package/src/resources/intents.ts +2 -2
- package/src/resources/kraken-embed.ts +105 -0
- package/src/resources/policies.ts +310 -181
- package/src/resources/swaps.ts +4 -4
- package/src/resources/transactions.ts +11 -38
- package/src/resources/users.ts +724 -724
- package/src/resources/wallet-actions.ts +324 -2
- package/src/resources/wallets/balance.ts +2 -1
- package/src/resources/wallets/index.ts +13 -2
- package/src/resources/wallets/transactions.ts +10 -88
- package/src/resources/wallets/wallets.ts +319 -136
- package/src/resources/webhooks.ts +1021 -141
- 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
|
@@ -1146,213 +1146,1005 @@ export interface WalletActionTransferFailedWebhookPayload {
|
|
|
1146
1146
|
}
|
|
1147
1147
|
|
|
1148
1148
|
/**
|
|
1149
|
-
* Payload for the
|
|
1149
|
+
* Payload for the wallet_action.earn_deposit.created webhook event.
|
|
1150
|
+
*/
|
|
1151
|
+
export interface WalletActionEarnDepositCreatedWebhookPayload {
|
|
1152
|
+
/**
|
|
1153
|
+
* Type of wallet action
|
|
1154
|
+
*/
|
|
1155
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1156
|
+
|
|
1157
|
+
/**
|
|
1158
|
+
* Underlying asset token address.
|
|
1159
|
+
*/
|
|
1160
|
+
asset_address: string;
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* CAIP-2 chain identifier.
|
|
1164
|
+
*/
|
|
1165
|
+
caip2: string;
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
1169
|
+
*/
|
|
1170
|
+
raw_amount: string;
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
* Status of a wallet action.
|
|
1174
|
+
*/
|
|
1175
|
+
status: WalletActionsAPI.WalletActionStatus;
|
|
1176
|
+
|
|
1177
|
+
/**
|
|
1178
|
+
* The type of webhook event.
|
|
1179
|
+
*/
|
|
1180
|
+
type: 'wallet_action.earn_deposit.created';
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* ERC-4626 vault contract address.
|
|
1184
|
+
*/
|
|
1185
|
+
vault_address: string;
|
|
1186
|
+
|
|
1187
|
+
/**
|
|
1188
|
+
* The vault ID.
|
|
1189
|
+
*/
|
|
1190
|
+
vault_id: string;
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* The ID of the wallet action.
|
|
1194
|
+
*/
|
|
1195
|
+
wallet_action_id: string;
|
|
1196
|
+
|
|
1197
|
+
/**
|
|
1198
|
+
* The ID of the wallet involved in the action.
|
|
1199
|
+
*/
|
|
1200
|
+
wallet_id: string;
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* Human-readable decimal amount of asset deposited (e.g. "1.5"). Only present when
|
|
1204
|
+
* the token is known in the asset registry.
|
|
1205
|
+
*/
|
|
1206
|
+
amount?: string;
|
|
1207
|
+
|
|
1208
|
+
/**
|
|
1209
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1210
|
+
* the asset registry.
|
|
1211
|
+
*/
|
|
1212
|
+
asset?: string;
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1216
|
+
* present when the token is known in the asset registry.
|
|
1217
|
+
*/
|
|
1218
|
+
decimals?: number;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
/**
|
|
1222
|
+
* Payload for the wallet_action.earn_deposit.succeeded webhook event.
|
|
1223
|
+
*/
|
|
1224
|
+
export interface WalletActionEarnDepositSucceededWebhookPayload {
|
|
1225
|
+
/**
|
|
1226
|
+
* Type of wallet action
|
|
1227
|
+
*/
|
|
1228
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1229
|
+
|
|
1230
|
+
/**
|
|
1231
|
+
* Underlying asset token address.
|
|
1232
|
+
*/
|
|
1233
|
+
asset_address: string;
|
|
1234
|
+
|
|
1235
|
+
/**
|
|
1236
|
+
* CAIP-2 chain identifier.
|
|
1237
|
+
*/
|
|
1238
|
+
caip2: string;
|
|
1239
|
+
|
|
1240
|
+
/**
|
|
1241
|
+
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
1242
|
+
*/
|
|
1243
|
+
raw_amount: string;
|
|
1244
|
+
|
|
1245
|
+
/**
|
|
1246
|
+
* Vault shares received in base units.
|
|
1247
|
+
*/
|
|
1248
|
+
share_amount: string;
|
|
1249
|
+
|
|
1250
|
+
/**
|
|
1251
|
+
* Status of a wallet action.
|
|
1252
|
+
*/
|
|
1253
|
+
status: WalletActionsAPI.WalletActionStatus;
|
|
1254
|
+
|
|
1255
|
+
/**
|
|
1256
|
+
* The steps of the wallet action, including transaction hashes.
|
|
1257
|
+
*/
|
|
1258
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
1259
|
+
|
|
1260
|
+
/**
|
|
1261
|
+
* The type of webhook event.
|
|
1262
|
+
*/
|
|
1263
|
+
type: 'wallet_action.earn_deposit.succeeded';
|
|
1264
|
+
|
|
1265
|
+
/**
|
|
1266
|
+
* ERC-4626 vault contract address.
|
|
1267
|
+
*/
|
|
1268
|
+
vault_address: string;
|
|
1269
|
+
|
|
1270
|
+
/**
|
|
1271
|
+
* The vault ID.
|
|
1272
|
+
*/
|
|
1273
|
+
vault_id: string;
|
|
1274
|
+
|
|
1275
|
+
/**
|
|
1276
|
+
* The ID of the wallet action.
|
|
1277
|
+
*/
|
|
1278
|
+
wallet_action_id: string;
|
|
1279
|
+
|
|
1280
|
+
/**
|
|
1281
|
+
* The ID of the wallet involved in the action.
|
|
1282
|
+
*/
|
|
1283
|
+
wallet_id: string;
|
|
1284
|
+
|
|
1285
|
+
/**
|
|
1286
|
+
* Human-readable decimal amount of asset deposited (e.g. "1.5"). Only present when
|
|
1287
|
+
* the token is known in the asset registry.
|
|
1288
|
+
*/
|
|
1289
|
+
amount?: string;
|
|
1290
|
+
|
|
1291
|
+
/**
|
|
1292
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1293
|
+
* the asset registry.
|
|
1294
|
+
*/
|
|
1295
|
+
asset?: string;
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1299
|
+
* present when the token is known in the asset registry.
|
|
1300
|
+
*/
|
|
1301
|
+
decimals?: number;
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
/**
|
|
1305
|
+
* Payload for the wallet_action.earn_deposit.rejected webhook event.
|
|
1306
|
+
*/
|
|
1307
|
+
export interface WalletActionEarnDepositRejectedWebhookPayload {
|
|
1308
|
+
/**
|
|
1309
|
+
* Type of wallet action
|
|
1310
|
+
*/
|
|
1311
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1312
|
+
|
|
1313
|
+
/**
|
|
1314
|
+
* Underlying asset token address.
|
|
1315
|
+
*/
|
|
1316
|
+
asset_address: string;
|
|
1317
|
+
|
|
1318
|
+
/**
|
|
1319
|
+
* CAIP-2 chain identifier.
|
|
1320
|
+
*/
|
|
1321
|
+
caip2: string;
|
|
1322
|
+
|
|
1323
|
+
/**
|
|
1324
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1325
|
+
*/
|
|
1326
|
+
failure_reason: WalletActionsAPI.FailureReason;
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
1330
|
+
*/
|
|
1331
|
+
raw_amount: string;
|
|
1332
|
+
|
|
1333
|
+
/**
|
|
1334
|
+
* Status of a wallet action.
|
|
1335
|
+
*/
|
|
1336
|
+
status: WalletActionsAPI.WalletActionStatus;
|
|
1337
|
+
|
|
1338
|
+
/**
|
|
1339
|
+
* The steps of the wallet action at the time of rejection.
|
|
1340
|
+
*/
|
|
1341
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
1342
|
+
|
|
1343
|
+
/**
|
|
1344
|
+
* The type of webhook event.
|
|
1345
|
+
*/
|
|
1346
|
+
type: 'wallet_action.earn_deposit.rejected';
|
|
1347
|
+
|
|
1348
|
+
/**
|
|
1349
|
+
* ERC-4626 vault contract address.
|
|
1350
|
+
*/
|
|
1351
|
+
vault_address: string;
|
|
1352
|
+
|
|
1353
|
+
/**
|
|
1354
|
+
* The vault ID.
|
|
1355
|
+
*/
|
|
1356
|
+
vault_id: string;
|
|
1357
|
+
|
|
1358
|
+
/**
|
|
1359
|
+
* The ID of the wallet action.
|
|
1360
|
+
*/
|
|
1361
|
+
wallet_action_id: string;
|
|
1362
|
+
|
|
1363
|
+
/**
|
|
1364
|
+
* The ID of the wallet involved in the action.
|
|
1365
|
+
*/
|
|
1366
|
+
wallet_id: string;
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* Human-readable decimal amount of asset deposited (e.g. "1.5"). Only present when
|
|
1370
|
+
* the token is known in the asset registry.
|
|
1371
|
+
*/
|
|
1372
|
+
amount?: string;
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1376
|
+
* the asset registry.
|
|
1377
|
+
*/
|
|
1378
|
+
asset?: string;
|
|
1379
|
+
|
|
1380
|
+
/**
|
|
1381
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1382
|
+
* present when the token is known in the asset registry.
|
|
1383
|
+
*/
|
|
1384
|
+
decimals?: number;
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* Payload for the wallet_action.earn_deposit.failed webhook event.
|
|
1389
|
+
*/
|
|
1390
|
+
export interface WalletActionEarnDepositFailedWebhookPayload {
|
|
1391
|
+
/**
|
|
1392
|
+
* Type of wallet action
|
|
1393
|
+
*/
|
|
1394
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1395
|
+
|
|
1396
|
+
/**
|
|
1397
|
+
* Underlying asset token address.
|
|
1398
|
+
*/
|
|
1399
|
+
asset_address: string;
|
|
1400
|
+
|
|
1401
|
+
/**
|
|
1402
|
+
* CAIP-2 chain identifier.
|
|
1403
|
+
*/
|
|
1404
|
+
caip2: string;
|
|
1405
|
+
|
|
1406
|
+
/**
|
|
1407
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1408
|
+
*/
|
|
1409
|
+
failure_reason: WalletActionsAPI.FailureReason;
|
|
1410
|
+
|
|
1411
|
+
/**
|
|
1412
|
+
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
1413
|
+
*/
|
|
1414
|
+
raw_amount: string;
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* Status of a wallet action.
|
|
1418
|
+
*/
|
|
1419
|
+
status: WalletActionsAPI.WalletActionStatus;
|
|
1420
|
+
|
|
1421
|
+
/**
|
|
1422
|
+
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1423
|
+
* the failing step will have a failure_reason.
|
|
1424
|
+
*/
|
|
1425
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
1426
|
+
|
|
1427
|
+
/**
|
|
1428
|
+
* The type of webhook event.
|
|
1429
|
+
*/
|
|
1430
|
+
type: 'wallet_action.earn_deposit.failed';
|
|
1431
|
+
|
|
1432
|
+
/**
|
|
1433
|
+
* ERC-4626 vault contract address.
|
|
1434
|
+
*/
|
|
1435
|
+
vault_address: string;
|
|
1436
|
+
|
|
1437
|
+
/**
|
|
1438
|
+
* The vault ID.
|
|
1439
|
+
*/
|
|
1440
|
+
vault_id: string;
|
|
1441
|
+
|
|
1442
|
+
/**
|
|
1443
|
+
* The ID of the wallet action.
|
|
1444
|
+
*/
|
|
1445
|
+
wallet_action_id: string;
|
|
1446
|
+
|
|
1447
|
+
/**
|
|
1448
|
+
* The ID of the wallet involved in the action.
|
|
1449
|
+
*/
|
|
1450
|
+
wallet_id: string;
|
|
1451
|
+
|
|
1452
|
+
/**
|
|
1453
|
+
* Human-readable decimal amount of asset deposited (e.g. "1.5"). Only present when
|
|
1454
|
+
* the token is known in the asset registry.
|
|
1455
|
+
*/
|
|
1456
|
+
amount?: string;
|
|
1457
|
+
|
|
1458
|
+
/**
|
|
1459
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1460
|
+
* the asset registry.
|
|
1461
|
+
*/
|
|
1462
|
+
asset?: string;
|
|
1463
|
+
|
|
1464
|
+
/**
|
|
1465
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1466
|
+
* present when the token is known in the asset registry.
|
|
1467
|
+
*/
|
|
1468
|
+
decimals?: number;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
/**
|
|
1472
|
+
* Payload for the wallet_action.earn_withdraw.created webhook event.
|
|
1473
|
+
*/
|
|
1474
|
+
export interface WalletActionEarnWithdrawCreatedWebhookPayload {
|
|
1475
|
+
/**
|
|
1476
|
+
* Type of wallet action
|
|
1477
|
+
*/
|
|
1478
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
* Underlying asset token address.
|
|
1482
|
+
*/
|
|
1483
|
+
asset_address: string;
|
|
1484
|
+
|
|
1485
|
+
/**
|
|
1486
|
+
* CAIP-2 chain identifier.
|
|
1487
|
+
*/
|
|
1488
|
+
caip2: string;
|
|
1489
|
+
|
|
1490
|
+
/**
|
|
1491
|
+
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
1492
|
+
*/
|
|
1493
|
+
raw_amount: string;
|
|
1494
|
+
|
|
1495
|
+
/**
|
|
1496
|
+
* Status of a wallet action.
|
|
1497
|
+
*/
|
|
1498
|
+
status: WalletActionsAPI.WalletActionStatus;
|
|
1499
|
+
|
|
1500
|
+
/**
|
|
1501
|
+
* The type of webhook event.
|
|
1502
|
+
*/
|
|
1503
|
+
type: 'wallet_action.earn_withdraw.created';
|
|
1504
|
+
|
|
1505
|
+
/**
|
|
1506
|
+
* ERC-4626 vault contract address.
|
|
1507
|
+
*/
|
|
1508
|
+
vault_address: string;
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
* The vault ID.
|
|
1512
|
+
*/
|
|
1513
|
+
vault_id: string;
|
|
1514
|
+
|
|
1515
|
+
/**
|
|
1516
|
+
* The ID of the wallet action.
|
|
1517
|
+
*/
|
|
1518
|
+
wallet_action_id: string;
|
|
1519
|
+
|
|
1520
|
+
/**
|
|
1521
|
+
* The ID of the wallet involved in the action.
|
|
1522
|
+
*/
|
|
1523
|
+
wallet_id: string;
|
|
1524
|
+
|
|
1525
|
+
/**
|
|
1526
|
+
* Human-readable decimal amount of asset withdrawn (e.g. "1.5"). Only present when
|
|
1527
|
+
* the token is known in the asset registry.
|
|
1528
|
+
*/
|
|
1529
|
+
amount?: string;
|
|
1530
|
+
|
|
1531
|
+
/**
|
|
1532
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1533
|
+
* the asset registry.
|
|
1534
|
+
*/
|
|
1535
|
+
asset?: string;
|
|
1536
|
+
|
|
1537
|
+
/**
|
|
1538
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1539
|
+
* present when the token is known in the asset registry.
|
|
1540
|
+
*/
|
|
1541
|
+
decimals?: number;
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
/**
|
|
1545
|
+
* Payload for the wallet_action.earn_withdraw.succeeded webhook event.
|
|
1546
|
+
*/
|
|
1547
|
+
export interface WalletActionEarnWithdrawSucceededWebhookPayload {
|
|
1548
|
+
/**
|
|
1549
|
+
* Type of wallet action
|
|
1550
|
+
*/
|
|
1551
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1552
|
+
|
|
1553
|
+
/**
|
|
1554
|
+
* Underlying asset token address.
|
|
1555
|
+
*/
|
|
1556
|
+
asset_address: string;
|
|
1557
|
+
|
|
1558
|
+
/**
|
|
1559
|
+
* CAIP-2 chain identifier.
|
|
1560
|
+
*/
|
|
1561
|
+
caip2: string;
|
|
1562
|
+
|
|
1563
|
+
/**
|
|
1564
|
+
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
1565
|
+
*/
|
|
1566
|
+
raw_amount: string;
|
|
1567
|
+
|
|
1568
|
+
/**
|
|
1569
|
+
* Vault shares burned in base units.
|
|
1570
|
+
*/
|
|
1571
|
+
share_amount: string;
|
|
1572
|
+
|
|
1573
|
+
/**
|
|
1574
|
+
* Status of a wallet action.
|
|
1575
|
+
*/
|
|
1576
|
+
status: WalletActionsAPI.WalletActionStatus;
|
|
1577
|
+
|
|
1578
|
+
/**
|
|
1579
|
+
* The steps of the wallet action, including transaction hashes.
|
|
1580
|
+
*/
|
|
1581
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
1582
|
+
|
|
1583
|
+
/**
|
|
1584
|
+
* The type of webhook event.
|
|
1585
|
+
*/
|
|
1586
|
+
type: 'wallet_action.earn_withdraw.succeeded';
|
|
1587
|
+
|
|
1588
|
+
/**
|
|
1589
|
+
* ERC-4626 vault contract address.
|
|
1590
|
+
*/
|
|
1591
|
+
vault_address: string;
|
|
1592
|
+
|
|
1593
|
+
/**
|
|
1594
|
+
* The vault ID.
|
|
1595
|
+
*/
|
|
1596
|
+
vault_id: string;
|
|
1597
|
+
|
|
1598
|
+
/**
|
|
1599
|
+
* The ID of the wallet action.
|
|
1600
|
+
*/
|
|
1601
|
+
wallet_action_id: string;
|
|
1602
|
+
|
|
1603
|
+
/**
|
|
1604
|
+
* The ID of the wallet involved in the action.
|
|
1605
|
+
*/
|
|
1606
|
+
wallet_id: string;
|
|
1607
|
+
|
|
1608
|
+
/**
|
|
1609
|
+
* Human-readable decimal amount of asset withdrawn (e.g. "1.5"). Only present when
|
|
1610
|
+
* the token is known in the asset registry.
|
|
1611
|
+
*/
|
|
1612
|
+
amount?: string;
|
|
1613
|
+
|
|
1614
|
+
/**
|
|
1615
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1616
|
+
* the asset registry.
|
|
1617
|
+
*/
|
|
1618
|
+
asset?: string;
|
|
1619
|
+
|
|
1620
|
+
/**
|
|
1621
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1622
|
+
* present when the token is known in the asset registry.
|
|
1623
|
+
*/
|
|
1624
|
+
decimals?: number;
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
/**
|
|
1628
|
+
* Payload for the wallet_action.earn_withdraw.rejected webhook event.
|
|
1629
|
+
*/
|
|
1630
|
+
export interface WalletActionEarnWithdrawRejectedWebhookPayload {
|
|
1631
|
+
/**
|
|
1632
|
+
* Type of wallet action
|
|
1633
|
+
*/
|
|
1634
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1635
|
+
|
|
1636
|
+
/**
|
|
1637
|
+
* Underlying asset token address.
|
|
1638
|
+
*/
|
|
1639
|
+
asset_address: string;
|
|
1640
|
+
|
|
1641
|
+
/**
|
|
1642
|
+
* CAIP-2 chain identifier.
|
|
1643
|
+
*/
|
|
1644
|
+
caip2: string;
|
|
1645
|
+
|
|
1646
|
+
/**
|
|
1647
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1648
|
+
*/
|
|
1649
|
+
failure_reason: WalletActionsAPI.FailureReason;
|
|
1650
|
+
|
|
1651
|
+
/**
|
|
1652
|
+
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
1653
|
+
*/
|
|
1654
|
+
raw_amount: string;
|
|
1655
|
+
|
|
1656
|
+
/**
|
|
1657
|
+
* Status of a wallet action.
|
|
1658
|
+
*/
|
|
1659
|
+
status: WalletActionsAPI.WalletActionStatus;
|
|
1660
|
+
|
|
1661
|
+
/**
|
|
1662
|
+
* The steps of the wallet action at the time of rejection.
|
|
1663
|
+
*/
|
|
1664
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
1665
|
+
|
|
1666
|
+
/**
|
|
1667
|
+
* The type of webhook event.
|
|
1668
|
+
*/
|
|
1669
|
+
type: 'wallet_action.earn_withdraw.rejected';
|
|
1670
|
+
|
|
1671
|
+
/**
|
|
1672
|
+
* ERC-4626 vault contract address.
|
|
1673
|
+
*/
|
|
1674
|
+
vault_address: string;
|
|
1675
|
+
|
|
1676
|
+
/**
|
|
1677
|
+
* The vault ID.
|
|
1678
|
+
*/
|
|
1679
|
+
vault_id: string;
|
|
1680
|
+
|
|
1681
|
+
/**
|
|
1682
|
+
* The ID of the wallet action.
|
|
1683
|
+
*/
|
|
1684
|
+
wallet_action_id: string;
|
|
1685
|
+
|
|
1686
|
+
/**
|
|
1687
|
+
* The ID of the wallet involved in the action.
|
|
1688
|
+
*/
|
|
1689
|
+
wallet_id: string;
|
|
1690
|
+
|
|
1691
|
+
/**
|
|
1692
|
+
* Human-readable decimal amount of asset withdrawn (e.g. "1.5"). Only present when
|
|
1693
|
+
* the token is known in the asset registry.
|
|
1694
|
+
*/
|
|
1695
|
+
amount?: string;
|
|
1696
|
+
|
|
1697
|
+
/**
|
|
1698
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1699
|
+
* the asset registry.
|
|
1700
|
+
*/
|
|
1701
|
+
asset?: string;
|
|
1702
|
+
|
|
1703
|
+
/**
|
|
1704
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1705
|
+
* present when the token is known in the asset registry.
|
|
1706
|
+
*/
|
|
1707
|
+
decimals?: number;
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
/**
|
|
1711
|
+
* Payload for the wallet_action.earn_withdraw.failed webhook event.
|
|
1712
|
+
*/
|
|
1713
|
+
export interface WalletActionEarnWithdrawFailedWebhookPayload {
|
|
1714
|
+
/**
|
|
1715
|
+
* Type of wallet action
|
|
1716
|
+
*/
|
|
1717
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1718
|
+
|
|
1719
|
+
/**
|
|
1720
|
+
* Underlying asset token address.
|
|
1721
|
+
*/
|
|
1722
|
+
asset_address: string;
|
|
1723
|
+
|
|
1724
|
+
/**
|
|
1725
|
+
* CAIP-2 chain identifier.
|
|
1726
|
+
*/
|
|
1727
|
+
caip2: string;
|
|
1728
|
+
|
|
1729
|
+
/**
|
|
1730
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1731
|
+
*/
|
|
1732
|
+
failure_reason: WalletActionsAPI.FailureReason;
|
|
1733
|
+
|
|
1734
|
+
/**
|
|
1735
|
+
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
1736
|
+
*/
|
|
1737
|
+
raw_amount: string;
|
|
1738
|
+
|
|
1739
|
+
/**
|
|
1740
|
+
* Status of a wallet action.
|
|
1741
|
+
*/
|
|
1742
|
+
status: WalletActionsAPI.WalletActionStatus;
|
|
1743
|
+
|
|
1744
|
+
/**
|
|
1745
|
+
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1746
|
+
* the failing step will have a failure_reason.
|
|
1747
|
+
*/
|
|
1748
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
1749
|
+
|
|
1750
|
+
/**
|
|
1751
|
+
* The type of webhook event.
|
|
1752
|
+
*/
|
|
1753
|
+
type: 'wallet_action.earn_withdraw.failed';
|
|
1754
|
+
|
|
1755
|
+
/**
|
|
1756
|
+
* ERC-4626 vault contract address.
|
|
1757
|
+
*/
|
|
1758
|
+
vault_address: string;
|
|
1759
|
+
|
|
1760
|
+
/**
|
|
1761
|
+
* The vault ID.
|
|
1762
|
+
*/
|
|
1763
|
+
vault_id: string;
|
|
1764
|
+
|
|
1765
|
+
/**
|
|
1766
|
+
* The ID of the wallet action.
|
|
1767
|
+
*/
|
|
1768
|
+
wallet_action_id: string;
|
|
1769
|
+
|
|
1770
|
+
/**
|
|
1771
|
+
* The ID of the wallet involved in the action.
|
|
1772
|
+
*/
|
|
1773
|
+
wallet_id: string;
|
|
1774
|
+
|
|
1775
|
+
/**
|
|
1776
|
+
* Human-readable decimal amount of asset withdrawn (e.g. "1.5"). Only present when
|
|
1777
|
+
* the token is known in the asset registry.
|
|
1778
|
+
*/
|
|
1779
|
+
amount?: string;
|
|
1780
|
+
|
|
1781
|
+
/**
|
|
1782
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1783
|
+
* the asset registry.
|
|
1784
|
+
*/
|
|
1785
|
+
asset?: string;
|
|
1786
|
+
|
|
1787
|
+
/**
|
|
1788
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1789
|
+
* present when the token is known in the asset registry.
|
|
1790
|
+
*/
|
|
1791
|
+
decimals?: number;
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
/**
|
|
1795
|
+
* Payload for the wallet_action.earn_incentive_claim.created webhook event.
|
|
1796
|
+
*/
|
|
1797
|
+
export interface WalletActionEarnIncentiveClaimCreatedWebhookPayload {
|
|
1798
|
+
/**
|
|
1799
|
+
* Type of wallet action
|
|
1800
|
+
*/
|
|
1801
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1802
|
+
|
|
1803
|
+
/**
|
|
1804
|
+
* EVM chain name (e.g. "base", "ethereum").
|
|
1805
|
+
*/
|
|
1806
|
+
chain: string;
|
|
1807
|
+
|
|
1808
|
+
/**
|
|
1809
|
+
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1810
|
+
*/
|
|
1811
|
+
rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
1812
|
+
|
|
1813
|
+
/**
|
|
1814
|
+
* Status of a wallet action.
|
|
1815
|
+
*/
|
|
1816
|
+
status: WalletActionsAPI.WalletActionStatus;
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* The type of webhook event.
|
|
1820
|
+
*/
|
|
1821
|
+
type: 'wallet_action.earn_incentive_claim.created';
|
|
1822
|
+
|
|
1823
|
+
/**
|
|
1824
|
+
* The ID of the wallet action.
|
|
1825
|
+
*/
|
|
1826
|
+
wallet_action_id: string;
|
|
1827
|
+
|
|
1828
|
+
/**
|
|
1829
|
+
* The ID of the wallet involved in the action.
|
|
1830
|
+
*/
|
|
1831
|
+
wallet_id: string;
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
/**
|
|
1835
|
+
* Payload for the wallet_action.earn_incentive_claim.succeeded webhook event.
|
|
1150
1836
|
*/
|
|
1151
|
-
export interface
|
|
1837
|
+
export interface WalletActionEarnIncentiveClaimSucceededWebhookPayload {
|
|
1152
1838
|
/**
|
|
1153
|
-
*
|
|
1839
|
+
* Type of wallet action
|
|
1154
1840
|
*/
|
|
1155
|
-
|
|
1841
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1156
1842
|
|
|
1157
1843
|
/**
|
|
1158
|
-
*
|
|
1844
|
+
* EVM chain name (e.g. "base", "ethereum").
|
|
1159
1845
|
*/
|
|
1160
|
-
|
|
1161
|
-
| FundsDepositedWebhookPayload.UnionMember0
|
|
1162
|
-
| FundsDepositedWebhookPayload.UnionMember1
|
|
1163
|
-
| FundsDepositedWebhookPayload.UnionMember2
|
|
1164
|
-
| FundsDepositedWebhookPayload.UnionMember3;
|
|
1846
|
+
chain: string;
|
|
1165
1847
|
|
|
1166
|
-
|
|
1848
|
+
/**
|
|
1849
|
+
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1850
|
+
*/
|
|
1851
|
+
rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
1167
1852
|
|
|
1168
1853
|
/**
|
|
1169
|
-
*
|
|
1854
|
+
* Status of a wallet action.
|
|
1170
1855
|
*/
|
|
1171
|
-
|
|
1856
|
+
status: WalletActionsAPI.WalletActionStatus;
|
|
1172
1857
|
|
|
1173
1858
|
/**
|
|
1174
|
-
*
|
|
1859
|
+
* The steps of the wallet action, including transaction hashes.
|
|
1175
1860
|
*/
|
|
1176
|
-
|
|
1861
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
1177
1862
|
|
|
1178
1863
|
/**
|
|
1179
|
-
* The
|
|
1864
|
+
* The type of webhook event.
|
|
1180
1865
|
*/
|
|
1181
|
-
|
|
1866
|
+
type: 'wallet_action.earn_incentive_claim.succeeded';
|
|
1182
1867
|
|
|
1183
1868
|
/**
|
|
1184
|
-
* The
|
|
1869
|
+
* The ID of the wallet action.
|
|
1185
1870
|
*/
|
|
1186
|
-
|
|
1871
|
+
wallet_action_id: string;
|
|
1187
1872
|
|
|
1188
1873
|
/**
|
|
1189
|
-
* The
|
|
1874
|
+
* The ID of the wallet involved in the action.
|
|
1190
1875
|
*/
|
|
1191
|
-
|
|
1876
|
+
wallet_id: string;
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
/**
|
|
1880
|
+
* Payload for the wallet_action.earn_incentive_claim.rejected webhook event.
|
|
1881
|
+
*/
|
|
1882
|
+
export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
|
|
1883
|
+
/**
|
|
1884
|
+
* Type of wallet action
|
|
1885
|
+
*/
|
|
1886
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1887
|
+
|
|
1888
|
+
/**
|
|
1889
|
+
* EVM chain name (e.g. "base", "ethereum").
|
|
1890
|
+
*/
|
|
1891
|
+
chain: string;
|
|
1892
|
+
|
|
1893
|
+
/**
|
|
1894
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1895
|
+
*/
|
|
1896
|
+
failure_reason: WalletActionsAPI.FailureReason;
|
|
1897
|
+
|
|
1898
|
+
/**
|
|
1899
|
+
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1900
|
+
*/
|
|
1901
|
+
rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
1902
|
+
|
|
1903
|
+
/**
|
|
1904
|
+
* Status of a wallet action.
|
|
1905
|
+
*/
|
|
1906
|
+
status: WalletActionsAPI.WalletActionStatus;
|
|
1907
|
+
|
|
1908
|
+
/**
|
|
1909
|
+
* The steps of the wallet action at the time of rejection.
|
|
1910
|
+
*/
|
|
1911
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
1192
1912
|
|
|
1193
1913
|
/**
|
|
1194
1914
|
* The type of webhook event.
|
|
1195
1915
|
*/
|
|
1196
|
-
type: '
|
|
1916
|
+
type: 'wallet_action.earn_incentive_claim.rejected';
|
|
1197
1917
|
|
|
1198
1918
|
/**
|
|
1199
|
-
* The ID of the wallet.
|
|
1919
|
+
* The ID of the wallet action.
|
|
1920
|
+
*/
|
|
1921
|
+
wallet_action_id: string;
|
|
1922
|
+
|
|
1923
|
+
/**
|
|
1924
|
+
* The ID of the wallet involved in the action.
|
|
1200
1925
|
*/
|
|
1201
1926
|
wallet_id: string;
|
|
1927
|
+
}
|
|
1202
1928
|
|
|
1929
|
+
/**
|
|
1930
|
+
* Payload for the wallet_action.earn_incentive_claim.failed webhook event.
|
|
1931
|
+
*/
|
|
1932
|
+
export interface WalletActionEarnIncentiveClaimFailedWebhookPayload {
|
|
1203
1933
|
/**
|
|
1204
|
-
*
|
|
1934
|
+
* Type of wallet action
|
|
1205
1935
|
*/
|
|
1206
|
-
|
|
1207
|
-
| FundsDepositedWebhookPayload.BridgeMetadataUnionMember0
|
|
1208
|
-
| FundsDepositedWebhookPayload.BridgeMetadataUnionMember1
|
|
1209
|
-
| FundsDepositedWebhookPayload.BridgeMetadataUnionMember2
|
|
1210
|
-
| FundsDepositedWebhookPayload.BridgeMetadataUnionMember3
|
|
1211
|
-
| FundsDepositedWebhookPayload.BridgeMetadataUnionMember4
|
|
1212
|
-
| FundsDepositedWebhookPayload.BridgeMetadataUnionMember5;
|
|
1936
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1213
1937
|
|
|
1214
1938
|
/**
|
|
1215
|
-
*
|
|
1939
|
+
* EVM chain name (e.g. "base", "ethereum").
|
|
1216
1940
|
*/
|
|
1217
|
-
|
|
1218
|
-
}
|
|
1941
|
+
chain: string;
|
|
1219
1942
|
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1943
|
+
/**
|
|
1944
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1945
|
+
*/
|
|
1946
|
+
failure_reason: WalletActionsAPI.FailureReason;
|
|
1223
1947
|
|
|
1224
|
-
|
|
1225
|
-
|
|
1948
|
+
/**
|
|
1949
|
+
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1950
|
+
*/
|
|
1951
|
+
rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
1226
1952
|
|
|
1227
|
-
|
|
1228
|
-
|
|
1953
|
+
/**
|
|
1954
|
+
* Status of a wallet action.
|
|
1955
|
+
*/
|
|
1956
|
+
status: WalletActionsAPI.WalletActionStatus;
|
|
1229
1957
|
|
|
1230
|
-
|
|
1231
|
-
|
|
1958
|
+
/**
|
|
1959
|
+
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1960
|
+
* the failing step will have a failure_reason.
|
|
1961
|
+
*/
|
|
1962
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
1232
1963
|
|
|
1233
|
-
|
|
1234
|
-
|
|
1964
|
+
/**
|
|
1965
|
+
* The type of webhook event.
|
|
1966
|
+
*/
|
|
1967
|
+
type: 'wallet_action.earn_incentive_claim.failed';
|
|
1235
1968
|
|
|
1236
|
-
|
|
1237
|
-
|
|
1969
|
+
/**
|
|
1970
|
+
* The ID of the wallet action.
|
|
1971
|
+
*/
|
|
1972
|
+
wallet_action_id: string;
|
|
1238
1973
|
|
|
1239
|
-
|
|
1240
|
-
|
|
1974
|
+
/**
|
|
1975
|
+
* The ID of the wallet involved in the action.
|
|
1976
|
+
*/
|
|
1977
|
+
wallet_id: string;
|
|
1978
|
+
}
|
|
1241
1979
|
|
|
1242
|
-
|
|
1243
|
-
|
|
1980
|
+
/**
|
|
1981
|
+
* A native token asset (e.g. ETH, SOL).
|
|
1982
|
+
*/
|
|
1983
|
+
export interface WalletFundsNativeTokenAsset {
|
|
1984
|
+
address: null;
|
|
1244
1985
|
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
* The block number.
|
|
1248
|
-
*/
|
|
1249
|
-
number: number;
|
|
1986
|
+
type: 'native-token';
|
|
1987
|
+
}
|
|
1250
1988
|
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1989
|
+
/**
|
|
1990
|
+
* An ERC-20 token asset.
|
|
1991
|
+
*/
|
|
1992
|
+
export interface WalletFundsErc20Asset {
|
|
1993
|
+
address: string;
|
|
1256
1994
|
|
|
1257
|
-
|
|
1258
|
-
|
|
1995
|
+
type: 'erc20';
|
|
1996
|
+
}
|
|
1259
1997
|
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1998
|
+
/**
|
|
1999
|
+
* A Solana SPL token asset.
|
|
2000
|
+
*/
|
|
2001
|
+
export interface WalletFundsSplAsset {
|
|
2002
|
+
mint: string;
|
|
1264
2003
|
|
|
1265
|
-
|
|
2004
|
+
type: 'spl';
|
|
2005
|
+
}
|
|
1266
2006
|
|
|
1267
|
-
|
|
2007
|
+
/**
|
|
2008
|
+
* A Stellar Asset Contract (SAC) asset.
|
|
2009
|
+
*/
|
|
2010
|
+
export interface WalletFundsSacAsset {
|
|
2011
|
+
address: string;
|
|
1268
2012
|
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
*/
|
|
1272
|
-
source_wallet_address: string;
|
|
2013
|
+
type: 'sac';
|
|
2014
|
+
}
|
|
1273
2015
|
|
|
1274
|
-
|
|
1275
|
-
|
|
2016
|
+
/**
|
|
2017
|
+
* An asset involved in a wallet transfer.
|
|
2018
|
+
*/
|
|
2019
|
+
export type WalletFundsAsset =
|
|
2020
|
+
| WalletFundsNativeTokenAsset
|
|
2021
|
+
| WalletFundsErc20Asset
|
|
2022
|
+
| WalletFundsSplAsset
|
|
2023
|
+
| WalletFundsSacAsset;
|
|
2024
|
+
|
|
2025
|
+
/**
|
|
2026
|
+
* Bridge metadata for a crypto deposit via liquidation address.
|
|
2027
|
+
*/
|
|
2028
|
+
export interface BridgeCryptoDepositMetadata {
|
|
2029
|
+
drain_id: string;
|
|
1276
2030
|
|
|
1277
|
-
|
|
1278
|
-
|
|
2031
|
+
/**
|
|
2032
|
+
* The crypto address of the liquidation address that received the deposit.
|
|
2033
|
+
*/
|
|
2034
|
+
liquidation_address: string;
|
|
1279
2035
|
|
|
1280
|
-
|
|
2036
|
+
liquidation_address_id: string;
|
|
1281
2037
|
|
|
1282
|
-
|
|
2038
|
+
method: 'liquidation_address';
|
|
1283
2039
|
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
2040
|
+
/**
|
|
2041
|
+
* The address that sent the deposit.
|
|
2042
|
+
*/
|
|
2043
|
+
source_wallet_address: string;
|
|
1288
2044
|
|
|
1289
|
-
|
|
1290
|
-
|
|
2045
|
+
type: 'crypto_deposit';
|
|
2046
|
+
}
|
|
1291
2047
|
|
|
1292
|
-
|
|
1293
|
-
|
|
2048
|
+
/**
|
|
2049
|
+
* Bridge metadata for a refund via liquidation address.
|
|
2050
|
+
*/
|
|
2051
|
+
export interface BridgeRefundMetadata {
|
|
2052
|
+
drain_id: string;
|
|
1294
2053
|
|
|
1295
|
-
|
|
2054
|
+
liquidation_address_id: string;
|
|
1296
2055
|
|
|
1297
|
-
|
|
2056
|
+
method: 'liquidation_address';
|
|
1298
2057
|
|
|
1299
|
-
|
|
1300
|
-
|
|
2058
|
+
/**
|
|
2059
|
+
* The original deposit transaction hash that triggered the failed drain.
|
|
2060
|
+
*/
|
|
2061
|
+
original_transaction_hash: string;
|
|
1301
2062
|
|
|
1302
|
-
|
|
1303
|
-
|
|
2063
|
+
type: 'refund';
|
|
2064
|
+
}
|
|
1304
2065
|
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
2066
|
+
/**
|
|
2067
|
+
* Bridge metadata for a fiat deposit via virtual account.
|
|
2068
|
+
*/
|
|
2069
|
+
export interface BridgeFiatDepositMetadata {
|
|
2070
|
+
activity_id: string;
|
|
1309
2071
|
|
|
1310
|
-
|
|
2072
|
+
method: 'virtual_account';
|
|
1311
2073
|
|
|
1312
|
-
|
|
1313
|
-
}
|
|
2074
|
+
type: 'fiat_deposit';
|
|
1314
2075
|
|
|
1315
|
-
|
|
1316
|
-
|
|
2076
|
+
virtual_account_id: string;
|
|
2077
|
+
}
|
|
1317
2078
|
|
|
1318
|
-
|
|
2079
|
+
/**
|
|
2080
|
+
* Bridge metadata for a crypto deposit via transfer.
|
|
2081
|
+
*/
|
|
2082
|
+
export interface BridgeCryptoTransferMetadata {
|
|
2083
|
+
method: 'transfer';
|
|
1319
2084
|
|
|
1320
|
-
|
|
1321
|
-
|
|
2085
|
+
/**
|
|
2086
|
+
* The wallet address that sent the transfer.
|
|
2087
|
+
*/
|
|
2088
|
+
source_wallet_address: string;
|
|
2089
|
+
|
|
2090
|
+
transfer_id: string;
|
|
1322
2091
|
|
|
1323
|
-
|
|
1324
|
-
|
|
2092
|
+
type: 'crypto_deposit';
|
|
2093
|
+
}
|
|
1325
2094
|
|
|
1326
|
-
|
|
2095
|
+
/**
|
|
2096
|
+
* Bridge metadata for a fiat deposit via transfer.
|
|
2097
|
+
*/
|
|
2098
|
+
export interface BridgeFiatTransferMetadata {
|
|
2099
|
+
method: 'transfer';
|
|
1327
2100
|
|
|
1328
|
-
|
|
2101
|
+
transfer_id: string;
|
|
1329
2102
|
|
|
1330
|
-
|
|
1331
|
-
* The original transfer transaction hash (if available).
|
|
1332
|
-
*/
|
|
1333
|
-
original_transaction_hash?: string;
|
|
1334
|
-
}
|
|
2103
|
+
type: 'fiat_deposit';
|
|
1335
2104
|
}
|
|
1336
2105
|
|
|
1337
2106
|
/**
|
|
1338
|
-
*
|
|
2107
|
+
* Bridge metadata for a transfer refund.
|
|
1339
2108
|
*/
|
|
1340
|
-
export interface
|
|
2109
|
+
export interface BridgeTransferRefundMetadata {
|
|
2110
|
+
method: 'transfer';
|
|
2111
|
+
|
|
2112
|
+
transfer_id: string;
|
|
2113
|
+
|
|
2114
|
+
type: 'refund';
|
|
2115
|
+
|
|
2116
|
+
/**
|
|
2117
|
+
* The original transfer transaction hash (if available).
|
|
2118
|
+
*/
|
|
2119
|
+
original_transaction_hash?: string;
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2122
|
+
/**
|
|
2123
|
+
* Metadata about a Bridge transaction associated with a wallet event.
|
|
2124
|
+
*/
|
|
2125
|
+
export type BridgeMetadata =
|
|
2126
|
+
| BridgeCryptoDepositMetadata
|
|
2127
|
+
| BridgeRefundMetadata
|
|
2128
|
+
| BridgeFiatDepositMetadata
|
|
2129
|
+
| BridgeCryptoTransferMetadata
|
|
2130
|
+
| BridgeFiatTransferMetadata
|
|
2131
|
+
| BridgeTransferRefundMetadata;
|
|
2132
|
+
|
|
2133
|
+
/**
|
|
2134
|
+
* Payload for the wallet.funds_deposited webhook event.
|
|
2135
|
+
*/
|
|
2136
|
+
export interface FundsDepositedWebhookPayload {
|
|
1341
2137
|
/**
|
|
1342
2138
|
* The amount transferred, as a stringified bigint.
|
|
1343
2139
|
*/
|
|
1344
2140
|
amount: string;
|
|
1345
2141
|
|
|
1346
2142
|
/**
|
|
1347
|
-
*
|
|
2143
|
+
* An asset involved in a wallet transfer.
|
|
1348
2144
|
*/
|
|
1349
|
-
asset:
|
|
1350
|
-
| FundsWithdrawnWebhookPayload.UnionMember0
|
|
1351
|
-
| FundsWithdrawnWebhookPayload.UnionMember1
|
|
1352
|
-
| FundsWithdrawnWebhookPayload.UnionMember2
|
|
1353
|
-
| FundsWithdrawnWebhookPayload.UnionMember3;
|
|
2145
|
+
asset: WalletFundsAsset;
|
|
1354
2146
|
|
|
1355
|
-
block:
|
|
2147
|
+
block: FundsDepositedWebhookPayload.Block;
|
|
1356
2148
|
|
|
1357
2149
|
/**
|
|
1358
2150
|
* The CAIP-2 chain identifier.
|
|
@@ -1382,44 +2174,96 @@ export interface FundsWithdrawnWebhookPayload {
|
|
|
1382
2174
|
/**
|
|
1383
2175
|
* The type of webhook event.
|
|
1384
2176
|
*/
|
|
1385
|
-
type: 'wallet.
|
|
2177
|
+
type: 'wallet.funds_deposited';
|
|
1386
2178
|
|
|
1387
2179
|
/**
|
|
1388
2180
|
* The ID of the wallet.
|
|
1389
2181
|
*/
|
|
1390
2182
|
wallet_id: string;
|
|
1391
2183
|
|
|
2184
|
+
/**
|
|
2185
|
+
* Metadata about a Bridge transaction associated with a wallet event.
|
|
2186
|
+
*/
|
|
2187
|
+
bridge_metadata?: BridgeMetadata;
|
|
2188
|
+
|
|
1392
2189
|
/**
|
|
1393
2190
|
* The transaction fee paid, as a stringified bigint in the chain's native token.
|
|
1394
2191
|
*/
|
|
1395
2192
|
transaction_fee?: string;
|
|
1396
2193
|
}
|
|
1397
2194
|
|
|
1398
|
-
export namespace
|
|
1399
|
-
export interface
|
|
1400
|
-
|
|
2195
|
+
export namespace FundsDepositedWebhookPayload {
|
|
2196
|
+
export interface Block {
|
|
2197
|
+
/**
|
|
2198
|
+
* The block number.
|
|
2199
|
+
*/
|
|
2200
|
+
number: number;
|
|
1401
2201
|
|
|
1402
|
-
|
|
2202
|
+
/**
|
|
2203
|
+
* The block timestamp.
|
|
2204
|
+
*/
|
|
2205
|
+
timestamp: number;
|
|
1403
2206
|
}
|
|
2207
|
+
}
|
|
2208
|
+
|
|
2209
|
+
/**
|
|
2210
|
+
* Payload for the wallet.funds_withdrawn webhook event.
|
|
2211
|
+
*/
|
|
2212
|
+
export interface FundsWithdrawnWebhookPayload {
|
|
2213
|
+
/**
|
|
2214
|
+
* The amount transferred, as a stringified bigint.
|
|
2215
|
+
*/
|
|
2216
|
+
amount: string;
|
|
1404
2217
|
|
|
1405
|
-
|
|
1406
|
-
|
|
2218
|
+
/**
|
|
2219
|
+
* An asset involved in a wallet transfer.
|
|
2220
|
+
*/
|
|
2221
|
+
asset: WalletFundsAsset;
|
|
1407
2222
|
|
|
1408
|
-
|
|
1409
|
-
}
|
|
2223
|
+
block: FundsWithdrawnWebhookPayload.Block;
|
|
1410
2224
|
|
|
1411
|
-
|
|
1412
|
-
|
|
2225
|
+
/**
|
|
2226
|
+
* The CAIP-2 chain identifier.
|
|
2227
|
+
*/
|
|
2228
|
+
caip2: string;
|
|
1413
2229
|
|
|
1414
|
-
|
|
1415
|
-
|
|
2230
|
+
/**
|
|
2231
|
+
* A unique key for this event.
|
|
2232
|
+
*/
|
|
2233
|
+
idempotency_key: string;
|
|
1416
2234
|
|
|
1417
|
-
|
|
1418
|
-
|
|
2235
|
+
/**
|
|
2236
|
+
* The recipient address.
|
|
2237
|
+
*/
|
|
2238
|
+
recipient: string;
|
|
1419
2239
|
|
|
1420
|
-
|
|
1421
|
-
|
|
2240
|
+
/**
|
|
2241
|
+
* The sender address.
|
|
2242
|
+
*/
|
|
2243
|
+
sender: string;
|
|
2244
|
+
|
|
2245
|
+
/**
|
|
2246
|
+
* The blockchain transaction hash.
|
|
2247
|
+
*/
|
|
2248
|
+
transaction_hash: string;
|
|
2249
|
+
|
|
2250
|
+
/**
|
|
2251
|
+
* The type of webhook event.
|
|
2252
|
+
*/
|
|
2253
|
+
type: 'wallet.funds_withdrawn';
|
|
2254
|
+
|
|
2255
|
+
/**
|
|
2256
|
+
* The ID of the wallet.
|
|
2257
|
+
*/
|
|
2258
|
+
wallet_id: string;
|
|
2259
|
+
|
|
2260
|
+
/**
|
|
2261
|
+
* The transaction fee paid, as a stringified bigint in the chain's native token.
|
|
2262
|
+
*/
|
|
2263
|
+
transaction_fee?: string;
|
|
2264
|
+
}
|
|
1422
2265
|
|
|
2266
|
+
export namespace FundsWithdrawnWebhookPayload {
|
|
1423
2267
|
export interface Block {
|
|
1424
2268
|
/**
|
|
1425
2269
|
* The block number.
|
|
@@ -1663,7 +2507,19 @@ export type WebhookPayload =
|
|
|
1663
2507
|
| WalletActionTransferCreatedWebhookPayload
|
|
1664
2508
|
| WalletActionTransferSucceededWebhookPayload
|
|
1665
2509
|
| WalletActionTransferRejectedWebhookPayload
|
|
1666
|
-
| WalletActionTransferFailedWebhookPayload
|
|
2510
|
+
| WalletActionTransferFailedWebhookPayload
|
|
2511
|
+
| WalletActionEarnDepositCreatedWebhookPayload
|
|
2512
|
+
| WalletActionEarnDepositSucceededWebhookPayload
|
|
2513
|
+
| WalletActionEarnDepositRejectedWebhookPayload
|
|
2514
|
+
| WalletActionEarnDepositFailedWebhookPayload
|
|
2515
|
+
| WalletActionEarnWithdrawCreatedWebhookPayload
|
|
2516
|
+
| WalletActionEarnWithdrawSucceededWebhookPayload
|
|
2517
|
+
| WalletActionEarnWithdrawRejectedWebhookPayload
|
|
2518
|
+
| WalletActionEarnWithdrawFailedWebhookPayload
|
|
2519
|
+
| WalletActionEarnIncentiveClaimCreatedWebhookPayload
|
|
2520
|
+
| WalletActionEarnIncentiveClaimSucceededWebhookPayload
|
|
2521
|
+
| WalletActionEarnIncentiveClaimRejectedWebhookPayload
|
|
2522
|
+
| WalletActionEarnIncentiveClaimFailedWebhookPayload;
|
|
1667
2523
|
|
|
1668
2524
|
/**
|
|
1669
2525
|
* Payload for the kraken_embed.quote_executed webhook event.
|
|
@@ -1843,6 +2699,30 @@ export declare namespace Webhooks {
|
|
|
1843
2699
|
type WalletActionTransferSucceededWebhookPayload as WalletActionTransferSucceededWebhookPayload,
|
|
1844
2700
|
type WalletActionTransferRejectedWebhookPayload as WalletActionTransferRejectedWebhookPayload,
|
|
1845
2701
|
type WalletActionTransferFailedWebhookPayload as WalletActionTransferFailedWebhookPayload,
|
|
2702
|
+
type WalletActionEarnDepositCreatedWebhookPayload as WalletActionEarnDepositCreatedWebhookPayload,
|
|
2703
|
+
type WalletActionEarnDepositSucceededWebhookPayload as WalletActionEarnDepositSucceededWebhookPayload,
|
|
2704
|
+
type WalletActionEarnDepositRejectedWebhookPayload as WalletActionEarnDepositRejectedWebhookPayload,
|
|
2705
|
+
type WalletActionEarnDepositFailedWebhookPayload as WalletActionEarnDepositFailedWebhookPayload,
|
|
2706
|
+
type WalletActionEarnWithdrawCreatedWebhookPayload as WalletActionEarnWithdrawCreatedWebhookPayload,
|
|
2707
|
+
type WalletActionEarnWithdrawSucceededWebhookPayload as WalletActionEarnWithdrawSucceededWebhookPayload,
|
|
2708
|
+
type WalletActionEarnWithdrawRejectedWebhookPayload as WalletActionEarnWithdrawRejectedWebhookPayload,
|
|
2709
|
+
type WalletActionEarnWithdrawFailedWebhookPayload as WalletActionEarnWithdrawFailedWebhookPayload,
|
|
2710
|
+
type WalletActionEarnIncentiveClaimCreatedWebhookPayload as WalletActionEarnIncentiveClaimCreatedWebhookPayload,
|
|
2711
|
+
type WalletActionEarnIncentiveClaimSucceededWebhookPayload as WalletActionEarnIncentiveClaimSucceededWebhookPayload,
|
|
2712
|
+
type WalletActionEarnIncentiveClaimRejectedWebhookPayload as WalletActionEarnIncentiveClaimRejectedWebhookPayload,
|
|
2713
|
+
type WalletActionEarnIncentiveClaimFailedWebhookPayload as WalletActionEarnIncentiveClaimFailedWebhookPayload,
|
|
2714
|
+
type WalletFundsNativeTokenAsset as WalletFundsNativeTokenAsset,
|
|
2715
|
+
type WalletFundsErc20Asset as WalletFundsErc20Asset,
|
|
2716
|
+
type WalletFundsSplAsset as WalletFundsSplAsset,
|
|
2717
|
+
type WalletFundsSacAsset as WalletFundsSacAsset,
|
|
2718
|
+
type WalletFundsAsset as WalletFundsAsset,
|
|
2719
|
+
type BridgeCryptoDepositMetadata as BridgeCryptoDepositMetadata,
|
|
2720
|
+
type BridgeRefundMetadata as BridgeRefundMetadata,
|
|
2721
|
+
type BridgeFiatDepositMetadata as BridgeFiatDepositMetadata,
|
|
2722
|
+
type BridgeCryptoTransferMetadata as BridgeCryptoTransferMetadata,
|
|
2723
|
+
type BridgeFiatTransferMetadata as BridgeFiatTransferMetadata,
|
|
2724
|
+
type BridgeTransferRefundMetadata as BridgeTransferRefundMetadata,
|
|
2725
|
+
type BridgeMetadata as BridgeMetadata,
|
|
1846
2726
|
type FundsDepositedWebhookPayload as FundsDepositedWebhookPayload,
|
|
1847
2727
|
type FundsWithdrawnWebhookPayload as FundsWithdrawnWebhookPayload,
|
|
1848
2728
|
type PrivateKeyExportWebhookPayload as PrivateKeyExportWebhookPayload,
|