/** * Response/envelope schemas for the identity admin OpenAPI routes (voyant#2114 — * identity sub-batch). The row schemas are authored from the Drizzle * `$inferSelect` shapes in `schema.ts` (§17: `timestamp` columns serialize to * strings over the wire; `doublePrecision` lat/long stay numbers; jsonb * `metadata` bags are open records). Enum columns reuse the exported * `validation.ts` enum schemas so the documented values stay in lock-step with * request validation. * * These are shared between `routes.ts` and the contract test so the documented * envelopes, the runtime handlers, and the round-trip assertions all read from * one source. */ import { z } from "zod"; export declare const errorResponseSchema: z.ZodObject<{ error: z.ZodString; }, z.core.$strip>; export declare const successResponseSchema: z.ZodObject<{ success: z.ZodLiteral; }, z.core.$strip>; export declare const idParamSchema: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; export declare const entityParamSchema: z.ZodObject<{ entityType: z.ZodString; entityId: z.ZodString; }, z.core.$strip>; export declare const contactPointSchema: z.ZodObject<{ id: z.ZodString; entityType: z.ZodString; entityId: z.ZodString; kind: z.ZodEnum<{ email: "email"; phone: "phone"; mobile: "mobile"; whatsapp: "whatsapp"; website: "website"; sms: "sms"; fax: "fax"; social: "social"; other: "other"; }>; label: z.ZodNullable; value: z.ZodString; normalizedValue: z.ZodNullable; isPrimary: z.ZodBoolean; notes: z.ZodNullable; metadata: z.ZodNullable>; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strip>; export declare const addressSchema: z.ZodObject<{ id: z.ZodString; entityType: z.ZodString; entityId: z.ZodString; label: z.ZodEnum<{ other: "other"; primary: "primary"; billing: "billing"; shipping: "shipping"; mailing: "mailing"; meeting: "meeting"; service: "service"; legal: "legal"; }>; fullText: z.ZodNullable; line1: z.ZodNullable; line2: z.ZodNullable; city: z.ZodNullable; region: z.ZodNullable; postalCode: z.ZodNullable; country: z.ZodNullable; latitude: z.ZodNullable; longitude: z.ZodNullable; timezone: z.ZodNullable; isPrimary: z.ZodBoolean; notes: z.ZodNullable; metadata: z.ZodNullable>; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strip>; export declare const namedContactSchema: z.ZodObject<{ id: z.ZodString; entityType: z.ZodString; entityId: z.ZodString; role: z.ZodEnum<{ other: "other"; primary: "primary"; legal: "legal"; general: "general"; reservations: "reservations"; operations: "operations"; front_desk: "front_desk"; sales: "sales"; emergency: "emergency"; accounting: "accounting"; }>; name: z.ZodString; title: z.ZodNullable; email: z.ZodNullable; phone: z.ZodNullable; isPrimary: z.ZodBoolean; notes: z.ZodNullable; metadata: z.ZodNullable>; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strip>;