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