@klex/agent-admin-api 0.1.0

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 (3) hide show
  1. package/README.md +16 -0
  2. package/dist/index.d.ts +2012 -0
  3. package/package.json +45 -0
@@ -0,0 +1,2012 @@
1
+ export type { OpenAPIHono } from '@hono/zod-openapi';
2
+
3
+ export type AdminApi = import("hono/hono-base").HonoBase<any, {
4
+ "/v1/health": {
5
+ $get: {
6
+ output: {
7
+ status: string;
8
+ timestamp: string;
9
+ };
10
+ outputFormat: "json";
11
+ status: 200;
12
+ input: {};
13
+ };
14
+ };
15
+ } & {
16
+ "/v1/settings/model-selection": {
17
+ $get: {
18
+ output: {
19
+ chat: ({
20
+ model: `${string}:${string}`;
21
+ providerOptions?: {
22
+ [x: string]: import("hono/utils/types").JSONValue;
23
+ } | undefined;
24
+ } | `${string}:${string}`)[];
25
+ compaction: ({
26
+ model: `${string}:${string}`;
27
+ providerOptions?: {
28
+ [x: string]: import("hono/utils/types").JSONValue;
29
+ } | undefined;
30
+ } | `${string}:${string}`)[];
31
+ memory: ({
32
+ model: `${string}:${string}`;
33
+ providerOptions?: {
34
+ [x: string]: import("hono/utils/types").JSONValue;
35
+ } | undefined;
36
+ } | `${string}:${string}`)[];
37
+ imageVision: ({
38
+ model: `${string}:${string}`;
39
+ providerOptions?: {
40
+ [x: string]: import("hono/utils/types").JSONValue;
41
+ } | undefined;
42
+ } | `${string}:${string}`)[];
43
+ audioListening: ({
44
+ model: `${string}:${string}`;
45
+ providerOptions?: {
46
+ [x: string]: import("hono/utils/types").JSONValue;
47
+ } | undefined;
48
+ } | `${string}:${string}`)[];
49
+ voice: {
50
+ sts: `${string}:${string}`[];
51
+ tts: `${string}:${string}`[];
52
+ stt: `${string}:${string}`[];
53
+ };
54
+ };
55
+ outputFormat: "json";
56
+ status: 200;
57
+ input: {};
58
+ } | {
59
+ output: {
60
+ error: string;
61
+ };
62
+ outputFormat: "json";
63
+ status: 500;
64
+ input: {};
65
+ };
66
+ };
67
+ } & {
68
+ "/v1/settings/model-selection": {
69
+ $patch: {
70
+ output: {
71
+ error: string;
72
+ };
73
+ outputFormat: "json";
74
+ status: 400;
75
+ input: {
76
+ json: {
77
+ chat?: unknown[] | undefined;
78
+ compaction?: unknown[] | undefined;
79
+ memory?: unknown[] | undefined;
80
+ imageVision?: unknown[] | undefined;
81
+ audioListening?: unknown[] | undefined;
82
+ voice?: {
83
+ sts: unknown[];
84
+ tts: unknown[];
85
+ stt: unknown[];
86
+ } | undefined;
87
+ };
88
+ };
89
+ } | {
90
+ output: {
91
+ error: string;
92
+ };
93
+ outputFormat: "json";
94
+ status: 500;
95
+ input: {
96
+ json: {
97
+ chat?: unknown[] | undefined;
98
+ compaction?: unknown[] | undefined;
99
+ memory?: unknown[] | undefined;
100
+ imageVision?: unknown[] | undefined;
101
+ audioListening?: unknown[] | undefined;
102
+ voice?: {
103
+ sts: unknown[];
104
+ tts: unknown[];
105
+ stt: unknown[];
106
+ } | undefined;
107
+ };
108
+ };
109
+ } | {
110
+ output: {
111
+ chat: ({
112
+ model: `${string}:${string}`;
113
+ providerOptions?: {
114
+ [x: string]: import("hono/utils/types").JSONValue;
115
+ } | undefined;
116
+ } | `${string}:${string}`)[];
117
+ compaction: ({
118
+ model: `${string}:${string}`;
119
+ providerOptions?: {
120
+ [x: string]: import("hono/utils/types").JSONValue;
121
+ } | undefined;
122
+ } | `${string}:${string}`)[];
123
+ memory: ({
124
+ model: `${string}:${string}`;
125
+ providerOptions?: {
126
+ [x: string]: import("hono/utils/types").JSONValue;
127
+ } | undefined;
128
+ } | `${string}:${string}`)[];
129
+ imageVision: ({
130
+ model: `${string}:${string}`;
131
+ providerOptions?: {
132
+ [x: string]: import("hono/utils/types").JSONValue;
133
+ } | undefined;
134
+ } | `${string}:${string}`)[];
135
+ audioListening: ({
136
+ model: `${string}:${string}`;
137
+ providerOptions?: {
138
+ [x: string]: import("hono/utils/types").JSONValue;
139
+ } | undefined;
140
+ } | `${string}:${string}`)[];
141
+ voice: {
142
+ sts: `${string}:${string}`[];
143
+ tts: `${string}:${string}`[];
144
+ stt: `${string}:${string}`[];
145
+ };
146
+ warnings: {
147
+ modelId: string;
148
+ message: string;
149
+ }[];
150
+ };
151
+ outputFormat: "json";
152
+ status: 200;
153
+ input: {
154
+ json: {
155
+ chat?: unknown[] | undefined;
156
+ compaction?: unknown[] | undefined;
157
+ memory?: unknown[] | undefined;
158
+ imageVision?: unknown[] | undefined;
159
+ audioListening?: unknown[] | undefined;
160
+ voice?: {
161
+ sts: unknown[];
162
+ tts: unknown[];
163
+ stt: unknown[];
164
+ } | undefined;
165
+ };
166
+ };
167
+ };
168
+ };
169
+ } & {
170
+ "/v1/settings/telemetry": {
171
+ $get: {
172
+ output: {
173
+ error: string;
174
+ };
175
+ outputFormat: "json";
176
+ status: 500;
177
+ input: {};
178
+ } | {
179
+ output: {
180
+ level: "full" | "minimum" | "off" | "reduced";
181
+ };
182
+ outputFormat: "json";
183
+ status: 200;
184
+ input: {};
185
+ };
186
+ };
187
+ } & {
188
+ "/v1/settings/telemetry": {
189
+ $patch: {
190
+ output: {
191
+ error: string;
192
+ };
193
+ outputFormat: "json";
194
+ status: 400;
195
+ input: {
196
+ json: {
197
+ level?: "full" | "minimum" | "off" | "reduced" | undefined;
198
+ };
199
+ };
200
+ } | {
201
+ output: {
202
+ error: string;
203
+ };
204
+ outputFormat: "json";
205
+ status: 500;
206
+ input: {
207
+ json: {
208
+ level?: "full" | "minimum" | "off" | "reduced" | undefined;
209
+ };
210
+ };
211
+ } | {
212
+ output: {
213
+ level: "full" | "minimum" | "off" | "reduced";
214
+ };
215
+ outputFormat: "json";
216
+ status: 200;
217
+ input: {
218
+ json: {
219
+ level?: "full" | "minimum" | "off" | "reduced" | undefined;
220
+ };
221
+ };
222
+ };
223
+ };
224
+ } & {
225
+ "/v1/introspect": {
226
+ $get: {
227
+ output: {
228
+ error: string;
229
+ };
230
+ outputFormat: "json";
231
+ status: 500;
232
+ input: {};
233
+ } | {
234
+ output: {
235
+ path: string[];
236
+ state: {
237
+ [x: string]: import("hono/utils/types").JSONValue;
238
+ } | null;
239
+ children: {
240
+ id: string;
241
+ hasState: boolean;
242
+ hasChildren: boolean;
243
+ }[];
244
+ };
245
+ outputFormat: "json";
246
+ status: 200;
247
+ input: {};
248
+ };
249
+ };
250
+ } & {
251
+ "/v1/mcp-servers": {
252
+ $get: {
253
+ output: {
254
+ error: string;
255
+ };
256
+ outputFormat: "json";
257
+ status: 500;
258
+ input: {};
259
+ } | {
260
+ output: {
261
+ servers: {
262
+ name: string;
263
+ status: "authorization_required" | "authorizing" | "connected" | "connecting" | "disconnected" | "error";
264
+ toolCount: number;
265
+ supportsPushNotifications: boolean;
266
+ transport: "http" | "stdio";
267
+ }[];
268
+ };
269
+ outputFormat: "json";
270
+ status: 200;
271
+ input: {};
272
+ };
273
+ };
274
+ } & {
275
+ "/v1/mcp-servers": {
276
+ $post: {
277
+ output: {
278
+ error: string;
279
+ };
280
+ outputFormat: "json";
281
+ status: 400;
282
+ input: {
283
+ json: {
284
+ name: string;
285
+ type?: "stdio" | undefined;
286
+ command: string;
287
+ args?: string[] | undefined;
288
+ env?: Record<string, string> | undefined;
289
+ versionNegotiation?: "auto" | "legacy" | {
290
+ pin: string;
291
+ } | undefined;
292
+ } | {
293
+ name: string;
294
+ type?: "http" | "streamable-http" | undefined;
295
+ url: string;
296
+ headers?: Record<string, string> | undefined;
297
+ versionNegotiation?: "auto" | "legacy" | {
298
+ pin: string;
299
+ } | undefined;
300
+ };
301
+ };
302
+ } | {
303
+ output: {
304
+ error: string;
305
+ };
306
+ outputFormat: "json";
307
+ status: 409;
308
+ input: {
309
+ json: {
310
+ name: string;
311
+ type?: "stdio" | undefined;
312
+ command: string;
313
+ args?: string[] | undefined;
314
+ env?: Record<string, string> | undefined;
315
+ versionNegotiation?: "auto" | "legacy" | {
316
+ pin: string;
317
+ } | undefined;
318
+ } | {
319
+ name: string;
320
+ type?: "http" | "streamable-http" | undefined;
321
+ url: string;
322
+ headers?: Record<string, string> | undefined;
323
+ versionNegotiation?: "auto" | "legacy" | {
324
+ pin: string;
325
+ } | undefined;
326
+ };
327
+ };
328
+ } | {
329
+ output: {
330
+ error: string;
331
+ };
332
+ outputFormat: "json";
333
+ status: 500;
334
+ input: {
335
+ json: {
336
+ name: string;
337
+ type?: "stdio" | undefined;
338
+ command: string;
339
+ args?: string[] | undefined;
340
+ env?: Record<string, string> | undefined;
341
+ versionNegotiation?: "auto" | "legacy" | {
342
+ pin: string;
343
+ } | undefined;
344
+ } | {
345
+ name: string;
346
+ type?: "http" | "streamable-http" | undefined;
347
+ url: string;
348
+ headers?: Record<string, string> | undefined;
349
+ versionNegotiation?: "auto" | "legacy" | {
350
+ pin: string;
351
+ } | undefined;
352
+ };
353
+ };
354
+ } | {
355
+ output: {
356
+ servers: {
357
+ name: string;
358
+ status: "authorization_required" | "authorizing" | "connected" | "connecting" | "disconnected" | "error";
359
+ toolCount: number;
360
+ supportsPushNotifications: boolean;
361
+ transport: "http" | "stdio";
362
+ }[];
363
+ };
364
+ outputFormat: "json";
365
+ status: 201;
366
+ input: {
367
+ json: {
368
+ name: string;
369
+ type?: "stdio" | undefined;
370
+ command: string;
371
+ args?: string[] | undefined;
372
+ env?: Record<string, string> | undefined;
373
+ versionNegotiation?: "auto" | "legacy" | {
374
+ pin: string;
375
+ } | undefined;
376
+ } | {
377
+ name: string;
378
+ type?: "http" | "streamable-http" | undefined;
379
+ url: string;
380
+ headers?: Record<string, string> | undefined;
381
+ versionNegotiation?: "auto" | "legacy" | {
382
+ pin: string;
383
+ } | undefined;
384
+ };
385
+ };
386
+ };
387
+ };
388
+ } & {
389
+ "/v1/mcp-servers/:name": {
390
+ $patch: {
391
+ output: {
392
+ error: string;
393
+ };
394
+ outputFormat: "json";
395
+ status: 400;
396
+ input: {
397
+ param: {
398
+ name: string;
399
+ };
400
+ } & {
401
+ json: {
402
+ type?: "stdio" | undefined;
403
+ command: string;
404
+ args?: string[] | undefined;
405
+ env?: Record<string, string> | undefined;
406
+ versionNegotiation?: "auto" | "legacy" | {
407
+ pin: string;
408
+ } | undefined;
409
+ } | {
410
+ type?: "http" | "streamable-http" | undefined;
411
+ url: string;
412
+ headers?: Record<string, string> | undefined;
413
+ versionNegotiation?: "auto" | "legacy" | {
414
+ pin: string;
415
+ } | undefined;
416
+ };
417
+ };
418
+ } | {
419
+ output: {
420
+ error: string;
421
+ };
422
+ outputFormat: "json";
423
+ status: 404;
424
+ input: {
425
+ param: {
426
+ name: string;
427
+ };
428
+ } & {
429
+ json: {
430
+ type?: "stdio" | undefined;
431
+ command: string;
432
+ args?: string[] | undefined;
433
+ env?: Record<string, string> | undefined;
434
+ versionNegotiation?: "auto" | "legacy" | {
435
+ pin: string;
436
+ } | undefined;
437
+ } | {
438
+ type?: "http" | "streamable-http" | undefined;
439
+ url: string;
440
+ headers?: Record<string, string> | undefined;
441
+ versionNegotiation?: "auto" | "legacy" | {
442
+ pin: string;
443
+ } | undefined;
444
+ };
445
+ };
446
+ } | {
447
+ output: {
448
+ error: string;
449
+ };
450
+ outputFormat: "json";
451
+ status: 500;
452
+ input: {
453
+ param: {
454
+ name: string;
455
+ };
456
+ } & {
457
+ json: {
458
+ type?: "stdio" | undefined;
459
+ command: string;
460
+ args?: string[] | undefined;
461
+ env?: Record<string, string> | undefined;
462
+ versionNegotiation?: "auto" | "legacy" | {
463
+ pin: string;
464
+ } | undefined;
465
+ } | {
466
+ type?: "http" | "streamable-http" | undefined;
467
+ url: string;
468
+ headers?: Record<string, string> | undefined;
469
+ versionNegotiation?: "auto" | "legacy" | {
470
+ pin: string;
471
+ } | undefined;
472
+ };
473
+ };
474
+ } | {
475
+ output: {
476
+ servers: {
477
+ name: string;
478
+ status: "authorization_required" | "authorizing" | "connected" | "connecting" | "disconnected" | "error";
479
+ toolCount: number;
480
+ supportsPushNotifications: boolean;
481
+ transport: "http" | "stdio";
482
+ }[];
483
+ };
484
+ outputFormat: "json";
485
+ status: 200;
486
+ input: {
487
+ param: {
488
+ name: string;
489
+ };
490
+ } & {
491
+ json: {
492
+ type?: "stdio" | undefined;
493
+ command: string;
494
+ args?: string[] | undefined;
495
+ env?: Record<string, string> | undefined;
496
+ versionNegotiation?: "auto" | "legacy" | {
497
+ pin: string;
498
+ } | undefined;
499
+ } | {
500
+ type?: "http" | "streamable-http" | undefined;
501
+ url: string;
502
+ headers?: Record<string, string> | undefined;
503
+ versionNegotiation?: "auto" | "legacy" | {
504
+ pin: string;
505
+ } | undefined;
506
+ };
507
+ };
508
+ };
509
+ };
510
+ } & {
511
+ "/v1/mcp-servers/:name": {
512
+ $delete: {
513
+ output: {
514
+ error: string;
515
+ };
516
+ outputFormat: "json";
517
+ status: 404;
518
+ input: {
519
+ param: {
520
+ name: string;
521
+ };
522
+ };
523
+ } | {
524
+ output: {
525
+ error: string;
526
+ };
527
+ outputFormat: "json";
528
+ status: 500;
529
+ input: {
530
+ param: {
531
+ name: string;
532
+ };
533
+ };
534
+ } | {
535
+ output: {
536
+ servers: {
537
+ name: string;
538
+ status: "authorization_required" | "authorizing" | "connected" | "connecting" | "disconnected" | "error";
539
+ toolCount: number;
540
+ supportsPushNotifications: boolean;
541
+ transport: "http" | "stdio";
542
+ }[];
543
+ };
544
+ outputFormat: "json";
545
+ status: 200;
546
+ input: {
547
+ param: {
548
+ name: string;
549
+ };
550
+ };
551
+ };
552
+ };
553
+ } & {
554
+ "/v1/mcp-servers/:name/tool-calls": {
555
+ $get: {
556
+ output: {
557
+ error: string;
558
+ };
559
+ outputFormat: "json";
560
+ status: 500;
561
+ input: {
562
+ param: {
563
+ name: string;
564
+ };
565
+ };
566
+ } | {
567
+ output: {
568
+ toolCalls: {
569
+ id: string;
570
+ namespace: string;
571
+ toolName: string;
572
+ input: {
573
+ [x: string]: any;
574
+ };
575
+ result: any;
576
+ isError: boolean;
577
+ sessionId: string | null;
578
+ startedAt: string;
579
+ finishedAt: string | null;
580
+ }[];
581
+ };
582
+ outputFormat: "json";
583
+ status: 200;
584
+ input: {
585
+ param: {
586
+ name: string;
587
+ };
588
+ };
589
+ };
590
+ };
591
+ } & {
592
+ "/v1/usage": {
593
+ $get: {
594
+ output: {
595
+ error: string;
596
+ };
597
+ outputFormat: "json";
598
+ status: 400;
599
+ input: {
600
+ query: {
601
+ splitBy?: "endpoint" | "model" | "none" | "provider" | undefined;
602
+ from?: string | undefined;
603
+ to?: string | undefined;
604
+ granularity?: "daily" | "event" | "hourly" | "weekly" | undefined;
605
+ limit?: unknown;
606
+ };
607
+ };
608
+ } | {
609
+ output: {
610
+ error: string;
611
+ };
612
+ outputFormat: "json";
613
+ status: 500;
614
+ input: {
615
+ query: {
616
+ splitBy?: "endpoint" | "model" | "none" | "provider" | undefined;
617
+ from?: string | undefined;
618
+ to?: string | undefined;
619
+ granularity?: "daily" | "event" | "hourly" | "weekly" | undefined;
620
+ limit?: unknown;
621
+ };
622
+ };
623
+ } | {
624
+ output: {
625
+ dataPoints: {
626
+ bucket: string | null;
627
+ splitKey: string | null;
628
+ callCount: number;
629
+ inputTokens: number;
630
+ outputTokens: number;
631
+ inputCacheWriteTokens: number;
632
+ inputCacheReadTokens: number;
633
+ ttftMs: number | null;
634
+ totalDurationMs: number | null;
635
+ errorCount: number;
636
+ id: string | null;
637
+ sessionId: string | null;
638
+ providerId: string | null;
639
+ endpointId: string | null;
640
+ modelId: string | null;
641
+ source: "chat" | "extension" | null;
642
+ extensionId: string | null;
643
+ finishReason: string | null;
644
+ errorType: string | null;
645
+ startedAt: string | null;
646
+ finishedAt: string | null;
647
+ }[];
648
+ };
649
+ outputFormat: "json";
650
+ status: 200;
651
+ input: {
652
+ query: {
653
+ splitBy?: "endpoint" | "model" | "none" | "provider" | undefined;
654
+ from?: string | undefined;
655
+ to?: string | undefined;
656
+ granularity?: "daily" | "event" | "hourly" | "weekly" | undefined;
657
+ limit?: unknown;
658
+ };
659
+ };
660
+ };
661
+ };
662
+ } & {
663
+ "/v1/providers": {
664
+ $get: {
665
+ output: {
666
+ error: string;
667
+ };
668
+ outputFormat: "json";
669
+ status: 500;
670
+ input: {};
671
+ } | {
672
+ output: {
673
+ providers: ({
674
+ name: string;
675
+ preset: "anthropic" | "google" | "openai";
676
+ auth: {
677
+ apiKey?: string | undefined;
678
+ headers?: {
679
+ [x: string]: string;
680
+ } | undefined;
681
+ };
682
+ } | {
683
+ name: string;
684
+ endpoints: {
685
+ [x: string]: {
686
+ url: string;
687
+ format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
688
+ auth: {
689
+ apiKey?: string | undefined;
690
+ headers?: {
691
+ [x: string]: string;
692
+ } | undefined;
693
+ };
694
+ };
695
+ };
696
+ })[];
697
+ };
698
+ outputFormat: "json";
699
+ status: 200;
700
+ input: {};
701
+ };
702
+ };
703
+ } & {
704
+ "/v1/providers": {
705
+ $post: {
706
+ output: {
707
+ error: string;
708
+ };
709
+ outputFormat: "json";
710
+ status: 400;
711
+ input: {
712
+ json: {
713
+ name: string;
714
+ preset: "anthropic" | "google" | "openai";
715
+ auth: {
716
+ apiKey?: string | undefined;
717
+ headers?: Record<string, string> | undefined;
718
+ };
719
+ } | {
720
+ name: string;
721
+ endpoints: Record<string, {
722
+ url: string;
723
+ format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
724
+ auth: {
725
+ apiKey?: string | undefined;
726
+ headers?: Record<string, string> | undefined;
727
+ };
728
+ }>;
729
+ };
730
+ };
731
+ } | {
732
+ output: {
733
+ error: string;
734
+ };
735
+ outputFormat: "json";
736
+ status: 409;
737
+ input: {
738
+ json: {
739
+ name: string;
740
+ preset: "anthropic" | "google" | "openai";
741
+ auth: {
742
+ apiKey?: string | undefined;
743
+ headers?: Record<string, string> | undefined;
744
+ };
745
+ } | {
746
+ name: string;
747
+ endpoints: Record<string, {
748
+ url: string;
749
+ format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
750
+ auth: {
751
+ apiKey?: string | undefined;
752
+ headers?: Record<string, string> | undefined;
753
+ };
754
+ }>;
755
+ };
756
+ };
757
+ } | {
758
+ output: {
759
+ error: string;
760
+ };
761
+ outputFormat: "json";
762
+ status: 500;
763
+ input: {
764
+ json: {
765
+ name: string;
766
+ preset: "anthropic" | "google" | "openai";
767
+ auth: {
768
+ apiKey?: string | undefined;
769
+ headers?: Record<string, string> | undefined;
770
+ };
771
+ } | {
772
+ name: string;
773
+ endpoints: Record<string, {
774
+ url: string;
775
+ format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
776
+ auth: {
777
+ apiKey?: string | undefined;
778
+ headers?: Record<string, string> | undefined;
779
+ };
780
+ }>;
781
+ };
782
+ };
783
+ } | {
784
+ output: {
785
+ providers: ({
786
+ name: string;
787
+ preset: "anthropic" | "google" | "openai";
788
+ auth: {
789
+ apiKey?: string | undefined;
790
+ headers?: {
791
+ [x: string]: string;
792
+ } | undefined;
793
+ };
794
+ } | {
795
+ name: string;
796
+ endpoints: {
797
+ [x: string]: {
798
+ url: string;
799
+ format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
800
+ auth: {
801
+ apiKey?: string | undefined;
802
+ headers?: {
803
+ [x: string]: string;
804
+ } | undefined;
805
+ };
806
+ };
807
+ };
808
+ })[];
809
+ };
810
+ outputFormat: "json";
811
+ status: 201;
812
+ input: {
813
+ json: {
814
+ name: string;
815
+ preset: "anthropic" | "google" | "openai";
816
+ auth: {
817
+ apiKey?: string | undefined;
818
+ headers?: Record<string, string> | undefined;
819
+ };
820
+ } | {
821
+ name: string;
822
+ endpoints: Record<string, {
823
+ url: string;
824
+ format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
825
+ auth: {
826
+ apiKey?: string | undefined;
827
+ headers?: Record<string, string> | undefined;
828
+ };
829
+ }>;
830
+ };
831
+ };
832
+ };
833
+ };
834
+ } & {
835
+ "/v1/providers/:name": {
836
+ $patch: {
837
+ output: {
838
+ error: string;
839
+ };
840
+ outputFormat: "json";
841
+ status: 400;
842
+ input: {
843
+ param: {
844
+ name: string;
845
+ };
846
+ } & {
847
+ json: {
848
+ preset?: "anthropic" | "google" | "openai" | undefined;
849
+ auth?: {
850
+ apiKey?: string | undefined;
851
+ headers?: Record<string, string> | undefined;
852
+ } | undefined;
853
+ endpoints?: Record<string, {
854
+ url: string;
855
+ format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
856
+ auth: {
857
+ apiKey?: string | undefined;
858
+ headers?: Record<string, string> | undefined;
859
+ };
860
+ }> | undefined;
861
+ };
862
+ };
863
+ } | {
864
+ output: {
865
+ error: string;
866
+ };
867
+ outputFormat: "json";
868
+ status: 404;
869
+ input: {
870
+ param: {
871
+ name: string;
872
+ };
873
+ } & {
874
+ json: {
875
+ preset?: "anthropic" | "google" | "openai" | undefined;
876
+ auth?: {
877
+ apiKey?: string | undefined;
878
+ headers?: Record<string, string> | undefined;
879
+ } | undefined;
880
+ endpoints?: Record<string, {
881
+ url: string;
882
+ format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
883
+ auth: {
884
+ apiKey?: string | undefined;
885
+ headers?: Record<string, string> | undefined;
886
+ };
887
+ }> | undefined;
888
+ };
889
+ };
890
+ } | {
891
+ output: {
892
+ error: string;
893
+ };
894
+ outputFormat: "json";
895
+ status: 500;
896
+ input: {
897
+ param: {
898
+ name: string;
899
+ };
900
+ } & {
901
+ json: {
902
+ preset?: "anthropic" | "google" | "openai" | undefined;
903
+ auth?: {
904
+ apiKey?: string | undefined;
905
+ headers?: Record<string, string> | undefined;
906
+ } | undefined;
907
+ endpoints?: Record<string, {
908
+ url: string;
909
+ format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
910
+ auth: {
911
+ apiKey?: string | undefined;
912
+ headers?: Record<string, string> | undefined;
913
+ };
914
+ }> | undefined;
915
+ };
916
+ };
917
+ } | {
918
+ output: {
919
+ providers: ({
920
+ name: string;
921
+ preset: "anthropic" | "google" | "openai";
922
+ auth: {
923
+ apiKey?: string | undefined;
924
+ headers?: {
925
+ [x: string]: string;
926
+ } | undefined;
927
+ };
928
+ } | {
929
+ name: string;
930
+ endpoints: {
931
+ [x: string]: {
932
+ url: string;
933
+ format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
934
+ auth: {
935
+ apiKey?: string | undefined;
936
+ headers?: {
937
+ [x: string]: string;
938
+ } | undefined;
939
+ };
940
+ };
941
+ };
942
+ })[];
943
+ };
944
+ outputFormat: "json";
945
+ status: 200;
946
+ input: {
947
+ param: {
948
+ name: string;
949
+ };
950
+ } & {
951
+ json: {
952
+ preset?: "anthropic" | "google" | "openai" | undefined;
953
+ auth?: {
954
+ apiKey?: string | undefined;
955
+ headers?: Record<string, string> | undefined;
956
+ } | undefined;
957
+ endpoints?: Record<string, {
958
+ url: string;
959
+ format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
960
+ auth: {
961
+ apiKey?: string | undefined;
962
+ headers?: Record<string, string> | undefined;
963
+ };
964
+ }> | undefined;
965
+ };
966
+ };
967
+ };
968
+ };
969
+ } & {
970
+ "/v1/providers/:name": {
971
+ $delete: {
972
+ output: {
973
+ error: string;
974
+ };
975
+ outputFormat: "json";
976
+ status: 400;
977
+ input: {
978
+ param: {
979
+ name: string;
980
+ };
981
+ };
982
+ } | {
983
+ output: {
984
+ error: string;
985
+ };
986
+ outputFormat: "json";
987
+ status: 404;
988
+ input: {
989
+ param: {
990
+ name: string;
991
+ };
992
+ };
993
+ } | {
994
+ output: {
995
+ error: string;
996
+ };
997
+ outputFormat: "json";
998
+ status: 409;
999
+ input: {
1000
+ param: {
1001
+ name: string;
1002
+ };
1003
+ };
1004
+ } | {
1005
+ output: {
1006
+ error: string;
1007
+ };
1008
+ outputFormat: "json";
1009
+ status: 500;
1010
+ input: {
1011
+ param: {
1012
+ name: string;
1013
+ };
1014
+ };
1015
+ } | {
1016
+ output: {
1017
+ providers: ({
1018
+ name: string;
1019
+ preset: "anthropic" | "google" | "openai";
1020
+ auth: {
1021
+ apiKey?: string | undefined;
1022
+ headers?: {
1023
+ [x: string]: string;
1024
+ } | undefined;
1025
+ };
1026
+ } | {
1027
+ name: string;
1028
+ endpoints: {
1029
+ [x: string]: {
1030
+ url: string;
1031
+ format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
1032
+ auth: {
1033
+ apiKey?: string | undefined;
1034
+ headers?: {
1035
+ [x: string]: string;
1036
+ } | undefined;
1037
+ };
1038
+ };
1039
+ };
1040
+ })[];
1041
+ };
1042
+ outputFormat: "json";
1043
+ status: 200;
1044
+ input: {
1045
+ param: {
1046
+ name: string;
1047
+ };
1048
+ };
1049
+ };
1050
+ };
1051
+ } & {
1052
+ "/v1/providers/:name/endpoints": {
1053
+ $get: {
1054
+ output: {
1055
+ error: string;
1056
+ };
1057
+ outputFormat: "json";
1058
+ status: 400;
1059
+ input: {
1060
+ param: {
1061
+ name: string;
1062
+ };
1063
+ };
1064
+ } | {
1065
+ output: {
1066
+ error: string;
1067
+ };
1068
+ outputFormat: "json";
1069
+ status: 404;
1070
+ input: {
1071
+ param: {
1072
+ name: string;
1073
+ };
1074
+ };
1075
+ } | {
1076
+ output: {
1077
+ error: string;
1078
+ };
1079
+ outputFormat: "json";
1080
+ status: 500;
1081
+ input: {
1082
+ param: {
1083
+ name: string;
1084
+ };
1085
+ };
1086
+ } | {
1087
+ output: {
1088
+ endpoints: {
1089
+ name: string;
1090
+ url: string;
1091
+ format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
1092
+ auth: {
1093
+ apiKey?: string | undefined;
1094
+ headers?: {
1095
+ [x: string]: string;
1096
+ } | undefined;
1097
+ };
1098
+ }[];
1099
+ };
1100
+ outputFormat: "json";
1101
+ status: 200;
1102
+ input: {
1103
+ param: {
1104
+ name: string;
1105
+ };
1106
+ };
1107
+ };
1108
+ };
1109
+ } & {
1110
+ "/v1/providers/:name/endpoints": {
1111
+ $post: {
1112
+ output: {
1113
+ error: string;
1114
+ };
1115
+ outputFormat: "json";
1116
+ status: 400;
1117
+ input: {
1118
+ param: {
1119
+ name: string;
1120
+ };
1121
+ } & {
1122
+ json: {
1123
+ name: string;
1124
+ url: string;
1125
+ format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
1126
+ auth: {
1127
+ apiKey?: string | undefined;
1128
+ headers?: Record<string, string> | undefined;
1129
+ };
1130
+ };
1131
+ };
1132
+ } | {
1133
+ output: {
1134
+ error: string;
1135
+ };
1136
+ outputFormat: "json";
1137
+ status: 404;
1138
+ input: {
1139
+ param: {
1140
+ name: string;
1141
+ };
1142
+ } & {
1143
+ json: {
1144
+ name: string;
1145
+ url: string;
1146
+ format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
1147
+ auth: {
1148
+ apiKey?: string | undefined;
1149
+ headers?: Record<string, string> | undefined;
1150
+ };
1151
+ };
1152
+ };
1153
+ } | {
1154
+ output: {
1155
+ error: string;
1156
+ };
1157
+ outputFormat: "json";
1158
+ status: 409;
1159
+ input: {
1160
+ param: {
1161
+ name: string;
1162
+ };
1163
+ } & {
1164
+ json: {
1165
+ name: string;
1166
+ url: string;
1167
+ format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
1168
+ auth: {
1169
+ apiKey?: string | undefined;
1170
+ headers?: Record<string, string> | undefined;
1171
+ };
1172
+ };
1173
+ };
1174
+ } | {
1175
+ output: {
1176
+ error: string;
1177
+ };
1178
+ outputFormat: "json";
1179
+ status: 500;
1180
+ input: {
1181
+ param: {
1182
+ name: string;
1183
+ };
1184
+ } & {
1185
+ json: {
1186
+ name: string;
1187
+ url: string;
1188
+ format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
1189
+ auth: {
1190
+ apiKey?: string | undefined;
1191
+ headers?: Record<string, string> | undefined;
1192
+ };
1193
+ };
1194
+ };
1195
+ } | {
1196
+ output: {
1197
+ endpoints: {
1198
+ name: string;
1199
+ url: string;
1200
+ format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
1201
+ auth: {
1202
+ apiKey?: string | undefined;
1203
+ headers?: {
1204
+ [x: string]: string;
1205
+ } | undefined;
1206
+ };
1207
+ }[];
1208
+ };
1209
+ outputFormat: "json";
1210
+ status: 201;
1211
+ input: {
1212
+ param: {
1213
+ name: string;
1214
+ };
1215
+ } & {
1216
+ json: {
1217
+ name: string;
1218
+ url: string;
1219
+ format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
1220
+ auth: {
1221
+ apiKey?: string | undefined;
1222
+ headers?: Record<string, string> | undefined;
1223
+ };
1224
+ };
1225
+ };
1226
+ };
1227
+ };
1228
+ } & {
1229
+ "/v1/providers/:name/endpoints/:endpointName": {
1230
+ $patch: {
1231
+ output: {
1232
+ error: string;
1233
+ };
1234
+ outputFormat: "json";
1235
+ status: 400;
1236
+ input: {
1237
+ param: {
1238
+ name: string;
1239
+ endpointName: string;
1240
+ };
1241
+ } & {
1242
+ json: {
1243
+ url?: string | undefined;
1244
+ format?: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions" | undefined;
1245
+ auth?: {
1246
+ apiKey?: string | undefined;
1247
+ headers?: Record<string, string> | undefined;
1248
+ } | undefined;
1249
+ };
1250
+ };
1251
+ } | {
1252
+ output: {
1253
+ error: string;
1254
+ };
1255
+ outputFormat: "json";
1256
+ status: 404;
1257
+ input: {
1258
+ param: {
1259
+ name: string;
1260
+ endpointName: string;
1261
+ };
1262
+ } & {
1263
+ json: {
1264
+ url?: string | undefined;
1265
+ format?: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions" | undefined;
1266
+ auth?: {
1267
+ apiKey?: string | undefined;
1268
+ headers?: Record<string, string> | undefined;
1269
+ } | undefined;
1270
+ };
1271
+ };
1272
+ } | {
1273
+ output: {
1274
+ error: string;
1275
+ };
1276
+ outputFormat: "json";
1277
+ status: 500;
1278
+ input: {
1279
+ param: {
1280
+ name: string;
1281
+ endpointName: string;
1282
+ };
1283
+ } & {
1284
+ json: {
1285
+ url?: string | undefined;
1286
+ format?: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions" | undefined;
1287
+ auth?: {
1288
+ apiKey?: string | undefined;
1289
+ headers?: Record<string, string> | undefined;
1290
+ } | undefined;
1291
+ };
1292
+ };
1293
+ } | {
1294
+ output: {
1295
+ endpoints: {
1296
+ name: string;
1297
+ url: string;
1298
+ format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
1299
+ auth: {
1300
+ apiKey?: string | undefined;
1301
+ headers?: {
1302
+ [x: string]: string;
1303
+ } | undefined;
1304
+ };
1305
+ }[];
1306
+ };
1307
+ outputFormat: "json";
1308
+ status: 200;
1309
+ input: {
1310
+ param: {
1311
+ name: string;
1312
+ endpointName: string;
1313
+ };
1314
+ } & {
1315
+ json: {
1316
+ url?: string | undefined;
1317
+ format?: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions" | undefined;
1318
+ auth?: {
1319
+ apiKey?: string | undefined;
1320
+ headers?: Record<string, string> | undefined;
1321
+ } | undefined;
1322
+ };
1323
+ };
1324
+ };
1325
+ };
1326
+ } & {
1327
+ "/v1/providers/:name/endpoints/:endpointName": {
1328
+ $delete: {
1329
+ output: {
1330
+ error: string;
1331
+ };
1332
+ outputFormat: "json";
1333
+ status: 400;
1334
+ input: {
1335
+ param: {
1336
+ name: string;
1337
+ endpointName: string;
1338
+ };
1339
+ };
1340
+ } | {
1341
+ output: {
1342
+ error: string;
1343
+ };
1344
+ outputFormat: "json";
1345
+ status: 404;
1346
+ input: {
1347
+ param: {
1348
+ name: string;
1349
+ endpointName: string;
1350
+ };
1351
+ };
1352
+ } | {
1353
+ output: {
1354
+ error: string;
1355
+ };
1356
+ outputFormat: "json";
1357
+ status: 409;
1358
+ input: {
1359
+ param: {
1360
+ name: string;
1361
+ endpointName: string;
1362
+ };
1363
+ };
1364
+ } | {
1365
+ output: {
1366
+ error: string;
1367
+ };
1368
+ outputFormat: "json";
1369
+ status: 500;
1370
+ input: {
1371
+ param: {
1372
+ name: string;
1373
+ endpointName: string;
1374
+ };
1375
+ };
1376
+ } | {
1377
+ output: {
1378
+ endpoints: {
1379
+ name: string;
1380
+ url: string;
1381
+ format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
1382
+ auth: {
1383
+ apiKey?: string | undefined;
1384
+ headers?: {
1385
+ [x: string]: string;
1386
+ } | undefined;
1387
+ };
1388
+ }[];
1389
+ };
1390
+ outputFormat: "json";
1391
+ status: 200;
1392
+ input: {
1393
+ param: {
1394
+ name: string;
1395
+ endpointName: string;
1396
+ };
1397
+ };
1398
+ };
1399
+ };
1400
+ } & {
1401
+ "/v1/providers/:name/known-models": {
1402
+ $get: {
1403
+ output: {
1404
+ error: string;
1405
+ };
1406
+ outputFormat: "json";
1407
+ status: 400;
1408
+ input: {
1409
+ param: {
1410
+ name: string;
1411
+ };
1412
+ } & {
1413
+ query: {
1414
+ endpointName?: string | undefined;
1415
+ };
1416
+ };
1417
+ } | {
1418
+ output: {
1419
+ error: string;
1420
+ };
1421
+ outputFormat: "json";
1422
+ status: 404;
1423
+ input: {
1424
+ param: {
1425
+ name: string;
1426
+ };
1427
+ } & {
1428
+ query: {
1429
+ endpointName?: string | undefined;
1430
+ };
1431
+ };
1432
+ } | {
1433
+ output: {
1434
+ error: string;
1435
+ };
1436
+ outputFormat: "json";
1437
+ status: 500;
1438
+ input: {
1439
+ param: {
1440
+ name: string;
1441
+ };
1442
+ } & {
1443
+ query: {
1444
+ endpointName?: string | undefined;
1445
+ };
1446
+ };
1447
+ } | {
1448
+ output: {
1449
+ models: {
1450
+ modelId: string;
1451
+ endpointName?: string | undefined;
1452
+ displayName?: string | undefined;
1453
+ contextSize?: number | undefined;
1454
+ capabilities?: {
1455
+ input?: {
1456
+ image?: {
1457
+ mediaTypes: string[];
1458
+ maxBytes: number;
1459
+ } | undefined;
1460
+ audio?: {
1461
+ mediaTypes: string[];
1462
+ maxBytes: number;
1463
+ } | undefined;
1464
+ } | undefined;
1465
+ voice?: {
1466
+ sts?: boolean | undefined;
1467
+ tts?: boolean | undefined;
1468
+ stt?: boolean | undefined;
1469
+ } | undefined;
1470
+ } | undefined;
1471
+ }[];
1472
+ };
1473
+ outputFormat: "json";
1474
+ status: 200;
1475
+ input: {
1476
+ param: {
1477
+ name: string;
1478
+ };
1479
+ } & {
1480
+ query: {
1481
+ endpointName?: string | undefined;
1482
+ };
1483
+ };
1484
+ };
1485
+ };
1486
+ } & {
1487
+ "/v1/providers/:name/known-models": {
1488
+ $post: {
1489
+ output: {
1490
+ error: string;
1491
+ };
1492
+ outputFormat: "json";
1493
+ status: 400;
1494
+ input: {
1495
+ param: {
1496
+ name: string;
1497
+ };
1498
+ } & {
1499
+ json: {
1500
+ modelId: string;
1501
+ endpointName?: string | undefined;
1502
+ displayName?: string | undefined;
1503
+ contextSize?: number | undefined;
1504
+ capabilities?: {
1505
+ input?: {
1506
+ image?: {
1507
+ mediaTypes: string[];
1508
+ maxBytes: number;
1509
+ } | undefined;
1510
+ audio?: {
1511
+ mediaTypes: string[];
1512
+ maxBytes: number;
1513
+ } | undefined;
1514
+ } | undefined;
1515
+ voice?: {
1516
+ sts?: boolean | undefined;
1517
+ tts?: boolean | undefined;
1518
+ stt?: boolean | undefined;
1519
+ } | undefined;
1520
+ } | undefined;
1521
+ };
1522
+ };
1523
+ } | {
1524
+ output: {
1525
+ error: string;
1526
+ };
1527
+ outputFormat: "json";
1528
+ status: 404;
1529
+ input: {
1530
+ param: {
1531
+ name: string;
1532
+ };
1533
+ } & {
1534
+ json: {
1535
+ modelId: string;
1536
+ endpointName?: string | undefined;
1537
+ displayName?: string | undefined;
1538
+ contextSize?: number | undefined;
1539
+ capabilities?: {
1540
+ input?: {
1541
+ image?: {
1542
+ mediaTypes: string[];
1543
+ maxBytes: number;
1544
+ } | undefined;
1545
+ audio?: {
1546
+ mediaTypes: string[];
1547
+ maxBytes: number;
1548
+ } | undefined;
1549
+ } | undefined;
1550
+ voice?: {
1551
+ sts?: boolean | undefined;
1552
+ tts?: boolean | undefined;
1553
+ stt?: boolean | undefined;
1554
+ } | undefined;
1555
+ } | undefined;
1556
+ };
1557
+ };
1558
+ } | {
1559
+ output: {
1560
+ error: string;
1561
+ };
1562
+ outputFormat: "json";
1563
+ status: 409;
1564
+ input: {
1565
+ param: {
1566
+ name: string;
1567
+ };
1568
+ } & {
1569
+ json: {
1570
+ modelId: string;
1571
+ endpointName?: string | undefined;
1572
+ displayName?: string | undefined;
1573
+ contextSize?: number | undefined;
1574
+ capabilities?: {
1575
+ input?: {
1576
+ image?: {
1577
+ mediaTypes: string[];
1578
+ maxBytes: number;
1579
+ } | undefined;
1580
+ audio?: {
1581
+ mediaTypes: string[];
1582
+ maxBytes: number;
1583
+ } | undefined;
1584
+ } | undefined;
1585
+ voice?: {
1586
+ sts?: boolean | undefined;
1587
+ tts?: boolean | undefined;
1588
+ stt?: boolean | undefined;
1589
+ } | undefined;
1590
+ } | undefined;
1591
+ };
1592
+ };
1593
+ } | {
1594
+ output: {
1595
+ error: string;
1596
+ };
1597
+ outputFormat: "json";
1598
+ status: 500;
1599
+ input: {
1600
+ param: {
1601
+ name: string;
1602
+ };
1603
+ } & {
1604
+ json: {
1605
+ modelId: string;
1606
+ endpointName?: string | undefined;
1607
+ displayName?: string | undefined;
1608
+ contextSize?: number | undefined;
1609
+ capabilities?: {
1610
+ input?: {
1611
+ image?: {
1612
+ mediaTypes: string[];
1613
+ maxBytes: number;
1614
+ } | undefined;
1615
+ audio?: {
1616
+ mediaTypes: string[];
1617
+ maxBytes: number;
1618
+ } | undefined;
1619
+ } | undefined;
1620
+ voice?: {
1621
+ sts?: boolean | undefined;
1622
+ tts?: boolean | undefined;
1623
+ stt?: boolean | undefined;
1624
+ } | undefined;
1625
+ } | undefined;
1626
+ };
1627
+ };
1628
+ } | {
1629
+ output: {
1630
+ models: {
1631
+ modelId: string;
1632
+ endpointName?: string | undefined;
1633
+ displayName?: string | undefined;
1634
+ contextSize?: number | undefined;
1635
+ capabilities?: {
1636
+ input?: {
1637
+ image?: {
1638
+ mediaTypes: string[];
1639
+ maxBytes: number;
1640
+ } | undefined;
1641
+ audio?: {
1642
+ mediaTypes: string[];
1643
+ maxBytes: number;
1644
+ } | undefined;
1645
+ } | undefined;
1646
+ voice?: {
1647
+ sts?: boolean | undefined;
1648
+ tts?: boolean | undefined;
1649
+ stt?: boolean | undefined;
1650
+ } | undefined;
1651
+ } | undefined;
1652
+ }[];
1653
+ };
1654
+ outputFormat: "json";
1655
+ status: 201;
1656
+ input: {
1657
+ param: {
1658
+ name: string;
1659
+ };
1660
+ } & {
1661
+ json: {
1662
+ modelId: string;
1663
+ endpointName?: string | undefined;
1664
+ displayName?: string | undefined;
1665
+ contextSize?: number | undefined;
1666
+ capabilities?: {
1667
+ input?: {
1668
+ image?: {
1669
+ mediaTypes: string[];
1670
+ maxBytes: number;
1671
+ } | undefined;
1672
+ audio?: {
1673
+ mediaTypes: string[];
1674
+ maxBytes: number;
1675
+ } | undefined;
1676
+ } | undefined;
1677
+ voice?: {
1678
+ sts?: boolean | undefined;
1679
+ tts?: boolean | undefined;
1680
+ stt?: boolean | undefined;
1681
+ } | undefined;
1682
+ } | undefined;
1683
+ };
1684
+ };
1685
+ };
1686
+ };
1687
+ } & {
1688
+ "/v1/providers/:name/known-models/:modelId": {
1689
+ $patch: {
1690
+ output: {
1691
+ error: string;
1692
+ };
1693
+ outputFormat: "json";
1694
+ status: 400;
1695
+ input: {
1696
+ param: {
1697
+ name: string;
1698
+ modelId: string;
1699
+ };
1700
+ } & {
1701
+ query: {
1702
+ endpointName?: string | undefined;
1703
+ };
1704
+ } & {
1705
+ json: {
1706
+ displayName?: string | undefined;
1707
+ contextSize?: number | undefined;
1708
+ capabilities?: {
1709
+ input?: {
1710
+ image?: {
1711
+ mediaTypes: string[];
1712
+ maxBytes: number;
1713
+ } | undefined;
1714
+ audio?: {
1715
+ mediaTypes: string[];
1716
+ maxBytes: number;
1717
+ } | undefined;
1718
+ } | undefined;
1719
+ voice?: {
1720
+ sts?: boolean | undefined;
1721
+ tts?: boolean | undefined;
1722
+ stt?: boolean | undefined;
1723
+ } | undefined;
1724
+ } | undefined;
1725
+ };
1726
+ };
1727
+ } | {
1728
+ output: {
1729
+ error: string;
1730
+ };
1731
+ outputFormat: "json";
1732
+ status: 404;
1733
+ input: {
1734
+ param: {
1735
+ name: string;
1736
+ modelId: string;
1737
+ };
1738
+ } & {
1739
+ query: {
1740
+ endpointName?: string | undefined;
1741
+ };
1742
+ } & {
1743
+ json: {
1744
+ displayName?: string | undefined;
1745
+ contextSize?: number | undefined;
1746
+ capabilities?: {
1747
+ input?: {
1748
+ image?: {
1749
+ mediaTypes: string[];
1750
+ maxBytes: number;
1751
+ } | undefined;
1752
+ audio?: {
1753
+ mediaTypes: string[];
1754
+ maxBytes: number;
1755
+ } | undefined;
1756
+ } | undefined;
1757
+ voice?: {
1758
+ sts?: boolean | undefined;
1759
+ tts?: boolean | undefined;
1760
+ stt?: boolean | undefined;
1761
+ } | undefined;
1762
+ } | undefined;
1763
+ };
1764
+ };
1765
+ } | {
1766
+ output: {
1767
+ error: string;
1768
+ };
1769
+ outputFormat: "json";
1770
+ status: 500;
1771
+ input: {
1772
+ param: {
1773
+ name: string;
1774
+ modelId: string;
1775
+ };
1776
+ } & {
1777
+ query: {
1778
+ endpointName?: string | undefined;
1779
+ };
1780
+ } & {
1781
+ json: {
1782
+ displayName?: string | undefined;
1783
+ contextSize?: number | undefined;
1784
+ capabilities?: {
1785
+ input?: {
1786
+ image?: {
1787
+ mediaTypes: string[];
1788
+ maxBytes: number;
1789
+ } | undefined;
1790
+ audio?: {
1791
+ mediaTypes: string[];
1792
+ maxBytes: number;
1793
+ } | undefined;
1794
+ } | undefined;
1795
+ voice?: {
1796
+ sts?: boolean | undefined;
1797
+ tts?: boolean | undefined;
1798
+ stt?: boolean | undefined;
1799
+ } | undefined;
1800
+ } | undefined;
1801
+ };
1802
+ };
1803
+ } | {
1804
+ output: {
1805
+ models: {
1806
+ modelId: string;
1807
+ endpointName?: string | undefined;
1808
+ displayName?: string | undefined;
1809
+ contextSize?: number | undefined;
1810
+ capabilities?: {
1811
+ input?: {
1812
+ image?: {
1813
+ mediaTypes: string[];
1814
+ maxBytes: number;
1815
+ } | undefined;
1816
+ audio?: {
1817
+ mediaTypes: string[];
1818
+ maxBytes: number;
1819
+ } | undefined;
1820
+ } | undefined;
1821
+ voice?: {
1822
+ sts?: boolean | undefined;
1823
+ tts?: boolean | undefined;
1824
+ stt?: boolean | undefined;
1825
+ } | undefined;
1826
+ } | undefined;
1827
+ }[];
1828
+ };
1829
+ outputFormat: "json";
1830
+ status: 200;
1831
+ input: {
1832
+ param: {
1833
+ name: string;
1834
+ modelId: string;
1835
+ };
1836
+ } & {
1837
+ query: {
1838
+ endpointName?: string | undefined;
1839
+ };
1840
+ } & {
1841
+ json: {
1842
+ displayName?: string | undefined;
1843
+ contextSize?: number | undefined;
1844
+ capabilities?: {
1845
+ input?: {
1846
+ image?: {
1847
+ mediaTypes: string[];
1848
+ maxBytes: number;
1849
+ } | undefined;
1850
+ audio?: {
1851
+ mediaTypes: string[];
1852
+ maxBytes: number;
1853
+ } | undefined;
1854
+ } | undefined;
1855
+ voice?: {
1856
+ sts?: boolean | undefined;
1857
+ tts?: boolean | undefined;
1858
+ stt?: boolean | undefined;
1859
+ } | undefined;
1860
+ } | undefined;
1861
+ };
1862
+ };
1863
+ };
1864
+ };
1865
+ } & {
1866
+ "/v1/providers/:name/known-models/:modelId": {
1867
+ $delete: {
1868
+ output: {
1869
+ error: string;
1870
+ };
1871
+ outputFormat: "json";
1872
+ status: 400;
1873
+ input: {
1874
+ param: {
1875
+ name: string;
1876
+ modelId: string;
1877
+ };
1878
+ } & {
1879
+ query: {
1880
+ endpointName?: string | undefined;
1881
+ };
1882
+ };
1883
+ } | {
1884
+ output: {
1885
+ error: string;
1886
+ };
1887
+ outputFormat: "json";
1888
+ status: 404;
1889
+ input: {
1890
+ param: {
1891
+ name: string;
1892
+ modelId: string;
1893
+ };
1894
+ } & {
1895
+ query: {
1896
+ endpointName?: string | undefined;
1897
+ };
1898
+ };
1899
+ } | {
1900
+ output: {
1901
+ error: string;
1902
+ };
1903
+ outputFormat: "json";
1904
+ status: 500;
1905
+ input: {
1906
+ param: {
1907
+ name: string;
1908
+ modelId: string;
1909
+ };
1910
+ } & {
1911
+ query: {
1912
+ endpointName?: string | undefined;
1913
+ };
1914
+ };
1915
+ } | {
1916
+ output: {
1917
+ models: {
1918
+ modelId: string;
1919
+ endpointName?: string | undefined;
1920
+ displayName?: string | undefined;
1921
+ contextSize?: number | undefined;
1922
+ capabilities?: {
1923
+ input?: {
1924
+ image?: {
1925
+ mediaTypes: string[];
1926
+ maxBytes: number;
1927
+ } | undefined;
1928
+ audio?: {
1929
+ mediaTypes: string[];
1930
+ maxBytes: number;
1931
+ } | undefined;
1932
+ } | undefined;
1933
+ voice?: {
1934
+ sts?: boolean | undefined;
1935
+ tts?: boolean | undefined;
1936
+ stt?: boolean | undefined;
1937
+ } | undefined;
1938
+ } | undefined;
1939
+ }[];
1940
+ };
1941
+ outputFormat: "json";
1942
+ status: 200;
1943
+ input: {
1944
+ param: {
1945
+ name: string;
1946
+ modelId: string;
1947
+ };
1948
+ } & {
1949
+ query: {
1950
+ endpointName?: string | undefined;
1951
+ };
1952
+ };
1953
+ };
1954
+ };
1955
+ } & {
1956
+ "/v1/introspect/:path": {
1957
+ $get: {
1958
+ output: {
1959
+ error: string;
1960
+ };
1961
+ outputFormat: "json";
1962
+ status: 400;
1963
+ input: {
1964
+ param: {
1965
+ path: string;
1966
+ };
1967
+ };
1968
+ } | {
1969
+ output: {
1970
+ error: string;
1971
+ };
1972
+ outputFormat: "json";
1973
+ status: 404;
1974
+ input: {
1975
+ param: {
1976
+ path: string;
1977
+ };
1978
+ };
1979
+ } | {
1980
+ output: {
1981
+ error: string;
1982
+ };
1983
+ outputFormat: "json";
1984
+ status: 500;
1985
+ input: {
1986
+ param: {
1987
+ path: string;
1988
+ };
1989
+ };
1990
+ } | {
1991
+ output: {
1992
+ path: string[];
1993
+ state: {
1994
+ [x: string]: import("hono/utils/types").JSONValue;
1995
+ } | null;
1996
+ children: {
1997
+ id: string;
1998
+ hasState: boolean;
1999
+ hasChildren: boolean;
2000
+ }[];
2001
+ };
2002
+ outputFormat: "json";
2003
+ status: 200;
2004
+ input: {
2005
+ param: {
2006
+ path: string;
2007
+ };
2008
+ };
2009
+ };
2010
+ };
2011
+ }, "/", "/v1/introspect/:path">;
2012
+ export type AdminApiServer = AdminApi;