@dexto/server 1.6.19 → 1.6.20

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 (45) hide show
  1. package/dist/hono/index.d.ts +161 -133
  2. package/dist/hono/index.d.ts.map +1 -1
  3. package/dist/hono/routes/a2a-tasks.cjs +17 -4
  4. package/dist/hono/routes/a2a-tasks.d.ts +39 -35
  5. package/dist/hono/routes/a2a-tasks.d.ts.map +1 -1
  6. package/dist/hono/routes/a2a-tasks.js +17 -4
  7. package/dist/hono/routes/agents.d.ts +8 -8
  8. package/dist/hono/routes/approvals.cjs +19 -8
  9. package/dist/hono/routes/approvals.d.ts +39 -8
  10. package/dist/hono/routes/approvals.d.ts.map +1 -1
  11. package/dist/hono/routes/approvals.js +19 -8
  12. package/dist/hono/routes/llm.d.ts +1 -1
  13. package/dist/hono/routes/mcp.cjs +56 -26
  14. package/dist/hono/routes/mcp.d.ts +22 -29
  15. package/dist/hono/routes/mcp.d.ts.map +1 -1
  16. package/dist/hono/routes/mcp.js +64 -28
  17. package/dist/hono/routes/messages.cjs +34 -35
  18. package/dist/hono/routes/messages.d.ts +12 -12
  19. package/dist/hono/routes/messages.d.ts.map +1 -1
  20. package/dist/hono/routes/messages.js +41 -36
  21. package/dist/hono/routes/prompts.cjs +10 -4
  22. package/dist/hono/routes/prompts.d.ts +4 -4
  23. package/dist/hono/routes/prompts.d.ts.map +1 -1
  24. package/dist/hono/routes/prompts.js +15 -5
  25. package/dist/hono/routes/queue.cjs +42 -29
  26. package/dist/hono/routes/queue.d.ts +9 -9
  27. package/dist/hono/routes/queue.d.ts.map +1 -1
  28. package/dist/hono/routes/queue.js +49 -30
  29. package/dist/hono/routes/resources.d.ts +1 -1
  30. package/dist/hono/routes/schedules.d.ts +4 -4
  31. package/dist/hono/routes/search.d.ts +4 -4
  32. package/dist/hono/routes/sessions.cjs +7 -2
  33. package/dist/hono/routes/sessions.d.ts +12 -12
  34. package/dist/hono/routes/sessions.d.ts.map +1 -1
  35. package/dist/hono/routes/sessions.js +7 -2
  36. package/dist/hono/routes/tools.d.ts +1 -1
  37. package/dist/hono/routes/webhooks.cjs +59 -24
  38. package/dist/hono/routes/webhooks.d.ts +7 -7
  39. package/dist/hono/routes/webhooks.d.ts.map +1 -1
  40. package/dist/hono/routes/webhooks.js +59 -24
  41. package/dist/hono/schemas/responses.cjs +112 -2
  42. package/dist/hono/schemas/responses.d.ts +246 -54
  43. package/dist/hono/schemas/responses.d.ts.map +1 -1
  44. package/dist/hono/schemas/responses.js +105 -1
  45. package/package.json +7 -7
@@ -27,6 +27,121 @@
27
27
  * See routes/sessions.ts, routes/search.ts for examples with TODO comments.
28
28
  */
29
29
  import { z } from 'zod';
30
+ import { type ContentPart as CoreContentPart } from '@dexto/core';
31
+ export declare const IssueSchema: z.ZodObject<{
32
+ code: z.ZodString;
33
+ message: z.ZodString;
34
+ scope: z.ZodString;
35
+ type: z.ZodString;
36
+ severity: z.ZodEnum<["error", "warning"]>;
37
+ path: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
38
+ context: z.ZodOptional<z.ZodUnknown>;
39
+ }, "strict", z.ZodTypeAny, {
40
+ type: string;
41
+ code: string;
42
+ message: string;
43
+ scope: string;
44
+ severity: "error" | "warning";
45
+ path?: (string | number)[] | undefined;
46
+ context?: unknown;
47
+ }, {
48
+ type: string;
49
+ code: string;
50
+ message: string;
51
+ scope: string;
52
+ severity: "error" | "warning";
53
+ path?: (string | number)[] | undefined;
54
+ context?: unknown;
55
+ }>;
56
+ export declare const ApiErrorResponseSchema: z.ZodObject<{
57
+ name: z.ZodOptional<z.ZodString>;
58
+ message: z.ZodString;
59
+ code: z.ZodOptional<z.ZodString>;
60
+ scope: z.ZodOptional<z.ZodString>;
61
+ type: z.ZodOptional<z.ZodString>;
62
+ severity: z.ZodOptional<z.ZodEnum<["error", "warning"]>>;
63
+ endpoint: z.ZodString;
64
+ method: z.ZodString;
65
+ traceId: z.ZodOptional<z.ZodString>;
66
+ recovery: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
67
+ context: z.ZodOptional<z.ZodUnknown>;
68
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
69
+ code: z.ZodString;
70
+ message: z.ZodString;
71
+ scope: z.ZodString;
72
+ type: z.ZodString;
73
+ severity: z.ZodEnum<["error", "warning"]>;
74
+ path: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
75
+ context: z.ZodOptional<z.ZodUnknown>;
76
+ }, "strict", z.ZodTypeAny, {
77
+ type: string;
78
+ code: string;
79
+ message: string;
80
+ scope: string;
81
+ severity: "error" | "warning";
82
+ path?: (string | number)[] | undefined;
83
+ context?: unknown;
84
+ }, {
85
+ type: string;
86
+ code: string;
87
+ message: string;
88
+ scope: string;
89
+ severity: "error" | "warning";
90
+ path?: (string | number)[] | undefined;
91
+ context?: unknown;
92
+ }>, "many">>;
93
+ errorCount: z.ZodOptional<z.ZodNumber>;
94
+ warningCount: z.ZodOptional<z.ZodNumber>;
95
+ stack: z.ZodOptional<z.ZodString>;
96
+ }, "strict", z.ZodTypeAny, {
97
+ method: string;
98
+ message: string;
99
+ endpoint: string;
100
+ type?: string | undefined;
101
+ issues?: {
102
+ type: string;
103
+ code: string;
104
+ message: string;
105
+ scope: string;
106
+ severity: "error" | "warning";
107
+ path?: (string | number)[] | undefined;
108
+ context?: unknown;
109
+ }[] | undefined;
110
+ code?: string | undefined;
111
+ scope?: string | undefined;
112
+ severity?: "error" | "warning" | undefined;
113
+ name?: string | undefined;
114
+ context?: unknown;
115
+ traceId?: string | undefined;
116
+ recovery?: string | string[] | undefined;
117
+ errorCount?: number | undefined;
118
+ warningCount?: number | undefined;
119
+ stack?: string | undefined;
120
+ }, {
121
+ method: string;
122
+ message: string;
123
+ endpoint: string;
124
+ type?: string | undefined;
125
+ issues?: {
126
+ type: string;
127
+ code: string;
128
+ message: string;
129
+ scope: string;
130
+ severity: "error" | "warning";
131
+ path?: (string | number)[] | undefined;
132
+ context?: unknown;
133
+ }[] | undefined;
134
+ code?: string | undefined;
135
+ scope?: string | undefined;
136
+ severity?: "error" | "warning" | undefined;
137
+ name?: string | undefined;
138
+ context?: unknown;
139
+ traceId?: string | undefined;
140
+ recovery?: string | string[] | undefined;
141
+ errorCount?: number | undefined;
142
+ warningCount?: number | undefined;
143
+ stack?: string | undefined;
144
+ }>;
30
145
  export { MemorySchema } from '@dexto/core';
31
146
  export { LLMConfigBaseSchema, type ValidatedLLMConfig } from '@dexto/core';
32
147
  export declare const TextPartSchema: z.ZodObject<{
@@ -220,6 +335,82 @@ export declare const ContentPartSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
220
335
  } | undefined;
221
336
  } | undefined;
222
337
  }>]>;
338
+ export declare const RequestContentPartSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
339
+ type: z.ZodLiteral<"text">;
340
+ text: z.ZodString;
341
+ }, "strict", z.ZodTypeAny, {
342
+ type: "text";
343
+ text: string;
344
+ }, {
345
+ type: "text";
346
+ text: string;
347
+ }>, z.ZodObject<{
348
+ type: z.ZodLiteral<"image">;
349
+ image: z.ZodString;
350
+ mimeType: z.ZodOptional<z.ZodString>;
351
+ }, "strict", z.ZodTypeAny, {
352
+ type: "image";
353
+ image: string;
354
+ mimeType?: string | undefined;
355
+ }, {
356
+ type: "image";
357
+ image: string;
358
+ mimeType?: string | undefined;
359
+ }>, z.ZodObject<{
360
+ type: z.ZodLiteral<"file">;
361
+ data: z.ZodString;
362
+ mimeType: z.ZodString;
363
+ filename: z.ZodOptional<z.ZodString>;
364
+ }, "strict", z.ZodTypeAny, {
365
+ type: "file";
366
+ mimeType: string;
367
+ data: string;
368
+ filename?: string | undefined;
369
+ }, {
370
+ type: "file";
371
+ mimeType: string;
372
+ data: string;
373
+ filename?: string | undefined;
374
+ }>]>;
375
+ export declare const RequestContentSchema: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
376
+ type: z.ZodLiteral<"text">;
377
+ text: z.ZodString;
378
+ }, "strict", z.ZodTypeAny, {
379
+ type: "text";
380
+ text: string;
381
+ }, {
382
+ type: "text";
383
+ text: string;
384
+ }>, z.ZodObject<{
385
+ type: z.ZodLiteral<"image">;
386
+ image: z.ZodString;
387
+ mimeType: z.ZodOptional<z.ZodString>;
388
+ }, "strict", z.ZodTypeAny, {
389
+ type: "image";
390
+ image: string;
391
+ mimeType?: string | undefined;
392
+ }, {
393
+ type: "image";
394
+ image: string;
395
+ mimeType?: string | undefined;
396
+ }>, z.ZodObject<{
397
+ type: z.ZodLiteral<"file">;
398
+ data: z.ZodString;
399
+ mimeType: z.ZodString;
400
+ filename: z.ZodOptional<z.ZodString>;
401
+ }, "strict", z.ZodTypeAny, {
402
+ type: "file";
403
+ mimeType: string;
404
+ data: string;
405
+ filename?: string | undefined;
406
+ }, {
407
+ type: "file";
408
+ mimeType: string;
409
+ data: string;
410
+ filename?: string | undefined;
411
+ }>]>, "many">]>;
412
+ export declare function toContentInput(rawContent: z.output<typeof RequestContentSchema>): CoreContentPart[];
413
+ export declare function toApiContentPart(part: CoreContentPart): z.output<typeof ContentPartSchema>;
223
414
  export declare const ToolCallSchema: z.ZodObject<{
224
415
  id: z.ZodString;
225
416
  type: z.ZodLiteral<"function">;
@@ -457,8 +648,8 @@ export declare const InternalMessageSchema: z.ZodObject<{
457
648
  })[] | null;
458
649
  role: "system" | "user" | "assistant" | "tool";
459
650
  usageScopeId?: string | undefined;
460
- id?: string | undefined;
461
651
  name?: string | undefined;
652
+ id?: string | undefined;
462
653
  timestamp?: number | undefined;
463
654
  reasoning?: string | undefined;
464
655
  tokenUsage?: {
@@ -512,8 +703,8 @@ export declare const InternalMessageSchema: z.ZodObject<{
512
703
  })[] | null;
513
704
  role: "system" | "user" | "assistant" | "tool";
514
705
  usageScopeId?: string | undefined;
515
- id?: string | undefined;
516
706
  name?: string | undefined;
707
+ id?: string | undefined;
517
708
  timestamp?: number | undefined;
518
709
  reasoning?: string | undefined;
519
710
  tokenUsage?: {
@@ -543,6 +734,7 @@ export type TextPart = z.output<typeof TextPartSchema>;
543
734
  export type ImagePart = z.output<typeof ImagePartSchema>;
544
735
  export type FilePart = z.output<typeof FilePartSchema>;
545
736
  export type ContentPart = z.output<typeof ContentPartSchema>;
737
+ export type RequestContentPart = z.output<typeof RequestContentPartSchema>;
546
738
  export type ToolCall = z.output<typeof ToolCallSchema>;
547
739
  export type TokenUsage = z.output<typeof TokenUsageSchema>;
548
740
  export type InternalMessage = z.output<typeof InternalMessageSchema>;
@@ -1237,8 +1429,8 @@ export declare const ScheduleSchema: z.ZodObject<{
1237
1429
  failureCount: z.ZodNumber;
1238
1430
  lastError: z.ZodOptional<z.ZodString>;
1239
1431
  }, "strict", z.ZodTypeAny, {
1240
- id: string;
1241
1432
  name: string;
1433
+ id: string;
1242
1434
  createdAt: number;
1243
1435
  cronExpression: string;
1244
1436
  timezone: string;
@@ -1258,8 +1450,8 @@ export declare const ScheduleSchema: z.ZodObject<{
1258
1450
  nextRunAt?: number | undefined;
1259
1451
  lastError?: string | undefined;
1260
1452
  }, {
1261
- id: string;
1262
1453
  name: string;
1454
+ id: string;
1263
1455
  createdAt: number;
1264
1456
  cronExpression: string;
1265
1457
  timezone: string;
@@ -1294,18 +1486,18 @@ export declare const ExecutionLogSchema: z.ZodObject<{
1294
1486
  id: string;
1295
1487
  scheduleId: string;
1296
1488
  triggeredAt: number;
1489
+ error?: string | undefined;
1297
1490
  completedAt?: number | undefined;
1298
1491
  duration?: number | undefined;
1299
- error?: string | undefined;
1300
1492
  result?: string | undefined;
1301
1493
  }, {
1302
1494
  status: "success" | "pending" | "failed" | "timeout";
1303
1495
  id: string;
1304
1496
  scheduleId: string;
1305
1497
  triggeredAt: number;
1498
+ error?: string | undefined;
1306
1499
  completedAt?: number | undefined;
1307
1500
  duration?: number | undefined;
1308
- error?: string | undefined;
1309
1501
  result?: string | undefined;
1310
1502
  }>;
1311
1503
  export type ExecutionLog = z.output<typeof ExecutionLogSchema>;
@@ -1497,8 +1689,8 @@ export declare const SearchResultSchema: z.ZodObject<{
1497
1689
  })[] | null;
1498
1690
  role: "system" | "user" | "assistant" | "tool";
1499
1691
  usageScopeId?: string | undefined;
1500
- id?: string | undefined;
1501
1692
  name?: string | undefined;
1693
+ id?: string | undefined;
1502
1694
  timestamp?: number | undefined;
1503
1695
  reasoning?: string | undefined;
1504
1696
  tokenUsage?: {
@@ -1552,8 +1744,8 @@ export declare const SearchResultSchema: z.ZodObject<{
1552
1744
  })[] | null;
1553
1745
  role: "system" | "user" | "assistant" | "tool";
1554
1746
  usageScopeId?: string | undefined;
1555
- id?: string | undefined;
1556
1747
  name?: string | undefined;
1748
+ id?: string | undefined;
1557
1749
  timestamp?: number | undefined;
1558
1750
  reasoning?: string | undefined;
1559
1751
  tokenUsage?: {
@@ -1612,8 +1804,8 @@ export declare const SearchResultSchema: z.ZodObject<{
1612
1804
  })[] | null;
1613
1805
  role: "system" | "user" | "assistant" | "tool";
1614
1806
  usageScopeId?: string | undefined;
1615
- id?: string | undefined;
1616
1807
  name?: string | undefined;
1808
+ id?: string | undefined;
1617
1809
  timestamp?: number | undefined;
1618
1810
  reasoning?: string | undefined;
1619
1811
  tokenUsage?: {
@@ -1640,8 +1832,8 @@ export declare const SearchResultSchema: z.ZodObject<{
1640
1832
  success?: boolean | undefined;
1641
1833
  };
1642
1834
  sessionId: string;
1643
- matchedText: string;
1644
1835
  context: string;
1836
+ matchedText: string;
1645
1837
  messageIndex: number;
1646
1838
  }, {
1647
1839
  message: {
@@ -1673,8 +1865,8 @@ export declare const SearchResultSchema: z.ZodObject<{
1673
1865
  })[] | null;
1674
1866
  role: "system" | "user" | "assistant" | "tool";
1675
1867
  usageScopeId?: string | undefined;
1676
- id?: string | undefined;
1677
1868
  name?: string | undefined;
1869
+ id?: string | undefined;
1678
1870
  timestamp?: number | undefined;
1679
1871
  reasoning?: string | undefined;
1680
1872
  tokenUsage?: {
@@ -1701,8 +1893,8 @@ export declare const SearchResultSchema: z.ZodObject<{
1701
1893
  success?: boolean | undefined;
1702
1894
  };
1703
1895
  sessionId: string;
1704
- matchedText: string;
1705
1896
  context: string;
1897
+ matchedText: string;
1706
1898
  messageIndex: number;
1707
1899
  }>;
1708
1900
  export type SearchResult = z.output<typeof SearchResultSchema>;
@@ -1897,8 +2089,8 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
1897
2089
  })[] | null;
1898
2090
  role: "system" | "user" | "assistant" | "tool";
1899
2091
  usageScopeId?: string | undefined;
1900
- id?: string | undefined;
1901
2092
  name?: string | undefined;
2093
+ id?: string | undefined;
1902
2094
  timestamp?: number | undefined;
1903
2095
  reasoning?: string | undefined;
1904
2096
  tokenUsage?: {
@@ -1952,8 +2144,8 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
1952
2144
  })[] | null;
1953
2145
  role: "system" | "user" | "assistant" | "tool";
1954
2146
  usageScopeId?: string | undefined;
1955
- id?: string | undefined;
1956
2147
  name?: string | undefined;
2148
+ id?: string | undefined;
1957
2149
  timestamp?: number | undefined;
1958
2150
  reasoning?: string | undefined;
1959
2151
  tokenUsage?: {
@@ -2012,8 +2204,8 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2012
2204
  })[] | null;
2013
2205
  role: "system" | "user" | "assistant" | "tool";
2014
2206
  usageScopeId?: string | undefined;
2015
- id?: string | undefined;
2016
2207
  name?: string | undefined;
2208
+ id?: string | undefined;
2017
2209
  timestamp?: number | undefined;
2018
2210
  reasoning?: string | undefined;
2019
2211
  tokenUsage?: {
@@ -2040,8 +2232,8 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2040
2232
  success?: boolean | undefined;
2041
2233
  };
2042
2234
  sessionId: string;
2043
- matchedText: string;
2044
2235
  context: string;
2236
+ matchedText: string;
2045
2237
  messageIndex: number;
2046
2238
  }, {
2047
2239
  message: {
@@ -2073,8 +2265,8 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2073
2265
  })[] | null;
2074
2266
  role: "system" | "user" | "assistant" | "tool";
2075
2267
  usageScopeId?: string | undefined;
2076
- id?: string | undefined;
2077
2268
  name?: string | undefined;
2269
+ id?: string | undefined;
2078
2270
  timestamp?: number | undefined;
2079
2271
  reasoning?: string | undefined;
2080
2272
  tokenUsage?: {
@@ -2101,8 +2293,8 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2101
2293
  success?: boolean | undefined;
2102
2294
  };
2103
2295
  sessionId: string;
2104
- matchedText: string;
2105
2296
  context: string;
2297
+ matchedText: string;
2106
2298
  messageIndex: number;
2107
2299
  }>;
2108
2300
  metadata: z.ZodObject<{
@@ -2156,8 +2348,8 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2156
2348
  })[] | null;
2157
2349
  role: "system" | "user" | "assistant" | "tool";
2158
2350
  usageScopeId?: string | undefined;
2159
- id?: string | undefined;
2160
2351
  name?: string | undefined;
2352
+ id?: string | undefined;
2161
2353
  timestamp?: number | undefined;
2162
2354
  reasoning?: string | undefined;
2163
2355
  tokenUsage?: {
@@ -2184,8 +2376,8 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2184
2376
  success?: boolean | undefined;
2185
2377
  };
2186
2378
  sessionId: string;
2187
- matchedText: string;
2188
2379
  context: string;
2380
+ matchedText: string;
2189
2381
  messageIndex: number;
2190
2382
  };
2191
2383
  }, {
@@ -2226,8 +2418,8 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2226
2418
  })[] | null;
2227
2419
  role: "system" | "user" | "assistant" | "tool";
2228
2420
  usageScopeId?: string | undefined;
2229
- id?: string | undefined;
2230
2421
  name?: string | undefined;
2422
+ id?: string | undefined;
2231
2423
  timestamp?: number | undefined;
2232
2424
  reasoning?: string | undefined;
2233
2425
  tokenUsage?: {
@@ -2254,8 +2446,8 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2254
2446
  success?: boolean | undefined;
2255
2447
  };
2256
2448
  sessionId: string;
2257
- matchedText: string;
2258
2449
  context: string;
2450
+ matchedText: string;
2259
2451
  messageIndex: number;
2260
2452
  };
2261
2453
  }>;
@@ -2449,8 +2641,8 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2449
2641
  })[] | null;
2450
2642
  role: "system" | "user" | "assistant" | "tool";
2451
2643
  usageScopeId?: string | undefined;
2452
- id?: string | undefined;
2453
2644
  name?: string | undefined;
2645
+ id?: string | undefined;
2454
2646
  timestamp?: number | undefined;
2455
2647
  reasoning?: string | undefined;
2456
2648
  tokenUsage?: {
@@ -2504,8 +2696,8 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2504
2696
  })[] | null;
2505
2697
  role: "system" | "user" | "assistant" | "tool";
2506
2698
  usageScopeId?: string | undefined;
2507
- id?: string | undefined;
2508
2699
  name?: string | undefined;
2700
+ id?: string | undefined;
2509
2701
  timestamp?: number | undefined;
2510
2702
  reasoning?: string | undefined;
2511
2703
  tokenUsage?: {
@@ -2564,8 +2756,8 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2564
2756
  })[] | null;
2565
2757
  role: "system" | "user" | "assistant" | "tool";
2566
2758
  usageScopeId?: string | undefined;
2567
- id?: string | undefined;
2568
2759
  name?: string | undefined;
2760
+ id?: string | undefined;
2569
2761
  timestamp?: number | undefined;
2570
2762
  reasoning?: string | undefined;
2571
2763
  tokenUsage?: {
@@ -2592,8 +2784,8 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2592
2784
  success?: boolean | undefined;
2593
2785
  };
2594
2786
  sessionId: string;
2595
- matchedText: string;
2596
2787
  context: string;
2788
+ matchedText: string;
2597
2789
  messageIndex: number;
2598
2790
  }, {
2599
2791
  message: {
@@ -2625,8 +2817,8 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2625
2817
  })[] | null;
2626
2818
  role: "system" | "user" | "assistant" | "tool";
2627
2819
  usageScopeId?: string | undefined;
2628
- id?: string | undefined;
2629
2820
  name?: string | undefined;
2821
+ id?: string | undefined;
2630
2822
  timestamp?: number | undefined;
2631
2823
  reasoning?: string | undefined;
2632
2824
  tokenUsage?: {
@@ -2653,8 +2845,8 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2653
2845
  success?: boolean | undefined;
2654
2846
  };
2655
2847
  sessionId: string;
2656
- matchedText: string;
2657
2848
  context: string;
2849
+ matchedText: string;
2658
2850
  messageIndex: number;
2659
2851
  }>, "many">;
2660
2852
  total: z.ZodNumber;
@@ -2692,8 +2884,8 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2692
2884
  })[] | null;
2693
2885
  role: "system" | "user" | "assistant" | "tool";
2694
2886
  usageScopeId?: string | undefined;
2695
- id?: string | undefined;
2696
2887
  name?: string | undefined;
2888
+ id?: string | undefined;
2697
2889
  timestamp?: number | undefined;
2698
2890
  reasoning?: string | undefined;
2699
2891
  tokenUsage?: {
@@ -2720,8 +2912,8 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2720
2912
  success?: boolean | undefined;
2721
2913
  };
2722
2914
  sessionId: string;
2723
- matchedText: string;
2724
2915
  context: string;
2916
+ matchedText: string;
2725
2917
  messageIndex: number;
2726
2918
  }[];
2727
2919
  total: number;
@@ -2758,8 +2950,8 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2758
2950
  })[] | null;
2759
2951
  role: "system" | "user" | "assistant" | "tool";
2760
2952
  usageScopeId?: string | undefined;
2761
- id?: string | undefined;
2762
2953
  name?: string | undefined;
2954
+ id?: string | undefined;
2763
2955
  timestamp?: number | undefined;
2764
2956
  reasoning?: string | undefined;
2765
2957
  tokenUsage?: {
@@ -2786,8 +2978,8 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2786
2978
  success?: boolean | undefined;
2787
2979
  };
2788
2980
  sessionId: string;
2789
- matchedText: string;
2790
2981
  context: string;
2982
+ matchedText: string;
2791
2983
  messageIndex: number;
2792
2984
  }[];
2793
2985
  total: number;
@@ -2986,8 +3178,8 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
2986
3178
  })[] | null;
2987
3179
  role: "system" | "user" | "assistant" | "tool";
2988
3180
  usageScopeId?: string | undefined;
2989
- id?: string | undefined;
2990
3181
  name?: string | undefined;
3182
+ id?: string | undefined;
2991
3183
  timestamp?: number | undefined;
2992
3184
  reasoning?: string | undefined;
2993
3185
  tokenUsage?: {
@@ -3041,8 +3233,8 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3041
3233
  })[] | null;
3042
3234
  role: "system" | "user" | "assistant" | "tool";
3043
3235
  usageScopeId?: string | undefined;
3044
- id?: string | undefined;
3045
3236
  name?: string | undefined;
3237
+ id?: string | undefined;
3046
3238
  timestamp?: number | undefined;
3047
3239
  reasoning?: string | undefined;
3048
3240
  tokenUsage?: {
@@ -3101,8 +3293,8 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3101
3293
  })[] | null;
3102
3294
  role: "system" | "user" | "assistant" | "tool";
3103
3295
  usageScopeId?: string | undefined;
3104
- id?: string | undefined;
3105
3296
  name?: string | undefined;
3297
+ id?: string | undefined;
3106
3298
  timestamp?: number | undefined;
3107
3299
  reasoning?: string | undefined;
3108
3300
  tokenUsage?: {
@@ -3129,8 +3321,8 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3129
3321
  success?: boolean | undefined;
3130
3322
  };
3131
3323
  sessionId: string;
3132
- matchedText: string;
3133
3324
  context: string;
3325
+ matchedText: string;
3134
3326
  messageIndex: number;
3135
3327
  }, {
3136
3328
  message: {
@@ -3162,8 +3354,8 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3162
3354
  })[] | null;
3163
3355
  role: "system" | "user" | "assistant" | "tool";
3164
3356
  usageScopeId?: string | undefined;
3165
- id?: string | undefined;
3166
3357
  name?: string | undefined;
3358
+ id?: string | undefined;
3167
3359
  timestamp?: number | undefined;
3168
3360
  reasoning?: string | undefined;
3169
3361
  tokenUsage?: {
@@ -3190,8 +3382,8 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3190
3382
  success?: boolean | undefined;
3191
3383
  };
3192
3384
  sessionId: string;
3193
- matchedText: string;
3194
3385
  context: string;
3386
+ matchedText: string;
3195
3387
  messageIndex: number;
3196
3388
  }>;
3197
3389
  metadata: z.ZodObject<{
@@ -3245,8 +3437,8 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3245
3437
  })[] | null;
3246
3438
  role: "system" | "user" | "assistant" | "tool";
3247
3439
  usageScopeId?: string | undefined;
3248
- id?: string | undefined;
3249
3440
  name?: string | undefined;
3441
+ id?: string | undefined;
3250
3442
  timestamp?: number | undefined;
3251
3443
  reasoning?: string | undefined;
3252
3444
  tokenUsage?: {
@@ -3273,8 +3465,8 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3273
3465
  success?: boolean | undefined;
3274
3466
  };
3275
3467
  sessionId: string;
3276
- matchedText: string;
3277
3468
  context: string;
3469
+ matchedText: string;
3278
3470
  messageIndex: number;
3279
3471
  };
3280
3472
  }, {
@@ -3315,8 +3507,8 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3315
3507
  })[] | null;
3316
3508
  role: "system" | "user" | "assistant" | "tool";
3317
3509
  usageScopeId?: string | undefined;
3318
- id?: string | undefined;
3319
3510
  name?: string | undefined;
3511
+ id?: string | undefined;
3320
3512
  timestamp?: number | undefined;
3321
3513
  reasoning?: string | undefined;
3322
3514
  tokenUsage?: {
@@ -3343,8 +3535,8 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3343
3535
  success?: boolean | undefined;
3344
3536
  };
3345
3537
  sessionId: string;
3346
- matchedText: string;
3347
3538
  context: string;
3539
+ matchedText: string;
3348
3540
  messageIndex: number;
3349
3541
  };
3350
3542
  }>, "many">;
@@ -3391,8 +3583,8 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3391
3583
  })[] | null;
3392
3584
  role: "system" | "user" | "assistant" | "tool";
3393
3585
  usageScopeId?: string | undefined;
3394
- id?: string | undefined;
3395
3586
  name?: string | undefined;
3587
+ id?: string | undefined;
3396
3588
  timestamp?: number | undefined;
3397
3589
  reasoning?: string | undefined;
3398
3590
  tokenUsage?: {
@@ -3419,8 +3611,8 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3419
3611
  success?: boolean | undefined;
3420
3612
  };
3421
3613
  sessionId: string;
3422
- matchedText: string;
3423
3614
  context: string;
3615
+ matchedText: string;
3424
3616
  messageIndex: number;
3425
3617
  };
3426
3618
  }[];
@@ -3466,8 +3658,8 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3466
3658
  })[] | null;
3467
3659
  role: "system" | "user" | "assistant" | "tool";
3468
3660
  usageScopeId?: string | undefined;
3469
- id?: string | undefined;
3470
3661
  name?: string | undefined;
3662
+ id?: string | undefined;
3471
3663
  timestamp?: number | undefined;
3472
3664
  reasoning?: string | undefined;
3473
3665
  tokenUsage?: {
@@ -3494,8 +3686,8 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3494
3686
  success?: boolean | undefined;
3495
3687
  };
3496
3688
  sessionId: string;
3497
- matchedText: string;
3498
3689
  context: string;
3690
+ matchedText: string;
3499
3691
  messageIndex: number;
3500
3692
  };
3501
3693
  }[];
@@ -3757,15 +3949,15 @@ export declare const AgentRegistryEntrySchema: z.ZodObject<{
3757
3949
  }, "strict", z.ZodTypeAny, {
3758
3950
  description: string;
3759
3951
  type: "custom" | "builtin";
3760
- id: string;
3761
3952
  name: string;
3953
+ id: string;
3762
3954
  tags?: string[] | undefined;
3763
3955
  author?: string | undefined;
3764
3956
  }, {
3765
3957
  description: string;
3766
3958
  type: "custom" | "builtin";
3767
- id: string;
3768
3959
  name: string;
3960
+ id: string;
3769
3961
  tags?: string[] | undefined;
3770
3962
  author?: string | undefined;
3771
3963
  }>;
@@ -3784,9 +3976,9 @@ export declare const ResourceSchema: z.ZodObject<{
3784
3976
  uri: string;
3785
3977
  source: "mcp" | "internal";
3786
3978
  description?: string | undefined;
3979
+ name?: string | undefined;
3787
3980
  mimeType?: string | undefined;
3788
3981
  metadata?: Record<string, unknown> | undefined;
3789
- name?: string | undefined;
3790
3982
  serverName?: string | undefined;
3791
3983
  size?: number | undefined;
3792
3984
  lastModified?: string | undefined;
@@ -3794,9 +3986,9 @@ export declare const ResourceSchema: z.ZodObject<{
3794
3986
  uri: string;
3795
3987
  source: "mcp" | "internal";
3796
3988
  description?: string | undefined;
3989
+ name?: string | undefined;
3797
3990
  mimeType?: string | undefined;
3798
3991
  metadata?: Record<string, unknown> | undefined;
3799
- name?: string | undefined;
3800
3992
  serverName?: string | undefined;
3801
3993
  size?: number | undefined;
3802
3994
  lastModified?: string | undefined;
@@ -3918,14 +4110,14 @@ export declare const PromptSchema: z.ZodObject<{
3918
4110
  variables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3919
4111
  }, "strict", z.ZodTypeAny, {
3920
4112
  content: string;
3921
- id: string;
3922
4113
  name: string;
4114
+ id: string;
3923
4115
  description?: string | undefined;
3924
4116
  variables?: string[] | undefined;
3925
4117
  }, {
3926
4118
  content: string;
3927
- id: string;
3928
4119
  name: string;
4120
+ id: string;
3929
4121
  description?: string | undefined;
3930
4122
  variables?: string[] | undefined;
3931
4123
  }>;
@@ -3987,8 +4179,8 @@ export declare const StandardErrorEnvelopeSchema: z.ZodObject<{
3987
4179
  code: string;
3988
4180
  message: string;
3989
4181
  scope: string;
3990
- traceId: string;
3991
4182
  endpoint: string;
4183
+ traceId: string;
3992
4184
  context?: unknown;
3993
4185
  recovery?: string | string[] | undefined;
3994
4186
  }, {
@@ -3997,8 +4189,8 @@ export declare const StandardErrorEnvelopeSchema: z.ZodObject<{
3997
4189
  code: string;
3998
4190
  message: string;
3999
4191
  scope: string;
4000
- traceId: string;
4001
4192
  endpoint: string;
4193
+ traceId: string;
4002
4194
  context?: unknown;
4003
4195
  recovery?: string | string[] | undefined;
4004
4196
  }>;