import * as z from "zod/v4"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type McpServerToolAllowedTools = { readOnly?: boolean | undefined; toolNames?: Array | undefined; additionalProperties?: { [k: string]: any; } | undefined; }; export type McpServerToolAllowedToolsUnion = Array | McpServerToolAllowedTools; export declare const McpServerToolRequireApprovalNever: { readonly Never: "never"; }; export type McpServerToolRequireApprovalNever = ClosedEnum; export declare const McpServerToolRequireApprovalAlways: { readonly Always: "always"; }; export type McpServerToolRequireApprovalAlways = ClosedEnum; export type McpServerToolAlways = { readOnly?: boolean | undefined; toolNames?: Array | undefined; additionalProperties?: { [k: string]: any; } | undefined; }; export type McpServerToolNever = { readOnly?: boolean | undefined; toolNames?: Array | undefined; additionalProperties?: { [k: string]: any; } | undefined; }; export type McpServerToolRequireApproval = { always?: McpServerToolAlways | undefined; never?: McpServerToolNever | undefined; additionalProperties?: { [k: string]: any; } | undefined; }; export type McpServerToolRequireApprovalUnion = McpServerToolRequireApproval | McpServerToolRequireApprovalAlways | McpServerToolRequireApprovalNever; export declare const McpServerToolType: { readonly Mcp: "mcp"; }; export type McpServerToolType = ClosedEnum; /** * MCP (Model Context Protocol) tool configuration */ export type McpServerTool = { allowedTools?: Array | McpServerToolAllowedTools | null | undefined; authorization?: string | undefined; connectorId?: string | undefined; headers?: { [k: string]: string; } | null | undefined; requireApproval?: McpServerToolRequireApproval | McpServerToolRequireApprovalAlways | McpServerToolRequireApprovalNever | null | undefined; serverDescription?: string | undefined; serverLabel: string; serverUrl?: string | undefined; type: McpServerToolType; additionalProperties?: { [k: string]: any; } | undefined; }; /** @internal */ export declare const McpServerToolAllowedTools$inboundSchema: z.ZodType; /** @internal */ export type McpServerToolAllowedTools$Outbound = { read_only?: boolean | undefined; tool_names?: Array | undefined; [additionalProperties: string]: unknown; }; /** @internal */ export declare const McpServerToolAllowedTools$outboundSchema: z.ZodType; export declare function mcpServerToolAllowedToolsToJSON(mcpServerToolAllowedTools: McpServerToolAllowedTools): string; export declare function mcpServerToolAllowedToolsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const McpServerToolAllowedToolsUnion$inboundSchema: z.ZodType; /** @internal */ export type McpServerToolAllowedToolsUnion$Outbound = Array | McpServerToolAllowedTools$Outbound; /** @internal */ export declare const McpServerToolAllowedToolsUnion$outboundSchema: z.ZodType; export declare function mcpServerToolAllowedToolsUnionToJSON(mcpServerToolAllowedToolsUnion: McpServerToolAllowedToolsUnion): string; export declare function mcpServerToolAllowedToolsUnionFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const McpServerToolRequireApprovalNever$inboundSchema: z.ZodEnum; /** @internal */ export declare const McpServerToolRequireApprovalNever$outboundSchema: z.ZodEnum; /** @internal */ export declare const McpServerToolRequireApprovalAlways$inboundSchema: z.ZodEnum; /** @internal */ export declare const McpServerToolRequireApprovalAlways$outboundSchema: z.ZodEnum; /** @internal */ export declare const McpServerToolAlways$inboundSchema: z.ZodType; /** @internal */ export type McpServerToolAlways$Outbound = { read_only?: boolean | undefined; tool_names?: Array | undefined; [additionalProperties: string]: unknown; }; /** @internal */ export declare const McpServerToolAlways$outboundSchema: z.ZodType; export declare function mcpServerToolAlwaysToJSON(mcpServerToolAlways: McpServerToolAlways): string; export declare function mcpServerToolAlwaysFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const McpServerToolNever$inboundSchema: z.ZodType; /** @internal */ export type McpServerToolNever$Outbound = { read_only?: boolean | undefined; tool_names?: Array | undefined; [additionalProperties: string]: unknown; }; /** @internal */ export declare const McpServerToolNever$outboundSchema: z.ZodType; export declare function mcpServerToolNeverToJSON(mcpServerToolNever: McpServerToolNever): string; export declare function mcpServerToolNeverFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const McpServerToolRequireApproval$inboundSchema: z.ZodType; /** @internal */ export type McpServerToolRequireApproval$Outbound = { always?: McpServerToolAlways$Outbound | undefined; never?: McpServerToolNever$Outbound | undefined; [additionalProperties: string]: unknown; }; /** @internal */ export declare const McpServerToolRequireApproval$outboundSchema: z.ZodType; export declare function mcpServerToolRequireApprovalToJSON(mcpServerToolRequireApproval: McpServerToolRequireApproval): string; export declare function mcpServerToolRequireApprovalFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const McpServerToolRequireApprovalUnion$inboundSchema: z.ZodType; /** @internal */ export type McpServerToolRequireApprovalUnion$Outbound = McpServerToolRequireApproval$Outbound | string | string; /** @internal */ export declare const McpServerToolRequireApprovalUnion$outboundSchema: z.ZodType; export declare function mcpServerToolRequireApprovalUnionToJSON(mcpServerToolRequireApprovalUnion: McpServerToolRequireApprovalUnion): string; export declare function mcpServerToolRequireApprovalUnionFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const McpServerToolType$inboundSchema: z.ZodEnum; /** @internal */ export declare const McpServerToolType$outboundSchema: z.ZodEnum; /** @internal */ export declare const McpServerTool$inboundSchema: z.ZodType; /** @internal */ export type McpServerTool$Outbound = { allowed_tools?: Array | McpServerToolAllowedTools$Outbound | null | undefined; authorization?: string | undefined; connector_id?: string | undefined; headers?: { [k: string]: string; } | null | undefined; require_approval?: McpServerToolRequireApproval$Outbound | string | string | null | undefined; server_description?: string | undefined; server_label: string; server_url?: string | undefined; type: string; [additionalProperties: string]: unknown; }; /** @internal */ export declare const McpServerTool$outboundSchema: z.ZodType; export declare function mcpServerToolToJSON(mcpServerTool: McpServerTool): string; export declare function mcpServerToolFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=mcpservertool.d.ts.map