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
@@ -61,14 +61,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
61
61
  $get: {
62
62
  output: {
63
63
  error: {
64
- code: "api_key_malformed";
64
+ code: "upstream_error";
65
65
  details?: readonly Response.error.Detail[] | undefined;
66
66
  message: string;
67
67
  };
68
68
  requestId: string;
69
69
  };
70
70
  outputFormat: "json";
71
- status: 400;
71
+ status: 502;
72
72
  input: {
73
73
  param: {
74
74
  orgId: string;
@@ -77,14 +77,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
77
77
  } | {
78
78
  output: {
79
79
  error: {
80
- code: "api_key_invalid" | "api_key_missing";
80
+ code: "api_key_malformed";
81
81
  details?: readonly Response.error.Detail[] | undefined;
82
82
  message: string;
83
83
  };
84
84
  requestId: string;
85
85
  };
86
86
  outputFormat: "json";
87
- status: 401;
87
+ status: 400;
88
88
  input: {
89
89
  param: {
90
90
  orgId: string;
@@ -93,14 +93,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
93
93
  } | {
94
94
  output: {
95
95
  error: {
96
- code: "api_key_forbidden" | "api_key_ip_forbidden";
96
+ code: "api_key_invalid" | "api_key_missing";
97
97
  details?: readonly Response.error.Detail[] | undefined;
98
98
  message: string;
99
99
  };
100
100
  requestId: string;
101
101
  };
102
102
  outputFormat: "json";
103
- status: 403;
103
+ status: 401;
104
104
  input: {
105
105
  param: {
106
106
  orgId: string;
@@ -109,14 +109,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
109
109
  } | {
110
110
  output: {
111
111
  error: {
112
- code: "payment_required" | "rate_limit_exceeded";
112
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
113
113
  details?: readonly Response.error.Detail[] | undefined;
114
114
  message: string;
115
115
  };
116
116
  requestId: string;
117
117
  };
118
118
  outputFormat: "json";
119
- status: 429;
119
+ status: 403;
120
120
  input: {
121
121
  param: {
122
122
  orgId: string;
@@ -125,14 +125,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
125
125
  } | {
126
126
  output: {
127
127
  error: {
128
- code: "upstream_error";
128
+ code: "payment_required" | "rate_limit_exceeded";
129
129
  details?: readonly Response.error.Detail[] | undefined;
130
130
  message: string;
131
131
  };
132
132
  requestId: string;
133
133
  };
134
134
  outputFormat: "json";
135
- status: 502;
135
+ status: 429;
136
136
  input: {
137
137
  param: {
138
138
  orgId: string;
@@ -195,14 +195,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
195
195
  $post: {
196
196
  output: {
197
197
  error: {
198
- code: "api_key_malformed";
198
+ code: "upstream_error";
199
199
  details?: readonly Response.error.Detail[] | undefined;
200
200
  message: string;
201
201
  };
202
202
  requestId: string;
203
203
  };
204
204
  outputFormat: "json";
205
- status: 400;
205
+ status: 502;
206
206
  input: {
207
207
  param: {
208
208
  orgId: string;
@@ -215,14 +215,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
215
215
  } | {
216
216
  output: {
217
217
  error: {
218
- code: "api_key_invalid" | "api_key_missing";
218
+ code: "api_key_malformed";
219
219
  details?: readonly Response.error.Detail[] | undefined;
220
220
  message: string;
221
221
  };
222
222
  requestId: string;
223
223
  };
224
224
  outputFormat: "json";
225
- status: 401;
225
+ status: 400;
226
226
  input: {
227
227
  param: {
228
228
  orgId: string;
@@ -235,14 +235,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
235
235
  } | {
236
236
  output: {
237
237
  error: {
238
- code: "api_key_forbidden" | "api_key_ip_forbidden";
238
+ code: "api_key_invalid" | "api_key_missing";
239
239
  details?: readonly Response.error.Detail[] | undefined;
240
240
  message: string;
241
241
  };
242
242
  requestId: string;
243
243
  };
244
244
  outputFormat: "json";
245
- status: 403;
245
+ status: 401;
246
246
  input: {
247
247
  param: {
248
248
  orgId: string;
@@ -255,14 +255,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
255
255
  } | {
256
256
  output: {
257
257
  error: {
258
- code: "payment_required" | "rate_limit_exceeded";
258
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
259
259
  details?: readonly Response.error.Detail[] | undefined;
260
260
  message: string;
261
261
  };
262
262
  requestId: string;
263
263
  };
264
264
  outputFormat: "json";
265
- status: 429;
265
+ status: 403;
266
266
  input: {
267
267
  param: {
268
268
  orgId: string;
@@ -275,14 +275,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
275
275
  } | {
276
276
  output: {
277
277
  error: {
278
- code: "upstream_error";
278
+ code: "payment_required" | "rate_limit_exceeded";
279
279
  details?: readonly Response.error.Detail[] | undefined;
280
280
  message: string;
281
281
  };
282
282
  requestId: string;
283
283
  };
284
284
  outputFormat: "json";
285
- status: 502;
285
+ status: 429;
286
286
  input: {
287
287
  param: {
288
288
  orgId: string;
@@ -502,14 +502,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
502
502
  $patch: {
503
503
  output: {
504
504
  error: {
505
- code: "api_key_malformed";
505
+ code: "upstream_error";
506
506
  details?: readonly Response.error.Detail[] | undefined;
507
507
  message: string;
508
508
  };
509
509
  requestId: string;
510
510
  };
511
511
  outputFormat: "json";
512
- status: 400;
512
+ status: 502;
513
513
  input: {
514
514
  param: {
515
515
  orgId: string;
@@ -523,14 +523,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
523
523
  } | {
524
524
  output: {
525
525
  error: {
526
- code: "api_key_invalid" | "api_key_missing";
526
+ code: "api_key_malformed";
527
527
  details?: readonly Response.error.Detail[] | undefined;
528
528
  message: string;
529
529
  };
530
530
  requestId: string;
531
531
  };
532
532
  outputFormat: "json";
533
- status: 401;
533
+ status: 400;
534
534
  input: {
535
535
  param: {
536
536
  orgId: string;
@@ -544,14 +544,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
544
544
  } | {
545
545
  output: {
546
546
  error: {
547
- code: "api_key_forbidden" | "api_key_ip_forbidden";
547
+ code: "api_key_invalid" | "api_key_missing";
548
548
  details?: readonly Response.error.Detail[] | undefined;
549
549
  message: string;
550
550
  };
551
551
  requestId: string;
552
552
  };
553
553
  outputFormat: "json";
554
- status: 403;
554
+ status: 401;
555
555
  input: {
556
556
  param: {
557
557
  orgId: string;
@@ -565,14 +565,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
565
565
  } | {
566
566
  output: {
567
567
  error: {
568
- code: "payment_required" | "rate_limit_exceeded";
568
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
569
569
  details?: readonly Response.error.Detail[] | undefined;
570
570
  message: string;
571
571
  };
572
572
  requestId: string;
573
573
  };
574
574
  outputFormat: "json";
575
- status: 429;
575
+ status: 403;
576
576
  input: {
577
577
  param: {
578
578
  orgId: string;
@@ -586,14 +586,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
586
586
  } | {
587
587
  output: {
588
588
  error: {
589
- code: "upstream_error";
589
+ code: "payment_required" | "rate_limit_exceeded";
590
590
  details?: readonly Response.error.Detail[] | undefined;
591
591
  message: string;
592
592
  };
593
593
  requestId: string;
594
594
  };
595
595
  outputFormat: "json";
596
- status: 502;
596
+ status: 429;
597
597
  input: {
598
598
  param: {
599
599
  orgId: string;
@@ -695,14 +695,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
695
695
  $delete: {
696
696
  output: {
697
697
  error: {
698
- code: "api_key_malformed";
698
+ code: "upstream_error";
699
699
  details?: readonly Response.error.Detail[] | undefined;
700
700
  message: string;
701
701
  };
702
702
  requestId: string;
703
703
  };
704
704
  outputFormat: "json";
705
- status: 400;
705
+ status: 502;
706
706
  input: {
707
707
  param: {
708
708
  orgId: string;
@@ -712,14 +712,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
712
712
  } | {
713
713
  output: {
714
714
  error: {
715
- code: "api_key_invalid" | "api_key_missing";
715
+ code: "api_key_malformed";
716
716
  details?: readonly Response.error.Detail[] | undefined;
717
717
  message: string;
718
718
  };
719
719
  requestId: string;
720
720
  };
721
721
  outputFormat: "json";
722
- status: 401;
722
+ status: 400;
723
723
  input: {
724
724
  param: {
725
725
  orgId: string;
@@ -729,14 +729,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
729
729
  } | {
730
730
  output: {
731
731
  error: {
732
- code: "api_key_forbidden" | "api_key_ip_forbidden";
732
+ code: "api_key_invalid" | "api_key_missing";
733
733
  details?: readonly Response.error.Detail[] | undefined;
734
734
  message: string;
735
735
  };
736
736
  requestId: string;
737
737
  };
738
738
  outputFormat: "json";
739
- status: 403;
739
+ status: 401;
740
740
  input: {
741
741
  param: {
742
742
  orgId: string;
@@ -746,14 +746,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
746
746
  } | {
747
747
  output: {
748
748
  error: {
749
- code: "payment_required" | "rate_limit_exceeded";
749
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
750
750
  details?: readonly Response.error.Detail[] | undefined;
751
751
  message: string;
752
752
  };
753
753
  requestId: string;
754
754
  };
755
755
  outputFormat: "json";
756
- status: 429;
756
+ status: 403;
757
757
  input: {
758
758
  param: {
759
759
  orgId: string;
@@ -763,14 +763,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
763
763
  } | {
764
764
  output: {
765
765
  error: {
766
- code: "upstream_error";
766
+ code: "payment_required" | "rate_limit_exceeded";
767
767
  details?: readonly Response.error.Detail[] | undefined;
768
768
  message: string;
769
769
  };
770
770
  requestId: string;
771
771
  };
772
772
  outputFormat: "json";
773
- status: 502;
773
+ status: 429;
774
774
  input: {
775
775
  param: {
776
776
  orgId: string;
@@ -145,15 +145,38 @@ export declare function usage(): import("hono/hono-base").HonoBase<Environment,
145
145
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/usage/requests": {
146
146
  $get: {
147
147
  output: {
148
- error: {
149
- code: "api_key_malformed";
150
- details?: readonly Response.error.Detail[] | undefined;
151
- message: string;
148
+ byKey: {
149
+ apiKeyId: string;
150
+ averageDurationMs: number;
151
+ errors: number;
152
+ requests: number;
153
+ }[];
154
+ byRoute: {
155
+ averageDurationMs: number;
156
+ errors: number;
157
+ requests: number;
158
+ route: string;
159
+ }[];
160
+ byStatus: {
161
+ requests: number;
162
+ status: number;
163
+ }[];
164
+ from: string;
165
+ interval: "day" | "hour";
166
+ series: {
167
+ errors: number;
168
+ requests: number;
169
+ time: string;
170
+ }[];
171
+ to: string;
172
+ totals: {
173
+ averageDurationMs: number;
174
+ errors: number;
175
+ requests: number;
152
176
  };
153
- requestId: string;
154
177
  };
155
178
  outputFormat: "json";
156
- status: 400;
179
+ status: 200;
157
180
  input: {
158
181
  param: {
159
182
  orgId: string;
@@ -170,14 +193,14 @@ export declare function usage(): import("hono/hono-base").HonoBase<Environment,
170
193
  } | {
171
194
  output: {
172
195
  error: {
173
- code: "api_key_invalid" | "api_key_missing";
196
+ code: "api_key_malformed";
174
197
  details?: readonly Response.error.Detail[] | undefined;
175
198
  message: string;
176
199
  };
177
200
  requestId: string;
178
201
  };
179
202
  outputFormat: "json";
180
- status: 401;
203
+ status: 400;
181
204
  input: {
182
205
  param: {
183
206
  orgId: string;
@@ -194,14 +217,14 @@ export declare function usage(): import("hono/hono-base").HonoBase<Environment,
194
217
  } | {
195
218
  output: {
196
219
  error: {
197
- code: "api_key_forbidden" | "api_key_ip_forbidden";
220
+ code: "query_invalid";
198
221
  details?: readonly Response.error.Detail[] | undefined;
199
222
  message: string;
200
223
  };
201
224
  requestId: string;
202
225
  };
203
226
  outputFormat: "json";
204
- status: 403;
227
+ status: 400;
205
228
  input: {
206
229
  param: {
207
230
  orgId: string;
@@ -218,14 +241,14 @@ export declare function usage(): import("hono/hono-base").HonoBase<Environment,
218
241
  } | {
219
242
  output: {
220
243
  error: {
221
- code: "payment_required" | "rate_limit_exceeded";
244
+ code: "param_invalid";
222
245
  details?: readonly Response.error.Detail[] | undefined;
223
246
  message: string;
224
247
  };
225
248
  requestId: string;
226
249
  };
227
250
  outputFormat: "json";
228
- status: 429;
251
+ status: 400;
229
252
  input: {
230
253
  param: {
231
254
  orgId: string;
@@ -242,14 +265,14 @@ export declare function usage(): import("hono/hono-base").HonoBase<Environment,
242
265
  } | {
243
266
  output: {
244
267
  error: {
245
- code: "query_invalid";
268
+ code: "api_key_invalid" | "api_key_missing";
246
269
  details?: readonly Response.error.Detail[] | undefined;
247
270
  message: string;
248
271
  };
249
272
  requestId: string;
250
273
  };
251
274
  outputFormat: "json";
252
- status: 400;
275
+ status: 401;
253
276
  input: {
254
277
  param: {
255
278
  orgId: string;
@@ -266,14 +289,14 @@ export declare function usage(): import("hono/hono-base").HonoBase<Environment,
266
289
  } | {
267
290
  output: {
268
291
  error: {
269
- code: "upstream_error";
292
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
270
293
  details?: readonly Response.error.Detail[] | undefined;
271
294
  message: string;
272
295
  };
273
296
  requestId: string;
274
297
  };
275
298
  outputFormat: "json";
276
- status: 502;
299
+ status: 403;
277
300
  input: {
278
301
  param: {
279
302
  orgId: string;
@@ -314,14 +337,14 @@ export declare function usage(): import("hono/hono-base").HonoBase<Environment,
314
337
  } | {
315
338
  output: {
316
339
  error: {
317
- code: "param_invalid";
340
+ code: "payment_required" | "rate_limit_exceeded";
318
341
  details?: readonly Response.error.Detail[] | undefined;
319
342
  message: string;
320
343
  };
321
344
  requestId: string;
322
345
  };
323
346
  outputFormat: "json";
324
- status: 400;
347
+ status: 429;
325
348
  input: {
326
349
  param: {
327
350
  orgId: string;
@@ -361,38 +384,15 @@ export declare function usage(): import("hono/hono-base").HonoBase<Environment,
361
384
  };
362
385
  } | {
363
386
  output: {
364
- byKey: {
365
- apiKeyId: string;
366
- averageDurationMs: number;
367
- errors: number;
368
- requests: number;
369
- }[];
370
- byRoute: {
371
- averageDurationMs: number;
372
- errors: number;
373
- requests: number;
374
- route: string;
375
- }[];
376
- byStatus: {
377
- requests: number;
378
- status: number;
379
- }[];
380
- from: string;
381
- interval: "day" | "hour";
382
- series: {
383
- errors: number;
384
- requests: number;
385
- time: string;
386
- }[];
387
- to: string;
388
- totals: {
389
- averageDurationMs: number;
390
- errors: number;
391
- requests: number;
387
+ error: {
388
+ code: "upstream_error";
389
+ details?: readonly Response.error.Detail[] | undefined;
390
+ message: string;
392
391
  };
392
+ requestId: string;
393
393
  };
394
394
  outputFormat: "json";
395
- status: 200;
395
+ status: 502;
396
396
  input: {
397
397
  param: {
398
398
  orgId: string;
@@ -412,15 +412,18 @@ export declare function usage(): import("hono/hono-base").HonoBase<Environment,
412
412
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/usage/sponsorships": {
413
413
  $get: {
414
414
  output: {
415
- error: {
416
- code: "api_key_malformed";
417
- details?: readonly Response.error.Detail[] | undefined;
418
- message: string;
419
- };
420
- requestId: string;
415
+ data: {
416
+ count: number;
417
+ failed: number;
418
+ feeTotal: {
419
+ amount: string;
420
+ currency: "usd";
421
+ };
422
+ timestamp: string;
423
+ }[];
421
424
  };
422
425
  outputFormat: "json";
423
- status: 400;
426
+ status: 200;
424
427
  input: {
425
428
  param: {
426
429
  orgId: string;
@@ -437,14 +440,14 @@ export declare function usage(): import("hono/hono-base").HonoBase<Environment,
437
440
  } | {
438
441
  output: {
439
442
  error: {
440
- code: "api_key_invalid" | "api_key_missing";
443
+ code: "api_key_malformed";
441
444
  details?: readonly Response.error.Detail[] | undefined;
442
445
  message: string;
443
446
  };
444
447
  requestId: string;
445
448
  };
446
449
  outputFormat: "json";
447
- status: 401;
450
+ status: 400;
448
451
  input: {
449
452
  param: {
450
453
  orgId: string;
@@ -461,14 +464,14 @@ export declare function usage(): import("hono/hono-base").HonoBase<Environment,
461
464
  } | {
462
465
  output: {
463
466
  error: {
464
- code: "api_key_forbidden" | "api_key_ip_forbidden";
467
+ code: "query_invalid";
465
468
  details?: readonly Response.error.Detail[] | undefined;
466
469
  message: string;
467
470
  };
468
471
  requestId: string;
469
472
  };
470
473
  outputFormat: "json";
471
- status: 403;
474
+ status: 400;
472
475
  input: {
473
476
  param: {
474
477
  orgId: string;
@@ -485,14 +488,14 @@ export declare function usage(): import("hono/hono-base").HonoBase<Environment,
485
488
  } | {
486
489
  output: {
487
490
  error: {
488
- code: "payment_required" | "rate_limit_exceeded";
491
+ code: "param_invalid";
489
492
  details?: readonly Response.error.Detail[] | undefined;
490
493
  message: string;
491
494
  };
492
495
  requestId: string;
493
496
  };
494
497
  outputFormat: "json";
495
- status: 429;
498
+ status: 400;
496
499
  input: {
497
500
  param: {
498
501
  orgId: string;
@@ -509,14 +512,14 @@ export declare function usage(): import("hono/hono-base").HonoBase<Environment,
509
512
  } | {
510
513
  output: {
511
514
  error: {
512
- code: "query_invalid";
515
+ code: "api_key_invalid" | "api_key_missing";
513
516
  details?: readonly Response.error.Detail[] | undefined;
514
517
  message: string;
515
518
  };
516
519
  requestId: string;
517
520
  };
518
521
  outputFormat: "json";
519
- status: 400;
522
+ status: 401;
520
523
  input: {
521
524
  param: {
522
525
  orgId: string;
@@ -533,14 +536,14 @@ export declare function usage(): import("hono/hono-base").HonoBase<Environment,
533
536
  } | {
534
537
  output: {
535
538
  error: {
536
- code: "upstream_error";
539
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
537
540
  details?: readonly Response.error.Detail[] | undefined;
538
541
  message: string;
539
542
  };
540
543
  requestId: string;
541
544
  };
542
545
  outputFormat: "json";
543
- status: 502;
546
+ status: 403;
544
547
  input: {
545
548
  param: {
546
549
  orgId: string;
@@ -581,14 +584,14 @@ export declare function usage(): import("hono/hono-base").HonoBase<Environment,
581
584
  } | {
582
585
  output: {
583
586
  error: {
584
- code: "param_invalid";
587
+ code: "payment_required" | "rate_limit_exceeded";
585
588
  details?: readonly Response.error.Detail[] | undefined;
586
589
  message: string;
587
590
  };
588
591
  requestId: string;
589
592
  };
590
593
  outputFormat: "json";
591
- status: 400;
594
+ status: 429;
592
595
  input: {
593
596
  param: {
594
597
  orgId: string;
@@ -604,18 +607,15 @@ export declare function usage(): import("hono/hono-base").HonoBase<Environment,
604
607
  };
605
608
  } | {
606
609
  output: {
607
- data: {
608
- count: number;
609
- failed: number;
610
- feeTotal: {
611
- amount: string;
612
- currency: "usd";
613
- };
614
- timestamp: string;
615
- }[];
610
+ error: {
611
+ code: "upstream_error";
612
+ details?: readonly Response.error.Detail[] | undefined;
613
+ message: string;
614
+ };
615
+ requestId: string;
616
616
  };
617
617
  outputFormat: "json";
618
- status: 200;
618
+ status: 502;
619
619
  input: {
620
620
  param: {
621
621
  orgId: string;