tapimo 0.10.1 → 0.10.2
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/dist/App.d.ts +1776 -1543
- package/dist/App.d.ts.map +1 -1
- package/dist/Webhooks.d.ts +1 -1
- package/dist/Webhooks.d.ts.map +1 -1
- package/dist/Webhooks.js +1 -1
- package/dist/Webhooks.js.map +1 -1
- package/dist/admin/apps/api-keys.d.ts +4 -4
- package/dist/analytics/Analytics.d.ts.map +1 -1
- package/dist/analytics/Analytics.js +206 -0
- package/dist/analytics/Analytics.js.map +1 -1
- package/dist/analytics/tables/requestEvents.d.ts +4 -0
- package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
- package/dist/analytics/tables/requestEvents.js +2 -0
- package/dist/analytics/tables/requestEvents.js.map +1 -1
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/App.js +2 -0
- package/dist/apps/data/App.js.map +1 -1
- package/dist/apps/data/routes/addresses.d.ts +340 -340
- package/dist/apps/data/routes/balances.d.ts.map +1 -1
- package/dist/apps/data/routes/balances.js +2 -6
- package/dist/apps/data/routes/balances.js.map +1 -1
- package/dist/apps/data/routes/coingecko.d.ts +176 -176
- package/dist/apps/data/routes/earn.d.ts.map +1 -1
- package/dist/apps/data/routes/earn.js +63 -34
- package/dist/apps/data/routes/earn.js.map +1 -1
- package/dist/apps/data/routes/exchanges.d.ts +4 -0
- package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
- package/dist/apps/data/routes/exchanges.js +115 -77
- package/dist/apps/data/routes/exchanges.js.map +1 -1
- package/dist/apps/data/routes/indexer.d.ts +34 -34
- package/dist/apps/data/routes/receipts.d.ts +4 -3
- package/dist/apps/data/routes/receipts.d.ts.map +1 -1
- package/dist/apps/data/routes/receipts.js +15 -14
- package/dist/apps/data/routes/receipts.js.map +1 -1
- package/dist/apps/data/routes/tokens.d.ts +1 -1
- package/dist/apps/data/routes/tokens.d.ts.map +1 -1
- package/dist/apps/data/routes/tokens.js +4 -3
- package/dist/apps/data/routes/tokens.js.map +1 -1
- package/dist/apps/data/routes/transactions.d.ts +281 -281
- package/dist/apps/data/routes/transfers.d.ts.map +1 -1
- package/dist/apps/data/routes/transfers.js +25 -7
- package/dist/apps/data/routes/transfers.js.map +1 -1
- package/dist/apps/data/routes/webhooks.d.ts +380 -364
- package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/data/routes/webhooks.js +16 -9
- package/dist/apps/data/routes/webhooks.js.map +1 -1
- package/dist/apps/data/routes/zones.d.ts +31 -31
- package/dist/apps/funding/App.d.ts +233 -0
- package/dist/apps/funding/App.d.ts.map +1 -1
- package/dist/apps/funding/routes/deposit-addresses.d.ts +330 -0
- package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -1
- package/dist/apps/funding/routes/deposit-addresses.js +207 -11
- package/dist/apps/funding/routes/deposit-addresses.js.map +1 -1
- package/dist/apps/funding/routes/providers.d.ts +13 -13
- package/dist/apps/management/routes/faucet.d.ts +32 -32
- package/dist/apps/management/routes/members.d.ts +79 -79
- package/dist/apps/management/routes/usage.d.ts +80 -80
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +32 -0
- package/dist/db/Db.js.map +1 -1
- package/dist/db/tables/fundingDepositAddresses.d.ts +20 -0
- package/dist/db/tables/fundingDepositAddresses.d.ts.map +1 -1
- package/dist/db/tables/fundingDepositAddresses.js +17 -0
- package/dist/db/tables/fundingDepositAddresses.js.map +1 -1
- package/dist/db/tables/fundingDeposits.d.ts +41 -0
- package/dist/db/tables/fundingDeposits.d.ts.map +1 -1
- package/dist/db/tables/fundingDeposits.js +69 -0
- package/dist/db/tables/fundingDeposits.js.map +1 -1
- package/dist/internal/Auth.d.ts +0 -26
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +0 -33
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/Credential.d.ts +27 -0
- package/dist/internal/Credential.d.ts.map +1 -0
- package/dist/internal/Credential.js +34 -0
- package/dist/internal/Credential.js.map +1 -0
- package/dist/internal/EarnRates.js +11 -7
- package/dist/internal/EarnRates.js.map +1 -1
- package/dist/internal/Log.d.ts +8 -0
- package/dist/internal/Log.d.ts.map +1 -1
- package/dist/internal/Log.js +4 -0
- package/dist/internal/Log.js.map +1 -1
- package/dist/internal/MetricSink.d.ts +24 -0
- package/dist/internal/MetricSink.d.ts.map +1 -1
- package/dist/internal/MetricSink.js +25 -0
- package/dist/internal/MetricSink.js.map +1 -1
- package/dist/internal/Tidx.d.ts +4 -3
- package/dist/internal/Tidx.d.ts.map +1 -1
- package/dist/internal/Tidx.js +2 -2
- package/dist/internal/Tidx.js.map +1 -1
- package/dist/internal/Viem.d.ts +4 -3
- package/dist/internal/Viem.d.ts.map +1 -1
- package/dist/internal/Viem.js +3 -2
- package/dist/internal/Viem.js.map +1 -1
- package/dist/internal/Webhooks.d.ts +2 -0
- package/dist/internal/Webhooks.d.ts.map +1 -1
- package/dist/internal/Webhooks.js +10 -3
- package/dist/internal/Webhooks.js.map +1 -1
- package/dist/internal/index.d.ts +1 -0
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +1 -0
- package/dist/internal/index.js.map +1 -1
- package/package.json +1 -1
- package/src/App.test.ts +30 -0
- package/src/Client.test-d.ts +33 -1
- package/src/Webhooks.ts +1 -1
- package/src/analytics/Analytics.test.ts +34 -0
- package/src/analytics/Analytics.ts +206 -0
- package/src/analytics/tables/requestEvents.ts +6 -0
- package/src/apps/composition.test.ts +1 -0
- package/src/apps/data/App.ts +2 -0
- package/src/apps/data/routes/balances.ts +2 -6
- package/src/apps/data/routes/earn.ts +64 -34
- package/src/apps/data/routes/exchanges.test.ts +8 -3
- package/src/apps/data/routes/exchanges.ts +134 -82
- package/src/apps/data/routes/receipts.ts +16 -14
- package/src/apps/data/routes/tokens.ts +3 -2
- package/src/apps/data/routes/transactions.bench.ts +8 -0
- package/src/apps/data/routes/transfers.ts +36 -10
- package/src/apps/data/routes/webhooks.ts +31 -10
- package/src/apps/funding/routes/deposit-addresses.test.ts +216 -2
- package/src/apps/funding/routes/deposit-addresses.ts +254 -18
- package/src/apps/funding/routes/transfers.test.ts +17 -2
- package/src/db/Db.ts +36 -0
- package/src/db/tables/fundingDepositAddresses.test.ts +28 -0
- package/src/db/tables/fundingDepositAddresses.ts +39 -0
- package/src/db/tables/fundingDeposits.test.ts +82 -0
- package/src/db/tables/fundingDeposits.ts +130 -0
- package/src/internal/Auth.test.ts +0 -48
- package/src/internal/Auth.ts +0 -59
- package/src/internal/Credential.test.ts +51 -0
- package/src/internal/Credential.ts +58 -0
- package/src/internal/EarnRates.ts +13 -7
- package/src/internal/Log.test.ts +3 -1
- package/src/internal/Log.ts +14 -0
- package/src/internal/MetricSink.test.ts +50 -1
- package/src/internal/MetricSink.ts +52 -0
- package/src/internal/Tidx.ts +5 -4
- package/src/internal/Viem.test.ts +4 -0
- package/src/internal/Viem.ts +6 -4
- package/src/internal/Webhooks.test.ts +9 -0
- package/src/internal/Webhooks.ts +10 -3
- package/src/internal/index.test.ts +1 -0
- package/src/internal/index.ts +1 -0
|
@@ -1411,14 +1411,9 @@ export declare namespace schema {
|
|
|
1411
1411
|
export declare function webhooks(options?: webhooks.Options): import("hono/hono-base").HonoBase<App.Environment, {
|
|
1412
1412
|
"/v1/webhooks/event-types": {
|
|
1413
1413
|
$get: {
|
|
1414
|
-
output:
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
type: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
|
|
1418
|
-
}[];
|
|
1419
|
-
};
|
|
1420
|
-
outputFormat: "json";
|
|
1421
|
-
status: 200;
|
|
1414
|
+
output: null;
|
|
1415
|
+
outputFormat: "body";
|
|
1416
|
+
status: 402;
|
|
1422
1417
|
input: {};
|
|
1423
1418
|
} | {
|
|
1424
1419
|
output: {
|
|
@@ -1444,11 +1439,6 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
1444
1439
|
outputFormat: "json";
|
|
1445
1440
|
status: 401;
|
|
1446
1441
|
input: {};
|
|
1447
|
-
} | {
|
|
1448
|
-
output: null;
|
|
1449
|
-
outputFormat: "body";
|
|
1450
|
-
status: 402;
|
|
1451
|
-
input: {};
|
|
1452
1442
|
} | {
|
|
1453
1443
|
output: {
|
|
1454
1444
|
error: {
|
|
@@ -1464,26 +1454,36 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
1464
1454
|
} | {
|
|
1465
1455
|
output: {
|
|
1466
1456
|
error: {
|
|
1467
|
-
code: "
|
|
1457
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1468
1458
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1469
1459
|
message: string;
|
|
1470
1460
|
};
|
|
1471
1461
|
requestId: string;
|
|
1472
1462
|
};
|
|
1473
1463
|
outputFormat: "json";
|
|
1474
|
-
status:
|
|
1464
|
+
status: 429;
|
|
1475
1465
|
input: {};
|
|
1476
1466
|
} | {
|
|
1477
1467
|
output: {
|
|
1478
1468
|
error: {
|
|
1479
|
-
code: "
|
|
1469
|
+
code: "webhooks_not_enabled";
|
|
1480
1470
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1481
1471
|
message: string;
|
|
1482
1472
|
};
|
|
1483
1473
|
requestId: string;
|
|
1484
1474
|
};
|
|
1485
1475
|
outputFormat: "json";
|
|
1486
|
-
status:
|
|
1476
|
+
status: 404;
|
|
1477
|
+
input: {};
|
|
1478
|
+
} | {
|
|
1479
|
+
output: {
|
|
1480
|
+
data: {
|
|
1481
|
+
description: string;
|
|
1482
|
+
type: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
|
|
1483
|
+
}[];
|
|
1484
|
+
};
|
|
1485
|
+
outputFormat: "json";
|
|
1486
|
+
status: 200;
|
|
1487
1487
|
input: {};
|
|
1488
1488
|
};
|
|
1489
1489
|
};
|
|
@@ -1491,40 +1491,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
1491
1491
|
"/v1/webhooks": {
|
|
1492
1492
|
$post: {
|
|
1493
1493
|
output: {
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
[x: string]: string;
|
|
1499
|
-
} | undefined;
|
|
1500
|
-
title?: string | undefined;
|
|
1501
|
-
} | undefined;
|
|
1502
|
-
createdAt: string;
|
|
1503
|
-
eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
|
|
1504
|
-
expiresAt?: string | undefined;
|
|
1505
|
-
failureCount: number;
|
|
1506
|
-
filters: {
|
|
1507
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
1508
|
-
};
|
|
1509
|
-
id: string;
|
|
1510
|
-
lastDeliveryAt?: string | undefined;
|
|
1511
|
-
status: "active" | "disabled" | "paused";
|
|
1512
|
-
updatedAt: string;
|
|
1513
|
-
destination: {
|
|
1514
|
-
type: "url";
|
|
1515
|
-
url: string;
|
|
1516
|
-
} | {
|
|
1517
|
-
type: "slack";
|
|
1518
|
-
url: string;
|
|
1519
|
-
} | {
|
|
1520
|
-
token: string;
|
|
1521
|
-
type: "betterstack";
|
|
1522
|
-
url: string;
|
|
1494
|
+
error: {
|
|
1495
|
+
code: "api_key_malformed";
|
|
1496
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1497
|
+
message: string;
|
|
1523
1498
|
};
|
|
1524
|
-
|
|
1499
|
+
requestId: string;
|
|
1525
1500
|
};
|
|
1526
1501
|
outputFormat: "json";
|
|
1527
|
-
status:
|
|
1502
|
+
status: 400;
|
|
1528
1503
|
input: {
|
|
1529
1504
|
json: {
|
|
1530
1505
|
chainId?: unknown;
|
|
@@ -1841,14 +1816,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
1841
1816
|
} | {
|
|
1842
1817
|
output: {
|
|
1843
1818
|
error: {
|
|
1844
|
-
code: "
|
|
1819
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1845
1820
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1846
1821
|
message: string;
|
|
1847
1822
|
};
|
|
1848
1823
|
requestId: string;
|
|
1849
1824
|
};
|
|
1850
1825
|
outputFormat: "json";
|
|
1851
|
-
status:
|
|
1826
|
+
status: 401;
|
|
1852
1827
|
input: {
|
|
1853
1828
|
json: {
|
|
1854
1829
|
chainId?: unknown;
|
|
@@ -2165,14 +2140,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
2165
2140
|
} | {
|
|
2166
2141
|
output: {
|
|
2167
2142
|
error: {
|
|
2168
|
-
code: "
|
|
2143
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
2169
2144
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2170
2145
|
message: string;
|
|
2171
2146
|
};
|
|
2172
2147
|
requestId: string;
|
|
2173
2148
|
};
|
|
2174
2149
|
outputFormat: "json";
|
|
2175
|
-
status:
|
|
2150
|
+
status: 403;
|
|
2176
2151
|
input: {
|
|
2177
2152
|
json: {
|
|
2178
2153
|
chainId?: unknown;
|
|
@@ -2489,14 +2464,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
2489
2464
|
} | {
|
|
2490
2465
|
output: {
|
|
2491
2466
|
error: {
|
|
2492
|
-
code: "
|
|
2467
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
2493
2468
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2494
2469
|
message: string;
|
|
2495
2470
|
};
|
|
2496
2471
|
requestId: string;
|
|
2497
2472
|
};
|
|
2498
2473
|
outputFormat: "json";
|
|
2499
|
-
status:
|
|
2474
|
+
status: 429;
|
|
2500
2475
|
input: {
|
|
2501
2476
|
json: {
|
|
2502
2477
|
chainId?: unknown;
|
|
@@ -2813,14 +2788,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
2813
2788
|
} | {
|
|
2814
2789
|
output: {
|
|
2815
2790
|
error: {
|
|
2816
|
-
code: "
|
|
2791
|
+
code: "upstream_error";
|
|
2817
2792
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2818
2793
|
message: string;
|
|
2819
2794
|
};
|
|
2820
2795
|
requestId: string;
|
|
2821
2796
|
};
|
|
2822
2797
|
outputFormat: "json";
|
|
2823
|
-
status:
|
|
2798
|
+
status: 502;
|
|
2824
2799
|
input: {
|
|
2825
2800
|
json: {
|
|
2826
2801
|
chainId?: unknown;
|
|
@@ -3137,14 +3112,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
3137
3112
|
} | {
|
|
3138
3113
|
output: {
|
|
3139
3114
|
error: {
|
|
3140
|
-
code: "
|
|
3115
|
+
code: "webhooks_not_enabled";
|
|
3141
3116
|
details?: readonly Response.error.Detail[] | undefined;
|
|
3142
3117
|
message: string;
|
|
3143
3118
|
};
|
|
3144
3119
|
requestId: string;
|
|
3145
3120
|
};
|
|
3146
3121
|
outputFormat: "json";
|
|
3147
|
-
status:
|
|
3122
|
+
status: 404;
|
|
3148
3123
|
input: {
|
|
3149
3124
|
json: {
|
|
3150
3125
|
chainId?: unknown;
|
|
@@ -3461,14 +3436,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
3461
3436
|
} | {
|
|
3462
3437
|
output: {
|
|
3463
3438
|
error: {
|
|
3464
|
-
code: "
|
|
3439
|
+
code: "body_invalid";
|
|
3465
3440
|
details?: readonly Response.error.Detail[] | undefined;
|
|
3466
3441
|
message: string;
|
|
3467
3442
|
};
|
|
3468
3443
|
requestId: string;
|
|
3469
3444
|
};
|
|
3470
3445
|
outputFormat: "json";
|
|
3471
|
-
status:
|
|
3446
|
+
status: 400;
|
|
3472
3447
|
input: {
|
|
3473
3448
|
json: {
|
|
3474
3449
|
chainId?: unknown;
|
|
@@ -4109,14 +4084,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
4109
4084
|
} | {
|
|
4110
4085
|
output: {
|
|
4111
4086
|
error: {
|
|
4112
|
-
code: "
|
|
4087
|
+
code: "chain_id_unsupported";
|
|
4113
4088
|
details?: readonly Response.error.Detail[] | undefined;
|
|
4114
4089
|
message: string;
|
|
4115
4090
|
};
|
|
4116
4091
|
requestId: string;
|
|
4117
4092
|
};
|
|
4118
4093
|
outputFormat: "json";
|
|
4119
|
-
status:
|
|
4094
|
+
status: 400;
|
|
4120
4095
|
input: {
|
|
4121
4096
|
json: {
|
|
4122
4097
|
chainId?: unknown;
|
|
@@ -4432,15 +4407,40 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
4432
4407
|
};
|
|
4433
4408
|
} | {
|
|
4434
4409
|
output: {
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4410
|
+
chainId: number;
|
|
4411
|
+
context?: {
|
|
4412
|
+
description?: string | undefined;
|
|
4413
|
+
metadata?: {
|
|
4414
|
+
[x: string]: string;
|
|
4415
|
+
} | undefined;
|
|
4416
|
+
title?: string | undefined;
|
|
4417
|
+
} | undefined;
|
|
4418
|
+
createdAt: string;
|
|
4419
|
+
eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
|
|
4420
|
+
expiresAt?: string | undefined;
|
|
4421
|
+
failureCount: number;
|
|
4422
|
+
filters: {
|
|
4423
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
4439
4424
|
};
|
|
4440
|
-
|
|
4425
|
+
id: string;
|
|
4426
|
+
lastDeliveryAt?: string | undefined;
|
|
4427
|
+
status: "active" | "disabled" | "paused";
|
|
4428
|
+
updatedAt: string;
|
|
4429
|
+
destination: {
|
|
4430
|
+
type: "url";
|
|
4431
|
+
url: string;
|
|
4432
|
+
} | {
|
|
4433
|
+
type: "slack";
|
|
4434
|
+
url: string;
|
|
4435
|
+
} | {
|
|
4436
|
+
token: string;
|
|
4437
|
+
type: "betterstack";
|
|
4438
|
+
url: string;
|
|
4439
|
+
};
|
|
4440
|
+
secret: string;
|
|
4441
4441
|
};
|
|
4442
4442
|
outputFormat: "json";
|
|
4443
|
-
status:
|
|
4443
|
+
status: 200;
|
|
4444
4444
|
input: {
|
|
4445
4445
|
json: {
|
|
4446
4446
|
chainId?: unknown;
|
|
@@ -4757,14 +4757,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
4757
4757
|
} | {
|
|
4758
4758
|
output: {
|
|
4759
4759
|
error: {
|
|
4760
|
-
code: "
|
|
4760
|
+
code: "url_invalid";
|
|
4761
4761
|
details?: readonly Response.error.Detail[] | undefined;
|
|
4762
4762
|
message: string;
|
|
4763
4763
|
};
|
|
4764
4764
|
requestId: string;
|
|
4765
4765
|
};
|
|
4766
4766
|
outputFormat: "json";
|
|
4767
|
-
status:
|
|
4767
|
+
status: 400;
|
|
4768
4768
|
input: {
|
|
4769
4769
|
json: {
|
|
4770
4770
|
chainId?: unknown;
|
|
@@ -5081,14 +5081,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
5081
5081
|
} | {
|
|
5082
5082
|
output: {
|
|
5083
5083
|
error: {
|
|
5084
|
-
code: "
|
|
5084
|
+
code: "filters_invalid";
|
|
5085
5085
|
details?: readonly Response.error.Detail[] | undefined;
|
|
5086
5086
|
message: string;
|
|
5087
5087
|
};
|
|
5088
5088
|
requestId: string;
|
|
5089
5089
|
};
|
|
5090
5090
|
outputFormat: "json";
|
|
5091
|
-
status:
|
|
5091
|
+
status: 400;
|
|
5092
5092
|
input: {
|
|
5093
5093
|
json: {
|
|
5094
5094
|
chainId?: unknown;
|
|
@@ -5405,14 +5405,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
5405
5405
|
} | {
|
|
5406
5406
|
output: {
|
|
5407
5407
|
error: {
|
|
5408
|
-
code: "
|
|
5408
|
+
code: "limit_exceeded";
|
|
5409
5409
|
details?: readonly Response.error.Detail[] | undefined;
|
|
5410
5410
|
message: string;
|
|
5411
5411
|
};
|
|
5412
5412
|
requestId: string;
|
|
5413
5413
|
};
|
|
5414
5414
|
outputFormat: "json";
|
|
5415
|
-
status:
|
|
5415
|
+
status: 403;
|
|
5416
5416
|
input: {
|
|
5417
5417
|
json: {
|
|
5418
5418
|
chainId?: unknown;
|
|
@@ -5731,56 +5731,6 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
5731
5731
|
} & {
|
|
5732
5732
|
"/v1/webhooks": {
|
|
5733
5733
|
$get: {
|
|
5734
|
-
output: {
|
|
5735
|
-
data: {
|
|
5736
|
-
chainId: number;
|
|
5737
|
-
context?: {
|
|
5738
|
-
description?: string | undefined;
|
|
5739
|
-
metadata?: {
|
|
5740
|
-
[x: string]: string;
|
|
5741
|
-
} | undefined;
|
|
5742
|
-
title?: string | undefined;
|
|
5743
|
-
} | undefined;
|
|
5744
|
-
createdAt: string;
|
|
5745
|
-
destination: {
|
|
5746
|
-
type: "url";
|
|
5747
|
-
url: string;
|
|
5748
|
-
} | {
|
|
5749
|
-
type: "slack";
|
|
5750
|
-
url: "https://hooks.slack.com/…";
|
|
5751
|
-
} | {
|
|
5752
|
-
token: "[redacted]";
|
|
5753
|
-
type: "betterstack";
|
|
5754
|
-
url: string;
|
|
5755
|
-
};
|
|
5756
|
-
eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
|
|
5757
|
-
expiresAt?: string | undefined;
|
|
5758
|
-
failureCount: number;
|
|
5759
|
-
filters: {
|
|
5760
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
5761
|
-
};
|
|
5762
|
-
id: string;
|
|
5763
|
-
lastDeliveryAt?: string | undefined;
|
|
5764
|
-
status: "active" | "disabled" | "paused";
|
|
5765
|
-
updatedAt: string;
|
|
5766
|
-
}[];
|
|
5767
|
-
meta?: {
|
|
5768
|
-
totalCountCapped: boolean;
|
|
5769
|
-
totalCount: number;
|
|
5770
|
-
} | undefined;
|
|
5771
|
-
nextCursor: string | null;
|
|
5772
|
-
};
|
|
5773
|
-
outputFormat: "json";
|
|
5774
|
-
status: 200;
|
|
5775
|
-
input: {
|
|
5776
|
-
query?: {
|
|
5777
|
-
cursor?: string | string[];
|
|
5778
|
-
include?: string | string[];
|
|
5779
|
-
limit?: string | string[];
|
|
5780
|
-
page?: string | string[];
|
|
5781
|
-
} | undefined;
|
|
5782
|
-
};
|
|
5783
|
-
} | {
|
|
5784
5734
|
output: {
|
|
5785
5735
|
error: {
|
|
5786
5736
|
code: "api_key_malformed";
|
|
@@ -5802,14 +5752,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
5802
5752
|
} | {
|
|
5803
5753
|
output: {
|
|
5804
5754
|
error: {
|
|
5805
|
-
code: "
|
|
5755
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
5806
5756
|
details?: readonly Response.error.Detail[] | undefined;
|
|
5807
5757
|
message: string;
|
|
5808
5758
|
};
|
|
5809
5759
|
requestId: string;
|
|
5810
5760
|
};
|
|
5811
5761
|
outputFormat: "json";
|
|
5812
|
-
status:
|
|
5762
|
+
status: 401;
|
|
5813
5763
|
input: {
|
|
5814
5764
|
query?: {
|
|
5815
5765
|
cursor?: string | string[];
|
|
@@ -5821,14 +5771,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
5821
5771
|
} | {
|
|
5822
5772
|
output: {
|
|
5823
5773
|
error: {
|
|
5824
|
-
code: "
|
|
5774
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
5825
5775
|
details?: readonly Response.error.Detail[] | undefined;
|
|
5826
5776
|
message: string;
|
|
5827
5777
|
};
|
|
5828
5778
|
requestId: string;
|
|
5829
5779
|
};
|
|
5830
5780
|
outputFormat: "json";
|
|
5831
|
-
status:
|
|
5781
|
+
status: 403;
|
|
5832
5782
|
input: {
|
|
5833
5783
|
query?: {
|
|
5834
5784
|
cursor?: string | string[];
|
|
@@ -5840,14 +5790,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
5840
5790
|
} | {
|
|
5841
5791
|
output: {
|
|
5842
5792
|
error: {
|
|
5843
|
-
code: "
|
|
5793
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
5844
5794
|
details?: readonly Response.error.Detail[] | undefined;
|
|
5845
5795
|
message: string;
|
|
5846
5796
|
};
|
|
5847
5797
|
requestId: string;
|
|
5848
5798
|
};
|
|
5849
5799
|
outputFormat: "json";
|
|
5850
|
-
status:
|
|
5800
|
+
status: 429;
|
|
5851
5801
|
input: {
|
|
5852
5802
|
query?: {
|
|
5853
5803
|
cursor?: string | string[];
|
|
@@ -5859,14 +5809,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
5859
5809
|
} | {
|
|
5860
5810
|
output: {
|
|
5861
5811
|
error: {
|
|
5862
|
-
code: "
|
|
5812
|
+
code: "query_invalid";
|
|
5863
5813
|
details?: readonly Response.error.Detail[] | undefined;
|
|
5864
5814
|
message: string;
|
|
5865
5815
|
};
|
|
5866
5816
|
requestId: string;
|
|
5867
5817
|
};
|
|
5868
5818
|
outputFormat: "json";
|
|
5869
|
-
status:
|
|
5819
|
+
status: 400;
|
|
5870
5820
|
input: {
|
|
5871
5821
|
query?: {
|
|
5872
5822
|
cursor?: string | string[];
|
|
@@ -5878,14 +5828,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
5878
5828
|
} | {
|
|
5879
5829
|
output: {
|
|
5880
5830
|
error: {
|
|
5881
|
-
code: "
|
|
5831
|
+
code: "upstream_error";
|
|
5882
5832
|
details?: readonly Response.error.Detail[] | undefined;
|
|
5883
5833
|
message: string;
|
|
5884
5834
|
};
|
|
5885
5835
|
requestId: string;
|
|
5886
5836
|
};
|
|
5887
5837
|
outputFormat: "json";
|
|
5888
|
-
status:
|
|
5838
|
+
status: 502;
|
|
5889
5839
|
input: {
|
|
5890
5840
|
query?: {
|
|
5891
5841
|
cursor?: string | string[];
|
|
@@ -5897,14 +5847,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
5897
5847
|
} | {
|
|
5898
5848
|
output: {
|
|
5899
5849
|
error: {
|
|
5900
|
-
code: "
|
|
5850
|
+
code: "webhooks_not_enabled";
|
|
5901
5851
|
details?: readonly Response.error.Detail[] | undefined;
|
|
5902
5852
|
message: string;
|
|
5903
5853
|
};
|
|
5904
5854
|
requestId: string;
|
|
5905
5855
|
};
|
|
5906
5856
|
outputFormat: "json";
|
|
5907
|
-
status:
|
|
5857
|
+
status: 404;
|
|
5908
5858
|
input: {
|
|
5909
5859
|
query?: {
|
|
5910
5860
|
cursor?: string | string[];
|
|
@@ -5916,14 +5866,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
5916
5866
|
} | {
|
|
5917
5867
|
output: {
|
|
5918
5868
|
error: {
|
|
5919
|
-
code: "
|
|
5869
|
+
code: "unauthorized";
|
|
5920
5870
|
details?: readonly Response.error.Detail[] | undefined;
|
|
5921
5871
|
message: string;
|
|
5922
5872
|
};
|
|
5923
5873
|
requestId: string;
|
|
5924
5874
|
};
|
|
5925
5875
|
outputFormat: "json";
|
|
5926
|
-
status:
|
|
5876
|
+
status: 401;
|
|
5927
5877
|
input: {
|
|
5928
5878
|
query?: {
|
|
5929
5879
|
cursor?: string | string[];
|
|
@@ -5932,51 +5882,61 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
5932
5882
|
page?: string | string[];
|
|
5933
5883
|
} | undefined;
|
|
5934
5884
|
};
|
|
5935
|
-
}
|
|
5936
|
-
};
|
|
5937
|
-
} & {
|
|
5938
|
-
"/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}": {
|
|
5939
|
-
$get: {
|
|
5885
|
+
} | {
|
|
5940
5886
|
output: {
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5887
|
+
data: {
|
|
5888
|
+
chainId: number;
|
|
5889
|
+
context?: {
|
|
5890
|
+
description?: string | undefined;
|
|
5891
|
+
metadata?: {
|
|
5892
|
+
[x: string]: string;
|
|
5893
|
+
} | undefined;
|
|
5894
|
+
title?: string | undefined;
|
|
5946
5895
|
} | undefined;
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5896
|
+
createdAt: string;
|
|
5897
|
+
destination: {
|
|
5898
|
+
type: "url";
|
|
5899
|
+
url: string;
|
|
5900
|
+
} | {
|
|
5901
|
+
type: "slack";
|
|
5902
|
+
url: "https://hooks.slack.com/…";
|
|
5903
|
+
} | {
|
|
5904
|
+
token: "[redacted]";
|
|
5905
|
+
type: "betterstack";
|
|
5906
|
+
url: string;
|
|
5907
|
+
};
|
|
5908
|
+
eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
|
|
5909
|
+
expiresAt?: string | undefined;
|
|
5910
|
+
failureCount: number;
|
|
5911
|
+
filters: {
|
|
5912
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
5913
|
+
};
|
|
5914
|
+
id: string;
|
|
5915
|
+
lastDeliveryAt?: string | undefined;
|
|
5916
|
+
status: "active" | "disabled" | "paused";
|
|
5917
|
+
updatedAt: string;
|
|
5918
|
+
}[];
|
|
5919
|
+
meta?: {
|
|
5920
|
+
totalCountCapped: boolean;
|
|
5921
|
+
totalCount: number;
|
|
5922
|
+
} | undefined;
|
|
5923
|
+
nextCursor: string | null;
|
|
5971
5924
|
};
|
|
5972
5925
|
outputFormat: "json";
|
|
5973
5926
|
status: 200;
|
|
5974
5927
|
input: {
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5928
|
+
query?: {
|
|
5929
|
+
cursor?: string | string[];
|
|
5930
|
+
include?: string | string[];
|
|
5931
|
+
limit?: string | string[];
|
|
5932
|
+
page?: string | string[];
|
|
5933
|
+
} | undefined;
|
|
5978
5934
|
};
|
|
5979
|
-
}
|
|
5935
|
+
};
|
|
5936
|
+
};
|
|
5937
|
+
} & {
|
|
5938
|
+
"/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}": {
|
|
5939
|
+
$get: {
|
|
5980
5940
|
output: {
|
|
5981
5941
|
error: {
|
|
5982
5942
|
code: "api_key_malformed";
|
|
@@ -5995,14 +5955,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
5995
5955
|
} | {
|
|
5996
5956
|
output: {
|
|
5997
5957
|
error: {
|
|
5998
|
-
code: "
|
|
5958
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
5999
5959
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6000
5960
|
message: string;
|
|
6001
5961
|
};
|
|
6002
5962
|
requestId: string;
|
|
6003
5963
|
};
|
|
6004
5964
|
outputFormat: "json";
|
|
6005
|
-
status:
|
|
5965
|
+
status: 401;
|
|
6006
5966
|
input: {
|
|
6007
5967
|
param: {
|
|
6008
5968
|
id: string;
|
|
@@ -6011,14 +5971,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6011
5971
|
} | {
|
|
6012
5972
|
output: {
|
|
6013
5973
|
error: {
|
|
6014
|
-
code: "
|
|
5974
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
6015
5975
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6016
5976
|
message: string;
|
|
6017
5977
|
};
|
|
6018
5978
|
requestId: string;
|
|
6019
5979
|
};
|
|
6020
5980
|
outputFormat: "json";
|
|
6021
|
-
status:
|
|
5981
|
+
status: 403;
|
|
6022
5982
|
input: {
|
|
6023
5983
|
param: {
|
|
6024
5984
|
id: string;
|
|
@@ -6027,14 +5987,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6027
5987
|
} | {
|
|
6028
5988
|
output: {
|
|
6029
5989
|
error: {
|
|
6030
|
-
code: "
|
|
5990
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
6031
5991
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6032
5992
|
message: string;
|
|
6033
5993
|
};
|
|
6034
5994
|
requestId: string;
|
|
6035
5995
|
};
|
|
6036
5996
|
outputFormat: "json";
|
|
6037
|
-
status:
|
|
5997
|
+
status: 429;
|
|
6038
5998
|
input: {
|
|
6039
5999
|
param: {
|
|
6040
6000
|
id: string;
|
|
@@ -6043,14 +6003,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6043
6003
|
} | {
|
|
6044
6004
|
output: {
|
|
6045
6005
|
error: {
|
|
6046
|
-
code: "
|
|
6006
|
+
code: "upstream_error";
|
|
6047
6007
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6048
6008
|
message: string;
|
|
6049
6009
|
};
|
|
6050
6010
|
requestId: string;
|
|
6051
6011
|
};
|
|
6052
6012
|
outputFormat: "json";
|
|
6053
|
-
status:
|
|
6013
|
+
status: 502;
|
|
6054
6014
|
input: {
|
|
6055
6015
|
param: {
|
|
6056
6016
|
id: string;
|
|
@@ -6075,14 +6035,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6075
6035
|
} | {
|
|
6076
6036
|
output: {
|
|
6077
6037
|
error: {
|
|
6078
|
-
code: "
|
|
6038
|
+
code: "unauthorized";
|
|
6079
6039
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6080
6040
|
message: string;
|
|
6081
6041
|
};
|
|
6082
6042
|
requestId: string;
|
|
6083
6043
|
};
|
|
6084
6044
|
outputFormat: "json";
|
|
6085
|
-
status:
|
|
6045
|
+
status: 401;
|
|
6086
6046
|
input: {
|
|
6087
6047
|
param: {
|
|
6088
6048
|
id: string;
|
|
@@ -6091,14 +6051,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6091
6051
|
} | {
|
|
6092
6052
|
output: {
|
|
6093
6053
|
error: {
|
|
6094
|
-
code: "
|
|
6054
|
+
code: "param_invalid";
|
|
6095
6055
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6096
6056
|
message: string;
|
|
6097
6057
|
};
|
|
6098
6058
|
requestId: string;
|
|
6099
6059
|
};
|
|
6100
6060
|
outputFormat: "json";
|
|
6101
|
-
status:
|
|
6061
|
+
status: 400;
|
|
6102
6062
|
input: {
|
|
6103
6063
|
param: {
|
|
6104
6064
|
id: string;
|
|
@@ -6107,42 +6067,51 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6107
6067
|
} | {
|
|
6108
6068
|
output: {
|
|
6109
6069
|
error: {
|
|
6110
|
-
code: "
|
|
6070
|
+
code: "webhook_not_found";
|
|
6111
6071
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6112
6072
|
message: string;
|
|
6113
6073
|
};
|
|
6114
6074
|
requestId: string;
|
|
6115
6075
|
};
|
|
6116
6076
|
outputFormat: "json";
|
|
6117
|
-
status:
|
|
6077
|
+
status: 404;
|
|
6118
6078
|
input: {
|
|
6119
6079
|
param: {
|
|
6120
6080
|
id: string;
|
|
6121
6081
|
};
|
|
6122
6082
|
};
|
|
6123
|
-
}
|
|
6124
|
-
};
|
|
6125
|
-
} & {
|
|
6126
|
-
"/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries": {
|
|
6127
|
-
$get: {
|
|
6083
|
+
} | {
|
|
6128
6084
|
output: {
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
responseMs?: number | undefined;
|
|
6137
|
-
responseStatus?: number | undefined;
|
|
6138
|
-
status: "failed" | "pending" | "succeeded";
|
|
6139
|
-
subscriptionId: string;
|
|
6140
|
-
}[];
|
|
6141
|
-
meta?: {
|
|
6142
|
-
totalCountCapped: boolean;
|
|
6143
|
-
totalCount: number;
|
|
6085
|
+
chainId: number;
|
|
6086
|
+
context?: {
|
|
6087
|
+
description?: string | undefined;
|
|
6088
|
+
metadata?: {
|
|
6089
|
+
[x: string]: string;
|
|
6090
|
+
} | undefined;
|
|
6091
|
+
title?: string | undefined;
|
|
6144
6092
|
} | undefined;
|
|
6145
|
-
|
|
6093
|
+
createdAt: string;
|
|
6094
|
+
destination: {
|
|
6095
|
+
type: "url";
|
|
6096
|
+
url: string;
|
|
6097
|
+
} | {
|
|
6098
|
+
type: "slack";
|
|
6099
|
+
url: "https://hooks.slack.com/…";
|
|
6100
|
+
} | {
|
|
6101
|
+
token: "[redacted]";
|
|
6102
|
+
type: "betterstack";
|
|
6103
|
+
url: string;
|
|
6104
|
+
};
|
|
6105
|
+
eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
|
|
6106
|
+
expiresAt?: string | undefined;
|
|
6107
|
+
failureCount: number;
|
|
6108
|
+
filters: {
|
|
6109
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
6110
|
+
};
|
|
6111
|
+
id: string;
|
|
6112
|
+
lastDeliveryAt?: string | undefined;
|
|
6113
|
+
status: "active" | "disabled" | "paused";
|
|
6114
|
+
updatedAt: string;
|
|
6146
6115
|
};
|
|
6147
6116
|
outputFormat: "json";
|
|
6148
6117
|
status: 200;
|
|
@@ -6150,15 +6119,12 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6150
6119
|
param: {
|
|
6151
6120
|
id: string;
|
|
6152
6121
|
};
|
|
6153
|
-
} & {
|
|
6154
|
-
query?: {
|
|
6155
|
-
cursor?: string | string[];
|
|
6156
|
-
include?: string | string[];
|
|
6157
|
-
limit?: string | string[];
|
|
6158
|
-
page?: string | string[];
|
|
6159
|
-
} | undefined;
|
|
6160
6122
|
};
|
|
6161
|
-
}
|
|
6123
|
+
};
|
|
6124
|
+
};
|
|
6125
|
+
} & {
|
|
6126
|
+
"/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries": {
|
|
6127
|
+
$get: {
|
|
6162
6128
|
output: {
|
|
6163
6129
|
error: {
|
|
6164
6130
|
code: "api_key_malformed";
|
|
@@ -6184,14 +6150,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6184
6150
|
} | {
|
|
6185
6151
|
output: {
|
|
6186
6152
|
error: {
|
|
6187
|
-
code: "
|
|
6153
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
6188
6154
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6189
6155
|
message: string;
|
|
6190
6156
|
};
|
|
6191
6157
|
requestId: string;
|
|
6192
6158
|
};
|
|
6193
6159
|
outputFormat: "json";
|
|
6194
|
-
status:
|
|
6160
|
+
status: 401;
|
|
6195
6161
|
input: {
|
|
6196
6162
|
param: {
|
|
6197
6163
|
id: string;
|
|
@@ -6207,14 +6173,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6207
6173
|
} | {
|
|
6208
6174
|
output: {
|
|
6209
6175
|
error: {
|
|
6210
|
-
code: "
|
|
6176
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
6211
6177
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6212
6178
|
message: string;
|
|
6213
6179
|
};
|
|
6214
6180
|
requestId: string;
|
|
6215
6181
|
};
|
|
6216
6182
|
outputFormat: "json";
|
|
6217
|
-
status:
|
|
6183
|
+
status: 403;
|
|
6218
6184
|
input: {
|
|
6219
6185
|
param: {
|
|
6220
6186
|
id: string;
|
|
@@ -6230,14 +6196,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6230
6196
|
} | {
|
|
6231
6197
|
output: {
|
|
6232
6198
|
error: {
|
|
6233
|
-
code: "
|
|
6199
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
6234
6200
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6235
6201
|
message: string;
|
|
6236
6202
|
};
|
|
6237
6203
|
requestId: string;
|
|
6238
6204
|
};
|
|
6239
6205
|
outputFormat: "json";
|
|
6240
|
-
status:
|
|
6206
|
+
status: 429;
|
|
6241
6207
|
input: {
|
|
6242
6208
|
param: {
|
|
6243
6209
|
id: string;
|
|
@@ -6253,14 +6219,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6253
6219
|
} | {
|
|
6254
6220
|
output: {
|
|
6255
6221
|
error: {
|
|
6256
|
-
code: "
|
|
6222
|
+
code: "query_invalid";
|
|
6257
6223
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6258
6224
|
message: string;
|
|
6259
6225
|
};
|
|
6260
6226
|
requestId: string;
|
|
6261
6227
|
};
|
|
6262
6228
|
outputFormat: "json";
|
|
6263
|
-
status:
|
|
6229
|
+
status: 400;
|
|
6264
6230
|
input: {
|
|
6265
6231
|
param: {
|
|
6266
6232
|
id: string;
|
|
@@ -6276,14 +6242,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6276
6242
|
} | {
|
|
6277
6243
|
output: {
|
|
6278
6244
|
error: {
|
|
6279
|
-
code: "
|
|
6245
|
+
code: "upstream_error";
|
|
6280
6246
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6281
6247
|
message: string;
|
|
6282
6248
|
};
|
|
6283
6249
|
requestId: string;
|
|
6284
6250
|
};
|
|
6285
6251
|
outputFormat: "json";
|
|
6286
|
-
status:
|
|
6252
|
+
status: 502;
|
|
6287
6253
|
input: {
|
|
6288
6254
|
param: {
|
|
6289
6255
|
id: string;
|
|
@@ -6322,14 +6288,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6322
6288
|
} | {
|
|
6323
6289
|
output: {
|
|
6324
6290
|
error: {
|
|
6325
|
-
code: "
|
|
6291
|
+
code: "unauthorized";
|
|
6326
6292
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6327
6293
|
message: string;
|
|
6328
6294
|
};
|
|
6329
6295
|
requestId: string;
|
|
6330
6296
|
};
|
|
6331
6297
|
outputFormat: "json";
|
|
6332
|
-
status:
|
|
6298
|
+
status: 401;
|
|
6333
6299
|
input: {
|
|
6334
6300
|
param: {
|
|
6335
6301
|
id: string;
|
|
@@ -6345,14 +6311,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6345
6311
|
} | {
|
|
6346
6312
|
output: {
|
|
6347
6313
|
error: {
|
|
6348
|
-
code: "
|
|
6314
|
+
code: "param_invalid";
|
|
6349
6315
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6350
6316
|
message: string;
|
|
6351
6317
|
};
|
|
6352
6318
|
requestId: string;
|
|
6353
6319
|
};
|
|
6354
6320
|
outputFormat: "json";
|
|
6355
|
-
status:
|
|
6321
|
+
status: 400;
|
|
6356
6322
|
input: {
|
|
6357
6323
|
param: {
|
|
6358
6324
|
id: string;
|
|
@@ -6368,14 +6334,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6368
6334
|
} | {
|
|
6369
6335
|
output: {
|
|
6370
6336
|
error: {
|
|
6371
|
-
code: "
|
|
6337
|
+
code: "webhook_not_found";
|
|
6372
6338
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6373
6339
|
message: string;
|
|
6374
6340
|
};
|
|
6375
6341
|
requestId: string;
|
|
6376
6342
|
};
|
|
6377
6343
|
outputFormat: "json";
|
|
6378
|
-
status:
|
|
6344
|
+
status: 404;
|
|
6379
6345
|
input: {
|
|
6380
6346
|
param: {
|
|
6381
6347
|
id: string;
|
|
@@ -6388,17 +6354,25 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6388
6354
|
page?: string | string[];
|
|
6389
6355
|
} | undefined;
|
|
6390
6356
|
};
|
|
6391
|
-
}
|
|
6392
|
-
};
|
|
6393
|
-
} & {
|
|
6394
|
-
"/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/ping": {
|
|
6395
|
-
$post: {
|
|
6357
|
+
} | {
|
|
6396
6358
|
output: {
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6400
|
-
|
|
6401
|
-
|
|
6359
|
+
data: {
|
|
6360
|
+
attempt: number;
|
|
6361
|
+
createdAt: string;
|
|
6362
|
+
error?: string | undefined;
|
|
6363
|
+
eventId: string;
|
|
6364
|
+
id: string;
|
|
6365
|
+
requestUrl: string;
|
|
6366
|
+
responseMs?: number | undefined;
|
|
6367
|
+
responseStatus?: number | undefined;
|
|
6368
|
+
status: "failed" | "pending" | "succeeded";
|
|
6369
|
+
subscriptionId: string;
|
|
6370
|
+
}[];
|
|
6371
|
+
meta?: {
|
|
6372
|
+
totalCountCapped: boolean;
|
|
6373
|
+
totalCount: number;
|
|
6374
|
+
} | undefined;
|
|
6375
|
+
nextCursor: string | null;
|
|
6402
6376
|
};
|
|
6403
6377
|
outputFormat: "json";
|
|
6404
6378
|
status: 200;
|
|
@@ -6406,8 +6380,19 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6406
6380
|
param: {
|
|
6407
6381
|
id: string;
|
|
6408
6382
|
};
|
|
6383
|
+
} & {
|
|
6384
|
+
query?: {
|
|
6385
|
+
cursor?: string | string[];
|
|
6386
|
+
include?: string | string[];
|
|
6387
|
+
limit?: string | string[];
|
|
6388
|
+
page?: string | string[];
|
|
6389
|
+
} | undefined;
|
|
6409
6390
|
};
|
|
6410
|
-
}
|
|
6391
|
+
};
|
|
6392
|
+
};
|
|
6393
|
+
} & {
|
|
6394
|
+
"/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/ping": {
|
|
6395
|
+
$post: {
|
|
6411
6396
|
output: {
|
|
6412
6397
|
error: {
|
|
6413
6398
|
code: "api_key_malformed";
|
|
@@ -6426,14 +6411,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6426
6411
|
} | {
|
|
6427
6412
|
output: {
|
|
6428
6413
|
error: {
|
|
6429
|
-
code: "
|
|
6414
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
6430
6415
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6431
6416
|
message: string;
|
|
6432
6417
|
};
|
|
6433
6418
|
requestId: string;
|
|
6434
6419
|
};
|
|
6435
6420
|
outputFormat: "json";
|
|
6436
|
-
status:
|
|
6421
|
+
status: 401;
|
|
6437
6422
|
input: {
|
|
6438
6423
|
param: {
|
|
6439
6424
|
id: string;
|
|
@@ -6442,14 +6427,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6442
6427
|
} | {
|
|
6443
6428
|
output: {
|
|
6444
6429
|
error: {
|
|
6445
|
-
code: "
|
|
6430
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
6446
6431
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6447
6432
|
message: string;
|
|
6448
6433
|
};
|
|
6449
6434
|
requestId: string;
|
|
6450
6435
|
};
|
|
6451
6436
|
outputFormat: "json";
|
|
6452
|
-
status:
|
|
6437
|
+
status: 403;
|
|
6453
6438
|
input: {
|
|
6454
6439
|
param: {
|
|
6455
6440
|
id: string;
|
|
@@ -6458,14 +6443,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6458
6443
|
} | {
|
|
6459
6444
|
output: {
|
|
6460
6445
|
error: {
|
|
6461
|
-
code: "
|
|
6446
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
6462
6447
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6463
6448
|
message: string;
|
|
6464
6449
|
};
|
|
6465
6450
|
requestId: string;
|
|
6466
6451
|
};
|
|
6467
6452
|
outputFormat: "json";
|
|
6468
|
-
status:
|
|
6453
|
+
status: 429;
|
|
6469
6454
|
input: {
|
|
6470
6455
|
param: {
|
|
6471
6456
|
id: string;
|
|
@@ -6474,14 +6459,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6474
6459
|
} | {
|
|
6475
6460
|
output: {
|
|
6476
6461
|
error: {
|
|
6477
|
-
code: "
|
|
6462
|
+
code: "upstream_error";
|
|
6478
6463
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6479
6464
|
message: string;
|
|
6480
6465
|
};
|
|
6481
6466
|
requestId: string;
|
|
6482
6467
|
};
|
|
6483
6468
|
outputFormat: "json";
|
|
6484
|
-
status:
|
|
6469
|
+
status: 502;
|
|
6485
6470
|
input: {
|
|
6486
6471
|
param: {
|
|
6487
6472
|
id: string;
|
|
@@ -6506,14 +6491,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6506
6491
|
} | {
|
|
6507
6492
|
output: {
|
|
6508
6493
|
error: {
|
|
6509
|
-
code: "
|
|
6494
|
+
code: "unauthorized";
|
|
6510
6495
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6511
6496
|
message: string;
|
|
6512
6497
|
};
|
|
6513
6498
|
requestId: string;
|
|
6514
6499
|
};
|
|
6515
6500
|
outputFormat: "json";
|
|
6516
|
-
status:
|
|
6501
|
+
status: 401;
|
|
6517
6502
|
input: {
|
|
6518
6503
|
param: {
|
|
6519
6504
|
id: string;
|
|
@@ -6522,14 +6507,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6522
6507
|
} | {
|
|
6523
6508
|
output: {
|
|
6524
6509
|
error: {
|
|
6525
|
-
code: "
|
|
6510
|
+
code: "param_invalid";
|
|
6526
6511
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6527
6512
|
message: string;
|
|
6528
6513
|
};
|
|
6529
6514
|
requestId: string;
|
|
6530
6515
|
};
|
|
6531
6516
|
outputFormat: "json";
|
|
6532
|
-
status:
|
|
6517
|
+
status: 400;
|
|
6533
6518
|
input: {
|
|
6534
6519
|
param: {
|
|
6535
6520
|
id: string;
|
|
@@ -6538,24 +6523,20 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6538
6523
|
} | {
|
|
6539
6524
|
output: {
|
|
6540
6525
|
error: {
|
|
6541
|
-
code: "
|
|
6526
|
+
code: "webhook_not_found";
|
|
6542
6527
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6543
6528
|
message: string;
|
|
6544
6529
|
};
|
|
6545
6530
|
requestId: string;
|
|
6546
6531
|
};
|
|
6547
6532
|
outputFormat: "json";
|
|
6548
|
-
status:
|
|
6533
|
+
status: 404;
|
|
6549
6534
|
input: {
|
|
6550
6535
|
param: {
|
|
6551
6536
|
id: string;
|
|
6552
6537
|
};
|
|
6553
6538
|
};
|
|
6554
|
-
}
|
|
6555
|
-
};
|
|
6556
|
-
} & {
|
|
6557
|
-
"/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries/:deliveryId/retry": {
|
|
6558
|
-
$post: {
|
|
6539
|
+
} | {
|
|
6559
6540
|
output: {
|
|
6560
6541
|
delivered: boolean;
|
|
6561
6542
|
error?: string | undefined;
|
|
@@ -6567,11 +6548,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6567
6548
|
status: 200;
|
|
6568
6549
|
input: {
|
|
6569
6550
|
param: {
|
|
6570
|
-
deliveryId: string;
|
|
6571
6551
|
id: string;
|
|
6572
6552
|
};
|
|
6573
6553
|
};
|
|
6574
|
-
}
|
|
6554
|
+
};
|
|
6555
|
+
};
|
|
6556
|
+
} & {
|
|
6557
|
+
"/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries/:deliveryId/retry": {
|
|
6558
|
+
$post: {
|
|
6575
6559
|
output: {
|
|
6576
6560
|
error: {
|
|
6577
6561
|
code: "api_key_malformed";
|
|
@@ -6591,14 +6575,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6591
6575
|
} | {
|
|
6592
6576
|
output: {
|
|
6593
6577
|
error: {
|
|
6594
|
-
code: "
|
|
6578
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
6595
6579
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6596
6580
|
message: string;
|
|
6597
6581
|
};
|
|
6598
6582
|
requestId: string;
|
|
6599
6583
|
};
|
|
6600
6584
|
outputFormat: "json";
|
|
6601
|
-
status:
|
|
6585
|
+
status: 401;
|
|
6602
6586
|
input: {
|
|
6603
6587
|
param: {
|
|
6604
6588
|
deliveryId: string;
|
|
@@ -6608,14 +6592,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6608
6592
|
} | {
|
|
6609
6593
|
output: {
|
|
6610
6594
|
error: {
|
|
6611
|
-
code: "
|
|
6595
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
6612
6596
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6613
6597
|
message: string;
|
|
6614
6598
|
};
|
|
6615
6599
|
requestId: string;
|
|
6616
6600
|
};
|
|
6617
6601
|
outputFormat: "json";
|
|
6618
|
-
status:
|
|
6602
|
+
status: 403;
|
|
6619
6603
|
input: {
|
|
6620
6604
|
param: {
|
|
6621
6605
|
deliveryId: string;
|
|
@@ -6625,14 +6609,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6625
6609
|
} | {
|
|
6626
6610
|
output: {
|
|
6627
6611
|
error: {
|
|
6628
|
-
code: "
|
|
6612
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
6629
6613
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6630
6614
|
message: string;
|
|
6631
6615
|
};
|
|
6632
6616
|
requestId: string;
|
|
6633
6617
|
};
|
|
6634
6618
|
outputFormat: "json";
|
|
6635
|
-
status:
|
|
6619
|
+
status: 429;
|
|
6636
6620
|
input: {
|
|
6637
6621
|
param: {
|
|
6638
6622
|
deliveryId: string;
|
|
@@ -6642,14 +6626,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6642
6626
|
} | {
|
|
6643
6627
|
output: {
|
|
6644
6628
|
error: {
|
|
6645
|
-
code: "
|
|
6629
|
+
code: "upstream_error";
|
|
6646
6630
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6647
6631
|
message: string;
|
|
6648
6632
|
};
|
|
6649
6633
|
requestId: string;
|
|
6650
6634
|
};
|
|
6651
6635
|
outputFormat: "json";
|
|
6652
|
-
status:
|
|
6636
|
+
status: 502;
|
|
6653
6637
|
input: {
|
|
6654
6638
|
param: {
|
|
6655
6639
|
deliveryId: string;
|
|
@@ -6676,14 +6660,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6676
6660
|
} | {
|
|
6677
6661
|
output: {
|
|
6678
6662
|
error: {
|
|
6679
|
-
code: "
|
|
6663
|
+
code: "unauthorized";
|
|
6680
6664
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6681
6665
|
message: string;
|
|
6682
6666
|
};
|
|
6683
6667
|
requestId: string;
|
|
6684
6668
|
};
|
|
6685
6669
|
outputFormat: "json";
|
|
6686
|
-
status:
|
|
6670
|
+
status: 401;
|
|
6687
6671
|
input: {
|
|
6688
6672
|
param: {
|
|
6689
6673
|
deliveryId: string;
|
|
@@ -6693,14 +6677,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6693
6677
|
} | {
|
|
6694
6678
|
output: {
|
|
6695
6679
|
error: {
|
|
6696
|
-
code: "
|
|
6680
|
+
code: "param_invalid";
|
|
6697
6681
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6698
6682
|
message: string;
|
|
6699
6683
|
};
|
|
6700
6684
|
requestId: string;
|
|
6701
6685
|
};
|
|
6702
6686
|
outputFormat: "json";
|
|
6703
|
-
status:
|
|
6687
|
+
status: 400;
|
|
6704
6688
|
input: {
|
|
6705
6689
|
param: {
|
|
6706
6690
|
deliveryId: string;
|
|
@@ -6710,14 +6694,30 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6710
6694
|
} | {
|
|
6711
6695
|
output: {
|
|
6712
6696
|
error: {
|
|
6713
|
-
code: "
|
|
6697
|
+
code: "webhook_not_found";
|
|
6714
6698
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6715
6699
|
message: string;
|
|
6716
6700
|
};
|
|
6717
6701
|
requestId: string;
|
|
6718
6702
|
};
|
|
6719
6703
|
outputFormat: "json";
|
|
6720
|
-
status:
|
|
6704
|
+
status: 404;
|
|
6705
|
+
input: {
|
|
6706
|
+
param: {
|
|
6707
|
+
deliveryId: string;
|
|
6708
|
+
id: string;
|
|
6709
|
+
};
|
|
6710
|
+
};
|
|
6711
|
+
} | {
|
|
6712
|
+
output: {
|
|
6713
|
+
delivered: boolean;
|
|
6714
|
+
error?: string | undefined;
|
|
6715
|
+
eventId: string;
|
|
6716
|
+
responseMs?: number | undefined;
|
|
6717
|
+
responseStatus?: number | undefined;
|
|
6718
|
+
};
|
|
6719
|
+
outputFormat: "json";
|
|
6720
|
+
status: 200;
|
|
6721
6721
|
input: {
|
|
6722
6722
|
param: {
|
|
6723
6723
|
deliveryId: string;
|
|
@@ -6727,14 +6727,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6727
6727
|
} | {
|
|
6728
6728
|
output: {
|
|
6729
6729
|
error: {
|
|
6730
|
-
code: "
|
|
6730
|
+
code: "delivery_not_found";
|
|
6731
6731
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6732
6732
|
message: string;
|
|
6733
6733
|
};
|
|
6734
6734
|
requestId: string;
|
|
6735
6735
|
};
|
|
6736
6736
|
outputFormat: "json";
|
|
6737
|
-
status:
|
|
6737
|
+
status: 404;
|
|
6738
6738
|
input: {
|
|
6739
6739
|
param: {
|
|
6740
6740
|
deliveryId: string;
|
|
@@ -6747,39 +6747,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6747
6747
|
"/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}": {
|
|
6748
6748
|
$patch: {
|
|
6749
6749
|
output: {
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
[x: string]: string;
|
|
6755
|
-
} | undefined;
|
|
6756
|
-
title?: string | undefined;
|
|
6757
|
-
} | undefined;
|
|
6758
|
-
createdAt: string;
|
|
6759
|
-
destination: {
|
|
6760
|
-
type: "url";
|
|
6761
|
-
url: string;
|
|
6762
|
-
} | {
|
|
6763
|
-
type: "slack";
|
|
6764
|
-
url: "https://hooks.slack.com/…";
|
|
6765
|
-
} | {
|
|
6766
|
-
token: "[redacted]";
|
|
6767
|
-
type: "betterstack";
|
|
6768
|
-
url: string;
|
|
6769
|
-
};
|
|
6770
|
-
eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
|
|
6771
|
-
expiresAt?: string | undefined;
|
|
6772
|
-
failureCount: number;
|
|
6773
|
-
filters: {
|
|
6774
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
6750
|
+
error: {
|
|
6751
|
+
code: "api_key_malformed";
|
|
6752
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
6753
|
+
message: string;
|
|
6775
6754
|
};
|
|
6776
|
-
|
|
6777
|
-
lastDeliveryAt?: string | undefined;
|
|
6778
|
-
status: "active" | "disabled" | "paused";
|
|
6779
|
-
updatedAt: string;
|
|
6755
|
+
requestId: string;
|
|
6780
6756
|
};
|
|
6781
6757
|
outputFormat: "json";
|
|
6782
|
-
status:
|
|
6758
|
+
status: 400;
|
|
6783
6759
|
input: {
|
|
6784
6760
|
param: {
|
|
6785
6761
|
id: string;
|
|
@@ -6809,14 +6785,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6809
6785
|
} | {
|
|
6810
6786
|
output: {
|
|
6811
6787
|
error: {
|
|
6812
|
-
code: "
|
|
6788
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
6813
6789
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6814
6790
|
message: string;
|
|
6815
6791
|
};
|
|
6816
6792
|
requestId: string;
|
|
6817
6793
|
};
|
|
6818
6794
|
outputFormat: "json";
|
|
6819
|
-
status:
|
|
6795
|
+
status: 401;
|
|
6820
6796
|
input: {
|
|
6821
6797
|
param: {
|
|
6822
6798
|
id: string;
|
|
@@ -6846,14 +6822,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6846
6822
|
} | {
|
|
6847
6823
|
output: {
|
|
6848
6824
|
error: {
|
|
6849
|
-
code: "
|
|
6825
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
6850
6826
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6851
6827
|
message: string;
|
|
6852
6828
|
};
|
|
6853
6829
|
requestId: string;
|
|
6854
6830
|
};
|
|
6855
6831
|
outputFormat: "json";
|
|
6856
|
-
status:
|
|
6832
|
+
status: 403;
|
|
6857
6833
|
input: {
|
|
6858
6834
|
param: {
|
|
6859
6835
|
id: string;
|
|
@@ -6883,14 +6859,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6883
6859
|
} | {
|
|
6884
6860
|
output: {
|
|
6885
6861
|
error: {
|
|
6886
|
-
code: "
|
|
6862
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
6887
6863
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6888
6864
|
message: string;
|
|
6889
6865
|
};
|
|
6890
6866
|
requestId: string;
|
|
6891
6867
|
};
|
|
6892
6868
|
outputFormat: "json";
|
|
6893
|
-
status:
|
|
6869
|
+
status: 429;
|
|
6894
6870
|
input: {
|
|
6895
6871
|
param: {
|
|
6896
6872
|
id: string;
|
|
@@ -6920,14 +6896,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6920
6896
|
} | {
|
|
6921
6897
|
output: {
|
|
6922
6898
|
error: {
|
|
6923
|
-
code: "
|
|
6899
|
+
code: "upstream_error";
|
|
6924
6900
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6925
6901
|
message: string;
|
|
6926
6902
|
};
|
|
6927
6903
|
requestId: string;
|
|
6928
6904
|
};
|
|
6929
6905
|
outputFormat: "json";
|
|
6930
|
-
status:
|
|
6906
|
+
status: 502;
|
|
6931
6907
|
input: {
|
|
6932
6908
|
param: {
|
|
6933
6909
|
id: string;
|
|
@@ -6957,14 +6933,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6957
6933
|
} | {
|
|
6958
6934
|
output: {
|
|
6959
6935
|
error: {
|
|
6960
|
-
code: "
|
|
6936
|
+
code: "webhooks_not_enabled";
|
|
6961
6937
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6962
6938
|
message: string;
|
|
6963
6939
|
};
|
|
6964
6940
|
requestId: string;
|
|
6965
6941
|
};
|
|
6966
6942
|
outputFormat: "json";
|
|
6967
|
-
status:
|
|
6943
|
+
status: 404;
|
|
6968
6944
|
input: {
|
|
6969
6945
|
param: {
|
|
6970
6946
|
id: string;
|
|
@@ -6994,7 +6970,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
6994
6970
|
} | {
|
|
6995
6971
|
output: {
|
|
6996
6972
|
error: {
|
|
6997
|
-
code: "
|
|
6973
|
+
code: "body_invalid";
|
|
6998
6974
|
details?: readonly Response.error.Detail[] | undefined;
|
|
6999
6975
|
message: string;
|
|
7000
6976
|
};
|
|
@@ -7031,7 +7007,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
7031
7007
|
} | {
|
|
7032
7008
|
output: {
|
|
7033
7009
|
error: {
|
|
7034
|
-
code: "
|
|
7010
|
+
code: "unauthorized";
|
|
7035
7011
|
details?: readonly Response.error.Detail[] | undefined;
|
|
7036
7012
|
message: string;
|
|
7037
7013
|
};
|
|
@@ -7068,14 +7044,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
7068
7044
|
} | {
|
|
7069
7045
|
output: {
|
|
7070
7046
|
error: {
|
|
7071
|
-
code: "
|
|
7047
|
+
code: "url_invalid";
|
|
7072
7048
|
details?: readonly Response.error.Detail[] | undefined;
|
|
7073
7049
|
message: string;
|
|
7074
7050
|
};
|
|
7075
7051
|
requestId: string;
|
|
7076
7052
|
};
|
|
7077
7053
|
outputFormat: "json";
|
|
7078
|
-
status:
|
|
7054
|
+
status: 400;
|
|
7079
7055
|
input: {
|
|
7080
7056
|
param: {
|
|
7081
7057
|
id: string;
|
|
@@ -7105,14 +7081,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
7105
7081
|
} | {
|
|
7106
7082
|
output: {
|
|
7107
7083
|
error: {
|
|
7108
|
-
code: "
|
|
7084
|
+
code: "filters_invalid";
|
|
7109
7085
|
details?: readonly Response.error.Detail[] | undefined;
|
|
7110
7086
|
message: string;
|
|
7111
7087
|
};
|
|
7112
7088
|
requestId: string;
|
|
7113
7089
|
};
|
|
7114
7090
|
outputFormat: "json";
|
|
7115
|
-
status:
|
|
7091
|
+
status: 400;
|
|
7116
7092
|
input: {
|
|
7117
7093
|
param: {
|
|
7118
7094
|
id: string;
|
|
@@ -7142,14 +7118,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
7142
7118
|
} | {
|
|
7143
7119
|
output: {
|
|
7144
7120
|
error: {
|
|
7145
|
-
code: "
|
|
7121
|
+
code: "param_invalid";
|
|
7146
7122
|
details?: readonly Response.error.Detail[] | undefined;
|
|
7147
7123
|
message: string;
|
|
7148
7124
|
};
|
|
7149
7125
|
requestId: string;
|
|
7150
7126
|
};
|
|
7151
7127
|
outputFormat: "json";
|
|
7152
|
-
status:
|
|
7128
|
+
status: 400;
|
|
7153
7129
|
input: {
|
|
7154
7130
|
param: {
|
|
7155
7131
|
id: string;
|
|
@@ -7215,15 +7191,39 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
7215
7191
|
};
|
|
7216
7192
|
} | {
|
|
7217
7193
|
output: {
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7194
|
+
chainId: number;
|
|
7195
|
+
context?: {
|
|
7196
|
+
description?: string | undefined;
|
|
7197
|
+
metadata?: {
|
|
7198
|
+
[x: string]: string;
|
|
7199
|
+
} | undefined;
|
|
7200
|
+
title?: string | undefined;
|
|
7201
|
+
} | undefined;
|
|
7202
|
+
createdAt: string;
|
|
7203
|
+
destination: {
|
|
7204
|
+
type: "url";
|
|
7205
|
+
url: string;
|
|
7206
|
+
} | {
|
|
7207
|
+
type: "slack";
|
|
7208
|
+
url: "https://hooks.slack.com/…";
|
|
7209
|
+
} | {
|
|
7210
|
+
token: "[redacted]";
|
|
7211
|
+
type: "betterstack";
|
|
7212
|
+
url: string;
|
|
7222
7213
|
};
|
|
7223
|
-
|
|
7214
|
+
eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
|
|
7215
|
+
expiresAt?: string | undefined;
|
|
7216
|
+
failureCount: number;
|
|
7217
|
+
filters: {
|
|
7218
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
7219
|
+
};
|
|
7220
|
+
id: string;
|
|
7221
|
+
lastDeliveryAt?: string | undefined;
|
|
7222
|
+
status: "active" | "disabled" | "paused";
|
|
7223
|
+
updatedAt: string;
|
|
7224
7224
|
};
|
|
7225
7225
|
outputFormat: "json";
|
|
7226
|
-
status:
|
|
7226
|
+
status: 200;
|
|
7227
7227
|
input: {
|
|
7228
7228
|
param: {
|
|
7229
7229
|
id: string;
|
|
@@ -7253,14 +7253,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
7253
7253
|
} | {
|
|
7254
7254
|
output: {
|
|
7255
7255
|
error: {
|
|
7256
|
-
code: "
|
|
7256
|
+
code: "destination_transition_invalid";
|
|
7257
7257
|
details?: readonly Response.error.Detail[] | undefined;
|
|
7258
7258
|
message: string;
|
|
7259
7259
|
};
|
|
7260
7260
|
requestId: string;
|
|
7261
7261
|
};
|
|
7262
7262
|
outputFormat: "json";
|
|
7263
|
-
status:
|
|
7263
|
+
status: 400;
|
|
7264
7264
|
input: {
|
|
7265
7265
|
param: {
|
|
7266
7266
|
id: string;
|
|
@@ -7292,17 +7292,6 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
7292
7292
|
} & {
|
|
7293
7293
|
"/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}": {
|
|
7294
7294
|
$delete: {
|
|
7295
|
-
output: {
|
|
7296
|
-
id: string;
|
|
7297
|
-
};
|
|
7298
|
-
outputFormat: "json";
|
|
7299
|
-
status: 200;
|
|
7300
|
-
input: {
|
|
7301
|
-
param: {
|
|
7302
|
-
id: string;
|
|
7303
|
-
};
|
|
7304
|
-
};
|
|
7305
|
-
} | {
|
|
7306
7295
|
output: {
|
|
7307
7296
|
error: {
|
|
7308
7297
|
code: "api_key_malformed";
|
|
@@ -7321,14 +7310,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
7321
7310
|
} | {
|
|
7322
7311
|
output: {
|
|
7323
7312
|
error: {
|
|
7324
|
-
code: "
|
|
7313
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
7325
7314
|
details?: readonly Response.error.Detail[] | undefined;
|
|
7326
7315
|
message: string;
|
|
7327
7316
|
};
|
|
7328
7317
|
requestId: string;
|
|
7329
7318
|
};
|
|
7330
7319
|
outputFormat: "json";
|
|
7331
|
-
status:
|
|
7320
|
+
status: 401;
|
|
7332
7321
|
input: {
|
|
7333
7322
|
param: {
|
|
7334
7323
|
id: string;
|
|
@@ -7337,14 +7326,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
7337
7326
|
} | {
|
|
7338
7327
|
output: {
|
|
7339
7328
|
error: {
|
|
7340
|
-
code: "
|
|
7329
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
7341
7330
|
details?: readonly Response.error.Detail[] | undefined;
|
|
7342
7331
|
message: string;
|
|
7343
7332
|
};
|
|
7344
7333
|
requestId: string;
|
|
7345
7334
|
};
|
|
7346
7335
|
outputFormat: "json";
|
|
7347
|
-
status:
|
|
7336
|
+
status: 403;
|
|
7348
7337
|
input: {
|
|
7349
7338
|
param: {
|
|
7350
7339
|
id: string;
|
|
@@ -7353,14 +7342,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
7353
7342
|
} | {
|
|
7354
7343
|
output: {
|
|
7355
7344
|
error: {
|
|
7356
|
-
code: "
|
|
7345
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
7357
7346
|
details?: readonly Response.error.Detail[] | undefined;
|
|
7358
7347
|
message: string;
|
|
7359
7348
|
};
|
|
7360
7349
|
requestId: string;
|
|
7361
7350
|
};
|
|
7362
7351
|
outputFormat: "json";
|
|
7363
|
-
status:
|
|
7352
|
+
status: 429;
|
|
7364
7353
|
input: {
|
|
7365
7354
|
param: {
|
|
7366
7355
|
id: string;
|
|
@@ -7369,14 +7358,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
7369
7358
|
} | {
|
|
7370
7359
|
output: {
|
|
7371
7360
|
error: {
|
|
7372
|
-
code: "
|
|
7361
|
+
code: "upstream_error";
|
|
7373
7362
|
details?: readonly Response.error.Detail[] | undefined;
|
|
7374
7363
|
message: string;
|
|
7375
7364
|
};
|
|
7376
7365
|
requestId: string;
|
|
7377
7366
|
};
|
|
7378
7367
|
outputFormat: "json";
|
|
7379
|
-
status:
|
|
7368
|
+
status: 502;
|
|
7380
7369
|
input: {
|
|
7381
7370
|
param: {
|
|
7382
7371
|
id: string;
|
|
@@ -7401,14 +7390,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
7401
7390
|
} | {
|
|
7402
7391
|
output: {
|
|
7403
7392
|
error: {
|
|
7404
|
-
code: "
|
|
7393
|
+
code: "unauthorized";
|
|
7405
7394
|
details?: readonly Response.error.Detail[] | undefined;
|
|
7406
7395
|
message: string;
|
|
7407
7396
|
};
|
|
7408
7397
|
requestId: string;
|
|
7409
7398
|
};
|
|
7410
7399
|
outputFormat: "json";
|
|
7411
|
-
status:
|
|
7400
|
+
status: 401;
|
|
7412
7401
|
input: {
|
|
7413
7402
|
param: {
|
|
7414
7403
|
id: string;
|
|
@@ -7417,14 +7406,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
7417
7406
|
} | {
|
|
7418
7407
|
output: {
|
|
7419
7408
|
error: {
|
|
7420
|
-
code: "
|
|
7409
|
+
code: "param_invalid";
|
|
7421
7410
|
details?: readonly Response.error.Detail[] | undefined;
|
|
7422
7411
|
message: string;
|
|
7423
7412
|
};
|
|
7424
7413
|
requestId: string;
|
|
7425
7414
|
};
|
|
7426
7415
|
outputFormat: "json";
|
|
7427
|
-
status:
|
|
7416
|
+
status: 400;
|
|
7428
7417
|
input: {
|
|
7429
7418
|
param: {
|
|
7430
7419
|
id: string;
|
|
@@ -7433,14 +7422,25 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
|
|
|
7433
7422
|
} | {
|
|
7434
7423
|
output: {
|
|
7435
7424
|
error: {
|
|
7436
|
-
code: "
|
|
7425
|
+
code: "webhook_not_found";
|
|
7437
7426
|
details?: readonly Response.error.Detail[] | undefined;
|
|
7438
7427
|
message: string;
|
|
7439
7428
|
};
|
|
7440
7429
|
requestId: string;
|
|
7441
7430
|
};
|
|
7442
7431
|
outputFormat: "json";
|
|
7443
|
-
status:
|
|
7432
|
+
status: 404;
|
|
7433
|
+
input: {
|
|
7434
|
+
param: {
|
|
7435
|
+
id: string;
|
|
7436
|
+
};
|
|
7437
|
+
};
|
|
7438
|
+
} | {
|
|
7439
|
+
output: {
|
|
7440
|
+
id: string;
|
|
7441
|
+
};
|
|
7442
|
+
outputFormat: "json";
|
|
7443
|
+
status: 200;
|
|
7444
7444
|
input: {
|
|
7445
7445
|
param: {
|
|
7446
7446
|
id: string;
|
|
@@ -7609,6 +7609,22 @@ export declare function parseFilters(eventType: EventType, filters: Record<strin
|
|
|
7609
7609
|
* - `{ startsWith }` → hex prefix
|
|
7610
7610
|
*/
|
|
7611
7611
|
export declare function matchesOperator(value: string | undefined, op: unknown, kind?: 'number' | 'string'): boolean;
|
|
7612
|
+
/**
|
|
7613
|
+
* Attaches best-effort token metadata to one matched row before delivery.
|
|
7614
|
+
* Transfers gain display metadata; transactions resolve their fee token.
|
|
7615
|
+
*/
|
|
7616
|
+
export declare function enrichEventData(eventType: EventType, data: unknown, options: enrichEventData.Options): Promise<unknown>;
|
|
7617
|
+
export declare namespace enrichEventData {
|
|
7618
|
+
/** Metadata lookup dependencies. */
|
|
7619
|
+
type Options = {
|
|
7620
|
+
/** Memoization store for token metadata (5 minute TTL). */
|
|
7621
|
+
cache: Store.Store;
|
|
7622
|
+
/** Chain the row was produced on. */
|
|
7623
|
+
chainId: number;
|
|
7624
|
+
/** Client for `token.getMetadata` reads. */
|
|
7625
|
+
client: Viem.getClient.ReturnType;
|
|
7626
|
+
};
|
|
7627
|
+
}
|
|
7612
7628
|
/**
|
|
7613
7629
|
* Matches one fetched block against a subscription set, producing the rows
|
|
7614
7630
|
* each event type delivers. Invalid stored filters fail closed into `invalid`.
|