@dexto/client-sdk 1.2.3 → 1.2.5
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 +3 -4
- package/dist/client.d.ts +3019 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/index.cjs +115 -799
- package/dist/index.d.ts +8 -230
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +114 -800
- package/dist/streaming.d.ts +57 -0
- package/dist/streaming.d.ts.map +1 -0
- package/dist/types.d.ts +10 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +12 -4
- package/dist/index.d.cts +0 -232
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,3019 @@
|
|
|
1
|
+
import type { ClientConfig } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Create a type-safe Dexto client using Hono's typed client
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import { createDextoClient } from '@dexto/client-sdk';
|
|
8
|
+
*
|
|
9
|
+
* const client = createDextoClient({
|
|
10
|
+
* baseUrl: 'http://localhost:3001',
|
|
11
|
+
* apiKey: 'optional-api-key'
|
|
12
|
+
* });
|
|
13
|
+
*
|
|
14
|
+
* // Create a session
|
|
15
|
+
* const session = await client.api.sessions.$post({
|
|
16
|
+
* json: { sessionId: 'my-session' }
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* // Send a synchronous message
|
|
20
|
+
* const response = await client.api['message-sync'].$post({
|
|
21
|
+
* json: { message: 'Hello!', sessionId: 'my-session' }
|
|
22
|
+
* });
|
|
23
|
+
* const { response: text } = await response.json();
|
|
24
|
+
*
|
|
25
|
+
* // Search messages
|
|
26
|
+
* const searchResults = await client.api.search.messages.$get({
|
|
27
|
+
* query: { q: 'hello', limit: 10 }
|
|
28
|
+
* });
|
|
29
|
+
*
|
|
30
|
+
* // Streaming responses with SSE
|
|
31
|
+
* import { createMessageStream } from '@dexto/client-sdk';
|
|
32
|
+
*
|
|
33
|
+
* const streamPromise = client.api['message-stream'].$post({
|
|
34
|
+
* json: { message: 'Tell me a story', sessionId: 'my-session' }
|
|
35
|
+
* });
|
|
36
|
+
*
|
|
37
|
+
* // Parse SSE events using createMessageStream
|
|
38
|
+
* const stream = createMessageStream(streamPromise);
|
|
39
|
+
* for await (const event of stream) {
|
|
40
|
+
* if (event.type === 'llm:chunk') {
|
|
41
|
+
* process.stdout.write(event.content);
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare function createDextoClient(config: ClientConfig): {
|
|
47
|
+
health: import("hono/client").ClientRequest<{
|
|
48
|
+
$get: {
|
|
49
|
+
input: {};
|
|
50
|
+
output: string;
|
|
51
|
+
outputFormat: "text";
|
|
52
|
+
status: 200;
|
|
53
|
+
};
|
|
54
|
+
}>;
|
|
55
|
+
} & {
|
|
56
|
+
api: {
|
|
57
|
+
agents: import("hono/client").ClientRequest<{
|
|
58
|
+
$get: {
|
|
59
|
+
input: {};
|
|
60
|
+
output: {
|
|
61
|
+
installed: {
|
|
62
|
+
description: string;
|
|
63
|
+
type: "custom" | "builtin";
|
|
64
|
+
id: string;
|
|
65
|
+
name: string;
|
|
66
|
+
tags?: string[] | undefined;
|
|
67
|
+
author?: string | undefined;
|
|
68
|
+
}[];
|
|
69
|
+
available: {
|
|
70
|
+
description: string;
|
|
71
|
+
type: "custom" | "builtin";
|
|
72
|
+
id: string;
|
|
73
|
+
name: string;
|
|
74
|
+
tags?: string[] | undefined;
|
|
75
|
+
author?: string | undefined;
|
|
76
|
+
}[];
|
|
77
|
+
current: {
|
|
78
|
+
id: string | null;
|
|
79
|
+
name: string | null;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
outputFormat: "json";
|
|
83
|
+
status: 200;
|
|
84
|
+
};
|
|
85
|
+
}>;
|
|
86
|
+
};
|
|
87
|
+
} & {
|
|
88
|
+
api: {
|
|
89
|
+
agents: {
|
|
90
|
+
current: import("hono/client").ClientRequest<{
|
|
91
|
+
$get: {
|
|
92
|
+
input: {};
|
|
93
|
+
output: {
|
|
94
|
+
id: string | null;
|
|
95
|
+
name: string | null;
|
|
96
|
+
};
|
|
97
|
+
outputFormat: "json";
|
|
98
|
+
status: 200;
|
|
99
|
+
};
|
|
100
|
+
}>;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
} & {
|
|
104
|
+
api: {
|
|
105
|
+
agents: {
|
|
106
|
+
install: import("hono/client").ClientRequest<{
|
|
107
|
+
$post: {
|
|
108
|
+
input: {
|
|
109
|
+
json: {
|
|
110
|
+
id: string;
|
|
111
|
+
path?: string | undefined;
|
|
112
|
+
} | {
|
|
113
|
+
id: string;
|
|
114
|
+
metadata: {
|
|
115
|
+
tags: string[];
|
|
116
|
+
description: string;
|
|
117
|
+
author: string;
|
|
118
|
+
main?: string | undefined;
|
|
119
|
+
};
|
|
120
|
+
sourcePath: string;
|
|
121
|
+
name?: string | undefined;
|
|
122
|
+
injectPreferences?: boolean | undefined;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
output: {
|
|
126
|
+
type: "custom" | "builtin";
|
|
127
|
+
id: string;
|
|
128
|
+
name: string;
|
|
129
|
+
installed: true;
|
|
130
|
+
};
|
|
131
|
+
outputFormat: "json";
|
|
132
|
+
status: 201;
|
|
133
|
+
};
|
|
134
|
+
}>;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
} & {
|
|
138
|
+
api: {
|
|
139
|
+
agents: {
|
|
140
|
+
switch: import("hono/client").ClientRequest<{
|
|
141
|
+
$post: {
|
|
142
|
+
input: {
|
|
143
|
+
json: {
|
|
144
|
+
id: string;
|
|
145
|
+
path?: string | undefined;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
output: {
|
|
149
|
+
id: string;
|
|
150
|
+
name: string;
|
|
151
|
+
switched: true;
|
|
152
|
+
};
|
|
153
|
+
outputFormat: "json";
|
|
154
|
+
status: 200;
|
|
155
|
+
};
|
|
156
|
+
}>;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
} & {
|
|
160
|
+
api: {
|
|
161
|
+
agents: {
|
|
162
|
+
"validate-name": import("hono/client").ClientRequest<{
|
|
163
|
+
$post: {
|
|
164
|
+
input: {
|
|
165
|
+
json: {
|
|
166
|
+
id: string;
|
|
167
|
+
path?: string | undefined;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
output: {
|
|
171
|
+
valid: boolean;
|
|
172
|
+
message?: string | undefined;
|
|
173
|
+
conflict?: string | undefined;
|
|
174
|
+
};
|
|
175
|
+
outputFormat: "json";
|
|
176
|
+
status: 200;
|
|
177
|
+
};
|
|
178
|
+
}>;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
} & {
|
|
182
|
+
api: {
|
|
183
|
+
agents: {
|
|
184
|
+
uninstall: import("hono/client").ClientRequest<{
|
|
185
|
+
$post: {
|
|
186
|
+
input: {
|
|
187
|
+
json: {
|
|
188
|
+
id: string;
|
|
189
|
+
force?: boolean | undefined;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
output: {
|
|
193
|
+
id: string;
|
|
194
|
+
uninstalled: true;
|
|
195
|
+
};
|
|
196
|
+
outputFormat: "json";
|
|
197
|
+
status: 200;
|
|
198
|
+
};
|
|
199
|
+
}>;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
} & {
|
|
203
|
+
api: {
|
|
204
|
+
agents: {
|
|
205
|
+
custom: {
|
|
206
|
+
create: import("hono/client").ClientRequest<{
|
|
207
|
+
$post: {
|
|
208
|
+
input: {
|
|
209
|
+
json: {
|
|
210
|
+
description: string;
|
|
211
|
+
config: {
|
|
212
|
+
llm: {
|
|
213
|
+
apiKey: string;
|
|
214
|
+
model: string;
|
|
215
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
|
|
216
|
+
router?: "vercel" | "in-built" | undefined;
|
|
217
|
+
maxIterations?: number | undefined;
|
|
218
|
+
baseURL?: string | undefined;
|
|
219
|
+
maxInputTokens?: number | undefined;
|
|
220
|
+
maxOutputTokens?: number | undefined;
|
|
221
|
+
temperature?: number | undefined;
|
|
222
|
+
allowedMediaTypes?: string[] | undefined;
|
|
223
|
+
};
|
|
224
|
+
systemPrompt: string | {
|
|
225
|
+
contributors?: ({
|
|
226
|
+
type: "static";
|
|
227
|
+
content: string;
|
|
228
|
+
id: string;
|
|
229
|
+
priority: number;
|
|
230
|
+
enabled?: boolean | undefined;
|
|
231
|
+
} | {
|
|
232
|
+
type: "dynamic";
|
|
233
|
+
id: string;
|
|
234
|
+
priority: number;
|
|
235
|
+
source: "resources" | "dateTime" | "memorySummary";
|
|
236
|
+
enabled?: boolean | undefined;
|
|
237
|
+
} | {
|
|
238
|
+
type: "file";
|
|
239
|
+
id: string;
|
|
240
|
+
priority: number;
|
|
241
|
+
files: string[];
|
|
242
|
+
options?: {
|
|
243
|
+
includeFilenames?: boolean | undefined;
|
|
244
|
+
separator?: string | undefined;
|
|
245
|
+
errorHandling?: "error" | "skip" | undefined;
|
|
246
|
+
maxFileSize?: number | undefined;
|
|
247
|
+
includeMetadata?: boolean | undefined;
|
|
248
|
+
} | undefined;
|
|
249
|
+
enabled?: boolean | undefined;
|
|
250
|
+
} | {
|
|
251
|
+
type: "memory";
|
|
252
|
+
id: string;
|
|
253
|
+
priority: number;
|
|
254
|
+
options?: {
|
|
255
|
+
includeTimestamps?: boolean | undefined;
|
|
256
|
+
includeTags?: boolean | undefined;
|
|
257
|
+
limit?: number | undefined;
|
|
258
|
+
pinnedOnly?: boolean | undefined;
|
|
259
|
+
} | undefined;
|
|
260
|
+
enabled?: boolean | undefined;
|
|
261
|
+
})[] | undefined;
|
|
262
|
+
};
|
|
263
|
+
storage?: {
|
|
264
|
+
database: {
|
|
265
|
+
type: "in-memory";
|
|
266
|
+
options?: Record<string, any> | undefined;
|
|
267
|
+
maxConnections?: number | undefined;
|
|
268
|
+
idleTimeoutMillis?: number | undefined;
|
|
269
|
+
connectionTimeoutMillis?: number | undefined;
|
|
270
|
+
} | {
|
|
271
|
+
path: string;
|
|
272
|
+
type: "sqlite";
|
|
273
|
+
options?: Record<string, any> | undefined;
|
|
274
|
+
maxConnections?: number | undefined;
|
|
275
|
+
idleTimeoutMillis?: number | undefined;
|
|
276
|
+
connectionTimeoutMillis?: number | undefined;
|
|
277
|
+
} | {
|
|
278
|
+
type: "postgres";
|
|
279
|
+
password?: string | undefined;
|
|
280
|
+
options?: Record<string, any> | undefined;
|
|
281
|
+
url?: string | undefined;
|
|
282
|
+
maxConnections?: number | undefined;
|
|
283
|
+
idleTimeoutMillis?: number | undefined;
|
|
284
|
+
connectionTimeoutMillis?: number | undefined;
|
|
285
|
+
host?: string | undefined;
|
|
286
|
+
port?: number | undefined;
|
|
287
|
+
database?: string | undefined;
|
|
288
|
+
connectionString?: string | undefined;
|
|
289
|
+
};
|
|
290
|
+
cache: {
|
|
291
|
+
type: "in-memory";
|
|
292
|
+
options?: Record<string, any> | undefined;
|
|
293
|
+
maxConnections?: number | undefined;
|
|
294
|
+
idleTimeoutMillis?: number | undefined;
|
|
295
|
+
connectionTimeoutMillis?: number | undefined;
|
|
296
|
+
} | {
|
|
297
|
+
type: "redis";
|
|
298
|
+
password?: string | undefined;
|
|
299
|
+
options?: Record<string, any> | undefined;
|
|
300
|
+
url?: string | undefined;
|
|
301
|
+
maxConnections?: number | undefined;
|
|
302
|
+
idleTimeoutMillis?: number | undefined;
|
|
303
|
+
connectionTimeoutMillis?: number | undefined;
|
|
304
|
+
host?: string | undefined;
|
|
305
|
+
port?: number | undefined;
|
|
306
|
+
database?: number | undefined;
|
|
307
|
+
};
|
|
308
|
+
blob: {
|
|
309
|
+
type: "in-memory";
|
|
310
|
+
maxBlobSize?: number | undefined;
|
|
311
|
+
maxTotalSize?: number | undefined;
|
|
312
|
+
} | {
|
|
313
|
+
type: "local";
|
|
314
|
+
storePath: string;
|
|
315
|
+
maxBlobSize?: number | undefined;
|
|
316
|
+
maxTotalSize?: number | undefined;
|
|
317
|
+
cleanupAfterDays?: number | undefined;
|
|
318
|
+
};
|
|
319
|
+
} | undefined;
|
|
320
|
+
telemetry?: {
|
|
321
|
+
enabled?: boolean | undefined;
|
|
322
|
+
serviceName?: string | undefined;
|
|
323
|
+
tracerName?: string | undefined;
|
|
324
|
+
export?: {
|
|
325
|
+
type: "otlp";
|
|
326
|
+
headers?: Record<string, string> | undefined;
|
|
327
|
+
protocol?: "http" | "grpc" | undefined;
|
|
328
|
+
endpoint?: string | undefined;
|
|
329
|
+
} | {
|
|
330
|
+
type: "console";
|
|
331
|
+
} | undefined;
|
|
332
|
+
} | undefined;
|
|
333
|
+
logger?: {
|
|
334
|
+
level?: "debug" | "info" | "warn" | "error" | "silly" | undefined;
|
|
335
|
+
transports?: ({
|
|
336
|
+
type: "console";
|
|
337
|
+
colorize?: boolean | undefined;
|
|
338
|
+
} | {
|
|
339
|
+
path: string;
|
|
340
|
+
type: "file";
|
|
341
|
+
maxFiles?: number | undefined;
|
|
342
|
+
maxSize?: number | undefined;
|
|
343
|
+
} | {
|
|
344
|
+
token: string;
|
|
345
|
+
type: "upstash";
|
|
346
|
+
url: string;
|
|
347
|
+
listName?: string | undefined;
|
|
348
|
+
maxListLength?: number | undefined;
|
|
349
|
+
batchSize?: number | undefined;
|
|
350
|
+
})[] | undefined;
|
|
351
|
+
} | undefined;
|
|
352
|
+
elicitation?: {
|
|
353
|
+
timeout?: number | undefined;
|
|
354
|
+
enabled?: boolean | undefined;
|
|
355
|
+
} | undefined;
|
|
356
|
+
agentId?: string | undefined;
|
|
357
|
+
starterPrompts?: {
|
|
358
|
+
prompt: string;
|
|
359
|
+
id: string;
|
|
360
|
+
description?: string | undefined;
|
|
361
|
+
title?: string | undefined;
|
|
362
|
+
priority?: number | undefined;
|
|
363
|
+
category?: string | undefined;
|
|
364
|
+
}[] | undefined;
|
|
365
|
+
agentCard?: {
|
|
366
|
+
description: string;
|
|
367
|
+
url: string;
|
|
368
|
+
name: string;
|
|
369
|
+
version: string;
|
|
370
|
+
metadata?: import("zod").objectInputType<{
|
|
371
|
+
dexto: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
372
|
+
authentication: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
373
|
+
schemes: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
374
|
+
credentials: import("zod").ZodOptional<import("zod").ZodString>;
|
|
375
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
376
|
+
schemes: string[];
|
|
377
|
+
credentials?: string | undefined;
|
|
378
|
+
}, {
|
|
379
|
+
schemes?: string[] | undefined;
|
|
380
|
+
credentials?: string | undefined;
|
|
381
|
+
}>>;
|
|
382
|
+
delegation: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
383
|
+
protocol: import("zod").ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
|
|
384
|
+
endpoint: import("zod").ZodString;
|
|
385
|
+
supportsSession: import("zod").ZodBoolean;
|
|
386
|
+
supportsStreaming: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
387
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
388
|
+
protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
|
|
389
|
+
endpoint: string;
|
|
390
|
+
supportsSession: boolean;
|
|
391
|
+
supportsStreaming?: boolean | undefined;
|
|
392
|
+
}, {
|
|
393
|
+
protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
|
|
394
|
+
endpoint: string;
|
|
395
|
+
supportsSession: boolean;
|
|
396
|
+
supportsStreaming?: boolean | undefined;
|
|
397
|
+
}>>;
|
|
398
|
+
owner: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
399
|
+
userId: import("zod").ZodString;
|
|
400
|
+
username: import("zod").ZodString;
|
|
401
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
402
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
403
|
+
userId: string;
|
|
404
|
+
username: string;
|
|
405
|
+
email?: string | undefined;
|
|
406
|
+
}, {
|
|
407
|
+
userId: string;
|
|
408
|
+
username: string;
|
|
409
|
+
email?: string | undefined;
|
|
410
|
+
}>>;
|
|
411
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
412
|
+
authentication?: {
|
|
413
|
+
schemes: string[];
|
|
414
|
+
credentials?: string | undefined;
|
|
415
|
+
} | undefined;
|
|
416
|
+
delegation?: {
|
|
417
|
+
protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
|
|
418
|
+
endpoint: string;
|
|
419
|
+
supportsSession: boolean;
|
|
420
|
+
supportsStreaming?: boolean | undefined;
|
|
421
|
+
} | undefined;
|
|
422
|
+
owner?: {
|
|
423
|
+
userId: string;
|
|
424
|
+
username: string;
|
|
425
|
+
email?: string | undefined;
|
|
426
|
+
} | undefined;
|
|
427
|
+
}, {
|
|
428
|
+
authentication?: {
|
|
429
|
+
schemes?: string[] | undefined;
|
|
430
|
+
credentials?: string | undefined;
|
|
431
|
+
} | undefined;
|
|
432
|
+
delegation?: {
|
|
433
|
+
protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
|
|
434
|
+
endpoint: string;
|
|
435
|
+
supportsSession: boolean;
|
|
436
|
+
supportsStreaming?: boolean | undefined;
|
|
437
|
+
} | undefined;
|
|
438
|
+
owner?: {
|
|
439
|
+
userId: string;
|
|
440
|
+
username: string;
|
|
441
|
+
email?: string | undefined;
|
|
442
|
+
} | undefined;
|
|
443
|
+
}>>;
|
|
444
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
445
|
+
capabilities?: {
|
|
446
|
+
streaming?: boolean | undefined;
|
|
447
|
+
pushNotifications?: boolean | undefined;
|
|
448
|
+
stateTransitionHistory?: boolean | undefined;
|
|
449
|
+
} | undefined;
|
|
450
|
+
provider?: {
|
|
451
|
+
url: string;
|
|
452
|
+
organization: string;
|
|
453
|
+
} | undefined;
|
|
454
|
+
protocolVersion?: string | undefined;
|
|
455
|
+
preferredTransport?: "JSONRPC" | "GRPC" | "HTTP+JSON" | undefined;
|
|
456
|
+
defaultInputModes?: string[] | undefined;
|
|
457
|
+
defaultOutputModes?: string[] | undefined;
|
|
458
|
+
skills?: {
|
|
459
|
+
description: string;
|
|
460
|
+
name: string;
|
|
461
|
+
id: string;
|
|
462
|
+
tags: string[];
|
|
463
|
+
examples?: string[] | undefined;
|
|
464
|
+
inputModes?: string[] | undefined;
|
|
465
|
+
outputModes?: string[] | undefined;
|
|
466
|
+
}[] | undefined;
|
|
467
|
+
iconUrl?: string | undefined;
|
|
468
|
+
documentationUrl?: string | undefined;
|
|
469
|
+
additionalInterfaces?: {
|
|
470
|
+
url: string;
|
|
471
|
+
transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
|
|
472
|
+
}[] | undefined;
|
|
473
|
+
securitySchemes?: Record<string, {
|
|
474
|
+
type: "apiKey";
|
|
475
|
+
name: string;
|
|
476
|
+
in: "query" | "header" | "cookie";
|
|
477
|
+
description?: string | undefined;
|
|
478
|
+
} | {
|
|
479
|
+
type: "http";
|
|
480
|
+
scheme: string;
|
|
481
|
+
description?: string | undefined;
|
|
482
|
+
bearerFormat?: string | undefined;
|
|
483
|
+
} | {
|
|
484
|
+
type: "oauth2";
|
|
485
|
+
flows: {
|
|
486
|
+
password?: {
|
|
487
|
+
scopes: Record<string, string>;
|
|
488
|
+
authorizationUrl?: string | undefined;
|
|
489
|
+
tokenUrl?: string | undefined;
|
|
490
|
+
refreshUrl?: string | undefined;
|
|
491
|
+
} | undefined;
|
|
492
|
+
implicit?: {
|
|
493
|
+
scopes: Record<string, string>;
|
|
494
|
+
authorizationUrl?: string | undefined;
|
|
495
|
+
tokenUrl?: string | undefined;
|
|
496
|
+
refreshUrl?: string | undefined;
|
|
497
|
+
} | undefined;
|
|
498
|
+
clientCredentials?: {
|
|
499
|
+
scopes: Record<string, string>;
|
|
500
|
+
authorizationUrl?: string | undefined;
|
|
501
|
+
tokenUrl?: string | undefined;
|
|
502
|
+
refreshUrl?: string | undefined;
|
|
503
|
+
} | undefined;
|
|
504
|
+
authorizationCode?: {
|
|
505
|
+
scopes: Record<string, string>;
|
|
506
|
+
authorizationUrl?: string | undefined;
|
|
507
|
+
tokenUrl?: string | undefined;
|
|
508
|
+
refreshUrl?: string | undefined;
|
|
509
|
+
} | undefined;
|
|
510
|
+
};
|
|
511
|
+
description?: string | undefined;
|
|
512
|
+
} | {
|
|
513
|
+
type: "openIdConnect";
|
|
514
|
+
openIdConnectUrl: string;
|
|
515
|
+
description?: string | undefined;
|
|
516
|
+
} | {
|
|
517
|
+
type: "mutualTLS";
|
|
518
|
+
description?: string | undefined;
|
|
519
|
+
}> | undefined;
|
|
520
|
+
security?: Record<string, string[]>[] | undefined;
|
|
521
|
+
supportsAuthenticatedExtendedCard?: boolean | undefined;
|
|
522
|
+
signatures?: {
|
|
523
|
+
protected: string;
|
|
524
|
+
signature: string;
|
|
525
|
+
}[] | undefined;
|
|
526
|
+
} | undefined;
|
|
527
|
+
greeting?: string | undefined;
|
|
528
|
+
mcpServers?: Record<string, {
|
|
529
|
+
type: "stdio";
|
|
530
|
+
command: string;
|
|
531
|
+
timeout?: number | undefined;
|
|
532
|
+
args?: string[] | undefined;
|
|
533
|
+
env?: Record<string, string> | undefined;
|
|
534
|
+
connectionMode?: "strict" | "lenient" | undefined;
|
|
535
|
+
} | {
|
|
536
|
+
type: "sse";
|
|
537
|
+
url: string;
|
|
538
|
+
timeout?: number | undefined;
|
|
539
|
+
connectionMode?: "strict" | "lenient" | undefined;
|
|
540
|
+
headers?: Record<string, string> | undefined;
|
|
541
|
+
} | {
|
|
542
|
+
type: "http";
|
|
543
|
+
url: string;
|
|
544
|
+
timeout?: number | undefined;
|
|
545
|
+
connectionMode?: "strict" | "lenient" | undefined;
|
|
546
|
+
headers?: Record<string, string> | undefined;
|
|
547
|
+
}> | undefined;
|
|
548
|
+
internalTools?: ("search_history" | "ask_user" | "read_file" | "glob_files" | "grep_content" | "write_file" | "edit_file" | "bash_exec" | "bash_output" | "kill_process" | "delegate_to_url")[] | undefined;
|
|
549
|
+
sessions?: {
|
|
550
|
+
maxSessions?: number | undefined;
|
|
551
|
+
sessionTTL?: number | undefined;
|
|
552
|
+
} | undefined;
|
|
553
|
+
toolConfirmation?: {
|
|
554
|
+
timeout?: number | undefined;
|
|
555
|
+
mode?: "manual" | "auto-approve" | "auto-deny" | undefined;
|
|
556
|
+
allowedToolsStorage?: "storage" | "memory" | undefined;
|
|
557
|
+
toolPolicies?: {
|
|
558
|
+
alwaysAllow?: string[] | undefined;
|
|
559
|
+
alwaysDeny?: string[] | undefined;
|
|
560
|
+
} | undefined;
|
|
561
|
+
} | undefined;
|
|
562
|
+
internalResources?: ({
|
|
563
|
+
type: "filesystem";
|
|
564
|
+
paths: string[];
|
|
565
|
+
maxFiles?: number | undefined;
|
|
566
|
+
maxDepth?: number | undefined;
|
|
567
|
+
includeHidden?: boolean | undefined;
|
|
568
|
+
includeExtensions?: string[] | undefined;
|
|
569
|
+
} | {
|
|
570
|
+
type: "blob";
|
|
571
|
+
})[] | {
|
|
572
|
+
enabled?: boolean | undefined;
|
|
573
|
+
resources?: ({
|
|
574
|
+
type: "filesystem";
|
|
575
|
+
paths: string[];
|
|
576
|
+
maxFiles?: number | undefined;
|
|
577
|
+
maxDepth?: number | undefined;
|
|
578
|
+
includeHidden?: boolean | undefined;
|
|
579
|
+
includeExtensions?: string[] | undefined;
|
|
580
|
+
} | {
|
|
581
|
+
type: "blob";
|
|
582
|
+
})[] | undefined;
|
|
583
|
+
} | undefined;
|
|
584
|
+
plugins?: {
|
|
585
|
+
custom?: {
|
|
586
|
+
name: string;
|
|
587
|
+
priority: number;
|
|
588
|
+
module: string;
|
|
589
|
+
blocking: boolean;
|
|
590
|
+
config?: Record<string, any> | undefined;
|
|
591
|
+
enabled?: boolean | undefined;
|
|
592
|
+
}[] | undefined;
|
|
593
|
+
contentPolicy?: import("zod").objectInputType<{
|
|
594
|
+
priority: import("zod").ZodNumber;
|
|
595
|
+
blocking: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
596
|
+
enabled: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
597
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
598
|
+
responseSanitizer?: import("zod").objectInputType<{
|
|
599
|
+
priority: import("zod").ZodNumber;
|
|
600
|
+
blocking: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
601
|
+
enabled: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
602
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
603
|
+
} | undefined;
|
|
604
|
+
};
|
|
605
|
+
id: string;
|
|
606
|
+
name: string;
|
|
607
|
+
tags?: string[] | undefined;
|
|
608
|
+
author?: string | undefined;
|
|
609
|
+
};
|
|
610
|
+
};
|
|
611
|
+
output: {
|
|
612
|
+
id: string;
|
|
613
|
+
name: string;
|
|
614
|
+
created: true;
|
|
615
|
+
};
|
|
616
|
+
outputFormat: "json";
|
|
617
|
+
status: 201;
|
|
618
|
+
};
|
|
619
|
+
}>;
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
};
|
|
623
|
+
} & {
|
|
624
|
+
api: {
|
|
625
|
+
agent: {
|
|
626
|
+
path: import("hono/client").ClientRequest<{
|
|
627
|
+
$get: {
|
|
628
|
+
input: {};
|
|
629
|
+
output: {
|
|
630
|
+
path: string;
|
|
631
|
+
name: string;
|
|
632
|
+
relativePath: string;
|
|
633
|
+
isDefault: boolean;
|
|
634
|
+
};
|
|
635
|
+
outputFormat: "json";
|
|
636
|
+
status: 200;
|
|
637
|
+
};
|
|
638
|
+
}>;
|
|
639
|
+
};
|
|
640
|
+
};
|
|
641
|
+
} & {
|
|
642
|
+
api: {
|
|
643
|
+
agent: {
|
|
644
|
+
config: import("hono/client").ClientRequest<{
|
|
645
|
+
$get: {
|
|
646
|
+
input: {};
|
|
647
|
+
output: {
|
|
648
|
+
path: string;
|
|
649
|
+
lastModified: string;
|
|
650
|
+
yaml: string;
|
|
651
|
+
relativePath: string;
|
|
652
|
+
warnings: string[];
|
|
653
|
+
};
|
|
654
|
+
outputFormat: "json";
|
|
655
|
+
status: 200;
|
|
656
|
+
};
|
|
657
|
+
$post: {
|
|
658
|
+
input: {
|
|
659
|
+
json: {
|
|
660
|
+
yaml: string;
|
|
661
|
+
};
|
|
662
|
+
};
|
|
663
|
+
output: {
|
|
664
|
+
path: string;
|
|
665
|
+
message: string;
|
|
666
|
+
ok: true;
|
|
667
|
+
restarted: boolean;
|
|
668
|
+
reloaded: boolean;
|
|
669
|
+
changesApplied: string[];
|
|
670
|
+
};
|
|
671
|
+
outputFormat: "json";
|
|
672
|
+
status: 200;
|
|
673
|
+
};
|
|
674
|
+
}>;
|
|
675
|
+
};
|
|
676
|
+
};
|
|
677
|
+
} & {
|
|
678
|
+
api: {
|
|
679
|
+
agent: {
|
|
680
|
+
validate: import("hono/client").ClientRequest<{
|
|
681
|
+
$post: {
|
|
682
|
+
input: {
|
|
683
|
+
json: {
|
|
684
|
+
yaml: string;
|
|
685
|
+
};
|
|
686
|
+
};
|
|
687
|
+
output: {
|
|
688
|
+
valid: boolean;
|
|
689
|
+
warnings: {
|
|
690
|
+
path: string;
|
|
691
|
+
code: string;
|
|
692
|
+
message: string;
|
|
693
|
+
}[];
|
|
694
|
+
errors: {
|
|
695
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
696
|
+
code: string;
|
|
697
|
+
message: string;
|
|
698
|
+
path?: string | undefined;
|
|
699
|
+
line?: number | undefined;
|
|
700
|
+
column?: number | undefined;
|
|
701
|
+
}[];
|
|
702
|
+
};
|
|
703
|
+
outputFormat: "json";
|
|
704
|
+
status: 200;
|
|
705
|
+
};
|
|
706
|
+
}>;
|
|
707
|
+
};
|
|
708
|
+
};
|
|
709
|
+
} & {
|
|
710
|
+
api: {
|
|
711
|
+
agent: {
|
|
712
|
+
config: {
|
|
713
|
+
export: import("hono/client").ClientRequest<{
|
|
714
|
+
$get: {
|
|
715
|
+
input: {
|
|
716
|
+
query: {
|
|
717
|
+
sessionId?: string | undefined;
|
|
718
|
+
};
|
|
719
|
+
};
|
|
720
|
+
output: Response;
|
|
721
|
+
outputFormat: "json";
|
|
722
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
723
|
+
};
|
|
724
|
+
}>;
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
};
|
|
728
|
+
} & {
|
|
729
|
+
api: {
|
|
730
|
+
approvals: {
|
|
731
|
+
":approvalId": import("hono/client").ClientRequest<{
|
|
732
|
+
$post: {
|
|
733
|
+
input: {
|
|
734
|
+
param: {
|
|
735
|
+
approvalId: string;
|
|
736
|
+
};
|
|
737
|
+
} & {
|
|
738
|
+
header: {
|
|
739
|
+
"Idempotency-Key"?: string | undefined;
|
|
740
|
+
};
|
|
741
|
+
} & {
|
|
742
|
+
json: {
|
|
743
|
+
status: import("@dexto/core").ApprovalStatus.APPROVED | import("@dexto/core").ApprovalStatus.DENIED;
|
|
744
|
+
formData?: Record<string, unknown> | undefined;
|
|
745
|
+
rememberChoice?: boolean | undefined;
|
|
746
|
+
};
|
|
747
|
+
};
|
|
748
|
+
output: {};
|
|
749
|
+
outputFormat: string;
|
|
750
|
+
status: 400;
|
|
751
|
+
} | {
|
|
752
|
+
input: {
|
|
753
|
+
param: {
|
|
754
|
+
approvalId: string;
|
|
755
|
+
};
|
|
756
|
+
} & {
|
|
757
|
+
header: {
|
|
758
|
+
"Idempotency-Key"?: string | undefined;
|
|
759
|
+
};
|
|
760
|
+
} & {
|
|
761
|
+
json: {
|
|
762
|
+
status: import("@dexto/core").ApprovalStatus.APPROVED | import("@dexto/core").ApprovalStatus.DENIED;
|
|
763
|
+
formData?: Record<string, unknown> | undefined;
|
|
764
|
+
rememberChoice?: boolean | undefined;
|
|
765
|
+
};
|
|
766
|
+
};
|
|
767
|
+
output: {};
|
|
768
|
+
outputFormat: string;
|
|
769
|
+
status: 404;
|
|
770
|
+
} | {
|
|
771
|
+
input: {
|
|
772
|
+
param: {
|
|
773
|
+
approvalId: string;
|
|
774
|
+
};
|
|
775
|
+
} & {
|
|
776
|
+
header: {
|
|
777
|
+
"Idempotency-Key"?: string | undefined;
|
|
778
|
+
};
|
|
779
|
+
} & {
|
|
780
|
+
json: {
|
|
781
|
+
status: import("@dexto/core").ApprovalStatus.APPROVED | import("@dexto/core").ApprovalStatus.DENIED;
|
|
782
|
+
formData?: Record<string, unknown> | undefined;
|
|
783
|
+
rememberChoice?: boolean | undefined;
|
|
784
|
+
};
|
|
785
|
+
};
|
|
786
|
+
output: {};
|
|
787
|
+
outputFormat: string;
|
|
788
|
+
status: 503;
|
|
789
|
+
} | {
|
|
790
|
+
input: {
|
|
791
|
+
param: {
|
|
792
|
+
approvalId: string;
|
|
793
|
+
};
|
|
794
|
+
} & {
|
|
795
|
+
header: {
|
|
796
|
+
"Idempotency-Key"?: string | undefined;
|
|
797
|
+
};
|
|
798
|
+
} & {
|
|
799
|
+
json: {
|
|
800
|
+
status: import("@dexto/core").ApprovalStatus.APPROVED | import("@dexto/core").ApprovalStatus.DENIED;
|
|
801
|
+
formData?: Record<string, unknown> | undefined;
|
|
802
|
+
rememberChoice?: boolean | undefined;
|
|
803
|
+
};
|
|
804
|
+
};
|
|
805
|
+
output: {
|
|
806
|
+
status: import("@dexto/core").ApprovalStatus.APPROVED | import("@dexto/core").ApprovalStatus.DENIED;
|
|
807
|
+
ok: boolean;
|
|
808
|
+
approvalId: string;
|
|
809
|
+
};
|
|
810
|
+
outputFormat: "json";
|
|
811
|
+
status: 200;
|
|
812
|
+
};
|
|
813
|
+
}>;
|
|
814
|
+
};
|
|
815
|
+
};
|
|
816
|
+
} & {
|
|
817
|
+
api: {
|
|
818
|
+
memory: import("hono/client").ClientRequest<{
|
|
819
|
+
$post: {
|
|
820
|
+
input: {
|
|
821
|
+
json: {
|
|
822
|
+
content: string;
|
|
823
|
+
metadata?: import("zod").objectInputType<{
|
|
824
|
+
source: import("zod").ZodOptional<import("zod").ZodEnum<["user", "system"]>>;
|
|
825
|
+
pinned: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
826
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
827
|
+
tags?: string[] | undefined;
|
|
828
|
+
};
|
|
829
|
+
};
|
|
830
|
+
output: {
|
|
831
|
+
ok: true;
|
|
832
|
+
memory: {
|
|
833
|
+
content: string;
|
|
834
|
+
id: string;
|
|
835
|
+
createdAt: number;
|
|
836
|
+
updatedAt: number;
|
|
837
|
+
metadata?: {
|
|
838
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
839
|
+
source?: "system" | "user" | undefined;
|
|
840
|
+
pinned?: boolean | undefined;
|
|
841
|
+
} | undefined;
|
|
842
|
+
tags?: string[] | undefined | undefined;
|
|
843
|
+
};
|
|
844
|
+
};
|
|
845
|
+
outputFormat: "json";
|
|
846
|
+
status: 201;
|
|
847
|
+
};
|
|
848
|
+
$get: {
|
|
849
|
+
input: {
|
|
850
|
+
query: {
|
|
851
|
+
tags?: string | undefined;
|
|
852
|
+
source?: "system" | "user" | undefined;
|
|
853
|
+
limit?: string | undefined;
|
|
854
|
+
offset?: string | undefined;
|
|
855
|
+
pinned?: string | undefined;
|
|
856
|
+
};
|
|
857
|
+
};
|
|
858
|
+
output: {
|
|
859
|
+
ok: true;
|
|
860
|
+
memories: {
|
|
861
|
+
content: string;
|
|
862
|
+
id: string;
|
|
863
|
+
createdAt: number;
|
|
864
|
+
updatedAt: number;
|
|
865
|
+
metadata?: {
|
|
866
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
867
|
+
source?: "system" | "user" | undefined;
|
|
868
|
+
pinned?: boolean | undefined;
|
|
869
|
+
} | undefined;
|
|
870
|
+
tags?: string[] | undefined | undefined;
|
|
871
|
+
}[];
|
|
872
|
+
};
|
|
873
|
+
outputFormat: "json";
|
|
874
|
+
status: 200;
|
|
875
|
+
};
|
|
876
|
+
}>;
|
|
877
|
+
};
|
|
878
|
+
} & {
|
|
879
|
+
api: {
|
|
880
|
+
memory: {
|
|
881
|
+
":id": import("hono/client").ClientRequest<{
|
|
882
|
+
$get: {
|
|
883
|
+
input: {
|
|
884
|
+
param: {
|
|
885
|
+
id: string;
|
|
886
|
+
};
|
|
887
|
+
};
|
|
888
|
+
output: {
|
|
889
|
+
ok: true;
|
|
890
|
+
memory: {
|
|
891
|
+
content: string;
|
|
892
|
+
id: string;
|
|
893
|
+
createdAt: number;
|
|
894
|
+
updatedAt: number;
|
|
895
|
+
metadata?: {
|
|
896
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
897
|
+
source?: "system" | "user" | undefined;
|
|
898
|
+
pinned?: boolean | undefined;
|
|
899
|
+
} | undefined;
|
|
900
|
+
tags?: string[] | undefined | undefined;
|
|
901
|
+
};
|
|
902
|
+
};
|
|
903
|
+
outputFormat: "json";
|
|
904
|
+
status: 200;
|
|
905
|
+
};
|
|
906
|
+
$put: {
|
|
907
|
+
input: {
|
|
908
|
+
param: {
|
|
909
|
+
id: string;
|
|
910
|
+
};
|
|
911
|
+
} & {
|
|
912
|
+
json: {
|
|
913
|
+
metadata?: import("zod").objectInputType<{
|
|
914
|
+
source: import("zod").ZodOptional<import("zod").ZodEnum<["user", "system"]>>;
|
|
915
|
+
pinned: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
916
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
917
|
+
content?: string | undefined;
|
|
918
|
+
tags?: string[] | undefined;
|
|
919
|
+
};
|
|
920
|
+
};
|
|
921
|
+
output: {
|
|
922
|
+
ok: true;
|
|
923
|
+
memory: {
|
|
924
|
+
content: string;
|
|
925
|
+
id: string;
|
|
926
|
+
createdAt: number;
|
|
927
|
+
updatedAt: number;
|
|
928
|
+
metadata?: {
|
|
929
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
930
|
+
source?: "system" | "user" | undefined;
|
|
931
|
+
pinned?: boolean | undefined;
|
|
932
|
+
} | undefined;
|
|
933
|
+
tags?: string[] | undefined | undefined;
|
|
934
|
+
};
|
|
935
|
+
};
|
|
936
|
+
outputFormat: "json";
|
|
937
|
+
status: 200;
|
|
938
|
+
};
|
|
939
|
+
$delete: {
|
|
940
|
+
input: {
|
|
941
|
+
param: {
|
|
942
|
+
id: string;
|
|
943
|
+
};
|
|
944
|
+
};
|
|
945
|
+
output: {
|
|
946
|
+
message: string;
|
|
947
|
+
ok: true;
|
|
948
|
+
};
|
|
949
|
+
outputFormat: "json";
|
|
950
|
+
status: 200;
|
|
951
|
+
};
|
|
952
|
+
}>;
|
|
953
|
+
};
|
|
954
|
+
};
|
|
955
|
+
} & {
|
|
956
|
+
api: {
|
|
957
|
+
resources: import("hono/client").ClientRequest<{
|
|
958
|
+
$get: {
|
|
959
|
+
input: {};
|
|
960
|
+
output: {
|
|
961
|
+
ok: true;
|
|
962
|
+
resources: {
|
|
963
|
+
uri: string;
|
|
964
|
+
source: "mcp" | "internal";
|
|
965
|
+
description?: string | undefined;
|
|
966
|
+
mimeType?: string | undefined;
|
|
967
|
+
name?: string | undefined;
|
|
968
|
+
metadata?: {
|
|
969
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
970
|
+
} | undefined;
|
|
971
|
+
serverName?: string | undefined;
|
|
972
|
+
size?: number | undefined;
|
|
973
|
+
lastModified?: string | undefined;
|
|
974
|
+
}[];
|
|
975
|
+
};
|
|
976
|
+
outputFormat: "json";
|
|
977
|
+
status: 200;
|
|
978
|
+
};
|
|
979
|
+
}>;
|
|
980
|
+
};
|
|
981
|
+
} & {
|
|
982
|
+
api: {
|
|
983
|
+
resources: {
|
|
984
|
+
":resourceId": {
|
|
985
|
+
content: import("hono/client").ClientRequest<{
|
|
986
|
+
$get: {
|
|
987
|
+
input: {
|
|
988
|
+
param: {
|
|
989
|
+
resourceId: string;
|
|
990
|
+
};
|
|
991
|
+
};
|
|
992
|
+
output: {
|
|
993
|
+
content: {
|
|
994
|
+
contents: {
|
|
995
|
+
uri: string;
|
|
996
|
+
text?: string | undefined;
|
|
997
|
+
mimeType?: string | undefined;
|
|
998
|
+
blob?: string | undefined;
|
|
999
|
+
}[];
|
|
1000
|
+
_meta?: {
|
|
1001
|
+
[x: string]: any;
|
|
1002
|
+
} | undefined;
|
|
1003
|
+
};
|
|
1004
|
+
ok: true;
|
|
1005
|
+
};
|
|
1006
|
+
outputFormat: "json";
|
|
1007
|
+
status: 200;
|
|
1008
|
+
};
|
|
1009
|
+
}>;
|
|
1010
|
+
};
|
|
1011
|
+
};
|
|
1012
|
+
};
|
|
1013
|
+
} & {
|
|
1014
|
+
api: {
|
|
1015
|
+
resources: {
|
|
1016
|
+
":resourceId": import("hono/client").ClientRequest<{
|
|
1017
|
+
$head: {
|
|
1018
|
+
input: {
|
|
1019
|
+
param: {
|
|
1020
|
+
resourceId: string;
|
|
1021
|
+
};
|
|
1022
|
+
};
|
|
1023
|
+
output: {};
|
|
1024
|
+
outputFormat: string;
|
|
1025
|
+
status: 200;
|
|
1026
|
+
} | {
|
|
1027
|
+
input: {
|
|
1028
|
+
param: {
|
|
1029
|
+
resourceId: string;
|
|
1030
|
+
};
|
|
1031
|
+
};
|
|
1032
|
+
output: {};
|
|
1033
|
+
outputFormat: string;
|
|
1034
|
+
status: 404;
|
|
1035
|
+
};
|
|
1036
|
+
}>;
|
|
1037
|
+
};
|
|
1038
|
+
};
|
|
1039
|
+
} & {
|
|
1040
|
+
api: {
|
|
1041
|
+
prompts: import("hono/client").ClientRequest<{
|
|
1042
|
+
$get: {
|
|
1043
|
+
input: {};
|
|
1044
|
+
output: {
|
|
1045
|
+
prompts: {
|
|
1046
|
+
name: string;
|
|
1047
|
+
source: "file" | "custom" | "mcp" | "starter";
|
|
1048
|
+
description?: string | undefined;
|
|
1049
|
+
title?: string | undefined;
|
|
1050
|
+
arguments?: {
|
|
1051
|
+
name: string;
|
|
1052
|
+
description?: string | undefined;
|
|
1053
|
+
required?: boolean | undefined;
|
|
1054
|
+
}[] | undefined;
|
|
1055
|
+
metadata?: {
|
|
1056
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1057
|
+
} | undefined;
|
|
1058
|
+
}[];
|
|
1059
|
+
};
|
|
1060
|
+
outputFormat: "json";
|
|
1061
|
+
status: 200;
|
|
1062
|
+
};
|
|
1063
|
+
}>;
|
|
1064
|
+
};
|
|
1065
|
+
} & {
|
|
1066
|
+
api: {
|
|
1067
|
+
prompts: {
|
|
1068
|
+
custom: import("hono/client").ClientRequest<{
|
|
1069
|
+
$post: {
|
|
1070
|
+
input: {
|
|
1071
|
+
json: {
|
|
1072
|
+
content: string;
|
|
1073
|
+
name: string;
|
|
1074
|
+
description?: string | undefined;
|
|
1075
|
+
title?: string | undefined;
|
|
1076
|
+
arguments?: {
|
|
1077
|
+
name: string;
|
|
1078
|
+
description?: string | undefined;
|
|
1079
|
+
required?: boolean | undefined;
|
|
1080
|
+
}[] | undefined;
|
|
1081
|
+
resource?: {
|
|
1082
|
+
mimeType: string;
|
|
1083
|
+
base64: string;
|
|
1084
|
+
filename?: string | undefined;
|
|
1085
|
+
} | undefined;
|
|
1086
|
+
};
|
|
1087
|
+
};
|
|
1088
|
+
output: {
|
|
1089
|
+
prompt: {
|
|
1090
|
+
name: string;
|
|
1091
|
+
source: "file" | "custom" | "mcp" | "starter";
|
|
1092
|
+
description?: string | undefined;
|
|
1093
|
+
title?: string | undefined;
|
|
1094
|
+
arguments?: {
|
|
1095
|
+
name: string;
|
|
1096
|
+
description?: string | undefined;
|
|
1097
|
+
required?: boolean | undefined;
|
|
1098
|
+
}[] | undefined;
|
|
1099
|
+
metadata?: {
|
|
1100
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1101
|
+
} | undefined;
|
|
1102
|
+
};
|
|
1103
|
+
};
|
|
1104
|
+
outputFormat: "json";
|
|
1105
|
+
status: 201;
|
|
1106
|
+
};
|
|
1107
|
+
}>;
|
|
1108
|
+
};
|
|
1109
|
+
};
|
|
1110
|
+
} & {
|
|
1111
|
+
api: {
|
|
1112
|
+
prompts: {
|
|
1113
|
+
custom: {
|
|
1114
|
+
":name": import("hono/client").ClientRequest<{
|
|
1115
|
+
$delete: {
|
|
1116
|
+
input: {
|
|
1117
|
+
param: {
|
|
1118
|
+
name: string;
|
|
1119
|
+
};
|
|
1120
|
+
};
|
|
1121
|
+
output: {};
|
|
1122
|
+
outputFormat: string;
|
|
1123
|
+
status: 204;
|
|
1124
|
+
};
|
|
1125
|
+
}>;
|
|
1126
|
+
};
|
|
1127
|
+
};
|
|
1128
|
+
};
|
|
1129
|
+
} & {
|
|
1130
|
+
api: {
|
|
1131
|
+
prompts: {
|
|
1132
|
+
":name": import("hono/client").ClientRequest<{
|
|
1133
|
+
$get: {
|
|
1134
|
+
input: {
|
|
1135
|
+
param: {
|
|
1136
|
+
name: string;
|
|
1137
|
+
};
|
|
1138
|
+
};
|
|
1139
|
+
output: {};
|
|
1140
|
+
outputFormat: string;
|
|
1141
|
+
status: 404;
|
|
1142
|
+
} | {
|
|
1143
|
+
input: {
|
|
1144
|
+
param: {
|
|
1145
|
+
name: string;
|
|
1146
|
+
};
|
|
1147
|
+
};
|
|
1148
|
+
output: {
|
|
1149
|
+
definition: {
|
|
1150
|
+
name: string;
|
|
1151
|
+
description?: string | undefined;
|
|
1152
|
+
title?: string | undefined;
|
|
1153
|
+
arguments?: {
|
|
1154
|
+
name: string;
|
|
1155
|
+
description?: string | undefined;
|
|
1156
|
+
required?: boolean | undefined;
|
|
1157
|
+
}[] | undefined;
|
|
1158
|
+
};
|
|
1159
|
+
};
|
|
1160
|
+
outputFormat: "json";
|
|
1161
|
+
status: 200;
|
|
1162
|
+
};
|
|
1163
|
+
}>;
|
|
1164
|
+
};
|
|
1165
|
+
};
|
|
1166
|
+
} & {
|
|
1167
|
+
api: {
|
|
1168
|
+
prompts: {
|
|
1169
|
+
":name": {
|
|
1170
|
+
resolve: import("hono/client").ClientRequest<{
|
|
1171
|
+
$get: {
|
|
1172
|
+
input: {
|
|
1173
|
+
param: {
|
|
1174
|
+
name: string;
|
|
1175
|
+
};
|
|
1176
|
+
} & {
|
|
1177
|
+
query: {
|
|
1178
|
+
context?: string | undefined;
|
|
1179
|
+
args?: string | undefined;
|
|
1180
|
+
};
|
|
1181
|
+
};
|
|
1182
|
+
output: {};
|
|
1183
|
+
outputFormat: string;
|
|
1184
|
+
status: 404;
|
|
1185
|
+
} | {
|
|
1186
|
+
input: {
|
|
1187
|
+
param: {
|
|
1188
|
+
name: string;
|
|
1189
|
+
};
|
|
1190
|
+
} & {
|
|
1191
|
+
query: {
|
|
1192
|
+
context?: string | undefined;
|
|
1193
|
+
args?: string | undefined;
|
|
1194
|
+
};
|
|
1195
|
+
};
|
|
1196
|
+
output: {
|
|
1197
|
+
text: string;
|
|
1198
|
+
resources: string[];
|
|
1199
|
+
};
|
|
1200
|
+
outputFormat: "json";
|
|
1201
|
+
status: 200;
|
|
1202
|
+
};
|
|
1203
|
+
}>;
|
|
1204
|
+
};
|
|
1205
|
+
};
|
|
1206
|
+
};
|
|
1207
|
+
} & {
|
|
1208
|
+
api: {
|
|
1209
|
+
webhooks: import("hono/client").ClientRequest<{
|
|
1210
|
+
$post: {
|
|
1211
|
+
input: {
|
|
1212
|
+
json: {
|
|
1213
|
+
url: string;
|
|
1214
|
+
description?: string | undefined;
|
|
1215
|
+
secret?: string | undefined;
|
|
1216
|
+
};
|
|
1217
|
+
};
|
|
1218
|
+
output: {
|
|
1219
|
+
webhook: {
|
|
1220
|
+
id: string;
|
|
1221
|
+
createdAt: string | number;
|
|
1222
|
+
url: string;
|
|
1223
|
+
description?: string | undefined;
|
|
1224
|
+
};
|
|
1225
|
+
};
|
|
1226
|
+
outputFormat: "json";
|
|
1227
|
+
status: 201;
|
|
1228
|
+
};
|
|
1229
|
+
$get: {
|
|
1230
|
+
input: {};
|
|
1231
|
+
output: {
|
|
1232
|
+
webhooks: {
|
|
1233
|
+
id: string;
|
|
1234
|
+
createdAt: string | number;
|
|
1235
|
+
url: string;
|
|
1236
|
+
description?: string | undefined;
|
|
1237
|
+
}[];
|
|
1238
|
+
};
|
|
1239
|
+
outputFormat: "json";
|
|
1240
|
+
status: 200;
|
|
1241
|
+
};
|
|
1242
|
+
}>;
|
|
1243
|
+
};
|
|
1244
|
+
} & {
|
|
1245
|
+
api: {
|
|
1246
|
+
webhooks: {
|
|
1247
|
+
":webhookId": import("hono/client").ClientRequest<{
|
|
1248
|
+
$get: {
|
|
1249
|
+
input: {
|
|
1250
|
+
param: {
|
|
1251
|
+
webhookId: string;
|
|
1252
|
+
};
|
|
1253
|
+
};
|
|
1254
|
+
output: {};
|
|
1255
|
+
outputFormat: string;
|
|
1256
|
+
status: 404;
|
|
1257
|
+
} | {
|
|
1258
|
+
input: {
|
|
1259
|
+
param: {
|
|
1260
|
+
webhookId: string;
|
|
1261
|
+
};
|
|
1262
|
+
};
|
|
1263
|
+
output: {
|
|
1264
|
+
webhook: {
|
|
1265
|
+
id: string;
|
|
1266
|
+
createdAt: string | number;
|
|
1267
|
+
url: string;
|
|
1268
|
+
description?: string | undefined;
|
|
1269
|
+
};
|
|
1270
|
+
};
|
|
1271
|
+
outputFormat: "json";
|
|
1272
|
+
status: 200;
|
|
1273
|
+
};
|
|
1274
|
+
$delete: {
|
|
1275
|
+
input: {
|
|
1276
|
+
param: {
|
|
1277
|
+
webhookId: string;
|
|
1278
|
+
};
|
|
1279
|
+
};
|
|
1280
|
+
output: {};
|
|
1281
|
+
outputFormat: string;
|
|
1282
|
+
status: 404;
|
|
1283
|
+
} | {
|
|
1284
|
+
input: {
|
|
1285
|
+
param: {
|
|
1286
|
+
webhookId: string;
|
|
1287
|
+
};
|
|
1288
|
+
};
|
|
1289
|
+
output: {
|
|
1290
|
+
status: "removed";
|
|
1291
|
+
webhookId: string;
|
|
1292
|
+
};
|
|
1293
|
+
outputFormat: "json";
|
|
1294
|
+
status: 200;
|
|
1295
|
+
};
|
|
1296
|
+
}>;
|
|
1297
|
+
};
|
|
1298
|
+
};
|
|
1299
|
+
} & {
|
|
1300
|
+
api: {
|
|
1301
|
+
webhooks: {
|
|
1302
|
+
":webhookId": {
|
|
1303
|
+
test: import("hono/client").ClientRequest<{
|
|
1304
|
+
$post: {
|
|
1305
|
+
input: {
|
|
1306
|
+
param: {
|
|
1307
|
+
webhookId: string;
|
|
1308
|
+
};
|
|
1309
|
+
};
|
|
1310
|
+
output: {};
|
|
1311
|
+
outputFormat: string;
|
|
1312
|
+
status: 404;
|
|
1313
|
+
} | {
|
|
1314
|
+
input: {
|
|
1315
|
+
param: {
|
|
1316
|
+
webhookId: string;
|
|
1317
|
+
};
|
|
1318
|
+
};
|
|
1319
|
+
output: {
|
|
1320
|
+
result: {
|
|
1321
|
+
success: boolean;
|
|
1322
|
+
error?: string | undefined;
|
|
1323
|
+
responseTime?: number | undefined;
|
|
1324
|
+
statusCode?: number | undefined;
|
|
1325
|
+
};
|
|
1326
|
+
test: "completed";
|
|
1327
|
+
};
|
|
1328
|
+
outputFormat: "json";
|
|
1329
|
+
status: 200;
|
|
1330
|
+
};
|
|
1331
|
+
}>;
|
|
1332
|
+
};
|
|
1333
|
+
};
|
|
1334
|
+
};
|
|
1335
|
+
} & {
|
|
1336
|
+
api: {
|
|
1337
|
+
mcp: {
|
|
1338
|
+
servers: import("hono/client").ClientRequest<{
|
|
1339
|
+
$post: {
|
|
1340
|
+
input: {
|
|
1341
|
+
json: {
|
|
1342
|
+
config: {
|
|
1343
|
+
type: "stdio";
|
|
1344
|
+
command: string;
|
|
1345
|
+
timeout?: number | undefined;
|
|
1346
|
+
args?: string[] | undefined;
|
|
1347
|
+
env?: Record<string, string> | undefined;
|
|
1348
|
+
connectionMode?: "strict" | "lenient" | undefined;
|
|
1349
|
+
} | {
|
|
1350
|
+
type: "sse";
|
|
1351
|
+
url: string;
|
|
1352
|
+
timeout?: number | undefined;
|
|
1353
|
+
connectionMode?: "strict" | "lenient" | undefined;
|
|
1354
|
+
headers?: Record<string, string> | undefined;
|
|
1355
|
+
} | {
|
|
1356
|
+
type: "http";
|
|
1357
|
+
url: string;
|
|
1358
|
+
timeout?: number | undefined;
|
|
1359
|
+
connectionMode?: "strict" | "lenient" | undefined;
|
|
1360
|
+
headers?: Record<string, string> | undefined;
|
|
1361
|
+
};
|
|
1362
|
+
name: string;
|
|
1363
|
+
persistToAgent?: boolean | undefined;
|
|
1364
|
+
};
|
|
1365
|
+
};
|
|
1366
|
+
output: {
|
|
1367
|
+
status: string;
|
|
1368
|
+
name: string;
|
|
1369
|
+
};
|
|
1370
|
+
outputFormat: "json";
|
|
1371
|
+
status: 200;
|
|
1372
|
+
};
|
|
1373
|
+
$get: {
|
|
1374
|
+
input: {};
|
|
1375
|
+
output: {
|
|
1376
|
+
servers: {
|
|
1377
|
+
status: "error" | "connected" | "disconnected";
|
|
1378
|
+
id: string;
|
|
1379
|
+
name: string;
|
|
1380
|
+
}[];
|
|
1381
|
+
};
|
|
1382
|
+
outputFormat: "json";
|
|
1383
|
+
status: 200;
|
|
1384
|
+
};
|
|
1385
|
+
}>;
|
|
1386
|
+
};
|
|
1387
|
+
};
|
|
1388
|
+
} & {
|
|
1389
|
+
api: {
|
|
1390
|
+
mcp: {
|
|
1391
|
+
servers: {
|
|
1392
|
+
":serverId": {
|
|
1393
|
+
tools: import("hono/client").ClientRequest<{
|
|
1394
|
+
$get: {
|
|
1395
|
+
input: {
|
|
1396
|
+
param: {
|
|
1397
|
+
serverId: string;
|
|
1398
|
+
};
|
|
1399
|
+
};
|
|
1400
|
+
output: {};
|
|
1401
|
+
outputFormat: string;
|
|
1402
|
+
status: 404;
|
|
1403
|
+
} | {
|
|
1404
|
+
input: {
|
|
1405
|
+
param: {
|
|
1406
|
+
serverId: string;
|
|
1407
|
+
};
|
|
1408
|
+
};
|
|
1409
|
+
output: {
|
|
1410
|
+
tools: {
|
|
1411
|
+
description: string;
|
|
1412
|
+
id: string;
|
|
1413
|
+
name: string;
|
|
1414
|
+
inputSchema?: {
|
|
1415
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1416
|
+
type?: "object" | undefined;
|
|
1417
|
+
properties?: {
|
|
1418
|
+
[x: string]: {
|
|
1419
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1420
|
+
description?: string | undefined;
|
|
1421
|
+
default?: any;
|
|
1422
|
+
type?: "string" | "number" | "boolean" | "object" | "integer" | "array" | undefined;
|
|
1423
|
+
enum?: (string | number | boolean)[] | undefined;
|
|
1424
|
+
};
|
|
1425
|
+
} | undefined;
|
|
1426
|
+
required?: string[] | undefined;
|
|
1427
|
+
} | undefined;
|
|
1428
|
+
}[];
|
|
1429
|
+
};
|
|
1430
|
+
outputFormat: "json";
|
|
1431
|
+
status: 200;
|
|
1432
|
+
};
|
|
1433
|
+
}>;
|
|
1434
|
+
};
|
|
1435
|
+
};
|
|
1436
|
+
};
|
|
1437
|
+
};
|
|
1438
|
+
} & {
|
|
1439
|
+
api: {
|
|
1440
|
+
mcp: {
|
|
1441
|
+
servers: {
|
|
1442
|
+
":serverId": import("hono/client").ClientRequest<{
|
|
1443
|
+
$delete: {
|
|
1444
|
+
input: {
|
|
1445
|
+
param: {
|
|
1446
|
+
serverId: string;
|
|
1447
|
+
};
|
|
1448
|
+
};
|
|
1449
|
+
output: {};
|
|
1450
|
+
outputFormat: string;
|
|
1451
|
+
status: 404;
|
|
1452
|
+
} | {
|
|
1453
|
+
input: {
|
|
1454
|
+
param: {
|
|
1455
|
+
serverId: string;
|
|
1456
|
+
};
|
|
1457
|
+
};
|
|
1458
|
+
output: {
|
|
1459
|
+
status: "disconnected";
|
|
1460
|
+
id: string;
|
|
1461
|
+
};
|
|
1462
|
+
outputFormat: "json";
|
|
1463
|
+
status: 200;
|
|
1464
|
+
};
|
|
1465
|
+
}>;
|
|
1466
|
+
};
|
|
1467
|
+
};
|
|
1468
|
+
};
|
|
1469
|
+
} & {
|
|
1470
|
+
api: {
|
|
1471
|
+
mcp: {
|
|
1472
|
+
servers: {
|
|
1473
|
+
":serverId": {
|
|
1474
|
+
restart: import("hono/client").ClientRequest<{
|
|
1475
|
+
$post: {
|
|
1476
|
+
input: {
|
|
1477
|
+
param: {
|
|
1478
|
+
serverId: string;
|
|
1479
|
+
};
|
|
1480
|
+
};
|
|
1481
|
+
output: {};
|
|
1482
|
+
outputFormat: string;
|
|
1483
|
+
status: 404;
|
|
1484
|
+
} | {
|
|
1485
|
+
input: {
|
|
1486
|
+
param: {
|
|
1487
|
+
serverId: string;
|
|
1488
|
+
};
|
|
1489
|
+
};
|
|
1490
|
+
output: {
|
|
1491
|
+
status: "restarted";
|
|
1492
|
+
id: string;
|
|
1493
|
+
};
|
|
1494
|
+
outputFormat: "json";
|
|
1495
|
+
status: 200;
|
|
1496
|
+
};
|
|
1497
|
+
}>;
|
|
1498
|
+
};
|
|
1499
|
+
};
|
|
1500
|
+
};
|
|
1501
|
+
};
|
|
1502
|
+
} & {
|
|
1503
|
+
api: {
|
|
1504
|
+
mcp: {
|
|
1505
|
+
servers: {
|
|
1506
|
+
":serverId": {
|
|
1507
|
+
tools: {
|
|
1508
|
+
":toolName": {
|
|
1509
|
+
execute: import("hono/client").ClientRequest<{
|
|
1510
|
+
$post: {
|
|
1511
|
+
input: {
|
|
1512
|
+
param: {
|
|
1513
|
+
serverId: string;
|
|
1514
|
+
toolName: string;
|
|
1515
|
+
};
|
|
1516
|
+
} & {
|
|
1517
|
+
json: Record<string, unknown>;
|
|
1518
|
+
};
|
|
1519
|
+
output: {};
|
|
1520
|
+
outputFormat: string;
|
|
1521
|
+
status: 404;
|
|
1522
|
+
} | {
|
|
1523
|
+
input: {
|
|
1524
|
+
param: {
|
|
1525
|
+
serverId: string;
|
|
1526
|
+
toolName: string;
|
|
1527
|
+
};
|
|
1528
|
+
} & {
|
|
1529
|
+
json: Record<string, unknown>;
|
|
1530
|
+
};
|
|
1531
|
+
output: {
|
|
1532
|
+
success: boolean;
|
|
1533
|
+
data?: any;
|
|
1534
|
+
error?: string | undefined;
|
|
1535
|
+
};
|
|
1536
|
+
outputFormat: "json";
|
|
1537
|
+
status: 200;
|
|
1538
|
+
};
|
|
1539
|
+
}>;
|
|
1540
|
+
};
|
|
1541
|
+
};
|
|
1542
|
+
};
|
|
1543
|
+
};
|
|
1544
|
+
};
|
|
1545
|
+
};
|
|
1546
|
+
} & {
|
|
1547
|
+
api: {
|
|
1548
|
+
mcp: {
|
|
1549
|
+
servers: {
|
|
1550
|
+
":serverId": {
|
|
1551
|
+
resources: import("hono/client").ClientRequest<{
|
|
1552
|
+
$get: {
|
|
1553
|
+
input: {
|
|
1554
|
+
param: {
|
|
1555
|
+
serverId: string;
|
|
1556
|
+
};
|
|
1557
|
+
};
|
|
1558
|
+
output: {};
|
|
1559
|
+
outputFormat: string;
|
|
1560
|
+
status: 404;
|
|
1561
|
+
} | {
|
|
1562
|
+
input: {
|
|
1563
|
+
param: {
|
|
1564
|
+
serverId: string;
|
|
1565
|
+
};
|
|
1566
|
+
};
|
|
1567
|
+
output: {
|
|
1568
|
+
success: boolean;
|
|
1569
|
+
resources: {
|
|
1570
|
+
uri: string;
|
|
1571
|
+
source: "mcp" | "internal";
|
|
1572
|
+
description?: string | undefined;
|
|
1573
|
+
mimeType?: string | undefined;
|
|
1574
|
+
name?: string | undefined;
|
|
1575
|
+
metadata?: {
|
|
1576
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1577
|
+
} | undefined;
|
|
1578
|
+
serverName?: string | undefined;
|
|
1579
|
+
size?: number | undefined;
|
|
1580
|
+
lastModified?: string | undefined;
|
|
1581
|
+
}[];
|
|
1582
|
+
};
|
|
1583
|
+
outputFormat: "json";
|
|
1584
|
+
status: 200;
|
|
1585
|
+
};
|
|
1586
|
+
}>;
|
|
1587
|
+
};
|
|
1588
|
+
};
|
|
1589
|
+
};
|
|
1590
|
+
};
|
|
1591
|
+
} & {
|
|
1592
|
+
api: {
|
|
1593
|
+
mcp: {
|
|
1594
|
+
servers: {
|
|
1595
|
+
":serverId": {
|
|
1596
|
+
resources: {
|
|
1597
|
+
":resourceId": {
|
|
1598
|
+
content: import("hono/client").ClientRequest<{
|
|
1599
|
+
$get: {
|
|
1600
|
+
input: {
|
|
1601
|
+
param: {
|
|
1602
|
+
serverId: string;
|
|
1603
|
+
resourceId: string;
|
|
1604
|
+
};
|
|
1605
|
+
};
|
|
1606
|
+
output: {};
|
|
1607
|
+
outputFormat: string;
|
|
1608
|
+
status: 404;
|
|
1609
|
+
} | {
|
|
1610
|
+
input: {
|
|
1611
|
+
param: {
|
|
1612
|
+
serverId: string;
|
|
1613
|
+
resourceId: string;
|
|
1614
|
+
};
|
|
1615
|
+
};
|
|
1616
|
+
output: {
|
|
1617
|
+
data: {
|
|
1618
|
+
content?: any;
|
|
1619
|
+
};
|
|
1620
|
+
success: boolean;
|
|
1621
|
+
};
|
|
1622
|
+
outputFormat: "json";
|
|
1623
|
+
status: 200;
|
|
1624
|
+
};
|
|
1625
|
+
}>;
|
|
1626
|
+
};
|
|
1627
|
+
};
|
|
1628
|
+
};
|
|
1629
|
+
};
|
|
1630
|
+
};
|
|
1631
|
+
};
|
|
1632
|
+
} & {
|
|
1633
|
+
api: {
|
|
1634
|
+
search: {
|
|
1635
|
+
messages: import("hono/client").ClientRequest<{
|
|
1636
|
+
$get: {
|
|
1637
|
+
input: {
|
|
1638
|
+
query: {
|
|
1639
|
+
q: string;
|
|
1640
|
+
sessionId?: string | undefined;
|
|
1641
|
+
role?: "system" | "user" | "assistant" | "tool" | undefined;
|
|
1642
|
+
limit?: number | undefined;
|
|
1643
|
+
offset?: number | undefined;
|
|
1644
|
+
};
|
|
1645
|
+
};
|
|
1646
|
+
output: {
|
|
1647
|
+
query: string;
|
|
1648
|
+
results: {
|
|
1649
|
+
message: {
|
|
1650
|
+
content: string | ({
|
|
1651
|
+
type: "text";
|
|
1652
|
+
text: string;
|
|
1653
|
+
} | {
|
|
1654
|
+
type: "image";
|
|
1655
|
+
image?: import("hono/utils/types").JSONValue;
|
|
1656
|
+
mimeType?: string | undefined;
|
|
1657
|
+
} | {
|
|
1658
|
+
type: "file";
|
|
1659
|
+
mimeType: string;
|
|
1660
|
+
data?: import("hono/utils/types").JSONValue;
|
|
1661
|
+
filename?: string | undefined;
|
|
1662
|
+
})[] | null;
|
|
1663
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
1664
|
+
provider?: string | undefined;
|
|
1665
|
+
model?: string | undefined;
|
|
1666
|
+
router?: string | undefined;
|
|
1667
|
+
name?: string | undefined;
|
|
1668
|
+
timestamp?: number | undefined;
|
|
1669
|
+
reasoning?: string | undefined;
|
|
1670
|
+
tokenUsage?: {
|
|
1671
|
+
inputTokens?: number | undefined;
|
|
1672
|
+
outputTokens?: number | undefined;
|
|
1673
|
+
reasoningTokens?: number | undefined;
|
|
1674
|
+
totalTokens?: number | undefined;
|
|
1675
|
+
} | undefined;
|
|
1676
|
+
toolCalls?: {
|
|
1677
|
+
function: {
|
|
1678
|
+
name: string;
|
|
1679
|
+
arguments: string;
|
|
1680
|
+
};
|
|
1681
|
+
type: "function";
|
|
1682
|
+
id: string;
|
|
1683
|
+
}[] | undefined;
|
|
1684
|
+
toolCallId?: string | undefined;
|
|
1685
|
+
};
|
|
1686
|
+
sessionId: string;
|
|
1687
|
+
matchedText: string;
|
|
1688
|
+
context: string;
|
|
1689
|
+
messageIndex: number;
|
|
1690
|
+
}[];
|
|
1691
|
+
total: number;
|
|
1692
|
+
hasMore: boolean;
|
|
1693
|
+
};
|
|
1694
|
+
outputFormat: "json";
|
|
1695
|
+
status: 200;
|
|
1696
|
+
};
|
|
1697
|
+
}>;
|
|
1698
|
+
};
|
|
1699
|
+
};
|
|
1700
|
+
} & {
|
|
1701
|
+
api: {
|
|
1702
|
+
search: {
|
|
1703
|
+
sessions: import("hono/client").ClientRequest<{
|
|
1704
|
+
$get: {
|
|
1705
|
+
input: {
|
|
1706
|
+
query: {
|
|
1707
|
+
q: string;
|
|
1708
|
+
};
|
|
1709
|
+
};
|
|
1710
|
+
output: {
|
|
1711
|
+
query: string;
|
|
1712
|
+
results: {
|
|
1713
|
+
sessionId: string;
|
|
1714
|
+
matchCount: number;
|
|
1715
|
+
firstMatch: {
|
|
1716
|
+
message: {
|
|
1717
|
+
content: string | ({
|
|
1718
|
+
type: "text";
|
|
1719
|
+
text: string;
|
|
1720
|
+
} | {
|
|
1721
|
+
type: "image";
|
|
1722
|
+
image?: import("hono/utils/types").JSONValue;
|
|
1723
|
+
mimeType?: string | undefined;
|
|
1724
|
+
} | {
|
|
1725
|
+
type: "file";
|
|
1726
|
+
mimeType: string;
|
|
1727
|
+
data?: import("hono/utils/types").JSONValue;
|
|
1728
|
+
filename?: string | undefined;
|
|
1729
|
+
})[] | null;
|
|
1730
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
1731
|
+
provider?: string | undefined;
|
|
1732
|
+
model?: string | undefined;
|
|
1733
|
+
router?: string | undefined;
|
|
1734
|
+
name?: string | undefined;
|
|
1735
|
+
timestamp?: number | undefined;
|
|
1736
|
+
reasoning?: string | undefined;
|
|
1737
|
+
tokenUsage?: {
|
|
1738
|
+
inputTokens?: number | undefined;
|
|
1739
|
+
outputTokens?: number | undefined;
|
|
1740
|
+
reasoningTokens?: number | undefined;
|
|
1741
|
+
totalTokens?: number | undefined;
|
|
1742
|
+
} | undefined;
|
|
1743
|
+
toolCalls?: {
|
|
1744
|
+
function: {
|
|
1745
|
+
name: string;
|
|
1746
|
+
arguments: string;
|
|
1747
|
+
};
|
|
1748
|
+
type: "function";
|
|
1749
|
+
id: string;
|
|
1750
|
+
}[] | undefined;
|
|
1751
|
+
toolCallId?: string | undefined;
|
|
1752
|
+
};
|
|
1753
|
+
sessionId: string;
|
|
1754
|
+
matchedText: string;
|
|
1755
|
+
context: string;
|
|
1756
|
+
messageIndex: number;
|
|
1757
|
+
};
|
|
1758
|
+
metadata: {
|
|
1759
|
+
createdAt: number;
|
|
1760
|
+
lastActivity: number;
|
|
1761
|
+
messageCount: number;
|
|
1762
|
+
};
|
|
1763
|
+
}[];
|
|
1764
|
+
total: number;
|
|
1765
|
+
hasMore: boolean;
|
|
1766
|
+
};
|
|
1767
|
+
outputFormat: "json";
|
|
1768
|
+
status: 200;
|
|
1769
|
+
};
|
|
1770
|
+
}>;
|
|
1771
|
+
};
|
|
1772
|
+
};
|
|
1773
|
+
} & {
|
|
1774
|
+
api: {
|
|
1775
|
+
sessions: import("hono/client").ClientRequest<{
|
|
1776
|
+
$get: {
|
|
1777
|
+
input: {};
|
|
1778
|
+
output: {
|
|
1779
|
+
sessions: {
|
|
1780
|
+
id: string;
|
|
1781
|
+
createdAt: number | null;
|
|
1782
|
+
lastActivity: number | null;
|
|
1783
|
+
messageCount: number;
|
|
1784
|
+
title?: string | null | undefined;
|
|
1785
|
+
}[];
|
|
1786
|
+
};
|
|
1787
|
+
outputFormat: "json";
|
|
1788
|
+
status: 200;
|
|
1789
|
+
};
|
|
1790
|
+
$post: {
|
|
1791
|
+
input: {
|
|
1792
|
+
json: {
|
|
1793
|
+
sessionId?: string | undefined;
|
|
1794
|
+
};
|
|
1795
|
+
};
|
|
1796
|
+
output: {
|
|
1797
|
+
session: {
|
|
1798
|
+
id: string;
|
|
1799
|
+
createdAt: number | null;
|
|
1800
|
+
lastActivity: number | null;
|
|
1801
|
+
messageCount: number;
|
|
1802
|
+
title?: string | null | undefined;
|
|
1803
|
+
};
|
|
1804
|
+
};
|
|
1805
|
+
outputFormat: "json";
|
|
1806
|
+
status: 201;
|
|
1807
|
+
};
|
|
1808
|
+
}>;
|
|
1809
|
+
};
|
|
1810
|
+
} & {
|
|
1811
|
+
api: {
|
|
1812
|
+
sessions: {
|
|
1813
|
+
":sessionId": import("hono/client").ClientRequest<{
|
|
1814
|
+
$get: {
|
|
1815
|
+
input: {
|
|
1816
|
+
param: {
|
|
1817
|
+
sessionId: string;
|
|
1818
|
+
};
|
|
1819
|
+
};
|
|
1820
|
+
output: {
|
|
1821
|
+
session: {
|
|
1822
|
+
id: string;
|
|
1823
|
+
createdAt: number | null;
|
|
1824
|
+
lastActivity: number | null;
|
|
1825
|
+
messageCount: number;
|
|
1826
|
+
history: number;
|
|
1827
|
+
title?: string | null | undefined;
|
|
1828
|
+
};
|
|
1829
|
+
};
|
|
1830
|
+
outputFormat: "json";
|
|
1831
|
+
status: 200;
|
|
1832
|
+
};
|
|
1833
|
+
$delete: {
|
|
1834
|
+
input: {
|
|
1835
|
+
param: {
|
|
1836
|
+
sessionId: string;
|
|
1837
|
+
};
|
|
1838
|
+
};
|
|
1839
|
+
output: {
|
|
1840
|
+
status: "deleted";
|
|
1841
|
+
sessionId: string;
|
|
1842
|
+
};
|
|
1843
|
+
outputFormat: "json";
|
|
1844
|
+
status: 200;
|
|
1845
|
+
};
|
|
1846
|
+
$patch: {
|
|
1847
|
+
input: {
|
|
1848
|
+
param: {
|
|
1849
|
+
sessionId: string;
|
|
1850
|
+
};
|
|
1851
|
+
} & {
|
|
1852
|
+
json: {
|
|
1853
|
+
title: string;
|
|
1854
|
+
};
|
|
1855
|
+
};
|
|
1856
|
+
output: {
|
|
1857
|
+
session: {
|
|
1858
|
+
id: string;
|
|
1859
|
+
createdAt: number | null;
|
|
1860
|
+
lastActivity: number | null;
|
|
1861
|
+
messageCount: number;
|
|
1862
|
+
title?: string | null | undefined;
|
|
1863
|
+
};
|
|
1864
|
+
};
|
|
1865
|
+
outputFormat: "json";
|
|
1866
|
+
status: 200;
|
|
1867
|
+
};
|
|
1868
|
+
}>;
|
|
1869
|
+
};
|
|
1870
|
+
};
|
|
1871
|
+
} & {
|
|
1872
|
+
api: {
|
|
1873
|
+
sessions: {
|
|
1874
|
+
":sessionId": {
|
|
1875
|
+
history: import("hono/client").ClientRequest<{
|
|
1876
|
+
$get: {
|
|
1877
|
+
input: {
|
|
1878
|
+
param: {
|
|
1879
|
+
sessionId: string;
|
|
1880
|
+
};
|
|
1881
|
+
};
|
|
1882
|
+
output: {
|
|
1883
|
+
history: {
|
|
1884
|
+
content: string | ({
|
|
1885
|
+
type: "text";
|
|
1886
|
+
text: string;
|
|
1887
|
+
} | {
|
|
1888
|
+
type: "image";
|
|
1889
|
+
image?: import("hono/utils/types").JSONValue;
|
|
1890
|
+
mimeType?: string | undefined;
|
|
1891
|
+
} | {
|
|
1892
|
+
type: "file";
|
|
1893
|
+
mimeType: string;
|
|
1894
|
+
data?: import("hono/utils/types").JSONValue;
|
|
1895
|
+
filename?: string | undefined;
|
|
1896
|
+
})[] | null;
|
|
1897
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
1898
|
+
provider?: string | undefined;
|
|
1899
|
+
model?: string | undefined;
|
|
1900
|
+
router?: string | undefined;
|
|
1901
|
+
name?: string | undefined;
|
|
1902
|
+
timestamp?: number | undefined;
|
|
1903
|
+
reasoning?: string | undefined;
|
|
1904
|
+
tokenUsage?: {
|
|
1905
|
+
inputTokens?: number | undefined;
|
|
1906
|
+
outputTokens?: number | undefined;
|
|
1907
|
+
reasoningTokens?: number | undefined;
|
|
1908
|
+
totalTokens?: number | undefined;
|
|
1909
|
+
} | undefined;
|
|
1910
|
+
toolCalls?: {
|
|
1911
|
+
function: {
|
|
1912
|
+
name: string;
|
|
1913
|
+
arguments: string;
|
|
1914
|
+
};
|
|
1915
|
+
type: "function";
|
|
1916
|
+
id: string;
|
|
1917
|
+
}[] | undefined;
|
|
1918
|
+
toolCallId?: string | undefined;
|
|
1919
|
+
}[];
|
|
1920
|
+
};
|
|
1921
|
+
outputFormat: "json";
|
|
1922
|
+
status: 200;
|
|
1923
|
+
};
|
|
1924
|
+
}>;
|
|
1925
|
+
};
|
|
1926
|
+
};
|
|
1927
|
+
};
|
|
1928
|
+
} & {
|
|
1929
|
+
api: {
|
|
1930
|
+
sessions: {
|
|
1931
|
+
":sessionId": {
|
|
1932
|
+
cancel: import("hono/client").ClientRequest<{
|
|
1933
|
+
$post: {
|
|
1934
|
+
input: {
|
|
1935
|
+
param: {
|
|
1936
|
+
sessionId: string;
|
|
1937
|
+
};
|
|
1938
|
+
};
|
|
1939
|
+
output: {
|
|
1940
|
+
sessionId: string;
|
|
1941
|
+
cancelled: boolean;
|
|
1942
|
+
};
|
|
1943
|
+
outputFormat: "json";
|
|
1944
|
+
status: 200;
|
|
1945
|
+
};
|
|
1946
|
+
}>;
|
|
1947
|
+
};
|
|
1948
|
+
};
|
|
1949
|
+
};
|
|
1950
|
+
} & {
|
|
1951
|
+
api: {
|
|
1952
|
+
sessions: {
|
|
1953
|
+
":sessionId": {
|
|
1954
|
+
load: import("hono/client").ClientRequest<{
|
|
1955
|
+
$get: {
|
|
1956
|
+
input: {
|
|
1957
|
+
param: {
|
|
1958
|
+
sessionId: string;
|
|
1959
|
+
};
|
|
1960
|
+
};
|
|
1961
|
+
output: {
|
|
1962
|
+
session: {
|
|
1963
|
+
id: string;
|
|
1964
|
+
createdAt: number | null;
|
|
1965
|
+
lastActivity: number | null;
|
|
1966
|
+
messageCount: number;
|
|
1967
|
+
title?: string | null | undefined;
|
|
1968
|
+
};
|
|
1969
|
+
};
|
|
1970
|
+
outputFormat: "json";
|
|
1971
|
+
status: 200;
|
|
1972
|
+
} | {
|
|
1973
|
+
input: {
|
|
1974
|
+
param: {
|
|
1975
|
+
sessionId: string;
|
|
1976
|
+
};
|
|
1977
|
+
};
|
|
1978
|
+
output: {
|
|
1979
|
+
error: string;
|
|
1980
|
+
};
|
|
1981
|
+
outputFormat: "json";
|
|
1982
|
+
status: 404;
|
|
1983
|
+
};
|
|
1984
|
+
}>;
|
|
1985
|
+
};
|
|
1986
|
+
};
|
|
1987
|
+
};
|
|
1988
|
+
} & {
|
|
1989
|
+
api: {
|
|
1990
|
+
sessions: {
|
|
1991
|
+
":sessionId": {
|
|
1992
|
+
"generate-title": import("hono/client").ClientRequest<{
|
|
1993
|
+
$post: {
|
|
1994
|
+
input: {
|
|
1995
|
+
param: {
|
|
1996
|
+
sessionId: string;
|
|
1997
|
+
};
|
|
1998
|
+
};
|
|
1999
|
+
output: {};
|
|
2000
|
+
outputFormat: string;
|
|
2001
|
+
status: 404;
|
|
2002
|
+
} | {
|
|
2003
|
+
input: {
|
|
2004
|
+
param: {
|
|
2005
|
+
sessionId: string;
|
|
2006
|
+
};
|
|
2007
|
+
};
|
|
2008
|
+
output: {
|
|
2009
|
+
title: string | null;
|
|
2010
|
+
sessionId: string;
|
|
2011
|
+
};
|
|
2012
|
+
outputFormat: "json";
|
|
2013
|
+
status: 200;
|
|
2014
|
+
};
|
|
2015
|
+
}>;
|
|
2016
|
+
};
|
|
2017
|
+
};
|
|
2018
|
+
};
|
|
2019
|
+
} & {
|
|
2020
|
+
api: {
|
|
2021
|
+
llm: {
|
|
2022
|
+
current: import("hono/client").ClientRequest<{
|
|
2023
|
+
$get: {
|
|
2024
|
+
input: {
|
|
2025
|
+
query: {
|
|
2026
|
+
sessionId?: string | undefined;
|
|
2027
|
+
};
|
|
2028
|
+
};
|
|
2029
|
+
output: {
|
|
2030
|
+
config: {
|
|
2031
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
|
|
2032
|
+
model: string;
|
|
2033
|
+
maxIterations?: number | undefined;
|
|
2034
|
+
router?: "vercel" | "in-built" | undefined;
|
|
2035
|
+
baseURL?: string | undefined;
|
|
2036
|
+
maxInputTokens?: number | undefined;
|
|
2037
|
+
maxOutputTokens?: number | undefined;
|
|
2038
|
+
temperature?: number | undefined;
|
|
2039
|
+
allowedMediaTypes?: string[] | undefined;
|
|
2040
|
+
hasApiKey?: boolean | undefined;
|
|
2041
|
+
displayName?: string | undefined;
|
|
2042
|
+
};
|
|
2043
|
+
};
|
|
2044
|
+
outputFormat: "json";
|
|
2045
|
+
status: 200;
|
|
2046
|
+
};
|
|
2047
|
+
}>;
|
|
2048
|
+
};
|
|
2049
|
+
};
|
|
2050
|
+
} & {
|
|
2051
|
+
api: {
|
|
2052
|
+
llm: {
|
|
2053
|
+
catalog: import("hono/client").ClientRequest<{
|
|
2054
|
+
$get: {
|
|
2055
|
+
input: {
|
|
2056
|
+
query: {
|
|
2057
|
+
provider?: string | string[] | undefined;
|
|
2058
|
+
router?: "vercel" | "in-built" | undefined;
|
|
2059
|
+
hasKey?: "0" | "1" | "true" | "false" | undefined;
|
|
2060
|
+
fileType?: "image" | "audio" | "pdf" | undefined;
|
|
2061
|
+
defaultOnly?: "0" | "1" | "true" | "false" | undefined;
|
|
2062
|
+
mode?: "flat" | "grouped" | undefined;
|
|
2063
|
+
};
|
|
2064
|
+
};
|
|
2065
|
+
output: {
|
|
2066
|
+
providers: {
|
|
2067
|
+
openai?: {
|
|
2068
|
+
hasApiKey: boolean;
|
|
2069
|
+
name: string;
|
|
2070
|
+
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
2071
|
+
supportedRouters: ("vercel" | "in-built")[];
|
|
2072
|
+
primaryEnvVar: string;
|
|
2073
|
+
supportsBaseURL: boolean;
|
|
2074
|
+
models: {
|
|
2075
|
+
maxInputTokens: number;
|
|
2076
|
+
name: string;
|
|
2077
|
+
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
2078
|
+
default?: boolean | undefined;
|
|
2079
|
+
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
2080
|
+
displayName?: string | undefined;
|
|
2081
|
+
pricing?: {
|
|
2082
|
+
inputPerM: number;
|
|
2083
|
+
outputPerM: number;
|
|
2084
|
+
cacheReadPerM?: number | undefined;
|
|
2085
|
+
cacheWritePerM?: number | undefined;
|
|
2086
|
+
currency?: "USD" | undefined;
|
|
2087
|
+
unit?: "per_million_tokens" | undefined;
|
|
2088
|
+
} | undefined;
|
|
2089
|
+
}[];
|
|
2090
|
+
} | undefined;
|
|
2091
|
+
"openai-compatible"?: {
|
|
2092
|
+
hasApiKey: boolean;
|
|
2093
|
+
name: string;
|
|
2094
|
+
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
2095
|
+
supportedRouters: ("vercel" | "in-built")[];
|
|
2096
|
+
primaryEnvVar: string;
|
|
2097
|
+
supportsBaseURL: boolean;
|
|
2098
|
+
models: {
|
|
2099
|
+
maxInputTokens: number;
|
|
2100
|
+
name: string;
|
|
2101
|
+
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
2102
|
+
default?: boolean | undefined;
|
|
2103
|
+
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
2104
|
+
displayName?: string | undefined;
|
|
2105
|
+
pricing?: {
|
|
2106
|
+
inputPerM: number;
|
|
2107
|
+
outputPerM: number;
|
|
2108
|
+
cacheReadPerM?: number | undefined;
|
|
2109
|
+
cacheWritePerM?: number | undefined;
|
|
2110
|
+
currency?: "USD" | undefined;
|
|
2111
|
+
unit?: "per_million_tokens" | undefined;
|
|
2112
|
+
} | undefined;
|
|
2113
|
+
}[];
|
|
2114
|
+
} | undefined;
|
|
2115
|
+
anthropic?: {
|
|
2116
|
+
hasApiKey: boolean;
|
|
2117
|
+
name: string;
|
|
2118
|
+
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
2119
|
+
supportedRouters: ("vercel" | "in-built")[];
|
|
2120
|
+
primaryEnvVar: string;
|
|
2121
|
+
supportsBaseURL: boolean;
|
|
2122
|
+
models: {
|
|
2123
|
+
maxInputTokens: number;
|
|
2124
|
+
name: string;
|
|
2125
|
+
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
2126
|
+
default?: boolean | undefined;
|
|
2127
|
+
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
2128
|
+
displayName?: string | undefined;
|
|
2129
|
+
pricing?: {
|
|
2130
|
+
inputPerM: number;
|
|
2131
|
+
outputPerM: number;
|
|
2132
|
+
cacheReadPerM?: number | undefined;
|
|
2133
|
+
cacheWritePerM?: number | undefined;
|
|
2134
|
+
currency?: "USD" | undefined;
|
|
2135
|
+
unit?: "per_million_tokens" | undefined;
|
|
2136
|
+
} | undefined;
|
|
2137
|
+
}[];
|
|
2138
|
+
} | undefined;
|
|
2139
|
+
google?: {
|
|
2140
|
+
hasApiKey: boolean;
|
|
2141
|
+
name: string;
|
|
2142
|
+
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
2143
|
+
supportedRouters: ("vercel" | "in-built")[];
|
|
2144
|
+
primaryEnvVar: string;
|
|
2145
|
+
supportsBaseURL: boolean;
|
|
2146
|
+
models: {
|
|
2147
|
+
maxInputTokens: number;
|
|
2148
|
+
name: string;
|
|
2149
|
+
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
2150
|
+
default?: boolean | undefined;
|
|
2151
|
+
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
2152
|
+
displayName?: string | undefined;
|
|
2153
|
+
pricing?: {
|
|
2154
|
+
inputPerM: number;
|
|
2155
|
+
outputPerM: number;
|
|
2156
|
+
cacheReadPerM?: number | undefined;
|
|
2157
|
+
cacheWritePerM?: number | undefined;
|
|
2158
|
+
currency?: "USD" | undefined;
|
|
2159
|
+
unit?: "per_million_tokens" | undefined;
|
|
2160
|
+
} | undefined;
|
|
2161
|
+
}[];
|
|
2162
|
+
} | undefined;
|
|
2163
|
+
groq?: {
|
|
2164
|
+
hasApiKey: boolean;
|
|
2165
|
+
name: string;
|
|
2166
|
+
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
2167
|
+
supportedRouters: ("vercel" | "in-built")[];
|
|
2168
|
+
primaryEnvVar: string;
|
|
2169
|
+
supportsBaseURL: boolean;
|
|
2170
|
+
models: {
|
|
2171
|
+
maxInputTokens: number;
|
|
2172
|
+
name: string;
|
|
2173
|
+
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
2174
|
+
default?: boolean | undefined;
|
|
2175
|
+
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
2176
|
+
displayName?: string | undefined;
|
|
2177
|
+
pricing?: {
|
|
2178
|
+
inputPerM: number;
|
|
2179
|
+
outputPerM: number;
|
|
2180
|
+
cacheReadPerM?: number | undefined;
|
|
2181
|
+
cacheWritePerM?: number | undefined;
|
|
2182
|
+
currency?: "USD" | undefined;
|
|
2183
|
+
unit?: "per_million_tokens" | undefined;
|
|
2184
|
+
} | undefined;
|
|
2185
|
+
}[];
|
|
2186
|
+
} | undefined;
|
|
2187
|
+
xai?: {
|
|
2188
|
+
hasApiKey: boolean;
|
|
2189
|
+
name: string;
|
|
2190
|
+
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
2191
|
+
supportedRouters: ("vercel" | "in-built")[];
|
|
2192
|
+
primaryEnvVar: string;
|
|
2193
|
+
supportsBaseURL: boolean;
|
|
2194
|
+
models: {
|
|
2195
|
+
maxInputTokens: number;
|
|
2196
|
+
name: string;
|
|
2197
|
+
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
2198
|
+
default?: boolean | undefined;
|
|
2199
|
+
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
2200
|
+
displayName?: string | undefined;
|
|
2201
|
+
pricing?: {
|
|
2202
|
+
inputPerM: number;
|
|
2203
|
+
outputPerM: number;
|
|
2204
|
+
cacheReadPerM?: number | undefined;
|
|
2205
|
+
cacheWritePerM?: number | undefined;
|
|
2206
|
+
currency?: "USD" | undefined;
|
|
2207
|
+
unit?: "per_million_tokens" | undefined;
|
|
2208
|
+
} | undefined;
|
|
2209
|
+
}[];
|
|
2210
|
+
} | undefined;
|
|
2211
|
+
cohere?: {
|
|
2212
|
+
hasApiKey: boolean;
|
|
2213
|
+
name: string;
|
|
2214
|
+
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
2215
|
+
supportedRouters: ("vercel" | "in-built")[];
|
|
2216
|
+
primaryEnvVar: string;
|
|
2217
|
+
supportsBaseURL: boolean;
|
|
2218
|
+
models: {
|
|
2219
|
+
maxInputTokens: number;
|
|
2220
|
+
name: string;
|
|
2221
|
+
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
2222
|
+
default?: boolean | undefined;
|
|
2223
|
+
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
2224
|
+
displayName?: string | undefined;
|
|
2225
|
+
pricing?: {
|
|
2226
|
+
inputPerM: number;
|
|
2227
|
+
outputPerM: number;
|
|
2228
|
+
cacheReadPerM?: number | undefined;
|
|
2229
|
+
cacheWritePerM?: number | undefined;
|
|
2230
|
+
currency?: "USD" | undefined;
|
|
2231
|
+
unit?: "per_million_tokens" | undefined;
|
|
2232
|
+
} | undefined;
|
|
2233
|
+
}[];
|
|
2234
|
+
} | undefined;
|
|
2235
|
+
};
|
|
2236
|
+
} | {
|
|
2237
|
+
models: {
|
|
2238
|
+
provider: string;
|
|
2239
|
+
maxInputTokens: number;
|
|
2240
|
+
name: string;
|
|
2241
|
+
supportedFileTypes: ("image" | "audio" | "pdf")[];
|
|
2242
|
+
default?: boolean | undefined;
|
|
2243
|
+
supportedRouters?: ("vercel" | "in-built")[] | undefined;
|
|
2244
|
+
displayName?: string | undefined;
|
|
2245
|
+
pricing?: {
|
|
2246
|
+
inputPerM: number;
|
|
2247
|
+
outputPerM: number;
|
|
2248
|
+
cacheReadPerM?: number | undefined;
|
|
2249
|
+
cacheWritePerM?: number | undefined;
|
|
2250
|
+
currency?: "USD" | undefined;
|
|
2251
|
+
unit?: "per_million_tokens" | undefined;
|
|
2252
|
+
} | undefined;
|
|
2253
|
+
}[];
|
|
2254
|
+
};
|
|
2255
|
+
outputFormat: "json";
|
|
2256
|
+
status: 200;
|
|
2257
|
+
};
|
|
2258
|
+
}>;
|
|
2259
|
+
};
|
|
2260
|
+
};
|
|
2261
|
+
} & {
|
|
2262
|
+
api: {
|
|
2263
|
+
llm: {
|
|
2264
|
+
key: import("hono/client").ClientRequest<{
|
|
2265
|
+
$post: {
|
|
2266
|
+
input: {
|
|
2267
|
+
json: {
|
|
2268
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
|
|
2269
|
+
apiKey: string;
|
|
2270
|
+
};
|
|
2271
|
+
};
|
|
2272
|
+
output: {
|
|
2273
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
|
|
2274
|
+
ok: true;
|
|
2275
|
+
envVar: string;
|
|
2276
|
+
};
|
|
2277
|
+
outputFormat: "json";
|
|
2278
|
+
status: 200;
|
|
2279
|
+
};
|
|
2280
|
+
}>;
|
|
2281
|
+
};
|
|
2282
|
+
};
|
|
2283
|
+
} & {
|
|
2284
|
+
api: {
|
|
2285
|
+
llm: {
|
|
2286
|
+
switch: import("hono/client").ClientRequest<{
|
|
2287
|
+
$post: {
|
|
2288
|
+
input: {
|
|
2289
|
+
json: {
|
|
2290
|
+
apiKey?: string | undefined;
|
|
2291
|
+
model?: string | undefined;
|
|
2292
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
2293
|
+
router?: "vercel" | "in-built" | undefined;
|
|
2294
|
+
maxIterations?: number | undefined;
|
|
2295
|
+
baseURL?: string | undefined;
|
|
2296
|
+
maxInputTokens?: number | undefined;
|
|
2297
|
+
maxOutputTokens?: number | undefined;
|
|
2298
|
+
temperature?: number | undefined;
|
|
2299
|
+
allowedMediaTypes?: string[] | undefined;
|
|
2300
|
+
} & {
|
|
2301
|
+
sessionId?: string | undefined;
|
|
2302
|
+
};
|
|
2303
|
+
};
|
|
2304
|
+
output: {
|
|
2305
|
+
config: {
|
|
2306
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
|
|
2307
|
+
model: string;
|
|
2308
|
+
maxIterations: number;
|
|
2309
|
+
router: "vercel" | "in-built";
|
|
2310
|
+
baseURL?: string | undefined;
|
|
2311
|
+
maxInputTokens?: number | undefined;
|
|
2312
|
+
maxOutputTokens?: number | undefined;
|
|
2313
|
+
temperature?: number | undefined;
|
|
2314
|
+
allowedMediaTypes?: string[] | undefined;
|
|
2315
|
+
hasApiKey?: boolean | undefined;
|
|
2316
|
+
};
|
|
2317
|
+
sessionId?: string | undefined;
|
|
2318
|
+
};
|
|
2319
|
+
outputFormat: "json";
|
|
2320
|
+
status: 200;
|
|
2321
|
+
};
|
|
2322
|
+
}>;
|
|
2323
|
+
};
|
|
2324
|
+
};
|
|
2325
|
+
} & {
|
|
2326
|
+
api: {
|
|
2327
|
+
message: import("hono/client").ClientRequest<{
|
|
2328
|
+
$post: {
|
|
2329
|
+
input: {
|
|
2330
|
+
json: {
|
|
2331
|
+
sessionId: string;
|
|
2332
|
+
message?: string | undefined;
|
|
2333
|
+
imageData?: {
|
|
2334
|
+
mimeType: string;
|
|
2335
|
+
base64: string;
|
|
2336
|
+
} | undefined;
|
|
2337
|
+
fileData?: {
|
|
2338
|
+
mimeType: string;
|
|
2339
|
+
base64: string;
|
|
2340
|
+
filename?: string | undefined;
|
|
2341
|
+
} | undefined;
|
|
2342
|
+
};
|
|
2343
|
+
};
|
|
2344
|
+
output: {
|
|
2345
|
+
sessionId: string;
|
|
2346
|
+
accepted: true;
|
|
2347
|
+
};
|
|
2348
|
+
outputFormat: "json";
|
|
2349
|
+
status: 202;
|
|
2350
|
+
} | {
|
|
2351
|
+
input: {
|
|
2352
|
+
json: {
|
|
2353
|
+
sessionId: string;
|
|
2354
|
+
message?: string | undefined;
|
|
2355
|
+
imageData?: {
|
|
2356
|
+
mimeType: string;
|
|
2357
|
+
base64: string;
|
|
2358
|
+
} | undefined;
|
|
2359
|
+
fileData?: {
|
|
2360
|
+
mimeType: string;
|
|
2361
|
+
base64: string;
|
|
2362
|
+
filename?: string | undefined;
|
|
2363
|
+
} | undefined;
|
|
2364
|
+
};
|
|
2365
|
+
};
|
|
2366
|
+
output: {};
|
|
2367
|
+
outputFormat: string;
|
|
2368
|
+
status: 400;
|
|
2369
|
+
};
|
|
2370
|
+
}>;
|
|
2371
|
+
};
|
|
2372
|
+
} & {
|
|
2373
|
+
api: {
|
|
2374
|
+
"message-sync": import("hono/client").ClientRequest<{
|
|
2375
|
+
$post: {
|
|
2376
|
+
input: {
|
|
2377
|
+
json: {
|
|
2378
|
+
sessionId: string;
|
|
2379
|
+
message?: string | undefined;
|
|
2380
|
+
imageData?: {
|
|
2381
|
+
mimeType: string;
|
|
2382
|
+
base64: string;
|
|
2383
|
+
} | undefined;
|
|
2384
|
+
fileData?: {
|
|
2385
|
+
mimeType: string;
|
|
2386
|
+
base64: string;
|
|
2387
|
+
filename?: string | undefined;
|
|
2388
|
+
} | undefined;
|
|
2389
|
+
};
|
|
2390
|
+
};
|
|
2391
|
+
output: {};
|
|
2392
|
+
outputFormat: string;
|
|
2393
|
+
status: 400;
|
|
2394
|
+
} | {
|
|
2395
|
+
input: {
|
|
2396
|
+
json: {
|
|
2397
|
+
sessionId: string;
|
|
2398
|
+
message?: string | undefined;
|
|
2399
|
+
imageData?: {
|
|
2400
|
+
mimeType: string;
|
|
2401
|
+
base64: string;
|
|
2402
|
+
} | undefined;
|
|
2403
|
+
fileData?: {
|
|
2404
|
+
mimeType: string;
|
|
2405
|
+
base64: string;
|
|
2406
|
+
filename?: string | undefined;
|
|
2407
|
+
} | undefined;
|
|
2408
|
+
};
|
|
2409
|
+
};
|
|
2410
|
+
output: {
|
|
2411
|
+
sessionId: string;
|
|
2412
|
+
response: string;
|
|
2413
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
2414
|
+
model?: string | undefined;
|
|
2415
|
+
router?: "vercel" | "in-built" | undefined;
|
|
2416
|
+
reasoning?: string | undefined;
|
|
2417
|
+
tokenUsage?: {
|
|
2418
|
+
inputTokens?: number | undefined;
|
|
2419
|
+
outputTokens?: number | undefined;
|
|
2420
|
+
reasoningTokens?: number | undefined;
|
|
2421
|
+
totalTokens?: number | undefined;
|
|
2422
|
+
} | undefined;
|
|
2423
|
+
};
|
|
2424
|
+
outputFormat: "json";
|
|
2425
|
+
status: 200;
|
|
2426
|
+
};
|
|
2427
|
+
}>;
|
|
2428
|
+
};
|
|
2429
|
+
} & {
|
|
2430
|
+
api: {
|
|
2431
|
+
reset: import("hono/client").ClientRequest<{
|
|
2432
|
+
$post: {
|
|
2433
|
+
input: {
|
|
2434
|
+
json: {
|
|
2435
|
+
sessionId: string;
|
|
2436
|
+
};
|
|
2437
|
+
};
|
|
2438
|
+
output: {
|
|
2439
|
+
status: string;
|
|
2440
|
+
sessionId: string;
|
|
2441
|
+
};
|
|
2442
|
+
outputFormat: "json";
|
|
2443
|
+
status: 200;
|
|
2444
|
+
};
|
|
2445
|
+
}>;
|
|
2446
|
+
};
|
|
2447
|
+
} & {
|
|
2448
|
+
api: {
|
|
2449
|
+
"message-stream": import("hono/client").ClientRequest<{
|
|
2450
|
+
$post: {
|
|
2451
|
+
input: {
|
|
2452
|
+
json: {
|
|
2453
|
+
sessionId: string;
|
|
2454
|
+
message?: string | undefined;
|
|
2455
|
+
imageData?: {
|
|
2456
|
+
mimeType: string;
|
|
2457
|
+
base64: string;
|
|
2458
|
+
} | undefined;
|
|
2459
|
+
fileData?: {
|
|
2460
|
+
mimeType: string;
|
|
2461
|
+
base64: string;
|
|
2462
|
+
filename?: string | undefined;
|
|
2463
|
+
} | undefined;
|
|
2464
|
+
};
|
|
2465
|
+
};
|
|
2466
|
+
output: Response;
|
|
2467
|
+
outputFormat: "json";
|
|
2468
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
2469
|
+
} | {
|
|
2470
|
+
input: {
|
|
2471
|
+
json: {
|
|
2472
|
+
sessionId: string;
|
|
2473
|
+
message?: string | undefined;
|
|
2474
|
+
imageData?: {
|
|
2475
|
+
mimeType: string;
|
|
2476
|
+
base64: string;
|
|
2477
|
+
} | undefined;
|
|
2478
|
+
fileData?: {
|
|
2479
|
+
mimeType: string;
|
|
2480
|
+
base64: string;
|
|
2481
|
+
filename?: string | undefined;
|
|
2482
|
+
} | undefined;
|
|
2483
|
+
};
|
|
2484
|
+
};
|
|
2485
|
+
output: {};
|
|
2486
|
+
outputFormat: string;
|
|
2487
|
+
status: 400;
|
|
2488
|
+
};
|
|
2489
|
+
}>;
|
|
2490
|
+
};
|
|
2491
|
+
} & {
|
|
2492
|
+
api: {
|
|
2493
|
+
greeting: import("hono/client").ClientRequest<{
|
|
2494
|
+
$get: {
|
|
2495
|
+
input: {
|
|
2496
|
+
query: {
|
|
2497
|
+
sessionId?: string | undefined;
|
|
2498
|
+
};
|
|
2499
|
+
};
|
|
2500
|
+
output: {
|
|
2501
|
+
greeting?: string | undefined;
|
|
2502
|
+
};
|
|
2503
|
+
outputFormat: "json";
|
|
2504
|
+
status: 200;
|
|
2505
|
+
};
|
|
2506
|
+
}>;
|
|
2507
|
+
};
|
|
2508
|
+
} & {
|
|
2509
|
+
v1: {
|
|
2510
|
+
"message:send": import("hono/client").ClientRequest<{
|
|
2511
|
+
$post: {
|
|
2512
|
+
input: {
|
|
2513
|
+
json: {
|
|
2514
|
+
message: {
|
|
2515
|
+
role: "user" | "agent";
|
|
2516
|
+
kind: "message";
|
|
2517
|
+
parts: ({
|
|
2518
|
+
text: string;
|
|
2519
|
+
kind: "text";
|
|
2520
|
+
metadata?: Record<string, any> | undefined;
|
|
2521
|
+
} | {
|
|
2522
|
+
file: {
|
|
2523
|
+
bytes: string;
|
|
2524
|
+
mimeType?: string | undefined;
|
|
2525
|
+
name?: string | undefined;
|
|
2526
|
+
} | {
|
|
2527
|
+
uri: string;
|
|
2528
|
+
mimeType?: string | undefined;
|
|
2529
|
+
name?: string | undefined;
|
|
2530
|
+
};
|
|
2531
|
+
kind: "file";
|
|
2532
|
+
metadata?: Record<string, any> | undefined;
|
|
2533
|
+
} | {
|
|
2534
|
+
data: Record<string, any>;
|
|
2535
|
+
kind: "data";
|
|
2536
|
+
metadata?: Record<string, any> | undefined;
|
|
2537
|
+
})[];
|
|
2538
|
+
messageId: string;
|
|
2539
|
+
metadata?: Record<string, any> | undefined;
|
|
2540
|
+
contextId?: string | undefined;
|
|
2541
|
+
taskId?: string | undefined;
|
|
2542
|
+
extensions?: string[] | undefined;
|
|
2543
|
+
referenceTaskIds?: string[] | undefined;
|
|
2544
|
+
};
|
|
2545
|
+
metadata?: Record<string, any> | undefined;
|
|
2546
|
+
configuration?: {
|
|
2547
|
+
blocking?: boolean | undefined;
|
|
2548
|
+
acceptedOutputModes?: string[] | undefined;
|
|
2549
|
+
historyLength?: number | undefined;
|
|
2550
|
+
pushNotificationConfig?: {
|
|
2551
|
+
url: string;
|
|
2552
|
+
headers?: Record<string, string> | undefined;
|
|
2553
|
+
} | undefined;
|
|
2554
|
+
} | undefined;
|
|
2555
|
+
};
|
|
2556
|
+
};
|
|
2557
|
+
output: {
|
|
2558
|
+
status: {
|
|
2559
|
+
state: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required";
|
|
2560
|
+
message?: {
|
|
2561
|
+
role: "user" | "agent";
|
|
2562
|
+
kind: "message";
|
|
2563
|
+
parts: ({
|
|
2564
|
+
text: string;
|
|
2565
|
+
kind: "text";
|
|
2566
|
+
metadata?: {
|
|
2567
|
+
[x: string]: any;
|
|
2568
|
+
} | undefined;
|
|
2569
|
+
} | {
|
|
2570
|
+
file: {
|
|
2571
|
+
bytes: string;
|
|
2572
|
+
mimeType?: string | undefined;
|
|
2573
|
+
name?: string | undefined;
|
|
2574
|
+
} | {
|
|
2575
|
+
uri: string;
|
|
2576
|
+
mimeType?: string | undefined;
|
|
2577
|
+
name?: string | undefined;
|
|
2578
|
+
};
|
|
2579
|
+
kind: "file";
|
|
2580
|
+
metadata?: {
|
|
2581
|
+
[x: string]: any;
|
|
2582
|
+
} | undefined;
|
|
2583
|
+
} | {
|
|
2584
|
+
data: {
|
|
2585
|
+
[x: string]: any;
|
|
2586
|
+
};
|
|
2587
|
+
kind: "data";
|
|
2588
|
+
metadata?: {
|
|
2589
|
+
[x: string]: any;
|
|
2590
|
+
} | undefined;
|
|
2591
|
+
})[];
|
|
2592
|
+
messageId: string;
|
|
2593
|
+
metadata?: {
|
|
2594
|
+
[x: string]: any;
|
|
2595
|
+
} | undefined;
|
|
2596
|
+
contextId?: string | undefined;
|
|
2597
|
+
taskId?: string | undefined;
|
|
2598
|
+
extensions?: string[] | undefined;
|
|
2599
|
+
referenceTaskIds?: string[] | undefined;
|
|
2600
|
+
} | undefined;
|
|
2601
|
+
timestamp?: string | undefined;
|
|
2602
|
+
};
|
|
2603
|
+
id: string;
|
|
2604
|
+
kind: "task";
|
|
2605
|
+
contextId: string;
|
|
2606
|
+
metadata?: {
|
|
2607
|
+
[x: string]: any;
|
|
2608
|
+
} | undefined;
|
|
2609
|
+
history?: {
|
|
2610
|
+
role: "user" | "agent";
|
|
2611
|
+
kind: "message";
|
|
2612
|
+
parts: ({
|
|
2613
|
+
text: string;
|
|
2614
|
+
kind: "text";
|
|
2615
|
+
metadata?: {
|
|
2616
|
+
[x: string]: any;
|
|
2617
|
+
} | undefined;
|
|
2618
|
+
} | {
|
|
2619
|
+
file: {
|
|
2620
|
+
bytes: string;
|
|
2621
|
+
mimeType?: string | undefined;
|
|
2622
|
+
name?: string | undefined;
|
|
2623
|
+
} | {
|
|
2624
|
+
uri: string;
|
|
2625
|
+
mimeType?: string | undefined;
|
|
2626
|
+
name?: string | undefined;
|
|
2627
|
+
};
|
|
2628
|
+
kind: "file";
|
|
2629
|
+
metadata?: {
|
|
2630
|
+
[x: string]: any;
|
|
2631
|
+
} | undefined;
|
|
2632
|
+
} | {
|
|
2633
|
+
data: {
|
|
2634
|
+
[x: string]: any;
|
|
2635
|
+
};
|
|
2636
|
+
kind: "data";
|
|
2637
|
+
metadata?: {
|
|
2638
|
+
[x: string]: any;
|
|
2639
|
+
} | undefined;
|
|
2640
|
+
})[];
|
|
2641
|
+
messageId: string;
|
|
2642
|
+
metadata?: {
|
|
2643
|
+
[x: string]: any;
|
|
2644
|
+
} | undefined;
|
|
2645
|
+
contextId?: string | undefined;
|
|
2646
|
+
taskId?: string | undefined;
|
|
2647
|
+
extensions?: string[] | undefined;
|
|
2648
|
+
referenceTaskIds?: string[] | undefined;
|
|
2649
|
+
}[] | undefined;
|
|
2650
|
+
artifacts?: any[] | undefined;
|
|
2651
|
+
};
|
|
2652
|
+
outputFormat: "json";
|
|
2653
|
+
status: 200;
|
|
2654
|
+
};
|
|
2655
|
+
}>;
|
|
2656
|
+
};
|
|
2657
|
+
} & {
|
|
2658
|
+
v1: {
|
|
2659
|
+
tasks: import("hono/client").ClientRequest<{
|
|
2660
|
+
$get: {
|
|
2661
|
+
input: {
|
|
2662
|
+
query: {
|
|
2663
|
+
status?: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required" | undefined;
|
|
2664
|
+
contextId?: string | undefined;
|
|
2665
|
+
pageSize?: string | undefined;
|
|
2666
|
+
historyLength?: string | undefined;
|
|
2667
|
+
pageToken?: string | undefined;
|
|
2668
|
+
lastUpdatedAfter?: string | undefined;
|
|
2669
|
+
includeArtifacts?: string | undefined;
|
|
2670
|
+
};
|
|
2671
|
+
};
|
|
2672
|
+
output: {
|
|
2673
|
+
tasks: {
|
|
2674
|
+
status: {
|
|
2675
|
+
state: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required";
|
|
2676
|
+
message?: {
|
|
2677
|
+
role: "user" | "agent";
|
|
2678
|
+
kind: "message";
|
|
2679
|
+
parts: ({
|
|
2680
|
+
text: string;
|
|
2681
|
+
kind: "text";
|
|
2682
|
+
metadata?: {
|
|
2683
|
+
[x: string]: any;
|
|
2684
|
+
} | undefined;
|
|
2685
|
+
} | {
|
|
2686
|
+
file: {
|
|
2687
|
+
bytes: string;
|
|
2688
|
+
mimeType?: string | undefined;
|
|
2689
|
+
name?: string | undefined;
|
|
2690
|
+
} | {
|
|
2691
|
+
uri: string;
|
|
2692
|
+
mimeType?: string | undefined;
|
|
2693
|
+
name?: string | undefined;
|
|
2694
|
+
};
|
|
2695
|
+
kind: "file";
|
|
2696
|
+
metadata?: {
|
|
2697
|
+
[x: string]: any;
|
|
2698
|
+
} | undefined;
|
|
2699
|
+
} | {
|
|
2700
|
+
data: {
|
|
2701
|
+
[x: string]: any;
|
|
2702
|
+
};
|
|
2703
|
+
kind: "data";
|
|
2704
|
+
metadata?: {
|
|
2705
|
+
[x: string]: any;
|
|
2706
|
+
} | undefined;
|
|
2707
|
+
})[];
|
|
2708
|
+
messageId: string;
|
|
2709
|
+
metadata?: {
|
|
2710
|
+
[x: string]: any;
|
|
2711
|
+
} | undefined;
|
|
2712
|
+
contextId?: string | undefined;
|
|
2713
|
+
taskId?: string | undefined;
|
|
2714
|
+
extensions?: string[] | undefined;
|
|
2715
|
+
referenceTaskIds?: string[] | undefined;
|
|
2716
|
+
} | undefined;
|
|
2717
|
+
timestamp?: string | undefined;
|
|
2718
|
+
};
|
|
2719
|
+
id: string;
|
|
2720
|
+
kind: "task";
|
|
2721
|
+
contextId: string;
|
|
2722
|
+
metadata?: {
|
|
2723
|
+
[x: string]: any;
|
|
2724
|
+
} | undefined;
|
|
2725
|
+
history?: {
|
|
2726
|
+
role: "user" | "agent";
|
|
2727
|
+
kind: "message";
|
|
2728
|
+
parts: ({
|
|
2729
|
+
text: string;
|
|
2730
|
+
kind: "text";
|
|
2731
|
+
metadata?: {
|
|
2732
|
+
[x: string]: any;
|
|
2733
|
+
} | undefined;
|
|
2734
|
+
} | {
|
|
2735
|
+
file: {
|
|
2736
|
+
bytes: string;
|
|
2737
|
+
mimeType?: string | undefined;
|
|
2738
|
+
name?: string | undefined;
|
|
2739
|
+
} | {
|
|
2740
|
+
uri: string;
|
|
2741
|
+
mimeType?: string | undefined;
|
|
2742
|
+
name?: string | undefined;
|
|
2743
|
+
};
|
|
2744
|
+
kind: "file";
|
|
2745
|
+
metadata?: {
|
|
2746
|
+
[x: string]: any;
|
|
2747
|
+
} | undefined;
|
|
2748
|
+
} | {
|
|
2749
|
+
data: {
|
|
2750
|
+
[x: string]: any;
|
|
2751
|
+
};
|
|
2752
|
+
kind: "data";
|
|
2753
|
+
metadata?: {
|
|
2754
|
+
[x: string]: any;
|
|
2755
|
+
} | undefined;
|
|
2756
|
+
})[];
|
|
2757
|
+
messageId: string;
|
|
2758
|
+
metadata?: {
|
|
2759
|
+
[x: string]: any;
|
|
2760
|
+
} | undefined;
|
|
2761
|
+
contextId?: string | undefined;
|
|
2762
|
+
taskId?: string | undefined;
|
|
2763
|
+
extensions?: string[] | undefined;
|
|
2764
|
+
referenceTaskIds?: string[] | undefined;
|
|
2765
|
+
}[] | undefined;
|
|
2766
|
+
artifacts?: any[] | undefined;
|
|
2767
|
+
}[];
|
|
2768
|
+
totalSize: number;
|
|
2769
|
+
pageSize: number;
|
|
2770
|
+
nextPageToken: string;
|
|
2771
|
+
};
|
|
2772
|
+
outputFormat: "json";
|
|
2773
|
+
status: 200;
|
|
2774
|
+
};
|
|
2775
|
+
}>;
|
|
2776
|
+
};
|
|
2777
|
+
} & {
|
|
2778
|
+
v1: {
|
|
2779
|
+
tasks: {
|
|
2780
|
+
":id": import("hono/client").ClientRequest<{
|
|
2781
|
+
$get: {
|
|
2782
|
+
input: {
|
|
2783
|
+
param: {
|
|
2784
|
+
id: string;
|
|
2785
|
+
};
|
|
2786
|
+
};
|
|
2787
|
+
output: {};
|
|
2788
|
+
outputFormat: string;
|
|
2789
|
+
status: 404;
|
|
2790
|
+
} | {
|
|
2791
|
+
input: {
|
|
2792
|
+
param: {
|
|
2793
|
+
id: string;
|
|
2794
|
+
};
|
|
2795
|
+
};
|
|
2796
|
+
output: {
|
|
2797
|
+
status: {
|
|
2798
|
+
state: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required";
|
|
2799
|
+
message?: {
|
|
2800
|
+
role: "user" | "agent";
|
|
2801
|
+
kind: "message";
|
|
2802
|
+
parts: ({
|
|
2803
|
+
text: string;
|
|
2804
|
+
kind: "text";
|
|
2805
|
+
metadata?: {
|
|
2806
|
+
[x: string]: any;
|
|
2807
|
+
} | undefined;
|
|
2808
|
+
} | {
|
|
2809
|
+
file: {
|
|
2810
|
+
bytes: string;
|
|
2811
|
+
mimeType?: string | undefined;
|
|
2812
|
+
name?: string | undefined;
|
|
2813
|
+
} | {
|
|
2814
|
+
uri: string;
|
|
2815
|
+
mimeType?: string | undefined;
|
|
2816
|
+
name?: string | undefined;
|
|
2817
|
+
};
|
|
2818
|
+
kind: "file";
|
|
2819
|
+
metadata?: {
|
|
2820
|
+
[x: string]: any;
|
|
2821
|
+
} | undefined;
|
|
2822
|
+
} | {
|
|
2823
|
+
data: {
|
|
2824
|
+
[x: string]: any;
|
|
2825
|
+
};
|
|
2826
|
+
kind: "data";
|
|
2827
|
+
metadata?: {
|
|
2828
|
+
[x: string]: any;
|
|
2829
|
+
} | undefined;
|
|
2830
|
+
})[];
|
|
2831
|
+
messageId: string;
|
|
2832
|
+
metadata?: {
|
|
2833
|
+
[x: string]: any;
|
|
2834
|
+
} | undefined;
|
|
2835
|
+
contextId?: string | undefined;
|
|
2836
|
+
taskId?: string | undefined;
|
|
2837
|
+
extensions?: string[] | undefined;
|
|
2838
|
+
referenceTaskIds?: string[] | undefined;
|
|
2839
|
+
} | undefined;
|
|
2840
|
+
timestamp?: string | undefined;
|
|
2841
|
+
};
|
|
2842
|
+
id: string;
|
|
2843
|
+
kind: "task";
|
|
2844
|
+
contextId: string;
|
|
2845
|
+
metadata?: {
|
|
2846
|
+
[x: string]: any;
|
|
2847
|
+
} | undefined;
|
|
2848
|
+
history?: {
|
|
2849
|
+
role: "user" | "agent";
|
|
2850
|
+
kind: "message";
|
|
2851
|
+
parts: ({
|
|
2852
|
+
text: string;
|
|
2853
|
+
kind: "text";
|
|
2854
|
+
metadata?: {
|
|
2855
|
+
[x: string]: any;
|
|
2856
|
+
} | undefined;
|
|
2857
|
+
} | {
|
|
2858
|
+
file: {
|
|
2859
|
+
bytes: string;
|
|
2860
|
+
mimeType?: string | undefined;
|
|
2861
|
+
name?: string | undefined;
|
|
2862
|
+
} | {
|
|
2863
|
+
uri: string;
|
|
2864
|
+
mimeType?: string | undefined;
|
|
2865
|
+
name?: string | undefined;
|
|
2866
|
+
};
|
|
2867
|
+
kind: "file";
|
|
2868
|
+
metadata?: {
|
|
2869
|
+
[x: string]: any;
|
|
2870
|
+
} | undefined;
|
|
2871
|
+
} | {
|
|
2872
|
+
data: {
|
|
2873
|
+
[x: string]: any;
|
|
2874
|
+
};
|
|
2875
|
+
kind: "data";
|
|
2876
|
+
metadata?: {
|
|
2877
|
+
[x: string]: any;
|
|
2878
|
+
} | undefined;
|
|
2879
|
+
})[];
|
|
2880
|
+
messageId: string;
|
|
2881
|
+
metadata?: {
|
|
2882
|
+
[x: string]: any;
|
|
2883
|
+
} | undefined;
|
|
2884
|
+
contextId?: string | undefined;
|
|
2885
|
+
taskId?: string | undefined;
|
|
2886
|
+
extensions?: string[] | undefined;
|
|
2887
|
+
referenceTaskIds?: string[] | undefined;
|
|
2888
|
+
}[] | undefined;
|
|
2889
|
+
artifacts?: any[] | undefined;
|
|
2890
|
+
};
|
|
2891
|
+
outputFormat: "json";
|
|
2892
|
+
status: 200;
|
|
2893
|
+
};
|
|
2894
|
+
}>;
|
|
2895
|
+
};
|
|
2896
|
+
};
|
|
2897
|
+
} & {
|
|
2898
|
+
v1: {
|
|
2899
|
+
tasks: {
|
|
2900
|
+
":id:cancel": import("hono/client").ClientRequest<{
|
|
2901
|
+
$post: {
|
|
2902
|
+
input: {
|
|
2903
|
+
param: {
|
|
2904
|
+
id: string;
|
|
2905
|
+
};
|
|
2906
|
+
};
|
|
2907
|
+
output: {};
|
|
2908
|
+
outputFormat: string;
|
|
2909
|
+
status: 404;
|
|
2910
|
+
} | {
|
|
2911
|
+
input: {
|
|
2912
|
+
param: {
|
|
2913
|
+
id: string;
|
|
2914
|
+
};
|
|
2915
|
+
};
|
|
2916
|
+
output: {
|
|
2917
|
+
status: {
|
|
2918
|
+
state: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required";
|
|
2919
|
+
message?: {
|
|
2920
|
+
role: "user" | "agent";
|
|
2921
|
+
kind: "message";
|
|
2922
|
+
parts: ({
|
|
2923
|
+
text: string;
|
|
2924
|
+
kind: "text";
|
|
2925
|
+
metadata?: {
|
|
2926
|
+
[x: string]: any;
|
|
2927
|
+
} | undefined;
|
|
2928
|
+
} | {
|
|
2929
|
+
file: {
|
|
2930
|
+
bytes: string;
|
|
2931
|
+
mimeType?: string | undefined;
|
|
2932
|
+
name?: string | undefined;
|
|
2933
|
+
} | {
|
|
2934
|
+
uri: string;
|
|
2935
|
+
mimeType?: string | undefined;
|
|
2936
|
+
name?: string | undefined;
|
|
2937
|
+
};
|
|
2938
|
+
kind: "file";
|
|
2939
|
+
metadata?: {
|
|
2940
|
+
[x: string]: any;
|
|
2941
|
+
} | undefined;
|
|
2942
|
+
} | {
|
|
2943
|
+
data: {
|
|
2944
|
+
[x: string]: any;
|
|
2945
|
+
};
|
|
2946
|
+
kind: "data";
|
|
2947
|
+
metadata?: {
|
|
2948
|
+
[x: string]: any;
|
|
2949
|
+
} | undefined;
|
|
2950
|
+
})[];
|
|
2951
|
+
messageId: string;
|
|
2952
|
+
metadata?: {
|
|
2953
|
+
[x: string]: any;
|
|
2954
|
+
} | undefined;
|
|
2955
|
+
contextId?: string | undefined;
|
|
2956
|
+
taskId?: string | undefined;
|
|
2957
|
+
extensions?: string[] | undefined;
|
|
2958
|
+
referenceTaskIds?: string[] | undefined;
|
|
2959
|
+
} | undefined;
|
|
2960
|
+
timestamp?: string | undefined;
|
|
2961
|
+
};
|
|
2962
|
+
id: string;
|
|
2963
|
+
kind: "task";
|
|
2964
|
+
contextId: string;
|
|
2965
|
+
metadata?: {
|
|
2966
|
+
[x: string]: any;
|
|
2967
|
+
} | undefined;
|
|
2968
|
+
history?: {
|
|
2969
|
+
role: "user" | "agent";
|
|
2970
|
+
kind: "message";
|
|
2971
|
+
parts: ({
|
|
2972
|
+
text: string;
|
|
2973
|
+
kind: "text";
|
|
2974
|
+
metadata?: {
|
|
2975
|
+
[x: string]: any;
|
|
2976
|
+
} | undefined;
|
|
2977
|
+
} | {
|
|
2978
|
+
file: {
|
|
2979
|
+
bytes: string;
|
|
2980
|
+
mimeType?: string | undefined;
|
|
2981
|
+
name?: string | undefined;
|
|
2982
|
+
} | {
|
|
2983
|
+
uri: string;
|
|
2984
|
+
mimeType?: string | undefined;
|
|
2985
|
+
name?: string | undefined;
|
|
2986
|
+
};
|
|
2987
|
+
kind: "file";
|
|
2988
|
+
metadata?: {
|
|
2989
|
+
[x: string]: any;
|
|
2990
|
+
} | undefined;
|
|
2991
|
+
} | {
|
|
2992
|
+
data: {
|
|
2993
|
+
[x: string]: any;
|
|
2994
|
+
};
|
|
2995
|
+
kind: "data";
|
|
2996
|
+
metadata?: {
|
|
2997
|
+
[x: string]: any;
|
|
2998
|
+
} | undefined;
|
|
2999
|
+
})[];
|
|
3000
|
+
messageId: string;
|
|
3001
|
+
metadata?: {
|
|
3002
|
+
[x: string]: any;
|
|
3003
|
+
} | undefined;
|
|
3004
|
+
contextId?: string | undefined;
|
|
3005
|
+
taskId?: string | undefined;
|
|
3006
|
+
extensions?: string[] | undefined;
|
|
3007
|
+
referenceTaskIds?: string[] | undefined;
|
|
3008
|
+
}[] | undefined;
|
|
3009
|
+
artifacts?: any[] | undefined;
|
|
3010
|
+
};
|
|
3011
|
+
outputFormat: "json";
|
|
3012
|
+
status: 200;
|
|
3013
|
+
};
|
|
3014
|
+
}>;
|
|
3015
|
+
};
|
|
3016
|
+
};
|
|
3017
|
+
};
|
|
3018
|
+
export * from './streaming.js';
|
|
3019
|
+
//# sourceMappingURL=client.d.ts.map
|