/** * postgres-mcp - pg_partman Tool Schemas * * Input validation schemas for automated partition management. * Includes parameter preprocessing to smooth common agent input mistakes. */ import { z } from "zod"; /** * Preprocess partman parameters to normalize common input patterns: * - table → parentTable (most common agent mistake) * - column → controlColumn (for createParent) * - Auto-prefix public. for parentTable when no schema specified */ /** * Deprecated interval keywords that pg_partman no longer accepts. * Maps legacy keywords to their PostgreSQL interval equivalents. */ export declare const DEPRECATED_INTERVALS: Record; /** * Schema for enabling the pg_partman extension. */ export declare const PartmanCreateExtensionSchemaBase: z.ZodObject<{ schema: z.ZodOptional; }, z.core.$strip>; export declare const PartmanCreateExtensionSchema: z.ZodDefault>; }, z.core.$strip>>>; /** * Schema for creating a partition set with pg_partman. * Uses partman.create_parent() function. */ export declare const PartmanCreateParentSchemaBase: z.ZodObject<{ parentTable: z.ZodOptional; table: z.ZodOptional; name: z.ZodOptional; parent: z.ZodOptional; controlColumn: z.ZodOptional; control: z.ZodOptional; column: z.ZodOptional; partitionColumn: z.ZodOptional; interval: z.ZodOptional; premake: z.ZodOptional; startPartition: z.ZodOptional; templateTable: z.ZodOptional; epochType: z.ZodOptional; defaultPartition: z.ZodOptional; }, z.core.$strip>; export declare const PartmanCreateParentSchema: z.ZodDefault; controlColumn: z.ZodOptional; interval: z.ZodOptional; premake: z.ZodOptional>>; startPartition: z.ZodOptional; templateTable: z.ZodOptional; epochType: z.ZodOptional>; defaultPartition: z.ZodOptional; }, z.core.$strip>>>; /** * Schema for running partition maintenance. * Uses partman.run_maintenance() or run_maintenance_proc(). */ export declare const PartmanRunMaintenanceSchemaBase: z.ZodObject<{ parentTable: z.ZodOptional; table: z.ZodOptional; name: z.ZodOptional; analyze: z.ZodOptional; }, z.core.$strip>; export declare const PartmanRunMaintenanceSchema: z.ZodDefault; analyze: z.ZodOptional; }, z.core.$strip>>>; /** * Schema for listing managed partitions. * Uses partman.show_partitions() function. */ export declare const PartmanShowPartitionsSchemaBase: z.ZodObject<{ parentTable: z.ZodOptional; table: z.ZodOptional; name: z.ZodOptional; includeDefault: z.ZodOptional; order: z.ZodOptional; limit: z.ZodOptional; }, z.core.$strip>; export declare const PartmanShowPartitionsSchema: z.ZodDefault; includeDefault: z.ZodOptional; order: z.ZodOptional>; limit: z.ZodOptional>>; }, z.core.$strip>>>; /** * Schema for viewing partition configuration. * Queries partman.part_config table. */ export declare const PartmanShowConfigSchemaBase: z.ZodObject<{ parentTable: z.ZodOptional; table: z.ZodOptional; name: z.ZodOptional; limit: z.ZodOptional; }, z.core.$strip>; export declare const PartmanShowConfigSchema: z.ZodDefault; limit: z.ZodOptional>>; }, z.core.$strip>>>; /** * Schema for checking data in default partition. * Uses partman.check_default() function. */ export declare const PartmanCheckDefaultSchemaBase: z.ZodObject<{ parentTable: z.ZodOptional; table: z.ZodOptional; name: z.ZodOptional; }, z.core.$strip>; export declare const PartmanCheckDefaultSchema: z.ZodDefault; }, z.core.$strip>>>; /** * Schema for moving data from default to child partitions. * Uses partman.partition_data_* functions. */ export declare const PartmanPartitionDataSchemaBase: z.ZodObject<{ parentTable: z.ZodOptional; table: z.ZodOptional; name: z.ZodOptional; batchSize: z.ZodOptional; lockWaitSeconds: z.ZodOptional; }, z.core.$strip>; export declare const PartmanPartitionDataSchema: z.ZodDefault; batchSize: z.ZodOptional>>; lockWaitSeconds: z.ZodOptional>>; }, z.core.$strip>>>; /** * Schema for configuring retention policies. * Updates partman.part_config table. */ export declare const PartmanRetentionSchemaBase: z.ZodObject<{ parentTable: z.ZodOptional; table: z.ZodOptional; name: z.ZodOptional; retention: z.ZodOptional>; retentionKeepTable: z.ZodOptional; keepTable: z.ZodOptional; }, z.core.$strip>; export declare const PartmanRetentionSchema: z.ZodDefault; retention: z.ZodOptional>; retentionKeepTable: z.ZodOptional; }, z.core.$strip>>>; /** * Schema for undoing partitioning. * Converts a partitioned table back to a regular table. */ export declare const PartmanUndoPartitionSchemaBase: z.ZodObject<{ parentTable: z.ZodOptional; table: z.ZodOptional; name: z.ZodOptional; targetTable: z.ZodOptional; target: z.ZodOptional; batchSize: z.ZodOptional; keepTable: z.ZodOptional; }, z.core.$strip>; export declare const PartmanUndoPartitionSchema: z.ZodDefault; targetTable: z.ZodOptional; batchSize: z.ZodOptional>>; keepTable: z.ZodOptional; }, z.core.$strip>>>; /** * Schema for analyzing partition health. */ export declare const PartmanAnalyzeHealthSchemaBase: z.ZodObject<{ parentTable: z.ZodOptional; table: z.ZodOptional; name: z.ZodOptional; limit: z.ZodOptional; }, z.core.$strip>; export declare const PartmanAnalyzeHealthSchema: z.ZodDefault; limit: z.ZodOptional>>; }, z.core.$strip>>>; //# sourceMappingURL=input.d.ts.map