/** * postgres-mcp - Schema Management Tool Schemas * * Input validation schemas for schema, sequence, and view management. */ import { z } from "zod"; export declare const CreateSchemaSchemaBase: z.ZodObject<{ name: z.ZodOptional; schema: z.ZodOptional; schemaName: z.ZodOptional; authorization: z.ZodOptional; ifNotExists: z.ZodOptional; }, z.core.$strip>; export declare const CreateSchemaSchema: z.ZodPipe; schema: z.ZodOptional; schemaName: z.ZodOptional; authorization: z.ZodOptional; ifNotExists: z.ZodOptional; }, z.core.$strip>>, z.ZodTransform<{ name: string; authorization: string | undefined; ifNotExists: boolean | undefined; }, { name?: string | undefined; schema?: string | undefined; schemaName?: string | undefined; authorization?: string | undefined; ifNotExists?: boolean | undefined; }>>; export declare const DropSchemaSchemaBase: z.ZodObject<{ name: z.ZodOptional; schema: z.ZodOptional; schemaName: z.ZodOptional; cascade: z.ZodOptional; ifExists: z.ZodOptional; }, z.core.$strip>; export declare const DropSchemaSchema: z.ZodPreprocess; schema: z.ZodOptional; schemaName: z.ZodOptional; cascade: z.ZodOptional; ifExists: z.ZodOptional; }, z.core.$strip>>; export declare const CreateSequenceSchemaBase: z.ZodObject<{ name: z.ZodOptional; sequenceName: z.ZodOptional; sequence: z.ZodOptional; schema: z.ZodOptional; start: z.ZodOptional; increment: z.ZodOptional; minValue: z.ZodOptional; maxValue: z.ZodOptional; cache: z.ZodOptional; cycle: z.ZodOptional; ownedBy: z.ZodOptional; ifNotExists: z.ZodOptional; }, z.core.$strip>; export declare const CreateSequenceSchema: z.ZodPreprocess; sequenceName: z.ZodOptional; sequence: z.ZodOptional; schema: z.ZodOptional; start: z.ZodPreprocess>; increment: z.ZodPreprocess>; minValue: z.ZodPreprocess>; maxValue: z.ZodPreprocess>; cache: z.ZodPreprocess>; cycle: z.ZodOptional; ownedBy: z.ZodOptional; ifNotExists: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ name: string; schema: string | undefined; start: number | undefined; increment: number | undefined; minValue: number | undefined; maxValue: number | undefined; cache: number | undefined; cycle: boolean | undefined; ownedBy: string | undefined; ifNotExists: boolean | undefined; }, { name?: string | undefined; sequenceName?: string | undefined; sequence?: string | undefined; schema?: string | undefined; start?: number | undefined; increment?: number | undefined; minValue?: number | undefined; maxValue?: number | undefined; cache?: number | undefined; cycle?: boolean | undefined; ownedBy?: string | undefined; ifNotExists?: boolean | undefined; }>>>; export declare const CreateViewSchemaBase: z.ZodObject<{ name: z.ZodOptional; viewName: z.ZodOptional; view: z.ZodOptional; schema: z.ZodOptional; query: z.ZodOptional; sql: z.ZodOptional; definition: z.ZodOptional; materialized: z.ZodOptional; orReplace: z.ZodOptional; checkOption: z.ZodOptional>; }, z.core.$strip>; export declare const CreateViewSchema: z.ZodPipe; viewName: z.ZodOptional; view: z.ZodOptional; schema: z.ZodOptional; query: z.ZodOptional; sql: z.ZodOptional; definition: z.ZodOptional; materialized: z.ZodOptional; orReplace: z.ZodOptional; checkOption: z.ZodOptional>; }, z.core.$strip>>, z.ZodTransform<{ name: string; schema: string | undefined; query: string; materialized: boolean | undefined; orReplace: boolean | undefined; checkOption: "cascaded" | "local" | "none" | undefined; }, { name?: string | undefined; viewName?: string | undefined; view?: string | undefined; schema?: string | undefined; query?: string | undefined; sql?: string | undefined; definition?: string | undefined; materialized?: boolean | undefined; orReplace?: boolean | undefined; checkOption?: "cascaded" | "local" | "none" | undefined; }>>; /** * Base schema for dropping sequences - used for MCP inputSchema visibility. */ export declare const DropSequenceSchemaBase: z.ZodObject<{ name: z.ZodOptional; sequenceName: z.ZodOptional; sequence: z.ZodOptional; schema: z.ZodOptional; ifExists: z.ZodOptional; cascade: z.ZodOptional; }, z.core.$strip>; /** * Full schema with preprocessing for alias support. */ export declare const DropSequenceSchema: z.ZodPreprocess; sequenceName: z.ZodOptional; sequence: z.ZodOptional; schema: z.ZodOptional; ifExists: z.ZodOptional; cascade: z.ZodOptional; }, z.core.$strip>>; /** * Base schema for dropping views - used for MCP inputSchema visibility. */ export declare const DropViewSchemaBase: z.ZodObject<{ name: z.ZodOptional; viewName: z.ZodOptional; view: z.ZodOptional; schema: z.ZodOptional; materialized: z.ZodOptional; ifExists: z.ZodOptional; cascade: z.ZodOptional; }, z.core.$strip>; /** * Full schema with preprocessing for alias support. */ export declare const DropViewSchema: z.ZodPreprocess; viewName: z.ZodOptional; view: z.ZodOptional; schema: z.ZodOptional; materialized: z.ZodOptional; ifExists: z.ZodOptional; cascade: z.ZodOptional; }, z.core.$strip>>; export declare const ListSequencesSchemaBase: z.ZodObject<{ schema: z.ZodOptional; limit: z.ZodOptional; }, z.core.$strip>; export declare const ListSequencesSchema: z.ZodPreprocess; limit: z.ZodPreprocess>; }, z.core.$strip>>; export declare const ListViewsSchemaBase: z.ZodObject<{ schema: z.ZodOptional; exclude: z.ZodOptional>; includeMaterialized: z.ZodOptional; truncateDefinition: z.ZodOptional; limit: z.ZodOptional; }, z.core.$strip>; export declare const ListViewsSchema: z.ZodPreprocess; exclude: z.ZodOptional>; includeMaterialized: z.ZodOptional; truncateDefinition: z.ZodPreprocess>; limit: z.ZodPreprocess>; }, z.core.$strip>>; /** * Base schema for listing functions - used for MCP inputSchema visibility. * All parameters are visible to MCP clients. */ export declare const ListFunctionsSchemaBase: z.ZodObject<{ schema: z.ZodOptional; exclude: z.ZodOptional>; language: z.ZodOptional; limit: z.ZodOptional; }, z.core.$strip>; /** * Full schema with preprocessing that handles null/undefined params. * Used in the handler for validation. */ export declare const ListFunctionsSchema: z.ZodPreprocess; exclude: z.ZodOptional>; language: z.ZodOptional; limit: z.ZodPreprocess>; }, z.core.$strip>>; export declare const ListTriggersSchemaBase: z.ZodObject<{ schema: z.ZodOptional; table: z.ZodOptional; limit: z.ZodOptional; }, z.core.$strip>; export declare const ListTriggersSchema: z.ZodPreprocess; table: z.ZodOptional; limit: z.ZodPreprocess>; }, z.core.$strip>>; export declare const ListConstraintsSchemaBase: z.ZodObject<{ table: z.ZodOptional; schema: z.ZodOptional; type: z.ZodOptional; limit: z.ZodOptional; }, z.core.$strip>; export declare const ListConstraintsSchema: z.ZodPreprocess; schema: z.ZodOptional; type: z.ZodOptional; limit: z.ZodPreprocess>; }, z.core.$strip>>; /** * pg_list_schemas output */ export declare const ListSchemasOutputSchema: z.ZodObject<{ schemas: z.ZodOptional>; count: z.ZodOptional; code: z.ZodOptional; category: z.ZodOptional; recoverable: z.ZodOptional; suggestion: z.ZodOptional; details: z.ZodOptional>; }, z.core.$strip>; /** * pg_create_schema output */ export declare const CreateSchemaOutputSchema: z.ZodObject<{ success: z.ZodBoolean; schema: z.ZodOptional; alreadyExists: z.ZodOptional; error: z.ZodOptional; }, z.core.$loose>; /** * pg_drop_schema output */ export declare const DropSchemaOutputSchema: z.ZodObject<{ success: z.ZodBoolean; schema: z.ZodOptional; existed: z.ZodOptional; note: z.ZodOptional; error: z.ZodOptional; }, z.core.$loose>; /** * pg_list_sequences output */ export declare const ListSequencesOutputSchema: z.ZodObject<{ sequences: z.ZodOptional>>; count: z.ZodOptional; truncated: z.ZodOptional; totalCount: z.ZodOptional; note: z.ZodOptional; success: z.ZodOptional; error: z.ZodOptional; }, z.core.$loose>; /** * pg_create_sequence output */ export declare const CreateSequenceOutputSchema: z.ZodObject<{ success: z.ZodBoolean; sequence: z.ZodOptional; ifNotExists: z.ZodOptional; alreadyExists: z.ZodOptional; error: z.ZodOptional; }, z.core.$loose>; /** * pg_drop_sequence output */ export declare const DropSequenceOutputSchema: z.ZodObject<{ success: z.ZodBoolean; sequence: z.ZodOptional; existed: z.ZodOptional; error: z.ZodOptional; }, z.core.$loose>; /** * pg_list_views output */ export declare const ListViewsOutputSchema: z.ZodObject<{ views: z.ZodOptional>>; count: z.ZodOptional; hasMatViews: z.ZodOptional; truncatedDefinitions: z.ZodOptional; truncated: z.ZodOptional; totalCount: z.ZodOptional; note: z.ZodOptional; success: z.ZodOptional; error: z.ZodOptional; }, z.core.$loose>; /** * pg_create_view output */ export declare const CreateViewOutputSchema: z.ZodObject<{ success: z.ZodBoolean; view: z.ZodOptional; materialized: z.ZodOptional; alreadyExists: z.ZodOptional; error: z.ZodOptional; }, z.core.$loose>; /** * pg_drop_view output */ export declare const DropViewOutputSchema: z.ZodObject<{ success: z.ZodBoolean; view: z.ZodOptional; materialized: z.ZodOptional; existed: z.ZodOptional; error: z.ZodOptional; }, z.core.$loose>; /** * pg_list_functions output */ export declare const ListFunctionsOutputSchema: z.ZodObject<{ functions: z.ZodOptional>>; count: z.ZodOptional; limit: z.ZodOptional; note: z.ZodOptional; success: z.ZodOptional; error: z.ZodOptional; }, z.core.$loose>; /** * pg_list_triggers output */ export declare const ListTriggersOutputSchema: z.ZodObject<{ triggers: z.ZodOptional>>; count: z.ZodOptional; limit: z.ZodOptional; note: z.ZodOptional; success: z.ZodOptional; error: z.ZodOptional; }, z.core.$loose>; /** * pg_list_constraints output */ export declare const ListConstraintsOutputSchema: z.ZodObject<{ constraints: z.ZodOptional>>; count: z.ZodOptional; limit: z.ZodOptional; note: z.ZodOptional; success: z.ZodOptional; error: z.ZodOptional; }, z.core.$loose>; //# sourceMappingURL=schema-mgmt.d.ts.map