/** * postgres-mcp - citext Extension Schemas * * Input validation and output schemas for citext tools. */ import { z } from "zod"; export declare const CitextCreateExtensionSchemaBase: z.ZodObject<{ schema: z.ZodOptional; }, z.core.$strip>; export declare const CitextCreateExtensionSchema: z.ZodPreprocess; }, z.core.$strip>>; /** * Base schema for MCP visibility - shows parameters with optional types for framework passthrough. */ export declare const CitextCompareSchemaBase: z.ZodObject<{ value1: z.ZodOptional; value2: z.ZodOptional; }, z.core.$strip>; /** * Handler-side schema for compare tool. * Validates required fields within try/catch. */ export declare const CitextCompareSchema: z.ZodPreprocess; value2: z.ZodOptional; }, z.core.$strip>>; /** * Preprocess citext table parameters: * - Alias: tableName -> table * - Alias: col -> column * - Parse schema.table format */ export declare function preprocessCitextTableParams(input: unknown): unknown; /** * Base schema for MCP visibility (shows all parameters including aliases). */ export declare const CitextConvertColumnSchemaBase: z.ZodObject<{ table: z.ZodOptional; tableName: z.ZodOptional; column: z.ZodOptional; col: z.ZodOptional; schema: z.ZodOptional; toType: z.ZodOptional; }, z.core.$strip>; /** * Transformed schema for converting a text column to citext. * Resolves aliases, parses schema.table format, and validates required fields. */ export declare const CitextConvertColumnSchema: z.ZodPipe; tableName: z.ZodOptional; column: z.ZodOptional; col: z.ZodOptional; schema: z.ZodOptional; toType: z.ZodOptional; }, z.core.$strip>>, z.ZodTransform<{ table: string; column: string; schema: string | undefined; toType: string; }, { table?: string | undefined; tableName?: string | undefined; column?: string | undefined; col?: string | undefined; schema?: string | undefined; toType?: string | undefined; }>>; /** * Base schema for MCP visibility - shows all parameters for listColumns. */ export declare const CitextListColumnsSchemaBase: z.ZodObject<{ schema: z.ZodOptional; table: z.ZodOptional; tableName: z.ZodOptional; limit: z.ZodOptional; }, z.core.$strip>; /** * Schema for listing citext columns. * Preprocesses to handle empty/null params and table name aliases. */ export declare const CitextListColumnsSchema: z.ZodPipe; table: z.ZodOptional; tableName: z.ZodOptional; limit: z.ZodOptional; }, z.core.$strip>>, z.ZodTransform<{ schema: string | undefined; table: string | undefined; limit: number | undefined; }, { schema?: string | undefined; table?: string | undefined; tableName?: string | undefined; limit?: number | undefined; }>>; /** * Base schema for MCP visibility - shows all parameters for analyzeCandidates. */ export declare const CitextAnalyzeCandidatesSchemaBase: z.ZodObject<{ patterns: z.ZodOptional>; schema: z.ZodOptional; table: z.ZodOptional; tableName: z.ZodOptional; limit: z.ZodOptional; excludeSystemSchemas: z.ZodOptional; }, z.core.$strip>; /** * Schema for analyzing candidate columns for citext conversion. * Preprocesses to handle empty/null params. */ export declare const CitextAnalyzeCandidatesSchema: z.ZodPreprocess>; schema: z.ZodOptional; table: z.ZodOptional; tableName: z.ZodOptional; limit: z.ZodOptional; excludeSystemSchemas: z.ZodOptional; }, z.core.$strip>>; /** * Base schema for MCP visibility (shows all parameters including aliases). */ export declare const CitextSchemaAdvisorSchemaBase: z.ZodObject<{ table: z.ZodOptional; tableName: z.ZodOptional; schema: z.ZodOptional; compact: z.ZodOptional; }, z.core.$strip>; /** * Transformed schema for citext schema advisor tool. * Resolves aliases, parses schema.table format, and validates required fields. */ export declare const CitextSchemaAdvisorSchema: z.ZodPipe; tableName: z.ZodOptional; schema: z.ZodOptional; compact: z.ZodOptional; }, z.core.$strip>>, z.ZodTransform<{ table: string; schema: string | undefined; compact: boolean; }, { table?: string | undefined; tableName?: string | undefined; schema?: string | undefined; compact?: boolean | undefined; }>>; /** * Output schema for pg_citext_create_extension */ export declare const CitextCreateExtensionOutputSchema: z.ZodObject<{ success: z.ZodOptional; message: z.ZodOptional; usage: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; /** * Output schema for pg_citext_convert_column */ export declare const CitextConvertColumnOutputSchema: z.ZodObject<{ success: z.ZodOptional; message: z.ZodOptional; table: z.ZodOptional; previousType: z.ZodOptional; wasAlreadyCitext: z.ZodOptional; error: z.ZodOptional; currentType: z.ZodOptional; allowedTypes: z.ZodOptional>; suggestion: z.ZodOptional; dependentViews: z.ZodOptional>; hint: z.ZodOptional; affectedViews: z.ZodOptional>; }, z.core.$strip>; /** * Output schema for pg_citext_list_columns */ export declare const CitextListColumnsOutputSchema: z.ZodObject<{ columns: z.ZodOptional>>; count: z.ZodOptional; totalCount: z.ZodOptional; truncated: z.ZodOptional; limit: z.ZodOptional; schema: z.ZodOptional; table: z.ZodOptional; success: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; /** * Output schema for pg_citext_analyze_candidates */ export declare const CitextAnalyzeCandidatesOutputSchema: z.ZodObject<{ success: z.ZodOptional; candidates: z.ZodOptional>>; count: z.ZodOptional; totalCount: z.ZodOptional; truncated: z.ZodOptional; limit: z.ZodOptional; table: z.ZodOptional; schema: z.ZodOptional; summary: z.ZodOptional>; recommendation: z.ZodOptional; excludedSchemas: z.ZodOptional>; patternsUsed: z.ZodOptional>; error: z.ZodOptional; }, z.core.$strip>; /** * Output schema for pg_citext_compare */ export declare const CitextCompareOutputSchema: z.ZodObject<{ value1: z.ZodOptional; value2: z.ZodOptional; citextEqual: z.ZodOptional; textEqual: z.ZodOptional; lowerEqual: z.ZodOptional; extensionInstalled: z.ZodOptional; hint: z.ZodOptional; success: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; /** * Output schema for pg_citext_schema_advisor */ export declare const CitextSchemaAdvisorOutputSchema: z.ZodObject<{ success: z.ZodOptional; table: z.ZodOptional; recommendations: z.ZodOptional; recommendation: z.ZodEnum<{ convert: "convert"; keep: "keep"; already_citext: "already_citext"; }>; confidence: z.ZodEnum<{ low: "low"; high: "high"; medium: "medium"; }>; reason: z.ZodString; }, z.core.$strip>>>; summary: z.ZodOptional>; nextSteps: z.ZodOptional>; error: z.ZodOptional; }, z.core.$strip>; //# sourceMappingURL=citext.d.ts.map