@dexto/client-sdk 1.3.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -52,6 +52,472 @@ export declare function createDextoClient(config: ClientConfig): {
52
52
  status: 200;
53
53
  };
54
54
  }>;
55
+ } & {
56
+ api: {
57
+ models: {
58
+ local: import("hono/client").ClientRequest<{
59
+ $get: {
60
+ input: {};
61
+ output: {
62
+ models: {
63
+ id: string;
64
+ displayName: string;
65
+ filePath: string;
66
+ sizeBytes: number;
67
+ source?: "manual" | "huggingface" | undefined;
68
+ contextLength?: number | undefined;
69
+ }[];
70
+ };
71
+ outputFormat: "json";
72
+ status: 200;
73
+ };
74
+ }>;
75
+ };
76
+ };
77
+ } & {
78
+ api: {
79
+ models: {
80
+ ollama: import("hono/client").ClientRequest<{
81
+ $get: {
82
+ input: {
83
+ query: {
84
+ baseURL?: string | undefined;
85
+ };
86
+ };
87
+ output: {
88
+ models: {
89
+ name: string;
90
+ size?: number | undefined;
91
+ digest?: string | undefined;
92
+ modifiedAt?: string | undefined;
93
+ }[];
94
+ available: boolean;
95
+ error?: string | undefined;
96
+ version?: string | undefined;
97
+ };
98
+ outputFormat: "json";
99
+ status: 200;
100
+ };
101
+ }>;
102
+ };
103
+ };
104
+ } & {
105
+ api: {
106
+ models: {
107
+ local: {
108
+ validate: import("hono/client").ClientRequest<{
109
+ $post: {
110
+ input: {
111
+ json: {
112
+ filePath: string;
113
+ };
114
+ };
115
+ output: {
116
+ valid: boolean;
117
+ error?: string | undefined;
118
+ sizeBytes?: number | undefined;
119
+ };
120
+ outputFormat: "json";
121
+ status: 200;
122
+ };
123
+ }>;
124
+ };
125
+ };
126
+ };
127
+ } & {
128
+ api: {
129
+ models: {
130
+ local: {
131
+ ":modelId": import("hono/client").ClientRequest<{
132
+ $delete: {
133
+ input: {
134
+ param: {
135
+ modelId: string;
136
+ };
137
+ } & {
138
+ json: {
139
+ deleteFile?: boolean | undefined;
140
+ };
141
+ };
142
+ output: {
143
+ success: boolean;
144
+ modelId: string;
145
+ fileDeleted: boolean;
146
+ error?: string | undefined;
147
+ };
148
+ outputFormat: "json";
149
+ status: 200;
150
+ } | {
151
+ input: {
152
+ param: {
153
+ modelId: string;
154
+ };
155
+ } & {
156
+ json: {
157
+ deleteFile?: boolean | undefined;
158
+ };
159
+ };
160
+ output: {
161
+ success: boolean;
162
+ modelId: string;
163
+ fileDeleted: boolean;
164
+ error?: string | undefined;
165
+ };
166
+ outputFormat: "json";
167
+ status: 404;
168
+ };
169
+ }>;
170
+ };
171
+ };
172
+ };
173
+ } & {
174
+ api: {
175
+ discovery: import("hono/client").ClientRequest<{
176
+ $get: {
177
+ input: {};
178
+ output: {
179
+ internalTools: {
180
+ description: string;
181
+ name: string;
182
+ }[];
183
+ customTools: {
184
+ type: string;
185
+ category: "customTools" | "compaction" | "blob";
186
+ metadata?: {
187
+ [x: string]: import("hono/utils/types").JSONValue;
188
+ description?: string | undefined;
189
+ displayName?: string | undefined;
190
+ } | undefined;
191
+ }[];
192
+ compaction: {
193
+ type: string;
194
+ category: "customTools" | "compaction" | "blob";
195
+ metadata?: {
196
+ [x: string]: import("hono/utils/types").JSONValue;
197
+ description?: string | undefined;
198
+ displayName?: string | undefined;
199
+ } | undefined;
200
+ }[];
201
+ blob: {
202
+ type: string;
203
+ category: "customTools" | "compaction" | "blob";
204
+ metadata?: {
205
+ [x: string]: import("hono/utils/types").JSONValue;
206
+ description?: string | undefined;
207
+ displayName?: string | undefined;
208
+ } | undefined;
209
+ }[];
210
+ };
211
+ outputFormat: "json";
212
+ status: 200;
213
+ };
214
+ }>;
215
+ };
216
+ } & {
217
+ api: {
218
+ tools: import("hono/client").ClientRequest<{
219
+ $get: {
220
+ input: {};
221
+ output: {
222
+ tools: {
223
+ description: string;
224
+ id: string;
225
+ name: string;
226
+ source: "custom" | "mcp" | "internal";
227
+ serverName?: string | undefined;
228
+ inputSchema?: {
229
+ [x: string]: import("hono/utils/types").JSONValue;
230
+ type?: "object" | undefined;
231
+ properties?: {
232
+ [x: string]: {
233
+ [x: string]: import("hono/utils/types").JSONValue;
234
+ description?: string | undefined;
235
+ default?: any;
236
+ type?: "string" | "number" | "boolean" | "object" | "integer" | "array" | undefined;
237
+ enum?: (string | number | boolean)[] | undefined;
238
+ };
239
+ } | undefined;
240
+ required?: string[] | undefined;
241
+ } | undefined;
242
+ }[];
243
+ totalCount: number;
244
+ internalCount: number;
245
+ customCount: number;
246
+ mcpCount: number;
247
+ };
248
+ outputFormat: "json";
249
+ status: 200;
250
+ };
251
+ }>;
252
+ };
253
+ } & {
254
+ api: {
255
+ llm: {
256
+ key: {
257
+ ":provider": import("hono/client").ClientRequest<{
258
+ $get: {
259
+ input: {
260
+ param: {
261
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
262
+ };
263
+ };
264
+ output: {
265
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
266
+ hasKey: boolean;
267
+ envVar: string;
268
+ keyValue?: string | undefined;
269
+ };
270
+ outputFormat: "json";
271
+ status: 200;
272
+ };
273
+ }>;
274
+ };
275
+ };
276
+ };
277
+ } & {
278
+ api: {
279
+ llm: {
280
+ key: import("hono/client").ClientRequest<{
281
+ $post: {
282
+ input: {
283
+ json: {
284
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
285
+ apiKey: string;
286
+ };
287
+ };
288
+ output: {
289
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
290
+ ok: true;
291
+ envVar: string;
292
+ };
293
+ outputFormat: "json";
294
+ status: 200;
295
+ };
296
+ }>;
297
+ };
298
+ };
299
+ } & {
300
+ api: {
301
+ openrouter: {
302
+ validate: {
303
+ ":modelId": import("hono/client").ClientRequest<{
304
+ $get: {
305
+ input: {
306
+ param: {
307
+ modelId: string;
308
+ };
309
+ };
310
+ output: {
311
+ valid: boolean;
312
+ status: "valid" | "unknown" | "invalid";
313
+ modelId: string;
314
+ error?: string | undefined;
315
+ info?: {
316
+ contextLength: number;
317
+ } | undefined;
318
+ };
319
+ outputFormat: "json";
320
+ status: 200;
321
+ };
322
+ }>;
323
+ };
324
+ };
325
+ };
326
+ } & {
327
+ api: {
328
+ openrouter: {
329
+ "refresh-cache": import("hono/client").ClientRequest<{
330
+ $post: {
331
+ input: {};
332
+ output: {
333
+ message: string;
334
+ ok: true;
335
+ };
336
+ outputFormat: "json";
337
+ status: 200;
338
+ } | {
339
+ input: {};
340
+ output: {
341
+ message: string;
342
+ ok: false;
343
+ };
344
+ outputFormat: "json";
345
+ status: 500;
346
+ };
347
+ }>;
348
+ };
349
+ };
350
+ } & {
351
+ api: {
352
+ queue: {
353
+ ":sessionId": import("hono/client").ClientRequest<{
354
+ $get: {
355
+ input: {
356
+ param: {
357
+ sessionId: string;
358
+ };
359
+ };
360
+ output: {};
361
+ outputFormat: string;
362
+ status: 404;
363
+ } | {
364
+ input: {
365
+ param: {
366
+ sessionId: string;
367
+ };
368
+ };
369
+ output: {
370
+ messages: {
371
+ content: ({
372
+ type: "text";
373
+ text: string;
374
+ } | {
375
+ type: "image";
376
+ image: string;
377
+ mimeType?: string | undefined;
378
+ } | {
379
+ type: "file";
380
+ mimeType: string;
381
+ data: string;
382
+ filename?: string | undefined;
383
+ } | {
384
+ type: "ui-resource";
385
+ mimeType: string;
386
+ uri: string;
387
+ content?: string | undefined;
388
+ blob?: string | undefined;
389
+ metadata?: {
390
+ title?: string | undefined;
391
+ preferredSize?: {
392
+ width: number;
393
+ height: number;
394
+ } | undefined;
395
+ } | undefined;
396
+ })[];
397
+ id: string;
398
+ queuedAt: number;
399
+ metadata?: {
400
+ [x: string]: import("hono/utils/types").JSONValue;
401
+ } | undefined;
402
+ }[];
403
+ count: number;
404
+ };
405
+ outputFormat: "json";
406
+ status: 200;
407
+ };
408
+ $post: {
409
+ input: {
410
+ param: {
411
+ sessionId: string;
412
+ };
413
+ } & {
414
+ json: {
415
+ content: string | ({
416
+ type: "text";
417
+ text: string;
418
+ } | {
419
+ type: "image";
420
+ image: string;
421
+ mimeType?: string | undefined;
422
+ } | {
423
+ type: "file";
424
+ mimeType: string;
425
+ data: string;
426
+ filename?: string | undefined;
427
+ })[];
428
+ };
429
+ };
430
+ output: {};
431
+ outputFormat: string;
432
+ status: 404;
433
+ } | {
434
+ input: {
435
+ param: {
436
+ sessionId: string;
437
+ };
438
+ } & {
439
+ json: {
440
+ content: string | ({
441
+ type: "text";
442
+ text: string;
443
+ } | {
444
+ type: "image";
445
+ image: string;
446
+ mimeType?: string | undefined;
447
+ } | {
448
+ type: "file";
449
+ mimeType: string;
450
+ data: string;
451
+ filename?: string | undefined;
452
+ })[];
453
+ };
454
+ };
455
+ output: {
456
+ id: string;
457
+ queued: true;
458
+ position: number;
459
+ };
460
+ outputFormat: "json";
461
+ status: 201;
462
+ };
463
+ $delete: {
464
+ input: {
465
+ param: {
466
+ sessionId: string;
467
+ };
468
+ };
469
+ output: {};
470
+ outputFormat: string;
471
+ status: 404;
472
+ } | {
473
+ input: {
474
+ param: {
475
+ sessionId: string;
476
+ };
477
+ };
478
+ output: {
479
+ count: number;
480
+ cleared: true;
481
+ };
482
+ outputFormat: "json";
483
+ status: 200;
484
+ };
485
+ }>;
486
+ };
487
+ };
488
+ } & {
489
+ api: {
490
+ queue: {
491
+ ":sessionId": {
492
+ ":messageId": import("hono/client").ClientRequest<{
493
+ $delete: {
494
+ input: {
495
+ param: {
496
+ sessionId: string;
497
+ messageId: string;
498
+ };
499
+ };
500
+ output: {};
501
+ outputFormat: string;
502
+ status: 404;
503
+ } | {
504
+ input: {
505
+ param: {
506
+ sessionId: string;
507
+ messageId: string;
508
+ };
509
+ };
510
+ output: {
511
+ id: string;
512
+ removed: true;
513
+ };
514
+ outputFormat: "json";
515
+ status: 200;
516
+ };
517
+ }>;
518
+ };
519
+ };
520
+ };
55
521
  } & {
56
522
  api: {
57
523
  agents: import("hono/client").ClientRequest<{
@@ -110,16 +576,15 @@ export declare function createDextoClient(config: ClientConfig): {
110
576
  id: string;
111
577
  path?: string | undefined;
112
578
  } | {
113
- id: string;
114
579
  metadata: {
115
580
  tags: string[];
116
581
  description: string;
117
582
  author: string;
118
583
  main?: string | undefined;
119
584
  };
585
+ id: string;
120
586
  sourcePath: string;
121
587
  name?: string | undefined;
122
- injectPreferences?: boolean | undefined;
123
588
  };
124
589
  };
125
590
  output: {
@@ -208,403 +673,7 @@ export declare function createDextoClient(config: ClientConfig): {
208
673
  input: {
209
674
  json: {
210
675
  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
- source: "resources" | "dateTime";
235
- priority: number;
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
- })[] | undefined;
251
- };
252
- storage?: {
253
- database: {
254
- type: "in-memory";
255
- options?: Record<string, any> | undefined;
256
- maxConnections?: number | undefined;
257
- idleTimeoutMillis?: number | undefined;
258
- connectionTimeoutMillis?: number | undefined;
259
- } | {
260
- path: string;
261
- type: "sqlite";
262
- options?: Record<string, any> | undefined;
263
- maxConnections?: number | undefined;
264
- idleTimeoutMillis?: number | undefined;
265
- connectionTimeoutMillis?: number | undefined;
266
- } | {
267
- type: "postgres";
268
- password?: string | undefined;
269
- options?: Record<string, any> | undefined;
270
- url?: string | undefined;
271
- maxConnections?: number | undefined;
272
- idleTimeoutMillis?: number | undefined;
273
- connectionTimeoutMillis?: number | undefined;
274
- host?: string | undefined;
275
- port?: number | undefined;
276
- database?: string | undefined;
277
- connectionString?: string | undefined;
278
- };
279
- cache: {
280
- type: "in-memory";
281
- options?: Record<string, any> | undefined;
282
- maxConnections?: number | undefined;
283
- idleTimeoutMillis?: number | undefined;
284
- connectionTimeoutMillis?: number | undefined;
285
- } | {
286
- type: "redis";
287
- password?: string | undefined;
288
- options?: Record<string, any> | undefined;
289
- url?: string | undefined;
290
- maxConnections?: number | undefined;
291
- idleTimeoutMillis?: number | undefined;
292
- connectionTimeoutMillis?: number | undefined;
293
- host?: string | undefined;
294
- port?: number | undefined;
295
- database?: number | undefined;
296
- };
297
- blob: {
298
- type: "in-memory";
299
- maxBlobSize?: number | undefined;
300
- maxTotalSize?: number | undefined;
301
- } | {
302
- type: "local";
303
- storePath: string;
304
- maxBlobSize?: number | undefined;
305
- maxTotalSize?: number | undefined;
306
- cleanupAfterDays?: number | undefined;
307
- };
308
- } | undefined;
309
- telemetry?: {
310
- enabled?: boolean | undefined;
311
- serviceName?: string | undefined;
312
- tracerName?: string | undefined;
313
- export?: {
314
- type: "otlp";
315
- headers?: Record<string, string> | undefined;
316
- protocol?: "http" | "grpc" | undefined;
317
- endpoint?: string | undefined;
318
- } | {
319
- type: "console";
320
- } | undefined;
321
- } | undefined;
322
- logger?: {
323
- level?: "debug" | "info" | "warn" | "error" | "silly" | undefined;
324
- transports?: ({
325
- type: "console";
326
- colorize?: boolean | undefined;
327
- } | {
328
- path: string;
329
- type: "file";
330
- maxFiles?: number | undefined;
331
- maxSize?: number | undefined;
332
- } | {
333
- token: string;
334
- type: "upstash";
335
- url: string;
336
- listName?: string | undefined;
337
- maxListLength?: number | undefined;
338
- batchSize?: number | undefined;
339
- })[] | undefined;
340
- } | undefined;
341
- elicitation?: {
342
- timeout?: number | undefined;
343
- enabled?: boolean | undefined;
344
- } | undefined;
345
- prompts?: ({
346
- prompt: string;
347
- type: "inline";
348
- id: string;
349
- description?: string | undefined;
350
- title?: string | undefined;
351
- priority?: number | undefined;
352
- category?: string | undefined;
353
- showInStarters?: boolean | undefined;
354
- } | {
355
- file: string;
356
- type: "file";
357
- showInStarters?: boolean | undefined;
358
- })[] | undefined;
359
- agentId?: string | undefined;
360
- agentCard?: {
361
- description: string;
362
- url: string;
363
- name: string;
364
- version: string;
365
- metadata?: import("zod").objectInputType<{
366
- dexto: import("zod").ZodOptional<import("zod").ZodObject<{
367
- authentication: import("zod").ZodOptional<import("zod").ZodObject<{
368
- schemes: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
369
- credentials: import("zod").ZodOptional<import("zod").ZodString>;
370
- }, "strict", import("zod").ZodTypeAny, {
371
- schemes: string[];
372
- credentials?: string | undefined;
373
- }, {
374
- schemes?: string[] | undefined;
375
- credentials?: string | undefined;
376
- }>>;
377
- delegation: import("zod").ZodOptional<import("zod").ZodObject<{
378
- protocol: import("zod").ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
379
- endpoint: import("zod").ZodString;
380
- supportsSession: import("zod").ZodBoolean;
381
- supportsStreaming: import("zod").ZodOptional<import("zod").ZodBoolean>;
382
- }, "strict", import("zod").ZodTypeAny, {
383
- protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
384
- endpoint: string;
385
- supportsSession: boolean;
386
- supportsStreaming?: boolean | undefined;
387
- }, {
388
- protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
389
- endpoint: string;
390
- supportsSession: boolean;
391
- supportsStreaming?: boolean | undefined;
392
- }>>;
393
- owner: import("zod").ZodOptional<import("zod").ZodObject<{
394
- userId: import("zod").ZodString;
395
- username: import("zod").ZodString;
396
- email: import("zod").ZodOptional<import("zod").ZodString>;
397
- }, "strict", import("zod").ZodTypeAny, {
398
- userId: string;
399
- username: string;
400
- email?: string | undefined;
401
- }, {
402
- userId: string;
403
- username: string;
404
- email?: string | undefined;
405
- }>>;
406
- }, "strict", import("zod").ZodTypeAny, {
407
- authentication?: {
408
- schemes: string[];
409
- credentials?: string | undefined;
410
- } | undefined;
411
- delegation?: {
412
- protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
413
- endpoint: string;
414
- supportsSession: boolean;
415
- supportsStreaming?: boolean | undefined;
416
- } | undefined;
417
- owner?: {
418
- userId: string;
419
- username: string;
420
- email?: string | undefined;
421
- } | undefined;
422
- }, {
423
- authentication?: {
424
- schemes?: string[] | undefined;
425
- credentials?: string | undefined;
426
- } | undefined;
427
- delegation?: {
428
- protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
429
- endpoint: string;
430
- supportsSession: boolean;
431
- supportsStreaming?: boolean | undefined;
432
- } | undefined;
433
- owner?: {
434
- userId: string;
435
- username: string;
436
- email?: string | undefined;
437
- } | undefined;
438
- }>>;
439
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
440
- capabilities?: {
441
- streaming?: boolean | undefined;
442
- pushNotifications?: boolean | undefined;
443
- stateTransitionHistory?: boolean | undefined;
444
- } | undefined;
445
- provider?: {
446
- url: string;
447
- organization: string;
448
- } | undefined;
449
- protocolVersion?: string | undefined;
450
- preferredTransport?: "JSONRPC" | "GRPC" | "HTTP+JSON" | undefined;
451
- defaultInputModes?: string[] | undefined;
452
- defaultOutputModes?: string[] | undefined;
453
- skills?: {
454
- description: string;
455
- name: string;
456
- id: string;
457
- tags: string[];
458
- examples?: string[] | undefined;
459
- inputModes?: string[] | undefined;
460
- outputModes?: string[] | undefined;
461
- }[] | undefined;
462
- iconUrl?: string | undefined;
463
- documentationUrl?: string | undefined;
464
- additionalInterfaces?: {
465
- url: string;
466
- transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
467
- }[] | undefined;
468
- securitySchemes?: Record<string, {
469
- type: "apiKey";
470
- name: string;
471
- in: "query" | "header" | "cookie";
472
- description?: string | undefined;
473
- } | {
474
- type: "http";
475
- scheme: string;
476
- description?: string | undefined;
477
- bearerFormat?: string | undefined;
478
- } | {
479
- type: "oauth2";
480
- flows: {
481
- password?: {
482
- scopes: Record<string, string>;
483
- authorizationUrl?: string | undefined;
484
- tokenUrl?: string | undefined;
485
- refreshUrl?: string | undefined;
486
- } | undefined;
487
- implicit?: {
488
- scopes: Record<string, string>;
489
- authorizationUrl?: string | undefined;
490
- tokenUrl?: string | undefined;
491
- refreshUrl?: string | undefined;
492
- } | undefined;
493
- clientCredentials?: {
494
- scopes: Record<string, string>;
495
- authorizationUrl?: string | undefined;
496
- tokenUrl?: string | undefined;
497
- refreshUrl?: string | undefined;
498
- } | undefined;
499
- authorizationCode?: {
500
- scopes: Record<string, string>;
501
- authorizationUrl?: string | undefined;
502
- tokenUrl?: string | undefined;
503
- refreshUrl?: string | undefined;
504
- } | undefined;
505
- };
506
- description?: string | undefined;
507
- } | {
508
- type: "openIdConnect";
509
- openIdConnectUrl: string;
510
- description?: string | undefined;
511
- } | {
512
- type: "mutualTLS";
513
- description?: string | undefined;
514
- }> | undefined;
515
- security?: Record<string, string[]>[] | undefined;
516
- supportsAuthenticatedExtendedCard?: boolean | undefined;
517
- signatures?: {
518
- protected: string;
519
- signature: string;
520
- }[] | undefined;
521
- } | undefined;
522
- greeting?: string | undefined;
523
- memories?: {
524
- enabled?: boolean | undefined;
525
- limit?: number | undefined;
526
- priority?: number | undefined;
527
- includeTimestamps?: boolean | undefined;
528
- includeTags?: boolean | undefined;
529
- pinnedOnly?: boolean | undefined;
530
- } | undefined;
531
- mcpServers?: Record<string, {
532
- type: "stdio";
533
- command: string;
534
- timeout?: number | undefined;
535
- args?: string[] | undefined;
536
- env?: Record<string, string> | undefined;
537
- connectionMode?: "strict" | "lenient" | undefined;
538
- } | {
539
- type: "sse";
540
- url: string;
541
- timeout?: number | undefined;
542
- connectionMode?: "strict" | "lenient" | undefined;
543
- headers?: Record<string, string> | undefined;
544
- } | {
545
- type: "http";
546
- url: string;
547
- timeout?: number | undefined;
548
- connectionMode?: "strict" | "lenient" | undefined;
549
- headers?: Record<string, string> | undefined;
550
- }> | undefined;
551
- 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;
552
- sessions?: {
553
- maxSessions?: number | undefined;
554
- sessionTTL?: number | undefined;
555
- } | undefined;
556
- toolConfirmation?: {
557
- timeout?: number | undefined;
558
- mode?: "manual" | "auto-approve" | "auto-deny" | undefined;
559
- allowedToolsStorage?: "storage" | "memory" | undefined;
560
- toolPolicies?: {
561
- alwaysAllow?: string[] | undefined;
562
- alwaysDeny?: string[] | undefined;
563
- } | undefined;
564
- } | undefined;
565
- internalResources?: ({
566
- type: "filesystem";
567
- paths: string[];
568
- maxFiles?: number | undefined;
569
- maxDepth?: number | undefined;
570
- includeHidden?: boolean | undefined;
571
- includeExtensions?: string[] | undefined;
572
- } | {
573
- type: "blob";
574
- })[] | {
575
- enabled?: boolean | undefined;
576
- resources?: ({
577
- type: "filesystem";
578
- paths: string[];
579
- maxFiles?: number | undefined;
580
- maxDepth?: number | undefined;
581
- includeHidden?: boolean | undefined;
582
- includeExtensions?: string[] | undefined;
583
- } | {
584
- type: "blob";
585
- })[] | undefined;
586
- } | undefined;
587
- plugins?: {
588
- custom?: {
589
- name: string;
590
- priority: number;
591
- module: string;
592
- blocking: boolean;
593
- config?: Record<string, any> | undefined;
594
- enabled?: boolean | undefined;
595
- }[] | undefined;
596
- contentPolicy?: import("zod").objectInputType<{
597
- priority: import("zod").ZodNumber;
598
- blocking: import("zod").ZodOptional<import("zod").ZodBoolean>;
599
- enabled: import("zod").ZodDefault<import("zod").ZodBoolean>;
600
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
601
- responseSanitizer?: import("zod").objectInputType<{
602
- priority: import("zod").ZodNumber;
603
- blocking: import("zod").ZodOptional<import("zod").ZodBoolean>;
604
- enabled: import("zod").ZodDefault<import("zod").ZodBoolean>;
605
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
606
- } | undefined;
607
- };
676
+ config: Record<string, any>;
608
677
  id: string;
609
678
  name: string;
610
679
  tags?: string[] | undefined;
@@ -728,6 +797,33 @@ export declare function createDextoClient(config: ClientConfig): {
728
797
  };
729
798
  };
730
799
  };
800
+ } & {
801
+ api: {
802
+ approvals: import("hono/client").ClientRequest<{
803
+ $get: {
804
+ input: {
805
+ query: {
806
+ sessionId: string;
807
+ };
808
+ };
809
+ output: {
810
+ ok: true;
811
+ approvals: {
812
+ type: string;
813
+ metadata: {
814
+ [x: string]: import("hono/utils/types").JSONValue;
815
+ };
816
+ timestamp: string;
817
+ approvalId: string;
818
+ sessionId?: string | undefined;
819
+ timeout?: number | undefined;
820
+ }[];
821
+ };
822
+ outputFormat: "json";
823
+ status: 200;
824
+ };
825
+ }>;
826
+ };
731
827
  } & {
732
828
  api: {
733
829
  approvals: {
@@ -913,11 +1009,11 @@ export declare function createDextoClient(config: ClientConfig): {
913
1009
  };
914
1010
  } & {
915
1011
  json: {
1012
+ content?: string | undefined;
916
1013
  metadata?: import("zod").objectInputType<{
917
1014
  source: import("zod").ZodOptional<import("zod").ZodEnum<["user", "system"]>>;
918
1015
  pinned: import("zod").ZodOptional<import("zod").ZodBoolean>;
919
1016
  }, import("zod").ZodTypeAny, "passthrough"> | undefined;
920
- content?: string | undefined;
921
1017
  tags?: string[] | undefined;
922
1018
  };
923
1019
  };
@@ -967,10 +1063,10 @@ export declare function createDextoClient(config: ClientConfig): {
967
1063
  source: "mcp" | "internal";
968
1064
  description?: string | undefined;
969
1065
  mimeType?: string | undefined;
970
- name?: string | undefined;
971
1066
  metadata?: {
972
1067
  [x: string]: import("hono/utils/types").JSONValue;
973
1068
  } | undefined;
1069
+ name?: string | undefined;
974
1070
  serverName?: string | undefined;
975
1071
  size?: number | undefined;
976
1072
  lastModified?: string | undefined;
@@ -1050,14 +1146,14 @@ export declare function createDextoClient(config: ClientConfig): {
1050
1146
  source: "config" | "custom" | "mcp";
1051
1147
  description?: string | undefined;
1052
1148
  title?: string | undefined;
1149
+ metadata?: {
1150
+ [x: string]: import("hono/utils/types").JSONValue;
1151
+ } | undefined;
1053
1152
  arguments?: {
1054
1153
  name: string;
1055
1154
  description?: string | undefined;
1056
1155
  required?: boolean | undefined;
1057
1156
  }[] | undefined;
1058
- metadata?: {
1059
- [x: string]: import("hono/utils/types").JSONValue;
1060
- } | undefined;
1061
1157
  }[];
1062
1158
  };
1063
1159
  outputFormat: "json";
@@ -1094,14 +1190,14 @@ export declare function createDextoClient(config: ClientConfig): {
1094
1190
  source: "config" | "custom" | "mcp";
1095
1191
  description?: string | undefined;
1096
1192
  title?: string | undefined;
1193
+ metadata?: {
1194
+ [x: string]: import("hono/utils/types").JSONValue;
1195
+ } | undefined;
1097
1196
  arguments?: {
1098
1197
  name: string;
1099
1198
  description?: string | undefined;
1100
1199
  required?: boolean | undefined;
1101
1200
  }[] | undefined;
1102
- metadata?: {
1103
- [x: string]: import("hono/utils/types").JSONValue;
1104
- } | undefined;
1105
1201
  };
1106
1202
  };
1107
1203
  outputFormat: "json";
@@ -1346,6 +1442,7 @@ export declare function createDextoClient(config: ClientConfig): {
1346
1442
  type: "stdio";
1347
1443
  command: string;
1348
1444
  timeout?: number | undefined;
1445
+ enabled?: boolean | undefined;
1349
1446
  args?: string[] | undefined;
1350
1447
  env?: Record<string, string> | undefined;
1351
1448
  connectionMode?: "strict" | "lenient" | undefined;
@@ -1353,12 +1450,14 @@ export declare function createDextoClient(config: ClientConfig): {
1353
1450
  type: "sse";
1354
1451
  url: string;
1355
1452
  timeout?: number | undefined;
1453
+ enabled?: boolean | undefined;
1356
1454
  connectionMode?: "strict" | "lenient" | undefined;
1357
1455
  headers?: Record<string, string> | undefined;
1358
1456
  } | {
1359
1457
  type: "http";
1360
1458
  url: string;
1361
1459
  timeout?: number | undefined;
1460
+ enabled?: boolean | undefined;
1362
1461
  connectionMode?: "strict" | "lenient" | undefined;
1363
1462
  headers?: Record<string, string> | undefined;
1364
1463
  };
@@ -1574,10 +1673,10 @@ export declare function createDextoClient(config: ClientConfig): {
1574
1673
  source: "mcp" | "internal";
1575
1674
  description?: string | undefined;
1576
1675
  mimeType?: string | undefined;
1577
- name?: string | undefined;
1578
1676
  metadata?: {
1579
1677
  [x: string]: import("hono/utils/types").JSONValue;
1580
1678
  } | undefined;
1679
+ name?: string | undefined;
1581
1680
  serverName?: string | undefined;
1582
1681
  size?: number | undefined;
1583
1682
  lastModified?: string | undefined;
@@ -1662,6 +1761,19 @@ export declare function createDextoClient(config: ClientConfig): {
1662
1761
  mimeType: string;
1663
1762
  data: string;
1664
1763
  filename?: string | undefined;
1764
+ } | {
1765
+ type: "ui-resource";
1766
+ mimeType: string;
1767
+ uri: string;
1768
+ content?: string | undefined;
1769
+ blob?: string | undefined;
1770
+ metadata?: {
1771
+ title?: string | undefined;
1772
+ preferredSize?: {
1773
+ width: number;
1774
+ height: number;
1775
+ } | undefined;
1776
+ } | undefined;
1665
1777
  })[] | null;
1666
1778
  role: "system" | "user" | "assistant" | "tool";
1667
1779
  id?: string | undefined;
@@ -1675,8 +1787,7 @@ export declare function createDextoClient(config: ClientConfig): {
1675
1787
  totalTokens?: number | undefined;
1676
1788
  } | undefined;
1677
1789
  model?: string | undefined;
1678
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
1679
- router?: "vercel" | "in-built" | undefined;
1790
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
1680
1791
  toolCalls?: {
1681
1792
  function: {
1682
1793
  name: string;
@@ -1686,6 +1797,7 @@ export declare function createDextoClient(config: ClientConfig): {
1686
1797
  id: string;
1687
1798
  }[] | undefined;
1688
1799
  toolCallId?: string | undefined;
1800
+ success?: boolean | undefined;
1689
1801
  };
1690
1802
  sessionId: string;
1691
1803
  matchedText: string;
@@ -1715,6 +1827,11 @@ export declare function createDextoClient(config: ClientConfig): {
1715
1827
  query: string;
1716
1828
  results: {
1717
1829
  sessionId: string;
1830
+ metadata: {
1831
+ createdAt: number;
1832
+ lastActivity: number;
1833
+ messageCount: number;
1834
+ };
1718
1835
  matchCount: number;
1719
1836
  firstMatch: {
1720
1837
  message: {
@@ -1730,6 +1847,19 @@ export declare function createDextoClient(config: ClientConfig): {
1730
1847
  mimeType: string;
1731
1848
  data: string;
1732
1849
  filename?: string | undefined;
1850
+ } | {
1851
+ type: "ui-resource";
1852
+ mimeType: string;
1853
+ uri: string;
1854
+ content?: string | undefined;
1855
+ blob?: string | undefined;
1856
+ metadata?: {
1857
+ title?: string | undefined;
1858
+ preferredSize?: {
1859
+ width: number;
1860
+ height: number;
1861
+ } | undefined;
1862
+ } | undefined;
1733
1863
  })[] | null;
1734
1864
  role: "system" | "user" | "assistant" | "tool";
1735
1865
  id?: string | undefined;
@@ -1743,8 +1873,7 @@ export declare function createDextoClient(config: ClientConfig): {
1743
1873
  totalTokens?: number | undefined;
1744
1874
  } | undefined;
1745
1875
  model?: string | undefined;
1746
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
1747
- router?: "vercel" | "in-built" | undefined;
1876
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
1748
1877
  toolCalls?: {
1749
1878
  function: {
1750
1879
  name: string;
@@ -1754,17 +1883,13 @@ export declare function createDextoClient(config: ClientConfig): {
1754
1883
  id: string;
1755
1884
  }[] | undefined;
1756
1885
  toolCallId?: string | undefined;
1886
+ success?: boolean | undefined;
1757
1887
  };
1758
1888
  sessionId: string;
1759
1889
  matchedText: string;
1760
1890
  context: string;
1761
1891
  messageIndex: number;
1762
1892
  };
1763
- metadata: {
1764
- createdAt: number;
1765
- lastActivity: number;
1766
- messageCount: number;
1767
- };
1768
1893
  }[];
1769
1894
  total: number;
1770
1895
  hasMore: boolean;
@@ -1898,6 +2023,19 @@ export declare function createDextoClient(config: ClientConfig): {
1898
2023
  mimeType: string;
1899
2024
  data: string;
1900
2025
  filename?: string | undefined;
2026
+ } | {
2027
+ type: "ui-resource";
2028
+ mimeType: string;
2029
+ uri: string;
2030
+ content?: string | undefined;
2031
+ blob?: string | undefined;
2032
+ metadata?: {
2033
+ title?: string | undefined;
2034
+ preferredSize?: {
2035
+ width: number;
2036
+ height: number;
2037
+ } | undefined;
2038
+ } | undefined;
1901
2039
  })[] | null;
1902
2040
  role: "system" | "user" | "assistant" | "tool";
1903
2041
  id?: string | undefined;
@@ -1911,8 +2049,7 @@ export declare function createDextoClient(config: ClientConfig): {
1911
2049
  totalTokens?: number | undefined;
1912
2050
  } | undefined;
1913
2051
  model?: string | undefined;
1914
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
1915
- router?: "vercel" | "in-built" | undefined;
2052
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
1916
2053
  toolCalls?: {
1917
2054
  function: {
1918
2055
  name: string;
@@ -1922,7 +2059,9 @@ export declare function createDextoClient(config: ClientConfig): {
1922
2059
  id: string;
1923
2060
  }[] | undefined;
1924
2061
  toolCallId?: string | undefined;
2062
+ success?: boolean | undefined;
1925
2063
  }[];
2064
+ isBusy: boolean;
1926
2065
  };
1927
2066
  outputFormat: "json";
1928
2067
  status: 200;
@@ -1941,10 +2080,16 @@ export declare function createDextoClient(config: ClientConfig): {
1941
2080
  param: {
1942
2081
  sessionId: string;
1943
2082
  };
2083
+ } & {
2084
+ json: {
2085
+ clearQueue?: boolean | undefined;
2086
+ };
1944
2087
  };
1945
2088
  output: {
1946
2089
  sessionId: string;
1947
2090
  cancelled: boolean;
2091
+ queueCleared: boolean;
2092
+ clearedCount: number;
1948
2093
  };
1949
2094
  outputFormat: "json";
1950
2095
  status: 200;
@@ -1970,6 +2115,7 @@ export declare function createDextoClient(config: ClientConfig): {
1970
2115
  createdAt: number | null;
1971
2116
  lastActivity: number | null;
1972
2117
  messageCount: number;
2118
+ isBusy: boolean;
1973
2119
  title?: string | null | undefined;
1974
2120
  };
1975
2121
  };
@@ -2035,8 +2181,7 @@ export declare function createDextoClient(config: ClientConfig): {
2035
2181
  output: {
2036
2182
  config: {
2037
2183
  model: string;
2038
- provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
2039
- router?: "vercel" | "in-built" | undefined;
2184
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
2040
2185
  maxIterations?: number | undefined;
2041
2186
  baseURL?: string | undefined;
2042
2187
  maxInputTokens?: number | undefined;
@@ -2061,7 +2206,6 @@ export declare function createDextoClient(config: ClientConfig): {
2061
2206
  input: {
2062
2207
  query: {
2063
2208
  provider?: string | string[] | undefined;
2064
- router?: "vercel" | "in-built" | undefined;
2065
2209
  hasKey?: "0" | "1" | "true" | "false" | undefined;
2066
2210
  fileType?: "image" | "audio" | "pdf" | undefined;
2067
2211
  defaultOnly?: "0" | "1" | "true" | "false" | undefined;
@@ -2074,7 +2218,6 @@ export declare function createDextoClient(config: ClientConfig): {
2074
2218
  name: string;
2075
2219
  hasApiKey: boolean;
2076
2220
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2077
- supportedRouters: ("vercel" | "in-built")[];
2078
2221
  primaryEnvVar: string;
2079
2222
  supportsBaseURL: boolean;
2080
2223
  models: {
@@ -2082,7 +2225,6 @@ export declare function createDextoClient(config: ClientConfig): {
2082
2225
  maxInputTokens: number;
2083
2226
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2084
2227
  default?: boolean | undefined;
2085
- supportedRouters?: ("vercel" | "in-built")[] | undefined;
2086
2228
  displayName?: string | undefined;
2087
2229
  pricing?: {
2088
2230
  inputPerM: number;
@@ -2094,11 +2236,120 @@ export declare function createDextoClient(config: ClientConfig): {
2094
2236
  } | undefined;
2095
2237
  }[];
2096
2238
  } | undefined;
2097
- "openai-compatible"?: {
2239
+ "openai-compatible"?: {
2240
+ name: string;
2241
+ hasApiKey: boolean;
2242
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2243
+ primaryEnvVar: string;
2244
+ supportsBaseURL: boolean;
2245
+ models: {
2246
+ name: string;
2247
+ maxInputTokens: number;
2248
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2249
+ default?: boolean | undefined;
2250
+ displayName?: string | undefined;
2251
+ pricing?: {
2252
+ inputPerM: number;
2253
+ outputPerM: number;
2254
+ cacheReadPerM?: number | undefined;
2255
+ cacheWritePerM?: number | undefined;
2256
+ currency?: "USD" | undefined;
2257
+ unit?: "per_million_tokens" | undefined;
2258
+ } | undefined;
2259
+ }[];
2260
+ } | undefined;
2261
+ anthropic?: {
2262
+ name: string;
2263
+ hasApiKey: boolean;
2264
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2265
+ primaryEnvVar: string;
2266
+ supportsBaseURL: boolean;
2267
+ models: {
2268
+ name: string;
2269
+ maxInputTokens: number;
2270
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2271
+ default?: boolean | undefined;
2272
+ displayName?: string | undefined;
2273
+ pricing?: {
2274
+ inputPerM: number;
2275
+ outputPerM: number;
2276
+ cacheReadPerM?: number | undefined;
2277
+ cacheWritePerM?: number | undefined;
2278
+ currency?: "USD" | undefined;
2279
+ unit?: "per_million_tokens" | undefined;
2280
+ } | undefined;
2281
+ }[];
2282
+ } | undefined;
2283
+ google?: {
2284
+ name: string;
2285
+ hasApiKey: boolean;
2286
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2287
+ primaryEnvVar: string;
2288
+ supportsBaseURL: boolean;
2289
+ models: {
2290
+ name: string;
2291
+ maxInputTokens: number;
2292
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2293
+ default?: boolean | undefined;
2294
+ displayName?: string | undefined;
2295
+ pricing?: {
2296
+ inputPerM: number;
2297
+ outputPerM: number;
2298
+ cacheReadPerM?: number | undefined;
2299
+ cacheWritePerM?: number | undefined;
2300
+ currency?: "USD" | undefined;
2301
+ unit?: "per_million_tokens" | undefined;
2302
+ } | undefined;
2303
+ }[];
2304
+ } | undefined;
2305
+ groq?: {
2306
+ name: string;
2307
+ hasApiKey: boolean;
2308
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2309
+ primaryEnvVar: string;
2310
+ supportsBaseURL: boolean;
2311
+ models: {
2312
+ name: string;
2313
+ maxInputTokens: number;
2314
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2315
+ default?: boolean | undefined;
2316
+ displayName?: string | undefined;
2317
+ pricing?: {
2318
+ inputPerM: number;
2319
+ outputPerM: number;
2320
+ cacheReadPerM?: number | undefined;
2321
+ cacheWritePerM?: number | undefined;
2322
+ currency?: "USD" | undefined;
2323
+ unit?: "per_million_tokens" | undefined;
2324
+ } | undefined;
2325
+ }[];
2326
+ } | undefined;
2327
+ xai?: {
2328
+ name: string;
2329
+ hasApiKey: boolean;
2330
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2331
+ primaryEnvVar: string;
2332
+ supportsBaseURL: boolean;
2333
+ models: {
2334
+ name: string;
2335
+ maxInputTokens: number;
2336
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2337
+ default?: boolean | undefined;
2338
+ displayName?: string | undefined;
2339
+ pricing?: {
2340
+ inputPerM: number;
2341
+ outputPerM: number;
2342
+ cacheReadPerM?: number | undefined;
2343
+ cacheWritePerM?: number | undefined;
2344
+ currency?: "USD" | undefined;
2345
+ unit?: "per_million_tokens" | undefined;
2346
+ } | undefined;
2347
+ }[];
2348
+ } | undefined;
2349
+ cohere?: {
2098
2350
  name: string;
2099
2351
  hasApiKey: boolean;
2100
2352
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2101
- supportedRouters: ("vercel" | "in-built")[];
2102
2353
  primaryEnvVar: string;
2103
2354
  supportsBaseURL: boolean;
2104
2355
  models: {
@@ -2106,7 +2357,6 @@ export declare function createDextoClient(config: ClientConfig): {
2106
2357
  maxInputTokens: number;
2107
2358
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2108
2359
  default?: boolean | undefined;
2109
- supportedRouters?: ("vercel" | "in-built")[] | undefined;
2110
2360
  displayName?: string | undefined;
2111
2361
  pricing?: {
2112
2362
  inputPerM: number;
@@ -2118,11 +2368,10 @@ export declare function createDextoClient(config: ClientConfig): {
2118
2368
  } | undefined;
2119
2369
  }[];
2120
2370
  } | undefined;
2121
- anthropic?: {
2371
+ openrouter?: {
2122
2372
  name: string;
2123
2373
  hasApiKey: boolean;
2124
2374
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2125
- supportedRouters: ("vercel" | "in-built")[];
2126
2375
  primaryEnvVar: string;
2127
2376
  supportsBaseURL: boolean;
2128
2377
  models: {
@@ -2130,7 +2379,6 @@ export declare function createDextoClient(config: ClientConfig): {
2130
2379
  maxInputTokens: number;
2131
2380
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2132
2381
  default?: boolean | undefined;
2133
- supportedRouters?: ("vercel" | "in-built")[] | undefined;
2134
2382
  displayName?: string | undefined;
2135
2383
  pricing?: {
2136
2384
  inputPerM: number;
@@ -2142,11 +2390,10 @@ export declare function createDextoClient(config: ClientConfig): {
2142
2390
  } | undefined;
2143
2391
  }[];
2144
2392
  } | undefined;
2145
- google?: {
2393
+ litellm?: {
2146
2394
  name: string;
2147
2395
  hasApiKey: boolean;
2148
2396
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2149
- supportedRouters: ("vercel" | "in-built")[];
2150
2397
  primaryEnvVar: string;
2151
2398
  supportsBaseURL: boolean;
2152
2399
  models: {
@@ -2154,7 +2401,6 @@ export declare function createDextoClient(config: ClientConfig): {
2154
2401
  maxInputTokens: number;
2155
2402
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2156
2403
  default?: boolean | undefined;
2157
- supportedRouters?: ("vercel" | "in-built")[] | undefined;
2158
2404
  displayName?: string | undefined;
2159
2405
  pricing?: {
2160
2406
  inputPerM: number;
@@ -2166,11 +2412,10 @@ export declare function createDextoClient(config: ClientConfig): {
2166
2412
  } | undefined;
2167
2413
  }[];
2168
2414
  } | undefined;
2169
- groq?: {
2415
+ glama?: {
2170
2416
  name: string;
2171
2417
  hasApiKey: boolean;
2172
2418
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2173
- supportedRouters: ("vercel" | "in-built")[];
2174
2419
  primaryEnvVar: string;
2175
2420
  supportsBaseURL: boolean;
2176
2421
  models: {
@@ -2178,7 +2423,6 @@ export declare function createDextoClient(config: ClientConfig): {
2178
2423
  maxInputTokens: number;
2179
2424
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2180
2425
  default?: boolean | undefined;
2181
- supportedRouters?: ("vercel" | "in-built")[] | undefined;
2182
2426
  displayName?: string | undefined;
2183
2427
  pricing?: {
2184
2428
  inputPerM: number;
@@ -2190,11 +2434,10 @@ export declare function createDextoClient(config: ClientConfig): {
2190
2434
  } | undefined;
2191
2435
  }[];
2192
2436
  } | undefined;
2193
- xai?: {
2437
+ vertex?: {
2194
2438
  name: string;
2195
2439
  hasApiKey: boolean;
2196
2440
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2197
- supportedRouters: ("vercel" | "in-built")[];
2198
2441
  primaryEnvVar: string;
2199
2442
  supportsBaseURL: boolean;
2200
2443
  models: {
@@ -2202,7 +2445,6 @@ export declare function createDextoClient(config: ClientConfig): {
2202
2445
  maxInputTokens: number;
2203
2446
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2204
2447
  default?: boolean | undefined;
2205
- supportedRouters?: ("vercel" | "in-built")[] | undefined;
2206
2448
  displayName?: string | undefined;
2207
2449
  pricing?: {
2208
2450
  inputPerM: number;
@@ -2214,11 +2456,54 @@ export declare function createDextoClient(config: ClientConfig): {
2214
2456
  } | undefined;
2215
2457
  }[];
2216
2458
  } | undefined;
2217
- cohere?: {
2459
+ bedrock?: {
2460
+ name: string;
2461
+ hasApiKey: boolean;
2462
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2463
+ primaryEnvVar: string;
2464
+ supportsBaseURL: boolean;
2465
+ models: {
2466
+ name: string;
2467
+ maxInputTokens: number;
2468
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2469
+ default?: boolean | undefined;
2470
+ displayName?: string | undefined;
2471
+ pricing?: {
2472
+ inputPerM: number;
2473
+ outputPerM: number;
2474
+ cacheReadPerM?: number | undefined;
2475
+ cacheWritePerM?: number | undefined;
2476
+ currency?: "USD" | undefined;
2477
+ unit?: "per_million_tokens" | undefined;
2478
+ } | undefined;
2479
+ }[];
2480
+ } | undefined;
2481
+ local?: {
2482
+ name: string;
2483
+ hasApiKey: boolean;
2484
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2485
+ primaryEnvVar: string;
2486
+ supportsBaseURL: boolean;
2487
+ models: {
2488
+ name: string;
2489
+ maxInputTokens: number;
2490
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2491
+ default?: boolean | undefined;
2492
+ displayName?: string | undefined;
2493
+ pricing?: {
2494
+ inputPerM: number;
2495
+ outputPerM: number;
2496
+ cacheReadPerM?: number | undefined;
2497
+ cacheWritePerM?: number | undefined;
2498
+ currency?: "USD" | undefined;
2499
+ unit?: "per_million_tokens" | undefined;
2500
+ } | undefined;
2501
+ }[];
2502
+ } | undefined;
2503
+ ollama?: {
2218
2504
  name: string;
2219
2505
  hasApiKey: boolean;
2220
2506
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2221
- supportedRouters: ("vercel" | "in-built")[];
2222
2507
  primaryEnvVar: string;
2223
2508
  supportsBaseURL: boolean;
2224
2509
  models: {
@@ -2226,7 +2511,6 @@ export declare function createDextoClient(config: ClientConfig): {
2226
2511
  maxInputTokens: number;
2227
2512
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2228
2513
  default?: boolean | undefined;
2229
- supportedRouters?: ("vercel" | "in-built")[] | undefined;
2230
2514
  displayName?: string | undefined;
2231
2515
  pricing?: {
2232
2516
  inputPerM: number;
@@ -2246,7 +2530,6 @@ export declare function createDextoClient(config: ClientConfig): {
2246
2530
  maxInputTokens: number;
2247
2531
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2248
2532
  default?: boolean | undefined;
2249
- supportedRouters?: ("vercel" | "in-built")[] | undefined;
2250
2533
  displayName?: string | undefined;
2251
2534
  pricing?: {
2252
2535
  inputPerM: number;
@@ -2264,28 +2547,6 @@ export declare function createDextoClient(config: ClientConfig): {
2264
2547
  }>;
2265
2548
  };
2266
2549
  };
2267
- } & {
2268
- api: {
2269
- llm: {
2270
- key: import("hono/client").ClientRequest<{
2271
- $post: {
2272
- input: {
2273
- json: {
2274
- provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
2275
- apiKey: string;
2276
- };
2277
- };
2278
- output: {
2279
- provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
2280
- ok: true;
2281
- envVar: string;
2282
- };
2283
- outputFormat: "json";
2284
- status: 200;
2285
- };
2286
- }>;
2287
- };
2288
- };
2289
2550
  } & {
2290
2551
  api: {
2291
2552
  llm: {
@@ -2293,10 +2554,9 @@ export declare function createDextoClient(config: ClientConfig): {
2293
2554
  $post: {
2294
2555
  input: {
2295
2556
  json: {
2296
- apiKey?: string | undefined;
2297
2557
  model?: string | undefined;
2298
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
2299
- router?: "vercel" | "in-built" | undefined;
2558
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
2559
+ apiKey?: string | undefined;
2300
2560
  maxIterations?: number | undefined;
2301
2561
  baseURL?: string | undefined;
2302
2562
  maxInputTokens?: number | undefined;
@@ -2310,8 +2570,7 @@ export declare function createDextoClient(config: ClientConfig): {
2310
2570
  output: {
2311
2571
  config: {
2312
2572
  model: string;
2313
- provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
2314
- router: "vercel" | "in-built";
2573
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
2315
2574
  maxIterations: number;
2316
2575
  baseURL?: string | undefined;
2317
2576
  maxInputTokens?: number | undefined;
@@ -2328,50 +2587,143 @@ export declare function createDextoClient(config: ClientConfig): {
2328
2587
  }>;
2329
2588
  };
2330
2589
  };
2590
+ } & {
2591
+ api: {
2592
+ llm: {
2593
+ "custom-models": import("hono/client").ClientRequest<{
2594
+ $get: {
2595
+ input: {};
2596
+ output: {
2597
+ models: {
2598
+ name: string;
2599
+ provider: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
2600
+ apiKey?: string | undefined | undefined;
2601
+ baseURL?: string | undefined | undefined;
2602
+ filePath?: string | undefined | undefined;
2603
+ displayName?: string | undefined | undefined;
2604
+ maxInputTokens?: number | undefined | undefined;
2605
+ maxOutputTokens?: number | undefined | undefined;
2606
+ }[];
2607
+ };
2608
+ outputFormat: "json";
2609
+ status: 200;
2610
+ };
2611
+ $post: {
2612
+ input: {
2613
+ json: {
2614
+ name: string;
2615
+ provider?: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
2616
+ apiKey?: string | undefined;
2617
+ baseURL?: string | undefined;
2618
+ filePath?: string | undefined;
2619
+ displayName?: string | undefined;
2620
+ maxInputTokens?: number | undefined;
2621
+ maxOutputTokens?: number | undefined;
2622
+ };
2623
+ };
2624
+ output: {
2625
+ model: {
2626
+ name: string;
2627
+ provider: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
2628
+ apiKey?: string | undefined | undefined;
2629
+ baseURL?: string | undefined | undefined;
2630
+ filePath?: string | undefined | undefined;
2631
+ displayName?: string | undefined | undefined;
2632
+ maxInputTokens?: number | undefined | undefined;
2633
+ maxOutputTokens?: number | undefined | undefined;
2634
+ };
2635
+ ok: true;
2636
+ };
2637
+ outputFormat: "json";
2638
+ status: 200;
2639
+ };
2640
+ }>;
2641
+ };
2642
+ };
2643
+ } & {
2644
+ api: {
2645
+ llm: {
2646
+ "custom-models": {
2647
+ ":name": import("hono/client").ClientRequest<{
2648
+ $delete: {
2649
+ input: {
2650
+ param: {
2651
+ name: string;
2652
+ };
2653
+ };
2654
+ output: {
2655
+ ok: true;
2656
+ deleted: string;
2657
+ };
2658
+ outputFormat: "json";
2659
+ status: 200;
2660
+ } | {
2661
+ input: {
2662
+ param: {
2663
+ name: string;
2664
+ };
2665
+ };
2666
+ output: {
2667
+ ok: false;
2668
+ error: string;
2669
+ };
2670
+ outputFormat: "json";
2671
+ status: 404;
2672
+ };
2673
+ }>;
2674
+ };
2675
+ };
2676
+ };
2331
2677
  } & {
2332
2678
  api: {
2333
2679
  message: import("hono/client").ClientRequest<{
2334
2680
  $post: {
2335
2681
  input: {
2336
2682
  json: {
2337
- sessionId: string;
2338
- message?: string | undefined;
2339
- imageData?: {
2683
+ content: string | ({
2684
+ type: "text";
2685
+ text: string;
2686
+ } | {
2687
+ type: "image";
2340
2688
  image: string;
2341
- mimeType: string;
2342
- } | undefined;
2343
- fileData?: {
2689
+ mimeType?: string | undefined;
2690
+ } | {
2691
+ type: "file";
2344
2692
  mimeType: string;
2345
2693
  data: string;
2346
2694
  filename?: string | undefined;
2347
- } | undefined;
2695
+ })[];
2696
+ sessionId: string;
2348
2697
  };
2349
2698
  };
2350
- output: {
2351
- sessionId: string;
2352
- accepted: true;
2353
- };
2354
- outputFormat: "json";
2355
- status: 202;
2699
+ output: {};
2700
+ outputFormat: string;
2701
+ status: 400;
2356
2702
  } | {
2357
2703
  input: {
2358
2704
  json: {
2359
- sessionId: string;
2360
- message?: string | undefined;
2361
- imageData?: {
2705
+ content: string | ({
2706
+ type: "text";
2707
+ text: string;
2708
+ } | {
2709
+ type: "image";
2362
2710
  image: string;
2363
- mimeType: string;
2364
- } | undefined;
2365
- fileData?: {
2711
+ mimeType?: string | undefined;
2712
+ } | {
2713
+ type: "file";
2366
2714
  mimeType: string;
2367
2715
  data: string;
2368
2716
  filename?: string | undefined;
2369
- } | undefined;
2717
+ })[];
2718
+ sessionId: string;
2370
2719
  };
2371
2720
  };
2372
- output: {};
2373
- outputFormat: string;
2374
- status: 400;
2721
+ output: {
2722
+ sessionId: string;
2723
+ accepted: true;
2724
+ };
2725
+ outputFormat: "json";
2726
+ status: 202;
2375
2727
  };
2376
2728
  }>;
2377
2729
  };
@@ -2381,17 +2733,20 @@ export declare function createDextoClient(config: ClientConfig): {
2381
2733
  $post: {
2382
2734
  input: {
2383
2735
  json: {
2384
- sessionId: string;
2385
- message?: string | undefined;
2386
- imageData?: {
2736
+ content: string | ({
2737
+ type: "text";
2738
+ text: string;
2739
+ } | {
2740
+ type: "image";
2387
2741
  image: string;
2388
- mimeType: string;
2389
- } | undefined;
2390
- fileData?: {
2742
+ mimeType?: string | undefined;
2743
+ } | {
2744
+ type: "file";
2391
2745
  mimeType: string;
2392
2746
  data: string;
2393
2747
  filename?: string | undefined;
2394
- } | undefined;
2748
+ })[];
2749
+ sessionId: string;
2395
2750
  };
2396
2751
  };
2397
2752
  output: {};
@@ -2400,17 +2755,20 @@ export declare function createDextoClient(config: ClientConfig): {
2400
2755
  } | {
2401
2756
  input: {
2402
2757
  json: {
2403
- sessionId: string;
2404
- message?: string | undefined;
2405
- imageData?: {
2758
+ content: string | ({
2759
+ type: "text";
2760
+ text: string;
2761
+ } | {
2762
+ type: "image";
2406
2763
  image: string;
2407
- mimeType: string;
2408
- } | undefined;
2409
- fileData?: {
2764
+ mimeType?: string | undefined;
2765
+ } | {
2766
+ type: "file";
2410
2767
  mimeType: string;
2411
2768
  data: string;
2412
2769
  filename?: string | undefined;
2413
- } | undefined;
2770
+ })[];
2771
+ sessionId: string;
2414
2772
  };
2415
2773
  };
2416
2774
  output: {
@@ -2424,8 +2782,7 @@ export declare function createDextoClient(config: ClientConfig): {
2424
2782
  totalTokens?: number | undefined;
2425
2783
  } | undefined;
2426
2784
  model?: string | undefined;
2427
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
2428
- router?: "vercel" | "in-built" | undefined;
2785
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
2429
2786
  };
2430
2787
  outputFormat: "json";
2431
2788
  status: 200;
@@ -2456,17 +2813,20 @@ export declare function createDextoClient(config: ClientConfig): {
2456
2813
  $post: {
2457
2814
  input: {
2458
2815
  json: {
2459
- sessionId: string;
2460
- message?: string | undefined;
2461
- imageData?: {
2816
+ content: string | ({
2817
+ type: "text";
2818
+ text: string;
2819
+ } | {
2820
+ type: "image";
2462
2821
  image: string;
2463
- mimeType: string;
2464
- } | undefined;
2465
- fileData?: {
2822
+ mimeType?: string | undefined;
2823
+ } | {
2824
+ type: "file";
2466
2825
  mimeType: string;
2467
2826
  data: string;
2468
2827
  filename?: string | undefined;
2469
- } | undefined;
2828
+ })[];
2829
+ sessionId: string;
2470
2830
  };
2471
2831
  };
2472
2832
  output: Response;
@@ -2475,22 +2835,52 @@ export declare function createDextoClient(config: ClientConfig): {
2475
2835
  } | {
2476
2836
  input: {
2477
2837
  json: {
2478
- sessionId: string;
2479
- message?: string | undefined;
2480
- imageData?: {
2838
+ content: string | ({
2839
+ type: "text";
2840
+ text: string;
2841
+ } | {
2842
+ type: "image";
2481
2843
  image: string;
2482
- mimeType: string;
2483
- } | undefined;
2484
- fileData?: {
2844
+ mimeType?: string | undefined;
2845
+ } | {
2846
+ type: "file";
2485
2847
  mimeType: string;
2486
2848
  data: string;
2487
2849
  filename?: string | undefined;
2488
- } | undefined;
2850
+ })[];
2851
+ sessionId: string;
2489
2852
  };
2490
2853
  };
2491
2854
  output: {};
2492
2855
  outputFormat: string;
2493
2856
  status: 400;
2857
+ } | {
2858
+ input: {
2859
+ json: {
2860
+ content: string | ({
2861
+ type: "text";
2862
+ text: string;
2863
+ } | {
2864
+ type: "image";
2865
+ image: string;
2866
+ mimeType?: string | undefined;
2867
+ } | {
2868
+ type: "file";
2869
+ mimeType: string;
2870
+ data: string;
2871
+ filename?: string | undefined;
2872
+ })[];
2873
+ sessionId: string;
2874
+ };
2875
+ };
2876
+ output: {
2877
+ sessionId: string;
2878
+ busy: true;
2879
+ queueLength: number;
2880
+ hint: string;
2881
+ };
2882
+ outputFormat: "json";
2883
+ status: 202;
2494
2884
  };
2495
2885
  }>;
2496
2886
  };
@@ -2543,8 +2933,8 @@ export declare function createDextoClient(config: ClientConfig): {
2543
2933
  })[];
2544
2934
  messageId: string;
2545
2935
  metadata?: Record<string, any> | undefined;
2546
- contextId?: string | undefined;
2547
2936
  taskId?: string | undefined;
2937
+ contextId?: string | undefined;
2548
2938
  extensions?: string[] | undefined;
2549
2939
  referenceTaskIds?: string[] | undefined;
2550
2940
  };
@@ -2599,8 +2989,8 @@ export declare function createDextoClient(config: ClientConfig): {
2599
2989
  metadata?: {
2600
2990
  [x: string]: any;
2601
2991
  } | undefined;
2602
- contextId?: string | undefined;
2603
2992
  taskId?: string | undefined;
2993
+ contextId?: string | undefined;
2604
2994
  extensions?: string[] | undefined;
2605
2995
  referenceTaskIds?: string[] | undefined;
2606
2996
  } | undefined;
@@ -2648,8 +3038,8 @@ export declare function createDextoClient(config: ClientConfig): {
2648
3038
  metadata?: {
2649
3039
  [x: string]: any;
2650
3040
  } | undefined;
2651
- contextId?: string | undefined;
2652
3041
  taskId?: string | undefined;
3042
+ contextId?: string | undefined;
2653
3043
  extensions?: string[] | undefined;
2654
3044
  referenceTaskIds?: string[] | undefined;
2655
3045
  }[] | undefined;
@@ -2715,8 +3105,8 @@ export declare function createDextoClient(config: ClientConfig): {
2715
3105
  metadata?: {
2716
3106
  [x: string]: any;
2717
3107
  } | undefined;
2718
- contextId?: string | undefined;
2719
3108
  taskId?: string | undefined;
3109
+ contextId?: string | undefined;
2720
3110
  extensions?: string[] | undefined;
2721
3111
  referenceTaskIds?: string[] | undefined;
2722
3112
  } | undefined;
@@ -2764,8 +3154,8 @@ export declare function createDextoClient(config: ClientConfig): {
2764
3154
  metadata?: {
2765
3155
  [x: string]: any;
2766
3156
  } | undefined;
2767
- contextId?: string | undefined;
2768
3157
  taskId?: string | undefined;
3158
+ contextId?: string | undefined;
2769
3159
  extensions?: string[] | undefined;
2770
3160
  referenceTaskIds?: string[] | undefined;
2771
3161
  }[] | undefined;
@@ -2838,8 +3228,8 @@ export declare function createDextoClient(config: ClientConfig): {
2838
3228
  metadata?: {
2839
3229
  [x: string]: any;
2840
3230
  } | undefined;
2841
- contextId?: string | undefined;
2842
3231
  taskId?: string | undefined;
3232
+ contextId?: string | undefined;
2843
3233
  extensions?: string[] | undefined;
2844
3234
  referenceTaskIds?: string[] | undefined;
2845
3235
  } | undefined;
@@ -2887,8 +3277,8 @@ export declare function createDextoClient(config: ClientConfig): {
2887
3277
  metadata?: {
2888
3278
  [x: string]: any;
2889
3279
  } | undefined;
2890
- contextId?: string | undefined;
2891
3280
  taskId?: string | undefined;
3281
+ contextId?: string | undefined;
2892
3282
  extensions?: string[] | undefined;
2893
3283
  referenceTaskIds?: string[] | undefined;
2894
3284
  }[] | undefined;
@@ -2958,8 +3348,8 @@ export declare function createDextoClient(config: ClientConfig): {
2958
3348
  metadata?: {
2959
3349
  [x: string]: any;
2960
3350
  } | undefined;
2961
- contextId?: string | undefined;
2962
3351
  taskId?: string | undefined;
3352
+ contextId?: string | undefined;
2963
3353
  extensions?: string[] | undefined;
2964
3354
  referenceTaskIds?: string[] | undefined;
2965
3355
  } | undefined;
@@ -3007,8 +3397,8 @@ export declare function createDextoClient(config: ClientConfig): {
3007
3397
  metadata?: {
3008
3398
  [x: string]: any;
3009
3399
  } | undefined;
3010
- contextId?: string | undefined;
3011
3400
  taskId?: string | undefined;
3401
+ contextId?: string | undefined;
3012
3402
  extensions?: string[] | undefined;
3013
3403
  referenceTaskIds?: string[] | undefined;
3014
3404
  }[] | undefined;