import * as z from "zod/v4"; import { ClosedEnum } from "../types/enums.js"; export type McpServerToolParametersAllowedTools = { readOnly?: boolean | undefined; toolNames?: Array | undefined; additionalProperties?: { [k: string]: any; } | undefined; }; /** * Restrict the tools exposed to the model to this list or filter. */ export type McpServerToolParametersAllowedToolsUnion = Array | McpServerToolParametersAllowedTools; export declare const McpServerToolParametersRequireApprovalNever: { readonly Never: "never"; }; export type McpServerToolParametersRequireApprovalNever = ClosedEnum; export declare const McpServerToolParametersRequireApprovalAlways: { readonly Always: "always"; }; export type McpServerToolParametersRequireApprovalAlways = ClosedEnum; export type McpServerToolParametersAlways = { readOnly?: boolean | undefined; toolNames?: Array | undefined; additionalProperties?: { [k: string]: any; } | undefined; }; export type McpServerToolParametersNever = { readOnly?: boolean | undefined; toolNames?: Array | undefined; additionalProperties?: { [k: string]: any; } | undefined; }; export type McpServerToolParametersRequireApproval = { always?: McpServerToolParametersAlways | undefined; never?: McpServerToolParametersNever | undefined; additionalProperties?: { [k: string]: any; } | undefined; }; /** * Approval policy for tool calls. Defaults to always: a call that needs approval ends the response with an mcp_approval_request item, answered with an mcp_approval_response on the next request. */ export type McpServerToolParametersRequireApprovalUnion = McpServerToolParametersRequireApproval | McpServerToolParametersRequireApprovalAlways | McpServerToolParametersRequireApprovalNever; /** * Configuration for a remote MCP server tool. */ export type McpServerToolParameters = { /** * Restrict the tools exposed to the model to this list or filter. */ allowedTools?: Array | McpServerToolParametersAllowedTools | null | undefined; /** * OAuth access token sent as the Authorization bearer to the server. */ authorization?: string | undefined; /** * Provider-defined connector identifier, forwarded as written to providers that run MCP themselves. */ connectorId?: string | undefined; /** * Extra headers sent on every request to the server. */ headers?: { [k: string]: string; } | null | undefined; /** * Approval policy for tool calls. Defaults to always: a call that needs approval ends the response with an mcp_approval_request item, answered with an mcp_approval_response on the next request. */ requireApproval?: McpServerToolParametersRequireApproval | McpServerToolParametersRequireApprovalAlways | McpServerToolParametersRequireApprovalNever | null | undefined; /** * Extra context about the server, shown to the model. */ serverDescription?: string | undefined; /** * Label for this MCP server, used in mcp_list_tools and mcp_call items. */ serverLabel: string; /** * URL of the remote MCP server (streamable HTTP). */ serverUrl?: string | undefined; }; /** @internal */ export type McpServerToolParametersAllowedTools$Outbound = { read_only?: boolean | undefined; tool_names?: Array | undefined; [additionalProperties: string]: unknown; }; /** @internal */ export declare const McpServerToolParametersAllowedTools$outboundSchema: z.ZodType; export declare function mcpServerToolParametersAllowedToolsToJSON(mcpServerToolParametersAllowedTools: McpServerToolParametersAllowedTools): string; /** @internal */ export type McpServerToolParametersAllowedToolsUnion$Outbound = Array | McpServerToolParametersAllowedTools$Outbound; /** @internal */ export declare const McpServerToolParametersAllowedToolsUnion$outboundSchema: z.ZodType; export declare function mcpServerToolParametersAllowedToolsUnionToJSON(mcpServerToolParametersAllowedToolsUnion: McpServerToolParametersAllowedToolsUnion): string; /** @internal */ export declare const McpServerToolParametersRequireApprovalNever$outboundSchema: z.ZodEnum; /** @internal */ export declare const McpServerToolParametersRequireApprovalAlways$outboundSchema: z.ZodEnum; /** @internal */ export type McpServerToolParametersAlways$Outbound = { read_only?: boolean | undefined; tool_names?: Array | undefined; [additionalProperties: string]: unknown; }; /** @internal */ export declare const McpServerToolParametersAlways$outboundSchema: z.ZodType; export declare function mcpServerToolParametersAlwaysToJSON(mcpServerToolParametersAlways: McpServerToolParametersAlways): string; /** @internal */ export type McpServerToolParametersNever$Outbound = { read_only?: boolean | undefined; tool_names?: Array | undefined; [additionalProperties: string]: unknown; }; /** @internal */ export declare const McpServerToolParametersNever$outboundSchema: z.ZodType; export declare function mcpServerToolParametersNeverToJSON(mcpServerToolParametersNever: McpServerToolParametersNever): string; /** @internal */ export type McpServerToolParametersRequireApproval$Outbound = { always?: McpServerToolParametersAlways$Outbound | undefined; never?: McpServerToolParametersNever$Outbound | undefined; [additionalProperties: string]: unknown; }; /** @internal */ export declare const McpServerToolParametersRequireApproval$outboundSchema: z.ZodType; export declare function mcpServerToolParametersRequireApprovalToJSON(mcpServerToolParametersRequireApproval: McpServerToolParametersRequireApproval): string; /** @internal */ export type McpServerToolParametersRequireApprovalUnion$Outbound = McpServerToolParametersRequireApproval$Outbound | string | string; /** @internal */ export declare const McpServerToolParametersRequireApprovalUnion$outboundSchema: z.ZodType; export declare function mcpServerToolParametersRequireApprovalUnionToJSON(mcpServerToolParametersRequireApprovalUnion: McpServerToolParametersRequireApprovalUnion): string; /** @internal */ export type McpServerToolParameters$Outbound = { allowed_tools?: Array | McpServerToolParametersAllowedTools$Outbound | null | undefined; authorization?: string | undefined; connector_id?: string | undefined; headers?: { [k: string]: string; } | null | undefined; require_approval?: McpServerToolParametersRequireApproval$Outbound | string | string | null | undefined; server_description?: string | undefined; server_label: string; server_url?: string | undefined; }; /** @internal */ export declare const McpServerToolParameters$outboundSchema: z.ZodType; export declare function mcpServerToolParametersToJSON(mcpServerToolParameters: McpServerToolParameters): string; //# sourceMappingURL=mcpservertoolparameters.d.ts.map