tapimo 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/dist/App.d.ts +8641 -8263
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/App.js +9 -1
  4. package/dist/App.js.map +1 -1
  5. package/dist/Scope.d.ts +4 -0
  6. package/dist/Scope.d.ts.map +1 -1
  7. package/dist/Scope.js +5 -0
  8. package/dist/Scope.js.map +1 -1
  9. package/dist/admin/App.d.ts +112 -11
  10. package/dist/admin/App.d.ts.map +1 -1
  11. package/dist/admin/apps/api-keys.d.ts +2 -1
  12. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  13. package/dist/admin/apps/early-access.d.ts +2 -2
  14. package/dist/admin/apps/early-access.d.ts.map +1 -1
  15. package/dist/admin/apps/early-access.js +5 -5
  16. package/dist/admin/apps/early-access.js.map +1 -1
  17. package/dist/admin/apps/organizations.d.ts +124 -1
  18. package/dist/admin/apps/organizations.d.ts.map +1 -1
  19. package/dist/admin/apps/organizations.js +97 -6
  20. package/dist/admin/apps/organizations.js.map +1 -1
  21. package/dist/admin/ui.generated.d.ts +1 -1
  22. package/dist/admin/ui.generated.d.ts.map +1 -1
  23. package/dist/admin/ui.generated.js +95 -87
  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 +20 -0
  27. package/dist/analytics/Analytics.js.map +1 -1
  28. package/dist/analytics/tables/requestEvents.d.ts +18 -0
  29. package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
  30. package/dist/analytics/tables/requestEvents.js +36 -7
  31. package/dist/analytics/tables/requestEvents.js.map +1 -1
  32. package/dist/apps/data/App.d.ts +5016 -4985
  33. package/dist/apps/data/App.d.ts.map +1 -1
  34. package/dist/apps/data/FundingQuoteProviders.js +2 -15
  35. package/dist/apps/data/FundingQuoteProviders.js.map +1 -1
  36. package/dist/apps/data/FxOracle.d.ts +1 -1
  37. package/dist/apps/data/FxOracle.d.ts.map +1 -1
  38. package/dist/apps/data/FxOracle.js +1 -1
  39. package/dist/apps/data/FxOracle.js.map +1 -1
  40. package/dist/apps/data/routes/activities.d.ts +27 -27
  41. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  42. package/dist/apps/data/routes/activities.js +21 -1
  43. package/dist/apps/data/routes/activities.js.map +1 -1
  44. package/dist/apps/data/routes/balances.d.ts +58 -58
  45. package/dist/apps/data/routes/blocks.d.ts +39 -39
  46. package/dist/apps/data/routes/coingecko.d.ts +176 -176
  47. package/dist/apps/data/routes/exchanges.d.ts +113 -113
  48. package/dist/apps/data/routes/fee-amm.d.ts +105 -91
  49. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
  50. package/dist/apps/data/routes/fee-amm.js +76 -91
  51. package/dist/apps/data/routes/fee-amm.js.map +1 -1
  52. package/dist/apps/data/routes/funding.d.ts +72 -34
  53. package/dist/apps/data/routes/funding.d.ts.map +1 -1
  54. package/dist/apps/data/routes/funding.js +34 -26
  55. package/dist/apps/data/routes/funding.js.map +1 -1
  56. package/dist/apps/data/routes/indexer.d.ts +5 -5
  57. package/dist/apps/data/routes/receipts.d.ts +6 -6
  58. package/dist/apps/data/routes/rpc.d.ts +31 -31
  59. package/dist/apps/data/routes/tokens.d.ts +2 -2
  60. package/dist/apps/data/routes/tokens.js +1 -1
  61. package/dist/apps/data/routes/transactions.d.ts +4 -4
  62. package/dist/apps/data/routes/transfers.d.ts +99 -88
  63. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  64. package/dist/apps/data/routes/transfers.js +226 -141
  65. package/dist/apps/data/routes/transfers.js.map +1 -1
  66. package/dist/apps/data/routes/valuation.d.ts +34 -34
  67. package/dist/apps/data/routes/valuation.js +3 -3
  68. package/dist/apps/data/routes/valuation.js.map +1 -1
  69. package/dist/apps/data/routes/verified-tokens.d.ts +36 -36
  70. package/dist/apps/data/routes/webhooks.d.ts +366 -366
  71. package/dist/apps/index.d.ts +1 -0
  72. package/dist/apps/index.d.ts.map +1 -1
  73. package/dist/apps/index.js +1 -0
  74. package/dist/apps/index.js.map +1 -1
  75. package/dist/apps/management/App.d.ts +460 -523
  76. package/dist/apps/management/App.d.ts.map +1 -1
  77. package/dist/apps/management/routes/api-keys.d.ts +7 -23
  78. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  79. package/dist/apps/management/routes/api-keys.js +20 -8
  80. package/dist/apps/management/routes/api-keys.js.map +1 -1
  81. package/dist/apps/management/routes/billing.d.ts +106 -151
  82. package/dist/apps/management/routes/billing.d.ts.map +1 -1
  83. package/dist/apps/management/routes/billing.js +28 -28
  84. package/dist/apps/management/routes/billing.js.map +1 -1
  85. package/dist/apps/management/routes/faucet.d.ts +40 -26
  86. package/dist/apps/management/routes/faucet.d.ts.map +1 -1
  87. package/dist/apps/management/routes/faucet.js +33 -18
  88. package/dist/apps/management/routes/faucet.js.map +1 -1
  89. package/dist/apps/management/routes/invitations.d.ts +131 -131
  90. package/dist/apps/management/routes/invitations.d.ts.map +1 -1
  91. package/dist/apps/management/routes/invitations.js +0 -3
  92. package/dist/apps/management/routes/invitations.js.map +1 -1
  93. package/dist/apps/management/routes/me.d.ts +6 -8
  94. package/dist/apps/management/routes/me.d.ts.map +1 -1
  95. package/dist/apps/management/routes/me.js +0 -4
  96. package/dist/apps/management/routes/me.js.map +1 -1
  97. package/dist/apps/management/routes/members.d.ts +45 -45
  98. package/dist/apps/management/routes/orgs.d.ts +94 -94
  99. package/dist/apps/management/routes/orgs.d.ts.map +1 -1
  100. package/dist/apps/management/routes/orgs.js +5 -0
  101. package/dist/apps/management/routes/orgs.js.map +1 -1
  102. package/dist/apps/management/routes/usage.d.ts +32 -32
  103. package/dist/apps/management/routes/verified-token-requests.d.ts +94 -94
  104. package/dist/apps/management/routes/webhooks.d.ts +1 -1
  105. package/dist/apps/mpp/App.d.ts +363 -0
  106. package/dist/apps/mpp/App.d.ts.map +1 -0
  107. package/dist/apps/mpp/App.js +72 -0
  108. package/dist/apps/mpp/App.js.map +1 -0
  109. package/dist/apps/mpp/Mpp.d.ts +178 -0
  110. package/dist/apps/mpp/Mpp.d.ts.map +1 -0
  111. package/dist/apps/mpp/Mpp.js +183 -0
  112. package/dist/apps/mpp/Mpp.js.map +1 -0
  113. package/dist/apps/mpp/index.d.ts +3 -0
  114. package/dist/apps/mpp/index.d.ts.map +1 -0
  115. package/dist/apps/mpp/index.js +3 -0
  116. package/dist/apps/mpp/index.js.map +1 -0
  117. package/dist/apps/relay/App.d.ts.map +1 -1
  118. package/dist/apps/relay/App.js +56 -9
  119. package/dist/apps/relay/App.js.map +1 -1
  120. package/dist/db/Db.d.ts +2 -0
  121. package/dist/db/Db.d.ts.map +1 -1
  122. package/dist/db/Db.js +27 -0
  123. package/dist/db/Db.js.map +1 -1
  124. package/dist/db/Schema.d.ts +12 -0
  125. package/dist/db/Schema.d.ts.map +1 -1
  126. package/dist/db/Schema.js +11 -0
  127. package/dist/db/Schema.js.map +1 -1
  128. package/dist/db/tables/enabledBillingSources.d.ts +73 -0
  129. package/dist/db/tables/enabledBillingSources.d.ts.map +1 -0
  130. package/dist/db/tables/enabledBillingSources.js +69 -0
  131. package/dist/db/tables/enabledBillingSources.js.map +1 -0
  132. package/dist/db/tables/invitations.d.ts +1 -12
  133. package/dist/db/tables/invitations.d.ts.map +1 -1
  134. package/dist/db/tables/invitations.js +3 -23
  135. package/dist/db/tables/invitations.js.map +1 -1
  136. package/dist/db/tables/organizations.d.ts +5 -2
  137. package/dist/db/tables/organizations.d.ts.map +1 -1
  138. package/dist/db/tables/organizations.js +13 -2
  139. package/dist/db/tables/organizations.js.map +1 -1
  140. package/dist/handlers/internal/utils.d.ts +1 -16
  141. package/dist/handlers/internal/utils.d.ts.map +1 -1
  142. package/dist/handlers/internal/utils.js +17 -6
  143. package/dist/handlers/internal/utils.js.map +1 -1
  144. package/dist/handlers/relay.d.ts.map +1 -1
  145. package/dist/handlers/relay.js +37 -5
  146. package/dist/handlers/relay.js.map +1 -1
  147. package/dist/internal/Auth.d.ts +0 -32
  148. package/dist/internal/Auth.d.ts.map +1 -1
  149. package/dist/internal/Auth.js +3 -51
  150. package/dist/internal/Auth.js.map +1 -1
  151. package/dist/internal/FundingQuotes.d.ts +78 -32
  152. package/dist/internal/FundingQuotes.d.ts.map +1 -1
  153. package/dist/internal/FundingQuotes.js +45 -8
  154. package/dist/internal/FundingQuotes.js.map +1 -1
  155. package/dist/internal/Log.d.ts +18 -4
  156. package/dist/internal/Log.d.ts.map +1 -1
  157. package/dist/internal/Log.js +50 -3
  158. package/dist/internal/Log.js.map +1 -1
  159. package/dist/internal/MetricSink.d.ts.map +1 -1
  160. package/dist/internal/MetricSink.js +15 -0
  161. package/dist/internal/MetricSink.js.map +1 -1
  162. package/dist/internal/Response.d.ts +2 -2
  163. package/dist/internal/Response.d.ts.map +1 -1
  164. package/dist/internal/Response.js +12 -4
  165. package/dist/internal/Response.js.map +1 -1
  166. package/dist/internal/Viem.d.ts +1 -1
  167. package/package.json +7 -2
  168. package/src/App.test.ts +9 -4
  169. package/src/App.ts +14 -2
  170. package/src/Client.test-d.ts +109 -28
  171. package/src/Scope.ts +5 -0
  172. package/src/admin/App.test.ts +4 -0
  173. package/src/admin/apps/early-access.ts +6 -5
  174. package/src/admin/apps/organizations.test.ts +86 -2
  175. package/src/admin/apps/organizations.ts +155 -31
  176. package/src/admin/apps/scopes.test.ts +5 -0
  177. package/src/admin/ui/src/lib/organizations.test.ts +81 -1
  178. package/src/admin/ui/src/lib/organizations.ts +92 -0
  179. package/src/admin/ui/src/routes/api-keys.tsx +1 -1
  180. package/src/admin/ui/src/routes/early-access.tsx +8 -3
  181. package/src/admin/ui/src/routes/organizations_.$orgId.tsx +103 -0
  182. package/src/admin/ui.generated.ts +95 -109
  183. package/src/analytics/Analytics.test.ts +83 -0
  184. package/src/analytics/Analytics.ts +20 -0
  185. package/src/analytics/tables/requestEvents.ts +60 -7
  186. package/src/apps/composition.test.ts +11 -2
  187. package/src/apps/data/App.test.ts +1 -1
  188. package/src/apps/data/FundingQuoteProviders.test.ts +0 -5
  189. package/src/apps/data/FundingQuoteProviders.ts +2 -29
  190. package/src/apps/data/FxOracle.test.ts +2 -2
  191. package/src/apps/data/FxOracle.ts +2 -2
  192. package/src/apps/data/routes/activities.test.ts +6 -2
  193. package/src/apps/data/routes/activities.ts +39 -1
  194. package/src/apps/data/routes/balances.test.ts +6 -2
  195. package/src/apps/data/routes/exchanges.test.ts +7 -3
  196. package/src/apps/data/routes/fee-amm.test.ts +47 -23
  197. package/src/apps/data/routes/fee-amm.ts +98 -119
  198. package/src/apps/data/routes/funding.test.ts +29 -8
  199. package/src/apps/data/routes/funding.ts +42 -48
  200. package/src/apps/data/routes/receipts.test.ts +6 -2
  201. package/src/apps/data/routes/tokens.ts +1 -1
  202. package/src/apps/data/routes/transfers.test.ts +203 -35
  203. package/src/apps/data/routes/transfers.ts +294 -172
  204. package/src/apps/data/routes/valuation.test.ts +18 -3
  205. package/src/apps/data/routes/valuation.ts +4 -4
  206. package/src/apps/index.ts +1 -0
  207. package/src/apps/management/routes/api-keys.test.ts +2 -75
  208. package/src/apps/management/routes/api-keys.ts +30 -7
  209. package/src/apps/management/routes/billing.test.ts +106 -85
  210. package/src/apps/management/routes/billing.ts +32 -21
  211. package/src/apps/management/routes/faucet.test.ts +11 -3
  212. package/src/apps/management/routes/faucet.ts +46 -30
  213. package/src/apps/management/routes/invitations.test.ts +0 -172
  214. package/src/apps/management/routes/invitations.ts +0 -3
  215. package/src/apps/management/routes/me.test.ts +3 -145
  216. package/src/apps/management/routes/me.ts +0 -6
  217. package/src/apps/management/routes/orgs.test.ts +45 -2
  218. package/src/apps/management/routes/orgs.ts +6 -0
  219. package/src/apps/management/routes/scopes.test.ts +1 -0
  220. package/src/apps/mpp/App.ts +86 -0
  221. package/src/apps/mpp/Mpp.test.ts +193 -0
  222. package/src/apps/mpp/Mpp.ts +353 -0
  223. package/src/apps/mpp/index.ts +2 -0
  224. package/src/apps/mpp/internal/Adapter.ts +11 -0
  225. package/src/apps/mpp/internal/Error.ts +9 -0
  226. package/src/apps/mpp/internal/Idempotency.ts +7 -0
  227. package/src/apps/mpp/internal/Screening.ts +10 -0
  228. package/src/apps/relay/App.test.ts +88 -6
  229. package/src/apps/relay/App.ts +61 -9
  230. package/src/db/Db.test.ts +2 -2
  231. package/src/db/Db.ts +30 -0
  232. package/src/db/Schema.ts +15 -0
  233. package/src/db/tables/enabledBillingSources.test.ts +303 -0
  234. package/src/db/tables/enabledBillingSources.ts +118 -0
  235. package/src/db/tables/invitations.ts +4 -26
  236. package/src/db/tables/organizations.test.ts +103 -0
  237. package/src/db/tables/organizations.ts +18 -2
  238. package/src/handlers/internal/utils.ts +22 -6
  239. package/src/handlers/relay.errors.test.ts +153 -0
  240. package/src/handlers/relay.ts +42 -7
  241. package/src/internal/Auth.test.ts +3 -3
  242. package/src/internal/Auth.ts +3 -63
  243. package/src/internal/FundingQuotes.test.ts +18 -5
  244. package/src/internal/FundingQuotes.ts +46 -11
  245. package/src/internal/Log.test.ts +91 -0
  246. package/src/internal/Log.ts +69 -5
  247. package/src/internal/MetricSink.test.ts +55 -0
  248. package/src/internal/MetricSink.ts +14 -0
  249. package/src/internal/Response.test.ts +28 -0
  250. package/src/internal/Response.ts +12 -4
@@ -59,7 +59,7 @@ export declare namespace schema {
59
59
  /** Page-level resources: opt-in counts plus valuation rate provenance. */
60
60
  const Meta: z.ZodMiniObject<{
61
61
  pricing: z.ZodMiniOptional<z.ZodMiniObject<{
62
- asOf: z.ZodMiniString<string>;
62
+ asOf: z.ZodMiniISODateTime;
63
63
  basis: z.ZodMiniLiteral<"nominal">;
64
64
  source: z.ZodMiniString<string>;
65
65
  }, z.core.$strip>>;
@@ -92,7 +92,7 @@ export declare namespace schema {
92
92
  }, z.core.$strip>>;
93
93
  meta: z.ZodMiniOptional<z.ZodMiniObject<{
94
94
  pricing: z.ZodMiniOptional<z.ZodMiniObject<{
95
- asOf: z.ZodMiniString<string>;
95
+ asOf: z.ZodMiniISODateTime;
96
96
  basis: z.ZodMiniLiteral<"nominal">;
97
97
  source: z.ZodMiniString<string>;
98
98
  }, z.core.$strip>>;
@@ -110,42 +110,9 @@ export declare namespace schema {
110
110
  export declare function addresses(options?: addresses.Options): import("hono/hono-base").HonoBase<App.Environment, {
111
111
  "/v1/addresses/:address/balances": {
112
112
  $get: {
113
- output: {
114
- data: {
115
- amount: string;
116
- currency: string;
117
- decimals: number;
118
- feeEligible?: boolean | undefined;
119
- formatted: string;
120
- id: string;
121
- token: {
122
- address: `0x${string}`;
123
- currency: string;
124
- decimals: number;
125
- id: string;
126
- logoUri?: string | undefined;
127
- name: string;
128
- symbol: string;
129
- verified: boolean;
130
- };
131
- valuation: {
132
- amount: string;
133
- currency: string;
134
- } | null;
135
- }[];
136
- meta?: {
137
- pricing?: {
138
- asOf: string;
139
- basis: "nominal";
140
- source: string;
141
- } | undefined;
142
- totalCount?: number | undefined;
143
- totalCountCapped?: boolean | undefined;
144
- } | undefined;
145
- nextCursor: string | null;
146
- };
147
- outputFormat: "json";
148
- status: 200;
113
+ output: null;
114
+ outputFormat: "body";
115
+ status: 402;
149
116
  input: {
150
117
  param: {
151
118
  address: `0x${string}`;
@@ -194,14 +161,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
194
161
  } | {
195
162
  output: {
196
163
  error: {
197
- code: "address_invalid";
164
+ code: "api_key_invalid" | "api_key_missing";
198
165
  details?: readonly Response.error.Detail[] | undefined;
199
166
  message: string;
200
167
  };
201
168
  requestId: string;
202
169
  };
203
170
  outputFormat: "json";
204
- status: 400;
171
+ status: 401;
205
172
  input: {
206
173
  param: {
207
174
  address: `0x${string}`;
@@ -222,14 +189,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
222
189
  } | {
223
190
  output: {
224
191
  error: {
225
- code: "query_invalid";
192
+ code: "api_key_forbidden";
226
193
  details?: readonly Response.error.Detail[] | undefined;
227
194
  message: string;
228
195
  };
229
196
  requestId: string;
230
197
  };
231
198
  outputFormat: "json";
232
- status: 400;
199
+ status: 403;
233
200
  input: {
234
201
  param: {
235
202
  address: `0x${string}`;
@@ -250,14 +217,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
250
217
  } | {
251
218
  output: {
252
219
  error: {
253
- code: "api_key_invalid" | "api_key_missing";
220
+ code: "payment_required" | "rate_limit_exceeded";
254
221
  details?: readonly Response.error.Detail[] | undefined;
255
222
  message: string;
256
223
  };
257
224
  requestId: string;
258
225
  };
259
226
  outputFormat: "json";
260
- status: 401;
227
+ status: 429;
261
228
  input: {
262
229
  param: {
263
230
  address: `0x${string}`;
@@ -276,9 +243,16 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
276
243
  } | undefined;
277
244
  };
278
245
  } | {
279
- output: null;
280
- outputFormat: "body";
281
- status: 402;
246
+ output: {
247
+ error: {
248
+ code: "query_invalid";
249
+ details?: readonly Response.error.Detail[] | undefined;
250
+ message: string;
251
+ };
252
+ requestId: string;
253
+ };
254
+ outputFormat: "json";
255
+ status: 400;
282
256
  input: {
283
257
  param: {
284
258
  address: `0x${string}`;
@@ -299,14 +273,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
299
273
  } | {
300
274
  output: {
301
275
  error: {
302
- code: "api_key_forbidden";
276
+ code: "upstream_error";
303
277
  details?: readonly Response.error.Detail[] | undefined;
304
278
  message: string;
305
279
  };
306
280
  requestId: string;
307
281
  };
308
282
  outputFormat: "json";
309
- status: 403;
283
+ status: 502;
310
284
  input: {
311
285
  param: {
312
286
  address: `0x${string}`;
@@ -327,14 +301,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
327
301
  } | {
328
302
  output: {
329
303
  error: {
330
- code: "payment_required" | "rate_limit_exceeded";
304
+ code: "address_invalid";
331
305
  details?: readonly Response.error.Detail[] | undefined;
332
306
  message: string;
333
307
  };
334
308
  requestId: string;
335
309
  };
336
310
  outputFormat: "json";
337
- status: 429;
311
+ status: 400;
338
312
  input: {
339
313
  param: {
340
314
  address: `0x${string}`;
@@ -354,15 +328,41 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
354
328
  };
355
329
  } | {
356
330
  output: {
357
- error: {
358
- code: "upstream_error";
359
- details?: readonly Response.error.Detail[] | undefined;
360
- message: string;
361
- };
362
- requestId: string;
331
+ data: {
332
+ amount: string;
333
+ currency: string;
334
+ decimals: number;
335
+ feeEligible?: boolean | undefined;
336
+ formatted: string;
337
+ id: string;
338
+ token: {
339
+ address: `0x${string}`;
340
+ currency: string;
341
+ decimals: number;
342
+ id: string;
343
+ logoUri?: string | undefined;
344
+ name: string;
345
+ symbol: string;
346
+ verified: boolean;
347
+ };
348
+ valuation: {
349
+ amount: string;
350
+ currency: string;
351
+ } | null;
352
+ }[];
353
+ meta?: {
354
+ pricing?: {
355
+ asOf: string;
356
+ basis: "nominal";
357
+ source: string;
358
+ } | undefined;
359
+ totalCount?: number | undefined;
360
+ totalCountCapped?: boolean | undefined;
361
+ } | undefined;
362
+ nextCursor: string | null;
363
363
  };
364
364
  outputFormat: "json";
365
- status: 502;
365
+ status: 200;
366
366
  input: {
367
367
  param: {
368
368
  address: `0x${string}`;
@@ -270,14 +270,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
270
270
  } | {
271
271
  output: {
272
272
  error: {
273
- code: "api_key_malformed";
273
+ code: "upstream_error";
274
274
  details?: readonly Response.error.Detail[] | undefined;
275
275
  message: string;
276
276
  };
277
277
  requestId: string;
278
278
  };
279
279
  outputFormat: "json";
280
- status: 400;
280
+ status: 502;
281
281
  input: {
282
282
  query?: {
283
283
  chainId?: string | string[];
@@ -290,14 +290,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
290
290
  } | {
291
291
  output: {
292
292
  error: {
293
- code: "api_key_invalid" | "api_key_missing";
293
+ code: "api_key_malformed";
294
294
  details?: readonly Response.error.Detail[] | undefined;
295
295
  message: string;
296
296
  };
297
297
  requestId: string;
298
298
  };
299
299
  outputFormat: "json";
300
- status: 401;
300
+ status: 400;
301
301
  input: {
302
302
  query?: {
303
303
  chainId?: string | string[];
@@ -310,14 +310,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
310
310
  } | {
311
311
  output: {
312
312
  error: {
313
- code: "api_key_forbidden";
313
+ code: "api_key_invalid" | "api_key_missing";
314
314
  details?: readonly Response.error.Detail[] | undefined;
315
315
  message: string;
316
316
  };
317
317
  requestId: string;
318
318
  };
319
319
  outputFormat: "json";
320
- status: 403;
320
+ status: 401;
321
321
  input: {
322
322
  query?: {
323
323
  chainId?: string | string[];
@@ -330,14 +330,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
330
330
  } | {
331
331
  output: {
332
332
  error: {
333
- code: "payment_required" | "rate_limit_exceeded";
333
+ code: "api_key_forbidden";
334
334
  details?: readonly Response.error.Detail[] | undefined;
335
335
  message: string;
336
336
  };
337
337
  requestId: string;
338
338
  };
339
339
  outputFormat: "json";
340
- status: 429;
340
+ status: 403;
341
341
  input: {
342
342
  query?: {
343
343
  chainId?: string | string[];
@@ -350,14 +350,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
350
350
  } | {
351
351
  output: {
352
352
  error: {
353
- code: "query_invalid";
353
+ code: "payment_required" | "rate_limit_exceeded";
354
354
  details?: readonly Response.error.Detail[] | undefined;
355
355
  message: string;
356
356
  };
357
357
  requestId: string;
358
358
  };
359
359
  outputFormat: "json";
360
- status: 400;
360
+ status: 429;
361
361
  input: {
362
362
  query?: {
363
363
  chainId?: string | string[];
@@ -370,14 +370,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
370
370
  } | {
371
371
  output: {
372
372
  error: {
373
- code: "upstream_error";
373
+ code: "query_invalid";
374
374
  details?: readonly Response.error.Detail[] | undefined;
375
375
  message: string;
376
376
  };
377
377
  requestId: string;
378
378
  };
379
379
  outputFormat: "json";
380
- status: 502;
380
+ status: 400;
381
381
  input: {
382
382
  query?: {
383
383
  chainId?: string | string[];
@@ -429,14 +429,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
429
429
  } | {
430
430
  output: {
431
431
  error: {
432
- code: "api_key_malformed";
432
+ code: "upstream_error";
433
433
  details?: readonly Response.error.Detail[] | undefined;
434
434
  message: string;
435
435
  };
436
436
  requestId: string;
437
437
  };
438
438
  outputFormat: "json";
439
- status: 400;
439
+ status: 502;
440
440
  input: {
441
441
  param: {
442
442
  block: string;
@@ -449,14 +449,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
449
449
  } | {
450
450
  output: {
451
451
  error: {
452
- code: "api_key_invalid" | "api_key_missing";
452
+ code: "api_key_malformed";
453
453
  details?: readonly Response.error.Detail[] | undefined;
454
454
  message: string;
455
455
  };
456
456
  requestId: string;
457
457
  };
458
458
  outputFormat: "json";
459
- status: 401;
459
+ status: 400;
460
460
  input: {
461
461
  param: {
462
462
  block: string;
@@ -469,14 +469,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
469
469
  } | {
470
470
  output: {
471
471
  error: {
472
- code: "api_key_forbidden";
472
+ code: "api_key_invalid" | "api_key_missing";
473
473
  details?: readonly Response.error.Detail[] | undefined;
474
474
  message: string;
475
475
  };
476
476
  requestId: string;
477
477
  };
478
478
  outputFormat: "json";
479
- status: 403;
479
+ status: 401;
480
480
  input: {
481
481
  param: {
482
482
  block: string;
@@ -489,14 +489,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
489
489
  } | {
490
490
  output: {
491
491
  error: {
492
- code: "payment_required" | "rate_limit_exceeded";
492
+ code: "api_key_forbidden";
493
493
  details?: readonly Response.error.Detail[] | undefined;
494
494
  message: string;
495
495
  };
496
496
  requestId: string;
497
497
  };
498
498
  outputFormat: "json";
499
- status: 429;
499
+ status: 403;
500
500
  input: {
501
501
  param: {
502
502
  block: string;
@@ -509,14 +509,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
509
509
  } | {
510
510
  output: {
511
511
  error: {
512
- code: "query_invalid";
512
+ code: "payment_required" | "rate_limit_exceeded";
513
513
  details?: readonly Response.error.Detail[] | undefined;
514
514
  message: string;
515
515
  };
516
516
  requestId: string;
517
517
  };
518
518
  outputFormat: "json";
519
- status: 400;
519
+ status: 429;
520
520
  input: {
521
521
  param: {
522
522
  block: string;
@@ -529,14 +529,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
529
529
  } | {
530
530
  output: {
531
531
  error: {
532
- code: "upstream_error";
532
+ code: "query_invalid";
533
533
  details?: readonly Response.error.Detail[] | undefined;
534
534
  message: string;
535
535
  };
536
536
  requestId: string;
537
537
  };
538
538
  outputFormat: "json";
539
- status: 502;
539
+ status: 400;
540
540
  input: {
541
541
  param: {
542
542
  block: string;
@@ -675,7 +675,7 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
675
675
  } | {
676
676
  output: {
677
677
  error: {
678
- code: "api_key_malformed";
678
+ code: "chain_id_unsupported";
679
679
  details?: readonly Response.error.Detail[] | undefined;
680
680
  message: string;
681
681
  };
@@ -696,14 +696,14 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
696
696
  } | {
697
697
  output: {
698
698
  error: {
699
- code: "api_key_invalid" | "api_key_missing";
699
+ code: "upstream_error";
700
700
  details?: readonly Response.error.Detail[] | undefined;
701
701
  message: string;
702
702
  };
703
703
  requestId: string;
704
704
  };
705
705
  outputFormat: "json";
706
- status: 401;
706
+ status: 502;
707
707
  input: {
708
708
  param: {
709
709
  chainId: string;
@@ -717,14 +717,14 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
717
717
  } | {
718
718
  output: {
719
719
  error: {
720
- code: "api_key_forbidden";
720
+ code: "api_key_malformed";
721
721
  details?: readonly Response.error.Detail[] | undefined;
722
722
  message: string;
723
723
  };
724
724
  requestId: string;
725
725
  };
726
726
  outputFormat: "json";
727
- status: 403;
727
+ status: 400;
728
728
  input: {
729
729
  param: {
730
730
  chainId: string;
@@ -738,14 +738,14 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
738
738
  } | {
739
739
  output: {
740
740
  error: {
741
- code: "payment_required" | "rate_limit_exceeded";
741
+ code: "api_key_invalid" | "api_key_missing";
742
742
  details?: readonly Response.error.Detail[] | undefined;
743
743
  message: string;
744
744
  };
745
745
  requestId: string;
746
746
  };
747
747
  outputFormat: "json";
748
- status: 429;
748
+ status: 401;
749
749
  input: {
750
750
  param: {
751
751
  chainId: string;
@@ -759,14 +759,14 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
759
759
  } | {
760
760
  output: {
761
761
  error: {
762
- code: "query_invalid";
762
+ code: "api_key_forbidden";
763
763
  details?: readonly Response.error.Detail[] | undefined;
764
764
  message: string;
765
765
  };
766
766
  requestId: string;
767
767
  };
768
768
  outputFormat: "json";
769
- status: 400;
769
+ status: 403;
770
770
  input: {
771
771
  param: {
772
772
  chainId: string;
@@ -780,14 +780,14 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
780
780
  } | {
781
781
  output: {
782
782
  error: {
783
- code: "upstream_error";
783
+ code: "payment_required" | "rate_limit_exceeded";
784
784
  details?: readonly Response.error.Detail[] | undefined;
785
785
  message: string;
786
786
  };
787
787
  requestId: string;
788
788
  };
789
789
  outputFormat: "json";
790
- status: 502;
790
+ status: 429;
791
791
  input: {
792
792
  param: {
793
793
  chainId: string;
@@ -801,14 +801,14 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
801
801
  } | {
802
802
  output: {
803
803
  error: {
804
- code: "block_not_found";
804
+ code: "query_invalid";
805
805
  details?: readonly Response.error.Detail[] | undefined;
806
806
  message: string;
807
807
  };
808
808
  requestId: string;
809
809
  };
810
810
  outputFormat: "json";
811
- status: 404;
811
+ status: 400;
812
812
  input: {
813
813
  param: {
814
814
  chainId: string;
@@ -822,14 +822,14 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
822
822
  } | {
823
823
  output: {
824
824
  error: {
825
- code: "chain_id_unsupported";
825
+ code: "block_not_found";
826
826
  details?: readonly Response.error.Detail[] | undefined;
827
827
  message: string;
828
828
  };
829
829
  requestId: string;
830
830
  };
831
831
  outputFormat: "json";
832
- status: 400;
832
+ status: 404;
833
833
  input: {
834
834
  param: {
835
835
  chainId: string;