/** * postgres-mcp - pgcrypto Extension Schemas * * Input validation and output schemas for pgcrypto tools. */ import { z } from "zod"; /** * Base schema for MCP visibility — shows all parameters with relaxed validation. */ export declare const PgcryptoCreateExtensionSchemaBase: z.ZodObject<{ schema: z.ZodOptional; }, z.core.$strip>; /** * Schema for creating the pgcrypto extension. */ export declare const PgcryptoCreateExtensionSchema: z.ZodObject<{ schema: z.ZodOptional; }, z.core.$strip>; /** * Base schema for MCP visibility — shows all parameters with relaxed validation. * Valid algorithm values described in text for MCP clients. */ export declare const PgcryptoHashSchemaBase: z.ZodObject<{ data: z.ZodOptional; algorithm: z.ZodOptional; encoding: z.ZodOptional; }, z.core.$strip>; /** * Schema for hashing data with digest(). */ export declare const PgcryptoHashSchema: z.ZodObject<{ data: z.ZodString; algorithm: z.ZodEnum<{ md5: "md5"; sha1: "sha1"; sha224: "sha224"; sha256: "sha256"; sha384: "sha384"; sha512: "sha512"; }>; encoding: z.ZodOptional>; }, z.core.$strip>; /** * Base schema for MCP visibility — shows all parameters with relaxed validation. */ export declare const PgcryptoHmacSchemaBase: z.ZodObject<{ data: z.ZodOptional; key: z.ZodOptional; algorithm: z.ZodOptional; encoding: z.ZodOptional; }, z.core.$strip>; /** * Schema for HMAC authentication. */ export declare const PgcryptoHmacSchema: z.ZodObject<{ data: z.ZodString; key: z.ZodString; algorithm: z.ZodEnum<{ md5: "md5"; sha1: "sha1"; sha224: "sha224"; sha256: "sha256"; sha384: "sha384"; sha512: "sha512"; }>; encoding: z.ZodOptional>; }, z.core.$strip>; /** * Schema for PGP symmetric encryption. * Accepts 'key' as alias for 'password'. * * Uses base schema for MCP exposure and transform schema for validation. */ export declare const PgcryptoEncryptSchemaBase: z.ZodObject<{ data: z.ZodOptional; password: z.ZodOptional; key: z.ZodOptional; options: z.ZodOptional; }, z.core.$strip>; export declare const PgcryptoEncryptSchema: z.ZodPipe; password: z.ZodOptional; key: z.ZodOptional; options: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ password: string | undefined; data?: string | undefined; key?: string | undefined; options?: string | undefined; }, { data?: string | undefined; password?: string | undefined; key?: string | undefined; options?: string | undefined; }>>; /** * Schema for PGP symmetric decryption. * Accepts 'encryptedData' as alias for 'data', 'key' as alias for 'password'. * * Uses base schema for MCP exposure and transform schema for validation. */ export declare const PgcryptoDecryptSchemaBase: z.ZodObject<{ data: z.ZodOptional; encryptedData: z.ZodOptional; password: z.ZodOptional; key: z.ZodOptional; }, z.core.$strip>; export declare const PgcryptoDecryptSchema: z.ZodPipe; encryptedData: z.ZodOptional; password: z.ZodOptional; key: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ data: string | undefined; password: string | undefined; }, { data?: string | undefined; encryptedData?: string | undefined; password?: string | undefined; key?: string | undefined; }>>; /** * Base schema for MCP visibility (count parameter exposed to clients, relaxed) */ export declare const PgcryptoGenRandomUuidSchemaBase: z.ZodObject<{ count: z.ZodOptional; }, z.core.$strip>; /** * Schema for UUID generation with count parameter. */ export declare const PgcryptoGenRandomUuidSchema: z.ZodDefault>; }, z.core.$strip>>; /** * Base schema for MCP visibility — shows all parameters with relaxed validation. */ export declare const PgcryptoRandomBytesSchemaBase: z.ZodObject<{ length: z.ZodOptional; encoding: z.ZodOptional; }, z.core.$strip>; /** * Schema for generating random bytes. */ export declare const PgcryptoRandomBytesSchema: z.ZodObject<{ length: z.ZodPreprocess>; encoding: z.ZodOptional>; }, z.core.$strip>; /** * Base schema for MCP visibility — shows all parameters with relaxed validation. */ export declare const PgcryptoGenSaltSchemaBase: z.ZodObject<{ type: z.ZodOptional; iterations: z.ZodOptional; }, z.core.$strip>; /** * Schema for generating password salt. */ export declare const PgcryptoGenSaltSchema: z.ZodObject<{ type: z.ZodEnum<{ md5: "md5"; bf: "bf"; xdes: "xdes"; des: "des"; }>; iterations: z.ZodPreprocess>; }, z.core.$strip>; /** * Base schema for MCP visibility — shows all parameters with relaxed validation. */ export declare const PgcryptoCryptSchemaBase: z.ZodObject<{ password: z.ZodOptional; data: z.ZodOptional; salt: z.ZodOptional; }, z.core.$strip>; /** * Schema for password hashing with crypt(). */ export declare const PgcryptoCryptSchema: z.ZodPipe; data: z.ZodOptional; salt: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ password: string | undefined; salt: string | undefined; }, { password?: string | undefined; data?: string | undefined; salt?: string | undefined; }>>; /** * Output schema for pg_pgcrypto_create_extension */ export declare const PgcryptoCreateExtensionOutputSchema: z.ZodObject<{ success: z.ZodOptional; message: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; /** * Output schema for pg_pgcrypto_hash */ export declare const PgcryptoHashOutputSchema: z.ZodObject<{ success: z.ZodOptional; algorithm: z.ZodOptional; encoding: z.ZodOptional; hash: z.ZodOptional; inputLength: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; /** * Output schema for pg_pgcrypto_hmac */ export declare const PgcryptoHmacOutputSchema: z.ZodObject<{ success: z.ZodOptional; algorithm: z.ZodOptional; encoding: z.ZodOptional; hmac: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; /** * Output schema for pg_pgcrypto_encrypt */ export declare const PgcryptoEncryptOutputSchema: z.ZodObject<{ success: z.ZodOptional; encryptedData: z.ZodOptional; encoding: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; /** * Output schema for pg_pgcrypto_decrypt */ export declare const PgcryptoDecryptOutputSchema: z.ZodObject<{ success: z.ZodOptional; decrypted: z.ZodOptional; verified: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; /** * Output schema for pg_pgcrypto_gen_random_uuid */ export declare const PgcryptoGenRandomUuidOutputSchema: z.ZodObject<{ success: z.ZodOptional; uuids: z.ZodOptional>; count: z.ZodOptional; uuid: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; /** * Output schema for pg_pgcrypto_gen_random_bytes */ export declare const PgcryptoGenRandomBytesOutputSchema: z.ZodObject<{ success: z.ZodOptional; randomBytes: z.ZodOptional; length: z.ZodOptional; encoding: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; /** * Output schema for pg_pgcrypto_gen_salt */ export declare const PgcryptoGenSaltOutputSchema: z.ZodObject<{ success: z.ZodOptional; salt: z.ZodOptional; type: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; /** * Output schema for pg_pgcrypto_crypt */ export declare const PgcryptoCryptOutputSchema: z.ZodObject<{ success: z.ZodOptional; hash: z.ZodOptional; algorithm: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; //# sourceMappingURL=pgcrypto.d.ts.map