@klex/agent-admin-api 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +560 -555
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -15,15 +15,6 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
15
15
|
} & {
|
|
16
16
|
"/v1/cloud/status": {
|
|
17
17
|
$get: {
|
|
18
|
-
output: {
|
|
19
|
-
error: string;
|
|
20
|
-
code: string;
|
|
21
|
-
remediation?: string | undefined;
|
|
22
|
-
};
|
|
23
|
-
outputFormat: "json";
|
|
24
|
-
status: 500;
|
|
25
|
-
input: {};
|
|
26
|
-
} | {
|
|
27
18
|
output: {
|
|
28
19
|
cloudEnabled: boolean;
|
|
29
20
|
enrolled: boolean;
|
|
@@ -35,18 +26,26 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
35
26
|
outputFormat: "json";
|
|
36
27
|
status: 200;
|
|
37
28
|
input: {};
|
|
29
|
+
} | {
|
|
30
|
+
output: {
|
|
31
|
+
error: string;
|
|
32
|
+
code: string;
|
|
33
|
+
remediation?: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
outputFormat: "json";
|
|
36
|
+
status: 500;
|
|
37
|
+
input: {};
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
} & {
|
|
41
41
|
"/v1/cloud/enroll": {
|
|
42
42
|
$post: {
|
|
43
43
|
output: {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
remediation?: string | undefined;
|
|
44
|
+
clientId: string;
|
|
45
|
+
enrolledAt: string;
|
|
47
46
|
};
|
|
48
47
|
outputFormat: "json";
|
|
49
|
-
status:
|
|
48
|
+
status: 200;
|
|
50
49
|
input: {
|
|
51
50
|
json: {
|
|
52
51
|
enrollmentCode: string;
|
|
@@ -59,7 +58,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
59
58
|
remediation?: string | undefined;
|
|
60
59
|
};
|
|
61
60
|
outputFormat: "json";
|
|
62
|
-
status:
|
|
61
|
+
status: 400;
|
|
63
62
|
input: {
|
|
64
63
|
json: {
|
|
65
64
|
enrollmentCode: string;
|
|
@@ -67,11 +66,12 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
67
66
|
};
|
|
68
67
|
} | {
|
|
69
68
|
output: {
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
error: string;
|
|
70
|
+
code: string;
|
|
71
|
+
remediation?: string | undefined;
|
|
72
72
|
};
|
|
73
73
|
outputFormat: "json";
|
|
74
|
-
status:
|
|
74
|
+
status: 500;
|
|
75
75
|
input: {
|
|
76
76
|
json: {
|
|
77
77
|
enrollmentCode: string;
|
|
@@ -94,12 +94,10 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
94
94
|
"/v1/settings/agent": {
|
|
95
95
|
$patch: {
|
|
96
96
|
output: {
|
|
97
|
-
|
|
98
|
-
code: string;
|
|
99
|
-
remediation?: string | undefined;
|
|
97
|
+
officialName: string;
|
|
100
98
|
};
|
|
101
99
|
outputFormat: "json";
|
|
102
|
-
status:
|
|
100
|
+
status: 200;
|
|
103
101
|
input: {
|
|
104
102
|
json: {
|
|
105
103
|
officialName: string;
|
|
@@ -112,7 +110,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
112
110
|
remediation?: string | undefined;
|
|
113
111
|
};
|
|
114
112
|
outputFormat: "json";
|
|
115
|
-
status:
|
|
113
|
+
status: 400;
|
|
116
114
|
input: {
|
|
117
115
|
json: {
|
|
118
116
|
officialName: string;
|
|
@@ -120,10 +118,12 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
120
118
|
};
|
|
121
119
|
} | {
|
|
122
120
|
output: {
|
|
123
|
-
|
|
121
|
+
error: string;
|
|
122
|
+
code: string;
|
|
123
|
+
remediation?: string | undefined;
|
|
124
124
|
};
|
|
125
125
|
outputFormat: "json";
|
|
126
|
-
status:
|
|
126
|
+
status: 500;
|
|
127
127
|
input: {
|
|
128
128
|
json: {
|
|
129
129
|
officialName: string;
|
|
@@ -134,15 +134,6 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
134
134
|
} & {
|
|
135
135
|
"/v1/settings/model-selection": {
|
|
136
136
|
$get: {
|
|
137
|
-
output: {
|
|
138
|
-
error: string;
|
|
139
|
-
code: string;
|
|
140
|
-
remediation?: string | undefined;
|
|
141
|
-
};
|
|
142
|
-
outputFormat: "json";
|
|
143
|
-
status: 500;
|
|
144
|
-
input: {};
|
|
145
|
-
} | {
|
|
146
137
|
output: {
|
|
147
138
|
chat: {
|
|
148
139
|
providerId: string;
|
|
@@ -222,18 +213,102 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
222
213
|
outputFormat: "json";
|
|
223
214
|
status: 200;
|
|
224
215
|
input: {};
|
|
216
|
+
} | {
|
|
217
|
+
output: {
|
|
218
|
+
error: string;
|
|
219
|
+
code: string;
|
|
220
|
+
remediation?: string | undefined;
|
|
221
|
+
};
|
|
222
|
+
outputFormat: "json";
|
|
223
|
+
status: 500;
|
|
224
|
+
input: {};
|
|
225
225
|
};
|
|
226
226
|
};
|
|
227
227
|
} & {
|
|
228
228
|
"/v1/settings/model-selection": {
|
|
229
229
|
$patch: {
|
|
230
230
|
output: {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
231
|
+
chat: {
|
|
232
|
+
providerId: string;
|
|
233
|
+
modelId: string;
|
|
234
|
+
providerOptions?: {
|
|
235
|
+
[x: string]: {
|
|
236
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
237
|
+
};
|
|
238
|
+
} | undefined;
|
|
239
|
+
}[];
|
|
240
|
+
compaction: {
|
|
241
|
+
providerId: string;
|
|
242
|
+
modelId: string;
|
|
243
|
+
providerOptions?: {
|
|
244
|
+
[x: string]: {
|
|
245
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
246
|
+
};
|
|
247
|
+
} | undefined;
|
|
248
|
+
}[];
|
|
249
|
+
memory: {
|
|
250
|
+
providerId: string;
|
|
251
|
+
modelId: string;
|
|
252
|
+
providerOptions?: {
|
|
253
|
+
[x: string]: {
|
|
254
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
255
|
+
};
|
|
256
|
+
} | undefined;
|
|
257
|
+
}[];
|
|
258
|
+
imageVision: {
|
|
259
|
+
providerId: string;
|
|
260
|
+
modelId: string;
|
|
261
|
+
providerOptions?: {
|
|
262
|
+
[x: string]: {
|
|
263
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
264
|
+
};
|
|
265
|
+
} | undefined;
|
|
266
|
+
}[];
|
|
267
|
+
audioListening: {
|
|
268
|
+
providerId: string;
|
|
269
|
+
modelId: string;
|
|
270
|
+
providerOptions?: {
|
|
271
|
+
[x: string]: {
|
|
272
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
273
|
+
};
|
|
274
|
+
} | undefined;
|
|
275
|
+
}[];
|
|
276
|
+
voice: {
|
|
277
|
+
sts: {
|
|
278
|
+
providerId: string;
|
|
279
|
+
modelId: string;
|
|
280
|
+
providerOptions?: {
|
|
281
|
+
[x: string]: {
|
|
282
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
283
|
+
};
|
|
284
|
+
} | undefined;
|
|
285
|
+
}[];
|
|
286
|
+
tts: {
|
|
287
|
+
providerId: string;
|
|
288
|
+
modelId: string;
|
|
289
|
+
providerOptions?: {
|
|
290
|
+
[x: string]: {
|
|
291
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
292
|
+
};
|
|
293
|
+
} | undefined;
|
|
294
|
+
}[];
|
|
295
|
+
stt: {
|
|
296
|
+
providerId: string;
|
|
297
|
+
modelId: string;
|
|
298
|
+
providerOptions?: {
|
|
299
|
+
[x: string]: {
|
|
300
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
301
|
+
};
|
|
302
|
+
} | undefined;
|
|
303
|
+
}[];
|
|
304
|
+
};
|
|
305
|
+
warnings: {
|
|
306
|
+
modelId: string;
|
|
307
|
+
message: string;
|
|
308
|
+
}[];
|
|
234
309
|
};
|
|
235
310
|
outputFormat: "json";
|
|
236
|
-
status:
|
|
311
|
+
status: 200;
|
|
237
312
|
input: {
|
|
238
313
|
json: {
|
|
239
314
|
chat?: {
|
|
@@ -287,7 +362,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
287
362
|
remediation?: string | undefined;
|
|
288
363
|
};
|
|
289
364
|
outputFormat: "json";
|
|
290
|
-
status:
|
|
365
|
+
status: 400;
|
|
291
366
|
input: {
|
|
292
367
|
json: {
|
|
293
368
|
chat?: {
|
|
@@ -336,87 +411,12 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
336
411
|
};
|
|
337
412
|
} | {
|
|
338
413
|
output: {
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
providerOptions?: {
|
|
343
|
-
[x: string]: {
|
|
344
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
345
|
-
};
|
|
346
|
-
} | undefined;
|
|
347
|
-
}[];
|
|
348
|
-
compaction: {
|
|
349
|
-
providerId: string;
|
|
350
|
-
modelId: string;
|
|
351
|
-
providerOptions?: {
|
|
352
|
-
[x: string]: {
|
|
353
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
354
|
-
};
|
|
355
|
-
} | undefined;
|
|
356
|
-
}[];
|
|
357
|
-
memory: {
|
|
358
|
-
providerId: string;
|
|
359
|
-
modelId: string;
|
|
360
|
-
providerOptions?: {
|
|
361
|
-
[x: string]: {
|
|
362
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
363
|
-
};
|
|
364
|
-
} | undefined;
|
|
365
|
-
}[];
|
|
366
|
-
imageVision: {
|
|
367
|
-
providerId: string;
|
|
368
|
-
modelId: string;
|
|
369
|
-
providerOptions?: {
|
|
370
|
-
[x: string]: {
|
|
371
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
372
|
-
};
|
|
373
|
-
} | undefined;
|
|
374
|
-
}[];
|
|
375
|
-
audioListening: {
|
|
376
|
-
providerId: string;
|
|
377
|
-
modelId: string;
|
|
378
|
-
providerOptions?: {
|
|
379
|
-
[x: string]: {
|
|
380
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
381
|
-
};
|
|
382
|
-
} | undefined;
|
|
383
|
-
}[];
|
|
384
|
-
voice: {
|
|
385
|
-
sts: {
|
|
386
|
-
providerId: string;
|
|
387
|
-
modelId: string;
|
|
388
|
-
providerOptions?: {
|
|
389
|
-
[x: string]: {
|
|
390
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
391
|
-
};
|
|
392
|
-
} | undefined;
|
|
393
|
-
}[];
|
|
394
|
-
tts: {
|
|
395
|
-
providerId: string;
|
|
396
|
-
modelId: string;
|
|
397
|
-
providerOptions?: {
|
|
398
|
-
[x: string]: {
|
|
399
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
400
|
-
};
|
|
401
|
-
} | undefined;
|
|
402
|
-
}[];
|
|
403
|
-
stt: {
|
|
404
|
-
providerId: string;
|
|
405
|
-
modelId: string;
|
|
406
|
-
providerOptions?: {
|
|
407
|
-
[x: string]: {
|
|
408
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
409
|
-
};
|
|
410
|
-
} | undefined;
|
|
411
|
-
}[];
|
|
412
|
-
};
|
|
413
|
-
warnings: {
|
|
414
|
-
modelId: string;
|
|
415
|
-
message: string;
|
|
416
|
-
}[];
|
|
414
|
+
error: string;
|
|
415
|
+
code: string;
|
|
416
|
+
remediation?: string | undefined;
|
|
417
417
|
};
|
|
418
418
|
outputFormat: "json";
|
|
419
|
-
status:
|
|
419
|
+
status: 500;
|
|
420
420
|
input: {
|
|
421
421
|
json: {
|
|
422
422
|
chat?: {
|
|
@@ -469,19 +469,19 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
469
469
|
"/v1/settings/telemetry": {
|
|
470
470
|
$get: {
|
|
471
471
|
output: {
|
|
472
|
-
|
|
473
|
-
code: string;
|
|
474
|
-
remediation?: string | undefined;
|
|
472
|
+
level: "full" | "minimum" | "off" | "reduced";
|
|
475
473
|
};
|
|
476
474
|
outputFormat: "json";
|
|
477
|
-
status:
|
|
475
|
+
status: 200;
|
|
478
476
|
input: {};
|
|
479
477
|
} | {
|
|
480
478
|
output: {
|
|
481
|
-
|
|
479
|
+
error: string;
|
|
480
|
+
code: string;
|
|
481
|
+
remediation?: string | undefined;
|
|
482
482
|
};
|
|
483
483
|
outputFormat: "json";
|
|
484
|
-
status:
|
|
484
|
+
status: 500;
|
|
485
485
|
input: {};
|
|
486
486
|
};
|
|
487
487
|
};
|
|
@@ -489,12 +489,10 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
489
489
|
"/v1/settings/telemetry": {
|
|
490
490
|
$patch: {
|
|
491
491
|
output: {
|
|
492
|
-
|
|
493
|
-
code: string;
|
|
494
|
-
remediation?: string | undefined;
|
|
492
|
+
level: "full" | "minimum" | "off" | "reduced";
|
|
495
493
|
};
|
|
496
494
|
outputFormat: "json";
|
|
497
|
-
status:
|
|
495
|
+
status: 200;
|
|
498
496
|
input: {
|
|
499
497
|
json: {
|
|
500
498
|
level?: "full" | "minimum" | "off" | "reduced" | undefined;
|
|
@@ -507,7 +505,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
507
505
|
remediation?: string | undefined;
|
|
508
506
|
};
|
|
509
507
|
outputFormat: "json";
|
|
510
|
-
status:
|
|
508
|
+
status: 400;
|
|
511
509
|
input: {
|
|
512
510
|
json: {
|
|
513
511
|
level?: "full" | "minimum" | "off" | "reduced" | undefined;
|
|
@@ -515,10 +513,12 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
515
513
|
};
|
|
516
514
|
} | {
|
|
517
515
|
output: {
|
|
518
|
-
|
|
516
|
+
error: string;
|
|
517
|
+
code: string;
|
|
518
|
+
remediation?: string | undefined;
|
|
519
519
|
};
|
|
520
520
|
outputFormat: "json";
|
|
521
|
-
status:
|
|
521
|
+
status: 500;
|
|
522
522
|
input: {
|
|
523
523
|
json: {
|
|
524
524
|
level?: "full" | "minimum" | "off" | "reduced" | undefined;
|
|
@@ -529,15 +529,6 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
529
529
|
} & {
|
|
530
530
|
"/v1/introspect": {
|
|
531
531
|
$get: {
|
|
532
|
-
output: {
|
|
533
|
-
error: string;
|
|
534
|
-
code: string;
|
|
535
|
-
remediation?: string | undefined;
|
|
536
|
-
};
|
|
537
|
-
outputFormat: "json";
|
|
538
|
-
status: 500;
|
|
539
|
-
input: {};
|
|
540
|
-
} | {
|
|
541
532
|
output: {
|
|
542
533
|
path: string[];
|
|
543
534
|
state: {
|
|
@@ -552,11 +543,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
552
543
|
outputFormat: "json";
|
|
553
544
|
status: 200;
|
|
554
545
|
input: {};
|
|
555
|
-
}
|
|
556
|
-
};
|
|
557
|
-
} & {
|
|
558
|
-
"/v1/mcp-servers": {
|
|
559
|
-
$get: {
|
|
546
|
+
} | {
|
|
560
547
|
output: {
|
|
561
548
|
error: string;
|
|
562
549
|
code: string;
|
|
@@ -565,7 +552,11 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
565
552
|
outputFormat: "json";
|
|
566
553
|
status: 500;
|
|
567
554
|
input: {};
|
|
568
|
-
}
|
|
555
|
+
};
|
|
556
|
+
};
|
|
557
|
+
} & {
|
|
558
|
+
"/v1/mcp-servers": {
|
|
559
|
+
$get: {
|
|
569
560
|
output: {
|
|
570
561
|
servers: {
|
|
571
562
|
name: string;
|
|
@@ -574,6 +565,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
574
565
|
supportsPushNotifications: boolean;
|
|
575
566
|
supportsRealtimeMedia: boolean;
|
|
576
567
|
transport: "http" | "stdio";
|
|
568
|
+
headerNames: string[];
|
|
577
569
|
usesInteractiveOAuth: boolean;
|
|
578
570
|
authorization: {
|
|
579
571
|
id: string;
|
|
@@ -591,11 +583,51 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
591
583
|
outputFormat: "json";
|
|
592
584
|
status: 200;
|
|
593
585
|
input: {};
|
|
586
|
+
} | {
|
|
587
|
+
output: {
|
|
588
|
+
error: string;
|
|
589
|
+
code: string;
|
|
590
|
+
remediation?: string | undefined;
|
|
591
|
+
};
|
|
592
|
+
outputFormat: "json";
|
|
593
|
+
status: 500;
|
|
594
|
+
input: {};
|
|
594
595
|
};
|
|
595
596
|
};
|
|
596
597
|
} & {
|
|
597
598
|
"/v1/mcp-servers/:name": {
|
|
598
599
|
$get: {
|
|
600
|
+
output: {
|
|
601
|
+
server: {
|
|
602
|
+
name: string;
|
|
603
|
+
status: "authorization_required" | "authorizing" | "connected" | "connecting" | "disconnected" | "error";
|
|
604
|
+
toolCount: number;
|
|
605
|
+
supportsPushNotifications: boolean;
|
|
606
|
+
supportsRealtimeMedia: boolean;
|
|
607
|
+
transport: "http" | "stdio";
|
|
608
|
+
headerNames: string[];
|
|
609
|
+
usesInteractiveOAuth: boolean;
|
|
610
|
+
authorization: {
|
|
611
|
+
id: string;
|
|
612
|
+
createdAt: string;
|
|
613
|
+
expiresAt: string;
|
|
614
|
+
} | null;
|
|
615
|
+
lastError: {
|
|
616
|
+
name: string;
|
|
617
|
+
message: string;
|
|
618
|
+
at: string;
|
|
619
|
+
} | null;
|
|
620
|
+
nextRetryAt: string | null;
|
|
621
|
+
};
|
|
622
|
+
};
|
|
623
|
+
outputFormat: "json";
|
|
624
|
+
status: 200;
|
|
625
|
+
input: {
|
|
626
|
+
param: {
|
|
627
|
+
name: string;
|
|
628
|
+
};
|
|
629
|
+
};
|
|
630
|
+
} | {
|
|
599
631
|
output: {
|
|
600
632
|
error: string;
|
|
601
633
|
code: string;
|
|
@@ -621,15 +653,20 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
621
653
|
name: string;
|
|
622
654
|
};
|
|
623
655
|
};
|
|
624
|
-
}
|
|
656
|
+
};
|
|
657
|
+
};
|
|
658
|
+
} & {
|
|
659
|
+
"/v1/mcp-servers": {
|
|
660
|
+
$post: {
|
|
625
661
|
output: {
|
|
626
|
-
|
|
662
|
+
servers: {
|
|
627
663
|
name: string;
|
|
628
664
|
status: "authorization_required" | "authorizing" | "connected" | "connecting" | "disconnected" | "error";
|
|
629
665
|
toolCount: number;
|
|
630
666
|
supportsPushNotifications: boolean;
|
|
631
667
|
supportsRealtimeMedia: boolean;
|
|
632
668
|
transport: "http" | "stdio";
|
|
669
|
+
headerNames: string[];
|
|
633
670
|
usesInteractiveOAuth: boolean;
|
|
634
671
|
authorization: {
|
|
635
672
|
id: string;
|
|
@@ -642,20 +679,31 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
642
679
|
at: string;
|
|
643
680
|
} | null;
|
|
644
681
|
nextRetryAt: string | null;
|
|
645
|
-
};
|
|
682
|
+
}[];
|
|
646
683
|
};
|
|
647
684
|
outputFormat: "json";
|
|
648
|
-
status:
|
|
685
|
+
status: 201;
|
|
649
686
|
input: {
|
|
650
|
-
|
|
687
|
+
json: {
|
|
651
688
|
name: string;
|
|
689
|
+
type?: "stdio" | undefined;
|
|
690
|
+
command: string;
|
|
691
|
+
args?: string[] | undefined;
|
|
692
|
+
env?: Record<string, string> | undefined;
|
|
693
|
+
versionNegotiation?: "auto" | "legacy" | {
|
|
694
|
+
pin: string;
|
|
695
|
+
} | undefined;
|
|
696
|
+
} | {
|
|
697
|
+
name: string;
|
|
698
|
+
type?: "http" | "streamable-http" | undefined;
|
|
699
|
+
url: string;
|
|
700
|
+
headers?: Record<string, string> | undefined;
|
|
701
|
+
versionNegotiation?: "auto" | "legacy" | {
|
|
702
|
+
pin: string;
|
|
703
|
+
} | undefined;
|
|
652
704
|
};
|
|
653
705
|
};
|
|
654
|
-
}
|
|
655
|
-
};
|
|
656
|
-
} & {
|
|
657
|
-
"/v1/mcp-servers": {
|
|
658
|
-
$post: {
|
|
706
|
+
} | {
|
|
659
707
|
output: {
|
|
660
708
|
error: string;
|
|
661
709
|
code: string;
|
|
@@ -739,7 +787,11 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
739
787
|
} | undefined;
|
|
740
788
|
};
|
|
741
789
|
};
|
|
742
|
-
}
|
|
790
|
+
};
|
|
791
|
+
};
|
|
792
|
+
} & {
|
|
793
|
+
"/v1/mcp-servers/:name": {
|
|
794
|
+
$patch: {
|
|
743
795
|
output: {
|
|
744
796
|
servers: {
|
|
745
797
|
name: string;
|
|
@@ -748,6 +800,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
748
800
|
supportsPushNotifications: boolean;
|
|
749
801
|
supportsRealtimeMedia: boolean;
|
|
750
802
|
transport: "http" | "stdio";
|
|
803
|
+
headerNames: string[];
|
|
751
804
|
usesInteractiveOAuth: boolean;
|
|
752
805
|
authorization: {
|
|
753
806
|
id: string;
|
|
@@ -763,10 +816,13 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
763
816
|
}[];
|
|
764
817
|
};
|
|
765
818
|
outputFormat: "json";
|
|
766
|
-
status:
|
|
819
|
+
status: 200;
|
|
767
820
|
input: {
|
|
768
|
-
|
|
821
|
+
param: {
|
|
769
822
|
name: string;
|
|
823
|
+
};
|
|
824
|
+
} & {
|
|
825
|
+
json: {
|
|
770
826
|
type?: "stdio" | undefined;
|
|
771
827
|
command: string;
|
|
772
828
|
args?: string[] | undefined;
|
|
@@ -775,20 +831,15 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
775
831
|
pin: string;
|
|
776
832
|
} | undefined;
|
|
777
833
|
} | {
|
|
778
|
-
name: string;
|
|
779
834
|
type?: "http" | "streamable-http" | undefined;
|
|
780
|
-
url
|
|
781
|
-
|
|
835
|
+
url?: string | undefined;
|
|
836
|
+
headerUpdates?: Record<string, string | null> | undefined;
|
|
782
837
|
versionNegotiation?: "auto" | "legacy" | {
|
|
783
838
|
pin: string;
|
|
784
839
|
} | undefined;
|
|
785
840
|
};
|
|
786
841
|
};
|
|
787
|
-
}
|
|
788
|
-
};
|
|
789
|
-
} & {
|
|
790
|
-
"/v1/mcp-servers/:name": {
|
|
791
|
-
$patch: {
|
|
842
|
+
} | {
|
|
792
843
|
output: {
|
|
793
844
|
error: string;
|
|
794
845
|
code: string;
|
|
@@ -811,8 +862,8 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
811
862
|
} | undefined;
|
|
812
863
|
} | {
|
|
813
864
|
type?: "http" | "streamable-http" | undefined;
|
|
814
|
-
url
|
|
815
|
-
|
|
865
|
+
url?: string | undefined;
|
|
866
|
+
headerUpdates?: Record<string, string | null> | undefined;
|
|
816
867
|
versionNegotiation?: "auto" | "legacy" | {
|
|
817
868
|
pin: string;
|
|
818
869
|
} | undefined;
|
|
@@ -841,8 +892,8 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
841
892
|
} | undefined;
|
|
842
893
|
} | {
|
|
843
894
|
type?: "http" | "streamable-http" | undefined;
|
|
844
|
-
url
|
|
845
|
-
|
|
895
|
+
url?: string | undefined;
|
|
896
|
+
headerUpdates?: Record<string, string | null> | undefined;
|
|
846
897
|
versionNegotiation?: "auto" | "legacy" | {
|
|
847
898
|
pin: string;
|
|
848
899
|
} | undefined;
|
|
@@ -871,14 +922,18 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
871
922
|
} | undefined;
|
|
872
923
|
} | {
|
|
873
924
|
type?: "http" | "streamable-http" | undefined;
|
|
874
|
-
url
|
|
875
|
-
|
|
925
|
+
url?: string | undefined;
|
|
926
|
+
headerUpdates?: Record<string, string | null> | undefined;
|
|
876
927
|
versionNegotiation?: "auto" | "legacy" | {
|
|
877
928
|
pin: string;
|
|
878
929
|
} | undefined;
|
|
879
930
|
};
|
|
880
931
|
};
|
|
881
|
-
}
|
|
932
|
+
};
|
|
933
|
+
};
|
|
934
|
+
} & {
|
|
935
|
+
"/v1/mcp-servers/:name": {
|
|
936
|
+
$delete: {
|
|
882
937
|
output: {
|
|
883
938
|
servers: {
|
|
884
939
|
name: string;
|
|
@@ -887,6 +942,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
887
942
|
supportsPushNotifications: boolean;
|
|
888
943
|
supportsRealtimeMedia: boolean;
|
|
889
944
|
transport: "http" | "stdio";
|
|
945
|
+
headerNames: string[];
|
|
890
946
|
usesInteractiveOAuth: boolean;
|
|
891
947
|
authorization: {
|
|
892
948
|
id: string;
|
|
@@ -907,29 +963,8 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
907
963
|
param: {
|
|
908
964
|
name: string;
|
|
909
965
|
};
|
|
910
|
-
} & {
|
|
911
|
-
json: {
|
|
912
|
-
type?: "stdio" | undefined;
|
|
913
|
-
command: string;
|
|
914
|
-
args?: string[] | undefined;
|
|
915
|
-
env?: Record<string, string> | undefined;
|
|
916
|
-
versionNegotiation?: "auto" | "legacy" | {
|
|
917
|
-
pin: string;
|
|
918
|
-
} | undefined;
|
|
919
|
-
} | {
|
|
920
|
-
type?: "http" | "streamable-http" | undefined;
|
|
921
|
-
url: string;
|
|
922
|
-
headers?: Record<string, string> | undefined;
|
|
923
|
-
versionNegotiation?: "auto" | "legacy" | {
|
|
924
|
-
pin: string;
|
|
925
|
-
} | undefined;
|
|
926
|
-
};
|
|
927
966
|
};
|
|
928
|
-
}
|
|
929
|
-
};
|
|
930
|
-
} & {
|
|
931
|
-
"/v1/mcp-servers/:name": {
|
|
932
|
-
$delete: {
|
|
967
|
+
} | {
|
|
933
968
|
output: {
|
|
934
969
|
error: string;
|
|
935
970
|
code: string;
|
|
@@ -955,54 +990,11 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
955
990
|
name: string;
|
|
956
991
|
};
|
|
957
992
|
};
|
|
958
|
-
} | {
|
|
959
|
-
output: {
|
|
960
|
-
servers: {
|
|
961
|
-
name: string;
|
|
962
|
-
status: "authorization_required" | "authorizing" | "connected" | "connecting" | "disconnected" | "error";
|
|
963
|
-
toolCount: number;
|
|
964
|
-
supportsPushNotifications: boolean;
|
|
965
|
-
supportsRealtimeMedia: boolean;
|
|
966
|
-
transport: "http" | "stdio";
|
|
967
|
-
usesInteractiveOAuth: boolean;
|
|
968
|
-
authorization: {
|
|
969
|
-
id: string;
|
|
970
|
-
createdAt: string;
|
|
971
|
-
expiresAt: string;
|
|
972
|
-
} | null;
|
|
973
|
-
lastError: {
|
|
974
|
-
name: string;
|
|
975
|
-
message: string;
|
|
976
|
-
at: string;
|
|
977
|
-
} | null;
|
|
978
|
-
nextRetryAt: string | null;
|
|
979
|
-
}[];
|
|
980
|
-
};
|
|
981
|
-
outputFormat: "json";
|
|
982
|
-
status: 200;
|
|
983
|
-
input: {
|
|
984
|
-
param: {
|
|
985
|
-
name: string;
|
|
986
|
-
};
|
|
987
|
-
};
|
|
988
993
|
};
|
|
989
994
|
};
|
|
990
995
|
} & {
|
|
991
996
|
"/v1/mcp-servers/:name/tool-calls": {
|
|
992
997
|
$get: {
|
|
993
|
-
output: {
|
|
994
|
-
error: string;
|
|
995
|
-
code: string;
|
|
996
|
-
remediation?: string | undefined;
|
|
997
|
-
};
|
|
998
|
-
outputFormat: "json";
|
|
999
|
-
status: 500;
|
|
1000
|
-
input: {
|
|
1001
|
-
param: {
|
|
1002
|
-
name: string;
|
|
1003
|
-
};
|
|
1004
|
-
};
|
|
1005
|
-
} | {
|
|
1006
998
|
output: {
|
|
1007
999
|
toolCalls: {
|
|
1008
1000
|
id: string;
|
|
@@ -1025,18 +1017,34 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1025
1017
|
name: string;
|
|
1026
1018
|
};
|
|
1027
1019
|
};
|
|
1020
|
+
} | {
|
|
1021
|
+
output: {
|
|
1022
|
+
error: string;
|
|
1023
|
+
code: string;
|
|
1024
|
+
remediation?: string | undefined;
|
|
1025
|
+
};
|
|
1026
|
+
outputFormat: "json";
|
|
1027
|
+
status: 500;
|
|
1028
|
+
input: {
|
|
1029
|
+
param: {
|
|
1030
|
+
name: string;
|
|
1031
|
+
};
|
|
1032
|
+
};
|
|
1028
1033
|
};
|
|
1029
1034
|
};
|
|
1030
1035
|
} & {
|
|
1031
1036
|
"/v1/mcp-servers/:name/authorization": {
|
|
1032
1037
|
$put: {
|
|
1033
1038
|
output: {
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1039
|
+
id: string;
|
|
1040
|
+
serverName: string;
|
|
1041
|
+
serverUrl: string;
|
|
1042
|
+
authorizationUrl: string;
|
|
1043
|
+
state: string;
|
|
1044
|
+
expiresAt: string;
|
|
1037
1045
|
};
|
|
1038
1046
|
outputFormat: "json";
|
|
1039
|
-
status:
|
|
1047
|
+
status: 200;
|
|
1040
1048
|
input: {
|
|
1041
1049
|
param: {
|
|
1042
1050
|
name: string;
|
|
@@ -1049,7 +1057,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1049
1057
|
remediation?: string | undefined;
|
|
1050
1058
|
};
|
|
1051
1059
|
outputFormat: "json";
|
|
1052
|
-
status:
|
|
1060
|
+
status: 404;
|
|
1053
1061
|
input: {
|
|
1054
1062
|
param: {
|
|
1055
1063
|
name: string;
|
|
@@ -1062,7 +1070,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1062
1070
|
remediation?: string | undefined;
|
|
1063
1071
|
};
|
|
1064
1072
|
outputFormat: "json";
|
|
1065
|
-
status:
|
|
1073
|
+
status: 409;
|
|
1066
1074
|
input: {
|
|
1067
1075
|
param: {
|
|
1068
1076
|
name: string;
|
|
@@ -1075,7 +1083,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1075
1083
|
remediation?: string | undefined;
|
|
1076
1084
|
};
|
|
1077
1085
|
outputFormat: "json";
|
|
1078
|
-
status:
|
|
1086
|
+
status: 503;
|
|
1079
1087
|
input: {
|
|
1080
1088
|
param: {
|
|
1081
1089
|
name: string;
|
|
@@ -1083,15 +1091,12 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1083
1091
|
};
|
|
1084
1092
|
} | {
|
|
1085
1093
|
output: {
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
authorizationUrl: string;
|
|
1090
|
-
state: string;
|
|
1091
|
-
expiresAt: string;
|
|
1094
|
+
error: string;
|
|
1095
|
+
code: string;
|
|
1096
|
+
remediation?: string | undefined;
|
|
1092
1097
|
};
|
|
1093
1098
|
outputFormat: "json";
|
|
1094
|
-
status:
|
|
1099
|
+
status: 504;
|
|
1095
1100
|
input: {
|
|
1096
1101
|
param: {
|
|
1097
1102
|
name: string;
|
|
@@ -1102,6 +1107,15 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1102
1107
|
} & {
|
|
1103
1108
|
"/v1/mcp-servers/:name/authorization": {
|
|
1104
1109
|
$delete: {
|
|
1110
|
+
output: {};
|
|
1111
|
+
outputFormat: string;
|
|
1112
|
+
status: 204;
|
|
1113
|
+
input: {
|
|
1114
|
+
param: {
|
|
1115
|
+
name: string;
|
|
1116
|
+
};
|
|
1117
|
+
};
|
|
1118
|
+
} | {
|
|
1105
1119
|
output: {
|
|
1106
1120
|
error: string;
|
|
1107
1121
|
code: string;
|
|
@@ -1114,27 +1128,16 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1114
1128
|
name: string;
|
|
1115
1129
|
};
|
|
1116
1130
|
};
|
|
1117
|
-
} | {
|
|
1118
|
-
output: {};
|
|
1119
|
-
outputFormat: string;
|
|
1120
|
-
status: 204;
|
|
1121
|
-
input: {
|
|
1122
|
-
param: {
|
|
1123
|
-
name: string;
|
|
1124
|
-
};
|
|
1125
|
-
};
|
|
1126
1131
|
};
|
|
1127
1132
|
};
|
|
1128
1133
|
} & {
|
|
1129
1134
|
"/v1/mcp-oauth/callback": {
|
|
1130
1135
|
$post: {
|
|
1131
1136
|
output: {
|
|
1132
|
-
|
|
1133
|
-
code: string;
|
|
1134
|
-
remediation?: string | undefined;
|
|
1137
|
+
accepted: true;
|
|
1135
1138
|
};
|
|
1136
1139
|
outputFormat: "json";
|
|
1137
|
-
status:
|
|
1140
|
+
status: 202;
|
|
1138
1141
|
input: {
|
|
1139
1142
|
json: {
|
|
1140
1143
|
state: string;
|
|
@@ -1150,7 +1153,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1150
1153
|
remediation?: string | undefined;
|
|
1151
1154
|
};
|
|
1152
1155
|
outputFormat: "json";
|
|
1153
|
-
status:
|
|
1156
|
+
status: 400;
|
|
1154
1157
|
input: {
|
|
1155
1158
|
json: {
|
|
1156
1159
|
state: string;
|
|
@@ -1161,10 +1164,12 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1161
1164
|
};
|
|
1162
1165
|
} | {
|
|
1163
1166
|
output: {
|
|
1164
|
-
|
|
1167
|
+
error: string;
|
|
1168
|
+
code: string;
|
|
1169
|
+
remediation?: string | undefined;
|
|
1165
1170
|
};
|
|
1166
1171
|
outputFormat: "json";
|
|
1167
|
-
status:
|
|
1172
|
+
status: 404;
|
|
1168
1173
|
input: {
|
|
1169
1174
|
json: {
|
|
1170
1175
|
state: string;
|
|
@@ -1380,15 +1385,6 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1380
1385
|
} & {
|
|
1381
1386
|
"/v1/god-messages/session": {
|
|
1382
1387
|
$get: {
|
|
1383
|
-
output: {
|
|
1384
|
-
error: string;
|
|
1385
|
-
code: string;
|
|
1386
|
-
remediation?: string | undefined;
|
|
1387
|
-
};
|
|
1388
|
-
outputFormat: "json";
|
|
1389
|
-
status: 404;
|
|
1390
|
-
input: {};
|
|
1391
|
-
} | {
|
|
1392
1388
|
output: {
|
|
1393
1389
|
id: string;
|
|
1394
1390
|
status: "active" | "terminated";
|
|
@@ -1438,18 +1434,33 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1438
1434
|
outputFormat: "json";
|
|
1439
1435
|
status: 200;
|
|
1440
1436
|
input: {};
|
|
1437
|
+
} | {
|
|
1438
|
+
output: {
|
|
1439
|
+
error: string;
|
|
1440
|
+
code: string;
|
|
1441
|
+
remediation?: string | undefined;
|
|
1442
|
+
};
|
|
1443
|
+
outputFormat: "json";
|
|
1444
|
+
status: 404;
|
|
1445
|
+
input: {};
|
|
1441
1446
|
};
|
|
1442
1447
|
};
|
|
1443
1448
|
} & {
|
|
1444
1449
|
"/v1/god-messages/messages": {
|
|
1445
1450
|
$get: {
|
|
1446
1451
|
output: {
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1452
|
+
messages: {
|
|
1453
|
+
id: string;
|
|
1454
|
+
role: string;
|
|
1455
|
+
parts: {
|
|
1456
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1457
|
+
}[];
|
|
1458
|
+
}[];
|
|
1459
|
+
nextCursor: string | null;
|
|
1460
|
+
hasMore: boolean;
|
|
1450
1461
|
};
|
|
1451
1462
|
outputFormat: "json";
|
|
1452
|
-
status:
|
|
1463
|
+
status: 200;
|
|
1453
1464
|
input: {
|
|
1454
1465
|
query: {
|
|
1455
1466
|
limit?: unknown;
|
|
@@ -1463,7 +1474,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1463
1474
|
remediation?: string | undefined;
|
|
1464
1475
|
};
|
|
1465
1476
|
outputFormat: "json";
|
|
1466
|
-
status:
|
|
1477
|
+
status: 400;
|
|
1467
1478
|
input: {
|
|
1468
1479
|
query: {
|
|
1469
1480
|
limit?: unknown;
|
|
@@ -1472,18 +1483,12 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1472
1483
|
};
|
|
1473
1484
|
} | {
|
|
1474
1485
|
output: {
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
parts: {
|
|
1479
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
1480
|
-
}[];
|
|
1481
|
-
}[];
|
|
1482
|
-
nextCursor: string | null;
|
|
1483
|
-
hasMore: boolean;
|
|
1486
|
+
error: string;
|
|
1487
|
+
code: string;
|
|
1488
|
+
remediation?: string | undefined;
|
|
1484
1489
|
};
|
|
1485
1490
|
outputFormat: "json";
|
|
1486
|
-
status:
|
|
1491
|
+
status: 500;
|
|
1487
1492
|
input: {
|
|
1488
1493
|
query: {
|
|
1489
1494
|
limit?: unknown;
|
|
@@ -1495,6 +1500,13 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1495
1500
|
} & {
|
|
1496
1501
|
"/v1/god-messages/reset": {
|
|
1497
1502
|
$post: {
|
|
1503
|
+
output: {
|
|
1504
|
+
sessionId: string;
|
|
1505
|
+
};
|
|
1506
|
+
outputFormat: "json";
|
|
1507
|
+
status: 200;
|
|
1508
|
+
input: {};
|
|
1509
|
+
} | {
|
|
1498
1510
|
output: {
|
|
1499
1511
|
error: string;
|
|
1500
1512
|
code: string;
|
|
@@ -1521,25 +1533,39 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1521
1533
|
outputFormat: "json";
|
|
1522
1534
|
status: 500;
|
|
1523
1535
|
input: {};
|
|
1524
|
-
} | {
|
|
1525
|
-
output: {
|
|
1526
|
-
sessionId: string;
|
|
1527
|
-
};
|
|
1528
|
-
outputFormat: "json";
|
|
1529
|
-
status: 200;
|
|
1530
|
-
input: {};
|
|
1531
1536
|
};
|
|
1532
1537
|
};
|
|
1533
1538
|
} & {
|
|
1534
1539
|
"/v1/usage": {
|
|
1535
1540
|
$get: {
|
|
1536
1541
|
output: {
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1542
|
+
dataPoints: {
|
|
1543
|
+
bucket: string | null;
|
|
1544
|
+
splitKey: string | null;
|
|
1545
|
+
callCount: number;
|
|
1546
|
+
inputTokens: number;
|
|
1547
|
+
outputTokens: number;
|
|
1548
|
+
inputCacheWriteTokens: number;
|
|
1549
|
+
inputCacheReadTokens: number;
|
|
1550
|
+
ttftMs: number | null;
|
|
1551
|
+
totalDurationMs: number | null;
|
|
1552
|
+
errorCount: number;
|
|
1553
|
+
id: string | null;
|
|
1554
|
+
sessionId: string | null;
|
|
1555
|
+
providerType: string | null;
|
|
1556
|
+
providerId: string | null;
|
|
1557
|
+
endpointId: string | null;
|
|
1558
|
+
modelId: string | null;
|
|
1559
|
+
source: "chat" | "extension" | null;
|
|
1560
|
+
extensionId: string | null;
|
|
1561
|
+
finishReason: string | null;
|
|
1562
|
+
errorType: string | null;
|
|
1563
|
+
startedAt: string | null;
|
|
1564
|
+
finishedAt: string | null;
|
|
1565
|
+
}[];
|
|
1540
1566
|
};
|
|
1541
1567
|
outputFormat: "json";
|
|
1542
|
-
status:
|
|
1568
|
+
status: 200;
|
|
1543
1569
|
input: {
|
|
1544
1570
|
query: {
|
|
1545
1571
|
splitBy?: "endpoint" | "model" | "none" | "provider" | undefined;
|
|
@@ -1556,7 +1582,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1556
1582
|
remediation?: string | undefined;
|
|
1557
1583
|
};
|
|
1558
1584
|
outputFormat: "json";
|
|
1559
|
-
status:
|
|
1585
|
+
status: 400;
|
|
1560
1586
|
input: {
|
|
1561
1587
|
query: {
|
|
1562
1588
|
splitBy?: "endpoint" | "model" | "none" | "provider" | undefined;
|
|
@@ -1568,33 +1594,12 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1568
1594
|
};
|
|
1569
1595
|
} | {
|
|
1570
1596
|
output: {
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
callCount: number;
|
|
1575
|
-
inputTokens: number;
|
|
1576
|
-
outputTokens: number;
|
|
1577
|
-
inputCacheWriteTokens: number;
|
|
1578
|
-
inputCacheReadTokens: number;
|
|
1579
|
-
ttftMs: number | null;
|
|
1580
|
-
totalDurationMs: number | null;
|
|
1581
|
-
errorCount: number;
|
|
1582
|
-
id: string | null;
|
|
1583
|
-
sessionId: string | null;
|
|
1584
|
-
providerType: string | null;
|
|
1585
|
-
providerId: string | null;
|
|
1586
|
-
endpointId: string | null;
|
|
1587
|
-
modelId: string | null;
|
|
1588
|
-
source: "chat" | "extension" | null;
|
|
1589
|
-
extensionId: string | null;
|
|
1590
|
-
finishReason: string | null;
|
|
1591
|
-
errorType: string | null;
|
|
1592
|
-
startedAt: string | null;
|
|
1593
|
-
finishedAt: string | null;
|
|
1594
|
-
}[];
|
|
1597
|
+
error: string;
|
|
1598
|
+
code: string;
|
|
1599
|
+
remediation?: string | undefined;
|
|
1595
1600
|
};
|
|
1596
1601
|
outputFormat: "json";
|
|
1597
|
-
status:
|
|
1602
|
+
status: 500;
|
|
1598
1603
|
input: {
|
|
1599
1604
|
query: {
|
|
1600
1605
|
splitBy?: "endpoint" | "model" | "none" | "provider" | undefined;
|
|
@@ -1634,6 +1639,55 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1634
1639
|
} & {
|
|
1635
1640
|
"/v1/provider-types/:type/can-add": {
|
|
1636
1641
|
$post: {
|
|
1642
|
+
output: {
|
|
1643
|
+
ok: boolean;
|
|
1644
|
+
code?: string | undefined;
|
|
1645
|
+
message?: string | undefined;
|
|
1646
|
+
provider?: {
|
|
1647
|
+
id: string;
|
|
1648
|
+
type: "alibaba-qwen" | "amazon-bedrock" | "anthropic" | "anthropic-messages" | "azure-openai" | "chat-completions" | "chatgpt-codex-subscription" | "deepseek" | "glm-coding-plan" | "google-gemini" | "google-generative" | "google-vertex" | "minimax" | "minimax-coding-plan" | "mistral" | "moonshot" | "ollama" | "openai" | "opencode-go" | "opencode-zen" | "openrouter" | "responses" | "xai" | "xiaomi-mimo" | "zai";
|
|
1649
|
+
metadata: {
|
|
1650
|
+
displayName: string;
|
|
1651
|
+
description: string;
|
|
1652
|
+
logoSvg?: string | undefined;
|
|
1653
|
+
documentationUrl?: string | undefined;
|
|
1654
|
+
capabilities: {
|
|
1655
|
+
modelDiscovery: boolean;
|
|
1656
|
+
connectivityTest: boolean;
|
|
1657
|
+
customModels: boolean;
|
|
1658
|
+
};
|
|
1659
|
+
};
|
|
1660
|
+
settings: {
|
|
1661
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1662
|
+
};
|
|
1663
|
+
operations: {
|
|
1664
|
+
update: {
|
|
1665
|
+
available: boolean;
|
|
1666
|
+
code?: string | undefined;
|
|
1667
|
+
message?: string | undefined;
|
|
1668
|
+
remediation?: string | undefined;
|
|
1669
|
+
};
|
|
1670
|
+
remove: {
|
|
1671
|
+
available: boolean;
|
|
1672
|
+
code?: string | undefined;
|
|
1673
|
+
message?: string | undefined;
|
|
1674
|
+
remediation?: string | undefined;
|
|
1675
|
+
};
|
|
1676
|
+
};
|
|
1677
|
+
} | undefined;
|
|
1678
|
+
};
|
|
1679
|
+
outputFormat: "json";
|
|
1680
|
+
status: 200;
|
|
1681
|
+
input: {
|
|
1682
|
+
param: {
|
|
1683
|
+
type: "alibaba-qwen" | "amazon-bedrock" | "anthropic" | "anthropic-messages" | "azure-openai" | "chat-completions" | "chatgpt-codex-subscription" | "deepseek" | "glm-coding-plan" | "google-gemini" | "google-generative" | "google-vertex" | "minimax" | "minimax-coding-plan" | "mistral" | "moonshot" | "ollama" | "openai" | "opencode-go" | "opencode-zen" | "openrouter" | "responses" | "xai" | "xiaomi-mimo" | "zai";
|
|
1684
|
+
};
|
|
1685
|
+
} & {
|
|
1686
|
+
json: {
|
|
1687
|
+
settings: Record<string, unknown>;
|
|
1688
|
+
};
|
|
1689
|
+
};
|
|
1690
|
+
} | {
|
|
1637
1691
|
output: {
|
|
1638
1692
|
error: string;
|
|
1639
1693
|
code: string;
|
|
@@ -1667,12 +1721,13 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1667
1721
|
settings: Record<string, unknown>;
|
|
1668
1722
|
};
|
|
1669
1723
|
};
|
|
1670
|
-
}
|
|
1724
|
+
};
|
|
1725
|
+
};
|
|
1726
|
+
} & {
|
|
1727
|
+
"/v1/providers": {
|
|
1728
|
+
$get: {
|
|
1671
1729
|
output: {
|
|
1672
|
-
|
|
1673
|
-
code?: string | undefined;
|
|
1674
|
-
message?: string | undefined;
|
|
1675
|
-
provider?: {
|
|
1730
|
+
providers: {
|
|
1676
1731
|
id: string;
|
|
1677
1732
|
type: "alibaba-qwen" | "amazon-bedrock" | "anthropic" | "anthropic-messages" | "azure-openai" | "chat-completions" | "chatgpt-codex-subscription" | "deepseek" | "glm-coding-plan" | "google-gemini" | "google-generative" | "google-vertex" | "minimax" | "minimax-coding-plan" | "mistral" | "moonshot" | "ollama" | "openai" | "opencode-go" | "opencode-zen" | "openrouter" | "responses" | "xai" | "xiaomi-mimo" | "zai";
|
|
1678
1733
|
metadata: {
|
|
@@ -1703,26 +1758,21 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1703
1758
|
remediation?: string | undefined;
|
|
1704
1759
|
};
|
|
1705
1760
|
};
|
|
1706
|
-
}
|
|
1761
|
+
}[];
|
|
1707
1762
|
};
|
|
1708
1763
|
outputFormat: "json";
|
|
1709
1764
|
status: 200;
|
|
1710
|
-
input: {
|
|
1711
|
-
param: {
|
|
1712
|
-
type: "alibaba-qwen" | "amazon-bedrock" | "anthropic" | "anthropic-messages" | "azure-openai" | "chat-completions" | "chatgpt-codex-subscription" | "deepseek" | "glm-coding-plan" | "google-gemini" | "google-generative" | "google-vertex" | "minimax" | "minimax-coding-plan" | "mistral" | "moonshot" | "ollama" | "openai" | "opencode-go" | "opencode-zen" | "openrouter" | "responses" | "xai" | "xiaomi-mimo" | "zai";
|
|
1713
|
-
};
|
|
1714
|
-
} & {
|
|
1715
|
-
json: {
|
|
1716
|
-
settings: Record<string, unknown>;
|
|
1717
|
-
};
|
|
1718
|
-
};
|
|
1765
|
+
input: {};
|
|
1719
1766
|
};
|
|
1720
1767
|
};
|
|
1721
1768
|
} & {
|
|
1722
1769
|
"/v1/providers": {
|
|
1723
|
-
$
|
|
1770
|
+
$post: {
|
|
1724
1771
|
output: {
|
|
1725
|
-
|
|
1772
|
+
ok: boolean;
|
|
1773
|
+
code?: string | undefined;
|
|
1774
|
+
message?: string | undefined;
|
|
1775
|
+
provider?: {
|
|
1726
1776
|
id: string;
|
|
1727
1777
|
type: "alibaba-qwen" | "amazon-bedrock" | "anthropic" | "anthropic-messages" | "azure-openai" | "chat-completions" | "chatgpt-codex-subscription" | "deepseek" | "glm-coding-plan" | "google-gemini" | "google-generative" | "google-vertex" | "minimax" | "minimax-coding-plan" | "mistral" | "moonshot" | "ollama" | "openai" | "opencode-go" | "opencode-zen" | "openrouter" | "responses" | "xai" | "xiaomi-mimo" | "zai";
|
|
1728
1778
|
metadata: {
|
|
@@ -1753,16 +1803,18 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1753
1803
|
remediation?: string | undefined;
|
|
1754
1804
|
};
|
|
1755
1805
|
};
|
|
1756
|
-
}
|
|
1806
|
+
} | undefined;
|
|
1757
1807
|
};
|
|
1758
1808
|
outputFormat: "json";
|
|
1759
|
-
status:
|
|
1760
|
-
input: {
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1809
|
+
status: 201;
|
|
1810
|
+
input: {
|
|
1811
|
+
json: {
|
|
1812
|
+
id: string;
|
|
1813
|
+
type: "alibaba-qwen" | "amazon-bedrock" | "anthropic" | "anthropic-messages" | "azure-openai" | "chat-completions" | "chatgpt-codex-subscription" | "deepseek" | "glm-coding-plan" | "google-gemini" | "google-generative" | "google-vertex" | "minimax" | "minimax-coding-plan" | "mistral" | "moonshot" | "ollama" | "openai" | "opencode-go" | "opencode-zen" | "openrouter" | "responses" | "xai" | "xiaomi-mimo" | "zai";
|
|
1814
|
+
settings: Record<string, unknown>;
|
|
1815
|
+
};
|
|
1816
|
+
};
|
|
1817
|
+
} | {
|
|
1766
1818
|
output: {
|
|
1767
1819
|
error: string;
|
|
1768
1820
|
code: string;
|
|
@@ -1807,7 +1859,11 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1807
1859
|
settings: Record<string, unknown>;
|
|
1808
1860
|
};
|
|
1809
1861
|
};
|
|
1810
|
-
}
|
|
1862
|
+
};
|
|
1863
|
+
};
|
|
1864
|
+
} & {
|
|
1865
|
+
"/v1/providers/:id": {
|
|
1866
|
+
$patch: {
|
|
1811
1867
|
output: {
|
|
1812
1868
|
ok: boolean;
|
|
1813
1869
|
code?: string | undefined;
|
|
@@ -1846,19 +1902,17 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1846
1902
|
} | undefined;
|
|
1847
1903
|
};
|
|
1848
1904
|
outputFormat: "json";
|
|
1849
|
-
status:
|
|
1905
|
+
status: 200;
|
|
1850
1906
|
input: {
|
|
1851
|
-
|
|
1907
|
+
param: {
|
|
1852
1908
|
id: string;
|
|
1853
|
-
|
|
1854
|
-
|
|
1909
|
+
};
|
|
1910
|
+
} & {
|
|
1911
|
+
json: {
|
|
1912
|
+
settings?: Record<string, unknown> | undefined;
|
|
1855
1913
|
};
|
|
1856
1914
|
};
|
|
1857
|
-
}
|
|
1858
|
-
};
|
|
1859
|
-
} & {
|
|
1860
|
-
"/v1/providers/:id": {
|
|
1861
|
-
$patch: {
|
|
1915
|
+
} | {
|
|
1862
1916
|
output: {
|
|
1863
1917
|
error: string;
|
|
1864
1918
|
code: string;
|
|
@@ -1909,7 +1963,11 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1909
1963
|
settings?: Record<string, unknown> | undefined;
|
|
1910
1964
|
};
|
|
1911
1965
|
};
|
|
1912
|
-
}
|
|
1966
|
+
};
|
|
1967
|
+
};
|
|
1968
|
+
} & {
|
|
1969
|
+
"/v1/providers/:id": {
|
|
1970
|
+
$delete: {
|
|
1913
1971
|
output: {
|
|
1914
1972
|
ok: boolean;
|
|
1915
1973
|
code?: string | undefined;
|
|
@@ -1953,16 +2011,8 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1953
2011
|
param: {
|
|
1954
2012
|
id: string;
|
|
1955
2013
|
};
|
|
1956
|
-
} & {
|
|
1957
|
-
json: {
|
|
1958
|
-
settings?: Record<string, unknown> | undefined;
|
|
1959
|
-
};
|
|
1960
2014
|
};
|
|
1961
|
-
}
|
|
1962
|
-
};
|
|
1963
|
-
} & {
|
|
1964
|
-
"/v1/providers/:id": {
|
|
1965
|
-
$delete: {
|
|
2015
|
+
} | {
|
|
1966
2016
|
output: {
|
|
1967
2017
|
error: string;
|
|
1968
2018
|
code: string;
|
|
@@ -1990,70 +2040,25 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1990
2040
|
};
|
|
1991
2041
|
} | {
|
|
1992
2042
|
output: {
|
|
1993
|
-
error: string;
|
|
1994
|
-
code: string;
|
|
1995
|
-
remediation?: string | undefined;
|
|
1996
|
-
};
|
|
1997
|
-
outputFormat: "json";
|
|
1998
|
-
status: 409;
|
|
1999
|
-
input: {
|
|
2000
|
-
param: {
|
|
2001
|
-
id: string;
|
|
2002
|
-
};
|
|
2003
|
-
};
|
|
2004
|
-
} | {
|
|
2005
|
-
output: {
|
|
2006
|
-
error: string;
|
|
2007
|
-
code: string;
|
|
2008
|
-
remediation?: string | undefined;
|
|
2009
|
-
};
|
|
2010
|
-
outputFormat: "json";
|
|
2011
|
-
status: 500;
|
|
2012
|
-
input: {
|
|
2013
|
-
param: {
|
|
2014
|
-
id: string;
|
|
2015
|
-
};
|
|
2016
|
-
};
|
|
2017
|
-
} | {
|
|
2018
|
-
output: {
|
|
2019
|
-
ok: boolean;
|
|
2020
|
-
code?: string | undefined;
|
|
2021
|
-
message?: string | undefined;
|
|
2022
|
-
provider?: {
|
|
2023
|
-
id: string;
|
|
2024
|
-
type: "alibaba-qwen" | "amazon-bedrock" | "anthropic" | "anthropic-messages" | "azure-openai" | "chat-completions" | "chatgpt-codex-subscription" | "deepseek" | "glm-coding-plan" | "google-gemini" | "google-generative" | "google-vertex" | "minimax" | "minimax-coding-plan" | "mistral" | "moonshot" | "ollama" | "openai" | "opencode-go" | "opencode-zen" | "openrouter" | "responses" | "xai" | "xiaomi-mimo" | "zai";
|
|
2025
|
-
metadata: {
|
|
2026
|
-
displayName: string;
|
|
2027
|
-
description: string;
|
|
2028
|
-
logoSvg?: string | undefined;
|
|
2029
|
-
documentationUrl?: string | undefined;
|
|
2030
|
-
capabilities: {
|
|
2031
|
-
modelDiscovery: boolean;
|
|
2032
|
-
connectivityTest: boolean;
|
|
2033
|
-
customModels: boolean;
|
|
2034
|
-
};
|
|
2035
|
-
};
|
|
2036
|
-
settings: {
|
|
2037
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
2038
|
-
};
|
|
2039
|
-
operations: {
|
|
2040
|
-
update: {
|
|
2041
|
-
available: boolean;
|
|
2042
|
-
code?: string | undefined;
|
|
2043
|
-
message?: string | undefined;
|
|
2044
|
-
remediation?: string | undefined;
|
|
2045
|
-
};
|
|
2046
|
-
remove: {
|
|
2047
|
-
available: boolean;
|
|
2048
|
-
code?: string | undefined;
|
|
2049
|
-
message?: string | undefined;
|
|
2050
|
-
remediation?: string | undefined;
|
|
2051
|
-
};
|
|
2052
|
-
};
|
|
2053
|
-
} | undefined;
|
|
2043
|
+
error: string;
|
|
2044
|
+
code: string;
|
|
2045
|
+
remediation?: string | undefined;
|
|
2054
2046
|
};
|
|
2055
2047
|
outputFormat: "json";
|
|
2056
|
-
status:
|
|
2048
|
+
status: 409;
|
|
2049
|
+
input: {
|
|
2050
|
+
param: {
|
|
2051
|
+
id: string;
|
|
2052
|
+
};
|
|
2053
|
+
};
|
|
2054
|
+
} | {
|
|
2055
|
+
output: {
|
|
2056
|
+
error: string;
|
|
2057
|
+
code: string;
|
|
2058
|
+
remediation?: string | undefined;
|
|
2059
|
+
};
|
|
2060
|
+
outputFormat: "json";
|
|
2061
|
+
status: 500;
|
|
2057
2062
|
input: {
|
|
2058
2063
|
param: {
|
|
2059
2064
|
id: string;
|
|
@@ -2064,6 +2069,18 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
2064
2069
|
} & {
|
|
2065
2070
|
"/v1/providers/:id/test": {
|
|
2066
2071
|
$post: {
|
|
2072
|
+
output: {
|
|
2073
|
+
latencyMs: number;
|
|
2074
|
+
target?: string | undefined;
|
|
2075
|
+
};
|
|
2076
|
+
outputFormat: "json";
|
|
2077
|
+
status: 200;
|
|
2078
|
+
input: {
|
|
2079
|
+
param: {
|
|
2080
|
+
id: string;
|
|
2081
|
+
};
|
|
2082
|
+
};
|
|
2083
|
+
} | {
|
|
2067
2084
|
output: {
|
|
2068
2085
|
error: string;
|
|
2069
2086
|
code: string;
|
|
@@ -2102,10 +2119,47 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
2102
2119
|
id: string;
|
|
2103
2120
|
};
|
|
2104
2121
|
};
|
|
2105
|
-
}
|
|
2122
|
+
};
|
|
2123
|
+
};
|
|
2124
|
+
} & {
|
|
2125
|
+
"/v1/providers/:id/models": {
|
|
2126
|
+
$get: {
|
|
2106
2127
|
output: {
|
|
2107
|
-
|
|
2108
|
-
|
|
2128
|
+
models: {
|
|
2129
|
+
modelId: string;
|
|
2130
|
+
kind?: "embedding" | "image-generation" | "language" | "moderation" | "reranking" | "speech-to-speech" | "speech-to-text" | "text-to-speech" | "unknown" | undefined;
|
|
2131
|
+
displayName?: string | undefined;
|
|
2132
|
+
contextSize?: number | undefined;
|
|
2133
|
+
capabilities?: {
|
|
2134
|
+
input?: {
|
|
2135
|
+
image?: {
|
|
2136
|
+
mediaTypes?: string[] | undefined;
|
|
2137
|
+
maxBytes?: number | undefined;
|
|
2138
|
+
maxWidth?: number | undefined;
|
|
2139
|
+
maxHeight?: number | undefined;
|
|
2140
|
+
maxTotalPixels?: number | undefined;
|
|
2141
|
+
} | undefined;
|
|
2142
|
+
audio?: {
|
|
2143
|
+
mediaTypes?: string[] | undefined;
|
|
2144
|
+
maxBytes?: number | undefined;
|
|
2145
|
+
maxLengthSeconds?: number | undefined;
|
|
2146
|
+
} | undefined;
|
|
2147
|
+
} | undefined;
|
|
2148
|
+
voice?: {
|
|
2149
|
+
sts?: boolean | undefined;
|
|
2150
|
+
tts?: boolean | undefined;
|
|
2151
|
+
stt?: boolean | undefined;
|
|
2152
|
+
} | undefined;
|
|
2153
|
+
tools?: boolean | undefined;
|
|
2154
|
+
reasoning?: boolean | undefined;
|
|
2155
|
+
} | undefined;
|
|
2156
|
+
source: "discovered" | "manual" | "merged";
|
|
2157
|
+
provenance?: {
|
|
2158
|
+
source: "discovered" | "provider-exact" | "provider-family" | "shared-catalog" | "user";
|
|
2159
|
+
documentationUrl?: string | undefined;
|
|
2160
|
+
reviewedAt?: string | undefined;
|
|
2161
|
+
}[] | undefined;
|
|
2162
|
+
}[];
|
|
2109
2163
|
};
|
|
2110
2164
|
outputFormat: "json";
|
|
2111
2165
|
status: 200;
|
|
@@ -2113,12 +2167,12 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
2113
2167
|
param: {
|
|
2114
2168
|
id: string;
|
|
2115
2169
|
};
|
|
2170
|
+
} & {
|
|
2171
|
+
query: {
|
|
2172
|
+
refresh?: "false" | "true" | undefined;
|
|
2173
|
+
};
|
|
2116
2174
|
};
|
|
2117
|
-
}
|
|
2118
|
-
};
|
|
2119
|
-
} & {
|
|
2120
|
-
"/v1/providers/:id/models": {
|
|
2121
|
-
$get: {
|
|
2175
|
+
} | {
|
|
2122
2176
|
output: {
|
|
2123
2177
|
error: string;
|
|
2124
2178
|
code: string;
|
|
@@ -2169,7 +2223,11 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
2169
2223
|
refresh?: "false" | "true" | undefined;
|
|
2170
2224
|
};
|
|
2171
2225
|
};
|
|
2172
|
-
}
|
|
2226
|
+
};
|
|
2227
|
+
};
|
|
2228
|
+
} & {
|
|
2229
|
+
"/v1/providers/:id/models": {
|
|
2230
|
+
$post: {
|
|
2173
2231
|
output: {
|
|
2174
2232
|
models: {
|
|
2175
2233
|
modelId: string;
|
|
@@ -2214,15 +2272,37 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
2214
2272
|
id: string;
|
|
2215
2273
|
};
|
|
2216
2274
|
} & {
|
|
2217
|
-
|
|
2218
|
-
|
|
2275
|
+
json: {
|
|
2276
|
+
modelId: string;
|
|
2277
|
+
kind?: "embedding" | "image-generation" | "language" | "moderation" | "reranking" | "speech-to-speech" | "speech-to-text" | "text-to-speech" | "unknown" | undefined;
|
|
2278
|
+
displayName?: string | undefined;
|
|
2279
|
+
contextSize?: number | undefined;
|
|
2280
|
+
capabilities?: {
|
|
2281
|
+
input?: {
|
|
2282
|
+
image?: {
|
|
2283
|
+
mediaTypes?: string[] | undefined;
|
|
2284
|
+
maxBytes?: number | undefined;
|
|
2285
|
+
maxWidth?: number | undefined;
|
|
2286
|
+
maxHeight?: number | undefined;
|
|
2287
|
+
maxTotalPixels?: number | undefined;
|
|
2288
|
+
} | undefined;
|
|
2289
|
+
audio?: {
|
|
2290
|
+
mediaTypes?: string[] | undefined;
|
|
2291
|
+
maxBytes?: number | undefined;
|
|
2292
|
+
maxLengthSeconds?: number | undefined;
|
|
2293
|
+
} | undefined;
|
|
2294
|
+
} | undefined;
|
|
2295
|
+
voice?: {
|
|
2296
|
+
sts?: boolean | undefined;
|
|
2297
|
+
tts?: boolean | undefined;
|
|
2298
|
+
stt?: boolean | undefined;
|
|
2299
|
+
} | undefined;
|
|
2300
|
+
tools?: boolean | undefined;
|
|
2301
|
+
reasoning?: boolean | undefined;
|
|
2302
|
+
} | undefined;
|
|
2219
2303
|
};
|
|
2220
2304
|
};
|
|
2221
|
-
}
|
|
2222
|
-
};
|
|
2223
|
-
} & {
|
|
2224
|
-
"/v1/providers/:id/models": {
|
|
2225
|
-
$post: {
|
|
2305
|
+
} | {
|
|
2226
2306
|
output: {
|
|
2227
2307
|
error: string;
|
|
2228
2308
|
code: string;
|
|
@@ -2394,7 +2474,11 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
2394
2474
|
} | undefined;
|
|
2395
2475
|
};
|
|
2396
2476
|
};
|
|
2397
|
-
}
|
|
2477
|
+
};
|
|
2478
|
+
};
|
|
2479
|
+
} & {
|
|
2480
|
+
"/v1/providers/:id/models/:modelId": {
|
|
2481
|
+
$patch: {
|
|
2398
2482
|
output: {
|
|
2399
2483
|
models: {
|
|
2400
2484
|
modelId: string;
|
|
@@ -2437,10 +2521,10 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
2437
2521
|
input: {
|
|
2438
2522
|
param: {
|
|
2439
2523
|
id: string;
|
|
2524
|
+
modelId: string;
|
|
2440
2525
|
};
|
|
2441
2526
|
} & {
|
|
2442
2527
|
json: {
|
|
2443
|
-
modelId: string;
|
|
2444
2528
|
kind?: "embedding" | "image-generation" | "language" | "moderation" | "reranking" | "speech-to-speech" | "speech-to-text" | "text-to-speech" | "unknown" | undefined;
|
|
2445
2529
|
displayName?: string | undefined;
|
|
2446
2530
|
contextSize?: number | undefined;
|
|
@@ -2469,11 +2553,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
2469
2553
|
} | undefined;
|
|
2470
2554
|
};
|
|
2471
2555
|
};
|
|
2472
|
-
}
|
|
2473
|
-
};
|
|
2474
|
-
} & {
|
|
2475
|
-
"/v1/providers/:id/models/:modelId": {
|
|
2476
|
-
$patch: {
|
|
2556
|
+
} | {
|
|
2477
2557
|
output: {
|
|
2478
2558
|
error: string;
|
|
2479
2559
|
code: string;
|
|
@@ -2602,7 +2682,11 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
2602
2682
|
} | undefined;
|
|
2603
2683
|
};
|
|
2604
2684
|
};
|
|
2605
|
-
}
|
|
2685
|
+
};
|
|
2686
|
+
};
|
|
2687
|
+
} & {
|
|
2688
|
+
"/v1/providers/:id/models/:modelId": {
|
|
2689
|
+
$delete: {
|
|
2606
2690
|
output: {
|
|
2607
2691
|
models: {
|
|
2608
2692
|
modelId: string;
|
|
@@ -2647,41 +2731,8 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
2647
2731
|
id: string;
|
|
2648
2732
|
modelId: string;
|
|
2649
2733
|
};
|
|
2650
|
-
} & {
|
|
2651
|
-
json: {
|
|
2652
|
-
kind?: "embedding" | "image-generation" | "language" | "moderation" | "reranking" | "speech-to-speech" | "speech-to-text" | "text-to-speech" | "unknown" | undefined;
|
|
2653
|
-
displayName?: string | undefined;
|
|
2654
|
-
contextSize?: number | undefined;
|
|
2655
|
-
capabilities?: {
|
|
2656
|
-
input?: {
|
|
2657
|
-
image?: {
|
|
2658
|
-
mediaTypes?: string[] | undefined;
|
|
2659
|
-
maxBytes?: number | undefined;
|
|
2660
|
-
maxWidth?: number | undefined;
|
|
2661
|
-
maxHeight?: number | undefined;
|
|
2662
|
-
maxTotalPixels?: number | undefined;
|
|
2663
|
-
} | undefined;
|
|
2664
|
-
audio?: {
|
|
2665
|
-
mediaTypes?: string[] | undefined;
|
|
2666
|
-
maxBytes?: number | undefined;
|
|
2667
|
-
maxLengthSeconds?: number | undefined;
|
|
2668
|
-
} | undefined;
|
|
2669
|
-
} | undefined;
|
|
2670
|
-
voice?: {
|
|
2671
|
-
sts?: boolean | undefined;
|
|
2672
|
-
tts?: boolean | undefined;
|
|
2673
|
-
stt?: boolean | undefined;
|
|
2674
|
-
} | undefined;
|
|
2675
|
-
tools?: boolean | undefined;
|
|
2676
|
-
reasoning?: boolean | undefined;
|
|
2677
|
-
} | undefined;
|
|
2678
|
-
};
|
|
2679
2734
|
};
|
|
2680
|
-
}
|
|
2681
|
-
};
|
|
2682
|
-
} & {
|
|
2683
|
-
"/v1/providers/:id/models/:modelId": {
|
|
2684
|
-
$delete: {
|
|
2735
|
+
} | {
|
|
2685
2736
|
output: {
|
|
2686
2737
|
error: string;
|
|
2687
2738
|
code: string;
|
|
@@ -2737,57 +2788,30 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
2737
2788
|
modelId: string;
|
|
2738
2789
|
};
|
|
2739
2790
|
};
|
|
2740
|
-
}
|
|
2791
|
+
};
|
|
2792
|
+
};
|
|
2793
|
+
} & {
|
|
2794
|
+
"/v1/introspect/:path": {
|
|
2795
|
+
$get: {
|
|
2741
2796
|
output: {
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
mediaTypes?: string[] | undefined;
|
|
2751
|
-
maxBytes?: number | undefined;
|
|
2752
|
-
maxWidth?: number | undefined;
|
|
2753
|
-
maxHeight?: number | undefined;
|
|
2754
|
-
maxTotalPixels?: number | undefined;
|
|
2755
|
-
} | undefined;
|
|
2756
|
-
audio?: {
|
|
2757
|
-
mediaTypes?: string[] | undefined;
|
|
2758
|
-
maxBytes?: number | undefined;
|
|
2759
|
-
maxLengthSeconds?: number | undefined;
|
|
2760
|
-
} | undefined;
|
|
2761
|
-
} | undefined;
|
|
2762
|
-
voice?: {
|
|
2763
|
-
sts?: boolean | undefined;
|
|
2764
|
-
tts?: boolean | undefined;
|
|
2765
|
-
stt?: boolean | undefined;
|
|
2766
|
-
} | undefined;
|
|
2767
|
-
tools?: boolean | undefined;
|
|
2768
|
-
reasoning?: boolean | undefined;
|
|
2769
|
-
} | undefined;
|
|
2770
|
-
source: "discovered" | "manual" | "merged";
|
|
2771
|
-
provenance?: {
|
|
2772
|
-
source: "discovered" | "provider-exact" | "provider-family" | "shared-catalog" | "user";
|
|
2773
|
-
documentationUrl?: string | undefined;
|
|
2774
|
-
reviewedAt?: string | undefined;
|
|
2775
|
-
}[] | undefined;
|
|
2797
|
+
path: string[];
|
|
2798
|
+
state: {
|
|
2799
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
2800
|
+
} | null;
|
|
2801
|
+
children: {
|
|
2802
|
+
id: string;
|
|
2803
|
+
hasState: boolean;
|
|
2804
|
+
hasChildren: boolean;
|
|
2776
2805
|
}[];
|
|
2777
2806
|
};
|
|
2778
2807
|
outputFormat: "json";
|
|
2779
2808
|
status: 200;
|
|
2780
2809
|
input: {
|
|
2781
2810
|
param: {
|
|
2782
|
-
|
|
2783
|
-
modelId: string;
|
|
2811
|
+
path: string;
|
|
2784
2812
|
};
|
|
2785
2813
|
};
|
|
2786
|
-
}
|
|
2787
|
-
};
|
|
2788
|
-
} & {
|
|
2789
|
-
"/v1/introspect/:path": {
|
|
2790
|
-
$get: {
|
|
2814
|
+
} | {
|
|
2791
2815
|
output: {
|
|
2792
2816
|
error: string;
|
|
2793
2817
|
code: string;
|
|
@@ -2826,25 +2850,6 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
2826
2850
|
path: string;
|
|
2827
2851
|
};
|
|
2828
2852
|
};
|
|
2829
|
-
} | {
|
|
2830
|
-
output: {
|
|
2831
|
-
path: string[];
|
|
2832
|
-
state: {
|
|
2833
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
2834
|
-
} | null;
|
|
2835
|
-
children: {
|
|
2836
|
-
id: string;
|
|
2837
|
-
hasState: boolean;
|
|
2838
|
-
hasChildren: boolean;
|
|
2839
|
-
}[];
|
|
2840
|
-
};
|
|
2841
|
-
outputFormat: "json";
|
|
2842
|
-
status: 200;
|
|
2843
|
-
input: {
|
|
2844
|
-
param: {
|
|
2845
|
-
path: string;
|
|
2846
|
-
};
|
|
2847
|
-
};
|
|
2848
2853
|
};
|
|
2849
2854
|
};
|
|
2850
2855
|
}, "/", "/v1/introspect/:path">;
|