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
@@ -67,8 +67,8 @@ export type Environment = {
67
67
  * invitations, and API-key management. Every route reads its dependencies from
68
68
  * request context set by {@link App.create}.
69
69
  *
70
- * The session-auth surface (`/v1/auth/siwe` + `session` capability) is owned by
71
- * {@link App.create}, so management routes gate on a session without owning it.
70
+ * The session-auth surface is owned by {@link App.create}; management routes
71
+ * reference it alongside scoped API-key access.
72
72
  *
73
73
  * ```ts
74
74
  * App.create(options).route('/', management())
@@ -78,15 +78,14 @@ export declare function management(options?: management.Options): import("hono/h
78
78
  "/v1/me": {
79
79
  $get: {
80
80
  output: {
81
- error: {
82
- code: "upstream_error";
83
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
84
- message: string;
85
- };
86
- requestId: string;
81
+ address?: string | undefined;
82
+ createdAt: string;
83
+ email?: string | undefined;
84
+ id: string;
85
+ updatedAt: string;
87
86
  };
88
87
  outputFormat: "json";
89
- status: 502;
88
+ status: 200;
90
89
  input: {};
91
90
  } | {
92
91
  output: {
@@ -138,20 +137,32 @@ export declare function management(options?: management.Options): import("hono/h
138
137
  input: {};
139
138
  } | {
140
139
  output: {
141
- address?: string | undefined;
142
- createdAt: string;
143
- email?: string | undefined;
144
- id: string;
145
- updatedAt: string;
140
+ error: {
141
+ code: "upstream_error";
142
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
143
+ message: string;
144
+ };
145
+ requestId: string;
146
146
  };
147
147
  outputFormat: "json";
148
- status: 200;
148
+ status: 502;
149
149
  input: {};
150
150
  };
151
151
  };
152
152
  }, "/"> | import("hono/types").MergeSchemaPath<{
153
153
  "/v1/scopes": {
154
154
  $get: {
155
+ output: {
156
+ data: {
157
+ description: string;
158
+ scope: string;
159
+ selfServe: boolean;
160
+ }[];
161
+ };
162
+ outputFormat: "json";
163
+ status: 200;
164
+ input: {};
165
+ } | {
155
166
  output: {
156
167
  error: {
157
168
  code: "api_key_malformed";
@@ -199,32 +210,68 @@ export declare function management(options?: management.Options): import("hono/h
199
210
  outputFormat: "json";
200
211
  status: 429;
201
212
  input: {};
202
- } | {
203
- output: {
204
- data: {
205
- description: string;
206
- scope: "data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write";
207
- selfServe: boolean;
208
- }[];
209
- };
210
- outputFormat: "json";
211
- status: 200;
212
- input: {};
213
213
  };
214
214
  };
215
215
  }, "/"> | import("hono/types").MergeSchemaPath<{
216
216
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/usage/requests": {
217
217
  $get: {
218
+ output: {
219
+ byKey: {
220
+ apiKeyId: string;
221
+ averageDurationMs: number;
222
+ errors: number;
223
+ requests: number;
224
+ }[];
225
+ byRoute: {
226
+ averageDurationMs: number;
227
+ errors: number;
228
+ requests: number;
229
+ route: string;
230
+ }[];
231
+ byStatus: {
232
+ requests: number;
233
+ status: number;
234
+ }[];
235
+ from: string;
236
+ interval: "day" | "hour";
237
+ series: {
238
+ errors: number;
239
+ requests: number;
240
+ time: string;
241
+ }[];
242
+ to: string;
243
+ totals: {
244
+ averageDurationMs: number;
245
+ errors: number;
246
+ requests: number;
247
+ };
248
+ };
249
+ outputFormat: "json";
250
+ status: 200;
251
+ input: {
252
+ param: {
253
+ orgId: string;
254
+ };
255
+ } & {
256
+ query?: {
257
+ environment?: string | string[];
258
+ from?: string | string[];
259
+ interval?: string | string[];
260
+ projectId?: string | string[];
261
+ to?: string | string[];
262
+ } | undefined;
263
+ };
264
+ } | {
218
265
  output: {
219
266
  error: {
220
- code: "upstream_error";
267
+ code: "api_key_malformed";
221
268
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
222
269
  message: string;
223
270
  };
224
271
  requestId: string;
225
272
  };
226
273
  outputFormat: "json";
227
- status: 502;
274
+ status: 400;
228
275
  input: {
229
276
  param: {
230
277
  orgId: string;
@@ -241,7 +288,7 @@ export declare function management(options?: management.Options): import("hono/h
241
288
  } | {
242
289
  output: {
243
290
  error: {
244
- code: "api_key_malformed";
291
+ code: "query_invalid";
245
292
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
246
293
  message: string;
247
294
  };
@@ -265,14 +312,14 @@ export declare function management(options?: management.Options): import("hono/h
265
312
  } | {
266
313
  output: {
267
314
  error: {
268
- code: "api_key_invalid" | "api_key_missing";
315
+ code: "param_invalid";
269
316
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
270
317
  message: string;
271
318
  };
272
319
  requestId: string;
273
320
  };
274
321
  outputFormat: "json";
275
- status: 401;
322
+ status: 400;
276
323
  input: {
277
324
  param: {
278
325
  orgId: string;
@@ -289,14 +336,14 @@ export declare function management(options?: management.Options): import("hono/h
289
336
  } | {
290
337
  output: {
291
338
  error: {
292
- code: "query_invalid";
339
+ code: "api_key_invalid" | "api_key_missing";
293
340
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
294
341
  message: string;
295
342
  };
296
343
  requestId: string;
297
344
  };
298
345
  outputFormat: "json";
299
- status: 400;
346
+ status: 401;
300
347
  input: {
301
348
  param: {
302
349
  orgId: string;
@@ -313,7 +360,7 @@ export declare function management(options?: management.Options): import("hono/h
313
360
  } | {
314
361
  output: {
315
362
  error: {
316
- code: "forbidden";
363
+ code: "api_key_forbidden";
317
364
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
318
365
  message: string;
319
366
  };
@@ -361,14 +408,14 @@ export declare function management(options?: management.Options): import("hono/h
361
408
  } | {
362
409
  output: {
363
410
  error: {
364
- code: "param_invalid";
411
+ code: "payment_required" | "rate_limit_exceeded";
365
412
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
366
413
  message: string;
367
414
  };
368
415
  requestId: string;
369
416
  };
370
417
  outputFormat: "json";
371
- status: 400;
418
+ status: 429;
372
419
  input: {
373
420
  param: {
374
421
  orgId: string;
@@ -408,38 +455,15 @@ export declare function management(options?: management.Options): import("hono/h
408
455
  };
409
456
  } | {
410
457
  output: {
411
- byKey: {
412
- apiKeyId: string;
413
- averageDurationMs: number;
414
- errors: number;
415
- requests: number;
416
- }[];
417
- byRoute: {
418
- averageDurationMs: number;
419
- errors: number;
420
- requests: number;
421
- route: string;
422
- }[];
423
- byStatus: {
424
- requests: number;
425
- status: number;
426
- }[];
427
- from: string;
428
- interval: "day" | "hour";
429
- series: {
430
- errors: number;
431
- requests: number;
432
- time: string;
433
- }[];
434
- to: string;
435
- totals: {
436
- averageDurationMs: number;
437
- errors: number;
438
- requests: number;
458
+ error: {
459
+ code: "upstream_error";
460
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
461
+ message: string;
439
462
  };
463
+ requestId: string;
440
464
  };
441
465
  outputFormat: "json";
442
- status: 200;
466
+ status: 502;
443
467
  input: {
444
468
  param: {
445
469
  orgId: string;
@@ -458,16 +482,42 @@ export declare function management(options?: management.Options): import("hono/h
458
482
  } & {
459
483
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/usage/sponsorships": {
460
484
  $get: {
485
+ output: {
486
+ data: {
487
+ count: number;
488
+ feeTotal: {
489
+ amount: string;
490
+ currency: "usd";
491
+ };
492
+ timestamp: string;
493
+ }[];
494
+ };
495
+ outputFormat: "json";
496
+ status: 200;
497
+ input: {
498
+ param: {
499
+ orgId: string;
500
+ };
501
+ } & {
502
+ query?: {
503
+ environment?: string | string[];
504
+ from?: string | string[];
505
+ interval?: string | string[];
506
+ projectId?: string | string[];
507
+ to?: string | string[];
508
+ } | undefined;
509
+ };
510
+ } | {
461
511
  output: {
462
512
  error: {
463
- code: "upstream_error";
513
+ code: "api_key_malformed";
464
514
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
465
515
  message: string;
466
516
  };
467
517
  requestId: string;
468
518
  };
469
519
  outputFormat: "json";
470
- status: 502;
520
+ status: 400;
471
521
  input: {
472
522
  param: {
473
523
  orgId: string;
@@ -484,7 +534,7 @@ export declare function management(options?: management.Options): import("hono/h
484
534
  } | {
485
535
  output: {
486
536
  error: {
487
- code: "api_key_malformed";
537
+ code: "query_invalid";
488
538
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
489
539
  message: string;
490
540
  };
@@ -508,14 +558,14 @@ export declare function management(options?: management.Options): import("hono/h
508
558
  } | {
509
559
  output: {
510
560
  error: {
511
- code: "api_key_invalid" | "api_key_missing";
561
+ code: "param_invalid";
512
562
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
513
563
  message: string;
514
564
  };
515
565
  requestId: string;
516
566
  };
517
567
  outputFormat: "json";
518
- status: 401;
568
+ status: 400;
519
569
  input: {
520
570
  param: {
521
571
  orgId: string;
@@ -532,14 +582,14 @@ export declare function management(options?: management.Options): import("hono/h
532
582
  } | {
533
583
  output: {
534
584
  error: {
535
- code: "query_invalid";
585
+ code: "api_key_invalid" | "api_key_missing";
536
586
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
537
587
  message: string;
538
588
  };
539
589
  requestId: string;
540
590
  };
541
591
  outputFormat: "json";
542
- status: 400;
592
+ status: 401;
543
593
  input: {
544
594
  param: {
545
595
  orgId: string;
@@ -556,7 +606,7 @@ export declare function management(options?: management.Options): import("hono/h
556
606
  } | {
557
607
  output: {
558
608
  error: {
559
- code: "forbidden";
609
+ code: "api_key_forbidden";
560
610
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
561
611
  message: string;
562
612
  };
@@ -604,14 +654,14 @@ export declare function management(options?: management.Options): import("hono/h
604
654
  } | {
605
655
  output: {
606
656
  error: {
607
- code: "param_invalid";
657
+ code: "payment_required" | "rate_limit_exceeded";
608
658
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
609
659
  message: string;
610
660
  };
611
661
  requestId: string;
612
662
  };
613
663
  outputFormat: "json";
614
- status: 400;
664
+ status: 429;
615
665
  input: {
616
666
  param: {
617
667
  orgId: string;
@@ -627,17 +677,15 @@ export declare function management(options?: management.Options): import("hono/h
627
677
  };
628
678
  } | {
629
679
  output: {
630
- data: {
631
- count: number;
632
- feeTotal: {
633
- amount: string;
634
- currency: "usd";
635
- };
636
- timestamp: string;
637
- }[];
680
+ error: {
681
+ code: "upstream_error";
682
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
683
+ message: string;
684
+ };
685
+ requestId: string;
638
686
  };
639
687
  outputFormat: "json";
640
- status: 200;
688
+ status: 502;
641
689
  input: {
642
690
  param: {
643
691
  orgId: string;
@@ -656,16 +704,33 @@ export declare function management(options?: management.Options): import("hono/h
656
704
  }, "/"> | import("hono/types").MergeSchemaPath<{
657
705
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/members": {
658
706
  $get: {
707
+ output: {
708
+ data: {
709
+ address?: string | undefined;
710
+ createdAt: string;
711
+ email?: string | undefined;
712
+ role: "admin" | "member" | "owner";
713
+ userId: string;
714
+ }[];
715
+ };
716
+ outputFormat: "json";
717
+ status: 200;
718
+ input: {
719
+ param: {
720
+ orgId: string;
721
+ };
722
+ };
723
+ } | {
659
724
  output: {
660
725
  error: {
661
- code: "upstream_error";
726
+ code: "api_key_malformed";
662
727
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
663
728
  message: string;
664
729
  };
665
730
  requestId: string;
666
731
  };
667
732
  outputFormat: "json";
668
- status: 502;
733
+ status: 400;
669
734
  input: {
670
735
  param: {
671
736
  orgId: string;
@@ -674,7 +739,7 @@ export declare function management(options?: management.Options): import("hono/h
674
739
  } | {
675
740
  output: {
676
741
  error: {
677
- code: "api_key_malformed";
742
+ code: "param_invalid";
678
743
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
679
744
  message: string;
680
745
  };
@@ -706,7 +771,7 @@ export declare function management(options?: management.Options): import("hono/h
706
771
  } | {
707
772
  output: {
708
773
  error: {
709
- code: "forbidden";
774
+ code: "api_key_forbidden";
710
775
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
711
776
  message: string;
712
777
  };
@@ -738,14 +803,14 @@ export declare function management(options?: management.Options): import("hono/h
738
803
  } | {
739
804
  output: {
740
805
  error: {
741
- code: "param_invalid";
806
+ code: "payment_required" | "rate_limit_exceeded";
742
807
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
743
808
  message: string;
744
809
  };
745
810
  requestId: string;
746
811
  };
747
812
  outputFormat: "json";
748
- status: 400;
813
+ status: 429;
749
814
  input: {
750
815
  param: {
751
816
  orgId: string;
@@ -753,16 +818,15 @@ export declare function management(options?: management.Options): import("hono/h
753
818
  };
754
819
  } | {
755
820
  output: {
756
- data: {
757
- address?: string | undefined;
758
- createdAt: string;
759
- email?: string | undefined;
760
- role: "admin" | "member" | "owner";
761
- userId: string;
762
- }[];
821
+ error: {
822
+ code: "upstream_error";
823
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
824
+ message: string;
825
+ };
826
+ requestId: string;
763
827
  };
764
828
  outputFormat: "json";
765
- status: 200;
829
+ status: 502;
766
830
  input: {
767
831
  param: {
768
832
  orgId: string;
@@ -773,16 +837,36 @@ export declare function management(options?: management.Options): import("hono/h
773
837
  } & {
774
838
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/members/:userId{usr_[A-Za-z0-9_-]+}": {
775
839
  $patch: {
840
+ output: {
841
+ address?: string | undefined;
842
+ createdAt: string;
843
+ email?: string | undefined;
844
+ role: "admin" | "member" | "owner";
845
+ userId: string;
846
+ };
847
+ outputFormat: "json";
848
+ status: 200;
849
+ input: {
850
+ param: {
851
+ orgId: string;
852
+ userId: string;
853
+ };
854
+ } & {
855
+ json: {
856
+ role: "admin" | "member" | "owner";
857
+ };
858
+ };
859
+ } | {
776
860
  output: {
777
861
  error: {
778
- code: "upstream_error";
862
+ code: "api_key_malformed";
779
863
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
780
864
  message: string;
781
865
  };
782
866
  requestId: string;
783
867
  };
784
868
  outputFormat: "json";
785
- status: 502;
869
+ status: 400;
786
870
  input: {
787
871
  param: {
788
872
  orgId: string;
@@ -796,7 +880,7 @@ export declare function management(options?: management.Options): import("hono/h
796
880
  } | {
797
881
  output: {
798
882
  error: {
799
- code: "api_key_malformed";
883
+ code: "body_invalid";
800
884
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
801
885
  message: string;
802
886
  };
@@ -817,14 +901,14 @@ export declare function management(options?: management.Options): import("hono/h
817
901
  } | {
818
902
  output: {
819
903
  error: {
820
- code: "api_key_invalid" | "api_key_missing";
904
+ code: "param_invalid";
821
905
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
822
906
  message: string;
823
907
  };
824
908
  requestId: string;
825
909
  };
826
910
  outputFormat: "json";
827
- status: 401;
911
+ status: 400;
828
912
  input: {
829
913
  param: {
830
914
  orgId: string;
@@ -838,14 +922,14 @@ export declare function management(options?: management.Options): import("hono/h
838
922
  } | {
839
923
  output: {
840
924
  error: {
841
- code: "forbidden";
925
+ code: "api_key_invalid" | "api_key_missing";
842
926
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
843
927
  message: string;
844
928
  };
845
929
  requestId: string;
846
930
  };
847
931
  outputFormat: "json";
848
- status: 403;
932
+ status: 401;
849
933
  input: {
850
934
  param: {
851
935
  orgId: string;
@@ -859,14 +943,14 @@ export declare function management(options?: management.Options): import("hono/h
859
943
  } | {
860
944
  output: {
861
945
  error: {
862
- code: "organization_not_found";
946
+ code: "api_key_forbidden";
863
947
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
864
948
  message: string;
865
949
  };
866
950
  requestId: string;
867
951
  };
868
952
  outputFormat: "json";
869
- status: 404;
953
+ status: 403;
870
954
  input: {
871
955
  param: {
872
956
  orgId: string;
@@ -880,14 +964,14 @@ export declare function management(options?: management.Options): import("hono/h
880
964
  } | {
881
965
  output: {
882
966
  error: {
883
- code: "param_invalid";
967
+ code: "organization_not_found";
884
968
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
885
969
  message: string;
886
970
  };
887
971
  requestId: string;
888
972
  };
889
973
  outputFormat: "json";
890
- status: 400;
974
+ status: 404;
891
975
  input: {
892
976
  param: {
893
977
  orgId: string;
@@ -901,14 +985,14 @@ export declare function management(options?: management.Options): import("hono/h
901
985
  } | {
902
986
  output: {
903
987
  error: {
904
- code: "body_invalid";
988
+ code: "member_not_found";
905
989
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
906
990
  message: string;
907
991
  };
908
992
  requestId: string;
909
993
  };
910
994
  outputFormat: "json";
911
- status: 400;
995
+ status: 404;
912
996
  input: {
913
997
  param: {
914
998
  orgId: string;
@@ -943,14 +1027,14 @@ export declare function management(options?: management.Options): import("hono/h
943
1027
  } | {
944
1028
  output: {
945
1029
  error: {
946
- code: "member_not_found";
1030
+ code: "payment_required" | "rate_limit_exceeded";
947
1031
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
948
1032
  message: string;
949
1033
  };
950
1034
  requestId: string;
951
1035
  };
952
1036
  outputFormat: "json";
953
- status: 404;
1037
+ status: 429;
954
1038
  input: {
955
1039
  param: {
956
1040
  orgId: string;
@@ -963,14 +1047,15 @@ export declare function management(options?: management.Options): import("hono/h
963
1047
  };
964
1048
  } | {
965
1049
  output: {
966
- address?: string | undefined;
967
- createdAt: string;
968
- email?: string | undefined;
969
- role: "admin" | "member" | "owner";
970
- userId: string;
1050
+ error: {
1051
+ code: "upstream_error";
1052
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1053
+ message: string;
1054
+ };
1055
+ requestId: string;
971
1056
  };
972
1057
  outputFormat: "json";
973
- status: 200;
1058
+ status: 502;
974
1059
  input: {
975
1060
  param: {
976
1061
  orgId: string;
@@ -986,16 +1071,28 @@ export declare function management(options?: management.Options): import("hono/h
986
1071
  } & {
987
1072
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/members/:userId{usr_[A-Za-z0-9_-]+}": {
988
1073
  $delete: {
1074
+ output: {
1075
+ userId: string;
1076
+ };
1077
+ outputFormat: "json";
1078
+ status: 200;
1079
+ input: {
1080
+ param: {
1081
+ orgId: string;
1082
+ userId: string;
1083
+ };
1084
+ };
1085
+ } | {
989
1086
  output: {
990
1087
  error: {
991
- code: "upstream_error";
1088
+ code: "api_key_malformed";
992
1089
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
993
1090
  message: string;
994
1091
  };
995
1092
  requestId: string;
996
1093
  };
997
1094
  outputFormat: "json";
998
- status: 502;
1095
+ status: 400;
999
1096
  input: {
1000
1097
  param: {
1001
1098
  orgId: string;
@@ -1005,7 +1102,7 @@ export declare function management(options?: management.Options): import("hono/h
1005
1102
  } | {
1006
1103
  output: {
1007
1104
  error: {
1008
- code: "api_key_malformed";
1105
+ code: "param_invalid";
1009
1106
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1010
1107
  message: string;
1011
1108
  };
@@ -1036,6 +1133,23 @@ export declare function management(options?: management.Options): import("hono/h
1036
1133
  userId: string;
1037
1134
  };
1038
1135
  };
1136
+ } | {
1137
+ output: {
1138
+ error: {
1139
+ code: "api_key_forbidden";
1140
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1141
+ message: string;
1142
+ };
1143
+ requestId: string;
1144
+ };
1145
+ outputFormat: "json";
1146
+ status: 403;
1147
+ input: {
1148
+ param: {
1149
+ orgId: string;
1150
+ userId: string;
1151
+ };
1152
+ };
1039
1153
  } | {
1040
1154
  output: {
1041
1155
  error: {
@@ -1073,14 +1187,14 @@ export declare function management(options?: management.Options): import("hono/h
1073
1187
  } | {
1074
1188
  output: {
1075
1189
  error: {
1076
- code: "param_invalid";
1190
+ code: "member_not_found";
1077
1191
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1078
1192
  message: string;
1079
1193
  };
1080
1194
  requestId: string;
1081
1195
  };
1082
1196
  outputFormat: "json";
1083
- status: 400;
1197
+ status: 404;
1084
1198
  input: {
1085
1199
  param: {
1086
1200
  orgId: string;
@@ -1107,14 +1221,14 @@ export declare function management(options?: management.Options): import("hono/h
1107
1221
  } | {
1108
1222
  output: {
1109
1223
  error: {
1110
- code: "member_not_found";
1224
+ code: "payment_required" | "rate_limit_exceeded";
1111
1225
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1112
1226
  message: string;
1113
1227
  };
1114
1228
  requestId: string;
1115
1229
  };
1116
1230
  outputFormat: "json";
1117
- status: 404;
1231
+ status: 429;
1118
1232
  input: {
1119
1233
  param: {
1120
1234
  orgId: string;
@@ -1123,10 +1237,15 @@ export declare function management(options?: management.Options): import("hono/h
1123
1237
  };
1124
1238
  } | {
1125
1239
  output: {
1126
- userId: string;
1240
+ error: {
1241
+ code: "upstream_error";
1242
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1243
+ message: string;
1244
+ };
1245
+ requestId: string;
1127
1246
  };
1128
1247
  outputFormat: "json";
1129
- status: 200;
1248
+ status: 502;
1130
1249
  input: {
1131
1250
  param: {
1132
1251
  orgId: string;
@@ -1138,16 +1257,44 @@ export declare function management(options?: management.Options): import("hono/h
1138
1257
  }, "/"> | import("hono/types").MergeSchemaPath<{
1139
1258
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
1140
1259
  $post: {
1260
+ output: {
1261
+ createdAt: string;
1262
+ createdBy?: string | undefined;
1263
+ environment: "production" | "sandbox";
1264
+ expiresAt?: string | undefined;
1265
+ id: string;
1266
+ name?: string | undefined;
1267
+ orgId: string;
1268
+ projectId?: string | undefined;
1269
+ scopes: string[];
1270
+ tokenLast4: string;
1271
+ token: string;
1272
+ };
1273
+ outputFormat: "json";
1274
+ status: 200;
1275
+ input: {
1276
+ param: {
1277
+ orgId: string;
1278
+ projectId: string;
1279
+ };
1280
+ } & {
1281
+ json: {
1282
+ environment?: "production" | "sandbox" | undefined;
1283
+ name?: string | undefined;
1284
+ scopes?: string[] | undefined;
1285
+ };
1286
+ };
1287
+ } | {
1141
1288
  output: {
1142
1289
  error: {
1143
- code: "upstream_error";
1290
+ code: "api_key_malformed";
1144
1291
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1145
1292
  message: string;
1146
1293
  };
1147
1294
  requestId: string;
1148
1295
  };
1149
1296
  outputFormat: "json";
1150
- status: 502;
1297
+ status: 400;
1151
1298
  input: {
1152
1299
  param: {
1153
1300
  orgId: string;
@@ -1157,13 +1304,13 @@ export declare function management(options?: management.Options): import("hono/h
1157
1304
  json: {
1158
1305
  environment?: "production" | "sandbox" | undefined;
1159
1306
  name?: string | undefined;
1160
- scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
1307
+ scopes?: string[] | undefined;
1161
1308
  };
1162
1309
  };
1163
1310
  } | {
1164
1311
  output: {
1165
1312
  error: {
1166
- code: "api_key_malformed";
1313
+ code: "body_invalid";
1167
1314
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1168
1315
  message: string;
1169
1316
  };
@@ -1180,20 +1327,20 @@ export declare function management(options?: management.Options): import("hono/h
1180
1327
  json: {
1181
1328
  environment?: "production" | "sandbox" | undefined;
1182
1329
  name?: string | undefined;
1183
- scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
1330
+ scopes?: string[] | undefined;
1184
1331
  };
1185
1332
  };
1186
1333
  } | {
1187
1334
  output: {
1188
1335
  error: {
1189
- code: "api_key_invalid" | "api_key_missing";
1336
+ code: "param_invalid";
1190
1337
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1191
1338
  message: string;
1192
1339
  };
1193
1340
  requestId: string;
1194
1341
  };
1195
1342
  outputFormat: "json";
1196
- status: 401;
1343
+ status: 400;
1197
1344
  input: {
1198
1345
  param: {
1199
1346
  orgId: string;
@@ -1203,20 +1350,20 @@ export declare function management(options?: management.Options): import("hono/h
1203
1350
  json: {
1204
1351
  environment?: "production" | "sandbox" | undefined;
1205
1352
  name?: string | undefined;
1206
- scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
1353
+ scopes?: string[] | undefined;
1207
1354
  };
1208
1355
  };
1209
1356
  } | {
1210
1357
  output: {
1211
1358
  error: {
1212
- code: "forbidden";
1359
+ code: "api_key_invalid" | "api_key_missing";
1213
1360
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1214
1361
  message: string;
1215
1362
  };
1216
1363
  requestId: string;
1217
1364
  };
1218
1365
  outputFormat: "json";
1219
- status: 403;
1366
+ status: 401;
1220
1367
  input: {
1221
1368
  param: {
1222
1369
  orgId: string;
@@ -1226,20 +1373,20 @@ export declare function management(options?: management.Options): import("hono/h
1226
1373
  json: {
1227
1374
  environment?: "production" | "sandbox" | undefined;
1228
1375
  name?: string | undefined;
1229
- scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
1376
+ scopes?: string[] | undefined;
1230
1377
  };
1231
1378
  };
1232
1379
  } | {
1233
1380
  output: {
1234
1381
  error: {
1235
- code: "param_invalid";
1382
+ code: "forbidden";
1236
1383
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1237
1384
  message: string;
1238
1385
  };
1239
1386
  requestId: string;
1240
1387
  };
1241
1388
  outputFormat: "json";
1242
- status: 400;
1389
+ status: 403;
1243
1390
  input: {
1244
1391
  param: {
1245
1392
  orgId: string;
@@ -1249,20 +1396,20 @@ export declare function management(options?: management.Options): import("hono/h
1249
1396
  json: {
1250
1397
  environment?: "production" | "sandbox" | undefined;
1251
1398
  name?: string | undefined;
1252
- scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
1399
+ scopes?: string[] | undefined;
1253
1400
  };
1254
1401
  };
1255
1402
  } | {
1256
1403
  output: {
1257
1404
  error: {
1258
- code: "body_invalid";
1405
+ code: "scope_not_issuable";
1259
1406
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1260
1407
  message: string;
1261
1408
  };
1262
1409
  requestId: string;
1263
1410
  };
1264
1411
  outputFormat: "json";
1265
- status: 400;
1412
+ status: 403;
1266
1413
  input: {
1267
1414
  param: {
1268
1415
  orgId: string;
@@ -1272,7 +1419,7 @@ export declare function management(options?: management.Options): import("hono/h
1272
1419
  json: {
1273
1420
  environment?: "production" | "sandbox" | undefined;
1274
1421
  name?: string | undefined;
1275
- scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
1422
+ scopes?: string[] | undefined;
1276
1423
  };
1277
1424
  };
1278
1425
  } | {
@@ -1295,7 +1442,7 @@ export declare function management(options?: management.Options): import("hono/h
1295
1442
  json: {
1296
1443
  environment?: "production" | "sandbox" | undefined;
1297
1444
  name?: string | undefined;
1298
- scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
1445
+ scopes?: string[] | undefined;
1299
1446
  };
1300
1447
  };
1301
1448
  } | {
@@ -1318,20 +1465,20 @@ export declare function management(options?: management.Options): import("hono/h
1318
1465
  json: {
1319
1466
  environment?: "production" | "sandbox" | undefined;
1320
1467
  name?: string | undefined;
1321
- scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
1468
+ scopes?: string[] | undefined;
1322
1469
  };
1323
1470
  };
1324
1471
  } | {
1325
1472
  output: {
1326
1473
  error: {
1327
- code: "scope_not_issuable";
1474
+ code: "upstream_error";
1328
1475
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1329
1476
  message: string;
1330
1477
  };
1331
1478
  requestId: string;
1332
1479
  };
1333
1480
  outputFormat: "json";
1334
- status: 403;
1481
+ status: 502;
1335
1482
  input: {
1336
1483
  param: {
1337
1484
  orgId: string;
@@ -1341,52 +1488,72 @@ export declare function management(options?: management.Options): import("hono/h
1341
1488
  json: {
1342
1489
  environment?: "production" | "sandbox" | undefined;
1343
1490
  name?: string | undefined;
1344
- scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
1491
+ scopes?: string[] | undefined;
1492
+ };
1493
+ };
1494
+ };
1495
+ };
1496
+ } & {
1497
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
1498
+ $get: {
1499
+ output: {
1500
+ data: {
1501
+ createdAt: string;
1502
+ createdBy?: string | undefined;
1503
+ environment: "production" | "sandbox";
1504
+ expiresAt?: string | undefined;
1505
+ id: string;
1506
+ name?: string | undefined;
1507
+ orgId: string;
1508
+ projectId?: string | undefined;
1509
+ scopes: string[];
1510
+ tokenLast4: string;
1511
+ }[];
1512
+ };
1513
+ outputFormat: "json";
1514
+ status: 200;
1515
+ input: {
1516
+ param: {
1517
+ orgId: string;
1518
+ projectId: string;
1519
+ };
1520
+ } & {
1521
+ query?: {
1522
+ environment?: string | string[];
1523
+ } | undefined;
1524
+ };
1525
+ } | {
1526
+ output: {
1527
+ error: {
1528
+ code: "api_key_malformed";
1529
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1530
+ message: string;
1345
1531
  };
1346
- };
1347
- } | {
1348
- output: {
1349
- createdAt: string;
1350
- createdBy?: string | undefined;
1351
- environment: "production" | "sandbox";
1352
- expiresAt?: string | undefined;
1353
- id: string;
1354
- name?: string | undefined;
1355
- orgId: string;
1356
- projectId?: string | undefined;
1357
- scopes: ("*" | "data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
1358
- tokenLast4: string;
1359
- token: string;
1532
+ requestId: string;
1360
1533
  };
1361
1534
  outputFormat: "json";
1362
- status: 200;
1535
+ status: 400;
1363
1536
  input: {
1364
1537
  param: {
1365
1538
  orgId: string;
1366
1539
  projectId: string;
1367
1540
  };
1368
1541
  } & {
1369
- json: {
1370
- environment?: "production" | "sandbox" | undefined;
1371
- name?: string | undefined;
1372
- scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
1373
- };
1542
+ query?: {
1543
+ environment?: string | string[];
1544
+ } | undefined;
1374
1545
  };
1375
- };
1376
- };
1377
- } & {
1378
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
1379
- $get: {
1546
+ } | {
1380
1547
  output: {
1381
1548
  error: {
1382
- code: "upstream_error";
1549
+ code: "query_invalid";
1383
1550
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1384
1551
  message: string;
1385
1552
  };
1386
1553
  requestId: string;
1387
1554
  };
1388
1555
  outputFormat: "json";
1389
- status: 502;
1556
+ status: 400;
1390
1557
  input: {
1391
1558
  param: {
1392
1559
  orgId: string;
@@ -1400,7 +1567,7 @@ export declare function management(options?: management.Options): import("hono/h
1400
1567
  } | {
1401
1568
  output: {
1402
1569
  error: {
1403
- code: "api_key_malformed";
1570
+ code: "param_invalid";
1404
1571
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1405
1572
  message: string;
1406
1573
  };
@@ -1442,14 +1609,14 @@ export declare function management(options?: management.Options): import("hono/h
1442
1609
  } | {
1443
1610
  output: {
1444
1611
  error: {
1445
- code: "query_invalid";
1612
+ code: "api_key_forbidden";
1446
1613
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1447
1614
  message: string;
1448
1615
  };
1449
1616
  requestId: string;
1450
1617
  };
1451
1618
  outputFormat: "json";
1452
- status: 400;
1619
+ status: 403;
1453
1620
  input: {
1454
1621
  param: {
1455
1622
  orgId: string;
@@ -1463,14 +1630,14 @@ export declare function management(options?: management.Options): import("hono/h
1463
1630
  } | {
1464
1631
  output: {
1465
1632
  error: {
1466
- code: "forbidden";
1633
+ code: "organization_not_found" | "project_not_found";
1467
1634
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1468
1635
  message: string;
1469
1636
  };
1470
1637
  requestId: string;
1471
1638
  };
1472
1639
  outputFormat: "json";
1473
- status: 403;
1640
+ status: 404;
1474
1641
  input: {
1475
1642
  param: {
1476
1643
  orgId: string;
@@ -1484,14 +1651,14 @@ export declare function management(options?: management.Options): import("hono/h
1484
1651
  } | {
1485
1652
  output: {
1486
1653
  error: {
1487
- code: "param_invalid";
1654
+ code: "api_keys_not_enabled";
1488
1655
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1489
1656
  message: string;
1490
1657
  };
1491
1658
  requestId: string;
1492
1659
  };
1493
1660
  outputFormat: "json";
1494
- status: 400;
1661
+ status: 404;
1495
1662
  input: {
1496
1663
  param: {
1497
1664
  orgId: string;
@@ -1505,14 +1672,14 @@ export declare function management(options?: management.Options): import("hono/h
1505
1672
  } | {
1506
1673
  output: {
1507
1674
  error: {
1508
- code: "organization_not_found" | "project_not_found";
1675
+ code: "payment_required" | "rate_limit_exceeded";
1509
1676
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1510
1677
  message: string;
1511
1678
  };
1512
1679
  requestId: string;
1513
1680
  };
1514
1681
  outputFormat: "json";
1515
- status: 404;
1682
+ status: 429;
1516
1683
  input: {
1517
1684
  param: {
1518
1685
  orgId: string;
@@ -1526,14 +1693,14 @@ export declare function management(options?: management.Options): import("hono/h
1526
1693
  } | {
1527
1694
  output: {
1528
1695
  error: {
1529
- code: "api_keys_not_enabled";
1696
+ code: "upstream_error";
1530
1697
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1531
1698
  message: string;
1532
1699
  };
1533
1700
  requestId: string;
1534
1701
  };
1535
1702
  outputFormat: "json";
1536
- status: 404;
1703
+ status: 502;
1537
1704
  input: {
1538
1705
  param: {
1539
1706
  orgId: string;
@@ -1544,7 +1711,11 @@ export declare function management(options?: management.Options): import("hono/h
1544
1711
  environment?: string | string[];
1545
1712
  } | undefined;
1546
1713
  };
1547
- } | {
1714
+ };
1715
+ };
1716
+ } & {
1717
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys": {
1718
+ $get: {
1548
1719
  output: {
1549
1720
  data: {
1550
1721
  createdAt: string;
@@ -1555,7 +1726,7 @@ export declare function management(options?: management.Options): import("hono/h
1555
1726
  name?: string | undefined;
1556
1727
  orgId: string;
1557
1728
  projectId?: string | undefined;
1558
- scopes: ("*" | "data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
1729
+ scopes: string[];
1559
1730
  tokenLast4: string;
1560
1731
  }[];
1561
1732
  };
@@ -1564,28 +1735,23 @@ export declare function management(options?: management.Options): import("hono/h
1564
1735
  input: {
1565
1736
  param: {
1566
1737
  orgId: string;
1567
- projectId: string;
1568
1738
  };
1569
1739
  } & {
1570
1740
  query?: {
1571
1741
  environment?: string | string[];
1572
1742
  } | undefined;
1573
1743
  };
1574
- };
1575
- };
1576
- } & {
1577
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys": {
1578
- $get: {
1744
+ } | {
1579
1745
  output: {
1580
1746
  error: {
1581
- code: "upstream_error";
1747
+ code: "api_key_malformed";
1582
1748
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1583
1749
  message: string;
1584
1750
  };
1585
1751
  requestId: string;
1586
1752
  };
1587
1753
  outputFormat: "json";
1588
- status: 502;
1754
+ status: 400;
1589
1755
  input: {
1590
1756
  param: {
1591
1757
  orgId: string;
@@ -1598,7 +1764,7 @@ export declare function management(options?: management.Options): import("hono/h
1598
1764
  } | {
1599
1765
  output: {
1600
1766
  error: {
1601
- code: "api_key_malformed";
1767
+ code: "query_invalid";
1602
1768
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1603
1769
  message: string;
1604
1770
  };
@@ -1618,14 +1784,14 @@ export declare function management(options?: management.Options): import("hono/h
1618
1784
  } | {
1619
1785
  output: {
1620
1786
  error: {
1621
- code: "api_key_invalid" | "api_key_missing";
1787
+ code: "param_invalid";
1622
1788
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1623
1789
  message: string;
1624
1790
  };
1625
1791
  requestId: string;
1626
1792
  };
1627
1793
  outputFormat: "json";
1628
- status: 401;
1794
+ status: 400;
1629
1795
  input: {
1630
1796
  param: {
1631
1797
  orgId: string;
@@ -1638,14 +1804,14 @@ export declare function management(options?: management.Options): import("hono/h
1638
1804
  } | {
1639
1805
  output: {
1640
1806
  error: {
1641
- code: "query_invalid";
1807
+ code: "api_key_invalid" | "api_key_missing";
1642
1808
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1643
1809
  message: string;
1644
1810
  };
1645
1811
  requestId: string;
1646
1812
  };
1647
1813
  outputFormat: "json";
1648
- status: 400;
1814
+ status: 401;
1649
1815
  input: {
1650
1816
  param: {
1651
1817
  orgId: string;
@@ -1658,7 +1824,7 @@ export declare function management(options?: management.Options): import("hono/h
1658
1824
  } | {
1659
1825
  output: {
1660
1826
  error: {
1661
- code: "forbidden";
1827
+ code: "api_key_forbidden";
1662
1828
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1663
1829
  message: string;
1664
1830
  };
@@ -1698,14 +1864,14 @@ export declare function management(options?: management.Options): import("hono/h
1698
1864
  } | {
1699
1865
  output: {
1700
1866
  error: {
1701
- code: "param_invalid";
1867
+ code: "api_keys_not_enabled";
1702
1868
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1703
1869
  message: string;
1704
1870
  };
1705
1871
  requestId: string;
1706
1872
  };
1707
1873
  outputFormat: "json";
1708
- status: 400;
1874
+ status: 404;
1709
1875
  input: {
1710
1876
  param: {
1711
1877
  orgId: string;
@@ -1718,14 +1884,14 @@ export declare function management(options?: management.Options): import("hono/h
1718
1884
  } | {
1719
1885
  output: {
1720
1886
  error: {
1721
- code: "api_keys_not_enabled";
1887
+ code: "payment_required" | "rate_limit_exceeded";
1722
1888
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1723
1889
  message: string;
1724
1890
  };
1725
1891
  requestId: string;
1726
1892
  };
1727
1893
  outputFormat: "json";
1728
- status: 404;
1894
+ status: 429;
1729
1895
  input: {
1730
1896
  param: {
1731
1897
  orgId: string;
@@ -1737,21 +1903,15 @@ export declare function management(options?: management.Options): import("hono/h
1737
1903
  };
1738
1904
  } | {
1739
1905
  output: {
1740
- data: {
1741
- createdAt: string;
1742
- createdBy?: string | undefined;
1743
- environment: "production" | "sandbox";
1744
- expiresAt?: string | undefined;
1745
- id: string;
1746
- name?: string | undefined;
1747
- orgId: string;
1748
- projectId?: string | undefined;
1749
- scopes: ("*" | "data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
1750
- tokenLast4: string;
1751
- }[];
1906
+ error: {
1907
+ code: "upstream_error";
1908
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1909
+ message: string;
1910
+ };
1911
+ requestId: string;
1752
1912
  };
1753
1913
  outputFormat: "json";
1754
- status: 200;
1914
+ status: 502;
1755
1915
  input: {
1756
1916
  param: {
1757
1917
  orgId: string;
@@ -1766,16 +1926,29 @@ export declare function management(options?: management.Options): import("hono/h
1766
1926
  } & {
1767
1927
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
1768
1928
  $delete: {
1929
+ output: {
1930
+ id: string;
1931
+ };
1932
+ outputFormat: "json";
1933
+ status: 200;
1934
+ input: {
1935
+ param: {
1936
+ keyId: string;
1937
+ orgId: string;
1938
+ projectId: string;
1939
+ };
1940
+ };
1941
+ } | {
1769
1942
  output: {
1770
1943
  error: {
1771
- code: "upstream_error";
1944
+ code: "api_key_malformed";
1772
1945
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1773
1946
  message: string;
1774
1947
  };
1775
1948
  requestId: string;
1776
1949
  };
1777
1950
  outputFormat: "json";
1778
- status: 502;
1951
+ status: 400;
1779
1952
  input: {
1780
1953
  param: {
1781
1954
  keyId: string;
@@ -1786,7 +1959,7 @@ export declare function management(options?: management.Options): import("hono/h
1786
1959
  } | {
1787
1960
  output: {
1788
1961
  error: {
1789
- code: "api_key_malformed";
1962
+ code: "param_invalid";
1790
1963
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1791
1964
  message: string;
1792
1965
  };
@@ -1822,7 +1995,7 @@ export declare function management(options?: management.Options): import("hono/h
1822
1995
  } | {
1823
1996
  output: {
1824
1997
  error: {
1825
- code: "forbidden";
1998
+ code: "api_key_forbidden";
1826
1999
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1827
2000
  message: string;
1828
2001
  };
@@ -1840,14 +2013,14 @@ export declare function management(options?: management.Options): import("hono/h
1840
2013
  } | {
1841
2014
  output: {
1842
2015
  error: {
1843
- code: "param_invalid";
2016
+ code: "organization_not_found" | "project_not_found";
1844
2017
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1845
2018
  message: string;
1846
2019
  };
1847
2020
  requestId: string;
1848
2021
  };
1849
2022
  outputFormat: "json";
1850
- status: 400;
2023
+ status: 404;
1851
2024
  input: {
1852
2025
  param: {
1853
2026
  keyId: string;
@@ -1858,7 +2031,7 @@ export declare function management(options?: management.Options): import("hono/h
1858
2031
  } | {
1859
2032
  output: {
1860
2033
  error: {
1861
- code: "organization_not_found" | "project_not_found";
2034
+ code: "api_keys_not_enabled";
1862
2035
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1863
2036
  message: string;
1864
2037
  };
@@ -1876,7 +2049,7 @@ export declare function management(options?: management.Options): import("hono/h
1876
2049
  } | {
1877
2050
  output: {
1878
2051
  error: {
1879
- code: "api_keys_not_enabled";
2052
+ code: "api_key_not_found";
1880
2053
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1881
2054
  message: string;
1882
2055
  };
@@ -1894,14 +2067,14 @@ export declare function management(options?: management.Options): import("hono/h
1894
2067
  } | {
1895
2068
  output: {
1896
2069
  error: {
1897
- code: "api_key_not_found";
2070
+ code: "payment_required" | "rate_limit_exceeded";
1898
2071
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1899
2072
  message: string;
1900
2073
  };
1901
2074
  requestId: string;
1902
2075
  };
1903
2076
  outputFormat: "json";
1904
- status: 404;
2077
+ status: 429;
1905
2078
  input: {
1906
2079
  param: {
1907
2080
  keyId: string;
@@ -1911,10 +2084,15 @@ export declare function management(options?: management.Options): import("hono/h
1911
2084
  };
1912
2085
  } | {
1913
2086
  output: {
1914
- id: string;
2087
+ error: {
2088
+ code: "upstream_error";
2089
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2090
+ message: string;
2091
+ };
2092
+ requestId: string;
1915
2093
  };
1916
2094
  outputFormat: "json";
1917
- status: 200;
2095
+ status: 502;
1918
2096
  input: {
1919
2097
  param: {
1920
2098
  keyId: string;
@@ -1928,15 +2106,16 @@ export declare function management(options?: management.Options): import("hono/h
1928
2106
  "/v1/orgs": {
1929
2107
  $get: {
1930
2108
  output: {
1931
- error: {
1932
- code: "upstream_error";
1933
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1934
- message: string;
1935
- };
1936
- requestId: string;
2109
+ data: {
2110
+ createdAt: string;
2111
+ id: string;
2112
+ name: string;
2113
+ role?: "admin" | "member" | "owner" | undefined;
2114
+ updatedAt: string;
2115
+ }[];
1937
2116
  };
1938
2117
  outputFormat: "json";
1939
- status: 502;
2118
+ status: 200;
1940
2119
  input: {};
1941
2120
  } | {
1942
2121
  output: {
@@ -1965,7 +2144,7 @@ export declare function management(options?: management.Options): import("hono/h
1965
2144
  } | {
1966
2145
  output: {
1967
2146
  error: {
1968
- code: "forbidden";
2147
+ code: "api_key_forbidden";
1969
2148
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1970
2149
  message: string;
1971
2150
  };
@@ -1976,32 +2155,58 @@ export declare function management(options?: management.Options): import("hono/h
1976
2155
  input: {};
1977
2156
  } | {
1978
2157
  output: {
1979
- data: {
1980
- createdAt: string;
1981
- id: string;
1982
- name: string;
1983
- role?: "admin" | "member" | "owner" | undefined;
1984
- updatedAt: string;
1985
- }[];
2158
+ error: {
2159
+ code: "payment_required" | "rate_limit_exceeded";
2160
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2161
+ message: string;
2162
+ };
2163
+ requestId: string;
1986
2164
  };
1987
2165
  outputFormat: "json";
1988
- status: 200;
2166
+ status: 429;
2167
+ input: {};
2168
+ } | {
2169
+ output: {
2170
+ error: {
2171
+ code: "upstream_error";
2172
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2173
+ message: string;
2174
+ };
2175
+ requestId: string;
2176
+ };
2177
+ outputFormat: "json";
2178
+ status: 502;
1989
2179
  input: {};
1990
2180
  };
1991
2181
  };
1992
2182
  } & {
1993
2183
  "/v1/orgs": {
1994
2184
  $post: {
2185
+ output: {
2186
+ createdAt: string;
2187
+ id: string;
2188
+ name: string;
2189
+ role?: "admin" | "member" | "owner" | undefined;
2190
+ updatedAt: string;
2191
+ };
2192
+ outputFormat: "json";
2193
+ status: 200;
2194
+ input: {
2195
+ json: {
2196
+ name: string;
2197
+ };
2198
+ };
2199
+ } | {
1995
2200
  output: {
1996
2201
  error: {
1997
- code: "upstream_error";
2202
+ code: "api_key_malformed";
1998
2203
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1999
2204
  message: string;
2000
2205
  };
2001
2206
  requestId: string;
2002
2207
  };
2003
2208
  outputFormat: "json";
2004
- status: 502;
2209
+ status: 400;
2005
2210
  input: {
2006
2211
  json: {
2007
2212
  name: string;
@@ -2010,7 +2215,7 @@ export declare function management(options?: management.Options): import("hono/h
2010
2215
  } | {
2011
2216
  output: {
2012
2217
  error: {
2013
- code: "api_key_malformed";
2218
+ code: "body_invalid";
2014
2219
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2015
2220
  message: string;
2016
2221
  };
@@ -2058,20 +2263,24 @@ export declare function management(options?: management.Options): import("hono/h
2058
2263
  } | {
2059
2264
  output: {
2060
2265
  error: {
2061
- code: "body_invalid";
2266
+ code: "upstream_error";
2062
2267
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2063
2268
  message: string;
2064
2269
  };
2065
2270
  requestId: string;
2066
2271
  };
2067
2272
  outputFormat: "json";
2068
- status: 400;
2273
+ status: 502;
2069
2274
  input: {
2070
2275
  json: {
2071
2276
  name: string;
2072
2277
  };
2073
2278
  };
2074
- } | {
2279
+ };
2280
+ };
2281
+ } & {
2282
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}": {
2283
+ $get: {
2075
2284
  output: {
2076
2285
  createdAt: string;
2077
2286
  id: string;
@@ -2082,15 +2291,11 @@ export declare function management(options?: management.Options): import("hono/h
2082
2291
  outputFormat: "json";
2083
2292
  status: 200;
2084
2293
  input: {
2085
- json: {
2086
- name: string;
2294
+ param: {
2295
+ orgId: string;
2087
2296
  };
2088
2297
  };
2089
- };
2090
- };
2091
- } & {
2092
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}": {
2093
- $get: {
2298
+ } | {
2094
2299
  output: {
2095
2300
  error: {
2096
2301
  code: "api_key_malformed";
@@ -2106,6 +2311,22 @@ export declare function management(options?: management.Options): import("hono/h
2106
2311
  orgId: string;
2107
2312
  };
2108
2313
  };
2314
+ } | {
2315
+ output: {
2316
+ error: {
2317
+ code: "param_invalid";
2318
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2319
+ message: string;
2320
+ };
2321
+ requestId: string;
2322
+ };
2323
+ outputFormat: "json";
2324
+ status: 400;
2325
+ input: {
2326
+ param: {
2327
+ orgId: string;
2328
+ };
2329
+ };
2109
2330
  } | {
2110
2331
  output: {
2111
2332
  error: {
@@ -2125,7 +2346,7 @@ export declare function management(options?: management.Options): import("hono/h
2125
2346
  } | {
2126
2347
  output: {
2127
2348
  error: {
2128
- code: "forbidden";
2349
+ code: "api_key_forbidden";
2129
2350
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2130
2351
  message: string;
2131
2352
  };
@@ -2157,20 +2378,24 @@ export declare function management(options?: management.Options): import("hono/h
2157
2378
  } | {
2158
2379
  output: {
2159
2380
  error: {
2160
- code: "param_invalid";
2381
+ code: "payment_required" | "rate_limit_exceeded";
2161
2382
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2162
2383
  message: string;
2163
2384
  };
2164
2385
  requestId: string;
2165
2386
  };
2166
2387
  outputFormat: "json";
2167
- status: 400;
2388
+ status: 429;
2168
2389
  input: {
2169
2390
  param: {
2170
2391
  orgId: string;
2171
2392
  };
2172
2393
  };
2173
- } | {
2394
+ };
2395
+ };
2396
+ } & {
2397
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}": {
2398
+ $patch: {
2174
2399
  output: {
2175
2400
  createdAt: string;
2176
2401
  id: string;
@@ -2184,22 +2409,22 @@ export declare function management(options?: management.Options): import("hono/h
2184
2409
  param: {
2185
2410
  orgId: string;
2186
2411
  };
2412
+ } & {
2413
+ json: {
2414
+ name: string;
2415
+ };
2187
2416
  };
2188
- };
2189
- };
2190
- } & {
2191
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}": {
2192
- $patch: {
2417
+ } | {
2193
2418
  output: {
2194
2419
  error: {
2195
- code: "upstream_error";
2420
+ code: "api_key_malformed";
2196
2421
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2197
2422
  message: string;
2198
2423
  };
2199
2424
  requestId: string;
2200
2425
  };
2201
2426
  outputFormat: "json";
2202
- status: 502;
2427
+ status: 400;
2203
2428
  input: {
2204
2429
  param: {
2205
2430
  orgId: string;
@@ -2212,7 +2437,7 @@ export declare function management(options?: management.Options): import("hono/h
2212
2437
  } | {
2213
2438
  output: {
2214
2439
  error: {
2215
- code: "api_key_malformed";
2440
+ code: "body_invalid";
2216
2441
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2217
2442
  message: string;
2218
2443
  };
@@ -2232,14 +2457,14 @@ export declare function management(options?: management.Options): import("hono/h
2232
2457
  } | {
2233
2458
  output: {
2234
2459
  error: {
2235
- code: "api_key_invalid" | "api_key_missing";
2460
+ code: "param_invalid";
2236
2461
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2237
2462
  message: string;
2238
2463
  };
2239
2464
  requestId: string;
2240
2465
  };
2241
2466
  outputFormat: "json";
2242
- status: 401;
2467
+ status: 400;
2243
2468
  input: {
2244
2469
  param: {
2245
2470
  orgId: string;
@@ -2252,14 +2477,14 @@ export declare function management(options?: management.Options): import("hono/h
2252
2477
  } | {
2253
2478
  output: {
2254
2479
  error: {
2255
- code: "forbidden";
2480
+ code: "api_key_invalid" | "api_key_missing";
2256
2481
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2257
2482
  message: string;
2258
2483
  };
2259
2484
  requestId: string;
2260
2485
  };
2261
2486
  outputFormat: "json";
2262
- status: 403;
2487
+ status: 401;
2263
2488
  input: {
2264
2489
  param: {
2265
2490
  orgId: string;
@@ -2272,14 +2497,14 @@ export declare function management(options?: management.Options): import("hono/h
2272
2497
  } | {
2273
2498
  output: {
2274
2499
  error: {
2275
- code: "organization_not_found";
2500
+ code: "api_key_forbidden";
2276
2501
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2277
2502
  message: string;
2278
2503
  };
2279
2504
  requestId: string;
2280
2505
  };
2281
2506
  outputFormat: "json";
2282
- status: 404;
2507
+ status: 403;
2283
2508
  input: {
2284
2509
  param: {
2285
2510
  orgId: string;
@@ -2292,14 +2517,14 @@ export declare function management(options?: management.Options): import("hono/h
2292
2517
  } | {
2293
2518
  output: {
2294
2519
  error: {
2295
- code: "param_invalid";
2520
+ code: "organization_not_found";
2296
2521
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2297
2522
  message: string;
2298
2523
  };
2299
2524
  requestId: string;
2300
2525
  };
2301
2526
  outputFormat: "json";
2302
- status: 400;
2527
+ status: 404;
2303
2528
  input: {
2304
2529
  param: {
2305
2530
  orgId: string;
@@ -2312,14 +2537,14 @@ export declare function management(options?: management.Options): import("hono/h
2312
2537
  } | {
2313
2538
  output: {
2314
2539
  error: {
2315
- code: "body_invalid";
2540
+ code: "payment_required" | "rate_limit_exceeded";
2316
2541
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2317
2542
  message: string;
2318
2543
  };
2319
2544
  requestId: string;
2320
2545
  };
2321
2546
  outputFormat: "json";
2322
- status: 400;
2547
+ status: 429;
2323
2548
  input: {
2324
2549
  param: {
2325
2550
  orgId: string;
@@ -2331,14 +2556,15 @@ export declare function management(options?: management.Options): import("hono/h
2331
2556
  };
2332
2557
  } | {
2333
2558
  output: {
2334
- createdAt: string;
2335
- id: string;
2336
- name: string;
2337
- role?: "admin" | "member" | "owner" | undefined;
2338
- updatedAt: string;
2559
+ error: {
2560
+ code: "upstream_error";
2561
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2562
+ message: string;
2563
+ };
2564
+ requestId: string;
2339
2565
  };
2340
2566
  outputFormat: "json";
2341
- status: 200;
2567
+ status: 502;
2342
2568
  input: {
2343
2569
  param: {
2344
2570
  orgId: string;
@@ -2353,16 +2579,27 @@ export declare function management(options?: management.Options): import("hono/h
2353
2579
  } & {
2354
2580
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}": {
2355
2581
  $delete: {
2582
+ output: {
2583
+ id: string;
2584
+ };
2585
+ outputFormat: "json";
2586
+ status: 200;
2587
+ input: {
2588
+ param: {
2589
+ orgId: string;
2590
+ };
2591
+ };
2592
+ } | {
2356
2593
  output: {
2357
2594
  error: {
2358
- code: "upstream_error";
2595
+ code: "api_key_malformed";
2359
2596
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2360
2597
  message: string;
2361
2598
  };
2362
2599
  requestId: string;
2363
2600
  };
2364
2601
  outputFormat: "json";
2365
- status: 502;
2602
+ status: 400;
2366
2603
  input: {
2367
2604
  param: {
2368
2605
  orgId: string;
@@ -2371,7 +2608,7 @@ export declare function management(options?: management.Options): import("hono/h
2371
2608
  } | {
2372
2609
  output: {
2373
2610
  error: {
2374
- code: "api_key_malformed";
2611
+ code: "param_invalid";
2375
2612
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2376
2613
  message: string;
2377
2614
  };
@@ -2403,7 +2640,7 @@ export declare function management(options?: management.Options): import("hono/h
2403
2640
  } | {
2404
2641
  output: {
2405
2642
  error: {
2406
- code: "forbidden";
2643
+ code: "api_key_forbidden";
2407
2644
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2408
2645
  message: string;
2409
2646
  };
@@ -2435,14 +2672,14 @@ export declare function management(options?: management.Options): import("hono/h
2435
2672
  } | {
2436
2673
  output: {
2437
2674
  error: {
2438
- code: "param_invalid";
2675
+ code: "payment_required" | "rate_limit_exceeded";
2439
2676
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2440
2677
  message: string;
2441
2678
  };
2442
2679
  requestId: string;
2443
2680
  };
2444
2681
  outputFormat: "json";
2445
- status: 400;
2682
+ status: 429;
2446
2683
  input: {
2447
2684
  param: {
2448
2685
  orgId: string;
@@ -2450,10 +2687,15 @@ export declare function management(options?: management.Options): import("hono/h
2450
2687
  };
2451
2688
  } | {
2452
2689
  output: {
2453
- id: string;
2690
+ error: {
2691
+ code: "upstream_error";
2692
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2693
+ message: string;
2694
+ };
2695
+ requestId: string;
2454
2696
  };
2455
2697
  outputFormat: "json";
2456
- status: 200;
2698
+ status: 502;
2457
2699
  input: {
2458
2700
  param: {
2459
2701
  orgId: string;
@@ -2464,16 +2706,34 @@ export declare function management(options?: management.Options): import("hono/h
2464
2706
  }, "/"> | import("hono/types").MergeSchemaPath<{
2465
2707
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects": {
2466
2708
  $get: {
2709
+ output: {
2710
+ data: {
2711
+ createdAt: string;
2712
+ environments: ("production" | "sandbox")[];
2713
+ id: string;
2714
+ name: string;
2715
+ orgId: string;
2716
+ updatedAt: string;
2717
+ }[];
2718
+ };
2719
+ outputFormat: "json";
2720
+ status: 200;
2721
+ input: {
2722
+ param: {
2723
+ orgId: string;
2724
+ };
2725
+ };
2726
+ } | {
2467
2727
  output: {
2468
2728
  error: {
2469
- code: "upstream_error";
2729
+ code: "api_key_malformed";
2470
2730
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2471
2731
  message: string;
2472
2732
  };
2473
2733
  requestId: string;
2474
2734
  };
2475
2735
  outputFormat: "json";
2476
- status: 502;
2736
+ status: 400;
2477
2737
  input: {
2478
2738
  param: {
2479
2739
  orgId: string;
@@ -2482,7 +2742,7 @@ export declare function management(options?: management.Options): import("hono/h
2482
2742
  } | {
2483
2743
  output: {
2484
2744
  error: {
2485
- code: "api_key_malformed";
2745
+ code: "param_invalid";
2486
2746
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2487
2747
  message: string;
2488
2748
  };
@@ -2514,7 +2774,7 @@ export declare function management(options?: management.Options): import("hono/h
2514
2774
  } | {
2515
2775
  output: {
2516
2776
  error: {
2517
- code: "forbidden";
2777
+ code: "api_key_forbidden";
2518
2778
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2519
2779
  message: string;
2520
2780
  };
@@ -2546,14 +2806,14 @@ export declare function management(options?: management.Options): import("hono/h
2546
2806
  } | {
2547
2807
  output: {
2548
2808
  error: {
2549
- code: "param_invalid";
2809
+ code: "payment_required" | "rate_limit_exceeded";
2550
2810
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2551
2811
  message: string;
2552
2812
  };
2553
2813
  requestId: string;
2554
2814
  };
2555
2815
  outputFormat: "json";
2556
- status: 400;
2816
+ status: 429;
2557
2817
  input: {
2558
2818
  param: {
2559
2819
  orgId: string;
@@ -2561,17 +2821,15 @@ export declare function management(options?: management.Options): import("hono/h
2561
2821
  };
2562
2822
  } | {
2563
2823
  output: {
2564
- data: {
2565
- createdAt: string;
2566
- environments: ("production" | "sandbox")[];
2567
- id: string;
2568
- name: string;
2569
- orgId: string;
2570
- updatedAt: string;
2571
- }[];
2824
+ error: {
2825
+ code: "upstream_error";
2826
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2827
+ message: string;
2828
+ };
2829
+ requestId: string;
2572
2830
  };
2573
2831
  outputFormat: "json";
2574
- status: 200;
2832
+ status: 502;
2575
2833
  input: {
2576
2834
  param: {
2577
2835
  orgId: string;
@@ -2582,16 +2840,36 @@ export declare function management(options?: management.Options): import("hono/h
2582
2840
  } & {
2583
2841
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects": {
2584
2842
  $post: {
2843
+ output: {
2844
+ createdAt: string;
2845
+ environments: ("production" | "sandbox")[];
2846
+ id: string;
2847
+ name: string;
2848
+ orgId: string;
2849
+ updatedAt: string;
2850
+ };
2851
+ outputFormat: "json";
2852
+ status: 200;
2853
+ input: {
2854
+ param: {
2855
+ orgId: string;
2856
+ };
2857
+ } & {
2858
+ json: {
2859
+ name: string;
2860
+ };
2861
+ };
2862
+ } | {
2585
2863
  output: {
2586
2864
  error: {
2587
- code: "upstream_error";
2865
+ code: "api_key_malformed";
2588
2866
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2589
2867
  message: string;
2590
2868
  };
2591
2869
  requestId: string;
2592
2870
  };
2593
2871
  outputFormat: "json";
2594
- status: 502;
2872
+ status: 400;
2595
2873
  input: {
2596
2874
  param: {
2597
2875
  orgId: string;
@@ -2604,7 +2882,27 @@ export declare function management(options?: management.Options): import("hono/h
2604
2882
  } | {
2605
2883
  output: {
2606
2884
  error: {
2607
- code: "api_key_malformed";
2885
+ code: "body_invalid";
2886
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2887
+ message: string;
2888
+ };
2889
+ requestId: string;
2890
+ };
2891
+ outputFormat: "json";
2892
+ status: 400;
2893
+ input: {
2894
+ param: {
2895
+ orgId: string;
2896
+ };
2897
+ } & {
2898
+ json: {
2899
+ name: string;
2900
+ };
2901
+ };
2902
+ } | {
2903
+ output: {
2904
+ error: {
2905
+ code: "param_invalid";
2608
2906
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2609
2907
  message: string;
2610
2908
  };
@@ -2644,7 +2942,7 @@ export declare function management(options?: management.Options): import("hono/h
2644
2942
  } | {
2645
2943
  output: {
2646
2944
  error: {
2647
- code: "forbidden";
2945
+ code: "api_key_forbidden";
2648
2946
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2649
2947
  message: string;
2650
2948
  };
@@ -2684,14 +2982,14 @@ export declare function management(options?: management.Options): import("hono/h
2684
2982
  } | {
2685
2983
  output: {
2686
2984
  error: {
2687
- code: "param_invalid";
2985
+ code: "payment_required" | "rate_limit_exceeded";
2688
2986
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2689
2987
  message: string;
2690
2988
  };
2691
2989
  requestId: string;
2692
2990
  };
2693
2991
  outputFormat: "json";
2694
- status: 400;
2992
+ status: 429;
2695
2993
  input: {
2696
2994
  param: {
2697
2995
  orgId: string;
@@ -2704,14 +3002,14 @@ export declare function management(options?: management.Options): import("hono/h
2704
3002
  } | {
2705
3003
  output: {
2706
3004
  error: {
2707
- code: "body_invalid";
3005
+ code: "upstream_error";
2708
3006
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2709
3007
  message: string;
2710
3008
  };
2711
3009
  requestId: string;
2712
3010
  };
2713
3011
  outputFormat: "json";
2714
- status: 400;
3012
+ status: 502;
2715
3013
  input: {
2716
3014
  param: {
2717
3015
  orgId: string;
@@ -2721,7 +3019,11 @@ export declare function management(options?: management.Options): import("hono/h
2721
3019
  name: string;
2722
3020
  };
2723
3021
  };
2724
- } | {
3022
+ };
3023
+ };
3024
+ } & {
3025
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
3026
+ $get: {
2725
3027
  output: {
2726
3028
  createdAt: string;
2727
3029
  environments: ("production" | "sandbox")[];
@@ -2735,17 +3037,10 @@ export declare function management(options?: management.Options): import("hono/h
2735
3037
  input: {
2736
3038
  param: {
2737
3039
  orgId: string;
2738
- };
2739
- } & {
2740
- json: {
2741
- name: string;
3040
+ projectId: string;
2742
3041
  };
2743
3042
  };
2744
- };
2745
- };
2746
- } & {
2747
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
2748
- $get: {
3043
+ } | {
2749
3044
  output: {
2750
3045
  error: {
2751
3046
  code: "api_key_malformed";
@@ -2765,14 +3060,14 @@ export declare function management(options?: management.Options): import("hono/h
2765
3060
  } | {
2766
3061
  output: {
2767
3062
  error: {
2768
- code: "api_key_invalid" | "api_key_missing";
3063
+ code: "param_invalid";
2769
3064
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2770
3065
  message: string;
2771
3066
  };
2772
3067
  requestId: string;
2773
3068
  };
2774
3069
  outputFormat: "json";
2775
- status: 401;
3070
+ status: 400;
2776
3071
  input: {
2777
3072
  param: {
2778
3073
  orgId: string;
@@ -2782,14 +3077,14 @@ export declare function management(options?: management.Options): import("hono/h
2782
3077
  } | {
2783
3078
  output: {
2784
3079
  error: {
2785
- code: "forbidden";
3080
+ code: "api_key_invalid" | "api_key_missing";
2786
3081
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2787
3082
  message: string;
2788
3083
  };
2789
3084
  requestId: string;
2790
3085
  };
2791
3086
  outputFormat: "json";
2792
- status: 403;
3087
+ status: 401;
2793
3088
  input: {
2794
3089
  param: {
2795
3090
  orgId: string;
@@ -2799,14 +3094,14 @@ export declare function management(options?: management.Options): import("hono/h
2799
3094
  } | {
2800
3095
  output: {
2801
3096
  error: {
2802
- code: "param_invalid";
3097
+ code: "api_key_forbidden";
2803
3098
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2804
3099
  message: string;
2805
3100
  };
2806
3101
  requestId: string;
2807
3102
  };
2808
3103
  outputFormat: "json";
2809
- status: 400;
3104
+ status: 403;
2810
3105
  input: {
2811
3106
  param: {
2812
3107
  orgId: string;
@@ -2831,6 +3126,27 @@ export declare function management(options?: management.Options): import("hono/h
2831
3126
  };
2832
3127
  };
2833
3128
  } | {
3129
+ output: {
3130
+ error: {
3131
+ code: "payment_required" | "rate_limit_exceeded";
3132
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3133
+ message: string;
3134
+ };
3135
+ requestId: string;
3136
+ };
3137
+ outputFormat: "json";
3138
+ status: 429;
3139
+ input: {
3140
+ param: {
3141
+ orgId: string;
3142
+ projectId: string;
3143
+ };
3144
+ };
3145
+ };
3146
+ };
3147
+ } & {
3148
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
3149
+ $patch: {
2834
3150
  output: {
2835
3151
  createdAt: string;
2836
3152
  environments: ("production" | "sandbox")[];
@@ -2840,28 +3156,49 @@ export declare function management(options?: management.Options): import("hono/h
2840
3156
  updatedAt: string;
2841
3157
  };
2842
3158
  outputFormat: "json";
2843
- status: 200;
3159
+ status: 200;
3160
+ input: {
3161
+ param: {
3162
+ orgId: string;
3163
+ projectId: string;
3164
+ };
3165
+ } & {
3166
+ json: {
3167
+ name: string;
3168
+ };
3169
+ };
3170
+ } | {
3171
+ output: {
3172
+ error: {
3173
+ code: "api_key_malformed";
3174
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3175
+ message: string;
3176
+ };
3177
+ requestId: string;
3178
+ };
3179
+ outputFormat: "json";
3180
+ status: 400;
2844
3181
  input: {
2845
3182
  param: {
2846
3183
  orgId: string;
2847
3184
  projectId: string;
2848
3185
  };
3186
+ } & {
3187
+ json: {
3188
+ name: string;
3189
+ };
2849
3190
  };
2850
- };
2851
- };
2852
- } & {
2853
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
2854
- $patch: {
3191
+ } | {
2855
3192
  output: {
2856
3193
  error: {
2857
- code: "upstream_error";
3194
+ code: "body_invalid";
2858
3195
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2859
3196
  message: string;
2860
3197
  };
2861
3198
  requestId: string;
2862
3199
  };
2863
3200
  outputFormat: "json";
2864
- status: 502;
3201
+ status: 400;
2865
3202
  input: {
2866
3203
  param: {
2867
3204
  orgId: string;
@@ -2875,7 +3212,7 @@ export declare function management(options?: management.Options): import("hono/h
2875
3212
  } | {
2876
3213
  output: {
2877
3214
  error: {
2878
- code: "api_key_malformed";
3215
+ code: "param_invalid";
2879
3216
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2880
3217
  message: string;
2881
3218
  };
@@ -2917,7 +3254,7 @@ export declare function management(options?: management.Options): import("hono/h
2917
3254
  } | {
2918
3255
  output: {
2919
3256
  error: {
2920
- code: "forbidden";
3257
+ code: "api_key_forbidden";
2921
3258
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2922
3259
  message: string;
2923
3260
  };
@@ -2938,14 +3275,14 @@ export declare function management(options?: management.Options): import("hono/h
2938
3275
  } | {
2939
3276
  output: {
2940
3277
  error: {
2941
- code: "param_invalid";
3278
+ code: "organization_not_found" | "project_not_found";
2942
3279
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2943
3280
  message: string;
2944
3281
  };
2945
3282
  requestId: string;
2946
3283
  };
2947
3284
  outputFormat: "json";
2948
- status: 400;
3285
+ status: 404;
2949
3286
  input: {
2950
3287
  param: {
2951
3288
  orgId: string;
@@ -2959,14 +3296,14 @@ export declare function management(options?: management.Options): import("hono/h
2959
3296
  } | {
2960
3297
  output: {
2961
3298
  error: {
2962
- code: "body_invalid";
3299
+ code: "payment_required" | "rate_limit_exceeded";
2963
3300
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2964
3301
  message: string;
2965
3302
  };
2966
3303
  requestId: string;
2967
3304
  };
2968
3305
  outputFormat: "json";
2969
- status: 400;
3306
+ status: 429;
2970
3307
  input: {
2971
3308
  param: {
2972
3309
  orgId: string;
@@ -2980,14 +3317,14 @@ export declare function management(options?: management.Options): import("hono/h
2980
3317
  } | {
2981
3318
  output: {
2982
3319
  error: {
2983
- code: "organization_not_found" | "project_not_found";
3320
+ code: "upstream_error";
2984
3321
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2985
3322
  message: string;
2986
3323
  };
2987
3324
  requestId: string;
2988
3325
  };
2989
3326
  outputFormat: "json";
2990
- status: 404;
3327
+ status: 502;
2991
3328
  input: {
2992
3329
  param: {
2993
3330
  orgId: string;
@@ -2998,14 +3335,13 @@ export declare function management(options?: management.Options): import("hono/h
2998
3335
  name: string;
2999
3336
  };
3000
3337
  };
3001
- } | {
3338
+ };
3339
+ };
3340
+ } & {
3341
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
3342
+ $delete: {
3002
3343
  output: {
3003
- createdAt: string;
3004
- environments: ("production" | "sandbox")[];
3005
3344
  id: string;
3006
- name: string;
3007
- orgId: string;
3008
- updatedAt: string;
3009
3345
  };
3010
3346
  outputFormat: "json";
3011
3347
  status: 200;
@@ -3014,26 +3350,18 @@ export declare function management(options?: management.Options): import("hono/h
3014
3350
  orgId: string;
3015
3351
  projectId: string;
3016
3352
  };
3017
- } & {
3018
- json: {
3019
- name: string;
3020
- };
3021
3353
  };
3022
- };
3023
- };
3024
- } & {
3025
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
3026
- $delete: {
3354
+ } | {
3027
3355
  output: {
3028
3356
  error: {
3029
- code: "upstream_error";
3357
+ code: "api_key_malformed";
3030
3358
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3031
3359
  message: string;
3032
3360
  };
3033
3361
  requestId: string;
3034
3362
  };
3035
3363
  outputFormat: "json";
3036
- status: 502;
3364
+ status: 400;
3037
3365
  input: {
3038
3366
  param: {
3039
3367
  orgId: string;
@@ -3043,7 +3371,7 @@ export declare function management(options?: management.Options): import("hono/h
3043
3371
  } | {
3044
3372
  output: {
3045
3373
  error: {
3046
- code: "api_key_malformed";
3374
+ code: "param_invalid";
3047
3375
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3048
3376
  message: string;
3049
3377
  };
@@ -3077,7 +3405,7 @@ export declare function management(options?: management.Options): import("hono/h
3077
3405
  } | {
3078
3406
  output: {
3079
3407
  error: {
3080
- code: "forbidden";
3408
+ code: "api_key_forbidden";
3081
3409
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3082
3410
  message: string;
3083
3411
  };
@@ -3094,14 +3422,14 @@ export declare function management(options?: management.Options): import("hono/h
3094
3422
  } | {
3095
3423
  output: {
3096
3424
  error: {
3097
- code: "param_invalid";
3425
+ code: "organization_not_found" | "project_not_found";
3098
3426
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3099
3427
  message: string;
3100
3428
  };
3101
3429
  requestId: string;
3102
3430
  };
3103
3431
  outputFormat: "json";
3104
- status: 400;
3432
+ status: 404;
3105
3433
  input: {
3106
3434
  param: {
3107
3435
  orgId: string;
@@ -3111,14 +3439,14 @@ export declare function management(options?: management.Options): import("hono/h
3111
3439
  } | {
3112
3440
  output: {
3113
3441
  error: {
3114
- code: "organization_not_found" | "project_not_found";
3442
+ code: "payment_required" | "rate_limit_exceeded";
3115
3443
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3116
3444
  message: string;
3117
3445
  };
3118
3446
  requestId: string;
3119
3447
  };
3120
3448
  outputFormat: "json";
3121
- status: 404;
3449
+ status: 429;
3122
3450
  input: {
3123
3451
  param: {
3124
3452
  orgId: string;
@@ -3127,10 +3455,15 @@ export declare function management(options?: management.Options): import("hono/h
3127
3455
  };
3128
3456
  } | {
3129
3457
  output: {
3130
- id: string;
3458
+ error: {
3459
+ code: "upstream_error";
3460
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3461
+ message: string;
3462
+ };
3463
+ requestId: string;
3131
3464
  };
3132
3465
  outputFormat: "json";
3133
- status: 200;
3466
+ status: 502;
3134
3467
  input: {
3135
3468
  param: {
3136
3469
  orgId: string;
@@ -3142,16 +3475,38 @@ export declare function management(options?: management.Options): import("hono/h
3142
3475
  }, "/"> | import("hono/types").MergeSchemaPath<{
3143
3476
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invitations": {
3144
3477
  $post: {
3478
+ output: {
3479
+ createdAt: string;
3480
+ email: string;
3481
+ expiresAt: string;
3482
+ id: string;
3483
+ invitedBy: string;
3484
+ orgId: string;
3485
+ role: "admin" | "member" | "owner";
3486
+ };
3487
+ outputFormat: "json";
3488
+ status: 200;
3489
+ input: {
3490
+ param: {
3491
+ orgId: string;
3492
+ };
3493
+ } & {
3494
+ json: {
3495
+ email: string;
3496
+ role: "admin" | "member" | "owner";
3497
+ };
3498
+ };
3499
+ } | {
3145
3500
  output: {
3146
3501
  error: {
3147
- code: "upstream_error";
3502
+ code: "api_key_malformed";
3148
3503
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3149
3504
  message: string;
3150
3505
  };
3151
3506
  requestId: string;
3152
3507
  };
3153
3508
  outputFormat: "json";
3154
- status: 502;
3509
+ status: 400;
3155
3510
  input: {
3156
3511
  param: {
3157
3512
  orgId: string;
@@ -3165,7 +3520,28 @@ export declare function management(options?: management.Options): import("hono/h
3165
3520
  } | {
3166
3521
  output: {
3167
3522
  error: {
3168
- code: "api_key_malformed";
3523
+ code: "body_invalid";
3524
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3525
+ message: string;
3526
+ };
3527
+ requestId: string;
3528
+ };
3529
+ outputFormat: "json";
3530
+ status: 400;
3531
+ input: {
3532
+ param: {
3533
+ orgId: string;
3534
+ };
3535
+ } & {
3536
+ json: {
3537
+ email: string;
3538
+ role: "admin" | "member" | "owner";
3539
+ };
3540
+ };
3541
+ } | {
3542
+ output: {
3543
+ error: {
3544
+ code: "param_invalid";
3169
3545
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3170
3546
  message: string;
3171
3547
  };
@@ -3207,7 +3583,7 @@ export declare function management(options?: management.Options): import("hono/h
3207
3583
  } | {
3208
3584
  output: {
3209
3585
  error: {
3210
- code: "forbidden";
3586
+ code: "api_key_forbidden";
3211
3587
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3212
3588
  message: string;
3213
3589
  };
@@ -3228,14 +3604,14 @@ export declare function management(options?: management.Options): import("hono/h
3228
3604
  } | {
3229
3605
  output: {
3230
3606
  error: {
3231
- code: "organization_not_found";
3607
+ code: "forbidden";
3232
3608
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3233
3609
  message: string;
3234
3610
  };
3235
3611
  requestId: string;
3236
3612
  };
3237
3613
  outputFormat: "json";
3238
- status: 404;
3614
+ status: 403;
3239
3615
  input: {
3240
3616
  param: {
3241
3617
  orgId: string;
@@ -3249,14 +3625,14 @@ export declare function management(options?: management.Options): import("hono/h
3249
3625
  } | {
3250
3626
  output: {
3251
3627
  error: {
3252
- code: "param_invalid";
3628
+ code: "organization_not_found";
3253
3629
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3254
3630
  message: string;
3255
3631
  };
3256
3632
  requestId: string;
3257
3633
  };
3258
3634
  outputFormat: "json";
3259
- status: 400;
3635
+ status: 404;
3260
3636
  input: {
3261
3637
  param: {
3262
3638
  orgId: string;
@@ -3270,14 +3646,14 @@ export declare function management(options?: management.Options): import("hono/h
3270
3646
  } | {
3271
3647
  output: {
3272
3648
  error: {
3273
- code: "body_invalid";
3649
+ code: "payment_required" | "rate_limit_exceeded";
3274
3650
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3275
3651
  message: string;
3276
3652
  };
3277
3653
  requestId: string;
3278
3654
  };
3279
3655
  outputFormat: "json";
3280
- status: 400;
3656
+ status: 429;
3281
3657
  input: {
3282
3658
  param: {
3283
3659
  orgId: string;
@@ -3290,16 +3666,15 @@ export declare function management(options?: management.Options): import("hono/h
3290
3666
  };
3291
3667
  } | {
3292
3668
  output: {
3293
- createdAt: string;
3294
- email: string;
3295
- expiresAt: string;
3296
- id: string;
3297
- invitedBy: string;
3298
- orgId: string;
3299
- role: "admin" | "member" | "owner";
3669
+ error: {
3670
+ code: "upstream_error";
3671
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3672
+ message: string;
3673
+ };
3674
+ requestId: string;
3300
3675
  };
3301
3676
  outputFormat: "json";
3302
- status: 200;
3677
+ status: 502;
3303
3678
  input: {
3304
3679
  param: {
3305
3680
  orgId: string;
@@ -3315,16 +3690,35 @@ export declare function management(options?: management.Options): import("hono/h
3315
3690
  } & {
3316
3691
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invitations": {
3317
3692
  $get: {
3693
+ output: {
3694
+ data: {
3695
+ createdAt: string;
3696
+ email: string;
3697
+ expiresAt: string;
3698
+ id: string;
3699
+ invitedBy: string;
3700
+ orgId: string;
3701
+ role: "admin" | "member" | "owner";
3702
+ }[];
3703
+ };
3704
+ outputFormat: "json";
3705
+ status: 200;
3706
+ input: {
3707
+ param: {
3708
+ orgId: string;
3709
+ };
3710
+ };
3711
+ } | {
3318
3712
  output: {
3319
3713
  error: {
3320
- code: "upstream_error";
3714
+ code: "api_key_malformed";
3321
3715
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3322
3716
  message: string;
3323
3717
  };
3324
3718
  requestId: string;
3325
3719
  };
3326
3720
  outputFormat: "json";
3327
- status: 502;
3721
+ status: 400;
3328
3722
  input: {
3329
3723
  param: {
3330
3724
  orgId: string;
@@ -3333,7 +3727,7 @@ export declare function management(options?: management.Options): import("hono/h
3333
3727
  } | {
3334
3728
  output: {
3335
3729
  error: {
3336
- code: "api_key_malformed";
3730
+ code: "param_invalid";
3337
3731
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3338
3732
  message: string;
3339
3733
  };
@@ -3365,7 +3759,7 @@ export declare function management(options?: management.Options): import("hono/h
3365
3759
  } | {
3366
3760
  output: {
3367
3761
  error: {
3368
- code: "forbidden";
3762
+ code: "api_key_forbidden";
3369
3763
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3370
3764
  message: string;
3371
3765
  };
@@ -3397,14 +3791,14 @@ export declare function management(options?: management.Options): import("hono/h
3397
3791
  } | {
3398
3792
  output: {
3399
3793
  error: {
3400
- code: "param_invalid";
3794
+ code: "payment_required" | "rate_limit_exceeded";
3401
3795
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3402
3796
  message: string;
3403
3797
  };
3404
3798
  requestId: string;
3405
3799
  };
3406
3800
  outputFormat: "json";
3407
- status: 400;
3801
+ status: 429;
3408
3802
  input: {
3409
3803
  param: {
3410
3804
  orgId: string;
@@ -3412,18 +3806,15 @@ export declare function management(options?: management.Options): import("hono/h
3412
3806
  };
3413
3807
  } | {
3414
3808
  output: {
3415
- data: {
3416
- createdAt: string;
3417
- email: string;
3418
- expiresAt: string;
3419
- id: string;
3420
- invitedBy: string;
3421
- orgId: string;
3422
- role: "admin" | "member" | "owner";
3423
- }[];
3809
+ error: {
3810
+ code: "upstream_error";
3811
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3812
+ message: string;
3813
+ };
3814
+ requestId: string;
3424
3815
  };
3425
3816
  outputFormat: "json";
3426
- status: 200;
3817
+ status: 502;
3427
3818
  input: {
3428
3819
  param: {
3429
3820
  orgId: string;
@@ -3434,16 +3825,28 @@ export declare function management(options?: management.Options): import("hono/h
3434
3825
  } & {
3435
3826
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invitations/:invitationId{inv_[A-Za-z0-9_-]+}": {
3436
3827
  $delete: {
3828
+ output: {
3829
+ id: string;
3830
+ };
3831
+ outputFormat: "json";
3832
+ status: 200;
3833
+ input: {
3834
+ param: {
3835
+ invitationId: string;
3836
+ orgId: string;
3837
+ };
3838
+ };
3839
+ } | {
3437
3840
  output: {
3438
3841
  error: {
3439
- code: "upstream_error";
3842
+ code: "api_key_malformed";
3440
3843
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3441
3844
  message: string;
3442
3845
  };
3443
3846
  requestId: string;
3444
3847
  };
3445
3848
  outputFormat: "json";
3446
- status: 502;
3849
+ status: 400;
3447
3850
  input: {
3448
3851
  param: {
3449
3852
  invitationId: string;
@@ -3453,7 +3856,7 @@ export declare function management(options?: management.Options): import("hono/h
3453
3856
  } | {
3454
3857
  output: {
3455
3858
  error: {
3456
- code: "api_key_malformed";
3859
+ code: "param_invalid";
3457
3860
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3458
3861
  message: string;
3459
3862
  };
@@ -3487,7 +3890,7 @@ export declare function management(options?: management.Options): import("hono/h
3487
3890
  } | {
3488
3891
  output: {
3489
3892
  error: {
3490
- code: "forbidden";
3893
+ code: "api_key_forbidden";
3491
3894
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3492
3895
  message: string;
3493
3896
  };
@@ -3521,14 +3924,14 @@ export declare function management(options?: management.Options): import("hono/h
3521
3924
  } | {
3522
3925
  output: {
3523
3926
  error: {
3524
- code: "param_invalid";
3927
+ code: "invitation_not_found";
3525
3928
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3526
3929
  message: string;
3527
3930
  };
3528
3931
  requestId: string;
3529
3932
  };
3530
3933
  outputFormat: "json";
3531
- status: 400;
3934
+ status: 404;
3532
3935
  input: {
3533
3936
  param: {
3534
3937
  invitationId: string;
@@ -3538,14 +3941,14 @@ export declare function management(options?: management.Options): import("hono/h
3538
3941
  } | {
3539
3942
  output: {
3540
3943
  error: {
3541
- code: "invitation_not_found";
3944
+ code: "payment_required" | "rate_limit_exceeded";
3542
3945
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3543
3946
  message: string;
3544
3947
  };
3545
3948
  requestId: string;
3546
3949
  };
3547
3950
  outputFormat: "json";
3548
- status: 404;
3951
+ status: 429;
3549
3952
  input: {
3550
3953
  param: {
3551
3954
  invitationId: string;
@@ -3554,10 +3957,15 @@ export declare function management(options?: management.Options): import("hono/h
3554
3957
  };
3555
3958
  } | {
3556
3959
  output: {
3557
- id: string;
3960
+ error: {
3961
+ code: "upstream_error";
3962
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3963
+ message: string;
3964
+ };
3965
+ requestId: string;
3558
3966
  };
3559
3967
  outputFormat: "json";
3560
- status: 200;
3968
+ status: 502;
3561
3969
  input: {
3562
3970
  param: {
3563
3971
  invitationId: string;
@@ -3570,15 +3978,19 @@ export declare function management(options?: management.Options): import("hono/h
3570
3978
  "/v1/invitations": {
3571
3979
  $get: {
3572
3980
  output: {
3573
- error: {
3574
- code: "upstream_error";
3575
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3576
- message: string;
3577
- };
3578
- requestId: string;
3981
+ data: {
3982
+ createdAt: string;
3983
+ email: string;
3984
+ expiresAt: string;
3985
+ id: string;
3986
+ invitedBy: string;
3987
+ orgId: string;
3988
+ role: "admin" | "member" | "owner";
3989
+ orgName: string;
3990
+ }[];
3579
3991
  };
3580
3992
  outputFormat: "json";
3581
- status: 502;
3993
+ status: 200;
3582
3994
  input: {};
3583
3995
  } | {
3584
3996
  output: {
@@ -3618,35 +4030,44 @@ export declare function management(options?: management.Options): import("hono/h
3618
4030
  input: {};
3619
4031
  } | {
3620
4032
  output: {
3621
- data: {
3622
- createdAt: string;
3623
- email: string;
3624
- expiresAt: string;
3625
- id: string;
3626
- invitedBy: string;
3627
- orgId: string;
3628
- role: "admin" | "member" | "owner";
3629
- orgName: string;
3630
- }[];
4033
+ error: {
4034
+ code: "upstream_error";
4035
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4036
+ message: string;
4037
+ };
4038
+ requestId: string;
3631
4039
  };
3632
4040
  outputFormat: "json";
3633
- status: 200;
4041
+ status: 502;
3634
4042
  input: {};
3635
4043
  };
3636
4044
  };
3637
4045
  } & {
3638
4046
  "/v1/invitations/:invitationId{inv_[A-Za-z0-9_-]+}/accept": {
3639
4047
  $post: {
4048
+ output: {
4049
+ orgId: string;
4050
+ role: "admin" | "member" | "owner";
4051
+ userId: string;
4052
+ };
4053
+ outputFormat: "json";
4054
+ status: 200;
4055
+ input: {
4056
+ param: {
4057
+ invitationId: string;
4058
+ };
4059
+ };
4060
+ } | {
3640
4061
  output: {
3641
4062
  error: {
3642
- code: "upstream_error";
4063
+ code: "api_key_malformed";
3643
4064
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3644
4065
  message: string;
3645
4066
  };
3646
4067
  requestId: string;
3647
4068
  };
3648
4069
  outputFormat: "json";
3649
- status: 502;
4070
+ status: 400;
3650
4071
  input: {
3651
4072
  param: {
3652
4073
  invitationId: string;
@@ -3655,7 +4076,7 @@ export declare function management(options?: management.Options): import("hono/h
3655
4076
  } | {
3656
4077
  output: {
3657
4078
  error: {
3658
- code: "api_key_malformed";
4079
+ code: "param_invalid";
3659
4080
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3660
4081
  message: string;
3661
4082
  };
@@ -3703,14 +4124,14 @@ export declare function management(options?: management.Options): import("hono/h
3703
4124
  } | {
3704
4125
  output: {
3705
4126
  error: {
3706
- code: "param_invalid";
4127
+ code: "invitation_not_found";
3707
4128
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3708
4129
  message: string;
3709
4130
  };
3710
4131
  requestId: string;
3711
4132
  };
3712
4133
  outputFormat: "json";
3713
- status: 400;
4134
+ status: 404;
3714
4135
  input: {
3715
4136
  param: {
3716
4137
  invitationId: string;
@@ -3719,24 +4140,26 @@ export declare function management(options?: management.Options): import("hono/h
3719
4140
  } | {
3720
4141
  output: {
3721
4142
  error: {
3722
- code: "invitation_not_found";
4143
+ code: "upstream_error";
3723
4144
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3724
4145
  message: string;
3725
4146
  };
3726
4147
  requestId: string;
3727
4148
  };
3728
4149
  outputFormat: "json";
3729
- status: 404;
4150
+ status: 502;
3730
4151
  input: {
3731
4152
  param: {
3732
4153
  invitationId: string;
3733
4154
  };
3734
4155
  };
3735
- } | {
4156
+ };
4157
+ };
4158
+ } & {
4159
+ "/v1/invitations/:invitationId{inv_[A-Za-z0-9_-]+}/decline": {
4160
+ $post: {
3736
4161
  output: {
3737
- orgId: string;
3738
- role: "admin" | "member" | "owner";
3739
- userId: string;
4162
+ id: string;
3740
4163
  };
3741
4164
  outputFormat: "json";
3742
4165
  status: 200;
@@ -3745,21 +4168,17 @@ export declare function management(options?: management.Options): import("hono/h
3745
4168
  invitationId: string;
3746
4169
  };
3747
4170
  };
3748
- };
3749
- };
3750
- } & {
3751
- "/v1/invitations/:invitationId{inv_[A-Za-z0-9_-]+}/decline": {
3752
- $post: {
4171
+ } | {
3753
4172
  output: {
3754
4173
  error: {
3755
- code: "upstream_error";
4174
+ code: "api_key_malformed";
3756
4175
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3757
4176
  message: string;
3758
4177
  };
3759
4178
  requestId: string;
3760
4179
  };
3761
4180
  outputFormat: "json";
3762
- status: 502;
4181
+ status: 400;
3763
4182
  input: {
3764
4183
  param: {
3765
4184
  invitationId: string;
@@ -3768,7 +4187,7 @@ export declare function management(options?: management.Options): import("hono/h
3768
4187
  } | {
3769
4188
  output: {
3770
4189
  error: {
3771
- code: "api_key_malformed";
4190
+ code: "param_invalid";
3772
4191
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3773
4192
  message: string;
3774
4193
  };
@@ -3816,14 +4235,14 @@ export declare function management(options?: management.Options): import("hono/h
3816
4235
  } | {
3817
4236
  output: {
3818
4237
  error: {
3819
- code: "param_invalid";
4238
+ code: "invitation_not_found";
3820
4239
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3821
4240
  message: string;
3822
4241
  };
3823
4242
  requestId: string;
3824
4243
  };
3825
4244
  outputFormat: "json";
3826
- status: 400;
4245
+ status: 404;
3827
4246
  input: {
3828
4247
  param: {
3829
4248
  invitationId: string;
@@ -3832,45 +4251,64 @@ export declare function management(options?: management.Options): import("hono/h
3832
4251
  } | {
3833
4252
  output: {
3834
4253
  error: {
3835
- code: "invitation_not_found";
4254
+ code: "upstream_error";
3836
4255
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3837
4256
  message: string;
3838
4257
  };
3839
4258
  requestId: string;
3840
4259
  };
3841
4260
  outputFormat: "json";
3842
- status: 404;
4261
+ status: 502;
3843
4262
  input: {
3844
4263
  param: {
3845
4264
  invitationId: string;
3846
4265
  };
3847
4266
  };
3848
- } | {
4267
+ };
4268
+ };
4269
+ }, "/"> | import("hono/types").MergeSchemaPath<{
4270
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing": {
4271
+ $get: {
3849
4272
  output: {
3850
- id: string;
4273
+ spend?: {
4274
+ amount: string;
4275
+ currency: "usd";
4276
+ period: "month";
4277
+ } | undefined;
4278
+ spendLimit?: {
4279
+ amount: string;
4280
+ currency: "usd";
4281
+ period: "month";
4282
+ } | undefined;
4283
+ status: "active" | "canceled" | "none" | "past_due";
4284
+ txFeeLimit?: {
4285
+ amount: string;
4286
+ currency: "usd";
4287
+ } | undefined;
4288
+ updatedAt?: string | undefined;
3851
4289
  };
3852
4290
  outputFormat: "json";
3853
4291
  status: 200;
3854
4292
  input: {
3855
4293
  param: {
3856
- invitationId: string;
4294
+ orgId: string;
3857
4295
  };
4296
+ } & {
4297
+ query?: {
4298
+ environment?: string | string[];
4299
+ } | undefined;
3858
4300
  };
3859
- };
3860
- };
3861
- }, "/"> | import("hono/types").MergeSchemaPath<{
3862
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing": {
3863
- $get: {
4301
+ } | {
3864
4302
  output: {
3865
4303
  error: {
3866
- code: "upstream_error";
4304
+ code: "api_key_malformed";
3867
4305
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3868
4306
  message: string;
3869
4307
  };
3870
4308
  requestId: string;
3871
4309
  };
3872
4310
  outputFormat: "json";
3873
- status: 502;
4311
+ status: 400;
3874
4312
  input: {
3875
4313
  param: {
3876
4314
  orgId: string;
@@ -3883,7 +4321,7 @@ export declare function management(options?: management.Options): import("hono/h
3883
4321
  } | {
3884
4322
  output: {
3885
4323
  error: {
3886
- code: "api_key_malformed";
4324
+ code: "query_invalid";
3887
4325
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3888
4326
  message: string;
3889
4327
  };
@@ -3903,14 +4341,14 @@ export declare function management(options?: management.Options): import("hono/h
3903
4341
  } | {
3904
4342
  output: {
3905
4343
  error: {
3906
- code: "api_key_invalid" | "api_key_missing";
4344
+ code: "param_invalid";
3907
4345
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3908
4346
  message: string;
3909
4347
  };
3910
4348
  requestId: string;
3911
4349
  };
3912
4350
  outputFormat: "json";
3913
- status: 401;
4351
+ status: 400;
3914
4352
  input: {
3915
4353
  param: {
3916
4354
  orgId: string;
@@ -3923,14 +4361,14 @@ export declare function management(options?: management.Options): import("hono/h
3923
4361
  } | {
3924
4362
  output: {
3925
4363
  error: {
3926
- code: "query_invalid";
4364
+ code: "api_key_invalid" | "api_key_missing";
3927
4365
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3928
4366
  message: string;
3929
4367
  };
3930
4368
  requestId: string;
3931
4369
  };
3932
4370
  outputFormat: "json";
3933
- status: 400;
4371
+ status: 401;
3934
4372
  input: {
3935
4373
  param: {
3936
4374
  orgId: string;
@@ -3943,7 +4381,7 @@ export declare function management(options?: management.Options): import("hono/h
3943
4381
  } | {
3944
4382
  output: {
3945
4383
  error: {
3946
- code: "forbidden";
4384
+ code: "api_key_forbidden";
3947
4385
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3948
4386
  message: string;
3949
4387
  };
@@ -3983,14 +4421,14 @@ export declare function management(options?: management.Options): import("hono/h
3983
4421
  } | {
3984
4422
  output: {
3985
4423
  error: {
3986
- code: "param_invalid";
4424
+ code: "payment_required" | "rate_limit_exceeded";
3987
4425
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3988
4426
  message: string;
3989
4427
  };
3990
4428
  requestId: string;
3991
4429
  };
3992
4430
  outputFormat: "json";
3993
- status: 400;
4431
+ status: 429;
3994
4432
  input: {
3995
4433
  param: {
3996
4434
  orgId: string;
@@ -4021,6 +4459,30 @@ export declare function management(options?: management.Options): import("hono/h
4021
4459
  } | undefined;
4022
4460
  };
4023
4461
  } | {
4462
+ output: {
4463
+ error: {
4464
+ code: "upstream_error";
4465
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4466
+ message: string;
4467
+ };
4468
+ requestId: string;
4469
+ };
4470
+ outputFormat: "json";
4471
+ status: 502;
4472
+ input: {
4473
+ param: {
4474
+ orgId: string;
4475
+ };
4476
+ } & {
4477
+ query?: {
4478
+ environment?: string | string[];
4479
+ } | undefined;
4480
+ };
4481
+ };
4482
+ };
4483
+ } & {
4484
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing": {
4485
+ $patch: {
4024
4486
  output: {
4025
4487
  spend?: {
4026
4488
  amount: string;
@@ -4049,22 +4511,30 @@ export declare function management(options?: management.Options): import("hono/h
4049
4511
  query?: {
4050
4512
  environment?: string | string[];
4051
4513
  } | undefined;
4514
+ } & {
4515
+ json: {
4516
+ spendLimit?: {
4517
+ amount: string;
4518
+ currency?: "usd" | undefined;
4519
+ period?: "month" | undefined;
4520
+ } | null | undefined;
4521
+ txFeeLimit?: {
4522
+ amount: string;
4523
+ currency?: "usd" | undefined;
4524
+ } | null | undefined;
4525
+ };
4052
4526
  };
4053
- };
4054
- };
4055
- } & {
4056
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing": {
4057
- $patch: {
4527
+ } | {
4058
4528
  output: {
4059
4529
  error: {
4060
- code: "upstream_error";
4530
+ code: "api_key_malformed";
4061
4531
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4062
4532
  message: string;
4063
4533
  };
4064
4534
  requestId: string;
4065
4535
  };
4066
4536
  outputFormat: "json";
4067
- status: 502;
4537
+ status: 400;
4068
4538
  input: {
4069
4539
  param: {
4070
4540
  orgId: string;
@@ -4089,7 +4559,7 @@ export declare function management(options?: management.Options): import("hono/h
4089
4559
  } | {
4090
4560
  output: {
4091
4561
  error: {
4092
- code: "api_key_malformed";
4562
+ code: "query_invalid";
4093
4563
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4094
4564
  message: string;
4095
4565
  };
@@ -4121,14 +4591,14 @@ export declare function management(options?: management.Options): import("hono/h
4121
4591
  } | {
4122
4592
  output: {
4123
4593
  error: {
4124
- code: "api_key_invalid" | "api_key_missing";
4594
+ code: "body_invalid";
4125
4595
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4126
4596
  message: string;
4127
4597
  };
4128
4598
  requestId: string;
4129
4599
  };
4130
4600
  outputFormat: "json";
4131
- status: 401;
4601
+ status: 400;
4132
4602
  input: {
4133
4603
  param: {
4134
4604
  orgId: string;
@@ -4153,7 +4623,7 @@ export declare function management(options?: management.Options): import("hono/h
4153
4623
  } | {
4154
4624
  output: {
4155
4625
  error: {
4156
- code: "query_invalid";
4626
+ code: "param_invalid";
4157
4627
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4158
4628
  message: string;
4159
4629
  };
@@ -4185,14 +4655,14 @@ export declare function management(options?: management.Options): import("hono/h
4185
4655
  } | {
4186
4656
  output: {
4187
4657
  error: {
4188
- code: "forbidden";
4658
+ code: "api_key_invalid" | "api_key_missing";
4189
4659
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4190
4660
  message: string;
4191
4661
  };
4192
4662
  requestId: string;
4193
4663
  };
4194
4664
  outputFormat: "json";
4195
- status: 403;
4665
+ status: 401;
4196
4666
  input: {
4197
4667
  param: {
4198
4668
  orgId: string;
@@ -4217,14 +4687,14 @@ export declare function management(options?: management.Options): import("hono/h
4217
4687
  } | {
4218
4688
  output: {
4219
4689
  error: {
4220
- code: "organization_not_found";
4690
+ code: "api_key_forbidden";
4221
4691
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4222
4692
  message: string;
4223
4693
  };
4224
4694
  requestId: string;
4225
4695
  };
4226
4696
  outputFormat: "json";
4227
- status: 404;
4697
+ status: 403;
4228
4698
  input: {
4229
4699
  param: {
4230
4700
  orgId: string;
@@ -4249,14 +4719,14 @@ export declare function management(options?: management.Options): import("hono/h
4249
4719
  } | {
4250
4720
  output: {
4251
4721
  error: {
4252
- code: "param_invalid";
4722
+ code: "organization_not_found";
4253
4723
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4254
4724
  message: string;
4255
4725
  };
4256
4726
  requestId: string;
4257
4727
  };
4258
4728
  outputFormat: "json";
4259
- status: 400;
4729
+ status: 404;
4260
4730
  input: {
4261
4731
  param: {
4262
4732
  orgId: string;
@@ -4281,14 +4751,14 @@ export declare function management(options?: management.Options): import("hono/h
4281
4751
  } | {
4282
4752
  output: {
4283
4753
  error: {
4284
- code: "billing_unconfigured";
4754
+ code: "payment_required" | "rate_limit_exceeded";
4285
4755
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4286
4756
  message: string;
4287
4757
  };
4288
4758
  requestId: string;
4289
4759
  };
4290
4760
  outputFormat: "json";
4291
- status: 501;
4761
+ status: 429;
4292
4762
  input: {
4293
4763
  param: {
4294
4764
  orgId: string;
@@ -4312,25 +4782,15 @@ export declare function management(options?: management.Options): import("hono/h
4312
4782
  };
4313
4783
  } | {
4314
4784
  output: {
4315
- spend?: {
4316
- amount: string;
4317
- currency: "usd";
4318
- period: "month";
4319
- } | undefined;
4320
- spendLimit?: {
4321
- amount: string;
4322
- currency: "usd";
4323
- period: "month";
4324
- } | undefined;
4325
- status: "active" | "canceled" | "none" | "past_due";
4326
- txFeeLimit?: {
4327
- amount: string;
4328
- currency: "usd";
4329
- } | undefined;
4330
- updatedAt?: string | undefined;
4785
+ error: {
4786
+ code: "billing_unconfigured";
4787
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4788
+ message: string;
4789
+ };
4790
+ requestId: string;
4331
4791
  };
4332
4792
  outputFormat: "json";
4333
- status: 200;
4793
+ status: 501;
4334
4794
  input: {
4335
4795
  param: {
4336
4796
  orgId: string;
@@ -4355,14 +4815,14 @@ export declare function management(options?: management.Options): import("hono/h
4355
4815
  } | {
4356
4816
  output: {
4357
4817
  error: {
4358
- code: "body_invalid";
4818
+ code: "upstream_error";
4359
4819
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4360
4820
  message: string;
4361
4821
  };
4362
4822
  requestId: string;
4363
4823
  };
4364
4824
  outputFormat: "json";
4365
- status: 400;
4825
+ status: 502;
4366
4826
  input: {
4367
4827
  param: {
4368
4828
  orgId: string;
@@ -4389,16 +4849,31 @@ export declare function management(options?: management.Options): import("hono/h
4389
4849
  } & {
4390
4850
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/stripe/checkout": {
4391
4851
  $post: {
4852
+ output: {
4853
+ url: string;
4854
+ };
4855
+ outputFormat: "json";
4856
+ status: 200;
4857
+ input: {
4858
+ param: {
4859
+ orgId: string;
4860
+ };
4861
+ } & {
4862
+ query?: {
4863
+ environment?: string | string[];
4864
+ } | undefined;
4865
+ };
4866
+ } | {
4392
4867
  output: {
4393
4868
  error: {
4394
- code: "upstream_error";
4869
+ code: "api_key_malformed";
4395
4870
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4396
4871
  message: string;
4397
4872
  };
4398
4873
  requestId: string;
4399
4874
  };
4400
4875
  outputFormat: "json";
4401
- status: 502;
4876
+ status: 400;
4402
4877
  input: {
4403
4878
  param: {
4404
4879
  orgId: string;
@@ -4411,7 +4886,7 @@ export declare function management(options?: management.Options): import("hono/h
4411
4886
  } | {
4412
4887
  output: {
4413
4888
  error: {
4414
- code: "api_key_malformed";
4889
+ code: "query_invalid";
4415
4890
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4416
4891
  message: string;
4417
4892
  };
@@ -4431,14 +4906,14 @@ export declare function management(options?: management.Options): import("hono/h
4431
4906
  } | {
4432
4907
  output: {
4433
4908
  error: {
4434
- code: "api_key_invalid" | "api_key_missing";
4909
+ code: "param_invalid";
4435
4910
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4436
4911
  message: string;
4437
4912
  };
4438
4913
  requestId: string;
4439
4914
  };
4440
4915
  outputFormat: "json";
4441
- status: 401;
4916
+ status: 400;
4442
4917
  input: {
4443
4918
  param: {
4444
4919
  orgId: string;
@@ -4451,14 +4926,14 @@ export declare function management(options?: management.Options): import("hono/h
4451
4926
  } | {
4452
4927
  output: {
4453
4928
  error: {
4454
- code: "query_invalid";
4929
+ code: "api_key_invalid" | "api_key_missing";
4455
4930
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4456
4931
  message: string;
4457
4932
  };
4458
4933
  requestId: string;
4459
4934
  };
4460
4935
  outputFormat: "json";
4461
- status: 400;
4936
+ status: 401;
4462
4937
  input: {
4463
4938
  param: {
4464
4939
  orgId: string;
@@ -4471,7 +4946,7 @@ export declare function management(options?: management.Options): import("hono/h
4471
4946
  } | {
4472
4947
  output: {
4473
4948
  error: {
4474
- code: "forbidden";
4949
+ code: "api_key_forbidden";
4475
4950
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4476
4951
  message: string;
4477
4952
  };
@@ -4511,14 +4986,14 @@ export declare function management(options?: management.Options): import("hono/h
4511
4986
  } | {
4512
4987
  output: {
4513
4988
  error: {
4514
- code: "param_invalid";
4989
+ code: "payment_required" | "rate_limit_exceeded";
4515
4990
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4516
4991
  message: string;
4517
4992
  };
4518
4993
  requestId: string;
4519
4994
  };
4520
4995
  outputFormat: "json";
4521
- status: 400;
4996
+ status: 429;
4522
4997
  input: {
4523
4998
  param: {
4524
4999
  orgId: string;
@@ -4550,10 +5025,15 @@ export declare function management(options?: management.Options): import("hono/h
4550
5025
  };
4551
5026
  } | {
4552
5027
  output: {
4553
- url: string;
5028
+ error: {
5029
+ code: "upstream_error";
5030
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5031
+ message: string;
5032
+ };
5033
+ requestId: string;
4554
5034
  };
4555
5035
  outputFormat: "json";
4556
- status: 200;
5036
+ status: 502;
4557
5037
  input: {
4558
5038
  param: {
4559
5039
  orgId: string;
@@ -4568,16 +5048,31 @@ export declare function management(options?: management.Options): import("hono/h
4568
5048
  } & {
4569
5049
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/stripe/manage": {
4570
5050
  $post: {
5051
+ output: {
5052
+ url: string;
5053
+ };
5054
+ outputFormat: "json";
5055
+ status: 200;
5056
+ input: {
5057
+ param: {
5058
+ orgId: string;
5059
+ };
5060
+ } & {
5061
+ query?: {
5062
+ environment?: string | string[];
5063
+ } | undefined;
5064
+ };
5065
+ } | {
4571
5066
  output: {
4572
5067
  error: {
4573
- code: "upstream_error";
5068
+ code: "api_key_malformed";
4574
5069
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4575
5070
  message: string;
4576
5071
  };
4577
5072
  requestId: string;
4578
5073
  };
4579
5074
  outputFormat: "json";
4580
- status: 502;
5075
+ status: 400;
4581
5076
  input: {
4582
5077
  param: {
4583
5078
  orgId: string;
@@ -4590,7 +5085,7 @@ export declare function management(options?: management.Options): import("hono/h
4590
5085
  } | {
4591
5086
  output: {
4592
5087
  error: {
4593
- code: "api_key_malformed";
5088
+ code: "query_invalid";
4594
5089
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4595
5090
  message: string;
4596
5091
  };
@@ -4610,14 +5105,14 @@ export declare function management(options?: management.Options): import("hono/h
4610
5105
  } | {
4611
5106
  output: {
4612
5107
  error: {
4613
- code: "api_key_invalid" | "api_key_missing";
5108
+ code: "param_invalid";
4614
5109
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4615
5110
  message: string;
4616
5111
  };
4617
5112
  requestId: string;
4618
5113
  };
4619
5114
  outputFormat: "json";
4620
- status: 401;
5115
+ status: 400;
4621
5116
  input: {
4622
5117
  param: {
4623
5118
  orgId: string;
@@ -4630,14 +5125,14 @@ export declare function management(options?: management.Options): import("hono/h
4630
5125
  } | {
4631
5126
  output: {
4632
5127
  error: {
4633
- code: "query_invalid";
5128
+ code: "api_key_invalid" | "api_key_missing";
4634
5129
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4635
5130
  message: string;
4636
5131
  };
4637
5132
  requestId: string;
4638
5133
  };
4639
5134
  outputFormat: "json";
4640
- status: 400;
5135
+ status: 401;
4641
5136
  input: {
4642
5137
  param: {
4643
5138
  orgId: string;
@@ -4650,7 +5145,7 @@ export declare function management(options?: management.Options): import("hono/h
4650
5145
  } | {
4651
5146
  output: {
4652
5147
  error: {
4653
- code: "forbidden";
5148
+ code: "api_key_forbidden";
4654
5149
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4655
5150
  message: string;
4656
5151
  };
@@ -4690,14 +5185,14 @@ export declare function management(options?: management.Options): import("hono/h
4690
5185
  } | {
4691
5186
  output: {
4692
5187
  error: {
4693
- code: "param_invalid";
5188
+ code: "billing_not_found";
4694
5189
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4695
5190
  message: string;
4696
5191
  };
4697
5192
  requestId: string;
4698
5193
  };
4699
5194
  outputFormat: "json";
4700
- status: 400;
5195
+ status: 404;
4701
5196
  input: {
4702
5197
  param: {
4703
5198
  orgId: string;
@@ -4710,14 +5205,14 @@ export declare function management(options?: management.Options): import("hono/h
4710
5205
  } | {
4711
5206
  output: {
4712
5207
  error: {
4713
- code: "billing_unconfigured";
5208
+ code: "payment_required" | "rate_limit_exceeded";
4714
5209
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4715
5210
  message: string;
4716
5211
  };
4717
5212
  requestId: string;
4718
5213
  };
4719
5214
  outputFormat: "json";
4720
- status: 501;
5215
+ status: 429;
4721
5216
  input: {
4722
5217
  param: {
4723
5218
  orgId: string;
@@ -4729,10 +5224,15 @@ export declare function management(options?: management.Options): import("hono/h
4729
5224
  };
4730
5225
  } | {
4731
5226
  output: {
4732
- url: string;
5227
+ error: {
5228
+ code: "billing_unconfigured";
5229
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5230
+ message: string;
5231
+ };
5232
+ requestId: string;
4733
5233
  };
4734
5234
  outputFormat: "json";
4735
- status: 200;
5235
+ status: 501;
4736
5236
  input: {
4737
5237
  param: {
4738
5238
  orgId: string;
@@ -4745,14 +5245,14 @@ export declare function management(options?: management.Options): import("hono/h
4745
5245
  } | {
4746
5246
  output: {
4747
5247
  error: {
4748
- code: "billing_not_found";
5248
+ code: "upstream_error";
4749
5249
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4750
5250
  message: string;
4751
5251
  };
4752
5252
  requestId: string;
4753
5253
  };
4754
5254
  outputFormat: "json";
4755
- status: 404;
5255
+ status: 502;
4756
5256
  input: {
4757
5257
  param: {
4758
5258
  orgId: string;
@@ -4767,16 +5267,43 @@ export declare function management(options?: management.Options): import("hono/h
4767
5267
  } & {
4768
5268
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/payment-methods": {
4769
5269
  $get: {
5270
+ output: {
5271
+ data: {
5272
+ card?: {
5273
+ brand: string;
5274
+ expMonth: number;
5275
+ expYear: number;
5276
+ last4: string;
5277
+ } | undefined;
5278
+ createdAt: string;
5279
+ default: boolean;
5280
+ id: string;
5281
+ provider: "stripe";
5282
+ type: string;
5283
+ }[];
5284
+ };
5285
+ outputFormat: "json";
5286
+ status: 200;
5287
+ input: {
5288
+ param: {
5289
+ orgId: string;
5290
+ };
5291
+ } & {
5292
+ query?: {
5293
+ environment?: string | string[];
5294
+ } | undefined;
5295
+ };
5296
+ } | {
4770
5297
  output: {
4771
5298
  error: {
4772
- code: "upstream_error";
5299
+ code: "api_key_malformed";
4773
5300
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4774
5301
  message: string;
4775
5302
  };
4776
5303
  requestId: string;
4777
5304
  };
4778
5305
  outputFormat: "json";
4779
- status: 502;
5306
+ status: 400;
4780
5307
  input: {
4781
5308
  param: {
4782
5309
  orgId: string;
@@ -4789,7 +5316,7 @@ export declare function management(options?: management.Options): import("hono/h
4789
5316
  } | {
4790
5317
  output: {
4791
5318
  error: {
4792
- code: "api_key_malformed";
5319
+ code: "query_invalid";
4793
5320
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4794
5321
  message: string;
4795
5322
  };
@@ -4809,14 +5336,14 @@ export declare function management(options?: management.Options): import("hono/h
4809
5336
  } | {
4810
5337
  output: {
4811
5338
  error: {
4812
- code: "api_key_invalid" | "api_key_missing";
5339
+ code: "param_invalid";
4813
5340
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4814
5341
  message: string;
4815
5342
  };
4816
5343
  requestId: string;
4817
5344
  };
4818
5345
  outputFormat: "json";
4819
- status: 401;
5346
+ status: 400;
4820
5347
  input: {
4821
5348
  param: {
4822
5349
  orgId: string;
@@ -4829,14 +5356,14 @@ export declare function management(options?: management.Options): import("hono/h
4829
5356
  } | {
4830
5357
  output: {
4831
5358
  error: {
4832
- code: "query_invalid";
5359
+ code: "api_key_invalid" | "api_key_missing";
4833
5360
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4834
5361
  message: string;
4835
5362
  };
4836
5363
  requestId: string;
4837
5364
  };
4838
5365
  outputFormat: "json";
4839
- status: 400;
5366
+ status: 401;
4840
5367
  input: {
4841
5368
  param: {
4842
5369
  orgId: string;
@@ -4849,7 +5376,7 @@ export declare function management(options?: management.Options): import("hono/h
4849
5376
  } | {
4850
5377
  output: {
4851
5378
  error: {
4852
- code: "forbidden";
5379
+ code: "api_key_forbidden";
4853
5380
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4854
5381
  message: string;
4855
5382
  };
@@ -4889,14 +5416,14 @@ export declare function management(options?: management.Options): import("hono/h
4889
5416
  } | {
4890
5417
  output: {
4891
5418
  error: {
4892
- code: "param_invalid";
5419
+ code: "payment_required" | "rate_limit_exceeded";
4893
5420
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4894
5421
  message: string;
4895
5422
  };
4896
5423
  requestId: string;
4897
5424
  };
4898
5425
  outputFormat: "json";
4899
- status: 400;
5426
+ status: 429;
4900
5427
  input: {
4901
5428
  param: {
4902
5429
  orgId: string;
@@ -4928,22 +5455,15 @@ export declare function management(options?: management.Options): import("hono/h
4928
5455
  };
4929
5456
  } | {
4930
5457
  output: {
4931
- data: {
4932
- card?: {
4933
- brand: string;
4934
- expMonth: number;
4935
- expYear: number;
4936
- last4: string;
4937
- } | undefined;
4938
- createdAt: string;
4939
- default: boolean;
4940
- id: string;
4941
- provider: "stripe";
4942
- type: string;
4943
- }[];
5458
+ error: {
5459
+ code: "upstream_error";
5460
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5461
+ message: string;
5462
+ };
5463
+ requestId: string;
4944
5464
  };
4945
5465
  outputFormat: "json";
4946
- status: 200;
5466
+ status: 502;
4947
5467
  input: {
4948
5468
  param: {
4949
5469
  orgId: string;
@@ -4958,16 +5478,47 @@ export declare function management(options?: management.Options): import("hono/h
4958
5478
  } & {
4959
5479
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/payment-methods/:methodId{pm_[A-Za-z0-9_-]+}": {
4960
5480
  $delete: {
5481
+ output: {
5482
+ spend?: {
5483
+ amount: string;
5484
+ currency: "usd";
5485
+ period: "month";
5486
+ } | undefined;
5487
+ spendLimit?: {
5488
+ amount: string;
5489
+ currency: "usd";
5490
+ period: "month";
5491
+ } | undefined;
5492
+ status: "active" | "canceled" | "none" | "past_due";
5493
+ txFeeLimit?: {
5494
+ amount: string;
5495
+ currency: "usd";
5496
+ } | undefined;
5497
+ updatedAt?: string | undefined;
5498
+ };
5499
+ outputFormat: "json";
5500
+ status: 200;
5501
+ input: {
5502
+ param: {
5503
+ methodId: string;
5504
+ orgId: string;
5505
+ };
5506
+ } & {
5507
+ query?: {
5508
+ environment?: string | string[];
5509
+ } | undefined;
5510
+ };
5511
+ } | {
4961
5512
  output: {
4962
5513
  error: {
4963
- code: "upstream_error";
5514
+ code: "api_key_malformed";
4964
5515
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4965
5516
  message: string;
4966
5517
  };
4967
5518
  requestId: string;
4968
5519
  };
4969
5520
  outputFormat: "json";
4970
- status: 502;
5521
+ status: 400;
4971
5522
  input: {
4972
5523
  param: {
4973
5524
  methodId: string;
@@ -4981,7 +5532,7 @@ export declare function management(options?: management.Options): import("hono/h
4981
5532
  } | {
4982
5533
  output: {
4983
5534
  error: {
4984
- code: "api_key_malformed";
5535
+ code: "query_invalid";
4985
5536
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4986
5537
  message: string;
4987
5538
  };
@@ -5002,14 +5553,14 @@ export declare function management(options?: management.Options): import("hono/h
5002
5553
  } | {
5003
5554
  output: {
5004
5555
  error: {
5005
- code: "api_key_invalid" | "api_key_missing";
5556
+ code: "param_invalid";
5006
5557
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5007
5558
  message: string;
5008
5559
  };
5009
5560
  requestId: string;
5010
5561
  };
5011
5562
  outputFormat: "json";
5012
- status: 401;
5563
+ status: 400;
5013
5564
  input: {
5014
5565
  param: {
5015
5566
  methodId: string;
@@ -5023,14 +5574,14 @@ export declare function management(options?: management.Options): import("hono/h
5023
5574
  } | {
5024
5575
  output: {
5025
5576
  error: {
5026
- code: "query_invalid";
5577
+ code: "api_key_invalid" | "api_key_missing";
5027
5578
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5028
5579
  message: string;
5029
5580
  };
5030
5581
  requestId: string;
5031
5582
  };
5032
5583
  outputFormat: "json";
5033
- status: 400;
5584
+ status: 401;
5034
5585
  input: {
5035
5586
  param: {
5036
5587
  methodId: string;
@@ -5044,7 +5595,7 @@ export declare function management(options?: management.Options): import("hono/h
5044
5595
  } | {
5045
5596
  output: {
5046
5597
  error: {
5047
- code: "forbidden";
5598
+ code: "api_key_forbidden";
5048
5599
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5049
5600
  message: string;
5050
5601
  };
@@ -5086,14 +5637,14 @@ export declare function management(options?: management.Options): import("hono/h
5086
5637
  } | {
5087
5638
  output: {
5088
5639
  error: {
5089
- code: "param_invalid";
5640
+ code: "billing_not_found";
5090
5641
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5091
5642
  message: string;
5092
5643
  };
5093
5644
  requestId: string;
5094
5645
  };
5095
5646
  outputFormat: "json";
5096
- status: 400;
5647
+ status: 404;
5097
5648
  input: {
5098
5649
  param: {
5099
5650
  methodId: string;
@@ -5107,14 +5658,14 @@ export declare function management(options?: management.Options): import("hono/h
5107
5658
  } | {
5108
5659
  output: {
5109
5660
  error: {
5110
- code: "billing_unconfigured";
5661
+ code: "payment_method_not_found";
5111
5662
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5112
5663
  message: string;
5113
5664
  };
5114
5665
  requestId: string;
5115
5666
  };
5116
5667
  outputFormat: "json";
5117
- status: 501;
5668
+ status: 404;
5118
5669
  input: {
5119
5670
  param: {
5120
5671
  methodId: string;
@@ -5127,25 +5678,15 @@ export declare function management(options?: management.Options): import("hono/h
5127
5678
  };
5128
5679
  } | {
5129
5680
  output: {
5130
- spend?: {
5131
- amount: string;
5132
- currency: "usd";
5133
- period: "month";
5134
- } | undefined;
5135
- spendLimit?: {
5136
- amount: string;
5137
- currency: "usd";
5138
- period: "month";
5139
- } | undefined;
5140
- status: "active" | "canceled" | "none" | "past_due";
5141
- txFeeLimit?: {
5142
- amount: string;
5143
- currency: "usd";
5144
- } | undefined;
5145
- updatedAt?: string | undefined;
5681
+ error: {
5682
+ code: "payment_required" | "rate_limit_exceeded";
5683
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5684
+ message: string;
5685
+ };
5686
+ requestId: string;
5146
5687
  };
5147
5688
  outputFormat: "json";
5148
- status: 200;
5689
+ status: 429;
5149
5690
  input: {
5150
5691
  param: {
5151
5692
  methodId: string;
@@ -5159,14 +5700,14 @@ export declare function management(options?: management.Options): import("hono/h
5159
5700
  } | {
5160
5701
  output: {
5161
5702
  error: {
5162
- code: "billing_not_found";
5703
+ code: "billing_unconfigured";
5163
5704
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5164
5705
  message: string;
5165
5706
  };
5166
5707
  requestId: string;
5167
5708
  };
5168
5709
  outputFormat: "json";
5169
- status: 404;
5710
+ status: 501;
5170
5711
  input: {
5171
5712
  param: {
5172
5713
  methodId: string;
@@ -5180,14 +5721,14 @@ export declare function management(options?: management.Options): import("hono/h
5180
5721
  } | {
5181
5722
  output: {
5182
5723
  error: {
5183
- code: "payment_method_not_found";
5724
+ code: "upstream_error";
5184
5725
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5185
5726
  message: string;
5186
5727
  };
5187
5728
  requestId: string;
5188
5729
  };
5189
5730
  outputFormat: "json";
5190
- status: 404;
5731
+ status: 502;
5191
5732
  input: {
5192
5733
  param: {
5193
5734
  methodId: string;
@@ -5203,16 +5744,23 @@ export declare function management(options?: management.Options): import("hono/h
5203
5744
  } & {
5204
5745
  "/stripe/webhook": {
5205
5746
  $post: {
5747
+ output: {
5748
+ received: true;
5749
+ };
5750
+ outputFormat: "json";
5751
+ status: 200;
5752
+ input: {};
5753
+ } | {
5206
5754
  output: {
5207
5755
  error: {
5208
- code: "upstream_error";
5756
+ code: "signature_invalid";
5209
5757
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5210
5758
  message: string;
5211
5759
  };
5212
5760
  requestId: string;
5213
5761
  };
5214
5762
  outputFormat: "json";
5215
- status: 502;
5763
+ status: 400;
5216
5764
  input: {};
5217
5765
  } | {
5218
5766
  output: {
@@ -5229,21 +5777,14 @@ export declare function management(options?: management.Options): import("hono/h
5229
5777
  } | {
5230
5778
  output: {
5231
5779
  error: {
5232
- code: "signature_invalid";
5780
+ code: "upstream_error";
5233
5781
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5234
5782
  message: string;
5235
5783
  };
5236
5784
  requestId: string;
5237
5785
  };
5238
5786
  outputFormat: "json";
5239
- status: 400;
5240
- input: {};
5241
- } | {
5242
- output: {
5243
- received: true;
5244
- };
5245
- outputFormat: "json";
5246
- status: 200;
5787
+ status: 502;
5247
5788
  input: {};
5248
5789
  };
5249
5790
  };