tapimo 0.4.0 → 0.4.3

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 (255) hide show
  1. package/README.md +1 -1
  2. package/dist/ApiKey.d.ts +1 -9
  3. package/dist/ApiKey.d.ts.map +1 -1
  4. package/dist/ApiKey.js +2 -3
  5. package/dist/ApiKey.js.map +1 -1
  6. package/dist/ApiKeys.d.ts +53 -27
  7. package/dist/ApiKeys.d.ts.map +1 -1
  8. package/dist/ApiKeys.js +32 -17
  9. package/dist/ApiKeys.js.map +1 -1
  10. package/dist/App.d.ts +2451 -1533
  11. package/dist/App.d.ts.map +1 -1
  12. package/dist/App.js +23 -9
  13. package/dist/App.js.map +1 -1
  14. package/dist/Assets.d.ts +10 -0
  15. package/dist/Assets.d.ts.map +1 -1
  16. package/dist/Assets.js +4 -0
  17. package/dist/Assets.js.map +1 -1
  18. package/dist/Auth.d.ts +2 -1
  19. package/dist/Auth.d.ts.map +1 -1
  20. package/dist/Auth.js +2 -1
  21. package/dist/Auth.js.map +1 -1
  22. package/dist/Scope.d.ts +40 -15
  23. package/dist/Scope.d.ts.map +1 -1
  24. package/dist/Scope.js +44 -13
  25. package/dist/Scope.js.map +1 -1
  26. package/dist/admin/App.d.ts +560 -9
  27. package/dist/admin/App.d.ts.map +1 -1
  28. package/dist/admin/App.js +38 -6
  29. package/dist/admin/App.js.map +1 -1
  30. package/dist/admin/apps/api-keys.d.ts +10 -24
  31. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  32. package/dist/admin/apps/api-keys.js +10 -3
  33. package/dist/admin/apps/api-keys.js.map +1 -1
  34. package/dist/admin/apps/organizations.d.ts +833 -0
  35. package/dist/admin/apps/organizations.d.ts.map +1 -0
  36. package/dist/admin/apps/organizations.js +733 -0
  37. package/dist/admin/apps/organizations.js.map +1 -0
  38. package/dist/admin/apps/scopes.d.ts +8 -0
  39. package/dist/admin/apps/scopes.d.ts.map +1 -1
  40. package/dist/admin/ui.generated.d.ts +1 -1
  41. package/dist/admin/ui.generated.d.ts.map +1 -1
  42. package/dist/admin/ui.generated.js +53 -13
  43. package/dist/admin/ui.generated.js.map +1 -1
  44. package/dist/analytics/Analytics.d.ts +10 -0
  45. package/dist/analytics/Analytics.d.ts.map +1 -1
  46. package/dist/analytics/Analytics.js +8 -0
  47. package/dist/analytics/Analytics.js.map +1 -1
  48. package/dist/analytics/tables/requestEvents.d.ts +9 -0
  49. package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
  50. package/dist/analytics/tables/requestEvents.js +14 -0
  51. package/dist/analytics/tables/requestEvents.js.map +1 -1
  52. package/dist/apps/data/App.d.ts +1354 -984
  53. package/dist/apps/data/App.d.ts.map +1 -1
  54. package/dist/apps/data/App.js +20 -3
  55. package/dist/apps/data/App.js.map +1 -1
  56. package/dist/apps/data/FundingRouteProviders.d.ts +94 -5
  57. package/dist/apps/data/FundingRouteProviders.d.ts.map +1 -1
  58. package/dist/apps/data/FundingRouteProviders.js +196 -5
  59. package/dist/apps/data/FundingRouteProviders.js.map +1 -1
  60. package/dist/apps/data/routes/activities.d.ts +38 -38
  61. package/dist/apps/data/routes/addresses.d.ts +24 -24
  62. package/dist/apps/data/routes/balances.d.ts +45 -45
  63. package/dist/apps/data/routes/blocks.d.ts +39 -39
  64. package/dist/apps/data/routes/coingecko.d.ts +176 -176
  65. package/dist/apps/data/routes/exchanges.d.ts +453 -453
  66. package/dist/apps/data/routes/fee-amm.d.ts +101 -101
  67. package/dist/apps/data/routes/funding.d.ts +730 -138
  68. package/dist/apps/data/routes/funding.d.ts.map +1 -1
  69. package/dist/apps/data/routes/funding.js +234 -0
  70. package/dist/apps/data/routes/funding.js.map +1 -1
  71. package/dist/apps/data/routes/indexer.d.ts +5 -5
  72. package/dist/apps/data/routes/rpc.d.ts +31 -31
  73. package/dist/apps/data/routes/verified-tokens.d.ts +81 -81
  74. package/dist/apps/management/App.d.ts +1156 -615
  75. package/dist/apps/management/App.d.ts.map +1 -1
  76. package/dist/apps/management/App.js +2 -2
  77. package/dist/apps/management/Billing.d.ts +3 -0
  78. package/dist/apps/management/Billing.d.ts.map +1 -1
  79. package/dist/apps/management/Billing.js +7 -2
  80. package/dist/apps/management/Billing.js.map +1 -1
  81. package/dist/apps/management/routes/api-keys.d.ts +106 -90
  82. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  83. package/dist/apps/management/routes/api-keys.js +41 -30
  84. package/dist/apps/management/routes/api-keys.js.map +1 -1
  85. package/dist/apps/management/routes/billing.d.ts +278 -146
  86. package/dist/apps/management/routes/billing.d.ts.map +1 -1
  87. package/dist/apps/management/routes/billing.js +14 -14
  88. package/dist/apps/management/routes/billing.js.map +1 -1
  89. package/dist/apps/management/routes/invitations.d.ts +93 -20
  90. package/dist/apps/management/routes/invitations.d.ts.map +1 -1
  91. package/dist/apps/management/routes/invitations.js +12 -15
  92. package/dist/apps/management/routes/invitations.js.map +1 -1
  93. package/dist/apps/management/routes/me.d.ts +13 -13
  94. package/dist/apps/management/routes/members.d.ts +89 -18
  95. package/dist/apps/management/routes/members.d.ts.map +1 -1
  96. package/dist/apps/management/routes/members.js +10 -10
  97. package/dist/apps/management/routes/members.js.map +1 -1
  98. package/dist/apps/management/routes/orgs.d.ts +130 -70
  99. package/dist/apps/management/routes/orgs.d.ts.map +1 -1
  100. package/dist/apps/management/routes/orgs.js +19 -19
  101. package/dist/apps/management/routes/orgs.js.map +1 -1
  102. package/dist/apps/management/routes/projects.d.ts +137 -48
  103. package/dist/apps/management/routes/projects.d.ts.map +1 -1
  104. package/dist/apps/management/routes/projects.js +12 -13
  105. package/dist/apps/management/routes/projects.js.map +1 -1
  106. package/dist/apps/management/routes/scopes.d.ts +14 -28
  107. package/dist/apps/management/routes/scopes.d.ts.map +1 -1
  108. package/dist/apps/management/routes/scopes.js +6 -7
  109. package/dist/apps/management/routes/scopes.js.map +1 -1
  110. package/dist/apps/management/routes/usage.d.ts +63 -19
  111. package/dist/apps/management/routes/usage.d.ts.map +1 -1
  112. package/dist/apps/management/routes/usage.js +9 -10
  113. package/dist/apps/management/routes/usage.js.map +1 -1
  114. package/dist/apps/mcp.d.ts.map +1 -1
  115. package/dist/apps/mcp.js +35 -3
  116. package/dist/apps/mcp.js.map +1 -1
  117. package/dist/apps/relay/App.d.ts +26 -4
  118. package/dist/apps/relay/App.d.ts.map +1 -1
  119. package/dist/apps/relay/App.js +17 -14
  120. package/dist/apps/relay/App.js.map +1 -1
  121. package/dist/db/Db.d.ts +5 -3
  122. package/dist/db/Db.d.ts.map +1 -1
  123. package/dist/db/Db.js +52 -0
  124. package/dist/db/Db.js.map +1 -1
  125. package/dist/db/Schema.d.ts +13 -0
  126. package/dist/db/Schema.d.ts.map +1 -1
  127. package/dist/db/Schema.js +16 -1
  128. package/dist/db/Schema.js.map +1 -1
  129. package/dist/db/tables/adminAuditLogs.d.ts +27 -0
  130. package/dist/db/tables/adminAuditLogs.d.ts.map +1 -0
  131. package/dist/db/tables/adminAuditLogs.js +19 -0
  132. package/dist/db/tables/adminAuditLogs.js.map +1 -0
  133. package/dist/db/tables/invitations.d.ts +1 -1
  134. package/dist/db/tables/invitations.d.ts.map +1 -1
  135. package/dist/db/tables/memberships.d.ts +32 -4
  136. package/dist/db/tables/memberships.d.ts.map +1 -1
  137. package/dist/db/tables/memberships.js +31 -0
  138. package/dist/db/tables/memberships.js.map +1 -1
  139. package/dist/db/tables/organizations.d.ts +43 -1
  140. package/dist/db/tables/organizations.d.ts.map +1 -1
  141. package/dist/db/tables/organizations.js +103 -0
  142. package/dist/db/tables/organizations.js.map +1 -1
  143. package/dist/db/tables/projects.d.ts +25 -0
  144. package/dist/db/tables/projects.d.ts.map +1 -1
  145. package/dist/db/tables/projects.js +22 -0
  146. package/dist/db/tables/projects.js.map +1 -1
  147. package/dist/db/tables/webhookDeliveries.d.ts +26 -0
  148. package/dist/db/tables/webhookDeliveries.d.ts.map +1 -1
  149. package/dist/db/tables/webhookDeliveries.js +37 -0
  150. package/dist/db/tables/webhookDeliveries.js.map +1 -1
  151. package/dist/handlers/relay.d.ts +13 -10
  152. package/dist/handlers/relay.d.ts.map +1 -1
  153. package/dist/handlers/relay.js +46 -16
  154. package/dist/handlers/relay.js.map +1 -1
  155. package/dist/internal/Auth.d.ts +13 -18
  156. package/dist/internal/Auth.d.ts.map +1 -1
  157. package/dist/internal/Auth.js +78 -58
  158. package/dist/internal/Auth.js.map +1 -1
  159. package/dist/internal/Cursor.d.ts +1 -1
  160. package/dist/internal/Cursor.d.ts.map +1 -1
  161. package/dist/internal/Cursor.js +4 -0
  162. package/dist/internal/Cursor.js.map +1 -1
  163. package/dist/internal/EdgeCache.d.ts.map +1 -1
  164. package/dist/internal/EdgeCache.js +2 -0
  165. package/dist/internal/EdgeCache.js.map +1 -1
  166. package/dist/internal/FundingRoutes.d.ts +170 -0
  167. package/dist/internal/FundingRoutes.d.ts.map +1 -1
  168. package/dist/internal/FundingRoutes.js +68 -6
  169. package/dist/internal/FundingRoutes.js.map +1 -1
  170. package/dist/internal/Log.d.ts +16 -1
  171. package/dist/internal/Log.d.ts.map +1 -1
  172. package/dist/internal/Log.js +5 -3
  173. package/dist/internal/Log.js.map +1 -1
  174. package/package.json +2 -2
  175. package/src/ApiKey.ts +2 -3
  176. package/src/ApiKeys.ts +95 -17
  177. package/src/App.test.ts +44 -2
  178. package/src/App.ts +29 -9
  179. package/src/Assets.ts +8 -0
  180. package/src/Auth.test-d.ts +36 -0
  181. package/src/Auth.ts +20 -1
  182. package/src/Client.test-d.ts +64 -17
  183. package/src/Scope.test.ts +34 -0
  184. package/src/Scope.ts +53 -17
  185. package/src/admin/App.test.ts +33 -3
  186. package/src/admin/App.ts +49 -14
  187. package/src/admin/apps/api-keys.ts +10 -3
  188. package/src/admin/apps/organizations.test.ts +455 -0
  189. package/src/admin/apps/organizations.ts +953 -0
  190. package/src/admin/apps/scopes.test.ts +10 -0
  191. package/src/admin/ui/plugin.ts +1 -1
  192. package/src/admin/ui/src/components/MobileProfile.tsx +2 -0
  193. package/src/admin/ui/src/components/ThemeToggle.tsx +20 -0
  194. package/src/admin/ui/src/lib/api-keys.ts +36 -19
  195. package/src/admin/ui/src/lib/config.ts +2 -3
  196. package/src/admin/ui/src/lib/organizations.test.ts +89 -0
  197. package/src/admin/ui/src/lib/organizations.ts +262 -0
  198. package/src/admin/ui/src/lib/query-client.ts +3 -1
  199. package/src/admin/ui/src/lib/theme.ts +57 -0
  200. package/src/admin/ui/src/routeTree.gen.ts +47 -4
  201. package/src/admin/ui/src/routes/__root.tsx +18 -3
  202. package/src/admin/ui/src/routes/api-keys.tsx +52 -7
  203. package/src/admin/ui/src/routes/index.tsx +1 -1
  204. package/src/admin/ui/src/routes/organizations.tsx +158 -0
  205. package/src/admin/ui/src/routes/organizations_.$orgId.tsx +710 -0
  206. package/src/admin/ui/src/start.ts +6 -0
  207. package/src/admin/ui.generated.ts +63 -13
  208. package/src/analytics/Analytics.ts +25 -0
  209. package/src/analytics/tables/requestEvents.ts +33 -0
  210. package/src/apps/composition.test.ts +82 -2
  211. package/src/apps/data/App.ts +24 -3
  212. package/src/apps/data/FundingRouteProviders.test.ts +204 -0
  213. package/src/apps/data/FundingRouteProviders.ts +294 -9
  214. package/src/apps/data/routes/funding.test.ts +90 -23
  215. package/src/apps/data/routes/funding.ts +315 -0
  216. package/src/apps/data/routes/rpc.test.ts +33 -0
  217. package/src/apps/management/App.ts +2 -2
  218. package/src/apps/management/Billing.ts +10 -2
  219. package/src/apps/management/routes/api-keys.test.ts +137 -1
  220. package/src/apps/management/routes/api-keys.ts +63 -38
  221. package/src/apps/management/routes/billing.ts +14 -14
  222. package/src/apps/management/routes/invitations.test.ts +102 -1
  223. package/src/apps/management/routes/invitations.ts +13 -15
  224. package/src/apps/management/routes/members.ts +10 -10
  225. package/src/apps/management/routes/orgs.test.ts +78 -16
  226. package/src/apps/management/routes/orgs.ts +21 -20
  227. package/src/apps/management/routes/projects.ts +12 -13
  228. package/src/apps/management/routes/scopes.test.ts +16 -0
  229. package/src/apps/management/routes/scopes.ts +6 -7
  230. package/src/apps/management/routes/usage.ts +9 -14
  231. package/src/apps/mcp.test.ts +25 -1
  232. package/src/apps/mcp.ts +43 -3
  233. package/src/apps/relay/App.test.ts +23 -18
  234. package/src/apps/relay/App.ts +35 -14
  235. package/src/db/Db.ts +59 -3
  236. package/src/db/Schema.ts +20 -1
  237. package/src/db/tables/adminAuditLogs.ts +47 -0
  238. package/src/db/tables/invitations.ts +1 -1
  239. package/src/db/tables/memberships.ts +59 -3
  240. package/src/db/tables/organizations.ts +148 -1
  241. package/src/db/tables/projects.ts +47 -0
  242. package/src/db/tables/webhookDeliveries.ts +83 -0
  243. package/src/handlers/relay.test-d.ts +8 -0
  244. package/src/handlers/relay.test.ts +2 -2
  245. package/src/handlers/relay.ts +62 -22
  246. package/src/internal/Auth.test.ts +174 -7
  247. package/src/internal/Auth.ts +90 -62
  248. package/src/internal/Cursor.test.ts +10 -0
  249. package/src/internal/Cursor.ts +5 -1
  250. package/src/internal/EdgeCache.test.ts +11 -0
  251. package/src/internal/EdgeCache.ts +2 -0
  252. package/src/internal/FundingRoutes.test.ts +26 -0
  253. package/src/internal/FundingRoutes.ts +187 -18
  254. package/src/internal/Log.test.ts +41 -3
  255. package/src/internal/Log.ts +23 -4
@@ -124,22 +124,51 @@ export declare namespace schema {
124
124
  }, z.core.$strip>;
125
125
  }
126
126
  /**
127
- * Mounts the billing surface: an organization's billing status. Orgs without
128
- * a Stripe billing source read as `none`. Session lane; reads for members.
127
+ * Mounts billing routes. Reads require membership or scoped API key access; organizations without Stripe state return `none`.
129
128
  */
130
129
  export declare function billing(): import("hono/hono-base").HonoBase<Environment, {
131
130
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing": {
132
131
  $get: {
132
+ output: {
133
+ spend?: {
134
+ amount: string;
135
+ currency: "usd";
136
+ period: "month";
137
+ } | undefined;
138
+ spendLimit?: {
139
+ amount: string;
140
+ currency: "usd";
141
+ period: "month";
142
+ } | undefined;
143
+ status: "active" | "canceled" | "none" | "past_due";
144
+ txFeeLimit?: {
145
+ amount: string;
146
+ currency: "usd";
147
+ } | undefined;
148
+ updatedAt?: string | undefined;
149
+ };
150
+ outputFormat: "json";
151
+ status: 200;
152
+ input: {
153
+ param: {
154
+ orgId: string;
155
+ };
156
+ } & {
157
+ query?: {
158
+ environment?: string | string[];
159
+ } | undefined;
160
+ };
161
+ } | {
133
162
  output: {
134
163
  error: {
135
- code: "upstream_error";
164
+ code: "api_key_malformed";
136
165
  details?: readonly Response.error.Detail[] | undefined;
137
166
  message: string;
138
167
  };
139
168
  requestId: string;
140
169
  };
141
170
  outputFormat: "json";
142
- status: 502;
171
+ status: 400;
143
172
  input: {
144
173
  param: {
145
174
  orgId: string;
@@ -152,7 +181,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
152
181
  } | {
153
182
  output: {
154
183
  error: {
155
- code: "api_key_malformed";
184
+ code: "query_invalid";
156
185
  details?: readonly Response.error.Detail[] | undefined;
157
186
  message: string;
158
187
  };
@@ -172,14 +201,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
172
201
  } | {
173
202
  output: {
174
203
  error: {
175
- code: "api_key_invalid" | "api_key_missing";
204
+ code: "param_invalid";
176
205
  details?: readonly Response.error.Detail[] | undefined;
177
206
  message: string;
178
207
  };
179
208
  requestId: string;
180
209
  };
181
210
  outputFormat: "json";
182
- status: 401;
211
+ status: 400;
183
212
  input: {
184
213
  param: {
185
214
  orgId: string;
@@ -192,14 +221,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
192
221
  } | {
193
222
  output: {
194
223
  error: {
195
- code: "query_invalid";
224
+ code: "api_key_invalid" | "api_key_missing";
196
225
  details?: readonly Response.error.Detail[] | undefined;
197
226
  message: string;
198
227
  };
199
228
  requestId: string;
200
229
  };
201
230
  outputFormat: "json";
202
- status: 400;
231
+ status: 401;
203
232
  input: {
204
233
  param: {
205
234
  orgId: string;
@@ -212,7 +241,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
212
241
  } | {
213
242
  output: {
214
243
  error: {
215
- code: "forbidden";
244
+ code: "api_key_forbidden";
216
245
  details?: readonly Response.error.Detail[] | undefined;
217
246
  message: string;
218
247
  };
@@ -252,14 +281,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
252
281
  } | {
253
282
  output: {
254
283
  error: {
255
- code: "param_invalid";
284
+ code: "payment_required" | "rate_limit_exceeded";
256
285
  details?: readonly Response.error.Detail[] | undefined;
257
286
  message: string;
258
287
  };
259
288
  requestId: string;
260
289
  };
261
290
  outputFormat: "json";
262
- status: 400;
291
+ status: 429;
263
292
  input: {
264
293
  param: {
265
294
  orgId: string;
@@ -290,6 +319,30 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
290
319
  } | undefined;
291
320
  };
292
321
  } | {
322
+ output: {
323
+ error: {
324
+ code: "upstream_error";
325
+ details?: readonly Response.error.Detail[] | undefined;
326
+ message: string;
327
+ };
328
+ requestId: string;
329
+ };
330
+ outputFormat: "json";
331
+ status: 502;
332
+ input: {
333
+ param: {
334
+ orgId: string;
335
+ };
336
+ } & {
337
+ query?: {
338
+ environment?: string | string[];
339
+ } | undefined;
340
+ };
341
+ };
342
+ };
343
+ } & {
344
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing": {
345
+ $patch: {
293
346
  output: {
294
347
  spend?: {
295
348
  amount: string;
@@ -318,22 +371,30 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
318
371
  query?: {
319
372
  environment?: string | string[];
320
373
  } | undefined;
374
+ } & {
375
+ json: {
376
+ spendLimit?: {
377
+ amount: string;
378
+ currency?: "usd" | undefined;
379
+ period?: "month" | undefined;
380
+ } | null | undefined;
381
+ txFeeLimit?: {
382
+ amount: string;
383
+ currency?: "usd" | undefined;
384
+ } | null | undefined;
385
+ };
321
386
  };
322
- };
323
- };
324
- } & {
325
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing": {
326
- $patch: {
387
+ } | {
327
388
  output: {
328
389
  error: {
329
- code: "upstream_error";
390
+ code: "api_key_malformed";
330
391
  details?: readonly Response.error.Detail[] | undefined;
331
392
  message: string;
332
393
  };
333
394
  requestId: string;
334
395
  };
335
396
  outputFormat: "json";
336
- status: 502;
397
+ status: 400;
337
398
  input: {
338
399
  param: {
339
400
  orgId: string;
@@ -358,7 +419,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
358
419
  } | {
359
420
  output: {
360
421
  error: {
361
- code: "api_key_malformed";
422
+ code: "query_invalid";
362
423
  details?: readonly Response.error.Detail[] | undefined;
363
424
  message: string;
364
425
  };
@@ -390,14 +451,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
390
451
  } | {
391
452
  output: {
392
453
  error: {
393
- code: "api_key_invalid" | "api_key_missing";
454
+ code: "body_invalid";
394
455
  details?: readonly Response.error.Detail[] | undefined;
395
456
  message: string;
396
457
  };
397
458
  requestId: string;
398
459
  };
399
460
  outputFormat: "json";
400
- status: 401;
461
+ status: 400;
401
462
  input: {
402
463
  param: {
403
464
  orgId: string;
@@ -422,7 +483,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
422
483
  } | {
423
484
  output: {
424
485
  error: {
425
- code: "query_invalid";
486
+ code: "param_invalid";
426
487
  details?: readonly Response.error.Detail[] | undefined;
427
488
  message: string;
428
489
  };
@@ -454,14 +515,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
454
515
  } | {
455
516
  output: {
456
517
  error: {
457
- code: "forbidden";
518
+ code: "api_key_invalid" | "api_key_missing";
458
519
  details?: readonly Response.error.Detail[] | undefined;
459
520
  message: string;
460
521
  };
461
522
  requestId: string;
462
523
  };
463
524
  outputFormat: "json";
464
- status: 403;
525
+ status: 401;
465
526
  input: {
466
527
  param: {
467
528
  orgId: string;
@@ -486,14 +547,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
486
547
  } | {
487
548
  output: {
488
549
  error: {
489
- code: "organization_not_found";
550
+ code: "api_key_forbidden";
490
551
  details?: readonly Response.error.Detail[] | undefined;
491
552
  message: string;
492
553
  };
493
554
  requestId: string;
494
555
  };
495
556
  outputFormat: "json";
496
- status: 404;
557
+ status: 403;
497
558
  input: {
498
559
  param: {
499
560
  orgId: string;
@@ -518,14 +579,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
518
579
  } | {
519
580
  output: {
520
581
  error: {
521
- code: "param_invalid";
582
+ code: "organization_not_found";
522
583
  details?: readonly Response.error.Detail[] | undefined;
523
584
  message: string;
524
585
  };
525
586
  requestId: string;
526
587
  };
527
588
  outputFormat: "json";
528
- status: 400;
589
+ status: 404;
529
590
  input: {
530
591
  param: {
531
592
  orgId: string;
@@ -550,14 +611,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
550
611
  } | {
551
612
  output: {
552
613
  error: {
553
- code: "billing_unconfigured";
614
+ code: "payment_required" | "rate_limit_exceeded";
554
615
  details?: readonly Response.error.Detail[] | undefined;
555
616
  message: string;
556
617
  };
557
618
  requestId: string;
558
619
  };
559
620
  outputFormat: "json";
560
- status: 501;
621
+ status: 429;
561
622
  input: {
562
623
  param: {
563
624
  orgId: string;
@@ -581,25 +642,15 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
581
642
  };
582
643
  } | {
583
644
  output: {
584
- spend?: {
585
- amount: string;
586
- currency: "usd";
587
- period: "month";
588
- } | undefined;
589
- spendLimit?: {
590
- amount: string;
591
- currency: "usd";
592
- period: "month";
593
- } | undefined;
594
- status: "active" | "canceled" | "none" | "past_due";
595
- txFeeLimit?: {
596
- amount: string;
597
- currency: "usd";
598
- } | undefined;
599
- updatedAt?: string | undefined;
645
+ error: {
646
+ code: "billing_unconfigured";
647
+ details?: readonly Response.error.Detail[] | undefined;
648
+ message: string;
649
+ };
650
+ requestId: string;
600
651
  };
601
652
  outputFormat: "json";
602
- status: 200;
653
+ status: 501;
603
654
  input: {
604
655
  param: {
605
656
  orgId: string;
@@ -624,14 +675,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
624
675
  } | {
625
676
  output: {
626
677
  error: {
627
- code: "body_invalid";
678
+ code: "upstream_error";
628
679
  details?: readonly Response.error.Detail[] | undefined;
629
680
  message: string;
630
681
  };
631
682
  requestId: string;
632
683
  };
633
684
  outputFormat: "json";
634
- status: 400;
685
+ status: 502;
635
686
  input: {
636
687
  param: {
637
688
  orgId: string;
@@ -658,16 +709,31 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
658
709
  } & {
659
710
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/stripe/checkout": {
660
711
  $post: {
712
+ output: {
713
+ url: string;
714
+ };
715
+ outputFormat: "json";
716
+ status: 200;
717
+ input: {
718
+ param: {
719
+ orgId: string;
720
+ };
721
+ } & {
722
+ query?: {
723
+ environment?: string | string[];
724
+ } | undefined;
725
+ };
726
+ } | {
661
727
  output: {
662
728
  error: {
663
- code: "upstream_error";
729
+ code: "api_key_malformed";
664
730
  details?: readonly Response.error.Detail[] | undefined;
665
731
  message: string;
666
732
  };
667
733
  requestId: string;
668
734
  };
669
735
  outputFormat: "json";
670
- status: 502;
736
+ status: 400;
671
737
  input: {
672
738
  param: {
673
739
  orgId: string;
@@ -680,7 +746,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
680
746
  } | {
681
747
  output: {
682
748
  error: {
683
- code: "api_key_malformed";
749
+ code: "query_invalid";
684
750
  details?: readonly Response.error.Detail[] | undefined;
685
751
  message: string;
686
752
  };
@@ -700,14 +766,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
700
766
  } | {
701
767
  output: {
702
768
  error: {
703
- code: "api_key_invalid" | "api_key_missing";
769
+ code: "param_invalid";
704
770
  details?: readonly Response.error.Detail[] | undefined;
705
771
  message: string;
706
772
  };
707
773
  requestId: string;
708
774
  };
709
775
  outputFormat: "json";
710
- status: 401;
776
+ status: 400;
711
777
  input: {
712
778
  param: {
713
779
  orgId: string;
@@ -720,14 +786,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
720
786
  } | {
721
787
  output: {
722
788
  error: {
723
- code: "query_invalid";
789
+ code: "api_key_invalid" | "api_key_missing";
724
790
  details?: readonly Response.error.Detail[] | undefined;
725
791
  message: string;
726
792
  };
727
793
  requestId: string;
728
794
  };
729
795
  outputFormat: "json";
730
- status: 400;
796
+ status: 401;
731
797
  input: {
732
798
  param: {
733
799
  orgId: string;
@@ -740,7 +806,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
740
806
  } | {
741
807
  output: {
742
808
  error: {
743
- code: "forbidden";
809
+ code: "api_key_forbidden";
744
810
  details?: readonly Response.error.Detail[] | undefined;
745
811
  message: string;
746
812
  };
@@ -780,14 +846,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
780
846
  } | {
781
847
  output: {
782
848
  error: {
783
- code: "param_invalid";
849
+ code: "payment_required" | "rate_limit_exceeded";
784
850
  details?: readonly Response.error.Detail[] | undefined;
785
851
  message: string;
786
852
  };
787
853
  requestId: string;
788
854
  };
789
855
  outputFormat: "json";
790
- status: 400;
856
+ status: 429;
791
857
  input: {
792
858
  param: {
793
859
  orgId: string;
@@ -819,10 +885,15 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
819
885
  };
820
886
  } | {
821
887
  output: {
822
- url: string;
888
+ error: {
889
+ code: "upstream_error";
890
+ details?: readonly Response.error.Detail[] | undefined;
891
+ message: string;
892
+ };
893
+ requestId: string;
823
894
  };
824
895
  outputFormat: "json";
825
- status: 200;
896
+ status: 502;
826
897
  input: {
827
898
  param: {
828
899
  orgId: string;
@@ -837,16 +908,31 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
837
908
  } & {
838
909
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/stripe/manage": {
839
910
  $post: {
911
+ output: {
912
+ url: string;
913
+ };
914
+ outputFormat: "json";
915
+ status: 200;
916
+ input: {
917
+ param: {
918
+ orgId: string;
919
+ };
920
+ } & {
921
+ query?: {
922
+ environment?: string | string[];
923
+ } | undefined;
924
+ };
925
+ } | {
840
926
  output: {
841
927
  error: {
842
- code: "upstream_error";
928
+ code: "api_key_malformed";
843
929
  details?: readonly Response.error.Detail[] | undefined;
844
930
  message: string;
845
931
  };
846
932
  requestId: string;
847
933
  };
848
934
  outputFormat: "json";
849
- status: 502;
935
+ status: 400;
850
936
  input: {
851
937
  param: {
852
938
  orgId: string;
@@ -859,7 +945,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
859
945
  } | {
860
946
  output: {
861
947
  error: {
862
- code: "api_key_malformed";
948
+ code: "query_invalid";
863
949
  details?: readonly Response.error.Detail[] | undefined;
864
950
  message: string;
865
951
  };
@@ -879,14 +965,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
879
965
  } | {
880
966
  output: {
881
967
  error: {
882
- code: "api_key_invalid" | "api_key_missing";
968
+ code: "param_invalid";
883
969
  details?: readonly Response.error.Detail[] | undefined;
884
970
  message: string;
885
971
  };
886
972
  requestId: string;
887
973
  };
888
974
  outputFormat: "json";
889
- status: 401;
975
+ status: 400;
890
976
  input: {
891
977
  param: {
892
978
  orgId: string;
@@ -899,14 +985,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
899
985
  } | {
900
986
  output: {
901
987
  error: {
902
- code: "query_invalid";
988
+ code: "api_key_invalid" | "api_key_missing";
903
989
  details?: readonly Response.error.Detail[] | undefined;
904
990
  message: string;
905
991
  };
906
992
  requestId: string;
907
993
  };
908
994
  outputFormat: "json";
909
- status: 400;
995
+ status: 401;
910
996
  input: {
911
997
  param: {
912
998
  orgId: string;
@@ -919,7 +1005,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
919
1005
  } | {
920
1006
  output: {
921
1007
  error: {
922
- code: "forbidden";
1008
+ code: "api_key_forbidden";
923
1009
  details?: readonly Response.error.Detail[] | undefined;
924
1010
  message: string;
925
1011
  };
@@ -959,14 +1045,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
959
1045
  } | {
960
1046
  output: {
961
1047
  error: {
962
- code: "param_invalid";
1048
+ code: "billing_not_found";
963
1049
  details?: readonly Response.error.Detail[] | undefined;
964
1050
  message: string;
965
1051
  };
966
1052
  requestId: string;
967
1053
  };
968
1054
  outputFormat: "json";
969
- status: 400;
1055
+ status: 404;
970
1056
  input: {
971
1057
  param: {
972
1058
  orgId: string;
@@ -979,14 +1065,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
979
1065
  } | {
980
1066
  output: {
981
1067
  error: {
982
- code: "billing_unconfigured";
1068
+ code: "payment_required" | "rate_limit_exceeded";
983
1069
  details?: readonly Response.error.Detail[] | undefined;
984
1070
  message: string;
985
1071
  };
986
1072
  requestId: string;
987
1073
  };
988
1074
  outputFormat: "json";
989
- status: 501;
1075
+ status: 429;
990
1076
  input: {
991
1077
  param: {
992
1078
  orgId: string;
@@ -998,10 +1084,15 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
998
1084
  };
999
1085
  } | {
1000
1086
  output: {
1001
- url: string;
1087
+ error: {
1088
+ code: "billing_unconfigured";
1089
+ details?: readonly Response.error.Detail[] | undefined;
1090
+ message: string;
1091
+ };
1092
+ requestId: string;
1002
1093
  };
1003
1094
  outputFormat: "json";
1004
- status: 200;
1095
+ status: 501;
1005
1096
  input: {
1006
1097
  param: {
1007
1098
  orgId: string;
@@ -1014,14 +1105,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1014
1105
  } | {
1015
1106
  output: {
1016
1107
  error: {
1017
- code: "billing_not_found";
1108
+ code: "upstream_error";
1018
1109
  details?: readonly Response.error.Detail[] | undefined;
1019
1110
  message: string;
1020
1111
  };
1021
1112
  requestId: string;
1022
1113
  };
1023
1114
  outputFormat: "json";
1024
- status: 404;
1115
+ status: 502;
1025
1116
  input: {
1026
1117
  param: {
1027
1118
  orgId: string;
@@ -1036,16 +1127,43 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1036
1127
  } & {
1037
1128
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/payment-methods": {
1038
1129
  $get: {
1130
+ output: {
1131
+ data: {
1132
+ card?: {
1133
+ brand: string;
1134
+ expMonth: number;
1135
+ expYear: number;
1136
+ last4: string;
1137
+ } | undefined;
1138
+ createdAt: string;
1139
+ default: boolean;
1140
+ id: string;
1141
+ provider: "stripe";
1142
+ type: string;
1143
+ }[];
1144
+ };
1145
+ outputFormat: "json";
1146
+ status: 200;
1147
+ input: {
1148
+ param: {
1149
+ orgId: string;
1150
+ };
1151
+ } & {
1152
+ query?: {
1153
+ environment?: string | string[];
1154
+ } | undefined;
1155
+ };
1156
+ } | {
1039
1157
  output: {
1040
1158
  error: {
1041
- code: "upstream_error";
1159
+ code: "api_key_malformed";
1042
1160
  details?: readonly Response.error.Detail[] | undefined;
1043
1161
  message: string;
1044
1162
  };
1045
1163
  requestId: string;
1046
1164
  };
1047
1165
  outputFormat: "json";
1048
- status: 502;
1166
+ status: 400;
1049
1167
  input: {
1050
1168
  param: {
1051
1169
  orgId: string;
@@ -1058,7 +1176,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1058
1176
  } | {
1059
1177
  output: {
1060
1178
  error: {
1061
- code: "api_key_malformed";
1179
+ code: "query_invalid";
1062
1180
  details?: readonly Response.error.Detail[] | undefined;
1063
1181
  message: string;
1064
1182
  };
@@ -1078,14 +1196,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1078
1196
  } | {
1079
1197
  output: {
1080
1198
  error: {
1081
- code: "api_key_invalid" | "api_key_missing";
1199
+ code: "param_invalid";
1082
1200
  details?: readonly Response.error.Detail[] | undefined;
1083
1201
  message: string;
1084
1202
  };
1085
1203
  requestId: string;
1086
1204
  };
1087
1205
  outputFormat: "json";
1088
- status: 401;
1206
+ status: 400;
1089
1207
  input: {
1090
1208
  param: {
1091
1209
  orgId: string;
@@ -1098,14 +1216,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1098
1216
  } | {
1099
1217
  output: {
1100
1218
  error: {
1101
- code: "query_invalid";
1219
+ code: "api_key_invalid" | "api_key_missing";
1102
1220
  details?: readonly Response.error.Detail[] | undefined;
1103
1221
  message: string;
1104
1222
  };
1105
1223
  requestId: string;
1106
1224
  };
1107
1225
  outputFormat: "json";
1108
- status: 400;
1226
+ status: 401;
1109
1227
  input: {
1110
1228
  param: {
1111
1229
  orgId: string;
@@ -1118,7 +1236,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1118
1236
  } | {
1119
1237
  output: {
1120
1238
  error: {
1121
- code: "forbidden";
1239
+ code: "api_key_forbidden";
1122
1240
  details?: readonly Response.error.Detail[] | undefined;
1123
1241
  message: string;
1124
1242
  };
@@ -1158,14 +1276,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1158
1276
  } | {
1159
1277
  output: {
1160
1278
  error: {
1161
- code: "param_invalid";
1279
+ code: "payment_required" | "rate_limit_exceeded";
1162
1280
  details?: readonly Response.error.Detail[] | undefined;
1163
1281
  message: string;
1164
1282
  };
1165
1283
  requestId: string;
1166
1284
  };
1167
1285
  outputFormat: "json";
1168
- status: 400;
1286
+ status: 429;
1169
1287
  input: {
1170
1288
  param: {
1171
1289
  orgId: string;
@@ -1197,22 +1315,15 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1197
1315
  };
1198
1316
  } | {
1199
1317
  output: {
1200
- data: {
1201
- card?: {
1202
- brand: string;
1203
- expMonth: number;
1204
- expYear: number;
1205
- last4: string;
1206
- } | undefined;
1207
- createdAt: string;
1208
- default: boolean;
1209
- id: string;
1210
- provider: "stripe";
1211
- type: string;
1212
- }[];
1318
+ error: {
1319
+ code: "upstream_error";
1320
+ details?: readonly Response.error.Detail[] | undefined;
1321
+ message: string;
1322
+ };
1323
+ requestId: string;
1213
1324
  };
1214
1325
  outputFormat: "json";
1215
- status: 200;
1326
+ status: 502;
1216
1327
  input: {
1217
1328
  param: {
1218
1329
  orgId: string;
@@ -1227,16 +1338,47 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1227
1338
  } & {
1228
1339
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/payment-methods/:methodId{pm_[A-Za-z0-9_-]+}": {
1229
1340
  $delete: {
1341
+ output: {
1342
+ spend?: {
1343
+ amount: string;
1344
+ currency: "usd";
1345
+ period: "month";
1346
+ } | undefined;
1347
+ spendLimit?: {
1348
+ amount: string;
1349
+ currency: "usd";
1350
+ period: "month";
1351
+ } | undefined;
1352
+ status: "active" | "canceled" | "none" | "past_due";
1353
+ txFeeLimit?: {
1354
+ amount: string;
1355
+ currency: "usd";
1356
+ } | undefined;
1357
+ updatedAt?: string | undefined;
1358
+ };
1359
+ outputFormat: "json";
1360
+ status: 200;
1361
+ input: {
1362
+ param: {
1363
+ methodId: string;
1364
+ orgId: string;
1365
+ };
1366
+ } & {
1367
+ query?: {
1368
+ environment?: string | string[];
1369
+ } | undefined;
1370
+ };
1371
+ } | {
1230
1372
  output: {
1231
1373
  error: {
1232
- code: "upstream_error";
1374
+ code: "api_key_malformed";
1233
1375
  details?: readonly Response.error.Detail[] | undefined;
1234
1376
  message: string;
1235
1377
  };
1236
1378
  requestId: string;
1237
1379
  };
1238
1380
  outputFormat: "json";
1239
- status: 502;
1381
+ status: 400;
1240
1382
  input: {
1241
1383
  param: {
1242
1384
  methodId: string;
@@ -1250,7 +1392,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1250
1392
  } | {
1251
1393
  output: {
1252
1394
  error: {
1253
- code: "api_key_malformed";
1395
+ code: "query_invalid";
1254
1396
  details?: readonly Response.error.Detail[] | undefined;
1255
1397
  message: string;
1256
1398
  };
@@ -1271,14 +1413,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1271
1413
  } | {
1272
1414
  output: {
1273
1415
  error: {
1274
- code: "api_key_invalid" | "api_key_missing";
1416
+ code: "param_invalid";
1275
1417
  details?: readonly Response.error.Detail[] | undefined;
1276
1418
  message: string;
1277
1419
  };
1278
1420
  requestId: string;
1279
1421
  };
1280
1422
  outputFormat: "json";
1281
- status: 401;
1423
+ status: 400;
1282
1424
  input: {
1283
1425
  param: {
1284
1426
  methodId: string;
@@ -1292,14 +1434,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1292
1434
  } | {
1293
1435
  output: {
1294
1436
  error: {
1295
- code: "query_invalid";
1437
+ code: "api_key_invalid" | "api_key_missing";
1296
1438
  details?: readonly Response.error.Detail[] | undefined;
1297
1439
  message: string;
1298
1440
  };
1299
1441
  requestId: string;
1300
1442
  };
1301
1443
  outputFormat: "json";
1302
- status: 400;
1444
+ status: 401;
1303
1445
  input: {
1304
1446
  param: {
1305
1447
  methodId: string;
@@ -1313,7 +1455,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1313
1455
  } | {
1314
1456
  output: {
1315
1457
  error: {
1316
- code: "forbidden";
1458
+ code: "api_key_forbidden";
1317
1459
  details?: readonly Response.error.Detail[] | undefined;
1318
1460
  message: string;
1319
1461
  };
@@ -1355,14 +1497,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1355
1497
  } | {
1356
1498
  output: {
1357
1499
  error: {
1358
- code: "param_invalid";
1500
+ code: "billing_not_found";
1359
1501
  details?: readonly Response.error.Detail[] | undefined;
1360
1502
  message: string;
1361
1503
  };
1362
1504
  requestId: string;
1363
1505
  };
1364
1506
  outputFormat: "json";
1365
- status: 400;
1507
+ status: 404;
1366
1508
  input: {
1367
1509
  param: {
1368
1510
  methodId: string;
@@ -1376,14 +1518,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1376
1518
  } | {
1377
1519
  output: {
1378
1520
  error: {
1379
- code: "billing_unconfigured";
1521
+ code: "payment_method_not_found";
1380
1522
  details?: readonly Response.error.Detail[] | undefined;
1381
1523
  message: string;
1382
1524
  };
1383
1525
  requestId: string;
1384
1526
  };
1385
1527
  outputFormat: "json";
1386
- status: 501;
1528
+ status: 404;
1387
1529
  input: {
1388
1530
  param: {
1389
1531
  methodId: string;
@@ -1396,25 +1538,15 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1396
1538
  };
1397
1539
  } | {
1398
1540
  output: {
1399
- spend?: {
1400
- amount: string;
1401
- currency: "usd";
1402
- period: "month";
1403
- } | undefined;
1404
- spendLimit?: {
1405
- amount: string;
1406
- currency: "usd";
1407
- period: "month";
1408
- } | undefined;
1409
- status: "active" | "canceled" | "none" | "past_due";
1410
- txFeeLimit?: {
1411
- amount: string;
1412
- currency: "usd";
1413
- } | undefined;
1414
- updatedAt?: string | undefined;
1541
+ error: {
1542
+ code: "payment_required" | "rate_limit_exceeded";
1543
+ details?: readonly Response.error.Detail[] | undefined;
1544
+ message: string;
1545
+ };
1546
+ requestId: string;
1415
1547
  };
1416
1548
  outputFormat: "json";
1417
- status: 200;
1549
+ status: 429;
1418
1550
  input: {
1419
1551
  param: {
1420
1552
  methodId: string;
@@ -1428,14 +1560,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1428
1560
  } | {
1429
1561
  output: {
1430
1562
  error: {
1431
- code: "billing_not_found";
1563
+ code: "billing_unconfigured";
1432
1564
  details?: readonly Response.error.Detail[] | undefined;
1433
1565
  message: string;
1434
1566
  };
1435
1567
  requestId: string;
1436
1568
  };
1437
1569
  outputFormat: "json";
1438
- status: 404;
1570
+ status: 501;
1439
1571
  input: {
1440
1572
  param: {
1441
1573
  methodId: string;
@@ -1449,14 +1581,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1449
1581
  } | {
1450
1582
  output: {
1451
1583
  error: {
1452
- code: "payment_method_not_found";
1584
+ code: "upstream_error";
1453
1585
  details?: readonly Response.error.Detail[] | undefined;
1454
1586
  message: string;
1455
1587
  };
1456
1588
  requestId: string;
1457
1589
  };
1458
1590
  outputFormat: "json";
1459
- status: 404;
1591
+ status: 502;
1460
1592
  input: {
1461
1593
  param: {
1462
1594
  methodId: string;
@@ -1472,16 +1604,23 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1472
1604
  } & {
1473
1605
  "/stripe/webhook": {
1474
1606
  $post: {
1607
+ output: {
1608
+ received: true;
1609
+ };
1610
+ outputFormat: "json";
1611
+ status: 200;
1612
+ input: {};
1613
+ } | {
1475
1614
  output: {
1476
1615
  error: {
1477
- code: "upstream_error";
1616
+ code: "signature_invalid";
1478
1617
  details?: readonly Response.error.Detail[] | undefined;
1479
1618
  message: string;
1480
1619
  };
1481
1620
  requestId: string;
1482
1621
  };
1483
1622
  outputFormat: "json";
1484
- status: 502;
1623
+ status: 400;
1485
1624
  input: {};
1486
1625
  } | {
1487
1626
  output: {
@@ -1498,21 +1637,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1498
1637
  } | {
1499
1638
  output: {
1500
1639
  error: {
1501
- code: "signature_invalid";
1640
+ code: "upstream_error";
1502
1641
  details?: readonly Response.error.Detail[] | undefined;
1503
1642
  message: string;
1504
1643
  };
1505
1644
  requestId: string;
1506
1645
  };
1507
1646
  outputFormat: "json";
1508
- status: 400;
1509
- input: {};
1510
- } | {
1511
- output: {
1512
- received: true;
1513
- };
1514
- outputFormat: "json";
1515
- status: 200;
1647
+ status: 502;
1516
1648
  input: {};
1517
1649
  };
1518
1650
  };