@dexto/agent-config 1.6.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 (51) hide show
  1. package/LICENSE +44 -0
  2. package/README.md +46 -0
  3. package/dist/image/types.cjs +16 -0
  4. package/dist/image/types.d.ts +123 -0
  5. package/dist/image/types.d.ts.map +1 -0
  6. package/dist/image/types.js +0 -0
  7. package/dist/index.cjs +63 -0
  8. package/dist/index.d.ts +15 -0
  9. package/dist/index.d.ts.map +1 -0
  10. package/dist/index.js +34 -0
  11. package/dist/resolver/apply-image-defaults.cjs +102 -0
  12. package/dist/resolver/apply-image-defaults.d.ts +13 -0
  13. package/dist/resolver/apply-image-defaults.d.ts.map +1 -0
  14. package/dist/resolver/apply-image-defaults.js +78 -0
  15. package/dist/resolver/load-image.cjs +139 -0
  16. package/dist/resolver/load-image.d.ts +13 -0
  17. package/dist/resolver/load-image.d.ts.map +1 -0
  18. package/dist/resolver/load-image.js +114 -0
  19. package/dist/resolver/resolve-services-from-config.cjs +146 -0
  20. package/dist/resolver/resolve-services-from-config.d.ts +5 -0
  21. package/dist/resolver/resolve-services-from-config.d.ts.map +1 -0
  22. package/dist/resolver/resolve-services-from-config.js +122 -0
  23. package/dist/resolver/to-dexto-agent-options.cjs +51 -0
  24. package/dist/resolver/to-dexto-agent-options.d.ts +10 -0
  25. package/dist/resolver/to-dexto-agent-options.d.ts.map +1 -0
  26. package/dist/resolver/to-dexto-agent-options.js +27 -0
  27. package/dist/resolver/types.cjs +16 -0
  28. package/dist/resolver/types.d.ts +19 -0
  29. package/dist/resolver/types.d.ts.map +1 -0
  30. package/dist/resolver/types.js +0 -0
  31. package/dist/resolver/utils.cjs +35 -0
  32. package/dist/resolver/utils.d.ts +4 -0
  33. package/dist/resolver/utils.d.ts.map +1 -0
  34. package/dist/resolver/utils.js +10 -0
  35. package/dist/schemas/agent-config.cjs +117 -0
  36. package/dist/schemas/agent-config.d.ts +4910 -0
  37. package/dist/schemas/agent-config.d.ts.map +1 -0
  38. package/dist/schemas/agent-config.js +104 -0
  39. package/dist/schemas/compaction.cjs +64 -0
  40. package/dist/schemas/compaction.d.ts +77 -0
  41. package/dist/schemas/compaction.d.ts.map +1 -0
  42. package/dist/schemas/compaction.js +37 -0
  43. package/dist/schemas/hooks.cjs +37 -0
  44. package/dist/schemas/hooks.d.ts +36 -0
  45. package/dist/schemas/hooks.d.ts.map +1 -0
  46. package/dist/schemas/hooks.js +12 -0
  47. package/dist/utils/clean-null-values.cjs +52 -0
  48. package/dist/utils/clean-null-values.d.ts +8 -0
  49. package/dist/utils/clean-null-values.d.ts.map +1 -0
  50. package/dist/utils/clean-null-values.js +28 -0
  51. package/package.json +42 -0
@@ -0,0 +1,4910 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Unified tool factory entry configuration.
4
+ *
5
+ * Resolution semantics:
6
+ * - omit `tools` entirely → use `image.defaults.tools` (or `[]` if no defaults)
7
+ * - specify `tools` → full replace (arrays are atomic)
8
+ * - each entry can set `enabled: false` to skip that entry entirely
9
+ *
10
+ * Provider-specific fields are validated by the resolver against the selected tool factory's
11
+ * `configSchema`.
12
+ */
13
+ export declare const ToolFactoryEntrySchema: z.ZodObject<{
14
+ type: z.ZodString;
15
+ enabled: z.ZodOptional<z.ZodBoolean>;
16
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
17
+ type: z.ZodString;
18
+ enabled: z.ZodOptional<z.ZodBoolean>;
19
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
20
+ type: z.ZodString;
21
+ enabled: z.ZodOptional<z.ZodBoolean>;
22
+ }, z.ZodTypeAny, "passthrough">>;
23
+ export type ToolFactoryEntry = z.output<typeof ToolFactoryEntrySchema>;
24
+ /**
25
+ * Creates the agent config schema.
26
+ */
27
+ export declare function createAgentConfigSchema(): z.ZodBranded<z.ZodObject<{
28
+ systemPrompt: z.ZodBranded<z.ZodUnion<[z.ZodEffects<z.ZodString, {
29
+ contributors: {
30
+ id: string;
31
+ type: "static";
32
+ content: string;
33
+ priority: number;
34
+ enabled: boolean;
35
+ }[];
36
+ }, string>, z.ZodObject<{
37
+ contributors: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
38
+ id: z.ZodString;
39
+ priority: z.ZodNumber;
40
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
41
+ } & {
42
+ type: z.ZodLiteral<"static">;
43
+ content: z.ZodString;
44
+ }, "strict", z.ZodTypeAny, {
45
+ type: "static";
46
+ content: string;
47
+ enabled: boolean;
48
+ id: string;
49
+ priority: number;
50
+ }, {
51
+ type: "static";
52
+ content: string;
53
+ id: string;
54
+ priority: number;
55
+ enabled?: boolean | undefined;
56
+ }>, z.ZodObject<{
57
+ id: z.ZodString;
58
+ priority: z.ZodNumber;
59
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
60
+ } & {
61
+ type: z.ZodLiteral<"dynamic">;
62
+ source: z.ZodEnum<["date", "env", "resources"]>;
63
+ }, "strict", z.ZodTypeAny, {
64
+ type: "dynamic";
65
+ enabled: boolean;
66
+ id: string;
67
+ priority: number;
68
+ source: "date" | "env" | "resources";
69
+ }, {
70
+ type: "dynamic";
71
+ id: string;
72
+ priority: number;
73
+ source: "date" | "env" | "resources";
74
+ enabled?: boolean | undefined;
75
+ }>, z.ZodObject<{
76
+ id: z.ZodString;
77
+ priority: z.ZodNumber;
78
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
79
+ } & {
80
+ type: z.ZodLiteral<"file">;
81
+ files: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
82
+ options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
83
+ includeFilenames: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
84
+ separator: z.ZodDefault<z.ZodOptional<z.ZodString>>;
85
+ errorHandling: z.ZodDefault<z.ZodOptional<z.ZodEnum<["skip", "error"]>>>;
86
+ maxFileSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
87
+ includeMetadata: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
88
+ }, "strict", z.ZodTypeAny, {
89
+ includeFilenames: boolean;
90
+ separator: string;
91
+ errorHandling: "error" | "skip";
92
+ maxFileSize: number;
93
+ includeMetadata: boolean;
94
+ }, {
95
+ includeFilenames?: boolean | undefined;
96
+ separator?: string | undefined;
97
+ errorHandling?: "error" | "skip" | undefined;
98
+ maxFileSize?: number | undefined;
99
+ includeMetadata?: boolean | undefined;
100
+ }>>>;
101
+ }, "strict", z.ZodTypeAny, {
102
+ type: "file";
103
+ options: {
104
+ includeFilenames: boolean;
105
+ separator: string;
106
+ errorHandling: "error" | "skip";
107
+ maxFileSize: number;
108
+ includeMetadata: boolean;
109
+ };
110
+ enabled: boolean;
111
+ id: string;
112
+ priority: number;
113
+ files: string[];
114
+ }, {
115
+ type: "file";
116
+ id: string;
117
+ priority: number;
118
+ files: string[];
119
+ options?: {
120
+ includeFilenames?: boolean | undefined;
121
+ separator?: string | undefined;
122
+ errorHandling?: "error" | "skip" | undefined;
123
+ maxFileSize?: number | undefined;
124
+ includeMetadata?: boolean | undefined;
125
+ } | undefined;
126
+ enabled?: boolean | undefined;
127
+ }>]>, "many">>;
128
+ }, "strict", z.ZodTypeAny, {
129
+ contributors: ({
130
+ type: "static";
131
+ content: string;
132
+ enabled: boolean;
133
+ id: string;
134
+ priority: number;
135
+ } | {
136
+ type: "dynamic";
137
+ enabled: boolean;
138
+ id: string;
139
+ priority: number;
140
+ source: "date" | "env" | "resources";
141
+ } | {
142
+ type: "file";
143
+ options: {
144
+ includeFilenames: boolean;
145
+ separator: string;
146
+ errorHandling: "error" | "skip";
147
+ maxFileSize: number;
148
+ includeMetadata: boolean;
149
+ };
150
+ enabled: boolean;
151
+ id: string;
152
+ priority: number;
153
+ files: string[];
154
+ })[];
155
+ }, {
156
+ contributors?: ({
157
+ type: "static";
158
+ content: string;
159
+ id: string;
160
+ priority: number;
161
+ enabled?: boolean | undefined;
162
+ } | {
163
+ type: "dynamic";
164
+ id: string;
165
+ priority: number;
166
+ source: "date" | "env" | "resources";
167
+ enabled?: boolean | undefined;
168
+ } | {
169
+ type: "file";
170
+ id: string;
171
+ priority: number;
172
+ files: string[];
173
+ options?: {
174
+ includeFilenames?: boolean | undefined;
175
+ separator?: string | undefined;
176
+ errorHandling?: "error" | "skip" | undefined;
177
+ maxFileSize?: number | undefined;
178
+ includeMetadata?: boolean | undefined;
179
+ } | undefined;
180
+ enabled?: boolean | undefined;
181
+ })[] | undefined;
182
+ }>]>, "ValidatedSystemPromptConfig">;
183
+ llm: z.ZodEffects<z.ZodObject<{
184
+ provider: z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere", "minimax", "glm", "openrouter", "litellm", "glama", "vertex", "bedrock", "local", "ollama", "dexto-nova"]>;
185
+ model: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
186
+ apiKey: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
187
+ maxIterations: z.ZodOptional<z.ZodNumber>;
188
+ baseURL: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string | undefined, string>>;
189
+ maxInputTokens: z.ZodOptional<z.ZodNumber>;
190
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
191
+ temperature: z.ZodOptional<z.ZodNumber>;
192
+ allowedMediaTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
193
+ reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
194
+ }, "strict", z.ZodTypeAny, {
195
+ model: string;
196
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
197
+ apiKey?: string | undefined;
198
+ maxInputTokens?: number | undefined;
199
+ maxIterations?: number | undefined;
200
+ baseURL?: string | undefined;
201
+ maxOutputTokens?: number | undefined;
202
+ temperature?: number | undefined;
203
+ allowedMediaTypes?: string[] | undefined;
204
+ reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
205
+ }, {
206
+ model: string;
207
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
208
+ apiKey?: string | undefined;
209
+ maxInputTokens?: number | undefined;
210
+ maxIterations?: number | undefined;
211
+ baseURL?: string | undefined;
212
+ maxOutputTokens?: number | undefined;
213
+ temperature?: number | undefined;
214
+ allowedMediaTypes?: string[] | undefined;
215
+ reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
216
+ }>, {
217
+ model: string;
218
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
219
+ apiKey?: string | undefined;
220
+ maxInputTokens?: number | undefined;
221
+ maxIterations?: number | undefined;
222
+ baseURL?: string | undefined;
223
+ maxOutputTokens?: number | undefined;
224
+ temperature?: number | undefined;
225
+ allowedMediaTypes?: string[] | undefined;
226
+ reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
227
+ }, {
228
+ model: string;
229
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
230
+ apiKey?: string | undefined;
231
+ maxInputTokens?: number | undefined;
232
+ maxIterations?: number | undefined;
233
+ baseURL?: string | undefined;
234
+ maxOutputTokens?: number | undefined;
235
+ temperature?: number | undefined;
236
+ allowedMediaTypes?: string[] | undefined;
237
+ reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
238
+ }>;
239
+ agentCard: z.ZodOptional<z.ZodObject<{
240
+ protocolVersion: z.ZodDefault<z.ZodString>;
241
+ name: z.ZodString;
242
+ description: z.ZodString;
243
+ url: z.ZodString;
244
+ version: z.ZodString;
245
+ preferredTransport: z.ZodDefault<z.ZodEnum<["JSONRPC", "GRPC", "HTTP+JSON"]>>;
246
+ defaultInputModes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
247
+ defaultOutputModes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
248
+ skills: z.ZodDefault<z.ZodArray<z.ZodObject<{
249
+ id: z.ZodString;
250
+ name: z.ZodString;
251
+ description: z.ZodString;
252
+ tags: z.ZodArray<z.ZodString, "many">;
253
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
254
+ inputModes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
255
+ outputModes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
256
+ }, "strict", z.ZodTypeAny, {
257
+ description: string;
258
+ name: string;
259
+ id: string;
260
+ tags: string[];
261
+ inputModes: string[];
262
+ outputModes: string[];
263
+ examples?: string[] | undefined;
264
+ }, {
265
+ description: string;
266
+ name: string;
267
+ id: string;
268
+ tags: string[];
269
+ examples?: string[] | undefined;
270
+ inputModes?: string[] | undefined;
271
+ outputModes?: string[] | undefined;
272
+ }>, "many">>;
273
+ provider: z.ZodOptional<z.ZodObject<{
274
+ organization: z.ZodString;
275
+ url: z.ZodString;
276
+ }, "strict", z.ZodTypeAny, {
277
+ url: string;
278
+ organization: string;
279
+ }, {
280
+ url: string;
281
+ organization: string;
282
+ }>>;
283
+ iconUrl: z.ZodOptional<z.ZodString>;
284
+ documentationUrl: z.ZodOptional<z.ZodString>;
285
+ additionalInterfaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
286
+ url: z.ZodString;
287
+ transport: z.ZodEnum<["JSONRPC", "GRPC", "HTTP+JSON"]>;
288
+ }, "strict", z.ZodTypeAny, {
289
+ url: string;
290
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
291
+ }, {
292
+ url: string;
293
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
294
+ }>, "many">>;
295
+ capabilities: z.ZodDefault<z.ZodObject<{
296
+ streaming: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
297
+ pushNotifications: z.ZodOptional<z.ZodBoolean>;
298
+ stateTransitionHistory: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
299
+ }, "strict", z.ZodTypeAny, {
300
+ streaming: boolean;
301
+ stateTransitionHistory: boolean;
302
+ pushNotifications?: boolean | undefined;
303
+ }, {
304
+ streaming?: boolean | undefined;
305
+ pushNotifications?: boolean | undefined;
306
+ stateTransitionHistory?: boolean | undefined;
307
+ }>>;
308
+ securitySchemes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
309
+ type: z.ZodLiteral<"apiKey">;
310
+ name: z.ZodString;
311
+ in: z.ZodEnum<["query", "header", "cookie"]>;
312
+ description: z.ZodOptional<z.ZodString>;
313
+ }, "strict", z.ZodTypeAny, {
314
+ type: "apiKey";
315
+ name: string;
316
+ in: "query" | "header" | "cookie";
317
+ description?: string | undefined;
318
+ }, {
319
+ type: "apiKey";
320
+ name: string;
321
+ in: "query" | "header" | "cookie";
322
+ description?: string | undefined;
323
+ }>, z.ZodObject<{
324
+ type: z.ZodLiteral<"http">;
325
+ scheme: z.ZodString;
326
+ bearerFormat: z.ZodOptional<z.ZodString>;
327
+ description: z.ZodOptional<z.ZodString>;
328
+ }, "strict", z.ZodTypeAny, {
329
+ type: "http";
330
+ scheme: string;
331
+ description?: string | undefined;
332
+ bearerFormat?: string | undefined;
333
+ }, {
334
+ type: "http";
335
+ scheme: string;
336
+ description?: string | undefined;
337
+ bearerFormat?: string | undefined;
338
+ }>, z.ZodObject<{
339
+ type: z.ZodLiteral<"oauth2">;
340
+ flows: z.ZodObject<{
341
+ implicit: z.ZodOptional<z.ZodObject<{
342
+ authorizationUrl: z.ZodOptional<z.ZodString>;
343
+ tokenUrl: z.ZodOptional<z.ZodString>;
344
+ refreshUrl: z.ZodOptional<z.ZodString>;
345
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
346
+ }, "strict", z.ZodTypeAny, {
347
+ scopes: Record<string, string>;
348
+ authorizationUrl?: string | undefined;
349
+ tokenUrl?: string | undefined;
350
+ refreshUrl?: string | undefined;
351
+ }, {
352
+ scopes: Record<string, string>;
353
+ authorizationUrl?: string | undefined;
354
+ tokenUrl?: string | undefined;
355
+ refreshUrl?: string | undefined;
356
+ }>>;
357
+ password: z.ZodOptional<z.ZodObject<{
358
+ authorizationUrl: z.ZodOptional<z.ZodString>;
359
+ tokenUrl: z.ZodOptional<z.ZodString>;
360
+ refreshUrl: z.ZodOptional<z.ZodString>;
361
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
362
+ }, "strict", z.ZodTypeAny, {
363
+ scopes: Record<string, string>;
364
+ authorizationUrl?: string | undefined;
365
+ tokenUrl?: string | undefined;
366
+ refreshUrl?: string | undefined;
367
+ }, {
368
+ scopes: Record<string, string>;
369
+ authorizationUrl?: string | undefined;
370
+ tokenUrl?: string | undefined;
371
+ refreshUrl?: string | undefined;
372
+ }>>;
373
+ clientCredentials: z.ZodOptional<z.ZodObject<{
374
+ authorizationUrl: z.ZodOptional<z.ZodString>;
375
+ tokenUrl: z.ZodOptional<z.ZodString>;
376
+ refreshUrl: z.ZodOptional<z.ZodString>;
377
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
378
+ }, "strict", z.ZodTypeAny, {
379
+ scopes: Record<string, string>;
380
+ authorizationUrl?: string | undefined;
381
+ tokenUrl?: string | undefined;
382
+ refreshUrl?: string | undefined;
383
+ }, {
384
+ scopes: Record<string, string>;
385
+ authorizationUrl?: string | undefined;
386
+ tokenUrl?: string | undefined;
387
+ refreshUrl?: string | undefined;
388
+ }>>;
389
+ authorizationCode: z.ZodOptional<z.ZodObject<{
390
+ authorizationUrl: z.ZodOptional<z.ZodString>;
391
+ tokenUrl: z.ZodOptional<z.ZodString>;
392
+ refreshUrl: z.ZodOptional<z.ZodString>;
393
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
394
+ }, "strict", z.ZodTypeAny, {
395
+ scopes: Record<string, string>;
396
+ authorizationUrl?: string | undefined;
397
+ tokenUrl?: string | undefined;
398
+ refreshUrl?: string | undefined;
399
+ }, {
400
+ scopes: Record<string, string>;
401
+ authorizationUrl?: string | undefined;
402
+ tokenUrl?: string | undefined;
403
+ refreshUrl?: string | undefined;
404
+ }>>;
405
+ }, "strict", z.ZodTypeAny, {
406
+ password?: {
407
+ scopes: Record<string, string>;
408
+ authorizationUrl?: string | undefined;
409
+ tokenUrl?: string | undefined;
410
+ refreshUrl?: string | undefined;
411
+ } | undefined;
412
+ implicit?: {
413
+ scopes: Record<string, string>;
414
+ authorizationUrl?: string | undefined;
415
+ tokenUrl?: string | undefined;
416
+ refreshUrl?: string | undefined;
417
+ } | undefined;
418
+ clientCredentials?: {
419
+ scopes: Record<string, string>;
420
+ authorizationUrl?: string | undefined;
421
+ tokenUrl?: string | undefined;
422
+ refreshUrl?: string | undefined;
423
+ } | undefined;
424
+ authorizationCode?: {
425
+ scopes: Record<string, string>;
426
+ authorizationUrl?: string | undefined;
427
+ tokenUrl?: string | undefined;
428
+ refreshUrl?: string | undefined;
429
+ } | undefined;
430
+ }, {
431
+ password?: {
432
+ scopes: Record<string, string>;
433
+ authorizationUrl?: string | undefined;
434
+ tokenUrl?: string | undefined;
435
+ refreshUrl?: string | undefined;
436
+ } | undefined;
437
+ implicit?: {
438
+ scopes: Record<string, string>;
439
+ authorizationUrl?: string | undefined;
440
+ tokenUrl?: string | undefined;
441
+ refreshUrl?: string | undefined;
442
+ } | undefined;
443
+ clientCredentials?: {
444
+ scopes: Record<string, string>;
445
+ authorizationUrl?: string | undefined;
446
+ tokenUrl?: string | undefined;
447
+ refreshUrl?: string | undefined;
448
+ } | undefined;
449
+ authorizationCode?: {
450
+ scopes: Record<string, string>;
451
+ authorizationUrl?: string | undefined;
452
+ tokenUrl?: string | undefined;
453
+ refreshUrl?: string | undefined;
454
+ } | undefined;
455
+ }>;
456
+ description: z.ZodOptional<z.ZodString>;
457
+ }, "strict", z.ZodTypeAny, {
458
+ type: "oauth2";
459
+ flows: {
460
+ password?: {
461
+ scopes: Record<string, string>;
462
+ authorizationUrl?: string | undefined;
463
+ tokenUrl?: string | undefined;
464
+ refreshUrl?: string | undefined;
465
+ } | undefined;
466
+ implicit?: {
467
+ scopes: Record<string, string>;
468
+ authorizationUrl?: string | undefined;
469
+ tokenUrl?: string | undefined;
470
+ refreshUrl?: string | undefined;
471
+ } | undefined;
472
+ clientCredentials?: {
473
+ scopes: Record<string, string>;
474
+ authorizationUrl?: string | undefined;
475
+ tokenUrl?: string | undefined;
476
+ refreshUrl?: string | undefined;
477
+ } | undefined;
478
+ authorizationCode?: {
479
+ scopes: Record<string, string>;
480
+ authorizationUrl?: string | undefined;
481
+ tokenUrl?: string | undefined;
482
+ refreshUrl?: string | undefined;
483
+ } | undefined;
484
+ };
485
+ description?: string | undefined;
486
+ }, {
487
+ type: "oauth2";
488
+ flows: {
489
+ password?: {
490
+ scopes: Record<string, string>;
491
+ authorizationUrl?: string | undefined;
492
+ tokenUrl?: string | undefined;
493
+ refreshUrl?: string | undefined;
494
+ } | undefined;
495
+ implicit?: {
496
+ scopes: Record<string, string>;
497
+ authorizationUrl?: string | undefined;
498
+ tokenUrl?: string | undefined;
499
+ refreshUrl?: string | undefined;
500
+ } | undefined;
501
+ clientCredentials?: {
502
+ scopes: Record<string, string>;
503
+ authorizationUrl?: string | undefined;
504
+ tokenUrl?: string | undefined;
505
+ refreshUrl?: string | undefined;
506
+ } | undefined;
507
+ authorizationCode?: {
508
+ scopes: Record<string, string>;
509
+ authorizationUrl?: string | undefined;
510
+ tokenUrl?: string | undefined;
511
+ refreshUrl?: string | undefined;
512
+ } | undefined;
513
+ };
514
+ description?: string | undefined;
515
+ }>, z.ZodObject<{
516
+ type: z.ZodLiteral<"openIdConnect">;
517
+ openIdConnectUrl: z.ZodString;
518
+ description: z.ZodOptional<z.ZodString>;
519
+ }, "strict", z.ZodTypeAny, {
520
+ type: "openIdConnect";
521
+ openIdConnectUrl: string;
522
+ description?: string | undefined;
523
+ }, {
524
+ type: "openIdConnect";
525
+ openIdConnectUrl: string;
526
+ description?: string | undefined;
527
+ }>, z.ZodObject<{
528
+ type: z.ZodLiteral<"mutualTLS">;
529
+ description: z.ZodOptional<z.ZodString>;
530
+ }, "strict", z.ZodTypeAny, {
531
+ type: "mutualTLS";
532
+ description?: string | undefined;
533
+ }, {
534
+ type: "mutualTLS";
535
+ description?: string | undefined;
536
+ }>]>>>;
537
+ security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>, "many">>;
538
+ supportsAuthenticatedExtendedCard: z.ZodOptional<z.ZodBoolean>;
539
+ signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
540
+ protected: z.ZodString;
541
+ signature: z.ZodString;
542
+ }, "strict", z.ZodTypeAny, {
543
+ protected: string;
544
+ signature: string;
545
+ }, {
546
+ protected: string;
547
+ signature: string;
548
+ }>, "many">>;
549
+ metadata: z.ZodOptional<z.ZodObject<{
550
+ dexto: z.ZodOptional<z.ZodObject<{
551
+ authentication: z.ZodOptional<z.ZodObject<{
552
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
553
+ credentials: z.ZodOptional<z.ZodString>;
554
+ }, "strict", z.ZodTypeAny, {
555
+ schemes: string[];
556
+ credentials?: string | undefined;
557
+ }, {
558
+ schemes?: string[] | undefined;
559
+ credentials?: string | undefined;
560
+ }>>;
561
+ delegation: z.ZodOptional<z.ZodObject<{
562
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
563
+ endpoint: z.ZodString;
564
+ supportsSession: z.ZodBoolean;
565
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
566
+ }, "strict", z.ZodTypeAny, {
567
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
568
+ endpoint: string;
569
+ supportsSession: boolean;
570
+ supportsStreaming?: boolean | undefined;
571
+ }, {
572
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
573
+ endpoint: string;
574
+ supportsSession: boolean;
575
+ supportsStreaming?: boolean | undefined;
576
+ }>>;
577
+ owner: z.ZodOptional<z.ZodObject<{
578
+ userId: z.ZodString;
579
+ username: z.ZodString;
580
+ email: z.ZodOptional<z.ZodString>;
581
+ }, "strict", z.ZodTypeAny, {
582
+ userId: string;
583
+ username: string;
584
+ email?: string | undefined;
585
+ }, {
586
+ userId: string;
587
+ username: string;
588
+ email?: string | undefined;
589
+ }>>;
590
+ }, "strict", z.ZodTypeAny, {
591
+ authentication?: {
592
+ schemes: string[];
593
+ credentials?: string | undefined;
594
+ } | undefined;
595
+ delegation?: {
596
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
597
+ endpoint: string;
598
+ supportsSession: boolean;
599
+ supportsStreaming?: boolean | undefined;
600
+ } | undefined;
601
+ owner?: {
602
+ userId: string;
603
+ username: string;
604
+ email?: string | undefined;
605
+ } | undefined;
606
+ }, {
607
+ authentication?: {
608
+ schemes?: string[] | undefined;
609
+ credentials?: string | undefined;
610
+ } | undefined;
611
+ delegation?: {
612
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
613
+ endpoint: string;
614
+ supportsSession: boolean;
615
+ supportsStreaming?: boolean | undefined;
616
+ } | undefined;
617
+ owner?: {
618
+ userId: string;
619
+ username: string;
620
+ email?: string | undefined;
621
+ } | undefined;
622
+ }>>;
623
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
624
+ dexto: z.ZodOptional<z.ZodObject<{
625
+ authentication: z.ZodOptional<z.ZodObject<{
626
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
627
+ credentials: z.ZodOptional<z.ZodString>;
628
+ }, "strict", z.ZodTypeAny, {
629
+ schemes: string[];
630
+ credentials?: string | undefined;
631
+ }, {
632
+ schemes?: string[] | undefined;
633
+ credentials?: string | undefined;
634
+ }>>;
635
+ delegation: z.ZodOptional<z.ZodObject<{
636
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
637
+ endpoint: z.ZodString;
638
+ supportsSession: z.ZodBoolean;
639
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
640
+ }, "strict", z.ZodTypeAny, {
641
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
642
+ endpoint: string;
643
+ supportsSession: boolean;
644
+ supportsStreaming?: boolean | undefined;
645
+ }, {
646
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
647
+ endpoint: string;
648
+ supportsSession: boolean;
649
+ supportsStreaming?: boolean | undefined;
650
+ }>>;
651
+ owner: z.ZodOptional<z.ZodObject<{
652
+ userId: z.ZodString;
653
+ username: z.ZodString;
654
+ email: z.ZodOptional<z.ZodString>;
655
+ }, "strict", z.ZodTypeAny, {
656
+ userId: string;
657
+ username: string;
658
+ email?: string | undefined;
659
+ }, {
660
+ userId: string;
661
+ username: string;
662
+ email?: string | undefined;
663
+ }>>;
664
+ }, "strict", z.ZodTypeAny, {
665
+ authentication?: {
666
+ schemes: string[];
667
+ credentials?: string | undefined;
668
+ } | undefined;
669
+ delegation?: {
670
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
671
+ endpoint: string;
672
+ supportsSession: boolean;
673
+ supportsStreaming?: boolean | undefined;
674
+ } | undefined;
675
+ owner?: {
676
+ userId: string;
677
+ username: string;
678
+ email?: string | undefined;
679
+ } | undefined;
680
+ }, {
681
+ authentication?: {
682
+ schemes?: string[] | undefined;
683
+ credentials?: string | undefined;
684
+ } | undefined;
685
+ delegation?: {
686
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
687
+ endpoint: string;
688
+ supportsSession: boolean;
689
+ supportsStreaming?: boolean | undefined;
690
+ } | undefined;
691
+ owner?: {
692
+ userId: string;
693
+ username: string;
694
+ email?: string | undefined;
695
+ } | undefined;
696
+ }>>;
697
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
698
+ dexto: z.ZodOptional<z.ZodObject<{
699
+ authentication: z.ZodOptional<z.ZodObject<{
700
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
701
+ credentials: z.ZodOptional<z.ZodString>;
702
+ }, "strict", z.ZodTypeAny, {
703
+ schemes: string[];
704
+ credentials?: string | undefined;
705
+ }, {
706
+ schemes?: string[] | undefined;
707
+ credentials?: string | undefined;
708
+ }>>;
709
+ delegation: z.ZodOptional<z.ZodObject<{
710
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
711
+ endpoint: z.ZodString;
712
+ supportsSession: z.ZodBoolean;
713
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
714
+ }, "strict", z.ZodTypeAny, {
715
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
716
+ endpoint: string;
717
+ supportsSession: boolean;
718
+ supportsStreaming?: boolean | undefined;
719
+ }, {
720
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
721
+ endpoint: string;
722
+ supportsSession: boolean;
723
+ supportsStreaming?: boolean | undefined;
724
+ }>>;
725
+ owner: z.ZodOptional<z.ZodObject<{
726
+ userId: z.ZodString;
727
+ username: z.ZodString;
728
+ email: z.ZodOptional<z.ZodString>;
729
+ }, "strict", z.ZodTypeAny, {
730
+ userId: string;
731
+ username: string;
732
+ email?: string | undefined;
733
+ }, {
734
+ userId: string;
735
+ username: string;
736
+ email?: string | undefined;
737
+ }>>;
738
+ }, "strict", z.ZodTypeAny, {
739
+ authentication?: {
740
+ schemes: string[];
741
+ credentials?: string | undefined;
742
+ } | undefined;
743
+ delegation?: {
744
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
745
+ endpoint: string;
746
+ supportsSession: boolean;
747
+ supportsStreaming?: boolean | undefined;
748
+ } | undefined;
749
+ owner?: {
750
+ userId: string;
751
+ username: string;
752
+ email?: string | undefined;
753
+ } | undefined;
754
+ }, {
755
+ authentication?: {
756
+ schemes?: string[] | undefined;
757
+ credentials?: string | undefined;
758
+ } | undefined;
759
+ delegation?: {
760
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
761
+ endpoint: string;
762
+ supportsSession: boolean;
763
+ supportsStreaming?: boolean | undefined;
764
+ } | undefined;
765
+ owner?: {
766
+ userId: string;
767
+ username: string;
768
+ email?: string | undefined;
769
+ } | undefined;
770
+ }>>;
771
+ }, z.ZodTypeAny, "passthrough">>>;
772
+ }, "strict", z.ZodTypeAny, {
773
+ description: string;
774
+ name: string;
775
+ url: string;
776
+ version: string;
777
+ protocolVersion: string;
778
+ preferredTransport: "JSONRPC" | "GRPC" | "HTTP+JSON";
779
+ defaultInputModes: string[];
780
+ defaultOutputModes: string[];
781
+ skills: {
782
+ description: string;
783
+ name: string;
784
+ id: string;
785
+ tags: string[];
786
+ inputModes: string[];
787
+ outputModes: string[];
788
+ examples?: string[] | undefined;
789
+ }[];
790
+ capabilities: {
791
+ streaming: boolean;
792
+ stateTransitionHistory: boolean;
793
+ pushNotifications?: boolean | undefined;
794
+ };
795
+ provider?: {
796
+ url: string;
797
+ organization: string;
798
+ } | undefined;
799
+ metadata?: z.objectOutputType<{
800
+ dexto: z.ZodOptional<z.ZodObject<{
801
+ authentication: z.ZodOptional<z.ZodObject<{
802
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
803
+ credentials: z.ZodOptional<z.ZodString>;
804
+ }, "strict", z.ZodTypeAny, {
805
+ schemes: string[];
806
+ credentials?: string | undefined;
807
+ }, {
808
+ schemes?: string[] | undefined;
809
+ credentials?: string | undefined;
810
+ }>>;
811
+ delegation: z.ZodOptional<z.ZodObject<{
812
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
813
+ endpoint: z.ZodString;
814
+ supportsSession: z.ZodBoolean;
815
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
816
+ }, "strict", z.ZodTypeAny, {
817
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
818
+ endpoint: string;
819
+ supportsSession: boolean;
820
+ supportsStreaming?: boolean | undefined;
821
+ }, {
822
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
823
+ endpoint: string;
824
+ supportsSession: boolean;
825
+ supportsStreaming?: boolean | undefined;
826
+ }>>;
827
+ owner: z.ZodOptional<z.ZodObject<{
828
+ userId: z.ZodString;
829
+ username: z.ZodString;
830
+ email: z.ZodOptional<z.ZodString>;
831
+ }, "strict", z.ZodTypeAny, {
832
+ userId: string;
833
+ username: string;
834
+ email?: string | undefined;
835
+ }, {
836
+ userId: string;
837
+ username: string;
838
+ email?: string | undefined;
839
+ }>>;
840
+ }, "strict", z.ZodTypeAny, {
841
+ authentication?: {
842
+ schemes: string[];
843
+ credentials?: string | undefined;
844
+ } | undefined;
845
+ delegation?: {
846
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
847
+ endpoint: string;
848
+ supportsSession: boolean;
849
+ supportsStreaming?: boolean | undefined;
850
+ } | undefined;
851
+ owner?: {
852
+ userId: string;
853
+ username: string;
854
+ email?: string | undefined;
855
+ } | undefined;
856
+ }, {
857
+ authentication?: {
858
+ schemes?: string[] | undefined;
859
+ credentials?: string | undefined;
860
+ } | undefined;
861
+ delegation?: {
862
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
863
+ endpoint: string;
864
+ supportsSession: boolean;
865
+ supportsStreaming?: boolean | undefined;
866
+ } | undefined;
867
+ owner?: {
868
+ userId: string;
869
+ username: string;
870
+ email?: string | undefined;
871
+ } | undefined;
872
+ }>>;
873
+ }, z.ZodTypeAny, "passthrough"> | undefined;
874
+ iconUrl?: string | undefined;
875
+ documentationUrl?: string | undefined;
876
+ additionalInterfaces?: {
877
+ url: string;
878
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
879
+ }[] | undefined;
880
+ securitySchemes?: Record<string, {
881
+ type: "apiKey";
882
+ name: string;
883
+ in: "query" | "header" | "cookie";
884
+ description?: string | undefined;
885
+ } | {
886
+ type: "http";
887
+ scheme: string;
888
+ description?: string | undefined;
889
+ bearerFormat?: string | undefined;
890
+ } | {
891
+ type: "oauth2";
892
+ flows: {
893
+ password?: {
894
+ scopes: Record<string, string>;
895
+ authorizationUrl?: string | undefined;
896
+ tokenUrl?: string | undefined;
897
+ refreshUrl?: string | undefined;
898
+ } | undefined;
899
+ implicit?: {
900
+ scopes: Record<string, string>;
901
+ authorizationUrl?: string | undefined;
902
+ tokenUrl?: string | undefined;
903
+ refreshUrl?: string | undefined;
904
+ } | undefined;
905
+ clientCredentials?: {
906
+ scopes: Record<string, string>;
907
+ authorizationUrl?: string | undefined;
908
+ tokenUrl?: string | undefined;
909
+ refreshUrl?: string | undefined;
910
+ } | undefined;
911
+ authorizationCode?: {
912
+ scopes: Record<string, string>;
913
+ authorizationUrl?: string | undefined;
914
+ tokenUrl?: string | undefined;
915
+ refreshUrl?: string | undefined;
916
+ } | undefined;
917
+ };
918
+ description?: string | undefined;
919
+ } | {
920
+ type: "openIdConnect";
921
+ openIdConnectUrl: string;
922
+ description?: string | undefined;
923
+ } | {
924
+ type: "mutualTLS";
925
+ description?: string | undefined;
926
+ }> | undefined;
927
+ security?: Record<string, string[]>[] | undefined;
928
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
929
+ signatures?: {
930
+ protected: string;
931
+ signature: string;
932
+ }[] | undefined;
933
+ }, {
934
+ description: string;
935
+ name: string;
936
+ url: string;
937
+ version: string;
938
+ provider?: {
939
+ url: string;
940
+ organization: string;
941
+ } | undefined;
942
+ metadata?: z.objectInputType<{
943
+ dexto: z.ZodOptional<z.ZodObject<{
944
+ authentication: z.ZodOptional<z.ZodObject<{
945
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
946
+ credentials: z.ZodOptional<z.ZodString>;
947
+ }, "strict", z.ZodTypeAny, {
948
+ schemes: string[];
949
+ credentials?: string | undefined;
950
+ }, {
951
+ schemes?: string[] | undefined;
952
+ credentials?: string | undefined;
953
+ }>>;
954
+ delegation: z.ZodOptional<z.ZodObject<{
955
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
956
+ endpoint: z.ZodString;
957
+ supportsSession: z.ZodBoolean;
958
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
959
+ }, "strict", z.ZodTypeAny, {
960
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
961
+ endpoint: string;
962
+ supportsSession: boolean;
963
+ supportsStreaming?: boolean | undefined;
964
+ }, {
965
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
966
+ endpoint: string;
967
+ supportsSession: boolean;
968
+ supportsStreaming?: boolean | undefined;
969
+ }>>;
970
+ owner: z.ZodOptional<z.ZodObject<{
971
+ userId: z.ZodString;
972
+ username: z.ZodString;
973
+ email: z.ZodOptional<z.ZodString>;
974
+ }, "strict", z.ZodTypeAny, {
975
+ userId: string;
976
+ username: string;
977
+ email?: string | undefined;
978
+ }, {
979
+ userId: string;
980
+ username: string;
981
+ email?: string | undefined;
982
+ }>>;
983
+ }, "strict", z.ZodTypeAny, {
984
+ authentication?: {
985
+ schemes: string[];
986
+ credentials?: string | undefined;
987
+ } | undefined;
988
+ delegation?: {
989
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
990
+ endpoint: string;
991
+ supportsSession: boolean;
992
+ supportsStreaming?: boolean | undefined;
993
+ } | undefined;
994
+ owner?: {
995
+ userId: string;
996
+ username: string;
997
+ email?: string | undefined;
998
+ } | undefined;
999
+ }, {
1000
+ authentication?: {
1001
+ schemes?: string[] | undefined;
1002
+ credentials?: string | undefined;
1003
+ } | undefined;
1004
+ delegation?: {
1005
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1006
+ endpoint: string;
1007
+ supportsSession: boolean;
1008
+ supportsStreaming?: boolean | undefined;
1009
+ } | undefined;
1010
+ owner?: {
1011
+ userId: string;
1012
+ username: string;
1013
+ email?: string | undefined;
1014
+ } | undefined;
1015
+ }>>;
1016
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1017
+ protocolVersion?: string | undefined;
1018
+ preferredTransport?: "JSONRPC" | "GRPC" | "HTTP+JSON" | undefined;
1019
+ defaultInputModes?: string[] | undefined;
1020
+ defaultOutputModes?: string[] | undefined;
1021
+ skills?: {
1022
+ description: string;
1023
+ name: string;
1024
+ id: string;
1025
+ tags: string[];
1026
+ examples?: string[] | undefined;
1027
+ inputModes?: string[] | undefined;
1028
+ outputModes?: string[] | undefined;
1029
+ }[] | undefined;
1030
+ iconUrl?: string | undefined;
1031
+ documentationUrl?: string | undefined;
1032
+ additionalInterfaces?: {
1033
+ url: string;
1034
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
1035
+ }[] | undefined;
1036
+ capabilities?: {
1037
+ streaming?: boolean | undefined;
1038
+ pushNotifications?: boolean | undefined;
1039
+ stateTransitionHistory?: boolean | undefined;
1040
+ } | undefined;
1041
+ securitySchemes?: Record<string, {
1042
+ type: "apiKey";
1043
+ name: string;
1044
+ in: "query" | "header" | "cookie";
1045
+ description?: string | undefined;
1046
+ } | {
1047
+ type: "http";
1048
+ scheme: string;
1049
+ description?: string | undefined;
1050
+ bearerFormat?: string | undefined;
1051
+ } | {
1052
+ type: "oauth2";
1053
+ flows: {
1054
+ password?: {
1055
+ scopes: Record<string, string>;
1056
+ authorizationUrl?: string | undefined;
1057
+ tokenUrl?: string | undefined;
1058
+ refreshUrl?: string | undefined;
1059
+ } | undefined;
1060
+ implicit?: {
1061
+ scopes: Record<string, string>;
1062
+ authorizationUrl?: string | undefined;
1063
+ tokenUrl?: string | undefined;
1064
+ refreshUrl?: string | undefined;
1065
+ } | undefined;
1066
+ clientCredentials?: {
1067
+ scopes: Record<string, string>;
1068
+ authorizationUrl?: string | undefined;
1069
+ tokenUrl?: string | undefined;
1070
+ refreshUrl?: string | undefined;
1071
+ } | undefined;
1072
+ authorizationCode?: {
1073
+ scopes: Record<string, string>;
1074
+ authorizationUrl?: string | undefined;
1075
+ tokenUrl?: string | undefined;
1076
+ refreshUrl?: string | undefined;
1077
+ } | undefined;
1078
+ };
1079
+ description?: string | undefined;
1080
+ } | {
1081
+ type: "openIdConnect";
1082
+ openIdConnectUrl: string;
1083
+ description?: string | undefined;
1084
+ } | {
1085
+ type: "mutualTLS";
1086
+ description?: string | undefined;
1087
+ }> | undefined;
1088
+ security?: Record<string, string[]>[] | undefined;
1089
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
1090
+ signatures?: {
1091
+ protected: string;
1092
+ signature: string;
1093
+ }[] | undefined;
1094
+ }>>;
1095
+ greeting: z.ZodOptional<z.ZodString>;
1096
+ telemetry: z.ZodOptional<z.ZodObject<{
1097
+ serviceName: z.ZodOptional<z.ZodString>;
1098
+ enabled: z.ZodOptional<z.ZodBoolean>;
1099
+ tracerName: z.ZodOptional<z.ZodString>;
1100
+ export: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1101
+ type: z.ZodLiteral<"otlp">;
1102
+ protocol: z.ZodOptional<z.ZodEnum<["grpc", "http"]>>;
1103
+ endpoint: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1104
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1105
+ }, "strip", z.ZodTypeAny, {
1106
+ type: "otlp";
1107
+ headers?: Record<string, string> | undefined;
1108
+ protocol?: "http" | "grpc" | undefined;
1109
+ endpoint?: string | undefined;
1110
+ }, {
1111
+ type: "otlp";
1112
+ headers?: Record<string, string> | undefined;
1113
+ protocol?: "http" | "grpc" | undefined;
1114
+ endpoint?: string | undefined;
1115
+ }>, z.ZodObject<{
1116
+ type: z.ZodLiteral<"console">;
1117
+ }, "strip", z.ZodTypeAny, {
1118
+ type: "console";
1119
+ }, {
1120
+ type: "console";
1121
+ }>]>>;
1122
+ }, "strip", z.ZodTypeAny, {
1123
+ enabled?: boolean | undefined;
1124
+ serviceName?: string | undefined;
1125
+ tracerName?: string | undefined;
1126
+ export?: {
1127
+ type: "otlp";
1128
+ headers?: Record<string, string> | undefined;
1129
+ protocol?: "http" | "grpc" | undefined;
1130
+ endpoint?: string | undefined;
1131
+ } | {
1132
+ type: "console";
1133
+ } | undefined;
1134
+ }, {
1135
+ enabled?: boolean | undefined;
1136
+ serviceName?: string | undefined;
1137
+ tracerName?: string | undefined;
1138
+ export?: {
1139
+ type: "otlp";
1140
+ headers?: Record<string, string> | undefined;
1141
+ protocol?: "http" | "grpc" | undefined;
1142
+ endpoint?: string | undefined;
1143
+ } | {
1144
+ type: "console";
1145
+ } | undefined;
1146
+ }>>;
1147
+ memories: z.ZodOptional<z.ZodObject<{
1148
+ enabled: z.ZodDefault<z.ZodBoolean>;
1149
+ priority: z.ZodDefault<z.ZodNumber>;
1150
+ includeTimestamps: z.ZodDefault<z.ZodBoolean>;
1151
+ includeTags: z.ZodDefault<z.ZodBoolean>;
1152
+ limit: z.ZodOptional<z.ZodNumber>;
1153
+ pinnedOnly: z.ZodDefault<z.ZodBoolean>;
1154
+ }, "strict", z.ZodTypeAny, {
1155
+ enabled: boolean;
1156
+ priority: number;
1157
+ includeTimestamps: boolean;
1158
+ includeTags: boolean;
1159
+ pinnedOnly: boolean;
1160
+ limit?: number | undefined;
1161
+ }, {
1162
+ enabled?: boolean | undefined;
1163
+ priority?: number | undefined;
1164
+ limit?: number | undefined;
1165
+ includeTimestamps?: boolean | undefined;
1166
+ includeTags?: boolean | undefined;
1167
+ pinnedOnly?: boolean | undefined;
1168
+ }>>;
1169
+ agentFile: z.ZodDefault<z.ZodObject<{
1170
+ discoverInCwd: z.ZodDefault<z.ZodBoolean>;
1171
+ }, "strict", z.ZodTypeAny, {
1172
+ discoverInCwd: boolean;
1173
+ }, {
1174
+ discoverInCwd?: boolean | undefined;
1175
+ }>>;
1176
+ image: z.ZodOptional<z.ZodString>;
1177
+ agentId: z.ZodDefault<z.ZodString>;
1178
+ mcpServers: z.ZodDefault<z.ZodBranded<z.ZodRecord<z.ZodString, z.ZodBranded<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1179
+ type: z.ZodLiteral<"stdio">;
1180
+ enabled: z.ZodDefault<z.ZodBoolean>;
1181
+ command: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1182
+ args: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1183
+ env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
1184
+ timeout: z.ZodDefault<z.ZodNumber>;
1185
+ connectionMode: z.ZodDefault<z.ZodEnum<["strict", "lenient"]>>;
1186
+ }, "strict", z.ZodTypeAny, {
1187
+ timeout: number;
1188
+ type: "stdio";
1189
+ enabled: boolean;
1190
+ command: string;
1191
+ args: string[];
1192
+ env: Record<string, string>;
1193
+ connectionMode: "strict" | "lenient";
1194
+ }, {
1195
+ type: "stdio";
1196
+ command: string;
1197
+ timeout?: number | undefined;
1198
+ enabled?: boolean | undefined;
1199
+ args?: string[] | undefined;
1200
+ env?: Record<string, string> | undefined;
1201
+ connectionMode?: "strict" | "lenient" | undefined;
1202
+ }>, z.ZodObject<{
1203
+ type: z.ZodLiteral<"sse">;
1204
+ enabled: z.ZodDefault<z.ZodBoolean>;
1205
+ url: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1206
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
1207
+ timeout: z.ZodDefault<z.ZodNumber>;
1208
+ connectionMode: z.ZodDefault<z.ZodEnum<["strict", "lenient"]>>;
1209
+ }, "strict", z.ZodTypeAny, {
1210
+ timeout: number;
1211
+ type: "sse";
1212
+ enabled: boolean;
1213
+ connectionMode: "strict" | "lenient";
1214
+ url: string;
1215
+ headers: Record<string, string>;
1216
+ }, {
1217
+ type: "sse";
1218
+ url: string;
1219
+ timeout?: number | undefined;
1220
+ enabled?: boolean | undefined;
1221
+ connectionMode?: "strict" | "lenient" | undefined;
1222
+ headers?: Record<string, string> | undefined;
1223
+ }>, z.ZodObject<{
1224
+ type: z.ZodLiteral<"http">;
1225
+ enabled: z.ZodDefault<z.ZodBoolean>;
1226
+ url: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1227
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
1228
+ timeout: z.ZodDefault<z.ZodNumber>;
1229
+ connectionMode: z.ZodDefault<z.ZodEnum<["strict", "lenient"]>>;
1230
+ }, "strict", z.ZodTypeAny, {
1231
+ timeout: number;
1232
+ type: "http";
1233
+ enabled: boolean;
1234
+ connectionMode: "strict" | "lenient";
1235
+ url: string;
1236
+ headers: Record<string, string>;
1237
+ }, {
1238
+ type: "http";
1239
+ url: string;
1240
+ timeout?: number | undefined;
1241
+ enabled?: boolean | undefined;
1242
+ connectionMode?: "strict" | "lenient" | undefined;
1243
+ headers?: Record<string, string> | undefined;
1244
+ }>]>, {
1245
+ timeout: number;
1246
+ type: "stdio";
1247
+ enabled: boolean;
1248
+ command: string;
1249
+ args: string[];
1250
+ env: Record<string, string>;
1251
+ connectionMode: "strict" | "lenient";
1252
+ } | {
1253
+ timeout: number;
1254
+ type: "sse";
1255
+ enabled: boolean;
1256
+ connectionMode: "strict" | "lenient";
1257
+ url: string;
1258
+ headers: Record<string, string>;
1259
+ } | {
1260
+ timeout: number;
1261
+ type: "http";
1262
+ enabled: boolean;
1263
+ connectionMode: "strict" | "lenient";
1264
+ url: string;
1265
+ headers: Record<string, string>;
1266
+ }, {
1267
+ type: "stdio";
1268
+ command: string;
1269
+ timeout?: number | undefined;
1270
+ enabled?: boolean | undefined;
1271
+ args?: string[] | undefined;
1272
+ env?: Record<string, string> | undefined;
1273
+ connectionMode?: "strict" | "lenient" | undefined;
1274
+ } | {
1275
+ type: "sse";
1276
+ url: string;
1277
+ timeout?: number | undefined;
1278
+ enabled?: boolean | undefined;
1279
+ connectionMode?: "strict" | "lenient" | undefined;
1280
+ headers?: Record<string, string> | undefined;
1281
+ } | {
1282
+ type: "http";
1283
+ url: string;
1284
+ timeout?: number | undefined;
1285
+ enabled?: boolean | undefined;
1286
+ connectionMode?: "strict" | "lenient" | undefined;
1287
+ headers?: Record<string, string> | undefined;
1288
+ }>, "ValidatedMcpServerConfig">>, "ValidatedServersConfig">>;
1289
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
1290
+ type: z.ZodString;
1291
+ enabled: z.ZodOptional<z.ZodBoolean>;
1292
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1293
+ type: z.ZodString;
1294
+ enabled: z.ZodOptional<z.ZodBoolean>;
1295
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1296
+ type: z.ZodString;
1297
+ enabled: z.ZodOptional<z.ZodBoolean>;
1298
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1299
+ logger: z.ZodDefault<z.ZodObject<{
1300
+ level: z.ZodDefault<z.ZodEnum<["debug", "info", "warn", "error", "silly"]>>;
1301
+ transports: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1302
+ type: z.ZodLiteral<"silent">;
1303
+ }, "strict", z.ZodTypeAny, {
1304
+ type: "silent";
1305
+ }, {
1306
+ type: "silent";
1307
+ }>, z.ZodObject<{
1308
+ type: z.ZodLiteral<"console">;
1309
+ colorize: z.ZodDefault<z.ZodBoolean>;
1310
+ }, "strict", z.ZodTypeAny, {
1311
+ type: "console";
1312
+ colorize: boolean;
1313
+ }, {
1314
+ type: "console";
1315
+ colorize?: boolean | undefined;
1316
+ }>, z.ZodObject<{
1317
+ type: z.ZodLiteral<"file">;
1318
+ path: z.ZodString;
1319
+ maxSize: z.ZodDefault<z.ZodNumber>;
1320
+ maxFiles: z.ZodDefault<z.ZodNumber>;
1321
+ }, "strict", z.ZodTypeAny, {
1322
+ path: string;
1323
+ type: "file";
1324
+ maxSize: number;
1325
+ maxFiles: number;
1326
+ }, {
1327
+ path: string;
1328
+ type: "file";
1329
+ maxSize?: number | undefined;
1330
+ maxFiles?: number | undefined;
1331
+ }>, z.ZodObject<{
1332
+ type: z.ZodLiteral<"upstash">;
1333
+ url: z.ZodString;
1334
+ token: z.ZodString;
1335
+ listName: z.ZodDefault<z.ZodString>;
1336
+ maxListLength: z.ZodDefault<z.ZodNumber>;
1337
+ batchSize: z.ZodDefault<z.ZodNumber>;
1338
+ }, "strict", z.ZodTypeAny, {
1339
+ token: string;
1340
+ type: "upstash";
1341
+ url: string;
1342
+ batchSize: number;
1343
+ listName: string;
1344
+ maxListLength: number;
1345
+ }, {
1346
+ token: string;
1347
+ type: "upstash";
1348
+ url: string;
1349
+ batchSize?: number | undefined;
1350
+ listName?: string | undefined;
1351
+ maxListLength?: number | undefined;
1352
+ }>]>, "many">>;
1353
+ }, "strict", z.ZodTypeAny, {
1354
+ level: "debug" | "info" | "warn" | "error" | "silly";
1355
+ transports: ({
1356
+ type: "silent";
1357
+ } | {
1358
+ type: "console";
1359
+ colorize: boolean;
1360
+ } | {
1361
+ path: string;
1362
+ type: "file";
1363
+ maxSize: number;
1364
+ maxFiles: number;
1365
+ } | {
1366
+ token: string;
1367
+ type: "upstash";
1368
+ url: string;
1369
+ batchSize: number;
1370
+ listName: string;
1371
+ maxListLength: number;
1372
+ })[];
1373
+ }, {
1374
+ level?: "debug" | "info" | "warn" | "error" | "silly" | undefined;
1375
+ transports?: ({
1376
+ type: "silent";
1377
+ } | {
1378
+ type: "console";
1379
+ colorize?: boolean | undefined;
1380
+ } | {
1381
+ path: string;
1382
+ type: "file";
1383
+ maxSize?: number | undefined;
1384
+ maxFiles?: number | undefined;
1385
+ } | {
1386
+ token: string;
1387
+ type: "upstash";
1388
+ url: string;
1389
+ batchSize?: number | undefined;
1390
+ listName?: string | undefined;
1391
+ maxListLength?: number | undefined;
1392
+ })[] | undefined;
1393
+ }>>;
1394
+ storage: z.ZodDefault<z.ZodBranded<z.ZodObject<{
1395
+ cache: z.ZodObject<{
1396
+ type: z.ZodString;
1397
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1398
+ type: z.ZodString;
1399
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1400
+ type: z.ZodString;
1401
+ }, z.ZodTypeAny, "passthrough">>;
1402
+ database: z.ZodObject<{
1403
+ type: z.ZodString;
1404
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1405
+ type: z.ZodString;
1406
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1407
+ type: z.ZodString;
1408
+ }, z.ZodTypeAny, "passthrough">>;
1409
+ blob: z.ZodObject<{
1410
+ type: z.ZodString;
1411
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1412
+ type: z.ZodString;
1413
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1414
+ type: z.ZodString;
1415
+ }, z.ZodTypeAny, "passthrough">>;
1416
+ }, "strict", z.ZodTypeAny, {
1417
+ database: {
1418
+ type: string;
1419
+ } & {
1420
+ [k: string]: unknown;
1421
+ };
1422
+ cache: {
1423
+ type: string;
1424
+ } & {
1425
+ [k: string]: unknown;
1426
+ };
1427
+ blob: {
1428
+ type: string;
1429
+ } & {
1430
+ [k: string]: unknown;
1431
+ };
1432
+ }, {
1433
+ database: {
1434
+ type: string;
1435
+ } & {
1436
+ [k: string]: unknown;
1437
+ };
1438
+ cache: {
1439
+ type: string;
1440
+ } & {
1441
+ [k: string]: unknown;
1442
+ };
1443
+ blob: {
1444
+ type: string;
1445
+ } & {
1446
+ [k: string]: unknown;
1447
+ };
1448
+ }>, "ValidatedStorageConfig">>;
1449
+ sessions: z.ZodDefault<z.ZodObject<{
1450
+ maxSessions: z.ZodDefault<z.ZodNumber>;
1451
+ sessionTTL: z.ZodDefault<z.ZodNumber>;
1452
+ }, "strict", z.ZodTypeAny, {
1453
+ maxSessions: number;
1454
+ sessionTTL: number;
1455
+ }, {
1456
+ maxSessions?: number | undefined;
1457
+ sessionTTL?: number | undefined;
1458
+ }>>;
1459
+ permissions: z.ZodDefault<z.ZodObject<{
1460
+ mode: z.ZodDefault<z.ZodEnum<["manual", "auto-approve", "auto-deny"]>>;
1461
+ timeout: z.ZodOptional<z.ZodNumber>;
1462
+ allowedToolsStorage: z.ZodDefault<z.ZodEnum<["memory", "storage"]>>;
1463
+ toolPolicies: z.ZodDefault<z.ZodObject<{
1464
+ alwaysAllow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1465
+ alwaysDeny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1466
+ }, "strict", z.ZodTypeAny, {
1467
+ alwaysAllow: string[];
1468
+ alwaysDeny: string[];
1469
+ }, {
1470
+ alwaysAllow?: string[] | undefined;
1471
+ alwaysDeny?: string[] | undefined;
1472
+ }>>;
1473
+ }, "strict", z.ZodTypeAny, {
1474
+ mode: "manual" | "auto-approve" | "auto-deny";
1475
+ allowedToolsStorage: "storage" | "memory";
1476
+ toolPolicies: {
1477
+ alwaysAllow: string[];
1478
+ alwaysDeny: string[];
1479
+ };
1480
+ timeout?: number | undefined;
1481
+ }, {
1482
+ timeout?: number | undefined;
1483
+ mode?: "manual" | "auto-approve" | "auto-deny" | undefined;
1484
+ allowedToolsStorage?: "storage" | "memory" | undefined;
1485
+ toolPolicies?: {
1486
+ alwaysAllow?: string[] | undefined;
1487
+ alwaysDeny?: string[] | undefined;
1488
+ } | undefined;
1489
+ }>>;
1490
+ elicitation: z.ZodDefault<z.ZodObject<{
1491
+ enabled: z.ZodDefault<z.ZodBoolean>;
1492
+ timeout: z.ZodOptional<z.ZodNumber>;
1493
+ }, "strict", z.ZodTypeAny, {
1494
+ enabled: boolean;
1495
+ timeout?: number | undefined;
1496
+ }, {
1497
+ timeout?: number | undefined;
1498
+ enabled?: boolean | undefined;
1499
+ }>>;
1500
+ resources: z.ZodDefault<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1501
+ type: z.ZodLiteral<"filesystem">;
1502
+ paths: z.ZodArray<z.ZodString, "many">;
1503
+ maxDepth: z.ZodDefault<z.ZodNumber>;
1504
+ maxFiles: z.ZodDefault<z.ZodNumber>;
1505
+ includeHidden: z.ZodDefault<z.ZodBoolean>;
1506
+ includeExtensions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1507
+ }, "strict", z.ZodTypeAny, {
1508
+ type: "filesystem";
1509
+ maxFiles: number;
1510
+ paths: string[];
1511
+ maxDepth: number;
1512
+ includeHidden: boolean;
1513
+ includeExtensions: string[];
1514
+ }, {
1515
+ type: "filesystem";
1516
+ paths: string[];
1517
+ maxFiles?: number | undefined;
1518
+ maxDepth?: number | undefined;
1519
+ includeHidden?: boolean | undefined;
1520
+ includeExtensions?: string[] | undefined;
1521
+ }>, z.ZodObject<{
1522
+ type: z.ZodLiteral<"blob">;
1523
+ }, "strict", z.ZodTypeAny, {
1524
+ type: "blob";
1525
+ }, {
1526
+ type: "blob";
1527
+ }>]>, "many">>>;
1528
+ prompts: z.ZodDefault<z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1529
+ type: z.ZodLiteral<"inline">;
1530
+ id: z.ZodString;
1531
+ title: z.ZodOptional<z.ZodString>;
1532
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1533
+ prompt: z.ZodString;
1534
+ category: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1535
+ priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1536
+ showInStarters: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1537
+ 'disable-model-invocation': z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1538
+ 'user-invocable': z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1539
+ 'allowed-tools': z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1540
+ model: z.ZodOptional<z.ZodString>;
1541
+ context: z.ZodDefault<z.ZodOptional<z.ZodEnum<["inline", "fork"]>>>;
1542
+ agent: z.ZodOptional<z.ZodString>;
1543
+ }, "strict", z.ZodTypeAny, {
1544
+ context: "inline" | "fork";
1545
+ prompt: string;
1546
+ description: string;
1547
+ type: "inline";
1548
+ id: string;
1549
+ priority: number;
1550
+ category: string;
1551
+ showInStarters: boolean;
1552
+ 'disable-model-invocation': boolean;
1553
+ 'user-invocable': boolean;
1554
+ agent?: string | undefined;
1555
+ model?: string | undefined;
1556
+ title?: string | undefined;
1557
+ 'allowed-tools'?: string[] | undefined;
1558
+ }, {
1559
+ prompt: string;
1560
+ type: "inline";
1561
+ id: string;
1562
+ agent?: string | undefined;
1563
+ context?: "inline" | "fork" | undefined;
1564
+ description?: string | undefined;
1565
+ model?: string | undefined;
1566
+ priority?: number | undefined;
1567
+ title?: string | undefined;
1568
+ category?: string | undefined;
1569
+ showInStarters?: boolean | undefined;
1570
+ 'disable-model-invocation'?: boolean | undefined;
1571
+ 'user-invocable'?: boolean | undefined;
1572
+ 'allowed-tools'?: string[] | undefined;
1573
+ }>, z.ZodObject<{
1574
+ type: z.ZodLiteral<"file">;
1575
+ file: z.ZodString;
1576
+ showInStarters: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1577
+ 'disable-model-invocation': z.ZodOptional<z.ZodBoolean>;
1578
+ 'user-invocable': z.ZodOptional<z.ZodBoolean>;
1579
+ 'allowed-tools': z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1580
+ model: z.ZodOptional<z.ZodString>;
1581
+ context: z.ZodOptional<z.ZodEnum<["inline", "fork"]>>;
1582
+ agent: z.ZodOptional<z.ZodString>;
1583
+ namespace: z.ZodOptional<z.ZodString>;
1584
+ }, "strict", z.ZodTypeAny, {
1585
+ file: string;
1586
+ type: "file";
1587
+ showInStarters: boolean;
1588
+ agent?: string | undefined;
1589
+ context?: "inline" | "fork" | undefined;
1590
+ model?: string | undefined;
1591
+ 'disable-model-invocation'?: boolean | undefined;
1592
+ 'user-invocable'?: boolean | undefined;
1593
+ 'allowed-tools'?: string[] | undefined;
1594
+ namespace?: string | undefined;
1595
+ }, {
1596
+ file: string;
1597
+ type: "file";
1598
+ agent?: string | undefined;
1599
+ context?: "inline" | "fork" | undefined;
1600
+ model?: string | undefined;
1601
+ showInStarters?: boolean | undefined;
1602
+ 'disable-model-invocation'?: boolean | undefined;
1603
+ 'user-invocable'?: boolean | undefined;
1604
+ 'allowed-tools'?: string[] | undefined;
1605
+ namespace?: string | undefined;
1606
+ }>]>, "many">, ({
1607
+ context: "inline" | "fork";
1608
+ prompt: string;
1609
+ description: string;
1610
+ type: "inline";
1611
+ id: string;
1612
+ priority: number;
1613
+ category: string;
1614
+ showInStarters: boolean;
1615
+ 'disable-model-invocation': boolean;
1616
+ 'user-invocable': boolean;
1617
+ agent?: string | undefined;
1618
+ model?: string | undefined;
1619
+ title?: string | undefined;
1620
+ 'allowed-tools'?: string[] | undefined;
1621
+ } | {
1622
+ file: string;
1623
+ type: "file";
1624
+ showInStarters: boolean;
1625
+ agent?: string | undefined;
1626
+ context?: "inline" | "fork" | undefined;
1627
+ model?: string | undefined;
1628
+ 'disable-model-invocation'?: boolean | undefined;
1629
+ 'user-invocable'?: boolean | undefined;
1630
+ 'allowed-tools'?: string[] | undefined;
1631
+ namespace?: string | undefined;
1632
+ })[], ({
1633
+ prompt: string;
1634
+ type: "inline";
1635
+ id: string;
1636
+ agent?: string | undefined;
1637
+ context?: "inline" | "fork" | undefined;
1638
+ description?: string | undefined;
1639
+ model?: string | undefined;
1640
+ priority?: number | undefined;
1641
+ title?: string | undefined;
1642
+ category?: string | undefined;
1643
+ showInStarters?: boolean | undefined;
1644
+ 'disable-model-invocation'?: boolean | undefined;
1645
+ 'user-invocable'?: boolean | undefined;
1646
+ 'allowed-tools'?: string[] | undefined;
1647
+ } | {
1648
+ file: string;
1649
+ type: "file";
1650
+ agent?: string | undefined;
1651
+ context?: "inline" | "fork" | undefined;
1652
+ model?: string | undefined;
1653
+ showInStarters?: boolean | undefined;
1654
+ 'disable-model-invocation'?: boolean | undefined;
1655
+ 'user-invocable'?: boolean | undefined;
1656
+ 'allowed-tools'?: string[] | undefined;
1657
+ namespace?: string | undefined;
1658
+ })[]>, ({
1659
+ file: string;
1660
+ type: "file";
1661
+ showInStarters: boolean;
1662
+ agent?: string | undefined;
1663
+ context?: "inline" | "fork" | undefined;
1664
+ model?: string | undefined;
1665
+ 'disable-model-invocation'?: boolean | undefined;
1666
+ 'user-invocable'?: boolean | undefined;
1667
+ 'allowed-tools'?: string[] | undefined;
1668
+ namespace?: string | undefined;
1669
+ } | {
1670
+ title: string;
1671
+ context: "inline" | "fork";
1672
+ prompt: string;
1673
+ description: string;
1674
+ type: "inline";
1675
+ id: string;
1676
+ priority: number;
1677
+ category: string;
1678
+ showInStarters: boolean;
1679
+ 'disable-model-invocation': boolean;
1680
+ 'user-invocable': boolean;
1681
+ agent?: string | undefined;
1682
+ model?: string | undefined;
1683
+ 'allowed-tools'?: string[] | undefined;
1684
+ })[], ({
1685
+ prompt: string;
1686
+ type: "inline";
1687
+ id: string;
1688
+ agent?: string | undefined;
1689
+ context?: "inline" | "fork" | undefined;
1690
+ description?: string | undefined;
1691
+ model?: string | undefined;
1692
+ priority?: number | undefined;
1693
+ title?: string | undefined;
1694
+ category?: string | undefined;
1695
+ showInStarters?: boolean | undefined;
1696
+ 'disable-model-invocation'?: boolean | undefined;
1697
+ 'user-invocable'?: boolean | undefined;
1698
+ 'allowed-tools'?: string[] | undefined;
1699
+ } | {
1700
+ file: string;
1701
+ type: "file";
1702
+ agent?: string | undefined;
1703
+ context?: "inline" | "fork" | undefined;
1704
+ model?: string | undefined;
1705
+ showInStarters?: boolean | undefined;
1706
+ 'disable-model-invocation'?: boolean | undefined;
1707
+ 'user-invocable'?: boolean | undefined;
1708
+ 'allowed-tools'?: string[] | undefined;
1709
+ namespace?: string | undefined;
1710
+ })[]>>>;
1711
+ hooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1712
+ type: z.ZodString;
1713
+ enabled: z.ZodOptional<z.ZodBoolean>;
1714
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1715
+ type: z.ZodString;
1716
+ enabled: z.ZodOptional<z.ZodBoolean>;
1717
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1718
+ type: z.ZodString;
1719
+ enabled: z.ZodOptional<z.ZodBoolean>;
1720
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1721
+ compaction: z.ZodDefault<z.ZodObject<{
1722
+ enabled: z.ZodDefault<z.ZodBoolean>;
1723
+ maxContextTokens: z.ZodOptional<z.ZodNumber>;
1724
+ thresholdPercent: z.ZodDefault<z.ZodNumber>;
1725
+ type: z.ZodString;
1726
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1727
+ enabled: z.ZodDefault<z.ZodBoolean>;
1728
+ maxContextTokens: z.ZodOptional<z.ZodNumber>;
1729
+ thresholdPercent: z.ZodDefault<z.ZodNumber>;
1730
+ type: z.ZodString;
1731
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1732
+ enabled: z.ZodDefault<z.ZodBoolean>;
1733
+ maxContextTokens: z.ZodOptional<z.ZodNumber>;
1734
+ thresholdPercent: z.ZodDefault<z.ZodNumber>;
1735
+ type: z.ZodString;
1736
+ }, z.ZodTypeAny, "passthrough">>>;
1737
+ }, "strict", z.ZodTypeAny, {
1738
+ systemPrompt: ({
1739
+ contributors: {
1740
+ id: string;
1741
+ type: "static";
1742
+ content: string;
1743
+ priority: number;
1744
+ enabled: boolean;
1745
+ }[];
1746
+ } | {
1747
+ contributors: ({
1748
+ type: "static";
1749
+ content: string;
1750
+ enabled: boolean;
1751
+ id: string;
1752
+ priority: number;
1753
+ } | {
1754
+ type: "dynamic";
1755
+ enabled: boolean;
1756
+ id: string;
1757
+ priority: number;
1758
+ source: "date" | "env" | "resources";
1759
+ } | {
1760
+ type: "file";
1761
+ options: {
1762
+ includeFilenames: boolean;
1763
+ separator: string;
1764
+ errorHandling: "error" | "skip";
1765
+ maxFileSize: number;
1766
+ includeMetadata: boolean;
1767
+ };
1768
+ enabled: boolean;
1769
+ id: string;
1770
+ priority: number;
1771
+ files: string[];
1772
+ })[];
1773
+ }) & z.BRAND<"ValidatedSystemPromptConfig">;
1774
+ llm: {
1775
+ model: string;
1776
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
1777
+ apiKey?: string | undefined;
1778
+ maxInputTokens?: number | undefined;
1779
+ maxIterations?: number | undefined;
1780
+ baseURL?: string | undefined;
1781
+ maxOutputTokens?: number | undefined;
1782
+ temperature?: number | undefined;
1783
+ allowedMediaTypes?: string[] | undefined;
1784
+ reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
1785
+ };
1786
+ agentFile: {
1787
+ discoverInCwd: boolean;
1788
+ };
1789
+ agentId: string;
1790
+ mcpServers: Record<string, ({
1791
+ timeout: number;
1792
+ type: "stdio";
1793
+ enabled: boolean;
1794
+ command: string;
1795
+ args: string[];
1796
+ env: Record<string, string>;
1797
+ connectionMode: "strict" | "lenient";
1798
+ } | {
1799
+ timeout: number;
1800
+ type: "sse";
1801
+ enabled: boolean;
1802
+ connectionMode: "strict" | "lenient";
1803
+ url: string;
1804
+ headers: Record<string, string>;
1805
+ } | {
1806
+ timeout: number;
1807
+ type: "http";
1808
+ enabled: boolean;
1809
+ connectionMode: "strict" | "lenient";
1810
+ url: string;
1811
+ headers: Record<string, string>;
1812
+ }) & z.BRAND<"ValidatedMcpServerConfig">> & z.BRAND<"ValidatedServersConfig">;
1813
+ logger: {
1814
+ level: "debug" | "info" | "warn" | "error" | "silly";
1815
+ transports: ({
1816
+ type: "silent";
1817
+ } | {
1818
+ type: "console";
1819
+ colorize: boolean;
1820
+ } | {
1821
+ path: string;
1822
+ type: "file";
1823
+ maxSize: number;
1824
+ maxFiles: number;
1825
+ } | {
1826
+ token: string;
1827
+ type: "upstash";
1828
+ url: string;
1829
+ batchSize: number;
1830
+ listName: string;
1831
+ maxListLength: number;
1832
+ })[];
1833
+ };
1834
+ storage: {
1835
+ database: {
1836
+ type: string;
1837
+ } & {
1838
+ [k: string]: unknown;
1839
+ };
1840
+ cache: {
1841
+ type: string;
1842
+ } & {
1843
+ [k: string]: unknown;
1844
+ };
1845
+ blob: {
1846
+ type: string;
1847
+ } & {
1848
+ [k: string]: unknown;
1849
+ };
1850
+ } & z.BRAND<"ValidatedStorageConfig">;
1851
+ sessions: {
1852
+ maxSessions: number;
1853
+ sessionTTL: number;
1854
+ };
1855
+ permissions: {
1856
+ mode: "manual" | "auto-approve" | "auto-deny";
1857
+ allowedToolsStorage: "storage" | "memory";
1858
+ toolPolicies: {
1859
+ alwaysAllow: string[];
1860
+ alwaysDeny: string[];
1861
+ };
1862
+ timeout?: number | undefined;
1863
+ };
1864
+ elicitation: {
1865
+ enabled: boolean;
1866
+ timeout?: number | undefined;
1867
+ };
1868
+ resources: ({
1869
+ type: "filesystem";
1870
+ maxFiles: number;
1871
+ paths: string[];
1872
+ maxDepth: number;
1873
+ includeHidden: boolean;
1874
+ includeExtensions: string[];
1875
+ } | {
1876
+ type: "blob";
1877
+ })[];
1878
+ prompts: ({
1879
+ file: string;
1880
+ type: "file";
1881
+ showInStarters: boolean;
1882
+ agent?: string | undefined;
1883
+ context?: "inline" | "fork" | undefined;
1884
+ model?: string | undefined;
1885
+ 'disable-model-invocation'?: boolean | undefined;
1886
+ 'user-invocable'?: boolean | undefined;
1887
+ 'allowed-tools'?: string[] | undefined;
1888
+ namespace?: string | undefined;
1889
+ } | {
1890
+ title: string;
1891
+ context: "inline" | "fork";
1892
+ prompt: string;
1893
+ description: string;
1894
+ type: "inline";
1895
+ id: string;
1896
+ priority: number;
1897
+ category: string;
1898
+ showInStarters: boolean;
1899
+ 'disable-model-invocation': boolean;
1900
+ 'user-invocable': boolean;
1901
+ agent?: string | undefined;
1902
+ model?: string | undefined;
1903
+ 'allowed-tools'?: string[] | undefined;
1904
+ })[];
1905
+ compaction: {
1906
+ type: string;
1907
+ enabled: boolean;
1908
+ thresholdPercent: number;
1909
+ maxContextTokens?: number | undefined;
1910
+ } & {
1911
+ [k: string]: unknown;
1912
+ };
1913
+ agentCard?: {
1914
+ description: string;
1915
+ name: string;
1916
+ url: string;
1917
+ version: string;
1918
+ protocolVersion: string;
1919
+ preferredTransport: "JSONRPC" | "GRPC" | "HTTP+JSON";
1920
+ defaultInputModes: string[];
1921
+ defaultOutputModes: string[];
1922
+ skills: {
1923
+ description: string;
1924
+ name: string;
1925
+ id: string;
1926
+ tags: string[];
1927
+ inputModes: string[];
1928
+ outputModes: string[];
1929
+ examples?: string[] | undefined;
1930
+ }[];
1931
+ capabilities: {
1932
+ streaming: boolean;
1933
+ stateTransitionHistory: boolean;
1934
+ pushNotifications?: boolean | undefined;
1935
+ };
1936
+ provider?: {
1937
+ url: string;
1938
+ organization: string;
1939
+ } | undefined;
1940
+ metadata?: z.objectOutputType<{
1941
+ dexto: z.ZodOptional<z.ZodObject<{
1942
+ authentication: z.ZodOptional<z.ZodObject<{
1943
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1944
+ credentials: z.ZodOptional<z.ZodString>;
1945
+ }, "strict", z.ZodTypeAny, {
1946
+ schemes: string[];
1947
+ credentials?: string | undefined;
1948
+ }, {
1949
+ schemes?: string[] | undefined;
1950
+ credentials?: string | undefined;
1951
+ }>>;
1952
+ delegation: z.ZodOptional<z.ZodObject<{
1953
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
1954
+ endpoint: z.ZodString;
1955
+ supportsSession: z.ZodBoolean;
1956
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
1957
+ }, "strict", z.ZodTypeAny, {
1958
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1959
+ endpoint: string;
1960
+ supportsSession: boolean;
1961
+ supportsStreaming?: boolean | undefined;
1962
+ }, {
1963
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1964
+ endpoint: string;
1965
+ supportsSession: boolean;
1966
+ supportsStreaming?: boolean | undefined;
1967
+ }>>;
1968
+ owner: z.ZodOptional<z.ZodObject<{
1969
+ userId: z.ZodString;
1970
+ username: z.ZodString;
1971
+ email: z.ZodOptional<z.ZodString>;
1972
+ }, "strict", z.ZodTypeAny, {
1973
+ userId: string;
1974
+ username: string;
1975
+ email?: string | undefined;
1976
+ }, {
1977
+ userId: string;
1978
+ username: string;
1979
+ email?: string | undefined;
1980
+ }>>;
1981
+ }, "strict", z.ZodTypeAny, {
1982
+ authentication?: {
1983
+ schemes: string[];
1984
+ credentials?: string | undefined;
1985
+ } | undefined;
1986
+ delegation?: {
1987
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
1988
+ endpoint: string;
1989
+ supportsSession: boolean;
1990
+ supportsStreaming?: boolean | undefined;
1991
+ } | undefined;
1992
+ owner?: {
1993
+ userId: string;
1994
+ username: string;
1995
+ email?: string | undefined;
1996
+ } | undefined;
1997
+ }, {
1998
+ authentication?: {
1999
+ schemes?: string[] | undefined;
2000
+ credentials?: string | undefined;
2001
+ } | undefined;
2002
+ delegation?: {
2003
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
2004
+ endpoint: string;
2005
+ supportsSession: boolean;
2006
+ supportsStreaming?: boolean | undefined;
2007
+ } | undefined;
2008
+ owner?: {
2009
+ userId: string;
2010
+ username: string;
2011
+ email?: string | undefined;
2012
+ } | undefined;
2013
+ }>>;
2014
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2015
+ iconUrl?: string | undefined;
2016
+ documentationUrl?: string | undefined;
2017
+ additionalInterfaces?: {
2018
+ url: string;
2019
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
2020
+ }[] | undefined;
2021
+ securitySchemes?: Record<string, {
2022
+ type: "apiKey";
2023
+ name: string;
2024
+ in: "query" | "header" | "cookie";
2025
+ description?: string | undefined;
2026
+ } | {
2027
+ type: "http";
2028
+ scheme: string;
2029
+ description?: string | undefined;
2030
+ bearerFormat?: string | undefined;
2031
+ } | {
2032
+ type: "oauth2";
2033
+ flows: {
2034
+ password?: {
2035
+ scopes: Record<string, string>;
2036
+ authorizationUrl?: string | undefined;
2037
+ tokenUrl?: string | undefined;
2038
+ refreshUrl?: string | undefined;
2039
+ } | undefined;
2040
+ implicit?: {
2041
+ scopes: Record<string, string>;
2042
+ authorizationUrl?: string | undefined;
2043
+ tokenUrl?: string | undefined;
2044
+ refreshUrl?: string | undefined;
2045
+ } | undefined;
2046
+ clientCredentials?: {
2047
+ scopes: Record<string, string>;
2048
+ authorizationUrl?: string | undefined;
2049
+ tokenUrl?: string | undefined;
2050
+ refreshUrl?: string | undefined;
2051
+ } | undefined;
2052
+ authorizationCode?: {
2053
+ scopes: Record<string, string>;
2054
+ authorizationUrl?: string | undefined;
2055
+ tokenUrl?: string | undefined;
2056
+ refreshUrl?: string | undefined;
2057
+ } | undefined;
2058
+ };
2059
+ description?: string | undefined;
2060
+ } | {
2061
+ type: "openIdConnect";
2062
+ openIdConnectUrl: string;
2063
+ description?: string | undefined;
2064
+ } | {
2065
+ type: "mutualTLS";
2066
+ description?: string | undefined;
2067
+ }> | undefined;
2068
+ security?: Record<string, string[]>[] | undefined;
2069
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
2070
+ signatures?: {
2071
+ protected: string;
2072
+ signature: string;
2073
+ }[] | undefined;
2074
+ } | undefined;
2075
+ greeting?: string | undefined;
2076
+ telemetry?: {
2077
+ enabled?: boolean | undefined;
2078
+ serviceName?: string | undefined;
2079
+ tracerName?: string | undefined;
2080
+ export?: {
2081
+ type: "otlp";
2082
+ headers?: Record<string, string> | undefined;
2083
+ protocol?: "http" | "grpc" | undefined;
2084
+ endpoint?: string | undefined;
2085
+ } | {
2086
+ type: "console";
2087
+ } | undefined;
2088
+ } | undefined;
2089
+ memories?: {
2090
+ enabled: boolean;
2091
+ priority: number;
2092
+ includeTimestamps: boolean;
2093
+ includeTags: boolean;
2094
+ pinnedOnly: boolean;
2095
+ limit?: number | undefined;
2096
+ } | undefined;
2097
+ image?: string | undefined;
2098
+ tools?: z.objectOutputType<{
2099
+ type: z.ZodString;
2100
+ enabled: z.ZodOptional<z.ZodBoolean>;
2101
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
2102
+ hooks?: z.objectOutputType<{
2103
+ type: z.ZodString;
2104
+ enabled: z.ZodOptional<z.ZodBoolean>;
2105
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
2106
+ }, {
2107
+ systemPrompt: string | {
2108
+ contributors?: ({
2109
+ type: "static";
2110
+ content: string;
2111
+ id: string;
2112
+ priority: number;
2113
+ enabled?: boolean | undefined;
2114
+ } | {
2115
+ type: "dynamic";
2116
+ id: string;
2117
+ priority: number;
2118
+ source: "date" | "env" | "resources";
2119
+ enabled?: boolean | undefined;
2120
+ } | {
2121
+ type: "file";
2122
+ id: string;
2123
+ priority: number;
2124
+ files: string[];
2125
+ options?: {
2126
+ includeFilenames?: boolean | undefined;
2127
+ separator?: string | undefined;
2128
+ errorHandling?: "error" | "skip" | undefined;
2129
+ maxFileSize?: number | undefined;
2130
+ includeMetadata?: boolean | undefined;
2131
+ } | undefined;
2132
+ enabled?: boolean | undefined;
2133
+ })[] | undefined;
2134
+ };
2135
+ llm: {
2136
+ model: string;
2137
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
2138
+ apiKey?: string | undefined;
2139
+ maxInputTokens?: number | undefined;
2140
+ maxIterations?: number | undefined;
2141
+ baseURL?: string | undefined;
2142
+ maxOutputTokens?: number | undefined;
2143
+ temperature?: number | undefined;
2144
+ allowedMediaTypes?: string[] | undefined;
2145
+ reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
2146
+ };
2147
+ agentCard?: {
2148
+ description: string;
2149
+ name: string;
2150
+ url: string;
2151
+ version: string;
2152
+ provider?: {
2153
+ url: string;
2154
+ organization: string;
2155
+ } | undefined;
2156
+ metadata?: z.objectInputType<{
2157
+ dexto: z.ZodOptional<z.ZodObject<{
2158
+ authentication: z.ZodOptional<z.ZodObject<{
2159
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2160
+ credentials: z.ZodOptional<z.ZodString>;
2161
+ }, "strict", z.ZodTypeAny, {
2162
+ schemes: string[];
2163
+ credentials?: string | undefined;
2164
+ }, {
2165
+ schemes?: string[] | undefined;
2166
+ credentials?: string | undefined;
2167
+ }>>;
2168
+ delegation: z.ZodOptional<z.ZodObject<{
2169
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
2170
+ endpoint: z.ZodString;
2171
+ supportsSession: z.ZodBoolean;
2172
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
2173
+ }, "strict", z.ZodTypeAny, {
2174
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
2175
+ endpoint: string;
2176
+ supportsSession: boolean;
2177
+ supportsStreaming?: boolean | undefined;
2178
+ }, {
2179
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
2180
+ endpoint: string;
2181
+ supportsSession: boolean;
2182
+ supportsStreaming?: boolean | undefined;
2183
+ }>>;
2184
+ owner: z.ZodOptional<z.ZodObject<{
2185
+ userId: z.ZodString;
2186
+ username: z.ZodString;
2187
+ email: z.ZodOptional<z.ZodString>;
2188
+ }, "strict", z.ZodTypeAny, {
2189
+ userId: string;
2190
+ username: string;
2191
+ email?: string | undefined;
2192
+ }, {
2193
+ userId: string;
2194
+ username: string;
2195
+ email?: string | undefined;
2196
+ }>>;
2197
+ }, "strict", z.ZodTypeAny, {
2198
+ authentication?: {
2199
+ schemes: string[];
2200
+ credentials?: string | undefined;
2201
+ } | undefined;
2202
+ delegation?: {
2203
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
2204
+ endpoint: string;
2205
+ supportsSession: boolean;
2206
+ supportsStreaming?: boolean | undefined;
2207
+ } | undefined;
2208
+ owner?: {
2209
+ userId: string;
2210
+ username: string;
2211
+ email?: string | undefined;
2212
+ } | undefined;
2213
+ }, {
2214
+ authentication?: {
2215
+ schemes?: string[] | undefined;
2216
+ credentials?: string | undefined;
2217
+ } | undefined;
2218
+ delegation?: {
2219
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
2220
+ endpoint: string;
2221
+ supportsSession: boolean;
2222
+ supportsStreaming?: boolean | undefined;
2223
+ } | undefined;
2224
+ owner?: {
2225
+ userId: string;
2226
+ username: string;
2227
+ email?: string | undefined;
2228
+ } | undefined;
2229
+ }>>;
2230
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2231
+ protocolVersion?: string | undefined;
2232
+ preferredTransport?: "JSONRPC" | "GRPC" | "HTTP+JSON" | undefined;
2233
+ defaultInputModes?: string[] | undefined;
2234
+ defaultOutputModes?: string[] | undefined;
2235
+ skills?: {
2236
+ description: string;
2237
+ name: string;
2238
+ id: string;
2239
+ tags: string[];
2240
+ examples?: string[] | undefined;
2241
+ inputModes?: string[] | undefined;
2242
+ outputModes?: string[] | undefined;
2243
+ }[] | undefined;
2244
+ iconUrl?: string | undefined;
2245
+ documentationUrl?: string | undefined;
2246
+ additionalInterfaces?: {
2247
+ url: string;
2248
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
2249
+ }[] | undefined;
2250
+ capabilities?: {
2251
+ streaming?: boolean | undefined;
2252
+ pushNotifications?: boolean | undefined;
2253
+ stateTransitionHistory?: boolean | undefined;
2254
+ } | undefined;
2255
+ securitySchemes?: Record<string, {
2256
+ type: "apiKey";
2257
+ name: string;
2258
+ in: "query" | "header" | "cookie";
2259
+ description?: string | undefined;
2260
+ } | {
2261
+ type: "http";
2262
+ scheme: string;
2263
+ description?: string | undefined;
2264
+ bearerFormat?: string | undefined;
2265
+ } | {
2266
+ type: "oauth2";
2267
+ flows: {
2268
+ password?: {
2269
+ scopes: Record<string, string>;
2270
+ authorizationUrl?: string | undefined;
2271
+ tokenUrl?: string | undefined;
2272
+ refreshUrl?: string | undefined;
2273
+ } | undefined;
2274
+ implicit?: {
2275
+ scopes: Record<string, string>;
2276
+ authorizationUrl?: string | undefined;
2277
+ tokenUrl?: string | undefined;
2278
+ refreshUrl?: string | undefined;
2279
+ } | undefined;
2280
+ clientCredentials?: {
2281
+ scopes: Record<string, string>;
2282
+ authorizationUrl?: string | undefined;
2283
+ tokenUrl?: string | undefined;
2284
+ refreshUrl?: string | undefined;
2285
+ } | undefined;
2286
+ authorizationCode?: {
2287
+ scopes: Record<string, string>;
2288
+ authorizationUrl?: string | undefined;
2289
+ tokenUrl?: string | undefined;
2290
+ refreshUrl?: string | undefined;
2291
+ } | undefined;
2292
+ };
2293
+ description?: string | undefined;
2294
+ } | {
2295
+ type: "openIdConnect";
2296
+ openIdConnectUrl: string;
2297
+ description?: string | undefined;
2298
+ } | {
2299
+ type: "mutualTLS";
2300
+ description?: string | undefined;
2301
+ }> | undefined;
2302
+ security?: Record<string, string[]>[] | undefined;
2303
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
2304
+ signatures?: {
2305
+ protected: string;
2306
+ signature: string;
2307
+ }[] | undefined;
2308
+ } | undefined;
2309
+ greeting?: string | undefined;
2310
+ telemetry?: {
2311
+ enabled?: boolean | undefined;
2312
+ serviceName?: string | undefined;
2313
+ tracerName?: string | undefined;
2314
+ export?: {
2315
+ type: "otlp";
2316
+ headers?: Record<string, string> | undefined;
2317
+ protocol?: "http" | "grpc" | undefined;
2318
+ endpoint?: string | undefined;
2319
+ } | {
2320
+ type: "console";
2321
+ } | undefined;
2322
+ } | undefined;
2323
+ memories?: {
2324
+ enabled?: boolean | undefined;
2325
+ priority?: number | undefined;
2326
+ limit?: number | undefined;
2327
+ includeTimestamps?: boolean | undefined;
2328
+ includeTags?: boolean | undefined;
2329
+ pinnedOnly?: boolean | undefined;
2330
+ } | undefined;
2331
+ agentFile?: {
2332
+ discoverInCwd?: boolean | undefined;
2333
+ } | undefined;
2334
+ image?: string | undefined;
2335
+ agentId?: string | undefined;
2336
+ mcpServers?: Record<string, {
2337
+ type: "stdio";
2338
+ command: string;
2339
+ timeout?: number | undefined;
2340
+ enabled?: boolean | undefined;
2341
+ args?: string[] | undefined;
2342
+ env?: Record<string, string> | undefined;
2343
+ connectionMode?: "strict" | "lenient" | undefined;
2344
+ } | {
2345
+ type: "sse";
2346
+ url: string;
2347
+ timeout?: number | undefined;
2348
+ enabled?: boolean | undefined;
2349
+ connectionMode?: "strict" | "lenient" | undefined;
2350
+ headers?: Record<string, string> | undefined;
2351
+ } | {
2352
+ type: "http";
2353
+ url: string;
2354
+ timeout?: number | undefined;
2355
+ enabled?: boolean | undefined;
2356
+ connectionMode?: "strict" | "lenient" | undefined;
2357
+ headers?: Record<string, string> | undefined;
2358
+ }> | undefined;
2359
+ tools?: z.objectInputType<{
2360
+ type: z.ZodString;
2361
+ enabled: z.ZodOptional<z.ZodBoolean>;
2362
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
2363
+ logger?: {
2364
+ level?: "debug" | "info" | "warn" | "error" | "silly" | undefined;
2365
+ transports?: ({
2366
+ type: "silent";
2367
+ } | {
2368
+ type: "console";
2369
+ colorize?: boolean | undefined;
2370
+ } | {
2371
+ path: string;
2372
+ type: "file";
2373
+ maxSize?: number | undefined;
2374
+ maxFiles?: number | undefined;
2375
+ } | {
2376
+ token: string;
2377
+ type: "upstash";
2378
+ url: string;
2379
+ batchSize?: number | undefined;
2380
+ listName?: string | undefined;
2381
+ maxListLength?: number | undefined;
2382
+ })[] | undefined;
2383
+ } | undefined;
2384
+ storage?: {
2385
+ database: {
2386
+ type: string;
2387
+ } & {
2388
+ [k: string]: unknown;
2389
+ };
2390
+ cache: {
2391
+ type: string;
2392
+ } & {
2393
+ [k: string]: unknown;
2394
+ };
2395
+ blob: {
2396
+ type: string;
2397
+ } & {
2398
+ [k: string]: unknown;
2399
+ };
2400
+ } | undefined;
2401
+ sessions?: {
2402
+ maxSessions?: number | undefined;
2403
+ sessionTTL?: number | undefined;
2404
+ } | undefined;
2405
+ permissions?: {
2406
+ timeout?: number | undefined;
2407
+ mode?: "manual" | "auto-approve" | "auto-deny" | undefined;
2408
+ allowedToolsStorage?: "storage" | "memory" | undefined;
2409
+ toolPolicies?: {
2410
+ alwaysAllow?: string[] | undefined;
2411
+ alwaysDeny?: string[] | undefined;
2412
+ } | undefined;
2413
+ } | undefined;
2414
+ elicitation?: {
2415
+ timeout?: number | undefined;
2416
+ enabled?: boolean | undefined;
2417
+ } | undefined;
2418
+ resources?: ({
2419
+ type: "filesystem";
2420
+ paths: string[];
2421
+ maxFiles?: number | undefined;
2422
+ maxDepth?: number | undefined;
2423
+ includeHidden?: boolean | undefined;
2424
+ includeExtensions?: string[] | undefined;
2425
+ } | {
2426
+ type: "blob";
2427
+ })[] | undefined;
2428
+ prompts?: ({
2429
+ prompt: string;
2430
+ type: "inline";
2431
+ id: string;
2432
+ agent?: string | undefined;
2433
+ context?: "inline" | "fork" | undefined;
2434
+ description?: string | undefined;
2435
+ model?: string | undefined;
2436
+ priority?: number | undefined;
2437
+ title?: string | undefined;
2438
+ category?: string | undefined;
2439
+ showInStarters?: boolean | undefined;
2440
+ 'disable-model-invocation'?: boolean | undefined;
2441
+ 'user-invocable'?: boolean | undefined;
2442
+ 'allowed-tools'?: string[] | undefined;
2443
+ } | {
2444
+ file: string;
2445
+ type: "file";
2446
+ agent?: string | undefined;
2447
+ context?: "inline" | "fork" | undefined;
2448
+ model?: string | undefined;
2449
+ showInStarters?: boolean | undefined;
2450
+ 'disable-model-invocation'?: boolean | undefined;
2451
+ 'user-invocable'?: boolean | undefined;
2452
+ 'allowed-tools'?: string[] | undefined;
2453
+ namespace?: string | undefined;
2454
+ })[] | undefined;
2455
+ hooks?: z.objectInputType<{
2456
+ type: z.ZodString;
2457
+ enabled: z.ZodOptional<z.ZodBoolean>;
2458
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
2459
+ compaction?: z.objectInputType<{
2460
+ enabled: z.ZodDefault<z.ZodBoolean>;
2461
+ maxContextTokens: z.ZodOptional<z.ZodNumber>;
2462
+ thresholdPercent: z.ZodDefault<z.ZodNumber>;
2463
+ type: z.ZodString;
2464
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2465
+ }>, "ValidatedAgentConfig">;
2466
+ /**
2467
+ * Agent config schema.
2468
+ */
2469
+ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
2470
+ systemPrompt: z.ZodBranded<z.ZodUnion<[z.ZodEffects<z.ZodString, {
2471
+ contributors: {
2472
+ id: string;
2473
+ type: "static";
2474
+ content: string;
2475
+ priority: number;
2476
+ enabled: boolean;
2477
+ }[];
2478
+ }, string>, z.ZodObject<{
2479
+ contributors: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2480
+ id: z.ZodString;
2481
+ priority: z.ZodNumber;
2482
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2483
+ } & {
2484
+ type: z.ZodLiteral<"static">;
2485
+ content: z.ZodString;
2486
+ }, "strict", z.ZodTypeAny, {
2487
+ type: "static";
2488
+ content: string;
2489
+ enabled: boolean;
2490
+ id: string;
2491
+ priority: number;
2492
+ }, {
2493
+ type: "static";
2494
+ content: string;
2495
+ id: string;
2496
+ priority: number;
2497
+ enabled?: boolean | undefined;
2498
+ }>, z.ZodObject<{
2499
+ id: z.ZodString;
2500
+ priority: z.ZodNumber;
2501
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2502
+ } & {
2503
+ type: z.ZodLiteral<"dynamic">;
2504
+ source: z.ZodEnum<["date", "env", "resources"]>;
2505
+ }, "strict", z.ZodTypeAny, {
2506
+ type: "dynamic";
2507
+ enabled: boolean;
2508
+ id: string;
2509
+ priority: number;
2510
+ source: "date" | "env" | "resources";
2511
+ }, {
2512
+ type: "dynamic";
2513
+ id: string;
2514
+ priority: number;
2515
+ source: "date" | "env" | "resources";
2516
+ enabled?: boolean | undefined;
2517
+ }>, z.ZodObject<{
2518
+ id: z.ZodString;
2519
+ priority: z.ZodNumber;
2520
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2521
+ } & {
2522
+ type: z.ZodLiteral<"file">;
2523
+ files: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
2524
+ options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
2525
+ includeFilenames: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2526
+ separator: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2527
+ errorHandling: z.ZodDefault<z.ZodOptional<z.ZodEnum<["skip", "error"]>>>;
2528
+ maxFileSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2529
+ includeMetadata: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2530
+ }, "strict", z.ZodTypeAny, {
2531
+ includeFilenames: boolean;
2532
+ separator: string;
2533
+ errorHandling: "error" | "skip";
2534
+ maxFileSize: number;
2535
+ includeMetadata: boolean;
2536
+ }, {
2537
+ includeFilenames?: boolean | undefined;
2538
+ separator?: string | undefined;
2539
+ errorHandling?: "error" | "skip" | undefined;
2540
+ maxFileSize?: number | undefined;
2541
+ includeMetadata?: boolean | undefined;
2542
+ }>>>;
2543
+ }, "strict", z.ZodTypeAny, {
2544
+ type: "file";
2545
+ options: {
2546
+ includeFilenames: boolean;
2547
+ separator: string;
2548
+ errorHandling: "error" | "skip";
2549
+ maxFileSize: number;
2550
+ includeMetadata: boolean;
2551
+ };
2552
+ enabled: boolean;
2553
+ id: string;
2554
+ priority: number;
2555
+ files: string[];
2556
+ }, {
2557
+ type: "file";
2558
+ id: string;
2559
+ priority: number;
2560
+ files: string[];
2561
+ options?: {
2562
+ includeFilenames?: boolean | undefined;
2563
+ separator?: string | undefined;
2564
+ errorHandling?: "error" | "skip" | undefined;
2565
+ maxFileSize?: number | undefined;
2566
+ includeMetadata?: boolean | undefined;
2567
+ } | undefined;
2568
+ enabled?: boolean | undefined;
2569
+ }>]>, "many">>;
2570
+ }, "strict", z.ZodTypeAny, {
2571
+ contributors: ({
2572
+ type: "static";
2573
+ content: string;
2574
+ enabled: boolean;
2575
+ id: string;
2576
+ priority: number;
2577
+ } | {
2578
+ type: "dynamic";
2579
+ enabled: boolean;
2580
+ id: string;
2581
+ priority: number;
2582
+ source: "date" | "env" | "resources";
2583
+ } | {
2584
+ type: "file";
2585
+ options: {
2586
+ includeFilenames: boolean;
2587
+ separator: string;
2588
+ errorHandling: "error" | "skip";
2589
+ maxFileSize: number;
2590
+ includeMetadata: boolean;
2591
+ };
2592
+ enabled: boolean;
2593
+ id: string;
2594
+ priority: number;
2595
+ files: string[];
2596
+ })[];
2597
+ }, {
2598
+ contributors?: ({
2599
+ type: "static";
2600
+ content: string;
2601
+ id: string;
2602
+ priority: number;
2603
+ enabled?: boolean | undefined;
2604
+ } | {
2605
+ type: "dynamic";
2606
+ id: string;
2607
+ priority: number;
2608
+ source: "date" | "env" | "resources";
2609
+ enabled?: boolean | undefined;
2610
+ } | {
2611
+ type: "file";
2612
+ id: string;
2613
+ priority: number;
2614
+ files: string[];
2615
+ options?: {
2616
+ includeFilenames?: boolean | undefined;
2617
+ separator?: string | undefined;
2618
+ errorHandling?: "error" | "skip" | undefined;
2619
+ maxFileSize?: number | undefined;
2620
+ includeMetadata?: boolean | undefined;
2621
+ } | undefined;
2622
+ enabled?: boolean | undefined;
2623
+ })[] | undefined;
2624
+ }>]>, "ValidatedSystemPromptConfig">;
2625
+ llm: z.ZodEffects<z.ZodObject<{
2626
+ provider: z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere", "minimax", "glm", "openrouter", "litellm", "glama", "vertex", "bedrock", "local", "ollama", "dexto-nova"]>;
2627
+ model: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
2628
+ apiKey: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2629
+ maxIterations: z.ZodOptional<z.ZodNumber>;
2630
+ baseURL: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string | undefined, string>>;
2631
+ maxInputTokens: z.ZodOptional<z.ZodNumber>;
2632
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
2633
+ temperature: z.ZodOptional<z.ZodNumber>;
2634
+ allowedMediaTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2635
+ reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
2636
+ }, "strict", z.ZodTypeAny, {
2637
+ model: string;
2638
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
2639
+ apiKey?: string | undefined;
2640
+ maxInputTokens?: number | undefined;
2641
+ maxIterations?: number | undefined;
2642
+ baseURL?: string | undefined;
2643
+ maxOutputTokens?: number | undefined;
2644
+ temperature?: number | undefined;
2645
+ allowedMediaTypes?: string[] | undefined;
2646
+ reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
2647
+ }, {
2648
+ model: string;
2649
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
2650
+ apiKey?: string | undefined;
2651
+ maxInputTokens?: number | undefined;
2652
+ maxIterations?: number | undefined;
2653
+ baseURL?: string | undefined;
2654
+ maxOutputTokens?: number | undefined;
2655
+ temperature?: number | undefined;
2656
+ allowedMediaTypes?: string[] | undefined;
2657
+ reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
2658
+ }>, {
2659
+ model: string;
2660
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
2661
+ apiKey?: string | undefined;
2662
+ maxInputTokens?: number | undefined;
2663
+ maxIterations?: number | undefined;
2664
+ baseURL?: string | undefined;
2665
+ maxOutputTokens?: number | undefined;
2666
+ temperature?: number | undefined;
2667
+ allowedMediaTypes?: string[] | undefined;
2668
+ reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
2669
+ }, {
2670
+ model: string;
2671
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
2672
+ apiKey?: string | undefined;
2673
+ maxInputTokens?: number | undefined;
2674
+ maxIterations?: number | undefined;
2675
+ baseURL?: string | undefined;
2676
+ maxOutputTokens?: number | undefined;
2677
+ temperature?: number | undefined;
2678
+ allowedMediaTypes?: string[] | undefined;
2679
+ reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
2680
+ }>;
2681
+ agentCard: z.ZodOptional<z.ZodObject<{
2682
+ protocolVersion: z.ZodDefault<z.ZodString>;
2683
+ name: z.ZodString;
2684
+ description: z.ZodString;
2685
+ url: z.ZodString;
2686
+ version: z.ZodString;
2687
+ preferredTransport: z.ZodDefault<z.ZodEnum<["JSONRPC", "GRPC", "HTTP+JSON"]>>;
2688
+ defaultInputModes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2689
+ defaultOutputModes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2690
+ skills: z.ZodDefault<z.ZodArray<z.ZodObject<{
2691
+ id: z.ZodString;
2692
+ name: z.ZodString;
2693
+ description: z.ZodString;
2694
+ tags: z.ZodArray<z.ZodString, "many">;
2695
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2696
+ inputModes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2697
+ outputModes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2698
+ }, "strict", z.ZodTypeAny, {
2699
+ description: string;
2700
+ name: string;
2701
+ id: string;
2702
+ tags: string[];
2703
+ inputModes: string[];
2704
+ outputModes: string[];
2705
+ examples?: string[] | undefined;
2706
+ }, {
2707
+ description: string;
2708
+ name: string;
2709
+ id: string;
2710
+ tags: string[];
2711
+ examples?: string[] | undefined;
2712
+ inputModes?: string[] | undefined;
2713
+ outputModes?: string[] | undefined;
2714
+ }>, "many">>;
2715
+ provider: z.ZodOptional<z.ZodObject<{
2716
+ organization: z.ZodString;
2717
+ url: z.ZodString;
2718
+ }, "strict", z.ZodTypeAny, {
2719
+ url: string;
2720
+ organization: string;
2721
+ }, {
2722
+ url: string;
2723
+ organization: string;
2724
+ }>>;
2725
+ iconUrl: z.ZodOptional<z.ZodString>;
2726
+ documentationUrl: z.ZodOptional<z.ZodString>;
2727
+ additionalInterfaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
2728
+ url: z.ZodString;
2729
+ transport: z.ZodEnum<["JSONRPC", "GRPC", "HTTP+JSON"]>;
2730
+ }, "strict", z.ZodTypeAny, {
2731
+ url: string;
2732
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
2733
+ }, {
2734
+ url: string;
2735
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
2736
+ }>, "many">>;
2737
+ capabilities: z.ZodDefault<z.ZodObject<{
2738
+ streaming: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2739
+ pushNotifications: z.ZodOptional<z.ZodBoolean>;
2740
+ stateTransitionHistory: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2741
+ }, "strict", z.ZodTypeAny, {
2742
+ streaming: boolean;
2743
+ stateTransitionHistory: boolean;
2744
+ pushNotifications?: boolean | undefined;
2745
+ }, {
2746
+ streaming?: boolean | undefined;
2747
+ pushNotifications?: boolean | undefined;
2748
+ stateTransitionHistory?: boolean | undefined;
2749
+ }>>;
2750
+ securitySchemes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2751
+ type: z.ZodLiteral<"apiKey">;
2752
+ name: z.ZodString;
2753
+ in: z.ZodEnum<["query", "header", "cookie"]>;
2754
+ description: z.ZodOptional<z.ZodString>;
2755
+ }, "strict", z.ZodTypeAny, {
2756
+ type: "apiKey";
2757
+ name: string;
2758
+ in: "query" | "header" | "cookie";
2759
+ description?: string | undefined;
2760
+ }, {
2761
+ type: "apiKey";
2762
+ name: string;
2763
+ in: "query" | "header" | "cookie";
2764
+ description?: string | undefined;
2765
+ }>, z.ZodObject<{
2766
+ type: z.ZodLiteral<"http">;
2767
+ scheme: z.ZodString;
2768
+ bearerFormat: z.ZodOptional<z.ZodString>;
2769
+ description: z.ZodOptional<z.ZodString>;
2770
+ }, "strict", z.ZodTypeAny, {
2771
+ type: "http";
2772
+ scheme: string;
2773
+ description?: string | undefined;
2774
+ bearerFormat?: string | undefined;
2775
+ }, {
2776
+ type: "http";
2777
+ scheme: string;
2778
+ description?: string | undefined;
2779
+ bearerFormat?: string | undefined;
2780
+ }>, z.ZodObject<{
2781
+ type: z.ZodLiteral<"oauth2">;
2782
+ flows: z.ZodObject<{
2783
+ implicit: z.ZodOptional<z.ZodObject<{
2784
+ authorizationUrl: z.ZodOptional<z.ZodString>;
2785
+ tokenUrl: z.ZodOptional<z.ZodString>;
2786
+ refreshUrl: z.ZodOptional<z.ZodString>;
2787
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
2788
+ }, "strict", z.ZodTypeAny, {
2789
+ scopes: Record<string, string>;
2790
+ authorizationUrl?: string | undefined;
2791
+ tokenUrl?: string | undefined;
2792
+ refreshUrl?: string | undefined;
2793
+ }, {
2794
+ scopes: Record<string, string>;
2795
+ authorizationUrl?: string | undefined;
2796
+ tokenUrl?: string | undefined;
2797
+ refreshUrl?: string | undefined;
2798
+ }>>;
2799
+ password: z.ZodOptional<z.ZodObject<{
2800
+ authorizationUrl: z.ZodOptional<z.ZodString>;
2801
+ tokenUrl: z.ZodOptional<z.ZodString>;
2802
+ refreshUrl: z.ZodOptional<z.ZodString>;
2803
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
2804
+ }, "strict", z.ZodTypeAny, {
2805
+ scopes: Record<string, string>;
2806
+ authorizationUrl?: string | undefined;
2807
+ tokenUrl?: string | undefined;
2808
+ refreshUrl?: string | undefined;
2809
+ }, {
2810
+ scopes: Record<string, string>;
2811
+ authorizationUrl?: string | undefined;
2812
+ tokenUrl?: string | undefined;
2813
+ refreshUrl?: string | undefined;
2814
+ }>>;
2815
+ clientCredentials: z.ZodOptional<z.ZodObject<{
2816
+ authorizationUrl: z.ZodOptional<z.ZodString>;
2817
+ tokenUrl: z.ZodOptional<z.ZodString>;
2818
+ refreshUrl: z.ZodOptional<z.ZodString>;
2819
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
2820
+ }, "strict", z.ZodTypeAny, {
2821
+ scopes: Record<string, string>;
2822
+ authorizationUrl?: string | undefined;
2823
+ tokenUrl?: string | undefined;
2824
+ refreshUrl?: string | undefined;
2825
+ }, {
2826
+ scopes: Record<string, string>;
2827
+ authorizationUrl?: string | undefined;
2828
+ tokenUrl?: string | undefined;
2829
+ refreshUrl?: string | undefined;
2830
+ }>>;
2831
+ authorizationCode: z.ZodOptional<z.ZodObject<{
2832
+ authorizationUrl: z.ZodOptional<z.ZodString>;
2833
+ tokenUrl: z.ZodOptional<z.ZodString>;
2834
+ refreshUrl: z.ZodOptional<z.ZodString>;
2835
+ scopes: z.ZodRecord<z.ZodString, z.ZodString>;
2836
+ }, "strict", z.ZodTypeAny, {
2837
+ scopes: Record<string, string>;
2838
+ authorizationUrl?: string | undefined;
2839
+ tokenUrl?: string | undefined;
2840
+ refreshUrl?: string | undefined;
2841
+ }, {
2842
+ scopes: Record<string, string>;
2843
+ authorizationUrl?: string | undefined;
2844
+ tokenUrl?: string | undefined;
2845
+ refreshUrl?: string | undefined;
2846
+ }>>;
2847
+ }, "strict", z.ZodTypeAny, {
2848
+ password?: {
2849
+ scopes: Record<string, string>;
2850
+ authorizationUrl?: string | undefined;
2851
+ tokenUrl?: string | undefined;
2852
+ refreshUrl?: string | undefined;
2853
+ } | undefined;
2854
+ implicit?: {
2855
+ scopes: Record<string, string>;
2856
+ authorizationUrl?: string | undefined;
2857
+ tokenUrl?: string | undefined;
2858
+ refreshUrl?: string | undefined;
2859
+ } | undefined;
2860
+ clientCredentials?: {
2861
+ scopes: Record<string, string>;
2862
+ authorizationUrl?: string | undefined;
2863
+ tokenUrl?: string | undefined;
2864
+ refreshUrl?: string | undefined;
2865
+ } | undefined;
2866
+ authorizationCode?: {
2867
+ scopes: Record<string, string>;
2868
+ authorizationUrl?: string | undefined;
2869
+ tokenUrl?: string | undefined;
2870
+ refreshUrl?: string | undefined;
2871
+ } | undefined;
2872
+ }, {
2873
+ password?: {
2874
+ scopes: Record<string, string>;
2875
+ authorizationUrl?: string | undefined;
2876
+ tokenUrl?: string | undefined;
2877
+ refreshUrl?: string | undefined;
2878
+ } | undefined;
2879
+ implicit?: {
2880
+ scopes: Record<string, string>;
2881
+ authorizationUrl?: string | undefined;
2882
+ tokenUrl?: string | undefined;
2883
+ refreshUrl?: string | undefined;
2884
+ } | undefined;
2885
+ clientCredentials?: {
2886
+ scopes: Record<string, string>;
2887
+ authorizationUrl?: string | undefined;
2888
+ tokenUrl?: string | undefined;
2889
+ refreshUrl?: string | undefined;
2890
+ } | undefined;
2891
+ authorizationCode?: {
2892
+ scopes: Record<string, string>;
2893
+ authorizationUrl?: string | undefined;
2894
+ tokenUrl?: string | undefined;
2895
+ refreshUrl?: string | undefined;
2896
+ } | undefined;
2897
+ }>;
2898
+ description: z.ZodOptional<z.ZodString>;
2899
+ }, "strict", z.ZodTypeAny, {
2900
+ type: "oauth2";
2901
+ flows: {
2902
+ password?: {
2903
+ scopes: Record<string, string>;
2904
+ authorizationUrl?: string | undefined;
2905
+ tokenUrl?: string | undefined;
2906
+ refreshUrl?: string | undefined;
2907
+ } | undefined;
2908
+ implicit?: {
2909
+ scopes: Record<string, string>;
2910
+ authorizationUrl?: string | undefined;
2911
+ tokenUrl?: string | undefined;
2912
+ refreshUrl?: string | undefined;
2913
+ } | undefined;
2914
+ clientCredentials?: {
2915
+ scopes: Record<string, string>;
2916
+ authorizationUrl?: string | undefined;
2917
+ tokenUrl?: string | undefined;
2918
+ refreshUrl?: string | undefined;
2919
+ } | undefined;
2920
+ authorizationCode?: {
2921
+ scopes: Record<string, string>;
2922
+ authorizationUrl?: string | undefined;
2923
+ tokenUrl?: string | undefined;
2924
+ refreshUrl?: string | undefined;
2925
+ } | undefined;
2926
+ };
2927
+ description?: string | undefined;
2928
+ }, {
2929
+ type: "oauth2";
2930
+ flows: {
2931
+ password?: {
2932
+ scopes: Record<string, string>;
2933
+ authorizationUrl?: string | undefined;
2934
+ tokenUrl?: string | undefined;
2935
+ refreshUrl?: string | undefined;
2936
+ } | undefined;
2937
+ implicit?: {
2938
+ scopes: Record<string, string>;
2939
+ authorizationUrl?: string | undefined;
2940
+ tokenUrl?: string | undefined;
2941
+ refreshUrl?: string | undefined;
2942
+ } | undefined;
2943
+ clientCredentials?: {
2944
+ scopes: Record<string, string>;
2945
+ authorizationUrl?: string | undefined;
2946
+ tokenUrl?: string | undefined;
2947
+ refreshUrl?: string | undefined;
2948
+ } | undefined;
2949
+ authorizationCode?: {
2950
+ scopes: Record<string, string>;
2951
+ authorizationUrl?: string | undefined;
2952
+ tokenUrl?: string | undefined;
2953
+ refreshUrl?: string | undefined;
2954
+ } | undefined;
2955
+ };
2956
+ description?: string | undefined;
2957
+ }>, z.ZodObject<{
2958
+ type: z.ZodLiteral<"openIdConnect">;
2959
+ openIdConnectUrl: z.ZodString;
2960
+ description: z.ZodOptional<z.ZodString>;
2961
+ }, "strict", z.ZodTypeAny, {
2962
+ type: "openIdConnect";
2963
+ openIdConnectUrl: string;
2964
+ description?: string | undefined;
2965
+ }, {
2966
+ type: "openIdConnect";
2967
+ openIdConnectUrl: string;
2968
+ description?: string | undefined;
2969
+ }>, z.ZodObject<{
2970
+ type: z.ZodLiteral<"mutualTLS">;
2971
+ description: z.ZodOptional<z.ZodString>;
2972
+ }, "strict", z.ZodTypeAny, {
2973
+ type: "mutualTLS";
2974
+ description?: string | undefined;
2975
+ }, {
2976
+ type: "mutualTLS";
2977
+ description?: string | undefined;
2978
+ }>]>>>;
2979
+ security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>, "many">>;
2980
+ supportsAuthenticatedExtendedCard: z.ZodOptional<z.ZodBoolean>;
2981
+ signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
2982
+ protected: z.ZodString;
2983
+ signature: z.ZodString;
2984
+ }, "strict", z.ZodTypeAny, {
2985
+ protected: string;
2986
+ signature: string;
2987
+ }, {
2988
+ protected: string;
2989
+ signature: string;
2990
+ }>, "many">>;
2991
+ metadata: z.ZodOptional<z.ZodObject<{
2992
+ dexto: z.ZodOptional<z.ZodObject<{
2993
+ authentication: z.ZodOptional<z.ZodObject<{
2994
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2995
+ credentials: z.ZodOptional<z.ZodString>;
2996
+ }, "strict", z.ZodTypeAny, {
2997
+ schemes: string[];
2998
+ credentials?: string | undefined;
2999
+ }, {
3000
+ schemes?: string[] | undefined;
3001
+ credentials?: string | undefined;
3002
+ }>>;
3003
+ delegation: z.ZodOptional<z.ZodObject<{
3004
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
3005
+ endpoint: z.ZodString;
3006
+ supportsSession: z.ZodBoolean;
3007
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
3008
+ }, "strict", z.ZodTypeAny, {
3009
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3010
+ endpoint: string;
3011
+ supportsSession: boolean;
3012
+ supportsStreaming?: boolean | undefined;
3013
+ }, {
3014
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3015
+ endpoint: string;
3016
+ supportsSession: boolean;
3017
+ supportsStreaming?: boolean | undefined;
3018
+ }>>;
3019
+ owner: z.ZodOptional<z.ZodObject<{
3020
+ userId: z.ZodString;
3021
+ username: z.ZodString;
3022
+ email: z.ZodOptional<z.ZodString>;
3023
+ }, "strict", z.ZodTypeAny, {
3024
+ userId: string;
3025
+ username: string;
3026
+ email?: string | undefined;
3027
+ }, {
3028
+ userId: string;
3029
+ username: string;
3030
+ email?: string | undefined;
3031
+ }>>;
3032
+ }, "strict", z.ZodTypeAny, {
3033
+ authentication?: {
3034
+ schemes: string[];
3035
+ credentials?: string | undefined;
3036
+ } | undefined;
3037
+ delegation?: {
3038
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3039
+ endpoint: string;
3040
+ supportsSession: boolean;
3041
+ supportsStreaming?: boolean | undefined;
3042
+ } | undefined;
3043
+ owner?: {
3044
+ userId: string;
3045
+ username: string;
3046
+ email?: string | undefined;
3047
+ } | undefined;
3048
+ }, {
3049
+ authentication?: {
3050
+ schemes?: string[] | undefined;
3051
+ credentials?: string | undefined;
3052
+ } | undefined;
3053
+ delegation?: {
3054
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3055
+ endpoint: string;
3056
+ supportsSession: boolean;
3057
+ supportsStreaming?: boolean | undefined;
3058
+ } | undefined;
3059
+ owner?: {
3060
+ userId: string;
3061
+ username: string;
3062
+ email?: string | undefined;
3063
+ } | undefined;
3064
+ }>>;
3065
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3066
+ dexto: z.ZodOptional<z.ZodObject<{
3067
+ authentication: z.ZodOptional<z.ZodObject<{
3068
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3069
+ credentials: z.ZodOptional<z.ZodString>;
3070
+ }, "strict", z.ZodTypeAny, {
3071
+ schemes: string[];
3072
+ credentials?: string | undefined;
3073
+ }, {
3074
+ schemes?: string[] | undefined;
3075
+ credentials?: string | undefined;
3076
+ }>>;
3077
+ delegation: z.ZodOptional<z.ZodObject<{
3078
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
3079
+ endpoint: z.ZodString;
3080
+ supportsSession: z.ZodBoolean;
3081
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
3082
+ }, "strict", z.ZodTypeAny, {
3083
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3084
+ endpoint: string;
3085
+ supportsSession: boolean;
3086
+ supportsStreaming?: boolean | undefined;
3087
+ }, {
3088
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3089
+ endpoint: string;
3090
+ supportsSession: boolean;
3091
+ supportsStreaming?: boolean | undefined;
3092
+ }>>;
3093
+ owner: z.ZodOptional<z.ZodObject<{
3094
+ userId: z.ZodString;
3095
+ username: z.ZodString;
3096
+ email: z.ZodOptional<z.ZodString>;
3097
+ }, "strict", z.ZodTypeAny, {
3098
+ userId: string;
3099
+ username: string;
3100
+ email?: string | undefined;
3101
+ }, {
3102
+ userId: string;
3103
+ username: string;
3104
+ email?: string | undefined;
3105
+ }>>;
3106
+ }, "strict", z.ZodTypeAny, {
3107
+ authentication?: {
3108
+ schemes: string[];
3109
+ credentials?: string | undefined;
3110
+ } | undefined;
3111
+ delegation?: {
3112
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3113
+ endpoint: string;
3114
+ supportsSession: boolean;
3115
+ supportsStreaming?: boolean | undefined;
3116
+ } | undefined;
3117
+ owner?: {
3118
+ userId: string;
3119
+ username: string;
3120
+ email?: string | undefined;
3121
+ } | undefined;
3122
+ }, {
3123
+ authentication?: {
3124
+ schemes?: string[] | undefined;
3125
+ credentials?: string | undefined;
3126
+ } | undefined;
3127
+ delegation?: {
3128
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3129
+ endpoint: string;
3130
+ supportsSession: boolean;
3131
+ supportsStreaming?: boolean | undefined;
3132
+ } | undefined;
3133
+ owner?: {
3134
+ userId: string;
3135
+ username: string;
3136
+ email?: string | undefined;
3137
+ } | undefined;
3138
+ }>>;
3139
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3140
+ dexto: z.ZodOptional<z.ZodObject<{
3141
+ authentication: z.ZodOptional<z.ZodObject<{
3142
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3143
+ credentials: z.ZodOptional<z.ZodString>;
3144
+ }, "strict", z.ZodTypeAny, {
3145
+ schemes: string[];
3146
+ credentials?: string | undefined;
3147
+ }, {
3148
+ schemes?: string[] | undefined;
3149
+ credentials?: string | undefined;
3150
+ }>>;
3151
+ delegation: z.ZodOptional<z.ZodObject<{
3152
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
3153
+ endpoint: z.ZodString;
3154
+ supportsSession: z.ZodBoolean;
3155
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
3156
+ }, "strict", z.ZodTypeAny, {
3157
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3158
+ endpoint: string;
3159
+ supportsSession: boolean;
3160
+ supportsStreaming?: boolean | undefined;
3161
+ }, {
3162
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3163
+ endpoint: string;
3164
+ supportsSession: boolean;
3165
+ supportsStreaming?: boolean | undefined;
3166
+ }>>;
3167
+ owner: z.ZodOptional<z.ZodObject<{
3168
+ userId: z.ZodString;
3169
+ username: z.ZodString;
3170
+ email: z.ZodOptional<z.ZodString>;
3171
+ }, "strict", z.ZodTypeAny, {
3172
+ userId: string;
3173
+ username: string;
3174
+ email?: string | undefined;
3175
+ }, {
3176
+ userId: string;
3177
+ username: string;
3178
+ email?: string | undefined;
3179
+ }>>;
3180
+ }, "strict", z.ZodTypeAny, {
3181
+ authentication?: {
3182
+ schemes: string[];
3183
+ credentials?: string | undefined;
3184
+ } | undefined;
3185
+ delegation?: {
3186
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3187
+ endpoint: string;
3188
+ supportsSession: boolean;
3189
+ supportsStreaming?: boolean | undefined;
3190
+ } | undefined;
3191
+ owner?: {
3192
+ userId: string;
3193
+ username: string;
3194
+ email?: string | undefined;
3195
+ } | undefined;
3196
+ }, {
3197
+ authentication?: {
3198
+ schemes?: string[] | undefined;
3199
+ credentials?: string | undefined;
3200
+ } | undefined;
3201
+ delegation?: {
3202
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3203
+ endpoint: string;
3204
+ supportsSession: boolean;
3205
+ supportsStreaming?: boolean | undefined;
3206
+ } | undefined;
3207
+ owner?: {
3208
+ userId: string;
3209
+ username: string;
3210
+ email?: string | undefined;
3211
+ } | undefined;
3212
+ }>>;
3213
+ }, z.ZodTypeAny, "passthrough">>>;
3214
+ }, "strict", z.ZodTypeAny, {
3215
+ description: string;
3216
+ name: string;
3217
+ url: string;
3218
+ version: string;
3219
+ protocolVersion: string;
3220
+ preferredTransport: "JSONRPC" | "GRPC" | "HTTP+JSON";
3221
+ defaultInputModes: string[];
3222
+ defaultOutputModes: string[];
3223
+ skills: {
3224
+ description: string;
3225
+ name: string;
3226
+ id: string;
3227
+ tags: string[];
3228
+ inputModes: string[];
3229
+ outputModes: string[];
3230
+ examples?: string[] | undefined;
3231
+ }[];
3232
+ capabilities: {
3233
+ streaming: boolean;
3234
+ stateTransitionHistory: boolean;
3235
+ pushNotifications?: boolean | undefined;
3236
+ };
3237
+ provider?: {
3238
+ url: string;
3239
+ organization: string;
3240
+ } | undefined;
3241
+ metadata?: z.objectOutputType<{
3242
+ dexto: z.ZodOptional<z.ZodObject<{
3243
+ authentication: z.ZodOptional<z.ZodObject<{
3244
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3245
+ credentials: z.ZodOptional<z.ZodString>;
3246
+ }, "strict", z.ZodTypeAny, {
3247
+ schemes: string[];
3248
+ credentials?: string | undefined;
3249
+ }, {
3250
+ schemes?: string[] | undefined;
3251
+ credentials?: string | undefined;
3252
+ }>>;
3253
+ delegation: z.ZodOptional<z.ZodObject<{
3254
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
3255
+ endpoint: z.ZodString;
3256
+ supportsSession: z.ZodBoolean;
3257
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
3258
+ }, "strict", z.ZodTypeAny, {
3259
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3260
+ endpoint: string;
3261
+ supportsSession: boolean;
3262
+ supportsStreaming?: boolean | undefined;
3263
+ }, {
3264
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3265
+ endpoint: string;
3266
+ supportsSession: boolean;
3267
+ supportsStreaming?: boolean | undefined;
3268
+ }>>;
3269
+ owner: z.ZodOptional<z.ZodObject<{
3270
+ userId: z.ZodString;
3271
+ username: z.ZodString;
3272
+ email: z.ZodOptional<z.ZodString>;
3273
+ }, "strict", z.ZodTypeAny, {
3274
+ userId: string;
3275
+ username: string;
3276
+ email?: string | undefined;
3277
+ }, {
3278
+ userId: string;
3279
+ username: string;
3280
+ email?: string | undefined;
3281
+ }>>;
3282
+ }, "strict", z.ZodTypeAny, {
3283
+ authentication?: {
3284
+ schemes: string[];
3285
+ credentials?: string | undefined;
3286
+ } | undefined;
3287
+ delegation?: {
3288
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3289
+ endpoint: string;
3290
+ supportsSession: boolean;
3291
+ supportsStreaming?: boolean | undefined;
3292
+ } | undefined;
3293
+ owner?: {
3294
+ userId: string;
3295
+ username: string;
3296
+ email?: string | undefined;
3297
+ } | undefined;
3298
+ }, {
3299
+ authentication?: {
3300
+ schemes?: string[] | undefined;
3301
+ credentials?: string | undefined;
3302
+ } | undefined;
3303
+ delegation?: {
3304
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3305
+ endpoint: string;
3306
+ supportsSession: boolean;
3307
+ supportsStreaming?: boolean | undefined;
3308
+ } | undefined;
3309
+ owner?: {
3310
+ userId: string;
3311
+ username: string;
3312
+ email?: string | undefined;
3313
+ } | undefined;
3314
+ }>>;
3315
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3316
+ iconUrl?: string | undefined;
3317
+ documentationUrl?: string | undefined;
3318
+ additionalInterfaces?: {
3319
+ url: string;
3320
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
3321
+ }[] | undefined;
3322
+ securitySchemes?: Record<string, {
3323
+ type: "apiKey";
3324
+ name: string;
3325
+ in: "query" | "header" | "cookie";
3326
+ description?: string | undefined;
3327
+ } | {
3328
+ type: "http";
3329
+ scheme: string;
3330
+ description?: string | undefined;
3331
+ bearerFormat?: string | undefined;
3332
+ } | {
3333
+ type: "oauth2";
3334
+ flows: {
3335
+ password?: {
3336
+ scopes: Record<string, string>;
3337
+ authorizationUrl?: string | undefined;
3338
+ tokenUrl?: string | undefined;
3339
+ refreshUrl?: string | undefined;
3340
+ } | undefined;
3341
+ implicit?: {
3342
+ scopes: Record<string, string>;
3343
+ authorizationUrl?: string | undefined;
3344
+ tokenUrl?: string | undefined;
3345
+ refreshUrl?: string | undefined;
3346
+ } | undefined;
3347
+ clientCredentials?: {
3348
+ scopes: Record<string, string>;
3349
+ authorizationUrl?: string | undefined;
3350
+ tokenUrl?: string | undefined;
3351
+ refreshUrl?: string | undefined;
3352
+ } | undefined;
3353
+ authorizationCode?: {
3354
+ scopes: Record<string, string>;
3355
+ authorizationUrl?: string | undefined;
3356
+ tokenUrl?: string | undefined;
3357
+ refreshUrl?: string | undefined;
3358
+ } | undefined;
3359
+ };
3360
+ description?: string | undefined;
3361
+ } | {
3362
+ type: "openIdConnect";
3363
+ openIdConnectUrl: string;
3364
+ description?: string | undefined;
3365
+ } | {
3366
+ type: "mutualTLS";
3367
+ description?: string | undefined;
3368
+ }> | undefined;
3369
+ security?: Record<string, string[]>[] | undefined;
3370
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
3371
+ signatures?: {
3372
+ protected: string;
3373
+ signature: string;
3374
+ }[] | undefined;
3375
+ }, {
3376
+ description: string;
3377
+ name: string;
3378
+ url: string;
3379
+ version: string;
3380
+ provider?: {
3381
+ url: string;
3382
+ organization: string;
3383
+ } | undefined;
3384
+ metadata?: z.objectInputType<{
3385
+ dexto: z.ZodOptional<z.ZodObject<{
3386
+ authentication: z.ZodOptional<z.ZodObject<{
3387
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3388
+ credentials: z.ZodOptional<z.ZodString>;
3389
+ }, "strict", z.ZodTypeAny, {
3390
+ schemes: string[];
3391
+ credentials?: string | undefined;
3392
+ }, {
3393
+ schemes?: string[] | undefined;
3394
+ credentials?: string | undefined;
3395
+ }>>;
3396
+ delegation: z.ZodOptional<z.ZodObject<{
3397
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
3398
+ endpoint: z.ZodString;
3399
+ supportsSession: z.ZodBoolean;
3400
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
3401
+ }, "strict", z.ZodTypeAny, {
3402
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3403
+ endpoint: string;
3404
+ supportsSession: boolean;
3405
+ supportsStreaming?: boolean | undefined;
3406
+ }, {
3407
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3408
+ endpoint: string;
3409
+ supportsSession: boolean;
3410
+ supportsStreaming?: boolean | undefined;
3411
+ }>>;
3412
+ owner: z.ZodOptional<z.ZodObject<{
3413
+ userId: z.ZodString;
3414
+ username: z.ZodString;
3415
+ email: z.ZodOptional<z.ZodString>;
3416
+ }, "strict", z.ZodTypeAny, {
3417
+ userId: string;
3418
+ username: string;
3419
+ email?: string | undefined;
3420
+ }, {
3421
+ userId: string;
3422
+ username: string;
3423
+ email?: string | undefined;
3424
+ }>>;
3425
+ }, "strict", z.ZodTypeAny, {
3426
+ authentication?: {
3427
+ schemes: string[];
3428
+ credentials?: string | undefined;
3429
+ } | undefined;
3430
+ delegation?: {
3431
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3432
+ endpoint: string;
3433
+ supportsSession: boolean;
3434
+ supportsStreaming?: boolean | undefined;
3435
+ } | undefined;
3436
+ owner?: {
3437
+ userId: string;
3438
+ username: string;
3439
+ email?: string | undefined;
3440
+ } | undefined;
3441
+ }, {
3442
+ authentication?: {
3443
+ schemes?: string[] | undefined;
3444
+ credentials?: string | undefined;
3445
+ } | undefined;
3446
+ delegation?: {
3447
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
3448
+ endpoint: string;
3449
+ supportsSession: boolean;
3450
+ supportsStreaming?: boolean | undefined;
3451
+ } | undefined;
3452
+ owner?: {
3453
+ userId: string;
3454
+ username: string;
3455
+ email?: string | undefined;
3456
+ } | undefined;
3457
+ }>>;
3458
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3459
+ protocolVersion?: string | undefined;
3460
+ preferredTransport?: "JSONRPC" | "GRPC" | "HTTP+JSON" | undefined;
3461
+ defaultInputModes?: string[] | undefined;
3462
+ defaultOutputModes?: string[] | undefined;
3463
+ skills?: {
3464
+ description: string;
3465
+ name: string;
3466
+ id: string;
3467
+ tags: string[];
3468
+ examples?: string[] | undefined;
3469
+ inputModes?: string[] | undefined;
3470
+ outputModes?: string[] | undefined;
3471
+ }[] | undefined;
3472
+ iconUrl?: string | undefined;
3473
+ documentationUrl?: string | undefined;
3474
+ additionalInterfaces?: {
3475
+ url: string;
3476
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
3477
+ }[] | undefined;
3478
+ capabilities?: {
3479
+ streaming?: boolean | undefined;
3480
+ pushNotifications?: boolean | undefined;
3481
+ stateTransitionHistory?: boolean | undefined;
3482
+ } | undefined;
3483
+ securitySchemes?: Record<string, {
3484
+ type: "apiKey";
3485
+ name: string;
3486
+ in: "query" | "header" | "cookie";
3487
+ description?: string | undefined;
3488
+ } | {
3489
+ type: "http";
3490
+ scheme: string;
3491
+ description?: string | undefined;
3492
+ bearerFormat?: string | undefined;
3493
+ } | {
3494
+ type: "oauth2";
3495
+ flows: {
3496
+ password?: {
3497
+ scopes: Record<string, string>;
3498
+ authorizationUrl?: string | undefined;
3499
+ tokenUrl?: string | undefined;
3500
+ refreshUrl?: string | undefined;
3501
+ } | undefined;
3502
+ implicit?: {
3503
+ scopes: Record<string, string>;
3504
+ authorizationUrl?: string | undefined;
3505
+ tokenUrl?: string | undefined;
3506
+ refreshUrl?: string | undefined;
3507
+ } | undefined;
3508
+ clientCredentials?: {
3509
+ scopes: Record<string, string>;
3510
+ authorizationUrl?: string | undefined;
3511
+ tokenUrl?: string | undefined;
3512
+ refreshUrl?: string | undefined;
3513
+ } | undefined;
3514
+ authorizationCode?: {
3515
+ scopes: Record<string, string>;
3516
+ authorizationUrl?: string | undefined;
3517
+ tokenUrl?: string | undefined;
3518
+ refreshUrl?: string | undefined;
3519
+ } | undefined;
3520
+ };
3521
+ description?: string | undefined;
3522
+ } | {
3523
+ type: "openIdConnect";
3524
+ openIdConnectUrl: string;
3525
+ description?: string | undefined;
3526
+ } | {
3527
+ type: "mutualTLS";
3528
+ description?: string | undefined;
3529
+ }> | undefined;
3530
+ security?: Record<string, string[]>[] | undefined;
3531
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
3532
+ signatures?: {
3533
+ protected: string;
3534
+ signature: string;
3535
+ }[] | undefined;
3536
+ }>>;
3537
+ greeting: z.ZodOptional<z.ZodString>;
3538
+ telemetry: z.ZodOptional<z.ZodObject<{
3539
+ serviceName: z.ZodOptional<z.ZodString>;
3540
+ enabled: z.ZodOptional<z.ZodBoolean>;
3541
+ tracerName: z.ZodOptional<z.ZodString>;
3542
+ export: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3543
+ type: z.ZodLiteral<"otlp">;
3544
+ protocol: z.ZodOptional<z.ZodEnum<["grpc", "http"]>>;
3545
+ endpoint: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
3546
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3547
+ }, "strip", z.ZodTypeAny, {
3548
+ type: "otlp";
3549
+ headers?: Record<string, string> | undefined;
3550
+ protocol?: "http" | "grpc" | undefined;
3551
+ endpoint?: string | undefined;
3552
+ }, {
3553
+ type: "otlp";
3554
+ headers?: Record<string, string> | undefined;
3555
+ protocol?: "http" | "grpc" | undefined;
3556
+ endpoint?: string | undefined;
3557
+ }>, z.ZodObject<{
3558
+ type: z.ZodLiteral<"console">;
3559
+ }, "strip", z.ZodTypeAny, {
3560
+ type: "console";
3561
+ }, {
3562
+ type: "console";
3563
+ }>]>>;
3564
+ }, "strip", z.ZodTypeAny, {
3565
+ enabled?: boolean | undefined;
3566
+ serviceName?: string | undefined;
3567
+ tracerName?: string | undefined;
3568
+ export?: {
3569
+ type: "otlp";
3570
+ headers?: Record<string, string> | undefined;
3571
+ protocol?: "http" | "grpc" | undefined;
3572
+ endpoint?: string | undefined;
3573
+ } | {
3574
+ type: "console";
3575
+ } | undefined;
3576
+ }, {
3577
+ enabled?: boolean | undefined;
3578
+ serviceName?: string | undefined;
3579
+ tracerName?: string | undefined;
3580
+ export?: {
3581
+ type: "otlp";
3582
+ headers?: Record<string, string> | undefined;
3583
+ protocol?: "http" | "grpc" | undefined;
3584
+ endpoint?: string | undefined;
3585
+ } | {
3586
+ type: "console";
3587
+ } | undefined;
3588
+ }>>;
3589
+ memories: z.ZodOptional<z.ZodObject<{
3590
+ enabled: z.ZodDefault<z.ZodBoolean>;
3591
+ priority: z.ZodDefault<z.ZodNumber>;
3592
+ includeTimestamps: z.ZodDefault<z.ZodBoolean>;
3593
+ includeTags: z.ZodDefault<z.ZodBoolean>;
3594
+ limit: z.ZodOptional<z.ZodNumber>;
3595
+ pinnedOnly: z.ZodDefault<z.ZodBoolean>;
3596
+ }, "strict", z.ZodTypeAny, {
3597
+ enabled: boolean;
3598
+ priority: number;
3599
+ includeTimestamps: boolean;
3600
+ includeTags: boolean;
3601
+ pinnedOnly: boolean;
3602
+ limit?: number | undefined;
3603
+ }, {
3604
+ enabled?: boolean | undefined;
3605
+ priority?: number | undefined;
3606
+ limit?: number | undefined;
3607
+ includeTimestamps?: boolean | undefined;
3608
+ includeTags?: boolean | undefined;
3609
+ pinnedOnly?: boolean | undefined;
3610
+ }>>;
3611
+ agentFile: z.ZodDefault<z.ZodObject<{
3612
+ discoverInCwd: z.ZodDefault<z.ZodBoolean>;
3613
+ }, "strict", z.ZodTypeAny, {
3614
+ discoverInCwd: boolean;
3615
+ }, {
3616
+ discoverInCwd?: boolean | undefined;
3617
+ }>>;
3618
+ image: z.ZodOptional<z.ZodString>;
3619
+ agentId: z.ZodDefault<z.ZodString>;
3620
+ mcpServers: z.ZodDefault<z.ZodBranded<z.ZodRecord<z.ZodString, z.ZodBranded<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3621
+ type: z.ZodLiteral<"stdio">;
3622
+ enabled: z.ZodDefault<z.ZodBoolean>;
3623
+ command: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
3624
+ args: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
3625
+ env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
3626
+ timeout: z.ZodDefault<z.ZodNumber>;
3627
+ connectionMode: z.ZodDefault<z.ZodEnum<["strict", "lenient"]>>;
3628
+ }, "strict", z.ZodTypeAny, {
3629
+ timeout: number;
3630
+ type: "stdio";
3631
+ enabled: boolean;
3632
+ command: string;
3633
+ args: string[];
3634
+ env: Record<string, string>;
3635
+ connectionMode: "strict" | "lenient";
3636
+ }, {
3637
+ type: "stdio";
3638
+ command: string;
3639
+ timeout?: number | undefined;
3640
+ enabled?: boolean | undefined;
3641
+ args?: string[] | undefined;
3642
+ env?: Record<string, string> | undefined;
3643
+ connectionMode?: "strict" | "lenient" | undefined;
3644
+ }>, z.ZodObject<{
3645
+ type: z.ZodLiteral<"sse">;
3646
+ enabled: z.ZodDefault<z.ZodBoolean>;
3647
+ url: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
3648
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
3649
+ timeout: z.ZodDefault<z.ZodNumber>;
3650
+ connectionMode: z.ZodDefault<z.ZodEnum<["strict", "lenient"]>>;
3651
+ }, "strict", z.ZodTypeAny, {
3652
+ timeout: number;
3653
+ type: "sse";
3654
+ enabled: boolean;
3655
+ connectionMode: "strict" | "lenient";
3656
+ url: string;
3657
+ headers: Record<string, string>;
3658
+ }, {
3659
+ type: "sse";
3660
+ url: string;
3661
+ timeout?: number | undefined;
3662
+ enabled?: boolean | undefined;
3663
+ connectionMode?: "strict" | "lenient" | undefined;
3664
+ headers?: Record<string, string> | undefined;
3665
+ }>, z.ZodObject<{
3666
+ type: z.ZodLiteral<"http">;
3667
+ enabled: z.ZodDefault<z.ZodBoolean>;
3668
+ url: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
3669
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
3670
+ timeout: z.ZodDefault<z.ZodNumber>;
3671
+ connectionMode: z.ZodDefault<z.ZodEnum<["strict", "lenient"]>>;
3672
+ }, "strict", z.ZodTypeAny, {
3673
+ timeout: number;
3674
+ type: "http";
3675
+ enabled: boolean;
3676
+ connectionMode: "strict" | "lenient";
3677
+ url: string;
3678
+ headers: Record<string, string>;
3679
+ }, {
3680
+ type: "http";
3681
+ url: string;
3682
+ timeout?: number | undefined;
3683
+ enabled?: boolean | undefined;
3684
+ connectionMode?: "strict" | "lenient" | undefined;
3685
+ headers?: Record<string, string> | undefined;
3686
+ }>]>, {
3687
+ timeout: number;
3688
+ type: "stdio";
3689
+ enabled: boolean;
3690
+ command: string;
3691
+ args: string[];
3692
+ env: Record<string, string>;
3693
+ connectionMode: "strict" | "lenient";
3694
+ } | {
3695
+ timeout: number;
3696
+ type: "sse";
3697
+ enabled: boolean;
3698
+ connectionMode: "strict" | "lenient";
3699
+ url: string;
3700
+ headers: Record<string, string>;
3701
+ } | {
3702
+ timeout: number;
3703
+ type: "http";
3704
+ enabled: boolean;
3705
+ connectionMode: "strict" | "lenient";
3706
+ url: string;
3707
+ headers: Record<string, string>;
3708
+ }, {
3709
+ type: "stdio";
3710
+ command: string;
3711
+ timeout?: number | undefined;
3712
+ enabled?: boolean | undefined;
3713
+ args?: string[] | undefined;
3714
+ env?: Record<string, string> | undefined;
3715
+ connectionMode?: "strict" | "lenient" | undefined;
3716
+ } | {
3717
+ type: "sse";
3718
+ url: string;
3719
+ timeout?: number | undefined;
3720
+ enabled?: boolean | undefined;
3721
+ connectionMode?: "strict" | "lenient" | undefined;
3722
+ headers?: Record<string, string> | undefined;
3723
+ } | {
3724
+ type: "http";
3725
+ url: string;
3726
+ timeout?: number | undefined;
3727
+ enabled?: boolean | undefined;
3728
+ connectionMode?: "strict" | "lenient" | undefined;
3729
+ headers?: Record<string, string> | undefined;
3730
+ }>, "ValidatedMcpServerConfig">>, "ValidatedServersConfig">>;
3731
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
3732
+ type: z.ZodString;
3733
+ enabled: z.ZodOptional<z.ZodBoolean>;
3734
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3735
+ type: z.ZodString;
3736
+ enabled: z.ZodOptional<z.ZodBoolean>;
3737
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3738
+ type: z.ZodString;
3739
+ enabled: z.ZodOptional<z.ZodBoolean>;
3740
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
3741
+ logger: z.ZodDefault<z.ZodObject<{
3742
+ level: z.ZodDefault<z.ZodEnum<["debug", "info", "warn", "error", "silly"]>>;
3743
+ transports: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3744
+ type: z.ZodLiteral<"silent">;
3745
+ }, "strict", z.ZodTypeAny, {
3746
+ type: "silent";
3747
+ }, {
3748
+ type: "silent";
3749
+ }>, z.ZodObject<{
3750
+ type: z.ZodLiteral<"console">;
3751
+ colorize: z.ZodDefault<z.ZodBoolean>;
3752
+ }, "strict", z.ZodTypeAny, {
3753
+ type: "console";
3754
+ colorize: boolean;
3755
+ }, {
3756
+ type: "console";
3757
+ colorize?: boolean | undefined;
3758
+ }>, z.ZodObject<{
3759
+ type: z.ZodLiteral<"file">;
3760
+ path: z.ZodString;
3761
+ maxSize: z.ZodDefault<z.ZodNumber>;
3762
+ maxFiles: z.ZodDefault<z.ZodNumber>;
3763
+ }, "strict", z.ZodTypeAny, {
3764
+ path: string;
3765
+ type: "file";
3766
+ maxSize: number;
3767
+ maxFiles: number;
3768
+ }, {
3769
+ path: string;
3770
+ type: "file";
3771
+ maxSize?: number | undefined;
3772
+ maxFiles?: number | undefined;
3773
+ }>, z.ZodObject<{
3774
+ type: z.ZodLiteral<"upstash">;
3775
+ url: z.ZodString;
3776
+ token: z.ZodString;
3777
+ listName: z.ZodDefault<z.ZodString>;
3778
+ maxListLength: z.ZodDefault<z.ZodNumber>;
3779
+ batchSize: z.ZodDefault<z.ZodNumber>;
3780
+ }, "strict", z.ZodTypeAny, {
3781
+ token: string;
3782
+ type: "upstash";
3783
+ url: string;
3784
+ batchSize: number;
3785
+ listName: string;
3786
+ maxListLength: number;
3787
+ }, {
3788
+ token: string;
3789
+ type: "upstash";
3790
+ url: string;
3791
+ batchSize?: number | undefined;
3792
+ listName?: string | undefined;
3793
+ maxListLength?: number | undefined;
3794
+ }>]>, "many">>;
3795
+ }, "strict", z.ZodTypeAny, {
3796
+ level: "debug" | "info" | "warn" | "error" | "silly";
3797
+ transports: ({
3798
+ type: "silent";
3799
+ } | {
3800
+ type: "console";
3801
+ colorize: boolean;
3802
+ } | {
3803
+ path: string;
3804
+ type: "file";
3805
+ maxSize: number;
3806
+ maxFiles: number;
3807
+ } | {
3808
+ token: string;
3809
+ type: "upstash";
3810
+ url: string;
3811
+ batchSize: number;
3812
+ listName: string;
3813
+ maxListLength: number;
3814
+ })[];
3815
+ }, {
3816
+ level?: "debug" | "info" | "warn" | "error" | "silly" | undefined;
3817
+ transports?: ({
3818
+ type: "silent";
3819
+ } | {
3820
+ type: "console";
3821
+ colorize?: boolean | undefined;
3822
+ } | {
3823
+ path: string;
3824
+ type: "file";
3825
+ maxSize?: number | undefined;
3826
+ maxFiles?: number | undefined;
3827
+ } | {
3828
+ token: string;
3829
+ type: "upstash";
3830
+ url: string;
3831
+ batchSize?: number | undefined;
3832
+ listName?: string | undefined;
3833
+ maxListLength?: number | undefined;
3834
+ })[] | undefined;
3835
+ }>>;
3836
+ storage: z.ZodDefault<z.ZodBranded<z.ZodObject<{
3837
+ cache: z.ZodObject<{
3838
+ type: z.ZodString;
3839
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3840
+ type: z.ZodString;
3841
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3842
+ type: z.ZodString;
3843
+ }, z.ZodTypeAny, "passthrough">>;
3844
+ database: z.ZodObject<{
3845
+ type: z.ZodString;
3846
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3847
+ type: z.ZodString;
3848
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3849
+ type: z.ZodString;
3850
+ }, z.ZodTypeAny, "passthrough">>;
3851
+ blob: z.ZodObject<{
3852
+ type: z.ZodString;
3853
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3854
+ type: z.ZodString;
3855
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3856
+ type: z.ZodString;
3857
+ }, z.ZodTypeAny, "passthrough">>;
3858
+ }, "strict", z.ZodTypeAny, {
3859
+ database: {
3860
+ type: string;
3861
+ } & {
3862
+ [k: string]: unknown;
3863
+ };
3864
+ cache: {
3865
+ type: string;
3866
+ } & {
3867
+ [k: string]: unknown;
3868
+ };
3869
+ blob: {
3870
+ type: string;
3871
+ } & {
3872
+ [k: string]: unknown;
3873
+ };
3874
+ }, {
3875
+ database: {
3876
+ type: string;
3877
+ } & {
3878
+ [k: string]: unknown;
3879
+ };
3880
+ cache: {
3881
+ type: string;
3882
+ } & {
3883
+ [k: string]: unknown;
3884
+ };
3885
+ blob: {
3886
+ type: string;
3887
+ } & {
3888
+ [k: string]: unknown;
3889
+ };
3890
+ }>, "ValidatedStorageConfig">>;
3891
+ sessions: z.ZodDefault<z.ZodObject<{
3892
+ maxSessions: z.ZodDefault<z.ZodNumber>;
3893
+ sessionTTL: z.ZodDefault<z.ZodNumber>;
3894
+ }, "strict", z.ZodTypeAny, {
3895
+ maxSessions: number;
3896
+ sessionTTL: number;
3897
+ }, {
3898
+ maxSessions?: number | undefined;
3899
+ sessionTTL?: number | undefined;
3900
+ }>>;
3901
+ permissions: z.ZodDefault<z.ZodObject<{
3902
+ mode: z.ZodDefault<z.ZodEnum<["manual", "auto-approve", "auto-deny"]>>;
3903
+ timeout: z.ZodOptional<z.ZodNumber>;
3904
+ allowedToolsStorage: z.ZodDefault<z.ZodEnum<["memory", "storage"]>>;
3905
+ toolPolicies: z.ZodDefault<z.ZodObject<{
3906
+ alwaysAllow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3907
+ alwaysDeny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3908
+ }, "strict", z.ZodTypeAny, {
3909
+ alwaysAllow: string[];
3910
+ alwaysDeny: string[];
3911
+ }, {
3912
+ alwaysAllow?: string[] | undefined;
3913
+ alwaysDeny?: string[] | undefined;
3914
+ }>>;
3915
+ }, "strict", z.ZodTypeAny, {
3916
+ mode: "manual" | "auto-approve" | "auto-deny";
3917
+ allowedToolsStorage: "storage" | "memory";
3918
+ toolPolicies: {
3919
+ alwaysAllow: string[];
3920
+ alwaysDeny: string[];
3921
+ };
3922
+ timeout?: number | undefined;
3923
+ }, {
3924
+ timeout?: number | undefined;
3925
+ mode?: "manual" | "auto-approve" | "auto-deny" | undefined;
3926
+ allowedToolsStorage?: "storage" | "memory" | undefined;
3927
+ toolPolicies?: {
3928
+ alwaysAllow?: string[] | undefined;
3929
+ alwaysDeny?: string[] | undefined;
3930
+ } | undefined;
3931
+ }>>;
3932
+ elicitation: z.ZodDefault<z.ZodObject<{
3933
+ enabled: z.ZodDefault<z.ZodBoolean>;
3934
+ timeout: z.ZodOptional<z.ZodNumber>;
3935
+ }, "strict", z.ZodTypeAny, {
3936
+ enabled: boolean;
3937
+ timeout?: number | undefined;
3938
+ }, {
3939
+ timeout?: number | undefined;
3940
+ enabled?: boolean | undefined;
3941
+ }>>;
3942
+ resources: z.ZodDefault<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3943
+ type: z.ZodLiteral<"filesystem">;
3944
+ paths: z.ZodArray<z.ZodString, "many">;
3945
+ maxDepth: z.ZodDefault<z.ZodNumber>;
3946
+ maxFiles: z.ZodDefault<z.ZodNumber>;
3947
+ includeHidden: z.ZodDefault<z.ZodBoolean>;
3948
+ includeExtensions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3949
+ }, "strict", z.ZodTypeAny, {
3950
+ type: "filesystem";
3951
+ maxFiles: number;
3952
+ paths: string[];
3953
+ maxDepth: number;
3954
+ includeHidden: boolean;
3955
+ includeExtensions: string[];
3956
+ }, {
3957
+ type: "filesystem";
3958
+ paths: string[];
3959
+ maxFiles?: number | undefined;
3960
+ maxDepth?: number | undefined;
3961
+ includeHidden?: boolean | undefined;
3962
+ includeExtensions?: string[] | undefined;
3963
+ }>, z.ZodObject<{
3964
+ type: z.ZodLiteral<"blob">;
3965
+ }, "strict", z.ZodTypeAny, {
3966
+ type: "blob";
3967
+ }, {
3968
+ type: "blob";
3969
+ }>]>, "many">>>;
3970
+ prompts: z.ZodDefault<z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3971
+ type: z.ZodLiteral<"inline">;
3972
+ id: z.ZodString;
3973
+ title: z.ZodOptional<z.ZodString>;
3974
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
3975
+ prompt: z.ZodString;
3976
+ category: z.ZodDefault<z.ZodOptional<z.ZodString>>;
3977
+ priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3978
+ showInStarters: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3979
+ 'disable-model-invocation': z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3980
+ 'user-invocable': z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3981
+ 'allowed-tools': z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3982
+ model: z.ZodOptional<z.ZodString>;
3983
+ context: z.ZodDefault<z.ZodOptional<z.ZodEnum<["inline", "fork"]>>>;
3984
+ agent: z.ZodOptional<z.ZodString>;
3985
+ }, "strict", z.ZodTypeAny, {
3986
+ context: "inline" | "fork";
3987
+ prompt: string;
3988
+ description: string;
3989
+ type: "inline";
3990
+ id: string;
3991
+ priority: number;
3992
+ category: string;
3993
+ showInStarters: boolean;
3994
+ 'disable-model-invocation': boolean;
3995
+ 'user-invocable': boolean;
3996
+ agent?: string | undefined;
3997
+ model?: string | undefined;
3998
+ title?: string | undefined;
3999
+ 'allowed-tools'?: string[] | undefined;
4000
+ }, {
4001
+ prompt: string;
4002
+ type: "inline";
4003
+ id: string;
4004
+ agent?: string | undefined;
4005
+ context?: "inline" | "fork" | undefined;
4006
+ description?: string | undefined;
4007
+ model?: string | undefined;
4008
+ priority?: number | undefined;
4009
+ title?: string | undefined;
4010
+ category?: string | undefined;
4011
+ showInStarters?: boolean | undefined;
4012
+ 'disable-model-invocation'?: boolean | undefined;
4013
+ 'user-invocable'?: boolean | undefined;
4014
+ 'allowed-tools'?: string[] | undefined;
4015
+ }>, z.ZodObject<{
4016
+ type: z.ZodLiteral<"file">;
4017
+ file: z.ZodString;
4018
+ showInStarters: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4019
+ 'disable-model-invocation': z.ZodOptional<z.ZodBoolean>;
4020
+ 'user-invocable': z.ZodOptional<z.ZodBoolean>;
4021
+ 'allowed-tools': z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4022
+ model: z.ZodOptional<z.ZodString>;
4023
+ context: z.ZodOptional<z.ZodEnum<["inline", "fork"]>>;
4024
+ agent: z.ZodOptional<z.ZodString>;
4025
+ namespace: z.ZodOptional<z.ZodString>;
4026
+ }, "strict", z.ZodTypeAny, {
4027
+ file: string;
4028
+ type: "file";
4029
+ showInStarters: boolean;
4030
+ agent?: string | undefined;
4031
+ context?: "inline" | "fork" | undefined;
4032
+ model?: string | undefined;
4033
+ 'disable-model-invocation'?: boolean | undefined;
4034
+ 'user-invocable'?: boolean | undefined;
4035
+ 'allowed-tools'?: string[] | undefined;
4036
+ namespace?: string | undefined;
4037
+ }, {
4038
+ file: string;
4039
+ type: "file";
4040
+ agent?: string | undefined;
4041
+ context?: "inline" | "fork" | undefined;
4042
+ model?: string | undefined;
4043
+ showInStarters?: boolean | undefined;
4044
+ 'disable-model-invocation'?: boolean | undefined;
4045
+ 'user-invocable'?: boolean | undefined;
4046
+ 'allowed-tools'?: string[] | undefined;
4047
+ namespace?: string | undefined;
4048
+ }>]>, "many">, ({
4049
+ context: "inline" | "fork";
4050
+ prompt: string;
4051
+ description: string;
4052
+ type: "inline";
4053
+ id: string;
4054
+ priority: number;
4055
+ category: string;
4056
+ showInStarters: boolean;
4057
+ 'disable-model-invocation': boolean;
4058
+ 'user-invocable': boolean;
4059
+ agent?: string | undefined;
4060
+ model?: string | undefined;
4061
+ title?: string | undefined;
4062
+ 'allowed-tools'?: string[] | undefined;
4063
+ } | {
4064
+ file: string;
4065
+ type: "file";
4066
+ showInStarters: boolean;
4067
+ agent?: string | undefined;
4068
+ context?: "inline" | "fork" | undefined;
4069
+ model?: string | undefined;
4070
+ 'disable-model-invocation'?: boolean | undefined;
4071
+ 'user-invocable'?: boolean | undefined;
4072
+ 'allowed-tools'?: string[] | undefined;
4073
+ namespace?: string | undefined;
4074
+ })[], ({
4075
+ prompt: string;
4076
+ type: "inline";
4077
+ id: string;
4078
+ agent?: string | undefined;
4079
+ context?: "inline" | "fork" | undefined;
4080
+ description?: string | undefined;
4081
+ model?: string | undefined;
4082
+ priority?: number | undefined;
4083
+ title?: string | undefined;
4084
+ category?: string | undefined;
4085
+ showInStarters?: boolean | undefined;
4086
+ 'disable-model-invocation'?: boolean | undefined;
4087
+ 'user-invocable'?: boolean | undefined;
4088
+ 'allowed-tools'?: string[] | undefined;
4089
+ } | {
4090
+ file: string;
4091
+ type: "file";
4092
+ agent?: string | undefined;
4093
+ context?: "inline" | "fork" | undefined;
4094
+ model?: string | undefined;
4095
+ showInStarters?: boolean | undefined;
4096
+ 'disable-model-invocation'?: boolean | undefined;
4097
+ 'user-invocable'?: boolean | undefined;
4098
+ 'allowed-tools'?: string[] | undefined;
4099
+ namespace?: string | undefined;
4100
+ })[]>, ({
4101
+ file: string;
4102
+ type: "file";
4103
+ showInStarters: boolean;
4104
+ agent?: string | undefined;
4105
+ context?: "inline" | "fork" | undefined;
4106
+ model?: string | undefined;
4107
+ 'disable-model-invocation'?: boolean | undefined;
4108
+ 'user-invocable'?: boolean | undefined;
4109
+ 'allowed-tools'?: string[] | undefined;
4110
+ namespace?: string | undefined;
4111
+ } | {
4112
+ title: string;
4113
+ context: "inline" | "fork";
4114
+ prompt: string;
4115
+ description: string;
4116
+ type: "inline";
4117
+ id: string;
4118
+ priority: number;
4119
+ category: string;
4120
+ showInStarters: boolean;
4121
+ 'disable-model-invocation': boolean;
4122
+ 'user-invocable': boolean;
4123
+ agent?: string | undefined;
4124
+ model?: string | undefined;
4125
+ 'allowed-tools'?: string[] | undefined;
4126
+ })[], ({
4127
+ prompt: string;
4128
+ type: "inline";
4129
+ id: string;
4130
+ agent?: string | undefined;
4131
+ context?: "inline" | "fork" | undefined;
4132
+ description?: string | undefined;
4133
+ model?: string | undefined;
4134
+ priority?: number | undefined;
4135
+ title?: string | undefined;
4136
+ category?: string | undefined;
4137
+ showInStarters?: boolean | undefined;
4138
+ 'disable-model-invocation'?: boolean | undefined;
4139
+ 'user-invocable'?: boolean | undefined;
4140
+ 'allowed-tools'?: string[] | undefined;
4141
+ } | {
4142
+ file: string;
4143
+ type: "file";
4144
+ agent?: string | undefined;
4145
+ context?: "inline" | "fork" | undefined;
4146
+ model?: string | undefined;
4147
+ showInStarters?: boolean | undefined;
4148
+ 'disable-model-invocation'?: boolean | undefined;
4149
+ 'user-invocable'?: boolean | undefined;
4150
+ 'allowed-tools'?: string[] | undefined;
4151
+ namespace?: string | undefined;
4152
+ })[]>>>;
4153
+ hooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
4154
+ type: z.ZodString;
4155
+ enabled: z.ZodOptional<z.ZodBoolean>;
4156
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4157
+ type: z.ZodString;
4158
+ enabled: z.ZodOptional<z.ZodBoolean>;
4159
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4160
+ type: z.ZodString;
4161
+ enabled: z.ZodOptional<z.ZodBoolean>;
4162
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
4163
+ compaction: z.ZodDefault<z.ZodObject<{
4164
+ enabled: z.ZodDefault<z.ZodBoolean>;
4165
+ maxContextTokens: z.ZodOptional<z.ZodNumber>;
4166
+ thresholdPercent: z.ZodDefault<z.ZodNumber>;
4167
+ type: z.ZodString;
4168
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4169
+ enabled: z.ZodDefault<z.ZodBoolean>;
4170
+ maxContextTokens: z.ZodOptional<z.ZodNumber>;
4171
+ thresholdPercent: z.ZodDefault<z.ZodNumber>;
4172
+ type: z.ZodString;
4173
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4174
+ enabled: z.ZodDefault<z.ZodBoolean>;
4175
+ maxContextTokens: z.ZodOptional<z.ZodNumber>;
4176
+ thresholdPercent: z.ZodDefault<z.ZodNumber>;
4177
+ type: z.ZodString;
4178
+ }, z.ZodTypeAny, "passthrough">>>;
4179
+ }, "strict", z.ZodTypeAny, {
4180
+ systemPrompt: ({
4181
+ contributors: {
4182
+ id: string;
4183
+ type: "static";
4184
+ content: string;
4185
+ priority: number;
4186
+ enabled: boolean;
4187
+ }[];
4188
+ } | {
4189
+ contributors: ({
4190
+ type: "static";
4191
+ content: string;
4192
+ enabled: boolean;
4193
+ id: string;
4194
+ priority: number;
4195
+ } | {
4196
+ type: "dynamic";
4197
+ enabled: boolean;
4198
+ id: string;
4199
+ priority: number;
4200
+ source: "date" | "env" | "resources";
4201
+ } | {
4202
+ type: "file";
4203
+ options: {
4204
+ includeFilenames: boolean;
4205
+ separator: string;
4206
+ errorHandling: "error" | "skip";
4207
+ maxFileSize: number;
4208
+ includeMetadata: boolean;
4209
+ };
4210
+ enabled: boolean;
4211
+ id: string;
4212
+ priority: number;
4213
+ files: string[];
4214
+ })[];
4215
+ }) & z.BRAND<"ValidatedSystemPromptConfig">;
4216
+ llm: {
4217
+ model: string;
4218
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
4219
+ apiKey?: string | undefined;
4220
+ maxInputTokens?: number | undefined;
4221
+ maxIterations?: number | undefined;
4222
+ baseURL?: string | undefined;
4223
+ maxOutputTokens?: number | undefined;
4224
+ temperature?: number | undefined;
4225
+ allowedMediaTypes?: string[] | undefined;
4226
+ reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
4227
+ };
4228
+ agentFile: {
4229
+ discoverInCwd: boolean;
4230
+ };
4231
+ agentId: string;
4232
+ mcpServers: Record<string, ({
4233
+ timeout: number;
4234
+ type: "stdio";
4235
+ enabled: boolean;
4236
+ command: string;
4237
+ args: string[];
4238
+ env: Record<string, string>;
4239
+ connectionMode: "strict" | "lenient";
4240
+ } | {
4241
+ timeout: number;
4242
+ type: "sse";
4243
+ enabled: boolean;
4244
+ connectionMode: "strict" | "lenient";
4245
+ url: string;
4246
+ headers: Record<string, string>;
4247
+ } | {
4248
+ timeout: number;
4249
+ type: "http";
4250
+ enabled: boolean;
4251
+ connectionMode: "strict" | "lenient";
4252
+ url: string;
4253
+ headers: Record<string, string>;
4254
+ }) & z.BRAND<"ValidatedMcpServerConfig">> & z.BRAND<"ValidatedServersConfig">;
4255
+ logger: {
4256
+ level: "debug" | "info" | "warn" | "error" | "silly";
4257
+ transports: ({
4258
+ type: "silent";
4259
+ } | {
4260
+ type: "console";
4261
+ colorize: boolean;
4262
+ } | {
4263
+ path: string;
4264
+ type: "file";
4265
+ maxSize: number;
4266
+ maxFiles: number;
4267
+ } | {
4268
+ token: string;
4269
+ type: "upstash";
4270
+ url: string;
4271
+ batchSize: number;
4272
+ listName: string;
4273
+ maxListLength: number;
4274
+ })[];
4275
+ };
4276
+ storage: {
4277
+ database: {
4278
+ type: string;
4279
+ } & {
4280
+ [k: string]: unknown;
4281
+ };
4282
+ cache: {
4283
+ type: string;
4284
+ } & {
4285
+ [k: string]: unknown;
4286
+ };
4287
+ blob: {
4288
+ type: string;
4289
+ } & {
4290
+ [k: string]: unknown;
4291
+ };
4292
+ } & z.BRAND<"ValidatedStorageConfig">;
4293
+ sessions: {
4294
+ maxSessions: number;
4295
+ sessionTTL: number;
4296
+ };
4297
+ permissions: {
4298
+ mode: "manual" | "auto-approve" | "auto-deny";
4299
+ allowedToolsStorage: "storage" | "memory";
4300
+ toolPolicies: {
4301
+ alwaysAllow: string[];
4302
+ alwaysDeny: string[];
4303
+ };
4304
+ timeout?: number | undefined;
4305
+ };
4306
+ elicitation: {
4307
+ enabled: boolean;
4308
+ timeout?: number | undefined;
4309
+ };
4310
+ resources: ({
4311
+ type: "filesystem";
4312
+ maxFiles: number;
4313
+ paths: string[];
4314
+ maxDepth: number;
4315
+ includeHidden: boolean;
4316
+ includeExtensions: string[];
4317
+ } | {
4318
+ type: "blob";
4319
+ })[];
4320
+ prompts: ({
4321
+ file: string;
4322
+ type: "file";
4323
+ showInStarters: boolean;
4324
+ agent?: string | undefined;
4325
+ context?: "inline" | "fork" | undefined;
4326
+ model?: string | undefined;
4327
+ 'disable-model-invocation'?: boolean | undefined;
4328
+ 'user-invocable'?: boolean | undefined;
4329
+ 'allowed-tools'?: string[] | undefined;
4330
+ namespace?: string | undefined;
4331
+ } | {
4332
+ title: string;
4333
+ context: "inline" | "fork";
4334
+ prompt: string;
4335
+ description: string;
4336
+ type: "inline";
4337
+ id: string;
4338
+ priority: number;
4339
+ category: string;
4340
+ showInStarters: boolean;
4341
+ 'disable-model-invocation': boolean;
4342
+ 'user-invocable': boolean;
4343
+ agent?: string | undefined;
4344
+ model?: string | undefined;
4345
+ 'allowed-tools'?: string[] | undefined;
4346
+ })[];
4347
+ compaction: {
4348
+ type: string;
4349
+ enabled: boolean;
4350
+ thresholdPercent: number;
4351
+ maxContextTokens?: number | undefined;
4352
+ } & {
4353
+ [k: string]: unknown;
4354
+ };
4355
+ agentCard?: {
4356
+ description: string;
4357
+ name: string;
4358
+ url: string;
4359
+ version: string;
4360
+ protocolVersion: string;
4361
+ preferredTransport: "JSONRPC" | "GRPC" | "HTTP+JSON";
4362
+ defaultInputModes: string[];
4363
+ defaultOutputModes: string[];
4364
+ skills: {
4365
+ description: string;
4366
+ name: string;
4367
+ id: string;
4368
+ tags: string[];
4369
+ inputModes: string[];
4370
+ outputModes: string[];
4371
+ examples?: string[] | undefined;
4372
+ }[];
4373
+ capabilities: {
4374
+ streaming: boolean;
4375
+ stateTransitionHistory: boolean;
4376
+ pushNotifications?: boolean | undefined;
4377
+ };
4378
+ provider?: {
4379
+ url: string;
4380
+ organization: string;
4381
+ } | undefined;
4382
+ metadata?: z.objectOutputType<{
4383
+ dexto: z.ZodOptional<z.ZodObject<{
4384
+ authentication: z.ZodOptional<z.ZodObject<{
4385
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
4386
+ credentials: z.ZodOptional<z.ZodString>;
4387
+ }, "strict", z.ZodTypeAny, {
4388
+ schemes: string[];
4389
+ credentials?: string | undefined;
4390
+ }, {
4391
+ schemes?: string[] | undefined;
4392
+ credentials?: string | undefined;
4393
+ }>>;
4394
+ delegation: z.ZodOptional<z.ZodObject<{
4395
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
4396
+ endpoint: z.ZodString;
4397
+ supportsSession: z.ZodBoolean;
4398
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
4399
+ }, "strict", z.ZodTypeAny, {
4400
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
4401
+ endpoint: string;
4402
+ supportsSession: boolean;
4403
+ supportsStreaming?: boolean | undefined;
4404
+ }, {
4405
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
4406
+ endpoint: string;
4407
+ supportsSession: boolean;
4408
+ supportsStreaming?: boolean | undefined;
4409
+ }>>;
4410
+ owner: z.ZodOptional<z.ZodObject<{
4411
+ userId: z.ZodString;
4412
+ username: z.ZodString;
4413
+ email: z.ZodOptional<z.ZodString>;
4414
+ }, "strict", z.ZodTypeAny, {
4415
+ userId: string;
4416
+ username: string;
4417
+ email?: string | undefined;
4418
+ }, {
4419
+ userId: string;
4420
+ username: string;
4421
+ email?: string | undefined;
4422
+ }>>;
4423
+ }, "strict", z.ZodTypeAny, {
4424
+ authentication?: {
4425
+ schemes: string[];
4426
+ credentials?: string | undefined;
4427
+ } | undefined;
4428
+ delegation?: {
4429
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
4430
+ endpoint: string;
4431
+ supportsSession: boolean;
4432
+ supportsStreaming?: boolean | undefined;
4433
+ } | undefined;
4434
+ owner?: {
4435
+ userId: string;
4436
+ username: string;
4437
+ email?: string | undefined;
4438
+ } | undefined;
4439
+ }, {
4440
+ authentication?: {
4441
+ schemes?: string[] | undefined;
4442
+ credentials?: string | undefined;
4443
+ } | undefined;
4444
+ delegation?: {
4445
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
4446
+ endpoint: string;
4447
+ supportsSession: boolean;
4448
+ supportsStreaming?: boolean | undefined;
4449
+ } | undefined;
4450
+ owner?: {
4451
+ userId: string;
4452
+ username: string;
4453
+ email?: string | undefined;
4454
+ } | undefined;
4455
+ }>>;
4456
+ }, z.ZodTypeAny, "passthrough"> | undefined;
4457
+ iconUrl?: string | undefined;
4458
+ documentationUrl?: string | undefined;
4459
+ additionalInterfaces?: {
4460
+ url: string;
4461
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
4462
+ }[] | undefined;
4463
+ securitySchemes?: Record<string, {
4464
+ type: "apiKey";
4465
+ name: string;
4466
+ in: "query" | "header" | "cookie";
4467
+ description?: string | undefined;
4468
+ } | {
4469
+ type: "http";
4470
+ scheme: string;
4471
+ description?: string | undefined;
4472
+ bearerFormat?: string | undefined;
4473
+ } | {
4474
+ type: "oauth2";
4475
+ flows: {
4476
+ password?: {
4477
+ scopes: Record<string, string>;
4478
+ authorizationUrl?: string | undefined;
4479
+ tokenUrl?: string | undefined;
4480
+ refreshUrl?: string | undefined;
4481
+ } | undefined;
4482
+ implicit?: {
4483
+ scopes: Record<string, string>;
4484
+ authorizationUrl?: string | undefined;
4485
+ tokenUrl?: string | undefined;
4486
+ refreshUrl?: string | undefined;
4487
+ } | undefined;
4488
+ clientCredentials?: {
4489
+ scopes: Record<string, string>;
4490
+ authorizationUrl?: string | undefined;
4491
+ tokenUrl?: string | undefined;
4492
+ refreshUrl?: string | undefined;
4493
+ } | undefined;
4494
+ authorizationCode?: {
4495
+ scopes: Record<string, string>;
4496
+ authorizationUrl?: string | undefined;
4497
+ tokenUrl?: string | undefined;
4498
+ refreshUrl?: string | undefined;
4499
+ } | undefined;
4500
+ };
4501
+ description?: string | undefined;
4502
+ } | {
4503
+ type: "openIdConnect";
4504
+ openIdConnectUrl: string;
4505
+ description?: string | undefined;
4506
+ } | {
4507
+ type: "mutualTLS";
4508
+ description?: string | undefined;
4509
+ }> | undefined;
4510
+ security?: Record<string, string[]>[] | undefined;
4511
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
4512
+ signatures?: {
4513
+ protected: string;
4514
+ signature: string;
4515
+ }[] | undefined;
4516
+ } | undefined;
4517
+ greeting?: string | undefined;
4518
+ telemetry?: {
4519
+ enabled?: boolean | undefined;
4520
+ serviceName?: string | undefined;
4521
+ tracerName?: string | undefined;
4522
+ export?: {
4523
+ type: "otlp";
4524
+ headers?: Record<string, string> | undefined;
4525
+ protocol?: "http" | "grpc" | undefined;
4526
+ endpoint?: string | undefined;
4527
+ } | {
4528
+ type: "console";
4529
+ } | undefined;
4530
+ } | undefined;
4531
+ memories?: {
4532
+ enabled: boolean;
4533
+ priority: number;
4534
+ includeTimestamps: boolean;
4535
+ includeTags: boolean;
4536
+ pinnedOnly: boolean;
4537
+ limit?: number | undefined;
4538
+ } | undefined;
4539
+ image?: string | undefined;
4540
+ tools?: z.objectOutputType<{
4541
+ type: z.ZodString;
4542
+ enabled: z.ZodOptional<z.ZodBoolean>;
4543
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
4544
+ hooks?: z.objectOutputType<{
4545
+ type: z.ZodString;
4546
+ enabled: z.ZodOptional<z.ZodBoolean>;
4547
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
4548
+ }, {
4549
+ systemPrompt: string | {
4550
+ contributors?: ({
4551
+ type: "static";
4552
+ content: string;
4553
+ id: string;
4554
+ priority: number;
4555
+ enabled?: boolean | undefined;
4556
+ } | {
4557
+ type: "dynamic";
4558
+ id: string;
4559
+ priority: number;
4560
+ source: "date" | "env" | "resources";
4561
+ enabled?: boolean | undefined;
4562
+ } | {
4563
+ type: "file";
4564
+ id: string;
4565
+ priority: number;
4566
+ files: string[];
4567
+ options?: {
4568
+ includeFilenames?: boolean | undefined;
4569
+ separator?: string | undefined;
4570
+ errorHandling?: "error" | "skip" | undefined;
4571
+ maxFileSize?: number | undefined;
4572
+ includeMetadata?: boolean | undefined;
4573
+ } | undefined;
4574
+ enabled?: boolean | undefined;
4575
+ })[] | undefined;
4576
+ };
4577
+ llm: {
4578
+ model: string;
4579
+ provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova";
4580
+ apiKey?: string | undefined;
4581
+ maxInputTokens?: number | undefined;
4582
+ maxIterations?: number | undefined;
4583
+ baseURL?: string | undefined;
4584
+ maxOutputTokens?: number | undefined;
4585
+ temperature?: number | undefined;
4586
+ allowedMediaTypes?: string[] | undefined;
4587
+ reasoningEffort?: "low" | "none" | "minimal" | "medium" | "high" | "xhigh" | undefined;
4588
+ };
4589
+ agentCard?: {
4590
+ description: string;
4591
+ name: string;
4592
+ url: string;
4593
+ version: string;
4594
+ provider?: {
4595
+ url: string;
4596
+ organization: string;
4597
+ } | undefined;
4598
+ metadata?: z.objectInputType<{
4599
+ dexto: z.ZodOptional<z.ZodObject<{
4600
+ authentication: z.ZodOptional<z.ZodObject<{
4601
+ schemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
4602
+ credentials: z.ZodOptional<z.ZodString>;
4603
+ }, "strict", z.ZodTypeAny, {
4604
+ schemes: string[];
4605
+ credentials?: string | undefined;
4606
+ }, {
4607
+ schemes?: string[] | undefined;
4608
+ credentials?: string | undefined;
4609
+ }>>;
4610
+ delegation: z.ZodOptional<z.ZodObject<{
4611
+ protocol: z.ZodEnum<["dexto-v1", "http-simple", "a2a-jsonrpc", "mcp-http"]>;
4612
+ endpoint: z.ZodString;
4613
+ supportsSession: z.ZodBoolean;
4614
+ supportsStreaming: z.ZodOptional<z.ZodBoolean>;
4615
+ }, "strict", z.ZodTypeAny, {
4616
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
4617
+ endpoint: string;
4618
+ supportsSession: boolean;
4619
+ supportsStreaming?: boolean | undefined;
4620
+ }, {
4621
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
4622
+ endpoint: string;
4623
+ supportsSession: boolean;
4624
+ supportsStreaming?: boolean | undefined;
4625
+ }>>;
4626
+ owner: z.ZodOptional<z.ZodObject<{
4627
+ userId: z.ZodString;
4628
+ username: z.ZodString;
4629
+ email: z.ZodOptional<z.ZodString>;
4630
+ }, "strict", z.ZodTypeAny, {
4631
+ userId: string;
4632
+ username: string;
4633
+ email?: string | undefined;
4634
+ }, {
4635
+ userId: string;
4636
+ username: string;
4637
+ email?: string | undefined;
4638
+ }>>;
4639
+ }, "strict", z.ZodTypeAny, {
4640
+ authentication?: {
4641
+ schemes: string[];
4642
+ credentials?: string | undefined;
4643
+ } | undefined;
4644
+ delegation?: {
4645
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
4646
+ endpoint: string;
4647
+ supportsSession: boolean;
4648
+ supportsStreaming?: boolean | undefined;
4649
+ } | undefined;
4650
+ owner?: {
4651
+ userId: string;
4652
+ username: string;
4653
+ email?: string | undefined;
4654
+ } | undefined;
4655
+ }, {
4656
+ authentication?: {
4657
+ schemes?: string[] | undefined;
4658
+ credentials?: string | undefined;
4659
+ } | undefined;
4660
+ delegation?: {
4661
+ protocol: "dexto-v1" | "http-simple" | "a2a-jsonrpc" | "mcp-http";
4662
+ endpoint: string;
4663
+ supportsSession: boolean;
4664
+ supportsStreaming?: boolean | undefined;
4665
+ } | undefined;
4666
+ owner?: {
4667
+ userId: string;
4668
+ username: string;
4669
+ email?: string | undefined;
4670
+ } | undefined;
4671
+ }>>;
4672
+ }, z.ZodTypeAny, "passthrough"> | undefined;
4673
+ protocolVersion?: string | undefined;
4674
+ preferredTransport?: "JSONRPC" | "GRPC" | "HTTP+JSON" | undefined;
4675
+ defaultInputModes?: string[] | undefined;
4676
+ defaultOutputModes?: string[] | undefined;
4677
+ skills?: {
4678
+ description: string;
4679
+ name: string;
4680
+ id: string;
4681
+ tags: string[];
4682
+ examples?: string[] | undefined;
4683
+ inputModes?: string[] | undefined;
4684
+ outputModes?: string[] | undefined;
4685
+ }[] | undefined;
4686
+ iconUrl?: string | undefined;
4687
+ documentationUrl?: string | undefined;
4688
+ additionalInterfaces?: {
4689
+ url: string;
4690
+ transport: "JSONRPC" | "GRPC" | "HTTP+JSON";
4691
+ }[] | undefined;
4692
+ capabilities?: {
4693
+ streaming?: boolean | undefined;
4694
+ pushNotifications?: boolean | undefined;
4695
+ stateTransitionHistory?: boolean | undefined;
4696
+ } | undefined;
4697
+ securitySchemes?: Record<string, {
4698
+ type: "apiKey";
4699
+ name: string;
4700
+ in: "query" | "header" | "cookie";
4701
+ description?: string | undefined;
4702
+ } | {
4703
+ type: "http";
4704
+ scheme: string;
4705
+ description?: string | undefined;
4706
+ bearerFormat?: string | undefined;
4707
+ } | {
4708
+ type: "oauth2";
4709
+ flows: {
4710
+ password?: {
4711
+ scopes: Record<string, string>;
4712
+ authorizationUrl?: string | undefined;
4713
+ tokenUrl?: string | undefined;
4714
+ refreshUrl?: string | undefined;
4715
+ } | undefined;
4716
+ implicit?: {
4717
+ scopes: Record<string, string>;
4718
+ authorizationUrl?: string | undefined;
4719
+ tokenUrl?: string | undefined;
4720
+ refreshUrl?: string | undefined;
4721
+ } | undefined;
4722
+ clientCredentials?: {
4723
+ scopes: Record<string, string>;
4724
+ authorizationUrl?: string | undefined;
4725
+ tokenUrl?: string | undefined;
4726
+ refreshUrl?: string | undefined;
4727
+ } | undefined;
4728
+ authorizationCode?: {
4729
+ scopes: Record<string, string>;
4730
+ authorizationUrl?: string | undefined;
4731
+ tokenUrl?: string | undefined;
4732
+ refreshUrl?: string | undefined;
4733
+ } | undefined;
4734
+ };
4735
+ description?: string | undefined;
4736
+ } | {
4737
+ type: "openIdConnect";
4738
+ openIdConnectUrl: string;
4739
+ description?: string | undefined;
4740
+ } | {
4741
+ type: "mutualTLS";
4742
+ description?: string | undefined;
4743
+ }> | undefined;
4744
+ security?: Record<string, string[]>[] | undefined;
4745
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
4746
+ signatures?: {
4747
+ protected: string;
4748
+ signature: string;
4749
+ }[] | undefined;
4750
+ } | undefined;
4751
+ greeting?: string | undefined;
4752
+ telemetry?: {
4753
+ enabled?: boolean | undefined;
4754
+ serviceName?: string | undefined;
4755
+ tracerName?: string | undefined;
4756
+ export?: {
4757
+ type: "otlp";
4758
+ headers?: Record<string, string> | undefined;
4759
+ protocol?: "http" | "grpc" | undefined;
4760
+ endpoint?: string | undefined;
4761
+ } | {
4762
+ type: "console";
4763
+ } | undefined;
4764
+ } | undefined;
4765
+ memories?: {
4766
+ enabled?: boolean | undefined;
4767
+ priority?: number | undefined;
4768
+ limit?: number | undefined;
4769
+ includeTimestamps?: boolean | undefined;
4770
+ includeTags?: boolean | undefined;
4771
+ pinnedOnly?: boolean | undefined;
4772
+ } | undefined;
4773
+ agentFile?: {
4774
+ discoverInCwd?: boolean | undefined;
4775
+ } | undefined;
4776
+ image?: string | undefined;
4777
+ agentId?: string | undefined;
4778
+ mcpServers?: Record<string, {
4779
+ type: "stdio";
4780
+ command: string;
4781
+ timeout?: number | undefined;
4782
+ enabled?: boolean | undefined;
4783
+ args?: string[] | undefined;
4784
+ env?: Record<string, string> | undefined;
4785
+ connectionMode?: "strict" | "lenient" | undefined;
4786
+ } | {
4787
+ type: "sse";
4788
+ url: string;
4789
+ timeout?: number | undefined;
4790
+ enabled?: boolean | undefined;
4791
+ connectionMode?: "strict" | "lenient" | undefined;
4792
+ headers?: Record<string, string> | undefined;
4793
+ } | {
4794
+ type: "http";
4795
+ url: string;
4796
+ timeout?: number | undefined;
4797
+ enabled?: boolean | undefined;
4798
+ connectionMode?: "strict" | "lenient" | undefined;
4799
+ headers?: Record<string, string> | undefined;
4800
+ }> | undefined;
4801
+ tools?: z.objectInputType<{
4802
+ type: z.ZodString;
4803
+ enabled: z.ZodOptional<z.ZodBoolean>;
4804
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
4805
+ logger?: {
4806
+ level?: "debug" | "info" | "warn" | "error" | "silly" | undefined;
4807
+ transports?: ({
4808
+ type: "silent";
4809
+ } | {
4810
+ type: "console";
4811
+ colorize?: boolean | undefined;
4812
+ } | {
4813
+ path: string;
4814
+ type: "file";
4815
+ maxSize?: number | undefined;
4816
+ maxFiles?: number | undefined;
4817
+ } | {
4818
+ token: string;
4819
+ type: "upstash";
4820
+ url: string;
4821
+ batchSize?: number | undefined;
4822
+ listName?: string | undefined;
4823
+ maxListLength?: number | undefined;
4824
+ })[] | undefined;
4825
+ } | undefined;
4826
+ storage?: {
4827
+ database: {
4828
+ type: string;
4829
+ } & {
4830
+ [k: string]: unknown;
4831
+ };
4832
+ cache: {
4833
+ type: string;
4834
+ } & {
4835
+ [k: string]: unknown;
4836
+ };
4837
+ blob: {
4838
+ type: string;
4839
+ } & {
4840
+ [k: string]: unknown;
4841
+ };
4842
+ } | undefined;
4843
+ sessions?: {
4844
+ maxSessions?: number | undefined;
4845
+ sessionTTL?: number | undefined;
4846
+ } | undefined;
4847
+ permissions?: {
4848
+ timeout?: number | undefined;
4849
+ mode?: "manual" | "auto-approve" | "auto-deny" | undefined;
4850
+ allowedToolsStorage?: "storage" | "memory" | undefined;
4851
+ toolPolicies?: {
4852
+ alwaysAllow?: string[] | undefined;
4853
+ alwaysDeny?: string[] | undefined;
4854
+ } | undefined;
4855
+ } | undefined;
4856
+ elicitation?: {
4857
+ timeout?: number | undefined;
4858
+ enabled?: boolean | undefined;
4859
+ } | undefined;
4860
+ resources?: ({
4861
+ type: "filesystem";
4862
+ paths: string[];
4863
+ maxFiles?: number | undefined;
4864
+ maxDepth?: number | undefined;
4865
+ includeHidden?: boolean | undefined;
4866
+ includeExtensions?: string[] | undefined;
4867
+ } | {
4868
+ type: "blob";
4869
+ })[] | undefined;
4870
+ prompts?: ({
4871
+ prompt: string;
4872
+ type: "inline";
4873
+ id: string;
4874
+ agent?: string | undefined;
4875
+ context?: "inline" | "fork" | undefined;
4876
+ description?: string | undefined;
4877
+ model?: string | undefined;
4878
+ priority?: number | undefined;
4879
+ title?: string | undefined;
4880
+ category?: string | undefined;
4881
+ showInStarters?: boolean | undefined;
4882
+ 'disable-model-invocation'?: boolean | undefined;
4883
+ 'user-invocable'?: boolean | undefined;
4884
+ 'allowed-tools'?: string[] | undefined;
4885
+ } | {
4886
+ file: string;
4887
+ type: "file";
4888
+ agent?: string | undefined;
4889
+ context?: "inline" | "fork" | undefined;
4890
+ model?: string | undefined;
4891
+ showInStarters?: boolean | undefined;
4892
+ 'disable-model-invocation'?: boolean | undefined;
4893
+ 'user-invocable'?: boolean | undefined;
4894
+ 'allowed-tools'?: string[] | undefined;
4895
+ namespace?: string | undefined;
4896
+ })[] | undefined;
4897
+ hooks?: z.objectInputType<{
4898
+ type: z.ZodString;
4899
+ enabled: z.ZodOptional<z.ZodBoolean>;
4900
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
4901
+ compaction?: z.objectInputType<{
4902
+ enabled: z.ZodDefault<z.ZodBoolean>;
4903
+ maxContextTokens: z.ZodOptional<z.ZodNumber>;
4904
+ thresholdPercent: z.ZodDefault<z.ZodNumber>;
4905
+ type: z.ZodString;
4906
+ }, z.ZodTypeAny, "passthrough"> | undefined;
4907
+ }>, "ValidatedAgentConfig">;
4908
+ export type AgentConfig = z.input<typeof AgentConfigSchema>;
4909
+ export type ValidatedAgentConfig = z.output<typeof AgentConfigSchema>;
4910
+ //# sourceMappingURL=agent-config.d.ts.map