/** * postgres-mcp - Security Tool Schemas * * Input validation and output schemas for security tools. * 9 tools: audit, firewall status/rules, mask data, user privileges, * sensitive tables, SSL status, encryption status, password validate. */ import { z } from "zod"; /** * pg_security_audit — comprehensive security posture check */ export declare const SecurityAuditSchemaBase: z.ZodObject<{ limit: z.ZodOptional; includeHba: z.ZodOptional; }, z.core.$strip>; export declare const SecurityAuditSchema: z.ZodPreprocess; includeHba: z.ZodOptional; }, z.core.$strip>>; /** * pg_security_firewall_status — pg_hba.conf summary */ export declare const FirewallStatusSchemaBase: z.ZodObject<{}, z.core.$strict>; export declare const FirewallStatusSchema: z.ZodPreprocess>; /** * pg_security_firewall_rules — detailed pg_hba.conf listing */ export declare const FirewallRulesSchemaBase: z.ZodObject<{ user: z.ZodOptional; type: z.ZodOptional; }, z.core.$strip>; export declare const FirewallRulesSchema: z.ZodPreprocess; type: z.ZodOptional; }, z.core.$strip>>; /** * pg_security_mask_data — data masking (pure JS, no DB) */ export declare const MaskDataSchemaBase: z.ZodObject<{ value: z.ZodOptional; type: z.ZodOptional; keepFirst: z.ZodOptional>; keepLast: z.ZodOptional>; maskChar: z.ZodOptional>; }, z.core.$strip>; export declare const MaskDataSchema: z.ZodPreprocess; keepLast: z.ZodDefault; maskChar: z.ZodDefault; }, z.core.$strip>>; /** * pg_security_user_privileges — role/privilege report */ export declare const UserPrivilegesSchemaBase: z.ZodObject<{ user: z.ZodOptional; includeRoles: z.ZodDefault; summary: z.ZodDefault; includeGrants: z.ZodDefault; limit: z.ZodOptional; }, z.core.$strip>; export declare const UserPrivilegesSchema: z.ZodPreprocess; includeRoles: z.ZodDefault; summary: z.ZodDefault; includeGrants: z.ZodDefault; limit: z.ZodOptional; }, z.core.$strip>>; /** * pg_security_sensitive_tables — detect columns with sensitive data */ export declare const SensitiveTablesSchemaBase: z.ZodObject<{ schema: z.ZodOptional; patterns: z.ZodOptional>; limit: z.ZodOptional; }, z.core.$strip>; export declare const SensitiveTablesSchema: z.ZodPreprocess; patterns: z.ZodOptional>; limit: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ schema: string | undefined; patterns: string[]; limit: number; }, { schema?: string | undefined; patterns?: string[] | undefined; limit?: number | undefined; }>>>; /** * pg_security_ssl_status — SSL/TLS connection status */ export declare const SSLStatusSchemaBase: z.ZodObject<{}, z.core.$strict>; export declare const SSLStatusSchema: z.ZodPreprocess>; /** * pg_security_encryption_status — encryption configuration */ export declare const EncryptionStatusSchemaBase: z.ZodObject<{}, z.core.$strict>; export declare const EncryptionStatusSchema: z.ZodPreprocess>; /** * pg_security_password_validate — password strength check (pure JS) */ export declare const PasswordValidateSchemaBase: z.ZodObject<{ password: z.ZodOptional; }, z.core.$strip>; export declare const PasswordValidateSchema: z.ZodPreprocess>; /** * pg_security_audit output */ export declare const SecurityAuditOutputSchema: z.ZodObject<{ findings: z.ZodOptional; }, z.core.$strip>>>; summary: z.ZodOptional>; success: z.ZodOptional; error: z.ZodOptional; code: z.ZodOptional; category: z.ZodOptional; recoverable: z.ZodOptional; suggestion: z.ZodOptional; details: z.ZodOptional>; }, z.core.$strip>; /** * pg_security_firewall_status output */ export declare const FirewallStatusOutputSchema: z.ZodObject<{ available: z.ZodOptional; totalRules: z.ZodOptional; rulesByType: z.ZodOptional>; authMethods: z.ZodOptional>; hostsslEnforced: z.ZodOptional; message: z.ZodOptional; success: z.ZodOptional; error: z.ZodOptional; code: z.ZodOptional; category: z.ZodOptional; recoverable: z.ZodOptional; suggestion: z.ZodOptional; details: z.ZodOptional>; }, z.core.$strip>; /** * pg_security_firewall_rules output */ export declare const FirewallRulesOutputSchema: z.ZodObject<{ rules: z.ZodOptional; type: z.ZodOptional; database: z.ZodOptional; user_name: z.ZodOptional; address: z.ZodOptional>; netmask: z.ZodOptional>; auth_method: z.ZodOptional; options: z.ZodOptional; }, z.core.$strip>>>; count: z.ZodOptional; success: z.ZodOptional; error: z.ZodOptional; code: z.ZodOptional; category: z.ZodOptional; recoverable: z.ZodOptional; suggestion: z.ZodOptional; details: z.ZodOptional>; }, z.core.$strip>; /** * pg_security_mask_data output */ export declare const MaskDataOutputSchema: z.ZodObject<{ original: z.ZodOptional; masked: z.ZodOptional; type: z.ZodOptional; warning: z.ZodOptional; success: z.ZodOptional; error: z.ZodOptional; code: z.ZodOptional; category: z.ZodOptional; recoverable: z.ZodOptional; suggestion: z.ZodOptional; details: z.ZodOptional>; }, z.core.$strip>; /** * pg_security_user_privileges output */ export declare const UserPrivilegesOutputSchema: z.ZodObject<{ users: z.ZodOptional>>; count: z.ZodOptional; limited: z.ZodOptional; summary: z.ZodOptional; success: z.ZodOptional; error: z.ZodOptional; code: z.ZodOptional; category: z.ZodOptional; recoverable: z.ZodOptional; suggestion: z.ZodOptional; details: z.ZodOptional>; }, z.core.$strip>; /** * pg_security_sensitive_tables output */ export declare const SensitiveTablesOutputSchema: z.ZodObject<{ sensitiveTables: z.ZodOptional>; columnCount: z.ZodNumber; }, z.core.$strip>>>; tableCount: z.ZodOptional; totalSensitiveColumns: z.ZodOptional; patternsUsed: z.ZodOptional>; limited: z.ZodOptional; totalAvailable: z.ZodOptional; success: z.ZodOptional; error: z.ZodOptional; code: z.ZodOptional; category: z.ZodOptional; recoverable: z.ZodOptional; suggestion: z.ZodOptional; details: z.ZodOptional>; }, z.core.$strip>; /** * pg_security_ssl_status output */ export declare const SSLStatusOutputSchema: z.ZodObject<{ sslEnabled: z.ZodOptional; sslConnections: z.ZodOptional; ssl: z.ZodOptional; version: z.ZodOptional>; cipher: z.ZodOptional>; client_dn: z.ZodOptional>; }, z.core.$strip>>>; configuration: z.ZodOptional>; totalConnections: z.ZodOptional; sslConnectionCount: z.ZodOptional; success: z.ZodOptional; error: z.ZodOptional; code: z.ZodOptional; category: z.ZodOptional; recoverable: z.ZodOptional; suggestion: z.ZodOptional; details: z.ZodOptional>; }, z.core.$strip>; /** * pg_security_encryption_status output */ export declare const EncryptionStatusOutputSchema: z.ZodObject<{ sslEnabled: z.ZodOptional; passwordEncryption: z.ZodOptional; pgcryptoAvailable: z.ZodOptional; encryptionSettings: z.ZodOptional>; certificates: z.ZodOptional; ssl_cert_file: z.ZodOptional; ssl_key_file: z.ZodOptional; ssl_crl_file: z.ZodOptional; }, z.core.$strip>>; success: z.ZodOptional; error: z.ZodOptional; code: z.ZodOptional; category: z.ZodOptional; recoverable: z.ZodOptional; suggestion: z.ZodOptional; details: z.ZodOptional>; }, z.core.$strip>; /** * pg_security_password_validate output */ export declare const PasswordValidateOutputSchema: z.ZodObject<{ strength: z.ZodOptional; interpretation: z.ZodOptional; meetsPolicy: z.ZodOptional; policy: z.ZodOptional>; checks: z.ZodOptional>; success: z.ZodOptional; error: z.ZodOptional; code: z.ZodOptional; category: z.ZodOptional; recoverable: z.ZodOptional; suggestion: z.ZodOptional; details: z.ZodOptional>; }, z.core.$strip>; //# sourceMappingURL=security.d.ts.map