import { z } from 'zod'; import { h as OpenStoreEventType } from './payloads-BYtydfZU.js'; /** * @shopkit/events - Zod Schemas * * Strict validation schemas for all 13 standard events. * Used by the Schema Validator middleware to reject malformed events. */ declare const ProductFieldsSchema: z.ZodObject<{ item_id: z.ZodString; item_name: z.ZodString; item_category: z.ZodOptional; price: z.ZodNumber; quantity: z.ZodNumber; currency: z.ZodString; }, "strip", z.ZodTypeAny, { item_id: string; item_name: string; price: number; quantity: number; currency: string; item_category?: string | undefined; }, { item_id: string; item_name: string; price: number; quantity: number; currency: string; item_category?: string | undefined; }>; declare const StandardUserDataSchema: z.ZodObject<{ email: z.ZodOptional; phone: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; city: z.ZodOptional; state: z.ZodOptional; country: z.ZodOptional; zip_code: z.ZodOptional; external_id: z.ZodOptional; date_of_birth: z.ZodOptional; gender: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; phone?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; city?: string | undefined; state?: string | undefined; country?: string | undefined; zip_code?: string | undefined; external_id?: string | undefined; date_of_birth?: string | undefined; gender?: string | undefined; }, { email?: string | undefined; phone?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; city?: string | undefined; state?: string | undefined; country?: string | undefined; zip_code?: string | undefined; external_id?: string | undefined; date_of_birth?: string | undefined; gender?: string | undefined; }>; declare const StandardCookiesSchema: z.ZodObject<{ _ga: z.ZodOptional; _fbp: z.ZodOptional; _fbc: z.ZodOptional; gclid: z.ZodOptional; }, "strip", z.ZodTypeAny, { _ga?: string | undefined; _fbp?: string | undefined; _fbc?: string | undefined; gclid?: string | undefined; }, { _ga?: string | undefined; _fbp?: string | undefined; _fbc?: string | undefined; gclid?: string | undefined; }>; declare const PageContextSchema: z.ZodObject<{ url: z.ZodString; path: z.ZodString; title: z.ZodString; referrer: z.ZodString; }, "strip", z.ZodTypeAny, { path: string; url: string; title: string; referrer: string; }, { path: string; url: string; title: string; referrer: string; }>; declare const ContentItemSchema: z.ZodObject<{ id: z.ZodString; quantity: z.ZodNumber; item_price: z.ZodOptional; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { quantity: number; id: string; item_price?: number | undefined; name?: string | undefined; }, { quantity: number; id: string; item_price?: number | undefined; name?: string | undefined; }>; /** * Base event envelope schema (without event-specific data validation). * Used for structural validation of the envelope itself. */ declare const OpenStoreEventEnvelopeSchema: z.ZodObject<{ event_id: z.ZodString; event_type: z.ZodNativeEnum; timestamp: z.ZodNumber; session_id: z.ZodString; data: z.ZodUnknown; page: z.ZodObject<{ url: z.ZodString; path: z.ZodString; title: z.ZodString; referrer: z.ZodString; }, "strip", z.ZodTypeAny, { path: string; url: string; title: string; referrer: string; }, { path: string; url: string; title: string; referrer: string; }>; user_data: z.ZodOptional; phone: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; city: z.ZodOptional; state: z.ZodOptional; country: z.ZodOptional; zip_code: z.ZodOptional; external_id: z.ZodOptional; date_of_birth: z.ZodOptional; gender: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; phone?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; city?: string | undefined; state?: string | undefined; country?: string | undefined; zip_code?: string | undefined; external_id?: string | undefined; date_of_birth?: string | undefined; gender?: string | undefined; }, { email?: string | undefined; phone?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; city?: string | undefined; state?: string | undefined; country?: string | undefined; zip_code?: string | undefined; external_id?: string | undefined; date_of_birth?: string | undefined; gender?: string | undefined; }>>; cookies: z.ZodOptional; _fbp: z.ZodOptional; _fbc: z.ZodOptional; gclid: z.ZodOptional; }, "strip", z.ZodTypeAny, { _ga?: string | undefined; _fbp?: string | undefined; _fbc?: string | undefined; gclid?: string | undefined; }, { _ga?: string | undefined; _fbp?: string | undefined; _fbc?: string | undefined; gclid?: string | undefined; }>>; source: z.ZodEnum<["client", "server"]>; meta: z.ZodOptional>; }, "strip", z.ZodTypeAny, { session_id: string; event_id: string; event_type: OpenStoreEventType; timestamp: number; page: { path: string; url: string; title: string; referrer: string; }; source: "client" | "server"; data?: unknown; user_data?: { email?: string | undefined; phone?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; city?: string | undefined; state?: string | undefined; country?: string | undefined; zip_code?: string | undefined; external_id?: string | undefined; date_of_birth?: string | undefined; gender?: string | undefined; } | undefined; cookies?: { _ga?: string | undefined; _fbp?: string | undefined; _fbc?: string | undefined; gclid?: string | undefined; } | undefined; meta?: Record | undefined; }, { session_id: string; event_id: string; event_type: OpenStoreEventType; timestamp: number; page: { path: string; url: string; title: string; referrer: string; }; source: "client" | "server"; data?: unknown; user_data?: { email?: string | undefined; phone?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; city?: string | undefined; state?: string | undefined; country?: string | undefined; zip_code?: string | undefined; external_id?: string | undefined; date_of_birth?: string | undefined; gender?: string | undefined; } | undefined; cookies?: { _ga?: string | undefined; _fbp?: string | undefined; _fbc?: string | undefined; gclid?: string | undefined; } | undefined; meta?: Record | undefined; }>; /** * Map of event type → payload Zod schema. * Used by the Schema Validator middleware to validate event-specific payloads. */ declare const eventPayloadSchemas: Record; export { ContentItemSchema, OpenStoreEventEnvelopeSchema, PageContextSchema, ProductFieldsSchema, StandardCookiesSchema, StandardUserDataSchema, eventPayloadSchemas };