@klex/agent-admin-api 0.1.1 → 0.3.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.
- package/README.md +33 -1
- package/dist/index.d.ts +1022 -313
- package/package.json +8 -3
package/dist/index.d.ts
CHANGED
|
@@ -15,13 +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
|
-
};
|
|
21
|
-
outputFormat: "json";
|
|
22
|
-
status: 500;
|
|
23
|
-
input: {};
|
|
24
|
-
} | {
|
|
25
18
|
output: {
|
|
26
19
|
cloudEnabled: boolean;
|
|
27
20
|
enrolled: boolean;
|
|
@@ -33,16 +26,25 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
33
26
|
outputFormat: "json";
|
|
34
27
|
status: 200;
|
|
35
28
|
input: {};
|
|
29
|
+
} | {
|
|
30
|
+
output: {
|
|
31
|
+
error: string;
|
|
32
|
+
code: string;
|
|
33
|
+
};
|
|
34
|
+
outputFormat: "json";
|
|
35
|
+
status: 500;
|
|
36
|
+
input: {};
|
|
36
37
|
};
|
|
37
38
|
};
|
|
38
39
|
} & {
|
|
39
40
|
"/v1/cloud/enroll": {
|
|
40
41
|
$post: {
|
|
41
42
|
output: {
|
|
42
|
-
|
|
43
|
+
clientId: string;
|
|
44
|
+
enrolledAt: string;
|
|
43
45
|
};
|
|
44
46
|
outputFormat: "json";
|
|
45
|
-
status:
|
|
47
|
+
status: 200;
|
|
46
48
|
input: {
|
|
47
49
|
json: {
|
|
48
50
|
enrollmentCode: string;
|
|
@@ -51,9 +53,10 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
51
53
|
} | {
|
|
52
54
|
output: {
|
|
53
55
|
error: string;
|
|
56
|
+
code: string;
|
|
54
57
|
};
|
|
55
58
|
outputFormat: "json";
|
|
56
|
-
status:
|
|
59
|
+
status: 400;
|
|
57
60
|
input: {
|
|
58
61
|
json: {
|
|
59
62
|
enrollmentCode: string;
|
|
@@ -61,11 +64,11 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
61
64
|
};
|
|
62
65
|
} | {
|
|
63
66
|
output: {
|
|
64
|
-
|
|
65
|
-
|
|
67
|
+
error: string;
|
|
68
|
+
code: string;
|
|
66
69
|
};
|
|
67
70
|
outputFormat: "json";
|
|
68
|
-
status:
|
|
71
|
+
status: 500;
|
|
69
72
|
input: {
|
|
70
73
|
json: {
|
|
71
74
|
enrollmentCode: string;
|
|
@@ -74,15 +77,58 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
74
77
|
};
|
|
75
78
|
};
|
|
76
79
|
} & {
|
|
77
|
-
"/v1/settings/
|
|
80
|
+
"/v1/settings/agent": {
|
|
78
81
|
$get: {
|
|
79
82
|
output: {
|
|
80
|
-
|
|
83
|
+
officialName: string;
|
|
81
84
|
};
|
|
82
85
|
outputFormat: "json";
|
|
83
|
-
status:
|
|
86
|
+
status: 200;
|
|
84
87
|
input: {};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
} & {
|
|
91
|
+
"/v1/settings/agent": {
|
|
92
|
+
$patch: {
|
|
93
|
+
output: {
|
|
94
|
+
officialName: string;
|
|
95
|
+
};
|
|
96
|
+
outputFormat: "json";
|
|
97
|
+
status: 200;
|
|
98
|
+
input: {
|
|
99
|
+
json: {
|
|
100
|
+
officialName: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
} | {
|
|
104
|
+
output: {
|
|
105
|
+
error: string;
|
|
106
|
+
code: string;
|
|
107
|
+
};
|
|
108
|
+
outputFormat: "json";
|
|
109
|
+
status: 400;
|
|
110
|
+
input: {
|
|
111
|
+
json: {
|
|
112
|
+
officialName: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
85
115
|
} | {
|
|
116
|
+
output: {
|
|
117
|
+
error: string;
|
|
118
|
+
code: string;
|
|
119
|
+
};
|
|
120
|
+
outputFormat: "json";
|
|
121
|
+
status: 500;
|
|
122
|
+
input: {
|
|
123
|
+
json: {
|
|
124
|
+
officialName: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
} & {
|
|
130
|
+
"/v1/settings/model-selection": {
|
|
131
|
+
$get: {
|
|
86
132
|
output: {
|
|
87
133
|
chat: ({
|
|
88
134
|
model: `${string}:${string}`;
|
|
@@ -123,51 +169,19 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
123
169
|
outputFormat: "json";
|
|
124
170
|
status: 200;
|
|
125
171
|
input: {};
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
} & {
|
|
129
|
-
"/v1/settings/model-selection": {
|
|
130
|
-
$patch: {
|
|
131
|
-
output: {
|
|
132
|
-
error: string;
|
|
133
|
-
};
|
|
134
|
-
outputFormat: "json";
|
|
135
|
-
status: 400;
|
|
136
|
-
input: {
|
|
137
|
-
json: {
|
|
138
|
-
chat?: unknown[] | undefined;
|
|
139
|
-
compaction?: unknown[] | undefined;
|
|
140
|
-
memory?: unknown[] | undefined;
|
|
141
|
-
imageVision?: unknown[] | undefined;
|
|
142
|
-
audioListening?: unknown[] | undefined;
|
|
143
|
-
voice?: {
|
|
144
|
-
sts: unknown[];
|
|
145
|
-
tts: unknown[];
|
|
146
|
-
stt: unknown[];
|
|
147
|
-
} | undefined;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
172
|
} | {
|
|
151
173
|
output: {
|
|
152
174
|
error: string;
|
|
175
|
+
code: string;
|
|
153
176
|
};
|
|
154
177
|
outputFormat: "json";
|
|
155
178
|
status: 500;
|
|
156
|
-
input: {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
audioListening?: unknown[] | undefined;
|
|
163
|
-
voice?: {
|
|
164
|
-
sts: unknown[];
|
|
165
|
-
tts: unknown[];
|
|
166
|
-
stt: unknown[];
|
|
167
|
-
} | undefined;
|
|
168
|
-
};
|
|
169
|
-
};
|
|
170
|
-
} | {
|
|
179
|
+
input: {};
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
} & {
|
|
183
|
+
"/v1/settings/model-selection": {
|
|
184
|
+
$patch: {
|
|
171
185
|
output: {
|
|
172
186
|
chat: ({
|
|
173
187
|
model: `${string}:${string}`;
|
|
@@ -225,23 +239,66 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
225
239
|
} | undefined;
|
|
226
240
|
};
|
|
227
241
|
};
|
|
242
|
+
} | {
|
|
243
|
+
output: {
|
|
244
|
+
error: string;
|
|
245
|
+
code: string;
|
|
246
|
+
};
|
|
247
|
+
outputFormat: "json";
|
|
248
|
+
status: 400;
|
|
249
|
+
input: {
|
|
250
|
+
json: {
|
|
251
|
+
chat?: unknown[] | undefined;
|
|
252
|
+
compaction?: unknown[] | undefined;
|
|
253
|
+
memory?: unknown[] | undefined;
|
|
254
|
+
imageVision?: unknown[] | undefined;
|
|
255
|
+
audioListening?: unknown[] | undefined;
|
|
256
|
+
voice?: {
|
|
257
|
+
sts: unknown[];
|
|
258
|
+
tts: unknown[];
|
|
259
|
+
stt: unknown[];
|
|
260
|
+
} | undefined;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
} | {
|
|
264
|
+
output: {
|
|
265
|
+
error: string;
|
|
266
|
+
code: string;
|
|
267
|
+
};
|
|
268
|
+
outputFormat: "json";
|
|
269
|
+
status: 500;
|
|
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;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
228
284
|
};
|
|
229
285
|
};
|
|
230
286
|
} & {
|
|
231
287
|
"/v1/settings/telemetry": {
|
|
232
288
|
$get: {
|
|
233
289
|
output: {
|
|
234
|
-
|
|
290
|
+
level: "full" | "minimum" | "off" | "reduced";
|
|
235
291
|
};
|
|
236
292
|
outputFormat: "json";
|
|
237
|
-
status:
|
|
293
|
+
status: 200;
|
|
238
294
|
input: {};
|
|
239
295
|
} | {
|
|
240
296
|
output: {
|
|
241
|
-
|
|
297
|
+
error: string;
|
|
298
|
+
code: string;
|
|
242
299
|
};
|
|
243
300
|
outputFormat: "json";
|
|
244
|
-
status:
|
|
301
|
+
status: 500;
|
|
245
302
|
input: {};
|
|
246
303
|
};
|
|
247
304
|
};
|
|
@@ -249,10 +306,10 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
249
306
|
"/v1/settings/telemetry": {
|
|
250
307
|
$patch: {
|
|
251
308
|
output: {
|
|
252
|
-
|
|
309
|
+
level: "full" | "minimum" | "off" | "reduced";
|
|
253
310
|
};
|
|
254
311
|
outputFormat: "json";
|
|
255
|
-
status:
|
|
312
|
+
status: 200;
|
|
256
313
|
input: {
|
|
257
314
|
json: {
|
|
258
315
|
level?: "full" | "minimum" | "off" | "reduced" | undefined;
|
|
@@ -261,9 +318,10 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
261
318
|
} | {
|
|
262
319
|
output: {
|
|
263
320
|
error: string;
|
|
321
|
+
code: string;
|
|
264
322
|
};
|
|
265
323
|
outputFormat: "json";
|
|
266
|
-
status:
|
|
324
|
+
status: 400;
|
|
267
325
|
input: {
|
|
268
326
|
json: {
|
|
269
327
|
level?: "full" | "minimum" | "off" | "reduced" | undefined;
|
|
@@ -271,10 +329,11 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
271
329
|
};
|
|
272
330
|
} | {
|
|
273
331
|
output: {
|
|
274
|
-
|
|
332
|
+
error: string;
|
|
333
|
+
code: string;
|
|
275
334
|
};
|
|
276
335
|
outputFormat: "json";
|
|
277
|
-
status:
|
|
336
|
+
status: 500;
|
|
278
337
|
input: {
|
|
279
338
|
json: {
|
|
280
339
|
level?: "full" | "minimum" | "off" | "reduced" | undefined;
|
|
@@ -285,13 +344,6 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
285
344
|
} & {
|
|
286
345
|
"/v1/introspect": {
|
|
287
346
|
$get: {
|
|
288
|
-
output: {
|
|
289
|
-
error: string;
|
|
290
|
-
};
|
|
291
|
-
outputFormat: "json";
|
|
292
|
-
status: 500;
|
|
293
|
-
input: {};
|
|
294
|
-
} | {
|
|
295
347
|
output: {
|
|
296
348
|
path: string[];
|
|
297
349
|
state: {
|
|
@@ -306,6 +358,14 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
306
358
|
outputFormat: "json";
|
|
307
359
|
status: 200;
|
|
308
360
|
input: {};
|
|
361
|
+
} | {
|
|
362
|
+
output: {
|
|
363
|
+
error: string;
|
|
364
|
+
code: string;
|
|
365
|
+
};
|
|
366
|
+
outputFormat: "json";
|
|
367
|
+
status: 500;
|
|
368
|
+
input: {};
|
|
309
369
|
};
|
|
310
370
|
};
|
|
311
371
|
} & {
|
|
@@ -317,7 +377,20 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
317
377
|
status: "authorization_required" | "authorizing" | "connected" | "connecting" | "disconnected" | "error";
|
|
318
378
|
toolCount: number;
|
|
319
379
|
supportsPushNotifications: boolean;
|
|
380
|
+
supportsRealtimeMedia: boolean;
|
|
320
381
|
transport: "http" | "stdio";
|
|
382
|
+
usesInteractiveOAuth: boolean;
|
|
383
|
+
authorization: {
|
|
384
|
+
id: string;
|
|
385
|
+
createdAt: string;
|
|
386
|
+
expiresAt: string;
|
|
387
|
+
} | null;
|
|
388
|
+
lastError: {
|
|
389
|
+
name: string;
|
|
390
|
+
message: string;
|
|
391
|
+
at: string;
|
|
392
|
+
} | null;
|
|
393
|
+
nextRetryAt: string | null;
|
|
321
394
|
}[];
|
|
322
395
|
};
|
|
323
396
|
outputFormat: "json";
|
|
@@ -326,12 +399,71 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
326
399
|
} | {
|
|
327
400
|
output: {
|
|
328
401
|
error: string;
|
|
402
|
+
code: string;
|
|
329
403
|
};
|
|
330
404
|
outputFormat: "json";
|
|
331
405
|
status: 500;
|
|
332
406
|
input: {};
|
|
333
407
|
};
|
|
334
408
|
};
|
|
409
|
+
} & {
|
|
410
|
+
"/v1/mcp-servers/:name": {
|
|
411
|
+
$get: {
|
|
412
|
+
output: {
|
|
413
|
+
server: {
|
|
414
|
+
name: string;
|
|
415
|
+
status: "authorization_required" | "authorizing" | "connected" | "connecting" | "disconnected" | "error";
|
|
416
|
+
toolCount: number;
|
|
417
|
+
supportsPushNotifications: boolean;
|
|
418
|
+
supportsRealtimeMedia: boolean;
|
|
419
|
+
transport: "http" | "stdio";
|
|
420
|
+
usesInteractiveOAuth: boolean;
|
|
421
|
+
authorization: {
|
|
422
|
+
id: string;
|
|
423
|
+
createdAt: string;
|
|
424
|
+
expiresAt: string;
|
|
425
|
+
} | null;
|
|
426
|
+
lastError: {
|
|
427
|
+
name: string;
|
|
428
|
+
message: string;
|
|
429
|
+
at: string;
|
|
430
|
+
} | null;
|
|
431
|
+
nextRetryAt: string | null;
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
outputFormat: "json";
|
|
435
|
+
status: 200;
|
|
436
|
+
input: {
|
|
437
|
+
param: {
|
|
438
|
+
name: string;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
} | {
|
|
442
|
+
output: {
|
|
443
|
+
error: string;
|
|
444
|
+
code: string;
|
|
445
|
+
};
|
|
446
|
+
outputFormat: "json";
|
|
447
|
+
status: 404;
|
|
448
|
+
input: {
|
|
449
|
+
param: {
|
|
450
|
+
name: string;
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
} | {
|
|
454
|
+
output: {
|
|
455
|
+
error: string;
|
|
456
|
+
code: string;
|
|
457
|
+
};
|
|
458
|
+
outputFormat: "json";
|
|
459
|
+
status: 500;
|
|
460
|
+
input: {
|
|
461
|
+
param: {
|
|
462
|
+
name: string;
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
};
|
|
335
467
|
} & {
|
|
336
468
|
"/v1/mcp-servers": {
|
|
337
469
|
$post: {
|
|
@@ -341,7 +473,20 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
341
473
|
status: "authorization_required" | "authorizing" | "connected" | "connecting" | "disconnected" | "error";
|
|
342
474
|
toolCount: number;
|
|
343
475
|
supportsPushNotifications: boolean;
|
|
476
|
+
supportsRealtimeMedia: boolean;
|
|
344
477
|
transport: "http" | "stdio";
|
|
478
|
+
usesInteractiveOAuth: boolean;
|
|
479
|
+
authorization: {
|
|
480
|
+
id: string;
|
|
481
|
+
createdAt: string;
|
|
482
|
+
expiresAt: string;
|
|
483
|
+
} | null;
|
|
484
|
+
lastError: {
|
|
485
|
+
name: string;
|
|
486
|
+
message: string;
|
|
487
|
+
at: string;
|
|
488
|
+
} | null;
|
|
489
|
+
nextRetryAt: string | null;
|
|
345
490
|
}[];
|
|
346
491
|
};
|
|
347
492
|
outputFormat: "json";
|
|
@@ -369,6 +514,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
369
514
|
} | {
|
|
370
515
|
output: {
|
|
371
516
|
error: string;
|
|
517
|
+
code: string;
|
|
372
518
|
};
|
|
373
519
|
outputFormat: "json";
|
|
374
520
|
status: 400;
|
|
@@ -395,6 +541,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
395
541
|
} | {
|
|
396
542
|
output: {
|
|
397
543
|
error: string;
|
|
544
|
+
code: string;
|
|
398
545
|
};
|
|
399
546
|
outputFormat: "json";
|
|
400
547
|
status: 409;
|
|
@@ -421,6 +568,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
421
568
|
} | {
|
|
422
569
|
output: {
|
|
423
570
|
error: string;
|
|
571
|
+
code: string;
|
|
424
572
|
};
|
|
425
573
|
outputFormat: "json";
|
|
426
574
|
status: 500;
|
|
@@ -455,7 +603,20 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
455
603
|
status: "authorization_required" | "authorizing" | "connected" | "connecting" | "disconnected" | "error";
|
|
456
604
|
toolCount: number;
|
|
457
605
|
supportsPushNotifications: boolean;
|
|
606
|
+
supportsRealtimeMedia: boolean;
|
|
458
607
|
transport: "http" | "stdio";
|
|
608
|
+
usesInteractiveOAuth: boolean;
|
|
609
|
+
authorization: {
|
|
610
|
+
id: string;
|
|
611
|
+
createdAt: string;
|
|
612
|
+
expiresAt: string;
|
|
613
|
+
} | null;
|
|
614
|
+
lastError: {
|
|
615
|
+
name: string;
|
|
616
|
+
message: string;
|
|
617
|
+
at: string;
|
|
618
|
+
} | null;
|
|
619
|
+
nextRetryAt: string | null;
|
|
459
620
|
}[];
|
|
460
621
|
};
|
|
461
622
|
outputFormat: "json";
|
|
@@ -485,6 +646,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
485
646
|
} | {
|
|
486
647
|
output: {
|
|
487
648
|
error: string;
|
|
649
|
+
code: string;
|
|
488
650
|
};
|
|
489
651
|
outputFormat: "json";
|
|
490
652
|
status: 400;
|
|
@@ -513,6 +675,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
513
675
|
} | {
|
|
514
676
|
output: {
|
|
515
677
|
error: string;
|
|
678
|
+
code: string;
|
|
516
679
|
};
|
|
517
680
|
outputFormat: "json";
|
|
518
681
|
status: 404;
|
|
@@ -541,6 +704,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
541
704
|
} | {
|
|
542
705
|
output: {
|
|
543
706
|
error: string;
|
|
707
|
+
code: string;
|
|
544
708
|
};
|
|
545
709
|
outputFormat: "json";
|
|
546
710
|
status: 500;
|
|
@@ -577,7 +741,20 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
577
741
|
status: "authorization_required" | "authorizing" | "connected" | "connecting" | "disconnected" | "error";
|
|
578
742
|
toolCount: number;
|
|
579
743
|
supportsPushNotifications: boolean;
|
|
744
|
+
supportsRealtimeMedia: boolean;
|
|
580
745
|
transport: "http" | "stdio";
|
|
746
|
+
usesInteractiveOAuth: boolean;
|
|
747
|
+
authorization: {
|
|
748
|
+
id: string;
|
|
749
|
+
createdAt: string;
|
|
750
|
+
expiresAt: string;
|
|
751
|
+
} | null;
|
|
752
|
+
lastError: {
|
|
753
|
+
name: string;
|
|
754
|
+
message: string;
|
|
755
|
+
at: string;
|
|
756
|
+
} | null;
|
|
757
|
+
nextRetryAt: string | null;
|
|
581
758
|
}[];
|
|
582
759
|
};
|
|
583
760
|
outputFormat: "json";
|
|
@@ -590,6 +767,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
590
767
|
} | {
|
|
591
768
|
output: {
|
|
592
769
|
error: string;
|
|
770
|
+
code: string;
|
|
593
771
|
};
|
|
594
772
|
outputFormat: "json";
|
|
595
773
|
status: 404;
|
|
@@ -601,6 +779,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
601
779
|
} | {
|
|
602
780
|
output: {
|
|
603
781
|
error: string;
|
|
782
|
+
code: string;
|
|
604
783
|
};
|
|
605
784
|
outputFormat: "json";
|
|
606
785
|
status: 500;
|
|
@@ -614,17 +793,6 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
614
793
|
} & {
|
|
615
794
|
"/v1/mcp-servers/:name/tool-calls": {
|
|
616
795
|
$get: {
|
|
617
|
-
output: {
|
|
618
|
-
error: string;
|
|
619
|
-
};
|
|
620
|
-
outputFormat: "json";
|
|
621
|
-
status: 500;
|
|
622
|
-
input: {
|
|
623
|
-
param: {
|
|
624
|
-
name: string;
|
|
625
|
-
};
|
|
626
|
-
};
|
|
627
|
-
} | {
|
|
628
796
|
output: {
|
|
629
797
|
toolCalls: {
|
|
630
798
|
id: string;
|
|
@@ -647,41 +815,509 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
647
815
|
name: string;
|
|
648
816
|
};
|
|
649
817
|
};
|
|
650
|
-
}
|
|
651
|
-
};
|
|
652
|
-
} & {
|
|
653
|
-
"/v1/usage": {
|
|
654
|
-
$get: {
|
|
818
|
+
} | {
|
|
655
819
|
output: {
|
|
656
820
|
error: string;
|
|
821
|
+
code: string;
|
|
657
822
|
};
|
|
658
823
|
outputFormat: "json";
|
|
659
|
-
status:
|
|
824
|
+
status: 500;
|
|
660
825
|
input: {
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
from?: string | undefined;
|
|
664
|
-
to?: string | undefined;
|
|
665
|
-
granularity?: "daily" | "event" | "hourly" | "weekly" | undefined;
|
|
666
|
-
limit?: unknown;
|
|
826
|
+
param: {
|
|
827
|
+
name: string;
|
|
667
828
|
};
|
|
668
829
|
};
|
|
669
|
-
}
|
|
830
|
+
};
|
|
831
|
+
};
|
|
832
|
+
} & {
|
|
833
|
+
"/v1/mcp-servers/:name/authorization": {
|
|
834
|
+
$put: {
|
|
835
|
+
output: {
|
|
836
|
+
id: string;
|
|
837
|
+
serverName: string;
|
|
838
|
+
serverUrl: string;
|
|
839
|
+
authorizationUrl: string;
|
|
840
|
+
state: string;
|
|
841
|
+
expiresAt: string;
|
|
842
|
+
};
|
|
843
|
+
outputFormat: "json";
|
|
844
|
+
status: 200;
|
|
845
|
+
input: {
|
|
846
|
+
param: {
|
|
847
|
+
name: string;
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
} | {
|
|
670
851
|
output: {
|
|
671
852
|
error: string;
|
|
853
|
+
code: string;
|
|
854
|
+
};
|
|
855
|
+
outputFormat: "json";
|
|
856
|
+
status: 404;
|
|
857
|
+
input: {
|
|
858
|
+
param: {
|
|
859
|
+
name: string;
|
|
860
|
+
};
|
|
861
|
+
};
|
|
862
|
+
} | {
|
|
863
|
+
output: {
|
|
864
|
+
error: string;
|
|
865
|
+
code: string;
|
|
866
|
+
};
|
|
867
|
+
outputFormat: "json";
|
|
868
|
+
status: 409;
|
|
869
|
+
input: {
|
|
870
|
+
param: {
|
|
871
|
+
name: string;
|
|
872
|
+
};
|
|
873
|
+
};
|
|
874
|
+
} | {
|
|
875
|
+
output: {
|
|
876
|
+
error: string;
|
|
877
|
+
code: string;
|
|
878
|
+
};
|
|
879
|
+
outputFormat: "json";
|
|
880
|
+
status: 503;
|
|
881
|
+
input: {
|
|
882
|
+
param: {
|
|
883
|
+
name: string;
|
|
884
|
+
};
|
|
885
|
+
};
|
|
886
|
+
} | {
|
|
887
|
+
output: {
|
|
888
|
+
error: string;
|
|
889
|
+
code: string;
|
|
890
|
+
};
|
|
891
|
+
outputFormat: "json";
|
|
892
|
+
status: 504;
|
|
893
|
+
input: {
|
|
894
|
+
param: {
|
|
895
|
+
name: string;
|
|
896
|
+
};
|
|
897
|
+
};
|
|
898
|
+
};
|
|
899
|
+
};
|
|
900
|
+
} & {
|
|
901
|
+
"/v1/mcp-servers/:name/authorization": {
|
|
902
|
+
$delete: {
|
|
903
|
+
output: {};
|
|
904
|
+
outputFormat: string;
|
|
905
|
+
status: 204;
|
|
906
|
+
input: {
|
|
907
|
+
param: {
|
|
908
|
+
name: string;
|
|
909
|
+
};
|
|
910
|
+
};
|
|
911
|
+
} | {
|
|
912
|
+
output: {
|
|
913
|
+
error: string;
|
|
914
|
+
code: string;
|
|
915
|
+
};
|
|
916
|
+
outputFormat: "json";
|
|
917
|
+
status: 404;
|
|
918
|
+
input: {
|
|
919
|
+
param: {
|
|
920
|
+
name: string;
|
|
921
|
+
};
|
|
922
|
+
};
|
|
923
|
+
};
|
|
924
|
+
};
|
|
925
|
+
} & {
|
|
926
|
+
"/v1/mcp-oauth/callback": {
|
|
927
|
+
$post: {
|
|
928
|
+
output: {
|
|
929
|
+
accepted: true;
|
|
930
|
+
};
|
|
931
|
+
outputFormat: "json";
|
|
932
|
+
status: 202;
|
|
933
|
+
input: {
|
|
934
|
+
json: {
|
|
935
|
+
state: string;
|
|
936
|
+
code?: string | undefined;
|
|
937
|
+
error?: string | undefined;
|
|
938
|
+
error_description?: string | undefined;
|
|
939
|
+
};
|
|
940
|
+
};
|
|
941
|
+
} | {
|
|
942
|
+
output: {
|
|
943
|
+
error: string;
|
|
944
|
+
code: string;
|
|
945
|
+
};
|
|
946
|
+
outputFormat: "json";
|
|
947
|
+
status: 400;
|
|
948
|
+
input: {
|
|
949
|
+
json: {
|
|
950
|
+
state: string;
|
|
951
|
+
code?: string | undefined;
|
|
952
|
+
error?: string | undefined;
|
|
953
|
+
error_description?: string | undefined;
|
|
954
|
+
};
|
|
955
|
+
};
|
|
956
|
+
} | {
|
|
957
|
+
output: {
|
|
958
|
+
error: string;
|
|
959
|
+
code: string;
|
|
960
|
+
};
|
|
961
|
+
outputFormat: "json";
|
|
962
|
+
status: 404;
|
|
963
|
+
input: {
|
|
964
|
+
json: {
|
|
965
|
+
state: string;
|
|
966
|
+
code?: string | undefined;
|
|
967
|
+
error?: string | undefined;
|
|
968
|
+
error_description?: string | undefined;
|
|
969
|
+
};
|
|
970
|
+
};
|
|
971
|
+
};
|
|
972
|
+
};
|
|
973
|
+
} & {
|
|
974
|
+
"/v1/god-messages": {
|
|
975
|
+
$post: {
|
|
976
|
+
output: {
|
|
977
|
+
sessionId: string;
|
|
978
|
+
};
|
|
979
|
+
outputFormat: "json";
|
|
980
|
+
status: 202;
|
|
981
|
+
input: {
|
|
982
|
+
json: {
|
|
983
|
+
content: ({
|
|
984
|
+
type: "text";
|
|
985
|
+
text: string;
|
|
986
|
+
} | {
|
|
987
|
+
type: "image";
|
|
988
|
+
mimeType: string;
|
|
989
|
+
data: string;
|
|
990
|
+
} | {
|
|
991
|
+
type: "audio";
|
|
992
|
+
mimeType: string;
|
|
993
|
+
data: string;
|
|
994
|
+
} | {
|
|
995
|
+
type: "resource_link";
|
|
996
|
+
uri: string;
|
|
997
|
+
name: string;
|
|
998
|
+
title?: string | undefined;
|
|
999
|
+
description?: string | undefined;
|
|
1000
|
+
mimeType?: string | undefined;
|
|
1001
|
+
size?: number | undefined;
|
|
1002
|
+
} | {
|
|
1003
|
+
type: "resource";
|
|
1004
|
+
resource: {
|
|
1005
|
+
uri: string;
|
|
1006
|
+
mimeType?: string | undefined;
|
|
1007
|
+
text?: string | undefined;
|
|
1008
|
+
blob?: string | undefined;
|
|
1009
|
+
};
|
|
1010
|
+
})[];
|
|
1011
|
+
};
|
|
1012
|
+
};
|
|
1013
|
+
} | {
|
|
1014
|
+
output: {
|
|
1015
|
+
error: string;
|
|
1016
|
+
code: string;
|
|
1017
|
+
};
|
|
1018
|
+
outputFormat: "json";
|
|
1019
|
+
status: 400;
|
|
1020
|
+
input: {
|
|
1021
|
+
json: {
|
|
1022
|
+
content: ({
|
|
1023
|
+
type: "text";
|
|
1024
|
+
text: string;
|
|
1025
|
+
} | {
|
|
1026
|
+
type: "image";
|
|
1027
|
+
mimeType: string;
|
|
1028
|
+
data: string;
|
|
1029
|
+
} | {
|
|
1030
|
+
type: "audio";
|
|
1031
|
+
mimeType: string;
|
|
1032
|
+
data: string;
|
|
1033
|
+
} | {
|
|
1034
|
+
type: "resource_link";
|
|
1035
|
+
uri: string;
|
|
1036
|
+
name: string;
|
|
1037
|
+
title?: string | undefined;
|
|
1038
|
+
description?: string | undefined;
|
|
1039
|
+
mimeType?: string | undefined;
|
|
1040
|
+
size?: number | undefined;
|
|
1041
|
+
} | {
|
|
1042
|
+
type: "resource";
|
|
1043
|
+
resource: {
|
|
1044
|
+
uri: string;
|
|
1045
|
+
mimeType?: string | undefined;
|
|
1046
|
+
text?: string | undefined;
|
|
1047
|
+
blob?: string | undefined;
|
|
1048
|
+
};
|
|
1049
|
+
})[];
|
|
1050
|
+
};
|
|
1051
|
+
};
|
|
1052
|
+
} | {
|
|
1053
|
+
output: {
|
|
1054
|
+
error: string;
|
|
1055
|
+
code: string;
|
|
1056
|
+
};
|
|
1057
|
+
outputFormat: "json";
|
|
1058
|
+
status: 409;
|
|
1059
|
+
input: {
|
|
1060
|
+
json: {
|
|
1061
|
+
content: ({
|
|
1062
|
+
type: "text";
|
|
1063
|
+
text: string;
|
|
1064
|
+
} | {
|
|
1065
|
+
type: "image";
|
|
1066
|
+
mimeType: string;
|
|
1067
|
+
data: string;
|
|
1068
|
+
} | {
|
|
1069
|
+
type: "audio";
|
|
1070
|
+
mimeType: string;
|
|
1071
|
+
data: string;
|
|
1072
|
+
} | {
|
|
1073
|
+
type: "resource_link";
|
|
1074
|
+
uri: string;
|
|
1075
|
+
name: string;
|
|
1076
|
+
title?: string | undefined;
|
|
1077
|
+
description?: string | undefined;
|
|
1078
|
+
mimeType?: string | undefined;
|
|
1079
|
+
size?: number | undefined;
|
|
1080
|
+
} | {
|
|
1081
|
+
type: "resource";
|
|
1082
|
+
resource: {
|
|
1083
|
+
uri: string;
|
|
1084
|
+
mimeType?: string | undefined;
|
|
1085
|
+
text?: string | undefined;
|
|
1086
|
+
blob?: string | undefined;
|
|
1087
|
+
};
|
|
1088
|
+
})[];
|
|
1089
|
+
};
|
|
1090
|
+
};
|
|
1091
|
+
} | {
|
|
1092
|
+
output: {
|
|
1093
|
+
error: string;
|
|
1094
|
+
code: string;
|
|
1095
|
+
};
|
|
1096
|
+
outputFormat: "json";
|
|
1097
|
+
status: 500;
|
|
1098
|
+
input: {
|
|
1099
|
+
json: {
|
|
1100
|
+
content: ({
|
|
1101
|
+
type: "text";
|
|
1102
|
+
text: string;
|
|
1103
|
+
} | {
|
|
1104
|
+
type: "image";
|
|
1105
|
+
mimeType: string;
|
|
1106
|
+
data: string;
|
|
1107
|
+
} | {
|
|
1108
|
+
type: "audio";
|
|
1109
|
+
mimeType: string;
|
|
1110
|
+
data: string;
|
|
1111
|
+
} | {
|
|
1112
|
+
type: "resource_link";
|
|
1113
|
+
uri: string;
|
|
1114
|
+
name: string;
|
|
1115
|
+
title?: string | undefined;
|
|
1116
|
+
description?: string | undefined;
|
|
1117
|
+
mimeType?: string | undefined;
|
|
1118
|
+
size?: number | undefined;
|
|
1119
|
+
} | {
|
|
1120
|
+
type: "resource";
|
|
1121
|
+
resource: {
|
|
1122
|
+
uri: string;
|
|
1123
|
+
mimeType?: string | undefined;
|
|
1124
|
+
text?: string | undefined;
|
|
1125
|
+
blob?: string | undefined;
|
|
1126
|
+
};
|
|
1127
|
+
})[];
|
|
1128
|
+
};
|
|
1129
|
+
};
|
|
1130
|
+
} | {
|
|
1131
|
+
output: {
|
|
1132
|
+
error: string;
|
|
1133
|
+
code: string;
|
|
1134
|
+
};
|
|
1135
|
+
outputFormat: "json";
|
|
1136
|
+
status: 503;
|
|
1137
|
+
input: {
|
|
1138
|
+
json: {
|
|
1139
|
+
content: ({
|
|
1140
|
+
type: "text";
|
|
1141
|
+
text: string;
|
|
1142
|
+
} | {
|
|
1143
|
+
type: "image";
|
|
1144
|
+
mimeType: string;
|
|
1145
|
+
data: string;
|
|
1146
|
+
} | {
|
|
1147
|
+
type: "audio";
|
|
1148
|
+
mimeType: string;
|
|
1149
|
+
data: string;
|
|
1150
|
+
} | {
|
|
1151
|
+
type: "resource_link";
|
|
1152
|
+
uri: string;
|
|
1153
|
+
name: string;
|
|
1154
|
+
title?: string | undefined;
|
|
1155
|
+
description?: string | undefined;
|
|
1156
|
+
mimeType?: string | undefined;
|
|
1157
|
+
size?: number | undefined;
|
|
1158
|
+
} | {
|
|
1159
|
+
type: "resource";
|
|
1160
|
+
resource: {
|
|
1161
|
+
uri: string;
|
|
1162
|
+
mimeType?: string | undefined;
|
|
1163
|
+
text?: string | undefined;
|
|
1164
|
+
blob?: string | undefined;
|
|
1165
|
+
};
|
|
1166
|
+
})[];
|
|
1167
|
+
};
|
|
1168
|
+
};
|
|
1169
|
+
};
|
|
1170
|
+
};
|
|
1171
|
+
} & {
|
|
1172
|
+
"/v1/god-messages/session": {
|
|
1173
|
+
$get: {
|
|
1174
|
+
output: {
|
|
1175
|
+
id: string;
|
|
1176
|
+
status: "active" | "terminated";
|
|
1177
|
+
runtimeState: "idle" | "retrying" | "success" | "terminated" | "working";
|
|
1178
|
+
model: {
|
|
1179
|
+
id: string | null;
|
|
1180
|
+
isFallback: boolean;
|
|
1181
|
+
fallbackIndex: number;
|
|
1182
|
+
};
|
|
1183
|
+
usage: {
|
|
1184
|
+
chat: {
|
|
1185
|
+
latest: {
|
|
1186
|
+
inputTokens: number;
|
|
1187
|
+
outputTokens: number;
|
|
1188
|
+
inputCacheWriteTokens: number;
|
|
1189
|
+
inputCacheReadTokens: number;
|
|
1190
|
+
} | null;
|
|
1191
|
+
total: {
|
|
1192
|
+
inputTokens: number;
|
|
1193
|
+
outputTokens: number;
|
|
1194
|
+
inputCacheWriteTokens: number;
|
|
1195
|
+
inputCacheReadTokens: number;
|
|
1196
|
+
};
|
|
1197
|
+
};
|
|
1198
|
+
extensions: {
|
|
1199
|
+
[x: string]: {
|
|
1200
|
+
latest: {
|
|
1201
|
+
inputTokens: number;
|
|
1202
|
+
outputTokens: number;
|
|
1203
|
+
inputCacheWriteTokens: number;
|
|
1204
|
+
inputCacheReadTokens: number;
|
|
1205
|
+
} | null;
|
|
1206
|
+
total: {
|
|
1207
|
+
inputTokens: number;
|
|
1208
|
+
outputTokens: number;
|
|
1209
|
+
inputCacheWriteTokens: number;
|
|
1210
|
+
inputCacheReadTokens: number;
|
|
1211
|
+
};
|
|
1212
|
+
};
|
|
1213
|
+
};
|
|
1214
|
+
};
|
|
1215
|
+
turns: number;
|
|
1216
|
+
steps: number;
|
|
1217
|
+
messageCount: number;
|
|
1218
|
+
createdAt: string;
|
|
1219
|
+
};
|
|
1220
|
+
outputFormat: "json";
|
|
1221
|
+
status: 200;
|
|
1222
|
+
input: {};
|
|
1223
|
+
} | {
|
|
1224
|
+
output: {
|
|
1225
|
+
error: string;
|
|
1226
|
+
code: string;
|
|
1227
|
+
};
|
|
1228
|
+
outputFormat: "json";
|
|
1229
|
+
status: 404;
|
|
1230
|
+
input: {};
|
|
1231
|
+
};
|
|
1232
|
+
};
|
|
1233
|
+
} & {
|
|
1234
|
+
"/v1/god-messages/messages": {
|
|
1235
|
+
$get: {
|
|
1236
|
+
output: {
|
|
1237
|
+
messages: {
|
|
1238
|
+
id: string;
|
|
1239
|
+
role: string;
|
|
1240
|
+
parts: {
|
|
1241
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1242
|
+
}[];
|
|
1243
|
+
}[];
|
|
1244
|
+
nextCursor: string | null;
|
|
1245
|
+
hasMore: boolean;
|
|
1246
|
+
};
|
|
1247
|
+
outputFormat: "json";
|
|
1248
|
+
status: 200;
|
|
1249
|
+
input: {
|
|
1250
|
+
query: {
|
|
1251
|
+
limit?: unknown;
|
|
1252
|
+
cursor?: string | undefined;
|
|
1253
|
+
};
|
|
1254
|
+
};
|
|
1255
|
+
} | {
|
|
1256
|
+
output: {
|
|
1257
|
+
error: string;
|
|
1258
|
+
code: string;
|
|
1259
|
+
};
|
|
1260
|
+
outputFormat: "json";
|
|
1261
|
+
status: 400;
|
|
1262
|
+
input: {
|
|
1263
|
+
query: {
|
|
1264
|
+
limit?: unknown;
|
|
1265
|
+
cursor?: string | undefined;
|
|
1266
|
+
};
|
|
1267
|
+
};
|
|
1268
|
+
} | {
|
|
1269
|
+
output: {
|
|
1270
|
+
error: string;
|
|
1271
|
+
code: string;
|
|
672
1272
|
};
|
|
673
1273
|
outputFormat: "json";
|
|
674
1274
|
status: 500;
|
|
675
1275
|
input: {
|
|
676
1276
|
query: {
|
|
677
|
-
splitBy?: "endpoint" | "model" | "none" | "provider" | undefined;
|
|
678
|
-
from?: string | undefined;
|
|
679
|
-
to?: string | undefined;
|
|
680
|
-
granularity?: "daily" | "event" | "hourly" | "weekly" | undefined;
|
|
681
1277
|
limit?: unknown;
|
|
1278
|
+
cursor?: string | undefined;
|
|
682
1279
|
};
|
|
683
1280
|
};
|
|
1281
|
+
};
|
|
1282
|
+
};
|
|
1283
|
+
} & {
|
|
1284
|
+
"/v1/god-messages/reset": {
|
|
1285
|
+
$post: {
|
|
1286
|
+
output: {
|
|
1287
|
+
sessionId: string;
|
|
1288
|
+
};
|
|
1289
|
+
outputFormat: "json";
|
|
1290
|
+
status: 200;
|
|
1291
|
+
input: {};
|
|
684
1292
|
} | {
|
|
1293
|
+
output: {
|
|
1294
|
+
error: string;
|
|
1295
|
+
code: string;
|
|
1296
|
+
};
|
|
1297
|
+
outputFormat: "json";
|
|
1298
|
+
status: 404;
|
|
1299
|
+
input: {};
|
|
1300
|
+
} | {
|
|
1301
|
+
output: {
|
|
1302
|
+
error: string;
|
|
1303
|
+
code: string;
|
|
1304
|
+
};
|
|
1305
|
+
outputFormat: "json";
|
|
1306
|
+
status: 409;
|
|
1307
|
+
input: {};
|
|
1308
|
+
} | {
|
|
1309
|
+
output: {
|
|
1310
|
+
error: string;
|
|
1311
|
+
code: string;
|
|
1312
|
+
};
|
|
1313
|
+
outputFormat: "json";
|
|
1314
|
+
status: 500;
|
|
1315
|
+
input: {};
|
|
1316
|
+
};
|
|
1317
|
+
};
|
|
1318
|
+
} & {
|
|
1319
|
+
"/v1/usage": {
|
|
1320
|
+
$get: {
|
|
685
1321
|
output: {
|
|
686
1322
|
dataPoints: {
|
|
687
1323
|
bucket: string | null;
|
|
@@ -718,18 +1354,43 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
718
1354
|
limit?: unknown;
|
|
719
1355
|
};
|
|
720
1356
|
};
|
|
721
|
-
}
|
|
722
|
-
};
|
|
723
|
-
} & {
|
|
724
|
-
"/v1/providers": {
|
|
725
|
-
$get: {
|
|
1357
|
+
} | {
|
|
726
1358
|
output: {
|
|
727
1359
|
error: string;
|
|
1360
|
+
code: string;
|
|
728
1361
|
};
|
|
729
1362
|
outputFormat: "json";
|
|
730
|
-
status:
|
|
731
|
-
input: {
|
|
1363
|
+
status: 400;
|
|
1364
|
+
input: {
|
|
1365
|
+
query: {
|
|
1366
|
+
splitBy?: "endpoint" | "model" | "none" | "provider" | undefined;
|
|
1367
|
+
from?: string | undefined;
|
|
1368
|
+
to?: string | undefined;
|
|
1369
|
+
granularity?: "daily" | "event" | "hourly" | "weekly" | undefined;
|
|
1370
|
+
limit?: unknown;
|
|
1371
|
+
};
|
|
1372
|
+
};
|
|
732
1373
|
} | {
|
|
1374
|
+
output: {
|
|
1375
|
+
error: string;
|
|
1376
|
+
code: string;
|
|
1377
|
+
};
|
|
1378
|
+
outputFormat: "json";
|
|
1379
|
+
status: 500;
|
|
1380
|
+
input: {
|
|
1381
|
+
query: {
|
|
1382
|
+
splitBy?: "endpoint" | "model" | "none" | "provider" | undefined;
|
|
1383
|
+
from?: string | undefined;
|
|
1384
|
+
to?: string | undefined;
|
|
1385
|
+
granularity?: "daily" | "event" | "hourly" | "weekly" | undefined;
|
|
1386
|
+
limit?: unknown;
|
|
1387
|
+
};
|
|
1388
|
+
};
|
|
1389
|
+
};
|
|
1390
|
+
};
|
|
1391
|
+
} & {
|
|
1392
|
+
"/v1/providers": {
|
|
1393
|
+
$get: {
|
|
733
1394
|
output: {
|
|
734
1395
|
providers: ({
|
|
735
1396
|
name: string;
|
|
@@ -759,13 +1420,71 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
759
1420
|
outputFormat: "json";
|
|
760
1421
|
status: 200;
|
|
761
1422
|
input: {};
|
|
1423
|
+
} | {
|
|
1424
|
+
output: {
|
|
1425
|
+
error: string;
|
|
1426
|
+
code: string;
|
|
1427
|
+
};
|
|
1428
|
+
outputFormat: "json";
|
|
1429
|
+
status: 500;
|
|
1430
|
+
input: {};
|
|
762
1431
|
};
|
|
763
1432
|
};
|
|
764
1433
|
} & {
|
|
765
1434
|
"/v1/providers": {
|
|
766
1435
|
$post: {
|
|
1436
|
+
output: {
|
|
1437
|
+
providers: ({
|
|
1438
|
+
name: string;
|
|
1439
|
+
preset: "anthropic" | "google" | "openai";
|
|
1440
|
+
auth: {
|
|
1441
|
+
apiKey?: string | undefined;
|
|
1442
|
+
headers?: {
|
|
1443
|
+
[x: string]: string;
|
|
1444
|
+
} | undefined;
|
|
1445
|
+
};
|
|
1446
|
+
} | {
|
|
1447
|
+
name: string;
|
|
1448
|
+
endpoints: {
|
|
1449
|
+
[x: string]: {
|
|
1450
|
+
url: string;
|
|
1451
|
+
format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
|
|
1452
|
+
auth: {
|
|
1453
|
+
apiKey?: string | undefined;
|
|
1454
|
+
headers?: {
|
|
1455
|
+
[x: string]: string;
|
|
1456
|
+
} | undefined;
|
|
1457
|
+
};
|
|
1458
|
+
};
|
|
1459
|
+
};
|
|
1460
|
+
})[];
|
|
1461
|
+
};
|
|
1462
|
+
outputFormat: "json";
|
|
1463
|
+
status: 201;
|
|
1464
|
+
input: {
|
|
1465
|
+
json: {
|
|
1466
|
+
name: string;
|
|
1467
|
+
preset: "anthropic" | "google" | "openai";
|
|
1468
|
+
auth: {
|
|
1469
|
+
apiKey?: string | undefined;
|
|
1470
|
+
headers?: Record<string, string> | undefined;
|
|
1471
|
+
};
|
|
1472
|
+
} | {
|
|
1473
|
+
name: string;
|
|
1474
|
+
endpoints: Record<string, {
|
|
1475
|
+
url: string;
|
|
1476
|
+
format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
|
|
1477
|
+
auth: {
|
|
1478
|
+
apiKey?: string | undefined;
|
|
1479
|
+
headers?: Record<string, string> | undefined;
|
|
1480
|
+
};
|
|
1481
|
+
}>;
|
|
1482
|
+
};
|
|
1483
|
+
};
|
|
1484
|
+
} | {
|
|
767
1485
|
output: {
|
|
768
1486
|
error: string;
|
|
1487
|
+
code: string;
|
|
769
1488
|
};
|
|
770
1489
|
outputFormat: "json";
|
|
771
1490
|
status: 400;
|
|
@@ -792,6 +1511,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
792
1511
|
} | {
|
|
793
1512
|
output: {
|
|
794
1513
|
error: string;
|
|
1514
|
+
code: string;
|
|
795
1515
|
};
|
|
796
1516
|
outputFormat: "json";
|
|
797
1517
|
status: 409;
|
|
@@ -818,6 +1538,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
818
1538
|
} | {
|
|
819
1539
|
output: {
|
|
820
1540
|
error: string;
|
|
1541
|
+
code: string;
|
|
821
1542
|
};
|
|
822
1543
|
outputFormat: "json";
|
|
823
1544
|
status: 500;
|
|
@@ -841,7 +1562,11 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
841
1562
|
}>;
|
|
842
1563
|
};
|
|
843
1564
|
};
|
|
844
|
-
}
|
|
1565
|
+
};
|
|
1566
|
+
};
|
|
1567
|
+
} & {
|
|
1568
|
+
"/v1/providers/:name": {
|
|
1569
|
+
$patch: {
|
|
845
1570
|
output: {
|
|
846
1571
|
providers: ({
|
|
847
1572
|
name: string;
|
|
@@ -869,34 +1594,32 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
869
1594
|
})[];
|
|
870
1595
|
};
|
|
871
1596
|
outputFormat: "json";
|
|
872
|
-
status:
|
|
1597
|
+
status: 200;
|
|
873
1598
|
input: {
|
|
874
|
-
|
|
1599
|
+
param: {
|
|
875
1600
|
name: string;
|
|
876
|
-
|
|
877
|
-
|
|
1601
|
+
};
|
|
1602
|
+
} & {
|
|
1603
|
+
json: {
|
|
1604
|
+
preset?: "anthropic" | "google" | "openai" | undefined;
|
|
1605
|
+
auth?: {
|
|
878
1606
|
apiKey?: string | undefined;
|
|
879
1607
|
headers?: Record<string, string> | undefined;
|
|
880
|
-
};
|
|
881
|
-
|
|
882
|
-
name: string;
|
|
883
|
-
endpoints: Record<string, {
|
|
1608
|
+
} | undefined;
|
|
1609
|
+
endpoints?: Record<string, {
|
|
884
1610
|
url: string;
|
|
885
1611
|
format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
|
|
886
1612
|
auth: {
|
|
887
1613
|
apiKey?: string | undefined;
|
|
888
1614
|
headers?: Record<string, string> | undefined;
|
|
889
1615
|
};
|
|
890
|
-
}
|
|
1616
|
+
}> | undefined;
|
|
891
1617
|
};
|
|
892
1618
|
};
|
|
893
|
-
}
|
|
894
|
-
};
|
|
895
|
-
} & {
|
|
896
|
-
"/v1/providers/:name": {
|
|
897
|
-
$patch: {
|
|
1619
|
+
} | {
|
|
898
1620
|
output: {
|
|
899
1621
|
error: string;
|
|
1622
|
+
code: string;
|
|
900
1623
|
};
|
|
901
1624
|
outputFormat: "json";
|
|
902
1625
|
status: 400;
|
|
@@ -924,6 +1647,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
924
1647
|
} | {
|
|
925
1648
|
output: {
|
|
926
1649
|
error: string;
|
|
1650
|
+
code: string;
|
|
927
1651
|
};
|
|
928
1652
|
outputFormat: "json";
|
|
929
1653
|
status: 404;
|
|
@@ -951,6 +1675,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
951
1675
|
} | {
|
|
952
1676
|
output: {
|
|
953
1677
|
error: string;
|
|
1678
|
+
code: string;
|
|
954
1679
|
};
|
|
955
1680
|
outputFormat: "json";
|
|
956
1681
|
status: 500;
|
|
@@ -975,7 +1700,11 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
975
1700
|
}> | undefined;
|
|
976
1701
|
};
|
|
977
1702
|
};
|
|
978
|
-
}
|
|
1703
|
+
};
|
|
1704
|
+
};
|
|
1705
|
+
} & {
|
|
1706
|
+
"/v1/providers/:name": {
|
|
1707
|
+
$delete: {
|
|
979
1708
|
output: {
|
|
980
1709
|
providers: ({
|
|
981
1710
|
name: string;
|
|
@@ -1008,30 +1737,11 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1008
1737
|
param: {
|
|
1009
1738
|
name: string;
|
|
1010
1739
|
};
|
|
1011
|
-
} & {
|
|
1012
|
-
json: {
|
|
1013
|
-
preset?: "anthropic" | "google" | "openai" | undefined;
|
|
1014
|
-
auth?: {
|
|
1015
|
-
apiKey?: string | undefined;
|
|
1016
|
-
headers?: Record<string, string> | undefined;
|
|
1017
|
-
} | undefined;
|
|
1018
|
-
endpoints?: Record<string, {
|
|
1019
|
-
url: string;
|
|
1020
|
-
format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
|
|
1021
|
-
auth: {
|
|
1022
|
-
apiKey?: string | undefined;
|
|
1023
|
-
headers?: Record<string, string> | undefined;
|
|
1024
|
-
};
|
|
1025
|
-
}> | undefined;
|
|
1026
|
-
};
|
|
1027
1740
|
};
|
|
1028
|
-
}
|
|
1029
|
-
};
|
|
1030
|
-
} & {
|
|
1031
|
-
"/v1/providers/:name": {
|
|
1032
|
-
$delete: {
|
|
1741
|
+
} | {
|
|
1033
1742
|
output: {
|
|
1034
1743
|
error: string;
|
|
1744
|
+
code: string;
|
|
1035
1745
|
};
|
|
1036
1746
|
outputFormat: "json";
|
|
1037
1747
|
status: 400;
|
|
@@ -1043,6 +1753,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1043
1753
|
} | {
|
|
1044
1754
|
output: {
|
|
1045
1755
|
error: string;
|
|
1756
|
+
code: string;
|
|
1046
1757
|
};
|
|
1047
1758
|
outputFormat: "json";
|
|
1048
1759
|
status: 404;
|
|
@@ -1054,6 +1765,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1054
1765
|
} | {
|
|
1055
1766
|
output: {
|
|
1056
1767
|
error: string;
|
|
1768
|
+
code: string;
|
|
1057
1769
|
};
|
|
1058
1770
|
outputFormat: "json";
|
|
1059
1771
|
status: 409;
|
|
@@ -1065,6 +1777,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1065
1777
|
} | {
|
|
1066
1778
|
output: {
|
|
1067
1779
|
error: string;
|
|
1780
|
+
code: string;
|
|
1068
1781
|
};
|
|
1069
1782
|
outputFormat: "json";
|
|
1070
1783
|
status: 500;
|
|
@@ -1073,32 +1786,23 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1073
1786
|
name: string;
|
|
1074
1787
|
};
|
|
1075
1788
|
};
|
|
1076
|
-
}
|
|
1789
|
+
};
|
|
1790
|
+
};
|
|
1791
|
+
} & {
|
|
1792
|
+
"/v1/providers/:name/endpoints": {
|
|
1793
|
+
$get: {
|
|
1077
1794
|
output: {
|
|
1078
|
-
|
|
1795
|
+
endpoints: {
|
|
1079
1796
|
name: string;
|
|
1080
|
-
|
|
1797
|
+
url: string;
|
|
1798
|
+
format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
|
|
1081
1799
|
auth: {
|
|
1082
1800
|
apiKey?: string | undefined;
|
|
1083
1801
|
headers?: {
|
|
1084
1802
|
[x: string]: string;
|
|
1085
1803
|
} | undefined;
|
|
1086
1804
|
};
|
|
1087
|
-
}
|
|
1088
|
-
name: string;
|
|
1089
|
-
endpoints: {
|
|
1090
|
-
[x: string]: {
|
|
1091
|
-
url: string;
|
|
1092
|
-
format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
|
|
1093
|
-
auth: {
|
|
1094
|
-
apiKey?: string | undefined;
|
|
1095
|
-
headers?: {
|
|
1096
|
-
[x: string]: string;
|
|
1097
|
-
} | undefined;
|
|
1098
|
-
};
|
|
1099
|
-
};
|
|
1100
|
-
};
|
|
1101
|
-
})[];
|
|
1805
|
+
}[];
|
|
1102
1806
|
};
|
|
1103
1807
|
outputFormat: "json";
|
|
1104
1808
|
status: 200;
|
|
@@ -1107,13 +1811,10 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1107
1811
|
name: string;
|
|
1108
1812
|
};
|
|
1109
1813
|
};
|
|
1110
|
-
}
|
|
1111
|
-
};
|
|
1112
|
-
} & {
|
|
1113
|
-
"/v1/providers/:name/endpoints": {
|
|
1114
|
-
$get: {
|
|
1814
|
+
} | {
|
|
1115
1815
|
output: {
|
|
1116
1816
|
error: string;
|
|
1817
|
+
code: string;
|
|
1117
1818
|
};
|
|
1118
1819
|
outputFormat: "json";
|
|
1119
1820
|
status: 400;
|
|
@@ -1125,6 +1826,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1125
1826
|
} | {
|
|
1126
1827
|
output: {
|
|
1127
1828
|
error: string;
|
|
1829
|
+
code: string;
|
|
1128
1830
|
};
|
|
1129
1831
|
outputFormat: "json";
|
|
1130
1832
|
status: 404;
|
|
@@ -1136,6 +1838,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1136
1838
|
} | {
|
|
1137
1839
|
output: {
|
|
1138
1840
|
error: string;
|
|
1841
|
+
code: string;
|
|
1139
1842
|
};
|
|
1140
1843
|
outputFormat: "json";
|
|
1141
1844
|
status: 500;
|
|
@@ -1144,7 +1847,11 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1144
1847
|
name: string;
|
|
1145
1848
|
};
|
|
1146
1849
|
};
|
|
1147
|
-
}
|
|
1850
|
+
};
|
|
1851
|
+
};
|
|
1852
|
+
} & {
|
|
1853
|
+
"/v1/providers/:name/endpoints": {
|
|
1854
|
+
$post: {
|
|
1148
1855
|
output: {
|
|
1149
1856
|
endpoints: {
|
|
1150
1857
|
name: string;
|
|
@@ -1159,19 +1866,26 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1159
1866
|
}[];
|
|
1160
1867
|
};
|
|
1161
1868
|
outputFormat: "json";
|
|
1162
|
-
status:
|
|
1869
|
+
status: 201;
|
|
1163
1870
|
input: {
|
|
1164
1871
|
param: {
|
|
1165
1872
|
name: string;
|
|
1166
1873
|
};
|
|
1874
|
+
} & {
|
|
1875
|
+
json: {
|
|
1876
|
+
name: string;
|
|
1877
|
+
url: string;
|
|
1878
|
+
format: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions";
|
|
1879
|
+
auth: {
|
|
1880
|
+
apiKey?: string | undefined;
|
|
1881
|
+
headers?: Record<string, string> | undefined;
|
|
1882
|
+
};
|
|
1883
|
+
};
|
|
1167
1884
|
};
|
|
1168
|
-
}
|
|
1169
|
-
};
|
|
1170
|
-
} & {
|
|
1171
|
-
"/v1/providers/:name/endpoints": {
|
|
1172
|
-
$post: {
|
|
1885
|
+
} | {
|
|
1173
1886
|
output: {
|
|
1174
1887
|
error: string;
|
|
1888
|
+
code: string;
|
|
1175
1889
|
};
|
|
1176
1890
|
outputFormat: "json";
|
|
1177
1891
|
status: 400;
|
|
@@ -1193,6 +1907,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1193
1907
|
} | {
|
|
1194
1908
|
output: {
|
|
1195
1909
|
error: string;
|
|
1910
|
+
code: string;
|
|
1196
1911
|
};
|
|
1197
1912
|
outputFormat: "json";
|
|
1198
1913
|
status: 404;
|
|
@@ -1214,6 +1929,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1214
1929
|
} | {
|
|
1215
1930
|
output: {
|
|
1216
1931
|
error: string;
|
|
1932
|
+
code: string;
|
|
1217
1933
|
};
|
|
1218
1934
|
outputFormat: "json";
|
|
1219
1935
|
status: 409;
|
|
@@ -1235,6 +1951,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1235
1951
|
} | {
|
|
1236
1952
|
output: {
|
|
1237
1953
|
error: string;
|
|
1954
|
+
code: string;
|
|
1238
1955
|
};
|
|
1239
1956
|
outputFormat: "json";
|
|
1240
1957
|
status: 500;
|
|
@@ -1253,7 +1970,11 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1253
1970
|
};
|
|
1254
1971
|
};
|
|
1255
1972
|
};
|
|
1256
|
-
}
|
|
1973
|
+
};
|
|
1974
|
+
};
|
|
1975
|
+
} & {
|
|
1976
|
+
"/v1/providers/:name/endpoints/:endpointName": {
|
|
1977
|
+
$patch: {
|
|
1257
1978
|
output: {
|
|
1258
1979
|
endpoints: {
|
|
1259
1980
|
name: string;
|
|
@@ -1268,29 +1989,26 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1268
1989
|
}[];
|
|
1269
1990
|
};
|
|
1270
1991
|
outputFormat: "json";
|
|
1271
|
-
status:
|
|
1992
|
+
status: 200;
|
|
1272
1993
|
input: {
|
|
1273
1994
|
param: {
|
|
1274
1995
|
name: string;
|
|
1996
|
+
endpointName: string;
|
|
1275
1997
|
};
|
|
1276
1998
|
} & {
|
|
1277
1999
|
json: {
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
auth: {
|
|
2000
|
+
url?: string | undefined;
|
|
2001
|
+
format?: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions" | undefined;
|
|
2002
|
+
auth?: {
|
|
1282
2003
|
apiKey?: string | undefined;
|
|
1283
2004
|
headers?: Record<string, string> | undefined;
|
|
1284
|
-
};
|
|
2005
|
+
} | undefined;
|
|
1285
2006
|
};
|
|
1286
2007
|
};
|
|
1287
|
-
}
|
|
1288
|
-
};
|
|
1289
|
-
} & {
|
|
1290
|
-
"/v1/providers/:name/endpoints/:endpointName": {
|
|
1291
|
-
$patch: {
|
|
2008
|
+
} | {
|
|
1292
2009
|
output: {
|
|
1293
2010
|
error: string;
|
|
2011
|
+
code: string;
|
|
1294
2012
|
};
|
|
1295
2013
|
outputFormat: "json";
|
|
1296
2014
|
status: 400;
|
|
@@ -1312,6 +2030,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1312
2030
|
} | {
|
|
1313
2031
|
output: {
|
|
1314
2032
|
error: string;
|
|
2033
|
+
code: string;
|
|
1315
2034
|
};
|
|
1316
2035
|
outputFormat: "json";
|
|
1317
2036
|
status: 404;
|
|
@@ -1333,6 +2052,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1333
2052
|
} | {
|
|
1334
2053
|
output: {
|
|
1335
2054
|
error: string;
|
|
2055
|
+
code: string;
|
|
1336
2056
|
};
|
|
1337
2057
|
outputFormat: "json";
|
|
1338
2058
|
status: 500;
|
|
@@ -1351,7 +2071,11 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1351
2071
|
} | undefined;
|
|
1352
2072
|
};
|
|
1353
2073
|
};
|
|
1354
|
-
}
|
|
2074
|
+
};
|
|
2075
|
+
};
|
|
2076
|
+
} & {
|
|
2077
|
+
"/v1/providers/:name/endpoints/:endpointName": {
|
|
2078
|
+
$delete: {
|
|
1355
2079
|
output: {
|
|
1356
2080
|
endpoints: {
|
|
1357
2081
|
name: string;
|
|
@@ -1372,23 +2096,11 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1372
2096
|
name: string;
|
|
1373
2097
|
endpointName: string;
|
|
1374
2098
|
};
|
|
1375
|
-
} & {
|
|
1376
|
-
json: {
|
|
1377
|
-
url?: string | undefined;
|
|
1378
|
-
format?: "anthropic" | "chat-completions" | "google" | "messages" | "open-responses" | "openai" | "realtime" | "speech" | "transcriptions" | undefined;
|
|
1379
|
-
auth?: {
|
|
1380
|
-
apiKey?: string | undefined;
|
|
1381
|
-
headers?: Record<string, string> | undefined;
|
|
1382
|
-
} | undefined;
|
|
1383
|
-
};
|
|
1384
2099
|
};
|
|
1385
|
-
}
|
|
1386
|
-
};
|
|
1387
|
-
} & {
|
|
1388
|
-
"/v1/providers/:name/endpoints/:endpointName": {
|
|
1389
|
-
$delete: {
|
|
2100
|
+
} | {
|
|
1390
2101
|
output: {
|
|
1391
2102
|
error: string;
|
|
2103
|
+
code: string;
|
|
1392
2104
|
};
|
|
1393
2105
|
outputFormat: "json";
|
|
1394
2106
|
status: 400;
|
|
@@ -1401,6 +2113,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1401
2113
|
} | {
|
|
1402
2114
|
output: {
|
|
1403
2115
|
error: string;
|
|
2116
|
+
code: string;
|
|
1404
2117
|
};
|
|
1405
2118
|
outputFormat: "json";
|
|
1406
2119
|
status: 404;
|
|
@@ -1413,6 +2126,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1413
2126
|
} | {
|
|
1414
2127
|
output: {
|
|
1415
2128
|
error: string;
|
|
2129
|
+
code: string;
|
|
1416
2130
|
};
|
|
1417
2131
|
outputFormat: "json";
|
|
1418
2132
|
status: 409;
|
|
@@ -1425,6 +2139,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1425
2139
|
} | {
|
|
1426
2140
|
output: {
|
|
1427
2141
|
error: string;
|
|
2142
|
+
code: string;
|
|
1428
2143
|
};
|
|
1429
2144
|
outputFormat: "json";
|
|
1430
2145
|
status: 500;
|
|
@@ -1434,18 +2149,34 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1434
2149
|
endpointName: string;
|
|
1435
2150
|
};
|
|
1436
2151
|
};
|
|
1437
|
-
}
|
|
2152
|
+
};
|
|
2153
|
+
};
|
|
2154
|
+
} & {
|
|
2155
|
+
"/v1/providers/:name/known-models": {
|
|
2156
|
+
$get: {
|
|
1438
2157
|
output: {
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
2158
|
+
models: {
|
|
2159
|
+
modelId: string;
|
|
2160
|
+
endpointName?: string | undefined;
|
|
2161
|
+
displayName?: string | undefined;
|
|
2162
|
+
contextSize?: number | undefined;
|
|
2163
|
+
capabilities?: {
|
|
2164
|
+
input?: {
|
|
2165
|
+
image?: {
|
|
2166
|
+
mediaTypes: string[];
|
|
2167
|
+
maxBytes: number;
|
|
2168
|
+
} | undefined;
|
|
2169
|
+
audio?: {
|
|
2170
|
+
mediaTypes: string[];
|
|
2171
|
+
maxBytes: number;
|
|
2172
|
+
} | undefined;
|
|
1447
2173
|
} | undefined;
|
|
1448
|
-
|
|
2174
|
+
voice?: {
|
|
2175
|
+
sts?: boolean | undefined;
|
|
2176
|
+
tts?: boolean | undefined;
|
|
2177
|
+
stt?: boolean | undefined;
|
|
2178
|
+
} | undefined;
|
|
2179
|
+
} | undefined;
|
|
1449
2180
|
}[];
|
|
1450
2181
|
};
|
|
1451
2182
|
outputFormat: "json";
|
|
@@ -1453,16 +2184,16 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1453
2184
|
input: {
|
|
1454
2185
|
param: {
|
|
1455
2186
|
name: string;
|
|
1456
|
-
|
|
2187
|
+
};
|
|
2188
|
+
} & {
|
|
2189
|
+
query: {
|
|
2190
|
+
endpointName?: string | undefined;
|
|
1457
2191
|
};
|
|
1458
2192
|
};
|
|
1459
|
-
}
|
|
1460
|
-
};
|
|
1461
|
-
} & {
|
|
1462
|
-
"/v1/providers/:name/known-models": {
|
|
1463
|
-
$get: {
|
|
2193
|
+
} | {
|
|
1464
2194
|
output: {
|
|
1465
2195
|
error: string;
|
|
2196
|
+
code: string;
|
|
1466
2197
|
};
|
|
1467
2198
|
outputFormat: "json";
|
|
1468
2199
|
status: 400;
|
|
@@ -1478,6 +2209,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1478
2209
|
} | {
|
|
1479
2210
|
output: {
|
|
1480
2211
|
error: string;
|
|
2212
|
+
code: string;
|
|
1481
2213
|
};
|
|
1482
2214
|
outputFormat: "json";
|
|
1483
2215
|
status: 404;
|
|
@@ -1493,6 +2225,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1493
2225
|
} | {
|
|
1494
2226
|
output: {
|
|
1495
2227
|
error: string;
|
|
2228
|
+
code: string;
|
|
1496
2229
|
};
|
|
1497
2230
|
outputFormat: "json";
|
|
1498
2231
|
status: 500;
|
|
@@ -1505,7 +2238,11 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1505
2238
|
endpointName?: string | undefined;
|
|
1506
2239
|
};
|
|
1507
2240
|
};
|
|
1508
|
-
}
|
|
2241
|
+
};
|
|
2242
|
+
};
|
|
2243
|
+
} & {
|
|
2244
|
+
"/v1/providers/:name/known-models": {
|
|
2245
|
+
$post: {
|
|
1509
2246
|
output: {
|
|
1510
2247
|
models: {
|
|
1511
2248
|
modelId: string;
|
|
@@ -1532,23 +2269,40 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1532
2269
|
}[];
|
|
1533
2270
|
};
|
|
1534
2271
|
outputFormat: "json";
|
|
1535
|
-
status:
|
|
2272
|
+
status: 201;
|
|
1536
2273
|
input: {
|
|
1537
2274
|
param: {
|
|
1538
2275
|
name: string;
|
|
1539
2276
|
};
|
|
1540
2277
|
} & {
|
|
1541
|
-
|
|
2278
|
+
json: {
|
|
2279
|
+
modelId: string;
|
|
1542
2280
|
endpointName?: string | undefined;
|
|
2281
|
+
displayName?: string | undefined;
|
|
2282
|
+
contextSize?: number | undefined;
|
|
2283
|
+
capabilities?: {
|
|
2284
|
+
input?: {
|
|
2285
|
+
image?: {
|
|
2286
|
+
mediaTypes: string[];
|
|
2287
|
+
maxBytes: number;
|
|
2288
|
+
} | undefined;
|
|
2289
|
+
audio?: {
|
|
2290
|
+
mediaTypes: string[];
|
|
2291
|
+
maxBytes: number;
|
|
2292
|
+
} | undefined;
|
|
2293
|
+
} | undefined;
|
|
2294
|
+
voice?: {
|
|
2295
|
+
sts?: boolean | undefined;
|
|
2296
|
+
tts?: boolean | undefined;
|
|
2297
|
+
stt?: boolean | undefined;
|
|
2298
|
+
} | undefined;
|
|
2299
|
+
} | undefined;
|
|
1543
2300
|
};
|
|
1544
2301
|
};
|
|
1545
|
-
}
|
|
1546
|
-
};
|
|
1547
|
-
} & {
|
|
1548
|
-
"/v1/providers/:name/known-models": {
|
|
1549
|
-
$post: {
|
|
2302
|
+
} | {
|
|
1550
2303
|
output: {
|
|
1551
2304
|
error: string;
|
|
2305
|
+
code: string;
|
|
1552
2306
|
};
|
|
1553
2307
|
outputFormat: "json";
|
|
1554
2308
|
status: 400;
|
|
@@ -1584,6 +2338,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1584
2338
|
} | {
|
|
1585
2339
|
output: {
|
|
1586
2340
|
error: string;
|
|
2341
|
+
code: string;
|
|
1587
2342
|
};
|
|
1588
2343
|
outputFormat: "json";
|
|
1589
2344
|
status: 404;
|
|
@@ -1619,6 +2374,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1619
2374
|
} | {
|
|
1620
2375
|
output: {
|
|
1621
2376
|
error: string;
|
|
2377
|
+
code: string;
|
|
1622
2378
|
};
|
|
1623
2379
|
outputFormat: "json";
|
|
1624
2380
|
status: 409;
|
|
@@ -1654,6 +2410,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1654
2410
|
} | {
|
|
1655
2411
|
output: {
|
|
1656
2412
|
error: string;
|
|
2413
|
+
code: string;
|
|
1657
2414
|
};
|
|
1658
2415
|
outputFormat: "json";
|
|
1659
2416
|
status: 500;
|
|
@@ -1686,7 +2443,11 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1686
2443
|
} | undefined;
|
|
1687
2444
|
};
|
|
1688
2445
|
};
|
|
1689
|
-
}
|
|
2446
|
+
};
|
|
2447
|
+
};
|
|
2448
|
+
} & {
|
|
2449
|
+
"/v1/providers/:name/known-models/:modelId": {
|
|
2450
|
+
$patch: {
|
|
1690
2451
|
output: {
|
|
1691
2452
|
models: {
|
|
1692
2453
|
modelId: string;
|
|
@@ -1713,15 +2474,18 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1713
2474
|
}[];
|
|
1714
2475
|
};
|
|
1715
2476
|
outputFormat: "json";
|
|
1716
|
-
status:
|
|
2477
|
+
status: 200;
|
|
1717
2478
|
input: {
|
|
1718
2479
|
param: {
|
|
1719
2480
|
name: string;
|
|
2481
|
+
modelId: string;
|
|
1720
2482
|
};
|
|
1721
2483
|
} & {
|
|
1722
|
-
|
|
1723
|
-
modelId: string;
|
|
2484
|
+
query: {
|
|
1724
2485
|
endpointName?: string | undefined;
|
|
2486
|
+
};
|
|
2487
|
+
} & {
|
|
2488
|
+
json: {
|
|
1725
2489
|
displayName?: string | undefined;
|
|
1726
2490
|
contextSize?: number | undefined;
|
|
1727
2491
|
capabilities?: {
|
|
@@ -1743,13 +2507,10 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1743
2507
|
} | undefined;
|
|
1744
2508
|
};
|
|
1745
2509
|
};
|
|
1746
|
-
}
|
|
1747
|
-
};
|
|
1748
|
-
} & {
|
|
1749
|
-
"/v1/providers/:name/known-models/:modelId": {
|
|
1750
|
-
$patch: {
|
|
2510
|
+
} | {
|
|
1751
2511
|
output: {
|
|
1752
2512
|
error: string;
|
|
2513
|
+
code: string;
|
|
1753
2514
|
};
|
|
1754
2515
|
outputFormat: "json";
|
|
1755
2516
|
status: 400;
|
|
@@ -1788,6 +2549,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1788
2549
|
} | {
|
|
1789
2550
|
output: {
|
|
1790
2551
|
error: string;
|
|
2552
|
+
code: string;
|
|
1791
2553
|
};
|
|
1792
2554
|
outputFormat: "json";
|
|
1793
2555
|
status: 404;
|
|
@@ -1826,6 +2588,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1826
2588
|
} | {
|
|
1827
2589
|
output: {
|
|
1828
2590
|
error: string;
|
|
2591
|
+
code: string;
|
|
1829
2592
|
};
|
|
1830
2593
|
outputFormat: "json";
|
|
1831
2594
|
status: 500;
|
|
@@ -1861,7 +2624,11 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1861
2624
|
} | undefined;
|
|
1862
2625
|
};
|
|
1863
2626
|
};
|
|
1864
|
-
}
|
|
2627
|
+
};
|
|
2628
|
+
};
|
|
2629
|
+
} & {
|
|
2630
|
+
"/v1/providers/:name/known-models/:modelId": {
|
|
2631
|
+
$delete: {
|
|
1865
2632
|
output: {
|
|
1866
2633
|
models: {
|
|
1867
2634
|
modelId: string;
|
|
@@ -1898,36 +2665,11 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1898
2665
|
query: {
|
|
1899
2666
|
endpointName?: string | undefined;
|
|
1900
2667
|
};
|
|
1901
|
-
} & {
|
|
1902
|
-
json: {
|
|
1903
|
-
displayName?: string | undefined;
|
|
1904
|
-
contextSize?: number | undefined;
|
|
1905
|
-
capabilities?: {
|
|
1906
|
-
input?: {
|
|
1907
|
-
image?: {
|
|
1908
|
-
mediaTypes: string[];
|
|
1909
|
-
maxBytes: number;
|
|
1910
|
-
} | undefined;
|
|
1911
|
-
audio?: {
|
|
1912
|
-
mediaTypes: string[];
|
|
1913
|
-
maxBytes: number;
|
|
1914
|
-
} | undefined;
|
|
1915
|
-
} | undefined;
|
|
1916
|
-
voice?: {
|
|
1917
|
-
sts?: boolean | undefined;
|
|
1918
|
-
tts?: boolean | undefined;
|
|
1919
|
-
stt?: boolean | undefined;
|
|
1920
|
-
} | undefined;
|
|
1921
|
-
} | undefined;
|
|
1922
|
-
};
|
|
1923
2668
|
};
|
|
1924
|
-
}
|
|
1925
|
-
};
|
|
1926
|
-
} & {
|
|
1927
|
-
"/v1/providers/:name/known-models/:modelId": {
|
|
1928
|
-
$delete: {
|
|
2669
|
+
} | {
|
|
1929
2670
|
output: {
|
|
1930
2671
|
error: string;
|
|
2672
|
+
code: string;
|
|
1931
2673
|
};
|
|
1932
2674
|
outputFormat: "json";
|
|
1933
2675
|
status: 400;
|
|
@@ -1944,6 +2686,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1944
2686
|
} | {
|
|
1945
2687
|
output: {
|
|
1946
2688
|
error: string;
|
|
2689
|
+
code: string;
|
|
1947
2690
|
};
|
|
1948
2691
|
outputFormat: "json";
|
|
1949
2692
|
status: 404;
|
|
@@ -1960,6 +2703,7 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1960
2703
|
} | {
|
|
1961
2704
|
output: {
|
|
1962
2705
|
error: string;
|
|
2706
|
+
code: string;
|
|
1963
2707
|
};
|
|
1964
2708
|
outputFormat: "json";
|
|
1965
2709
|
status: 500;
|
|
@@ -1973,54 +2717,24 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
1973
2717
|
endpointName?: string | undefined;
|
|
1974
2718
|
};
|
|
1975
2719
|
};
|
|
1976
|
-
} | {
|
|
1977
|
-
output: {
|
|
1978
|
-
models: {
|
|
1979
|
-
modelId: string;
|
|
1980
|
-
endpointName?: string | undefined;
|
|
1981
|
-
displayName?: string | undefined;
|
|
1982
|
-
contextSize?: number | undefined;
|
|
1983
|
-
capabilities?: {
|
|
1984
|
-
input?: {
|
|
1985
|
-
image?: {
|
|
1986
|
-
mediaTypes: string[];
|
|
1987
|
-
maxBytes: number;
|
|
1988
|
-
} | undefined;
|
|
1989
|
-
audio?: {
|
|
1990
|
-
mediaTypes: string[];
|
|
1991
|
-
maxBytes: number;
|
|
1992
|
-
} | undefined;
|
|
1993
|
-
} | undefined;
|
|
1994
|
-
voice?: {
|
|
1995
|
-
sts?: boolean | undefined;
|
|
1996
|
-
tts?: boolean | undefined;
|
|
1997
|
-
stt?: boolean | undefined;
|
|
1998
|
-
} | undefined;
|
|
1999
|
-
} | undefined;
|
|
2000
|
-
}[];
|
|
2001
|
-
};
|
|
2002
|
-
outputFormat: "json";
|
|
2003
|
-
status: 200;
|
|
2004
|
-
input: {
|
|
2005
|
-
param: {
|
|
2006
|
-
name: string;
|
|
2007
|
-
modelId: string;
|
|
2008
|
-
};
|
|
2009
|
-
} & {
|
|
2010
|
-
query: {
|
|
2011
|
-
endpointName?: string | undefined;
|
|
2012
|
-
};
|
|
2013
|
-
};
|
|
2014
2720
|
};
|
|
2015
2721
|
};
|
|
2016
2722
|
} & {
|
|
2017
2723
|
"/v1/introspect/:path": {
|
|
2018
2724
|
$get: {
|
|
2019
2725
|
output: {
|
|
2020
|
-
|
|
2726
|
+
path: string[];
|
|
2727
|
+
state: {
|
|
2728
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
2729
|
+
} | null;
|
|
2730
|
+
children: {
|
|
2731
|
+
id: string;
|
|
2732
|
+
hasState: boolean;
|
|
2733
|
+
hasChildren: boolean;
|
|
2734
|
+
}[];
|
|
2021
2735
|
};
|
|
2022
2736
|
outputFormat: "json";
|
|
2023
|
-
status:
|
|
2737
|
+
status: 200;
|
|
2024
2738
|
input: {
|
|
2025
2739
|
param: {
|
|
2026
2740
|
path: string;
|
|
@@ -2029,9 +2743,10 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
2029
2743
|
} | {
|
|
2030
2744
|
output: {
|
|
2031
2745
|
error: string;
|
|
2746
|
+
code: string;
|
|
2032
2747
|
};
|
|
2033
2748
|
outputFormat: "json";
|
|
2034
|
-
status:
|
|
2749
|
+
status: 400;
|
|
2035
2750
|
input: {
|
|
2036
2751
|
param: {
|
|
2037
2752
|
path: string;
|
|
@@ -2040,9 +2755,10 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
2040
2755
|
} | {
|
|
2041
2756
|
output: {
|
|
2042
2757
|
error: string;
|
|
2758
|
+
code: string;
|
|
2043
2759
|
};
|
|
2044
2760
|
outputFormat: "json";
|
|
2045
|
-
status:
|
|
2761
|
+
status: 404;
|
|
2046
2762
|
input: {
|
|
2047
2763
|
param: {
|
|
2048
2764
|
path: string;
|
|
@@ -2050,18 +2766,11 @@ export type AdminApi = import("hono/hono-base").HonoBase<any, {
|
|
|
2050
2766
|
};
|
|
2051
2767
|
} | {
|
|
2052
2768
|
output: {
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
2056
|
-
} | null;
|
|
2057
|
-
children: {
|
|
2058
|
-
id: string;
|
|
2059
|
-
hasState: boolean;
|
|
2060
|
-
hasChildren: boolean;
|
|
2061
|
-
}[];
|
|
2769
|
+
error: string;
|
|
2770
|
+
code: string;
|
|
2062
2771
|
};
|
|
2063
2772
|
outputFormat: "json";
|
|
2064
|
-
status:
|
|
2773
|
+
status: 500;
|
|
2065
2774
|
input: {
|
|
2066
2775
|
param: {
|
|
2067
2776
|
path: string;
|