tapimo 0.7.0 → 0.7.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 (69) hide show
  1. package/dist/App.d.ts +5 -5
  2. package/dist/admin/ui.generated.d.ts.map +1 -1
  3. package/dist/admin/ui.generated.js +95 -95
  4. package/dist/admin/ui.generated.js.map +1 -1
  5. package/dist/apps/data/App.d.ts +3283 -3283
  6. package/dist/apps/data/routes/exchanges.d.ts +664 -664
  7. package/dist/apps/data/routes/fee-amm.d.ts +108 -108
  8. package/dist/apps/data/routes/indexer.d.ts +34 -34
  9. package/dist/apps/data/routes/receipts.d.ts +2 -2
  10. package/dist/apps/data/routes/tokenlist.d.ts.map +1 -1
  11. package/dist/apps/data/routes/tokenlist.js +12 -3
  12. package/dist/apps/data/routes/tokenlist.js.map +1 -1
  13. package/dist/apps/data/routes/tokens.d.ts +2 -2
  14. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  15. package/dist/apps/data/routes/tokens.js +4 -0
  16. package/dist/apps/data/routes/tokens.js.map +1 -1
  17. package/dist/apps/data/routes/transactions.d.ts +2 -2
  18. package/dist/apps/data/routes/transfers.d.ts +2 -2
  19. package/dist/apps/data/routes/valuation.d.ts +32 -32
  20. package/dist/apps/data/routes/verified-tokens.d.ts.map +1 -1
  21. package/dist/apps/data/routes/verified-tokens.js +34 -9
  22. package/dist/apps/data/routes/verified-tokens.js.map +1 -1
  23. package/dist/apps/data/routes/webhooks.d.ts +363 -363
  24. package/dist/apps/data/routes/webhooks.js +14 -6
  25. package/dist/apps/data/routes/webhooks.js.map +1 -1
  26. package/dist/apps/management/routes/faucet.d.ts +36 -36
  27. package/dist/apps/management/routes/members.d.ts +78 -78
  28. package/dist/apps/management/routes/usage.d.ts +80 -80
  29. package/dist/apps/relay/App.js +1 -1
  30. package/dist/apps/relay/App.js.map +1 -1
  31. package/dist/apps/relay/Sponsorships.js +1 -1
  32. package/dist/apps/relay/Sponsorships.js.map +1 -1
  33. package/dist/db/tables/organizations.d.ts.map +1 -1
  34. package/dist/db/tables/organizations.js +19 -0
  35. package/dist/db/tables/organizations.js.map +1 -1
  36. package/dist/db/tables/sponsoredTransactions.d.ts +2 -0
  37. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  38. package/dist/db/tables/sponsoredTransactions.js +13 -3
  39. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  40. package/dist/internal/EdgeCache.d.ts +1 -1
  41. package/dist/internal/EdgeCache.d.ts.map +1 -1
  42. package/dist/internal/EdgeCache.js +3 -2
  43. package/dist/internal/EdgeCache.js.map +1 -1
  44. package/dist/internal/Schema.d.ts +2 -2
  45. package/dist/internal/Schema.d.ts.map +1 -1
  46. package/dist/internal/Schema.js +4 -2
  47. package/dist/internal/Schema.js.map +1 -1
  48. package/package.json +1 -1
  49. package/src/admin/ui.generated.ts +119 -95
  50. package/src/apps/data/App.test.ts +13 -1
  51. package/src/apps/data/routes/tokenlist.test.ts +15 -0
  52. package/src/apps/data/routes/tokenlist.ts +18 -5
  53. package/src/apps/data/routes/tokens.ts +4 -0
  54. package/src/apps/data/routes/verified-tokens.test.ts +51 -0
  55. package/src/apps/data/routes/verified-tokens.ts +52 -15
  56. package/src/apps/data/routes/webhooks.test.ts +56 -0
  57. package/src/apps/data/routes/webhooks.ts +17 -8
  58. package/src/apps/relay/App.test.ts +2 -2
  59. package/src/apps/relay/App.ts +1 -1
  60. package/src/apps/relay/Sponsorships.test.ts +2 -0
  61. package/src/apps/relay/Sponsorships.ts +1 -1
  62. package/src/db/tables/organizations.test.ts +88 -0
  63. package/src/db/tables/organizations.ts +26 -1
  64. package/src/db/tables/sponsoredTransactions.test.ts +41 -2
  65. package/src/db/tables/sponsoredTransactions.ts +15 -3
  66. package/src/internal/EdgeCache.test.ts +18 -5
  67. package/src/internal/EdgeCache.ts +4 -2
  68. package/src/internal/Schema.test.ts +13 -0
  69. package/src/internal/Schema.ts +14 -7
@@ -1645,9 +1645,14 @@ export declare namespace schema {
1645
1645
  export declare function webhooks(options?: webhooks.Options): import("hono/hono-base").HonoBase<App.Environment, {
1646
1646
  "/v1/webhooks/event-types": {
1647
1647
  $get: {
1648
- output: null;
1649
- outputFormat: "body";
1650
- status: 402;
1648
+ output: {
1649
+ data: {
1650
+ description: string;
1651
+ type: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
1652
+ }[];
1653
+ };
1654
+ outputFormat: "json";
1655
+ status: 200;
1651
1656
  input: {};
1652
1657
  } | {
1653
1658
  output: {
@@ -1673,6 +1678,11 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1673
1678
  outputFormat: "json";
1674
1679
  status: 401;
1675
1680
  input: {};
1681
+ } | {
1682
+ output: null;
1683
+ outputFormat: "body";
1684
+ status: 402;
1685
+ input: {};
1676
1686
  } | {
1677
1687
  output: {
1678
1688
  error: {
@@ -1688,36 +1698,26 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1688
1698
  } | {
1689
1699
  output: {
1690
1700
  error: {
1691
- code: "payment_required" | "rate_limit_exceeded";
1701
+ code: "webhooks_not_enabled";
1692
1702
  details?: readonly Response.error.Detail[] | undefined;
1693
1703
  message: string;
1694
1704
  };
1695
1705
  requestId: string;
1696
1706
  };
1697
1707
  outputFormat: "json";
1698
- status: 429;
1708
+ status: 404;
1699
1709
  input: {};
1700
1710
  } | {
1701
1711
  output: {
1702
1712
  error: {
1703
- code: "webhooks_not_enabled";
1713
+ code: "payment_required" | "rate_limit_exceeded";
1704
1714
  details?: readonly Response.error.Detail[] | undefined;
1705
1715
  message: string;
1706
1716
  };
1707
1717
  requestId: string;
1708
1718
  };
1709
1719
  outputFormat: "json";
1710
- status: 404;
1711
- input: {};
1712
- } | {
1713
- output: {
1714
- data: {
1715
- description: string;
1716
- type: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
1717
- }[];
1718
- };
1719
- outputFormat: "json";
1720
- status: 200;
1720
+ status: 429;
1721
1721
  input: {};
1722
1722
  };
1723
1723
  };
@@ -1725,15 +1725,40 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1725
1725
  "/v1/webhooks": {
1726
1726
  $post: {
1727
1727
  output: {
1728
- error: {
1729
- code: "api_key_malformed";
1730
- details?: readonly Response.error.Detail[] | undefined;
1731
- message: string;
1728
+ chainId: number;
1729
+ context?: {
1730
+ description?: string | undefined;
1731
+ metadata?: {
1732
+ [x: string]: string;
1733
+ } | undefined;
1734
+ title?: string | undefined;
1735
+ } | undefined;
1736
+ createdAt: string;
1737
+ eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
1738
+ expiresAt?: string | undefined;
1739
+ failureCount: number;
1740
+ filters: {
1741
+ [x: string]: import("hono/utils/types").JSONValue;
1732
1742
  };
1733
- requestId: string;
1743
+ id: string;
1744
+ lastDeliveryAt?: string | undefined;
1745
+ status: "active" | "disabled" | "paused";
1746
+ updatedAt: string;
1747
+ destination: {
1748
+ type: "url";
1749
+ url: string;
1750
+ } | {
1751
+ type: "slack";
1752
+ url: string;
1753
+ } | {
1754
+ token: string;
1755
+ type: "betterstack";
1756
+ url: string;
1757
+ };
1758
+ secret: string;
1734
1759
  };
1735
1760
  outputFormat: "json";
1736
- status: 400;
1761
+ status: 200;
1737
1762
  input: {
1738
1763
  json: {
1739
1764
  chainId?: unknown;
@@ -2066,14 +2091,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2066
2091
  } | {
2067
2092
  output: {
2068
2093
  error: {
2069
- code: "api_key_invalid" | "api_key_missing";
2094
+ code: "api_key_malformed";
2070
2095
  details?: readonly Response.error.Detail[] | undefined;
2071
2096
  message: string;
2072
2097
  };
2073
2098
  requestId: string;
2074
2099
  };
2075
2100
  outputFormat: "json";
2076
- status: 401;
2101
+ status: 400;
2077
2102
  input: {
2078
2103
  json: {
2079
2104
  chainId?: unknown;
@@ -2406,14 +2431,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2406
2431
  } | {
2407
2432
  output: {
2408
2433
  error: {
2409
- code: "api_key_forbidden";
2434
+ code: "body_invalid";
2410
2435
  details?: readonly Response.error.Detail[] | undefined;
2411
2436
  message: string;
2412
2437
  };
2413
2438
  requestId: string;
2414
2439
  };
2415
2440
  outputFormat: "json";
2416
- status: 403;
2441
+ status: 400;
2417
2442
  input: {
2418
2443
  json: {
2419
2444
  chainId?: unknown;
@@ -2746,14 +2771,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2746
2771
  } | {
2747
2772
  output: {
2748
2773
  error: {
2749
- code: "payment_required" | "rate_limit_exceeded";
2774
+ code: "chain_id_unsupported";
2750
2775
  details?: readonly Response.error.Detail[] | undefined;
2751
2776
  message: string;
2752
2777
  };
2753
2778
  requestId: string;
2754
2779
  };
2755
2780
  outputFormat: "json";
2756
- status: 429;
2781
+ status: 400;
2757
2782
  input: {
2758
2783
  json: {
2759
2784
  chainId?: unknown;
@@ -3086,14 +3111,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3086
3111
  } | {
3087
3112
  output: {
3088
3113
  error: {
3089
- code: "upstream_error";
3114
+ code: "url_invalid";
3090
3115
  details?: readonly Response.error.Detail[] | undefined;
3091
3116
  message: string;
3092
3117
  };
3093
3118
  requestId: string;
3094
3119
  };
3095
3120
  outputFormat: "json";
3096
- status: 502;
3121
+ status: 400;
3097
3122
  input: {
3098
3123
  json: {
3099
3124
  chainId?: unknown;
@@ -3426,14 +3451,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3426
3451
  } | {
3427
3452
  output: {
3428
3453
  error: {
3429
- code: "webhooks_not_enabled";
3454
+ code: "filters_invalid";
3430
3455
  details?: readonly Response.error.Detail[] | undefined;
3431
3456
  message: string;
3432
3457
  };
3433
3458
  requestId: string;
3434
3459
  };
3435
3460
  outputFormat: "json";
3436
- status: 404;
3461
+ status: 400;
3437
3462
  input: {
3438
3463
  json: {
3439
3464
  chainId?: unknown;
@@ -3766,14 +3791,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3766
3791
  } | {
3767
3792
  output: {
3768
3793
  error: {
3769
- code: "body_invalid";
3794
+ code: "api_key_invalid" | "api_key_missing";
3770
3795
  details?: readonly Response.error.Detail[] | undefined;
3771
3796
  message: string;
3772
3797
  };
3773
3798
  requestId: string;
3774
3799
  };
3775
3800
  outputFormat: "json";
3776
- status: 400;
3801
+ status: 401;
3777
3802
  input: {
3778
3803
  json: {
3779
3804
  chainId?: unknown;
@@ -4446,14 +4471,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4446
4471
  } | {
4447
4472
  output: {
4448
4473
  error: {
4449
- code: "chain_id_unsupported";
4474
+ code: "api_key_forbidden";
4450
4475
  details?: readonly Response.error.Detail[] | undefined;
4451
4476
  message: string;
4452
4477
  };
4453
4478
  requestId: string;
4454
4479
  };
4455
4480
  outputFormat: "json";
4456
- status: 400;
4481
+ status: 403;
4457
4482
  input: {
4458
4483
  json: {
4459
4484
  chainId?: unknown;
@@ -4785,40 +4810,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4785
4810
  };
4786
4811
  } | {
4787
4812
  output: {
4788
- chainId: number;
4789
- context?: {
4790
- description?: string | undefined;
4791
- metadata?: {
4792
- [x: string]: string;
4793
- } | undefined;
4794
- title?: string | undefined;
4795
- } | undefined;
4796
- createdAt: string;
4797
- eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
4798
- expiresAt?: string | undefined;
4799
- failureCount: number;
4800
- filters: {
4801
- [x: string]: import("hono/utils/types").JSONValue;
4802
- };
4803
- id: string;
4804
- lastDeliveryAt?: string | undefined;
4805
- status: "active" | "disabled" | "paused";
4806
- updatedAt: string;
4807
- destination: {
4808
- type: "url";
4809
- url: string;
4810
- } | {
4811
- type: "slack";
4812
- url: string;
4813
- } | {
4814
- token: string;
4815
- type: "betterstack";
4816
- url: string;
4813
+ error: {
4814
+ code: "limit_exceeded";
4815
+ details?: readonly Response.error.Detail[] | undefined;
4816
+ message: string;
4817
4817
  };
4818
- secret: string;
4818
+ requestId: string;
4819
4819
  };
4820
4820
  outputFormat: "json";
4821
- status: 200;
4821
+ status: 403;
4822
4822
  input: {
4823
4823
  json: {
4824
4824
  chainId?: unknown;
@@ -5151,14 +5151,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5151
5151
  } | {
5152
5152
  output: {
5153
5153
  error: {
5154
- code: "url_invalid";
5154
+ code: "webhooks_not_enabled";
5155
5155
  details?: readonly Response.error.Detail[] | undefined;
5156
5156
  message: string;
5157
5157
  };
5158
5158
  requestId: string;
5159
5159
  };
5160
5160
  outputFormat: "json";
5161
- status: 400;
5161
+ status: 404;
5162
5162
  input: {
5163
5163
  json: {
5164
5164
  chainId?: unknown;
@@ -5491,14 +5491,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5491
5491
  } | {
5492
5492
  output: {
5493
5493
  error: {
5494
- code: "filters_invalid";
5494
+ code: "payment_required" | "rate_limit_exceeded";
5495
5495
  details?: readonly Response.error.Detail[] | undefined;
5496
5496
  message: string;
5497
5497
  };
5498
5498
  requestId: string;
5499
5499
  };
5500
5500
  outputFormat: "json";
5501
- status: 400;
5501
+ status: 429;
5502
5502
  input: {
5503
5503
  json: {
5504
5504
  chainId?: unknown;
@@ -5831,14 +5831,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5831
5831
  } | {
5832
5832
  output: {
5833
5833
  error: {
5834
- code: "limit_exceeded";
5834
+ code: "upstream_error";
5835
5835
  details?: readonly Response.error.Detail[] | undefined;
5836
5836
  message: string;
5837
5837
  };
5838
5838
  requestId: string;
5839
5839
  };
5840
5840
  outputFormat: "json";
5841
- status: 403;
5841
+ status: 502;
5842
5842
  input: {
5843
5843
  json: {
5844
5844
  chainId?: unknown;
@@ -6173,6 +6173,56 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6173
6173
  } & {
6174
6174
  "/v1/webhooks": {
6175
6175
  $get: {
6176
+ output: {
6177
+ data: {
6178
+ chainId: number;
6179
+ context?: {
6180
+ description?: string | undefined;
6181
+ metadata?: {
6182
+ [x: string]: string;
6183
+ } | undefined;
6184
+ title?: string | undefined;
6185
+ } | undefined;
6186
+ createdAt: string;
6187
+ destination: {
6188
+ type: "url";
6189
+ url: string;
6190
+ } | {
6191
+ type: "slack";
6192
+ url: "https://hooks.slack.com/…";
6193
+ } | {
6194
+ token: "[redacted]";
6195
+ type: "betterstack";
6196
+ url: string;
6197
+ };
6198
+ eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
6199
+ expiresAt?: string | undefined;
6200
+ failureCount: number;
6201
+ filters: {
6202
+ [x: string]: import("hono/utils/types").JSONValue;
6203
+ };
6204
+ id: string;
6205
+ lastDeliveryAt?: string | undefined;
6206
+ status: "active" | "disabled" | "paused";
6207
+ updatedAt: string;
6208
+ }[];
6209
+ meta?: {
6210
+ totalCountCapped: boolean;
6211
+ totalCount: number;
6212
+ } | undefined;
6213
+ nextCursor: string | null;
6214
+ };
6215
+ outputFormat: "json";
6216
+ status: 200;
6217
+ input: {
6218
+ query?: {
6219
+ cursor?: string | string[];
6220
+ include?: string | string[];
6221
+ limit?: string | string[];
6222
+ page?: string | string[];
6223
+ } | undefined;
6224
+ };
6225
+ } | {
6176
6226
  output: {
6177
6227
  error: {
6178
6228
  code: "api_key_malformed";
@@ -6194,14 +6244,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6194
6244
  } | {
6195
6245
  output: {
6196
6246
  error: {
6197
- code: "api_key_invalid" | "api_key_missing";
6247
+ code: "query_invalid";
6198
6248
  details?: readonly Response.error.Detail[] | undefined;
6199
6249
  message: string;
6200
6250
  };
6201
6251
  requestId: string;
6202
6252
  };
6203
6253
  outputFormat: "json";
6204
- status: 401;
6254
+ status: 400;
6205
6255
  input: {
6206
6256
  query?: {
6207
6257
  cursor?: string | string[];
@@ -6213,14 +6263,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6213
6263
  } | {
6214
6264
  output: {
6215
6265
  error: {
6216
- code: "api_key_forbidden";
6266
+ code: "api_key_invalid" | "api_key_missing";
6217
6267
  details?: readonly Response.error.Detail[] | undefined;
6218
6268
  message: string;
6219
6269
  };
6220
6270
  requestId: string;
6221
6271
  };
6222
6272
  outputFormat: "json";
6223
- status: 403;
6273
+ status: 401;
6224
6274
  input: {
6225
6275
  query?: {
6226
6276
  cursor?: string | string[];
@@ -6232,14 +6282,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6232
6282
  } | {
6233
6283
  output: {
6234
6284
  error: {
6235
- code: "payment_required" | "rate_limit_exceeded";
6285
+ code: "unauthorized";
6236
6286
  details?: readonly Response.error.Detail[] | undefined;
6237
6287
  message: string;
6238
6288
  };
6239
6289
  requestId: string;
6240
6290
  };
6241
6291
  outputFormat: "json";
6242
- status: 429;
6292
+ status: 401;
6243
6293
  input: {
6244
6294
  query?: {
6245
6295
  cursor?: string | string[];
@@ -6251,14 +6301,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6251
6301
  } | {
6252
6302
  output: {
6253
6303
  error: {
6254
- code: "query_invalid";
6304
+ code: "api_key_forbidden";
6255
6305
  details?: readonly Response.error.Detail[] | undefined;
6256
6306
  message: string;
6257
6307
  };
6258
6308
  requestId: string;
6259
6309
  };
6260
6310
  outputFormat: "json";
6261
- status: 400;
6311
+ status: 403;
6262
6312
  input: {
6263
6313
  query?: {
6264
6314
  cursor?: string | string[];
@@ -6270,14 +6320,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6270
6320
  } | {
6271
6321
  output: {
6272
6322
  error: {
6273
- code: "upstream_error";
6323
+ code: "webhooks_not_enabled";
6274
6324
  details?: readonly Response.error.Detail[] | undefined;
6275
6325
  message: string;
6276
6326
  };
6277
6327
  requestId: string;
6278
6328
  };
6279
6329
  outputFormat: "json";
6280
- status: 502;
6330
+ status: 404;
6281
6331
  input: {
6282
6332
  query?: {
6283
6333
  cursor?: string | string[];
@@ -6289,14 +6339,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6289
6339
  } | {
6290
6340
  output: {
6291
6341
  error: {
6292
- code: "webhooks_not_enabled";
6342
+ code: "payment_required" | "rate_limit_exceeded";
6293
6343
  details?: readonly Response.error.Detail[] | undefined;
6294
6344
  message: string;
6295
6345
  };
6296
6346
  requestId: string;
6297
6347
  };
6298
6348
  outputFormat: "json";
6299
- status: 404;
6349
+ status: 429;
6300
6350
  input: {
6301
6351
  query?: {
6302
6352
  cursor?: string | string[];
@@ -6308,14 +6358,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6308
6358
  } | {
6309
6359
  output: {
6310
6360
  error: {
6311
- code: "unauthorized";
6361
+ code: "upstream_error";
6312
6362
  details?: readonly Response.error.Detail[] | undefined;
6313
6363
  message: string;
6314
6364
  };
6315
6365
  requestId: string;
6316
6366
  };
6317
6367
  outputFormat: "json";
6318
- status: 401;
6368
+ status: 502;
6319
6369
  input: {
6320
6370
  query?: {
6321
6371
  cursor?: string | string[];
@@ -6324,61 +6374,51 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6324
6374
  page?: string | string[];
6325
6375
  } | undefined;
6326
6376
  };
6327
- } | {
6377
+ };
6378
+ };
6379
+ } & {
6380
+ "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}": {
6381
+ $get: {
6328
6382
  output: {
6329
- data: {
6330
- chainId: number;
6331
- context?: {
6332
- description?: string | undefined;
6333
- metadata?: {
6334
- [x: string]: string;
6335
- } | undefined;
6336
- title?: string | undefined;
6383
+ chainId: number;
6384
+ context?: {
6385
+ description?: string | undefined;
6386
+ metadata?: {
6387
+ [x: string]: string;
6337
6388
  } | undefined;
6338
- createdAt: string;
6339
- destination: {
6340
- type: "url";
6341
- url: string;
6342
- } | {
6343
- type: "slack";
6344
- url: "https://hooks.slack.com/…";
6345
- } | {
6346
- token: "[redacted]";
6347
- type: "betterstack";
6348
- url: string;
6349
- };
6350
- eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
6351
- expiresAt?: string | undefined;
6352
- failureCount: number;
6353
- filters: {
6354
- [x: string]: import("hono/utils/types").JSONValue;
6355
- };
6356
- id: string;
6357
- lastDeliveryAt?: string | undefined;
6358
- status: "active" | "disabled" | "paused";
6359
- updatedAt: string;
6360
- }[];
6361
- meta?: {
6362
- totalCountCapped: boolean;
6363
- totalCount: number;
6389
+ title?: string | undefined;
6364
6390
  } | undefined;
6365
- nextCursor: string | null;
6391
+ createdAt: string;
6392
+ destination: {
6393
+ type: "url";
6394
+ url: string;
6395
+ } | {
6396
+ type: "slack";
6397
+ url: "https://hooks.slack.com/…";
6398
+ } | {
6399
+ token: "[redacted]";
6400
+ type: "betterstack";
6401
+ url: string;
6402
+ };
6403
+ eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
6404
+ expiresAt?: string | undefined;
6405
+ failureCount: number;
6406
+ filters: {
6407
+ [x: string]: import("hono/utils/types").JSONValue;
6408
+ };
6409
+ id: string;
6410
+ lastDeliveryAt?: string | undefined;
6411
+ status: "active" | "disabled" | "paused";
6412
+ updatedAt: string;
6366
6413
  };
6367
6414
  outputFormat: "json";
6368
6415
  status: 200;
6369
6416
  input: {
6370
- query?: {
6371
- cursor?: string | string[];
6372
- include?: string | string[];
6373
- limit?: string | string[];
6374
- page?: string | string[];
6375
- } | undefined;
6417
+ param: {
6418
+ id: string;
6419
+ };
6376
6420
  };
6377
- };
6378
- };
6379
- } & {
6380
- "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}": {
6381
- $get: {
6421
+ } | {
6382
6422
  output: {
6383
6423
  error: {
6384
6424
  code: "api_key_malformed";
@@ -6397,14 +6437,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6397
6437
  } | {
6398
6438
  output: {
6399
6439
  error: {
6400
- code: "api_key_invalid" | "api_key_missing";
6440
+ code: "param_invalid";
6401
6441
  details?: readonly Response.error.Detail[] | undefined;
6402
6442
  message: string;
6403
6443
  };
6404
6444
  requestId: string;
6405
6445
  };
6406
6446
  outputFormat: "json";
6407
- status: 401;
6447
+ status: 400;
6408
6448
  input: {
6409
6449
  param: {
6410
6450
  id: string;
@@ -6413,14 +6453,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6413
6453
  } | {
6414
6454
  output: {
6415
6455
  error: {
6416
- code: "api_key_forbidden";
6456
+ code: "api_key_invalid" | "api_key_missing";
6417
6457
  details?: readonly Response.error.Detail[] | undefined;
6418
6458
  message: string;
6419
6459
  };
6420
6460
  requestId: string;
6421
6461
  };
6422
6462
  outputFormat: "json";
6423
- status: 403;
6463
+ status: 401;
6424
6464
  input: {
6425
6465
  param: {
6426
6466
  id: string;
@@ -6429,14 +6469,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6429
6469
  } | {
6430
6470
  output: {
6431
6471
  error: {
6432
- code: "payment_required" | "rate_limit_exceeded";
6472
+ code: "unauthorized";
6433
6473
  details?: readonly Response.error.Detail[] | undefined;
6434
6474
  message: string;
6435
6475
  };
6436
6476
  requestId: string;
6437
6477
  };
6438
6478
  outputFormat: "json";
6439
- status: 429;
6479
+ status: 401;
6440
6480
  input: {
6441
6481
  param: {
6442
6482
  id: string;
@@ -6445,14 +6485,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6445
6485
  } | {
6446
6486
  output: {
6447
6487
  error: {
6448
- code: "upstream_error";
6488
+ code: "api_key_forbidden";
6449
6489
  details?: readonly Response.error.Detail[] | undefined;
6450
6490
  message: string;
6451
6491
  };
6452
6492
  requestId: string;
6453
6493
  };
6454
6494
  outputFormat: "json";
6455
- status: 502;
6495
+ status: 403;
6456
6496
  input: {
6457
6497
  param: {
6458
6498
  id: string;
@@ -6477,14 +6517,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6477
6517
  } | {
6478
6518
  output: {
6479
6519
  error: {
6480
- code: "unauthorized";
6520
+ code: "webhook_not_found";
6481
6521
  details?: readonly Response.error.Detail[] | undefined;
6482
6522
  message: string;
6483
6523
  };
6484
6524
  requestId: string;
6485
6525
  };
6486
6526
  outputFormat: "json";
6487
- status: 401;
6527
+ status: 404;
6488
6528
  input: {
6489
6529
  param: {
6490
6530
  id: string;
@@ -6493,14 +6533,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6493
6533
  } | {
6494
6534
  output: {
6495
6535
  error: {
6496
- code: "param_invalid";
6536
+ code: "payment_required" | "rate_limit_exceeded";
6497
6537
  details?: readonly Response.error.Detail[] | undefined;
6498
6538
  message: string;
6499
6539
  };
6500
6540
  requestId: string;
6501
6541
  };
6502
6542
  outputFormat: "json";
6503
- status: 400;
6543
+ status: 429;
6504
6544
  input: {
6505
6545
  param: {
6506
6546
  id: string;
@@ -6509,51 +6549,42 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6509
6549
  } | {
6510
6550
  output: {
6511
6551
  error: {
6512
- code: "webhook_not_found";
6552
+ code: "upstream_error";
6513
6553
  details?: readonly Response.error.Detail[] | undefined;
6514
6554
  message: string;
6515
6555
  };
6516
6556
  requestId: string;
6517
6557
  };
6518
6558
  outputFormat: "json";
6519
- status: 404;
6559
+ status: 502;
6520
6560
  input: {
6521
6561
  param: {
6522
6562
  id: string;
6523
6563
  };
6524
6564
  };
6525
- } | {
6565
+ };
6566
+ };
6567
+ } & {
6568
+ "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries": {
6569
+ $get: {
6526
6570
  output: {
6527
- chainId: number;
6528
- context?: {
6529
- description?: string | undefined;
6530
- metadata?: {
6531
- [x: string]: string;
6532
- } | undefined;
6533
- title?: string | undefined;
6571
+ data: {
6572
+ attempt: number;
6573
+ createdAt: string;
6574
+ error?: string | undefined;
6575
+ eventId: string;
6576
+ id: string;
6577
+ requestUrl: string;
6578
+ responseMs?: number | undefined;
6579
+ responseStatus?: number | undefined;
6580
+ status: "failed" | "pending" | "succeeded";
6581
+ subscriptionId: string;
6582
+ }[];
6583
+ meta?: {
6584
+ totalCountCapped: boolean;
6585
+ totalCount: number;
6534
6586
  } | undefined;
6535
- createdAt: string;
6536
- destination: {
6537
- type: "url";
6538
- url: string;
6539
- } | {
6540
- type: "slack";
6541
- url: "https://hooks.slack.com/…";
6542
- } | {
6543
- token: "[redacted]";
6544
- type: "betterstack";
6545
- url: string;
6546
- };
6547
- eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
6548
- expiresAt?: string | undefined;
6549
- failureCount: number;
6550
- filters: {
6551
- [x: string]: import("hono/utils/types").JSONValue;
6552
- };
6553
- id: string;
6554
- lastDeliveryAt?: string | undefined;
6555
- status: "active" | "disabled" | "paused";
6556
- updatedAt: string;
6587
+ nextCursor: string | null;
6557
6588
  };
6558
6589
  outputFormat: "json";
6559
6590
  status: 200;
@@ -6561,12 +6592,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6561
6592
  param: {
6562
6593
  id: string;
6563
6594
  };
6595
+ } & {
6596
+ query?: {
6597
+ cursor?: string | string[];
6598
+ include?: string | string[];
6599
+ limit?: string | string[];
6600
+ page?: string | string[];
6601
+ } | undefined;
6564
6602
  };
6565
- };
6566
- };
6567
- } & {
6568
- "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries": {
6569
- $get: {
6603
+ } | {
6570
6604
  output: {
6571
6605
  error: {
6572
6606
  code: "api_key_malformed";
@@ -6592,14 +6626,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6592
6626
  } | {
6593
6627
  output: {
6594
6628
  error: {
6595
- code: "api_key_invalid" | "api_key_missing";
6629
+ code: "query_invalid";
6596
6630
  details?: readonly Response.error.Detail[] | undefined;
6597
6631
  message: string;
6598
6632
  };
6599
6633
  requestId: string;
6600
6634
  };
6601
6635
  outputFormat: "json";
6602
- status: 401;
6636
+ status: 400;
6603
6637
  input: {
6604
6638
  param: {
6605
6639
  id: string;
@@ -6615,14 +6649,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6615
6649
  } | {
6616
6650
  output: {
6617
6651
  error: {
6618
- code: "api_key_forbidden";
6652
+ code: "param_invalid";
6619
6653
  details?: readonly Response.error.Detail[] | undefined;
6620
6654
  message: string;
6621
6655
  };
6622
6656
  requestId: string;
6623
6657
  };
6624
6658
  outputFormat: "json";
6625
- status: 403;
6659
+ status: 400;
6626
6660
  input: {
6627
6661
  param: {
6628
6662
  id: string;
@@ -6638,14 +6672,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6638
6672
  } | {
6639
6673
  output: {
6640
6674
  error: {
6641
- code: "payment_required" | "rate_limit_exceeded";
6675
+ code: "api_key_invalid" | "api_key_missing";
6642
6676
  details?: readonly Response.error.Detail[] | undefined;
6643
6677
  message: string;
6644
6678
  };
6645
6679
  requestId: string;
6646
6680
  };
6647
6681
  outputFormat: "json";
6648
- status: 429;
6682
+ status: 401;
6649
6683
  input: {
6650
6684
  param: {
6651
6685
  id: string;
@@ -6661,14 +6695,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6661
6695
  } | {
6662
6696
  output: {
6663
6697
  error: {
6664
- code: "query_invalid";
6698
+ code: "unauthorized";
6665
6699
  details?: readonly Response.error.Detail[] | undefined;
6666
6700
  message: string;
6667
6701
  };
6668
6702
  requestId: string;
6669
6703
  };
6670
6704
  outputFormat: "json";
6671
- status: 400;
6705
+ status: 401;
6672
6706
  input: {
6673
6707
  param: {
6674
6708
  id: string;
@@ -6684,14 +6718,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6684
6718
  } | {
6685
6719
  output: {
6686
6720
  error: {
6687
- code: "upstream_error";
6721
+ code: "api_key_forbidden";
6688
6722
  details?: readonly Response.error.Detail[] | undefined;
6689
6723
  message: string;
6690
6724
  };
6691
6725
  requestId: string;
6692
6726
  };
6693
6727
  outputFormat: "json";
6694
- status: 502;
6728
+ status: 403;
6695
6729
  input: {
6696
6730
  param: {
6697
6731
  id: string;
@@ -6730,14 +6764,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6730
6764
  } | {
6731
6765
  output: {
6732
6766
  error: {
6733
- code: "unauthorized";
6767
+ code: "webhook_not_found";
6734
6768
  details?: readonly Response.error.Detail[] | undefined;
6735
6769
  message: string;
6736
6770
  };
6737
6771
  requestId: string;
6738
6772
  };
6739
6773
  outputFormat: "json";
6740
- status: 401;
6774
+ status: 404;
6741
6775
  input: {
6742
6776
  param: {
6743
6777
  id: string;
@@ -6753,14 +6787,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6753
6787
  } | {
6754
6788
  output: {
6755
6789
  error: {
6756
- code: "param_invalid";
6790
+ code: "payment_required" | "rate_limit_exceeded";
6757
6791
  details?: readonly Response.error.Detail[] | undefined;
6758
6792
  message: string;
6759
6793
  };
6760
6794
  requestId: string;
6761
6795
  };
6762
6796
  outputFormat: "json";
6763
- status: 400;
6797
+ status: 429;
6764
6798
  input: {
6765
6799
  param: {
6766
6800
  id: string;
@@ -6776,14 +6810,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6776
6810
  } | {
6777
6811
  output: {
6778
6812
  error: {
6779
- code: "webhook_not_found";
6813
+ code: "upstream_error";
6780
6814
  details?: readonly Response.error.Detail[] | undefined;
6781
6815
  message: string;
6782
6816
  };
6783
6817
  requestId: string;
6784
6818
  };
6785
6819
  outputFormat: "json";
6786
- status: 404;
6820
+ status: 502;
6787
6821
  input: {
6788
6822
  param: {
6789
6823
  id: string;
@@ -6796,25 +6830,17 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6796
6830
  page?: string | string[];
6797
6831
  } | undefined;
6798
6832
  };
6799
- } | {
6833
+ };
6834
+ };
6835
+ } & {
6836
+ "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/ping": {
6837
+ $post: {
6800
6838
  output: {
6801
- data: {
6802
- attempt: number;
6803
- createdAt: string;
6804
- error?: string | undefined;
6805
- eventId: string;
6806
- id: string;
6807
- requestUrl: string;
6808
- responseMs?: number | undefined;
6809
- responseStatus?: number | undefined;
6810
- status: "failed" | "pending" | "succeeded";
6811
- subscriptionId: string;
6812
- }[];
6813
- meta?: {
6814
- totalCountCapped: boolean;
6815
- totalCount: number;
6816
- } | undefined;
6817
- nextCursor: string | null;
6839
+ delivered: boolean;
6840
+ error?: string | undefined;
6841
+ eventId: string;
6842
+ responseMs?: number | undefined;
6843
+ responseStatus?: number | undefined;
6818
6844
  };
6819
6845
  outputFormat: "json";
6820
6846
  status: 200;
@@ -6822,19 +6848,8 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6822
6848
  param: {
6823
6849
  id: string;
6824
6850
  };
6825
- } & {
6826
- query?: {
6827
- cursor?: string | string[];
6828
- include?: string | string[];
6829
- limit?: string | string[];
6830
- page?: string | string[];
6831
- } | undefined;
6832
6851
  };
6833
- };
6834
- };
6835
- } & {
6836
- "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/ping": {
6837
- $post: {
6852
+ } | {
6838
6853
  output: {
6839
6854
  error: {
6840
6855
  code: "api_key_malformed";
@@ -6853,14 +6868,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6853
6868
  } | {
6854
6869
  output: {
6855
6870
  error: {
6856
- code: "api_key_invalid" | "api_key_missing";
6871
+ code: "param_invalid";
6857
6872
  details?: readonly Response.error.Detail[] | undefined;
6858
6873
  message: string;
6859
6874
  };
6860
6875
  requestId: string;
6861
6876
  };
6862
6877
  outputFormat: "json";
6863
- status: 401;
6878
+ status: 400;
6864
6879
  input: {
6865
6880
  param: {
6866
6881
  id: string;
@@ -6869,14 +6884,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6869
6884
  } | {
6870
6885
  output: {
6871
6886
  error: {
6872
- code: "api_key_forbidden";
6887
+ code: "api_key_invalid" | "api_key_missing";
6873
6888
  details?: readonly Response.error.Detail[] | undefined;
6874
6889
  message: string;
6875
6890
  };
6876
6891
  requestId: string;
6877
6892
  };
6878
6893
  outputFormat: "json";
6879
- status: 403;
6894
+ status: 401;
6880
6895
  input: {
6881
6896
  param: {
6882
6897
  id: string;
@@ -6885,14 +6900,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6885
6900
  } | {
6886
6901
  output: {
6887
6902
  error: {
6888
- code: "payment_required" | "rate_limit_exceeded";
6903
+ code: "unauthorized";
6889
6904
  details?: readonly Response.error.Detail[] | undefined;
6890
6905
  message: string;
6891
6906
  };
6892
6907
  requestId: string;
6893
6908
  };
6894
6909
  outputFormat: "json";
6895
- status: 429;
6910
+ status: 401;
6896
6911
  input: {
6897
6912
  param: {
6898
6913
  id: string;
@@ -6901,14 +6916,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6901
6916
  } | {
6902
6917
  output: {
6903
6918
  error: {
6904
- code: "upstream_error";
6919
+ code: "api_key_forbidden";
6905
6920
  details?: readonly Response.error.Detail[] | undefined;
6906
6921
  message: string;
6907
6922
  };
6908
6923
  requestId: string;
6909
6924
  };
6910
6925
  outputFormat: "json";
6911
- status: 502;
6926
+ status: 403;
6912
6927
  input: {
6913
6928
  param: {
6914
6929
  id: string;
@@ -6933,14 +6948,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6933
6948
  } | {
6934
6949
  output: {
6935
6950
  error: {
6936
- code: "unauthorized";
6951
+ code: "webhook_not_found";
6937
6952
  details?: readonly Response.error.Detail[] | undefined;
6938
6953
  message: string;
6939
6954
  };
6940
6955
  requestId: string;
6941
6956
  };
6942
6957
  outputFormat: "json";
6943
- status: 401;
6958
+ status: 404;
6944
6959
  input: {
6945
6960
  param: {
6946
6961
  id: string;
@@ -6949,14 +6964,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6949
6964
  } | {
6950
6965
  output: {
6951
6966
  error: {
6952
- code: "param_invalid";
6967
+ code: "payment_required" | "rate_limit_exceeded";
6953
6968
  details?: readonly Response.error.Detail[] | undefined;
6954
6969
  message: string;
6955
6970
  };
6956
6971
  requestId: string;
6957
6972
  };
6958
6973
  outputFormat: "json";
6959
- status: 400;
6974
+ status: 429;
6960
6975
  input: {
6961
6976
  param: {
6962
6977
  id: string;
@@ -6965,20 +6980,24 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6965
6980
  } | {
6966
6981
  output: {
6967
6982
  error: {
6968
- code: "webhook_not_found";
6983
+ code: "upstream_error";
6969
6984
  details?: readonly Response.error.Detail[] | undefined;
6970
6985
  message: string;
6971
6986
  };
6972
6987
  requestId: string;
6973
6988
  };
6974
6989
  outputFormat: "json";
6975
- status: 404;
6990
+ status: 502;
6976
6991
  input: {
6977
6992
  param: {
6978
6993
  id: string;
6979
6994
  };
6980
6995
  };
6981
- } | {
6996
+ };
6997
+ };
6998
+ } & {
6999
+ "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries/:deliveryId/retry": {
7000
+ $post: {
6982
7001
  output: {
6983
7002
  delivered: boolean;
6984
7003
  error?: string | undefined;
@@ -6990,14 +7009,11 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6990
7009
  status: 200;
6991
7010
  input: {
6992
7011
  param: {
7012
+ deliveryId: string;
6993
7013
  id: string;
6994
7014
  };
6995
7015
  };
6996
- };
6997
- };
6998
- } & {
6999
- "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries/:deliveryId/retry": {
7000
- $post: {
7016
+ } | {
7001
7017
  output: {
7002
7018
  error: {
7003
7019
  code: "api_key_malformed";
@@ -7017,14 +7033,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7017
7033
  } | {
7018
7034
  output: {
7019
7035
  error: {
7020
- code: "api_key_invalid" | "api_key_missing";
7036
+ code: "param_invalid";
7021
7037
  details?: readonly Response.error.Detail[] | undefined;
7022
7038
  message: string;
7023
7039
  };
7024
7040
  requestId: string;
7025
7041
  };
7026
7042
  outputFormat: "json";
7027
- status: 401;
7043
+ status: 400;
7028
7044
  input: {
7029
7045
  param: {
7030
7046
  deliveryId: string;
@@ -7034,14 +7050,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7034
7050
  } | {
7035
7051
  output: {
7036
7052
  error: {
7037
- code: "api_key_forbidden";
7053
+ code: "api_key_invalid" | "api_key_missing";
7038
7054
  details?: readonly Response.error.Detail[] | undefined;
7039
7055
  message: string;
7040
7056
  };
7041
7057
  requestId: string;
7042
7058
  };
7043
7059
  outputFormat: "json";
7044
- status: 403;
7060
+ status: 401;
7045
7061
  input: {
7046
7062
  param: {
7047
7063
  deliveryId: string;
@@ -7051,14 +7067,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7051
7067
  } | {
7052
7068
  output: {
7053
7069
  error: {
7054
- code: "payment_required" | "rate_limit_exceeded";
7070
+ code: "unauthorized";
7055
7071
  details?: readonly Response.error.Detail[] | undefined;
7056
7072
  message: string;
7057
7073
  };
7058
7074
  requestId: string;
7059
7075
  };
7060
7076
  outputFormat: "json";
7061
- status: 429;
7077
+ status: 401;
7062
7078
  input: {
7063
7079
  param: {
7064
7080
  deliveryId: string;
@@ -7068,14 +7084,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7068
7084
  } | {
7069
7085
  output: {
7070
7086
  error: {
7071
- code: "upstream_error";
7087
+ code: "api_key_forbidden";
7072
7088
  details?: readonly Response.error.Detail[] | undefined;
7073
7089
  message: string;
7074
7090
  };
7075
7091
  requestId: string;
7076
7092
  };
7077
7093
  outputFormat: "json";
7078
- status: 502;
7094
+ status: 403;
7079
7095
  input: {
7080
7096
  param: {
7081
7097
  deliveryId: string;
@@ -7102,14 +7118,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7102
7118
  } | {
7103
7119
  output: {
7104
7120
  error: {
7105
- code: "unauthorized";
7121
+ code: "webhook_not_found";
7106
7122
  details?: readonly Response.error.Detail[] | undefined;
7107
7123
  message: string;
7108
7124
  };
7109
7125
  requestId: string;
7110
7126
  };
7111
7127
  outputFormat: "json";
7112
- status: 401;
7128
+ status: 404;
7113
7129
  input: {
7114
7130
  param: {
7115
7131
  deliveryId: string;
@@ -7119,14 +7135,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7119
7135
  } | {
7120
7136
  output: {
7121
7137
  error: {
7122
- code: "param_invalid";
7138
+ code: "delivery_not_found";
7123
7139
  details?: readonly Response.error.Detail[] | undefined;
7124
7140
  message: string;
7125
7141
  };
7126
7142
  requestId: string;
7127
7143
  };
7128
7144
  outputFormat: "json";
7129
- status: 400;
7145
+ status: 404;
7130
7146
  input: {
7131
7147
  param: {
7132
7148
  deliveryId: string;
@@ -7136,30 +7152,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7136
7152
  } | {
7137
7153
  output: {
7138
7154
  error: {
7139
- code: "webhook_not_found";
7155
+ code: "payment_required" | "rate_limit_exceeded";
7140
7156
  details?: readonly Response.error.Detail[] | undefined;
7141
7157
  message: string;
7142
7158
  };
7143
7159
  requestId: string;
7144
7160
  };
7145
7161
  outputFormat: "json";
7146
- status: 404;
7147
- input: {
7148
- param: {
7149
- deliveryId: string;
7150
- id: string;
7151
- };
7152
- };
7153
- } | {
7154
- output: {
7155
- delivered: boolean;
7156
- error?: string | undefined;
7157
- eventId: string;
7158
- responseMs?: number | undefined;
7159
- responseStatus?: number | undefined;
7160
- };
7161
- outputFormat: "json";
7162
- status: 200;
7162
+ status: 429;
7163
7163
  input: {
7164
7164
  param: {
7165
7165
  deliveryId: string;
@@ -7169,14 +7169,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7169
7169
  } | {
7170
7170
  output: {
7171
7171
  error: {
7172
- code: "delivery_not_found";
7172
+ code: "upstream_error";
7173
7173
  details?: readonly Response.error.Detail[] | undefined;
7174
7174
  message: string;
7175
7175
  };
7176
7176
  requestId: string;
7177
7177
  };
7178
7178
  outputFormat: "json";
7179
- status: 404;
7179
+ status: 502;
7180
7180
  input: {
7181
7181
  param: {
7182
7182
  deliveryId: string;
@@ -7189,15 +7189,39 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7189
7189
  "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}": {
7190
7190
  $patch: {
7191
7191
  output: {
7192
- error: {
7193
- code: "api_key_malformed";
7194
- details?: readonly Response.error.Detail[] | undefined;
7195
- message: string;
7192
+ chainId: number;
7193
+ context?: {
7194
+ description?: string | undefined;
7195
+ metadata?: {
7196
+ [x: string]: string;
7197
+ } | undefined;
7198
+ title?: string | undefined;
7199
+ } | undefined;
7200
+ createdAt: string;
7201
+ destination: {
7202
+ type: "url";
7203
+ url: string;
7204
+ } | {
7205
+ type: "slack";
7206
+ url: "https://hooks.slack.com/…";
7207
+ } | {
7208
+ token: "[redacted]";
7209
+ type: "betterstack";
7210
+ url: string;
7196
7211
  };
7197
- requestId: string;
7212
+ eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
7213
+ expiresAt?: string | undefined;
7214
+ failureCount: number;
7215
+ filters: {
7216
+ [x: string]: import("hono/utils/types").JSONValue;
7217
+ };
7218
+ id: string;
7219
+ lastDeliveryAt?: string | undefined;
7220
+ status: "active" | "disabled" | "paused";
7221
+ updatedAt: string;
7198
7222
  };
7199
7223
  outputFormat: "json";
7200
- status: 400;
7224
+ status: 200;
7201
7225
  input: {
7202
7226
  param: {
7203
7227
  id: string;
@@ -7227,14 +7251,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7227
7251
  } | {
7228
7252
  output: {
7229
7253
  error: {
7230
- code: "api_key_invalid" | "api_key_missing";
7254
+ code: "api_key_malformed";
7231
7255
  details?: readonly Response.error.Detail[] | undefined;
7232
7256
  message: string;
7233
7257
  };
7234
7258
  requestId: string;
7235
7259
  };
7236
7260
  outputFormat: "json";
7237
- status: 401;
7261
+ status: 400;
7238
7262
  input: {
7239
7263
  param: {
7240
7264
  id: string;
@@ -7264,14 +7288,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7264
7288
  } | {
7265
7289
  output: {
7266
7290
  error: {
7267
- code: "api_key_forbidden";
7291
+ code: "body_invalid";
7268
7292
  details?: readonly Response.error.Detail[] | undefined;
7269
7293
  message: string;
7270
7294
  };
7271
7295
  requestId: string;
7272
7296
  };
7273
7297
  outputFormat: "json";
7274
- status: 403;
7298
+ status: 400;
7275
7299
  input: {
7276
7300
  param: {
7277
7301
  id: string;
@@ -7301,14 +7325,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7301
7325
  } | {
7302
7326
  output: {
7303
7327
  error: {
7304
- code: "payment_required" | "rate_limit_exceeded";
7328
+ code: "url_invalid";
7305
7329
  details?: readonly Response.error.Detail[] | undefined;
7306
7330
  message: string;
7307
7331
  };
7308
7332
  requestId: string;
7309
7333
  };
7310
7334
  outputFormat: "json";
7311
- status: 429;
7335
+ status: 400;
7312
7336
  input: {
7313
7337
  param: {
7314
7338
  id: string;
@@ -7338,14 +7362,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7338
7362
  } | {
7339
7363
  output: {
7340
7364
  error: {
7341
- code: "upstream_error";
7365
+ code: "filters_invalid";
7342
7366
  details?: readonly Response.error.Detail[] | undefined;
7343
7367
  message: string;
7344
7368
  };
7345
7369
  requestId: string;
7346
7370
  };
7347
7371
  outputFormat: "json";
7348
- status: 502;
7372
+ status: 400;
7349
7373
  input: {
7350
7374
  param: {
7351
7375
  id: string;
@@ -7375,14 +7399,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7375
7399
  } | {
7376
7400
  output: {
7377
7401
  error: {
7378
- code: "webhooks_not_enabled";
7402
+ code: "param_invalid";
7379
7403
  details?: readonly Response.error.Detail[] | undefined;
7380
7404
  message: string;
7381
7405
  };
7382
7406
  requestId: string;
7383
7407
  };
7384
7408
  outputFormat: "json";
7385
- status: 404;
7409
+ status: 400;
7386
7410
  input: {
7387
7411
  param: {
7388
7412
  id: string;
@@ -7412,7 +7436,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7412
7436
  } | {
7413
7437
  output: {
7414
7438
  error: {
7415
- code: "body_invalid";
7439
+ code: "destination_transition_invalid";
7416
7440
  details?: readonly Response.error.Detail[] | undefined;
7417
7441
  message: string;
7418
7442
  };
@@ -7449,7 +7473,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7449
7473
  } | {
7450
7474
  output: {
7451
7475
  error: {
7452
- code: "unauthorized";
7476
+ code: "api_key_invalid" | "api_key_missing";
7453
7477
  details?: readonly Response.error.Detail[] | undefined;
7454
7478
  message: string;
7455
7479
  };
@@ -7486,14 +7510,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7486
7510
  } | {
7487
7511
  output: {
7488
7512
  error: {
7489
- code: "url_invalid";
7513
+ code: "unauthorized";
7490
7514
  details?: readonly Response.error.Detail[] | undefined;
7491
7515
  message: string;
7492
7516
  };
7493
7517
  requestId: string;
7494
7518
  };
7495
7519
  outputFormat: "json";
7496
- status: 400;
7520
+ status: 401;
7497
7521
  input: {
7498
7522
  param: {
7499
7523
  id: string;
@@ -7523,14 +7547,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7523
7547
  } | {
7524
7548
  output: {
7525
7549
  error: {
7526
- code: "filters_invalid";
7550
+ code: "api_key_forbidden";
7527
7551
  details?: readonly Response.error.Detail[] | undefined;
7528
7552
  message: string;
7529
7553
  };
7530
7554
  requestId: string;
7531
7555
  };
7532
7556
  outputFormat: "json";
7533
- status: 400;
7557
+ status: 403;
7534
7558
  input: {
7535
7559
  param: {
7536
7560
  id: string;
@@ -7560,14 +7584,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7560
7584
  } | {
7561
7585
  output: {
7562
7586
  error: {
7563
- code: "param_invalid";
7587
+ code: "webhooks_not_enabled";
7564
7588
  details?: readonly Response.error.Detail[] | undefined;
7565
7589
  message: string;
7566
7590
  };
7567
7591
  requestId: string;
7568
7592
  };
7569
7593
  outputFormat: "json";
7570
- status: 400;
7594
+ status: 404;
7571
7595
  input: {
7572
7596
  param: {
7573
7597
  id: string;
@@ -7633,39 +7657,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7633
7657
  };
7634
7658
  } | {
7635
7659
  output: {
7636
- chainId: number;
7637
- context?: {
7638
- description?: string | undefined;
7639
- metadata?: {
7640
- [x: string]: string;
7641
- } | undefined;
7642
- title?: string | undefined;
7643
- } | undefined;
7644
- createdAt: string;
7645
- destination: {
7646
- type: "url";
7647
- url: string;
7648
- } | {
7649
- type: "slack";
7650
- url: "https://hooks.slack.com/…";
7651
- } | {
7652
- token: "[redacted]";
7653
- type: "betterstack";
7654
- url: string;
7655
- };
7656
- eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
7657
- expiresAt?: string | undefined;
7658
- failureCount: number;
7659
- filters: {
7660
- [x: string]: import("hono/utils/types").JSONValue;
7660
+ error: {
7661
+ code: "payment_required" | "rate_limit_exceeded";
7662
+ details?: readonly Response.error.Detail[] | undefined;
7663
+ message: string;
7661
7664
  };
7662
- id: string;
7663
- lastDeliveryAt?: string | undefined;
7664
- status: "active" | "disabled" | "paused";
7665
- updatedAt: string;
7665
+ requestId: string;
7666
7666
  };
7667
7667
  outputFormat: "json";
7668
- status: 200;
7668
+ status: 429;
7669
7669
  input: {
7670
7670
  param: {
7671
7671
  id: string;
@@ -7695,14 +7695,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7695
7695
  } | {
7696
7696
  output: {
7697
7697
  error: {
7698
- code: "destination_transition_invalid";
7698
+ code: "upstream_error";
7699
7699
  details?: readonly Response.error.Detail[] | undefined;
7700
7700
  message: string;
7701
7701
  };
7702
7702
  requestId: string;
7703
7703
  };
7704
7704
  outputFormat: "json";
7705
- status: 400;
7705
+ status: 502;
7706
7706
  input: {
7707
7707
  param: {
7708
7708
  id: string;
@@ -7735,15 +7735,10 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7735
7735
  "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}": {
7736
7736
  $delete: {
7737
7737
  output: {
7738
- error: {
7739
- code: "api_key_malformed";
7740
- details?: readonly Response.error.Detail[] | undefined;
7741
- message: string;
7742
- };
7743
- requestId: string;
7738
+ id: string;
7744
7739
  };
7745
7740
  outputFormat: "json";
7746
- status: 400;
7741
+ status: 200;
7747
7742
  input: {
7748
7743
  param: {
7749
7744
  id: string;
@@ -7752,14 +7747,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7752
7747
  } | {
7753
7748
  output: {
7754
7749
  error: {
7755
- code: "api_key_invalid" | "api_key_missing";
7750
+ code: "api_key_malformed";
7756
7751
  details?: readonly Response.error.Detail[] | undefined;
7757
7752
  message: string;
7758
7753
  };
7759
7754
  requestId: string;
7760
7755
  };
7761
7756
  outputFormat: "json";
7762
- status: 401;
7757
+ status: 400;
7763
7758
  input: {
7764
7759
  param: {
7765
7760
  id: string;
@@ -7768,14 +7763,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7768
7763
  } | {
7769
7764
  output: {
7770
7765
  error: {
7771
- code: "api_key_forbidden";
7766
+ code: "param_invalid";
7772
7767
  details?: readonly Response.error.Detail[] | undefined;
7773
7768
  message: string;
7774
7769
  };
7775
7770
  requestId: string;
7776
7771
  };
7777
7772
  outputFormat: "json";
7778
- status: 403;
7773
+ status: 400;
7779
7774
  input: {
7780
7775
  param: {
7781
7776
  id: string;
@@ -7784,14 +7779,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7784
7779
  } | {
7785
7780
  output: {
7786
7781
  error: {
7787
- code: "payment_required" | "rate_limit_exceeded";
7782
+ code: "api_key_invalid" | "api_key_missing";
7788
7783
  details?: readonly Response.error.Detail[] | undefined;
7789
7784
  message: string;
7790
7785
  };
7791
7786
  requestId: string;
7792
7787
  };
7793
7788
  outputFormat: "json";
7794
- status: 429;
7789
+ status: 401;
7795
7790
  input: {
7796
7791
  param: {
7797
7792
  id: string;
@@ -7800,14 +7795,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7800
7795
  } | {
7801
7796
  output: {
7802
7797
  error: {
7803
- code: "upstream_error";
7798
+ code: "unauthorized";
7804
7799
  details?: readonly Response.error.Detail[] | undefined;
7805
7800
  message: string;
7806
7801
  };
7807
7802
  requestId: string;
7808
7803
  };
7809
7804
  outputFormat: "json";
7810
- status: 502;
7805
+ status: 401;
7811
7806
  input: {
7812
7807
  param: {
7813
7808
  id: string;
@@ -7816,14 +7811,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7816
7811
  } | {
7817
7812
  output: {
7818
7813
  error: {
7819
- code: "webhooks_not_enabled";
7814
+ code: "api_key_forbidden";
7820
7815
  details?: readonly Response.error.Detail[] | undefined;
7821
7816
  message: string;
7822
7817
  };
7823
7818
  requestId: string;
7824
7819
  };
7825
7820
  outputFormat: "json";
7826
- status: 404;
7821
+ status: 403;
7827
7822
  input: {
7828
7823
  param: {
7829
7824
  id: string;
@@ -7832,14 +7827,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7832
7827
  } | {
7833
7828
  output: {
7834
7829
  error: {
7835
- code: "unauthorized";
7830
+ code: "webhooks_not_enabled";
7836
7831
  details?: readonly Response.error.Detail[] | undefined;
7837
7832
  message: string;
7838
7833
  };
7839
7834
  requestId: string;
7840
7835
  };
7841
7836
  outputFormat: "json";
7842
- status: 401;
7837
+ status: 404;
7843
7838
  input: {
7844
7839
  param: {
7845
7840
  id: string;
@@ -7848,14 +7843,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7848
7843
  } | {
7849
7844
  output: {
7850
7845
  error: {
7851
- code: "param_invalid";
7846
+ code: "webhook_not_found";
7852
7847
  details?: readonly Response.error.Detail[] | undefined;
7853
7848
  message: string;
7854
7849
  };
7855
7850
  requestId: string;
7856
7851
  };
7857
7852
  outputFormat: "json";
7858
- status: 400;
7853
+ status: 404;
7859
7854
  input: {
7860
7855
  param: {
7861
7856
  id: string;
@@ -7864,14 +7859,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7864
7859
  } | {
7865
7860
  output: {
7866
7861
  error: {
7867
- code: "webhook_not_found";
7862
+ code: "payment_required" | "rate_limit_exceeded";
7868
7863
  details?: readonly Response.error.Detail[] | undefined;
7869
7864
  message: string;
7870
7865
  };
7871
7866
  requestId: string;
7872
7867
  };
7873
7868
  outputFormat: "json";
7874
- status: 404;
7869
+ status: 429;
7875
7870
  input: {
7876
7871
  param: {
7877
7872
  id: string;
@@ -7879,10 +7874,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7879
7874
  };
7880
7875
  } | {
7881
7876
  output: {
7882
- id: string;
7877
+ error: {
7878
+ code: "upstream_error";
7879
+ details?: readonly Response.error.Detail[] | undefined;
7880
+ message: string;
7881
+ };
7882
+ requestId: string;
7883
7883
  };
7884
7884
  outputFormat: "json";
7885
- status: 200;
7885
+ status: 502;
7886
7886
  input: {
7887
7887
  param: {
7888
7888
  id: string;