tapimo 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/dist/App.d.ts +34 -18
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/admin/apps/verified-tokens.d.ts +117 -117
  4. package/dist/apps/data/App.d.ts +3217 -3217
  5. package/dist/apps/data/FundingQuoteProviders.d.ts +32 -0
  6. package/dist/apps/data/FundingQuoteProviders.d.ts.map +1 -1
  7. package/dist/apps/data/FundingQuoteProviders.js +134 -1
  8. package/dist/apps/data/FundingQuoteProviders.js.map +1 -1
  9. package/dist/apps/data/routes/addresses.d.ts +206 -206
  10. package/dist/apps/data/routes/balances.d.ts +46 -46
  11. package/dist/apps/data/routes/coingecko.d.ts +169 -169
  12. package/dist/apps/data/routes/funding.d.ts +8 -2
  13. package/dist/apps/data/routes/funding.d.ts.map +1 -1
  14. package/dist/apps/data/routes/funding.js +4 -4
  15. package/dist/apps/data/routes/funding.js.map +1 -1
  16. package/dist/apps/data/routes/indexer.d.ts +34 -34
  17. package/dist/apps/data/routes/receipts.d.ts +228 -228
  18. package/dist/apps/data/routes/rpc.d.ts +31 -31
  19. package/dist/apps/data/routes/transfers.d.ts +8 -15
  20. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  21. package/dist/apps/data/routes/transfers.js +21 -27
  22. package/dist/apps/data/routes/transfers.js.map +1 -1
  23. package/dist/apps/data/routes/webhooks.d.ts +35 -35
  24. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  25. package/dist/apps/data/routes/webhooks.js +176 -42
  26. package/dist/apps/data/routes/webhooks.js.map +1 -1
  27. package/dist/apps/management/App.d.ts +982 -966
  28. package/dist/apps/management/App.d.ts.map +1 -1
  29. package/dist/apps/management/Billing.d.ts.map +1 -1
  30. package/dist/apps/management/Billing.js +5 -4
  31. package/dist/apps/management/Billing.js.map +1 -1
  32. package/dist/apps/management/routes/billing.d.ts.map +1 -1
  33. package/dist/apps/management/routes/billing.js +1 -1
  34. package/dist/apps/management/routes/billing.js.map +1 -1
  35. package/dist/apps/management/routes/invitations.d.ts +121 -121
  36. package/dist/apps/management/routes/invite-links.d.ts +174 -174
  37. package/dist/apps/management/routes/orgs.d.ts +102 -86
  38. package/dist/apps/management/routes/orgs.d.ts.map +1 -1
  39. package/dist/apps/management/routes/orgs.js +18 -1
  40. package/dist/apps/management/routes/orgs.js.map +1 -1
  41. package/dist/apps/management/routes/projects.d.ts +124 -124
  42. package/dist/apps/relay/Sponsorships.d.ts +3 -0
  43. package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
  44. package/dist/apps/relay/Sponsorships.js +15 -1
  45. package/dist/apps/relay/Sponsorships.js.map +1 -1
  46. package/dist/db/Db.d.ts.map +1 -1
  47. package/dist/db/Db.js +4 -0
  48. package/dist/db/Db.js.map +1 -1
  49. package/dist/db/Schema.js +1 -1
  50. package/dist/db/Schema.js.map +1 -1
  51. package/dist/db/tables/organizations.d.ts +6 -0
  52. package/dist/db/tables/organizations.d.ts.map +1 -1
  53. package/dist/db/tables/organizations.js +26 -0
  54. package/dist/db/tables/organizations.js.map +1 -1
  55. package/dist/db/tables/requestUsage.d.ts +2 -11
  56. package/dist/db/tables/requestUsage.d.ts.map +1 -1
  57. package/dist/db/tables/requestUsage.js +1 -20
  58. package/dist/db/tables/requestUsage.js.map +1 -1
  59. package/dist/db/tables/sponsoredTransactions.d.ts +2 -1
  60. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  61. package/dist/db/tables/sponsoredTransactions.js +46 -8
  62. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  63. package/dist/internal/Auth.d.ts +4 -0
  64. package/dist/internal/Auth.d.ts.map +1 -1
  65. package/dist/internal/Auth.js +7 -8
  66. package/dist/internal/Auth.js.map +1 -1
  67. package/dist/internal/Cache.d.ts.map +1 -1
  68. package/dist/internal/Cache.js +9 -1
  69. package/dist/internal/Cache.js.map +1 -1
  70. package/dist/internal/EdgeCache.d.ts.map +1 -1
  71. package/dist/internal/EdgeCache.js +12 -3
  72. package/dist/internal/EdgeCache.js.map +1 -1
  73. package/dist/internal/FundingQuotes.d.ts +16 -10
  74. package/dist/internal/FundingQuotes.d.ts.map +1 -1
  75. package/dist/internal/FundingQuotes.js +9 -0
  76. package/dist/internal/FundingQuotes.js.map +1 -1
  77. package/dist/internal/RateLimit.d.ts +2 -0
  78. package/dist/internal/RateLimit.d.ts.map +1 -1
  79. package/dist/internal/RateLimit.js +4 -4
  80. package/dist/internal/RateLimit.js.map +1 -1
  81. package/package.json +6 -1
  82. package/src/App.test.ts +2 -2
  83. package/src/Client.test-d.ts +28 -2
  84. package/src/apps/data/FundingQuoteProviders.test.ts +184 -0
  85. package/src/apps/data/FundingQuoteProviders.ts +185 -1
  86. package/src/apps/data/routes/funding.test.ts +7 -0
  87. package/src/apps/data/routes/funding.ts +4 -4
  88. package/src/apps/data/routes/tokens.test.ts +54 -0
  89. package/src/apps/data/routes/transfers.test.ts +73 -1
  90. package/src/apps/data/routes/transfers.ts +24 -30
  91. package/src/apps/data/routes/webhooks.test.ts +203 -0
  92. package/src/apps/data/routes/webhooks.ts +191 -54
  93. package/src/apps/management/Billing.test.ts +50 -1
  94. package/src/apps/management/Billing.ts +5 -4
  95. package/src/apps/management/routes/billing.ts +6 -1
  96. package/src/apps/management/routes/orgs.ts +19 -1
  97. package/src/apps/relay/Sponsorships.ts +24 -1
  98. package/src/db/Db.ts +4 -0
  99. package/src/db/Schema.ts +1 -1
  100. package/src/db/tables/organizations.test.ts +30 -0
  101. package/src/db/tables/organizations.ts +28 -0
  102. package/src/db/tables/requestUsage.ts +3 -23
  103. package/src/db/tables/sponsoredTransactions.test.ts +41 -0
  104. package/src/db/tables/sponsoredTransactions.ts +46 -7
  105. package/src/internal/Auth.test.ts +63 -10
  106. package/src/internal/Auth.ts +11 -9
  107. package/src/internal/Cache.test.ts +19 -0
  108. package/src/internal/Cache.ts +13 -1
  109. package/src/internal/EdgeCache.test.ts +40 -0
  110. package/src/internal/EdgeCache.ts +11 -3
  111. package/src/internal/FundingQuotes.test.ts +33 -0
  112. package/src/internal/FundingQuotes.ts +9 -0
  113. package/src/internal/RateLimit.test.ts +12 -0
  114. package/src/internal/RateLimit.ts +4 -4
@@ -78,14 +78,15 @@ export declare function management(options?: management.Options): import("hono/h
78
78
  "/v1/me": {
79
79
  $get: {
80
80
  output: {
81
- address?: string | undefined;
82
- createdAt: string;
83
- email?: string | undefined;
84
- id: string;
85
- updatedAt: string;
81
+ error: {
82
+ code: "upstream_error";
83
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
84
+ message: string;
85
+ };
86
+ requestId: string;
86
87
  };
87
88
  outputFormat: "json";
88
- status: 200;
89
+ status: 502;
89
90
  input: {};
90
91
  } | {
91
92
  output: {
@@ -137,32 +138,20 @@ export declare function management(options?: management.Options): import("hono/h
137
138
  input: {};
138
139
  } | {
139
140
  output: {
140
- error: {
141
- code: "upstream_error";
142
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
143
- message: string;
144
- };
145
- requestId: string;
141
+ address?: string | undefined;
142
+ createdAt: string;
143
+ email?: string | undefined;
144
+ id: string;
145
+ updatedAt: string;
146
146
  };
147
147
  outputFormat: "json";
148
- status: 502;
148
+ status: 200;
149
149
  input: {};
150
150
  };
151
151
  };
152
152
  }, "/"> | import("hono/types").MergeSchemaPath<{
153
153
  "/v1/scopes": {
154
154
  $get: {
155
- output: {
156
- data: {
157
- description: string;
158
- scope: string;
159
- selfServe: boolean;
160
- }[];
161
- };
162
- outputFormat: "json";
163
- status: 200;
164
- input: {};
165
- } | {
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: "upstream_error";
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: 502;
251
228
  input: {
252
229
  param: {
253
230
  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_invalid" | "api_key_missing";
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: 401;
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: "api_key_forbidden";
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: 403;
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: "payment_required" | "rate_limit_exceeded";
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: 429;
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: "query_invalid";
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: 400;
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: "upstream_error";
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: 502;
497
495
  input: {
498
496
  param: {
499
497
  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_invalid" | "api_key_missing";
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: 401;
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: "api_key_forbidden";
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: 403;
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: "payment_required" | "rate_limit_exceeded";
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: 429;
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: "query_invalid";
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: 400;
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: "upstream_error";
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: 502;
718
717
  input: {
719
718
  param: {
720
719
  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_invalid" | "api_key_missing";
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: 401;
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: "api_key_forbidden";
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: 403;
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: "payment_required" | "rate_limit_exceeded";
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: 429;
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: "upstream_error";
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: 502;
849
850
  input: {
850
851
  param: {
851
852
  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_invalid" | "api_key_missing";
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: 401;
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: "api_key_forbidden";
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: 403;
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: "payment_required" | "rate_limit_exceeded";
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: 429;
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: "body_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: "param_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;
@@ -1072,10 +1072,15 @@ export declare function management(options?: management.Options): import("hono/h
1072
1072
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/members/:userId{usr_[A-Za-z0-9_-]+}": {
1073
1073
  $delete: {
1074
1074
  output: {
1075
- userId: string;
1075
+ error: {
1076
+ code: "upstream_error";
1077
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1078
+ message: string;
1079
+ };
1080
+ requestId: string;
1076
1081
  };
1077
1082
  outputFormat: "json";
1078
- status: 200;
1083
+ status: 502;
1079
1084
  input: {
1080
1085
  param: {
1081
1086
  orgId: string;
@@ -1102,14 +1107,14 @@ export declare function management(options?: management.Options): import("hono/h
1102
1107
  } | {
1103
1108
  output: {
1104
1109
  error: {
1105
- code: "param_invalid";
1110
+ code: "api_key_invalid" | "api_key_missing";
1106
1111
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1107
1112
  message: string;
1108
1113
  };
1109
1114
  requestId: string;
1110
1115
  };
1111
1116
  outputFormat: "json";
1112
- status: 400;
1117
+ status: 401;
1113
1118
  input: {
1114
1119
  param: {
1115
1120
  orgId: string;
@@ -1119,14 +1124,14 @@ export declare function management(options?: management.Options): import("hono/h
1119
1124
  } | {
1120
1125
  output: {
1121
1126
  error: {
1122
- code: "api_key_invalid" | "api_key_missing";
1127
+ code: "api_key_forbidden";
1123
1128
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1124
1129
  message: string;
1125
1130
  };
1126
1131
  requestId: string;
1127
1132
  };
1128
1133
  outputFormat: "json";
1129
- status: 401;
1134
+ status: 403;
1130
1135
  input: {
1131
1136
  param: {
1132
1137
  orgId: string;
@@ -1136,14 +1141,14 @@ export declare function management(options?: management.Options): import("hono/h
1136
1141
  } | {
1137
1142
  output: {
1138
1143
  error: {
1139
- code: "api_key_forbidden";
1144
+ code: "payment_required" | "rate_limit_exceeded";
1140
1145
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1141
1146
  message: string;
1142
1147
  };
1143
1148
  requestId: string;
1144
1149
  };
1145
1150
  outputFormat: "json";
1146
- status: 403;
1151
+ status: 429;
1147
1152
  input: {
1148
1153
  param: {
1149
1154
  orgId: string;
@@ -1153,14 +1158,14 @@ export declare function management(options?: management.Options): import("hono/h
1153
1158
  } | {
1154
1159
  output: {
1155
1160
  error: {
1156
- code: "forbidden";
1161
+ code: "organization_not_found";
1157
1162
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1158
1163
  message: string;
1159
1164
  };
1160
1165
  requestId: string;
1161
1166
  };
1162
1167
  outputFormat: "json";
1163
- status: 403;
1168
+ status: 404;
1164
1169
  input: {
1165
1170
  param: {
1166
1171
  orgId: string;
@@ -1170,14 +1175,14 @@ export declare function management(options?: management.Options): import("hono/h
1170
1175
  } | {
1171
1176
  output: {
1172
1177
  error: {
1173
- code: "organization_not_found";
1178
+ code: "forbidden";
1174
1179
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1175
1180
  message: string;
1176
1181
  };
1177
1182
  requestId: string;
1178
1183
  };
1179
1184
  outputFormat: "json";
1180
- status: 404;
1185
+ status: 403;
1181
1186
  input: {
1182
1187
  param: {
1183
1188
  orgId: string;
@@ -1187,14 +1192,14 @@ export declare function management(options?: management.Options): import("hono/h
1187
1192
  } | {
1188
1193
  output: {
1189
1194
  error: {
1190
- code: "member_not_found";
1195
+ code: "param_invalid";
1191
1196
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1192
1197
  message: string;
1193
1198
  };
1194
1199
  requestId: string;
1195
1200
  };
1196
1201
  outputFormat: "json";
1197
- status: 404;
1202
+ status: 400;
1198
1203
  input: {
1199
1204
  param: {
1200
1205
  orgId: string;
@@ -1221,14 +1226,14 @@ export declare function management(options?: management.Options): import("hono/h
1221
1226
  } | {
1222
1227
  output: {
1223
1228
  error: {
1224
- code: "payment_required" | "rate_limit_exceeded";
1229
+ code: "member_not_found";
1225
1230
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1226
1231
  message: string;
1227
1232
  };
1228
1233
  requestId: string;
1229
1234
  };
1230
1235
  outputFormat: "json";
1231
- status: 429;
1236
+ status: 404;
1232
1237
  input: {
1233
1238
  param: {
1234
1239
  orgId: string;
@@ -1237,15 +1242,10 @@ export declare function management(options?: management.Options): import("hono/h
1237
1242
  };
1238
1243
  } | {
1239
1244
  output: {
1240
- error: {
1241
- code: "upstream_error";
1242
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1243
- message: string;
1244
- };
1245
- requestId: string;
1245
+ userId: string;
1246
1246
  };
1247
1247
  outputFormat: "json";
1248
- status: 502;
1248
+ status: 200;
1249
1249
  input: {
1250
1250
  param: {
1251
1251
  orgId: string;
@@ -1258,20 +1258,15 @@ export declare function management(options?: management.Options): import("hono/h
1258
1258
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
1259
1259
  $post: {
1260
1260
  output: {
1261
- createdAt: string;
1262
- createdBy?: string | undefined;
1263
- environment: "production" | "sandbox";
1264
- expiresAt?: string | undefined;
1265
- id: string;
1266
- name?: string | undefined;
1267
- orgId: string;
1268
- projectId?: string | undefined;
1269
- scopes: string[];
1270
- tokenLast4: string;
1271
- token: string;
1261
+ error: {
1262
+ code: "upstream_error";
1263
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1264
+ message: string;
1265
+ };
1266
+ requestId: string;
1272
1267
  };
1273
1268
  outputFormat: "json";
1274
- status: 200;
1269
+ status: 502;
1275
1270
  input: {
1276
1271
  param: {
1277
1272
  orgId: string;
@@ -1310,14 +1305,14 @@ export declare function management(options?: management.Options): import("hono/h
1310
1305
  } | {
1311
1306
  output: {
1312
1307
  error: {
1313
- code: "body_invalid";
1308
+ code: "api_key_invalid" | "api_key_missing";
1314
1309
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1315
1310
  message: string;
1316
1311
  };
1317
1312
  requestId: string;
1318
1313
  };
1319
1314
  outputFormat: "json";
1320
- status: 400;
1315
+ status: 401;
1321
1316
  input: {
1322
1317
  param: {
1323
1318
  orgId: string;
@@ -1333,14 +1328,14 @@ export declare function management(options?: management.Options): import("hono/h
1333
1328
  } | {
1334
1329
  output: {
1335
1330
  error: {
1336
- code: "param_invalid";
1331
+ code: "forbidden";
1337
1332
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1338
1333
  message: string;
1339
1334
  };
1340
1335
  requestId: string;
1341
1336
  };
1342
1337
  outputFormat: "json";
1343
- status: 400;
1338
+ status: 403;
1344
1339
  input: {
1345
1340
  param: {
1346
1341
  orgId: string;
@@ -1356,14 +1351,14 @@ export declare function management(options?: management.Options): import("hono/h
1356
1351
  } | {
1357
1352
  output: {
1358
1353
  error: {
1359
- code: "api_key_invalid" | "api_key_missing";
1354
+ code: "organization_not_found" | "project_not_found";
1360
1355
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1361
1356
  message: string;
1362
1357
  };
1363
1358
  requestId: string;
1364
1359
  };
1365
1360
  outputFormat: "json";
1366
- status: 401;
1361
+ status: 404;
1367
1362
  input: {
1368
1363
  param: {
1369
1364
  orgId: string;
@@ -1379,14 +1374,14 @@ export declare function management(options?: management.Options): import("hono/h
1379
1374
  } | {
1380
1375
  output: {
1381
1376
  error: {
1382
- code: "forbidden";
1377
+ code: "body_invalid";
1383
1378
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1384
1379
  message: string;
1385
1380
  };
1386
1381
  requestId: string;
1387
1382
  };
1388
1383
  outputFormat: "json";
1389
- status: 403;
1384
+ status: 400;
1390
1385
  input: {
1391
1386
  param: {
1392
1387
  orgId: string;
@@ -1402,14 +1397,14 @@ export declare function management(options?: management.Options): import("hono/h
1402
1397
  } | {
1403
1398
  output: {
1404
1399
  error: {
1405
- code: "scope_not_issuable";
1400
+ code: "param_invalid";
1406
1401
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1407
1402
  message: string;
1408
1403
  };
1409
1404
  requestId: string;
1410
1405
  };
1411
1406
  outputFormat: "json";
1412
- status: 403;
1407
+ status: 400;
1413
1408
  input: {
1414
1409
  param: {
1415
1410
  orgId: string;
@@ -1425,7 +1420,7 @@ export declare function management(options?: management.Options): import("hono/h
1425
1420
  } | {
1426
1421
  output: {
1427
1422
  error: {
1428
- code: "organization_not_found" | "project_not_found";
1423
+ code: "api_keys_not_enabled";
1429
1424
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1430
1425
  message: string;
1431
1426
  };
@@ -1448,14 +1443,14 @@ export declare function management(options?: management.Options): import("hono/h
1448
1443
  } | {
1449
1444
  output: {
1450
1445
  error: {
1451
- code: "api_keys_not_enabled";
1446
+ code: "scope_not_issuable";
1452
1447
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1453
1448
  message: string;
1454
1449
  };
1455
1450
  requestId: string;
1456
1451
  };
1457
1452
  outputFormat: "json";
1458
- status: 404;
1453
+ status: 403;
1459
1454
  input: {
1460
1455
  param: {
1461
1456
  orgId: string;
@@ -1470,15 +1465,20 @@ export declare function management(options?: management.Options): import("hono/h
1470
1465
  };
1471
1466
  } | {
1472
1467
  output: {
1473
- error: {
1474
- code: "upstream_error";
1475
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1476
- message: string;
1477
- };
1478
- requestId: string;
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;
1479
1479
  };
1480
1480
  outputFormat: "json";
1481
- status: 502;
1481
+ status: 200;
1482
1482
  input: {
1483
1483
  param: {
1484
1484
  orgId: string;
@@ -1496,43 +1496,16 @@ export declare function management(options?: management.Options): import("hono/h
1496
1496
  } & {
1497
1497
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
1498
1498
  $get: {
1499
- output: {
1500
- data: {
1501
- createdAt: string;
1502
- createdBy?: string | undefined;
1503
- environment: "production" | "sandbox";
1504
- expiresAt?: string | undefined;
1505
- id: string;
1506
- name?: string | undefined;
1507
- orgId: string;
1508
- projectId?: string | undefined;
1509
- scopes: string[];
1510
- tokenLast4: string;
1511
- }[];
1512
- };
1513
- outputFormat: "json";
1514
- status: 200;
1515
- input: {
1516
- param: {
1517
- orgId: string;
1518
- projectId: string;
1519
- };
1520
- } & {
1521
- query?: {
1522
- environment?: string | string[];
1523
- } | undefined;
1524
- };
1525
- } | {
1526
1499
  output: {
1527
1500
  error: {
1528
- code: "api_key_malformed";
1501
+ code: "upstream_error";
1529
1502
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1530
1503
  message: string;
1531
1504
  };
1532
1505
  requestId: string;
1533
1506
  };
1534
1507
  outputFormat: "json";
1535
- status: 400;
1508
+ status: 502;
1536
1509
  input: {
1537
1510
  param: {
1538
1511
  orgId: string;
@@ -1546,7 +1519,7 @@ 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_malformed";
1550
1523
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1551
1524
  message: string;
1552
1525
  };
@@ -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_invalid" | "api_key_missing";
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: 401;
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: "api_key_forbidden";
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: 403;
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: "payment_required" | "rate_limit_exceeded";
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: 429;
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: "query_invalid";
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: 400;
1641
1614
  input: {
1642
1615
  param: {
1643
1616
  orgId: string;
@@ -1651,7 +1624,7 @@ 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: "organization_not_found" | "project_not_found";
1655
1628
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1656
1629
  message: string;
1657
1630
  };
@@ -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: "param_invalid";
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: 400;
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,23 +1704,28 @@ 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
- code: "api_key_malformed";
1721
+ code: "upstream_error";
1748
1722
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1749
1723
  message: string;
1750
1724
  };
1751
1725
  requestId: string;
1752
1726
  };
1753
1727
  outputFormat: "json";
1754
- status: 400;
1728
+ status: 502;
1755
1729
  input: {
1756
1730
  param: {
1757
1731
  orgId: string;
@@ -1764,7 +1738,7 @@ 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_malformed";
1768
1742
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1769
1743
  message: string;
1770
1744
  };
@@ -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_invalid" | "api_key_missing";
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: 401;
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: "api_key_forbidden";
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: 403;
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: "payment_required" | "rate_limit_exceeded";
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: 429;
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: "query_invalid";
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: 400;
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,14 @@ 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;
1915
1889
  input: {
1916
1890
  param: {
1917
1891
  orgId: string;
@@ -1921,34 +1895,47 @@ export declare function management(options?: management.Options): import("hono/h
1921
1895
  environment?: string | string[];
1922
1896
  } | undefined;
1923
1897
  };
1924
- };
1925
- };
1926
- } & {
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
- $delete: {
1898
+ } | {
1929
1899
  output: {
1930
- id: string;
1931
- };
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
+ };
1932
1913
  outputFormat: "json";
1933
1914
  status: 200;
1934
1915
  input: {
1935
1916
  param: {
1936
- keyId: string;
1937
1917
  orgId: string;
1938
- projectId: string;
1939
1918
  };
1919
+ } & {
1920
+ query?: {
1921
+ environment?: string | string[];
1922
+ } | undefined;
1940
1923
  };
1941
- } | {
1924
+ };
1925
+ };
1926
+ } & {
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
+ $delete: {
1942
1929
  output: {
1943
1930
  error: {
1944
- code: "api_key_malformed";
1931
+ code: "upstream_error";
1945
1932
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1946
1933
  message: string;
1947
1934
  };
1948
1935
  requestId: string;
1949
1936
  };
1950
1937
  outputFormat: "json";
1951
- status: 400;
1938
+ status: 502;
1952
1939
  input: {
1953
1940
  param: {
1954
1941
  keyId: string;
@@ -1959,7 +1946,7 @@ export declare function management(options?: management.Options): import("hono/h
1959
1946
  } | {
1960
1947
  output: {
1961
1948
  error: {
1962
- code: "param_invalid";
1949
+ code: "api_key_malformed";
1963
1950
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1964
1951
  message: string;
1965
1952
  };
@@ -2013,14 +2000,14 @@ export declare function management(options?: management.Options): import("hono/h
2013
2000
  } | {
2014
2001
  output: {
2015
2002
  error: {
2016
- code: "organization_not_found" | "project_not_found";
2003
+ code: "payment_required" | "rate_limit_exceeded";
2017
2004
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2018
2005
  message: string;
2019
2006
  };
2020
2007
  requestId: string;
2021
2008
  };
2022
2009
  outputFormat: "json";
2023
- status: 404;
2010
+ status: 429;
2024
2011
  input: {
2025
2012
  param: {
2026
2013
  keyId: string;
@@ -2031,7 +2018,7 @@ export declare function management(options?: management.Options): import("hono/h
2031
2018
  } | {
2032
2019
  output: {
2033
2020
  error: {
2034
- code: "api_keys_not_enabled";
2021
+ code: "organization_not_found" | "project_not_found";
2035
2022
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2036
2023
  message: string;
2037
2024
  };
@@ -2049,14 +2036,14 @@ export declare function management(options?: management.Options): import("hono/h
2049
2036
  } | {
2050
2037
  output: {
2051
2038
  error: {
2052
- code: "api_key_not_found";
2039
+ code: "param_invalid";
2053
2040
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2054
2041
  message: string;
2055
2042
  };
2056
2043
  requestId: string;
2057
2044
  };
2058
2045
  outputFormat: "json";
2059
- status: 404;
2046
+ status: 400;
2060
2047
  input: {
2061
2048
  param: {
2062
2049
  keyId: string;
@@ -2067,14 +2054,14 @@ export declare function management(options?: management.Options): import("hono/h
2067
2054
  } | {
2068
2055
  output: {
2069
2056
  error: {
2070
- code: "payment_required" | "rate_limit_exceeded";
2057
+ code: "api_keys_not_enabled";
2071
2058
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2072
2059
  message: string;
2073
2060
  };
2074
2061
  requestId: string;
2075
2062
  };
2076
2063
  outputFormat: "json";
2077
- status: 429;
2064
+ status: 404;
2078
2065
  input: {
2079
2066
  param: {
2080
2067
  keyId: string;
@@ -2085,14 +2072,27 @@ export declare function management(options?: management.Options): import("hono/h
2085
2072
  } | {
2086
2073
  output: {
2087
2074
  error: {
2088
- code: "upstream_error";
2075
+ code: "api_key_not_found";
2089
2076
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2090
2077
  message: string;
2091
2078
  };
2092
2079
  requestId: string;
2093
2080
  };
2094
2081
  outputFormat: "json";
2095
- status: 502;
2082
+ status: 404;
2083
+ input: {
2084
+ param: {
2085
+ keyId: string;
2086
+ orgId: string;
2087
+ projectId: string;
2088
+ };
2089
+ };
2090
+ } | {
2091
+ output: {
2092
+ id: string;
2093
+ };
2094
+ outputFormat: "json";
2095
+ status: 200;
2096
2096
  input: {
2097
2097
  param: {
2098
2098
  keyId: string;
@@ -2106,16 +2106,15 @@ export declare function management(options?: management.Options): import("hono/h
2106
2106
  "/v1/orgs": {
2107
2107
  $get: {
2108
2108
  output: {
2109
- data: {
2110
- createdAt: string;
2111
- id: string;
2112
- name: string;
2113
- role?: "admin" | "member" | "owner" | undefined;
2114
- updatedAt: string;
2115
- }[];
2109
+ error: {
2110
+ code: "upstream_error";
2111
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2112
+ message: string;
2113
+ };
2114
+ requestId: string;
2116
2115
  };
2117
2116
  outputFormat: "json";
2118
- status: 200;
2117
+ status: 502;
2119
2118
  input: {};
2120
2119
  } | {
2121
2120
  output: {
@@ -2167,46 +2166,32 @@ export declare function management(options?: management.Options): import("hono/h
2167
2166
  input: {};
2168
2167
  } | {
2169
2168
  output: {
2170
- error: {
2171
- code: "upstream_error";
2172
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2173
- message: string;
2174
- };
2175
- requestId: string;
2169
+ data: {
2170
+ createdAt: string;
2171
+ id: string;
2172
+ name: string;
2173
+ role?: "admin" | "member" | "owner" | undefined;
2174
+ updatedAt: string;
2175
+ }[];
2176
2176
  };
2177
2177
  outputFormat: "json";
2178
- status: 502;
2178
+ status: 200;
2179
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
- code: "api_key_malformed";
2187
+ code: "upstream_error";
2203
2188
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2204
2189
  message: string;
2205
2190
  };
2206
2191
  requestId: string;
2207
2192
  };
2208
2193
  outputFormat: "json";
2209
- status: 400;
2194
+ status: 502;
2210
2195
  input: {
2211
2196
  json: {
2212
2197
  name: string;
@@ -2215,7 +2200,7 @@ 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_malformed";
2219
2204
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2220
2205
  message: string;
2221
2206
  };
@@ -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: "body_invalid";
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: 400;
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,22 +2390,22 @@ 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
- code: "api_key_malformed";
2401
+ code: "upstream_error";
2421
2402
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2422
2403
  message: string;
2423
2404
  };
2424
2405
  requestId: string;
2425
2406
  };
2426
2407
  outputFormat: "json";
2427
- status: 400;
2408
+ status: 502;
2428
2409
  input: {
2429
2410
  param: {
2430
2411
  orgId: string;
@@ -2437,7 +2418,7 @@ 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_malformed";
2441
2422
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2442
2423
  message: string;
2443
2424
  };
@@ -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_invalid" | "api_key_missing";
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: 401;
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: "api_key_forbidden";
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: 403;
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: "payment_required" | "rate_limit_exceeded";
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: 429;
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: "body_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: "param_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,18 +2569,26 @@ 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
- code: "api_key_malformed";
2584
+ code: "upstream_error";
2596
2585
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2597
2586
  message: string;
2598
2587
  };
2599
2588
  requestId: string;
2600
2589
  };
2601
2590
  outputFormat: "json";
2602
- status: 400;
2591
+ status: 502;
2603
2592
  input: {
2604
2593
  param: {
2605
2594
  orgId: string;
@@ -2608,7 +2597,7 @@ 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_malformed";
2612
2601
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2613
2602
  message: string;
2614
2603
  };
@@ -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: "payment_required" | "rate_limit_exceeded";
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: 429;
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,36 +2677,14 @@ 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;
2699
- input: {
2700
- param: {
2701
- orgId: string;
2702
- };
2703
- };
2704
- };
2705
- };
2706
- }, "/"> | import("hono/types").MergeSchemaPath<{
2707
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects": {
2708
- $get: {
2709
- output: {
2710
- data: {
2711
- createdAt: string;
2712
- environments: ("production" | "sandbox")[];
2713
- id: string;
2714
- name: string;
2715
- orgId: string;
2716
- updatedAt: string;
2717
- }[];
2718
- };
2719
- outputFormat: "json";
2720
- status: 200;
2687
+ status: 400;
2721
2688
  input: {
2722
2689
  param: {
2723
2690
  orgId: string;
@@ -2726,14 +2693,14 @@ export declare function management(options?: management.Options): import("hono/h
2726
2693
  } | {
2727
2694
  output: {
2728
2695
  error: {
2729
- code: "api_key_malformed";
2696
+ code: "sponsorships_unreported";
2730
2697
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2731
2698
  message: string;
2732
2699
  };
2733
2700
  requestId: string;
2734
2701
  };
2735
2702
  outputFormat: "json";
2736
- status: 400;
2703
+ status: 409;
2737
2704
  input: {
2738
2705
  param: {
2739
2706
  orgId: string;
@@ -2741,8 +2708,39 @@ export declare function management(options?: management.Options): import("hono/h
2741
2708
  };
2742
2709
  } | {
2743
2710
  output: {
2744
- error: {
2745
- code: "param_invalid";
2711
+ id: string;
2712
+ };
2713
+ outputFormat: "json";
2714
+ status: 200;
2715
+ input: {
2716
+ param: {
2717
+ orgId: string;
2718
+ };
2719
+ };
2720
+ };
2721
+ };
2722
+ }, "/"> | import("hono/types").MergeSchemaPath<{
2723
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects": {
2724
+ $get: {
2725
+ output: {
2726
+ error: {
2727
+ code: "upstream_error";
2728
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2729
+ message: string;
2730
+ };
2731
+ requestId: string;
2732
+ };
2733
+ outputFormat: "json";
2734
+ status: 502;
2735
+ input: {
2736
+ param: {
2737
+ orgId: string;
2738
+ };
2739
+ };
2740
+ } | {
2741
+ output: {
2742
+ error: {
2743
+ code: "api_key_malformed";
2746
2744
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2747
2745
  message: string;
2748
2746
  };
@@ -2790,14 +2788,14 @@ export declare function management(options?: management.Options): import("hono/h
2790
2788
  } | {
2791
2789
  output: {
2792
2790
  error: {
2793
- code: "organization_not_found";
2791
+ code: "payment_required" | "rate_limit_exceeded";
2794
2792
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2795
2793
  message: string;
2796
2794
  };
2797
2795
  requestId: string;
2798
2796
  };
2799
2797
  outputFormat: "json";
2800
- status: 404;
2798
+ status: 429;
2801
2799
  input: {
2802
2800
  param: {
2803
2801
  orgId: string;
@@ -2806,14 +2804,14 @@ export declare function management(options?: management.Options): import("hono/h
2806
2804
  } | {
2807
2805
  output: {
2808
2806
  error: {
2809
- code: "payment_required" | "rate_limit_exceeded";
2807
+ code: "organization_not_found";
2810
2808
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2811
2809
  message: string;
2812
2810
  };
2813
2811
  requestId: string;
2814
2812
  };
2815
2813
  outputFormat: "json";
2816
- status: 429;
2814
+ status: 404;
2817
2815
  input: {
2818
2816
  param: {
2819
2817
  orgId: string;
@@ -2822,31 +2820,29 @@ export declare function management(options?: management.Options): import("hono/h
2822
2820
  } | {
2823
2821
  output: {
2824
2822
  error: {
2825
- code: "upstream_error";
2823
+ code: "param_invalid";
2826
2824
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2827
2825
  message: string;
2828
2826
  };
2829
2827
  requestId: string;
2830
2828
  };
2831
2829
  outputFormat: "json";
2832
- status: 502;
2830
+ status: 400;
2833
2831
  input: {
2834
2832
  param: {
2835
2833
  orgId: string;
2836
2834
  };
2837
2835
  };
2838
- };
2839
- };
2840
- } & {
2841
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects": {
2842
- $post: {
2836
+ } | {
2843
2837
  output: {
2844
- createdAt: string;
2845
- environments: ("production" | "sandbox")[];
2846
- id: string;
2847
- name: string;
2848
- orgId: string;
2849
- updatedAt: string;
2838
+ data: {
2839
+ createdAt: string;
2840
+ environments: ("production" | "sandbox")[];
2841
+ id: string;
2842
+ name: string;
2843
+ orgId: string;
2844
+ updatedAt: string;
2845
+ }[];
2850
2846
  };
2851
2847
  outputFormat: "json";
2852
2848
  status: 200;
@@ -2854,22 +2850,22 @@ export declare function management(options?: management.Options): import("hono/h
2854
2850
  param: {
2855
2851
  orgId: string;
2856
2852
  };
2857
- } & {
2858
- json: {
2859
- name: string;
2860
- };
2861
2853
  };
2862
- } | {
2854
+ };
2855
+ };
2856
+ } & {
2857
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects": {
2858
+ $post: {
2863
2859
  output: {
2864
2860
  error: {
2865
- code: "api_key_malformed";
2861
+ code: "upstream_error";
2866
2862
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2867
2863
  message: string;
2868
2864
  };
2869
2865
  requestId: string;
2870
2866
  };
2871
2867
  outputFormat: "json";
2872
- status: 400;
2868
+ status: 502;
2873
2869
  input: {
2874
2870
  param: {
2875
2871
  orgId: string;
@@ -2882,7 +2878,7 @@ export declare function management(options?: management.Options): import("hono/h
2882
2878
  } | {
2883
2879
  output: {
2884
2880
  error: {
2885
- code: "body_invalid";
2881
+ code: "api_key_malformed";
2886
2882
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2887
2883
  message: string;
2888
2884
  };
@@ -2902,14 +2898,14 @@ export declare function management(options?: management.Options): import("hono/h
2902
2898
  } | {
2903
2899
  output: {
2904
2900
  error: {
2905
- code: "param_invalid";
2901
+ code: "api_key_invalid" | "api_key_missing";
2906
2902
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2907
2903
  message: string;
2908
2904
  };
2909
2905
  requestId: string;
2910
2906
  };
2911
2907
  outputFormat: "json";
2912
- status: 400;
2908
+ status: 401;
2913
2909
  input: {
2914
2910
  param: {
2915
2911
  orgId: string;
@@ -2922,14 +2918,14 @@ export declare function management(options?: management.Options): import("hono/h
2922
2918
  } | {
2923
2919
  output: {
2924
2920
  error: {
2925
- code: "api_key_invalid" | "api_key_missing";
2921
+ code: "api_key_forbidden";
2926
2922
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2927
2923
  message: string;
2928
2924
  };
2929
2925
  requestId: string;
2930
2926
  };
2931
2927
  outputFormat: "json";
2932
- status: 401;
2928
+ status: 403;
2933
2929
  input: {
2934
2930
  param: {
2935
2931
  orgId: string;
@@ -2942,14 +2938,14 @@ export declare function management(options?: management.Options): import("hono/h
2942
2938
  } | {
2943
2939
  output: {
2944
2940
  error: {
2945
- code: "api_key_forbidden";
2941
+ code: "payment_required" | "rate_limit_exceeded";
2946
2942
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2947
2943
  message: string;
2948
2944
  };
2949
2945
  requestId: string;
2950
2946
  };
2951
2947
  outputFormat: "json";
2952
- status: 403;
2948
+ status: 429;
2953
2949
  input: {
2954
2950
  param: {
2955
2951
  orgId: string;
@@ -2982,14 +2978,14 @@ export declare function management(options?: management.Options): import("hono/h
2982
2978
  } | {
2983
2979
  output: {
2984
2980
  error: {
2985
- code: "payment_required" | "rate_limit_exceeded";
2981
+ code: "body_invalid";
2986
2982
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2987
2983
  message: string;
2988
2984
  };
2989
2985
  requestId: string;
2990
2986
  };
2991
2987
  outputFormat: "json";
2992
- status: 429;
2988
+ status: 400;
2993
2989
  input: {
2994
2990
  param: {
2995
2991
  orgId: string;
@@ -3002,14 +2998,14 @@ export declare function management(options?: management.Options): import("hono/h
3002
2998
  } | {
3003
2999
  output: {
3004
3000
  error: {
3005
- code: "upstream_error";
3001
+ code: "param_invalid";
3006
3002
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3007
3003
  message: string;
3008
3004
  };
3009
3005
  requestId: string;
3010
3006
  };
3011
3007
  outputFormat: "json";
3012
- status: 502;
3008
+ status: 400;
3013
3009
  input: {
3014
3010
  param: {
3015
3011
  orgId: string;
@@ -3019,11 +3015,7 @@ export declare function management(options?: management.Options): import("hono/h
3019
3015
  name: string;
3020
3016
  };
3021
3017
  };
3022
- };
3023
- };
3024
- } & {
3025
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
3026
- $get: {
3018
+ } | {
3027
3019
  output: {
3028
3020
  createdAt: string;
3029
3021
  environments: ("production" | "sandbox")[];
@@ -3037,10 +3029,17 @@ export declare function management(options?: management.Options): import("hono/h
3037
3029
  input: {
3038
3030
  param: {
3039
3031
  orgId: string;
3040
- projectId: string;
3032
+ };
3033
+ } & {
3034
+ json: {
3035
+ name: string;
3041
3036
  };
3042
3037
  };
3043
- } | {
3038
+ };
3039
+ };
3040
+ } & {
3041
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
3042
+ $get: {
3044
3043
  output: {
3045
3044
  error: {
3046
3045
  code: "api_key_malformed";
@@ -3060,14 +3059,14 @@ export declare function management(options?: management.Options): import("hono/h
3060
3059
  } | {
3061
3060
  output: {
3062
3061
  error: {
3063
- code: "param_invalid";
3062
+ code: "api_key_invalid" | "api_key_missing";
3064
3063
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3065
3064
  message: string;
3066
3065
  };
3067
3066
  requestId: string;
3068
3067
  };
3069
3068
  outputFormat: "json";
3070
- status: 400;
3069
+ status: 401;
3071
3070
  input: {
3072
3071
  param: {
3073
3072
  orgId: string;
@@ -3077,14 +3076,14 @@ export declare function management(options?: management.Options): import("hono/h
3077
3076
  } | {
3078
3077
  output: {
3079
3078
  error: {
3080
- code: "api_key_invalid" | "api_key_missing";
3079
+ code: "api_key_forbidden";
3081
3080
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3082
3081
  message: string;
3083
3082
  };
3084
3083
  requestId: string;
3085
3084
  };
3086
3085
  outputFormat: "json";
3087
- status: 401;
3086
+ status: 403;
3088
3087
  input: {
3089
3088
  param: {
3090
3089
  orgId: string;
@@ -3094,14 +3093,14 @@ export declare function management(options?: management.Options): import("hono/h
3094
3093
  } | {
3095
3094
  output: {
3096
3095
  error: {
3097
- code: "api_key_forbidden";
3096
+ code: "payment_required" | "rate_limit_exceeded";
3098
3097
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3099
3098
  message: string;
3100
3099
  };
3101
3100
  requestId: string;
3102
3101
  };
3103
3102
  outputFormat: "json";
3104
- status: 403;
3103
+ status: 429;
3105
3104
  input: {
3106
3105
  param: {
3107
3106
  orgId: string;
@@ -3128,25 +3127,21 @@ export declare function management(options?: management.Options): import("hono/h
3128
3127
  } | {
3129
3128
  output: {
3130
3129
  error: {
3131
- code: "payment_required" | "rate_limit_exceeded";
3130
+ code: "param_invalid";
3132
3131
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3133
3132
  message: string;
3134
3133
  };
3135
3134
  requestId: string;
3136
3135
  };
3137
3136
  outputFormat: "json";
3138
- status: 429;
3137
+ status: 400;
3139
3138
  input: {
3140
3139
  param: {
3141
3140
  orgId: string;
3142
3141
  projectId: string;
3143
3142
  };
3144
3143
  };
3145
- };
3146
- };
3147
- } & {
3148
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
3149
- $patch: {
3144
+ } | {
3150
3145
  output: {
3151
3146
  createdAt: string;
3152
3147
  environments: ("production" | "sandbox")[];
@@ -3162,22 +3157,22 @@ export declare function management(options?: management.Options): import("hono/h
3162
3157
  orgId: string;
3163
3158
  projectId: string;
3164
3159
  };
3165
- } & {
3166
- json: {
3167
- name: string;
3168
- };
3169
3160
  };
3170
- } | {
3161
+ };
3162
+ };
3163
+ } & {
3164
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
3165
+ $patch: {
3171
3166
  output: {
3172
3167
  error: {
3173
- code: "api_key_malformed";
3168
+ code: "upstream_error";
3174
3169
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3175
3170
  message: string;
3176
3171
  };
3177
3172
  requestId: string;
3178
3173
  };
3179
3174
  outputFormat: "json";
3180
- status: 400;
3175
+ status: 502;
3181
3176
  input: {
3182
3177
  param: {
3183
3178
  orgId: string;
@@ -3191,7 +3186,7 @@ export declare function management(options?: management.Options): import("hono/h
3191
3186
  } | {
3192
3187
  output: {
3193
3188
  error: {
3194
- code: "body_invalid";
3189
+ code: "api_key_malformed";
3195
3190
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3196
3191
  message: string;
3197
3192
  };
@@ -3212,14 +3207,14 @@ export declare function management(options?: management.Options): import("hono/h
3212
3207
  } | {
3213
3208
  output: {
3214
3209
  error: {
3215
- code: "param_invalid";
3210
+ code: "api_key_invalid" | "api_key_missing";
3216
3211
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3217
3212
  message: string;
3218
3213
  };
3219
3214
  requestId: string;
3220
3215
  };
3221
3216
  outputFormat: "json";
3222
- status: 400;
3217
+ status: 401;
3223
3218
  input: {
3224
3219
  param: {
3225
3220
  orgId: string;
@@ -3233,14 +3228,14 @@ export declare function management(options?: management.Options): import("hono/h
3233
3228
  } | {
3234
3229
  output: {
3235
3230
  error: {
3236
- code: "api_key_invalid" | "api_key_missing";
3231
+ code: "api_key_forbidden";
3237
3232
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3238
3233
  message: string;
3239
3234
  };
3240
3235
  requestId: string;
3241
3236
  };
3242
3237
  outputFormat: "json";
3243
- status: 401;
3238
+ status: 403;
3244
3239
  input: {
3245
3240
  param: {
3246
3241
  orgId: string;
@@ -3254,14 +3249,14 @@ export declare function management(options?: management.Options): import("hono/h
3254
3249
  } | {
3255
3250
  output: {
3256
3251
  error: {
3257
- code: "api_key_forbidden";
3252
+ code: "payment_required" | "rate_limit_exceeded";
3258
3253
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3259
3254
  message: string;
3260
3255
  };
3261
3256
  requestId: string;
3262
3257
  };
3263
3258
  outputFormat: "json";
3264
- status: 403;
3259
+ status: 429;
3265
3260
  input: {
3266
3261
  param: {
3267
3262
  orgId: string;
@@ -3296,14 +3291,14 @@ export declare function management(options?: management.Options): import("hono/h
3296
3291
  } | {
3297
3292
  output: {
3298
3293
  error: {
3299
- code: "payment_required" | "rate_limit_exceeded";
3294
+ code: "body_invalid";
3300
3295
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3301
3296
  message: string;
3302
3297
  };
3303
3298
  requestId: string;
3304
3299
  };
3305
3300
  outputFormat: "json";
3306
- status: 429;
3301
+ status: 400;
3307
3302
  input: {
3308
3303
  param: {
3309
3304
  orgId: string;
@@ -3317,14 +3312,14 @@ export declare function management(options?: management.Options): import("hono/h
3317
3312
  } | {
3318
3313
  output: {
3319
3314
  error: {
3320
- code: "upstream_error";
3315
+ code: "param_invalid";
3321
3316
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3322
3317
  message: string;
3323
3318
  };
3324
3319
  requestId: string;
3325
3320
  };
3326
3321
  outputFormat: "json";
3327
- status: 502;
3322
+ status: 400;
3328
3323
  input: {
3329
3324
  param: {
3330
3325
  orgId: string;
@@ -3335,13 +3330,14 @@ export declare function management(options?: management.Options): import("hono/h
3335
3330
  name: string;
3336
3331
  };
3337
3332
  };
3338
- };
3339
- };
3340
- } & {
3341
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
3342
- $delete: {
3333
+ } | {
3343
3334
  output: {
3335
+ createdAt: string;
3336
+ environments: ("production" | "sandbox")[];
3344
3337
  id: string;
3338
+ name: string;
3339
+ orgId: string;
3340
+ updatedAt: string;
3345
3341
  };
3346
3342
  outputFormat: "json";
3347
3343
  status: 200;
@@ -3350,18 +3346,26 @@ export declare function management(options?: management.Options): import("hono/h
3350
3346
  orgId: string;
3351
3347
  projectId: string;
3352
3348
  };
3349
+ } & {
3350
+ json: {
3351
+ name: string;
3352
+ };
3353
3353
  };
3354
- } | {
3354
+ };
3355
+ };
3356
+ } & {
3357
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
3358
+ $delete: {
3355
3359
  output: {
3356
3360
  error: {
3357
- code: "api_key_malformed";
3361
+ code: "upstream_error";
3358
3362
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3359
3363
  message: string;
3360
3364
  };
3361
3365
  requestId: string;
3362
3366
  };
3363
3367
  outputFormat: "json";
3364
- status: 400;
3368
+ status: 502;
3365
3369
  input: {
3366
3370
  param: {
3367
3371
  orgId: string;
@@ -3371,7 +3375,7 @@ export declare function management(options?: management.Options): import("hono/h
3371
3375
  } | {
3372
3376
  output: {
3373
3377
  error: {
3374
- code: "param_invalid";
3378
+ code: "api_key_malformed";
3375
3379
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3376
3380
  message: string;
3377
3381
  };
@@ -3422,14 +3426,14 @@ export declare function management(options?: management.Options): import("hono/h
3422
3426
  } | {
3423
3427
  output: {
3424
3428
  error: {
3425
- code: "organization_not_found" | "project_not_found";
3429
+ code: "payment_required" | "rate_limit_exceeded";
3426
3430
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3427
3431
  message: string;
3428
3432
  };
3429
3433
  requestId: string;
3430
3434
  };
3431
3435
  outputFormat: "json";
3432
- status: 404;
3436
+ status: 429;
3433
3437
  input: {
3434
3438
  param: {
3435
3439
  orgId: string;
@@ -3439,14 +3443,14 @@ export declare function management(options?: management.Options): import("hono/h
3439
3443
  } | {
3440
3444
  output: {
3441
3445
  error: {
3442
- code: "payment_required" | "rate_limit_exceeded";
3446
+ code: "organization_not_found" | "project_not_found";
3443
3447
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3444
3448
  message: string;
3445
3449
  };
3446
3450
  requestId: string;
3447
3451
  };
3448
3452
  outputFormat: "json";
3449
- status: 429;
3453
+ status: 404;
3450
3454
  input: {
3451
3455
  param: {
3452
3456
  orgId: string;
@@ -3456,14 +3460,26 @@ export declare function management(options?: management.Options): import("hono/h
3456
3460
  } | {
3457
3461
  output: {
3458
3462
  error: {
3459
- code: "upstream_error";
3463
+ code: "param_invalid";
3460
3464
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3461
3465
  message: string;
3462
3466
  };
3463
3467
  requestId: string;
3464
3468
  };
3465
3469
  outputFormat: "json";
3466
- status: 502;
3470
+ status: 400;
3471
+ input: {
3472
+ param: {
3473
+ orgId: string;
3474
+ projectId: string;
3475
+ };
3476
+ };
3477
+ } | {
3478
+ output: {
3479
+ id: string;
3480
+ };
3481
+ outputFormat: "json";
3482
+ status: 200;
3467
3483
  input: {
3468
3484
  param: {
3469
3485
  orgId: string;
@@ -3476,16 +3492,15 @@ export declare function management(options?: management.Options): import("hono/h
3476
3492
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invitations": {
3477
3493
  $post: {
3478
3494
  output: {
3479
- createdAt: string;
3480
- email: string;
3481
- expiresAt: string;
3482
- id: string;
3483
- invitedBy: string;
3484
- orgId: string;
3485
- role: "admin" | "member" | "owner";
3495
+ error: {
3496
+ code: "upstream_error";
3497
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3498
+ message: string;
3499
+ };
3500
+ requestId: string;
3486
3501
  };
3487
3502
  outputFormat: "json";
3488
- status: 200;
3503
+ status: 502;
3489
3504
  input: {
3490
3505
  param: {
3491
3506
  orgId: string;
@@ -3520,14 +3535,14 @@ export declare function management(options?: management.Options): import("hono/h
3520
3535
  } | {
3521
3536
  output: {
3522
3537
  error: {
3523
- code: "body_invalid";
3538
+ code: "api_key_invalid" | "api_key_missing";
3524
3539
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3525
3540
  message: string;
3526
3541
  };
3527
3542
  requestId: string;
3528
3543
  };
3529
3544
  outputFormat: "json";
3530
- status: 400;
3545
+ status: 401;
3531
3546
  input: {
3532
3547
  param: {
3533
3548
  orgId: string;
@@ -3541,14 +3556,14 @@ export declare function management(options?: management.Options): import("hono/h
3541
3556
  } | {
3542
3557
  output: {
3543
3558
  error: {
3544
- code: "param_invalid";
3559
+ code: "api_key_forbidden";
3545
3560
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3546
3561
  message: string;
3547
3562
  };
3548
3563
  requestId: string;
3549
3564
  };
3550
3565
  outputFormat: "json";
3551
- status: 400;
3566
+ status: 403;
3552
3567
  input: {
3553
3568
  param: {
3554
3569
  orgId: string;
@@ -3562,14 +3577,14 @@ export declare function management(options?: management.Options): import("hono/h
3562
3577
  } | {
3563
3578
  output: {
3564
3579
  error: {
3565
- code: "api_key_invalid" | "api_key_missing";
3580
+ code: "payment_required" | "rate_limit_exceeded";
3566
3581
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3567
3582
  message: string;
3568
3583
  };
3569
3584
  requestId: string;
3570
3585
  };
3571
3586
  outputFormat: "json";
3572
- status: 401;
3587
+ status: 429;
3573
3588
  input: {
3574
3589
  param: {
3575
3590
  orgId: string;
@@ -3583,14 +3598,14 @@ export declare function management(options?: management.Options): import("hono/h
3583
3598
  } | {
3584
3599
  output: {
3585
3600
  error: {
3586
- code: "api_key_forbidden";
3601
+ code: "organization_not_found";
3587
3602
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3588
3603
  message: string;
3589
3604
  };
3590
3605
  requestId: string;
3591
3606
  };
3592
3607
  outputFormat: "json";
3593
- status: 403;
3608
+ status: 404;
3594
3609
  input: {
3595
3610
  param: {
3596
3611
  orgId: string;
@@ -3625,14 +3640,14 @@ export declare function management(options?: management.Options): import("hono/h
3625
3640
  } | {
3626
3641
  output: {
3627
3642
  error: {
3628
- code: "organization_not_found";
3643
+ code: "body_invalid";
3629
3644
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3630
3645
  message: string;
3631
3646
  };
3632
3647
  requestId: string;
3633
3648
  };
3634
3649
  outputFormat: "json";
3635
- status: 404;
3650
+ status: 400;
3636
3651
  input: {
3637
3652
  param: {
3638
3653
  orgId: string;
@@ -3646,14 +3661,14 @@ export declare function management(options?: management.Options): import("hono/h
3646
3661
  } | {
3647
3662
  output: {
3648
3663
  error: {
3649
- code: "payment_required" | "rate_limit_exceeded";
3664
+ code: "param_invalid";
3650
3665
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3651
3666
  message: string;
3652
3667
  };
3653
3668
  requestId: string;
3654
3669
  };
3655
3670
  outputFormat: "json";
3656
- status: 429;
3671
+ status: 400;
3657
3672
  input: {
3658
3673
  param: {
3659
3674
  orgId: string;
@@ -3666,15 +3681,16 @@ export declare function management(options?: management.Options): import("hono/h
3666
3681
  };
3667
3682
  } | {
3668
3683
  output: {
3669
- error: {
3670
- code: "upstream_error";
3671
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3672
- message: string;
3673
- };
3674
- requestId: string;
3684
+ createdAt: string;
3685
+ email: string;
3686
+ expiresAt: string;
3687
+ id: string;
3688
+ invitedBy: string;
3689
+ orgId: string;
3690
+ role: "admin" | "member" | "owner";
3675
3691
  };
3676
3692
  outputFormat: "json";
3677
- status: 502;
3693
+ status: 200;
3678
3694
  input: {
3679
3695
  param: {
3680
3696
  orgId: string;
@@ -3691,18 +3707,15 @@ export declare function management(options?: management.Options): import("hono/h
3691
3707
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invitations": {
3692
3708
  $get: {
3693
3709
  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
- }[];
3710
+ error: {
3711
+ code: "upstream_error";
3712
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3713
+ message: string;
3714
+ };
3715
+ requestId: string;
3703
3716
  };
3704
3717
  outputFormat: "json";
3705
- status: 200;
3718
+ status: 502;
3706
3719
  input: {
3707
3720
  param: {
3708
3721
  orgId: string;
@@ -3727,14 +3740,14 @@ export declare function management(options?: management.Options): import("hono/h
3727
3740
  } | {
3728
3741
  output: {
3729
3742
  error: {
3730
- code: "param_invalid";
3743
+ code: "api_key_invalid" | "api_key_missing";
3731
3744
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3732
3745
  message: string;
3733
3746
  };
3734
3747
  requestId: string;
3735
3748
  };
3736
3749
  outputFormat: "json";
3737
- status: 400;
3750
+ status: 401;
3738
3751
  input: {
3739
3752
  param: {
3740
3753
  orgId: string;
@@ -3743,14 +3756,14 @@ export declare function management(options?: management.Options): import("hono/h
3743
3756
  } | {
3744
3757
  output: {
3745
3758
  error: {
3746
- code: "api_key_invalid" | "api_key_missing";
3759
+ code: "api_key_forbidden";
3747
3760
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3748
3761
  message: string;
3749
3762
  };
3750
3763
  requestId: string;
3751
3764
  };
3752
3765
  outputFormat: "json";
3753
- status: 401;
3766
+ status: 403;
3754
3767
  input: {
3755
3768
  param: {
3756
3769
  orgId: string;
@@ -3759,14 +3772,14 @@ export declare function management(options?: management.Options): import("hono/h
3759
3772
  } | {
3760
3773
  output: {
3761
3774
  error: {
3762
- code: "api_key_forbidden";
3775
+ code: "payment_required" | "rate_limit_exceeded";
3763
3776
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3764
3777
  message: string;
3765
3778
  };
3766
3779
  requestId: string;
3767
3780
  };
3768
3781
  outputFormat: "json";
3769
- status: 403;
3782
+ status: 429;
3770
3783
  input: {
3771
3784
  param: {
3772
3785
  orgId: string;
@@ -3791,14 +3804,14 @@ export declare function management(options?: management.Options): import("hono/h
3791
3804
  } | {
3792
3805
  output: {
3793
3806
  error: {
3794
- code: "payment_required" | "rate_limit_exceeded";
3807
+ code: "param_invalid";
3795
3808
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3796
3809
  message: string;
3797
3810
  };
3798
3811
  requestId: string;
3799
3812
  };
3800
3813
  outputFormat: "json";
3801
- status: 429;
3814
+ status: 400;
3802
3815
  input: {
3803
3816
  param: {
3804
3817
  orgId: string;
@@ -3806,15 +3819,18 @@ export declare function management(options?: management.Options): import("hono/h
3806
3819
  };
3807
3820
  } | {
3808
3821
  output: {
3809
- error: {
3810
- code: "upstream_error";
3811
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3812
- message: string;
3813
- };
3814
- requestId: string;
3822
+ data: {
3823
+ createdAt: string;
3824
+ email: string;
3825
+ expiresAt: string;
3826
+ id: string;
3827
+ invitedBy: string;
3828
+ orgId: string;
3829
+ role: "admin" | "member" | "owner";
3830
+ }[];
3815
3831
  };
3816
3832
  outputFormat: "json";
3817
- status: 502;
3833
+ status: 200;
3818
3834
  input: {
3819
3835
  param: {
3820
3836
  orgId: string;
@@ -3826,10 +3842,15 @@ export declare function management(options?: management.Options): import("hono/h
3826
3842
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invitations/:invitationId{inv_[A-Za-z0-9_-]+}": {
3827
3843
  $delete: {
3828
3844
  output: {
3829
- id: string;
3845
+ error: {
3846
+ code: "upstream_error";
3847
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3848
+ message: string;
3849
+ };
3850
+ requestId: string;
3830
3851
  };
3831
3852
  outputFormat: "json";
3832
- status: 200;
3853
+ status: 502;
3833
3854
  input: {
3834
3855
  param: {
3835
3856
  invitationId: string;
@@ -3856,14 +3877,14 @@ export declare function management(options?: management.Options): import("hono/h
3856
3877
  } | {
3857
3878
  output: {
3858
3879
  error: {
3859
- code: "param_invalid";
3880
+ code: "api_key_invalid" | "api_key_missing";
3860
3881
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3861
3882
  message: string;
3862
3883
  };
3863
3884
  requestId: string;
3864
3885
  };
3865
3886
  outputFormat: "json";
3866
- status: 400;
3887
+ status: 401;
3867
3888
  input: {
3868
3889
  param: {
3869
3890
  invitationId: string;
@@ -3873,14 +3894,14 @@ export declare function management(options?: management.Options): import("hono/h
3873
3894
  } | {
3874
3895
  output: {
3875
3896
  error: {
3876
- code: "api_key_invalid" | "api_key_missing";
3897
+ code: "api_key_forbidden";
3877
3898
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3878
3899
  message: string;
3879
3900
  };
3880
3901
  requestId: string;
3881
3902
  };
3882
3903
  outputFormat: "json";
3883
- status: 401;
3904
+ status: 403;
3884
3905
  input: {
3885
3906
  param: {
3886
3907
  invitationId: string;
@@ -3890,14 +3911,14 @@ export declare function management(options?: management.Options): import("hono/h
3890
3911
  } | {
3891
3912
  output: {
3892
3913
  error: {
3893
- code: "api_key_forbidden";
3914
+ code: "payment_required" | "rate_limit_exceeded";
3894
3915
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3895
3916
  message: string;
3896
3917
  };
3897
3918
  requestId: string;
3898
3919
  };
3899
3920
  outputFormat: "json";
3900
- status: 403;
3921
+ status: 429;
3901
3922
  input: {
3902
3923
  param: {
3903
3924
  invitationId: string;
@@ -3924,14 +3945,14 @@ export declare function management(options?: management.Options): import("hono/h
3924
3945
  } | {
3925
3946
  output: {
3926
3947
  error: {
3927
- code: "invitation_not_found";
3948
+ code: "param_invalid";
3928
3949
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3929
3950
  message: string;
3930
3951
  };
3931
3952
  requestId: string;
3932
3953
  };
3933
3954
  outputFormat: "json";
3934
- status: 404;
3955
+ status: 400;
3935
3956
  input: {
3936
3957
  param: {
3937
3958
  invitationId: string;
@@ -3941,14 +3962,14 @@ export declare function management(options?: management.Options): import("hono/h
3941
3962
  } | {
3942
3963
  output: {
3943
3964
  error: {
3944
- code: "payment_required" | "rate_limit_exceeded";
3965
+ code: "invitation_not_found";
3945
3966
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3946
3967
  message: string;
3947
3968
  };
3948
3969
  requestId: string;
3949
3970
  };
3950
3971
  outputFormat: "json";
3951
- status: 429;
3972
+ status: 404;
3952
3973
  input: {
3953
3974
  param: {
3954
3975
  invitationId: string;
@@ -3957,15 +3978,10 @@ export declare function management(options?: management.Options): import("hono/h
3957
3978
  };
3958
3979
  } | {
3959
3980
  output: {
3960
- error: {
3961
- code: "upstream_error";
3962
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3963
- message: string;
3964
- };
3965
- requestId: string;
3981
+ id: string;
3966
3982
  };
3967
3983
  outputFormat: "json";
3968
- status: 502;
3984
+ status: 200;
3969
3985
  input: {
3970
3986
  param: {
3971
3987
  invitationId: string;
@@ -3978,19 +3994,15 @@ export declare function management(options?: management.Options): import("hono/h
3978
3994
  "/v1/invitations": {
3979
3995
  $get: {
3980
3996
  output: {
3981
- data: {
3982
- createdAt: string;
3983
- email: string;
3984
- expiresAt: string;
3985
- id: string;
3986
- invitedBy: string;
3987
- orgId: string;
3988
- role: "admin" | "member" | "owner";
3989
- orgName: string;
3990
- }[];
3997
+ error: {
3998
+ code: "upstream_error";
3999
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4000
+ message: string;
4001
+ };
4002
+ requestId: string;
3991
4003
  };
3992
4004
  outputFormat: "json";
3993
- status: 200;
4005
+ status: 502;
3994
4006
  input: {};
3995
4007
  } | {
3996
4008
  output: {
@@ -4030,15 +4042,19 @@ export declare function management(options?: management.Options): import("hono/h
4030
4042
  input: {};
4031
4043
  } | {
4032
4044
  output: {
4033
- error: {
4034
- code: "upstream_error";
4035
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4036
- message: string;
4037
- };
4038
- requestId: string;
4045
+ data: {
4046
+ createdAt: string;
4047
+ email: string;
4048
+ expiresAt: string;
4049
+ id: string;
4050
+ invitedBy: string;
4051
+ orgId: string;
4052
+ role: "admin" | "member" | "owner";
4053
+ orgName: string;
4054
+ }[];
4039
4055
  };
4040
4056
  outputFormat: "json";
4041
- status: 502;
4057
+ status: 200;
4042
4058
  input: {};
4043
4059
  };
4044
4060
  };
@@ -4046,12 +4062,15 @@ export declare function management(options?: management.Options): import("hono/h
4046
4062
  "/v1/invitations/:invitationId{inv_[A-Za-z0-9_-]+}/accept": {
4047
4063
  $post: {
4048
4064
  output: {
4049
- orgId: string;
4050
- role: "admin" | "member" | "owner";
4051
- userId: string;
4065
+ error: {
4066
+ code: "upstream_error";
4067
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4068
+ message: string;
4069
+ };
4070
+ requestId: string;
4052
4071
  };
4053
4072
  outputFormat: "json";
4054
- status: 200;
4073
+ status: 502;
4055
4074
  input: {
4056
4075
  param: {
4057
4076
  invitationId: string;
@@ -4076,14 +4095,14 @@ export declare function management(options?: management.Options): import("hono/h
4076
4095
  } | {
4077
4096
  output: {
4078
4097
  error: {
4079
- code: "param_invalid";
4098
+ code: "api_key_invalid" | "api_key_missing";
4080
4099
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4081
4100
  message: string;
4082
4101
  };
4083
4102
  requestId: string;
4084
4103
  };
4085
4104
  outputFormat: "json";
4086
- status: 400;
4105
+ status: 401;
4087
4106
  input: {
4088
4107
  param: {
4089
4108
  invitationId: string;
@@ -4092,14 +4111,14 @@ export declare function management(options?: management.Options): import("hono/h
4092
4111
  } | {
4093
4112
  output: {
4094
4113
  error: {
4095
- code: "api_key_invalid" | "api_key_missing";
4114
+ code: "forbidden";
4096
4115
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4097
4116
  message: string;
4098
4117
  };
4099
4118
  requestId: string;
4100
4119
  };
4101
4120
  outputFormat: "json";
4102
- status: 401;
4121
+ status: 403;
4103
4122
  input: {
4104
4123
  param: {
4105
4124
  invitationId: string;
@@ -4108,14 +4127,14 @@ export declare function management(options?: management.Options): import("hono/h
4108
4127
  } | {
4109
4128
  output: {
4110
4129
  error: {
4111
- code: "forbidden";
4130
+ code: "param_invalid";
4112
4131
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4113
4132
  message: string;
4114
4133
  };
4115
4134
  requestId: string;
4116
4135
  };
4117
4136
  outputFormat: "json";
4118
- status: 403;
4137
+ status: 400;
4119
4138
  input: {
4120
4139
  param: {
4121
4140
  invitationId: string;
@@ -4139,15 +4158,12 @@ export declare function management(options?: management.Options): import("hono/h
4139
4158
  };
4140
4159
  } | {
4141
4160
  output: {
4142
- error: {
4143
- code: "upstream_error";
4144
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4145
- message: string;
4146
- };
4147
- requestId: string;
4161
+ orgId: string;
4162
+ role: "admin" | "member" | "owner";
4163
+ userId: string;
4148
4164
  };
4149
4165
  outputFormat: "json";
4150
- status: 502;
4166
+ status: 200;
4151
4167
  input: {
4152
4168
  param: {
4153
4169
  invitationId: string;
@@ -4159,10 +4175,15 @@ export declare function management(options?: management.Options): import("hono/h
4159
4175
  "/v1/invitations/:invitationId{inv_[A-Za-z0-9_-]+}/decline": {
4160
4176
  $post: {
4161
4177
  output: {
4162
- id: string;
4178
+ error: {
4179
+ code: "upstream_error";
4180
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4181
+ message: string;
4182
+ };
4183
+ requestId: string;
4163
4184
  };
4164
4185
  outputFormat: "json";
4165
- status: 200;
4186
+ status: 502;
4166
4187
  input: {
4167
4188
  param: {
4168
4189
  invitationId: string;
@@ -4187,14 +4208,14 @@ export declare function management(options?: management.Options): import("hono/h
4187
4208
  } | {
4188
4209
  output: {
4189
4210
  error: {
4190
- code: "param_invalid";
4211
+ code: "api_key_invalid" | "api_key_missing";
4191
4212
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4192
4213
  message: string;
4193
4214
  };
4194
4215
  requestId: string;
4195
4216
  };
4196
4217
  outputFormat: "json";
4197
- status: 400;
4218
+ status: 401;
4198
4219
  input: {
4199
4220
  param: {
4200
4221
  invitationId: string;
@@ -4203,14 +4224,14 @@ export declare function management(options?: management.Options): import("hono/h
4203
4224
  } | {
4204
4225
  output: {
4205
4226
  error: {
4206
- code: "api_key_invalid" | "api_key_missing";
4227
+ code: "forbidden";
4207
4228
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4208
4229
  message: string;
4209
4230
  };
4210
4231
  requestId: string;
4211
4232
  };
4212
4233
  outputFormat: "json";
4213
- status: 401;
4234
+ status: 403;
4214
4235
  input: {
4215
4236
  param: {
4216
4237
  invitationId: string;
@@ -4219,14 +4240,14 @@ export declare function management(options?: management.Options): import("hono/h
4219
4240
  } | {
4220
4241
  output: {
4221
4242
  error: {
4222
- code: "forbidden";
4243
+ code: "param_invalid";
4223
4244
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4224
4245
  message: string;
4225
4246
  };
4226
4247
  requestId: string;
4227
4248
  };
4228
4249
  outputFormat: "json";
4229
- status: 403;
4250
+ status: 400;
4230
4251
  input: {
4231
4252
  param: {
4232
4253
  invitationId: string;
@@ -4250,15 +4271,10 @@ export declare function management(options?: management.Options): import("hono/h
4250
4271
  };
4251
4272
  } | {
4252
4273
  output: {
4253
- error: {
4254
- code: "upstream_error";
4255
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4256
- message: string;
4257
- };
4258
- requestId: string;
4274
+ id: string;
4259
4275
  };
4260
4276
  outputFormat: "json";
4261
- status: 502;
4277
+ status: 200;
4262
4278
  input: {
4263
4279
  param: {
4264
4280
  invitationId: string;
@@ -4270,25 +4286,15 @@ export declare function management(options?: management.Options): import("hono/h
4270
4286
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing": {
4271
4287
  $get: {
4272
4288
  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
+ error: {
4290
+ code: "upstream_error";
4291
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4292
+ message: string;
4293
+ };
4294
+ requestId: string;
4289
4295
  };
4290
4296
  outputFormat: "json";
4291
- status: 200;
4297
+ status: 502;
4292
4298
  input: {
4293
4299
  param: {
4294
4300
  orgId: string;
@@ -4321,14 +4327,14 @@ export declare function management(options?: management.Options): import("hono/h
4321
4327
  } | {
4322
4328
  output: {
4323
4329
  error: {
4324
- code: "query_invalid";
4330
+ code: "api_key_invalid" | "api_key_missing";
4325
4331
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4326
4332
  message: string;
4327
4333
  };
4328
4334
  requestId: string;
4329
4335
  };
4330
4336
  outputFormat: "json";
4331
- status: 400;
4337
+ status: 401;
4332
4338
  input: {
4333
4339
  param: {
4334
4340
  orgId: string;
@@ -4341,14 +4347,14 @@ export declare function management(options?: management.Options): import("hono/h
4341
4347
  } | {
4342
4348
  output: {
4343
4349
  error: {
4344
- code: "param_invalid";
4350
+ code: "api_key_forbidden";
4345
4351
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4346
4352
  message: string;
4347
4353
  };
4348
4354
  requestId: string;
4349
4355
  };
4350
4356
  outputFormat: "json";
4351
- status: 400;
4357
+ status: 403;
4352
4358
  input: {
4353
4359
  param: {
4354
4360
  orgId: string;
@@ -4361,14 +4367,14 @@ export declare function management(options?: management.Options): import("hono/h
4361
4367
  } | {
4362
4368
  output: {
4363
4369
  error: {
4364
- code: "api_key_invalid" | "api_key_missing";
4370
+ code: "payment_required" | "rate_limit_exceeded";
4365
4371
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4366
4372
  message: string;
4367
4373
  };
4368
4374
  requestId: string;
4369
4375
  };
4370
4376
  outputFormat: "json";
4371
- status: 401;
4377
+ status: 429;
4372
4378
  input: {
4373
4379
  param: {
4374
4380
  orgId: string;
@@ -4381,14 +4387,14 @@ export declare function management(options?: management.Options): import("hono/h
4381
4387
  } | {
4382
4388
  output: {
4383
4389
  error: {
4384
- code: "api_key_forbidden";
4390
+ code: "query_invalid";
4385
4391
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4386
4392
  message: string;
4387
4393
  };
4388
4394
  requestId: string;
4389
4395
  };
4390
4396
  outputFormat: "json";
4391
- status: 403;
4397
+ status: 400;
4392
4398
  input: {
4393
4399
  param: {
4394
4400
  orgId: string;
@@ -4421,14 +4427,14 @@ export declare function management(options?: management.Options): import("hono/h
4421
4427
  } | {
4422
4428
  output: {
4423
4429
  error: {
4424
- code: "payment_required" | "rate_limit_exceeded";
4430
+ code: "param_invalid";
4425
4431
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4426
4432
  message: string;
4427
4433
  };
4428
4434
  requestId: string;
4429
4435
  };
4430
4436
  outputFormat: "json";
4431
- status: 429;
4437
+ status: 400;
4432
4438
  input: {
4433
4439
  param: {
4434
4440
  orgId: string;
@@ -4459,30 +4465,6 @@ export declare function management(options?: management.Options): import("hono/h
4459
4465
  } | undefined;
4460
4466
  };
4461
4467
  } | {
4462
- output: {
4463
- error: {
4464
- code: "upstream_error";
4465
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4466
- message: string;
4467
- };
4468
- requestId: string;
4469
- };
4470
- outputFormat: "json";
4471
- status: 502;
4472
- input: {
4473
- param: {
4474
- orgId: string;
4475
- };
4476
- } & {
4477
- query?: {
4478
- environment?: string | string[];
4479
- } | undefined;
4480
- };
4481
- };
4482
- };
4483
- } & {
4484
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing": {
4485
- $patch: {
4486
4468
  output: {
4487
4469
  spend?: {
4488
4470
  amount: string;
@@ -4503,6 +4485,30 @@ export declare function management(options?: management.Options): import("hono/h
4503
4485
  };
4504
4486
  outputFormat: "json";
4505
4487
  status: 200;
4488
+ input: {
4489
+ param: {
4490
+ orgId: string;
4491
+ };
4492
+ } & {
4493
+ query?: {
4494
+ environment?: string | string[];
4495
+ } | undefined;
4496
+ };
4497
+ };
4498
+ };
4499
+ } & {
4500
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing": {
4501
+ $patch: {
4502
+ output: {
4503
+ error: {
4504
+ code: "upstream_error";
4505
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4506
+ message: string;
4507
+ };
4508
+ requestId: string;
4509
+ };
4510
+ outputFormat: "json";
4511
+ status: 502;
4506
4512
  input: {
4507
4513
  param: {
4508
4514
  orgId: string;
@@ -4559,14 +4565,14 @@ export declare function management(options?: management.Options): import("hono/h
4559
4565
  } | {
4560
4566
  output: {
4561
4567
  error: {
4562
- code: "query_invalid";
4568
+ code: "api_key_invalid" | "api_key_missing";
4563
4569
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4564
4570
  message: string;
4565
4571
  };
4566
4572
  requestId: string;
4567
4573
  };
4568
4574
  outputFormat: "json";
4569
- status: 400;
4575
+ status: 401;
4570
4576
  input: {
4571
4577
  param: {
4572
4578
  orgId: string;
@@ -4591,14 +4597,14 @@ export declare function management(options?: management.Options): import("hono/h
4591
4597
  } | {
4592
4598
  output: {
4593
4599
  error: {
4594
- code: "body_invalid";
4600
+ code: "api_key_forbidden";
4595
4601
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4596
4602
  message: string;
4597
4603
  };
4598
4604
  requestId: string;
4599
4605
  };
4600
4606
  outputFormat: "json";
4601
- status: 400;
4607
+ status: 403;
4602
4608
  input: {
4603
4609
  param: {
4604
4610
  orgId: string;
@@ -4623,14 +4629,14 @@ export declare function management(options?: management.Options): import("hono/h
4623
4629
  } | {
4624
4630
  output: {
4625
4631
  error: {
4626
- code: "param_invalid";
4632
+ code: "payment_required" | "rate_limit_exceeded";
4627
4633
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4628
4634
  message: string;
4629
4635
  };
4630
4636
  requestId: string;
4631
4637
  };
4632
4638
  outputFormat: "json";
4633
- status: 400;
4639
+ status: 429;
4634
4640
  input: {
4635
4641
  param: {
4636
4642
  orgId: string;
@@ -4655,14 +4661,14 @@ export declare function management(options?: management.Options): import("hono/h
4655
4661
  } | {
4656
4662
  output: {
4657
4663
  error: {
4658
- code: "api_key_invalid" | "api_key_missing";
4664
+ code: "query_invalid";
4659
4665
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4660
4666
  message: string;
4661
4667
  };
4662
4668
  requestId: string;
4663
4669
  };
4664
4670
  outputFormat: "json";
4665
- status: 401;
4671
+ status: 400;
4666
4672
  input: {
4667
4673
  param: {
4668
4674
  orgId: string;
@@ -4687,14 +4693,14 @@ export declare function management(options?: management.Options): import("hono/h
4687
4693
  } | {
4688
4694
  output: {
4689
4695
  error: {
4690
- code: "api_key_forbidden";
4696
+ code: "organization_not_found";
4691
4697
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4692
4698
  message: string;
4693
4699
  };
4694
4700
  requestId: string;
4695
4701
  };
4696
4702
  outputFormat: "json";
4697
- status: 403;
4703
+ status: 404;
4698
4704
  input: {
4699
4705
  param: {
4700
4706
  orgId: string;
@@ -4719,14 +4725,14 @@ export declare function management(options?: management.Options): import("hono/h
4719
4725
  } | {
4720
4726
  output: {
4721
4727
  error: {
4722
- code: "organization_not_found";
4728
+ code: "body_invalid";
4723
4729
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4724
4730
  message: string;
4725
4731
  };
4726
4732
  requestId: string;
4727
4733
  };
4728
4734
  outputFormat: "json";
4729
- status: 404;
4735
+ status: 400;
4730
4736
  input: {
4731
4737
  param: {
4732
4738
  orgId: string;
@@ -4751,14 +4757,14 @@ export declare function management(options?: management.Options): import("hono/h
4751
4757
  } | {
4752
4758
  output: {
4753
4759
  error: {
4754
- code: "payment_required" | "rate_limit_exceeded";
4760
+ code: "param_invalid";
4755
4761
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4756
4762
  message: string;
4757
4763
  };
4758
4764
  requestId: string;
4759
4765
  };
4760
4766
  outputFormat: "json";
4761
- status: 429;
4767
+ status: 400;
4762
4768
  input: {
4763
4769
  param: {
4764
4770
  orgId: string;
@@ -4814,15 +4820,25 @@ export declare function management(options?: management.Options): import("hono/h
4814
4820
  };
4815
4821
  } | {
4816
4822
  output: {
4817
- error: {
4818
- code: "upstream_error";
4819
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4820
- message: string;
4821
- };
4822
- requestId: string;
4823
+ spend?: {
4824
+ amount: string;
4825
+ currency: "usd";
4826
+ period: "month";
4827
+ } | undefined;
4828
+ spendLimit?: {
4829
+ amount: string;
4830
+ currency: "usd";
4831
+ period: "month";
4832
+ } | undefined;
4833
+ status: "active" | "canceled" | "none" | "past_due";
4834
+ txFeeLimit?: {
4835
+ amount: string;
4836
+ currency: "usd";
4837
+ } | undefined;
4838
+ updatedAt?: string | undefined;
4823
4839
  };
4824
4840
  outputFormat: "json";
4825
- status: 502;
4841
+ status: 200;
4826
4842
  input: {
4827
4843
  param: {
4828
4844
  orgId: string;
@@ -4850,10 +4866,15 @@ export declare function management(options?: management.Options): import("hono/h
4850
4866
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/stripe/checkout": {
4851
4867
  $post: {
4852
4868
  output: {
4853
- url: string;
4869
+ error: {
4870
+ code: "upstream_error";
4871
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4872
+ message: string;
4873
+ };
4874
+ requestId: string;
4854
4875
  };
4855
4876
  outputFormat: "json";
4856
- status: 200;
4877
+ status: 502;
4857
4878
  input: {
4858
4879
  param: {
4859
4880
  orgId: string;
@@ -4886,14 +4907,14 @@ export declare function management(options?: management.Options): import("hono/h
4886
4907
  } | {
4887
4908
  output: {
4888
4909
  error: {
4889
- code: "query_invalid";
4910
+ code: "api_key_invalid" | "api_key_missing";
4890
4911
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4891
4912
  message: string;
4892
4913
  };
4893
4914
  requestId: string;
4894
4915
  };
4895
4916
  outputFormat: "json";
4896
- status: 400;
4917
+ status: 401;
4897
4918
  input: {
4898
4919
  param: {
4899
4920
  orgId: string;
@@ -4906,14 +4927,14 @@ export declare function management(options?: management.Options): import("hono/h
4906
4927
  } | {
4907
4928
  output: {
4908
4929
  error: {
4909
- code: "param_invalid";
4930
+ code: "api_key_forbidden";
4910
4931
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4911
4932
  message: string;
4912
4933
  };
4913
4934
  requestId: string;
4914
4935
  };
4915
4936
  outputFormat: "json";
4916
- status: 400;
4937
+ status: 403;
4917
4938
  input: {
4918
4939
  param: {
4919
4940
  orgId: string;
@@ -4926,14 +4947,14 @@ export declare function management(options?: management.Options): import("hono/h
4926
4947
  } | {
4927
4948
  output: {
4928
4949
  error: {
4929
- code: "api_key_invalid" | "api_key_missing";
4950
+ code: "payment_required" | "rate_limit_exceeded";
4930
4951
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4931
4952
  message: string;
4932
4953
  };
4933
4954
  requestId: string;
4934
4955
  };
4935
4956
  outputFormat: "json";
4936
- status: 401;
4957
+ status: 429;
4937
4958
  input: {
4938
4959
  param: {
4939
4960
  orgId: string;
@@ -4946,14 +4967,14 @@ export declare function management(options?: management.Options): import("hono/h
4946
4967
  } | {
4947
4968
  output: {
4948
4969
  error: {
4949
- code: "api_key_forbidden";
4970
+ code: "query_invalid";
4950
4971
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4951
4972
  message: string;
4952
4973
  };
4953
4974
  requestId: string;
4954
4975
  };
4955
4976
  outputFormat: "json";
4956
- status: 403;
4977
+ status: 400;
4957
4978
  input: {
4958
4979
  param: {
4959
4980
  orgId: string;
@@ -4986,14 +5007,14 @@ export declare function management(options?: management.Options): import("hono/h
4986
5007
  } | {
4987
5008
  output: {
4988
5009
  error: {
4989
- code: "payment_required" | "rate_limit_exceeded";
5010
+ code: "param_invalid";
4990
5011
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
4991
5012
  message: string;
4992
5013
  };
4993
5014
  requestId: string;
4994
5015
  };
4995
5016
  outputFormat: "json";
4996
- status: 429;
5017
+ status: 400;
4997
5018
  input: {
4998
5019
  param: {
4999
5020
  orgId: string;
@@ -5025,15 +5046,10 @@ export declare function management(options?: management.Options): import("hono/h
5025
5046
  };
5026
5047
  } | {
5027
5048
  output: {
5028
- error: {
5029
- code: "upstream_error";
5030
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5031
- message: string;
5032
- };
5033
- requestId: string;
5049
+ url: string;
5034
5050
  };
5035
5051
  outputFormat: "json";
5036
- status: 502;
5052
+ status: 200;
5037
5053
  input: {
5038
5054
  param: {
5039
5055
  orgId: string;
@@ -5049,10 +5065,15 @@ export declare function management(options?: management.Options): import("hono/h
5049
5065
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/stripe/manage": {
5050
5066
  $post: {
5051
5067
  output: {
5052
- url: string;
5068
+ error: {
5069
+ code: "upstream_error";
5070
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5071
+ message: string;
5072
+ };
5073
+ requestId: string;
5053
5074
  };
5054
5075
  outputFormat: "json";
5055
- status: 200;
5076
+ status: 502;
5056
5077
  input: {
5057
5078
  param: {
5058
5079
  orgId: string;
@@ -5085,14 +5106,14 @@ export declare function management(options?: management.Options): import("hono/h
5085
5106
  } | {
5086
5107
  output: {
5087
5108
  error: {
5088
- code: "query_invalid";
5109
+ code: "api_key_invalid" | "api_key_missing";
5089
5110
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5090
5111
  message: string;
5091
5112
  };
5092
5113
  requestId: string;
5093
5114
  };
5094
5115
  outputFormat: "json";
5095
- status: 400;
5116
+ status: 401;
5096
5117
  input: {
5097
5118
  param: {
5098
5119
  orgId: string;
@@ -5105,14 +5126,14 @@ export declare function management(options?: management.Options): import("hono/h
5105
5126
  } | {
5106
5127
  output: {
5107
5128
  error: {
5108
- code: "param_invalid";
5129
+ code: "api_key_forbidden";
5109
5130
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5110
5131
  message: string;
5111
5132
  };
5112
5133
  requestId: string;
5113
5134
  };
5114
5135
  outputFormat: "json";
5115
- status: 400;
5136
+ status: 403;
5116
5137
  input: {
5117
5138
  param: {
5118
5139
  orgId: string;
@@ -5125,14 +5146,14 @@ export declare function management(options?: management.Options): import("hono/h
5125
5146
  } | {
5126
5147
  output: {
5127
5148
  error: {
5128
- code: "api_key_invalid" | "api_key_missing";
5149
+ code: "payment_required" | "rate_limit_exceeded";
5129
5150
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5130
5151
  message: string;
5131
5152
  };
5132
5153
  requestId: string;
5133
5154
  };
5134
5155
  outputFormat: "json";
5135
- status: 401;
5156
+ status: 429;
5136
5157
  input: {
5137
5158
  param: {
5138
5159
  orgId: string;
@@ -5145,14 +5166,14 @@ export declare function management(options?: management.Options): import("hono/h
5145
5166
  } | {
5146
5167
  output: {
5147
5168
  error: {
5148
- code: "api_key_forbidden";
5169
+ code: "query_invalid";
5149
5170
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5150
5171
  message: string;
5151
5172
  };
5152
5173
  requestId: string;
5153
5174
  };
5154
5175
  outputFormat: "json";
5155
- status: 403;
5176
+ status: 400;
5156
5177
  input: {
5157
5178
  param: {
5158
5179
  orgId: string;
@@ -5185,14 +5206,14 @@ export declare function management(options?: management.Options): import("hono/h
5185
5206
  } | {
5186
5207
  output: {
5187
5208
  error: {
5188
- code: "billing_not_found";
5209
+ code: "param_invalid";
5189
5210
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5190
5211
  message: string;
5191
5212
  };
5192
5213
  requestId: string;
5193
5214
  };
5194
5215
  outputFormat: "json";
5195
- status: 404;
5216
+ status: 400;
5196
5217
  input: {
5197
5218
  param: {
5198
5219
  orgId: string;
@@ -5205,14 +5226,14 @@ export declare function management(options?: management.Options): import("hono/h
5205
5226
  } | {
5206
5227
  output: {
5207
5228
  error: {
5208
- code: "payment_required" | "rate_limit_exceeded";
5229
+ code: "billing_unconfigured";
5209
5230
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5210
5231
  message: string;
5211
5232
  };
5212
5233
  requestId: string;
5213
5234
  };
5214
5235
  outputFormat: "json";
5215
- status: 429;
5236
+ status: 501;
5216
5237
  input: {
5217
5238
  param: {
5218
5239
  orgId: string;
@@ -5224,15 +5245,10 @@ export declare function management(options?: management.Options): import("hono/h
5224
5245
  };
5225
5246
  } | {
5226
5247
  output: {
5227
- error: {
5228
- code: "billing_unconfigured";
5229
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5230
- message: string;
5231
- };
5232
- requestId: string;
5248
+ url: string;
5233
5249
  };
5234
5250
  outputFormat: "json";
5235
- status: 501;
5251
+ status: 200;
5236
5252
  input: {
5237
5253
  param: {
5238
5254
  orgId: string;
@@ -5245,14 +5261,14 @@ export declare function management(options?: management.Options): import("hono/h
5245
5261
  } | {
5246
5262
  output: {
5247
5263
  error: {
5248
- code: "upstream_error";
5264
+ code: "billing_not_found";
5249
5265
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5250
5266
  message: string;
5251
5267
  };
5252
5268
  requestId: string;
5253
5269
  };
5254
5270
  outputFormat: "json";
5255
- status: 502;
5271
+ status: 404;
5256
5272
  input: {
5257
5273
  param: {
5258
5274
  orgId: string;
@@ -5268,22 +5284,15 @@ export declare function management(options?: management.Options): import("hono/h
5268
5284
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/payment-methods": {
5269
5285
  $get: {
5270
5286
  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
- }[];
5287
+ error: {
5288
+ code: "upstream_error";
5289
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5290
+ message: string;
5291
+ };
5292
+ requestId: string;
5284
5293
  };
5285
5294
  outputFormat: "json";
5286
- status: 200;
5295
+ status: 502;
5287
5296
  input: {
5288
5297
  param: {
5289
5298
  orgId: string;
@@ -5316,14 +5325,14 @@ export declare function management(options?: management.Options): import("hono/h
5316
5325
  } | {
5317
5326
  output: {
5318
5327
  error: {
5319
- code: "query_invalid";
5328
+ code: "api_key_invalid" | "api_key_missing";
5320
5329
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5321
5330
  message: string;
5322
5331
  };
5323
5332
  requestId: string;
5324
5333
  };
5325
5334
  outputFormat: "json";
5326
- status: 400;
5335
+ status: 401;
5327
5336
  input: {
5328
5337
  param: {
5329
5338
  orgId: string;
@@ -5336,14 +5345,14 @@ export declare function management(options?: management.Options): import("hono/h
5336
5345
  } | {
5337
5346
  output: {
5338
5347
  error: {
5339
- code: "param_invalid";
5348
+ code: "api_key_forbidden";
5340
5349
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5341
5350
  message: string;
5342
5351
  };
5343
5352
  requestId: string;
5344
5353
  };
5345
5354
  outputFormat: "json";
5346
- status: 400;
5355
+ status: 403;
5347
5356
  input: {
5348
5357
  param: {
5349
5358
  orgId: string;
@@ -5356,14 +5365,14 @@ export declare function management(options?: management.Options): import("hono/h
5356
5365
  } | {
5357
5366
  output: {
5358
5367
  error: {
5359
- code: "api_key_invalid" | "api_key_missing";
5368
+ code: "payment_required" | "rate_limit_exceeded";
5360
5369
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5361
5370
  message: string;
5362
5371
  };
5363
5372
  requestId: string;
5364
5373
  };
5365
5374
  outputFormat: "json";
5366
- status: 401;
5375
+ status: 429;
5367
5376
  input: {
5368
5377
  param: {
5369
5378
  orgId: string;
@@ -5376,14 +5385,14 @@ export declare function management(options?: management.Options): import("hono/h
5376
5385
  } | {
5377
5386
  output: {
5378
5387
  error: {
5379
- code: "api_key_forbidden";
5388
+ code: "query_invalid";
5380
5389
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5381
5390
  message: string;
5382
5391
  };
5383
5392
  requestId: string;
5384
5393
  };
5385
5394
  outputFormat: "json";
5386
- status: 403;
5395
+ status: 400;
5387
5396
  input: {
5388
5397
  param: {
5389
5398
  orgId: string;
@@ -5416,14 +5425,14 @@ export declare function management(options?: management.Options): import("hono/h
5416
5425
  } | {
5417
5426
  output: {
5418
5427
  error: {
5419
- code: "payment_required" | "rate_limit_exceeded";
5428
+ code: "param_invalid";
5420
5429
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5421
5430
  message: string;
5422
5431
  };
5423
5432
  requestId: string;
5424
5433
  };
5425
5434
  outputFormat: "json";
5426
- status: 429;
5435
+ status: 400;
5427
5436
  input: {
5428
5437
  param: {
5429
5438
  orgId: string;
@@ -5455,15 +5464,22 @@ export declare function management(options?: management.Options): import("hono/h
5455
5464
  };
5456
5465
  } | {
5457
5466
  output: {
5458
- error: {
5459
- code: "upstream_error";
5460
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5461
- message: string;
5462
- };
5463
- requestId: string;
5467
+ data: {
5468
+ card?: {
5469
+ brand: string;
5470
+ expMonth: number;
5471
+ expYear: number;
5472
+ last4: string;
5473
+ } | undefined;
5474
+ createdAt: string;
5475
+ default: boolean;
5476
+ id: string;
5477
+ provider: "stripe";
5478
+ type: string;
5479
+ }[];
5464
5480
  };
5465
5481
  outputFormat: "json";
5466
- status: 502;
5482
+ status: 200;
5467
5483
  input: {
5468
5484
  param: {
5469
5485
  orgId: string;
@@ -5479,25 +5495,15 @@ export declare function management(options?: management.Options): import("hono/h
5479
5495
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/payment-methods/:methodId{pm_[A-Za-z0-9_-]+}": {
5480
5496
  $delete: {
5481
5497
  output: {
5482
- spend?: {
5483
- amount: string;
5484
- currency: "usd";
5485
- period: "month";
5486
- } | undefined;
5487
- spendLimit?: {
5488
- amount: string;
5489
- currency: "usd";
5490
- period: "month";
5491
- } | undefined;
5492
- status: "active" | "canceled" | "none" | "past_due";
5493
- txFeeLimit?: {
5494
- amount: string;
5495
- currency: "usd";
5496
- } | undefined;
5497
- updatedAt?: string | undefined;
5498
+ error: {
5499
+ code: "upstream_error";
5500
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5501
+ message: string;
5502
+ };
5503
+ requestId: string;
5498
5504
  };
5499
5505
  outputFormat: "json";
5500
- status: 200;
5506
+ status: 502;
5501
5507
  input: {
5502
5508
  param: {
5503
5509
  methodId: string;
@@ -5532,14 +5538,14 @@ export declare function management(options?: management.Options): import("hono/h
5532
5538
  } | {
5533
5539
  output: {
5534
5540
  error: {
5535
- code: "query_invalid";
5541
+ code: "api_key_invalid" | "api_key_missing";
5536
5542
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5537
5543
  message: string;
5538
5544
  };
5539
5545
  requestId: string;
5540
5546
  };
5541
5547
  outputFormat: "json";
5542
- status: 400;
5548
+ status: 401;
5543
5549
  input: {
5544
5550
  param: {
5545
5551
  methodId: string;
@@ -5553,14 +5559,14 @@ export declare function management(options?: management.Options): import("hono/h
5553
5559
  } | {
5554
5560
  output: {
5555
5561
  error: {
5556
- code: "param_invalid";
5562
+ code: "api_key_forbidden";
5557
5563
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5558
5564
  message: string;
5559
5565
  };
5560
5566
  requestId: string;
5561
5567
  };
5562
5568
  outputFormat: "json";
5563
- status: 400;
5569
+ status: 403;
5564
5570
  input: {
5565
5571
  param: {
5566
5572
  methodId: string;
@@ -5574,14 +5580,14 @@ export declare function management(options?: management.Options): import("hono/h
5574
5580
  } | {
5575
5581
  output: {
5576
5582
  error: {
5577
- code: "api_key_invalid" | "api_key_missing";
5583
+ code: "payment_required" | "rate_limit_exceeded";
5578
5584
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5579
5585
  message: string;
5580
5586
  };
5581
5587
  requestId: string;
5582
5588
  };
5583
5589
  outputFormat: "json";
5584
- status: 401;
5590
+ status: 429;
5585
5591
  input: {
5586
5592
  param: {
5587
5593
  methodId: string;
@@ -5595,14 +5601,14 @@ export declare function management(options?: management.Options): import("hono/h
5595
5601
  } | {
5596
5602
  output: {
5597
5603
  error: {
5598
- code: "api_key_forbidden";
5604
+ code: "query_invalid";
5599
5605
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5600
5606
  message: string;
5601
5607
  };
5602
5608
  requestId: string;
5603
5609
  };
5604
5610
  outputFormat: "json";
5605
- status: 403;
5611
+ status: 400;
5606
5612
  input: {
5607
5613
  param: {
5608
5614
  methodId: string;
@@ -5637,14 +5643,14 @@ export declare function management(options?: management.Options): import("hono/h
5637
5643
  } | {
5638
5644
  output: {
5639
5645
  error: {
5640
- code: "billing_not_found";
5646
+ code: "param_invalid";
5641
5647
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5642
5648
  message: string;
5643
5649
  };
5644
5650
  requestId: string;
5645
5651
  };
5646
5652
  outputFormat: "json";
5647
- status: 404;
5653
+ status: 400;
5648
5654
  input: {
5649
5655
  param: {
5650
5656
  methodId: string;
@@ -5658,14 +5664,14 @@ export declare function management(options?: management.Options): import("hono/h
5658
5664
  } | {
5659
5665
  output: {
5660
5666
  error: {
5661
- code: "payment_method_not_found";
5667
+ code: "billing_unconfigured";
5662
5668
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5663
5669
  message: string;
5664
5670
  };
5665
5671
  requestId: string;
5666
5672
  };
5667
5673
  outputFormat: "json";
5668
- status: 404;
5674
+ status: 501;
5669
5675
  input: {
5670
5676
  param: {
5671
5677
  methodId: string;
@@ -5678,15 +5684,25 @@ export declare function management(options?: management.Options): import("hono/h
5678
5684
  };
5679
5685
  } | {
5680
5686
  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;
5687
+ spend?: {
5688
+ amount: string;
5689
+ currency: "usd";
5690
+ period: "month";
5691
+ } | undefined;
5692
+ spendLimit?: {
5693
+ amount: string;
5694
+ currency: "usd";
5695
+ period: "month";
5696
+ } | undefined;
5697
+ status: "active" | "canceled" | "none" | "past_due";
5698
+ txFeeLimit?: {
5699
+ amount: string;
5700
+ currency: "usd";
5701
+ } | undefined;
5702
+ updatedAt?: string | undefined;
5687
5703
  };
5688
5704
  outputFormat: "json";
5689
- status: 429;
5705
+ status: 200;
5690
5706
  input: {
5691
5707
  param: {
5692
5708
  methodId: string;
@@ -5700,14 +5716,14 @@ export declare function management(options?: management.Options): import("hono/h
5700
5716
  } | {
5701
5717
  output: {
5702
5718
  error: {
5703
- code: "billing_unconfigured";
5719
+ code: "billing_not_found";
5704
5720
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5705
5721
  message: string;
5706
5722
  };
5707
5723
  requestId: string;
5708
5724
  };
5709
5725
  outputFormat: "json";
5710
- status: 501;
5726
+ status: 404;
5711
5727
  input: {
5712
5728
  param: {
5713
5729
  methodId: string;
@@ -5721,14 +5737,14 @@ export declare function management(options?: management.Options): import("hono/h
5721
5737
  } | {
5722
5738
  output: {
5723
5739
  error: {
5724
- code: "upstream_error";
5740
+ code: "payment_method_not_found";
5725
5741
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5726
5742
  message: string;
5727
5743
  };
5728
5744
  requestId: string;
5729
5745
  };
5730
5746
  outputFormat: "json";
5731
- status: 502;
5747
+ status: 404;
5732
5748
  input: {
5733
5749
  param: {
5734
5750
  methodId: string;
@@ -5744,23 +5760,16 @@ export declare function management(options?: management.Options): import("hono/h
5744
5760
  } & {
5745
5761
  "/stripe/webhook": {
5746
5762
  $post: {
5747
- output: {
5748
- received: true;
5749
- };
5750
- outputFormat: "json";
5751
- status: 200;
5752
- input: {};
5753
- } | {
5754
5763
  output: {
5755
5764
  error: {
5756
- code: "signature_invalid";
5765
+ code: "upstream_error";
5757
5766
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5758
5767
  message: string;
5759
5768
  };
5760
5769
  requestId: string;
5761
5770
  };
5762
5771
  outputFormat: "json";
5763
- status: 400;
5772
+ status: 502;
5764
5773
  input: {};
5765
5774
  } | {
5766
5775
  output: {
@@ -5777,14 +5786,21 @@ export declare function management(options?: management.Options): import("hono/h
5777
5786
  } | {
5778
5787
  output: {
5779
5788
  error: {
5780
- code: "upstream_error";
5789
+ code: "signature_invalid";
5781
5790
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5782
5791
  message: string;
5783
5792
  };
5784
5793
  requestId: string;
5785
5794
  };
5786
5795
  outputFormat: "json";
5787
- status: 502;
5796
+ status: 400;
5797
+ input: {};
5798
+ } | {
5799
+ output: {
5800
+ received: true;
5801
+ };
5802
+ outputFormat: "json";
5803
+ status: 200;
5788
5804
  input: {};
5789
5805
  };
5790
5806
  };
@@ -5792,23 +5808,15 @@ export declare function management(options?: management.Options): import("hono/h
5792
5808
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invite-links": {
5793
5809
  $post: {
5794
5810
  output: {
5795
- createdAt: string;
5796
- createdBy: string;
5797
- enabled: boolean;
5798
- expiresAt: string | null;
5799
- id: string;
5800
- lastUsedAt: string | null;
5801
- maxUses: number | null;
5802
- name: string;
5803
- orgId: string;
5804
- role: "member";
5805
- status: "active" | "deleted" | "disabled" | "exhausted" | "expired";
5806
- token: string;
5807
- updatedAt: string;
5808
- useCount: number;
5811
+ error: {
5812
+ code: "upstream_error";
5813
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5814
+ message: string;
5815
+ };
5816
+ requestId: string;
5809
5817
  };
5810
5818
  outputFormat: "json";
5811
- status: 200;
5819
+ status: 502;
5812
5820
  input: {
5813
5821
  param: {
5814
5822
  orgId: string;
@@ -5847,14 +5855,14 @@ export declare function management(options?: management.Options): import("hono/h
5847
5855
  } | {
5848
5856
  output: {
5849
5857
  error: {
5850
- code: "body_invalid";
5858
+ code: "api_key_invalid" | "api_key_missing";
5851
5859
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5852
5860
  message: string;
5853
5861
  };
5854
5862
  requestId: string;
5855
5863
  };
5856
5864
  outputFormat: "json";
5857
- status: 400;
5865
+ status: 401;
5858
5866
  input: {
5859
5867
  param: {
5860
5868
  orgId: string;
@@ -5870,14 +5878,14 @@ export declare function management(options?: management.Options): import("hono/h
5870
5878
  } | {
5871
5879
  output: {
5872
5880
  error: {
5873
- code: "api_key_invalid" | "api_key_missing";
5881
+ code: "organization_not_found";
5874
5882
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5875
5883
  message: string;
5876
5884
  };
5877
5885
  requestId: string;
5878
5886
  };
5879
5887
  outputFormat: "json";
5880
- status: 401;
5888
+ status: 404;
5881
5889
  input: {
5882
5890
  param: {
5883
5891
  orgId: string;
@@ -5916,14 +5924,14 @@ export declare function management(options?: management.Options): import("hono/h
5916
5924
  } | {
5917
5925
  output: {
5918
5926
  error: {
5919
- code: "organization_not_found";
5927
+ code: "body_invalid";
5920
5928
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5921
5929
  message: string;
5922
5930
  };
5923
5931
  requestId: string;
5924
5932
  };
5925
5933
  outputFormat: "json";
5926
- status: 404;
5934
+ status: 400;
5927
5935
  input: {
5928
5936
  param: {
5929
5937
  orgId: string;
@@ -5938,15 +5946,23 @@ export declare function management(options?: management.Options): import("hono/h
5938
5946
  };
5939
5947
  } | {
5940
5948
  output: {
5941
- error: {
5942
- code: "upstream_error";
5943
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5944
- message: string;
5945
- };
5946
- requestId: string;
5949
+ createdAt: string;
5950
+ createdBy: string;
5951
+ enabled: boolean;
5952
+ expiresAt: string | null;
5953
+ id: string;
5954
+ lastUsedAt: string | null;
5955
+ maxUses: number | null;
5956
+ name: string;
5957
+ orgId: string;
5958
+ role: "member";
5959
+ status: "active" | "deleted" | "disabled" | "exhausted" | "expired";
5960
+ token: string;
5961
+ updatedAt: string;
5962
+ useCount: number;
5947
5963
  };
5948
5964
  outputFormat: "json";
5949
- status: 502;
5965
+ status: 200;
5950
5966
  input: {
5951
5967
  param: {
5952
5968
  orgId: string;
@@ -5965,25 +5981,15 @@ export declare function management(options?: management.Options): import("hono/h
5965
5981
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invite-links": {
5966
5982
  $get: {
5967
5983
  output: {
5968
- data: {
5969
- createdAt: string;
5970
- createdBy: string;
5971
- enabled: boolean;
5972
- expiresAt: string | null;
5973
- id: string;
5974
- lastUsedAt: string | null;
5975
- maxUses: number | null;
5976
- name: string;
5977
- orgId: string;
5978
- role: "member";
5979
- status: "active" | "deleted" | "disabled" | "exhausted" | "expired";
5980
- token: string;
5981
- updatedAt: string;
5982
- useCount: number;
5983
- }[];
5984
+ error: {
5985
+ code: "upstream_error";
5986
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
5987
+ message: string;
5988
+ };
5989
+ requestId: string;
5984
5990
  };
5985
5991
  outputFormat: "json";
5986
- status: 200;
5992
+ status: 502;
5987
5993
  input: {
5988
5994
  param: {
5989
5995
  orgId: string;
@@ -6008,14 +6014,14 @@ export declare function management(options?: management.Options): import("hono/h
6008
6014
  } | {
6009
6015
  output: {
6010
6016
  error: {
6011
- code: "param_invalid";
6017
+ code: "api_key_invalid" | "api_key_missing";
6012
6018
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6013
6019
  message: string;
6014
6020
  };
6015
6021
  requestId: string;
6016
6022
  };
6017
6023
  outputFormat: "json";
6018
- status: 400;
6024
+ status: 401;
6019
6025
  input: {
6020
6026
  param: {
6021
6027
  orgId: string;
@@ -6024,14 +6030,14 @@ export declare function management(options?: management.Options): import("hono/h
6024
6030
  } | {
6025
6031
  output: {
6026
6032
  error: {
6027
- code: "api_key_invalid" | "api_key_missing";
6033
+ code: "organization_not_found";
6028
6034
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6029
6035
  message: string;
6030
6036
  };
6031
6037
  requestId: string;
6032
6038
  };
6033
6039
  outputFormat: "json";
6034
- status: 401;
6040
+ status: 404;
6035
6041
  input: {
6036
6042
  param: {
6037
6043
  orgId: string;
@@ -6056,14 +6062,14 @@ export declare function management(options?: management.Options): import("hono/h
6056
6062
  } | {
6057
6063
  output: {
6058
6064
  error: {
6059
- code: "organization_not_found";
6065
+ code: "param_invalid";
6060
6066
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6061
6067
  message: string;
6062
6068
  };
6063
6069
  requestId: string;
6064
6070
  };
6065
6071
  outputFormat: "json";
6066
- status: 404;
6072
+ status: 400;
6067
6073
  input: {
6068
6074
  param: {
6069
6075
  orgId: string;
@@ -6071,15 +6077,25 @@ export declare function management(options?: management.Options): import("hono/h
6071
6077
  };
6072
6078
  } | {
6073
6079
  output: {
6074
- error: {
6075
- code: "upstream_error";
6076
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6077
- message: string;
6078
- };
6079
- requestId: string;
6080
+ data: {
6081
+ createdAt: string;
6082
+ createdBy: string;
6083
+ enabled: boolean;
6084
+ expiresAt: string | null;
6085
+ id: string;
6086
+ lastUsedAt: string | null;
6087
+ maxUses: number | null;
6088
+ name: string;
6089
+ orgId: string;
6090
+ role: "member";
6091
+ status: "active" | "deleted" | "disabled" | "exhausted" | "expired";
6092
+ token: string;
6093
+ updatedAt: string;
6094
+ useCount: number;
6095
+ }[];
6080
6096
  };
6081
6097
  outputFormat: "json";
6082
- status: 502;
6098
+ status: 200;
6083
6099
  input: {
6084
6100
  param: {
6085
6101
  orgId: string;
@@ -6091,23 +6107,15 @@ export declare function management(options?: management.Options): import("hono/h
6091
6107
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invite-links/:inviteLinkId{iln_[A-Za-z0-9_-]+}": {
6092
6108
  $patch: {
6093
6109
  output: {
6094
- createdAt: string;
6095
- createdBy: string;
6096
- enabled: boolean;
6097
- expiresAt: string | null;
6098
- id: string;
6099
- lastUsedAt: string | null;
6100
- maxUses: number | null;
6101
- name: string;
6102
- orgId: string;
6103
- role: "member";
6104
- status: "active" | "deleted" | "disabled" | "exhausted" | "expired";
6105
- token: string;
6106
- updatedAt: string;
6107
- useCount: number;
6110
+ error: {
6111
+ code: "upstream_error";
6112
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6113
+ message: string;
6114
+ };
6115
+ requestId: string;
6108
6116
  };
6109
6117
  outputFormat: "json";
6110
- status: 200;
6118
+ status: 502;
6111
6119
  input: {
6112
6120
  param: {
6113
6121
  inviteLinkId: string;
@@ -6142,14 +6150,14 @@ export declare function management(options?: management.Options): import("hono/h
6142
6150
  } | {
6143
6151
  output: {
6144
6152
  error: {
6145
- code: "body_invalid";
6153
+ code: "api_key_invalid" | "api_key_missing";
6146
6154
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6147
6155
  message: string;
6148
6156
  };
6149
6157
  requestId: string;
6150
6158
  };
6151
6159
  outputFormat: "json";
6152
- status: 400;
6160
+ status: 401;
6153
6161
  input: {
6154
6162
  param: {
6155
6163
  inviteLinkId: string;
@@ -6163,14 +6171,14 @@ export declare function management(options?: management.Options): import("hono/h
6163
6171
  } | {
6164
6172
  output: {
6165
6173
  error: {
6166
- code: "api_key_invalid" | "api_key_missing";
6174
+ code: "organization_not_found";
6167
6175
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6168
6176
  message: string;
6169
6177
  };
6170
6178
  requestId: string;
6171
6179
  };
6172
6180
  outputFormat: "json";
6173
- status: 401;
6181
+ status: 404;
6174
6182
  input: {
6175
6183
  param: {
6176
6184
  inviteLinkId: string;
@@ -6205,14 +6213,14 @@ export declare function management(options?: management.Options): import("hono/h
6205
6213
  } | {
6206
6214
  output: {
6207
6215
  error: {
6208
- code: "organization_not_found";
6216
+ code: "body_invalid";
6209
6217
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6210
6218
  message: string;
6211
6219
  };
6212
6220
  requestId: string;
6213
6221
  };
6214
6222
  outputFormat: "json";
6215
- status: 404;
6223
+ status: 400;
6216
6224
  input: {
6217
6225
  param: {
6218
6226
  inviteLinkId: string;
@@ -6225,15 +6233,23 @@ export declare function management(options?: management.Options): import("hono/h
6225
6233
  };
6226
6234
  } | {
6227
6235
  output: {
6228
- error: {
6229
- code: "invite_link_not_found";
6230
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6231
- message: string;
6232
- };
6233
- requestId: string;
6236
+ createdAt: string;
6237
+ createdBy: string;
6238
+ enabled: boolean;
6239
+ expiresAt: string | null;
6240
+ id: string;
6241
+ lastUsedAt: string | null;
6242
+ maxUses: number | null;
6243
+ name: string;
6244
+ orgId: string;
6245
+ role: "member";
6246
+ status: "active" | "deleted" | "disabled" | "exhausted" | "expired";
6247
+ token: string;
6248
+ updatedAt: string;
6249
+ useCount: number;
6234
6250
  };
6235
6251
  outputFormat: "json";
6236
- status: 404;
6252
+ status: 200;
6237
6253
  input: {
6238
6254
  param: {
6239
6255
  inviteLinkId: string;
@@ -6247,14 +6263,14 @@ export declare function management(options?: management.Options): import("hono/h
6247
6263
  } | {
6248
6264
  output: {
6249
6265
  error: {
6250
- code: "upstream_error";
6266
+ code: "invite_link_not_found";
6251
6267
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6252
6268
  message: string;
6253
6269
  };
6254
6270
  requestId: string;
6255
6271
  };
6256
6272
  outputFormat: "json";
6257
- status: 502;
6273
+ status: 404;
6258
6274
  input: {
6259
6275
  param: {
6260
6276
  inviteLinkId: string;
@@ -6271,10 +6287,15 @@ export declare function management(options?: management.Options): import("hono/h
6271
6287
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invite-links/:inviteLinkId{iln_[A-Za-z0-9_-]+}": {
6272
6288
  $delete: {
6273
6289
  output: {
6274
- id: string;
6290
+ error: {
6291
+ code: "upstream_error";
6292
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6293
+ message: string;
6294
+ };
6295
+ requestId: string;
6275
6296
  };
6276
6297
  outputFormat: "json";
6277
- status: 200;
6298
+ status: 502;
6278
6299
  input: {
6279
6300
  param: {
6280
6301
  inviteLinkId: string;
@@ -6301,14 +6322,14 @@ export declare function management(options?: management.Options): import("hono/h
6301
6322
  } | {
6302
6323
  output: {
6303
6324
  error: {
6304
- code: "param_invalid";
6325
+ code: "api_key_invalid" | "api_key_missing";
6305
6326
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6306
6327
  message: string;
6307
6328
  };
6308
6329
  requestId: string;
6309
6330
  };
6310
6331
  outputFormat: "json";
6311
- status: 400;
6332
+ status: 401;
6312
6333
  input: {
6313
6334
  param: {
6314
6335
  inviteLinkId: string;
@@ -6318,14 +6339,14 @@ export declare function management(options?: management.Options): import("hono/h
6318
6339
  } | {
6319
6340
  output: {
6320
6341
  error: {
6321
- code: "api_key_invalid" | "api_key_missing";
6342
+ code: "organization_not_found";
6322
6343
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6323
6344
  message: string;
6324
6345
  };
6325
6346
  requestId: string;
6326
6347
  };
6327
6348
  outputFormat: "json";
6328
- status: 401;
6349
+ status: 404;
6329
6350
  input: {
6330
6351
  param: {
6331
6352
  inviteLinkId: string;
@@ -6352,14 +6373,14 @@ export declare function management(options?: management.Options): import("hono/h
6352
6373
  } | {
6353
6374
  output: {
6354
6375
  error: {
6355
- code: "organization_not_found";
6376
+ code: "param_invalid";
6356
6377
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6357
6378
  message: string;
6358
6379
  };
6359
6380
  requestId: string;
6360
6381
  };
6361
6382
  outputFormat: "json";
6362
- status: 404;
6383
+ status: 400;
6363
6384
  input: {
6364
6385
  param: {
6365
6386
  inviteLinkId: string;
@@ -6385,15 +6406,10 @@ export declare function management(options?: management.Options): import("hono/h
6385
6406
  };
6386
6407
  } | {
6387
6408
  output: {
6388
- error: {
6389
- code: "upstream_error";
6390
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6391
- message: string;
6392
- };
6393
- requestId: string;
6409
+ id: string;
6394
6410
  };
6395
6411
  outputFormat: "json";
6396
- status: 502;
6412
+ status: 200;
6397
6413
  input: {
6398
6414
  param: {
6399
6415
  inviteLinkId: string;
@@ -6406,18 +6422,15 @@ export declare function management(options?: management.Options): import("hono/h
6406
6422
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invite-links/:inviteLinkId{iln_[A-Za-z0-9_-]+}/redemptions": {
6407
6423
  $get: {
6408
6424
  output: {
6409
- data: {
6410
- createdAt: string;
6411
- email: string;
6412
- id: string;
6413
- inviteLinkId: string;
6414
- inviteLinkName: string;
6415
- orgId: string;
6416
- userId: string;
6417
- }[];
6425
+ error: {
6426
+ code: "upstream_error";
6427
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6428
+ message: string;
6429
+ };
6430
+ requestId: string;
6418
6431
  };
6419
6432
  outputFormat: "json";
6420
- status: 200;
6433
+ status: 502;
6421
6434
  input: {
6422
6435
  param: {
6423
6436
  inviteLinkId: string;
@@ -6444,14 +6457,14 @@ export declare function management(options?: management.Options): import("hono/h
6444
6457
  } | {
6445
6458
  output: {
6446
6459
  error: {
6447
- code: "param_invalid";
6460
+ code: "api_key_invalid" | "api_key_missing";
6448
6461
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6449
6462
  message: string;
6450
6463
  };
6451
6464
  requestId: string;
6452
6465
  };
6453
6466
  outputFormat: "json";
6454
- status: 400;
6467
+ status: 401;
6455
6468
  input: {
6456
6469
  param: {
6457
6470
  inviteLinkId: string;
@@ -6461,14 +6474,14 @@ export declare function management(options?: management.Options): import("hono/h
6461
6474
  } | {
6462
6475
  output: {
6463
6476
  error: {
6464
- code: "api_key_invalid" | "api_key_missing";
6477
+ code: "organization_not_found";
6465
6478
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6466
6479
  message: string;
6467
6480
  };
6468
6481
  requestId: string;
6469
6482
  };
6470
6483
  outputFormat: "json";
6471
- status: 401;
6484
+ status: 404;
6472
6485
  input: {
6473
6486
  param: {
6474
6487
  inviteLinkId: string;
@@ -6495,14 +6508,14 @@ export declare function management(options?: management.Options): import("hono/h
6495
6508
  } | {
6496
6509
  output: {
6497
6510
  error: {
6498
- code: "organization_not_found";
6511
+ code: "param_invalid";
6499
6512
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6500
6513
  message: string;
6501
6514
  };
6502
6515
  requestId: string;
6503
6516
  };
6504
6517
  outputFormat: "json";
6505
- status: 404;
6518
+ status: 400;
6506
6519
  input: {
6507
6520
  param: {
6508
6521
  inviteLinkId: string;
@@ -6528,15 +6541,18 @@ export declare function management(options?: management.Options): import("hono/h
6528
6541
  };
6529
6542
  } | {
6530
6543
  output: {
6531
- error: {
6532
- code: "upstream_error";
6533
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6534
- message: string;
6535
- };
6536
- requestId: string;
6544
+ data: {
6545
+ createdAt: string;
6546
+ email: string;
6547
+ id: string;
6548
+ inviteLinkId: string;
6549
+ inviteLinkName: string;
6550
+ orgId: string;
6551
+ userId: string;
6552
+ }[];
6537
6553
  };
6538
6554
  outputFormat: "json";
6539
- status: 502;
6555
+ status: 200;
6540
6556
  input: {
6541
6557
  param: {
6542
6558
  inviteLinkId: string;
@@ -6549,11 +6565,15 @@ export declare function management(options?: management.Options): import("hono/h
6549
6565
  "/v1/invite-links/resolve": {
6550
6566
  $post: {
6551
6567
  output: {
6552
- orgName: string;
6553
- role: "member";
6568
+ error: {
6569
+ code: "upstream_error";
6570
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6571
+ message: string;
6572
+ };
6573
+ requestId: string;
6554
6574
  };
6555
6575
  outputFormat: "json";
6556
- status: 200;
6576
+ status: 502;
6557
6577
  input: {
6558
6578
  json: {
6559
6579
  token: string;
@@ -6578,14 +6598,14 @@ export declare function management(options?: management.Options): import("hono/h
6578
6598
  } | {
6579
6599
  output: {
6580
6600
  error: {
6581
- code: "body_invalid";
6601
+ code: "api_key_invalid" | "api_key_missing";
6582
6602
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6583
6603
  message: string;
6584
6604
  };
6585
6605
  requestId: string;
6586
6606
  };
6587
6607
  outputFormat: "json";
6588
- status: 400;
6608
+ status: 401;
6589
6609
  input: {
6590
6610
  json: {
6591
6611
  token: string;
@@ -6594,14 +6614,14 @@ export declare function management(options?: management.Options): import("hono/h
6594
6614
  } | {
6595
6615
  output: {
6596
6616
  error: {
6597
- code: "api_key_invalid" | "api_key_missing";
6617
+ code: "forbidden";
6598
6618
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6599
6619
  message: string;
6600
6620
  };
6601
6621
  requestId: string;
6602
6622
  };
6603
6623
  outputFormat: "json";
6604
- status: 401;
6624
+ status: 403;
6605
6625
  input: {
6606
6626
  json: {
6607
6627
  token: string;
@@ -6610,14 +6630,14 @@ export declare function management(options?: management.Options): import("hono/h
6610
6630
  } | {
6611
6631
  output: {
6612
6632
  error: {
6613
- code: "forbidden";
6633
+ code: "body_invalid";
6614
6634
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6615
6635
  message: string;
6616
6636
  };
6617
6637
  requestId: string;
6618
6638
  };
6619
6639
  outputFormat: "json";
6620
- status: 403;
6640
+ status: 400;
6621
6641
  input: {
6622
6642
  json: {
6623
6643
  token: string;
@@ -6641,15 +6661,11 @@ export declare function management(options?: management.Options): import("hono/h
6641
6661
  };
6642
6662
  } | {
6643
6663
  output: {
6644
- error: {
6645
- code: "upstream_error";
6646
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6647
- message: string;
6648
- };
6649
- requestId: string;
6664
+ orgName: string;
6665
+ role: "member";
6650
6666
  };
6651
6667
  outputFormat: "json";
6652
- status: 502;
6668
+ status: 200;
6653
6669
  input: {
6654
6670
  json: {
6655
6671
  token: string;
@@ -6661,12 +6677,15 @@ export declare function management(options?: management.Options): import("hono/h
6661
6677
  "/v1/invite-links/accept": {
6662
6678
  $post: {
6663
6679
  output: {
6664
- orgId: string;
6665
- role: "member";
6666
- userId: string;
6680
+ error: {
6681
+ code: "upstream_error";
6682
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6683
+ message: string;
6684
+ };
6685
+ requestId: string;
6667
6686
  };
6668
6687
  outputFormat: "json";
6669
- status: 200;
6688
+ status: 502;
6670
6689
  input: {
6671
6690
  json: {
6672
6691
  token: string;
@@ -6691,14 +6710,14 @@ export declare function management(options?: management.Options): import("hono/h
6691
6710
  } | {
6692
6711
  output: {
6693
6712
  error: {
6694
- code: "body_invalid";
6713
+ code: "api_key_invalid" | "api_key_missing";
6695
6714
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6696
6715
  message: string;
6697
6716
  };
6698
6717
  requestId: string;
6699
6718
  };
6700
6719
  outputFormat: "json";
6701
- status: 400;
6720
+ status: 401;
6702
6721
  input: {
6703
6722
  json: {
6704
6723
  token: string;
@@ -6707,14 +6726,14 @@ export declare function management(options?: management.Options): import("hono/h
6707
6726
  } | {
6708
6727
  output: {
6709
6728
  error: {
6710
- code: "api_key_invalid" | "api_key_missing";
6729
+ code: "forbidden";
6711
6730
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6712
6731
  message: string;
6713
6732
  };
6714
6733
  requestId: string;
6715
6734
  };
6716
6735
  outputFormat: "json";
6717
- status: 401;
6736
+ status: 403;
6718
6737
  input: {
6719
6738
  json: {
6720
6739
  token: string;
@@ -6723,14 +6742,14 @@ export declare function management(options?: management.Options): import("hono/h
6723
6742
  } | {
6724
6743
  output: {
6725
6744
  error: {
6726
- code: "forbidden";
6745
+ code: "body_invalid";
6727
6746
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6728
6747
  message: string;
6729
6748
  };
6730
6749
  requestId: string;
6731
6750
  };
6732
6751
  outputFormat: "json";
6733
- status: 403;
6752
+ status: 400;
6734
6753
  input: {
6735
6754
  json: {
6736
6755
  token: string;
@@ -6754,15 +6773,12 @@ export declare function management(options?: management.Options): import("hono/h
6754
6773
  };
6755
6774
  } | {
6756
6775
  output: {
6757
- error: {
6758
- code: "upstream_error";
6759
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
6760
- message: string;
6761
- };
6762
- requestId: string;
6776
+ orgId: string;
6777
+ role: "member";
6778
+ userId: string;
6763
6779
  };
6764
6780
  outputFormat: "json";
6765
- status: 502;
6781
+ status: 200;
6766
6782
  input: {
6767
6783
  json: {
6768
6784
  token: string;