@dexto/server 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.
Files changed (109) hide show
  1. package/dist/approval/manual-approval-handler.cjs +23 -15
  2. package/dist/approval/manual-approval-handler.d.ts.map +1 -1
  3. package/dist/approval/manual-approval-handler.js +23 -15
  4. package/dist/events/webhook-subscriber.cjs +1 -1
  5. package/dist/events/webhook-subscriber.d.ts.map +1 -1
  6. package/dist/events/webhook-subscriber.js +1 -1
  7. package/dist/hono/__tests__/test-fixtures.cjs +3 -3
  8. package/dist/hono/__tests__/test-fixtures.d.ts.map +1 -1
  9. package/dist/hono/__tests__/test-fixtures.js +3 -3
  10. package/dist/hono/index.cjs +46 -5
  11. package/dist/hono/index.d.ts +928 -584
  12. package/dist/hono/index.d.ts.map +1 -1
  13. package/dist/hono/index.js +46 -5
  14. package/dist/hono/middleware/error.d.ts.map +1 -1
  15. package/dist/hono/routes/a2a-jsonrpc.cjs +3 -3
  16. package/dist/hono/routes/a2a-jsonrpc.d.ts +4 -1
  17. package/dist/hono/routes/a2a-jsonrpc.d.ts.map +1 -1
  18. package/dist/hono/routes/a2a-jsonrpc.js +3 -3
  19. package/dist/hono/routes/a2a-tasks.cjs +5 -5
  20. package/dist/hono/routes/a2a-tasks.d.ts +13 -10
  21. package/dist/hono/routes/a2a-tasks.d.ts.map +1 -1
  22. package/dist/hono/routes/a2a-tasks.js +5 -5
  23. package/dist/hono/routes/agents.cjs +30 -42
  24. package/dist/hono/routes/agents.d.ts +7 -401
  25. package/dist/hono/routes/agents.d.ts.map +1 -1
  26. package/dist/hono/routes/agents.js +32 -42
  27. package/dist/hono/routes/approvals.cjs +53 -2
  28. package/dist/hono/routes/approvals.d.ts +29 -1
  29. package/dist/hono/routes/approvals.d.ts.map +1 -1
  30. package/dist/hono/routes/approvals.js +53 -2
  31. package/dist/hono/routes/discovery.cjs +67 -0
  32. package/dist/hono/routes/discovery.d.ts +44 -0
  33. package/dist/hono/routes/discovery.d.ts.map +1 -0
  34. package/dist/hono/routes/discovery.js +43 -0
  35. package/dist/hono/routes/greeting.cjs +2 -2
  36. package/dist/hono/routes/greeting.d.ts +2 -2
  37. package/dist/hono/routes/greeting.d.ts.map +1 -1
  38. package/dist/hono/routes/greeting.js +2 -2
  39. package/dist/hono/routes/health.d.ts +2 -2
  40. package/dist/hono/routes/health.d.ts.map +1 -1
  41. package/dist/hono/routes/key.cjs +110 -0
  42. package/dist/hono/routes/key.d.ts +48 -0
  43. package/dist/hono/routes/key.d.ts.map +1 -0
  44. package/dist/hono/routes/key.js +90 -0
  45. package/dist/hono/routes/llm.cjs +119 -62
  46. package/dist/hono/routes/llm.d.ts +242 -42
  47. package/dist/hono/routes/llm.d.ts.map +1 -1
  48. package/dist/hono/routes/llm.js +118 -58
  49. package/dist/hono/routes/mcp.cjs +16 -12
  50. package/dist/hono/routes/mcp.d.ts +6 -3
  51. package/dist/hono/routes/mcp.d.ts.map +1 -1
  52. package/dist/hono/routes/mcp.js +17 -13
  53. package/dist/hono/routes/memory.cjs +5 -5
  54. package/dist/hono/routes/memory.d.ts +5 -2
  55. package/dist/hono/routes/memory.d.ts.map +1 -1
  56. package/dist/hono/routes/memory.js +5 -5
  57. package/dist/hono/routes/messages.cjs +58 -66
  58. package/dist/hono/routes/messages.d.ts +99 -55
  59. package/dist/hono/routes/messages.d.ts.map +1 -1
  60. package/dist/hono/routes/messages.js +59 -67
  61. package/dist/hono/routes/models.cjs +319 -0
  62. package/dist/hono/routes/models.d.ts +107 -0
  63. package/dist/hono/routes/models.d.ts.map +1 -0
  64. package/dist/hono/routes/models.js +305 -0
  65. package/dist/hono/routes/openrouter.cjs +153 -0
  66. package/dist/hono/routes/openrouter.d.ts +54 -0
  67. package/dist/hono/routes/openrouter.d.ts.map +1 -0
  68. package/dist/hono/routes/openrouter.js +134 -0
  69. package/dist/hono/routes/prompts.cjs +5 -5
  70. package/dist/hono/routes/prompts.d.ts +10 -7
  71. package/dist/hono/routes/prompts.d.ts.map +1 -1
  72. package/dist/hono/routes/prompts.js +5 -5
  73. package/dist/hono/routes/queue.cjs +202 -0
  74. package/dist/hono/routes/queue.d.ts +174 -0
  75. package/dist/hono/routes/queue.d.ts.map +1 -0
  76. package/dist/hono/routes/queue.js +178 -0
  77. package/dist/hono/routes/resources.cjs +3 -3
  78. package/dist/hono/routes/resources.d.ts +3 -3
  79. package/dist/hono/routes/resources.d.ts.map +1 -1
  80. package/dist/hono/routes/resources.js +3 -3
  81. package/dist/hono/routes/search.cjs +2 -2
  82. package/dist/hono/routes/search.d.ts +39 -10
  83. package/dist/hono/routes/search.d.ts.map +1 -1
  84. package/dist/hono/routes/search.js +2 -2
  85. package/dist/hono/routes/sessions.cjs +74 -20
  86. package/dist/hono/routes/sessions.d.ts +25 -4
  87. package/dist/hono/routes/sessions.d.ts.map +1 -1
  88. package/dist/hono/routes/sessions.js +74 -20
  89. package/dist/hono/routes/tools.cjs +126 -0
  90. package/dist/hono/routes/tools.d.ts +42 -0
  91. package/dist/hono/routes/tools.d.ts.map +1 -0
  92. package/dist/hono/routes/tools.js +102 -0
  93. package/dist/hono/routes/webhooks.cjs +4 -4
  94. package/dist/hono/routes/webhooks.d.ts +4 -1
  95. package/dist/hono/routes/webhooks.d.ts.map +1 -1
  96. package/dist/hono/routes/webhooks.js +4 -4
  97. package/dist/hono/schemas/responses.cjs +24 -5
  98. package/dist/hono/schemas/responses.d.ts +838 -120
  99. package/dist/hono/schemas/responses.d.ts.map +1 -1
  100. package/dist/hono/schemas/responses.js +24 -10
  101. package/dist/hono/start-server.cjs +102 -0
  102. package/dist/hono/start-server.d.ts +61 -0
  103. package/dist/hono/start-server.d.ts.map +1 -0
  104. package/dist/hono/start-server.js +78 -0
  105. package/dist/index.cjs +2 -0
  106. package/dist/index.d.ts +1 -0
  107. package/dist/index.d.ts.map +1 -1
  108. package/dist/index.js +1 -0
  109. package/package.json +5 -4
@@ -68,6 +68,64 @@ export declare const FilePartSchema: z.ZodObject<{
68
68
  data: string;
69
69
  filename?: string | undefined;
70
70
  }>;
71
+ export declare const UIResourcePartSchema: z.ZodObject<{
72
+ type: z.ZodLiteral<"ui-resource">;
73
+ uri: z.ZodString;
74
+ mimeType: z.ZodString;
75
+ content: z.ZodOptional<z.ZodString>;
76
+ blob: z.ZodOptional<z.ZodString>;
77
+ metadata: z.ZodOptional<z.ZodObject<{
78
+ title: z.ZodOptional<z.ZodString>;
79
+ preferredSize: z.ZodOptional<z.ZodObject<{
80
+ width: z.ZodNumber;
81
+ height: z.ZodNumber;
82
+ }, "strict", z.ZodTypeAny, {
83
+ width: number;
84
+ height: number;
85
+ }, {
86
+ width: number;
87
+ height: number;
88
+ }>>;
89
+ }, "strict", z.ZodTypeAny, {
90
+ title?: string | undefined;
91
+ preferredSize?: {
92
+ width: number;
93
+ height: number;
94
+ } | undefined;
95
+ }, {
96
+ title?: string | undefined;
97
+ preferredSize?: {
98
+ width: number;
99
+ height: number;
100
+ } | undefined;
101
+ }>>;
102
+ }, "strict", z.ZodTypeAny, {
103
+ type: "ui-resource";
104
+ mimeType: string;
105
+ uri: string;
106
+ content?: string | undefined;
107
+ blob?: string | undefined;
108
+ metadata?: {
109
+ title?: string | undefined;
110
+ preferredSize?: {
111
+ width: number;
112
+ height: number;
113
+ } | undefined;
114
+ } | undefined;
115
+ }, {
116
+ type: "ui-resource";
117
+ mimeType: string;
118
+ uri: string;
119
+ content?: string | undefined;
120
+ blob?: string | undefined;
121
+ metadata?: {
122
+ title?: string | undefined;
123
+ preferredSize?: {
124
+ width: number;
125
+ height: number;
126
+ } | undefined;
127
+ } | undefined;
128
+ }>;
71
129
  export declare const ContentPartSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
72
130
  type: z.ZodLiteral<"text">;
73
131
  text: z.ZodString;
@@ -104,6 +162,63 @@ export declare const ContentPartSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
104
162
  mimeType: string;
105
163
  data: string;
106
164
  filename?: string | undefined;
165
+ }>, z.ZodObject<{
166
+ type: z.ZodLiteral<"ui-resource">;
167
+ uri: z.ZodString;
168
+ mimeType: z.ZodString;
169
+ content: z.ZodOptional<z.ZodString>;
170
+ blob: z.ZodOptional<z.ZodString>;
171
+ metadata: z.ZodOptional<z.ZodObject<{
172
+ title: z.ZodOptional<z.ZodString>;
173
+ preferredSize: z.ZodOptional<z.ZodObject<{
174
+ width: z.ZodNumber;
175
+ height: z.ZodNumber;
176
+ }, "strict", z.ZodTypeAny, {
177
+ width: number;
178
+ height: number;
179
+ }, {
180
+ width: number;
181
+ height: number;
182
+ }>>;
183
+ }, "strict", z.ZodTypeAny, {
184
+ title?: string | undefined;
185
+ preferredSize?: {
186
+ width: number;
187
+ height: number;
188
+ } | undefined;
189
+ }, {
190
+ title?: string | undefined;
191
+ preferredSize?: {
192
+ width: number;
193
+ height: number;
194
+ } | undefined;
195
+ }>>;
196
+ }, "strict", z.ZodTypeAny, {
197
+ type: "ui-resource";
198
+ mimeType: string;
199
+ uri: string;
200
+ content?: string | undefined;
201
+ blob?: string | undefined;
202
+ metadata?: {
203
+ title?: string | undefined;
204
+ preferredSize?: {
205
+ width: number;
206
+ height: number;
207
+ } | undefined;
208
+ } | undefined;
209
+ }, {
210
+ type: "ui-resource";
211
+ mimeType: string;
212
+ uri: string;
213
+ content?: string | undefined;
214
+ blob?: string | undefined;
215
+ metadata?: {
216
+ title?: string | undefined;
217
+ preferredSize?: {
218
+ width: number;
219
+ height: number;
220
+ } | undefined;
221
+ } | undefined;
107
222
  }>]>;
108
223
  export declare const ToolCallSchema: z.ZodObject<{
109
224
  id: z.ZodString;
@@ -189,6 +304,63 @@ export declare const InternalMessageSchema: z.ZodObject<{
189
304
  mimeType: string;
190
305
  data: string;
191
306
  filename?: string | undefined;
307
+ }>, z.ZodObject<{
308
+ type: z.ZodLiteral<"ui-resource">;
309
+ uri: z.ZodString;
310
+ mimeType: z.ZodString;
311
+ content: z.ZodOptional<z.ZodString>;
312
+ blob: z.ZodOptional<z.ZodString>;
313
+ metadata: z.ZodOptional<z.ZodObject<{
314
+ title: z.ZodOptional<z.ZodString>;
315
+ preferredSize: z.ZodOptional<z.ZodObject<{
316
+ width: z.ZodNumber;
317
+ height: z.ZodNumber;
318
+ }, "strict", z.ZodTypeAny, {
319
+ width: number;
320
+ height: number;
321
+ }, {
322
+ width: number;
323
+ height: number;
324
+ }>>;
325
+ }, "strict", z.ZodTypeAny, {
326
+ title?: string | undefined;
327
+ preferredSize?: {
328
+ width: number;
329
+ height: number;
330
+ } | undefined;
331
+ }, {
332
+ title?: string | undefined;
333
+ preferredSize?: {
334
+ width: number;
335
+ height: number;
336
+ } | undefined;
337
+ }>>;
338
+ }, "strict", z.ZodTypeAny, {
339
+ type: "ui-resource";
340
+ mimeType: string;
341
+ uri: string;
342
+ content?: string | undefined;
343
+ blob?: string | undefined;
344
+ metadata?: {
345
+ title?: string | undefined;
346
+ preferredSize?: {
347
+ width: number;
348
+ height: number;
349
+ } | undefined;
350
+ } | undefined;
351
+ }, {
352
+ type: "ui-resource";
353
+ mimeType: string;
354
+ uri: string;
355
+ content?: string | undefined;
356
+ blob?: string | undefined;
357
+ metadata?: {
358
+ title?: string | undefined;
359
+ preferredSize?: {
360
+ width: number;
361
+ height: number;
362
+ } | undefined;
363
+ } | undefined;
192
364
  }>]>, "many">]>;
193
365
  reasoning: z.ZodOptional<z.ZodString>;
194
366
  tokenUsage: z.ZodOptional<z.ZodObject<{
@@ -208,8 +380,7 @@ export declare const InternalMessageSchema: z.ZodObject<{
208
380
  totalTokens?: number | undefined;
209
381
  }>>;
210
382
  model: z.ZodOptional<z.ZodString>;
211
- provider: z.ZodOptional<z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere"]>>;
212
- router: z.ZodOptional<z.ZodEnum<["vercel", "in-built"]>>;
383
+ provider: z.ZodOptional<z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere", "openrouter", "litellm", "glama", "vertex", "bedrock", "local", "ollama"]>>;
213
384
  toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
214
385
  id: z.ZodString;
215
386
  type: z.ZodLiteral<"function">;
@@ -240,6 +411,7 @@ export declare const InternalMessageSchema: z.ZodObject<{
240
411
  }>, "many">>;
241
412
  toolCallId: z.ZodOptional<z.ZodString>;
242
413
  name: z.ZodOptional<z.ZodString>;
414
+ success: z.ZodOptional<z.ZodBoolean>;
243
415
  }, "strict", z.ZodTypeAny, {
244
416
  content: string | ({
245
417
  type: "text";
@@ -253,6 +425,19 @@ export declare const InternalMessageSchema: z.ZodObject<{
253
425
  mimeType: string;
254
426
  data: string;
255
427
  filename?: string | undefined;
428
+ } | {
429
+ type: "ui-resource";
430
+ mimeType: string;
431
+ uri: string;
432
+ content?: string | undefined;
433
+ blob?: string | undefined;
434
+ metadata?: {
435
+ title?: string | undefined;
436
+ preferredSize?: {
437
+ width: number;
438
+ height: number;
439
+ } | undefined;
440
+ } | undefined;
256
441
  })[] | null;
257
442
  role: "system" | "user" | "assistant" | "tool";
258
443
  id?: string | undefined;
@@ -266,8 +451,7 @@ export declare const InternalMessageSchema: z.ZodObject<{
266
451
  totalTokens?: number | undefined;
267
452
  } | undefined;
268
453
  model?: string | undefined;
269
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
270
- router?: "vercel" | "in-built" | undefined;
454
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
271
455
  toolCalls?: {
272
456
  function: {
273
457
  name: string;
@@ -277,6 +461,7 @@ export declare const InternalMessageSchema: z.ZodObject<{
277
461
  id: string;
278
462
  }[] | undefined;
279
463
  toolCallId?: string | undefined;
464
+ success?: boolean | undefined;
280
465
  }, {
281
466
  content: string | ({
282
467
  type: "text";
@@ -290,6 +475,19 @@ export declare const InternalMessageSchema: z.ZodObject<{
290
475
  mimeType: string;
291
476
  data: string;
292
477
  filename?: string | undefined;
478
+ } | {
479
+ type: "ui-resource";
480
+ mimeType: string;
481
+ uri: string;
482
+ content?: string | undefined;
483
+ blob?: string | undefined;
484
+ metadata?: {
485
+ title?: string | undefined;
486
+ preferredSize?: {
487
+ width: number;
488
+ height: number;
489
+ } | undefined;
490
+ } | undefined;
293
491
  })[] | null;
294
492
  role: "system" | "user" | "assistant" | "tool";
295
493
  id?: string | undefined;
@@ -303,8 +501,7 @@ export declare const InternalMessageSchema: z.ZodObject<{
303
501
  totalTokens?: number | undefined;
304
502
  } | undefined;
305
503
  model?: string | undefined;
306
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
307
- router?: "vercel" | "in-built" | undefined;
504
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
308
505
  toolCalls?: {
309
506
  function: {
310
507
  name: string;
@@ -314,6 +511,7 @@ export declare const InternalMessageSchema: z.ZodObject<{
314
511
  id: string;
315
512
  }[] | undefined;
316
513
  toolCallId?: string | undefined;
514
+ success?: boolean | undefined;
317
515
  }>;
318
516
  export type TextPart = z.output<typeof TextPartSchema>;
319
517
  export type ImagePart = z.output<typeof ImagePartSchema>;
@@ -323,11 +521,10 @@ export type ToolCall = z.output<typeof ToolCallSchema>;
323
521
  export type TokenUsage = z.output<typeof TokenUsageSchema>;
324
522
  export type InternalMessage = z.output<typeof InternalMessageSchema>;
325
523
  export declare const LLMConfigResponseSchema: z.ZodObject<Omit<{
326
- provider: z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere"]>;
524
+ provider: z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere", "openrouter", "litellm", "glama", "vertex", "bedrock", "local", "ollama"]>;
327
525
  model: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
328
- apiKey: z.ZodEffects<z.ZodString, string, string>;
526
+ apiKey: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
329
527
  maxIterations: z.ZodDefault<z.ZodNumber>;
330
- router: z.ZodDefault<z.ZodEnum<["vercel", "in-built"]>>;
331
528
  baseURL: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string | undefined, string>>;
332
529
  maxInputTokens: z.ZodOptional<z.ZodNumber>;
333
530
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
@@ -337,8 +534,7 @@ export declare const LLMConfigResponseSchema: z.ZodObject<Omit<{
337
534
  hasApiKey: z.ZodOptional<z.ZodBoolean>;
338
535
  }, "strict", z.ZodTypeAny, {
339
536
  model: string;
340
- provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
341
- router: "vercel" | "in-built";
537
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
342
538
  maxIterations: number;
343
539
  baseURL?: string | undefined;
344
540
  maxInputTokens?: number | undefined;
@@ -348,8 +544,7 @@ export declare const LLMConfigResponseSchema: z.ZodObject<Omit<{
348
544
  hasApiKey?: boolean | undefined;
349
545
  }, {
350
546
  model: string;
351
- provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
352
- router?: "vercel" | "in-built" | undefined;
547
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
353
548
  maxIterations?: number | undefined;
354
549
  baseURL?: string | undefined;
355
550
  maxInputTokens?: number | undefined;
@@ -359,32 +554,29 @@ export declare const LLMConfigResponseSchema: z.ZodObject<Omit<{
359
554
  hasApiKey?: boolean | undefined;
360
555
  }>;
361
556
  export declare const LLMConfigSchema: z.ZodObject<{
362
- provider: z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere"]>;
557
+ provider: z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere", "openrouter", "litellm", "glama", "vertex", "bedrock", "local", "ollama"]>;
363
558
  model: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
364
- apiKey: z.ZodEffects<z.ZodString, string, string>;
559
+ apiKey: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
365
560
  maxIterations: z.ZodDefault<z.ZodNumber>;
366
- router: z.ZodDefault<z.ZodEnum<["vercel", "in-built"]>>;
367
561
  baseURL: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string | undefined, string>>;
368
562
  maxInputTokens: z.ZodOptional<z.ZodNumber>;
369
563
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
370
564
  temperature: z.ZodOptional<z.ZodNumber>;
371
565
  allowedMediaTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
372
566
  }, "strict", z.ZodTypeAny, {
373
- apiKey: string;
374
567
  model: string;
375
- provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
376
- router: "vercel" | "in-built";
568
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
377
569
  maxIterations: number;
570
+ apiKey?: string | undefined;
378
571
  baseURL?: string | undefined;
379
572
  maxInputTokens?: number | undefined;
380
573
  maxOutputTokens?: number | undefined;
381
574
  temperature?: number | undefined;
382
575
  allowedMediaTypes?: string[] | undefined;
383
576
  }, {
384
- apiKey: string;
385
577
  model: string;
386
- provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
387
- router?: "vercel" | "in-built" | undefined;
578
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
579
+ apiKey?: string | undefined;
388
580
  maxIterations?: number | undefined;
389
581
  baseURL?: string | undefined;
390
582
  maxInputTokens?: number | undefined;
@@ -459,6 +651,63 @@ export declare const SearchResultSchema: z.ZodObject<{
459
651
  mimeType: string;
460
652
  data: string;
461
653
  filename?: string | undefined;
654
+ }>, z.ZodObject<{
655
+ type: z.ZodLiteral<"ui-resource">;
656
+ uri: z.ZodString;
657
+ mimeType: z.ZodString;
658
+ content: z.ZodOptional<z.ZodString>;
659
+ blob: z.ZodOptional<z.ZodString>;
660
+ metadata: z.ZodOptional<z.ZodObject<{
661
+ title: z.ZodOptional<z.ZodString>;
662
+ preferredSize: z.ZodOptional<z.ZodObject<{
663
+ width: z.ZodNumber;
664
+ height: z.ZodNumber;
665
+ }, "strict", z.ZodTypeAny, {
666
+ width: number;
667
+ height: number;
668
+ }, {
669
+ width: number;
670
+ height: number;
671
+ }>>;
672
+ }, "strict", z.ZodTypeAny, {
673
+ title?: string | undefined;
674
+ preferredSize?: {
675
+ width: number;
676
+ height: number;
677
+ } | undefined;
678
+ }, {
679
+ title?: string | undefined;
680
+ preferredSize?: {
681
+ width: number;
682
+ height: number;
683
+ } | undefined;
684
+ }>>;
685
+ }, "strict", z.ZodTypeAny, {
686
+ type: "ui-resource";
687
+ mimeType: string;
688
+ uri: string;
689
+ content?: string | undefined;
690
+ blob?: string | undefined;
691
+ metadata?: {
692
+ title?: string | undefined;
693
+ preferredSize?: {
694
+ width: number;
695
+ height: number;
696
+ } | undefined;
697
+ } | undefined;
698
+ }, {
699
+ type: "ui-resource";
700
+ mimeType: string;
701
+ uri: string;
702
+ content?: string | undefined;
703
+ blob?: string | undefined;
704
+ metadata?: {
705
+ title?: string | undefined;
706
+ preferredSize?: {
707
+ width: number;
708
+ height: number;
709
+ } | undefined;
710
+ } | undefined;
462
711
  }>]>, "many">]>;
463
712
  reasoning: z.ZodOptional<z.ZodString>;
464
713
  tokenUsage: z.ZodOptional<z.ZodObject<{
@@ -478,8 +727,7 @@ export declare const SearchResultSchema: z.ZodObject<{
478
727
  totalTokens?: number | undefined;
479
728
  }>>;
480
729
  model: z.ZodOptional<z.ZodString>;
481
- provider: z.ZodOptional<z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere"]>>;
482
- router: z.ZodOptional<z.ZodEnum<["vercel", "in-built"]>>;
730
+ provider: z.ZodOptional<z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere", "openrouter", "litellm", "glama", "vertex", "bedrock", "local", "ollama"]>>;
483
731
  toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
484
732
  id: z.ZodString;
485
733
  type: z.ZodLiteral<"function">;
@@ -510,6 +758,7 @@ export declare const SearchResultSchema: z.ZodObject<{
510
758
  }>, "many">>;
511
759
  toolCallId: z.ZodOptional<z.ZodString>;
512
760
  name: z.ZodOptional<z.ZodString>;
761
+ success: z.ZodOptional<z.ZodBoolean>;
513
762
  }, "strict", z.ZodTypeAny, {
514
763
  content: string | ({
515
764
  type: "text";
@@ -523,6 +772,19 @@ export declare const SearchResultSchema: z.ZodObject<{
523
772
  mimeType: string;
524
773
  data: string;
525
774
  filename?: string | undefined;
775
+ } | {
776
+ type: "ui-resource";
777
+ mimeType: string;
778
+ uri: string;
779
+ content?: string | undefined;
780
+ blob?: string | undefined;
781
+ metadata?: {
782
+ title?: string | undefined;
783
+ preferredSize?: {
784
+ width: number;
785
+ height: number;
786
+ } | undefined;
787
+ } | undefined;
526
788
  })[] | null;
527
789
  role: "system" | "user" | "assistant" | "tool";
528
790
  id?: string | undefined;
@@ -536,8 +798,7 @@ export declare const SearchResultSchema: z.ZodObject<{
536
798
  totalTokens?: number | undefined;
537
799
  } | undefined;
538
800
  model?: string | undefined;
539
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
540
- router?: "vercel" | "in-built" | undefined;
801
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
541
802
  toolCalls?: {
542
803
  function: {
543
804
  name: string;
@@ -547,6 +808,7 @@ export declare const SearchResultSchema: z.ZodObject<{
547
808
  id: string;
548
809
  }[] | undefined;
549
810
  toolCallId?: string | undefined;
811
+ success?: boolean | undefined;
550
812
  }, {
551
813
  content: string | ({
552
814
  type: "text";
@@ -560,6 +822,19 @@ export declare const SearchResultSchema: z.ZodObject<{
560
822
  mimeType: string;
561
823
  data: string;
562
824
  filename?: string | undefined;
825
+ } | {
826
+ type: "ui-resource";
827
+ mimeType: string;
828
+ uri: string;
829
+ content?: string | undefined;
830
+ blob?: string | undefined;
831
+ metadata?: {
832
+ title?: string | undefined;
833
+ preferredSize?: {
834
+ width: number;
835
+ height: number;
836
+ } | undefined;
837
+ } | undefined;
563
838
  })[] | null;
564
839
  role: "system" | "user" | "assistant" | "tool";
565
840
  id?: string | undefined;
@@ -573,8 +848,7 @@ export declare const SearchResultSchema: z.ZodObject<{
573
848
  totalTokens?: number | undefined;
574
849
  } | undefined;
575
850
  model?: string | undefined;
576
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
577
- router?: "vercel" | "in-built" | undefined;
851
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
578
852
  toolCalls?: {
579
853
  function: {
580
854
  name: string;
@@ -584,6 +858,7 @@ export declare const SearchResultSchema: z.ZodObject<{
584
858
  id: string;
585
859
  }[] | undefined;
586
860
  toolCallId?: string | undefined;
861
+ success?: boolean | undefined;
587
862
  }>;
588
863
  matchedText: z.ZodString;
589
864
  context: z.ZodString;
@@ -602,6 +877,19 @@ export declare const SearchResultSchema: z.ZodObject<{
602
877
  mimeType: string;
603
878
  data: string;
604
879
  filename?: string | undefined;
880
+ } | {
881
+ type: "ui-resource";
882
+ mimeType: string;
883
+ uri: string;
884
+ content?: string | undefined;
885
+ blob?: string | undefined;
886
+ metadata?: {
887
+ title?: string | undefined;
888
+ preferredSize?: {
889
+ width: number;
890
+ height: number;
891
+ } | undefined;
892
+ } | undefined;
605
893
  })[] | null;
606
894
  role: "system" | "user" | "assistant" | "tool";
607
895
  id?: string | undefined;
@@ -615,8 +903,7 @@ export declare const SearchResultSchema: z.ZodObject<{
615
903
  totalTokens?: number | undefined;
616
904
  } | undefined;
617
905
  model?: string | undefined;
618
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
619
- router?: "vercel" | "in-built" | undefined;
906
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
620
907
  toolCalls?: {
621
908
  function: {
622
909
  name: string;
@@ -626,6 +913,7 @@ export declare const SearchResultSchema: z.ZodObject<{
626
913
  id: string;
627
914
  }[] | undefined;
628
915
  toolCallId?: string | undefined;
916
+ success?: boolean | undefined;
629
917
  };
630
918
  sessionId: string;
631
919
  matchedText: string;
@@ -645,6 +933,19 @@ export declare const SearchResultSchema: z.ZodObject<{
645
933
  mimeType: string;
646
934
  data: string;
647
935
  filename?: string | undefined;
936
+ } | {
937
+ type: "ui-resource";
938
+ mimeType: string;
939
+ uri: string;
940
+ content?: string | undefined;
941
+ blob?: string | undefined;
942
+ metadata?: {
943
+ title?: string | undefined;
944
+ preferredSize?: {
945
+ width: number;
946
+ height: number;
947
+ } | undefined;
948
+ } | undefined;
648
949
  })[] | null;
649
950
  role: "system" | "user" | "assistant" | "tool";
650
951
  id?: string | undefined;
@@ -658,8 +959,7 @@ export declare const SearchResultSchema: z.ZodObject<{
658
959
  totalTokens?: number | undefined;
659
960
  } | undefined;
660
961
  model?: string | undefined;
661
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
662
- router?: "vercel" | "in-built" | undefined;
962
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
663
963
  toolCalls?: {
664
964
  function: {
665
965
  name: string;
@@ -669,6 +969,7 @@ export declare const SearchResultSchema: z.ZodObject<{
669
969
  id: string;
670
970
  }[] | undefined;
671
971
  toolCallId?: string | undefined;
972
+ success?: boolean | undefined;
672
973
  };
673
974
  sessionId: string;
674
975
  matchedText: string;
@@ -721,6 +1022,63 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
721
1022
  mimeType: string;
722
1023
  data: string;
723
1024
  filename?: string | undefined;
1025
+ }>, z.ZodObject<{
1026
+ type: z.ZodLiteral<"ui-resource">;
1027
+ uri: z.ZodString;
1028
+ mimeType: z.ZodString;
1029
+ content: z.ZodOptional<z.ZodString>;
1030
+ blob: z.ZodOptional<z.ZodString>;
1031
+ metadata: z.ZodOptional<z.ZodObject<{
1032
+ title: z.ZodOptional<z.ZodString>;
1033
+ preferredSize: z.ZodOptional<z.ZodObject<{
1034
+ width: z.ZodNumber;
1035
+ height: z.ZodNumber;
1036
+ }, "strict", z.ZodTypeAny, {
1037
+ width: number;
1038
+ height: number;
1039
+ }, {
1040
+ width: number;
1041
+ height: number;
1042
+ }>>;
1043
+ }, "strict", z.ZodTypeAny, {
1044
+ title?: string | undefined;
1045
+ preferredSize?: {
1046
+ width: number;
1047
+ height: number;
1048
+ } | undefined;
1049
+ }, {
1050
+ title?: string | undefined;
1051
+ preferredSize?: {
1052
+ width: number;
1053
+ height: number;
1054
+ } | undefined;
1055
+ }>>;
1056
+ }, "strict", z.ZodTypeAny, {
1057
+ type: "ui-resource";
1058
+ mimeType: string;
1059
+ uri: string;
1060
+ content?: string | undefined;
1061
+ blob?: string | undefined;
1062
+ metadata?: {
1063
+ title?: string | undefined;
1064
+ preferredSize?: {
1065
+ width: number;
1066
+ height: number;
1067
+ } | undefined;
1068
+ } | undefined;
1069
+ }, {
1070
+ type: "ui-resource";
1071
+ mimeType: string;
1072
+ uri: string;
1073
+ content?: string | undefined;
1074
+ blob?: string | undefined;
1075
+ metadata?: {
1076
+ title?: string | undefined;
1077
+ preferredSize?: {
1078
+ width: number;
1079
+ height: number;
1080
+ } | undefined;
1081
+ } | undefined;
724
1082
  }>]>, "many">]>;
725
1083
  reasoning: z.ZodOptional<z.ZodString>;
726
1084
  tokenUsage: z.ZodOptional<z.ZodObject<{
@@ -740,8 +1098,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
740
1098
  totalTokens?: number | undefined;
741
1099
  }>>;
742
1100
  model: z.ZodOptional<z.ZodString>;
743
- provider: z.ZodOptional<z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere"]>>;
744
- router: z.ZodOptional<z.ZodEnum<["vercel", "in-built"]>>;
1101
+ provider: z.ZodOptional<z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere", "openrouter", "litellm", "glama", "vertex", "bedrock", "local", "ollama"]>>;
745
1102
  toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
746
1103
  id: z.ZodString;
747
1104
  type: z.ZodLiteral<"function">;
@@ -772,6 +1129,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
772
1129
  }>, "many">>;
773
1130
  toolCallId: z.ZodOptional<z.ZodString>;
774
1131
  name: z.ZodOptional<z.ZodString>;
1132
+ success: z.ZodOptional<z.ZodBoolean>;
775
1133
  }, "strict", z.ZodTypeAny, {
776
1134
  content: string | ({
777
1135
  type: "text";
@@ -785,6 +1143,19 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
785
1143
  mimeType: string;
786
1144
  data: string;
787
1145
  filename?: string | undefined;
1146
+ } | {
1147
+ type: "ui-resource";
1148
+ mimeType: string;
1149
+ uri: string;
1150
+ content?: string | undefined;
1151
+ blob?: string | undefined;
1152
+ metadata?: {
1153
+ title?: string | undefined;
1154
+ preferredSize?: {
1155
+ width: number;
1156
+ height: number;
1157
+ } | undefined;
1158
+ } | undefined;
788
1159
  })[] | null;
789
1160
  role: "system" | "user" | "assistant" | "tool";
790
1161
  id?: string | undefined;
@@ -798,8 +1169,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
798
1169
  totalTokens?: number | undefined;
799
1170
  } | undefined;
800
1171
  model?: string | undefined;
801
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
802
- router?: "vercel" | "in-built" | undefined;
1172
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
803
1173
  toolCalls?: {
804
1174
  function: {
805
1175
  name: string;
@@ -809,6 +1179,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
809
1179
  id: string;
810
1180
  }[] | undefined;
811
1181
  toolCallId?: string | undefined;
1182
+ success?: boolean | undefined;
812
1183
  }, {
813
1184
  content: string | ({
814
1185
  type: "text";
@@ -822,6 +1193,19 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
822
1193
  mimeType: string;
823
1194
  data: string;
824
1195
  filename?: string | undefined;
1196
+ } | {
1197
+ type: "ui-resource";
1198
+ mimeType: string;
1199
+ uri: string;
1200
+ content?: string | undefined;
1201
+ blob?: string | undefined;
1202
+ metadata?: {
1203
+ title?: string | undefined;
1204
+ preferredSize?: {
1205
+ width: number;
1206
+ height: number;
1207
+ } | undefined;
1208
+ } | undefined;
825
1209
  })[] | null;
826
1210
  role: "system" | "user" | "assistant" | "tool";
827
1211
  id?: string | undefined;
@@ -835,8 +1219,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
835
1219
  totalTokens?: number | undefined;
836
1220
  } | undefined;
837
1221
  model?: string | undefined;
838
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
839
- router?: "vercel" | "in-built" | undefined;
1222
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
840
1223
  toolCalls?: {
841
1224
  function: {
842
1225
  name: string;
@@ -846,6 +1229,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
846
1229
  id: string;
847
1230
  }[] | undefined;
848
1231
  toolCallId?: string | undefined;
1232
+ success?: boolean | undefined;
849
1233
  }>;
850
1234
  matchedText: z.ZodString;
851
1235
  context: z.ZodString;
@@ -864,6 +1248,19 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
864
1248
  mimeType: string;
865
1249
  data: string;
866
1250
  filename?: string | undefined;
1251
+ } | {
1252
+ type: "ui-resource";
1253
+ mimeType: string;
1254
+ uri: string;
1255
+ content?: string | undefined;
1256
+ blob?: string | undefined;
1257
+ metadata?: {
1258
+ title?: string | undefined;
1259
+ preferredSize?: {
1260
+ width: number;
1261
+ height: number;
1262
+ } | undefined;
1263
+ } | undefined;
867
1264
  })[] | null;
868
1265
  role: "system" | "user" | "assistant" | "tool";
869
1266
  id?: string | undefined;
@@ -877,8 +1274,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
877
1274
  totalTokens?: number | undefined;
878
1275
  } | undefined;
879
1276
  model?: string | undefined;
880
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
881
- router?: "vercel" | "in-built" | undefined;
1277
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
882
1278
  toolCalls?: {
883
1279
  function: {
884
1280
  name: string;
@@ -888,6 +1284,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
888
1284
  id: string;
889
1285
  }[] | undefined;
890
1286
  toolCallId?: string | undefined;
1287
+ success?: boolean | undefined;
891
1288
  };
892
1289
  sessionId: string;
893
1290
  matchedText: string;
@@ -907,6 +1304,19 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
907
1304
  mimeType: string;
908
1305
  data: string;
909
1306
  filename?: string | undefined;
1307
+ } | {
1308
+ type: "ui-resource";
1309
+ mimeType: string;
1310
+ uri: string;
1311
+ content?: string | undefined;
1312
+ blob?: string | undefined;
1313
+ metadata?: {
1314
+ title?: string | undefined;
1315
+ preferredSize?: {
1316
+ width: number;
1317
+ height: number;
1318
+ } | undefined;
1319
+ } | undefined;
910
1320
  })[] | null;
911
1321
  role: "system" | "user" | "assistant" | "tool";
912
1322
  id?: string | undefined;
@@ -920,8 +1330,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
920
1330
  totalTokens?: number | undefined;
921
1331
  } | undefined;
922
1332
  model?: string | undefined;
923
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
924
- router?: "vercel" | "in-built" | undefined;
1333
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
925
1334
  toolCalls?: {
926
1335
  function: {
927
1336
  name: string;
@@ -931,6 +1340,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
931
1340
  id: string;
932
1341
  }[] | undefined;
933
1342
  toolCallId?: string | undefined;
1343
+ success?: boolean | undefined;
934
1344
  };
935
1345
  sessionId: string;
936
1346
  matchedText: string;
@@ -952,6 +1362,11 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
952
1362
  }>;
953
1363
  }, "strict", z.ZodTypeAny, {
954
1364
  sessionId: string;
1365
+ metadata: {
1366
+ createdAt: number;
1367
+ lastActivity: number;
1368
+ messageCount: number;
1369
+ };
955
1370
  matchCount: number;
956
1371
  firstMatch: {
957
1372
  message: {
@@ -967,6 +1382,19 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
967
1382
  mimeType: string;
968
1383
  data: string;
969
1384
  filename?: string | undefined;
1385
+ } | {
1386
+ type: "ui-resource";
1387
+ mimeType: string;
1388
+ uri: string;
1389
+ content?: string | undefined;
1390
+ blob?: string | undefined;
1391
+ metadata?: {
1392
+ title?: string | undefined;
1393
+ preferredSize?: {
1394
+ width: number;
1395
+ height: number;
1396
+ } | undefined;
1397
+ } | undefined;
970
1398
  })[] | null;
971
1399
  role: "system" | "user" | "assistant" | "tool";
972
1400
  id?: string | undefined;
@@ -980,8 +1408,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
980
1408
  totalTokens?: number | undefined;
981
1409
  } | undefined;
982
1410
  model?: string | undefined;
983
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
984
- router?: "vercel" | "in-built" | undefined;
1411
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
985
1412
  toolCalls?: {
986
1413
  function: {
987
1414
  name: string;
@@ -991,19 +1418,20 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
991
1418
  id: string;
992
1419
  }[] | undefined;
993
1420
  toolCallId?: string | undefined;
1421
+ success?: boolean | undefined;
994
1422
  };
995
1423
  sessionId: string;
996
1424
  matchedText: string;
997
1425
  context: string;
998
1426
  messageIndex: number;
999
1427
  };
1428
+ }, {
1429
+ sessionId: string;
1000
1430
  metadata: {
1001
1431
  createdAt: number;
1002
1432
  lastActivity: number;
1003
1433
  messageCount: number;
1004
1434
  };
1005
- }, {
1006
- sessionId: string;
1007
1435
  matchCount: number;
1008
1436
  firstMatch: {
1009
1437
  message: {
@@ -1019,6 +1447,19 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
1019
1447
  mimeType: string;
1020
1448
  data: string;
1021
1449
  filename?: string | undefined;
1450
+ } | {
1451
+ type: "ui-resource";
1452
+ mimeType: string;
1453
+ uri: string;
1454
+ content?: string | undefined;
1455
+ blob?: string | undefined;
1456
+ metadata?: {
1457
+ title?: string | undefined;
1458
+ preferredSize?: {
1459
+ width: number;
1460
+ height: number;
1461
+ } | undefined;
1462
+ } | undefined;
1022
1463
  })[] | null;
1023
1464
  role: "system" | "user" | "assistant" | "tool";
1024
1465
  id?: string | undefined;
@@ -1032,8 +1473,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
1032
1473
  totalTokens?: number | undefined;
1033
1474
  } | undefined;
1034
1475
  model?: string | undefined;
1035
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
1036
- router?: "vercel" | "in-built" | undefined;
1476
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
1037
1477
  toolCalls?: {
1038
1478
  function: {
1039
1479
  name: string;
@@ -1043,17 +1483,13 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
1043
1483
  id: string;
1044
1484
  }[] | undefined;
1045
1485
  toolCallId?: string | undefined;
1486
+ success?: boolean | undefined;
1046
1487
  };
1047
1488
  sessionId: string;
1048
1489
  matchedText: string;
1049
1490
  context: string;
1050
1491
  messageIndex: number;
1051
1492
  };
1052
- metadata: {
1053
- createdAt: number;
1054
- lastActivity: number;
1055
- messageCount: number;
1056
- };
1057
1493
  }>;
1058
1494
  export type SessionSearchResult = z.output<typeof SessionSearchResultSchema>;
1059
1495
  export declare const MessageSearchResponseSchema: z.ZodObject<{
@@ -1099,6 +1535,63 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
1099
1535
  mimeType: string;
1100
1536
  data: string;
1101
1537
  filename?: string | undefined;
1538
+ }>, z.ZodObject<{
1539
+ type: z.ZodLiteral<"ui-resource">;
1540
+ uri: z.ZodString;
1541
+ mimeType: z.ZodString;
1542
+ content: z.ZodOptional<z.ZodString>;
1543
+ blob: z.ZodOptional<z.ZodString>;
1544
+ metadata: z.ZodOptional<z.ZodObject<{
1545
+ title: z.ZodOptional<z.ZodString>;
1546
+ preferredSize: z.ZodOptional<z.ZodObject<{
1547
+ width: z.ZodNumber;
1548
+ height: z.ZodNumber;
1549
+ }, "strict", z.ZodTypeAny, {
1550
+ width: number;
1551
+ height: number;
1552
+ }, {
1553
+ width: number;
1554
+ height: number;
1555
+ }>>;
1556
+ }, "strict", z.ZodTypeAny, {
1557
+ title?: string | undefined;
1558
+ preferredSize?: {
1559
+ width: number;
1560
+ height: number;
1561
+ } | undefined;
1562
+ }, {
1563
+ title?: string | undefined;
1564
+ preferredSize?: {
1565
+ width: number;
1566
+ height: number;
1567
+ } | undefined;
1568
+ }>>;
1569
+ }, "strict", z.ZodTypeAny, {
1570
+ type: "ui-resource";
1571
+ mimeType: string;
1572
+ uri: string;
1573
+ content?: string | undefined;
1574
+ blob?: string | undefined;
1575
+ metadata?: {
1576
+ title?: string | undefined;
1577
+ preferredSize?: {
1578
+ width: number;
1579
+ height: number;
1580
+ } | undefined;
1581
+ } | undefined;
1582
+ }, {
1583
+ type: "ui-resource";
1584
+ mimeType: string;
1585
+ uri: string;
1586
+ content?: string | undefined;
1587
+ blob?: string | undefined;
1588
+ metadata?: {
1589
+ title?: string | undefined;
1590
+ preferredSize?: {
1591
+ width: number;
1592
+ height: number;
1593
+ } | undefined;
1594
+ } | undefined;
1102
1595
  }>]>, "many">]>;
1103
1596
  reasoning: z.ZodOptional<z.ZodString>;
1104
1597
  tokenUsage: z.ZodOptional<z.ZodObject<{
@@ -1118,8 +1611,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
1118
1611
  totalTokens?: number | undefined;
1119
1612
  }>>;
1120
1613
  model: z.ZodOptional<z.ZodString>;
1121
- provider: z.ZodOptional<z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere"]>>;
1122
- router: z.ZodOptional<z.ZodEnum<["vercel", "in-built"]>>;
1614
+ provider: z.ZodOptional<z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere", "openrouter", "litellm", "glama", "vertex", "bedrock", "local", "ollama"]>>;
1123
1615
  toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1124
1616
  id: z.ZodString;
1125
1617
  type: z.ZodLiteral<"function">;
@@ -1150,6 +1642,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
1150
1642
  }>, "many">>;
1151
1643
  toolCallId: z.ZodOptional<z.ZodString>;
1152
1644
  name: z.ZodOptional<z.ZodString>;
1645
+ success: z.ZodOptional<z.ZodBoolean>;
1153
1646
  }, "strict", z.ZodTypeAny, {
1154
1647
  content: string | ({
1155
1648
  type: "text";
@@ -1163,6 +1656,19 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
1163
1656
  mimeType: string;
1164
1657
  data: string;
1165
1658
  filename?: string | undefined;
1659
+ } | {
1660
+ type: "ui-resource";
1661
+ mimeType: string;
1662
+ uri: string;
1663
+ content?: string | undefined;
1664
+ blob?: string | undefined;
1665
+ metadata?: {
1666
+ title?: string | undefined;
1667
+ preferredSize?: {
1668
+ width: number;
1669
+ height: number;
1670
+ } | undefined;
1671
+ } | undefined;
1166
1672
  })[] | null;
1167
1673
  role: "system" | "user" | "assistant" | "tool";
1168
1674
  id?: string | undefined;
@@ -1176,8 +1682,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
1176
1682
  totalTokens?: number | undefined;
1177
1683
  } | undefined;
1178
1684
  model?: string | undefined;
1179
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
1180
- router?: "vercel" | "in-built" | undefined;
1685
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
1181
1686
  toolCalls?: {
1182
1687
  function: {
1183
1688
  name: string;
@@ -1187,6 +1692,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
1187
1692
  id: string;
1188
1693
  }[] | undefined;
1189
1694
  toolCallId?: string | undefined;
1695
+ success?: boolean | undefined;
1190
1696
  }, {
1191
1697
  content: string | ({
1192
1698
  type: "text";
@@ -1200,6 +1706,19 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
1200
1706
  mimeType: string;
1201
1707
  data: string;
1202
1708
  filename?: string | undefined;
1709
+ } | {
1710
+ type: "ui-resource";
1711
+ mimeType: string;
1712
+ uri: string;
1713
+ content?: string | undefined;
1714
+ blob?: string | undefined;
1715
+ metadata?: {
1716
+ title?: string | undefined;
1717
+ preferredSize?: {
1718
+ width: number;
1719
+ height: number;
1720
+ } | undefined;
1721
+ } | undefined;
1203
1722
  })[] | null;
1204
1723
  role: "system" | "user" | "assistant" | "tool";
1205
1724
  id?: string | undefined;
@@ -1213,8 +1732,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
1213
1732
  totalTokens?: number | undefined;
1214
1733
  } | undefined;
1215
1734
  model?: string | undefined;
1216
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
1217
- router?: "vercel" | "in-built" | undefined;
1735
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
1218
1736
  toolCalls?: {
1219
1737
  function: {
1220
1738
  name: string;
@@ -1224,6 +1742,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
1224
1742
  id: string;
1225
1743
  }[] | undefined;
1226
1744
  toolCallId?: string | undefined;
1745
+ success?: boolean | undefined;
1227
1746
  }>;
1228
1747
  matchedText: z.ZodString;
1229
1748
  context: z.ZodString;
@@ -1242,6 +1761,19 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
1242
1761
  mimeType: string;
1243
1762
  data: string;
1244
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;
1245
1777
  })[] | null;
1246
1778
  role: "system" | "user" | "assistant" | "tool";
1247
1779
  id?: string | undefined;
@@ -1255,8 +1787,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
1255
1787
  totalTokens?: number | undefined;
1256
1788
  } | undefined;
1257
1789
  model?: string | undefined;
1258
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
1259
- router?: "vercel" | "in-built" | undefined;
1790
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
1260
1791
  toolCalls?: {
1261
1792
  function: {
1262
1793
  name: string;
@@ -1266,6 +1797,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
1266
1797
  id: string;
1267
1798
  }[] | undefined;
1268
1799
  toolCallId?: string | undefined;
1800
+ success?: boolean | undefined;
1269
1801
  };
1270
1802
  sessionId: string;
1271
1803
  matchedText: string;
@@ -1285,6 +1817,19 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
1285
1817
  mimeType: string;
1286
1818
  data: string;
1287
1819
  filename?: string | undefined;
1820
+ } | {
1821
+ type: "ui-resource";
1822
+ mimeType: string;
1823
+ uri: string;
1824
+ content?: string | undefined;
1825
+ blob?: string | undefined;
1826
+ metadata?: {
1827
+ title?: string | undefined;
1828
+ preferredSize?: {
1829
+ width: number;
1830
+ height: number;
1831
+ } | undefined;
1832
+ } | undefined;
1288
1833
  })[] | null;
1289
1834
  role: "system" | "user" | "assistant" | "tool";
1290
1835
  id?: string | undefined;
@@ -1298,8 +1843,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
1298
1843
  totalTokens?: number | undefined;
1299
1844
  } | undefined;
1300
1845
  model?: string | undefined;
1301
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
1302
- router?: "vercel" | "in-built" | undefined;
1846
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
1303
1847
  toolCalls?: {
1304
1848
  function: {
1305
1849
  name: string;
@@ -1309,6 +1853,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
1309
1853
  id: string;
1310
1854
  }[] | undefined;
1311
1855
  toolCallId?: string | undefined;
1856
+ success?: boolean | undefined;
1312
1857
  };
1313
1858
  sessionId: string;
1314
1859
  matchedText: string;
@@ -1334,6 +1879,19 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
1334
1879
  mimeType: string;
1335
1880
  data: string;
1336
1881
  filename?: string | undefined;
1882
+ } | {
1883
+ type: "ui-resource";
1884
+ mimeType: string;
1885
+ uri: string;
1886
+ content?: string | undefined;
1887
+ blob?: string | undefined;
1888
+ metadata?: {
1889
+ title?: string | undefined;
1890
+ preferredSize?: {
1891
+ width: number;
1892
+ height: number;
1893
+ } | undefined;
1894
+ } | undefined;
1337
1895
  })[] | null;
1338
1896
  role: "system" | "user" | "assistant" | "tool";
1339
1897
  id?: string | undefined;
@@ -1347,8 +1905,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
1347
1905
  totalTokens?: number | undefined;
1348
1906
  } | undefined;
1349
1907
  model?: string | undefined;
1350
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
1351
- router?: "vercel" | "in-built" | undefined;
1908
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
1352
1909
  toolCalls?: {
1353
1910
  function: {
1354
1911
  name: string;
@@ -1358,6 +1915,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
1358
1915
  id: string;
1359
1916
  }[] | undefined;
1360
1917
  toolCallId?: string | undefined;
1918
+ success?: boolean | undefined;
1361
1919
  };
1362
1920
  sessionId: string;
1363
1921
  matchedText: string;
@@ -1382,6 +1940,19 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
1382
1940
  mimeType: string;
1383
1941
  data: string;
1384
1942
  filename?: string | undefined;
1943
+ } | {
1944
+ type: "ui-resource";
1945
+ mimeType: string;
1946
+ uri: string;
1947
+ content?: string | undefined;
1948
+ blob?: string | undefined;
1949
+ metadata?: {
1950
+ title?: string | undefined;
1951
+ preferredSize?: {
1952
+ width: number;
1953
+ height: number;
1954
+ } | undefined;
1955
+ } | undefined;
1385
1956
  })[] | null;
1386
1957
  role: "system" | "user" | "assistant" | "tool";
1387
1958
  id?: string | undefined;
@@ -1395,8 +1966,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
1395
1966
  totalTokens?: number | undefined;
1396
1967
  } | undefined;
1397
1968
  model?: string | undefined;
1398
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
1399
- router?: "vercel" | "in-built" | undefined;
1969
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
1400
1970
  toolCalls?: {
1401
1971
  function: {
1402
1972
  name: string;
@@ -1406,6 +1976,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
1406
1976
  id: string;
1407
1977
  }[] | undefined;
1408
1978
  toolCallId?: string | undefined;
1979
+ success?: boolean | undefined;
1409
1980
  };
1410
1981
  sessionId: string;
1411
1982
  matchedText: string;
@@ -1462,6 +2033,63 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1462
2033
  mimeType: string;
1463
2034
  data: string;
1464
2035
  filename?: string | undefined;
2036
+ }>, z.ZodObject<{
2037
+ type: z.ZodLiteral<"ui-resource">;
2038
+ uri: z.ZodString;
2039
+ mimeType: z.ZodString;
2040
+ content: z.ZodOptional<z.ZodString>;
2041
+ blob: z.ZodOptional<z.ZodString>;
2042
+ metadata: z.ZodOptional<z.ZodObject<{
2043
+ title: z.ZodOptional<z.ZodString>;
2044
+ preferredSize: z.ZodOptional<z.ZodObject<{
2045
+ width: z.ZodNumber;
2046
+ height: z.ZodNumber;
2047
+ }, "strict", z.ZodTypeAny, {
2048
+ width: number;
2049
+ height: number;
2050
+ }, {
2051
+ width: number;
2052
+ height: number;
2053
+ }>>;
2054
+ }, "strict", z.ZodTypeAny, {
2055
+ title?: string | undefined;
2056
+ preferredSize?: {
2057
+ width: number;
2058
+ height: number;
2059
+ } | undefined;
2060
+ }, {
2061
+ title?: string | undefined;
2062
+ preferredSize?: {
2063
+ width: number;
2064
+ height: number;
2065
+ } | undefined;
2066
+ }>>;
2067
+ }, "strict", z.ZodTypeAny, {
2068
+ type: "ui-resource";
2069
+ mimeType: string;
2070
+ uri: string;
2071
+ content?: string | undefined;
2072
+ blob?: string | undefined;
2073
+ metadata?: {
2074
+ title?: string | undefined;
2075
+ preferredSize?: {
2076
+ width: number;
2077
+ height: number;
2078
+ } | undefined;
2079
+ } | undefined;
2080
+ }, {
2081
+ type: "ui-resource";
2082
+ mimeType: string;
2083
+ uri: string;
2084
+ content?: string | undefined;
2085
+ blob?: string | undefined;
2086
+ metadata?: {
2087
+ title?: string | undefined;
2088
+ preferredSize?: {
2089
+ width: number;
2090
+ height: number;
2091
+ } | undefined;
2092
+ } | undefined;
1465
2093
  }>]>, "many">]>;
1466
2094
  reasoning: z.ZodOptional<z.ZodString>;
1467
2095
  tokenUsage: z.ZodOptional<z.ZodObject<{
@@ -1481,8 +2109,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1481
2109
  totalTokens?: number | undefined;
1482
2110
  }>>;
1483
2111
  model: z.ZodOptional<z.ZodString>;
1484
- provider: z.ZodOptional<z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere"]>>;
1485
- router: z.ZodOptional<z.ZodEnum<["vercel", "in-built"]>>;
2112
+ provider: z.ZodOptional<z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere", "openrouter", "litellm", "glama", "vertex", "bedrock", "local", "ollama"]>>;
1486
2113
  toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1487
2114
  id: z.ZodString;
1488
2115
  type: z.ZodLiteral<"function">;
@@ -1513,6 +2140,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1513
2140
  }>, "many">>;
1514
2141
  toolCallId: z.ZodOptional<z.ZodString>;
1515
2142
  name: z.ZodOptional<z.ZodString>;
2143
+ success: z.ZodOptional<z.ZodBoolean>;
1516
2144
  }, "strict", z.ZodTypeAny, {
1517
2145
  content: string | ({
1518
2146
  type: "text";
@@ -1526,6 +2154,19 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1526
2154
  mimeType: string;
1527
2155
  data: string;
1528
2156
  filename?: string | undefined;
2157
+ } | {
2158
+ type: "ui-resource";
2159
+ mimeType: string;
2160
+ uri: string;
2161
+ content?: string | undefined;
2162
+ blob?: string | undefined;
2163
+ metadata?: {
2164
+ title?: string | undefined;
2165
+ preferredSize?: {
2166
+ width: number;
2167
+ height: number;
2168
+ } | undefined;
2169
+ } | undefined;
1529
2170
  })[] | null;
1530
2171
  role: "system" | "user" | "assistant" | "tool";
1531
2172
  id?: string | undefined;
@@ -1539,8 +2180,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1539
2180
  totalTokens?: number | undefined;
1540
2181
  } | undefined;
1541
2182
  model?: string | undefined;
1542
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
1543
- router?: "vercel" | "in-built" | undefined;
2183
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
1544
2184
  toolCalls?: {
1545
2185
  function: {
1546
2186
  name: string;
@@ -1550,6 +2190,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1550
2190
  id: string;
1551
2191
  }[] | undefined;
1552
2192
  toolCallId?: string | undefined;
2193
+ success?: boolean | undefined;
1553
2194
  }, {
1554
2195
  content: string | ({
1555
2196
  type: "text";
@@ -1563,6 +2204,19 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1563
2204
  mimeType: string;
1564
2205
  data: string;
1565
2206
  filename?: string | undefined;
2207
+ } | {
2208
+ type: "ui-resource";
2209
+ mimeType: string;
2210
+ uri: string;
2211
+ content?: string | undefined;
2212
+ blob?: string | undefined;
2213
+ metadata?: {
2214
+ title?: string | undefined;
2215
+ preferredSize?: {
2216
+ width: number;
2217
+ height: number;
2218
+ } | undefined;
2219
+ } | undefined;
1566
2220
  })[] | null;
1567
2221
  role: "system" | "user" | "assistant" | "tool";
1568
2222
  id?: string | undefined;
@@ -1576,8 +2230,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1576
2230
  totalTokens?: number | undefined;
1577
2231
  } | undefined;
1578
2232
  model?: string | undefined;
1579
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
1580
- router?: "vercel" | "in-built" | undefined;
2233
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
1581
2234
  toolCalls?: {
1582
2235
  function: {
1583
2236
  name: string;
@@ -1587,6 +2240,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1587
2240
  id: string;
1588
2241
  }[] | undefined;
1589
2242
  toolCallId?: string | undefined;
2243
+ success?: boolean | undefined;
1590
2244
  }>;
1591
2245
  matchedText: z.ZodString;
1592
2246
  context: z.ZodString;
@@ -1605,6 +2259,19 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1605
2259
  mimeType: string;
1606
2260
  data: string;
1607
2261
  filename?: string | undefined;
2262
+ } | {
2263
+ type: "ui-resource";
2264
+ mimeType: string;
2265
+ uri: string;
2266
+ content?: string | undefined;
2267
+ blob?: string | undefined;
2268
+ metadata?: {
2269
+ title?: string | undefined;
2270
+ preferredSize?: {
2271
+ width: number;
2272
+ height: number;
2273
+ } | undefined;
2274
+ } | undefined;
1608
2275
  })[] | null;
1609
2276
  role: "system" | "user" | "assistant" | "tool";
1610
2277
  id?: string | undefined;
@@ -1618,8 +2285,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1618
2285
  totalTokens?: number | undefined;
1619
2286
  } | undefined;
1620
2287
  model?: string | undefined;
1621
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
1622
- router?: "vercel" | "in-built" | undefined;
2288
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
1623
2289
  toolCalls?: {
1624
2290
  function: {
1625
2291
  name: string;
@@ -1629,6 +2295,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1629
2295
  id: string;
1630
2296
  }[] | undefined;
1631
2297
  toolCallId?: string | undefined;
2298
+ success?: boolean | undefined;
1632
2299
  };
1633
2300
  sessionId: string;
1634
2301
  matchedText: string;
@@ -1648,6 +2315,19 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1648
2315
  mimeType: string;
1649
2316
  data: string;
1650
2317
  filename?: string | undefined;
2318
+ } | {
2319
+ type: "ui-resource";
2320
+ mimeType: string;
2321
+ uri: string;
2322
+ content?: string | undefined;
2323
+ blob?: string | undefined;
2324
+ metadata?: {
2325
+ title?: string | undefined;
2326
+ preferredSize?: {
2327
+ width: number;
2328
+ height: number;
2329
+ } | undefined;
2330
+ } | undefined;
1651
2331
  })[] | null;
1652
2332
  role: "system" | "user" | "assistant" | "tool";
1653
2333
  id?: string | undefined;
@@ -1661,8 +2341,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1661
2341
  totalTokens?: number | undefined;
1662
2342
  } | undefined;
1663
2343
  model?: string | undefined;
1664
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
1665
- router?: "vercel" | "in-built" | undefined;
2344
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
1666
2345
  toolCalls?: {
1667
2346
  function: {
1668
2347
  name: string;
@@ -1672,6 +2351,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1672
2351
  id: string;
1673
2352
  }[] | undefined;
1674
2353
  toolCallId?: string | undefined;
2354
+ success?: boolean | undefined;
1675
2355
  };
1676
2356
  sessionId: string;
1677
2357
  matchedText: string;
@@ -1693,6 +2373,11 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1693
2373
  }>;
1694
2374
  }, "strict", z.ZodTypeAny, {
1695
2375
  sessionId: string;
2376
+ metadata: {
2377
+ createdAt: number;
2378
+ lastActivity: number;
2379
+ messageCount: number;
2380
+ };
1696
2381
  matchCount: number;
1697
2382
  firstMatch: {
1698
2383
  message: {
@@ -1708,6 +2393,19 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1708
2393
  mimeType: string;
1709
2394
  data: string;
1710
2395
  filename?: string | undefined;
2396
+ } | {
2397
+ type: "ui-resource";
2398
+ mimeType: string;
2399
+ uri: string;
2400
+ content?: string | undefined;
2401
+ blob?: string | undefined;
2402
+ metadata?: {
2403
+ title?: string | undefined;
2404
+ preferredSize?: {
2405
+ width: number;
2406
+ height: number;
2407
+ } | undefined;
2408
+ } | undefined;
1711
2409
  })[] | null;
1712
2410
  role: "system" | "user" | "assistant" | "tool";
1713
2411
  id?: string | undefined;
@@ -1721,8 +2419,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1721
2419
  totalTokens?: number | undefined;
1722
2420
  } | undefined;
1723
2421
  model?: string | undefined;
1724
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
1725
- router?: "vercel" | "in-built" | undefined;
2422
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
1726
2423
  toolCalls?: {
1727
2424
  function: {
1728
2425
  name: string;
@@ -1732,19 +2429,20 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1732
2429
  id: string;
1733
2430
  }[] | undefined;
1734
2431
  toolCallId?: string | undefined;
2432
+ success?: boolean | undefined;
1735
2433
  };
1736
2434
  sessionId: string;
1737
2435
  matchedText: string;
1738
2436
  context: string;
1739
2437
  messageIndex: number;
1740
2438
  };
2439
+ }, {
2440
+ sessionId: string;
1741
2441
  metadata: {
1742
2442
  createdAt: number;
1743
2443
  lastActivity: number;
1744
2444
  messageCount: number;
1745
2445
  };
1746
- }, {
1747
- sessionId: string;
1748
2446
  matchCount: number;
1749
2447
  firstMatch: {
1750
2448
  message: {
@@ -1760,6 +2458,19 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1760
2458
  mimeType: string;
1761
2459
  data: string;
1762
2460
  filename?: string | undefined;
2461
+ } | {
2462
+ type: "ui-resource";
2463
+ mimeType: string;
2464
+ uri: string;
2465
+ content?: string | undefined;
2466
+ blob?: string | undefined;
2467
+ metadata?: {
2468
+ title?: string | undefined;
2469
+ preferredSize?: {
2470
+ width: number;
2471
+ height: number;
2472
+ } | undefined;
2473
+ } | undefined;
1763
2474
  })[] | null;
1764
2475
  role: "system" | "user" | "assistant" | "tool";
1765
2476
  id?: string | undefined;
@@ -1773,8 +2484,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1773
2484
  totalTokens?: number | undefined;
1774
2485
  } | undefined;
1775
2486
  model?: string | undefined;
1776
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
1777
- router?: "vercel" | "in-built" | undefined;
2487
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
1778
2488
  toolCalls?: {
1779
2489
  function: {
1780
2490
  name: string;
@@ -1784,17 +2494,13 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1784
2494
  id: string;
1785
2495
  }[] | undefined;
1786
2496
  toolCallId?: string | undefined;
2497
+ success?: boolean | undefined;
1787
2498
  };
1788
2499
  sessionId: string;
1789
2500
  matchedText: string;
1790
2501
  context: string;
1791
2502
  messageIndex: number;
1792
2503
  };
1793
- metadata: {
1794
- createdAt: number;
1795
- lastActivity: number;
1796
- messageCount: number;
1797
- };
1798
2504
  }>, "many">;
1799
2505
  total: z.ZodNumber;
1800
2506
  hasMore: z.ZodBoolean;
@@ -1803,6 +2509,11 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1803
2509
  query: string;
1804
2510
  results: {
1805
2511
  sessionId: string;
2512
+ metadata: {
2513
+ createdAt: number;
2514
+ lastActivity: number;
2515
+ messageCount: number;
2516
+ };
1806
2517
  matchCount: number;
1807
2518
  firstMatch: {
1808
2519
  message: {
@@ -1818,6 +2529,19 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1818
2529
  mimeType: string;
1819
2530
  data: string;
1820
2531
  filename?: string | undefined;
2532
+ } | {
2533
+ type: "ui-resource";
2534
+ mimeType: string;
2535
+ uri: string;
2536
+ content?: string | undefined;
2537
+ blob?: string | undefined;
2538
+ metadata?: {
2539
+ title?: string | undefined;
2540
+ preferredSize?: {
2541
+ width: number;
2542
+ height: number;
2543
+ } | undefined;
2544
+ } | undefined;
1821
2545
  })[] | null;
1822
2546
  role: "system" | "user" | "assistant" | "tool";
1823
2547
  id?: string | undefined;
@@ -1831,8 +2555,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1831
2555
  totalTokens?: number | undefined;
1832
2556
  } | undefined;
1833
2557
  model?: string | undefined;
1834
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
1835
- router?: "vercel" | "in-built" | undefined;
2558
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
1836
2559
  toolCalls?: {
1837
2560
  function: {
1838
2561
  name: string;
@@ -1842,17 +2565,13 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1842
2565
  id: string;
1843
2566
  }[] | undefined;
1844
2567
  toolCallId?: string | undefined;
2568
+ success?: boolean | undefined;
1845
2569
  };
1846
2570
  sessionId: string;
1847
2571
  matchedText: string;
1848
2572
  context: string;
1849
2573
  messageIndex: number;
1850
2574
  };
1851
- metadata: {
1852
- createdAt: number;
1853
- lastActivity: number;
1854
- messageCount: number;
1855
- };
1856
2575
  }[];
1857
2576
  total: number;
1858
2577
  hasMore: boolean;
@@ -1860,6 +2579,11 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1860
2579
  query: string;
1861
2580
  results: {
1862
2581
  sessionId: string;
2582
+ metadata: {
2583
+ createdAt: number;
2584
+ lastActivity: number;
2585
+ messageCount: number;
2586
+ };
1863
2587
  matchCount: number;
1864
2588
  firstMatch: {
1865
2589
  message: {
@@ -1875,6 +2599,19 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1875
2599
  mimeType: string;
1876
2600
  data: string;
1877
2601
  filename?: string | undefined;
2602
+ } | {
2603
+ type: "ui-resource";
2604
+ mimeType: string;
2605
+ uri: string;
2606
+ content?: string | undefined;
2607
+ blob?: string | undefined;
2608
+ metadata?: {
2609
+ title?: string | undefined;
2610
+ preferredSize?: {
2611
+ width: number;
2612
+ height: number;
2613
+ } | undefined;
2614
+ } | undefined;
1878
2615
  })[] | null;
1879
2616
  role: "system" | "user" | "assistant" | "tool";
1880
2617
  id?: string | undefined;
@@ -1888,8 +2625,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1888
2625
  totalTokens?: number | undefined;
1889
2626
  } | undefined;
1890
2627
  model?: string | undefined;
1891
- provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
1892
- router?: "vercel" | "in-built" | undefined;
2628
+ provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
1893
2629
  toolCalls?: {
1894
2630
  function: {
1895
2631
  name: string;
@@ -1899,17 +2635,13 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
1899
2635
  id: string;
1900
2636
  }[] | undefined;
1901
2637
  toolCallId?: string | undefined;
2638
+ success?: boolean | undefined;
1902
2639
  };
1903
2640
  sessionId: string;
1904
2641
  matchedText: string;
1905
2642
  context: string;
1906
2643
  messageIndex: number;
1907
2644
  };
1908
- metadata: {
1909
- createdAt: number;
1910
- lastActivity: number;
1911
- messageCount: number;
1912
- };
1913
2645
  }[];
1914
2646
  total: number;
1915
2647
  hasMore: boolean;
@@ -1937,7 +2669,6 @@ export declare const CatalogModelInfoSchema: z.ZodObject<{
1937
2669
  maxInputTokens: z.ZodNumber;
1938
2670
  default: z.ZodOptional<z.ZodBoolean>;
1939
2671
  supportedFileTypes: z.ZodArray<z.ZodEnum<["audio", "pdf", "image"]>, "many">;
1940
- supportedRouters: z.ZodOptional<z.ZodArray<z.ZodEnum<["vercel", "in-built"]>, "many">>;
1941
2672
  displayName: z.ZodOptional<z.ZodString>;
1942
2673
  pricing: z.ZodOptional<z.ZodObject<{
1943
2674
  inputPerM: z.ZodNumber;
@@ -1966,7 +2697,6 @@ export declare const CatalogModelInfoSchema: z.ZodObject<{
1966
2697
  maxInputTokens: number;
1967
2698
  supportedFileTypes: ("image" | "audio" | "pdf")[];
1968
2699
  default?: boolean | undefined;
1969
- supportedRouters?: ("vercel" | "in-built")[] | undefined;
1970
2700
  displayName?: string | undefined;
1971
2701
  pricing?: {
1972
2702
  inputPerM: number;
@@ -1981,7 +2711,6 @@ export declare const CatalogModelInfoSchema: z.ZodObject<{
1981
2711
  maxInputTokens: number;
1982
2712
  supportedFileTypes: ("image" | "audio" | "pdf")[];
1983
2713
  default?: boolean | undefined;
1984
- supportedRouters?: ("vercel" | "in-built")[] | undefined;
1985
2714
  displayName?: string | undefined;
1986
2715
  pricing?: {
1987
2716
  inputPerM: number;
@@ -1997,14 +2726,12 @@ export declare const ProviderCatalogSchema: z.ZodObject<{
1997
2726
  name: z.ZodString;
1998
2727
  hasApiKey: z.ZodBoolean;
1999
2728
  primaryEnvVar: z.ZodString;
2000
- supportedRouters: z.ZodArray<z.ZodEnum<["vercel", "in-built"]>, "many">;
2001
2729
  supportsBaseURL: z.ZodBoolean;
2002
2730
  models: z.ZodArray<z.ZodObject<{
2003
2731
  name: z.ZodString;
2004
2732
  maxInputTokens: z.ZodNumber;
2005
2733
  default: z.ZodOptional<z.ZodBoolean>;
2006
2734
  supportedFileTypes: z.ZodArray<z.ZodEnum<["audio", "pdf", "image"]>, "many">;
2007
- supportedRouters: z.ZodOptional<z.ZodArray<z.ZodEnum<["vercel", "in-built"]>, "many">>;
2008
2735
  displayName: z.ZodOptional<z.ZodString>;
2009
2736
  pricing: z.ZodOptional<z.ZodObject<{
2010
2737
  inputPerM: z.ZodNumber;
@@ -2033,7 +2760,6 @@ export declare const ProviderCatalogSchema: z.ZodObject<{
2033
2760
  maxInputTokens: number;
2034
2761
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2035
2762
  default?: boolean | undefined;
2036
- supportedRouters?: ("vercel" | "in-built")[] | undefined;
2037
2763
  displayName?: string | undefined;
2038
2764
  pricing?: {
2039
2765
  inputPerM: number;
@@ -2048,7 +2774,6 @@ export declare const ProviderCatalogSchema: z.ZodObject<{
2048
2774
  maxInputTokens: number;
2049
2775
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2050
2776
  default?: boolean | undefined;
2051
- supportedRouters?: ("vercel" | "in-built")[] | undefined;
2052
2777
  displayName?: string | undefined;
2053
2778
  pricing?: {
2054
2779
  inputPerM: number;
@@ -2064,7 +2789,6 @@ export declare const ProviderCatalogSchema: z.ZodObject<{
2064
2789
  name: string;
2065
2790
  hasApiKey: boolean;
2066
2791
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2067
- supportedRouters: ("vercel" | "in-built")[];
2068
2792
  primaryEnvVar: string;
2069
2793
  supportsBaseURL: boolean;
2070
2794
  models: {
@@ -2072,7 +2796,6 @@ export declare const ProviderCatalogSchema: z.ZodObject<{
2072
2796
  maxInputTokens: number;
2073
2797
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2074
2798
  default?: boolean | undefined;
2075
- supportedRouters?: ("vercel" | "in-built")[] | undefined;
2076
2799
  displayName?: string | undefined;
2077
2800
  pricing?: {
2078
2801
  inputPerM: number;
@@ -2087,7 +2810,6 @@ export declare const ProviderCatalogSchema: z.ZodObject<{
2087
2810
  name: string;
2088
2811
  hasApiKey: boolean;
2089
2812
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2090
- supportedRouters: ("vercel" | "in-built")[];
2091
2813
  primaryEnvVar: string;
2092
2814
  supportsBaseURL: boolean;
2093
2815
  models: {
@@ -2095,7 +2817,6 @@ export declare const ProviderCatalogSchema: z.ZodObject<{
2095
2817
  maxInputTokens: number;
2096
2818
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2097
2819
  default?: boolean | undefined;
2098
- supportedRouters?: ("vercel" | "in-built")[] | undefined;
2099
2820
  displayName?: string | undefined;
2100
2821
  pricing?: {
2101
2822
  inputPerM: number;
@@ -2113,7 +2834,6 @@ export declare const ModelFlatSchema: z.ZodObject<{
2113
2834
  maxInputTokens: z.ZodNumber;
2114
2835
  default: z.ZodOptional<z.ZodBoolean>;
2115
2836
  supportedFileTypes: z.ZodArray<z.ZodEnum<["audio", "pdf", "image"]>, "many">;
2116
- supportedRouters: z.ZodOptional<z.ZodArray<z.ZodEnum<["vercel", "in-built"]>, "many">>;
2117
2837
  displayName: z.ZodOptional<z.ZodString>;
2118
2838
  pricing: z.ZodOptional<z.ZodObject<{
2119
2839
  inputPerM: z.ZodNumber;
@@ -2145,7 +2865,6 @@ export declare const ModelFlatSchema: z.ZodObject<{
2145
2865
  maxInputTokens: number;
2146
2866
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2147
2867
  default?: boolean | undefined;
2148
- supportedRouters?: ("vercel" | "in-built")[] | undefined;
2149
2868
  displayName?: string | undefined;
2150
2869
  pricing?: {
2151
2870
  inputPerM: number;
@@ -2161,7 +2880,6 @@ export declare const ModelFlatSchema: z.ZodObject<{
2161
2880
  maxInputTokens: number;
2162
2881
  supportedFileTypes: ("image" | "audio" | "pdf")[];
2163
2882
  default?: boolean | undefined;
2164
- supportedRouters?: ("vercel" | "in-built")[] | undefined;
2165
2883
  displayName?: string | undefined;
2166
2884
  pricing?: {
2167
2885
  inputPerM: number;
@@ -2211,8 +2929,8 @@ export declare const ResourceSchema: z.ZodObject<{
2211
2929
  source: "mcp" | "internal";
2212
2930
  description?: string | undefined;
2213
2931
  mimeType?: string | undefined;
2214
- name?: string | undefined;
2215
2932
  metadata?: Record<string, unknown> | undefined;
2933
+ name?: string | undefined;
2216
2934
  serverName?: string | undefined;
2217
2935
  size?: number | undefined;
2218
2936
  lastModified?: string | undefined;
@@ -2221,8 +2939,8 @@ export declare const ResourceSchema: z.ZodObject<{
2221
2939
  source: "mcp" | "internal";
2222
2940
  description?: string | undefined;
2223
2941
  mimeType?: string | undefined;
2224
- name?: string | undefined;
2225
2942
  metadata?: Record<string, unknown> | undefined;
2943
+ name?: string | undefined;
2226
2944
  serverName?: string | undefined;
2227
2945
  size?: number | undefined;
2228
2946
  lastModified?: string | undefined;
@@ -2317,23 +3035,23 @@ export declare const PromptInfoSchema: z.ZodObject<{
2317
3035
  source: "config" | "custom" | "mcp";
2318
3036
  description?: string | undefined;
2319
3037
  title?: string | undefined;
3038
+ metadata?: Record<string, unknown> | undefined;
2320
3039
  arguments?: {
2321
3040
  name: string;
2322
3041
  description?: string | undefined;
2323
3042
  required?: boolean | undefined;
2324
3043
  }[] | undefined;
2325
- metadata?: Record<string, unknown> | undefined;
2326
3044
  }, {
2327
3045
  name: string;
2328
3046
  source: "config" | "custom" | "mcp";
2329
3047
  description?: string | undefined;
2330
3048
  title?: string | undefined;
3049
+ metadata?: Record<string, unknown> | undefined;
2331
3050
  arguments?: {
2332
3051
  name: string;
2333
3052
  description?: string | undefined;
2334
3053
  required?: boolean | undefined;
2335
3054
  }[] | undefined;
2336
- metadata?: Record<string, unknown> | undefined;
2337
3055
  }>;
2338
3056
  export type PromptInfo = z.output<typeof PromptInfoSchema>;
2339
3057
  export declare const PromptSchema: z.ZodObject<{