/** * postgres-mcp - ltree Extension Schemas * * Input validation and output schemas for ltree tools. */ import { z } from "zod"; /** * Base schema for MCP visibility - shows all parameters including aliases. */ export declare const LtreeCreateExtensionSchemaBase: z.ZodObject<{ schema: z.ZodOptional; }, z.core.$strip>; export declare const LtreeCreateExtensionSchema: z.ZodObject<{ schema: z.ZodOptional; }, z.core.$strip>; /** * Base schema for MCP visibility - shows all parameters including aliases. */ export declare const LtreeQuerySchemaBase: z.ZodObject<{ table: z.ZodOptional; tableName: z.ZodOptional; name: z.ZodOptional; column: z.ZodOptional; col: z.ZodOptional; path: z.ZodOptional; pattern: z.ZodOptional; mode: z.ZodOptional>; type: z.ZodOptional>; schema: z.ZodOptional; limit: z.ZodOptional; maxResults: z.ZodOptional; }, z.core.$strip>; /** * Base schema for MCP visibility - shows all parameters including aliases. */ export declare const LtreeSubpathSchemaBase: z.ZodObject<{ path: z.ZodOptional; offset: z.ZodOptional; start: z.ZodOptional; from: z.ZodOptional; length: z.ZodOptional; len: z.ZodOptional; end: z.ZodOptional; }, z.core.$strip>; /** * Base schema for MCP visibility - shows all parameters including aliases. */ export declare const LtreeMatchSchemaBase: z.ZodObject<{ table: z.ZodOptional; tableName: z.ZodOptional; name: z.ZodOptional; column: z.ZodOptional; col: z.ZodOptional; pattern: z.ZodOptional; query: z.ZodOptional; lquery: z.ZodOptional; schema: z.ZodOptional; limit: z.ZodOptional; maxResults: z.ZodOptional; }, z.core.$strip>; /** * Base schema for MCP visibility - shows all parameters including aliases. */ export declare const LtreeConvertColumnSchemaBase: z.ZodObject<{ table: z.ZodOptional; tableName: z.ZodOptional; name: z.ZodOptional; column: z.ZodOptional; col: z.ZodOptional; schema: z.ZodOptional; }, z.core.$strip>; /** * Base schema for MCP visibility - shows all parameters including aliases. */ export declare const LtreeIndexSchemaBase: z.ZodObject<{ table: z.ZodOptional; tableName: z.ZodOptional; name: z.ZodOptional; column: z.ZodOptional; col: z.ZodOptional; indexName: z.ZodOptional; schema: z.ZodOptional; }, z.core.$strip>; /** * Schema for querying ltree hierarchies (ancestors/descendants). * Accepts 'pattern' as alias for 'path', 'type' as alias for 'mode', 'col'/'tableName'/'name' aliases. */ export declare const LtreeQuerySchema: z.ZodPreprocess>; schema: z.ZodOptional; limit: z.ZodDefault; }, z.core.$strip>>; /** * Schema for extracting subpath from ltree. * Accepts 'start'/'from' as alias for 'offset', 'len'/'end' as alias for 'length'. */ export declare const LtreeSubpathSchema: z.ZodPreprocess; }, z.core.$strip>>; /** * Base schema for MCP visibility - no min constraint. */ export declare const LtreeLcaSchemaBase: z.ZodObject<{ paths: z.ZodOptional>; }, z.core.$strip>; /** * Schema for finding longest common ancestor. * Enforces minimum 2 paths; used inside handler try/catch. */ export declare const LtreeLcaSchema: z.ZodObject<{ paths: z.ZodArray; }, z.core.$strip>; /** * Schema for pattern matching with lquery. * Accepts 'query'/'lquery' as aliases for 'pattern', 'maxResults' as alias for 'limit'. */ export declare const LtreeMatchSchema: z.ZodPreprocess; limit: z.ZodDefault; }, z.core.$strip>>; /** * Schema for listing ltree columns in the database. */ export declare const LtreeListColumnsSchemaBase: z.ZodObject<{ schema: z.ZodOptional; }, z.core.$strip>; export declare const LtreeListColumnsSchema: z.ZodPreprocess; }, z.core.$strip>>; /** * Schema for converting a text column to ltree. * Accepts 'tableName'/'name' as aliases for 'table', 'col' as alias for 'column'. */ export declare const LtreeConvertColumnSchema: z.ZodPreprocess; }, z.core.$strip>>; /** * Schema for creating a GiST index on ltree column. * Accepts 'tableName'/'name' as aliases for 'table', 'col' as alias for 'column'. */ export declare const LtreeIndexSchema: z.ZodPreprocess; schema: z.ZodOptional; }, z.core.$strip>>; /** * Output schema for pg_ltree_create_extension */ export declare const LtreeCreateExtensionOutputSchema: z.ZodObject<{ success: z.ZodOptional; message: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; /** * Output schema for pg_ltree_query */ export declare const LtreeQueryOutputSchema: z.ZodObject<{ path: z.ZodOptional; mode: z.ZodOptional; isPattern: z.ZodOptional; rows: z.ZodOptional>>; count: z.ZodOptional; truncated: z.ZodOptional; totalCount: z.ZodOptional; success: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; /** * Output schema for pg_ltree_subpath */ export declare const LtreeSubpathOutputSchema: z.ZodObject<{ originalPath: z.ZodOptional; offset: z.ZodOptional; length: z.ZodOptional>; subpath: z.ZodOptional; originalDepth: z.ZodOptional; pathDepth: z.ZodOptional; success: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; /** * Output schema for pg_ltree_lca */ export declare const LtreeLcaOutputSchema: z.ZodObject<{ paths: z.ZodOptional>; longestCommonAncestor: z.ZodOptional; hasCommonAncestor: z.ZodOptional; success: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; /** * Output schema for pg_ltree_match */ export declare const LtreeMatchOutputSchema: z.ZodObject<{ success: z.ZodOptional; pattern: z.ZodOptional; rows: z.ZodOptional>>; count: z.ZodOptional; truncated: z.ZodOptional; totalCount: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; /** * Output schema for pg_ltree_list_columns */ export declare const LtreeListColumnsOutputSchema: z.ZodObject<{ columns: z.ZodOptional>>; count: z.ZodOptional; success: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; /** * Output schema for pg_ltree_convert_column */ export declare const LtreeConvertColumnOutputSchema: z.ZodObject<{ success: z.ZodOptional; message: z.ZodOptional; table: z.ZodOptional; previousType: z.ZodOptional; wasAlreadyLtree: z.ZodOptional; error: z.ZodOptional; currentType: z.ZodOptional; allowedTypes: z.ZodOptional>; suggestion: z.ZodOptional; dependentViews: z.ZodOptional>; hint: z.ZodOptional; }, z.core.$strip>; /** * Output schema for pg_ltree_create_index */ export declare const LtreeCreateIndexOutputSchema: z.ZodObject<{ success: z.ZodOptional; message: z.ZodOptional; indexName: z.ZodOptional; alreadyExists: z.ZodOptional; table: z.ZodOptional; column: z.ZodOptional; indexType: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; //# sourceMappingURL=ltree.d.ts.map