tapimo 0.10.0 → 0.10.1

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.
Files changed (224) hide show
  1. package/dist/ApiKey.d.ts +2 -1
  2. package/dist/ApiKey.d.ts.map +1 -1
  3. package/dist/ApiKeys.d.ts +4 -2
  4. package/dist/ApiKeys.d.ts.map +1 -1
  5. package/dist/ApiKeys.js +26 -1
  6. package/dist/ApiKeys.js.map +1 -1
  7. package/dist/App.d.ts +3346 -2575
  8. package/dist/App.d.ts.map +1 -1
  9. package/dist/App.js +1 -0
  10. package/dist/App.js.map +1 -1
  11. package/dist/Webhooks.d.ts.map +1 -1
  12. package/dist/Webhooks.js +5 -5
  13. package/dist/Webhooks.js.map +1 -1
  14. package/dist/admin/App.d.ts +91 -84
  15. package/dist/admin/App.d.ts.map +1 -1
  16. package/dist/admin/apps/api-keys.d.ts +26 -17
  17. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  18. package/dist/admin/apps/api-keys.js +6 -0
  19. package/dist/admin/apps/api-keys.js.map +1 -1
  20. package/dist/admin/apps/organizations.d.ts +4 -2
  21. package/dist/admin/apps/organizations.d.ts.map +1 -1
  22. package/dist/admin/ui.generated.d.ts +1 -1
  23. package/dist/admin/ui.generated.js +69 -69
  24. package/dist/admin/ui.generated.js.map +1 -1
  25. package/dist/analytics/Analytics.d.ts.map +1 -1
  26. package/dist/analytics/Analytics.js +26 -0
  27. package/dist/analytics/Analytics.js.map +1 -1
  28. package/dist/apps/Zones.d.ts +4266 -82
  29. package/dist/apps/Zones.d.ts.map +1 -1
  30. package/dist/apps/Zones.js +27 -8
  31. package/dist/apps/Zones.js.map +1 -1
  32. package/dist/apps/data/App.d.ts +3467 -2696
  33. package/dist/apps/data/App.d.ts.map +1 -1
  34. package/dist/apps/data/routes/activities.d.ts +2999 -100
  35. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  36. package/dist/apps/data/routes/activities.js +340 -2
  37. package/dist/apps/data/routes/activities.js.map +1 -1
  38. package/dist/apps/data/routes/addresses.d.ts +850 -336
  39. package/dist/apps/data/routes/addresses.d.ts.map +1 -1
  40. package/dist/apps/data/routes/balances.d.ts +26 -26
  41. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  42. package/dist/apps/data/routes/balances.js +11 -3
  43. package/dist/apps/data/routes/balances.js.map +1 -1
  44. package/dist/apps/data/routes/blocks.d.ts +4 -4
  45. package/dist/apps/data/routes/coingecko.d.ts +176 -176
  46. package/dist/apps/data/routes/earn.d.ts +75 -75
  47. package/dist/apps/data/routes/earn.js +2 -2
  48. package/dist/apps/data/routes/earn.js.map +1 -1
  49. package/dist/apps/data/routes/exchanges.d.ts +120 -120
  50. package/dist/apps/data/routes/fee-amm.d.ts +24 -24
  51. package/dist/apps/data/routes/indexer.d.ts +35 -34
  52. package/dist/apps/data/routes/indexer.d.ts.map +1 -1
  53. package/dist/apps/data/routes/indexer.js +3 -2
  54. package/dist/apps/data/routes/indexer.js.map +1 -1
  55. package/dist/apps/data/routes/rpc.d.ts.map +1 -1
  56. package/dist/apps/data/routes/rpc.js +5 -1
  57. package/dist/apps/data/routes/rpc.js.map +1 -1
  58. package/dist/apps/data/routes/tokenlist.d.ts +12 -12
  59. package/dist/apps/data/routes/transactions.d.ts +281 -281
  60. package/dist/apps/data/routes/verified-tokens.d.ts +37 -37
  61. package/dist/apps/data/routes/webhooks.d.ts +418 -364
  62. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  63. package/dist/apps/data/routes/webhooks.js +161 -14
  64. package/dist/apps/data/routes/webhooks.js.map +1 -1
  65. package/dist/apps/data/routes/zones.d.ts +31 -31
  66. package/dist/apps/data/routes/zones.js +1 -1
  67. package/dist/apps/data/routes/zones.js.map +1 -1
  68. package/dist/apps/funding/App.d.ts +96 -96
  69. package/dist/apps/funding/routes/deposit-addresses.d.ts +52 -52
  70. package/dist/apps/funding/routes/deposit-addresses.js +1 -1
  71. package/dist/apps/funding/routes/deposit-addresses.js.map +1 -1
  72. package/dist/apps/funding/routes/providers.d.ts +13 -13
  73. package/dist/apps/funding/routes/transfers.d.ts +32 -32
  74. package/dist/apps/funding/routes/transfers.js +1 -1
  75. package/dist/apps/funding/routes/transfers.js.map +1 -1
  76. package/dist/apps/management/App.d.ts +418 -418
  77. package/dist/apps/management/routes/api-keys.d.ts +50 -50
  78. package/dist/apps/management/routes/billing.d.ts +72 -72
  79. package/dist/apps/management/routes/billing.js +1 -1
  80. package/dist/apps/management/routes/billing.js.map +1 -1
  81. package/dist/apps/management/routes/faucet.d.ts +37 -37
  82. package/dist/apps/management/routes/faucet.js +2 -2
  83. package/dist/apps/management/routes/faucet.js.map +1 -1
  84. package/dist/apps/management/routes/invite-links.d.ts +42 -42
  85. package/dist/apps/management/routes/me.d.ts +6 -6
  86. package/dist/apps/management/routes/members.d.ts +75 -75
  87. package/dist/apps/management/routes/projects.d.ts +40 -40
  88. package/dist/apps/management/routes/usage.d.ts +76 -76
  89. package/dist/apps/management/routes/webhooks.d.ts +49 -49
  90. package/dist/apps/mcp.d.ts.map +1 -1
  91. package/dist/apps/mcp.js +4 -1
  92. package/dist/apps/mcp.js.map +1 -1
  93. package/dist/db/Db.d.ts +2 -0
  94. package/dist/db/Db.d.ts.map +1 -1
  95. package/dist/db/Db.js +58 -0
  96. package/dist/db/Db.js.map +1 -1
  97. package/dist/db/Schema.d.ts +19 -0
  98. package/dist/db/Schema.d.ts.map +1 -1
  99. package/dist/db/Schema.js +24 -0
  100. package/dist/db/Schema.js.map +1 -1
  101. package/dist/db/tables/webhookQueueEvents.d.ts +122 -0
  102. package/dist/db/tables/webhookQueueEvents.d.ts.map +1 -0
  103. package/dist/db/tables/webhookQueueEvents.js +160 -0
  104. package/dist/db/tables/webhookQueueEvents.js.map +1 -0
  105. package/dist/db/tables/webhookSubscriptions.d.ts +2 -0
  106. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
  107. package/dist/db/tables/webhookSubscriptions.js +10 -0
  108. package/dist/db/tables/webhookSubscriptions.js.map +1 -1
  109. package/dist/internal/Auth.d.ts +3 -0
  110. package/dist/internal/Auth.d.ts.map +1 -1
  111. package/dist/internal/Auth.js +6 -4
  112. package/dist/internal/Auth.js.map +1 -1
  113. package/dist/internal/MetricSink.d.ts +27 -0
  114. package/dist/internal/MetricSink.d.ts.map +1 -1
  115. package/dist/internal/MetricSink.js +29 -2
  116. package/dist/internal/MetricSink.js.map +1 -1
  117. package/dist/internal/RateLimit.d.ts +4 -6
  118. package/dist/internal/RateLimit.d.ts.map +1 -1
  119. package/dist/internal/RateLimit.js +15 -14
  120. package/dist/internal/RateLimit.js.map +1 -1
  121. package/dist/internal/Store.d.ts +2 -1
  122. package/dist/internal/Store.d.ts.map +1 -1
  123. package/dist/internal/Store.js +57 -18
  124. package/dist/internal/Store.js.map +1 -1
  125. package/dist/internal/Value.d.ts +2 -0
  126. package/dist/internal/Value.d.ts.map +1 -1
  127. package/dist/internal/Value.js +25 -0
  128. package/dist/internal/Value.js.map +1 -1
  129. package/dist/internal/WebhookTransfer.d.ts +20 -0
  130. package/dist/internal/WebhookTransfer.d.ts.map +1 -1
  131. package/dist/internal/WebhookTransfer.js +7 -4
  132. package/dist/internal/WebhookTransfer.js.map +1 -1
  133. package/dist/internal/Webhooks.d.ts +139 -0
  134. package/dist/internal/Webhooks.d.ts.map +1 -1
  135. package/dist/internal/Webhooks.js +129 -7
  136. package/dist/internal/Webhooks.js.map +1 -1
  137. package/dist/internal/funding/providers/relay.d.ts +3 -4
  138. package/dist/internal/funding/providers/relay.d.ts.map +1 -1
  139. package/dist/internal/funding/providers/relay.js +59 -8
  140. package/dist/internal/funding/providers/relay.js.map +1 -1
  141. package/package.json +3 -3
  142. package/src/ApiKeys.test.ts +20 -0
  143. package/src/ApiKeys.ts +28 -1
  144. package/src/App.test.ts +10 -8
  145. package/src/App.ts +1 -0
  146. package/src/Client.test-d.ts +1 -0
  147. package/src/Webhooks.ts +19 -17
  148. package/src/admin/apps/api-keys.test.ts +9 -0
  149. package/src/admin/apps/api-keys.ts +15 -0
  150. package/src/admin/ui/src/lib/query-client.ts +3 -2
  151. package/src/admin/ui/src/routes/api-keys.tsx +31 -9
  152. package/src/admin/ui.generated.ts +69 -69
  153. package/src/analytics/Analytics.test.ts +8 -0
  154. package/src/analytics/Analytics.ts +26 -0
  155. package/src/apps/Zones.test.ts +20 -3
  156. package/src/apps/Zones.ts +28 -8
  157. package/src/apps/composition.test.ts +1 -0
  158. package/src/apps/data/App.test.ts +2 -2
  159. package/src/apps/data/routes/activities.bench.ts +41 -0
  160. package/src/apps/data/routes/activities.test.ts +103 -2
  161. package/src/apps/data/routes/activities.ts +401 -2
  162. package/src/apps/data/routes/balances.bench.ts +21 -0
  163. package/src/apps/data/routes/balances.ts +11 -3
  164. package/src/apps/data/routes/blocks.bench.ts +34 -0
  165. package/src/apps/data/routes/coingecko.bench.ts +53 -0
  166. package/src/apps/data/routes/earn.bench.ts +71 -0
  167. package/src/apps/data/routes/earn.ts +2 -2
  168. package/src/apps/data/routes/exchanges.bench.ts +85 -0
  169. package/src/apps/data/routes/fee-amm.bench.ts +13 -0
  170. package/src/apps/data/routes/indexer.bench.ts +8 -0
  171. package/src/apps/data/routes/indexer.test.ts +2 -1
  172. package/src/apps/data/routes/indexer.ts +3 -2
  173. package/src/apps/data/routes/receipts.bench.ts +39 -0
  174. package/src/apps/data/routes/rpc.bench.ts +14 -0
  175. package/src/apps/data/routes/rpc.test.ts +27 -0
  176. package/src/apps/data/routes/rpc.ts +5 -1
  177. package/src/apps/data/routes/tokenlist.bench.ts +3 -0
  178. package/src/apps/data/routes/tokens.bench.ts +76 -0
  179. package/src/apps/data/routes/transactions.bench.ts +40 -0
  180. package/src/apps/data/routes/transfers.bench.ts +28 -0
  181. package/src/apps/data/routes/valuation.bench.ts +14 -0
  182. package/src/apps/data/routes/verified-tokens.bench.ts +8 -0
  183. package/src/apps/data/routes/webhooks.bench.ts +26 -0
  184. package/src/apps/data/routes/webhooks.scan.test.ts +326 -0
  185. package/src/apps/data/routes/webhooks.test.ts +53 -6
  186. package/src/apps/data/routes/webhooks.ts +221 -14
  187. package/src/apps/data/routes/zones.bench.ts +32 -0
  188. package/src/apps/data/routes/zones.test.ts +1 -1
  189. package/src/apps/data/routes/zones.ts +1 -1
  190. package/src/apps/funding/routes/chains.test.ts +1 -1
  191. package/src/apps/funding/routes/deposit-addresses.test.ts +1 -1
  192. package/src/apps/funding/routes/deposit-addresses.ts +1 -1
  193. package/src/apps/funding/routes/providers.test.ts +1 -1
  194. package/src/apps/funding/routes/quotes.test.ts +1 -1
  195. package/src/apps/funding/routes/transfers.test.ts +3 -6
  196. package/src/apps/funding/routes/transfers.ts +1 -1
  197. package/src/apps/management/routes/billing.ts +1 -1
  198. package/src/apps/management/routes/faucet.ts +2 -2
  199. package/src/apps/management/routes/me.test.ts +31 -0
  200. package/src/apps/mcp.ts +4 -1
  201. package/src/db/Db.ts +81 -0
  202. package/src/db/Schema.ts +32 -0
  203. package/src/db/tables/webhookQueueEvents.ts +285 -0
  204. package/src/db/tables/webhookSubscriptions.ts +15 -0
  205. package/src/internal/Auth.test.ts +61 -50
  206. package/src/internal/Auth.ts +9 -4
  207. package/src/internal/EarnVaults.test.ts +2 -2
  208. package/src/internal/MetricSink.test.ts +58 -1
  209. package/src/internal/MetricSink.ts +60 -2
  210. package/src/internal/RateLimit.test.ts +23 -18
  211. package/src/internal/RateLimit.ts +23 -15
  212. package/src/internal/Store.test.ts +99 -13
  213. package/src/internal/Store.ts +52 -17
  214. package/src/internal/Tidx.test.ts +4 -4
  215. package/src/internal/Value.test.ts +25 -0
  216. package/src/internal/Value.ts +29 -0
  217. package/src/internal/WebhookTransfer.test.ts +89 -0
  218. package/src/internal/WebhookTransfer.ts +11 -7
  219. package/src/internal/Webhooks.test.ts +479 -0
  220. package/src/internal/Webhooks.ts +281 -7
  221. package/src/internal/funding/Provider.test.ts +1 -1
  222. package/src/internal/funding/providers/index.test.ts +73 -3
  223. package/src/internal/funding/providers/relay.test.ts +1 -5
  224. package/src/internal/funding/providers/relay.ts +56 -12
@@ -1,3 +1,4 @@
1
+ import { type RpcLog } from 'viem';
1
2
  import * as z from 'zod/mini';
2
3
  import type * as App from '../../../App.js';
3
4
  import * as Db from '../../../db/Db.js';
@@ -1410,9 +1411,14 @@ export declare namespace schema {
1410
1411
  export declare function webhooks(options?: webhooks.Options): import("hono/hono-base").HonoBase<App.Environment, {
1411
1412
  "/v1/webhooks/event-types": {
1412
1413
  $get: {
1413
- output: null;
1414
- outputFormat: "body";
1415
- status: 402;
1414
+ output: {
1415
+ data: {
1416
+ description: string;
1417
+ type: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
1418
+ }[];
1419
+ };
1420
+ outputFormat: "json";
1421
+ status: 200;
1416
1422
  input: {};
1417
1423
  } | {
1418
1424
  output: {
@@ -1438,6 +1444,11 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1438
1444
  outputFormat: "json";
1439
1445
  status: 401;
1440
1446
  input: {};
1447
+ } | {
1448
+ output: null;
1449
+ outputFormat: "body";
1450
+ status: 402;
1451
+ input: {};
1441
1452
  } | {
1442
1453
  output: {
1443
1454
  error: {
@@ -1453,36 +1464,26 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1453
1464
  } | {
1454
1465
  output: {
1455
1466
  error: {
1456
- code: "payment_required" | "rate_limit_exceeded";
1467
+ code: "webhooks_not_enabled";
1457
1468
  details?: readonly Response.error.Detail[] | undefined;
1458
1469
  message: string;
1459
1470
  };
1460
1471
  requestId: string;
1461
1472
  };
1462
1473
  outputFormat: "json";
1463
- status: 429;
1474
+ status: 404;
1464
1475
  input: {};
1465
1476
  } | {
1466
1477
  output: {
1467
1478
  error: {
1468
- code: "webhooks_not_enabled";
1479
+ code: "payment_required" | "rate_limit_exceeded";
1469
1480
  details?: readonly Response.error.Detail[] | undefined;
1470
1481
  message: string;
1471
1482
  };
1472
1483
  requestId: string;
1473
1484
  };
1474
1485
  outputFormat: "json";
1475
- status: 404;
1476
- input: {};
1477
- } | {
1478
- output: {
1479
- data: {
1480
- description: string;
1481
- type: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
1482
- }[];
1483
- };
1484
- outputFormat: "json";
1485
- status: 200;
1486
+ status: 429;
1486
1487
  input: {};
1487
1488
  };
1488
1489
  };
@@ -1490,15 +1491,40 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1490
1491
  "/v1/webhooks": {
1491
1492
  $post: {
1492
1493
  output: {
1493
- error: {
1494
- code: "api_key_malformed";
1495
- details?: readonly Response.error.Detail[] | undefined;
1496
- message: string;
1494
+ chainId: number;
1495
+ context?: {
1496
+ description?: string | undefined;
1497
+ metadata?: {
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;
1497
1508
  };
1498
- requestId: string;
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;
1523
+ };
1524
+ secret: string;
1499
1525
  };
1500
1526
  outputFormat: "json";
1501
- status: 400;
1527
+ status: 200;
1502
1528
  input: {
1503
1529
  json: {
1504
1530
  chainId?: unknown;
@@ -1815,14 +1841,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1815
1841
  } | {
1816
1842
  output: {
1817
1843
  error: {
1818
- code: "api_key_invalid" | "api_key_missing";
1844
+ code: "api_key_malformed";
1819
1845
  details?: readonly Response.error.Detail[] | undefined;
1820
1846
  message: string;
1821
1847
  };
1822
1848
  requestId: string;
1823
1849
  };
1824
1850
  outputFormat: "json";
1825
- status: 401;
1851
+ status: 400;
1826
1852
  input: {
1827
1853
  json: {
1828
1854
  chainId?: unknown;
@@ -2139,14 +2165,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2139
2165
  } | {
2140
2166
  output: {
2141
2167
  error: {
2142
- code: "api_key_forbidden" | "api_key_ip_forbidden";
2168
+ code: "body_invalid";
2143
2169
  details?: readonly Response.error.Detail[] | undefined;
2144
2170
  message: string;
2145
2171
  };
2146
2172
  requestId: string;
2147
2173
  };
2148
2174
  outputFormat: "json";
2149
- status: 403;
2175
+ status: 400;
2150
2176
  input: {
2151
2177
  json: {
2152
2178
  chainId?: unknown;
@@ -2463,14 +2489,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2463
2489
  } | {
2464
2490
  output: {
2465
2491
  error: {
2466
- code: "payment_required" | "rate_limit_exceeded";
2492
+ code: "chain_id_unsupported";
2467
2493
  details?: readonly Response.error.Detail[] | undefined;
2468
2494
  message: string;
2469
2495
  };
2470
2496
  requestId: string;
2471
2497
  };
2472
2498
  outputFormat: "json";
2473
- status: 429;
2499
+ status: 400;
2474
2500
  input: {
2475
2501
  json: {
2476
2502
  chainId?: unknown;
@@ -2787,14 +2813,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2787
2813
  } | {
2788
2814
  output: {
2789
2815
  error: {
2790
- code: "upstream_error";
2816
+ code: "url_invalid";
2791
2817
  details?: readonly Response.error.Detail[] | undefined;
2792
2818
  message: string;
2793
2819
  };
2794
2820
  requestId: string;
2795
2821
  };
2796
2822
  outputFormat: "json";
2797
- status: 502;
2823
+ status: 400;
2798
2824
  input: {
2799
2825
  json: {
2800
2826
  chainId?: unknown;
@@ -3111,14 +3137,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3111
3137
  } | {
3112
3138
  output: {
3113
3139
  error: {
3114
- code: "webhooks_not_enabled";
3140
+ code: "filters_invalid";
3115
3141
  details?: readonly Response.error.Detail[] | undefined;
3116
3142
  message: string;
3117
3143
  };
3118
3144
  requestId: string;
3119
3145
  };
3120
3146
  outputFormat: "json";
3121
- status: 404;
3147
+ status: 400;
3122
3148
  input: {
3123
3149
  json: {
3124
3150
  chainId?: unknown;
@@ -3435,14 +3461,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3435
3461
  } | {
3436
3462
  output: {
3437
3463
  error: {
3438
- code: "body_invalid";
3464
+ code: "api_key_invalid" | "api_key_missing";
3439
3465
  details?: readonly Response.error.Detail[] | undefined;
3440
3466
  message: string;
3441
3467
  };
3442
3468
  requestId: string;
3443
3469
  };
3444
3470
  outputFormat: "json";
3445
- status: 400;
3471
+ status: 401;
3446
3472
  input: {
3447
3473
  json: {
3448
3474
  chainId?: unknown;
@@ -4083,14 +4109,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4083
4109
  } | {
4084
4110
  output: {
4085
4111
  error: {
4086
- code: "chain_id_unsupported";
4112
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
4087
4113
  details?: readonly Response.error.Detail[] | undefined;
4088
4114
  message: string;
4089
4115
  };
4090
4116
  requestId: string;
4091
4117
  };
4092
4118
  outputFormat: "json";
4093
- status: 400;
4119
+ status: 403;
4094
4120
  input: {
4095
4121
  json: {
4096
4122
  chainId?: unknown;
@@ -4406,40 +4432,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4406
4432
  };
4407
4433
  } | {
4408
4434
  output: {
4409
- chainId: number;
4410
- context?: {
4411
- description?: string | undefined;
4412
- metadata?: {
4413
- [x: string]: string;
4414
- } | undefined;
4415
- title?: string | undefined;
4416
- } | undefined;
4417
- createdAt: string;
4418
- eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
4419
- expiresAt?: string | undefined;
4420
- failureCount: number;
4421
- filters: {
4422
- [x: string]: import("hono/utils/types").JSONValue;
4423
- };
4424
- id: string;
4425
- lastDeliveryAt?: string | undefined;
4426
- status: "active" | "disabled" | "paused";
4427
- updatedAt: string;
4428
- destination: {
4429
- type: "url";
4430
- url: string;
4431
- } | {
4432
- type: "slack";
4433
- url: string;
4434
- } | {
4435
- token: string;
4436
- type: "betterstack";
4437
- url: string;
4435
+ error: {
4436
+ code: "limit_exceeded";
4437
+ details?: readonly Response.error.Detail[] | undefined;
4438
+ message: string;
4438
4439
  };
4439
- secret: string;
4440
+ requestId: string;
4440
4441
  };
4441
4442
  outputFormat: "json";
4442
- status: 200;
4443
+ status: 403;
4443
4444
  input: {
4444
4445
  json: {
4445
4446
  chainId?: unknown;
@@ -4756,14 +4757,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4756
4757
  } | {
4757
4758
  output: {
4758
4759
  error: {
4759
- code: "url_invalid";
4760
+ code: "webhooks_not_enabled";
4760
4761
  details?: readonly Response.error.Detail[] | undefined;
4761
4762
  message: string;
4762
4763
  };
4763
4764
  requestId: string;
4764
4765
  };
4765
4766
  outputFormat: "json";
4766
- status: 400;
4767
+ status: 404;
4767
4768
  input: {
4768
4769
  json: {
4769
4770
  chainId?: unknown;
@@ -5080,14 +5081,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5080
5081
  } | {
5081
5082
  output: {
5082
5083
  error: {
5083
- code: "filters_invalid";
5084
+ code: "payment_required" | "rate_limit_exceeded";
5084
5085
  details?: readonly Response.error.Detail[] | undefined;
5085
5086
  message: string;
5086
5087
  };
5087
5088
  requestId: string;
5088
5089
  };
5089
5090
  outputFormat: "json";
5090
- status: 400;
5091
+ status: 429;
5091
5092
  input: {
5092
5093
  json: {
5093
5094
  chainId?: unknown;
@@ -5404,14 +5405,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5404
5405
  } | {
5405
5406
  output: {
5406
5407
  error: {
5407
- code: "limit_exceeded";
5408
+ code: "upstream_error";
5408
5409
  details?: readonly Response.error.Detail[] | undefined;
5409
5410
  message: string;
5410
5411
  };
5411
5412
  requestId: string;
5412
5413
  };
5413
5414
  outputFormat: "json";
5414
- status: 403;
5415
+ status: 502;
5415
5416
  input: {
5416
5417
  json: {
5417
5418
  chainId?: unknown;
@@ -5730,6 +5731,56 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5730
5731
  } & {
5731
5732
  "/v1/webhooks": {
5732
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
+ } | {
5733
5784
  output: {
5734
5785
  error: {
5735
5786
  code: "api_key_malformed";
@@ -5751,14 +5802,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5751
5802
  } | {
5752
5803
  output: {
5753
5804
  error: {
5754
- code: "api_key_invalid" | "api_key_missing";
5805
+ code: "query_invalid";
5755
5806
  details?: readonly Response.error.Detail[] | undefined;
5756
5807
  message: string;
5757
5808
  };
5758
5809
  requestId: string;
5759
5810
  };
5760
5811
  outputFormat: "json";
5761
- status: 401;
5812
+ status: 400;
5762
5813
  input: {
5763
5814
  query?: {
5764
5815
  cursor?: string | string[];
@@ -5770,14 +5821,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5770
5821
  } | {
5771
5822
  output: {
5772
5823
  error: {
5773
- code: "api_key_forbidden" | "api_key_ip_forbidden";
5824
+ code: "api_key_invalid" | "api_key_missing";
5774
5825
  details?: readonly Response.error.Detail[] | undefined;
5775
5826
  message: string;
5776
5827
  };
5777
5828
  requestId: string;
5778
5829
  };
5779
5830
  outputFormat: "json";
5780
- status: 403;
5831
+ status: 401;
5781
5832
  input: {
5782
5833
  query?: {
5783
5834
  cursor?: string | string[];
@@ -5789,14 +5840,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5789
5840
  } | {
5790
5841
  output: {
5791
5842
  error: {
5792
- code: "payment_required" | "rate_limit_exceeded";
5843
+ code: "unauthorized";
5793
5844
  details?: readonly Response.error.Detail[] | undefined;
5794
5845
  message: string;
5795
5846
  };
5796
5847
  requestId: string;
5797
5848
  };
5798
5849
  outputFormat: "json";
5799
- status: 429;
5850
+ status: 401;
5800
5851
  input: {
5801
5852
  query?: {
5802
5853
  cursor?: string | string[];
@@ -5808,14 +5859,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5808
5859
  } | {
5809
5860
  output: {
5810
5861
  error: {
5811
- code: "query_invalid";
5862
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
5812
5863
  details?: readonly Response.error.Detail[] | undefined;
5813
5864
  message: string;
5814
5865
  };
5815
5866
  requestId: string;
5816
5867
  };
5817
5868
  outputFormat: "json";
5818
- status: 400;
5869
+ status: 403;
5819
5870
  input: {
5820
5871
  query?: {
5821
5872
  cursor?: string | string[];
@@ -5827,14 +5878,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5827
5878
  } | {
5828
5879
  output: {
5829
5880
  error: {
5830
- code: "upstream_error";
5881
+ code: "webhooks_not_enabled";
5831
5882
  details?: readonly Response.error.Detail[] | undefined;
5832
5883
  message: string;
5833
5884
  };
5834
5885
  requestId: string;
5835
5886
  };
5836
5887
  outputFormat: "json";
5837
- status: 502;
5888
+ status: 404;
5838
5889
  input: {
5839
5890
  query?: {
5840
5891
  cursor?: string | string[];
@@ -5846,14 +5897,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5846
5897
  } | {
5847
5898
  output: {
5848
5899
  error: {
5849
- code: "webhooks_not_enabled";
5900
+ code: "payment_required" | "rate_limit_exceeded";
5850
5901
  details?: readonly Response.error.Detail[] | undefined;
5851
5902
  message: string;
5852
5903
  };
5853
5904
  requestId: string;
5854
5905
  };
5855
5906
  outputFormat: "json";
5856
- status: 404;
5907
+ status: 429;
5857
5908
  input: {
5858
5909
  query?: {
5859
5910
  cursor?: string | string[];
@@ -5865,14 +5916,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5865
5916
  } | {
5866
5917
  output: {
5867
5918
  error: {
5868
- code: "unauthorized";
5919
+ code: "upstream_error";
5869
5920
  details?: readonly Response.error.Detail[] | undefined;
5870
5921
  message: string;
5871
5922
  };
5872
5923
  requestId: string;
5873
5924
  };
5874
5925
  outputFormat: "json";
5875
- status: 401;
5926
+ status: 502;
5876
5927
  input: {
5877
5928
  query?: {
5878
5929
  cursor?: string | string[];
@@ -5881,61 +5932,51 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5881
5932
  page?: string | string[];
5882
5933
  } | undefined;
5883
5934
  };
5884
- } | {
5935
+ };
5936
+ };
5937
+ } & {
5938
+ "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}": {
5939
+ $get: {
5885
5940
  output: {
5886
- data: {
5887
- chainId: number;
5888
- context?: {
5889
- description?: string | undefined;
5890
- metadata?: {
5891
- [x: string]: string;
5892
- } | undefined;
5893
- title?: string | undefined;
5941
+ chainId: number;
5942
+ context?: {
5943
+ description?: string | undefined;
5944
+ metadata?: {
5945
+ [x: string]: string;
5894
5946
  } | undefined;
5895
- createdAt: string;
5896
- destination: {
5897
- type: "url";
5898
- url: string;
5899
- } | {
5900
- type: "slack";
5901
- url: "https://hooks.slack.com/…";
5902
- } | {
5903
- token: "[redacted]";
5904
- type: "betterstack";
5905
- url: string;
5906
- };
5907
- eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
5908
- expiresAt?: string | undefined;
5909
- failureCount: number;
5910
- filters: {
5911
- [x: string]: import("hono/utils/types").JSONValue;
5912
- };
5913
- id: string;
5914
- lastDeliveryAt?: string | undefined;
5915
- status: "active" | "disabled" | "paused";
5916
- updatedAt: string;
5917
- }[];
5918
- meta?: {
5919
- totalCountCapped: boolean;
5920
- totalCount: number;
5947
+ title?: string | undefined;
5921
5948
  } | undefined;
5922
- nextCursor: string | null;
5949
+ createdAt: string;
5950
+ destination: {
5951
+ type: "url";
5952
+ url: string;
5953
+ } | {
5954
+ type: "slack";
5955
+ url: "https://hooks.slack.com/…";
5956
+ } | {
5957
+ token: "[redacted]";
5958
+ type: "betterstack";
5959
+ url: string;
5960
+ };
5961
+ eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
5962
+ expiresAt?: string | undefined;
5963
+ failureCount: number;
5964
+ filters: {
5965
+ [x: string]: import("hono/utils/types").JSONValue;
5966
+ };
5967
+ id: string;
5968
+ lastDeliveryAt?: string | undefined;
5969
+ status: "active" | "disabled" | "paused";
5970
+ updatedAt: string;
5923
5971
  };
5924
5972
  outputFormat: "json";
5925
5973
  status: 200;
5926
5974
  input: {
5927
- query?: {
5928
- cursor?: string | string[];
5929
- include?: string | string[];
5930
- limit?: string | string[];
5931
- page?: string | string[];
5932
- } | undefined;
5975
+ param: {
5976
+ id: string;
5977
+ };
5933
5978
  };
5934
- };
5935
- };
5936
- } & {
5937
- "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}": {
5938
- $get: {
5979
+ } | {
5939
5980
  output: {
5940
5981
  error: {
5941
5982
  code: "api_key_malformed";
@@ -5954,14 +5995,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5954
5995
  } | {
5955
5996
  output: {
5956
5997
  error: {
5957
- code: "api_key_invalid" | "api_key_missing";
5998
+ code: "param_invalid";
5958
5999
  details?: readonly Response.error.Detail[] | undefined;
5959
6000
  message: string;
5960
6001
  };
5961
6002
  requestId: string;
5962
6003
  };
5963
6004
  outputFormat: "json";
5964
- status: 401;
6005
+ status: 400;
5965
6006
  input: {
5966
6007
  param: {
5967
6008
  id: string;
@@ -5970,14 +6011,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5970
6011
  } | {
5971
6012
  output: {
5972
6013
  error: {
5973
- code: "api_key_forbidden" | "api_key_ip_forbidden";
6014
+ code: "api_key_invalid" | "api_key_missing";
5974
6015
  details?: readonly Response.error.Detail[] | undefined;
5975
6016
  message: string;
5976
6017
  };
5977
6018
  requestId: string;
5978
6019
  };
5979
6020
  outputFormat: "json";
5980
- status: 403;
6021
+ status: 401;
5981
6022
  input: {
5982
6023
  param: {
5983
6024
  id: string;
@@ -5986,14 +6027,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5986
6027
  } | {
5987
6028
  output: {
5988
6029
  error: {
5989
- code: "payment_required" | "rate_limit_exceeded";
6030
+ code: "unauthorized";
5990
6031
  details?: readonly Response.error.Detail[] | undefined;
5991
6032
  message: string;
5992
6033
  };
5993
6034
  requestId: string;
5994
6035
  };
5995
6036
  outputFormat: "json";
5996
- status: 429;
6037
+ status: 401;
5997
6038
  input: {
5998
6039
  param: {
5999
6040
  id: string;
@@ -6002,14 +6043,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6002
6043
  } | {
6003
6044
  output: {
6004
6045
  error: {
6005
- code: "upstream_error";
6046
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
6006
6047
  details?: readonly Response.error.Detail[] | undefined;
6007
6048
  message: string;
6008
6049
  };
6009
6050
  requestId: string;
6010
6051
  };
6011
6052
  outputFormat: "json";
6012
- status: 502;
6053
+ status: 403;
6013
6054
  input: {
6014
6055
  param: {
6015
6056
  id: string;
@@ -6034,14 +6075,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6034
6075
  } | {
6035
6076
  output: {
6036
6077
  error: {
6037
- code: "unauthorized";
6078
+ code: "webhook_not_found";
6038
6079
  details?: readonly Response.error.Detail[] | undefined;
6039
6080
  message: string;
6040
6081
  };
6041
6082
  requestId: string;
6042
6083
  };
6043
6084
  outputFormat: "json";
6044
- status: 401;
6085
+ status: 404;
6045
6086
  input: {
6046
6087
  param: {
6047
6088
  id: string;
@@ -6050,14 +6091,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6050
6091
  } | {
6051
6092
  output: {
6052
6093
  error: {
6053
- code: "param_invalid";
6094
+ code: "payment_required" | "rate_limit_exceeded";
6054
6095
  details?: readonly Response.error.Detail[] | undefined;
6055
6096
  message: string;
6056
6097
  };
6057
6098
  requestId: string;
6058
6099
  };
6059
6100
  outputFormat: "json";
6060
- status: 400;
6101
+ status: 429;
6061
6102
  input: {
6062
6103
  param: {
6063
6104
  id: string;
@@ -6066,51 +6107,42 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6066
6107
  } | {
6067
6108
  output: {
6068
6109
  error: {
6069
- code: "webhook_not_found";
6110
+ code: "upstream_error";
6070
6111
  details?: readonly Response.error.Detail[] | undefined;
6071
6112
  message: string;
6072
6113
  };
6073
6114
  requestId: string;
6074
6115
  };
6075
6116
  outputFormat: "json";
6076
- status: 404;
6117
+ status: 502;
6077
6118
  input: {
6078
6119
  param: {
6079
6120
  id: string;
6080
6121
  };
6081
6122
  };
6082
- } | {
6123
+ };
6124
+ };
6125
+ } & {
6126
+ "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries": {
6127
+ $get: {
6083
6128
  output: {
6084
- chainId: number;
6085
- context?: {
6086
- description?: string | undefined;
6087
- metadata?: {
6088
- [x: string]: string;
6089
- } | undefined;
6090
- title?: string | undefined;
6129
+ data: {
6130
+ attempt: number;
6131
+ createdAt: string;
6132
+ error?: string | undefined;
6133
+ eventId: string;
6134
+ id: string;
6135
+ requestUrl: string;
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;
6091
6144
  } | undefined;
6092
- createdAt: string;
6093
- destination: {
6094
- type: "url";
6095
- url: string;
6096
- } | {
6097
- type: "slack";
6098
- url: "https://hooks.slack.com/…";
6099
- } | {
6100
- token: "[redacted]";
6101
- type: "betterstack";
6102
- url: string;
6103
- };
6104
- eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
6105
- expiresAt?: string | undefined;
6106
- failureCount: number;
6107
- filters: {
6108
- [x: string]: import("hono/utils/types").JSONValue;
6109
- };
6110
- id: string;
6111
- lastDeliveryAt?: string | undefined;
6112
- status: "active" | "disabled" | "paused";
6113
- updatedAt: string;
6145
+ nextCursor: string | null;
6114
6146
  };
6115
6147
  outputFormat: "json";
6116
6148
  status: 200;
@@ -6118,12 +6150,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6118
6150
  param: {
6119
6151
  id: string;
6120
6152
  };
6153
+ } & {
6154
+ query?: {
6155
+ cursor?: string | string[];
6156
+ include?: string | string[];
6157
+ limit?: string | string[];
6158
+ page?: string | string[];
6159
+ } | undefined;
6121
6160
  };
6122
- };
6123
- };
6124
- } & {
6125
- "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries": {
6126
- $get: {
6161
+ } | {
6127
6162
  output: {
6128
6163
  error: {
6129
6164
  code: "api_key_malformed";
@@ -6149,14 +6184,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6149
6184
  } | {
6150
6185
  output: {
6151
6186
  error: {
6152
- code: "api_key_invalid" | "api_key_missing";
6187
+ code: "query_invalid";
6153
6188
  details?: readonly Response.error.Detail[] | undefined;
6154
6189
  message: string;
6155
6190
  };
6156
6191
  requestId: string;
6157
6192
  };
6158
6193
  outputFormat: "json";
6159
- status: 401;
6194
+ status: 400;
6160
6195
  input: {
6161
6196
  param: {
6162
6197
  id: string;
@@ -6172,14 +6207,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6172
6207
  } | {
6173
6208
  output: {
6174
6209
  error: {
6175
- code: "api_key_forbidden" | "api_key_ip_forbidden";
6210
+ code: "param_invalid";
6176
6211
  details?: readonly Response.error.Detail[] | undefined;
6177
6212
  message: string;
6178
6213
  };
6179
6214
  requestId: string;
6180
6215
  };
6181
6216
  outputFormat: "json";
6182
- status: 403;
6217
+ status: 400;
6183
6218
  input: {
6184
6219
  param: {
6185
6220
  id: string;
@@ -6195,14 +6230,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6195
6230
  } | {
6196
6231
  output: {
6197
6232
  error: {
6198
- code: "payment_required" | "rate_limit_exceeded";
6233
+ code: "api_key_invalid" | "api_key_missing";
6199
6234
  details?: readonly Response.error.Detail[] | undefined;
6200
6235
  message: string;
6201
6236
  };
6202
6237
  requestId: string;
6203
6238
  };
6204
6239
  outputFormat: "json";
6205
- status: 429;
6240
+ status: 401;
6206
6241
  input: {
6207
6242
  param: {
6208
6243
  id: string;
@@ -6218,14 +6253,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6218
6253
  } | {
6219
6254
  output: {
6220
6255
  error: {
6221
- code: "query_invalid";
6256
+ code: "unauthorized";
6222
6257
  details?: readonly Response.error.Detail[] | undefined;
6223
6258
  message: string;
6224
6259
  };
6225
6260
  requestId: string;
6226
6261
  };
6227
6262
  outputFormat: "json";
6228
- status: 400;
6263
+ status: 401;
6229
6264
  input: {
6230
6265
  param: {
6231
6266
  id: string;
@@ -6241,14 +6276,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6241
6276
  } | {
6242
6277
  output: {
6243
6278
  error: {
6244
- code: "upstream_error";
6279
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
6245
6280
  details?: readonly Response.error.Detail[] | undefined;
6246
6281
  message: string;
6247
6282
  };
6248
6283
  requestId: string;
6249
6284
  };
6250
6285
  outputFormat: "json";
6251
- status: 502;
6286
+ status: 403;
6252
6287
  input: {
6253
6288
  param: {
6254
6289
  id: string;
@@ -6287,14 +6322,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6287
6322
  } | {
6288
6323
  output: {
6289
6324
  error: {
6290
- code: "unauthorized";
6325
+ code: "webhook_not_found";
6291
6326
  details?: readonly Response.error.Detail[] | undefined;
6292
6327
  message: string;
6293
6328
  };
6294
6329
  requestId: string;
6295
6330
  };
6296
6331
  outputFormat: "json";
6297
- status: 401;
6332
+ status: 404;
6298
6333
  input: {
6299
6334
  param: {
6300
6335
  id: string;
@@ -6310,14 +6345,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6310
6345
  } | {
6311
6346
  output: {
6312
6347
  error: {
6313
- code: "param_invalid";
6348
+ code: "payment_required" | "rate_limit_exceeded";
6314
6349
  details?: readonly Response.error.Detail[] | undefined;
6315
6350
  message: string;
6316
6351
  };
6317
6352
  requestId: string;
6318
6353
  };
6319
6354
  outputFormat: "json";
6320
- status: 400;
6355
+ status: 429;
6321
6356
  input: {
6322
6357
  param: {
6323
6358
  id: string;
@@ -6333,14 +6368,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6333
6368
  } | {
6334
6369
  output: {
6335
6370
  error: {
6336
- code: "webhook_not_found";
6371
+ code: "upstream_error";
6337
6372
  details?: readonly Response.error.Detail[] | undefined;
6338
6373
  message: string;
6339
6374
  };
6340
6375
  requestId: string;
6341
6376
  };
6342
6377
  outputFormat: "json";
6343
- status: 404;
6378
+ status: 502;
6344
6379
  input: {
6345
6380
  param: {
6346
6381
  id: string;
@@ -6353,25 +6388,17 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6353
6388
  page?: string | string[];
6354
6389
  } | undefined;
6355
6390
  };
6356
- } | {
6391
+ };
6392
+ };
6393
+ } & {
6394
+ "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/ping": {
6395
+ $post: {
6357
6396
  output: {
6358
- data: {
6359
- attempt: number;
6360
- createdAt: string;
6361
- error?: string | undefined;
6362
- eventId: string;
6363
- id: string;
6364
- requestUrl: string;
6365
- responseMs?: number | undefined;
6366
- responseStatus?: number | undefined;
6367
- status: "failed" | "pending" | "succeeded";
6368
- subscriptionId: string;
6369
- }[];
6370
- meta?: {
6371
- totalCountCapped: boolean;
6372
- totalCount: number;
6373
- } | undefined;
6374
- nextCursor: string | null;
6397
+ delivered: boolean;
6398
+ error?: string | undefined;
6399
+ eventId: string;
6400
+ responseMs?: number | undefined;
6401
+ responseStatus?: number | undefined;
6375
6402
  };
6376
6403
  outputFormat: "json";
6377
6404
  status: 200;
@@ -6379,19 +6406,8 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6379
6406
  param: {
6380
6407
  id: string;
6381
6408
  };
6382
- } & {
6383
- query?: {
6384
- cursor?: string | string[];
6385
- include?: string | string[];
6386
- limit?: string | string[];
6387
- page?: string | string[];
6388
- } | undefined;
6389
6409
  };
6390
- };
6391
- };
6392
- } & {
6393
- "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/ping": {
6394
- $post: {
6410
+ } | {
6395
6411
  output: {
6396
6412
  error: {
6397
6413
  code: "api_key_malformed";
@@ -6410,14 +6426,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6410
6426
  } | {
6411
6427
  output: {
6412
6428
  error: {
6413
- code: "api_key_invalid" | "api_key_missing";
6429
+ code: "param_invalid";
6414
6430
  details?: readonly Response.error.Detail[] | undefined;
6415
6431
  message: string;
6416
6432
  };
6417
6433
  requestId: string;
6418
6434
  };
6419
6435
  outputFormat: "json";
6420
- status: 401;
6436
+ status: 400;
6421
6437
  input: {
6422
6438
  param: {
6423
6439
  id: string;
@@ -6426,14 +6442,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6426
6442
  } | {
6427
6443
  output: {
6428
6444
  error: {
6429
- code: "api_key_forbidden" | "api_key_ip_forbidden";
6445
+ code: "api_key_invalid" | "api_key_missing";
6430
6446
  details?: readonly Response.error.Detail[] | undefined;
6431
6447
  message: string;
6432
6448
  };
6433
6449
  requestId: string;
6434
6450
  };
6435
6451
  outputFormat: "json";
6436
- status: 403;
6452
+ status: 401;
6437
6453
  input: {
6438
6454
  param: {
6439
6455
  id: string;
@@ -6442,14 +6458,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6442
6458
  } | {
6443
6459
  output: {
6444
6460
  error: {
6445
- code: "payment_required" | "rate_limit_exceeded";
6461
+ code: "unauthorized";
6446
6462
  details?: readonly Response.error.Detail[] | undefined;
6447
6463
  message: string;
6448
6464
  };
6449
6465
  requestId: string;
6450
6466
  };
6451
6467
  outputFormat: "json";
6452
- status: 429;
6468
+ status: 401;
6453
6469
  input: {
6454
6470
  param: {
6455
6471
  id: string;
@@ -6458,14 +6474,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6458
6474
  } | {
6459
6475
  output: {
6460
6476
  error: {
6461
- code: "upstream_error";
6477
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
6462
6478
  details?: readonly Response.error.Detail[] | undefined;
6463
6479
  message: string;
6464
6480
  };
6465
6481
  requestId: string;
6466
6482
  };
6467
6483
  outputFormat: "json";
6468
- status: 502;
6484
+ status: 403;
6469
6485
  input: {
6470
6486
  param: {
6471
6487
  id: string;
@@ -6490,14 +6506,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6490
6506
  } | {
6491
6507
  output: {
6492
6508
  error: {
6493
- code: "unauthorized";
6509
+ code: "webhook_not_found";
6494
6510
  details?: readonly Response.error.Detail[] | undefined;
6495
6511
  message: string;
6496
6512
  };
6497
6513
  requestId: string;
6498
6514
  };
6499
6515
  outputFormat: "json";
6500
- status: 401;
6516
+ status: 404;
6501
6517
  input: {
6502
6518
  param: {
6503
6519
  id: string;
@@ -6506,14 +6522,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6506
6522
  } | {
6507
6523
  output: {
6508
6524
  error: {
6509
- code: "param_invalid";
6525
+ code: "payment_required" | "rate_limit_exceeded";
6510
6526
  details?: readonly Response.error.Detail[] | undefined;
6511
6527
  message: string;
6512
6528
  };
6513
6529
  requestId: string;
6514
6530
  };
6515
6531
  outputFormat: "json";
6516
- status: 400;
6532
+ status: 429;
6517
6533
  input: {
6518
6534
  param: {
6519
6535
  id: string;
@@ -6522,20 +6538,24 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6522
6538
  } | {
6523
6539
  output: {
6524
6540
  error: {
6525
- code: "webhook_not_found";
6541
+ code: "upstream_error";
6526
6542
  details?: readonly Response.error.Detail[] | undefined;
6527
6543
  message: string;
6528
6544
  };
6529
6545
  requestId: string;
6530
6546
  };
6531
6547
  outputFormat: "json";
6532
- status: 404;
6548
+ status: 502;
6533
6549
  input: {
6534
6550
  param: {
6535
6551
  id: string;
6536
6552
  };
6537
6553
  };
6538
- } | {
6554
+ };
6555
+ };
6556
+ } & {
6557
+ "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries/:deliveryId/retry": {
6558
+ $post: {
6539
6559
  output: {
6540
6560
  delivered: boolean;
6541
6561
  error?: string | undefined;
@@ -6547,14 +6567,11 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6547
6567
  status: 200;
6548
6568
  input: {
6549
6569
  param: {
6570
+ deliveryId: string;
6550
6571
  id: string;
6551
6572
  };
6552
6573
  };
6553
- };
6554
- };
6555
- } & {
6556
- "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries/:deliveryId/retry": {
6557
- $post: {
6574
+ } | {
6558
6575
  output: {
6559
6576
  error: {
6560
6577
  code: "api_key_malformed";
@@ -6574,14 +6591,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6574
6591
  } | {
6575
6592
  output: {
6576
6593
  error: {
6577
- code: "api_key_invalid" | "api_key_missing";
6594
+ code: "param_invalid";
6578
6595
  details?: readonly Response.error.Detail[] | undefined;
6579
6596
  message: string;
6580
6597
  };
6581
6598
  requestId: string;
6582
6599
  };
6583
6600
  outputFormat: "json";
6584
- status: 401;
6601
+ status: 400;
6585
6602
  input: {
6586
6603
  param: {
6587
6604
  deliveryId: string;
@@ -6591,14 +6608,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6591
6608
  } | {
6592
6609
  output: {
6593
6610
  error: {
6594
- code: "api_key_forbidden" | "api_key_ip_forbidden";
6611
+ code: "api_key_invalid" | "api_key_missing";
6595
6612
  details?: readonly Response.error.Detail[] | undefined;
6596
6613
  message: string;
6597
6614
  };
6598
6615
  requestId: string;
6599
6616
  };
6600
6617
  outputFormat: "json";
6601
- status: 403;
6618
+ status: 401;
6602
6619
  input: {
6603
6620
  param: {
6604
6621
  deliveryId: string;
@@ -6608,14 +6625,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6608
6625
  } | {
6609
6626
  output: {
6610
6627
  error: {
6611
- code: "payment_required" | "rate_limit_exceeded";
6628
+ code: "unauthorized";
6612
6629
  details?: readonly Response.error.Detail[] | undefined;
6613
6630
  message: string;
6614
6631
  };
6615
6632
  requestId: string;
6616
6633
  };
6617
6634
  outputFormat: "json";
6618
- status: 429;
6635
+ status: 401;
6619
6636
  input: {
6620
6637
  param: {
6621
6638
  deliveryId: string;
@@ -6625,14 +6642,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6625
6642
  } | {
6626
6643
  output: {
6627
6644
  error: {
6628
- code: "upstream_error";
6645
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
6629
6646
  details?: readonly Response.error.Detail[] | undefined;
6630
6647
  message: string;
6631
6648
  };
6632
6649
  requestId: string;
6633
6650
  };
6634
6651
  outputFormat: "json";
6635
- status: 502;
6652
+ status: 403;
6636
6653
  input: {
6637
6654
  param: {
6638
6655
  deliveryId: string;
@@ -6659,14 +6676,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6659
6676
  } | {
6660
6677
  output: {
6661
6678
  error: {
6662
- code: "unauthorized";
6679
+ code: "webhook_not_found";
6663
6680
  details?: readonly Response.error.Detail[] | undefined;
6664
6681
  message: string;
6665
6682
  };
6666
6683
  requestId: string;
6667
6684
  };
6668
6685
  outputFormat: "json";
6669
- status: 401;
6686
+ status: 404;
6670
6687
  input: {
6671
6688
  param: {
6672
6689
  deliveryId: string;
@@ -6676,14 +6693,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6676
6693
  } | {
6677
6694
  output: {
6678
6695
  error: {
6679
- code: "param_invalid";
6696
+ code: "delivery_not_found";
6680
6697
  details?: readonly Response.error.Detail[] | undefined;
6681
6698
  message: string;
6682
6699
  };
6683
6700
  requestId: string;
6684
6701
  };
6685
6702
  outputFormat: "json";
6686
- status: 400;
6703
+ status: 404;
6687
6704
  input: {
6688
6705
  param: {
6689
6706
  deliveryId: string;
@@ -6693,30 +6710,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6693
6710
  } | {
6694
6711
  output: {
6695
6712
  error: {
6696
- code: "webhook_not_found";
6713
+ code: "payment_required" | "rate_limit_exceeded";
6697
6714
  details?: readonly Response.error.Detail[] | undefined;
6698
6715
  message: string;
6699
6716
  };
6700
6717
  requestId: string;
6701
6718
  };
6702
6719
  outputFormat: "json";
6703
- status: 404;
6704
- input: {
6705
- param: {
6706
- deliveryId: string;
6707
- id: string;
6708
- };
6709
- };
6710
- } | {
6711
- output: {
6712
- delivered: boolean;
6713
- error?: string | undefined;
6714
- eventId: string;
6715
- responseMs?: number | undefined;
6716
- responseStatus?: number | undefined;
6717
- };
6718
- outputFormat: "json";
6719
- status: 200;
6720
+ status: 429;
6720
6721
  input: {
6721
6722
  param: {
6722
6723
  deliveryId: string;
@@ -6726,14 +6727,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6726
6727
  } | {
6727
6728
  output: {
6728
6729
  error: {
6729
- code: "delivery_not_found";
6730
+ code: "upstream_error";
6730
6731
  details?: readonly Response.error.Detail[] | undefined;
6731
6732
  message: string;
6732
6733
  };
6733
6734
  requestId: string;
6734
6735
  };
6735
6736
  outputFormat: "json";
6736
- status: 404;
6737
+ status: 502;
6737
6738
  input: {
6738
6739
  param: {
6739
6740
  deliveryId: string;
@@ -6746,15 +6747,39 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6746
6747
  "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}": {
6747
6748
  $patch: {
6748
6749
  output: {
6749
- error: {
6750
- code: "api_key_malformed";
6751
- details?: readonly Response.error.Detail[] | undefined;
6752
- message: string;
6750
+ chainId: number;
6751
+ context?: {
6752
+ description?: string | undefined;
6753
+ metadata?: {
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;
6753
6769
  };
6754
- requestId: string;
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;
6775
+ };
6776
+ id: string;
6777
+ lastDeliveryAt?: string | undefined;
6778
+ status: "active" | "disabled" | "paused";
6779
+ updatedAt: string;
6755
6780
  };
6756
6781
  outputFormat: "json";
6757
- status: 400;
6782
+ status: 200;
6758
6783
  input: {
6759
6784
  param: {
6760
6785
  id: string;
@@ -6784,14 +6809,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6784
6809
  } | {
6785
6810
  output: {
6786
6811
  error: {
6787
- code: "api_key_invalid" | "api_key_missing";
6812
+ code: "api_key_malformed";
6788
6813
  details?: readonly Response.error.Detail[] | undefined;
6789
6814
  message: string;
6790
6815
  };
6791
6816
  requestId: string;
6792
6817
  };
6793
6818
  outputFormat: "json";
6794
- status: 401;
6819
+ status: 400;
6795
6820
  input: {
6796
6821
  param: {
6797
6822
  id: string;
@@ -6821,14 +6846,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6821
6846
  } | {
6822
6847
  output: {
6823
6848
  error: {
6824
- code: "api_key_forbidden" | "api_key_ip_forbidden";
6849
+ code: "body_invalid";
6825
6850
  details?: readonly Response.error.Detail[] | undefined;
6826
6851
  message: string;
6827
6852
  };
6828
6853
  requestId: string;
6829
6854
  };
6830
6855
  outputFormat: "json";
6831
- status: 403;
6856
+ status: 400;
6832
6857
  input: {
6833
6858
  param: {
6834
6859
  id: string;
@@ -6858,14 +6883,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6858
6883
  } | {
6859
6884
  output: {
6860
6885
  error: {
6861
- code: "payment_required" | "rate_limit_exceeded";
6886
+ code: "url_invalid";
6862
6887
  details?: readonly Response.error.Detail[] | undefined;
6863
6888
  message: string;
6864
6889
  };
6865
6890
  requestId: string;
6866
6891
  };
6867
6892
  outputFormat: "json";
6868
- status: 429;
6893
+ status: 400;
6869
6894
  input: {
6870
6895
  param: {
6871
6896
  id: string;
@@ -6895,14 +6920,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6895
6920
  } | {
6896
6921
  output: {
6897
6922
  error: {
6898
- code: "upstream_error";
6923
+ code: "filters_invalid";
6899
6924
  details?: readonly Response.error.Detail[] | undefined;
6900
6925
  message: string;
6901
6926
  };
6902
6927
  requestId: string;
6903
6928
  };
6904
6929
  outputFormat: "json";
6905
- status: 502;
6930
+ status: 400;
6906
6931
  input: {
6907
6932
  param: {
6908
6933
  id: string;
@@ -6932,14 +6957,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6932
6957
  } | {
6933
6958
  output: {
6934
6959
  error: {
6935
- code: "webhooks_not_enabled";
6960
+ code: "param_invalid";
6936
6961
  details?: readonly Response.error.Detail[] | undefined;
6937
6962
  message: string;
6938
6963
  };
6939
6964
  requestId: string;
6940
6965
  };
6941
6966
  outputFormat: "json";
6942
- status: 404;
6967
+ status: 400;
6943
6968
  input: {
6944
6969
  param: {
6945
6970
  id: string;
@@ -6969,7 +6994,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6969
6994
  } | {
6970
6995
  output: {
6971
6996
  error: {
6972
- code: "body_invalid";
6997
+ code: "destination_transition_invalid";
6973
6998
  details?: readonly Response.error.Detail[] | undefined;
6974
6999
  message: string;
6975
7000
  };
@@ -7006,7 +7031,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7006
7031
  } | {
7007
7032
  output: {
7008
7033
  error: {
7009
- code: "unauthorized";
7034
+ code: "api_key_invalid" | "api_key_missing";
7010
7035
  details?: readonly Response.error.Detail[] | undefined;
7011
7036
  message: string;
7012
7037
  };
@@ -7043,14 +7068,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7043
7068
  } | {
7044
7069
  output: {
7045
7070
  error: {
7046
- code: "url_invalid";
7071
+ code: "unauthorized";
7047
7072
  details?: readonly Response.error.Detail[] | undefined;
7048
7073
  message: string;
7049
7074
  };
7050
7075
  requestId: string;
7051
7076
  };
7052
7077
  outputFormat: "json";
7053
- status: 400;
7078
+ status: 401;
7054
7079
  input: {
7055
7080
  param: {
7056
7081
  id: string;
@@ -7080,14 +7105,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7080
7105
  } | {
7081
7106
  output: {
7082
7107
  error: {
7083
- code: "filters_invalid";
7108
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
7084
7109
  details?: readonly Response.error.Detail[] | undefined;
7085
7110
  message: string;
7086
7111
  };
7087
7112
  requestId: string;
7088
7113
  };
7089
7114
  outputFormat: "json";
7090
- status: 400;
7115
+ status: 403;
7091
7116
  input: {
7092
7117
  param: {
7093
7118
  id: string;
@@ -7117,14 +7142,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7117
7142
  } | {
7118
7143
  output: {
7119
7144
  error: {
7120
- code: "param_invalid";
7145
+ code: "webhooks_not_enabled";
7121
7146
  details?: readonly Response.error.Detail[] | undefined;
7122
7147
  message: string;
7123
7148
  };
7124
7149
  requestId: string;
7125
7150
  };
7126
7151
  outputFormat: "json";
7127
- status: 400;
7152
+ status: 404;
7128
7153
  input: {
7129
7154
  param: {
7130
7155
  id: string;
@@ -7190,39 +7215,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7190
7215
  };
7191
7216
  } | {
7192
7217
  output: {
7193
- chainId: number;
7194
- context?: {
7195
- description?: string | undefined;
7196
- metadata?: {
7197
- [x: string]: string;
7198
- } | undefined;
7199
- title?: string | undefined;
7200
- } | undefined;
7201
- createdAt: string;
7202
- destination: {
7203
- type: "url";
7204
- url: string;
7205
- } | {
7206
- type: "slack";
7207
- url: "https://hooks.slack.com/…";
7208
- } | {
7209
- token: "[redacted]";
7210
- type: "betterstack";
7211
- url: string;
7212
- };
7213
- eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
7214
- expiresAt?: string | undefined;
7215
- failureCount: number;
7216
- filters: {
7217
- [x: string]: import("hono/utils/types").JSONValue;
7218
+ error: {
7219
+ code: "payment_required" | "rate_limit_exceeded";
7220
+ details?: readonly Response.error.Detail[] | undefined;
7221
+ message: string;
7218
7222
  };
7219
- id: string;
7220
- lastDeliveryAt?: string | undefined;
7221
- status: "active" | "disabled" | "paused";
7222
- updatedAt: string;
7223
+ requestId: string;
7223
7224
  };
7224
7225
  outputFormat: "json";
7225
- status: 200;
7226
+ status: 429;
7226
7227
  input: {
7227
7228
  param: {
7228
7229
  id: string;
@@ -7252,14 +7253,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7252
7253
  } | {
7253
7254
  output: {
7254
7255
  error: {
7255
- code: "destination_transition_invalid";
7256
+ code: "upstream_error";
7256
7257
  details?: readonly Response.error.Detail[] | undefined;
7257
7258
  message: string;
7258
7259
  };
7259
7260
  requestId: string;
7260
7261
  };
7261
7262
  outputFormat: "json";
7262
- status: 400;
7263
+ status: 502;
7263
7264
  input: {
7264
7265
  param: {
7265
7266
  id: string;
@@ -7292,15 +7293,10 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7292
7293
  "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}": {
7293
7294
  $delete: {
7294
7295
  output: {
7295
- error: {
7296
- code: "api_key_malformed";
7297
- details?: readonly Response.error.Detail[] | undefined;
7298
- message: string;
7299
- };
7300
- requestId: string;
7296
+ id: string;
7301
7297
  };
7302
7298
  outputFormat: "json";
7303
- status: 400;
7299
+ status: 200;
7304
7300
  input: {
7305
7301
  param: {
7306
7302
  id: string;
@@ -7309,14 +7305,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7309
7305
  } | {
7310
7306
  output: {
7311
7307
  error: {
7312
- code: "api_key_invalid" | "api_key_missing";
7308
+ code: "api_key_malformed";
7313
7309
  details?: readonly Response.error.Detail[] | undefined;
7314
7310
  message: string;
7315
7311
  };
7316
7312
  requestId: string;
7317
7313
  };
7318
7314
  outputFormat: "json";
7319
- status: 401;
7315
+ status: 400;
7320
7316
  input: {
7321
7317
  param: {
7322
7318
  id: string;
@@ -7325,14 +7321,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7325
7321
  } | {
7326
7322
  output: {
7327
7323
  error: {
7328
- code: "api_key_forbidden" | "api_key_ip_forbidden";
7324
+ code: "param_invalid";
7329
7325
  details?: readonly Response.error.Detail[] | undefined;
7330
7326
  message: string;
7331
7327
  };
7332
7328
  requestId: string;
7333
7329
  };
7334
7330
  outputFormat: "json";
7335
- status: 403;
7331
+ status: 400;
7336
7332
  input: {
7337
7333
  param: {
7338
7334
  id: string;
@@ -7341,14 +7337,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7341
7337
  } | {
7342
7338
  output: {
7343
7339
  error: {
7344
- code: "payment_required" | "rate_limit_exceeded";
7340
+ code: "api_key_invalid" | "api_key_missing";
7345
7341
  details?: readonly Response.error.Detail[] | undefined;
7346
7342
  message: string;
7347
7343
  };
7348
7344
  requestId: string;
7349
7345
  };
7350
7346
  outputFormat: "json";
7351
- status: 429;
7347
+ status: 401;
7352
7348
  input: {
7353
7349
  param: {
7354
7350
  id: string;
@@ -7357,14 +7353,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7357
7353
  } | {
7358
7354
  output: {
7359
7355
  error: {
7360
- code: "upstream_error";
7356
+ code: "unauthorized";
7361
7357
  details?: readonly Response.error.Detail[] | undefined;
7362
7358
  message: string;
7363
7359
  };
7364
7360
  requestId: string;
7365
7361
  };
7366
7362
  outputFormat: "json";
7367
- status: 502;
7363
+ status: 401;
7368
7364
  input: {
7369
7365
  param: {
7370
7366
  id: string;
@@ -7373,14 +7369,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7373
7369
  } | {
7374
7370
  output: {
7375
7371
  error: {
7376
- code: "webhooks_not_enabled";
7372
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
7377
7373
  details?: readonly Response.error.Detail[] | undefined;
7378
7374
  message: string;
7379
7375
  };
7380
7376
  requestId: string;
7381
7377
  };
7382
7378
  outputFormat: "json";
7383
- status: 404;
7379
+ status: 403;
7384
7380
  input: {
7385
7381
  param: {
7386
7382
  id: string;
@@ -7389,14 +7385,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7389
7385
  } | {
7390
7386
  output: {
7391
7387
  error: {
7392
- code: "unauthorized";
7388
+ code: "webhooks_not_enabled";
7393
7389
  details?: readonly Response.error.Detail[] | undefined;
7394
7390
  message: string;
7395
7391
  };
7396
7392
  requestId: string;
7397
7393
  };
7398
7394
  outputFormat: "json";
7399
- status: 401;
7395
+ status: 404;
7400
7396
  input: {
7401
7397
  param: {
7402
7398
  id: string;
@@ -7405,14 +7401,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7405
7401
  } | {
7406
7402
  output: {
7407
7403
  error: {
7408
- code: "param_invalid";
7404
+ code: "webhook_not_found";
7409
7405
  details?: readonly Response.error.Detail[] | undefined;
7410
7406
  message: string;
7411
7407
  };
7412
7408
  requestId: string;
7413
7409
  };
7414
7410
  outputFormat: "json";
7415
- status: 400;
7411
+ status: 404;
7416
7412
  input: {
7417
7413
  param: {
7418
7414
  id: string;
@@ -7421,14 +7417,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7421
7417
  } | {
7422
7418
  output: {
7423
7419
  error: {
7424
- code: "webhook_not_found";
7420
+ code: "payment_required" | "rate_limit_exceeded";
7425
7421
  details?: readonly Response.error.Detail[] | undefined;
7426
7422
  message: string;
7427
7423
  };
7428
7424
  requestId: string;
7429
7425
  };
7430
7426
  outputFormat: "json";
7431
- status: 404;
7427
+ status: 429;
7432
7428
  input: {
7433
7429
  param: {
7434
7430
  id: string;
@@ -7436,10 +7432,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7436
7432
  };
7437
7433
  } | {
7438
7434
  output: {
7439
- id: string;
7435
+ error: {
7436
+ code: "upstream_error";
7437
+ details?: readonly Response.error.Detail[] | undefined;
7438
+ message: string;
7439
+ };
7440
+ requestId: string;
7440
7441
  };
7441
7442
  outputFormat: "json";
7442
- status: 200;
7443
+ status: 502;
7443
7444
  input: {
7444
7445
  param: {
7445
7446
  id: string;
@@ -7503,7 +7504,7 @@ export declare namespace poll {
7503
7504
  */
7504
7505
  dispatch?: ((input: Dispatchable) => Promise<Webhooks.Result>) | undefined;
7505
7506
  /** Batch delivery transport. A successful result confirms every row in the input. */
7506
- dispatchBatch?: ((input: readonly Dispatchable[]) => Promise<Webhooks.Result>) | undefined;
7507
+ dispatchBatch?: ((input: readonly Dispatchable[], context: DispatchContext) => Promise<Webhooks.Result>) | undefined;
7507
7508
  /** Event types to poll (default all). */
7508
7509
  eventTypes?: readonly EventType[] | undefined;
7509
7510
  /** Current chain head; the poller emits up to `head - confirmations`. */
@@ -7523,6 +7524,11 @@ export declare namespace poll {
7523
7524
  /** Stops scanning and dispatch when the caller loses its execution lease. */
7524
7525
  signal?: AbortSignal | undefined;
7525
7526
  };
7527
+ /** Runtime context shared with a batch delivery transport. */
7528
+ type DispatchContext = {
7529
+ /** Database instance already resolved for this poll. */
7530
+ db: Db.Db;
7531
+ };
7526
7532
  /** Summary counters for one poll tick. */
7527
7533
  type Result = {
7528
7534
  /** Chain that was polled. */
@@ -7603,4 +7609,52 @@ export declare function parseFilters(eventType: EventType, filters: Record<strin
7603
7609
  * - `{ startsWith }` → hex prefix
7604
7610
  */
7605
7611
  export declare function matchesOperator(value: string | undefined, op: unknown, kind?: 'number' | 'string'): boolean;
7612
+ /**
7613
+ * Matches one fetched block against a subscription set, producing the rows
7614
+ * each event type delivers. Invalid stored filters fail closed into `invalid`.
7615
+ */
7616
+ export declare function scanBlock<const subscription extends scanBlock.Subscription>(options: scanBlock.Options<subscription>): scanBlock.Result<subscription>;
7617
+ export declare namespace scanBlock {
7618
+ /** The subscription fields matching consumes; extra fields flow through. */
7619
+ type Subscription = {
7620
+ /** Event type selecting the matcher and payload shape. */
7621
+ eventType: EventType;
7622
+ /** Stored filter predicates, validated fail-closed per event type. */
7623
+ filters: Record<string, unknown>;
7624
+ };
7625
+ /** One fetched block plus the subscriptions to match it against. */
7626
+ type Options<subscription extends Subscription> = {
7627
+ /** Raw `eth_getBlockByNumber(_, true)` result: header plus raw transactions. */
7628
+ block: Record<string, unknown>;
7629
+ /** Raw `eth_getLogs` entries for exactly this block, in log order. */
7630
+ logs: readonly RpcLog[];
7631
+ /** Active subscriptions for the chain; any mix of event types. */
7632
+ subscriptions: readonly subscription[];
7633
+ };
7634
+ /** One deliverable row for one subscription. */
7635
+ type Match<subscription extends Subscription> = {
7636
+ /** Block the row was produced from. */
7637
+ blockNumber: number;
7638
+ /** Payload the matching read endpoint returns (pre-enrichment). */
7639
+ data: unknown;
7640
+ /** Row position within the block (log or transaction index; 0 for blocks). */
7641
+ logIndex: number;
7642
+ /** The matched subscription, passed through verbatim. */
7643
+ subscription: subscription;
7644
+ };
7645
+ /** A subscription whose stored filters failed validation. */
7646
+ type Invalid<subscription extends Subscription> = {
7647
+ /** The validation failure. */
7648
+ error: unknown;
7649
+ /** The subscription with invalid filters. */
7650
+ subscription: subscription;
7651
+ };
7652
+ /** Matches plus fail-closed filter rejections. */
7653
+ type Result<subscription extends Subscription> = {
7654
+ /** Subscriptions skipped because their stored filters failed validation. */
7655
+ invalid: readonly Invalid<subscription>[];
7656
+ /** Deliverable rows in subscription order, block order within each type. */
7657
+ matches: readonly Match<subscription>[];
7658
+ };
7659
+ }
7606
7660
  //# sourceMappingURL=webhooks.d.ts.map