tapimo 0.4.3 → 0.4.4

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 (77) hide show
  1. package/dist/App.d.ts +2491 -2861
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/admin/apps/verified-tokens.d.ts +57 -57
  4. package/dist/apps/data/App.d.ts +2354 -2724
  5. package/dist/apps/data/App.d.ts.map +1 -1
  6. package/dist/apps/data/FundingRouteProviders.d.ts +3 -110
  7. package/dist/apps/data/FundingRouteProviders.d.ts.map +1 -1
  8. package/dist/apps/data/FundingRouteProviders.js +1 -302
  9. package/dist/apps/data/FundingRouteProviders.js.map +1 -1
  10. package/dist/apps/data/routes/exchanges.d.ts +455 -455
  11. package/dist/apps/data/routes/fee-amm.d.ts +92 -92
  12. package/dist/apps/data/routes/funding.d.ts +138 -730
  13. package/dist/apps/data/routes/funding.d.ts.map +1 -1
  14. package/dist/apps/data/routes/funding.js +7 -241
  15. package/dist/apps/data/routes/funding.js.map +1 -1
  16. package/dist/apps/data/routes/tokenlist.d.ts +12 -12
  17. package/dist/apps/data/routes/transactions.d.ts +281 -281
  18. package/dist/apps/data/routes/transfers.d.ts +58 -58
  19. package/dist/apps/data/routes/verified-tokens.d.ts +86 -86
  20. package/dist/apps/management/App.d.ts +855 -855
  21. package/dist/apps/management/routes/api-keys.d.ts +40 -40
  22. package/dist/apps/management/routes/billing.d.ts +207 -207
  23. package/dist/apps/management/routes/me.d.ts +6 -6
  24. package/dist/apps/management/routes/members.d.ts +30 -30
  25. package/dist/apps/management/routes/orgs.d.ts +92 -92
  26. package/dist/apps/management/routes/projects.d.ts +28 -28
  27. package/dist/apps/management/routes/usage.d.ts +24 -24
  28. package/dist/apps/mcp.d.ts.map +1 -1
  29. package/dist/apps/mcp.js +3 -1
  30. package/dist/apps/mcp.js.map +1 -1
  31. package/dist/cloudflare.d.ts +2 -0
  32. package/dist/cloudflare.d.ts.map +1 -1
  33. package/dist/cloudflare.js +4 -0
  34. package/dist/cloudflare.js.map +1 -1
  35. package/dist/internal/Auth.d.ts +33 -22
  36. package/dist/internal/Auth.d.ts.map +1 -1
  37. package/dist/internal/Auth.js +40 -11
  38. package/dist/internal/Auth.js.map +1 -1
  39. package/dist/internal/Errors.d.ts +6 -0
  40. package/dist/internal/Errors.d.ts.map +1 -0
  41. package/dist/internal/Errors.js +16 -0
  42. package/dist/internal/Errors.js.map +1 -0
  43. package/dist/internal/FundingRoutes.d.ts +15 -213
  44. package/dist/internal/FundingRoutes.d.ts.map +1 -1
  45. package/dist/internal/FundingRoutes.js +1 -72
  46. package/dist/internal/FundingRoutes.js.map +1 -1
  47. package/dist/internal/Store.d.ts +61 -16
  48. package/dist/internal/Store.d.ts.map +1 -1
  49. package/dist/internal/Store.js +72 -17
  50. package/dist/internal/Store.js.map +1 -1
  51. package/dist/internal/Viem.d.ts +1 -1
  52. package/dist/internal/index.d.ts +27 -0
  53. package/dist/internal/index.d.ts.map +1 -0
  54. package/dist/internal/index.js +27 -0
  55. package/dist/internal/index.js.map +1 -0
  56. package/package.json +8 -3
  57. package/src/App.test.ts +60 -4
  58. package/src/Client.test-d.ts +0 -47
  59. package/src/apps/data/FundingRouteProviders.test.ts +37 -297
  60. package/src/apps/data/FundingRouteProviders.ts +3 -435
  61. package/src/apps/data/routes/funding.test.ts +7 -109
  62. package/src/apps/data/routes/funding.ts +8 -323
  63. package/src/apps/data/routes/indexer.test.ts +2 -2
  64. package/src/apps/data/routes/webhooks.test.ts +2 -2
  65. package/src/apps/mcp.test.ts +55 -14
  66. package/src/apps/mcp.ts +3 -1
  67. package/src/cloudflare.ts +5 -0
  68. package/src/internal/Auth.test.ts +397 -16
  69. package/src/internal/Auth.ts +76 -32
  70. package/src/internal/FundingRoutes.test.ts +8 -34
  71. package/src/internal/FundingRoutes.ts +1 -174
  72. package/src/internal/Log.test.ts +4 -4
  73. package/src/internal/Store.test-d.ts +15 -0
  74. package/src/internal/Store.test.ts +153 -2
  75. package/src/internal/Store.ts +157 -41
  76. package/src/internal/index.test.ts +34 -0
  77. package/src/internal/index.ts +26 -0
@@ -77,17 +77,6 @@ export type Environment = {
77
77
  export declare function management(options?: management.Options): import("hono/hono-base").HonoBase<Environment, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
78
78
  "/v1/me": {
79
79
  $get: {
80
- output: {
81
- address?: string | undefined;
82
- createdAt: string;
83
- email?: string | undefined;
84
- id: string;
85
- updatedAt: string;
86
- };
87
- outputFormat: "json";
88
- status: 200;
89
- input: {};
90
- } | {
91
80
  output: {
92
81
  error: {
93
82
  code: "api_key_malformed";
@@ -114,55 +103,55 @@ export declare function management(options?: management.Options): import("hono/h
114
103
  } | {
115
104
  output: {
116
105
  error: {
117
- code: "forbidden";
106
+ code: "upstream_error";
118
107
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
119
108
  message: string;
120
109
  };
121
110
  requestId: string;
122
111
  };
123
112
  outputFormat: "json";
124
- status: 403;
113
+ status: 502;
125
114
  input: {};
126
115
  } | {
127
116
  output: {
128
117
  error: {
129
- code: "user_not_found";
118
+ code: "forbidden";
130
119
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
131
120
  message: string;
132
121
  };
133
122
  requestId: string;
134
123
  };
135
124
  outputFormat: "json";
136
- status: 404;
125
+ status: 403;
137
126
  input: {};
138
127
  } | {
139
128
  output: {
140
129
  error: {
141
- code: "upstream_error";
130
+ code: "user_not_found";
142
131
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
143
132
  message: string;
144
133
  };
145
134
  requestId: string;
146
135
  };
147
136
  outputFormat: "json";
148
- status: 502;
137
+ status: 404;
149
138
  input: {};
150
- };
151
- };
152
- }, "/"> | import("hono/types").MergeSchemaPath<{
153
- "/v1/scopes": {
154
- $get: {
139
+ } | {
155
140
  output: {
156
- data: {
157
- description: string;
158
- scope: string;
159
- selfServe: boolean;
160
- }[];
141
+ address?: string | undefined;
142
+ createdAt: string;
143
+ email?: string | undefined;
144
+ id: string;
145
+ updatedAt: string;
161
146
  };
162
147
  outputFormat: "json";
163
148
  status: 200;
164
149
  input: {};
165
- } | {
150
+ };
151
+ };
152
+ }, "/"> | import("hono/types").MergeSchemaPath<{
153
+ "/v1/scopes": {
154
+ $get: {
166
155
  output: {
167
156
  error: {
168
157
  code: "api_key_malformed";
@@ -210,44 +199,32 @@ export declare function management(options?: management.Options): import("hono/h
210
199
  outputFormat: "json";
211
200
  status: 429;
212
201
  input: {};
202
+ } | {
203
+ output: {
204
+ data: {
205
+ description: string;
206
+ scope: string;
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
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;
219
+ error: {
220
+ code: "api_key_malformed";
221
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
222
+ message: string;
247
223
  };
224
+ requestId: string;
248
225
  };
249
226
  outputFormat: "json";
250
- status: 200;
227
+ status: 400;
251
228
  input: {
252
229
  param: {
253
230
  orgId: string;
@@ -264,14 +241,14 @@ export declare function management(options?: management.Options): import("hono/h
264
241
  } | {
265
242
  output: {
266
243
  error: {
267
- code: "api_key_malformed";
244
+ code: "api_key_invalid" | "api_key_missing";
268
245
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
269
246
  message: string;
270
247
  };
271
248
  requestId: string;
272
249
  };
273
250
  outputFormat: "json";
274
- status: 400;
251
+ status: 401;
275
252
  input: {
276
253
  param: {
277
254
  orgId: string;
@@ -288,14 +265,14 @@ export declare function management(options?: management.Options): import("hono/h
288
265
  } | {
289
266
  output: {
290
267
  error: {
291
- code: "query_invalid";
268
+ code: "api_key_forbidden";
292
269
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
293
270
  message: string;
294
271
  };
295
272
  requestId: string;
296
273
  };
297
274
  outputFormat: "json";
298
- status: 400;
275
+ status: 403;
299
276
  input: {
300
277
  param: {
301
278
  orgId: string;
@@ -312,14 +289,14 @@ export declare function management(options?: management.Options): import("hono/h
312
289
  } | {
313
290
  output: {
314
291
  error: {
315
- code: "param_invalid";
292
+ code: "payment_required" | "rate_limit_exceeded";
316
293
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
317
294
  message: string;
318
295
  };
319
296
  requestId: string;
320
297
  };
321
298
  outputFormat: "json";
322
- status: 400;
299
+ status: 429;
323
300
  input: {
324
301
  param: {
325
302
  orgId: string;
@@ -336,14 +313,14 @@ export declare function management(options?: management.Options): import("hono/h
336
313
  } | {
337
314
  output: {
338
315
  error: {
339
- code: "api_key_invalid" | "api_key_missing";
316
+ code: "query_invalid";
340
317
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
341
318
  message: string;
342
319
  };
343
320
  requestId: string;
344
321
  };
345
322
  outputFormat: "json";
346
- status: 401;
323
+ status: 400;
347
324
  input: {
348
325
  param: {
349
326
  orgId: string;
@@ -360,14 +337,14 @@ export declare function management(options?: management.Options): import("hono/h
360
337
  } | {
361
338
  output: {
362
339
  error: {
363
- code: "api_key_forbidden";
340
+ code: "upstream_error";
364
341
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
365
342
  message: string;
366
343
  };
367
344
  requestId: string;
368
345
  };
369
346
  outputFormat: "json";
370
- status: 403;
347
+ status: 502;
371
348
  input: {
372
349
  param: {
373
350
  orgId: string;
@@ -408,14 +385,14 @@ export declare function management(options?: management.Options): import("hono/h
408
385
  } | {
409
386
  output: {
410
387
  error: {
411
- code: "payment_required" | "rate_limit_exceeded";
388
+ code: "param_invalid";
412
389
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
413
390
  message: string;
414
391
  };
415
392
  requestId: string;
416
393
  };
417
394
  outputFormat: "json";
418
- status: 429;
395
+ status: 400;
419
396
  input: {
420
397
  param: {
421
398
  orgId: string;
@@ -455,15 +432,38 @@ export declare function management(options?: management.Options): import("hono/h
455
432
  };
456
433
  } | {
457
434
  output: {
458
- error: {
459
- code: "upstream_error";
460
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
461
- message: string;
435
+ byKey: {
436
+ apiKeyId: string;
437
+ averageDurationMs: number;
438
+ errors: number;
439
+ requests: number;
440
+ }[];
441
+ byRoute: {
442
+ averageDurationMs: number;
443
+ errors: number;
444
+ requests: number;
445
+ route: string;
446
+ }[];
447
+ byStatus: {
448
+ requests: number;
449
+ status: number;
450
+ }[];
451
+ from: string;
452
+ interval: "day" | "hour";
453
+ series: {
454
+ errors: number;
455
+ requests: number;
456
+ time: string;
457
+ }[];
458
+ to: string;
459
+ totals: {
460
+ averageDurationMs: number;
461
+ errors: number;
462
+ requests: number;
462
463
  };
463
- requestId: string;
464
464
  };
465
465
  outputFormat: "json";
466
- status: 502;
466
+ status: 200;
467
467
  input: {
468
468
  param: {
469
469
  orgId: string;
@@ -483,17 +483,15 @@ export declare function management(options?: management.Options): import("hono/h
483
483
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/usage/sponsorships": {
484
484
  $get: {
485
485
  output: {
486
- data: {
487
- count: number;
488
- feeTotal: {
489
- amount: string;
490
- currency: "usd";
491
- };
492
- timestamp: string;
493
- }[];
486
+ error: {
487
+ code: "api_key_malformed";
488
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
489
+ message: string;
490
+ };
491
+ requestId: string;
494
492
  };
495
493
  outputFormat: "json";
496
- status: 200;
494
+ status: 400;
497
495
  input: {
498
496
  param: {
499
497
  orgId: string;
@@ -510,14 +508,14 @@ export declare function management(options?: management.Options): import("hono/h
510
508
  } | {
511
509
  output: {
512
510
  error: {
513
- code: "api_key_malformed";
511
+ code: "api_key_invalid" | "api_key_missing";
514
512
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
515
513
  message: string;
516
514
  };
517
515
  requestId: string;
518
516
  };
519
517
  outputFormat: "json";
520
- status: 400;
518
+ status: 401;
521
519
  input: {
522
520
  param: {
523
521
  orgId: string;
@@ -534,14 +532,14 @@ export declare function management(options?: management.Options): import("hono/h
534
532
  } | {
535
533
  output: {
536
534
  error: {
537
- code: "query_invalid";
535
+ code: "api_key_forbidden";
538
536
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
539
537
  message: string;
540
538
  };
541
539
  requestId: string;
542
540
  };
543
541
  outputFormat: "json";
544
- status: 400;
542
+ status: 403;
545
543
  input: {
546
544
  param: {
547
545
  orgId: string;
@@ -558,14 +556,14 @@ export declare function management(options?: management.Options): import("hono/h
558
556
  } | {
559
557
  output: {
560
558
  error: {
561
- code: "param_invalid";
559
+ code: "payment_required" | "rate_limit_exceeded";
562
560
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
563
561
  message: string;
564
562
  };
565
563
  requestId: string;
566
564
  };
567
565
  outputFormat: "json";
568
- status: 400;
566
+ status: 429;
569
567
  input: {
570
568
  param: {
571
569
  orgId: string;
@@ -582,14 +580,14 @@ export declare function management(options?: management.Options): import("hono/h
582
580
  } | {
583
581
  output: {
584
582
  error: {
585
- code: "api_key_invalid" | "api_key_missing";
583
+ code: "query_invalid";
586
584
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
587
585
  message: string;
588
586
  };
589
587
  requestId: string;
590
588
  };
591
589
  outputFormat: "json";
592
- status: 401;
590
+ status: 400;
593
591
  input: {
594
592
  param: {
595
593
  orgId: string;
@@ -606,14 +604,14 @@ export declare function management(options?: management.Options): import("hono/h
606
604
  } | {
607
605
  output: {
608
606
  error: {
609
- code: "api_key_forbidden";
607
+ code: "upstream_error";
610
608
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
611
609
  message: string;
612
610
  };
613
611
  requestId: string;
614
612
  };
615
613
  outputFormat: "json";
616
- status: 403;
614
+ status: 502;
617
615
  input: {
618
616
  param: {
619
617
  orgId: string;
@@ -654,14 +652,14 @@ export declare function management(options?: management.Options): import("hono/h
654
652
  } | {
655
653
  output: {
656
654
  error: {
657
- code: "payment_required" | "rate_limit_exceeded";
655
+ code: "param_invalid";
658
656
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
659
657
  message: string;
660
658
  };
661
659
  requestId: string;
662
660
  };
663
661
  outputFormat: "json";
664
- status: 429;
662
+ status: 400;
665
663
  input: {
666
664
  param: {
667
665
  orgId: string;
@@ -677,15 +675,17 @@ export declare function management(options?: management.Options): import("hono/h
677
675
  };
678
676
  } | {
679
677
  output: {
680
- error: {
681
- code: "upstream_error";
682
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
683
- message: string;
684
- };
685
- requestId: string;
678
+ data: {
679
+ count: number;
680
+ feeTotal: {
681
+ amount: string;
682
+ currency: "usd";
683
+ };
684
+ timestamp: string;
685
+ }[];
686
686
  };
687
687
  outputFormat: "json";
688
- status: 502;
688
+ status: 200;
689
689
  input: {
690
690
  param: {
691
691
  orgId: string;
@@ -705,16 +705,15 @@ export declare function management(options?: management.Options): import("hono/h
705
705
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/members": {
706
706
  $get: {
707
707
  output: {
708
- data: {
709
- address?: string | undefined;
710
- createdAt: string;
711
- email?: string | undefined;
712
- role: "admin" | "member" | "owner";
713
- userId: string;
714
- }[];
708
+ error: {
709
+ code: "api_key_malformed";
710
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
711
+ message: string;
712
+ };
713
+ requestId: string;
715
714
  };
716
715
  outputFormat: "json";
717
- status: 200;
716
+ status: 400;
718
717
  input: {
719
718
  param: {
720
719
  orgId: string;
@@ -723,14 +722,14 @@ export declare function management(options?: management.Options): import("hono/h
723
722
  } | {
724
723
  output: {
725
724
  error: {
726
- code: "api_key_malformed";
725
+ code: "api_key_invalid" | "api_key_missing";
727
726
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
728
727
  message: string;
729
728
  };
730
729
  requestId: string;
731
730
  };
732
731
  outputFormat: "json";
733
- status: 400;
732
+ status: 401;
734
733
  input: {
735
734
  param: {
736
735
  orgId: string;
@@ -739,14 +738,14 @@ export declare function management(options?: management.Options): import("hono/h
739
738
  } | {
740
739
  output: {
741
740
  error: {
742
- code: "param_invalid";
741
+ code: "api_key_forbidden";
743
742
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
744
743
  message: string;
745
744
  };
746
745
  requestId: string;
747
746
  };
748
747
  outputFormat: "json";
749
- status: 400;
748
+ status: 403;
750
749
  input: {
751
750
  param: {
752
751
  orgId: string;
@@ -755,14 +754,14 @@ export declare function management(options?: management.Options): import("hono/h
755
754
  } | {
756
755
  output: {
757
756
  error: {
758
- code: "api_key_invalid" | "api_key_missing";
757
+ code: "payment_required" | "rate_limit_exceeded";
759
758
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
760
759
  message: string;
761
760
  };
762
761
  requestId: string;
763
762
  };
764
763
  outputFormat: "json";
765
- status: 401;
764
+ status: 429;
766
765
  input: {
767
766
  param: {
768
767
  orgId: string;
@@ -771,14 +770,14 @@ export declare function management(options?: management.Options): import("hono/h
771
770
  } | {
772
771
  output: {
773
772
  error: {
774
- code: "api_key_forbidden";
773
+ code: "upstream_error";
775
774
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
776
775
  message: string;
777
776
  };
778
777
  requestId: string;
779
778
  };
780
779
  outputFormat: "json";
781
- status: 403;
780
+ status: 502;
782
781
  input: {
783
782
  param: {
784
783
  orgId: string;
@@ -803,14 +802,14 @@ export declare function management(options?: management.Options): import("hono/h
803
802
  } | {
804
803
  output: {
805
804
  error: {
806
- code: "payment_required" | "rate_limit_exceeded";
805
+ code: "param_invalid";
807
806
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
808
807
  message: string;
809
808
  };
810
809
  requestId: string;
811
810
  };
812
811
  outputFormat: "json";
813
- status: 429;
812
+ status: 400;
814
813
  input: {
815
814
  param: {
816
815
  orgId: string;
@@ -818,15 +817,16 @@ export declare function management(options?: management.Options): import("hono/h
818
817
  };
819
818
  } | {
820
819
  output: {
821
- error: {
822
- code: "upstream_error";
823
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
824
- message: string;
825
- };
826
- requestId: string;
820
+ data: {
821
+ address?: string | undefined;
822
+ createdAt: string;
823
+ email?: string | undefined;
824
+ role: "admin" | "member" | "owner";
825
+ userId: string;
826
+ }[];
827
827
  };
828
828
  outputFormat: "json";
829
- status: 502;
829
+ status: 200;
830
830
  input: {
831
831
  param: {
832
832
  orgId: string;
@@ -838,14 +838,15 @@ export declare function management(options?: management.Options): import("hono/h
838
838
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/members/:userId{usr_[A-Za-z0-9_-]+}": {
839
839
  $patch: {
840
840
  output: {
841
- address?: string | undefined;
842
- createdAt: string;
843
- email?: string | undefined;
844
- role: "admin" | "member" | "owner";
845
- userId: string;
841
+ error: {
842
+ code: "api_key_malformed";
843
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
844
+ message: string;
845
+ };
846
+ requestId: string;
846
847
  };
847
848
  outputFormat: "json";
848
- status: 200;
849
+ status: 400;
849
850
  input: {
850
851
  param: {
851
852
  orgId: string;
@@ -859,14 +860,14 @@ export declare function management(options?: management.Options): import("hono/h
859
860
  } | {
860
861
  output: {
861
862
  error: {
862
- code: "api_key_malformed";
863
+ code: "api_key_invalid" | "api_key_missing";
863
864
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
864
865
  message: string;
865
866
  };
866
867
  requestId: string;
867
868
  };
868
869
  outputFormat: "json";
869
- status: 400;
870
+ status: 401;
870
871
  input: {
871
872
  param: {
872
873
  orgId: string;
@@ -880,14 +881,14 @@ export declare function management(options?: management.Options): import("hono/h
880
881
  } | {
881
882
  output: {
882
883
  error: {
883
- code: "body_invalid";
884
+ code: "api_key_forbidden";
884
885
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
885
886
  message: string;
886
887
  };
887
888
  requestId: string;
888
889
  };
889
890
  outputFormat: "json";
890
- status: 400;
891
+ status: 403;
891
892
  input: {
892
893
  param: {
893
894
  orgId: string;
@@ -901,14 +902,14 @@ export declare function management(options?: management.Options): import("hono/h
901
902
  } | {
902
903
  output: {
903
904
  error: {
904
- code: "param_invalid";
905
+ code: "payment_required" | "rate_limit_exceeded";
905
906
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
906
907
  message: string;
907
908
  };
908
909
  requestId: string;
909
910
  };
910
911
  outputFormat: "json";
911
- status: 400;
912
+ status: 429;
912
913
  input: {
913
914
  param: {
914
915
  orgId: string;
@@ -922,14 +923,14 @@ export declare function management(options?: management.Options): import("hono/h
922
923
  } | {
923
924
  output: {
924
925
  error: {
925
- code: "api_key_invalid" | "api_key_missing";
926
+ code: "upstream_error";
926
927
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
927
928
  message: string;
928
929
  };
929
930
  requestId: string;
930
931
  };
931
932
  outputFormat: "json";
932
- status: 401;
933
+ status: 502;
933
934
  input: {
934
935
  param: {
935
936
  orgId: string;
@@ -943,14 +944,14 @@ export declare function management(options?: management.Options): import("hono/h
943
944
  } | {
944
945
  output: {
945
946
  error: {
946
- code: "api_key_forbidden";
947
+ code: "organization_not_found";
947
948
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
948
949
  message: string;
949
950
  };
950
951
  requestId: string;
951
952
  };
952
953
  outputFormat: "json";
953
- status: 403;
954
+ status: 404;
954
955
  input: {
955
956
  param: {
956
957
  orgId: string;
@@ -964,14 +965,14 @@ export declare function management(options?: management.Options): import("hono/h
964
965
  } | {
965
966
  output: {
966
967
  error: {
967
- code: "organization_not_found";
968
+ code: "param_invalid";
968
969
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
969
970
  message: string;
970
971
  };
971
972
  requestId: string;
972
973
  };
973
974
  outputFormat: "json";
974
- status: 404;
975
+ status: 400;
975
976
  input: {
976
977
  param: {
977
978
  orgId: string;
@@ -985,14 +986,14 @@ export declare function management(options?: management.Options): import("hono/h
985
986
  } | {
986
987
  output: {
987
988
  error: {
988
- code: "member_not_found";
989
+ code: "body_invalid";
989
990
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
990
991
  message: string;
991
992
  };
992
993
  requestId: string;
993
994
  };
994
995
  outputFormat: "json";
995
- status: 404;
996
+ status: 400;
996
997
  input: {
997
998
  param: {
998
999
  orgId: string;
@@ -1027,14 +1028,14 @@ export declare function management(options?: management.Options): import("hono/h
1027
1028
  } | {
1028
1029
  output: {
1029
1030
  error: {
1030
- code: "payment_required" | "rate_limit_exceeded";
1031
+ code: "member_not_found";
1031
1032
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1032
1033
  message: string;
1033
1034
  };
1034
1035
  requestId: string;
1035
1036
  };
1036
1037
  outputFormat: "json";
1037
- status: 429;
1038
+ status: 404;
1038
1039
  input: {
1039
1040
  param: {
1040
1041
  orgId: string;
@@ -1047,15 +1048,14 @@ export declare function management(options?: management.Options): import("hono/h
1047
1048
  };
1048
1049
  } | {
1049
1050
  output: {
1050
- error: {
1051
- code: "upstream_error";
1052
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1053
- message: string;
1054
- };
1055
- requestId: string;
1051
+ address?: string | undefined;
1052
+ createdAt: string;
1053
+ email?: string | undefined;
1054
+ role: "admin" | "member" | "owner";
1055
+ userId: string;
1056
1056
  };
1057
1057
  outputFormat: "json";
1058
- status: 502;
1058
+ status: 200;
1059
1059
  input: {
1060
1060
  param: {
1061
1061
  orgId: string;
@@ -1071,18 +1071,6 @@ export declare function management(options?: management.Options): import("hono/h
1071
1071
  } & {
1072
1072
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/members/:userId{usr_[A-Za-z0-9_-]+}": {
1073
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
- } | {
1086
1074
  output: {
1087
1075
  error: {
1088
1076
  code: "api_key_malformed";
@@ -1102,14 +1090,14 @@ export declare function management(options?: management.Options): import("hono/h
1102
1090
  } | {
1103
1091
  output: {
1104
1092
  error: {
1105
- code: "param_invalid";
1093
+ code: "api_key_invalid" | "api_key_missing";
1106
1094
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1107
1095
  message: string;
1108
1096
  };
1109
1097
  requestId: string;
1110
1098
  };
1111
1099
  outputFormat: "json";
1112
- status: 400;
1100
+ status: 401;
1113
1101
  input: {
1114
1102
  param: {
1115
1103
  orgId: string;
@@ -1119,14 +1107,14 @@ export declare function management(options?: management.Options): import("hono/h
1119
1107
  } | {
1120
1108
  output: {
1121
1109
  error: {
1122
- code: "api_key_invalid" | "api_key_missing";
1110
+ code: "api_key_forbidden";
1123
1111
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1124
1112
  message: string;
1125
1113
  };
1126
1114
  requestId: string;
1127
1115
  };
1128
1116
  outputFormat: "json";
1129
- status: 401;
1117
+ status: 403;
1130
1118
  input: {
1131
1119
  param: {
1132
1120
  orgId: string;
@@ -1136,14 +1124,14 @@ export declare function management(options?: management.Options): import("hono/h
1136
1124
  } | {
1137
1125
  output: {
1138
1126
  error: {
1139
- code: "api_key_forbidden";
1127
+ code: "payment_required" | "rate_limit_exceeded";
1140
1128
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1141
1129
  message: string;
1142
1130
  };
1143
1131
  requestId: string;
1144
1132
  };
1145
1133
  outputFormat: "json";
1146
- status: 403;
1134
+ status: 429;
1147
1135
  input: {
1148
1136
  param: {
1149
1137
  orgId: string;
@@ -1153,14 +1141,14 @@ export declare function management(options?: management.Options): import("hono/h
1153
1141
  } | {
1154
1142
  output: {
1155
1143
  error: {
1156
- code: "forbidden";
1144
+ code: "upstream_error";
1157
1145
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1158
1146
  message: string;
1159
1147
  };
1160
1148
  requestId: string;
1161
1149
  };
1162
1150
  outputFormat: "json";
1163
- status: 403;
1151
+ status: 502;
1164
1152
  input: {
1165
1153
  param: {
1166
1154
  orgId: string;
@@ -1187,14 +1175,14 @@ export declare function management(options?: management.Options): import("hono/h
1187
1175
  } | {
1188
1176
  output: {
1189
1177
  error: {
1190
- code: "member_not_found";
1178
+ code: "param_invalid";
1191
1179
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1192
1180
  message: string;
1193
1181
  };
1194
1182
  requestId: string;
1195
1183
  };
1196
1184
  outputFormat: "json";
1197
- status: 404;
1185
+ status: 400;
1198
1186
  input: {
1199
1187
  param: {
1200
1188
  orgId: string;
@@ -1204,14 +1192,14 @@ export declare function management(options?: management.Options): import("hono/h
1204
1192
  } | {
1205
1193
  output: {
1206
1194
  error: {
1207
- code: "last_owner";
1195
+ code: "forbidden";
1208
1196
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1209
1197
  message: string;
1210
1198
  };
1211
1199
  requestId: string;
1212
1200
  };
1213
1201
  outputFormat: "json";
1214
- status: 409;
1202
+ status: 403;
1215
1203
  input: {
1216
1204
  param: {
1217
1205
  orgId: string;
@@ -1221,14 +1209,14 @@ export declare function management(options?: management.Options): import("hono/h
1221
1209
  } | {
1222
1210
  output: {
1223
1211
  error: {
1224
- code: "payment_required" | "rate_limit_exceeded";
1212
+ code: "last_owner";
1225
1213
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1226
1214
  message: string;
1227
1215
  };
1228
1216
  requestId: string;
1229
1217
  };
1230
1218
  outputFormat: "json";
1231
- status: 429;
1219
+ status: 409;
1232
1220
  input: {
1233
1221
  param: {
1234
1222
  orgId: string;
@@ -1238,53 +1226,37 @@ export declare function management(options?: management.Options): import("hono/h
1238
1226
  } | {
1239
1227
  output: {
1240
1228
  error: {
1241
- code: "upstream_error";
1229
+ code: "member_not_found";
1242
1230
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1243
1231
  message: string;
1244
1232
  };
1245
1233
  requestId: string;
1246
1234
  };
1247
1235
  outputFormat: "json";
1248
- status: 502;
1236
+ status: 404;
1249
1237
  input: {
1250
1238
  param: {
1251
1239
  orgId: string;
1252
1240
  userId: string;
1253
1241
  };
1254
1242
  };
1255
- };
1256
- };
1257
- }, "/"> | import("hono/types").MergeSchemaPath<{
1258
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
1259
- $post: {
1243
+ } | {
1260
1244
  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;
1245
+ userId: string;
1272
1246
  };
1273
1247
  outputFormat: "json";
1274
1248
  status: 200;
1275
1249
  input: {
1276
1250
  param: {
1277
1251
  orgId: string;
1278
- projectId: string;
1279
- };
1280
- } & {
1281
- json: {
1282
- environment?: "production" | "sandbox" | undefined;
1283
- name?: string | undefined;
1284
- scopes?: string[] | undefined;
1252
+ userId: string;
1285
1253
  };
1286
1254
  };
1287
- } | {
1255
+ };
1256
+ };
1257
+ }, "/"> | import("hono/types").MergeSchemaPath<{
1258
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
1259
+ $post: {
1288
1260
  output: {
1289
1261
  error: {
1290
1262
  code: "api_key_malformed";
@@ -1310,14 +1282,14 @@ export declare function management(options?: management.Options): import("hono/h
1310
1282
  } | {
1311
1283
  output: {
1312
1284
  error: {
1313
- code: "body_invalid";
1285
+ code: "api_key_invalid" | "api_key_missing";
1314
1286
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1315
1287
  message: string;
1316
1288
  };
1317
1289
  requestId: string;
1318
1290
  };
1319
1291
  outputFormat: "json";
1320
- status: 400;
1292
+ status: 401;
1321
1293
  input: {
1322
1294
  param: {
1323
1295
  orgId: string;
@@ -1333,14 +1305,14 @@ export declare function management(options?: management.Options): import("hono/h
1333
1305
  } | {
1334
1306
  output: {
1335
1307
  error: {
1336
- code: "param_invalid";
1308
+ code: "upstream_error";
1337
1309
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1338
1310
  message: string;
1339
1311
  };
1340
1312
  requestId: string;
1341
1313
  };
1342
1314
  outputFormat: "json";
1343
- status: 400;
1315
+ status: 502;
1344
1316
  input: {
1345
1317
  param: {
1346
1318
  orgId: string;
@@ -1356,14 +1328,14 @@ export declare function management(options?: management.Options): import("hono/h
1356
1328
  } | {
1357
1329
  output: {
1358
1330
  error: {
1359
- code: "api_key_invalid" | "api_key_missing";
1331
+ code: "param_invalid";
1360
1332
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1361
1333
  message: string;
1362
1334
  };
1363
1335
  requestId: string;
1364
1336
  };
1365
1337
  outputFormat: "json";
1366
- status: 401;
1338
+ status: 400;
1367
1339
  input: {
1368
1340
  param: {
1369
1341
  orgId: string;
@@ -1379,14 +1351,14 @@ export declare function management(options?: management.Options): import("hono/h
1379
1351
  } | {
1380
1352
  output: {
1381
1353
  error: {
1382
- code: "forbidden";
1354
+ code: "body_invalid";
1383
1355
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1384
1356
  message: string;
1385
1357
  };
1386
1358
  requestId: string;
1387
1359
  };
1388
1360
  outputFormat: "json";
1389
- status: 403;
1361
+ status: 400;
1390
1362
  input: {
1391
1363
  param: {
1392
1364
  orgId: string;
@@ -1402,7 +1374,7 @@ export declare function management(options?: management.Options): import("hono/h
1402
1374
  } | {
1403
1375
  output: {
1404
1376
  error: {
1405
- code: "scope_not_issuable";
1377
+ code: "forbidden";
1406
1378
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1407
1379
  message: string;
1408
1380
  };
@@ -1471,14 +1443,14 @@ export declare function management(options?: management.Options): import("hono/h
1471
1443
  } | {
1472
1444
  output: {
1473
1445
  error: {
1474
- code: "upstream_error";
1446
+ code: "scope_not_issuable";
1475
1447
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1476
1448
  message: string;
1477
1449
  };
1478
1450
  requestId: string;
1479
1451
  };
1480
1452
  outputFormat: "json";
1481
- status: 502;
1453
+ status: 403;
1482
1454
  input: {
1483
1455
  param: {
1484
1456
  orgId: string;
@@ -1491,24 +1463,19 @@ export declare function management(options?: management.Options): import("hono/h
1491
1463
  scopes?: string[] | undefined;
1492
1464
  };
1493
1465
  };
1494
- };
1495
- };
1496
- } & {
1497
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
1498
- $get: {
1466
+ } | {
1499
1467
  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
- }[];
1468
+ createdAt: string;
1469
+ createdBy?: string | undefined;
1470
+ environment: "production" | "sandbox";
1471
+ expiresAt?: string | undefined;
1472
+ id: string;
1473
+ name?: string | undefined;
1474
+ orgId: string;
1475
+ projectId?: string | undefined;
1476
+ scopes: string[];
1477
+ tokenLast4: string;
1478
+ token: string;
1512
1479
  };
1513
1480
  outputFormat: "json";
1514
1481
  status: 200;
@@ -1518,11 +1485,17 @@ export declare function management(options?: management.Options): import("hono/h
1518
1485
  projectId: string;
1519
1486
  };
1520
1487
  } & {
1521
- query?: {
1522
- environment?: string | string[];
1523
- } | undefined;
1488
+ json: {
1489
+ environment?: "production" | "sandbox" | undefined;
1490
+ name?: string | undefined;
1491
+ scopes?: string[] | undefined;
1492
+ };
1524
1493
  };
1525
- } | {
1494
+ };
1495
+ };
1496
+ } & {
1497
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
1498
+ $get: {
1526
1499
  output: {
1527
1500
  error: {
1528
1501
  code: "api_key_malformed";
@@ -1546,14 +1519,14 @@ export declare function management(options?: management.Options): import("hono/h
1546
1519
  } | {
1547
1520
  output: {
1548
1521
  error: {
1549
- code: "query_invalid";
1522
+ code: "api_key_invalid" | "api_key_missing";
1550
1523
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1551
1524
  message: string;
1552
1525
  };
1553
1526
  requestId: string;
1554
1527
  };
1555
1528
  outputFormat: "json";
1556
- status: 400;
1529
+ status: 401;
1557
1530
  input: {
1558
1531
  param: {
1559
1532
  orgId: string;
@@ -1567,14 +1540,14 @@ export declare function management(options?: management.Options): import("hono/h
1567
1540
  } | {
1568
1541
  output: {
1569
1542
  error: {
1570
- code: "param_invalid";
1543
+ code: "api_key_forbidden";
1571
1544
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1572
1545
  message: string;
1573
1546
  };
1574
1547
  requestId: string;
1575
1548
  };
1576
1549
  outputFormat: "json";
1577
- status: 400;
1550
+ status: 403;
1578
1551
  input: {
1579
1552
  param: {
1580
1553
  orgId: string;
@@ -1588,14 +1561,14 @@ export declare function management(options?: management.Options): import("hono/h
1588
1561
  } | {
1589
1562
  output: {
1590
1563
  error: {
1591
- code: "api_key_invalid" | "api_key_missing";
1564
+ code: "payment_required" | "rate_limit_exceeded";
1592
1565
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1593
1566
  message: string;
1594
1567
  };
1595
1568
  requestId: string;
1596
1569
  };
1597
1570
  outputFormat: "json";
1598
- status: 401;
1571
+ status: 429;
1599
1572
  input: {
1600
1573
  param: {
1601
1574
  orgId: string;
@@ -1609,14 +1582,14 @@ export declare function management(options?: management.Options): import("hono/h
1609
1582
  } | {
1610
1583
  output: {
1611
1584
  error: {
1612
- code: "api_key_forbidden";
1585
+ code: "query_invalid";
1613
1586
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1614
1587
  message: string;
1615
1588
  };
1616
1589
  requestId: string;
1617
1590
  };
1618
1591
  outputFormat: "json";
1619
- status: 403;
1592
+ status: 400;
1620
1593
  input: {
1621
1594
  param: {
1622
1595
  orgId: string;
@@ -1630,14 +1603,14 @@ export declare function management(options?: management.Options): import("hono/h
1630
1603
  } | {
1631
1604
  output: {
1632
1605
  error: {
1633
- code: "organization_not_found" | "project_not_found";
1606
+ code: "upstream_error";
1634
1607
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1635
1608
  message: string;
1636
1609
  };
1637
1610
  requestId: string;
1638
1611
  };
1639
1612
  outputFormat: "json";
1640
- status: 404;
1613
+ status: 502;
1641
1614
  input: {
1642
1615
  param: {
1643
1616
  orgId: string;
@@ -1651,14 +1624,14 @@ export declare function management(options?: management.Options): import("hono/h
1651
1624
  } | {
1652
1625
  output: {
1653
1626
  error: {
1654
- code: "api_keys_not_enabled";
1627
+ code: "param_invalid";
1655
1628
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1656
1629
  message: string;
1657
1630
  };
1658
1631
  requestId: string;
1659
1632
  };
1660
1633
  outputFormat: "json";
1661
- status: 404;
1634
+ status: 400;
1662
1635
  input: {
1663
1636
  param: {
1664
1637
  orgId: string;
@@ -1672,14 +1645,14 @@ export declare function management(options?: management.Options): import("hono/h
1672
1645
  } | {
1673
1646
  output: {
1674
1647
  error: {
1675
- code: "payment_required" | "rate_limit_exceeded";
1648
+ code: "organization_not_found" | "project_not_found";
1676
1649
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1677
1650
  message: string;
1678
1651
  };
1679
1652
  requestId: string;
1680
1653
  };
1681
1654
  outputFormat: "json";
1682
- status: 429;
1655
+ status: 404;
1683
1656
  input: {
1684
1657
  param: {
1685
1658
  orgId: string;
@@ -1693,14 +1666,14 @@ export declare function management(options?: management.Options): import("hono/h
1693
1666
  } | {
1694
1667
  output: {
1695
1668
  error: {
1696
- code: "upstream_error";
1669
+ code: "api_keys_not_enabled";
1697
1670
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1698
1671
  message: string;
1699
1672
  };
1700
1673
  requestId: string;
1701
1674
  };
1702
1675
  outputFormat: "json";
1703
- status: 502;
1676
+ status: 404;
1704
1677
  input: {
1705
1678
  param: {
1706
1679
  orgId: string;
@@ -1711,11 +1684,7 @@ export declare function management(options?: management.Options): import("hono/h
1711
1684
  environment?: string | string[];
1712
1685
  } | undefined;
1713
1686
  };
1714
- };
1715
- };
1716
- } & {
1717
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys": {
1718
- $get: {
1687
+ } | {
1719
1688
  output: {
1720
1689
  data: {
1721
1690
  createdAt: string;
@@ -1735,13 +1704,18 @@ export declare function management(options?: management.Options): import("hono/h
1735
1704
  input: {
1736
1705
  param: {
1737
1706
  orgId: string;
1707
+ projectId: string;
1738
1708
  };
1739
1709
  } & {
1740
1710
  query?: {
1741
1711
  environment?: string | string[];
1742
1712
  } | undefined;
1743
1713
  };
1744
- } | {
1714
+ };
1715
+ };
1716
+ } & {
1717
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys": {
1718
+ $get: {
1745
1719
  output: {
1746
1720
  error: {
1747
1721
  code: "api_key_malformed";
@@ -1764,14 +1738,14 @@ export declare function management(options?: management.Options): import("hono/h
1764
1738
  } | {
1765
1739
  output: {
1766
1740
  error: {
1767
- code: "query_invalid";
1741
+ code: "api_key_invalid" | "api_key_missing";
1768
1742
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1769
1743
  message: string;
1770
1744
  };
1771
1745
  requestId: string;
1772
1746
  };
1773
1747
  outputFormat: "json";
1774
- status: 400;
1748
+ status: 401;
1775
1749
  input: {
1776
1750
  param: {
1777
1751
  orgId: string;
@@ -1784,14 +1758,14 @@ export declare function management(options?: management.Options): import("hono/h
1784
1758
  } | {
1785
1759
  output: {
1786
1760
  error: {
1787
- code: "param_invalid";
1761
+ code: "api_key_forbidden";
1788
1762
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1789
1763
  message: string;
1790
1764
  };
1791
1765
  requestId: string;
1792
1766
  };
1793
1767
  outputFormat: "json";
1794
- status: 400;
1768
+ status: 403;
1795
1769
  input: {
1796
1770
  param: {
1797
1771
  orgId: string;
@@ -1804,14 +1778,14 @@ export declare function management(options?: management.Options): import("hono/h
1804
1778
  } | {
1805
1779
  output: {
1806
1780
  error: {
1807
- code: "api_key_invalid" | "api_key_missing";
1781
+ code: "payment_required" | "rate_limit_exceeded";
1808
1782
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1809
1783
  message: string;
1810
1784
  };
1811
1785
  requestId: string;
1812
1786
  };
1813
1787
  outputFormat: "json";
1814
- status: 401;
1788
+ status: 429;
1815
1789
  input: {
1816
1790
  param: {
1817
1791
  orgId: string;
@@ -1824,14 +1798,14 @@ export declare function management(options?: management.Options): import("hono/h
1824
1798
  } | {
1825
1799
  output: {
1826
1800
  error: {
1827
- code: "api_key_forbidden";
1801
+ code: "query_invalid";
1828
1802
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1829
1803
  message: string;
1830
1804
  };
1831
1805
  requestId: string;
1832
1806
  };
1833
1807
  outputFormat: "json";
1834
- status: 403;
1808
+ status: 400;
1835
1809
  input: {
1836
1810
  param: {
1837
1811
  orgId: string;
@@ -1844,14 +1818,14 @@ export declare function management(options?: management.Options): import("hono/h
1844
1818
  } | {
1845
1819
  output: {
1846
1820
  error: {
1847
- code: "organization_not_found";
1821
+ code: "upstream_error";
1848
1822
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1849
1823
  message: string;
1850
1824
  };
1851
1825
  requestId: string;
1852
1826
  };
1853
1827
  outputFormat: "json";
1854
- status: 404;
1828
+ status: 502;
1855
1829
  input: {
1856
1830
  param: {
1857
1831
  orgId: string;
@@ -1864,7 +1838,7 @@ export declare function management(options?: management.Options): import("hono/h
1864
1838
  } | {
1865
1839
  output: {
1866
1840
  error: {
1867
- code: "api_keys_not_enabled";
1841
+ code: "organization_not_found";
1868
1842
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1869
1843
  message: string;
1870
1844
  };
@@ -1884,14 +1858,14 @@ export declare function management(options?: management.Options): import("hono/h
1884
1858
  } | {
1885
1859
  output: {
1886
1860
  error: {
1887
- code: "payment_required" | "rate_limit_exceeded";
1861
+ code: "param_invalid";
1888
1862
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1889
1863
  message: string;
1890
1864
  };
1891
1865
  requestId: string;
1892
1866
  };
1893
1867
  outputFormat: "json";
1894
- status: 429;
1868
+ status: 400;
1895
1869
  input: {
1896
1870
  param: {
1897
1871
  orgId: string;
@@ -1904,14 +1878,40 @@ export declare function management(options?: management.Options): import("hono/h
1904
1878
  } | {
1905
1879
  output: {
1906
1880
  error: {
1907
- code: "upstream_error";
1881
+ code: "api_keys_not_enabled";
1908
1882
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1909
1883
  message: string;
1910
1884
  };
1911
1885
  requestId: string;
1912
1886
  };
1913
1887
  outputFormat: "json";
1914
- status: 502;
1888
+ status: 404;
1889
+ input: {
1890
+ param: {
1891
+ orgId: string;
1892
+ };
1893
+ } & {
1894
+ query?: {
1895
+ environment?: string | string[];
1896
+ } | undefined;
1897
+ };
1898
+ } | {
1899
+ output: {
1900
+ data: {
1901
+ createdAt: string;
1902
+ createdBy?: string | undefined;
1903
+ environment: "production" | "sandbox";
1904
+ expiresAt?: string | undefined;
1905
+ id: string;
1906
+ name?: string | undefined;
1907
+ orgId: string;
1908
+ projectId?: string | undefined;
1909
+ scopes: string[];
1910
+ tokenLast4: string;
1911
+ }[];
1912
+ };
1913
+ outputFormat: "json";
1914
+ status: 200;
1915
1915
  input: {
1916
1916
  param: {
1917
1917
  orgId: string;
@@ -1927,10 +1927,15 @@ export declare function management(options?: management.Options): import("hono/h
1927
1927
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
1928
1928
  $delete: {
1929
1929
  output: {
1930
- id: string;
1930
+ error: {
1931
+ code: "api_key_malformed";
1932
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1933
+ message: string;
1934
+ };
1935
+ requestId: string;
1931
1936
  };
1932
1937
  outputFormat: "json";
1933
- status: 200;
1938
+ status: 400;
1934
1939
  input: {
1935
1940
  param: {
1936
1941
  keyId: string;
@@ -1941,14 +1946,14 @@ export declare function management(options?: management.Options): import("hono/h
1941
1946
  } | {
1942
1947
  output: {
1943
1948
  error: {
1944
- code: "api_key_malformed";
1949
+ code: "api_key_invalid" | "api_key_missing";
1945
1950
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1946
1951
  message: string;
1947
1952
  };
1948
1953
  requestId: string;
1949
1954
  };
1950
1955
  outputFormat: "json";
1951
- status: 400;
1956
+ status: 401;
1952
1957
  input: {
1953
1958
  param: {
1954
1959
  keyId: string;
@@ -1959,14 +1964,14 @@ export declare function management(options?: management.Options): import("hono/h
1959
1964
  } | {
1960
1965
  output: {
1961
1966
  error: {
1962
- code: "param_invalid";
1967
+ code: "api_key_forbidden";
1963
1968
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1964
1969
  message: string;
1965
1970
  };
1966
1971
  requestId: string;
1967
1972
  };
1968
1973
  outputFormat: "json";
1969
- status: 400;
1974
+ status: 403;
1970
1975
  input: {
1971
1976
  param: {
1972
1977
  keyId: string;
@@ -1977,14 +1982,14 @@ export declare function management(options?: management.Options): import("hono/h
1977
1982
  } | {
1978
1983
  output: {
1979
1984
  error: {
1980
- code: "api_key_invalid" | "api_key_missing";
1985
+ code: "payment_required" | "rate_limit_exceeded";
1981
1986
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1982
1987
  message: string;
1983
1988
  };
1984
1989
  requestId: string;
1985
1990
  };
1986
1991
  outputFormat: "json";
1987
- status: 401;
1992
+ status: 429;
1988
1993
  input: {
1989
1994
  param: {
1990
1995
  keyId: string;
@@ -1995,14 +2000,14 @@ export declare function management(options?: management.Options): import("hono/h
1995
2000
  } | {
1996
2001
  output: {
1997
2002
  error: {
1998
- code: "api_key_forbidden";
2003
+ code: "upstream_error";
1999
2004
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2000
2005
  message: string;
2001
2006
  };
2002
2007
  requestId: string;
2003
2008
  };
2004
2009
  outputFormat: "json";
2005
- status: 403;
2010
+ status: 502;
2006
2011
  input: {
2007
2012
  param: {
2008
2013
  keyId: string;
@@ -2013,14 +2018,14 @@ export declare function management(options?: management.Options): import("hono/h
2013
2018
  } | {
2014
2019
  output: {
2015
2020
  error: {
2016
- code: "organization_not_found" | "project_not_found";
2021
+ code: "param_invalid";
2017
2022
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2018
2023
  message: string;
2019
2024
  };
2020
2025
  requestId: string;
2021
2026
  };
2022
2027
  outputFormat: "json";
2023
- status: 404;
2028
+ status: 400;
2024
2029
  input: {
2025
2030
  param: {
2026
2031
  keyId: string;
@@ -2031,7 +2036,7 @@ export declare function management(options?: management.Options): import("hono/h
2031
2036
  } | {
2032
2037
  output: {
2033
2038
  error: {
2034
- code: "api_keys_not_enabled";
2039
+ code: "organization_not_found" | "project_not_found";
2035
2040
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2036
2041
  message: string;
2037
2042
  };
@@ -2049,7 +2054,7 @@ export declare function management(options?: management.Options): import("hono/h
2049
2054
  } | {
2050
2055
  output: {
2051
2056
  error: {
2052
- code: "api_key_not_found";
2057
+ code: "api_keys_not_enabled";
2053
2058
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2054
2059
  message: string;
2055
2060
  };
@@ -2067,14 +2072,14 @@ export declare function management(options?: management.Options): import("hono/h
2067
2072
  } | {
2068
2073
  output: {
2069
2074
  error: {
2070
- code: "payment_required" | "rate_limit_exceeded";
2075
+ code: "api_key_not_found";
2071
2076
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2072
2077
  message: string;
2073
2078
  };
2074
2079
  requestId: string;
2075
2080
  };
2076
2081
  outputFormat: "json";
2077
- status: 429;
2082
+ status: 404;
2078
2083
  input: {
2079
2084
  param: {
2080
2085
  keyId: string;
@@ -2084,15 +2089,10 @@ export declare function management(options?: management.Options): import("hono/h
2084
2089
  };
2085
2090
  } | {
2086
2091
  output: {
2087
- error: {
2088
- code: "upstream_error";
2089
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2090
- message: string;
2091
- };
2092
- requestId: string;
2092
+ id: string;
2093
2093
  };
2094
2094
  outputFormat: "json";
2095
- status: 502;
2095
+ status: 200;
2096
2096
  input: {
2097
2097
  param: {
2098
2098
  keyId: string;
@@ -2105,19 +2105,6 @@ export declare function management(options?: management.Options): import("hono/h
2105
2105
  }, "/"> | import("hono/types").MergeSchemaPath<{
2106
2106
  "/v1/orgs": {
2107
2107
  $get: {
2108
- output: {
2109
- data: {
2110
- createdAt: string;
2111
- id: string;
2112
- name: string;
2113
- role?: "admin" | "member" | "owner" | undefined;
2114
- updatedAt: string;
2115
- }[];
2116
- };
2117
- outputFormat: "json";
2118
- status: 200;
2119
- input: {};
2120
- } | {
2121
2108
  output: {
2122
2109
  error: {
2123
2110
  code: "api_key_malformed";
@@ -2177,26 +2164,24 @@ export declare function management(options?: management.Options): import("hono/h
2177
2164
  outputFormat: "json";
2178
2165
  status: 502;
2179
2166
  input: {};
2167
+ } | {
2168
+ output: {
2169
+ data: {
2170
+ createdAt: string;
2171
+ id: string;
2172
+ name: string;
2173
+ role?: "admin" | "member" | "owner" | undefined;
2174
+ updatedAt: string;
2175
+ }[];
2176
+ };
2177
+ outputFormat: "json";
2178
+ status: 200;
2179
+ input: {};
2180
2180
  };
2181
2181
  };
2182
2182
  } & {
2183
2183
  "/v1/orgs": {
2184
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
- } | {
2200
2185
  output: {
2201
2186
  error: {
2202
2187
  code: "api_key_malformed";
@@ -2215,14 +2200,14 @@ export declare function management(options?: management.Options): import("hono/h
2215
2200
  } | {
2216
2201
  output: {
2217
2202
  error: {
2218
- code: "body_invalid";
2203
+ code: "api_key_invalid" | "api_key_missing";
2219
2204
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2220
2205
  message: string;
2221
2206
  };
2222
2207
  requestId: string;
2223
2208
  };
2224
2209
  outputFormat: "json";
2225
- status: 400;
2210
+ status: 401;
2226
2211
  input: {
2227
2212
  json: {
2228
2213
  name: string;
@@ -2231,14 +2216,14 @@ export declare function management(options?: management.Options): import("hono/h
2231
2216
  } | {
2232
2217
  output: {
2233
2218
  error: {
2234
- code: "api_key_invalid" | "api_key_missing";
2219
+ code: "upstream_error";
2235
2220
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2236
2221
  message: string;
2237
2222
  };
2238
2223
  requestId: string;
2239
2224
  };
2240
2225
  outputFormat: "json";
2241
- status: 401;
2226
+ status: 502;
2242
2227
  input: {
2243
2228
  json: {
2244
2229
  name: string;
@@ -2247,14 +2232,14 @@ export declare function management(options?: management.Options): import("hono/h
2247
2232
  } | {
2248
2233
  output: {
2249
2234
  error: {
2250
- code: "forbidden";
2235
+ code: "body_invalid";
2251
2236
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2252
2237
  message: string;
2253
2238
  };
2254
2239
  requestId: string;
2255
2240
  };
2256
2241
  outputFormat: "json";
2257
- status: 403;
2242
+ status: 400;
2258
2243
  input: {
2259
2244
  json: {
2260
2245
  name: string;
@@ -2263,24 +2248,20 @@ export declare function management(options?: management.Options): import("hono/h
2263
2248
  } | {
2264
2249
  output: {
2265
2250
  error: {
2266
- code: "upstream_error";
2251
+ code: "forbidden";
2267
2252
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2268
2253
  message: string;
2269
2254
  };
2270
2255
  requestId: string;
2271
2256
  };
2272
2257
  outputFormat: "json";
2273
- status: 502;
2258
+ status: 403;
2274
2259
  input: {
2275
2260
  json: {
2276
2261
  name: string;
2277
2262
  };
2278
2263
  };
2279
- };
2280
- };
2281
- } & {
2282
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}": {
2283
- $get: {
2264
+ } | {
2284
2265
  output: {
2285
2266
  createdAt: string;
2286
2267
  id: string;
@@ -2291,11 +2272,15 @@ export declare function management(options?: management.Options): import("hono/h
2291
2272
  outputFormat: "json";
2292
2273
  status: 200;
2293
2274
  input: {
2294
- param: {
2295
- orgId: string;
2275
+ json: {
2276
+ name: string;
2296
2277
  };
2297
2278
  };
2298
- } | {
2279
+ };
2280
+ };
2281
+ } & {
2282
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}": {
2283
+ $get: {
2299
2284
  output: {
2300
2285
  error: {
2301
2286
  code: "api_key_malformed";
@@ -2314,14 +2299,14 @@ export declare function management(options?: management.Options): import("hono/h
2314
2299
  } | {
2315
2300
  output: {
2316
2301
  error: {
2317
- code: "param_invalid";
2302
+ code: "api_key_invalid" | "api_key_missing";
2318
2303
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2319
2304
  message: string;
2320
2305
  };
2321
2306
  requestId: string;
2322
2307
  };
2323
2308
  outputFormat: "json";
2324
- status: 400;
2309
+ status: 401;
2325
2310
  input: {
2326
2311
  param: {
2327
2312
  orgId: string;
@@ -2330,14 +2315,14 @@ export declare function management(options?: management.Options): import("hono/h
2330
2315
  } | {
2331
2316
  output: {
2332
2317
  error: {
2333
- code: "api_key_invalid" | "api_key_missing";
2318
+ code: "api_key_forbidden";
2334
2319
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2335
2320
  message: string;
2336
2321
  };
2337
2322
  requestId: string;
2338
2323
  };
2339
2324
  outputFormat: "json";
2340
- status: 401;
2325
+ status: 403;
2341
2326
  input: {
2342
2327
  param: {
2343
2328
  orgId: string;
@@ -2346,14 +2331,14 @@ export declare function management(options?: management.Options): import("hono/h
2346
2331
  } | {
2347
2332
  output: {
2348
2333
  error: {
2349
- code: "api_key_forbidden";
2334
+ code: "payment_required" | "rate_limit_exceeded";
2350
2335
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2351
2336
  message: string;
2352
2337
  };
2353
2338
  requestId: string;
2354
2339
  };
2355
2340
  outputFormat: "json";
2356
- status: 403;
2341
+ status: 429;
2357
2342
  input: {
2358
2343
  param: {
2359
2344
  orgId: string;
@@ -2378,24 +2363,20 @@ export declare function management(options?: management.Options): import("hono/h
2378
2363
  } | {
2379
2364
  output: {
2380
2365
  error: {
2381
- code: "payment_required" | "rate_limit_exceeded";
2366
+ code: "param_invalid";
2382
2367
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2383
2368
  message: string;
2384
2369
  };
2385
2370
  requestId: string;
2386
2371
  };
2387
2372
  outputFormat: "json";
2388
- status: 429;
2373
+ status: 400;
2389
2374
  input: {
2390
2375
  param: {
2391
2376
  orgId: string;
2392
2377
  };
2393
2378
  };
2394
- };
2395
- };
2396
- } & {
2397
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}": {
2398
- $patch: {
2379
+ } | {
2399
2380
  output: {
2400
2381
  createdAt: string;
2401
2382
  id: string;
@@ -2409,12 +2390,12 @@ export declare function management(options?: management.Options): import("hono/h
2409
2390
  param: {
2410
2391
  orgId: string;
2411
2392
  };
2412
- } & {
2413
- json: {
2414
- name: string;
2415
- };
2416
2393
  };
2417
- } | {
2394
+ };
2395
+ };
2396
+ } & {
2397
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}": {
2398
+ $patch: {
2418
2399
  output: {
2419
2400
  error: {
2420
2401
  code: "api_key_malformed";
@@ -2437,14 +2418,14 @@ export declare function management(options?: management.Options): import("hono/h
2437
2418
  } | {
2438
2419
  output: {
2439
2420
  error: {
2440
- code: "body_invalid";
2421
+ code: "api_key_invalid" | "api_key_missing";
2441
2422
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2442
2423
  message: string;
2443
2424
  };
2444
2425
  requestId: string;
2445
2426
  };
2446
2427
  outputFormat: "json";
2447
- status: 400;
2428
+ status: 401;
2448
2429
  input: {
2449
2430
  param: {
2450
2431
  orgId: string;
@@ -2457,14 +2438,14 @@ export declare function management(options?: management.Options): import("hono/h
2457
2438
  } | {
2458
2439
  output: {
2459
2440
  error: {
2460
- code: "param_invalid";
2441
+ code: "api_key_forbidden";
2461
2442
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2462
2443
  message: string;
2463
2444
  };
2464
2445
  requestId: string;
2465
2446
  };
2466
2447
  outputFormat: "json";
2467
- status: 400;
2448
+ status: 403;
2468
2449
  input: {
2469
2450
  param: {
2470
2451
  orgId: string;
@@ -2477,14 +2458,14 @@ export declare function management(options?: management.Options): import("hono/h
2477
2458
  } | {
2478
2459
  output: {
2479
2460
  error: {
2480
- code: "api_key_invalid" | "api_key_missing";
2461
+ code: "payment_required" | "rate_limit_exceeded";
2481
2462
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2482
2463
  message: string;
2483
2464
  };
2484
2465
  requestId: string;
2485
2466
  };
2486
2467
  outputFormat: "json";
2487
- status: 401;
2468
+ status: 429;
2488
2469
  input: {
2489
2470
  param: {
2490
2471
  orgId: string;
@@ -2497,14 +2478,14 @@ export declare function management(options?: management.Options): import("hono/h
2497
2478
  } | {
2498
2479
  output: {
2499
2480
  error: {
2500
- code: "api_key_forbidden";
2481
+ code: "upstream_error";
2501
2482
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2502
2483
  message: string;
2503
2484
  };
2504
2485
  requestId: string;
2505
2486
  };
2506
2487
  outputFormat: "json";
2507
- status: 403;
2488
+ status: 502;
2508
2489
  input: {
2509
2490
  param: {
2510
2491
  orgId: string;
@@ -2537,14 +2518,14 @@ export declare function management(options?: management.Options): import("hono/h
2537
2518
  } | {
2538
2519
  output: {
2539
2520
  error: {
2540
- code: "payment_required" | "rate_limit_exceeded";
2521
+ code: "param_invalid";
2541
2522
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2542
2523
  message: string;
2543
2524
  };
2544
2525
  requestId: string;
2545
2526
  };
2546
2527
  outputFormat: "json";
2547
- status: 429;
2528
+ status: 400;
2548
2529
  input: {
2549
2530
  param: {
2550
2531
  orgId: string;
@@ -2557,14 +2538,14 @@ export declare function management(options?: management.Options): import("hono/h
2557
2538
  } | {
2558
2539
  output: {
2559
2540
  error: {
2560
- code: "upstream_error";
2541
+ code: "body_invalid";
2561
2542
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2562
2543
  message: string;
2563
2544
  };
2564
2545
  requestId: string;
2565
2546
  };
2566
2547
  outputFormat: "json";
2567
- status: 502;
2548
+ status: 400;
2568
2549
  input: {
2569
2550
  param: {
2570
2551
  orgId: string;
@@ -2574,13 +2555,13 @@ export declare function management(options?: management.Options): import("hono/h
2574
2555
  name: string;
2575
2556
  };
2576
2557
  };
2577
- };
2578
- };
2579
- } & {
2580
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}": {
2581
- $delete: {
2558
+ } | {
2582
2559
  output: {
2560
+ createdAt: string;
2583
2561
  id: string;
2562
+ name: string;
2563
+ role?: "admin" | "member" | "owner" | undefined;
2564
+ updatedAt: string;
2584
2565
  };
2585
2566
  outputFormat: "json";
2586
2567
  status: 200;
@@ -2588,8 +2569,16 @@ export declare function management(options?: management.Options): import("hono/h
2588
2569
  param: {
2589
2570
  orgId: string;
2590
2571
  };
2572
+ } & {
2573
+ json: {
2574
+ name: string;
2575
+ };
2591
2576
  };
2592
- } | {
2577
+ };
2578
+ };
2579
+ } & {
2580
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}": {
2581
+ $delete: {
2593
2582
  output: {
2594
2583
  error: {
2595
2584
  code: "api_key_malformed";
@@ -2608,14 +2597,14 @@ export declare function management(options?: management.Options): import("hono/h
2608
2597
  } | {
2609
2598
  output: {
2610
2599
  error: {
2611
- code: "param_invalid";
2600
+ code: "api_key_invalid" | "api_key_missing";
2612
2601
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2613
2602
  message: string;
2614
2603
  };
2615
2604
  requestId: string;
2616
2605
  };
2617
2606
  outputFormat: "json";
2618
- status: 400;
2607
+ status: 401;
2619
2608
  input: {
2620
2609
  param: {
2621
2610
  orgId: string;
@@ -2624,14 +2613,14 @@ export declare function management(options?: management.Options): import("hono/h
2624
2613
  } | {
2625
2614
  output: {
2626
2615
  error: {
2627
- code: "api_key_invalid" | "api_key_missing";
2616
+ code: "api_key_forbidden";
2628
2617
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2629
2618
  message: string;
2630
2619
  };
2631
2620
  requestId: string;
2632
2621
  };
2633
2622
  outputFormat: "json";
2634
- status: 401;
2623
+ status: 403;
2635
2624
  input: {
2636
2625
  param: {
2637
2626
  orgId: string;
@@ -2640,14 +2629,14 @@ export declare function management(options?: management.Options): import("hono/h
2640
2629
  } | {
2641
2630
  output: {
2642
2631
  error: {
2643
- code: "api_key_forbidden";
2632
+ code: "payment_required" | "rate_limit_exceeded";
2644
2633
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2645
2634
  message: string;
2646
2635
  };
2647
2636
  requestId: string;
2648
2637
  };
2649
2638
  outputFormat: "json";
2650
- status: 403;
2639
+ status: 429;
2651
2640
  input: {
2652
2641
  param: {
2653
2642
  orgId: string;
@@ -2656,14 +2645,14 @@ export declare function management(options?: management.Options): import("hono/h
2656
2645
  } | {
2657
2646
  output: {
2658
2647
  error: {
2659
- code: "organization_not_found";
2648
+ code: "upstream_error";
2660
2649
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2661
2650
  message: string;
2662
2651
  };
2663
2652
  requestId: string;
2664
2653
  };
2665
2654
  outputFormat: "json";
2666
- status: 404;
2655
+ status: 502;
2667
2656
  input: {
2668
2657
  param: {
2669
2658
  orgId: string;
@@ -2672,14 +2661,14 @@ export declare function management(options?: management.Options): import("hono/h
2672
2661
  } | {
2673
2662
  output: {
2674
2663
  error: {
2675
- code: "payment_required" | "rate_limit_exceeded";
2664
+ code: "organization_not_found";
2676
2665
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2677
2666
  message: string;
2678
2667
  };
2679
2668
  requestId: string;
2680
2669
  };
2681
2670
  outputFormat: "json";
2682
- status: 429;
2671
+ status: 404;
2683
2672
  input: {
2684
2673
  param: {
2685
2674
  orgId: string;
@@ -2688,33 +2677,22 @@ export declare function management(options?: management.Options): import("hono/h
2688
2677
  } | {
2689
2678
  output: {
2690
2679
  error: {
2691
- code: "upstream_error";
2680
+ code: "param_invalid";
2692
2681
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2693
2682
  message: string;
2694
2683
  };
2695
2684
  requestId: string;
2696
2685
  };
2697
2686
  outputFormat: "json";
2698
- status: 502;
2687
+ status: 400;
2699
2688
  input: {
2700
2689
  param: {
2701
2690
  orgId: string;
2702
2691
  };
2703
2692
  };
2704
- };
2705
- };
2706
- }, "/"> | import("hono/types").MergeSchemaPath<{
2707
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects": {
2708
- $get: {
2693
+ } | {
2709
2694
  output: {
2710
- data: {
2711
- createdAt: string;
2712
- environments: ("production" | "sandbox")[];
2713
- id: string;
2714
- name: string;
2715
- orgId: string;
2716
- updatedAt: string;
2717
- }[];
2695
+ id: string;
2718
2696
  };
2719
2697
  outputFormat: "json";
2720
2698
  status: 200;
@@ -2723,7 +2701,11 @@ export declare function management(options?: management.Options): import("hono/h
2723
2701
  orgId: string;
2724
2702
  };
2725
2703
  };
2726
- } | {
2704
+ };
2705
+ };
2706
+ }, "/"> | import("hono/types").MergeSchemaPath<{
2707
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects": {
2708
+ $get: {
2727
2709
  output: {
2728
2710
  error: {
2729
2711
  code: "api_key_malformed";
@@ -2742,14 +2724,14 @@ export declare function management(options?: management.Options): import("hono/h
2742
2724
  } | {
2743
2725
  output: {
2744
2726
  error: {
2745
- code: "param_invalid";
2727
+ code: "api_key_invalid" | "api_key_missing";
2746
2728
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2747
2729
  message: string;
2748
2730
  };
2749
2731
  requestId: string;
2750
2732
  };
2751
2733
  outputFormat: "json";
2752
- status: 400;
2734
+ status: 401;
2753
2735
  input: {
2754
2736
  param: {
2755
2737
  orgId: string;
@@ -2758,14 +2740,14 @@ export declare function management(options?: management.Options): import("hono/h
2758
2740
  } | {
2759
2741
  output: {
2760
2742
  error: {
2761
- code: "api_key_invalid" | "api_key_missing";
2743
+ code: "api_key_forbidden";
2762
2744
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2763
2745
  message: string;
2764
2746
  };
2765
2747
  requestId: string;
2766
2748
  };
2767
2749
  outputFormat: "json";
2768
- status: 401;
2750
+ status: 403;
2769
2751
  input: {
2770
2752
  param: {
2771
2753
  orgId: string;
@@ -2774,14 +2756,14 @@ export declare function management(options?: management.Options): import("hono/h
2774
2756
  } | {
2775
2757
  output: {
2776
2758
  error: {
2777
- code: "api_key_forbidden";
2759
+ code: "payment_required" | "rate_limit_exceeded";
2778
2760
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2779
2761
  message: string;
2780
2762
  };
2781
2763
  requestId: string;
2782
2764
  };
2783
2765
  outputFormat: "json";
2784
- status: 403;
2766
+ status: 429;
2785
2767
  input: {
2786
2768
  param: {
2787
2769
  orgId: string;
@@ -2790,14 +2772,14 @@ export declare function management(options?: management.Options): import("hono/h
2790
2772
  } | {
2791
2773
  output: {
2792
2774
  error: {
2793
- code: "organization_not_found";
2775
+ code: "upstream_error";
2794
2776
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2795
2777
  message: string;
2796
2778
  };
2797
2779
  requestId: string;
2798
2780
  };
2799
2781
  outputFormat: "json";
2800
- status: 404;
2782
+ status: 502;
2801
2783
  input: {
2802
2784
  param: {
2803
2785
  orgId: string;
@@ -2806,14 +2788,14 @@ export declare function management(options?: management.Options): import("hono/h
2806
2788
  } | {
2807
2789
  output: {
2808
2790
  error: {
2809
- code: "payment_required" | "rate_limit_exceeded";
2791
+ code: "organization_not_found";
2810
2792
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2811
2793
  message: string;
2812
2794
  };
2813
2795
  requestId: string;
2814
2796
  };
2815
2797
  outputFormat: "json";
2816
- status: 429;
2798
+ status: 404;
2817
2799
  input: {
2818
2800
  param: {
2819
2801
  orgId: string;
@@ -2822,31 +2804,29 @@ export declare function management(options?: management.Options): import("hono/h
2822
2804
  } | {
2823
2805
  output: {
2824
2806
  error: {
2825
- code: "upstream_error";
2807
+ code: "param_invalid";
2826
2808
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2827
2809
  message: string;
2828
2810
  };
2829
2811
  requestId: string;
2830
2812
  };
2831
2813
  outputFormat: "json";
2832
- status: 502;
2814
+ status: 400;
2833
2815
  input: {
2834
2816
  param: {
2835
2817
  orgId: string;
2836
2818
  };
2837
2819
  };
2838
- };
2839
- };
2840
- } & {
2841
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects": {
2842
- $post: {
2820
+ } | {
2843
2821
  output: {
2844
- createdAt: string;
2845
- environments: ("production" | "sandbox")[];
2846
- id: string;
2847
- name: string;
2848
- orgId: string;
2849
- updatedAt: string;
2822
+ data: {
2823
+ createdAt: string;
2824
+ environments: ("production" | "sandbox")[];
2825
+ id: string;
2826
+ name: string;
2827
+ orgId: string;
2828
+ updatedAt: string;
2829
+ }[];
2850
2830
  };
2851
2831
  outputFormat: "json";
2852
2832
  status: 200;
@@ -2854,12 +2834,12 @@ export declare function management(options?: management.Options): import("hono/h
2854
2834
  param: {
2855
2835
  orgId: string;
2856
2836
  };
2857
- } & {
2858
- json: {
2859
- name: string;
2860
- };
2861
2837
  };
2862
- } | {
2838
+ };
2839
+ };
2840
+ } & {
2841
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects": {
2842
+ $post: {
2863
2843
  output: {
2864
2844
  error: {
2865
2845
  code: "api_key_malformed";
@@ -2882,14 +2862,14 @@ export declare function management(options?: management.Options): import("hono/h
2882
2862
  } | {
2883
2863
  output: {
2884
2864
  error: {
2885
- code: "body_invalid";
2865
+ code: "api_key_invalid" | "api_key_missing";
2886
2866
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2887
2867
  message: string;
2888
2868
  };
2889
2869
  requestId: string;
2890
2870
  };
2891
2871
  outputFormat: "json";
2892
- status: 400;
2872
+ status: 401;
2893
2873
  input: {
2894
2874
  param: {
2895
2875
  orgId: string;
@@ -2902,14 +2882,14 @@ export declare function management(options?: management.Options): import("hono/h
2902
2882
  } | {
2903
2883
  output: {
2904
2884
  error: {
2905
- code: "param_invalid";
2885
+ code: "api_key_forbidden";
2906
2886
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2907
2887
  message: string;
2908
2888
  };
2909
2889
  requestId: string;
2910
2890
  };
2911
2891
  outputFormat: "json";
2912
- status: 400;
2892
+ status: 403;
2913
2893
  input: {
2914
2894
  param: {
2915
2895
  orgId: string;
@@ -2922,14 +2902,14 @@ export declare function management(options?: management.Options): import("hono/h
2922
2902
  } | {
2923
2903
  output: {
2924
2904
  error: {
2925
- code: "api_key_invalid" | "api_key_missing";
2905
+ code: "payment_required" | "rate_limit_exceeded";
2926
2906
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2927
2907
  message: string;
2928
2908
  };
2929
2909
  requestId: string;
2930
2910
  };
2931
2911
  outputFormat: "json";
2932
- status: 401;
2912
+ status: 429;
2933
2913
  input: {
2934
2914
  param: {
2935
2915
  orgId: string;
@@ -2942,14 +2922,14 @@ export declare function management(options?: management.Options): import("hono/h
2942
2922
  } | {
2943
2923
  output: {
2944
2924
  error: {
2945
- code: "api_key_forbidden";
2925
+ code: "upstream_error";
2946
2926
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2947
2927
  message: string;
2948
2928
  };
2949
2929
  requestId: string;
2950
2930
  };
2951
2931
  outputFormat: "json";
2952
- status: 403;
2932
+ status: 502;
2953
2933
  input: {
2954
2934
  param: {
2955
2935
  orgId: string;
@@ -2982,14 +2962,14 @@ export declare function management(options?: management.Options): import("hono/h
2982
2962
  } | {
2983
2963
  output: {
2984
2964
  error: {
2985
- code: "payment_required" | "rate_limit_exceeded";
2965
+ code: "param_invalid";
2986
2966
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2987
2967
  message: string;
2988
2968
  };
2989
2969
  requestId: string;
2990
2970
  };
2991
2971
  outputFormat: "json";
2992
- status: 429;
2972
+ status: 400;
2993
2973
  input: {
2994
2974
  param: {
2995
2975
  orgId: string;
@@ -3002,14 +2982,14 @@ export declare function management(options?: management.Options): import("hono/h
3002
2982
  } | {
3003
2983
  output: {
3004
2984
  error: {
3005
- code: "upstream_error";
2985
+ code: "body_invalid";
3006
2986
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3007
2987
  message: string;
3008
2988
  };
3009
2989
  requestId: string;
3010
2990
  };
3011
2991
  outputFormat: "json";
3012
- status: 502;
2992
+ status: 400;
3013
2993
  input: {
3014
2994
  param: {
3015
2995
  orgId: string;
@@ -3019,11 +2999,7 @@ export declare function management(options?: management.Options): import("hono/h
3019
2999
  name: string;
3020
3000
  };
3021
3001
  };
3022
- };
3023
- };
3024
- } & {
3025
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
3026
- $get: {
3002
+ } | {
3027
3003
  output: {
3028
3004
  createdAt: string;
3029
3005
  environments: ("production" | "sandbox")[];
@@ -3037,10 +3013,17 @@ export declare function management(options?: management.Options): import("hono/h
3037
3013
  input: {
3038
3014
  param: {
3039
3015
  orgId: string;
3040
- projectId: string;
3016
+ };
3017
+ } & {
3018
+ json: {
3019
+ name: string;
3041
3020
  };
3042
3021
  };
3043
- } | {
3022
+ };
3023
+ };
3024
+ } & {
3025
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
3026
+ $get: {
3044
3027
  output: {
3045
3028
  error: {
3046
3029
  code: "api_key_malformed";
@@ -3060,14 +3043,14 @@ export declare function management(options?: management.Options): import("hono/h
3060
3043
  } | {
3061
3044
  output: {
3062
3045
  error: {
3063
- code: "param_invalid";
3046
+ code: "api_key_invalid" | "api_key_missing";
3064
3047
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3065
3048
  message: string;
3066
3049
  };
3067
3050
  requestId: string;
3068
3051
  };
3069
3052
  outputFormat: "json";
3070
- status: 400;
3053
+ status: 401;
3071
3054
  input: {
3072
3055
  param: {
3073
3056
  orgId: string;
@@ -3077,14 +3060,14 @@ export declare function management(options?: management.Options): import("hono/h
3077
3060
  } | {
3078
3061
  output: {
3079
3062
  error: {
3080
- code: "api_key_invalid" | "api_key_missing";
3063
+ code: "api_key_forbidden";
3081
3064
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3082
3065
  message: string;
3083
3066
  };
3084
3067
  requestId: string;
3085
3068
  };
3086
3069
  outputFormat: "json";
3087
- status: 401;
3070
+ status: 403;
3088
3071
  input: {
3089
3072
  param: {
3090
3073
  orgId: string;
@@ -3094,14 +3077,14 @@ export declare function management(options?: management.Options): import("hono/h
3094
3077
  } | {
3095
3078
  output: {
3096
3079
  error: {
3097
- code: "api_key_forbidden";
3080
+ code: "payment_required" | "rate_limit_exceeded";
3098
3081
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3099
3082
  message: string;
3100
3083
  };
3101
3084
  requestId: string;
3102
3085
  };
3103
3086
  outputFormat: "json";
3104
- status: 403;
3087
+ status: 429;
3105
3088
  input: {
3106
3089
  param: {
3107
3090
  orgId: string;
@@ -3111,14 +3094,14 @@ export declare function management(options?: management.Options): import("hono/h
3111
3094
  } | {
3112
3095
  output: {
3113
3096
  error: {
3114
- code: "organization_not_found" | "project_not_found";
3097
+ code: "param_invalid";
3115
3098
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3116
3099
  message: string;
3117
3100
  };
3118
3101
  requestId: string;
3119
3102
  };
3120
3103
  outputFormat: "json";
3121
- status: 404;
3104
+ status: 400;
3122
3105
  input: {
3123
3106
  param: {
3124
3107
  orgId: string;
@@ -3128,25 +3111,21 @@ export declare function management(options?: management.Options): import("hono/h
3128
3111
  } | {
3129
3112
  output: {
3130
3113
  error: {
3131
- code: "payment_required" | "rate_limit_exceeded";
3114
+ code: "organization_not_found" | "project_not_found";
3132
3115
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3133
3116
  message: string;
3134
3117
  };
3135
3118
  requestId: string;
3136
3119
  };
3137
3120
  outputFormat: "json";
3138
- status: 429;
3121
+ status: 404;
3139
3122
  input: {
3140
3123
  param: {
3141
3124
  orgId: string;
3142
3125
  projectId: string;
3143
3126
  };
3144
3127
  };
3145
- };
3146
- };
3147
- } & {
3148
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
3149
- $patch: {
3128
+ } | {
3150
3129
  output: {
3151
3130
  createdAt: string;
3152
3131
  environments: ("production" | "sandbox")[];
@@ -3157,6 +3136,27 @@ export declare function management(options?: management.Options): import("hono/h
3157
3136
  };
3158
3137
  outputFormat: "json";
3159
3138
  status: 200;
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: {
3150
+ output: {
3151
+ error: {
3152
+ code: "api_key_malformed";
3153
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3154
+ message: string;
3155
+ };
3156
+ requestId: string;
3157
+ };
3158
+ outputFormat: "json";
3159
+ status: 400;
3160
3160
  input: {
3161
3161
  param: {
3162
3162
  orgId: string;
@@ -3170,14 +3170,14 @@ export declare function management(options?: management.Options): import("hono/h
3170
3170
  } | {
3171
3171
  output: {
3172
3172
  error: {
3173
- code: "api_key_malformed";
3173
+ code: "api_key_invalid" | "api_key_missing";
3174
3174
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3175
3175
  message: string;
3176
3176
  };
3177
3177
  requestId: string;
3178
3178
  };
3179
3179
  outputFormat: "json";
3180
- status: 400;
3180
+ status: 401;
3181
3181
  input: {
3182
3182
  param: {
3183
3183
  orgId: string;
@@ -3191,14 +3191,14 @@ export declare function management(options?: management.Options): import("hono/h
3191
3191
  } | {
3192
3192
  output: {
3193
3193
  error: {
3194
- code: "body_invalid";
3194
+ code: "api_key_forbidden";
3195
3195
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3196
3196
  message: string;
3197
3197
  };
3198
3198
  requestId: string;
3199
3199
  };
3200
3200
  outputFormat: "json";
3201
- status: 400;
3201
+ status: 403;
3202
3202
  input: {
3203
3203
  param: {
3204
3204
  orgId: string;
@@ -3212,14 +3212,14 @@ export declare function management(options?: management.Options): import("hono/h
3212
3212
  } | {
3213
3213
  output: {
3214
3214
  error: {
3215
- code: "param_invalid";
3215
+ code: "payment_required" | "rate_limit_exceeded";
3216
3216
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3217
3217
  message: string;
3218
3218
  };
3219
3219
  requestId: string;
3220
3220
  };
3221
3221
  outputFormat: "json";
3222
- status: 400;
3222
+ status: 429;
3223
3223
  input: {
3224
3224
  param: {
3225
3225
  orgId: string;
@@ -3233,14 +3233,14 @@ export declare function management(options?: management.Options): import("hono/h
3233
3233
  } | {
3234
3234
  output: {
3235
3235
  error: {
3236
- code: "api_key_invalid" | "api_key_missing";
3236
+ code: "upstream_error";
3237
3237
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3238
3238
  message: string;
3239
3239
  };
3240
3240
  requestId: string;
3241
3241
  };
3242
3242
  outputFormat: "json";
3243
- status: 401;
3243
+ status: 502;
3244
3244
  input: {
3245
3245
  param: {
3246
3246
  orgId: string;
@@ -3254,14 +3254,14 @@ export declare function management(options?: management.Options): import("hono/h
3254
3254
  } | {
3255
3255
  output: {
3256
3256
  error: {
3257
- code: "api_key_forbidden";
3257
+ code: "param_invalid";
3258
3258
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3259
3259
  message: string;
3260
3260
  };
3261
3261
  requestId: string;
3262
3262
  };
3263
3263
  outputFormat: "json";
3264
- status: 403;
3264
+ status: 400;
3265
3265
  input: {
3266
3266
  param: {
3267
3267
  orgId: string;
@@ -3275,14 +3275,14 @@ export declare function management(options?: management.Options): import("hono/h
3275
3275
  } | {
3276
3276
  output: {
3277
3277
  error: {
3278
- code: "organization_not_found" | "project_not_found";
3278
+ code: "body_invalid";
3279
3279
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3280
3280
  message: string;
3281
3281
  };
3282
3282
  requestId: string;
3283
3283
  };
3284
3284
  outputFormat: "json";
3285
- status: 404;
3285
+ status: 400;
3286
3286
  input: {
3287
3287
  param: {
3288
3288
  orgId: string;
@@ -3296,14 +3296,14 @@ export declare function management(options?: management.Options): import("hono/h
3296
3296
  } | {
3297
3297
  output: {
3298
3298
  error: {
3299
- code: "payment_required" | "rate_limit_exceeded";
3299
+ code: "organization_not_found" | "project_not_found";
3300
3300
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3301
3301
  message: string;
3302
3302
  };
3303
3303
  requestId: string;
3304
3304
  };
3305
3305
  outputFormat: "json";
3306
- status: 429;
3306
+ status: 404;
3307
3307
  input: {
3308
3308
  param: {
3309
3309
  orgId: string;
@@ -3316,15 +3316,15 @@ export declare function management(options?: management.Options): import("hono/h
3316
3316
  };
3317
3317
  } | {
3318
3318
  output: {
3319
- error: {
3320
- code: "upstream_error";
3321
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3322
- message: string;
3323
- };
3324
- requestId: string;
3319
+ createdAt: string;
3320
+ environments: ("production" | "sandbox")[];
3321
+ id: string;
3322
+ name: string;
3323
+ orgId: string;
3324
+ updatedAt: string;
3325
3325
  };
3326
3326
  outputFormat: "json";
3327
- status: 502;
3327
+ status: 200;
3328
3328
  input: {
3329
3329
  param: {
3330
3330
  orgId: string;
@@ -3341,10 +3341,15 @@ export declare function management(options?: management.Options): import("hono/h
3341
3341
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
3342
3342
  $delete: {
3343
3343
  output: {
3344
- id: string;
3344
+ error: {
3345
+ code: "api_key_malformed";
3346
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3347
+ message: string;
3348
+ };
3349
+ requestId: string;
3345
3350
  };
3346
3351
  outputFormat: "json";
3347
- status: 200;
3352
+ status: 400;
3348
3353
  input: {
3349
3354
  param: {
3350
3355
  orgId: string;
@@ -3354,14 +3359,14 @@ export declare function management(options?: management.Options): import("hono/h
3354
3359
  } | {
3355
3360
  output: {
3356
3361
  error: {
3357
- code: "api_key_malformed";
3362
+ code: "api_key_invalid" | "api_key_missing";
3358
3363
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3359
3364
  message: string;
3360
3365
  };
3361
3366
  requestId: string;
3362
3367
  };
3363
3368
  outputFormat: "json";
3364
- status: 400;
3369
+ status: 401;
3365
3370
  input: {
3366
3371
  param: {
3367
3372
  orgId: string;
@@ -3371,14 +3376,14 @@ export declare function management(options?: management.Options): import("hono/h
3371
3376
  } | {
3372
3377
  output: {
3373
3378
  error: {
3374
- code: "param_invalid";
3379
+ code: "api_key_forbidden";
3375
3380
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3376
3381
  message: string;
3377
3382
  };
3378
3383
  requestId: string;
3379
3384
  };
3380
3385
  outputFormat: "json";
3381
- status: 400;
3386
+ status: 403;
3382
3387
  input: {
3383
3388
  param: {
3384
3389
  orgId: string;
@@ -3388,14 +3393,14 @@ export declare function management(options?: management.Options): import("hono/h
3388
3393
  } | {
3389
3394
  output: {
3390
3395
  error: {
3391
- code: "api_key_invalid" | "api_key_missing";
3396
+ code: "payment_required" | "rate_limit_exceeded";
3392
3397
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3393
3398
  message: string;
3394
3399
  };
3395
3400
  requestId: string;
3396
3401
  };
3397
3402
  outputFormat: "json";
3398
- status: 401;
3403
+ status: 429;
3399
3404
  input: {
3400
3405
  param: {
3401
3406
  orgId: string;
@@ -3405,14 +3410,14 @@ export declare function management(options?: management.Options): import("hono/h
3405
3410
  } | {
3406
3411
  output: {
3407
3412
  error: {
3408
- code: "api_key_forbidden";
3413
+ code: "upstream_error";
3409
3414
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3410
3415
  message: string;
3411
3416
  };
3412
3417
  requestId: string;
3413
3418
  };
3414
3419
  outputFormat: "json";
3415
- status: 403;
3420
+ status: 502;
3416
3421
  input: {
3417
3422
  param: {
3418
3423
  orgId: string;
@@ -3422,14 +3427,14 @@ export declare function management(options?: management.Options): import("hono/h
3422
3427
  } | {
3423
3428
  output: {
3424
3429
  error: {
3425
- code: "organization_not_found" | "project_not_found";
3430
+ code: "param_invalid";
3426
3431
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3427
3432
  message: string;
3428
3433
  };
3429
3434
  requestId: string;
3430
3435
  };
3431
3436
  outputFormat: "json";
3432
- status: 404;
3437
+ status: 400;
3433
3438
  input: {
3434
3439
  param: {
3435
3440
  orgId: string;
@@ -3439,14 +3444,14 @@ export declare function management(options?: management.Options): import("hono/h
3439
3444
  } | {
3440
3445
  output: {
3441
3446
  error: {
3442
- code: "payment_required" | "rate_limit_exceeded";
3447
+ code: "organization_not_found" | "project_not_found";
3443
3448
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3444
3449
  message: string;
3445
3450
  };
3446
3451
  requestId: string;
3447
3452
  };
3448
3453
  outputFormat: "json";
3449
- status: 429;
3454
+ status: 404;
3450
3455
  input: {
3451
3456
  param: {
3452
3457
  orgId: string;
@@ -3455,15 +3460,10 @@ export declare function management(options?: management.Options): import("hono/h
3455
3460
  };
3456
3461
  } | {
3457
3462
  output: {
3458
- error: {
3459
- code: "upstream_error";
3460
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3461
- message: string;
3462
- };
3463
- requestId: string;
3463
+ id: string;
3464
3464
  };
3465
3465
  outputFormat: "json";
3466
- status: 502;
3466
+ status: 200;
3467
3467
  input: {
3468
3468
  param: {
3469
3469
  orgId: string;
@@ -3476,16 +3476,15 @@ export declare function management(options?: management.Options): import("hono/h
3476
3476
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invitations": {
3477
3477
  $post: {
3478
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";
3479
+ error: {
3480
+ code: "api_key_malformed";
3481
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3482
+ message: string;
3483
+ };
3484
+ requestId: string;
3486
3485
  };
3487
3486
  outputFormat: "json";
3488
- status: 200;
3487
+ status: 400;
3489
3488
  input: {
3490
3489
  param: {
3491
3490
  orgId: string;
@@ -3499,14 +3498,14 @@ export declare function management(options?: management.Options): import("hono/h
3499
3498
  } | {
3500
3499
  output: {
3501
3500
  error: {
3502
- code: "api_key_malformed";
3501
+ code: "api_key_invalid" | "api_key_missing";
3503
3502
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3504
3503
  message: string;
3505
3504
  };
3506
3505
  requestId: string;
3507
3506
  };
3508
3507
  outputFormat: "json";
3509
- status: 400;
3508
+ status: 401;
3510
3509
  input: {
3511
3510
  param: {
3512
3511
  orgId: string;
@@ -3520,14 +3519,14 @@ export declare function management(options?: management.Options): import("hono/h
3520
3519
  } | {
3521
3520
  output: {
3522
3521
  error: {
3523
- code: "body_invalid";
3522
+ code: "api_key_forbidden";
3524
3523
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3525
3524
  message: string;
3526
3525
  };
3527
3526
  requestId: string;
3528
3527
  };
3529
3528
  outputFormat: "json";
3530
- status: 400;
3529
+ status: 403;
3531
3530
  input: {
3532
3531
  param: {
3533
3532
  orgId: string;
@@ -3541,14 +3540,14 @@ export declare function management(options?: management.Options): import("hono/h
3541
3540
  } | {
3542
3541
  output: {
3543
3542
  error: {
3544
- code: "param_invalid";
3543
+ code: "payment_required" | "rate_limit_exceeded";
3545
3544
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3546
3545
  message: string;
3547
3546
  };
3548
3547
  requestId: string;
3549
3548
  };
3550
3549
  outputFormat: "json";
3551
- status: 400;
3550
+ status: 429;
3552
3551
  input: {
3553
3552
  param: {
3554
3553
  orgId: string;
@@ -3562,14 +3561,14 @@ export declare function management(options?: management.Options): import("hono/h
3562
3561
  } | {
3563
3562
  output: {
3564
3563
  error: {
3565
- code: "api_key_invalid" | "api_key_missing";
3564
+ code: "upstream_error";
3566
3565
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3567
3566
  message: string;
3568
3567
  };
3569
3568
  requestId: string;
3570
3569
  };
3571
3570
  outputFormat: "json";
3572
- status: 401;
3571
+ status: 502;
3573
3572
  input: {
3574
3573
  param: {
3575
3574
  orgId: string;
@@ -3583,14 +3582,14 @@ export declare function management(options?: management.Options): import("hono/h
3583
3582
  } | {
3584
3583
  output: {
3585
3584
  error: {
3586
- code: "api_key_forbidden";
3585
+ code: "organization_not_found";
3587
3586
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3588
3587
  message: string;
3589
3588
  };
3590
3589
  requestId: string;
3591
3590
  };
3592
3591
  outputFormat: "json";
3593
- status: 403;
3592
+ status: 404;
3594
3593
  input: {
3595
3594
  param: {
3596
3595
  orgId: string;
@@ -3604,14 +3603,14 @@ export declare function management(options?: management.Options): import("hono/h
3604
3603
  } | {
3605
3604
  output: {
3606
3605
  error: {
3607
- code: "forbidden";
3606
+ code: "param_invalid";
3608
3607
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3609
3608
  message: string;
3610
3609
  };
3611
3610
  requestId: string;
3612
3611
  };
3613
3612
  outputFormat: "json";
3614
- status: 403;
3613
+ status: 400;
3615
3614
  input: {
3616
3615
  param: {
3617
3616
  orgId: string;
@@ -3625,14 +3624,14 @@ export declare function management(options?: management.Options): import("hono/h
3625
3624
  } | {
3626
3625
  output: {
3627
3626
  error: {
3628
- code: "organization_not_found";
3627
+ code: "body_invalid";
3629
3628
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3630
3629
  message: string;
3631
3630
  };
3632
3631
  requestId: string;
3633
3632
  };
3634
3633
  outputFormat: "json";
3635
- status: 404;
3634
+ status: 400;
3636
3635
  input: {
3637
3636
  param: {
3638
3637
  orgId: string;
@@ -3646,14 +3645,14 @@ export declare function management(options?: management.Options): import("hono/h
3646
3645
  } | {
3647
3646
  output: {
3648
3647
  error: {
3649
- code: "payment_required" | "rate_limit_exceeded";
3648
+ code: "forbidden";
3650
3649
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3651
3650
  message: string;
3652
3651
  };
3653
3652
  requestId: string;
3654
3653
  };
3655
3654
  outputFormat: "json";
3656
- status: 429;
3655
+ status: 403;
3657
3656
  input: {
3658
3657
  param: {
3659
3658
  orgId: string;
@@ -3666,15 +3665,16 @@ export declare function management(options?: management.Options): import("hono/h
3666
3665
  };
3667
3666
  } | {
3668
3667
  output: {
3669
- error: {
3670
- code: "upstream_error";
3671
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3672
- message: string;
3673
- };
3674
- requestId: string;
3668
+ createdAt: string;
3669
+ email: string;
3670
+ expiresAt: string;
3671
+ id: string;
3672
+ invitedBy: string;
3673
+ orgId: string;
3674
+ role: "admin" | "member" | "owner";
3675
3675
  };
3676
3676
  outputFormat: "json";
3677
- status: 502;
3677
+ status: 200;
3678
3678
  input: {
3679
3679
  param: {
3680
3680
  orgId: string;
@@ -3690,25 +3690,6 @@ export declare function management(options?: management.Options): import("hono/h
3690
3690
  } & {
3691
3691
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invitations": {
3692
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
- } | {
3712
3693
  output: {
3713
3694
  error: {
3714
3695
  code: "api_key_malformed";
@@ -3727,14 +3708,14 @@ export declare function management(options?: management.Options): import("hono/h
3727
3708
  } | {
3728
3709
  output: {
3729
3710
  error: {
3730
- code: "param_invalid";
3711
+ code: "api_key_invalid" | "api_key_missing";
3731
3712
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3732
3713
  message: string;
3733
3714
  };
3734
3715
  requestId: string;
3735
3716
  };
3736
3717
  outputFormat: "json";
3737
- status: 400;
3718
+ status: 401;
3738
3719
  input: {
3739
3720
  param: {
3740
3721
  orgId: string;
@@ -3743,14 +3724,14 @@ export declare function management(options?: management.Options): import("hono/h
3743
3724
  } | {
3744
3725
  output: {
3745
3726
  error: {
3746
- code: "api_key_invalid" | "api_key_missing";
3727
+ code: "api_key_forbidden";
3747
3728
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3748
3729
  message: string;
3749
3730
  };
3750
3731
  requestId: string;
3751
3732
  };
3752
3733
  outputFormat: "json";
3753
- status: 401;
3734
+ status: 403;
3754
3735
  input: {
3755
3736
  param: {
3756
3737
  orgId: string;
@@ -3759,14 +3740,14 @@ export declare function management(options?: management.Options): import("hono/h
3759
3740
  } | {
3760
3741
  output: {
3761
3742
  error: {
3762
- code: "api_key_forbidden";
3743
+ code: "payment_required" | "rate_limit_exceeded";
3763
3744
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3764
3745
  message: string;
3765
3746
  };
3766
3747
  requestId: string;
3767
3748
  };
3768
3749
  outputFormat: "json";
3769
- status: 403;
3750
+ status: 429;
3770
3751
  input: {
3771
3752
  param: {
3772
3753
  orgId: string;
@@ -3775,14 +3756,14 @@ export declare function management(options?: management.Options): import("hono/h
3775
3756
  } | {
3776
3757
  output: {
3777
3758
  error: {
3778
- code: "organization_not_found";
3759
+ code: "upstream_error";
3779
3760
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3780
3761
  message: string;
3781
3762
  };
3782
3763
  requestId: string;
3783
3764
  };
3784
3765
  outputFormat: "json";
3785
- status: 404;
3766
+ status: 502;
3786
3767
  input: {
3787
3768
  param: {
3788
3769
  orgId: string;
@@ -3791,14 +3772,14 @@ export declare function management(options?: management.Options): import("hono/h
3791
3772
  } | {
3792
3773
  output: {
3793
3774
  error: {
3794
- code: "payment_required" | "rate_limit_exceeded";
3775
+ code: "organization_not_found";
3795
3776
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3796
3777
  message: string;
3797
3778
  };
3798
3779
  requestId: string;
3799
3780
  };
3800
3781
  outputFormat: "json";
3801
- status: 429;
3782
+ status: 404;
3802
3783
  input: {
3803
3784
  param: {
3804
3785
  orgId: string;
@@ -3807,36 +3788,43 @@ export declare function management(options?: management.Options): import("hono/h
3807
3788
  } | {
3808
3789
  output: {
3809
3790
  error: {
3810
- code: "upstream_error";
3791
+ code: "param_invalid";
3811
3792
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3812
3793
  message: string;
3813
3794
  };
3814
3795
  requestId: string;
3815
3796
  };
3816
3797
  outputFormat: "json";
3817
- status: 502;
3798
+ status: 400;
3818
3799
  input: {
3819
3800
  param: {
3820
3801
  orgId: string;
3821
3802
  };
3822
3803
  };
3823
- };
3824
- };
3825
- } & {
3826
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invitations/:invitationId{inv_[A-Za-z0-9_-]+}": {
3827
- $delete: {
3804
+ } | {
3828
3805
  output: {
3829
- id: string;
3806
+ data: {
3807
+ createdAt: string;
3808
+ email: string;
3809
+ expiresAt: string;
3810
+ id: string;
3811
+ invitedBy: string;
3812
+ orgId: string;
3813
+ role: "admin" | "member" | "owner";
3814
+ }[];
3830
3815
  };
3831
3816
  outputFormat: "json";
3832
3817
  status: 200;
3833
3818
  input: {
3834
3819
  param: {
3835
- invitationId: string;
3836
3820
  orgId: string;
3837
3821
  };
3838
3822
  };
3839
- } | {
3823
+ };
3824
+ };
3825
+ } & {
3826
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invitations/:invitationId{inv_[A-Za-z0-9_-]+}": {
3827
+ $delete: {
3840
3828
  output: {
3841
3829
  error: {
3842
3830
  code: "api_key_malformed";
@@ -3856,14 +3844,14 @@ export declare function management(options?: management.Options): import("hono/h
3856
3844
  } | {
3857
3845
  output: {
3858
3846
  error: {
3859
- code: "param_invalid";
3847
+ code: "api_key_invalid" | "api_key_missing";
3860
3848
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3861
3849
  message: string;
3862
3850
  };
3863
3851
  requestId: string;
3864
3852
  };
3865
3853
  outputFormat: "json";
3866
- status: 400;
3854
+ status: 401;
3867
3855
  input: {
3868
3856
  param: {
3869
3857
  invitationId: string;
@@ -3873,14 +3861,14 @@ export declare function management(options?: management.Options): import("hono/h
3873
3861
  } | {
3874
3862
  output: {
3875
3863
  error: {
3876
- code: "api_key_invalid" | "api_key_missing";
3864
+ code: "api_key_forbidden";
3877
3865
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3878
3866
  message: string;
3879
3867
  };
3880
3868
  requestId: string;
3881
3869
  };
3882
3870
  outputFormat: "json";
3883
- status: 401;
3871
+ status: 403;
3884
3872
  input: {
3885
3873
  param: {
3886
3874
  invitationId: string;
@@ -3890,14 +3878,14 @@ export declare function management(options?: management.Options): import("hono/h
3890
3878
  } | {
3891
3879
  output: {
3892
3880
  error: {
3893
- code: "api_key_forbidden";
3881
+ code: "payment_required" | "rate_limit_exceeded";
3894
3882
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3895
3883
  message: string;
3896
3884
  };
3897
3885
  requestId: string;
3898
3886
  };
3899
3887
  outputFormat: "json";
3900
- status: 403;
3888
+ status: 429;
3901
3889
  input: {
3902
3890
  param: {
3903
3891
  invitationId: string;
@@ -3907,14 +3895,14 @@ export declare function management(options?: management.Options): import("hono/h
3907
3895
  } | {
3908
3896
  output: {
3909
3897
  error: {
3910
- code: "organization_not_found";
3898
+ code: "upstream_error";
3911
3899
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3912
3900
  message: string;
3913
3901
  };
3914
3902
  requestId: string;
3915
3903
  };
3916
3904
  outputFormat: "json";
3917
- status: 404;
3905
+ status: 502;
3918
3906
  input: {
3919
3907
  param: {
3920
3908
  invitationId: string;
@@ -3924,7 +3912,7 @@ export declare function management(options?: management.Options): import("hono/h
3924
3912
  } | {
3925
3913
  output: {
3926
3914
  error: {
3927
- code: "invitation_not_found";
3915
+ code: "organization_not_found";
3928
3916
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3929
3917
  message: string;
3930
3918
  };
@@ -3941,14 +3929,14 @@ export declare function management(options?: management.Options): import("hono/h
3941
3929
  } | {
3942
3930
  output: {
3943
3931
  error: {
3944
- code: "payment_required" | "rate_limit_exceeded";
3932
+ code: "param_invalid";
3945
3933
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3946
3934
  message: string;
3947
3935
  };
3948
3936
  requestId: string;
3949
3937
  };
3950
3938
  outputFormat: "json";
3951
- status: 429;
3939
+ status: 400;
3952
3940
  input: {
3953
3941
  param: {
3954
3942
  invitationId: string;
@@ -3958,41 +3946,37 @@ export declare function management(options?: management.Options): import("hono/h
3958
3946
  } | {
3959
3947
  output: {
3960
3948
  error: {
3961
- code: "upstream_error";
3949
+ code: "invitation_not_found";
3962
3950
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3963
3951
  message: string;
3964
3952
  };
3965
3953
  requestId: string;
3966
3954
  };
3967
3955
  outputFormat: "json";
3968
- status: 502;
3956
+ status: 404;
3969
3957
  input: {
3970
3958
  param: {
3971
3959
  invitationId: string;
3972
3960
  orgId: string;
3973
3961
  };
3974
3962
  };
3975
- };
3976
- };
3977
- } & {
3978
- "/v1/invitations": {
3979
- $get: {
3963
+ } | {
3980
3964
  output: {
3981
- data: {
3982
- createdAt: string;
3983
- email: string;
3984
- expiresAt: string;
3985
- id: string;
3986
- invitedBy: string;
3965
+ id: string;
3966
+ };
3967
+ outputFormat: "json";
3968
+ status: 200;
3969
+ input: {
3970
+ param: {
3971
+ invitationId: string;
3987
3972
  orgId: string;
3988
- role: "admin" | "member" | "owner";
3989
- orgName: string;
3990
- }[];
3973
+ };
3991
3974
  };
3992
- outputFormat: "json";
3993
- status: 200;
3994
- input: {};
3995
- } | {
3975
+ };
3976
+ };
3977
+ } & {
3978
+ "/v1/invitations": {
3979
+ $get: {
3996
3980
  output: {
3997
3981
  error: {
3998
3982
  code: "api_key_malformed";
@@ -4019,26 +4003,42 @@ export declare function management(options?: management.Options): import("hono/h
4019
4003
  } | {
4020
4004
  output: {
4021
4005
  error: {
4022
- code: "forbidden";
4006
+ code: "upstream_error";
4023
4007
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4024
4008
  message: string;
4025
4009
  };
4026
4010
  requestId: string;
4027
4011
  };
4028
4012
  outputFormat: "json";
4029
- status: 403;
4013
+ status: 502;
4030
4014
  input: {};
4031
4015
  } | {
4032
4016
  output: {
4033
4017
  error: {
4034
- code: "upstream_error";
4018
+ code: "forbidden";
4035
4019
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4036
4020
  message: string;
4037
4021
  };
4038
4022
  requestId: string;
4039
4023
  };
4040
4024
  outputFormat: "json";
4041
- status: 502;
4025
+ status: 403;
4026
+ input: {};
4027
+ } | {
4028
+ output: {
4029
+ data: {
4030
+ createdAt: string;
4031
+ email: string;
4032
+ expiresAt: string;
4033
+ id: string;
4034
+ invitedBy: string;
4035
+ orgId: string;
4036
+ role: "admin" | "member" | "owner";
4037
+ orgName: string;
4038
+ }[];
4039
+ };
4040
+ outputFormat: "json";
4041
+ status: 200;
4042
4042
  input: {};
4043
4043
  };
4044
4044
  };
@@ -4046,12 +4046,15 @@ export declare function management(options?: management.Options): import("hono/h
4046
4046
  "/v1/invitations/:invitationId{inv_[A-Za-z0-9_-]+}/accept": {
4047
4047
  $post: {
4048
4048
  output: {
4049
- orgId: string;
4050
- role: "admin" | "member" | "owner";
4051
- userId: string;
4049
+ error: {
4050
+ code: "api_key_malformed";
4051
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4052
+ message: string;
4053
+ };
4054
+ requestId: string;
4052
4055
  };
4053
4056
  outputFormat: "json";
4054
- status: 200;
4057
+ status: 400;
4055
4058
  input: {
4056
4059
  param: {
4057
4060
  invitationId: string;
@@ -4060,14 +4063,14 @@ export declare function management(options?: management.Options): import("hono/h
4060
4063
  } | {
4061
4064
  output: {
4062
4065
  error: {
4063
- code: "api_key_malformed";
4066
+ code: "api_key_invalid" | "api_key_missing";
4064
4067
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4065
4068
  message: string;
4066
4069
  };
4067
4070
  requestId: string;
4068
4071
  };
4069
4072
  outputFormat: "json";
4070
- status: 400;
4073
+ status: 401;
4071
4074
  input: {
4072
4075
  param: {
4073
4076
  invitationId: string;
@@ -4076,14 +4079,14 @@ export declare function management(options?: management.Options): import("hono/h
4076
4079
  } | {
4077
4080
  output: {
4078
4081
  error: {
4079
- code: "param_invalid";
4082
+ code: "upstream_error";
4080
4083
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4081
4084
  message: string;
4082
4085
  };
4083
4086
  requestId: string;
4084
4087
  };
4085
4088
  outputFormat: "json";
4086
- status: 400;
4089
+ status: 502;
4087
4090
  input: {
4088
4091
  param: {
4089
4092
  invitationId: string;
@@ -4092,14 +4095,14 @@ export declare function management(options?: management.Options): import("hono/h
4092
4095
  } | {
4093
4096
  output: {
4094
4097
  error: {
4095
- code: "api_key_invalid" | "api_key_missing";
4098
+ code: "param_invalid";
4096
4099
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4097
4100
  message: string;
4098
4101
  };
4099
4102
  requestId: string;
4100
4103
  };
4101
4104
  outputFormat: "json";
4102
- status: 401;
4105
+ status: 400;
4103
4106
  input: {
4104
4107
  param: {
4105
4108
  invitationId: string;
@@ -4139,15 +4142,12 @@ export declare function management(options?: management.Options): import("hono/h
4139
4142
  };
4140
4143
  } | {
4141
4144
  output: {
4142
- error: {
4143
- code: "upstream_error";
4144
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4145
- message: string;
4146
- };
4147
- requestId: string;
4145
+ orgId: string;
4146
+ role: "admin" | "member" | "owner";
4147
+ userId: string;
4148
4148
  };
4149
4149
  outputFormat: "json";
4150
- status: 502;
4150
+ status: 200;
4151
4151
  input: {
4152
4152
  param: {
4153
4153
  invitationId: string;
@@ -4159,10 +4159,15 @@ export declare function management(options?: management.Options): import("hono/h
4159
4159
  "/v1/invitations/:invitationId{inv_[A-Za-z0-9_-]+}/decline": {
4160
4160
  $post: {
4161
4161
  output: {
4162
- id: string;
4162
+ error: {
4163
+ code: "api_key_malformed";
4164
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4165
+ message: string;
4166
+ };
4167
+ requestId: string;
4163
4168
  };
4164
4169
  outputFormat: "json";
4165
- status: 200;
4170
+ status: 400;
4166
4171
  input: {
4167
4172
  param: {
4168
4173
  invitationId: string;
@@ -4171,14 +4176,14 @@ export declare function management(options?: management.Options): import("hono/h
4171
4176
  } | {
4172
4177
  output: {
4173
4178
  error: {
4174
- code: "api_key_malformed";
4179
+ code: "api_key_invalid" | "api_key_missing";
4175
4180
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4176
4181
  message: string;
4177
4182
  };
4178
4183
  requestId: string;
4179
4184
  };
4180
4185
  outputFormat: "json";
4181
- status: 400;
4186
+ status: 401;
4182
4187
  input: {
4183
4188
  param: {
4184
4189
  invitationId: string;
@@ -4187,14 +4192,14 @@ export declare function management(options?: management.Options): import("hono/h
4187
4192
  } | {
4188
4193
  output: {
4189
4194
  error: {
4190
- code: "param_invalid";
4195
+ code: "upstream_error";
4191
4196
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4192
4197
  message: string;
4193
4198
  };
4194
4199
  requestId: string;
4195
4200
  };
4196
4201
  outputFormat: "json";
4197
- status: 400;
4202
+ status: 502;
4198
4203
  input: {
4199
4204
  param: {
4200
4205
  invitationId: string;
@@ -4203,14 +4208,14 @@ export declare function management(options?: management.Options): import("hono/h
4203
4208
  } | {
4204
4209
  output: {
4205
4210
  error: {
4206
- code: "api_key_invalid" | "api_key_missing";
4211
+ code: "param_invalid";
4207
4212
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4208
4213
  message: string;
4209
4214
  };
4210
4215
  requestId: string;
4211
4216
  };
4212
4217
  outputFormat: "json";
4213
- status: 401;
4218
+ status: 400;
4214
4219
  input: {
4215
4220
  param: {
4216
4221
  invitationId: string;
@@ -4250,15 +4255,10 @@ export declare function management(options?: management.Options): import("hono/h
4250
4255
  };
4251
4256
  } | {
4252
4257
  output: {
4253
- error: {
4254
- code: "upstream_error";
4255
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4256
- message: string;
4257
- };
4258
- requestId: string;
4258
+ id: string;
4259
4259
  };
4260
4260
  outputFormat: "json";
4261
- status: 502;
4261
+ status: 200;
4262
4262
  input: {
4263
4263
  param: {
4264
4264
  invitationId: string;
@@ -4269,36 +4269,6 @@ export declare function management(options?: management.Options): import("hono/h
4269
4269
  }, "/"> | import("hono/types").MergeSchemaPath<{
4270
4270
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing": {
4271
4271
  $get: {
4272
- output: {
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;
4289
- };
4290
- outputFormat: "json";
4291
- status: 200;
4292
- input: {
4293
- param: {
4294
- orgId: string;
4295
- };
4296
- } & {
4297
- query?: {
4298
- environment?: string | string[];
4299
- } | undefined;
4300
- };
4301
- } | {
4302
4272
  output: {
4303
4273
  error: {
4304
4274
  code: "api_key_malformed";
@@ -4321,14 +4291,14 @@ export declare function management(options?: management.Options): import("hono/h
4321
4291
  } | {
4322
4292
  output: {
4323
4293
  error: {
4324
- code: "query_invalid";
4294
+ code: "api_key_invalid" | "api_key_missing";
4325
4295
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4326
4296
  message: string;
4327
4297
  };
4328
4298
  requestId: string;
4329
4299
  };
4330
4300
  outputFormat: "json";
4331
- status: 400;
4301
+ status: 401;
4332
4302
  input: {
4333
4303
  param: {
4334
4304
  orgId: string;
@@ -4341,14 +4311,14 @@ export declare function management(options?: management.Options): import("hono/h
4341
4311
  } | {
4342
4312
  output: {
4343
4313
  error: {
4344
- code: "param_invalid";
4314
+ code: "api_key_forbidden";
4345
4315
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4346
4316
  message: string;
4347
4317
  };
4348
4318
  requestId: string;
4349
4319
  };
4350
4320
  outputFormat: "json";
4351
- status: 400;
4321
+ status: 403;
4352
4322
  input: {
4353
4323
  param: {
4354
4324
  orgId: string;
@@ -4361,14 +4331,14 @@ export declare function management(options?: management.Options): import("hono/h
4361
4331
  } | {
4362
4332
  output: {
4363
4333
  error: {
4364
- code: "api_key_invalid" | "api_key_missing";
4334
+ code: "payment_required" | "rate_limit_exceeded";
4365
4335
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4366
4336
  message: string;
4367
4337
  };
4368
4338
  requestId: string;
4369
4339
  };
4370
4340
  outputFormat: "json";
4371
- status: 401;
4341
+ status: 429;
4372
4342
  input: {
4373
4343
  param: {
4374
4344
  orgId: string;
@@ -4381,14 +4351,14 @@ export declare function management(options?: management.Options): import("hono/h
4381
4351
  } | {
4382
4352
  output: {
4383
4353
  error: {
4384
- code: "api_key_forbidden";
4354
+ code: "query_invalid";
4385
4355
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4386
4356
  message: string;
4387
4357
  };
4388
4358
  requestId: string;
4389
4359
  };
4390
4360
  outputFormat: "json";
4391
- status: 403;
4361
+ status: 400;
4392
4362
  input: {
4393
4363
  param: {
4394
4364
  orgId: string;
@@ -4401,14 +4371,14 @@ export declare function management(options?: management.Options): import("hono/h
4401
4371
  } | {
4402
4372
  output: {
4403
4373
  error: {
4404
- code: "organization_not_found";
4374
+ code: "upstream_error";
4405
4375
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4406
4376
  message: string;
4407
4377
  };
4408
4378
  requestId: string;
4409
4379
  };
4410
4380
  outputFormat: "json";
4411
- status: 404;
4381
+ status: 502;
4412
4382
  input: {
4413
4383
  param: {
4414
4384
  orgId: string;
@@ -4421,14 +4391,14 @@ export declare function management(options?: management.Options): import("hono/h
4421
4391
  } | {
4422
4392
  output: {
4423
4393
  error: {
4424
- code: "payment_required" | "rate_limit_exceeded";
4394
+ code: "organization_not_found";
4425
4395
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4426
4396
  message: string;
4427
4397
  };
4428
4398
  requestId: string;
4429
4399
  };
4430
4400
  outputFormat: "json";
4431
- status: 429;
4401
+ status: 404;
4432
4402
  input: {
4433
4403
  param: {
4434
4404
  orgId: string;
@@ -4441,14 +4411,14 @@ export declare function management(options?: management.Options): import("hono/h
4441
4411
  } | {
4442
4412
  output: {
4443
4413
  error: {
4444
- code: "billing_unconfigured";
4414
+ code: "param_invalid";
4445
4415
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4446
4416
  message: string;
4447
4417
  };
4448
4418
  requestId: string;
4449
4419
  };
4450
4420
  outputFormat: "json";
4451
- status: 501;
4421
+ status: 400;
4452
4422
  input: {
4453
4423
  param: {
4454
4424
  orgId: string;
@@ -4461,14 +4431,14 @@ export declare function management(options?: management.Options): import("hono/h
4461
4431
  } | {
4462
4432
  output: {
4463
4433
  error: {
4464
- code: "upstream_error";
4434
+ code: "billing_unconfigured";
4465
4435
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4466
4436
  message: string;
4467
4437
  };
4468
4438
  requestId: string;
4469
4439
  };
4470
4440
  outputFormat: "json";
4471
- status: 502;
4441
+ status: 501;
4472
4442
  input: {
4473
4443
  param: {
4474
4444
  orgId: string;
@@ -4478,11 +4448,7 @@ export declare function management(options?: management.Options): import("hono/h
4478
4448
  environment?: string | string[];
4479
4449
  } | undefined;
4480
4450
  };
4481
- };
4482
- };
4483
- } & {
4484
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing": {
4485
- $patch: {
4451
+ } | {
4486
4452
  output: {
4487
4453
  spend?: {
4488
4454
  amount: string;
@@ -4503,6 +4469,30 @@ export declare function management(options?: management.Options): import("hono/h
4503
4469
  };
4504
4470
  outputFormat: "json";
4505
4471
  status: 200;
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: {
4486
+ output: {
4487
+ error: {
4488
+ code: "api_key_malformed";
4489
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4490
+ message: string;
4491
+ };
4492
+ requestId: string;
4493
+ };
4494
+ outputFormat: "json";
4495
+ status: 400;
4506
4496
  input: {
4507
4497
  param: {
4508
4498
  orgId: string;
@@ -4527,14 +4517,14 @@ export declare function management(options?: management.Options): import("hono/h
4527
4517
  } | {
4528
4518
  output: {
4529
4519
  error: {
4530
- code: "api_key_malformed";
4520
+ code: "api_key_invalid" | "api_key_missing";
4531
4521
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4532
4522
  message: string;
4533
4523
  };
4534
4524
  requestId: string;
4535
4525
  };
4536
4526
  outputFormat: "json";
4537
- status: 400;
4527
+ status: 401;
4538
4528
  input: {
4539
4529
  param: {
4540
4530
  orgId: string;
@@ -4559,14 +4549,14 @@ export declare function management(options?: management.Options): import("hono/h
4559
4549
  } | {
4560
4550
  output: {
4561
4551
  error: {
4562
- code: "query_invalid";
4552
+ code: "api_key_forbidden";
4563
4553
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4564
4554
  message: string;
4565
4555
  };
4566
4556
  requestId: string;
4567
4557
  };
4568
4558
  outputFormat: "json";
4569
- status: 400;
4559
+ status: 403;
4570
4560
  input: {
4571
4561
  param: {
4572
4562
  orgId: string;
@@ -4591,14 +4581,14 @@ export declare function management(options?: management.Options): import("hono/h
4591
4581
  } | {
4592
4582
  output: {
4593
4583
  error: {
4594
- code: "body_invalid";
4584
+ code: "payment_required" | "rate_limit_exceeded";
4595
4585
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4596
4586
  message: string;
4597
4587
  };
4598
4588
  requestId: string;
4599
4589
  };
4600
4590
  outputFormat: "json";
4601
- status: 400;
4591
+ status: 429;
4602
4592
  input: {
4603
4593
  param: {
4604
4594
  orgId: string;
@@ -4623,7 +4613,7 @@ export declare function management(options?: management.Options): import("hono/h
4623
4613
  } | {
4624
4614
  output: {
4625
4615
  error: {
4626
- code: "param_invalid";
4616
+ code: "query_invalid";
4627
4617
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4628
4618
  message: string;
4629
4619
  };
@@ -4655,14 +4645,14 @@ export declare function management(options?: management.Options): import("hono/h
4655
4645
  } | {
4656
4646
  output: {
4657
4647
  error: {
4658
- code: "api_key_invalid" | "api_key_missing";
4648
+ code: "upstream_error";
4659
4649
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4660
4650
  message: string;
4661
4651
  };
4662
4652
  requestId: string;
4663
4653
  };
4664
4654
  outputFormat: "json";
4665
- status: 401;
4655
+ status: 502;
4666
4656
  input: {
4667
4657
  param: {
4668
4658
  orgId: string;
@@ -4687,14 +4677,14 @@ export declare function management(options?: management.Options): import("hono/h
4687
4677
  } | {
4688
4678
  output: {
4689
4679
  error: {
4690
- code: "api_key_forbidden";
4680
+ code: "organization_not_found";
4691
4681
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4692
4682
  message: string;
4693
4683
  };
4694
4684
  requestId: string;
4695
4685
  };
4696
4686
  outputFormat: "json";
4697
- status: 403;
4687
+ status: 404;
4698
4688
  input: {
4699
4689
  param: {
4700
4690
  orgId: string;
@@ -4719,14 +4709,14 @@ export declare function management(options?: management.Options): import("hono/h
4719
4709
  } | {
4720
4710
  output: {
4721
4711
  error: {
4722
- code: "organization_not_found";
4712
+ code: "param_invalid";
4723
4713
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4724
4714
  message: string;
4725
4715
  };
4726
4716
  requestId: string;
4727
4717
  };
4728
4718
  outputFormat: "json";
4729
- status: 404;
4719
+ status: 400;
4730
4720
  input: {
4731
4721
  param: {
4732
4722
  orgId: string;
@@ -4751,14 +4741,14 @@ export declare function management(options?: management.Options): import("hono/h
4751
4741
  } | {
4752
4742
  output: {
4753
4743
  error: {
4754
- code: "payment_required" | "rate_limit_exceeded";
4744
+ code: "billing_unconfigured";
4755
4745
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4756
4746
  message: string;
4757
4747
  };
4758
4748
  requestId: string;
4759
4749
  };
4760
4750
  outputFormat: "json";
4761
- status: 429;
4751
+ status: 501;
4762
4752
  input: {
4763
4753
  param: {
4764
4754
  orgId: string;
@@ -4782,15 +4772,25 @@ export declare function management(options?: management.Options): import("hono/h
4782
4772
  };
4783
4773
  } | {
4784
4774
  output: {
4785
- error: {
4786
- code: "billing_unconfigured";
4787
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4788
- message: string;
4789
- };
4790
- requestId: string;
4775
+ spend?: {
4776
+ amount: string;
4777
+ currency: "usd";
4778
+ period: "month";
4779
+ } | undefined;
4780
+ spendLimit?: {
4781
+ amount: string;
4782
+ currency: "usd";
4783
+ period: "month";
4784
+ } | undefined;
4785
+ status: "active" | "canceled" | "none" | "past_due";
4786
+ txFeeLimit?: {
4787
+ amount: string;
4788
+ currency: "usd";
4789
+ } | undefined;
4790
+ updatedAt?: string | undefined;
4791
4791
  };
4792
4792
  outputFormat: "json";
4793
- status: 501;
4793
+ status: 200;
4794
4794
  input: {
4795
4795
  param: {
4796
4796
  orgId: string;
@@ -4815,14 +4815,14 @@ export declare function management(options?: management.Options): import("hono/h
4815
4815
  } | {
4816
4816
  output: {
4817
4817
  error: {
4818
- code: "upstream_error";
4818
+ code: "body_invalid";
4819
4819
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4820
4820
  message: string;
4821
4821
  };
4822
4822
  requestId: string;
4823
4823
  };
4824
4824
  outputFormat: "json";
4825
- status: 502;
4825
+ status: 400;
4826
4826
  input: {
4827
4827
  param: {
4828
4828
  orgId: string;
@@ -4850,10 +4850,15 @@ export declare function management(options?: management.Options): import("hono/h
4850
4850
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/stripe/checkout": {
4851
4851
  $post: {
4852
4852
  output: {
4853
- url: string;
4853
+ error: {
4854
+ code: "api_key_malformed";
4855
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4856
+ message: string;
4857
+ };
4858
+ requestId: string;
4854
4859
  };
4855
4860
  outputFormat: "json";
4856
- status: 200;
4861
+ status: 400;
4857
4862
  input: {
4858
4863
  param: {
4859
4864
  orgId: string;
@@ -4866,14 +4871,14 @@ export declare function management(options?: management.Options): import("hono/h
4866
4871
  } | {
4867
4872
  output: {
4868
4873
  error: {
4869
- code: "api_key_malformed";
4874
+ code: "api_key_invalid" | "api_key_missing";
4870
4875
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4871
4876
  message: string;
4872
4877
  };
4873
4878
  requestId: string;
4874
4879
  };
4875
4880
  outputFormat: "json";
4876
- status: 400;
4881
+ status: 401;
4877
4882
  input: {
4878
4883
  param: {
4879
4884
  orgId: string;
@@ -4886,14 +4891,14 @@ export declare function management(options?: management.Options): import("hono/h
4886
4891
  } | {
4887
4892
  output: {
4888
4893
  error: {
4889
- code: "query_invalid";
4894
+ code: "api_key_forbidden";
4890
4895
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4891
4896
  message: string;
4892
4897
  };
4893
4898
  requestId: string;
4894
4899
  };
4895
4900
  outputFormat: "json";
4896
- status: 400;
4901
+ status: 403;
4897
4902
  input: {
4898
4903
  param: {
4899
4904
  orgId: string;
@@ -4906,14 +4911,14 @@ export declare function management(options?: management.Options): import("hono/h
4906
4911
  } | {
4907
4912
  output: {
4908
4913
  error: {
4909
- code: "param_invalid";
4914
+ code: "payment_required" | "rate_limit_exceeded";
4910
4915
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4911
4916
  message: string;
4912
4917
  };
4913
4918
  requestId: string;
4914
4919
  };
4915
4920
  outputFormat: "json";
4916
- status: 400;
4921
+ status: 429;
4917
4922
  input: {
4918
4923
  param: {
4919
4924
  orgId: string;
@@ -4926,14 +4931,14 @@ export declare function management(options?: management.Options): import("hono/h
4926
4931
  } | {
4927
4932
  output: {
4928
4933
  error: {
4929
- code: "api_key_invalid" | "api_key_missing";
4934
+ code: "query_invalid";
4930
4935
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4931
4936
  message: string;
4932
4937
  };
4933
4938
  requestId: string;
4934
4939
  };
4935
4940
  outputFormat: "json";
4936
- status: 401;
4941
+ status: 400;
4937
4942
  input: {
4938
4943
  param: {
4939
4944
  orgId: string;
@@ -4946,14 +4951,14 @@ export declare function management(options?: management.Options): import("hono/h
4946
4951
  } | {
4947
4952
  output: {
4948
4953
  error: {
4949
- code: "api_key_forbidden";
4954
+ code: "upstream_error";
4950
4955
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4951
4956
  message: string;
4952
4957
  };
4953
4958
  requestId: string;
4954
4959
  };
4955
4960
  outputFormat: "json";
4956
- status: 403;
4961
+ status: 502;
4957
4962
  input: {
4958
4963
  param: {
4959
4964
  orgId: string;
@@ -4986,14 +4991,14 @@ export declare function management(options?: management.Options): import("hono/h
4986
4991
  } | {
4987
4992
  output: {
4988
4993
  error: {
4989
- code: "payment_required" | "rate_limit_exceeded";
4994
+ code: "param_invalid";
4990
4995
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4991
4996
  message: string;
4992
4997
  };
4993
4998
  requestId: string;
4994
4999
  };
4995
5000
  outputFormat: "json";
4996
- status: 429;
5001
+ status: 400;
4997
5002
  input: {
4998
5003
  param: {
4999
5004
  orgId: string;
@@ -5025,15 +5030,10 @@ export declare function management(options?: management.Options): import("hono/h
5025
5030
  };
5026
5031
  } | {
5027
5032
  output: {
5028
- error: {
5029
- code: "upstream_error";
5030
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5031
- message: string;
5032
- };
5033
- requestId: string;
5033
+ url: string;
5034
5034
  };
5035
5035
  outputFormat: "json";
5036
- status: 502;
5036
+ status: 200;
5037
5037
  input: {
5038
5038
  param: {
5039
5039
  orgId: string;
@@ -5049,10 +5049,15 @@ export declare function management(options?: management.Options): import("hono/h
5049
5049
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/stripe/manage": {
5050
5050
  $post: {
5051
5051
  output: {
5052
- url: string;
5052
+ error: {
5053
+ code: "api_key_malformed";
5054
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5055
+ message: string;
5056
+ };
5057
+ requestId: string;
5053
5058
  };
5054
5059
  outputFormat: "json";
5055
- status: 200;
5060
+ status: 400;
5056
5061
  input: {
5057
5062
  param: {
5058
5063
  orgId: string;
@@ -5065,14 +5070,14 @@ export declare function management(options?: management.Options): import("hono/h
5065
5070
  } | {
5066
5071
  output: {
5067
5072
  error: {
5068
- code: "api_key_malformed";
5073
+ code: "api_key_invalid" | "api_key_missing";
5069
5074
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5070
5075
  message: string;
5071
5076
  };
5072
5077
  requestId: string;
5073
5078
  };
5074
5079
  outputFormat: "json";
5075
- status: 400;
5080
+ status: 401;
5076
5081
  input: {
5077
5082
  param: {
5078
5083
  orgId: string;
@@ -5085,14 +5090,14 @@ export declare function management(options?: management.Options): import("hono/h
5085
5090
  } | {
5086
5091
  output: {
5087
5092
  error: {
5088
- code: "query_invalid";
5093
+ code: "api_key_forbidden";
5089
5094
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5090
5095
  message: string;
5091
5096
  };
5092
5097
  requestId: string;
5093
5098
  };
5094
5099
  outputFormat: "json";
5095
- status: 400;
5100
+ status: 403;
5096
5101
  input: {
5097
5102
  param: {
5098
5103
  orgId: string;
@@ -5105,14 +5110,14 @@ export declare function management(options?: management.Options): import("hono/h
5105
5110
  } | {
5106
5111
  output: {
5107
5112
  error: {
5108
- code: "param_invalid";
5113
+ code: "payment_required" | "rate_limit_exceeded";
5109
5114
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5110
5115
  message: string;
5111
5116
  };
5112
5117
  requestId: string;
5113
5118
  };
5114
5119
  outputFormat: "json";
5115
- status: 400;
5120
+ status: 429;
5116
5121
  input: {
5117
5122
  param: {
5118
5123
  orgId: string;
@@ -5125,14 +5130,14 @@ export declare function management(options?: management.Options): import("hono/h
5125
5130
  } | {
5126
5131
  output: {
5127
5132
  error: {
5128
- code: "api_key_invalid" | "api_key_missing";
5133
+ code: "query_invalid";
5129
5134
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5130
5135
  message: string;
5131
5136
  };
5132
5137
  requestId: string;
5133
5138
  };
5134
5139
  outputFormat: "json";
5135
- status: 401;
5140
+ status: 400;
5136
5141
  input: {
5137
5142
  param: {
5138
5143
  orgId: string;
@@ -5145,14 +5150,14 @@ export declare function management(options?: management.Options): import("hono/h
5145
5150
  } | {
5146
5151
  output: {
5147
5152
  error: {
5148
- code: "api_key_forbidden";
5153
+ code: "upstream_error";
5149
5154
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5150
5155
  message: string;
5151
5156
  };
5152
5157
  requestId: string;
5153
5158
  };
5154
5159
  outputFormat: "json";
5155
- status: 403;
5160
+ status: 502;
5156
5161
  input: {
5157
5162
  param: {
5158
5163
  orgId: string;
@@ -5185,14 +5190,14 @@ export declare function management(options?: management.Options): import("hono/h
5185
5190
  } | {
5186
5191
  output: {
5187
5192
  error: {
5188
- code: "billing_not_found";
5193
+ code: "param_invalid";
5189
5194
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5190
5195
  message: string;
5191
5196
  };
5192
5197
  requestId: string;
5193
5198
  };
5194
5199
  outputFormat: "json";
5195
- status: 404;
5200
+ status: 400;
5196
5201
  input: {
5197
5202
  param: {
5198
5203
  orgId: string;
@@ -5205,14 +5210,14 @@ export declare function management(options?: management.Options): import("hono/h
5205
5210
  } | {
5206
5211
  output: {
5207
5212
  error: {
5208
- code: "payment_required" | "rate_limit_exceeded";
5213
+ code: "billing_unconfigured";
5209
5214
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5210
5215
  message: string;
5211
5216
  };
5212
5217
  requestId: string;
5213
5218
  };
5214
5219
  outputFormat: "json";
5215
- status: 429;
5220
+ status: 501;
5216
5221
  input: {
5217
5222
  param: {
5218
5223
  orgId: string;
@@ -5224,15 +5229,10 @@ export declare function management(options?: management.Options): import("hono/h
5224
5229
  };
5225
5230
  } | {
5226
5231
  output: {
5227
- error: {
5228
- code: "billing_unconfigured";
5229
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5230
- message: string;
5231
- };
5232
- requestId: string;
5232
+ url: string;
5233
5233
  };
5234
5234
  outputFormat: "json";
5235
- status: 501;
5235
+ status: 200;
5236
5236
  input: {
5237
5237
  param: {
5238
5238
  orgId: string;
@@ -5245,14 +5245,14 @@ export declare function management(options?: management.Options): import("hono/h
5245
5245
  } | {
5246
5246
  output: {
5247
5247
  error: {
5248
- code: "upstream_error";
5248
+ code: "billing_not_found";
5249
5249
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5250
5250
  message: string;
5251
5251
  };
5252
5252
  requestId: string;
5253
5253
  };
5254
5254
  outputFormat: "json";
5255
- status: 502;
5255
+ status: 404;
5256
5256
  input: {
5257
5257
  param: {
5258
5258
  orgId: string;
@@ -5268,22 +5268,15 @@ export declare function management(options?: management.Options): import("hono/h
5268
5268
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/payment-methods": {
5269
5269
  $get: {
5270
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
- }[];
5271
+ error: {
5272
+ code: "api_key_malformed";
5273
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5274
+ message: string;
5275
+ };
5276
+ requestId: string;
5284
5277
  };
5285
5278
  outputFormat: "json";
5286
- status: 200;
5279
+ status: 400;
5287
5280
  input: {
5288
5281
  param: {
5289
5282
  orgId: string;
@@ -5296,14 +5289,14 @@ export declare function management(options?: management.Options): import("hono/h
5296
5289
  } | {
5297
5290
  output: {
5298
5291
  error: {
5299
- code: "api_key_malformed";
5292
+ code: "api_key_invalid" | "api_key_missing";
5300
5293
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5301
5294
  message: string;
5302
5295
  };
5303
5296
  requestId: string;
5304
5297
  };
5305
5298
  outputFormat: "json";
5306
- status: 400;
5299
+ status: 401;
5307
5300
  input: {
5308
5301
  param: {
5309
5302
  orgId: string;
@@ -5316,14 +5309,14 @@ export declare function management(options?: management.Options): import("hono/h
5316
5309
  } | {
5317
5310
  output: {
5318
5311
  error: {
5319
- code: "query_invalid";
5312
+ code: "api_key_forbidden";
5320
5313
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5321
5314
  message: string;
5322
5315
  };
5323
5316
  requestId: string;
5324
5317
  };
5325
5318
  outputFormat: "json";
5326
- status: 400;
5319
+ status: 403;
5327
5320
  input: {
5328
5321
  param: {
5329
5322
  orgId: string;
@@ -5336,14 +5329,14 @@ export declare function management(options?: management.Options): import("hono/h
5336
5329
  } | {
5337
5330
  output: {
5338
5331
  error: {
5339
- code: "param_invalid";
5332
+ code: "payment_required" | "rate_limit_exceeded";
5340
5333
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5341
5334
  message: string;
5342
5335
  };
5343
5336
  requestId: string;
5344
5337
  };
5345
5338
  outputFormat: "json";
5346
- status: 400;
5339
+ status: 429;
5347
5340
  input: {
5348
5341
  param: {
5349
5342
  orgId: string;
@@ -5356,14 +5349,14 @@ export declare function management(options?: management.Options): import("hono/h
5356
5349
  } | {
5357
5350
  output: {
5358
5351
  error: {
5359
- code: "api_key_invalid" | "api_key_missing";
5352
+ code: "query_invalid";
5360
5353
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5361
5354
  message: string;
5362
5355
  };
5363
5356
  requestId: string;
5364
5357
  };
5365
5358
  outputFormat: "json";
5366
- status: 401;
5359
+ status: 400;
5367
5360
  input: {
5368
5361
  param: {
5369
5362
  orgId: string;
@@ -5376,14 +5369,14 @@ export declare function management(options?: management.Options): import("hono/h
5376
5369
  } | {
5377
5370
  output: {
5378
5371
  error: {
5379
- code: "api_key_forbidden";
5372
+ code: "upstream_error";
5380
5373
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5381
5374
  message: string;
5382
5375
  };
5383
5376
  requestId: string;
5384
5377
  };
5385
5378
  outputFormat: "json";
5386
- status: 403;
5379
+ status: 502;
5387
5380
  input: {
5388
5381
  param: {
5389
5382
  orgId: string;
@@ -5416,14 +5409,14 @@ export declare function management(options?: management.Options): import("hono/h
5416
5409
  } | {
5417
5410
  output: {
5418
5411
  error: {
5419
- code: "payment_required" | "rate_limit_exceeded";
5412
+ code: "param_invalid";
5420
5413
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5421
5414
  message: string;
5422
5415
  };
5423
5416
  requestId: string;
5424
5417
  };
5425
5418
  outputFormat: "json";
5426
- status: 429;
5419
+ status: 400;
5427
5420
  input: {
5428
5421
  param: {
5429
5422
  orgId: string;
@@ -5455,15 +5448,22 @@ export declare function management(options?: management.Options): import("hono/h
5455
5448
  };
5456
5449
  } | {
5457
5450
  output: {
5458
- error: {
5459
- code: "upstream_error";
5460
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5461
- message: string;
5462
- };
5463
- requestId: string;
5451
+ data: {
5452
+ card?: {
5453
+ brand: string;
5454
+ expMonth: number;
5455
+ expYear: number;
5456
+ last4: string;
5457
+ } | undefined;
5458
+ createdAt: string;
5459
+ default: boolean;
5460
+ id: string;
5461
+ provider: "stripe";
5462
+ type: string;
5463
+ }[];
5464
5464
  };
5465
5465
  outputFormat: "json";
5466
- status: 502;
5466
+ status: 200;
5467
5467
  input: {
5468
5468
  param: {
5469
5469
  orgId: string;
@@ -5479,25 +5479,15 @@ export declare function management(options?: management.Options): import("hono/h
5479
5479
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/payment-methods/:methodId{pm_[A-Za-z0-9_-]+}": {
5480
5480
  $delete: {
5481
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;
5482
+ error: {
5483
+ code: "api_key_malformed";
5484
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5485
+ message: string;
5486
+ };
5487
+ requestId: string;
5498
5488
  };
5499
5489
  outputFormat: "json";
5500
- status: 200;
5490
+ status: 400;
5501
5491
  input: {
5502
5492
  param: {
5503
5493
  methodId: string;
@@ -5511,14 +5501,14 @@ export declare function management(options?: management.Options): import("hono/h
5511
5501
  } | {
5512
5502
  output: {
5513
5503
  error: {
5514
- code: "api_key_malformed";
5504
+ code: "api_key_invalid" | "api_key_missing";
5515
5505
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5516
5506
  message: string;
5517
5507
  };
5518
5508
  requestId: string;
5519
5509
  };
5520
5510
  outputFormat: "json";
5521
- status: 400;
5511
+ status: 401;
5522
5512
  input: {
5523
5513
  param: {
5524
5514
  methodId: string;
@@ -5532,14 +5522,14 @@ export declare function management(options?: management.Options): import("hono/h
5532
5522
  } | {
5533
5523
  output: {
5534
5524
  error: {
5535
- code: "query_invalid";
5525
+ code: "api_key_forbidden";
5536
5526
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5537
5527
  message: string;
5538
5528
  };
5539
5529
  requestId: string;
5540
5530
  };
5541
5531
  outputFormat: "json";
5542
- status: 400;
5532
+ status: 403;
5543
5533
  input: {
5544
5534
  param: {
5545
5535
  methodId: string;
@@ -5553,14 +5543,14 @@ export declare function management(options?: management.Options): import("hono/h
5553
5543
  } | {
5554
5544
  output: {
5555
5545
  error: {
5556
- code: "param_invalid";
5546
+ code: "payment_required" | "rate_limit_exceeded";
5557
5547
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5558
5548
  message: string;
5559
5549
  };
5560
5550
  requestId: string;
5561
5551
  };
5562
5552
  outputFormat: "json";
5563
- status: 400;
5553
+ status: 429;
5564
5554
  input: {
5565
5555
  param: {
5566
5556
  methodId: string;
@@ -5574,14 +5564,14 @@ export declare function management(options?: management.Options): import("hono/h
5574
5564
  } | {
5575
5565
  output: {
5576
5566
  error: {
5577
- code: "api_key_invalid" | "api_key_missing";
5567
+ code: "query_invalid";
5578
5568
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5579
5569
  message: string;
5580
5570
  };
5581
5571
  requestId: string;
5582
5572
  };
5583
5573
  outputFormat: "json";
5584
- status: 401;
5574
+ status: 400;
5585
5575
  input: {
5586
5576
  param: {
5587
5577
  methodId: string;
@@ -5595,14 +5585,14 @@ export declare function management(options?: management.Options): import("hono/h
5595
5585
  } | {
5596
5586
  output: {
5597
5587
  error: {
5598
- code: "api_key_forbidden";
5588
+ code: "upstream_error";
5599
5589
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5600
5590
  message: string;
5601
5591
  };
5602
5592
  requestId: string;
5603
5593
  };
5604
5594
  outputFormat: "json";
5605
- status: 403;
5595
+ status: 502;
5606
5596
  input: {
5607
5597
  param: {
5608
5598
  methodId: string;
@@ -5637,14 +5627,14 @@ export declare function management(options?: management.Options): import("hono/h
5637
5627
  } | {
5638
5628
  output: {
5639
5629
  error: {
5640
- code: "billing_not_found";
5630
+ code: "param_invalid";
5641
5631
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5642
5632
  message: string;
5643
5633
  };
5644
5634
  requestId: string;
5645
5635
  };
5646
5636
  outputFormat: "json";
5647
- status: 404;
5637
+ status: 400;
5648
5638
  input: {
5649
5639
  param: {
5650
5640
  methodId: string;
@@ -5658,14 +5648,14 @@ export declare function management(options?: management.Options): import("hono/h
5658
5648
  } | {
5659
5649
  output: {
5660
5650
  error: {
5661
- code: "payment_method_not_found";
5651
+ code: "billing_unconfigured";
5662
5652
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5663
5653
  message: string;
5664
5654
  };
5665
5655
  requestId: string;
5666
5656
  };
5667
5657
  outputFormat: "json";
5668
- status: 404;
5658
+ status: 501;
5669
5659
  input: {
5670
5660
  param: {
5671
5661
  methodId: string;
@@ -5678,15 +5668,25 @@ export declare function management(options?: management.Options): import("hono/h
5678
5668
  };
5679
5669
  } | {
5680
5670
  output: {
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;
5671
+ spend?: {
5672
+ amount: string;
5673
+ currency: "usd";
5674
+ period: "month";
5675
+ } | undefined;
5676
+ spendLimit?: {
5677
+ amount: string;
5678
+ currency: "usd";
5679
+ period: "month";
5680
+ } | undefined;
5681
+ status: "active" | "canceled" | "none" | "past_due";
5682
+ txFeeLimit?: {
5683
+ amount: string;
5684
+ currency: "usd";
5685
+ } | undefined;
5686
+ updatedAt?: string | undefined;
5687
5687
  };
5688
5688
  outputFormat: "json";
5689
- status: 429;
5689
+ status: 200;
5690
5690
  input: {
5691
5691
  param: {
5692
5692
  methodId: string;
@@ -5700,14 +5700,14 @@ export declare function management(options?: management.Options): import("hono/h
5700
5700
  } | {
5701
5701
  output: {
5702
5702
  error: {
5703
- code: "billing_unconfigured";
5703
+ code: "billing_not_found";
5704
5704
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5705
5705
  message: string;
5706
5706
  };
5707
5707
  requestId: string;
5708
5708
  };
5709
5709
  outputFormat: "json";
5710
- status: 501;
5710
+ status: 404;
5711
5711
  input: {
5712
5712
  param: {
5713
5713
  methodId: string;
@@ -5721,14 +5721,14 @@ export declare function management(options?: management.Options): import("hono/h
5721
5721
  } | {
5722
5722
  output: {
5723
5723
  error: {
5724
- code: "upstream_error";
5724
+ code: "payment_method_not_found";
5725
5725
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5726
5726
  message: string;
5727
5727
  };
5728
5728
  requestId: string;
5729
5729
  };
5730
5730
  outputFormat: "json";
5731
- status: 502;
5731
+ status: 404;
5732
5732
  input: {
5733
5733
  param: {
5734
5734
  methodId: string;
@@ -5744,23 +5744,16 @@ export declare function management(options?: management.Options): import("hono/h
5744
5744
  } & {
5745
5745
  "/stripe/webhook": {
5746
5746
  $post: {
5747
- output: {
5748
- received: true;
5749
- };
5750
- outputFormat: "json";
5751
- status: 200;
5752
- input: {};
5753
- } | {
5754
5747
  output: {
5755
5748
  error: {
5756
- code: "signature_invalid";
5749
+ code: "upstream_error";
5757
5750
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5758
5751
  message: string;
5759
5752
  };
5760
5753
  requestId: string;
5761
5754
  };
5762
5755
  outputFormat: "json";
5763
- status: 400;
5756
+ status: 502;
5764
5757
  input: {};
5765
5758
  } | {
5766
5759
  output: {
@@ -5777,14 +5770,21 @@ export declare function management(options?: management.Options): import("hono/h
5777
5770
  } | {
5778
5771
  output: {
5779
5772
  error: {
5780
- code: "upstream_error";
5773
+ code: "signature_invalid";
5781
5774
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5782
5775
  message: string;
5783
5776
  };
5784
5777
  requestId: string;
5785
5778
  };
5786
5779
  outputFormat: "json";
5787
- status: 502;
5780
+ status: 400;
5781
+ input: {};
5782
+ } | {
5783
+ output: {
5784
+ received: true;
5785
+ };
5786
+ outputFormat: "json";
5787
+ status: 200;
5788
5788
  input: {};
5789
5789
  };
5790
5790
  };