/** * Copyright (c) 2026, Salesforce, Inc., * All rights reserved. * For full license text, see the LICENSE.txt file */ /** * Per-tool Zod input schemas, extracted so the MCP server and the CLI mirror * (`src/commands/mcp-mirror/`) validate identical argument shapes. The MCP * tools consume `_INPUT.shape` (raw-shape registration) or the object * directly (`detail`, which is `.strict()`); the CLI adapters call * `_INPUT.parse()` on the incoming JSON. Single source of truth keeps * the two transports arg-for-arg symmetric. * * Descriptions and validation are preserved verbatim from the original inline * schemas; behavior is unchanged — this is a pure extraction. */ import { z } from "zod"; export declare const LIST_INPUT: z.ZodObject<{ org: z.ZodString; object: z.ZodString; fields: z.ZodArray; parentFields: z.ZodOptional>; childRelationships: z.ZodOptional; first: z.ZodOptional>; filter: z.ZodOptional>; orderBy: z.ZodOptional>; }, "strip", z.ZodTypeAny, { relationshipName: string; fields: string[]; filter?: any; orderBy?: any; first?: any; }, { relationshipName: string; fields: string[]; filter?: unknown; orderBy?: unknown; first?: unknown; }>, "many">>; filter: z.ZodOptional>; orderBy: z.ZodOptional>; first: z.ZodOptional>; scope: z.ZodOptional; operationName: z.ZodOptional; }, "strip", z.ZodTypeAny, { object: string; org: string; fields: string[]; filter?: any; operationName?: string | undefined; orderBy?: any; first?: any; scope?: string | undefined; parentFields?: string[] | undefined; childRelationships?: { relationshipName: string; fields: string[]; filter?: any; orderBy?: any; first?: any; }[] | undefined; }, { object: string; org: string; fields: string[]; filter?: unknown; operationName?: string | undefined; orderBy?: unknown; first?: unknown; scope?: string | undefined; parentFields?: string[] | undefined; childRelationships?: { relationshipName: string; fields: string[]; filter?: unknown; orderBy?: unknown; first?: unknown; }[] | undefined; }>; export declare const DETAIL_INPUT: z.ZodObject<{ org: z.ZodString; object: z.ZodString; fields: z.ZodArray; parentFields: z.ZodOptional>; childRelationships: z.ZodOptional; first: z.ZodOptional>; filter: z.ZodOptional>; orderBy: z.ZodOptional>; }, "strip", z.ZodTypeAny, { relationshipName: string; fields: string[]; filter?: any; orderBy?: any; first?: any; }, { relationshipName: string; fields: string[]; filter?: unknown; orderBy?: unknown; first?: unknown; }>, "many">>; idVariable: z.ZodOptional; operationName: z.ZodOptional; }, "strict", z.ZodTypeAny, { object: string; org: string; fields: string[]; operationName?: string | undefined; parentFields?: string[] | undefined; childRelationships?: { relationshipName: string; fields: string[]; filter?: any; orderBy?: any; first?: any; }[] | undefined; idVariable?: string | undefined; }, { object: string; org: string; fields: string[]; operationName?: string | undefined; parentFields?: string[] | undefined; childRelationships?: { relationshipName: string; fields: string[]; filter?: unknown; orderBy?: unknown; first?: unknown; }[] | undefined; idVariable?: string | undefined; }>; export declare const DISCOVER_INPUT: z.ZodObject<{ org: z.ZodString; mode: z.ZodEffects, "list_objects" | "describe_object" | "describe_field", unknown>; object: z.ZodOptional; field: z.ZodOptional; search: z.ZodOptional>; }, "strip", z.ZodTypeAny, { org: string; mode: "list_objects" | "describe_object" | "describe_field"; object?: string | undefined; search?: string | undefined; field?: string | undefined; }, { org: string; object?: string | undefined; search?: string | undefined; field?: string | undefined; mode?: unknown; }>; export declare const AGGREGATE_INPUT: z.ZodObject<{ org: z.ZodString; object: z.ZodString; groupBy: z.ZodOptional, "CALENDAR_MONTH" | "CALENDAR_QUARTER" | "CALENDAR_YEAR" | "DAY_IN_MONTH" | "DAY_IN_WEEK" | "DAY_IN_YEAR" | "FISCAL_MONTH" | "FISCAL_QUARTER" | "FISCAL_YEAR" | "HOUR_IN_DAY" | "CALENDAR_MONTH_IN_YEAR" | "FISCAL_MONTH_IN_YEAR" | "WEEK_IN_YEAR", unknown>; }, "strip", z.ZodTypeAny, { function: "CALENDAR_MONTH" | "CALENDAR_QUARTER" | "CALENDAR_YEAR" | "DAY_IN_MONTH" | "DAY_IN_WEEK" | "DAY_IN_YEAR" | "FISCAL_MONTH" | "FISCAL_QUARTER" | "FISCAL_YEAR" | "HOUR_IN_DAY" | "CALENDAR_MONTH_IN_YEAR" | "FISCAL_MONTH_IN_YEAR" | "WEEK_IN_YEAR"; field: string; }, { field: string; function?: unknown; }>]>, "many">>; aggregations: z.ZodOptional; field: z.ZodOptional; alias: z.ZodOptional; }, "strip", z.ZodTypeAny, { function: "count" | "countDistinct"; alias?: string | undefined; field?: string | undefined; }, { function: "count" | "countDistinct"; alias?: string | undefined; field?: string | undefined; }>, z.ZodObject<{ function: z.ZodEnum<["sum", "avg", "min", "max"]>; field: z.ZodString; alias: z.ZodOptional; }, "strip", z.ZodTypeAny, { function: "sum" | "avg" | "min" | "max"; field: string; alias?: string | undefined; }, { function: "sum" | "avg" | "min" | "max"; field: string; alias?: string | undefined; }>]>, "many">>; filter: z.ZodOptional>; orderBy: z.ZodOptional>; first: z.ZodOptional>; operationName: z.ZodOptional; }, "strip", z.ZodTypeAny, { object: string; org: string; filter?: any; operationName?: string | undefined; orderBy?: any; first?: any; groupBy?: (string | { function: "CALENDAR_MONTH" | "CALENDAR_QUARTER" | "CALENDAR_YEAR" | "DAY_IN_MONTH" | "DAY_IN_WEEK" | "DAY_IN_YEAR" | "FISCAL_MONTH" | "FISCAL_QUARTER" | "FISCAL_YEAR" | "HOUR_IN_DAY" | "CALENDAR_MONTH_IN_YEAR" | "FISCAL_MONTH_IN_YEAR" | "WEEK_IN_YEAR"; field: string; })[] | undefined; aggregations?: ({ function: "count" | "countDistinct"; alias?: string | undefined; field?: string | undefined; } | { function: "sum" | "avg" | "min" | "max"; field: string; alias?: string | undefined; })[] | undefined; }, { object: string; org: string; filter?: unknown; operationName?: string | undefined; orderBy?: unknown; first?: unknown; groupBy?: (string | { field: string; function?: unknown; })[] | undefined; aggregations?: ({ function: "count" | "countDistinct"; alias?: string | undefined; field?: string | undefined; } | { function: "sum" | "avg" | "min" | "max"; field: string; alias?: string | undefined; })[] | undefined; }>; export declare const RAW_INPUT: z.ZodObject<{ org: z.ZodString; commands: z.ZodArray; operation: z.ZodEffects>, "query" | "mutation" | "aggregate" | undefined, unknown>; typeName: z.ZodOptional; }, "strip", z.ZodTypeAny, { org: string; commands: string[]; operation?: "query" | "mutation" | "aggregate" | undefined; typeName?: string | undefined; }, { org: string; commands: string[]; operation?: unknown; typeName?: string | undefined; }>; export declare const CREATE_INPUT: z.ZodObject<{ org: z.ZodString; object: z.ZodString; returnFields: z.ZodOptional>; inputVariable: z.ZodOptional; operationName: z.ZodOptional; }, "strip", z.ZodTypeAny, { object: string; org: string; operationName?: string | undefined; inputVariable?: string | undefined; returnFields?: string[] | undefined; }, { object: string; org: string; operationName?: string | undefined; inputVariable?: string | undefined; returnFields?: string[] | undefined; }>; export declare const UPDATE_INPUT: z.ZodObject<{ org: z.ZodString; object: z.ZodString; returnFields: z.ZodOptional>; inputVariable: z.ZodOptional; operationName: z.ZodOptional; }, "strip", z.ZodTypeAny, { object: string; org: string; operationName?: string | undefined; inputVariable?: string | undefined; returnFields?: string[] | undefined; }, { object: string; org: string; operationName?: string | undefined; inputVariable?: string | undefined; returnFields?: string[] | undefined; }>; export declare const DELETE_INPUT: z.ZodObject<{ org: z.ZodString; object: z.ZodString; inputVariable: z.ZodOptional; operationName: z.ZodOptional; }, "strip", z.ZodTypeAny, { object: string; org: string; operationName?: string | undefined; inputVariable?: string | undefined; }, { object: string; org: string; operationName?: string | undefined; inputVariable?: string | undefined; }>; export declare const CONNECT_INPUT: z.ZodObject<{ org: z.ZodString; forceRefresh: z.ZodOptional; }, "strip", z.ZodTypeAny, { org: string; forceRefresh?: boolean | undefined; }, { org: string; forceRefresh?: boolean | undefined; }>;