@dexto/server 1.4.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/hono/__tests__/test-fixtures.cjs +1 -1
  2. package/dist/hono/__tests__/test-fixtures.d.ts.map +1 -1
  3. package/dist/hono/__tests__/test-fixtures.js +1 -1
  4. package/dist/hono/index.cjs +41 -5
  5. package/dist/hono/index.d.ts +470 -456
  6. package/dist/hono/index.d.ts.map +1 -1
  7. package/dist/hono/index.js +41 -5
  8. package/dist/hono/routes/a2a-jsonrpc.cjs +3 -3
  9. package/dist/hono/routes/a2a-jsonrpc.d.ts +4 -1
  10. package/dist/hono/routes/a2a-jsonrpc.d.ts.map +1 -1
  11. package/dist/hono/routes/a2a-jsonrpc.js +3 -3
  12. package/dist/hono/routes/a2a-tasks.cjs +5 -5
  13. package/dist/hono/routes/a2a-tasks.d.ts +13 -10
  14. package/dist/hono/routes/a2a-tasks.d.ts.map +1 -1
  15. package/dist/hono/routes/a2a-tasks.js +5 -5
  16. package/dist/hono/routes/agents.cjs +25 -35
  17. package/dist/hono/routes/agents.d.ts +6 -407
  18. package/dist/hono/routes/agents.d.ts.map +1 -1
  19. package/dist/hono/routes/agents.js +25 -35
  20. package/dist/hono/routes/approvals.cjs +2 -2
  21. package/dist/hono/routes/approvals.d.ts +4 -1
  22. package/dist/hono/routes/approvals.d.ts.map +1 -1
  23. package/dist/hono/routes/approvals.js +2 -2
  24. package/dist/hono/routes/discovery.cjs +68 -0
  25. package/dist/hono/routes/discovery.d.ts +53 -0
  26. package/dist/hono/routes/discovery.d.ts.map +1 -0
  27. package/dist/hono/routes/discovery.js +44 -0
  28. package/dist/hono/routes/greeting.cjs +2 -2
  29. package/dist/hono/routes/greeting.d.ts +2 -2
  30. package/dist/hono/routes/greeting.d.ts.map +1 -1
  31. package/dist/hono/routes/greeting.js +2 -2
  32. package/dist/hono/routes/health.d.ts +2 -2
  33. package/dist/hono/routes/health.d.ts.map +1 -1
  34. package/dist/hono/routes/key.cjs +110 -0
  35. package/dist/hono/routes/key.d.ts +48 -0
  36. package/dist/hono/routes/key.d.ts.map +1 -0
  37. package/dist/hono/routes/key.js +90 -0
  38. package/dist/hono/routes/llm.cjs +12 -34
  39. package/dist/hono/routes/llm.d.ts +179 -25
  40. package/dist/hono/routes/llm.d.ts.map +1 -1
  41. package/dist/hono/routes/llm.js +12 -35
  42. package/dist/hono/routes/mcp.cjs +8 -8
  43. package/dist/hono/routes/mcp.d.ts +2 -2
  44. package/dist/hono/routes/mcp.d.ts.map +1 -1
  45. package/dist/hono/routes/mcp.js +8 -8
  46. package/dist/hono/routes/memory.cjs +5 -5
  47. package/dist/hono/routes/memory.d.ts +8 -5
  48. package/dist/hono/routes/memory.d.ts.map +1 -1
  49. package/dist/hono/routes/memory.js +5 -5
  50. package/dist/hono/routes/messages.cjs +4 -4
  51. package/dist/hono/routes/messages.d.ts +12 -12
  52. package/dist/hono/routes/messages.d.ts.map +1 -1
  53. package/dist/hono/routes/messages.js +4 -4
  54. package/dist/hono/routes/models.cjs +319 -0
  55. package/dist/hono/routes/models.d.ts +107 -0
  56. package/dist/hono/routes/models.d.ts.map +1 -0
  57. package/dist/hono/routes/models.js +305 -0
  58. package/dist/hono/routes/openrouter.cjs +153 -0
  59. package/dist/hono/routes/openrouter.d.ts +54 -0
  60. package/dist/hono/routes/openrouter.d.ts.map +1 -0
  61. package/dist/hono/routes/openrouter.js +134 -0
  62. package/dist/hono/routes/prompts.cjs +5 -5
  63. package/dist/hono/routes/prompts.d.ts +4 -1
  64. package/dist/hono/routes/prompts.d.ts.map +1 -1
  65. package/dist/hono/routes/prompts.js +5 -5
  66. package/dist/hono/routes/queue.cjs +4 -4
  67. package/dist/hono/routes/queue.d.ts +4 -1
  68. package/dist/hono/routes/queue.d.ts.map +1 -1
  69. package/dist/hono/routes/queue.js +4 -4
  70. package/dist/hono/routes/resources.cjs +3 -3
  71. package/dist/hono/routes/resources.d.ts +2 -2
  72. package/dist/hono/routes/resources.d.ts.map +1 -1
  73. package/dist/hono/routes/resources.js +3 -3
  74. package/dist/hono/routes/search.cjs +2 -2
  75. package/dist/hono/routes/search.d.ts +6 -3
  76. package/dist/hono/routes/search.d.ts.map +1 -1
  77. package/dist/hono/routes/search.js +2 -2
  78. package/dist/hono/routes/sessions.cjs +9 -9
  79. package/dist/hono/routes/sessions.d.ts +3 -3
  80. package/dist/hono/routes/sessions.d.ts.map +1 -1
  81. package/dist/hono/routes/sessions.js +9 -9
  82. package/dist/hono/routes/tools.cjs +126 -0
  83. package/dist/hono/routes/tools.d.ts +42 -0
  84. package/dist/hono/routes/tools.d.ts.map +1 -0
  85. package/dist/hono/routes/tools.js +102 -0
  86. package/dist/hono/routes/webhooks.cjs +4 -4
  87. package/dist/hono/routes/webhooks.d.ts +4 -1
  88. package/dist/hono/routes/webhooks.d.ts.map +1 -1
  89. package/dist/hono/routes/webhooks.js +4 -4
  90. package/dist/hono/schemas/responses.d.ts +47 -41
  91. package/dist/hono/schemas/responses.d.ts.map +1 -1
  92. package/dist/hono/start-server.cjs +102 -0
  93. package/dist/hono/start-server.d.ts +61 -0
  94. package/dist/hono/start-server.d.ts.map +1 -0
  95. package/dist/hono/start-server.js +78 -0
  96. package/dist/index.cjs +2 -0
  97. package/dist/index.d.ts +1 -0
  98. package/dist/index.d.ts.map +1 -1
  99. package/dist/index.js +1 -0
  100. package/package.json +5 -4
@@ -1,13 +1,18 @@
1
1
  import { OpenAPIHono } from '@hono/zod-openapi';
2
+ import type { Context } from 'hono';
2
3
  import type { DextoAgent, AgentCard } from '@dexto/core';
3
4
  import { type AgentsRouterContext } from './routes/agents.js';
4
5
  import { type WebUIRuntimeConfig } from './routes/static.js';
5
6
  import { WebhookEventSubscriber } from '../events/webhook-subscriber.js';
6
7
  import { A2ASseEventSubscriber } from '../events/a2a-sse-subscriber.js';
7
8
  import { ApprovalCoordinator } from '../approval/approval-coordinator.js';
9
+ export type GetAgentFn = (ctx: Context) => DextoAgent | Promise<DextoAgent>;
8
10
  export type CreateDextoAppOptions = {
11
+ /**
12
+ * Prefix for API routes. Defaults to '/api'.
13
+ */
9
14
  apiPrefix?: string;
10
- getAgent: () => DextoAgent;
15
+ getAgent: GetAgentFn;
11
16
  getAgentCard: () => AgentCard;
12
17
  approvalCoordinator: ApprovalCoordinator;
13
18
  webhookSubscriber: WebhookEventSubscriber;
@@ -17,8 +22,270 @@ export type CreateDextoAppOptions = {
17
22
  webRoot?: string;
18
23
  /** Runtime configuration to inject into WebUI (analytics, etc.) */
19
24
  webUIConfig?: WebUIRuntimeConfig;
25
+ /** Disable built-in auth middleware. Use when you have your own auth layer. */
26
+ disableAuth?: boolean;
20
27
  };
21
28
  export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIHono<import("hono").Env, import("hono/types").MergeSchemaPath<{
29
+ "/models/local": {
30
+ $get: {
31
+ input: {};
32
+ output: {
33
+ models: {
34
+ id: string;
35
+ displayName: string;
36
+ filePath: string;
37
+ sizeBytes: number;
38
+ source?: "manual" | "huggingface" | undefined;
39
+ contextLength?: number | undefined;
40
+ }[];
41
+ };
42
+ outputFormat: "json";
43
+ status: 200;
44
+ };
45
+ };
46
+ } & {
47
+ "/models/ollama": {
48
+ $get: {
49
+ input: {
50
+ query: {
51
+ baseURL?: string | undefined;
52
+ };
53
+ };
54
+ output: {
55
+ models: {
56
+ name: string;
57
+ size?: number | undefined;
58
+ digest?: string | undefined;
59
+ modifiedAt?: string | undefined;
60
+ }[];
61
+ available: boolean;
62
+ error?: string | undefined;
63
+ version?: string | undefined;
64
+ };
65
+ outputFormat: "json";
66
+ status: 200;
67
+ };
68
+ };
69
+ } & {
70
+ "/models/local/validate": {
71
+ $post: {
72
+ input: {
73
+ json: {
74
+ filePath: string;
75
+ };
76
+ };
77
+ output: {
78
+ valid: boolean;
79
+ error?: string | undefined;
80
+ sizeBytes?: number | undefined;
81
+ };
82
+ outputFormat: "json";
83
+ status: 200;
84
+ };
85
+ };
86
+ } & {
87
+ "/models/local/:modelId": {
88
+ $delete: {
89
+ input: {
90
+ param: {
91
+ modelId: string;
92
+ };
93
+ } & {
94
+ json: {
95
+ deleteFile?: boolean | undefined;
96
+ };
97
+ };
98
+ output: {
99
+ success: boolean;
100
+ modelId: string;
101
+ fileDeleted: boolean;
102
+ error?: string | undefined;
103
+ };
104
+ outputFormat: "json";
105
+ status: 200;
106
+ } | {
107
+ input: {
108
+ param: {
109
+ modelId: string;
110
+ };
111
+ } & {
112
+ json: {
113
+ deleteFile?: boolean | undefined;
114
+ };
115
+ };
116
+ output: {
117
+ success: boolean;
118
+ modelId: string;
119
+ fileDeleted: boolean;
120
+ error?: string | undefined;
121
+ };
122
+ outputFormat: "json";
123
+ status: 404;
124
+ };
125
+ };
126
+ }, "/api"> & import("hono/types").MergeSchemaPath<{
127
+ "/discovery": {
128
+ $get: {
129
+ input: {};
130
+ output: {
131
+ internalTools: {
132
+ description: string;
133
+ name: string;
134
+ }[];
135
+ customTools: {
136
+ type: string;
137
+ category: "customTools" | "compaction" | "blob" | "database";
138
+ metadata?: {
139
+ [x: string]: import("hono/utils/types").JSONValue;
140
+ description?: string | undefined;
141
+ displayName?: string | undefined;
142
+ } | undefined;
143
+ }[];
144
+ compaction: {
145
+ type: string;
146
+ category: "customTools" | "compaction" | "blob" | "database";
147
+ metadata?: {
148
+ [x: string]: import("hono/utils/types").JSONValue;
149
+ description?: string | undefined;
150
+ displayName?: string | undefined;
151
+ } | undefined;
152
+ }[];
153
+ blob: {
154
+ type: string;
155
+ category: "customTools" | "compaction" | "blob" | "database";
156
+ metadata?: {
157
+ [x: string]: import("hono/utils/types").JSONValue;
158
+ description?: string | undefined;
159
+ displayName?: string | undefined;
160
+ } | undefined;
161
+ }[];
162
+ database: {
163
+ type: string;
164
+ category: "customTools" | "compaction" | "blob" | "database";
165
+ metadata?: {
166
+ [x: string]: import("hono/utils/types").JSONValue;
167
+ description?: string | undefined;
168
+ displayName?: string | undefined;
169
+ } | undefined;
170
+ }[];
171
+ };
172
+ outputFormat: "json";
173
+ status: 200;
174
+ };
175
+ };
176
+ }, "/api"> & import("hono/types").MergeSchemaPath<{
177
+ "/tools": {
178
+ $get: {
179
+ input: {};
180
+ output: {
181
+ tools: {
182
+ description: string;
183
+ id: string;
184
+ name: string;
185
+ source: "custom" | "mcp" | "internal";
186
+ serverName?: string | undefined;
187
+ inputSchema?: {
188
+ [x: string]: import("hono/utils/types").JSONValue;
189
+ type?: "object" | undefined;
190
+ properties?: {
191
+ [x: string]: {
192
+ [x: string]: import("hono/utils/types").JSONValue;
193
+ description?: string | undefined;
194
+ default?: any;
195
+ type?: "string" | "number" | "boolean" | "object" | "integer" | "array" | undefined;
196
+ enum?: (string | number | boolean)[] | undefined;
197
+ };
198
+ } | undefined;
199
+ required?: string[] | undefined;
200
+ } | undefined;
201
+ }[];
202
+ totalCount: number;
203
+ internalCount: number;
204
+ customCount: number;
205
+ mcpCount: number;
206
+ };
207
+ outputFormat: "json";
208
+ status: 200;
209
+ };
210
+ };
211
+ }, "/api"> & import("hono/types").MergeSchemaPath<{
212
+ "/llm/key/:provider": {
213
+ $get: {
214
+ input: {
215
+ param: {
216
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
217
+ };
218
+ };
219
+ output: {
220
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
221
+ hasKey: boolean;
222
+ envVar: string;
223
+ keyValue?: string | undefined;
224
+ };
225
+ outputFormat: "json";
226
+ status: 200;
227
+ };
228
+ };
229
+ } & {
230
+ "/llm/key": {
231
+ $post: {
232
+ input: {
233
+ json: {
234
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
235
+ apiKey: string;
236
+ };
237
+ };
238
+ output: {
239
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
240
+ ok: true;
241
+ envVar: string;
242
+ };
243
+ outputFormat: "json";
244
+ status: 200;
245
+ };
246
+ };
247
+ }, "/api"> & import("hono/types").MergeSchemaPath<{
248
+ "/openrouter/validate/:modelId": {
249
+ $get: {
250
+ input: {
251
+ param: {
252
+ modelId: string;
253
+ };
254
+ };
255
+ output: {
256
+ valid: boolean;
257
+ status: "valid" | "unknown" | "invalid";
258
+ modelId: string;
259
+ error?: string | undefined;
260
+ info?: {
261
+ contextLength: number;
262
+ } | undefined;
263
+ };
264
+ outputFormat: "json";
265
+ status: 200;
266
+ };
267
+ };
268
+ } & {
269
+ "/openrouter/refresh-cache": {
270
+ $post: {
271
+ input: {};
272
+ output: {
273
+ message: string;
274
+ ok: true;
275
+ };
276
+ outputFormat: "json";
277
+ status: 200;
278
+ } | {
279
+ input: {};
280
+ output: {
281
+ message: string;
282
+ ok: false;
283
+ };
284
+ outputFormat: "json";
285
+ status: 500;
286
+ };
287
+ };
288
+ }, "/api"> & import("hono/types").MergeSchemaPath<{
22
289
  "/queue/:sessionId": {
23
290
  $get: {
24
291
  input: {
@@ -244,7 +511,6 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
244
511
  id: string;
245
512
  sourcePath: string;
246
513
  name?: string | undefined;
247
- injectPreferences?: boolean | undefined;
248
514
  };
249
515
  };
250
516
  output: {
@@ -316,410 +582,7 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
316
582
  input: {
317
583
  json: {
318
584
  description: string;
319
- config: {
320
- llm: {
321
- model: string;
322
- provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
323
- apiKey: string;
324
- maxIterations?: number | undefined;
325
- baseURL?: string | undefined;
326
- maxInputTokens?: number | undefined;
327
- maxOutputTokens?: number | undefined;
328
- temperature?: number | undefined;
329
- allowedMediaTypes?: string[] | undefined;
330
- };
331
- systemPrompt: string | {
332
- contributors?: ({
333
- type: "static";
334
- content: string;
335
- id: string;
336
- priority: number;
337
- enabled?: boolean | undefined;
338
- } | {
339
- type: "dynamic";
340
- id: string;
341
- source: "resources" | "dateTime";
342
- priority: number;
343
- enabled?: boolean | undefined;
344
- } | {
345
- type: "file";
346
- id: string;
347
- priority: number;
348
- files: string[];
349
- options?: {
350
- includeFilenames?: boolean | undefined;
351
- separator?: string | undefined;
352
- errorHandling?: "error" | "skip" | undefined;
353
- maxFileSize?: number | undefined;
354
- includeMetadata?: boolean | undefined;
355
- } | undefined;
356
- enabled?: boolean | undefined;
357
- })[] | undefined;
358
- };
359
- tools?: Record<string, {
360
- maxOutputChars?: number | undefined;
361
- maxLines?: number | undefined;
362
- maxLineLength?: number | undefined;
363
- }> | undefined;
364
- storage?: {
365
- database: {
366
- type: "in-memory";
367
- options?: Record<string, any> | undefined;
368
- maxConnections?: number | undefined;
369
- idleTimeoutMillis?: number | undefined;
370
- connectionTimeoutMillis?: number | undefined;
371
- } | {
372
- path: string;
373
- type: "sqlite";
374
- options?: Record<string, any> | undefined;
375
- maxConnections?: number | undefined;
376
- idleTimeoutMillis?: number | undefined;
377
- connectionTimeoutMillis?: number | undefined;
378
- } | {
379
- type: "postgres";
380
- password?: string | undefined;
381
- options?: Record<string, any> | undefined;
382
- url?: string | undefined;
383
- maxConnections?: number | undefined;
384
- idleTimeoutMillis?: number | undefined;
385
- connectionTimeoutMillis?: number | undefined;
386
- host?: string | undefined;
387
- port?: number | undefined;
388
- database?: string | undefined;
389
- connectionString?: string | undefined;
390
- };
391
- cache: {
392
- type: "in-memory";
393
- options?: Record<string, any> | undefined;
394
- maxConnections?: number | undefined;
395
- idleTimeoutMillis?: number | undefined;
396
- connectionTimeoutMillis?: number | undefined;
397
- } | {
398
- type: "redis";
399
- password?: string | undefined;
400
- options?: Record<string, any> | undefined;
401
- url?: string | undefined;
402
- maxConnections?: number | undefined;
403
- idleTimeoutMillis?: number | undefined;
404
- connectionTimeoutMillis?: number | undefined;
405
- host?: string | undefined;
406
- port?: number | undefined;
407
- database?: number | undefined;
408
- };
409
- blob: {
410
- type: "in-memory";
411
- maxBlobSize?: number | undefined;
412
- maxTotalSize?: number | undefined;
413
- } | {
414
- type: "local";
415
- storePath: string;
416
- maxBlobSize?: number | undefined;
417
- maxTotalSize?: number | undefined;
418
- cleanupAfterDays?: number | undefined;
419
- };
420
- } | undefined;
421
- telemetry?: {
422
- enabled?: boolean | undefined;
423
- serviceName?: string | undefined;
424
- tracerName?: string | undefined;
425
- export?: {
426
- type: "otlp";
427
- headers?: Record<string, string> | undefined;
428
- protocol?: "http" | "grpc" | undefined;
429
- endpoint?: string | undefined;
430
- } | {
431
- type: "console";
432
- } | undefined;
433
- } | undefined;
434
- logger?: {
435
- level?: "debug" | "info" | "warn" | "error" | "silly" | undefined;
436
- transports?: ({
437
- type: "console";
438
- colorize?: boolean | undefined;
439
- } | {
440
- path: string;
441
- type: "file";
442
- maxFiles?: number | undefined;
443
- maxSize?: number | undefined;
444
- } | {
445
- token: string;
446
- type: "upstash";
447
- url: string;
448
- listName?: string | undefined;
449
- maxListLength?: number | undefined;
450
- batchSize?: number | undefined;
451
- })[] | undefined;
452
- } | undefined;
453
- elicitation?: {
454
- timeout?: number | undefined;
455
- enabled?: boolean | undefined;
456
- } | undefined;
457
- prompts?: ({
458
- prompt: string;
459
- type: "inline";
460
- id: string;
461
- description?: string | undefined;
462
- title?: string | undefined;
463
- priority?: number | undefined;
464
- category?: string | undefined;
465
- showInStarters?: boolean | undefined;
466
- } | {
467
- file: string;
468
- type: "file";
469
- showInStarters?: boolean | undefined;
470
- })[] | undefined;
471
- agentId?: string | undefined;
472
- agentCard?: {
473
- description: string;
474
- name: string;
475
- url: string;
476
- version: string;
477
- provider?: {
478
- url: string;
479
- organization: string;
480
- } | undefined;
481
- metadata?: import("zod").objectInputType<{
482
- dexto: import("zod").ZodOptional<import("zod").ZodObject<{
483
- authentication: import("zod").ZodOptional<import("zod").ZodObject<{
484
- schemes: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
485
- credentials: import("zod").ZodOptional<import("zod").ZodString>;
486
- }, "strict", import("zod").ZodTypeAny, {
487
- schemes: string[];
488
- credentials?: string | undefined;
489
- }, {
490
- schemes?: string[] | undefined;
491
- credentials?: string | undefined;
492
- }>>;
493
- delegation: import("zod").ZodOptional<import("zod").ZodObject<{
494
- protocol: import("zod").ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
495
- endpoint: import("zod").ZodString;
496
- supportsSession: import("zod").ZodBoolean;
497
- supportsStreaming: import("zod").ZodOptional<import("zod").ZodBoolean>;
498
- }, "strict", import("zod").ZodTypeAny, {
499
- protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
500
- endpoint: string;
501
- supportsSession: boolean;
502
- supportsStreaming?: boolean | undefined;
503
- }, {
504
- protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
505
- endpoint: string;
506
- supportsSession: boolean;
507
- supportsStreaming?: boolean | undefined;
508
- }>>;
509
- owner: import("zod").ZodOptional<import("zod").ZodObject<{
510
- userId: import("zod").ZodString;
511
- username: import("zod").ZodString;
512
- email: import("zod").ZodOptional<import("zod").ZodString>;
513
- }, "strict", import("zod").ZodTypeAny, {
514
- userId: string;
515
- username: string;
516
- email?: string | undefined;
517
- }, {
518
- userId: string;
519
- username: string;
520
- email?: string | undefined;
521
- }>>;
522
- }, "strict", import("zod").ZodTypeAny, {
523
- authentication?: {
524
- schemes: string[];
525
- credentials?: string | undefined;
526
- } | undefined;
527
- delegation?: {
528
- protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
529
- endpoint: string;
530
- supportsSession: boolean;
531
- supportsStreaming?: boolean | undefined;
532
- } | undefined;
533
- owner?: {
534
- userId: string;
535
- username: string;
536
- email?: string | undefined;
537
- } | undefined;
538
- }, {
539
- authentication?: {
540
- schemes?: string[] | undefined;
541
- credentials?: string | undefined;
542
- } | undefined;
543
- delegation?: {
544
- protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
545
- endpoint: string;
546
- supportsSession: boolean;
547
- supportsStreaming?: boolean | undefined;
548
- } | undefined;
549
- owner?: {
550
- userId: string;
551
- username: string;
552
- email?: string | undefined;
553
- } | undefined;
554
- }>>;
555
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
556
- capabilities?: {
557
- streaming?: boolean | undefined;
558
- pushNotifications?: boolean | undefined;
559
- stateTransitionHistory?: boolean | undefined;
560
- } | undefined;
561
- protocolVersion?: string | undefined;
562
- preferredTransport?: "JSONRPC" | "GRPC" | "HTTP+JSON" | undefined;
563
- defaultInputModes?: string[] | undefined;
564
- defaultOutputModes?: string[] | undefined;
565
- skills?: {
566
- description: string;
567
- name: string;
568
- id: string;
569
- tags: string[];
570
- examples?: string[] | undefined;
571
- inputModes?: string[] | undefined;
572
- outputModes?: string[] | undefined;
573
- }[] | undefined;
574
- iconUrl?: string | undefined;
575
- documentationUrl?: string | undefined;
576
- additionalInterfaces?: {
577
- url: string;
578
- transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
579
- }[] | undefined;
580
- securitySchemes?: Record<string, {
581
- type: "apiKey";
582
- name: string;
583
- in: "query" | "header" | "cookie";
584
- description?: string | undefined;
585
- } | {
586
- type: "http";
587
- scheme: string;
588
- description?: string | undefined;
589
- bearerFormat?: string | undefined;
590
- } | {
591
- type: "oauth2";
592
- flows: {
593
- password?: {
594
- scopes: Record<string, string>;
595
- authorizationUrl?: string | undefined;
596
- tokenUrl?: string | undefined;
597
- refreshUrl?: string | undefined;
598
- } | undefined;
599
- implicit?: {
600
- scopes: Record<string, string>;
601
- authorizationUrl?: string | undefined;
602
- tokenUrl?: string | undefined;
603
- refreshUrl?: string | undefined;
604
- } | undefined;
605
- clientCredentials?: {
606
- scopes: Record<string, string>;
607
- authorizationUrl?: string | undefined;
608
- tokenUrl?: string | undefined;
609
- refreshUrl?: string | undefined;
610
- } | undefined;
611
- authorizationCode?: {
612
- scopes: Record<string, string>;
613
- authorizationUrl?: string | undefined;
614
- tokenUrl?: string | undefined;
615
- refreshUrl?: string | undefined;
616
- } | undefined;
617
- };
618
- description?: string | undefined;
619
- } | {
620
- type: "openIdConnect";
621
- openIdConnectUrl: string;
622
- description?: string | undefined;
623
- } | {
624
- type: "mutualTLS";
625
- description?: string | undefined;
626
- }> | undefined;
627
- security?: Record<string, string[]>[] | undefined;
628
- supportsAuthenticatedExtendedCard?: boolean | undefined;
629
- signatures?: {
630
- protected: string;
631
- signature: string;
632
- }[] | undefined;
633
- } | undefined;
634
- greeting?: string | undefined;
635
- memories?: {
636
- enabled?: boolean | undefined;
637
- limit?: number | undefined;
638
- priority?: number | undefined;
639
- includeTimestamps?: boolean | undefined;
640
- includeTags?: boolean | undefined;
641
- pinnedOnly?: boolean | undefined;
642
- } | undefined;
643
- mcpServers?: Record<string, {
644
- type: "stdio";
645
- command: string;
646
- timeout?: number | undefined;
647
- enabled?: boolean | undefined;
648
- args?: string[] | undefined;
649
- env?: Record<string, string> | undefined;
650
- connectionMode?: "strict" | "lenient" | undefined;
651
- } | {
652
- type: "sse";
653
- url: string;
654
- timeout?: number | undefined;
655
- enabled?: boolean | undefined;
656
- connectionMode?: "strict" | "lenient" | undefined;
657
- headers?: Record<string, string> | undefined;
658
- } | {
659
- type: "http";
660
- url: string;
661
- timeout?: number | undefined;
662
- enabled?: boolean | undefined;
663
- connectionMode?: "strict" | "lenient" | undefined;
664
- headers?: Record<string, string> | undefined;
665
- }> | undefined;
666
- 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;
667
- sessions?: {
668
- maxSessions?: number | undefined;
669
- sessionTTL?: number | undefined;
670
- } | undefined;
671
- toolConfirmation?: {
672
- timeout?: number | undefined;
673
- mode?: "manual" | "auto-approve" | "auto-deny" | undefined;
674
- allowedToolsStorage?: "storage" | "memory" | undefined;
675
- toolPolicies?: {
676
- alwaysAllow?: string[] | undefined;
677
- alwaysDeny?: string[] | undefined;
678
- } | undefined;
679
- } | undefined;
680
- internalResources?: ({
681
- type: "filesystem";
682
- paths: string[];
683
- maxFiles?: number | undefined;
684
- maxDepth?: number | undefined;
685
- includeHidden?: boolean | undefined;
686
- includeExtensions?: string[] | undefined;
687
- } | {
688
- type: "blob";
689
- })[] | {
690
- enabled?: boolean | undefined;
691
- resources?: ({
692
- type: "filesystem";
693
- paths: string[];
694
- maxFiles?: number | undefined;
695
- maxDepth?: number | undefined;
696
- includeHidden?: boolean | undefined;
697
- includeExtensions?: string[] | undefined;
698
- } | {
699
- type: "blob";
700
- })[] | undefined;
701
- } | undefined;
702
- plugins?: {
703
- custom?: {
704
- name: string;
705
- priority: number;
706
- module: string;
707
- blocking: boolean;
708
- config?: Record<string, any> | undefined;
709
- enabled?: boolean | undefined;
710
- }[] | undefined;
711
- contentPolicy?: import("zod").objectInputType<{
712
- priority: import("zod").ZodNumber;
713
- blocking: import("zod").ZodOptional<import("zod").ZodBoolean>;
714
- enabled: import("zod").ZodDefault<import("zod").ZodBoolean>;
715
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
716
- responseSanitizer?: import("zod").objectInputType<{
717
- priority: import("zod").ZodNumber;
718
- blocking: import("zod").ZodOptional<import("zod").ZodBoolean>;
719
- enabled: import("zod").ZodDefault<import("zod").ZodBoolean>;
720
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
721
- } | undefined;
722
- };
585
+ config: Record<string, any>;
723
586
  id: string;
724
587
  name: string;
725
588
  tags?: string[] | undefined;
@@ -951,8 +814,8 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
951
814
  ok: true;
952
815
  memory: {
953
816
  content: string;
954
- id: string;
955
817
  createdAt: number;
818
+ id: string;
956
819
  updatedAt: number;
957
820
  metadata?: {
958
821
  [x: string]: import("hono/utils/types").JSONValue;
@@ -981,8 +844,8 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
981
844
  output: {
982
845
  memories: {
983
846
  content: string;
984
- id: string;
985
847
  createdAt: number;
848
+ id: string;
986
849
  updatedAt: number;
987
850
  metadata?: {
988
851
  [x: string]: import("hono/utils/types").JSONValue;
@@ -1009,8 +872,8 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
1009
872
  ok: true;
1010
873
  memory: {
1011
874
  content: string;
1012
- id: string;
1013
875
  createdAt: number;
876
+ id: string;
1014
877
  updatedAt: number;
1015
878
  metadata?: {
1016
879
  [x: string]: import("hono/utils/types").JSONValue;
@@ -1045,8 +908,8 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
1045
908
  ok: true;
1046
909
  memory: {
1047
910
  content: string;
1048
- id: string;
1049
911
  createdAt: number;
912
+ id: string;
1050
913
  updatedAt: number;
1051
914
  metadata?: {
1052
915
  [x: string]: import("hono/utils/types").JSONValue;
@@ -1715,7 +1578,7 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
1715
1578
  totalTokens?: number | undefined;
1716
1579
  } | undefined;
1717
1580
  model?: string | undefined;
1718
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
1581
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
1719
1582
  toolCalls?: {
1720
1583
  function: {
1721
1584
  name: string;
@@ -1797,7 +1660,7 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
1797
1660
  totalTokens?: number | undefined;
1798
1661
  } | undefined;
1799
1662
  model?: string | undefined;
1800
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
1663
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
1801
1664
  toolCalls?: {
1802
1665
  function: {
1803
1666
  name: string;
@@ -1930,7 +1793,7 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
1930
1793
  totalTokens?: number | undefined;
1931
1794
  } | undefined;
1932
1795
  model?: string | undefined;
1933
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
1796
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
1934
1797
  toolCalls?: {
1935
1798
  function: {
1936
1799
  name: string;
@@ -2080,13 +1943,14 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
2080
1943
  output: {
2081
1944
  config: {
2082
1945
  model: string;
2083
- provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
1946
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
2084
1947
  maxIterations?: number | undefined;
2085
1948
  baseURL?: string | undefined;
2086
1949
  maxInputTokens?: number | undefined;
2087
1950
  maxOutputTokens?: number | undefined;
2088
1951
  temperature?: number | undefined;
2089
1952
  allowedMediaTypes?: string[] | undefined;
1953
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
2090
1954
  hasApiKey?: boolean | undefined;
2091
1955
  displayName?: string | undefined;
2092
1956
  };
@@ -2263,6 +2127,160 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
2263
2127
  } | undefined;
2264
2128
  }[];
2265
2129
  } | undefined;
2130
+ openrouter?: {
2131
+ name: string;
2132
+ hasApiKey: boolean;
2133
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2134
+ primaryEnvVar: string;
2135
+ supportsBaseURL: boolean;
2136
+ models: {
2137
+ name: string;
2138
+ maxInputTokens: number;
2139
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2140
+ default?: boolean | undefined;
2141
+ displayName?: string | undefined;
2142
+ pricing?: {
2143
+ inputPerM: number;
2144
+ outputPerM: number;
2145
+ cacheReadPerM?: number | undefined;
2146
+ cacheWritePerM?: number | undefined;
2147
+ currency?: "USD" | undefined;
2148
+ unit?: "per_million_tokens" | undefined;
2149
+ } | undefined;
2150
+ }[];
2151
+ } | undefined;
2152
+ litellm?: {
2153
+ name: string;
2154
+ hasApiKey: boolean;
2155
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2156
+ primaryEnvVar: string;
2157
+ supportsBaseURL: boolean;
2158
+ models: {
2159
+ name: string;
2160
+ maxInputTokens: number;
2161
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2162
+ default?: boolean | undefined;
2163
+ displayName?: string | undefined;
2164
+ pricing?: {
2165
+ inputPerM: number;
2166
+ outputPerM: number;
2167
+ cacheReadPerM?: number | undefined;
2168
+ cacheWritePerM?: number | undefined;
2169
+ currency?: "USD" | undefined;
2170
+ unit?: "per_million_tokens" | undefined;
2171
+ } | undefined;
2172
+ }[];
2173
+ } | undefined;
2174
+ glama?: {
2175
+ name: string;
2176
+ hasApiKey: boolean;
2177
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2178
+ primaryEnvVar: string;
2179
+ supportsBaseURL: boolean;
2180
+ models: {
2181
+ name: string;
2182
+ maxInputTokens: number;
2183
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2184
+ default?: boolean | undefined;
2185
+ displayName?: string | undefined;
2186
+ pricing?: {
2187
+ inputPerM: number;
2188
+ outputPerM: number;
2189
+ cacheReadPerM?: number | undefined;
2190
+ cacheWritePerM?: number | undefined;
2191
+ currency?: "USD" | undefined;
2192
+ unit?: "per_million_tokens" | undefined;
2193
+ } | undefined;
2194
+ }[];
2195
+ } | undefined;
2196
+ vertex?: {
2197
+ name: string;
2198
+ hasApiKey: boolean;
2199
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2200
+ primaryEnvVar: string;
2201
+ supportsBaseURL: boolean;
2202
+ models: {
2203
+ name: string;
2204
+ maxInputTokens: number;
2205
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2206
+ default?: boolean | undefined;
2207
+ displayName?: string | undefined;
2208
+ pricing?: {
2209
+ inputPerM: number;
2210
+ outputPerM: number;
2211
+ cacheReadPerM?: number | undefined;
2212
+ cacheWritePerM?: number | undefined;
2213
+ currency?: "USD" | undefined;
2214
+ unit?: "per_million_tokens" | undefined;
2215
+ } | undefined;
2216
+ }[];
2217
+ } | undefined;
2218
+ bedrock?: {
2219
+ name: string;
2220
+ hasApiKey: boolean;
2221
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2222
+ primaryEnvVar: string;
2223
+ supportsBaseURL: boolean;
2224
+ models: {
2225
+ name: string;
2226
+ maxInputTokens: number;
2227
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2228
+ default?: boolean | undefined;
2229
+ displayName?: string | undefined;
2230
+ pricing?: {
2231
+ inputPerM: number;
2232
+ outputPerM: number;
2233
+ cacheReadPerM?: number | undefined;
2234
+ cacheWritePerM?: number | undefined;
2235
+ currency?: "USD" | undefined;
2236
+ unit?: "per_million_tokens" | undefined;
2237
+ } | undefined;
2238
+ }[];
2239
+ } | undefined;
2240
+ local?: {
2241
+ name: string;
2242
+ hasApiKey: boolean;
2243
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2244
+ primaryEnvVar: string;
2245
+ supportsBaseURL: boolean;
2246
+ models: {
2247
+ name: string;
2248
+ maxInputTokens: number;
2249
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2250
+ default?: boolean | undefined;
2251
+ displayName?: string | undefined;
2252
+ pricing?: {
2253
+ inputPerM: number;
2254
+ outputPerM: number;
2255
+ cacheReadPerM?: number | undefined;
2256
+ cacheWritePerM?: number | undefined;
2257
+ currency?: "USD" | undefined;
2258
+ unit?: "per_million_tokens" | undefined;
2259
+ } | undefined;
2260
+ }[];
2261
+ } | undefined;
2262
+ ollama?: {
2263
+ name: string;
2264
+ hasApiKey: boolean;
2265
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2266
+ primaryEnvVar: string;
2267
+ supportsBaseURL: boolean;
2268
+ models: {
2269
+ name: string;
2270
+ maxInputTokens: number;
2271
+ supportedFileTypes: ("image" | "audio" | "pdf")[];
2272
+ default?: boolean | undefined;
2273
+ displayName?: string | undefined;
2274
+ pricing?: {
2275
+ inputPerM: number;
2276
+ outputPerM: number;
2277
+ cacheReadPerM?: number | undefined;
2278
+ cacheWritePerM?: number | undefined;
2279
+ currency?: "USD" | undefined;
2280
+ unit?: "per_million_tokens" | undefined;
2281
+ } | undefined;
2282
+ }[];
2283
+ } | undefined;
2266
2284
  };
2267
2285
  } | {
2268
2286
  models: {
@@ -2286,31 +2304,13 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
2286
2304
  status: 200;
2287
2305
  };
2288
2306
  };
2289
- } & {
2290
- "/llm/key": {
2291
- $post: {
2292
- input: {
2293
- json: {
2294
- provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
2295
- apiKey: string;
2296
- };
2297
- };
2298
- output: {
2299
- provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
2300
- ok: true;
2301
- envVar: string;
2302
- };
2303
- outputFormat: "json";
2304
- status: 200;
2305
- };
2306
- };
2307
2307
  } & {
2308
2308
  "/llm/switch": {
2309
2309
  $post: {
2310
2310
  input: {
2311
2311
  json: {
2312
2312
  model?: string | undefined;
2313
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
2313
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
2314
2314
  apiKey?: string | undefined;
2315
2315
  maxIterations?: number | undefined;
2316
2316
  baseURL?: string | undefined;
@@ -2318,6 +2318,7 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
2318
2318
  maxOutputTokens?: number | undefined;
2319
2319
  temperature?: number | undefined;
2320
2320
  allowedMediaTypes?: string[] | undefined;
2321
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
2321
2322
  } & {
2322
2323
  sessionId?: string | undefined;
2323
2324
  };
@@ -2325,13 +2326,14 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
2325
2326
  output: {
2326
2327
  config: {
2327
2328
  model: string;
2328
- provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
2329
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
2329
2330
  maxIterations: number;
2330
2331
  baseURL?: string | undefined;
2331
2332
  maxInputTokens?: number | undefined;
2332
2333
  maxOutputTokens?: number | undefined;
2333
2334
  temperature?: number | undefined;
2334
2335
  allowedMediaTypes?: string[] | undefined;
2336
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
2335
2337
  hasApiKey?: boolean | undefined;
2336
2338
  };
2337
2339
  sessionId?: string | undefined;
@@ -2347,7 +2349,11 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
2347
2349
  output: {
2348
2350
  models: {
2349
2351
  name: string;
2350
- baseURL: string;
2352
+ provider: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
2353
+ apiKey?: string | undefined | undefined;
2354
+ baseURL?: string | undefined | undefined;
2355
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined | undefined;
2356
+ filePath?: string | undefined | undefined;
2351
2357
  displayName?: string | undefined | undefined;
2352
2358
  maxInputTokens?: number | undefined | undefined;
2353
2359
  maxOutputTokens?: number | undefined | undefined;
@@ -2363,7 +2369,11 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
2363
2369
  input: {
2364
2370
  json: {
2365
2371
  name: string;
2366
- baseURL: string;
2372
+ provider?: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
2373
+ apiKey?: string | undefined;
2374
+ baseURL?: string | undefined;
2375
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
2376
+ filePath?: string | undefined;
2367
2377
  displayName?: string | undefined;
2368
2378
  maxInputTokens?: number | undefined;
2369
2379
  maxOutputTokens?: number | undefined;
@@ -2372,7 +2382,11 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
2372
2382
  output: {
2373
2383
  model: {
2374
2384
  name: string;
2375
- baseURL: string;
2385
+ provider: "openai-compatible" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
2386
+ apiKey?: string | undefined | undefined;
2387
+ baseURL?: string | undefined | undefined;
2388
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined | undefined;
2389
+ filePath?: string | undefined | undefined;
2376
2390
  displayName?: string | undefined | undefined;
2377
2391
  maxInputTokens?: number | undefined | undefined;
2378
2392
  maxOutputTokens?: number | undefined | undefined;
@@ -2432,12 +2446,9 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
2432
2446
  sessionId: string;
2433
2447
  };
2434
2448
  };
2435
- output: {
2436
- sessionId: string;
2437
- accepted: true;
2438
- };
2439
- outputFormat: "json";
2440
- status: 202;
2449
+ output: {};
2450
+ outputFormat: string;
2451
+ status: 400;
2441
2452
  } | {
2442
2453
  input: {
2443
2454
  json: {
@@ -2457,9 +2468,12 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
2457
2468
  sessionId: string;
2458
2469
  };
2459
2470
  };
2460
- output: {};
2461
- outputFormat: string;
2462
- status: 400;
2471
+ output: {
2472
+ sessionId: string;
2473
+ accepted: true;
2474
+ };
2475
+ outputFormat: "json";
2476
+ status: 202;
2463
2477
  };
2464
2478
  };
2465
2479
  } & {
@@ -2516,7 +2530,7 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
2516
2530
  totalTokens?: number | undefined;
2517
2531
  } | undefined;
2518
2532
  model?: string | undefined;
2519
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
2533
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
2520
2534
  };
2521
2535
  outputFormat: "json";
2522
2536
  status: 200;
@@ -2659,8 +2673,8 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
2659
2673
  })[];
2660
2674
  messageId: string;
2661
2675
  metadata?: Record<string, any> | undefined;
2662
- contextId?: string | undefined;
2663
2676
  taskId?: string | undefined;
2677
+ contextId?: string | undefined;
2664
2678
  extensions?: string[] | undefined;
2665
2679
  referenceTaskIds?: string[] | undefined;
2666
2680
  };
@@ -2715,8 +2729,8 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
2715
2729
  metadata?: {
2716
2730
  [x: string]: any;
2717
2731
  } | undefined;
2718
- contextId?: string | undefined;
2719
2732
  taskId?: string | undefined;
2733
+ contextId?: string | undefined;
2720
2734
  extensions?: string[] | undefined;
2721
2735
  referenceTaskIds?: string[] | undefined;
2722
2736
  } | undefined;
@@ -2764,8 +2778,8 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
2764
2778
  metadata?: {
2765
2779
  [x: string]: any;
2766
2780
  } | undefined;
2767
- contextId?: string | undefined;
2768
2781
  taskId?: string | undefined;
2782
+ contextId?: string | undefined;
2769
2783
  extensions?: string[] | undefined;
2770
2784
  referenceTaskIds?: string[] | undefined;
2771
2785
  }[] | undefined;
@@ -2829,8 +2843,8 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
2829
2843
  metadata?: {
2830
2844
  [x: string]: any;
2831
2845
  } | undefined;
2832
- contextId?: string | undefined;
2833
2846
  taskId?: string | undefined;
2847
+ contextId?: string | undefined;
2834
2848
  extensions?: string[] | undefined;
2835
2849
  referenceTaskIds?: string[] | undefined;
2836
2850
  } | undefined;
@@ -2878,8 +2892,8 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
2878
2892
  metadata?: {
2879
2893
  [x: string]: any;
2880
2894
  } | undefined;
2881
- contextId?: string | undefined;
2882
2895
  taskId?: string | undefined;
2896
+ contextId?: string | undefined;
2883
2897
  extensions?: string[] | undefined;
2884
2898
  referenceTaskIds?: string[] | undefined;
2885
2899
  }[] | undefined;
@@ -2949,8 +2963,8 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
2949
2963
  metadata?: {
2950
2964
  [x: string]: any;
2951
2965
  } | undefined;
2952
- contextId?: string | undefined;
2953
2966
  taskId?: string | undefined;
2967
+ contextId?: string | undefined;
2954
2968
  extensions?: string[] | undefined;
2955
2969
  referenceTaskIds?: string[] | undefined;
2956
2970
  } | undefined;
@@ -2998,8 +3012,8 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
2998
3012
  metadata?: {
2999
3013
  [x: string]: any;
3000
3014
  } | undefined;
3001
- contextId?: string | undefined;
3002
3015
  taskId?: string | undefined;
3016
+ contextId?: string | undefined;
3003
3017
  extensions?: string[] | undefined;
3004
3018
  referenceTaskIds?: string[] | undefined;
3005
3019
  }[] | undefined;
@@ -3065,8 +3079,8 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
3065
3079
  metadata?: {
3066
3080
  [x: string]: any;
3067
3081
  } | undefined;
3068
- contextId?: string | undefined;
3069
3082
  taskId?: string | undefined;
3083
+ contextId?: string | undefined;
3070
3084
  extensions?: string[] | undefined;
3071
3085
  referenceTaskIds?: string[] | undefined;
3072
3086
  } | undefined;
@@ -3114,8 +3128,8 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
3114
3128
  metadata?: {
3115
3129
  [x: string]: any;
3116
3130
  } | undefined;
3117
- contextId?: string | undefined;
3118
3131
  taskId?: string | undefined;
3132
+ contextId?: string | undefined;
3119
3133
  extensions?: string[] | undefined;
3120
3134
  referenceTaskIds?: string[] | undefined;
3121
3135
  }[] | undefined;