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
@@ -56,6 +56,10 @@ export declare namespace schema {
56
56
  }, z.core.$strip>;
57
57
  /** An organization's billing state. */
58
58
  const Billing: z.ZodMiniObject<{
59
+ enabledSources: z.ZodMiniArray<z.ZodMiniEnum<{
60
+ stripe: "stripe";
61
+ tempo: "tempo";
62
+ }>>;
59
63
  spend: z.ZodMiniOptional<z.ZodMiniObject<{
60
64
  amount: z.ZodMiniString<string>;
61
65
  currency: z.ZodMiniEnum<{
@@ -124,21 +128,21 @@ export declare namespace schema {
124
128
  }, z.core.$strip>;
125
129
  }
126
130
  /**
127
- * Mounts billing routes. Reads require membership or scoped API key access; organizations without Stripe state return `none`.
131
+ * Mounts billing routes. Reads require membership or scoped API key access; organizations without provider state return `none`.
128
132
  */
129
133
  export declare function billing(): import("hono/hono-base").HonoBase<Environment, {
130
134
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing": {
131
135
  $get: {
132
136
  output: {
133
137
  error: {
134
- code: "api_key_malformed";
138
+ code: "upstream_error";
135
139
  details?: readonly Response.error.Detail[] | undefined;
136
140
  message: string;
137
141
  };
138
142
  requestId: string;
139
143
  };
140
144
  outputFormat: "json";
141
- status: 400;
145
+ status: 502;
142
146
  input: {
143
147
  param: {
144
148
  orgId: string;
@@ -151,14 +155,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
151
155
  } | {
152
156
  output: {
153
157
  error: {
154
- code: "api_key_invalid" | "api_key_missing";
158
+ code: "api_key_malformed";
155
159
  details?: readonly Response.error.Detail[] | undefined;
156
160
  message: string;
157
161
  };
158
162
  requestId: string;
159
163
  };
160
164
  outputFormat: "json";
161
- status: 401;
165
+ status: 400;
162
166
  input: {
163
167
  param: {
164
168
  orgId: string;
@@ -171,14 +175,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
171
175
  } | {
172
176
  output: {
173
177
  error: {
174
- code: "api_key_forbidden";
178
+ code: "api_key_invalid" | "api_key_missing";
175
179
  details?: readonly Response.error.Detail[] | undefined;
176
180
  message: string;
177
181
  };
178
182
  requestId: string;
179
183
  };
180
184
  outputFormat: "json";
181
- status: 403;
185
+ status: 401;
182
186
  input: {
183
187
  param: {
184
188
  orgId: string;
@@ -191,14 +195,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
191
195
  } | {
192
196
  output: {
193
197
  error: {
194
- code: "payment_required" | "rate_limit_exceeded";
198
+ code: "api_key_forbidden";
195
199
  details?: readonly Response.error.Detail[] | undefined;
196
200
  message: string;
197
201
  };
198
202
  requestId: string;
199
203
  };
200
204
  outputFormat: "json";
201
- status: 429;
205
+ status: 403;
202
206
  input: {
203
207
  param: {
204
208
  orgId: string;
@@ -211,14 +215,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
211
215
  } | {
212
216
  output: {
213
217
  error: {
214
- code: "query_invalid";
218
+ code: "payment_required" | "rate_limit_exceeded";
215
219
  details?: readonly Response.error.Detail[] | undefined;
216
220
  message: string;
217
221
  };
218
222
  requestId: string;
219
223
  };
220
224
  outputFormat: "json";
221
- status: 400;
225
+ status: 429;
222
226
  input: {
223
227
  param: {
224
228
  orgId: string;
@@ -231,14 +235,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
231
235
  } | {
232
236
  output: {
233
237
  error: {
234
- code: "upstream_error";
238
+ code: "query_invalid";
235
239
  details?: readonly Response.error.Detail[] | undefined;
236
240
  message: string;
237
241
  };
238
242
  requestId: string;
239
243
  };
240
244
  outputFormat: "json";
241
- status: 502;
245
+ status: 400;
242
246
  input: {
243
247
  param: {
244
248
  orgId: string;
@@ -290,26 +294,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
290
294
  };
291
295
  } | {
292
296
  output: {
293
- error: {
294
- code: "billing_unconfigured";
295
- details?: readonly Response.error.Detail[] | undefined;
296
- message: string;
297
- };
298
- requestId: string;
299
- };
300
- outputFormat: "json";
301
- status: 501;
302
- input: {
303
- param: {
304
- orgId: string;
305
- };
306
- } & {
307
- query?: {
308
- environment?: string | string[];
309
- } | undefined;
310
- };
311
- } | {
312
- output: {
297
+ enabledSources: ("stripe" | "tempo")[];
313
298
  spend?: {
314
299
  amount: string;
315
300
  currency: "usd";
@@ -345,14 +330,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
345
330
  $patch: {
346
331
  output: {
347
332
  error: {
348
- code: "api_key_malformed";
333
+ code: "upstream_error";
349
334
  details?: readonly Response.error.Detail[] | undefined;
350
335
  message: string;
351
336
  };
352
337
  requestId: string;
353
338
  };
354
339
  outputFormat: "json";
355
- status: 400;
340
+ status: 502;
356
341
  input: {
357
342
  param: {
358
343
  orgId: string;
@@ -377,14 +362,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
377
362
  } | {
378
363
  output: {
379
364
  error: {
380
- code: "api_key_invalid" | "api_key_missing";
365
+ code: "api_key_malformed";
381
366
  details?: readonly Response.error.Detail[] | undefined;
382
367
  message: string;
383
368
  };
384
369
  requestId: string;
385
370
  };
386
371
  outputFormat: "json";
387
- status: 401;
372
+ status: 400;
388
373
  input: {
389
374
  param: {
390
375
  orgId: string;
@@ -409,14 +394,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
409
394
  } | {
410
395
  output: {
411
396
  error: {
412
- code: "api_key_forbidden";
397
+ code: "api_key_invalid" | "api_key_missing";
413
398
  details?: readonly Response.error.Detail[] | undefined;
414
399
  message: string;
415
400
  };
416
401
  requestId: string;
417
402
  };
418
403
  outputFormat: "json";
419
- status: 403;
404
+ status: 401;
420
405
  input: {
421
406
  param: {
422
407
  orgId: string;
@@ -441,14 +426,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
441
426
  } | {
442
427
  output: {
443
428
  error: {
444
- code: "payment_required" | "rate_limit_exceeded";
429
+ code: "api_key_forbidden";
445
430
  details?: readonly Response.error.Detail[] | undefined;
446
431
  message: string;
447
432
  };
448
433
  requestId: string;
449
434
  };
450
435
  outputFormat: "json";
451
- status: 429;
436
+ status: 403;
452
437
  input: {
453
438
  param: {
454
439
  orgId: string;
@@ -473,14 +458,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
473
458
  } | {
474
459
  output: {
475
460
  error: {
476
- code: "query_invalid";
461
+ code: "payment_required" | "rate_limit_exceeded";
477
462
  details?: readonly Response.error.Detail[] | undefined;
478
463
  message: string;
479
464
  };
480
465
  requestId: string;
481
466
  };
482
467
  outputFormat: "json";
483
- status: 400;
468
+ status: 429;
484
469
  input: {
485
470
  param: {
486
471
  orgId: string;
@@ -505,14 +490,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
505
490
  } | {
506
491
  output: {
507
492
  error: {
508
- code: "upstream_error";
493
+ code: "query_invalid";
509
494
  details?: readonly Response.error.Detail[] | undefined;
510
495
  message: string;
511
496
  };
512
497
  requestId: string;
513
498
  };
514
499
  outputFormat: "json";
515
- status: 502;
500
+ status: 400;
516
501
  input: {
517
502
  param: {
518
503
  orgId: string;
@@ -600,38 +585,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
600
585
  };
601
586
  } | {
602
587
  output: {
603
- error: {
604
- code: "billing_unconfigured";
605
- details?: readonly Response.error.Detail[] | undefined;
606
- message: string;
607
- };
608
- requestId: string;
609
- };
610
- outputFormat: "json";
611
- status: 501;
612
- input: {
613
- param: {
614
- orgId: string;
615
- };
616
- } & {
617
- query?: {
618
- environment?: string | string[];
619
- } | undefined;
620
- } & {
621
- json: {
622
- spendLimit?: {
623
- amount: string;
624
- currency?: "usd" | undefined;
625
- period?: "month" | undefined;
626
- } | null | undefined;
627
- txFeeLimit?: {
628
- amount: string;
629
- currency?: "usd" | undefined;
630
- } | null | undefined;
631
- };
632
- };
633
- } | {
634
- output: {
588
+ enabledSources: ("stripe" | "tempo")[];
635
589
  spend?: {
636
590
  amount: string;
637
591
  currency: "usd";
@@ -711,14 +665,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
711
665
  $post: {
712
666
  output: {
713
667
  error: {
714
- code: "api_key_malformed";
668
+ code: "upstream_error";
715
669
  details?: readonly Response.error.Detail[] | undefined;
716
670
  message: string;
717
671
  };
718
672
  requestId: string;
719
673
  };
720
674
  outputFormat: "json";
721
- status: 400;
675
+ status: 502;
722
676
  input: {
723
677
  param: {
724
678
  orgId: string;
@@ -731,14 +685,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
731
685
  } | {
732
686
  output: {
733
687
  error: {
734
- code: "api_key_invalid" | "api_key_missing";
688
+ code: "api_key_malformed";
735
689
  details?: readonly Response.error.Detail[] | undefined;
736
690
  message: string;
737
691
  };
738
692
  requestId: string;
739
693
  };
740
694
  outputFormat: "json";
741
- status: 401;
695
+ status: 400;
742
696
  input: {
743
697
  param: {
744
698
  orgId: string;
@@ -751,14 +705,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
751
705
  } | {
752
706
  output: {
753
707
  error: {
754
- code: "api_key_forbidden";
708
+ code: "api_key_invalid" | "api_key_missing";
755
709
  details?: readonly Response.error.Detail[] | undefined;
756
710
  message: string;
757
711
  };
758
712
  requestId: string;
759
713
  };
760
714
  outputFormat: "json";
761
- status: 403;
715
+ status: 401;
762
716
  input: {
763
717
  param: {
764
718
  orgId: string;
@@ -771,14 +725,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
771
725
  } | {
772
726
  output: {
773
727
  error: {
774
- code: "payment_required" | "rate_limit_exceeded";
728
+ code: "api_key_forbidden";
775
729
  details?: readonly Response.error.Detail[] | undefined;
776
730
  message: string;
777
731
  };
778
732
  requestId: string;
779
733
  };
780
734
  outputFormat: "json";
781
- status: 429;
735
+ status: 403;
782
736
  input: {
783
737
  param: {
784
738
  orgId: string;
@@ -791,14 +745,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
791
745
  } | {
792
746
  output: {
793
747
  error: {
794
- code: "query_invalid";
748
+ code: "payment_required" | "rate_limit_exceeded";
795
749
  details?: readonly Response.error.Detail[] | undefined;
796
750
  message: string;
797
751
  };
798
752
  requestId: string;
799
753
  };
800
754
  outputFormat: "json";
801
- status: 400;
755
+ status: 429;
802
756
  input: {
803
757
  param: {
804
758
  orgId: string;
@@ -811,14 +765,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
811
765
  } | {
812
766
  output: {
813
767
  error: {
814
- code: "upstream_error";
768
+ code: "query_invalid";
815
769
  details?: readonly Response.error.Detail[] | undefined;
816
770
  message: string;
817
771
  };
818
772
  requestId: string;
819
773
  };
820
774
  outputFormat: "json";
821
- status: 502;
775
+ status: 400;
822
776
  input: {
823
777
  param: {
824
778
  orgId: string;
@@ -871,14 +825,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
871
825
  } | {
872
826
  output: {
873
827
  error: {
874
- code: "billing_unconfigured";
828
+ code: "forbidden";
875
829
  details?: readonly Response.error.Detail[] | undefined;
876
830
  message: string;
877
831
  };
878
832
  requestId: string;
879
833
  };
880
834
  outputFormat: "json";
881
- status: 501;
835
+ status: 403;
882
836
  input: {
883
837
  param: {
884
838
  orgId: string;
@@ -891,7 +845,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
891
845
  } | {
892
846
  output: {
893
847
  error: {
894
- code: "forbidden";
848
+ code: "billing_source_disabled";
895
849
  details?: readonly Response.error.Detail[] | undefined;
896
850
  message: string;
897
851
  };
@@ -911,14 +865,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
911
865
  } | {
912
866
  output: {
913
867
  error: {
914
- code: "early_access_required";
868
+ code: "billing_unconfigured";
915
869
  details?: readonly Response.error.Detail[] | undefined;
916
870
  message: string;
917
871
  };
918
872
  requestId: string;
919
873
  };
920
874
  outputFormat: "json";
921
- status: 403;
875
+ status: 501;
922
876
  input: {
923
877
  param: {
924
878
  orgId: string;
@@ -950,14 +904,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
950
904
  $post: {
951
905
  output: {
952
906
  error: {
953
- code: "api_key_malformed";
907
+ code: "upstream_error";
954
908
  details?: readonly Response.error.Detail[] | undefined;
955
909
  message: string;
956
910
  };
957
911
  requestId: string;
958
912
  };
959
913
  outputFormat: "json";
960
- status: 400;
914
+ status: 502;
961
915
  input: {
962
916
  param: {
963
917
  orgId: string;
@@ -970,14 +924,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
970
924
  } | {
971
925
  output: {
972
926
  error: {
973
- code: "api_key_invalid" | "api_key_missing";
927
+ code: "api_key_malformed";
974
928
  details?: readonly Response.error.Detail[] | undefined;
975
929
  message: string;
976
930
  };
977
931
  requestId: string;
978
932
  };
979
933
  outputFormat: "json";
980
- status: 401;
934
+ status: 400;
981
935
  input: {
982
936
  param: {
983
937
  orgId: string;
@@ -990,14 +944,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
990
944
  } | {
991
945
  output: {
992
946
  error: {
993
- code: "api_key_forbidden";
947
+ code: "api_key_invalid" | "api_key_missing";
994
948
  details?: readonly Response.error.Detail[] | undefined;
995
949
  message: string;
996
950
  };
997
951
  requestId: string;
998
952
  };
999
953
  outputFormat: "json";
1000
- status: 403;
954
+ status: 401;
1001
955
  input: {
1002
956
  param: {
1003
957
  orgId: string;
@@ -1010,14 +964,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1010
964
  } | {
1011
965
  output: {
1012
966
  error: {
1013
- code: "payment_required" | "rate_limit_exceeded";
967
+ code: "api_key_forbidden";
1014
968
  details?: readonly Response.error.Detail[] | undefined;
1015
969
  message: string;
1016
970
  };
1017
971
  requestId: string;
1018
972
  };
1019
973
  outputFormat: "json";
1020
- status: 429;
974
+ status: 403;
1021
975
  input: {
1022
976
  param: {
1023
977
  orgId: string;
@@ -1030,14 +984,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1030
984
  } | {
1031
985
  output: {
1032
986
  error: {
1033
- code: "query_invalid";
987
+ code: "payment_required" | "rate_limit_exceeded";
1034
988
  details?: readonly Response.error.Detail[] | undefined;
1035
989
  message: string;
1036
990
  };
1037
991
  requestId: string;
1038
992
  };
1039
993
  outputFormat: "json";
1040
- status: 400;
994
+ status: 429;
1041
995
  input: {
1042
996
  param: {
1043
997
  orgId: string;
@@ -1050,14 +1004,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1050
1004
  } | {
1051
1005
  output: {
1052
1006
  error: {
1053
- code: "upstream_error";
1007
+ code: "query_invalid";
1054
1008
  details?: readonly Response.error.Detail[] | undefined;
1055
1009
  message: string;
1056
1010
  };
1057
1011
  requestId: string;
1058
1012
  };
1059
1013
  outputFormat: "json";
1060
- status: 502;
1014
+ status: 400;
1061
1015
  input: {
1062
1016
  param: {
1063
1017
  orgId: string;
@@ -1169,14 +1123,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1169
1123
  $get: {
1170
1124
  output: {
1171
1125
  error: {
1172
- code: "api_key_malformed";
1126
+ code: "upstream_error";
1173
1127
  details?: readonly Response.error.Detail[] | undefined;
1174
1128
  message: string;
1175
1129
  };
1176
1130
  requestId: string;
1177
1131
  };
1178
1132
  outputFormat: "json";
1179
- status: 400;
1133
+ status: 502;
1180
1134
  input: {
1181
1135
  param: {
1182
1136
  orgId: string;
@@ -1189,14 +1143,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1189
1143
  } | {
1190
1144
  output: {
1191
1145
  error: {
1192
- code: "api_key_invalid" | "api_key_missing";
1146
+ code: "api_key_malformed";
1193
1147
  details?: readonly Response.error.Detail[] | undefined;
1194
1148
  message: string;
1195
1149
  };
1196
1150
  requestId: string;
1197
1151
  };
1198
1152
  outputFormat: "json";
1199
- status: 401;
1153
+ status: 400;
1200
1154
  input: {
1201
1155
  param: {
1202
1156
  orgId: string;
@@ -1209,14 +1163,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1209
1163
  } | {
1210
1164
  output: {
1211
1165
  error: {
1212
- code: "api_key_forbidden";
1166
+ code: "api_key_invalid" | "api_key_missing";
1213
1167
  details?: readonly Response.error.Detail[] | undefined;
1214
1168
  message: string;
1215
1169
  };
1216
1170
  requestId: string;
1217
1171
  };
1218
1172
  outputFormat: "json";
1219
- status: 403;
1173
+ status: 401;
1220
1174
  input: {
1221
1175
  param: {
1222
1176
  orgId: string;
@@ -1229,14 +1183,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1229
1183
  } | {
1230
1184
  output: {
1231
1185
  error: {
1232
- code: "payment_required" | "rate_limit_exceeded";
1186
+ code: "api_key_forbidden";
1233
1187
  details?: readonly Response.error.Detail[] | undefined;
1234
1188
  message: string;
1235
1189
  };
1236
1190
  requestId: string;
1237
1191
  };
1238
1192
  outputFormat: "json";
1239
- status: 429;
1193
+ status: 403;
1240
1194
  input: {
1241
1195
  param: {
1242
1196
  orgId: string;
@@ -1249,14 +1203,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1249
1203
  } | {
1250
1204
  output: {
1251
1205
  error: {
1252
- code: "query_invalid";
1206
+ code: "payment_required" | "rate_limit_exceeded";
1253
1207
  details?: readonly Response.error.Detail[] | undefined;
1254
1208
  message: string;
1255
1209
  };
1256
1210
  requestId: string;
1257
1211
  };
1258
1212
  outputFormat: "json";
1259
- status: 400;
1213
+ status: 429;
1260
1214
  input: {
1261
1215
  param: {
1262
1216
  orgId: string;
@@ -1269,14 +1223,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1269
1223
  } | {
1270
1224
  output: {
1271
1225
  error: {
1272
- code: "upstream_error";
1226
+ code: "query_invalid";
1273
1227
  details?: readonly Response.error.Detail[] | undefined;
1274
1228
  message: string;
1275
1229
  };
1276
1230
  requestId: string;
1277
1231
  };
1278
1232
  outputFormat: "json";
1279
- status: 502;
1233
+ status: 400;
1280
1234
  input: {
1281
1235
  param: {
1282
1236
  orgId: string;
@@ -1380,14 +1334,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1380
1334
  $delete: {
1381
1335
  output: {
1382
1336
  error: {
1383
- code: "api_key_malformed";
1337
+ code: "upstream_error";
1384
1338
  details?: readonly Response.error.Detail[] | undefined;
1385
1339
  message: string;
1386
1340
  };
1387
1341
  requestId: string;
1388
1342
  };
1389
1343
  outputFormat: "json";
1390
- status: 400;
1344
+ status: 502;
1391
1345
  input: {
1392
1346
  param: {
1393
1347
  methodId: string;
@@ -1401,14 +1355,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1401
1355
  } | {
1402
1356
  output: {
1403
1357
  error: {
1404
- code: "api_key_invalid" | "api_key_missing";
1358
+ code: "api_key_malformed";
1405
1359
  details?: readonly Response.error.Detail[] | undefined;
1406
1360
  message: string;
1407
1361
  };
1408
1362
  requestId: string;
1409
1363
  };
1410
1364
  outputFormat: "json";
1411
- status: 401;
1365
+ status: 400;
1412
1366
  input: {
1413
1367
  param: {
1414
1368
  methodId: string;
@@ -1422,14 +1376,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1422
1376
  } | {
1423
1377
  output: {
1424
1378
  error: {
1425
- code: "api_key_forbidden";
1379
+ code: "api_key_invalid" | "api_key_missing";
1426
1380
  details?: readonly Response.error.Detail[] | undefined;
1427
1381
  message: string;
1428
1382
  };
1429
1383
  requestId: string;
1430
1384
  };
1431
1385
  outputFormat: "json";
1432
- status: 403;
1386
+ status: 401;
1433
1387
  input: {
1434
1388
  param: {
1435
1389
  methodId: string;
@@ -1443,14 +1397,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1443
1397
  } | {
1444
1398
  output: {
1445
1399
  error: {
1446
- code: "payment_required" | "rate_limit_exceeded";
1400
+ code: "api_key_forbidden";
1447
1401
  details?: readonly Response.error.Detail[] | undefined;
1448
1402
  message: string;
1449
1403
  };
1450
1404
  requestId: string;
1451
1405
  };
1452
1406
  outputFormat: "json";
1453
- status: 429;
1407
+ status: 403;
1454
1408
  input: {
1455
1409
  param: {
1456
1410
  methodId: string;
@@ -1464,14 +1418,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1464
1418
  } | {
1465
1419
  output: {
1466
1420
  error: {
1467
- code: "query_invalid";
1421
+ code: "payment_required" | "rate_limit_exceeded";
1468
1422
  details?: readonly Response.error.Detail[] | undefined;
1469
1423
  message: string;
1470
1424
  };
1471
1425
  requestId: string;
1472
1426
  };
1473
1427
  outputFormat: "json";
1474
- status: 400;
1428
+ status: 429;
1475
1429
  input: {
1476
1430
  param: {
1477
1431
  methodId: string;
@@ -1485,14 +1439,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1485
1439
  } | {
1486
1440
  output: {
1487
1441
  error: {
1488
- code: "upstream_error";
1442
+ code: "query_invalid";
1489
1443
  details?: readonly Response.error.Detail[] | undefined;
1490
1444
  message: string;
1491
1445
  };
1492
1446
  requestId: string;
1493
1447
  };
1494
1448
  outputFormat: "json";
1495
- status: 502;
1449
+ status: 400;
1496
1450
  input: {
1497
1451
  param: {
1498
1452
  methodId: string;
@@ -1547,27 +1501,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1547
1501
  };
1548
1502
  } | {
1549
1503
  output: {
1550
- error: {
1551
- code: "billing_unconfigured";
1552
- details?: readonly Response.error.Detail[] | undefined;
1553
- message: string;
1554
- };
1555
- requestId: string;
1556
- };
1557
- outputFormat: "json";
1558
- status: 501;
1559
- input: {
1560
- param: {
1561
- methodId: string;
1562
- orgId: string;
1563
- };
1564
- } & {
1565
- query?: {
1566
- environment?: string | string[];
1567
- } | undefined;
1568
- };
1569
- } | {
1570
- output: {
1504
+ enabledSources: ("stripe" | "tempo")[];
1571
1505
  spend?: {
1572
1506
  amount: string;
1573
1507
  currency: "usd";
@@ -1597,6 +1531,27 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1597
1531
  environment?: string | string[];
1598
1532
  } | undefined;
1599
1533
  };
1534
+ } | {
1535
+ output: {
1536
+ error: {
1537
+ code: "billing_unconfigured";
1538
+ details?: readonly Response.error.Detail[] | undefined;
1539
+ message: string;
1540
+ };
1541
+ requestId: string;
1542
+ };
1543
+ outputFormat: "json";
1544
+ status: 501;
1545
+ input: {
1546
+ param: {
1547
+ methodId: string;
1548
+ orgId: string;
1549
+ };
1550
+ } & {
1551
+ query?: {
1552
+ environment?: string | string[];
1553
+ } | undefined;
1554
+ };
1600
1555
  } | {
1601
1556
  output: {
1602
1557
  error: {