/** * Zod schemas for validating mcpGraph configuration */ import { z } from "zod"; export declare const serverConfigSchema: z.ZodUnion<[z.ZodObject<{ type: z.ZodOptional>; command: z.ZodString; args: z.ZodArray; cwd: z.ZodOptional; }, "strip", z.ZodTypeAny, { command: string; args: string[]; type?: "stdio" | undefined; cwd?: string | undefined; }, { command: string; args: string[]; type?: "stdio" | undefined; cwd?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"sse">; url: z.ZodString; headers: z.ZodOptional>; eventSourceInit: z.ZodOptional>; requestInit: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type: "sse"; url: string; headers?: Record | undefined; eventSourceInit?: Record | undefined; requestInit?: Record | undefined; }, { type: "sse"; url: string; headers?: Record | undefined; eventSourceInit?: Record | undefined; requestInit?: Record | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"streamableHttp">; url: z.ZodString; headers: z.ZodOptional>; requestInit: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type: "streamableHttp"; url: string; headers?: Record | undefined; requestInit?: Record | undefined; }, { type: "streamableHttp"; url: string; headers?: Record | undefined; requestInit?: Record | undefined; }>]>; export declare const mcpGraphConfigSchema: z.ZodObject<{ version: z.ZodString; server: z.ZodObject<{ name: z.ZodString; version: z.ZodString; title: z.ZodOptional; instructions: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; version: string; title?: string | undefined; instructions?: string | undefined; }, { name: string; version: string; title?: string | undefined; instructions?: string | undefined; }>; mcpServers: z.ZodOptional>; command: z.ZodString; args: z.ZodArray; cwd: z.ZodOptional; }, "strip", z.ZodTypeAny, { command: string; args: string[]; type?: "stdio" | undefined; cwd?: string | undefined; }, { command: string; args: string[]; type?: "stdio" | undefined; cwd?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"sse">; url: z.ZodString; headers: z.ZodOptional>; eventSourceInit: z.ZodOptional>; requestInit: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type: "sse"; url: string; headers?: Record | undefined; eventSourceInit?: Record | undefined; requestInit?: Record | undefined; }, { type: "sse"; url: string; headers?: Record | undefined; eventSourceInit?: Record | undefined; requestInit?: Record | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"streamableHttp">; url: z.ZodString; headers: z.ZodOptional>; requestInit: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type: "streamableHttp"; url: string; headers?: Record | undefined; requestInit?: Record | undefined; }, { type: "streamableHttp"; url: string; headers?: Record | undefined; requestInit?: Record | undefined; }>]>>>; executionLimits: z.ZodOptional; maxExecutionTimeMs: z.ZodOptional; }, "strip", z.ZodTypeAny, { maxNodeExecutions?: number | undefined; maxExecutionTimeMs?: number | undefined; }, { maxNodeExecutions?: number | undefined; maxExecutionTimeMs?: number | undefined; }>>; tools: z.ZodDefault; }, "strip", z.ZodTypeAny, { type: string; description?: string | undefined; }, { type: string; description?: string | undefined; }>>>; required: z.ZodOptional>; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; description?: string | undefined; properties?: Record | undefined; required?: string[] | undefined; }, { type: string; description?: string | undefined; properties?: Record | undefined; required?: string[] | undefined; }>; outputSchema: z.ZodObject<{ type: z.ZodString; properties: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; description?: string | undefined; }, { type: string; description?: string | undefined; }>>>; required: z.ZodOptional>; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; description?: string | undefined; properties?: Record | undefined; required?: string[] | undefined; }, { type: string; description?: string | undefined; properties?: Record | undefined; required?: string[] | undefined; }>; nodes: z.ZodArray; next: z.ZodString; }, "strip", z.ZodTypeAny, { type: "entry"; id: string; next: string; }, { type: "entry"; id: string; next: string; }>, z.ZodObject<{ id: z.ZodString; next: z.ZodOptional; } & { type: z.ZodLiteral<"exit">; }, "strip", z.ZodTypeAny, { type: "exit"; id: string; next?: string | undefined; }, { type: "exit"; id: string; next?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; } & { type: z.ZodLiteral<"mcp">; server: z.ZodString; tool: z.ZodString; args: z.ZodRecord; next: z.ZodString; }, "strip", z.ZodTypeAny, { type: "mcp"; args: Record; id: string; next: string; server: string; tool: string; }, { type: "mcp"; args: Record; id: string; next: string; server: string; tool: string; }>, z.ZodObject<{ id: z.ZodString; } & { type: z.ZodLiteral<"transform">; transform: z.ZodObject<{ expr: z.ZodString; }, "strip", z.ZodTypeAny, { expr: string; }, { expr: string; }>; next: z.ZodString; }, "strip", z.ZodTypeAny, { type: "transform"; id: string; next: string; transform: { expr: string; }; }, { type: "transform"; id: string; next: string; transform: { expr: string; }; }>, z.ZodObject<{ id: z.ZodString; } & { type: z.ZodLiteral<"switch">; conditions: z.ZodArray, "many">; next: z.ZodString; }, "strip", z.ZodTypeAny, { type: "switch"; id: string; next: string; conditions: { next: string; rule?: unknown; }[]; }, { type: "switch"; id: string; next: string; conditions: { next: string; rule?: unknown; }[]; }>]>, "many">; }, "strip", z.ZodTypeAny, { description: string; name: string; inputSchema: { type: string; description?: string | undefined; properties?: Record | undefined; required?: string[] | undefined; }; outputSchema: { type: string; description?: string | undefined; properties?: Record | undefined; required?: string[] | undefined; }; nodes: ({ type: "entry"; id: string; next: string; } | { type: "exit"; id: string; next?: string | undefined; } | { type: "mcp"; args: Record; id: string; next: string; server: string; tool: string; } | { type: "transform"; id: string; next: string; transform: { expr: string; }; } | { type: "switch"; id: string; next: string; conditions: { next: string; rule?: unknown; }[]; })[]; }, { description: string; name: string; inputSchema: { type: string; description?: string | undefined; properties?: Record | undefined; required?: string[] | undefined; }; outputSchema: { type: string; description?: string | undefined; properties?: Record | undefined; required?: string[] | undefined; }; nodes: ({ type: "entry"; id: string; next: string; } | { type: "exit"; id: string; next?: string | undefined; } | { type: "mcp"; args: Record; id: string; next: string; server: string; tool: string; } | { type: "transform"; id: string; next: string; transform: { expr: string; }; } | { type: "switch"; id: string; next: string; conditions: { next: string; rule?: unknown; }[]; })[]; }>, "many">>; }, "strip", z.ZodTypeAny, { version: string; server: { name: string; version: string; title?: string | undefined; instructions?: string | undefined; }; tools: { description: string; name: string; inputSchema: { type: string; description?: string | undefined; properties?: Record | undefined; required?: string[] | undefined; }; outputSchema: { type: string; description?: string | undefined; properties?: Record | undefined; required?: string[] | undefined; }; nodes: ({ type: "entry"; id: string; next: string; } | { type: "exit"; id: string; next?: string | undefined; } | { type: "mcp"; args: Record; id: string; next: string; server: string; tool: string; } | { type: "transform"; id: string; next: string; transform: { expr: string; }; } | { type: "switch"; id: string; next: string; conditions: { next: string; rule?: unknown; }[]; })[]; }[]; mcpServers?: Record | undefined; eventSourceInit?: Record | undefined; requestInit?: Record | undefined; } | { type: "streamableHttp"; url: string; headers?: Record | undefined; requestInit?: Record | undefined; }> | undefined; executionLimits?: { maxNodeExecutions?: number | undefined; maxExecutionTimeMs?: number | undefined; } | undefined; }, { version: string; server: { name: string; version: string; title?: string | undefined; instructions?: string | undefined; }; mcpServers?: Record | undefined; eventSourceInit?: Record | undefined; requestInit?: Record | undefined; } | { type: "streamableHttp"; url: string; headers?: Record | undefined; requestInit?: Record | undefined; }> | undefined; executionLimits?: { maxNodeExecutions?: number | undefined; maxExecutionTimeMs?: number | undefined; } | undefined; tools?: { description: string; name: string; inputSchema: { type: string; description?: string | undefined; properties?: Record | undefined; required?: string[] | undefined; }; outputSchema: { type: string; description?: string | undefined; properties?: Record | undefined; required?: string[] | undefined; }; nodes: ({ type: "entry"; id: string; next: string; } | { type: "exit"; id: string; next?: string | undefined; } | { type: "mcp"; args: Record; id: string; next: string; server: string; tool: string; } | { type: "transform"; id: string; next: string; transform: { expr: string; }; } | { type: "switch"; id: string; next: string; conditions: { next: string; rule?: unknown; }[]; })[]; }[] | undefined; }>; export type McpGraphConfigSchema = z.infer; //# sourceMappingURL=schema.d.ts.map