tapimo 0.10.0 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) 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 +6007 -5003
  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 +1 -1
  12. package/dist/Webhooks.d.ts.map +1 -1
  13. package/dist/Webhooks.js +6 -6
  14. package/dist/Webhooks.js.map +1 -1
  15. package/dist/admin/App.d.ts +91 -84
  16. package/dist/admin/App.d.ts.map +1 -1
  17. package/dist/admin/apps/api-keys.d.ts +22 -13
  18. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  19. package/dist/admin/apps/api-keys.js +6 -0
  20. package/dist/admin/apps/api-keys.js.map +1 -1
  21. package/dist/admin/apps/organizations.d.ts +4 -2
  22. package/dist/admin/apps/organizations.d.ts.map +1 -1
  23. package/dist/admin/ui.generated.d.ts +1 -1
  24. package/dist/admin/ui.generated.js +69 -69
  25. package/dist/admin/ui.generated.js.map +1 -1
  26. package/dist/analytics/Analytics.d.ts.map +1 -1
  27. package/dist/analytics/Analytics.js +232 -0
  28. package/dist/analytics/Analytics.js.map +1 -1
  29. package/dist/analytics/tables/requestEvents.d.ts +4 -0
  30. package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
  31. package/dist/analytics/tables/requestEvents.js +2 -0
  32. package/dist/analytics/tables/requestEvents.js.map +1 -1
  33. package/dist/apps/Zones.d.ts +4266 -82
  34. package/dist/apps/Zones.d.ts.map +1 -1
  35. package/dist/apps/Zones.js +27 -8
  36. package/dist/apps/Zones.js.map +1 -1
  37. package/dist/apps/data/App.d.ts +3467 -2696
  38. package/dist/apps/data/App.d.ts.map +1 -1
  39. package/dist/apps/data/App.js +2 -0
  40. package/dist/apps/data/App.js.map +1 -1
  41. package/dist/apps/data/routes/activities.d.ts +2999 -100
  42. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  43. package/dist/apps/data/routes/activities.js +340 -2
  44. package/dist/apps/data/routes/activities.js.map +1 -1
  45. package/dist/apps/data/routes/addresses.d.ts +514 -0
  46. package/dist/apps/data/routes/addresses.d.ts.map +1 -1
  47. package/dist/apps/data/routes/balances.d.ts +26 -26
  48. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  49. package/dist/apps/data/routes/balances.js +7 -3
  50. package/dist/apps/data/routes/balances.js.map +1 -1
  51. package/dist/apps/data/routes/blocks.d.ts +4 -4
  52. package/dist/apps/data/routes/earn.d.ts +75 -75
  53. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  54. package/dist/apps/data/routes/earn.js +65 -36
  55. package/dist/apps/data/routes/earn.js.map +1 -1
  56. package/dist/apps/data/routes/exchanges.d.ts +124 -120
  57. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  58. package/dist/apps/data/routes/exchanges.js +115 -77
  59. package/dist/apps/data/routes/exchanges.js.map +1 -1
  60. package/dist/apps/data/routes/fee-amm.d.ts +24 -24
  61. package/dist/apps/data/routes/indexer.d.ts +2 -1
  62. package/dist/apps/data/routes/indexer.d.ts.map +1 -1
  63. package/dist/apps/data/routes/indexer.js +3 -2
  64. package/dist/apps/data/routes/indexer.js.map +1 -1
  65. package/dist/apps/data/routes/receipts.d.ts +4 -3
  66. package/dist/apps/data/routes/receipts.d.ts.map +1 -1
  67. package/dist/apps/data/routes/receipts.js +15 -14
  68. package/dist/apps/data/routes/receipts.js.map +1 -1
  69. package/dist/apps/data/routes/rpc.d.ts.map +1 -1
  70. package/dist/apps/data/routes/rpc.js +5 -1
  71. package/dist/apps/data/routes/rpc.js.map +1 -1
  72. package/dist/apps/data/routes/tokenlist.d.ts +12 -12
  73. package/dist/apps/data/routes/tokens.d.ts +1 -1
  74. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  75. package/dist/apps/data/routes/tokens.js +4 -3
  76. package/dist/apps/data/routes/tokens.js.map +1 -1
  77. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  78. package/dist/apps/data/routes/transfers.js +25 -7
  79. package/dist/apps/data/routes/transfers.js.map +1 -1
  80. package/dist/apps/data/routes/verified-tokens.d.ts +37 -37
  81. package/dist/apps/data/routes/webhooks.d.ts +71 -1
  82. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  83. package/dist/apps/data/routes/webhooks.js +177 -23
  84. package/dist/apps/data/routes/webhooks.js.map +1 -1
  85. package/dist/apps/data/routes/zones.js +1 -1
  86. package/dist/apps/data/routes/zones.js.map +1 -1
  87. package/dist/apps/funding/App.d.ts +322 -89
  88. package/dist/apps/funding/App.d.ts.map +1 -1
  89. package/dist/apps/funding/routes/deposit-addresses.d.ts +375 -45
  90. package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -1
  91. package/dist/apps/funding/routes/deposit-addresses.js +208 -12
  92. package/dist/apps/funding/routes/deposit-addresses.js.map +1 -1
  93. package/dist/apps/funding/routes/transfers.d.ts +32 -32
  94. package/dist/apps/funding/routes/transfers.js +1 -1
  95. package/dist/apps/funding/routes/transfers.js.map +1 -1
  96. package/dist/apps/management/App.d.ts +418 -418
  97. package/dist/apps/management/routes/api-keys.d.ts +50 -50
  98. package/dist/apps/management/routes/billing.d.ts +72 -72
  99. package/dist/apps/management/routes/billing.js +1 -1
  100. package/dist/apps/management/routes/billing.js.map +1 -1
  101. package/dist/apps/management/routes/faucet.d.ts +8 -8
  102. package/dist/apps/management/routes/faucet.js +2 -2
  103. package/dist/apps/management/routes/faucet.js.map +1 -1
  104. package/dist/apps/management/routes/invite-links.d.ts +42 -42
  105. package/dist/apps/management/routes/me.d.ts +6 -6
  106. package/dist/apps/management/routes/members.d.ts +14 -14
  107. package/dist/apps/management/routes/projects.d.ts +40 -40
  108. package/dist/apps/management/routes/usage.d.ts +8 -8
  109. package/dist/apps/management/routes/webhooks.d.ts +49 -49
  110. package/dist/apps/mcp.d.ts.map +1 -1
  111. package/dist/apps/mcp.js +4 -1
  112. package/dist/apps/mcp.js.map +1 -1
  113. package/dist/db/Db.d.ts +2 -0
  114. package/dist/db/Db.d.ts.map +1 -1
  115. package/dist/db/Db.js +90 -0
  116. package/dist/db/Db.js.map +1 -1
  117. package/dist/db/Schema.d.ts +19 -0
  118. package/dist/db/Schema.d.ts.map +1 -1
  119. package/dist/db/Schema.js +24 -0
  120. package/dist/db/Schema.js.map +1 -1
  121. package/dist/db/tables/fundingDepositAddresses.d.ts +20 -0
  122. package/dist/db/tables/fundingDepositAddresses.d.ts.map +1 -1
  123. package/dist/db/tables/fundingDepositAddresses.js +17 -0
  124. package/dist/db/tables/fundingDepositAddresses.js.map +1 -1
  125. package/dist/db/tables/fundingDeposits.d.ts +41 -0
  126. package/dist/db/tables/fundingDeposits.d.ts.map +1 -1
  127. package/dist/db/tables/fundingDeposits.js +69 -0
  128. package/dist/db/tables/fundingDeposits.js.map +1 -1
  129. package/dist/db/tables/webhookQueueEvents.d.ts +122 -0
  130. package/dist/db/tables/webhookQueueEvents.d.ts.map +1 -0
  131. package/dist/db/tables/webhookQueueEvents.js +160 -0
  132. package/dist/db/tables/webhookQueueEvents.js.map +1 -0
  133. package/dist/db/tables/webhookSubscriptions.d.ts +2 -0
  134. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
  135. package/dist/db/tables/webhookSubscriptions.js +10 -0
  136. package/dist/db/tables/webhookSubscriptions.js.map +1 -1
  137. package/dist/internal/Auth.d.ts +3 -26
  138. package/dist/internal/Auth.d.ts.map +1 -1
  139. package/dist/internal/Auth.js +6 -37
  140. package/dist/internal/Auth.js.map +1 -1
  141. package/dist/internal/Credential.d.ts +27 -0
  142. package/dist/internal/Credential.d.ts.map +1 -0
  143. package/dist/internal/Credential.js +34 -0
  144. package/dist/internal/Credential.js.map +1 -0
  145. package/dist/internal/EarnRates.js +11 -7
  146. package/dist/internal/EarnRates.js.map +1 -1
  147. package/dist/internal/Log.d.ts +8 -0
  148. package/dist/internal/Log.d.ts.map +1 -1
  149. package/dist/internal/Log.js +4 -0
  150. package/dist/internal/Log.js.map +1 -1
  151. package/dist/internal/MetricSink.d.ts +51 -0
  152. package/dist/internal/MetricSink.d.ts.map +1 -1
  153. package/dist/internal/MetricSink.js +54 -2
  154. package/dist/internal/MetricSink.js.map +1 -1
  155. package/dist/internal/RateLimit.d.ts +4 -6
  156. package/dist/internal/RateLimit.d.ts.map +1 -1
  157. package/dist/internal/RateLimit.js +15 -14
  158. package/dist/internal/RateLimit.js.map +1 -1
  159. package/dist/internal/Store.d.ts +2 -1
  160. package/dist/internal/Store.d.ts.map +1 -1
  161. package/dist/internal/Store.js +57 -18
  162. package/dist/internal/Store.js.map +1 -1
  163. package/dist/internal/Tidx.d.ts +4 -3
  164. package/dist/internal/Tidx.d.ts.map +1 -1
  165. package/dist/internal/Tidx.js +2 -2
  166. package/dist/internal/Tidx.js.map +1 -1
  167. package/dist/internal/Value.d.ts +2 -0
  168. package/dist/internal/Value.d.ts.map +1 -1
  169. package/dist/internal/Value.js +25 -0
  170. package/dist/internal/Value.js.map +1 -1
  171. package/dist/internal/Viem.d.ts +4 -3
  172. package/dist/internal/Viem.d.ts.map +1 -1
  173. package/dist/internal/Viem.js +3 -2
  174. package/dist/internal/Viem.js.map +1 -1
  175. package/dist/internal/WebhookTransfer.d.ts +20 -0
  176. package/dist/internal/WebhookTransfer.d.ts.map +1 -1
  177. package/dist/internal/WebhookTransfer.js +7 -4
  178. package/dist/internal/WebhookTransfer.js.map +1 -1
  179. package/dist/internal/Webhooks.d.ts +141 -0
  180. package/dist/internal/Webhooks.d.ts.map +1 -1
  181. package/dist/internal/Webhooks.js +139 -10
  182. package/dist/internal/Webhooks.js.map +1 -1
  183. package/dist/internal/funding/providers/relay.d.ts +3 -4
  184. package/dist/internal/funding/providers/relay.d.ts.map +1 -1
  185. package/dist/internal/funding/providers/relay.js +59 -8
  186. package/dist/internal/funding/providers/relay.js.map +1 -1
  187. package/dist/internal/index.d.ts +1 -0
  188. package/dist/internal/index.d.ts.map +1 -1
  189. package/dist/internal/index.js +1 -0
  190. package/dist/internal/index.js.map +1 -1
  191. package/package.json +3 -3
  192. package/src/ApiKeys.test.ts +20 -0
  193. package/src/ApiKeys.ts +28 -1
  194. package/src/App.test.ts +40 -8
  195. package/src/App.ts +1 -0
  196. package/src/Client.test-d.ts +34 -1
  197. package/src/Webhooks.ts +20 -18
  198. package/src/admin/apps/api-keys.test.ts +9 -0
  199. package/src/admin/apps/api-keys.ts +15 -0
  200. package/src/admin/ui/src/lib/query-client.ts +3 -2
  201. package/src/admin/ui/src/routes/api-keys.tsx +31 -9
  202. package/src/admin/ui.generated.ts +69 -69
  203. package/src/analytics/Analytics.test.ts +42 -0
  204. package/src/analytics/Analytics.ts +232 -0
  205. package/src/analytics/tables/requestEvents.ts +6 -0
  206. package/src/apps/Zones.test.ts +20 -3
  207. package/src/apps/Zones.ts +28 -8
  208. package/src/apps/composition.test.ts +2 -0
  209. package/src/apps/data/App.test.ts +2 -2
  210. package/src/apps/data/App.ts +2 -0
  211. package/src/apps/data/routes/activities.bench.ts +41 -0
  212. package/src/apps/data/routes/activities.test.ts +103 -2
  213. package/src/apps/data/routes/activities.ts +401 -2
  214. package/src/apps/data/routes/balances.bench.ts +21 -0
  215. package/src/apps/data/routes/balances.ts +7 -3
  216. package/src/apps/data/routes/blocks.bench.ts +34 -0
  217. package/src/apps/data/routes/coingecko.bench.ts +53 -0
  218. package/src/apps/data/routes/earn.bench.ts +71 -0
  219. package/src/apps/data/routes/earn.ts +66 -36
  220. package/src/apps/data/routes/exchanges.bench.ts +85 -0
  221. package/src/apps/data/routes/exchanges.test.ts +8 -3
  222. package/src/apps/data/routes/exchanges.ts +134 -82
  223. package/src/apps/data/routes/fee-amm.bench.ts +13 -0
  224. package/src/apps/data/routes/indexer.bench.ts +8 -0
  225. package/src/apps/data/routes/indexer.test.ts +2 -1
  226. package/src/apps/data/routes/indexer.ts +3 -2
  227. package/src/apps/data/routes/receipts.bench.ts +39 -0
  228. package/src/apps/data/routes/receipts.ts +16 -14
  229. package/src/apps/data/routes/rpc.bench.ts +14 -0
  230. package/src/apps/data/routes/rpc.test.ts +27 -0
  231. package/src/apps/data/routes/rpc.ts +5 -1
  232. package/src/apps/data/routes/tokenlist.bench.ts +3 -0
  233. package/src/apps/data/routes/tokens.bench.ts +76 -0
  234. package/src/apps/data/routes/tokens.ts +3 -2
  235. package/src/apps/data/routes/transactions.bench.ts +48 -0
  236. package/src/apps/data/routes/transfers.bench.ts +28 -0
  237. package/src/apps/data/routes/transfers.ts +36 -10
  238. package/src/apps/data/routes/valuation.bench.ts +14 -0
  239. package/src/apps/data/routes/verified-tokens.bench.ts +8 -0
  240. package/src/apps/data/routes/webhooks.bench.ts +26 -0
  241. package/src/apps/data/routes/webhooks.scan.test.ts +326 -0
  242. package/src/apps/data/routes/webhooks.test.ts +53 -6
  243. package/src/apps/data/routes/webhooks.ts +252 -24
  244. package/src/apps/data/routes/zones.bench.ts +32 -0
  245. package/src/apps/data/routes/zones.test.ts +1 -1
  246. package/src/apps/data/routes/zones.ts +1 -1
  247. package/src/apps/funding/routes/chains.test.ts +1 -1
  248. package/src/apps/funding/routes/deposit-addresses.test.ts +217 -3
  249. package/src/apps/funding/routes/deposit-addresses.ts +255 -19
  250. package/src/apps/funding/routes/providers.test.ts +1 -1
  251. package/src/apps/funding/routes/quotes.test.ts +1 -1
  252. package/src/apps/funding/routes/transfers.test.ts +20 -8
  253. package/src/apps/funding/routes/transfers.ts +1 -1
  254. package/src/apps/management/routes/billing.ts +1 -1
  255. package/src/apps/management/routes/faucet.ts +2 -2
  256. package/src/apps/management/routes/me.test.ts +31 -0
  257. package/src/apps/mcp.ts +4 -1
  258. package/src/db/Db.ts +117 -0
  259. package/src/db/Schema.ts +32 -0
  260. package/src/db/tables/fundingDepositAddresses.test.ts +28 -0
  261. package/src/db/tables/fundingDepositAddresses.ts +39 -0
  262. package/src/db/tables/fundingDeposits.test.ts +82 -0
  263. package/src/db/tables/fundingDeposits.ts +130 -0
  264. package/src/db/tables/webhookQueueEvents.ts +285 -0
  265. package/src/db/tables/webhookSubscriptions.ts +15 -0
  266. package/src/internal/Auth.test.ts +61 -98
  267. package/src/internal/Auth.ts +9 -63
  268. package/src/internal/Credential.test.ts +51 -0
  269. package/src/internal/Credential.ts +58 -0
  270. package/src/internal/EarnRates.ts +13 -7
  271. package/src/internal/EarnVaults.test.ts +2 -2
  272. package/src/internal/Log.test.ts +3 -1
  273. package/src/internal/Log.ts +14 -0
  274. package/src/internal/MetricSink.test.ts +108 -2
  275. package/src/internal/MetricSink.ts +112 -2
  276. package/src/internal/RateLimit.test.ts +23 -18
  277. package/src/internal/RateLimit.ts +23 -15
  278. package/src/internal/Store.test.ts +99 -13
  279. package/src/internal/Store.ts +52 -17
  280. package/src/internal/Tidx.test.ts +4 -4
  281. package/src/internal/Tidx.ts +5 -4
  282. package/src/internal/Value.test.ts +25 -0
  283. package/src/internal/Value.ts +29 -0
  284. package/src/internal/Viem.test.ts +4 -0
  285. package/src/internal/Viem.ts +6 -4
  286. package/src/internal/WebhookTransfer.test.ts +89 -0
  287. package/src/internal/WebhookTransfer.ts +11 -7
  288. package/src/internal/Webhooks.test.ts +488 -0
  289. package/src/internal/Webhooks.ts +291 -10
  290. package/src/internal/funding/Provider.test.ts +1 -1
  291. package/src/internal/funding/providers/index.test.ts +73 -3
  292. package/src/internal/funding/providers/relay.test.ts +1 -5
  293. package/src/internal/funding/providers/relay.ts +56 -12
  294. package/src/internal/index.test.ts +1 -0
  295. package/src/internal/index.ts +1 -0
@@ -135,14 +135,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
135
135
  $get: {
136
136
  output: {
137
137
  error: {
138
- code: "upstream_error";
138
+ code: "api_key_malformed";
139
139
  details?: readonly Response.error.Detail[] | undefined;
140
140
  message: string;
141
141
  };
142
142
  requestId: string;
143
143
  };
144
144
  outputFormat: "json";
145
- status: 502;
145
+ status: 400;
146
146
  input: {
147
147
  param: {
148
148
  orgId: string;
@@ -155,14 +155,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
155
155
  } | {
156
156
  output: {
157
157
  error: {
158
- code: "api_key_malformed";
158
+ code: "api_key_invalid" | "api_key_missing";
159
159
  details?: readonly Response.error.Detail[] | undefined;
160
160
  message: string;
161
161
  };
162
162
  requestId: string;
163
163
  };
164
164
  outputFormat: "json";
165
- status: 400;
165
+ status: 401;
166
166
  input: {
167
167
  param: {
168
168
  orgId: string;
@@ -175,14 +175,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
175
175
  } | {
176
176
  output: {
177
177
  error: {
178
- code: "api_key_invalid" | "api_key_missing";
178
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
179
179
  details?: readonly Response.error.Detail[] | undefined;
180
180
  message: string;
181
181
  };
182
182
  requestId: string;
183
183
  };
184
184
  outputFormat: "json";
185
- status: 401;
185
+ status: 403;
186
186
  input: {
187
187
  param: {
188
188
  orgId: string;
@@ -195,14 +195,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
195
195
  } | {
196
196
  output: {
197
197
  error: {
198
- code: "api_key_forbidden" | "api_key_ip_forbidden";
198
+ code: "payment_required" | "rate_limit_exceeded";
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: 403;
205
+ status: 429;
206
206
  input: {
207
207
  param: {
208
208
  orgId: string;
@@ -215,14 +215,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
215
215
  } | {
216
216
  output: {
217
217
  error: {
218
- code: "payment_required" | "rate_limit_exceeded";
218
+ code: "query_invalid";
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: 429;
225
+ status: 400;
226
226
  input: {
227
227
  param: {
228
228
  orgId: string;
@@ -235,14 +235,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
235
235
  } | {
236
236
  output: {
237
237
  error: {
238
- code: "query_invalid";
238
+ code: "upstream_error";
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: 400;
245
+ status: 502;
246
246
  input: {
247
247
  param: {
248
248
  orgId: string;
@@ -330,14 +330,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
330
330
  $patch: {
331
331
  output: {
332
332
  error: {
333
- code: "upstream_error";
333
+ code: "api_key_malformed";
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: 502;
340
+ status: 400;
341
341
  input: {
342
342
  param: {
343
343
  orgId: string;
@@ -362,14 +362,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
362
362
  } | {
363
363
  output: {
364
364
  error: {
365
- code: "api_key_malformed";
365
+ code: "api_key_invalid" | "api_key_missing";
366
366
  details?: readonly Response.error.Detail[] | undefined;
367
367
  message: string;
368
368
  };
369
369
  requestId: string;
370
370
  };
371
371
  outputFormat: "json";
372
- status: 400;
372
+ status: 401;
373
373
  input: {
374
374
  param: {
375
375
  orgId: string;
@@ -394,14 +394,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
394
394
  } | {
395
395
  output: {
396
396
  error: {
397
- code: "api_key_invalid" | "api_key_missing";
397
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
398
398
  details?: readonly Response.error.Detail[] | undefined;
399
399
  message: string;
400
400
  };
401
401
  requestId: string;
402
402
  };
403
403
  outputFormat: "json";
404
- status: 401;
404
+ status: 403;
405
405
  input: {
406
406
  param: {
407
407
  orgId: string;
@@ -426,14 +426,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
426
426
  } | {
427
427
  output: {
428
428
  error: {
429
- code: "api_key_forbidden" | "api_key_ip_forbidden";
429
+ code: "payment_required" | "rate_limit_exceeded";
430
430
  details?: readonly Response.error.Detail[] | undefined;
431
431
  message: string;
432
432
  };
433
433
  requestId: string;
434
434
  };
435
435
  outputFormat: "json";
436
- status: 403;
436
+ status: 429;
437
437
  input: {
438
438
  param: {
439
439
  orgId: string;
@@ -458,14 +458,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
458
458
  } | {
459
459
  output: {
460
460
  error: {
461
- code: "payment_required" | "rate_limit_exceeded";
461
+ code: "query_invalid";
462
462
  details?: readonly Response.error.Detail[] | undefined;
463
463
  message: string;
464
464
  };
465
465
  requestId: string;
466
466
  };
467
467
  outputFormat: "json";
468
- status: 429;
468
+ status: 400;
469
469
  input: {
470
470
  param: {
471
471
  orgId: string;
@@ -490,14 +490,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
490
490
  } | {
491
491
  output: {
492
492
  error: {
493
- code: "query_invalid";
493
+ code: "upstream_error";
494
494
  details?: readonly Response.error.Detail[] | undefined;
495
495
  message: string;
496
496
  };
497
497
  requestId: string;
498
498
  };
499
499
  outputFormat: "json";
500
- status: 400;
500
+ status: 502;
501
501
  input: {
502
502
  param: {
503
503
  orgId: string;
@@ -665,14 +665,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
665
665
  $post: {
666
666
  output: {
667
667
  error: {
668
- code: "upstream_error";
668
+ code: "api_key_malformed";
669
669
  details?: readonly Response.error.Detail[] | undefined;
670
670
  message: string;
671
671
  };
672
672
  requestId: string;
673
673
  };
674
674
  outputFormat: "json";
675
- status: 502;
675
+ status: 400;
676
676
  input: {
677
677
  param: {
678
678
  orgId: string;
@@ -685,14 +685,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
685
685
  } | {
686
686
  output: {
687
687
  error: {
688
- code: "api_key_malformed";
688
+ code: "api_key_invalid" | "api_key_missing";
689
689
  details?: readonly Response.error.Detail[] | undefined;
690
690
  message: string;
691
691
  };
692
692
  requestId: string;
693
693
  };
694
694
  outputFormat: "json";
695
- status: 400;
695
+ status: 401;
696
696
  input: {
697
697
  param: {
698
698
  orgId: string;
@@ -705,14 +705,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
705
705
  } | {
706
706
  output: {
707
707
  error: {
708
- code: "api_key_invalid" | "api_key_missing";
708
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
709
709
  details?: readonly Response.error.Detail[] | undefined;
710
710
  message: string;
711
711
  };
712
712
  requestId: string;
713
713
  };
714
714
  outputFormat: "json";
715
- status: 401;
715
+ status: 403;
716
716
  input: {
717
717
  param: {
718
718
  orgId: string;
@@ -725,14 +725,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
725
725
  } | {
726
726
  output: {
727
727
  error: {
728
- code: "api_key_forbidden" | "api_key_ip_forbidden";
728
+ code: "payment_required" | "rate_limit_exceeded";
729
729
  details?: readonly Response.error.Detail[] | undefined;
730
730
  message: string;
731
731
  };
732
732
  requestId: string;
733
733
  };
734
734
  outputFormat: "json";
735
- status: 403;
735
+ status: 429;
736
736
  input: {
737
737
  param: {
738
738
  orgId: string;
@@ -745,14 +745,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
745
745
  } | {
746
746
  output: {
747
747
  error: {
748
- code: "payment_required" | "rate_limit_exceeded";
748
+ code: "query_invalid";
749
749
  details?: readonly Response.error.Detail[] | undefined;
750
750
  message: string;
751
751
  };
752
752
  requestId: string;
753
753
  };
754
754
  outputFormat: "json";
755
- status: 429;
755
+ status: 400;
756
756
  input: {
757
757
  param: {
758
758
  orgId: string;
@@ -765,14 +765,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
765
765
  } | {
766
766
  output: {
767
767
  error: {
768
- code: "query_invalid";
768
+ code: "upstream_error";
769
769
  details?: readonly Response.error.Detail[] | undefined;
770
770
  message: string;
771
771
  };
772
772
  requestId: string;
773
773
  };
774
774
  outputFormat: "json";
775
- status: 400;
775
+ status: 502;
776
776
  input: {
777
777
  param: {
778
778
  orgId: string;
@@ -904,14 +904,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
904
904
  $post: {
905
905
  output: {
906
906
  error: {
907
- code: "upstream_error";
907
+ code: "api_key_malformed";
908
908
  details?: readonly Response.error.Detail[] | undefined;
909
909
  message: string;
910
910
  };
911
911
  requestId: string;
912
912
  };
913
913
  outputFormat: "json";
914
- status: 502;
914
+ status: 400;
915
915
  input: {
916
916
  param: {
917
917
  orgId: string;
@@ -924,14 +924,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
924
924
  } | {
925
925
  output: {
926
926
  error: {
927
- code: "api_key_malformed";
927
+ code: "api_key_invalid" | "api_key_missing";
928
928
  details?: readonly Response.error.Detail[] | undefined;
929
929
  message: string;
930
930
  };
931
931
  requestId: string;
932
932
  };
933
933
  outputFormat: "json";
934
- status: 400;
934
+ status: 401;
935
935
  input: {
936
936
  param: {
937
937
  orgId: string;
@@ -944,14 +944,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
944
944
  } | {
945
945
  output: {
946
946
  error: {
947
- code: "api_key_invalid" | "api_key_missing";
947
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
948
948
  details?: readonly Response.error.Detail[] | undefined;
949
949
  message: string;
950
950
  };
951
951
  requestId: string;
952
952
  };
953
953
  outputFormat: "json";
954
- status: 401;
954
+ status: 403;
955
955
  input: {
956
956
  param: {
957
957
  orgId: string;
@@ -964,14 +964,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
964
964
  } | {
965
965
  output: {
966
966
  error: {
967
- code: "api_key_forbidden" | "api_key_ip_forbidden";
967
+ code: "payment_required" | "rate_limit_exceeded";
968
968
  details?: readonly Response.error.Detail[] | undefined;
969
969
  message: string;
970
970
  };
971
971
  requestId: string;
972
972
  };
973
973
  outputFormat: "json";
974
- status: 403;
974
+ status: 429;
975
975
  input: {
976
976
  param: {
977
977
  orgId: string;
@@ -984,14 +984,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
984
984
  } | {
985
985
  output: {
986
986
  error: {
987
- code: "payment_required" | "rate_limit_exceeded";
987
+ code: "query_invalid";
988
988
  details?: readonly Response.error.Detail[] | undefined;
989
989
  message: string;
990
990
  };
991
991
  requestId: string;
992
992
  };
993
993
  outputFormat: "json";
994
- status: 429;
994
+ status: 400;
995
995
  input: {
996
996
  param: {
997
997
  orgId: string;
@@ -1004,14 +1004,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1004
1004
  } | {
1005
1005
  output: {
1006
1006
  error: {
1007
- code: "query_invalid";
1007
+ code: "upstream_error";
1008
1008
  details?: readonly Response.error.Detail[] | undefined;
1009
1009
  message: string;
1010
1010
  };
1011
1011
  requestId: string;
1012
1012
  };
1013
1013
  outputFormat: "json";
1014
- status: 400;
1014
+ status: 502;
1015
1015
  input: {
1016
1016
  param: {
1017
1017
  orgId: string;
@@ -1123,14 +1123,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1123
1123
  $get: {
1124
1124
  output: {
1125
1125
  error: {
1126
- code: "upstream_error";
1126
+ code: "api_key_malformed";
1127
1127
  details?: readonly Response.error.Detail[] | undefined;
1128
1128
  message: string;
1129
1129
  };
1130
1130
  requestId: string;
1131
1131
  };
1132
1132
  outputFormat: "json";
1133
- status: 502;
1133
+ status: 400;
1134
1134
  input: {
1135
1135
  param: {
1136
1136
  orgId: string;
@@ -1143,14 +1143,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1143
1143
  } | {
1144
1144
  output: {
1145
1145
  error: {
1146
- code: "api_key_malformed";
1146
+ code: "api_key_invalid" | "api_key_missing";
1147
1147
  details?: readonly Response.error.Detail[] | undefined;
1148
1148
  message: string;
1149
1149
  };
1150
1150
  requestId: string;
1151
1151
  };
1152
1152
  outputFormat: "json";
1153
- status: 400;
1153
+ status: 401;
1154
1154
  input: {
1155
1155
  param: {
1156
1156
  orgId: string;
@@ -1163,14 +1163,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1163
1163
  } | {
1164
1164
  output: {
1165
1165
  error: {
1166
- code: "api_key_invalid" | "api_key_missing";
1166
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1167
1167
  details?: readonly Response.error.Detail[] | undefined;
1168
1168
  message: string;
1169
1169
  };
1170
1170
  requestId: string;
1171
1171
  };
1172
1172
  outputFormat: "json";
1173
- status: 401;
1173
+ status: 403;
1174
1174
  input: {
1175
1175
  param: {
1176
1176
  orgId: string;
@@ -1183,14 +1183,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1183
1183
  } | {
1184
1184
  output: {
1185
1185
  error: {
1186
- code: "api_key_forbidden" | "api_key_ip_forbidden";
1186
+ code: "payment_required" | "rate_limit_exceeded";
1187
1187
  details?: readonly Response.error.Detail[] | undefined;
1188
1188
  message: string;
1189
1189
  };
1190
1190
  requestId: string;
1191
1191
  };
1192
1192
  outputFormat: "json";
1193
- status: 403;
1193
+ status: 429;
1194
1194
  input: {
1195
1195
  param: {
1196
1196
  orgId: string;
@@ -1203,14 +1203,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1203
1203
  } | {
1204
1204
  output: {
1205
1205
  error: {
1206
- code: "payment_required" | "rate_limit_exceeded";
1206
+ code: "query_invalid";
1207
1207
  details?: readonly Response.error.Detail[] | undefined;
1208
1208
  message: string;
1209
1209
  };
1210
1210
  requestId: string;
1211
1211
  };
1212
1212
  outputFormat: "json";
1213
- status: 429;
1213
+ status: 400;
1214
1214
  input: {
1215
1215
  param: {
1216
1216
  orgId: string;
@@ -1223,14 +1223,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1223
1223
  } | {
1224
1224
  output: {
1225
1225
  error: {
1226
- code: "query_invalid";
1226
+ code: "upstream_error";
1227
1227
  details?: readonly Response.error.Detail[] | undefined;
1228
1228
  message: string;
1229
1229
  };
1230
1230
  requestId: string;
1231
1231
  };
1232
1232
  outputFormat: "json";
1233
- status: 400;
1233
+ status: 502;
1234
1234
  input: {
1235
1235
  param: {
1236
1236
  orgId: string;
@@ -1334,14 +1334,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1334
1334
  $delete: {
1335
1335
  output: {
1336
1336
  error: {
1337
- code: "upstream_error";
1337
+ code: "api_key_malformed";
1338
1338
  details?: readonly Response.error.Detail[] | undefined;
1339
1339
  message: string;
1340
1340
  };
1341
1341
  requestId: string;
1342
1342
  };
1343
1343
  outputFormat: "json";
1344
- status: 502;
1344
+ status: 400;
1345
1345
  input: {
1346
1346
  param: {
1347
1347
  methodId: string;
@@ -1355,14 +1355,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1355
1355
  } | {
1356
1356
  output: {
1357
1357
  error: {
1358
- code: "api_key_malformed";
1358
+ code: "api_key_invalid" | "api_key_missing";
1359
1359
  details?: readonly Response.error.Detail[] | undefined;
1360
1360
  message: string;
1361
1361
  };
1362
1362
  requestId: string;
1363
1363
  };
1364
1364
  outputFormat: "json";
1365
- status: 400;
1365
+ status: 401;
1366
1366
  input: {
1367
1367
  param: {
1368
1368
  methodId: string;
@@ -1376,14 +1376,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1376
1376
  } | {
1377
1377
  output: {
1378
1378
  error: {
1379
- code: "api_key_invalid" | "api_key_missing";
1379
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1380
1380
  details?: readonly Response.error.Detail[] | undefined;
1381
1381
  message: string;
1382
1382
  };
1383
1383
  requestId: string;
1384
1384
  };
1385
1385
  outputFormat: "json";
1386
- status: 401;
1386
+ status: 403;
1387
1387
  input: {
1388
1388
  param: {
1389
1389
  methodId: string;
@@ -1397,14 +1397,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1397
1397
  } | {
1398
1398
  output: {
1399
1399
  error: {
1400
- code: "api_key_forbidden" | "api_key_ip_forbidden";
1400
+ code: "payment_required" | "rate_limit_exceeded";
1401
1401
  details?: readonly Response.error.Detail[] | undefined;
1402
1402
  message: string;
1403
1403
  };
1404
1404
  requestId: string;
1405
1405
  };
1406
1406
  outputFormat: "json";
1407
- status: 403;
1407
+ status: 429;
1408
1408
  input: {
1409
1409
  param: {
1410
1410
  methodId: string;
@@ -1418,14 +1418,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1418
1418
  } | {
1419
1419
  output: {
1420
1420
  error: {
1421
- code: "payment_required" | "rate_limit_exceeded";
1421
+ code: "query_invalid";
1422
1422
  details?: readonly Response.error.Detail[] | undefined;
1423
1423
  message: string;
1424
1424
  };
1425
1425
  requestId: string;
1426
1426
  };
1427
1427
  outputFormat: "json";
1428
- status: 429;
1428
+ status: 400;
1429
1429
  input: {
1430
1430
  param: {
1431
1431
  methodId: string;
@@ -1439,14 +1439,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1439
1439
  } | {
1440
1440
  output: {
1441
1441
  error: {
1442
- code: "query_invalid";
1442
+ code: "upstream_error";
1443
1443
  details?: readonly Response.error.Detail[] | undefined;
1444
1444
  message: string;
1445
1445
  };
1446
1446
  requestId: string;
1447
1447
  };
1448
1448
  outputFormat: "json";
1449
- status: 400;
1449
+ status: 502;
1450
1450
  input: {
1451
1451
  param: {
1452
1452
  methodId: string;
@@ -554,7 +554,7 @@ export function billing() {
554
554
  Auth.policy({
555
555
  apiKey: false,
556
556
  mpp: false,
557
- public: { rateLimit: { perMinute: 600 } },
557
+ public: { rateLimit: { limit: 600, period: 'minute' } },
558
558
  session: false,
559
559
  }), OpenApi.describeRoute({ hide: true, summary: 'Stripe webhook' }), async (c) => {
560
560
  const billing = c.get('billing');