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