tapimo 0.15.0 → 0.15.1

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 (91) hide show
  1. package/dist/App.d.ts +26 -26
  2. package/dist/admin/App.d.ts +3 -0
  3. package/dist/admin/App.d.ts.map +1 -1
  4. package/dist/admin/apps/api-keys.d.ts +41 -41
  5. package/dist/admin/apps/routes.d.ts +64 -64
  6. package/dist/admin/apps/verified-tokens.d.ts +161 -155
  7. package/dist/admin/apps/verified-tokens.d.ts.map +1 -1
  8. package/dist/admin/apps/verified-tokens.js +24 -4
  9. package/dist/admin/apps/verified-tokens.js.map +1 -1
  10. package/dist/admin/ui.generated.d.ts +1 -1
  11. package/dist/admin/ui.generated.d.ts.map +1 -1
  12. package/dist/admin/ui.generated.js +201 -209
  13. package/dist/admin/ui.generated.js.map +1 -1
  14. package/dist/apps/data/routes/activities.d.ts +357 -357
  15. package/dist/apps/data/routes/blocks.d.ts +125 -125
  16. package/dist/apps/data/routes/fee-amm.d.ts +108 -108
  17. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
  18. package/dist/apps/data/routes/fee-amm.js +10 -2
  19. package/dist/apps/data/routes/fee-amm.js.map +1 -1
  20. package/dist/apps/data/routes/indexer.d.ts +43 -43
  21. package/dist/apps/data/routes/receipts.d.ts +235 -235
  22. package/dist/apps/data/routes/rpc.js +45 -11
  23. package/dist/apps/data/routes/rpc.js.map +1 -1
  24. package/dist/apps/data/routes/transfers.d.ts +81 -81
  25. package/dist/apps/data/routes/valuation.d.ts +32 -32
  26. package/dist/apps/data/routes/verified-tokens.d.ts +86 -86
  27. package/dist/apps/data/routes/webhooks.d.ts +1 -1
  28. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  29. package/dist/apps/data/routes/webhooks.js +17 -10
  30. package/dist/apps/data/routes/webhooks.js.map +1 -1
  31. package/dist/apps/data/routes/zones.d.ts +31 -31
  32. package/dist/apps/management/App.d.ts +26 -26
  33. package/dist/apps/management/routes/api-keys.d.ts +246 -246
  34. package/dist/apps/management/routes/invitations.d.ts +138 -138
  35. package/dist/apps/management/routes/invite-links.d.ts +168 -168
  36. package/dist/apps/management/routes/orgs.d.ts +98 -98
  37. package/dist/apps/management/routes/projects.d.ts +125 -125
  38. package/dist/apps/management/routes/verified-token-requests.d.ts +95 -95
  39. package/dist/apps/management/routes/verified-token-requests.d.ts.map +1 -1
  40. package/dist/apps/management/routes/verified-token-requests.js +7 -9
  41. package/dist/apps/management/routes/verified-token-requests.js.map +1 -1
  42. package/dist/apps/management/routes/webhooks.d.ts +423 -423
  43. package/dist/apps/mcp.d.ts.map +1 -1
  44. package/dist/apps/mcp.js +16 -3
  45. package/dist/apps/mcp.js.map +1 -1
  46. package/dist/apps/mpp/App.d.ts +44 -44
  47. package/dist/apps/routes/routes/chains.d.ts +25 -25
  48. package/dist/apps/routes/routes/quotes.d.ts +87 -87
  49. package/dist/apps/routes/routes/transfers.d.ts +438 -438
  50. package/dist/db/Db.d.ts.map +1 -1
  51. package/dist/db/Db.js +5 -0
  52. package/dist/db/Db.js.map +1 -1
  53. package/dist/db/tables/verifiedTokenRequests.d.ts +21 -4
  54. package/dist/db/tables/verifiedTokenRequests.d.ts.map +1 -1
  55. package/dist/db/tables/verifiedTokenRequests.js +65 -44
  56. package/dist/db/tables/verifiedTokenRequests.js.map +1 -1
  57. package/dist/internal/Auth.d.ts +16 -0
  58. package/dist/internal/Auth.d.ts.map +1 -1
  59. package/dist/internal/Auth.js +31 -8
  60. package/dist/internal/Auth.js.map +1 -1
  61. package/dist/internal/routes/providers/relay.d.ts +1 -1
  62. package/dist/internal/routes/providers/relay.js +1 -1
  63. package/dist/internal/routes/providers/relay.js.map +1 -1
  64. package/package.json +1 -1
  65. package/src/admin/apps/verified-tokens.test.ts +32 -0
  66. package/src/admin/apps/verified-tokens.ts +30 -4
  67. package/src/admin/ui/src/lib/verified-tokens.ts +24 -9
  68. package/src/admin/ui/src/routes/__root.tsx +1 -1
  69. package/src/admin/ui/src/routes/organizations.tsx +34 -4
  70. package/src/admin/ui/src/routes/verified-tokens.tsx +64 -20
  71. package/src/admin/ui.generated.ts +202 -263
  72. package/src/apps/data/App.test.ts +26 -0
  73. package/src/apps/data/routes/fee-amm.test.ts +19 -0
  74. package/src/apps/data/routes/fee-amm.ts +10 -2
  75. package/src/apps/data/routes/rpc.test.ts +32 -0
  76. package/src/apps/data/routes/rpc.ts +47 -10
  77. package/src/apps/data/routes/webhooks.scan.test.ts +29 -0
  78. package/src/apps/data/routes/webhooks.test.ts +6 -0
  79. package/src/apps/data/routes/webhooks.ts +25 -12
  80. package/src/apps/management/routes/verified-token-requests.test.ts +16 -2
  81. package/src/apps/management/routes/verified-token-requests.ts +7 -10
  82. package/src/apps/mcp.test.ts +108 -25
  83. package/src/apps/mcp.ts +15 -3
  84. package/src/db/Db.ts +9 -0
  85. package/src/db/tables/routesDeposits.test.ts +72 -0
  86. package/src/db/tables/verifiedTokenRequests.test.ts +39 -20
  87. package/src/db/tables/verifiedTokenRequests.ts +80 -44
  88. package/src/internal/Auth.test.ts +92 -0
  89. package/src/internal/Auth.ts +51 -9
  90. package/src/internal/routes/providers/relay.test.ts +59 -0
  91. package/src/internal/routes/providers/relay.ts +1 -1
@@ -203,15 +203,22 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
203
203
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
204
204
  $post: {
205
205
  output: {
206
- error: {
207
- code: "api_key_malformed";
208
- details?: readonly Response.error.Detail[] | undefined;
209
- message: string;
210
- };
211
- requestId: string;
206
+ allowedIps: readonly string[];
207
+ createdAt: string;
208
+ createdBy?: string | undefined;
209
+ environment: "production" | "sandbox";
210
+ expiresAt?: string | undefined;
211
+ id: string;
212
+ lastUsedAt?: string | undefined;
213
+ name?: string | undefined;
214
+ orgId: string;
215
+ projectId?: string | undefined;
216
+ scopes: string[];
217
+ tokenLast4: string;
218
+ token: string;
212
219
  };
213
220
  outputFormat: "json";
214
- status: 400;
221
+ status: 200;
215
222
  input: {
216
223
  param: {
217
224
  orgId: string;
@@ -228,14 +235,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
228
235
  } | {
229
236
  output: {
230
237
  error: {
231
- code: "api_key_invalid" | "api_key_missing";
238
+ code: "api_key_malformed";
232
239
  details?: readonly Response.error.Detail[] | undefined;
233
240
  message: string;
234
241
  };
235
242
  requestId: string;
236
243
  };
237
244
  outputFormat: "json";
238
- status: 401;
245
+ status: 400;
239
246
  input: {
240
247
  param: {
241
248
  orgId: string;
@@ -252,14 +259,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
252
259
  } | {
253
260
  output: {
254
261
  error: {
255
- code: "upstream_error";
262
+ code: "param_invalid";
256
263
  details?: readonly Response.error.Detail[] | undefined;
257
264
  message: string;
258
265
  };
259
266
  requestId: string;
260
267
  };
261
268
  outputFormat: "json";
262
- status: 502;
269
+ status: 400;
263
270
  input: {
264
271
  param: {
265
272
  orgId: string;
@@ -276,7 +283,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
276
283
  } | {
277
284
  output: {
278
285
  error: {
279
- code: "param_invalid";
286
+ code: "body_invalid";
280
287
  details?: readonly Response.error.Detail[] | undefined;
281
288
  message: string;
282
289
  };
@@ -300,14 +307,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
300
307
  } | {
301
308
  output: {
302
309
  error: {
303
- code: "body_invalid";
310
+ code: "api_key_invalid" | "api_key_missing";
304
311
  details?: readonly Response.error.Detail[] | undefined;
305
312
  message: string;
306
313
  };
307
314
  requestId: string;
308
315
  };
309
316
  outputFormat: "json";
310
- status: 400;
317
+ status: 401;
311
318
  input: {
312
319
  param: {
313
320
  orgId: string;
@@ -348,14 +355,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
348
355
  } | {
349
356
  output: {
350
357
  error: {
351
- code: "organization_not_found" | "project_not_found";
358
+ code: "scope_not_issuable";
352
359
  details?: readonly Response.error.Detail[] | undefined;
353
360
  message: string;
354
361
  };
355
362
  requestId: string;
356
363
  };
357
364
  outputFormat: "json";
358
- status: 404;
365
+ status: 403;
359
366
  input: {
360
367
  param: {
361
368
  orgId: string;
@@ -372,7 +379,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
372
379
  } | {
373
380
  output: {
374
381
  error: {
375
- code: "api_keys_not_enabled";
382
+ code: "organization_not_found" | "project_not_found";
376
383
  details?: readonly Response.error.Detail[] | undefined;
377
384
  message: string;
378
385
  };
@@ -396,14 +403,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
396
403
  } | {
397
404
  output: {
398
405
  error: {
399
- code: "scope_not_issuable";
406
+ code: "api_keys_not_enabled";
400
407
  details?: readonly Response.error.Detail[] | undefined;
401
408
  message: string;
402
409
  };
403
410
  requestId: string;
404
411
  };
405
412
  outputFormat: "json";
406
- status: 403;
413
+ status: 404;
407
414
  input: {
408
415
  param: {
409
416
  orgId: string;
@@ -419,22 +426,15 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
419
426
  };
420
427
  } | {
421
428
  output: {
422
- allowedIps: readonly string[];
423
- createdAt: string;
424
- createdBy?: string | undefined;
425
- environment: "production" | "sandbox";
426
- expiresAt?: string | undefined;
427
- id: string;
428
- lastUsedAt?: string | undefined;
429
- name?: string | undefined;
430
- orgId: string;
431
- projectId?: string | undefined;
432
- scopes: string[];
433
- tokenLast4: string;
434
- token: string;
429
+ error: {
430
+ code: "api_key_limit_reached";
431
+ details?: readonly Response.error.Detail[] | undefined;
432
+ message: string;
433
+ };
434
+ requestId: string;
435
435
  };
436
436
  outputFormat: "json";
437
- status: 200;
437
+ status: 409;
438
438
  input: {
439
439
  param: {
440
440
  orgId: string;
@@ -451,14 +451,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
451
451
  } | {
452
452
  output: {
453
453
  error: {
454
- code: "api_key_limit_reached";
454
+ code: "upstream_error";
455
455
  details?: readonly Response.error.Detail[] | undefined;
456
456
  message: string;
457
457
  };
458
458
  requestId: string;
459
459
  };
460
460
  outputFormat: "json";
461
- status: 409;
461
+ status: 502;
462
462
  input: {
463
463
  param: {
464
464
  orgId: string;
@@ -477,6 +477,36 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
477
477
  } & {
478
478
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
479
479
  $get: {
480
+ output: {
481
+ data: {
482
+ allowedIps: readonly string[];
483
+ createdAt: string;
484
+ createdBy?: string | undefined;
485
+ environment: "production" | "sandbox";
486
+ expiresAt?: string | undefined;
487
+ id: string;
488
+ lastUsedAt?: string | undefined;
489
+ name?: string | undefined;
490
+ orgId: string;
491
+ projectId?: string | undefined;
492
+ scopes: string[];
493
+ tokenLast4: string;
494
+ }[];
495
+ };
496
+ outputFormat: "json";
497
+ status: 200;
498
+ input: {
499
+ param: {
500
+ orgId: string;
501
+ projectId: string;
502
+ };
503
+ } & {
504
+ query?: {
505
+ environment?: string | string[];
506
+ include?: string | string[];
507
+ } | undefined;
508
+ };
509
+ } | {
480
510
  output: {
481
511
  error: {
482
512
  code: "api_key_malformed";
@@ -501,14 +531,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
501
531
  } | {
502
532
  output: {
503
533
  error: {
504
- code: "api_key_invalid" | "api_key_missing";
534
+ code: "query_invalid";
505
535
  details?: readonly Response.error.Detail[] | undefined;
506
536
  message: string;
507
537
  };
508
538
  requestId: string;
509
539
  };
510
540
  outputFormat: "json";
511
- status: 401;
541
+ status: 400;
512
542
  input: {
513
543
  param: {
514
544
  orgId: string;
@@ -523,14 +553,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
523
553
  } | {
524
554
  output: {
525
555
  error: {
526
- code: "api_key_forbidden" | "api_key_ip_forbidden";
556
+ code: "param_invalid";
527
557
  details?: readonly Response.error.Detail[] | undefined;
528
558
  message: string;
529
559
  };
530
560
  requestId: string;
531
561
  };
532
562
  outputFormat: "json";
533
- status: 403;
563
+ status: 400;
534
564
  input: {
535
565
  param: {
536
566
  orgId: string;
@@ -545,14 +575,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
545
575
  } | {
546
576
  output: {
547
577
  error: {
548
- code: "payment_required" | "rate_limit_exceeded";
578
+ code: "api_key_invalid" | "api_key_missing";
549
579
  details?: readonly Response.error.Detail[] | undefined;
550
580
  message: string;
551
581
  };
552
582
  requestId: string;
553
583
  };
554
584
  outputFormat: "json";
555
- status: 429;
585
+ status: 401;
556
586
  input: {
557
587
  param: {
558
588
  orgId: string;
@@ -567,14 +597,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
567
597
  } | {
568
598
  output: {
569
599
  error: {
570
- code: "query_invalid";
600
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
571
601
  details?: readonly Response.error.Detail[] | undefined;
572
602
  message: string;
573
603
  };
574
604
  requestId: string;
575
605
  };
576
606
  outputFormat: "json";
577
- status: 400;
607
+ status: 403;
578
608
  input: {
579
609
  param: {
580
610
  orgId: string;
@@ -589,14 +619,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
589
619
  } | {
590
620
  output: {
591
621
  error: {
592
- code: "upstream_error";
622
+ code: "organization_not_found" | "project_not_found";
593
623
  details?: readonly Response.error.Detail[] | undefined;
594
624
  message: string;
595
625
  };
596
626
  requestId: string;
597
627
  };
598
628
  outputFormat: "json";
599
- status: 502;
629
+ status: 404;
600
630
  input: {
601
631
  param: {
602
632
  orgId: string;
@@ -611,14 +641,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
611
641
  } | {
612
642
  output: {
613
643
  error: {
614
- code: "param_invalid";
644
+ code: "api_keys_not_enabled";
615
645
  details?: readonly Response.error.Detail[] | undefined;
616
646
  message: string;
617
647
  };
618
648
  requestId: string;
619
649
  };
620
650
  outputFormat: "json";
621
- status: 400;
651
+ status: 404;
622
652
  input: {
623
653
  param: {
624
654
  orgId: string;
@@ -633,14 +663,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
633
663
  } | {
634
664
  output: {
635
665
  error: {
636
- code: "organization_not_found" | "project_not_found";
666
+ code: "payment_required" | "rate_limit_exceeded";
637
667
  details?: readonly Response.error.Detail[] | undefined;
638
668
  message: string;
639
669
  };
640
670
  requestId: string;
641
671
  };
642
672
  outputFormat: "json";
643
- status: 404;
673
+ status: 429;
644
674
  input: {
645
675
  param: {
646
676
  orgId: string;
@@ -655,14 +685,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
655
685
  } | {
656
686
  output: {
657
687
  error: {
658
- code: "api_keys_not_enabled";
688
+ code: "upstream_error";
659
689
  details?: readonly Response.error.Detail[] | undefined;
660
690
  message: string;
661
691
  };
662
692
  requestId: string;
663
693
  };
664
694
  outputFormat: "json";
665
- status: 404;
695
+ status: 502;
666
696
  input: {
667
697
  param: {
668
698
  orgId: string;
@@ -674,7 +704,11 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
674
704
  include?: string | string[];
675
705
  } | undefined;
676
706
  };
677
- } | {
707
+ };
708
+ };
709
+ } & {
710
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys": {
711
+ $get: {
678
712
  output: {
679
713
  data: {
680
714
  allowedIps: readonly string[];
@@ -696,7 +730,6 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
696
730
  input: {
697
731
  param: {
698
732
  orgId: string;
699
- projectId: string;
700
733
  };
701
734
  } & {
702
735
  query?: {
@@ -704,11 +737,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
704
737
  include?: string | string[];
705
738
  } | undefined;
706
739
  };
707
- };
708
- };
709
- } & {
710
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys": {
711
- $get: {
740
+ } | {
712
741
  output: {
713
742
  error: {
714
743
  code: "api_key_malformed";
@@ -732,14 +761,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
732
761
  } | {
733
762
  output: {
734
763
  error: {
735
- code: "api_key_invalid" | "api_key_missing";
764
+ code: "query_invalid";
736
765
  details?: readonly Response.error.Detail[] | undefined;
737
766
  message: string;
738
767
  };
739
768
  requestId: string;
740
769
  };
741
770
  outputFormat: "json";
742
- status: 401;
771
+ status: 400;
743
772
  input: {
744
773
  param: {
745
774
  orgId: string;
@@ -753,14 +782,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
753
782
  } | {
754
783
  output: {
755
784
  error: {
756
- code: "api_key_forbidden" | "api_key_ip_forbidden";
785
+ code: "param_invalid";
757
786
  details?: readonly Response.error.Detail[] | undefined;
758
787
  message: string;
759
788
  };
760
789
  requestId: string;
761
790
  };
762
791
  outputFormat: "json";
763
- status: 403;
792
+ status: 400;
764
793
  input: {
765
794
  param: {
766
795
  orgId: string;
@@ -774,14 +803,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
774
803
  } | {
775
804
  output: {
776
805
  error: {
777
- code: "payment_required" | "rate_limit_exceeded";
806
+ code: "api_key_invalid" | "api_key_missing";
778
807
  details?: readonly Response.error.Detail[] | undefined;
779
808
  message: string;
780
809
  };
781
810
  requestId: string;
782
811
  };
783
812
  outputFormat: "json";
784
- status: 429;
813
+ status: 401;
785
814
  input: {
786
815
  param: {
787
816
  orgId: string;
@@ -795,14 +824,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
795
824
  } | {
796
825
  output: {
797
826
  error: {
798
- code: "query_invalid";
827
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
799
828
  details?: readonly Response.error.Detail[] | undefined;
800
829
  message: string;
801
830
  };
802
831
  requestId: string;
803
832
  };
804
833
  outputFormat: "json";
805
- status: 400;
834
+ status: 403;
806
835
  input: {
807
836
  param: {
808
837
  orgId: string;
@@ -816,14 +845,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
816
845
  } | {
817
846
  output: {
818
847
  error: {
819
- code: "upstream_error";
848
+ code: "api_keys_not_enabled";
820
849
  details?: readonly Response.error.Detail[] | undefined;
821
850
  message: string;
822
851
  };
823
852
  requestId: string;
824
853
  };
825
854
  outputFormat: "json";
826
- status: 502;
855
+ status: 404;
827
856
  input: {
828
857
  param: {
829
858
  orgId: string;
@@ -837,14 +866,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
837
866
  } | {
838
867
  output: {
839
868
  error: {
840
- code: "param_invalid";
869
+ code: "organization_not_found";
841
870
  details?: readonly Response.error.Detail[] | undefined;
842
871
  message: string;
843
872
  };
844
873
  requestId: string;
845
874
  };
846
875
  outputFormat: "json";
847
- status: 400;
876
+ status: 404;
848
877
  input: {
849
878
  param: {
850
879
  orgId: string;
@@ -858,43 +887,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
858
887
  } | {
859
888
  output: {
860
889
  error: {
861
- code: "api_keys_not_enabled";
890
+ code: "payment_required" | "rate_limit_exceeded";
862
891
  details?: readonly Response.error.Detail[] | undefined;
863
892
  message: string;
864
893
  };
865
894
  requestId: string;
866
895
  };
867
896
  outputFormat: "json";
868
- status: 404;
869
- input: {
870
- param: {
871
- orgId: string;
872
- };
873
- } & {
874
- query?: {
875
- environment?: string | string[];
876
- include?: string | string[];
877
- } | undefined;
878
- };
879
- } | {
880
- output: {
881
- data: {
882
- allowedIps: readonly string[];
883
- createdAt: string;
884
- createdBy?: string | undefined;
885
- environment: "production" | "sandbox";
886
- expiresAt?: string | undefined;
887
- id: string;
888
- lastUsedAt?: string | undefined;
889
- name?: string | undefined;
890
- orgId: string;
891
- projectId?: string | undefined;
892
- scopes: string[];
893
- tokenLast4: string;
894
- }[];
895
- };
896
- outputFormat: "json";
897
- status: 200;
897
+ status: 429;
898
898
  input: {
899
899
  param: {
900
900
  orgId: string;
@@ -908,14 +908,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
908
908
  } | {
909
909
  output: {
910
910
  error: {
911
- code: "organization_not_found";
911
+ code: "upstream_error";
912
912
  details?: readonly Response.error.Detail[] | undefined;
913
913
  message: string;
914
914
  };
915
915
  requestId: string;
916
916
  };
917
917
  outputFormat: "json";
918
- status: 404;
918
+ status: 502;
919
919
  input: {
920
920
  param: {
921
921
  orgId: string;
@@ -931,6 +931,30 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
931
931
  } & {
932
932
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}/rotate": {
933
933
  $post: {
934
+ output: {
935
+ allowedIps: readonly string[];
936
+ createdAt: string;
937
+ createdBy?: string | undefined;
938
+ environment: "production" | "sandbox";
939
+ expiresAt?: string | undefined;
940
+ id: string;
941
+ lastUsedAt?: string | undefined;
942
+ name?: string | undefined;
943
+ orgId: string;
944
+ projectId?: string | undefined;
945
+ scopes: string[];
946
+ tokenLast4: string;
947
+ token: string;
948
+ };
949
+ outputFormat: "json";
950
+ status: 200;
951
+ input: {
952
+ param: {
953
+ keyId: string;
954
+ orgId: string;
955
+ };
956
+ };
957
+ } | {
934
958
  output: {
935
959
  error: {
936
960
  code: "api_key_malformed";
@@ -950,14 +974,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
950
974
  } | {
951
975
  output: {
952
976
  error: {
953
- code: "api_key_invalid" | "api_key_missing";
977
+ code: "param_invalid";
954
978
  details?: readonly Response.error.Detail[] | undefined;
955
979
  message: string;
956
980
  };
957
981
  requestId: string;
958
982
  };
959
983
  outputFormat: "json";
960
- status: 401;
984
+ status: 400;
961
985
  input: {
962
986
  param: {
963
987
  keyId: string;
@@ -967,14 +991,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
967
991
  } | {
968
992
  output: {
969
993
  error: {
970
- code: "upstream_error";
994
+ code: "api_key_invalid" | "api_key_missing";
971
995
  details?: readonly Response.error.Detail[] | undefined;
972
996
  message: string;
973
997
  };
974
998
  requestId: string;
975
999
  };
976
1000
  outputFormat: "json";
977
- status: 502;
1001
+ status: 401;
978
1002
  input: {
979
1003
  param: {
980
1004
  keyId: string;
@@ -984,14 +1008,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
984
1008
  } | {
985
1009
  output: {
986
1010
  error: {
987
- code: "param_invalid";
1011
+ code: "forbidden";
988
1012
  details?: readonly Response.error.Detail[] | undefined;
989
1013
  message: string;
990
1014
  };
991
1015
  requestId: string;
992
1016
  };
993
1017
  outputFormat: "json";
994
- status: 400;
1018
+ status: 403;
995
1019
  input: {
996
1020
  param: {
997
1021
  keyId: string;
@@ -1001,7 +1025,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1001
1025
  } | {
1002
1026
  output: {
1003
1027
  error: {
1004
- code: "forbidden";
1028
+ code: "scope_not_issuable";
1005
1029
  details?: readonly Response.error.Detail[] | undefined;
1006
1030
  message: string;
1007
1031
  };
@@ -1035,14 +1059,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1035
1059
  } | {
1036
1060
  output: {
1037
1061
  error: {
1038
- code: "scope_not_issuable";
1062
+ code: "organization_not_found";
1039
1063
  details?: readonly Response.error.Detail[] | undefined;
1040
1064
  message: string;
1041
1065
  };
1042
1066
  requestId: string;
1043
1067
  };
1044
1068
  outputFormat: "json";
1045
- status: 403;
1069
+ status: 404;
1046
1070
  input: {
1047
1071
  param: {
1048
1072
  keyId: string;
@@ -1052,14 +1076,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1052
1076
  } | {
1053
1077
  output: {
1054
1078
  error: {
1055
- code: "api_key_limit_reached";
1079
+ code: "api_key_not_found";
1056
1080
  details?: readonly Response.error.Detail[] | undefined;
1057
1081
  message: string;
1058
1082
  };
1059
1083
  requestId: string;
1060
1084
  };
1061
1085
  outputFormat: "json";
1062
- status: 409;
1086
+ status: 404;
1063
1087
  input: {
1064
1088
  param: {
1065
1089
  keyId: string;
@@ -1069,14 +1093,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1069
1093
  } | {
1070
1094
  output: {
1071
1095
  error: {
1072
- code: "organization_not_found";
1096
+ code: "api_key_limit_reached";
1073
1097
  details?: readonly Response.error.Detail[] | undefined;
1074
1098
  message: string;
1075
1099
  };
1076
1100
  requestId: string;
1077
1101
  };
1078
1102
  outputFormat: "json";
1079
- status: 404;
1103
+ status: 409;
1080
1104
  input: {
1081
1105
  param: {
1082
1106
  keyId: string;
@@ -1086,35 +1110,27 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1086
1110
  } | {
1087
1111
  output: {
1088
1112
  error: {
1089
- code: "api_key_not_found";
1113
+ code: "upstream_error";
1090
1114
  details?: readonly Response.error.Detail[] | undefined;
1091
1115
  message: string;
1092
1116
  };
1093
1117
  requestId: string;
1094
1118
  };
1095
1119
  outputFormat: "json";
1096
- status: 404;
1120
+ status: 502;
1097
1121
  input: {
1098
1122
  param: {
1099
1123
  keyId: string;
1100
1124
  orgId: string;
1101
1125
  };
1102
1126
  };
1103
- } | {
1127
+ };
1128
+ };
1129
+ } & {
1130
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
1131
+ $delete: {
1104
1132
  output: {
1105
- allowedIps: readonly string[];
1106
- createdAt: string;
1107
- createdBy?: string | undefined;
1108
- environment: "production" | "sandbox";
1109
- expiresAt?: string | undefined;
1110
1133
  id: string;
1111
- lastUsedAt?: string | undefined;
1112
- name?: string | undefined;
1113
- orgId: string;
1114
- projectId?: string | undefined;
1115
- scopes: string[];
1116
- tokenLast4: string;
1117
- token: string;
1118
1134
  };
1119
1135
  outputFormat: "json";
1120
1136
  status: 200;
@@ -1124,11 +1140,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1124
1140
  orgId: string;
1125
1141
  };
1126
1142
  };
1127
- };
1128
- };
1129
- } & {
1130
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
1131
- $delete: {
1143
+ } | {
1132
1144
  output: {
1133
1145
  error: {
1134
1146
  code: "api_key_malformed";
@@ -1148,14 +1160,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1148
1160
  } | {
1149
1161
  output: {
1150
1162
  error: {
1151
- code: "api_key_invalid" | "api_key_missing";
1163
+ code: "param_invalid";
1152
1164
  details?: readonly Response.error.Detail[] | undefined;
1153
1165
  message: string;
1154
1166
  };
1155
1167
  requestId: string;
1156
1168
  };
1157
1169
  outputFormat: "json";
1158
- status: 401;
1170
+ status: 400;
1159
1171
  input: {
1160
1172
  param: {
1161
1173
  keyId: string;
@@ -1165,14 +1177,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1165
1177
  } | {
1166
1178
  output: {
1167
1179
  error: {
1168
- code: "api_key_forbidden" | "api_key_ip_forbidden";
1180
+ code: "api_key_invalid" | "api_key_missing";
1169
1181
  details?: readonly Response.error.Detail[] | undefined;
1170
1182
  message: string;
1171
1183
  };
1172
1184
  requestId: string;
1173
1185
  };
1174
1186
  outputFormat: "json";
1175
- status: 403;
1187
+ status: 401;
1176
1188
  input: {
1177
1189
  param: {
1178
1190
  keyId: string;
@@ -1182,14 +1194,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1182
1194
  } | {
1183
1195
  output: {
1184
1196
  error: {
1185
- code: "payment_required" | "rate_limit_exceeded";
1197
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1186
1198
  details?: readonly Response.error.Detail[] | undefined;
1187
1199
  message: string;
1188
1200
  };
1189
1201
  requestId: string;
1190
1202
  };
1191
1203
  outputFormat: "json";
1192
- status: 429;
1204
+ status: 403;
1193
1205
  input: {
1194
1206
  param: {
1195
1207
  keyId: string;
@@ -1199,14 +1211,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1199
1211
  } | {
1200
1212
  output: {
1201
1213
  error: {
1202
- code: "upstream_error";
1214
+ code: "forbidden";
1203
1215
  details?: readonly Response.error.Detail[] | undefined;
1204
1216
  message: string;
1205
1217
  };
1206
1218
  requestId: string;
1207
1219
  };
1208
1220
  outputFormat: "json";
1209
- status: 502;
1221
+ status: 403;
1210
1222
  input: {
1211
1223
  param: {
1212
1224
  keyId: string;
@@ -1216,14 +1228,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1216
1228
  } | {
1217
1229
  output: {
1218
1230
  error: {
1219
- code: "param_invalid";
1231
+ code: "api_keys_not_enabled";
1220
1232
  details?: readonly Response.error.Detail[] | undefined;
1221
1233
  message: string;
1222
1234
  };
1223
1235
  requestId: string;
1224
1236
  };
1225
1237
  outputFormat: "json";
1226
- status: 400;
1238
+ status: 404;
1227
1239
  input: {
1228
1240
  param: {
1229
1241
  keyId: string;
@@ -1233,14 +1245,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1233
1245
  } | {
1234
1246
  output: {
1235
1247
  error: {
1236
- code: "forbidden";
1248
+ code: "api_key_not_found";
1237
1249
  details?: readonly Response.error.Detail[] | undefined;
1238
1250
  message: string;
1239
1251
  };
1240
1252
  requestId: string;
1241
1253
  };
1242
1254
  outputFormat: "json";
1243
- status: 403;
1255
+ status: 404;
1244
1256
  input: {
1245
1257
  param: {
1246
1258
  keyId: string;
@@ -1250,14 +1262,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1250
1262
  } | {
1251
1263
  output: {
1252
1264
  error: {
1253
- code: "api_keys_not_enabled";
1265
+ code: "payment_required" | "rate_limit_exceeded";
1254
1266
  details?: readonly Response.error.Detail[] | undefined;
1255
1267
  message: string;
1256
1268
  };
1257
1269
  requestId: string;
1258
1270
  };
1259
1271
  outputFormat: "json";
1260
- status: 404;
1272
+ status: 429;
1261
1273
  input: {
1262
1274
  param: {
1263
1275
  keyId: string;
@@ -1267,23 +1279,38 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1267
1279
  } | {
1268
1280
  output: {
1269
1281
  error: {
1270
- code: "api_key_not_found";
1282
+ code: "upstream_error";
1271
1283
  details?: readonly Response.error.Detail[] | undefined;
1272
1284
  message: string;
1273
1285
  };
1274
1286
  requestId: string;
1275
1287
  };
1276
1288
  outputFormat: "json";
1277
- status: 404;
1289
+ status: 502;
1278
1290
  input: {
1279
1291
  param: {
1280
1292
  keyId: string;
1281
1293
  orgId: string;
1282
1294
  };
1283
1295
  };
1284
- } | {
1296
+ };
1297
+ };
1298
+ } & {
1299
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
1300
+ $patch: {
1285
1301
  output: {
1302
+ allowedIps: readonly string[];
1303
+ createdAt: string;
1304
+ createdBy?: string | undefined;
1305
+ environment: "production" | "sandbox";
1306
+ expiresAt?: string | undefined;
1286
1307
  id: string;
1308
+ lastUsedAt?: string | undefined;
1309
+ name?: string | undefined;
1310
+ orgId: string;
1311
+ projectId?: string | undefined;
1312
+ scopes: string[];
1313
+ tokenLast4: string;
1287
1314
  };
1288
1315
  outputFormat: "json";
1289
1316
  status: 200;
@@ -1291,13 +1318,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1291
1318
  param: {
1292
1319
  keyId: string;
1293
1320
  orgId: string;
1321
+ projectId: string;
1322
+ };
1323
+ } & {
1324
+ json: {
1325
+ allowedIps: readonly string[];
1294
1326
  };
1295
1327
  };
1296
- };
1297
- };
1298
- } & {
1299
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
1300
- $patch: {
1328
+ } | {
1301
1329
  output: {
1302
1330
  error: {
1303
1331
  code: "api_key_malformed";
@@ -1322,14 +1350,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1322
1350
  } | {
1323
1351
  output: {
1324
1352
  error: {
1325
- code: "api_key_invalid" | "api_key_missing";
1353
+ code: "param_invalid";
1326
1354
  details?: readonly Response.error.Detail[] | undefined;
1327
1355
  message: string;
1328
1356
  };
1329
1357
  requestId: string;
1330
1358
  };
1331
1359
  outputFormat: "json";
1332
- status: 401;
1360
+ status: 400;
1333
1361
  input: {
1334
1362
  param: {
1335
1363
  keyId: string;
@@ -1344,14 +1372,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1344
1372
  } | {
1345
1373
  output: {
1346
1374
  error: {
1347
- code: "api_key_forbidden" | "api_key_ip_forbidden";
1375
+ code: "body_invalid";
1348
1376
  details?: readonly Response.error.Detail[] | undefined;
1349
1377
  message: string;
1350
1378
  };
1351
1379
  requestId: string;
1352
1380
  };
1353
1381
  outputFormat: "json";
1354
- status: 403;
1382
+ status: 400;
1355
1383
  input: {
1356
1384
  param: {
1357
1385
  keyId: string;
@@ -1366,14 +1394,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1366
1394
  } | {
1367
1395
  output: {
1368
1396
  error: {
1369
- code: "payment_required" | "rate_limit_exceeded";
1397
+ code: "api_key_invalid" | "api_key_missing";
1370
1398
  details?: readonly Response.error.Detail[] | undefined;
1371
1399
  message: string;
1372
1400
  };
1373
1401
  requestId: string;
1374
1402
  };
1375
1403
  outputFormat: "json";
1376
- status: 429;
1404
+ status: 401;
1377
1405
  input: {
1378
1406
  param: {
1379
1407
  keyId: string;
@@ -1388,14 +1416,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1388
1416
  } | {
1389
1417
  output: {
1390
1418
  error: {
1391
- code: "upstream_error";
1419
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1392
1420
  details?: readonly Response.error.Detail[] | undefined;
1393
1421
  message: string;
1394
1422
  };
1395
1423
  requestId: string;
1396
1424
  };
1397
1425
  outputFormat: "json";
1398
- status: 502;
1426
+ status: 403;
1399
1427
  input: {
1400
1428
  param: {
1401
1429
  keyId: string;
@@ -1410,14 +1438,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1410
1438
  } | {
1411
1439
  output: {
1412
1440
  error: {
1413
- code: "param_invalid";
1441
+ code: "forbidden";
1414
1442
  details?: readonly Response.error.Detail[] | undefined;
1415
1443
  message: string;
1416
1444
  };
1417
1445
  requestId: string;
1418
1446
  };
1419
1447
  outputFormat: "json";
1420
- status: 400;
1448
+ status: 403;
1421
1449
  input: {
1422
1450
  param: {
1423
1451
  keyId: string;
@@ -1432,14 +1460,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1432
1460
  } | {
1433
1461
  output: {
1434
1462
  error: {
1435
- code: "body_invalid";
1463
+ code: "organization_not_found" | "project_not_found";
1436
1464
  details?: readonly Response.error.Detail[] | undefined;
1437
1465
  message: string;
1438
1466
  };
1439
1467
  requestId: string;
1440
1468
  };
1441
1469
  outputFormat: "json";
1442
- status: 400;
1470
+ status: 404;
1443
1471
  input: {
1444
1472
  param: {
1445
1473
  keyId: string;
@@ -1454,14 +1482,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1454
1482
  } | {
1455
1483
  output: {
1456
1484
  error: {
1457
- code: "forbidden";
1485
+ code: "api_keys_not_enabled";
1458
1486
  details?: readonly Response.error.Detail[] | undefined;
1459
1487
  message: string;
1460
1488
  };
1461
1489
  requestId: string;
1462
1490
  };
1463
1491
  outputFormat: "json";
1464
- status: 403;
1492
+ status: 404;
1465
1493
  input: {
1466
1494
  param: {
1467
1495
  keyId: string;
@@ -1476,7 +1504,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1476
1504
  } | {
1477
1505
  output: {
1478
1506
  error: {
1479
- code: "organization_not_found" | "project_not_found";
1507
+ code: "api_key_not_found";
1480
1508
  details?: readonly Response.error.Detail[] | undefined;
1481
1509
  message: string;
1482
1510
  };
@@ -1498,14 +1526,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1498
1526
  } | {
1499
1527
  output: {
1500
1528
  error: {
1501
- code: "api_keys_not_enabled";
1529
+ code: "payment_required" | "rate_limit_exceeded";
1502
1530
  details?: readonly Response.error.Detail[] | undefined;
1503
1531
  message: string;
1504
1532
  };
1505
1533
  requestId: string;
1506
1534
  };
1507
1535
  outputFormat: "json";
1508
- status: 404;
1536
+ status: 429;
1509
1537
  input: {
1510
1538
  param: {
1511
1539
  keyId: string;
@@ -1520,14 +1548,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1520
1548
  } | {
1521
1549
  output: {
1522
1550
  error: {
1523
- code: "api_key_not_found";
1551
+ code: "upstream_error";
1524
1552
  details?: readonly Response.error.Detail[] | undefined;
1525
1553
  message: string;
1526
1554
  };
1527
1555
  requestId: string;
1528
1556
  };
1529
1557
  outputFormat: "json";
1530
- status: 404;
1558
+ status: 502;
1531
1559
  input: {
1532
1560
  param: {
1533
1561
  keyId: string;
@@ -1539,7 +1567,11 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1539
1567
  allowedIps: readonly string[];
1540
1568
  };
1541
1569
  };
1542
- } | {
1570
+ };
1571
+ };
1572
+ } & {
1573
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}/rotate": {
1574
+ $post: {
1543
1575
  output: {
1544
1576
  allowedIps: readonly string[];
1545
1577
  createdAt: string;
@@ -1553,6 +1585,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1553
1585
  projectId?: string | undefined;
1554
1586
  scopes: string[];
1555
1587
  tokenLast4: string;
1588
+ token: string;
1556
1589
  };
1557
1590
  outputFormat: "json";
1558
1591
  status: 200;
@@ -1562,16 +1595,8 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1562
1595
  orgId: string;
1563
1596
  projectId: string;
1564
1597
  };
1565
- } & {
1566
- json: {
1567
- allowedIps: readonly string[];
1568
- };
1569
1598
  };
1570
- };
1571
- };
1572
- } & {
1573
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}/rotate": {
1574
- $post: {
1599
+ } | {
1575
1600
  output: {
1576
1601
  error: {
1577
1602
  code: "api_key_malformed";
@@ -1592,14 +1617,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1592
1617
  } | {
1593
1618
  output: {
1594
1619
  error: {
1595
- code: "api_key_invalid" | "api_key_missing";
1620
+ code: "param_invalid";
1596
1621
  details?: readonly Response.error.Detail[] | undefined;
1597
1622
  message: string;
1598
1623
  };
1599
1624
  requestId: string;
1600
1625
  };
1601
1626
  outputFormat: "json";
1602
- status: 401;
1627
+ status: 400;
1603
1628
  input: {
1604
1629
  param: {
1605
1630
  keyId: string;
@@ -1610,14 +1635,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1610
1635
  } | {
1611
1636
  output: {
1612
1637
  error: {
1613
- code: "upstream_error";
1638
+ code: "api_key_invalid" | "api_key_missing";
1614
1639
  details?: readonly Response.error.Detail[] | undefined;
1615
1640
  message: string;
1616
1641
  };
1617
1642
  requestId: string;
1618
1643
  };
1619
1644
  outputFormat: "json";
1620
- status: 502;
1645
+ status: 401;
1621
1646
  input: {
1622
1647
  param: {
1623
1648
  keyId: string;
@@ -1628,14 +1653,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1628
1653
  } | {
1629
1654
  output: {
1630
1655
  error: {
1631
- code: "param_invalid";
1656
+ code: "forbidden";
1632
1657
  details?: readonly Response.error.Detail[] | undefined;
1633
1658
  message: string;
1634
1659
  };
1635
1660
  requestId: string;
1636
1661
  };
1637
1662
  outputFormat: "json";
1638
- status: 400;
1663
+ status: 403;
1639
1664
  input: {
1640
1665
  param: {
1641
1666
  keyId: string;
@@ -1646,7 +1671,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1646
1671
  } | {
1647
1672
  output: {
1648
1673
  error: {
1649
- code: "forbidden";
1674
+ code: "scope_not_issuable";
1650
1675
  details?: readonly Response.error.Detail[] | undefined;
1651
1676
  message: string;
1652
1677
  };
@@ -1700,14 +1725,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1700
1725
  } | {
1701
1726
  output: {
1702
1727
  error: {
1703
- code: "scope_not_issuable";
1728
+ code: "api_key_not_found";
1704
1729
  details?: readonly Response.error.Detail[] | undefined;
1705
1730
  message: string;
1706
1731
  };
1707
1732
  requestId: string;
1708
1733
  };
1709
1734
  outputFormat: "json";
1710
- status: 403;
1735
+ status: 404;
1711
1736
  input: {
1712
1737
  param: {
1713
1738
  keyId: string;
@@ -1736,14 +1761,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1736
1761
  } | {
1737
1762
  output: {
1738
1763
  error: {
1739
- code: "api_key_not_found";
1764
+ code: "upstream_error";
1740
1765
  details?: readonly Response.error.Detail[] | undefined;
1741
1766
  message: string;
1742
1767
  };
1743
1768
  requestId: string;
1744
1769
  };
1745
1770
  outputFormat: "json";
1746
- status: 404;
1771
+ status: 502;
1747
1772
  input: {
1748
1773
  param: {
1749
1774
  keyId: string;
@@ -1751,21 +1776,13 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1751
1776
  projectId: string;
1752
1777
  };
1753
1778
  };
1754
- } | {
1779
+ };
1780
+ };
1781
+ } & {
1782
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
1783
+ $delete: {
1755
1784
  output: {
1756
- allowedIps: readonly string[];
1757
- createdAt: string;
1758
- createdBy?: string | undefined;
1759
- environment: "production" | "sandbox";
1760
- expiresAt?: string | undefined;
1761
1785
  id: string;
1762
- lastUsedAt?: string | undefined;
1763
- name?: string | undefined;
1764
- orgId: string;
1765
- projectId?: string | undefined;
1766
- scopes: string[];
1767
- tokenLast4: string;
1768
- token: string;
1769
1786
  };
1770
1787
  outputFormat: "json";
1771
1788
  status: 200;
@@ -1776,11 +1793,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1776
1793
  projectId: string;
1777
1794
  };
1778
1795
  };
1779
- };
1780
- };
1781
- } & {
1782
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
1783
- $delete: {
1796
+ } | {
1784
1797
  output: {
1785
1798
  error: {
1786
1799
  code: "api_key_malformed";
@@ -1801,14 +1814,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1801
1814
  } | {
1802
1815
  output: {
1803
1816
  error: {
1804
- code: "api_key_invalid" | "api_key_missing";
1817
+ code: "param_invalid";
1805
1818
  details?: readonly Response.error.Detail[] | undefined;
1806
1819
  message: string;
1807
1820
  };
1808
1821
  requestId: string;
1809
1822
  };
1810
1823
  outputFormat: "json";
1811
- status: 401;
1824
+ status: 400;
1812
1825
  input: {
1813
1826
  param: {
1814
1827
  keyId: string;
@@ -1819,14 +1832,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1819
1832
  } | {
1820
1833
  output: {
1821
1834
  error: {
1822
- code: "api_key_forbidden" | "api_key_ip_forbidden";
1835
+ code: "api_key_invalid" | "api_key_missing";
1823
1836
  details?: readonly Response.error.Detail[] | undefined;
1824
1837
  message: string;
1825
1838
  };
1826
1839
  requestId: string;
1827
1840
  };
1828
1841
  outputFormat: "json";
1829
- status: 403;
1842
+ status: 401;
1830
1843
  input: {
1831
1844
  param: {
1832
1845
  keyId: string;
@@ -1837,14 +1850,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1837
1850
  } | {
1838
1851
  output: {
1839
1852
  error: {
1840
- code: "payment_required" | "rate_limit_exceeded";
1853
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1841
1854
  details?: readonly Response.error.Detail[] | undefined;
1842
1855
  message: string;
1843
1856
  };
1844
1857
  requestId: string;
1845
1858
  };
1846
1859
  outputFormat: "json";
1847
- status: 429;
1860
+ status: 403;
1848
1861
  input: {
1849
1862
  param: {
1850
1863
  keyId: string;
@@ -1855,14 +1868,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1855
1868
  } | {
1856
1869
  output: {
1857
1870
  error: {
1858
- code: "upstream_error";
1871
+ code: "forbidden";
1859
1872
  details?: readonly Response.error.Detail[] | undefined;
1860
1873
  message: string;
1861
1874
  };
1862
1875
  requestId: string;
1863
1876
  };
1864
1877
  outputFormat: "json";
1865
- status: 502;
1878
+ status: 403;
1866
1879
  input: {
1867
1880
  param: {
1868
1881
  keyId: string;
@@ -1873,14 +1886,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1873
1886
  } | {
1874
1887
  output: {
1875
1888
  error: {
1876
- code: "param_invalid";
1889
+ code: "organization_not_found" | "project_not_found";
1877
1890
  details?: readonly Response.error.Detail[] | undefined;
1878
1891
  message: string;
1879
1892
  };
1880
1893
  requestId: string;
1881
1894
  };
1882
1895
  outputFormat: "json";
1883
- status: 400;
1896
+ status: 404;
1884
1897
  input: {
1885
1898
  param: {
1886
1899
  keyId: string;
@@ -1891,14 +1904,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1891
1904
  } | {
1892
1905
  output: {
1893
1906
  error: {
1894
- code: "forbidden";
1907
+ code: "api_keys_not_enabled";
1895
1908
  details?: readonly Response.error.Detail[] | undefined;
1896
1909
  message: string;
1897
1910
  };
1898
1911
  requestId: string;
1899
1912
  };
1900
1913
  outputFormat: "json";
1901
- status: 403;
1914
+ status: 404;
1902
1915
  input: {
1903
1916
  param: {
1904
1917
  keyId: string;
@@ -1909,7 +1922,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1909
1922
  } | {
1910
1923
  output: {
1911
1924
  error: {
1912
- code: "organization_not_found" | "project_not_found";
1925
+ code: "api_key_not_found";
1913
1926
  details?: readonly Response.error.Detail[] | undefined;
1914
1927
  message: string;
1915
1928
  };
@@ -1927,14 +1940,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1927
1940
  } | {
1928
1941
  output: {
1929
1942
  error: {
1930
- code: "api_keys_not_enabled";
1943
+ code: "payment_required" | "rate_limit_exceeded";
1931
1944
  details?: readonly Response.error.Detail[] | undefined;
1932
1945
  message: string;
1933
1946
  };
1934
1947
  requestId: string;
1935
1948
  };
1936
1949
  outputFormat: "json";
1937
- status: 404;
1950
+ status: 429;
1938
1951
  input: {
1939
1952
  param: {
1940
1953
  keyId: string;
@@ -1945,27 +1958,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1945
1958
  } | {
1946
1959
  output: {
1947
1960
  error: {
1948
- code: "api_key_not_found";
1961
+ code: "upstream_error";
1949
1962
  details?: readonly Response.error.Detail[] | undefined;
1950
1963
  message: string;
1951
1964
  };
1952
1965
  requestId: string;
1953
1966
  };
1954
1967
  outputFormat: "json";
1955
- status: 404;
1956
- input: {
1957
- param: {
1958
- keyId: string;
1959
- orgId: string;
1960
- projectId: string;
1961
- };
1962
- };
1963
- } | {
1964
- output: {
1965
- id: string;
1966
- };
1967
- outputFormat: "json";
1968
- status: 200;
1968
+ status: 502;
1969
1969
  input: {
1970
1970
  param: {
1971
1971
  keyId: string;