import * as z from "zod/v4"; import { ClosedEnum, OpenEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type AllowedTools = { readOnly?: boolean | undefined; toolNames?: Array | undefined; }; export type AllowedToolsUnion = Array | AllowedTools | any; export declare const ConnectorId: { readonly ConnectorDropbox: "connector_dropbox"; readonly ConnectorGmail: "connector_gmail"; readonly ConnectorGooglecalendar: "connector_googlecalendar"; readonly ConnectorGoogledrive: "connector_googledrive"; readonly ConnectorMicrosoftteams: "connector_microsoftteams"; readonly ConnectorOutlookcalendar: "connector_outlookcalendar"; readonly ConnectorOutlookemail: "connector_outlookemail"; readonly ConnectorSharepoint: "connector_sharepoint"; }; export type ConnectorId = OpenEnum; export declare const RequireApprovalNever: { readonly Never: "never"; }; export type RequireApprovalNever = ClosedEnum; export declare const RequireApprovalAlways: { readonly Always: "always"; }; export type RequireApprovalAlways = ClosedEnum; export type Always = { toolNames?: Array | undefined; }; export type Never = { toolNames?: Array | undefined; }; export type RequireApproval = { always?: Always | undefined; never?: Never | undefined; }; export type RequireApprovalUnion = RequireApproval | RequireApprovalAlways | RequireApprovalNever | any; /** * MCP (Model Context Protocol) tool configuration */ export type McpServerTool = { allowedTools?: Array | AllowedTools | any | null | undefined; authorization?: string | undefined; connectorId?: ConnectorId | undefined; headers?: { [k: string]: string; } | null | undefined; requireApproval?: RequireApproval | RequireApprovalAlways | RequireApprovalNever | any | null | undefined; serverDescription?: string | undefined; serverLabel: string; serverUrl?: string | undefined; type: "mcp"; }; /** @internal */ export declare const AllowedTools$inboundSchema: z.ZodType; /** @internal */ export type AllowedTools$Outbound = { read_only?: boolean | undefined; tool_names?: Array | undefined; }; /** @internal */ export declare const AllowedTools$outboundSchema: z.ZodType; export declare function allowedToolsToJSON(allowedTools: AllowedTools): string; export declare function allowedToolsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AllowedToolsUnion$inboundSchema: z.ZodType; /** @internal */ export type AllowedToolsUnion$Outbound = Array | AllowedTools$Outbound | any; /** @internal */ export declare const AllowedToolsUnion$outboundSchema: z.ZodType; export declare function allowedToolsUnionToJSON(allowedToolsUnion: AllowedToolsUnion): string; export declare function allowedToolsUnionFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConnectorId$inboundSchema: z.ZodType; /** @internal */ export declare const ConnectorId$outboundSchema: z.ZodType; /** @internal */ export declare const RequireApprovalNever$inboundSchema: z.ZodEnum; /** @internal */ export declare const RequireApprovalNever$outboundSchema: z.ZodEnum; /** @internal */ export declare const RequireApprovalAlways$inboundSchema: z.ZodEnum; /** @internal */ export declare const RequireApprovalAlways$outboundSchema: z.ZodEnum; /** @internal */ export declare const Always$inboundSchema: z.ZodType; /** @internal */ export type Always$Outbound = { tool_names?: Array | undefined; }; /** @internal */ export declare const Always$outboundSchema: z.ZodType; export declare function alwaysToJSON(always: Always): string; export declare function alwaysFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Never$inboundSchema: z.ZodType; /** @internal */ export type Never$Outbound = { tool_names?: Array | undefined; }; /** @internal */ export declare const Never$outboundSchema: z.ZodType; export declare function neverToJSON(never: Never): string; export declare function neverFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const RequireApproval$inboundSchema: z.ZodType; /** @internal */ export type RequireApproval$Outbound = { always?: Always$Outbound | undefined; never?: Never$Outbound | undefined; }; /** @internal */ export declare const RequireApproval$outboundSchema: z.ZodType; export declare function requireApprovalToJSON(requireApproval: RequireApproval): string; export declare function requireApprovalFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const RequireApprovalUnion$inboundSchema: z.ZodType; /** @internal */ export type RequireApprovalUnion$Outbound = RequireApproval$Outbound | string | string | any; /** @internal */ export declare const RequireApprovalUnion$outboundSchema: z.ZodType; export declare function requireApprovalUnionToJSON(requireApprovalUnion: RequireApprovalUnion): string; export declare function requireApprovalUnionFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const McpServerTool$inboundSchema: z.ZodType; /** @internal */ export type McpServerTool$Outbound = { allowed_tools?: Array | AllowedTools$Outbound | any | null | undefined; authorization?: string | undefined; connector_id?: string | undefined; headers?: { [k: string]: string; } | null | undefined; require_approval?: RequireApproval$Outbound | string | string | any | null | undefined; server_description?: string | undefined; server_label: string; server_url?: string | undefined; type: "mcp"; }; /** @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