/**
 * Factory for the `revealui-contracts` MCP server.
 *
 * Phase 1 of the protocol-pyramid ADR
 * (`docs/decisions/2026-05-03-contracts-protocol-pyramid.md`): exposes every
 * `@revealui/contracts` category as MCP **resources** (read-only catalog of
 * JSON Schemas) plus per-category MCP **tools** that parse a payload against
 * the category's primary schema and return either the typed value or the
 * Zod issues.
 *
 * ## Resources
 *
 * - `revealui-contracts://catalog` — discovery payload listing every
 *   category, its primary schema name, and every secondary schema name.
 * - `revealui-contracts://<category>` — JSON document with
 *   `{ category, primarySchema, schemas: Record<name, JSONSchema7> }`.
 *
 * ## Tools
 *
 * - `contracts_list_categories` — returns the same payload as the
 *   `revealui-contracts://catalog` resource (tool form for clients that
 *   prefer tool-call ergonomics).
 * - `contracts_get_schema` — returns the JSON Schema for a single
 *   `(category, schemaName?)` pair.
 * - `contracts_validate_<category>` (one per registered category) —
 *   accepts `{ schema?: string, data: unknown }`, returns
 *   `{ success: true, data }` | `{ success: false, issues }`.
 *
 * ## Categories (17)
 *
 * Each category has a primary schema (the first secondary schema is the
 * default for `validate` when `schema` is omitted) plus zero or more
 * secondary schemas. Three of the categories (`devkit_profiles`,
 * `providers`, `stripe_webhook_events`) lift TS-only `as const` arrays
 * into `z.enum` for runtime validation; one (`content_validation`) lifts
 * a TS interface into a small `z.object`. The others use the contracts
 * package's hand-written or drizzle-zod-generated Zod schemas as-is.
 *
 * Out of scope for Phase 1 (no validation surface): `foundation`
 * (meta-types only — `Contract<T>` is a generic), `actions`
 * (class-based validator, not a Zod schema), `pricing` (TS interfaces),
 * `database` (bridge utilities — covered by `generated`).
 *
 * ## License
 *
 * This server is **not** Pro-gated. `@revealui/contracts` is MIT and
 * agent-side introspection of its schemas is meant to enable any client
 * (Claude Code, Cursor, custom agents) to integrate cleanly. Pro-gating
 * a public-package primitive would defeat the purpose.
 */
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
import { z } from 'zod/v4';
declare const SCHEMA_REGISTRY: {
    readonly a2a: {
        readonly primary: "agentCard";
        readonly description: "Agent-to-Agent (A2A) protocol contracts — AgentCard, Task, Message, Skill, Artifact, JSON-RPC envelopes.";
        readonly schemas: {
            readonly agentCard: z.ZodObject<{
                name: z.ZodString;
                description: z.ZodString;
                url: z.ZodString;
                documentationUrl: z.ZodOptional<z.ZodString>;
                provider: z.ZodOptional<z.ZodObject<{
                    organization: z.ZodString;
                    url: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                version: z.ZodDefault<z.ZodString>;
                capabilities: z.ZodObject<{
                    streaming: z.ZodDefault<z.ZodBoolean>;
                    pushNotifications: z.ZodDefault<z.ZodBoolean>;
                    stateTransitionHistory: z.ZodDefault<z.ZodBoolean>;
                }, z.core.$strip>;
                authentication: z.ZodObject<{
                    schemes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
                        Bearer: "Bearer";
                        ApiKey: "ApiKey";
                        OAuth2: "OAuth2";
                        None: "None";
                    }>>>;
                    credentials: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                }, z.core.$strip>;
                defaultInputModes: z.ZodDefault<z.ZodArray<z.ZodString>>;
                defaultOutputModes: z.ZodDefault<z.ZodArray<z.ZodString>>;
                skills: z.ZodArray<z.ZodObject<{
                    id: z.ZodString;
                    name: z.ZodString;
                    description: z.ZodString;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    examples: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    inputModes: z.ZodDefault<z.ZodArray<z.ZodString>>;
                    outputModes: z.ZodDefault<z.ZodArray<z.ZodString>>;
                }, z.core.$strip>>;
            }, z.core.$strip>;
            readonly artifact: z.ZodObject<{
                name: z.ZodOptional<z.ZodString>;
                description: z.ZodOptional<z.ZodString>;
                parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
                    type: z.ZodLiteral<"text">;
                    text: z.ZodString;
                }, z.core.$strip>, z.ZodObject<{
                    type: z.ZodLiteral<"data">;
                    data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                    mimeType: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>, z.ZodObject<{
                    type: z.ZodLiteral<"file">;
                    mimeType: z.ZodString;
                    data: z.ZodString;
                    name: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>], "type">>;
                metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                index: z.ZodDefault<z.ZodNumber>;
                append: z.ZodOptional<z.ZodBoolean>;
                lastChunk: z.ZodOptional<z.ZodBoolean>;
            }, z.core.$strip>;
            readonly auth: z.ZodObject<{
                schemes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
                    Bearer: "Bearer";
                    ApiKey: "ApiKey";
                    OAuth2: "OAuth2";
                    None: "None";
                }>>>;
                credentials: z.ZodDefault<z.ZodNullable<z.ZodString>>;
            }, z.core.$strip>;
            readonly capabilities: z.ZodObject<{
                streaming: z.ZodDefault<z.ZodBoolean>;
                pushNotifications: z.ZodDefault<z.ZodBoolean>;
                stateTransitionHistory: z.ZodDefault<z.ZodBoolean>;
            }, z.core.$strip>;
            readonly jsonRpcRequest: z.ZodObject<{
                jsonrpc: z.ZodLiteral<"2.0">;
                id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
                method: z.ZodString;
                params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
            }, z.core.$strip>;
            readonly jsonRpcResponse: z.ZodObject<{
                jsonrpc: z.ZodLiteral<"2.0">;
                id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
                result: z.ZodOptional<z.ZodUnknown>;
                error: z.ZodOptional<z.ZodObject<{
                    code: z.ZodNumber;
                    message: z.ZodString;
                    data: z.ZodOptional<z.ZodUnknown>;
                }, z.core.$strip>>;
            }, z.core.$strip>;
            readonly message: z.ZodObject<{
                role: z.ZodEnum<{
                    agent: "agent";
                    user: "user";
                }>;
                parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
                    type: z.ZodLiteral<"text">;
                    text: z.ZodString;
                }, z.core.$strip>, z.ZodObject<{
                    type: z.ZodLiteral<"data">;
                    data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                    mimeType: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>, z.ZodObject<{
                    type: z.ZodLiteral<"file">;
                    mimeType: z.ZodString;
                    data: z.ZodString;
                    name: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>], "type">>;
                metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
            }, z.core.$strip>;
            readonly part: z.ZodDiscriminatedUnion<[z.ZodObject<{
                type: z.ZodLiteral<"text">;
                text: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                type: z.ZodLiteral<"data">;
                data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                mimeType: z.ZodOptional<z.ZodString>;
            }, z.core.$strip>, z.ZodObject<{
                type: z.ZodLiteral<"file">;
                mimeType: z.ZodString;
                data: z.ZodString;
                name: z.ZodOptional<z.ZodString>;
            }, z.core.$strip>], "type">;
            readonly provider: z.ZodObject<{
                organization: z.ZodString;
                url: z.ZodOptional<z.ZodString>;
            }, z.core.$strip>;
            readonly sendTaskParams: z.ZodObject<{
                id: z.ZodOptional<z.ZodString>;
                sessionId: z.ZodOptional<z.ZodString>;
                message: z.ZodObject<{
                    role: z.ZodEnum<{
                        agent: "agent";
                        user: "user";
                    }>;
                    parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
                        type: z.ZodLiteral<"text">;
                        text: z.ZodString;
                    }, z.core.$strip>, z.ZodObject<{
                        type: z.ZodLiteral<"data">;
                        data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                        mimeType: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>, z.ZodObject<{
                        type: z.ZodLiteral<"file">;
                        mimeType: z.ZodString;
                        data: z.ZodString;
                        name: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>], "type">>;
                    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                }, z.core.$strip>;
                metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
            }, z.core.$strip>;
            readonly skill: z.ZodObject<{
                id: z.ZodString;
                name: z.ZodString;
                description: z.ZodString;
                tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                examples: z.ZodOptional<z.ZodArray<z.ZodString>>;
                inputModes: z.ZodDefault<z.ZodArray<z.ZodString>>;
                outputModes: z.ZodDefault<z.ZodArray<z.ZodString>>;
            }, z.core.$strip>;
            readonly task: z.ZodObject<{
                id: z.ZodString;
                sessionId: z.ZodOptional<z.ZodString>;
                status: z.ZodObject<{
                    state: z.ZodEnum<{
                        unknown: "unknown";
                        completed: "completed";
                        failed: "failed";
                        submitted: "submitted";
                        "pending-payment": "pending-payment";
                        working: "working";
                        "input-required": "input-required";
                        canceled: "canceled";
                    }>;
                    message: z.ZodOptional<z.ZodObject<{
                        role: z.ZodEnum<{
                            agent: "agent";
                            user: "user";
                        }>;
                        parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
                            type: z.ZodLiteral<"text">;
                            text: z.ZodString;
                        }, z.core.$strip>, z.ZodObject<{
                            type: z.ZodLiteral<"data">;
                            data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                            mimeType: z.ZodOptional<z.ZodString>;
                        }, z.core.$strip>, z.ZodObject<{
                            type: z.ZodLiteral<"file">;
                            mimeType: z.ZodString;
                            data: z.ZodString;
                            name: z.ZodOptional<z.ZodString>;
                        }, z.core.$strip>], "type">>;
                        metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                    }, z.core.$strip>>;
                    timestamp: z.ZodString;
                }, z.core.$strip>;
                artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
                    name: z.ZodOptional<z.ZodString>;
                    description: z.ZodOptional<z.ZodString>;
                    parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
                        type: z.ZodLiteral<"text">;
                        text: z.ZodString;
                    }, z.core.$strip>, z.ZodObject<{
                        type: z.ZodLiteral<"data">;
                        data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                        mimeType: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>, z.ZodObject<{
                        type: z.ZodLiteral<"file">;
                        mimeType: z.ZodString;
                        data: z.ZodString;
                        name: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>], "type">>;
                    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                    index: z.ZodDefault<z.ZodNumber>;
                    append: z.ZodOptional<z.ZodBoolean>;
                    lastChunk: z.ZodOptional<z.ZodBoolean>;
                }, z.core.$strip>>>;
                history: z.ZodOptional<z.ZodArray<z.ZodObject<{
                    role: z.ZodEnum<{
                        agent: "agent";
                        user: "user";
                    }>;
                    parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
                        type: z.ZodLiteral<"text">;
                        text: z.ZodString;
                    }, z.core.$strip>, z.ZodObject<{
                        type: z.ZodLiteral<"data">;
                        data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                        mimeType: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>, z.ZodObject<{
                        type: z.ZodLiteral<"file">;
                        mimeType: z.ZodString;
                        data: z.ZodString;
                        name: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>], "type">>;
                    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                }, z.core.$strip>>>;
                metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
            }, z.core.$strip>;
            readonly taskState: z.ZodEnum<{
                unknown: "unknown";
                completed: "completed";
                failed: "failed";
                submitted: "submitted";
                "pending-payment": "pending-payment";
                working: "working";
                "input-required": "input-required";
                canceled: "canceled";
            }>;
            readonly taskStatus: z.ZodObject<{
                state: z.ZodEnum<{
                    unknown: "unknown";
                    completed: "completed";
                    failed: "failed";
                    submitted: "submitted";
                    "pending-payment": "pending-payment";
                    working: "working";
                    "input-required": "input-required";
                    canceled: "canceled";
                }>;
                message: z.ZodOptional<z.ZodObject<{
                    role: z.ZodEnum<{
                        agent: "agent";
                        user: "user";
                    }>;
                    parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
                        type: z.ZodLiteral<"text">;
                        text: z.ZodString;
                    }, z.core.$strip>, z.ZodObject<{
                        type: z.ZodLiteral<"data">;
                        data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                        mimeType: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>, z.ZodObject<{
                        type: z.ZodLiteral<"file">;
                        mimeType: z.ZodString;
                        data: z.ZodString;
                        name: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>], "type">>;
                    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                }, z.core.$strip>>;
                timestamp: z.ZodString;
            }, z.core.$strip>;
        };
    };
    readonly admin: {
        readonly primary: "collection";
        readonly description: "admin configuration contracts — CollectionContract + ConfigContract wrap typed admin shapes in the Contract<T> pattern.";
        readonly schemas: {
            readonly collection: z.ZodType<import("@revealui/contracts").CollectionStructure, unknown, z.core.$ZodTypeInternals<import("@revealui/contracts").CollectionStructure, unknown>>;
            readonly config: z.ZodType<{
                secret: string;
                collections?: {
                    [x: string]: unknown;
                    slug: string;
                    fields: import("@revealui/contracts").FieldStructure[];
                    labels?: {
                        singular: string;
                        plural?: string | undefined;
                    } | undefined;
                    timestamps?: boolean | undefined;
                    admin?: {
                        [x: string]: unknown;
                        useAsTitle?: string | undefined;
                        defaultColumns?: string[] | undefined;
                        group?: string | undefined;
                        hidden?: boolean | undefined;
                        description?: string | undefined;
                        preview?: unknown;
                        livePreview?: {
                            url?: unknown;
                            breakpoints?: {
                                name: string;
                                width: number;
                                height: number;
                            }[] | undefined;
                        } | undefined;
                        pagination?: {
                            defaultLimit?: number | undefined;
                            limits?: number[] | undefined;
                        } | undefined;
                        listSearchableFields?: string[] | undefined;
                        enableRichTextLink?: boolean | undefined;
                        enableRichTextRelationship?: boolean | undefined;
                    } | undefined;
                    versions?: boolean | {
                        maxPerDoc?: number | undefined;
                        drafts?: boolean | {
                            autosave?: boolean | {
                                interval?: number | undefined;
                            } | undefined;
                            validate?: boolean | undefined;
                        } | undefined;
                    } | undefined;
                    upload?: boolean | {
                        staticURL?: string | undefined;
                        staticDir?: string | undefined;
                        mimeTypes?: string[] | undefined;
                        filesRequiredOnCreate?: boolean | undefined;
                        imageSizes?: {
                            name: string;
                            width?: number | undefined;
                            height?: number | undefined;
                            position?: "left" | "center" | "right" | "centre" | "top" | "bottom" | "entropy" | "attention" | undefined;
                            fit?: "fill" | "cover" | "contain" | "inside" | "outside" | undefined;
                        }[] | undefined;
                        adminThumbnail?: unknown;
                        focalPoint?: boolean | undefined;
                        crop?: boolean | undefined;
                    } | undefined;
                    auth?: boolean | {
                        tokenExpiration?: number | undefined;
                        verify?: boolean | {
                            generateEmailHTML?: unknown;
                            generateEmailSubject?: unknown;
                        } | undefined;
                        maxLoginAttempts?: number | undefined;
                        lockTime?: number | undefined;
                        useAPIKey?: boolean | undefined;
                        depth?: number | undefined;
                        cookies?: {
                            secure?: boolean | undefined;
                            sameSite?: boolean | "none" | "strict" | "lax" | undefined;
                            domain?: string | undefined;
                        } | undefined;
                        forgotPassword?: {
                            generateEmailHTML?: unknown;
                            generateEmailSubject?: unknown;
                        } | undefined;
                        disableLocalStrategy?: boolean | undefined;
                        strategies?: unknown[] | undefined;
                    } | undefined;
                    typescript?: {
                        interface?: string | undefined;
                    } | undefined;
                    custom?: Record<string, unknown> | undefined;
                    dbName?: string | undefined;
                    defaultSort?: string | undefined;
                    mcpResource?: boolean | undefined;
                }[] | undefined;
                globals?: {
                    [x: string]: unknown;
                    slug: string;
                    fields: import("@revealui/contracts").FieldStructure[];
                    label?: string | undefined;
                    labels?: {
                        singular: string;
                        plural?: string | undefined;
                    } | undefined;
                    admin?: {
                        [x: string]: unknown;
                        group?: string | undefined;
                        hidden?: boolean | undefined;
                        description?: string | undefined;
                        preview?: unknown;
                        livePreview?: {
                            url?: unknown;
                            breakpoints?: {
                                name: string;
                                width: number;
                                height: number;
                            }[] | undefined;
                        } | undefined;
                    } | undefined;
                    versions?: boolean | {
                        maxPerDoc?: number | undefined;
                        drafts?: boolean | {
                            autosave?: boolean | {
                                interval?: number | undefined;
                            } | undefined;
                            validate?: boolean | undefined;
                        } | undefined;
                    } | undefined;
                    typescript?: {
                        interface?: string | undefined;
                    } | undefined;
                    dbName?: string | undefined;
                }[] | undefined;
                serverURL?: string | undefined;
                admin?: {
                    user?: string | undefined;
                    meta?: {
                        titleSuffix?: string | undefined;
                        ogImage?: string | undefined;
                        favicon?: string | undefined;
                        icons?: {
                            url?: string | undefined;
                            sizes?: string | undefined;
                            type?: string | undefined;
                            rel?: string | undefined;
                            fetchPriority?: "auto" | "high" | "low" | undefined;
                        }[] | undefined;
                    } | undefined;
                    importMap?: {
                        [x: string]: unknown;
                        autoGenerate?: boolean | undefined;
                        baseDir?: string | undefined;
                    } | undefined;
                    css?: string | undefined;
                    scss?: string | undefined;
                    dateFormat?: string | undefined;
                    avatar?: unknown;
                    disable?: boolean | undefined;
                    livePreview?: {
                        [x: string]: unknown;
                        url?: unknown;
                        collections?: string[] | undefined;
                        globals?: string[] | undefined;
                        breakpoints?: {
                            label: string;
                            name: string;
                            width: number;
                            height: number;
                        }[] | undefined;
                    } | undefined;
                } | undefined;
                email?: {
                    fromName?: string | undefined;
                    fromAddress?: string | undefined;
                } | undefined;
                localization?: false | {
                    locales: string[] | {
                        label: string;
                        code: string;
                    }[];
                    defaultLocale: string;
                    fallback?: boolean | undefined;
                } | undefined;
                i18n?: {
                    locales?: string[] | undefined;
                    defaultLocale?: string | undefined;
                    fallback?: boolean | undefined;
                    supportedLanguages?: Record<string, unknown> | undefined;
                } | undefined;
                cors?: string | string[] | {
                    origins: string[];
                    headers?: string[] | undefined;
                } | undefined;
                csrf?: string[] | undefined;
                rateLimit?: {
                    window?: number | undefined;
                    max?: number | undefined;
                    trustProxy?: boolean | undefined;
                } | undefined;
                upload?: {
                    limits?: {
                        fileSize?: number | undefined;
                    } | undefined;
                } | undefined;
                debug?: boolean | undefined;
                typescript?: {
                    outputFile?: string | undefined;
                    declare?: boolean | undefined;
                    autoGenerate?: boolean | undefined;
                } | undefined;
                telemetry?: boolean | undefined;
                hooks?: Record<string, never> | undefined;
                custom?: Record<string, unknown> | undefined;
            }, unknown, z.core.$ZodTypeInternals<{
                secret: string;
                collections?: {
                    [x: string]: unknown;
                    slug: string;
                    fields: import("@revealui/contracts").FieldStructure[];
                    labels?: {
                        singular: string;
                        plural?: string | undefined;
                    } | undefined;
                    timestamps?: boolean | undefined;
                    admin?: {
                        [x: string]: unknown;
                        useAsTitle?: string | undefined;
                        defaultColumns?: string[] | undefined;
                        group?: string | undefined;
                        hidden?: boolean | undefined;
                        description?: string | undefined;
                        preview?: unknown;
                        livePreview?: {
                            url?: unknown;
                            breakpoints?: {
                                name: string;
                                width: number;
                                height: number;
                            }[] | undefined;
                        } | undefined;
                        pagination?: {
                            defaultLimit?: number | undefined;
                            limits?: number[] | undefined;
                        } | undefined;
                        listSearchableFields?: string[] | undefined;
                        enableRichTextLink?: boolean | undefined;
                        enableRichTextRelationship?: boolean | undefined;
                    } | undefined;
                    versions?: boolean | {
                        maxPerDoc?: number | undefined;
                        drafts?: boolean | {
                            autosave?: boolean | {
                                interval?: number | undefined;
                            } | undefined;
                            validate?: boolean | undefined;
                        } | undefined;
                    } | undefined;
                    upload?: boolean | {
                        staticURL?: string | undefined;
                        staticDir?: string | undefined;
                        mimeTypes?: string[] | undefined;
                        filesRequiredOnCreate?: boolean | undefined;
                        imageSizes?: {
                            name: string;
                            width?: number | undefined;
                            height?: number | undefined;
                            position?: "left" | "center" | "right" | "centre" | "top" | "bottom" | "entropy" | "attention" | undefined;
                            fit?: "fill" | "cover" | "contain" | "inside" | "outside" | undefined;
                        }[] | undefined;
                        adminThumbnail?: unknown;
                        focalPoint?: boolean | undefined;
                        crop?: boolean | undefined;
                    } | undefined;
                    auth?: boolean | {
                        tokenExpiration?: number | undefined;
                        verify?: boolean | {
                            generateEmailHTML?: unknown;
                            generateEmailSubject?: unknown;
                        } | undefined;
                        maxLoginAttempts?: number | undefined;
                        lockTime?: number | undefined;
                        useAPIKey?: boolean | undefined;
                        depth?: number | undefined;
                        cookies?: {
                            secure?: boolean | undefined;
                            sameSite?: boolean | "none" | "strict" | "lax" | undefined;
                            domain?: string | undefined;
                        } | undefined;
                        forgotPassword?: {
                            generateEmailHTML?: unknown;
                            generateEmailSubject?: unknown;
                        } | undefined;
                        disableLocalStrategy?: boolean | undefined;
                        strategies?: unknown[] | undefined;
                    } | undefined;
                    typescript?: {
                        interface?: string | undefined;
                    } | undefined;
                    custom?: Record<string, unknown> | undefined;
                    dbName?: string | undefined;
                    defaultSort?: string | undefined;
                    mcpResource?: boolean | undefined;
                }[] | undefined;
                globals?: {
                    [x: string]: unknown;
                    slug: string;
                    fields: import("@revealui/contracts").FieldStructure[];
                    label?: string | undefined;
                    labels?: {
                        singular: string;
                        plural?: string | undefined;
                    } | undefined;
                    admin?: {
                        [x: string]: unknown;
                        group?: string | undefined;
                        hidden?: boolean | undefined;
                        description?: string | undefined;
                        preview?: unknown;
                        livePreview?: {
                            url?: unknown;
                            breakpoints?: {
                                name: string;
                                width: number;
                                height: number;
                            }[] | undefined;
                        } | undefined;
                    } | undefined;
                    versions?: boolean | {
                        maxPerDoc?: number | undefined;
                        drafts?: boolean | {
                            autosave?: boolean | {
                                interval?: number | undefined;
                            } | undefined;
                            validate?: boolean | undefined;
                        } | undefined;
                    } | undefined;
                    typescript?: {
                        interface?: string | undefined;
                    } | undefined;
                    dbName?: string | undefined;
                }[] | undefined;
                serverURL?: string | undefined;
                admin?: {
                    user?: string | undefined;
                    meta?: {
                        titleSuffix?: string | undefined;
                        ogImage?: string | undefined;
                        favicon?: string | undefined;
                        icons?: {
                            url?: string | undefined;
                            sizes?: string | undefined;
                            type?: string | undefined;
                            rel?: string | undefined;
                            fetchPriority?: "auto" | "high" | "low" | undefined;
                        }[] | undefined;
                    } | undefined;
                    importMap?: {
                        [x: string]: unknown;
                        autoGenerate?: boolean | undefined;
                        baseDir?: string | undefined;
                    } | undefined;
                    css?: string | undefined;
                    scss?: string | undefined;
                    dateFormat?: string | undefined;
                    avatar?: unknown;
                    disable?: boolean | undefined;
                    livePreview?: {
                        [x: string]: unknown;
                        url?: unknown;
                        collections?: string[] | undefined;
                        globals?: string[] | undefined;
                        breakpoints?: {
                            label: string;
                            name: string;
                            width: number;
                            height: number;
                        }[] | undefined;
                    } | undefined;
                } | undefined;
                email?: {
                    fromName?: string | undefined;
                    fromAddress?: string | undefined;
                } | undefined;
                localization?: false | {
                    locales: string[] | {
                        label: string;
                        code: string;
                    }[];
                    defaultLocale: string;
                    fallback?: boolean | undefined;
                } | undefined;
                i18n?: {
                    locales?: string[] | undefined;
                    defaultLocale?: string | undefined;
                    fallback?: boolean | undefined;
                    supportedLanguages?: Record<string, unknown> | undefined;
                } | undefined;
                cors?: string | string[] | {
                    origins: string[];
                    headers?: string[] | undefined;
                } | undefined;
                csrf?: string[] | undefined;
                rateLimit?: {
                    window?: number | undefined;
                    max?: number | undefined;
                    trustProxy?: boolean | undefined;
                } | undefined;
                upload?: {
                    limits?: {
                        fileSize?: number | undefined;
                    } | undefined;
                } | undefined;
                debug?: boolean | undefined;
                typescript?: {
                    outputFile?: string | undefined;
                    declare?: boolean | undefined;
                    autoGenerate?: boolean | undefined;
                } | undefined;
                telemetry?: boolean | undefined;
                hooks?: Record<string, never> | undefined;
                custom?: Record<string, unknown> | undefined;
            }, unknown>>;
        };
    };
    readonly agents: {
        readonly primary: "agentMemory";
        readonly description: "LLM agent behavior contracts — AgentMemory (semantic memory with embeddings), Conversation, AgentDefinition, Tool, Intent.";
        readonly schemas: {
            readonly agentActionRecord: z.ZodObject<{
                id: z.ZodString;
                version: z.ZodDefault<z.ZodNumber>;
                agentId: z.ZodString;
                sessionId: z.ZodString;
                action: z.ZodString;
                params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                result: z.ZodObject<{
                    success: z.ZodBoolean;
                    data: z.ZodOptional<z.ZodUnknown>;
                    error: z.ZodOptional<z.ZodString>;
                    errorCode: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>;
                intent: z.ZodOptional<z.ZodObject<{
                    raw: z.ZodString;
                    classified: z.ZodOptional<z.ZodString>;
                    confidence: z.ZodOptional<z.ZodNumber>;
                }, z.core.$strip>>;
                affectedEntities: z.ZodOptional<z.ZodArray<z.ZodObject<{
                    type: z.ZodString;
                    id: z.ZodString;
                    change: z.ZodEnum<{
                        deleted: "deleted";
                        created: "created";
                        updated: "updated";
                    }>;
                }, z.core.$strip>>>;
                durationMs: z.ZodNumber;
                timestamp: z.ZodString;
            }, z.core.$strip>;
            readonly agentContext: z.ZodObject<{
                id: z.ZodString;
                version: z.ZodDefault<z.ZodNumber>;
                sessionId: z.ZodString;
                agentId: z.ZodString;
                context: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                priority: z.ZodDefault<z.ZodNumber>;
                expiresAt: z.ZodOptional<z.ZodString>;
                createdAt: z.ZodString;
                updatedAt: z.ZodString;
            }, z.core.$strip>;
            readonly agentDefinition: z.ZodObject<{
                id: z.ZodString;
                version: z.ZodDefault<z.ZodNumber>;
                name: z.ZodString;
                description: z.ZodString;
                model: z.ZodString;
                systemPrompt: z.ZodString;
                tools: z.ZodArray<z.ZodObject<{
                    name: z.ZodString;
                    description: z.ZodString;
                    parameters: z.ZodRecord<z.ZodString, z.ZodType<import("@revealui/contracts").ToolParameter, unknown, z.core.$ZodTypeInternals<import("@revealui/contracts").ToolParameter, unknown>>>;
                    returns: z.ZodOptional<z.ZodObject<{
                        type: z.ZodString;
                        description: z.ZodString;
                    }, z.core.$strip>>;
                    examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
                        input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                        output: z.ZodUnknown;
                        description: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>>;
                    requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    destructive: z.ZodDefault<z.ZodBoolean>;
                    rateLimit: z.ZodOptional<z.ZodNumber>;
                }, z.core.$strip>>;
                capabilities: z.ZodArray<z.ZodString>;
                temperature: z.ZodDefault<z.ZodNumber>;
                maxTokens: z.ZodDefault<z.ZodNumber>;
                canDelegateToAgents: z.ZodOptional<z.ZodArray<z.ZodString>>;
                rateLimits: z.ZodOptional<z.ZodObject<{
                    requestsPerMinute: z.ZodOptional<z.ZodNumber>;
                    tokensPerMinute: z.ZodOptional<z.ZodNumber>;
                }, z.core.$strip>>;
                pricing: z.ZodOptional<z.ZodObject<{
                    usdc: z.ZodString;
                }, z.core.$strip>>;
            }, z.core.$strip>;
            readonly agentMemory: z.ZodObject<{
                id: z.ZodString;
                version: z.ZodDefault<z.ZodNumber>;
                content: z.ZodString;
                type: z.ZodEnum<{
                    fact: "fact";
                    preference: "preference";
                    decision: "decision";
                    feedback: "feedback";
                    example: "example";
                    correction: "correction";
                    skill: "skill";
                    warning: "warning";
                }>;
                source: z.ZodObject<{
                    type: z.ZodEnum<{
                        agent: "agent";
                        external: "external";
                        system: "system";
                        user: "user";
                    }>;
                    id: z.ZodString;
                    context: z.ZodOptional<z.ZodString>;
                    confidence: z.ZodDefault<z.ZodNumber>;
                }, z.core.$strip>;
                embedding: z.ZodOptional<z.ZodObject<{
                    model: z.ZodString;
                    vector: z.ZodArray<z.ZodNumber>;
                    dimension: z.ZodNumber;
                    generatedAt: z.ZodString;
                }, z.core.$strip>>;
                metadata: z.ZodObject<{
                    siteId: z.ZodOptional<z.ZodString>;
                    pageId: z.ZodOptional<z.ZodString>;
                    blockId: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    importance: z.ZodDefault<z.ZodNumber>;
                    expiresAt: z.ZodOptional<z.ZodString>;
                    agentId: z.ZodOptional<z.ZodString>;
                    sessionId: z.ZodOptional<z.ZodString>;
                    custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                }, z.core.$strip>;
                createdAt: z.ZodString;
                accessedAt: z.ZodString;
                accessCount: z.ZodDefault<z.ZodNumber>;
                verified: z.ZodDefault<z.ZodBoolean>;
            }, z.core.$strip>;
            readonly agentState: z.ZodObject<{
                agent: z.ZodObject<{
                    id: z.ZodString;
                    version: z.ZodDefault<z.ZodNumber>;
                    name: z.ZodString;
                    description: z.ZodString;
                    model: z.ZodString;
                    systemPrompt: z.ZodString;
                    tools: z.ZodArray<z.ZodObject<{
                        name: z.ZodString;
                        description: z.ZodString;
                        parameters: z.ZodRecord<z.ZodString, z.ZodType<import("@revealui/contracts").ToolParameter, unknown, z.core.$ZodTypeInternals<import("@revealui/contracts").ToolParameter, unknown>>>;
                        returns: z.ZodOptional<z.ZodObject<{
                            type: z.ZodString;
                            description: z.ZodString;
                        }, z.core.$strip>>;
                        examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
                            input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                            output: z.ZodUnknown;
                            description: z.ZodOptional<z.ZodString>;
                        }, z.core.$strip>>>;
                        requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        destructive: z.ZodDefault<z.ZodBoolean>;
                        rateLimit: z.ZodOptional<z.ZodNumber>;
                    }, z.core.$strip>>;
                    capabilities: z.ZodArray<z.ZodString>;
                    temperature: z.ZodDefault<z.ZodNumber>;
                    maxTokens: z.ZodDefault<z.ZodNumber>;
                    canDelegateToAgents: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    rateLimits: z.ZodOptional<z.ZodObject<{
                        requestsPerMinute: z.ZodOptional<z.ZodNumber>;
                        tokensPerMinute: z.ZodOptional<z.ZodNumber>;
                    }, z.core.$strip>>;
                    pricing: z.ZodOptional<z.ZodObject<{
                        usdc: z.ZodString;
                    }, z.core.$strip>>;
                }, z.core.$strip>;
                context: z.ZodObject<{
                    id: z.ZodString;
                    version: z.ZodDefault<z.ZodNumber>;
                    sessionId: z.ZodString;
                    agentId: z.ZodString;
                    context: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                    priority: z.ZodDefault<z.ZodNumber>;
                    expiresAt: z.ZodOptional<z.ZodString>;
                    createdAt: z.ZodString;
                    updatedAt: z.ZodString;
                }, z.core.$strip>;
                conversation: z.ZodOptional<z.ZodObject<{
                    id: z.ZodString;
                    version: z.ZodDefault<z.ZodNumber>;
                    sessionId: z.ZodString;
                    userId: z.ZodString;
                    agentId: z.ZodString;
                    messages: z.ZodArray<z.ZodObject<{
                        id: z.ZodString;
                        role: z.ZodEnum<{
                            system: "system";
                            user: "user";
                            assistant: "assistant";
                            tool: "tool";
                        }>;
                        content: z.ZodString;
                        data: z.ZodOptional<z.ZodObject<{
                            toolCall: z.ZodOptional<z.ZodObject<{
                                name: z.ZodString;
                                params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                            }, z.core.$strip>>;
                            toolResult: z.ZodOptional<z.ZodObject<{
                                name: z.ZodString;
                                result: z.ZodUnknown;
                            }, z.core.$strip>>;
                            attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
                                type: z.ZodEnum<{
                                    link: "link";
                                    file: "file";
                                    image: "image";
                                }>;
                                url: z.ZodString;
                                name: z.ZodOptional<z.ZodString>;
                            }, z.core.$strip>>>;
                        }, z.core.$strip>>;
                        metadata: z.ZodOptional<z.ZodObject<{
                            tokens: z.ZodOptional<z.ZodNumber>;
                            model: z.ZodOptional<z.ZodString>;
                            latencyMs: z.ZodOptional<z.ZodNumber>;
                        }, z.core.$strip>>;
                        timestamp: z.ZodString;
                    }, z.core.$strip>>;
                    status: z.ZodDefault<z.ZodEnum<{
                        error: "error";
                        active: "active";
                        paused: "paused";
                        completed: "completed";
                    }>>;
                    metadata: z.ZodOptional<z.ZodObject<{
                        siteId: z.ZodOptional<z.ZodString>;
                        pageId: z.ZodOptional<z.ZodString>;
                        topic: z.ZodOptional<z.ZodString>;
                        summary: z.ZodOptional<z.ZodString>;
                        totalTokens: z.ZodOptional<z.ZodNumber>;
                    }, z.core.$strip>>;
                    createdAt: z.ZodString;
                    updatedAt: z.ZodString;
                }, z.core.$strip>>;
                recentMemories: z.ZodOptional<z.ZodArray<z.ZodObject<{
                    id: z.ZodString;
                    version: z.ZodDefault<z.ZodNumber>;
                    content: z.ZodString;
                    type: z.ZodEnum<{
                        fact: "fact";
                        preference: "preference";
                        decision: "decision";
                        feedback: "feedback";
                        example: "example";
                        correction: "correction";
                        skill: "skill";
                        warning: "warning";
                    }>;
                    source: z.ZodObject<{
                        type: z.ZodEnum<{
                            agent: "agent";
                            external: "external";
                            system: "system";
                            user: "user";
                        }>;
                        id: z.ZodString;
                        context: z.ZodOptional<z.ZodString>;
                        confidence: z.ZodDefault<z.ZodNumber>;
                    }, z.core.$strip>;
                    embedding: z.ZodOptional<z.ZodObject<{
                        model: z.ZodString;
                        vector: z.ZodArray<z.ZodNumber>;
                        dimension: z.ZodNumber;
                        generatedAt: z.ZodString;
                    }, z.core.$strip>>;
                    metadata: z.ZodObject<{
                        siteId: z.ZodOptional<z.ZodString>;
                        pageId: z.ZodOptional<z.ZodString>;
                        blockId: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        importance: z.ZodDefault<z.ZodNumber>;
                        expiresAt: z.ZodOptional<z.ZodString>;
                        agentId: z.ZodOptional<z.ZodString>;
                        sessionId: z.ZodOptional<z.ZodString>;
                        custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                    }, z.core.$strip>;
                    createdAt: z.ZodString;
                    accessedAt: z.ZodString;
                    accessCount: z.ZodDefault<z.ZodNumber>;
                    verified: z.ZodDefault<z.ZodBoolean>;
                }, z.core.$strip>>>;
                focus: z.ZodOptional<z.ZodObject<{
                    siteId: z.ZodOptional<z.ZodString>;
                    pageId: z.ZodOptional<z.ZodString>;
                    blockId: z.ZodOptional<z.ZodString>;
                    selection: z.ZodOptional<z.ZodArray<z.ZodString>>;
                }, z.core.$strip>>;
                currentTask: z.ZodOptional<z.ZodObject<{
                    id: z.ZodString;
                    description: z.ZodString;
                    status: z.ZodEnum<{
                        pending: "pending";
                        completed: "completed";
                        running: "running";
                        failed: "failed";
                    }>;
                    progress: z.ZodOptional<z.ZodNumber>;
                }, z.core.$strip>>;
            }, z.core.$strip>;
            readonly conversation: z.ZodObject<{
                id: z.ZodString;
                version: z.ZodDefault<z.ZodNumber>;
                sessionId: z.ZodString;
                userId: z.ZodString;
                agentId: z.ZodString;
                messages: z.ZodArray<z.ZodObject<{
                    id: z.ZodString;
                    role: z.ZodEnum<{
                        system: "system";
                        user: "user";
                        assistant: "assistant";
                        tool: "tool";
                    }>;
                    content: z.ZodString;
                    data: z.ZodOptional<z.ZodObject<{
                        toolCall: z.ZodOptional<z.ZodObject<{
                            name: z.ZodString;
                            params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                        }, z.core.$strip>>;
                        toolResult: z.ZodOptional<z.ZodObject<{
                            name: z.ZodString;
                            result: z.ZodUnknown;
                        }, z.core.$strip>>;
                        attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
                            type: z.ZodEnum<{
                                link: "link";
                                file: "file";
                                image: "image";
                            }>;
                            url: z.ZodString;
                            name: z.ZodOptional<z.ZodString>;
                        }, z.core.$strip>>>;
                    }, z.core.$strip>>;
                    metadata: z.ZodOptional<z.ZodObject<{
                        tokens: z.ZodOptional<z.ZodNumber>;
                        model: z.ZodOptional<z.ZodString>;
                        latencyMs: z.ZodOptional<z.ZodNumber>;
                    }, z.core.$strip>>;
                    timestamp: z.ZodString;
                }, z.core.$strip>>;
                status: z.ZodDefault<z.ZodEnum<{
                    error: "error";
                    active: "active";
                    paused: "paused";
                    completed: "completed";
                }>>;
                metadata: z.ZodOptional<z.ZodObject<{
                    siteId: z.ZodOptional<z.ZodString>;
                    pageId: z.ZodOptional<z.ZodString>;
                    topic: z.ZodOptional<z.ZodString>;
                    summary: z.ZodOptional<z.ZodString>;
                    totalTokens: z.ZodOptional<z.ZodNumber>;
                }, z.core.$strip>>;
                createdAt: z.ZodString;
                updatedAt: z.ZodString;
            }, z.core.$strip>;
            readonly conversationMessage: z.ZodObject<{
                id: z.ZodString;
                role: z.ZodEnum<{
                    system: "system";
                    user: "user";
                    assistant: "assistant";
                    tool: "tool";
                }>;
                content: z.ZodString;
                data: z.ZodOptional<z.ZodObject<{
                    toolCall: z.ZodOptional<z.ZodObject<{
                        name: z.ZodString;
                        params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                    }, z.core.$strip>>;
                    toolResult: z.ZodOptional<z.ZodObject<{
                        name: z.ZodString;
                        result: z.ZodUnknown;
                    }, z.core.$strip>>;
                    attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
                        type: z.ZodEnum<{
                            link: "link";
                            file: "file";
                            image: "image";
                        }>;
                        url: z.ZodString;
                        name: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>>;
                }, z.core.$strip>>;
                metadata: z.ZodOptional<z.ZodObject<{
                    tokens: z.ZodOptional<z.ZodNumber>;
                    model: z.ZodOptional<z.ZodString>;
                    latencyMs: z.ZodOptional<z.ZodNumber>;
                }, z.core.$strip>>;
                timestamp: z.ZodString;
            }, z.core.$strip>;
            readonly intent: z.ZodObject<{
                raw: z.ZodString;
                type: z.ZodEnum<{
                    unknown: "unknown";
                    style: "style";
                    publish: "publish";
                    edit: "edit";
                    delete: "delete";
                    create: "create";
                    query: "query";
                    navigate: "navigate";
                    configure: "configure";
                    undo: "undo";
                    redo: "redo";
                    help: "help";
                    confirm: "confirm";
                    cancel: "cancel";
                }>;
                action: z.ZodOptional<z.ZodString>;
                entities: z.ZodOptional<z.ZodArray<z.ZodObject<{
                    type: z.ZodString;
                    value: z.ZodString;
                    confidence: z.ZodNumber;
                    span: z.ZodOptional<z.ZodObject<{
                        start: z.ZodNumber;
                        end: z.ZodNumber;
                    }, z.core.$strip>>;
                }, z.core.$strip>>>;
                confidence: z.ZodNumber;
                alternatives: z.ZodOptional<z.ZodArray<z.ZodObject<{
                    type: z.ZodEnum<{
                        unknown: "unknown";
                        style: "style";
                        publish: "publish";
                        edit: "edit";
                        delete: "delete";
                        create: "create";
                        query: "query";
                        navigate: "navigate";
                        configure: "configure";
                        undo: "undo";
                        redo: "redo";
                        help: "help";
                        confirm: "confirm";
                        cancel: "cancel";
                    }>;
                    action: z.ZodOptional<z.ZodString>;
                    confidence: z.ZodNumber;
                }, z.core.$strip>>>;
                requiresConfirmation: z.ZodDefault<z.ZodBoolean>;
            }, z.core.$strip>;
            readonly intentType: z.ZodEnum<{
                unknown: "unknown";
                style: "style";
                publish: "publish";
                edit: "edit";
                delete: "delete";
                create: "create";
                query: "query";
                navigate: "navigate";
                configure: "configure";
                undo: "undo";
                redo: "redo";
                help: "help";
                confirm: "confirm";
                cancel: "cancel";
            }>;
            readonly memorySource: z.ZodObject<{
                type: z.ZodEnum<{
                    agent: "agent";
                    external: "external";
                    system: "system";
                    user: "user";
                }>;
                id: z.ZodString;
                context: z.ZodOptional<z.ZodString>;
                confidence: z.ZodDefault<z.ZodNumber>;
            }, z.core.$strip>;
            readonly memoryType: z.ZodEnum<{
                fact: "fact";
                preference: "preference";
                decision: "decision";
                feedback: "feedback";
                example: "example";
                correction: "correction";
                skill: "skill";
                warning: "warning";
            }>;
            readonly toolDefinition: z.ZodObject<{
                name: z.ZodString;
                description: z.ZodString;
                parameters: z.ZodRecord<z.ZodString, z.ZodType<import("@revealui/contracts").ToolParameter, unknown, z.core.$ZodTypeInternals<import("@revealui/contracts").ToolParameter, unknown>>>;
                returns: z.ZodOptional<z.ZodObject<{
                    type: z.ZodString;
                    description: z.ZodString;
                }, z.core.$strip>>;
                examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
                    input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                    output: z.ZodUnknown;
                    description: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>>;
                requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
                destructive: z.ZodDefault<z.ZodBoolean>;
                rateLimit: z.ZodOptional<z.ZodNumber>;
            }, z.core.$strip>;
            readonly toolParameter: z.ZodType<import("@revealui/contracts").ToolParameter, unknown, z.core.$ZodTypeInternals<import("@revealui/contracts").ToolParameter, unknown>>;
        };
    };
    readonly api_auth: {
        readonly primary: "signIn";
        readonly description: "Auth API request/response contracts — sign-in, sign-up, password reset, MFA, passkey, recovery flows.";
        readonly schemas: {
            readonly signIn: z.ZodObject<{
                email: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
                password: z.ZodString;
            }, z.core.$strip>;
            readonly signUp: z.ZodObject<{
                email: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
                password: z.ZodString;
                name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
                tosAccepted: z.ZodLiteral<true>;
            }, z.core.$strip>;
            readonly passwordReset: z.ZodObject<{
                email: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
            }, z.core.$strip>;
            readonly passwordResetToken: z.ZodObject<{
                tokenId: z.ZodString;
                token: z.ZodString;
                password: z.ZodString;
            }, z.core.$strip>;
            readonly mfaSetupResponse: z.ZodObject<{
                secret: z.ZodString;
                uri: z.ZodString;
                backupCodes: z.ZodArray<z.ZodString>;
            }, z.core.$strip>;
            readonly mfaVerify: z.ZodObject<{
                code: z.ZodString;
            }, z.core.$strip>;
            readonly mfaDisable: z.ZodDiscriminatedUnion<[z.ZodObject<{
                method: z.ZodLiteral<"password">;
                password: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                method: z.ZodLiteral<"passkey">;
                authenticationResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
            }, z.core.$strip>], "method">;
            readonly mfaBackupCode: z.ZodObject<{
                code: z.ZodString;
            }, z.core.$strip>;
            readonly passkeyRegisterOptions: z.ZodObject<{
                email: z.ZodOptional<z.ZodString>;
                name: z.ZodOptional<z.ZodString>;
            }, z.core.$strip>;
            readonly passkeyRegisterVerify: z.ZodObject<{
                attestationResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                deviceName: z.ZodOptional<z.ZodString>;
            }, z.core.$strip>;
            readonly passkeyAuthenticateOptions: z.ZodObject<{}, z.core.$strip>;
            readonly passkeyAuthenticateVerify: z.ZodObject<{
                authenticationResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
            }, z.core.$strip>;
            readonly passkeyList: z.ZodObject<{
                passkeys: z.ZodArray<z.ZodObject<{
                    id: z.ZodString;
                    deviceName: z.ZodNullable<z.ZodString>;
                    aaguid: z.ZodNullable<z.ZodString>;
                    backedUp: z.ZodBoolean;
                    createdAt: z.ZodString;
                    lastUsedAt: z.ZodNullable<z.ZodString>;
                }, z.core.$strip>>;
            }, z.core.$strip>;
            readonly passkeyUpdate: z.ZodObject<{
                deviceName: z.ZodString;
            }, z.core.$strip>;
            readonly recovery: z.ZodObject<{
                email: z.ZodString;
            }, z.core.$strip>;
            readonly recoveryVerify: z.ZodObject<{
                token: z.ZodString;
            }, z.core.$strip>;
        };
    };
    readonly api_chat: {
        readonly primary: "chatRequest";
        readonly description: "Chat API contracts — ChatRequest body + ChatMessage shapes.";
        readonly schemas: {
            readonly chatRequest: z.ZodObject<{
                messages: z.ZodArray<z.ZodObject<{
                    role: z.ZodEnum<{
                        system: "system";
                        user: "user";
                        assistant: "assistant";
                    }>;
                    content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
                        type: z.ZodLiteral<"text">;
                        text: z.ZodString;
                    }, z.core.$strip>, z.ZodObject<{
                        type: z.ZodLiteral<"image_url">;
                        image_url: z.ZodObject<{
                            url: z.ZodString;
                            detail: z.ZodOptional<z.ZodEnum<{
                                auto: "auto";
                                high: "high";
                                low: "low";
                            }>>;
                        }, z.core.$strip>;
                    }, z.core.$strip>], "type">>]>;
                }, z.core.$strip>>;
            }, z.core.$strip>;
            readonly chatMessage: z.ZodObject<{
                role: z.ZodEnum<{
                    system: "system";
                    user: "user";
                    assistant: "assistant";
                }>;
                content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
                    type: z.ZodLiteral<"text">;
                    text: z.ZodString;
                }, z.core.$strip>, z.ZodObject<{
                    type: z.ZodLiteral<"image_url">;
                    image_url: z.ZodObject<{
                        url: z.ZodString;
                        detail: z.ZodOptional<z.ZodEnum<{
                            auto: "auto";
                            high: "high";
                            low: "low";
                        }>>;
                    }, z.core.$strip>;
                }, z.core.$strip>], "type">>]>;
            }, z.core.$strip>;
        };
    };
    readonly api_gdpr: {
        readonly primary: "gdprExport";
        readonly description: "GDPR API contracts — data export and account deletion request shapes.";
        readonly schemas: {
            readonly gdprExport: z.ZodObject<{
                userId: z.ZodOptional<z.ZodString>;
                email: z.ZodOptional<z.ZodString>;
            }, z.core.$strip>;
            readonly gdprDelete: z.ZodObject<{
                userId: z.ZodOptional<z.ZodString>;
                email: z.ZodOptional<z.ZodString>;
                confirmation: z.ZodLiteral<"DELETE">;
            }, z.core.$strip>;
        };
    };
    readonly content: {
        readonly primary: "block";
        readonly description: "Content block contracts — discriminated union of 17 block variants (text, heading, image, code, table, columns, grid, form, etc.).";
        readonly schemas: {
            readonly block: z.ZodUnion<readonly [z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"text">;
                data: z.ZodObject<{
                    content: z.ZodString;
                    format: z.ZodDefault<z.ZodEnum<{
                        plain: "plain";
                        markdown: "markdown";
                        html: "html";
                        tiptap: "tiptap";
                    }>>;
                }, z.core.$strip>;
            }, z.core.$strip>, z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"heading">;
                data: z.ZodObject<{
                    text: z.ZodString;
                    level: z.ZodEnum<{
                        h1: "h1";
                        h2: "h2";
                        h3: "h3";
                        h4: "h4";
                        h5: "h5";
                        h6: "h6";
                    }>;
                    anchor: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>;
            }, z.core.$strip>, z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"quote">;
                data: z.ZodObject<{
                    content: z.ZodString;
                    attribution: z.ZodOptional<z.ZodString>;
                    cite: z.ZodOptional<z.ZodURL>;
                }, z.core.$strip>;
            }, z.core.$strip>, z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"code">;
                data: z.ZodObject<{
                    code: z.ZodString;
                    language: z.ZodOptional<z.ZodString>;
                    filename: z.ZodOptional<z.ZodString>;
                    showLineNumbers: z.ZodDefault<z.ZodBoolean>;
                    highlightLines: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
                }, z.core.$strip>;
            }, z.core.$strip>, z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"image">;
                data: z.ZodObject<{
                    src: z.ZodURL;
                    alt: z.ZodString;
                    caption: z.ZodOptional<z.ZodString>;
                    width: z.ZodOptional<z.ZodNumber>;
                    height: z.ZodOptional<z.ZodNumber>;
                    loading: z.ZodDefault<z.ZodEnum<{
                        lazy: "lazy";
                        eager: "eager";
                    }>>;
                }, z.core.$strip>;
            }, z.core.$strip>, z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"video">;
                data: z.ZodObject<{
                    src: z.ZodURL;
                    poster: z.ZodOptional<z.ZodURL>;
                    autoplay: z.ZodDefault<z.ZodBoolean>;
                    loop: z.ZodDefault<z.ZodBoolean>;
                    muted: z.ZodDefault<z.ZodBoolean>;
                    controls: z.ZodDefault<z.ZodBoolean>;
                }, z.core.$strip>;
            }, z.core.$strip>, z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"embed">;
                data: z.ZodObject<{
                    url: z.ZodURL;
                    provider: z.ZodOptional<z.ZodString>;
                    html: z.ZodOptional<z.ZodString>;
                    aspectRatio: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>;
            }, z.core.$strip>, z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"button">;
                data: z.ZodObject<{
                    text: z.ZodString;
                    href: z.ZodOptional<z.ZodString>;
                    action: z.ZodDefault<z.ZodEnum<{
                        link: "link";
                        custom: "custom";
                        submit: "submit";
                    }>>;
                    variant: z.ZodDefault<z.ZodEnum<{
                        primary: "primary";
                        secondary: "secondary";
                        outline: "outline";
                        ghost: "ghost";
                    }>>;
                    size: z.ZodDefault<z.ZodEnum<{
                        sm: "sm";
                        md: "md";
                        lg: "lg";
                    }>>;
                }, z.core.$strip>;
            }, z.core.$strip>, z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"divider">;
                data: z.ZodObject<{
                    variant: z.ZodDefault<z.ZodEnum<{
                        solid: "solid";
                        dashed: "dashed";
                        dotted: "dotted";
                    }>>;
                    thickness: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>;
            }, z.core.$strip>, z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"spacer">;
                data: z.ZodObject<{
                    height: z.ZodDefault<z.ZodString>;
                }, z.core.$strip>;
            }, z.core.$strip>, z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"list">;
                data: z.ZodObject<{
                    items: z.ZodArray<z.ZodObject<{
                        id: z.ZodString;
                        content: z.ZodString;
                        checked: z.ZodOptional<z.ZodBoolean>;
                    }, z.core.$strip>>;
                    variant: z.ZodDefault<z.ZodEnum<{
                        unordered: "unordered";
                        ordered: "ordered";
                        checklist: "checklist";
                    }>>;
                }, z.core.$strip>;
            }, z.core.$strip>, z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"table">;
                data: z.ZodObject<{
                    headers: z.ZodArray<z.ZodObject<{
                        id: z.ZodString;
                        content: z.ZodString;
                    }, z.core.$strip>>;
                    rows: z.ZodArray<z.ZodObject<{
                        id: z.ZodString;
                        cells: z.ZodArray<z.ZodString>;
                    }, z.core.$strip>>;
                    caption: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>;
            }, z.core.$strip>, z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"columns">;
                data: z.ZodObject<{
                    columns: z.ZodArray<z.ZodObject<{
                        id: z.ZodString;
                        width: z.ZodOptional<z.ZodString>;
                        blocks: z.ZodArray<z.ZodLazy<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
                    }, z.core.$strip>>;
                    gap: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>;
            }, z.core.$strip>, z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"grid">;
                data: z.ZodObject<{
                    columns: z.ZodOptional<z.ZodNumber>;
                    gap: z.ZodOptional<z.ZodString>;
                    items: z.ZodArray<z.ZodObject<{
                        id: z.ZodString;
                        span: z.ZodOptional<z.ZodNumber>;
                        blocks: z.ZodArray<z.ZodLazy<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
                    }, z.core.$strip>>;
                }, z.core.$strip>;
            }, z.core.$strip>, z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"accordion">;
                data: z.ZodObject<{
                    items: z.ZodArray<z.ZodObject<{
                        id: z.ZodString;
                        title: z.ZodString;
                        blocks: z.ZodArray<z.ZodLazy<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
                        defaultOpen: z.ZodOptional<z.ZodBoolean>;
                    }, z.core.$strip>>;
                    allowMultiple: z.ZodOptional<z.ZodBoolean>;
                }, z.core.$strip>;
            }, z.core.$strip>, z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"tabs">;
                data: z.ZodObject<{
                    tabs: z.ZodArray<z.ZodObject<{
                        id: z.ZodString;
                        label: z.ZodString;
                        blocks: z.ZodArray<z.ZodLazy<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
                    }, z.core.$strip>>;
                    defaultTab: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>;
            }, z.core.$strip>, z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"form">;
                data: z.ZodObject<{
                    action: z.ZodOptional<z.ZodURL>;
                    method: z.ZodDefault<z.ZodEnum<{
                        GET: "GET";
                        POST: "POST";
                    }>>;
                    fields: z.ZodArray<z.ZodObject<{
                        id: z.ZodString;
                        type: z.ZodEnum<{
                            file: "file";
                            text: "text";
                            email: "email";
                            password: "password";
                            textarea: "textarea";
                            select: "select";
                            checkbox: "checkbox";
                            radio: "radio";
                        }>;
                        name: z.ZodString;
                        label: z.ZodString;
                        placeholder: z.ZodOptional<z.ZodString>;
                        required: z.ZodDefault<z.ZodBoolean>;
                        options: z.ZodOptional<z.ZodArray<z.ZodObject<{
                            value: z.ZodString;
                            label: z.ZodString;
                        }, z.core.$strip>>>;
                    }, z.core.$strip>>;
                    submitText: z.ZodDefault<z.ZodString>;
                }, z.core.$strip>;
            }, z.core.$strip>, z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"html">;
                data: z.ZodObject<{
                    html: z.ZodString;
                    sanitize: z.ZodDefault<z.ZodBoolean>;
                }, z.core.$strip>;
            }, z.core.$strip>, z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"component">;
                data: z.ZodObject<{
                    componentId: z.ZodString;
                    props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                    source: z.ZodDefault<z.ZodEnum<{
                        custom: "custom";
                        builtin: "builtin";
                        marketplace: "marketplace";
                    }>>;
                }, z.core.$strip>;
            }, z.core.$strip>]>;
            readonly blockMeta: z.ZodObject<{
                version: z.ZodOptional<z.ZodNumber>;
                description: z.ZodOptional<z.ZodString>;
                tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                aiGenerated: z.ZodOptional<z.ZodBoolean>;
                sourcePrompt: z.ZodOptional<z.ZodString>;
                lastEditor: z.ZodOptional<z.ZodString>;
                lastEditedAt: z.ZodOptional<z.ZodString>;
            }, z.core.$strip>;
            readonly blockStyle: z.ZodObject<{
                align: z.ZodOptional<z.ZodEnum<{
                    left: "left";
                    center: "center";
                    right: "right";
                    justify: "justify";
                }>>;
                backgroundColor: z.ZodOptional<z.ZodString>;
                textColor: z.ZodOptional<z.ZodString>;
                padding: z.ZodOptional<z.ZodString>;
                margin: z.ZodOptional<z.ZodString>;
                borderRadius: z.ZodOptional<z.ZodString>;
                className: z.ZodOptional<z.ZodString>;
                style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
            }, z.core.$strip>;
            readonly accordion: z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"accordion">;
                data: z.ZodObject<{
                    items: z.ZodArray<z.ZodObject<{
                        id: z.ZodString;
                        title: z.ZodString;
                        blocks: z.ZodArray<z.ZodLazy<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
                        defaultOpen: z.ZodOptional<z.ZodBoolean>;
                    }, z.core.$strip>>;
                    allowMultiple: z.ZodOptional<z.ZodBoolean>;
                }, z.core.$strip>;
            }, z.core.$strip>;
            readonly button: z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"button">;
                data: z.ZodObject<{
                    text: z.ZodString;
                    href: z.ZodOptional<z.ZodString>;
                    action: z.ZodDefault<z.ZodEnum<{
                        link: "link";
                        custom: "custom";
                        submit: "submit";
                    }>>;
                    variant: z.ZodDefault<z.ZodEnum<{
                        primary: "primary";
                        secondary: "secondary";
                        outline: "outline";
                        ghost: "ghost";
                    }>>;
                    size: z.ZodDefault<z.ZodEnum<{
                        sm: "sm";
                        md: "md";
                        lg: "lg";
                    }>>;
                }, z.core.$strip>;
            }, z.core.$strip>;
            readonly code: z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"code">;
                data: z.ZodObject<{
                    code: z.ZodString;
                    language: z.ZodOptional<z.ZodString>;
                    filename: z.ZodOptional<z.ZodString>;
                    showLineNumbers: z.ZodDefault<z.ZodBoolean>;
                    highlightLines: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
                }, z.core.$strip>;
            }, z.core.$strip>;
            readonly columns: z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"columns">;
                data: z.ZodObject<{
                    columns: z.ZodArray<z.ZodObject<{
                        id: z.ZodString;
                        width: z.ZodOptional<z.ZodString>;
                        blocks: z.ZodArray<z.ZodLazy<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
                    }, z.core.$strip>>;
                    gap: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>;
            }, z.core.$strip>;
            readonly component: z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"component">;
                data: z.ZodObject<{
                    componentId: z.ZodString;
                    props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                    source: z.ZodDefault<z.ZodEnum<{
                        custom: "custom";
                        builtin: "builtin";
                        marketplace: "marketplace";
                    }>>;
                }, z.core.$strip>;
            }, z.core.$strip>;
            readonly divider: z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"divider">;
                data: z.ZodObject<{
                    variant: z.ZodDefault<z.ZodEnum<{
                        solid: "solid";
                        dashed: "dashed";
                        dotted: "dotted";
                    }>>;
                    thickness: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>;
            }, z.core.$strip>;
            readonly embed: z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"embed">;
                data: z.ZodObject<{
                    url: z.ZodURL;
                    provider: z.ZodOptional<z.ZodString>;
                    html: z.ZodOptional<z.ZodString>;
                    aspectRatio: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>;
            }, z.core.$strip>;
            readonly form: z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"form">;
                data: z.ZodObject<{
                    action: z.ZodOptional<z.ZodURL>;
                    method: z.ZodDefault<z.ZodEnum<{
                        GET: "GET";
                        POST: "POST";
                    }>>;
                    fields: z.ZodArray<z.ZodObject<{
                        id: z.ZodString;
                        type: z.ZodEnum<{
                            file: "file";
                            text: "text";
                            email: "email";
                            password: "password";
                            textarea: "textarea";
                            select: "select";
                            checkbox: "checkbox";
                            radio: "radio";
                        }>;
                        name: z.ZodString;
                        label: z.ZodString;
                        placeholder: z.ZodOptional<z.ZodString>;
                        required: z.ZodDefault<z.ZodBoolean>;
                        options: z.ZodOptional<z.ZodArray<z.ZodObject<{
                            value: z.ZodString;
                            label: z.ZodString;
                        }, z.core.$strip>>>;
                    }, z.core.$strip>>;
                    submitText: z.ZodDefault<z.ZodString>;
                }, z.core.$strip>;
            }, z.core.$strip>;
            readonly grid: z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"grid">;
                data: z.ZodObject<{
                    columns: z.ZodOptional<z.ZodNumber>;
                    gap: z.ZodOptional<z.ZodString>;
                    items: z.ZodArray<z.ZodObject<{
                        id: z.ZodString;
                        span: z.ZodOptional<z.ZodNumber>;
                        blocks: z.ZodArray<z.ZodLazy<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
                    }, z.core.$strip>>;
                }, z.core.$strip>;
            }, z.core.$strip>;
            readonly heading: z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"heading">;
                data: z.ZodObject<{
                    text: z.ZodString;
                    level: z.ZodEnum<{
                        h1: "h1";
                        h2: "h2";
                        h3: "h3";
                        h4: "h4";
                        h5: "h5";
                        h6: "h6";
                    }>;
                    anchor: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>;
            }, z.core.$strip>;
            readonly html: z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"html">;
                data: z.ZodObject<{
                    html: z.ZodString;
                    sanitize: z.ZodDefault<z.ZodBoolean>;
                }, z.core.$strip>;
            }, z.core.$strip>;
            readonly image: z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"image">;
                data: z.ZodObject<{
                    src: z.ZodURL;
                    alt: z.ZodString;
                    caption: z.ZodOptional<z.ZodString>;
                    width: z.ZodOptional<z.ZodNumber>;
                    height: z.ZodOptional<z.ZodNumber>;
                    loading: z.ZodDefault<z.ZodEnum<{
                        lazy: "lazy";
                        eager: "eager";
                    }>>;
                }, z.core.$strip>;
            }, z.core.$strip>;
            readonly list: z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"list">;
                data: z.ZodObject<{
                    items: z.ZodArray<z.ZodObject<{
                        id: z.ZodString;
                        content: z.ZodString;
                        checked: z.ZodOptional<z.ZodBoolean>;
                    }, z.core.$strip>>;
                    variant: z.ZodDefault<z.ZodEnum<{
                        unordered: "unordered";
                        ordered: "ordered";
                        checklist: "checklist";
                    }>>;
                }, z.core.$strip>;
            }, z.core.$strip>;
            readonly quote: z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"quote">;
                data: z.ZodObject<{
                    content: z.ZodString;
                    attribution: z.ZodOptional<z.ZodString>;
                    cite: z.ZodOptional<z.ZodURL>;
                }, z.core.$strip>;
            }, z.core.$strip>;
            readonly spacer: z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"spacer">;
                data: z.ZodObject<{
                    height: z.ZodDefault<z.ZodString>;
                }, z.core.$strip>;
            }, z.core.$strip>;
            readonly table: z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"table">;
                data: z.ZodObject<{
                    headers: z.ZodArray<z.ZodObject<{
                        id: z.ZodString;
                        content: z.ZodString;
                    }, z.core.$strip>>;
                    rows: z.ZodArray<z.ZodObject<{
                        id: z.ZodString;
                        cells: z.ZodArray<z.ZodString>;
                    }, z.core.$strip>>;
                    caption: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>;
            }, z.core.$strip>;
            readonly tabs: z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"tabs">;
                data: z.ZodObject<{
                    tabs: z.ZodArray<z.ZodObject<{
                        id: z.ZodString;
                        label: z.ZodString;
                        blocks: z.ZodArray<z.ZodLazy<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
                    }, z.core.$strip>>;
                    defaultTab: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>;
            }, z.core.$strip>;
            readonly text: z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"text">;
                data: z.ZodObject<{
                    content: z.ZodString;
                    format: z.ZodDefault<z.ZodEnum<{
                        plain: "plain";
                        markdown: "markdown";
                        html: "html";
                        tiptap: "tiptap";
                    }>>;
                }, z.core.$strip>;
            }, z.core.$strip>;
            readonly video: z.ZodObject<{
                id: z.ZodString;
                style: z.ZodOptional<z.ZodObject<{
                    align: z.ZodOptional<z.ZodEnum<{
                        left: "left";
                        center: "center";
                        right: "right";
                        justify: "justify";
                    }>>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    padding: z.ZodOptional<z.ZodString>;
                    margin: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodOptional<z.ZodString>;
                    className: z.ZodOptional<z.ZodString>;
                    style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                meta: z.ZodOptional<z.ZodObject<{
                    version: z.ZodOptional<z.ZodNumber>;
                    description: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    aiGenerated: z.ZodOptional<z.ZodBoolean>;
                    sourcePrompt: z.ZodOptional<z.ZodString>;
                    lastEditor: z.ZodOptional<z.ZodString>;
                    lastEditedAt: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                type: z.ZodLiteral<"video">;
                data: z.ZodObject<{
                    src: z.ZodURL;
                    poster: z.ZodOptional<z.ZodURL>;
                    autoplay: z.ZodDefault<z.ZodBoolean>;
                    loop: z.ZodDefault<z.ZodBoolean>;
                    muted: z.ZodDefault<z.ZodBoolean>;
                    controls: z.ZodDefault<z.ZodBoolean>;
                }, z.core.$strip>;
            }, z.core.$strip>;
        };
    };
    readonly content_validation: {
        readonly primary: "config";
        readonly description: "Lexical content validation config — limits applied by validateLexicalContent (max nesting depth + max payload bytes).";
        readonly schemas: {
            readonly config: z.ZodObject<{
                maxDepth: z.ZodNumber;
                maxSizeBytes: z.ZodNumber;
            }, z.core.$strip>;
        };
    };
    readonly devkit_profiles: {
        readonly primary: "profileId";
        readonly description: "DevKit profile id (Max-tier paywall feature) — one of revealui, agents, claude, cursor, zed.";
        readonly schemas: {
            readonly profileId: z.ZodEnum<{
                cursor: "cursor";
                revealui: "revealui";
                agents: "agents";
                claude: "claude";
                zed: "zed";
            }>;
        };
    };
    readonly entities: {
        readonly primary: "user";
        readonly description: "Domain entity contracts — User, Site, Page, Session, plus PageLock. Add more secondary schemas in subsequent phases.";
        readonly schemas: {
            readonly user: z.ZodObject<{
                id: z.ZodString;
                version: z.ZodDefault<z.ZodNumber>;
                human: z.ZodOptional<z.ZodObject<{
                    label: z.ZodString;
                    description: z.ZodOptional<z.ZodString>;
                    icon: z.ZodOptional<z.ZodString>;
                    color: z.ZodOptional<z.ZodString>;
                    preview: z.ZodOptional<z.ZodString>;
                    suggestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    helpText: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                agent: z.ZodOptional<z.ZodObject<{
                    semanticType: z.ZodString;
                    embedding: z.ZodOptional<z.ZodObject<{
                        model: z.ZodString;
                        vector: z.ZodArray<z.ZodNumber>;
                        dimension: z.ZodNumber;
                        generatedAt: z.ZodString;
                    }, z.core.$strip>>;
                    constraints: z.ZodOptional<z.ZodArray<z.ZodObject<{
                        type: z.ZodEnum<{
                            custom: "custom";
                            readonly: "readonly";
                            pattern: "pattern";
                            required: "required";
                            immutable: "immutable";
                            range: "range";
                            dependency: "dependency";
                            capability: "capability";
                            permission: "permission";
                        }>;
                        field: z.ZodOptional<z.ZodString>;
                        params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                        message: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>>;
                    actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
                        name: z.ZodString;
                        description: z.ZodString;
                        params: z.ZodRecord<z.ZodString, z.ZodObject<{
                            type: z.ZodString;
                            required: z.ZodOptional<z.ZodBoolean>;
                            description: z.ZodOptional<z.ZodString>;
                            default: z.ZodOptional<z.ZodUnknown>;
                            enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        }, z.core.$strip>>;
                        returns: z.ZodOptional<z.ZodObject<{
                            type: z.ZodString;
                            description: z.ZodOptional<z.ZodString>;
                        }, z.core.$strip>>;
                        requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        sideEffects: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        destructive: z.ZodOptional<z.ZodBoolean>;
                    }, z.core.$strip>>>;
                    relations: z.ZodOptional<z.ZodArray<z.ZodObject<{
                        type: z.ZodEnum<{
                            dependency: "dependency";
                            parent: "parent";
                            child: "child";
                            sibling: "sibling";
                            reference: "reference";
                            related: "related";
                        }>;
                        targetId: z.ZodString;
                        targetType: z.ZodString;
                        weight: z.ZodDefault<z.ZodNumber>;
                        metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                    }, z.core.$strip>>>;
                    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                    keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    priority: z.ZodOptional<z.ZodNumber>;
                }, z.core.$strip>>;
                createdAt: z.ZodString;
                updatedAt: z.ZodString;
                schemaVersion: z.ZodDefault<z.ZodNumber>;
                type: z.ZodEnum<{
                    human: "human";
                    agent: "agent";
                    system: "system";
                }>;
                status: z.ZodDefault<z.ZodEnum<{
                    active: "active";
                    suspended: "suspended";
                    deleted: "deleted";
                    pending: "pending";
                }>>;
                email: z.ZodOptional<z.ZodString>;
                name: z.ZodString;
                avatarUrl: z.ZodOptional<z.ZodURL>;
                role: z.ZodEnum<{
                    agent: "agent";
                    admin: "admin";
                    editor: "editor";
                    viewer: "viewer";
                    owner: "owner";
                    contributor: "contributor";
                }>;
                agentModel: z.ZodOptional<z.ZodString>;
                agentCapabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
                agentConfig: z.ZodOptional<z.ZodObject<{
                    systemPrompt: z.ZodOptional<z.ZodString>;
                    temperature: z.ZodOptional<z.ZodNumber>;
                    maxTokens: z.ZodOptional<z.ZodNumber>;
                }, z.core.$strip>>;
                preferences: z.ZodOptional<z.ZodObject<{
                    theme: z.ZodDefault<z.ZodEnum<{
                        light: "light";
                        dark: "dark";
                        system: "system";
                    }>>;
                    language: z.ZodDefault<z.ZodString>;
                    timezone: z.ZodDefault<z.ZodString>;
                    notifications: z.ZodOptional<z.ZodObject<{
                        email: z.ZodDefault<z.ZodBoolean>;
                        push: z.ZodDefault<z.ZodBoolean>;
                        inApp: z.ZodDefault<z.ZodBoolean>;
                    }, z.core.$strip>>;
                    editor: z.ZodOptional<z.ZodObject<{
                        fontSize: z.ZodDefault<z.ZodNumber>;
                        tabSize: z.ZodDefault<z.ZodNumber>;
                        wordWrap: z.ZodDefault<z.ZodBoolean>;
                        autoSave: z.ZodDefault<z.ZodBoolean>;
                        autoSaveIntervalMs: z.ZodDefault<z.ZodNumber>;
                    }, z.core.$strip>>;
                    ai: z.ZodOptional<z.ZodObject<{
                        enabled: z.ZodDefault<z.ZodBoolean>;
                        autoSuggest: z.ZodDefault<z.ZodBoolean>;
                        voiceEnabled: z.ZodDefault<z.ZodBoolean>;
                    }, z.core.$strip>>;
                }, z.core.$strip>>;
                lastActiveAt: z.ZodOptional<z.ZodString>;
                emailVerified: z.ZodDefault<z.ZodBoolean>;
            }, z.core.$strip>;
            readonly page: z.ZodObject<{
                id: z.ZodString;
                version: z.ZodDefault<z.ZodNumber>;
                human: z.ZodOptional<z.ZodObject<{
                    label: z.ZodString;
                    description: z.ZodOptional<z.ZodString>;
                    icon: z.ZodOptional<z.ZodString>;
                    color: z.ZodOptional<z.ZodString>;
                    preview: z.ZodOptional<z.ZodString>;
                    suggestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    helpText: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                agent: z.ZodOptional<z.ZodObject<{
                    semanticType: z.ZodString;
                    embedding: z.ZodOptional<z.ZodObject<{
                        model: z.ZodString;
                        vector: z.ZodArray<z.ZodNumber>;
                        dimension: z.ZodNumber;
                        generatedAt: z.ZodString;
                    }, z.core.$strip>>;
                    constraints: z.ZodOptional<z.ZodArray<z.ZodObject<{
                        type: z.ZodEnum<{
                            custom: "custom";
                            readonly: "readonly";
                            pattern: "pattern";
                            required: "required";
                            immutable: "immutable";
                            range: "range";
                            dependency: "dependency";
                            capability: "capability";
                            permission: "permission";
                        }>;
                        field: z.ZodOptional<z.ZodString>;
                        params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                        message: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>>;
                    actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
                        name: z.ZodString;
                        description: z.ZodString;
                        params: z.ZodRecord<z.ZodString, z.ZodObject<{
                            type: z.ZodString;
                            required: z.ZodOptional<z.ZodBoolean>;
                            description: z.ZodOptional<z.ZodString>;
                            default: z.ZodOptional<z.ZodUnknown>;
                            enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        }, z.core.$strip>>;
                        returns: z.ZodOptional<z.ZodObject<{
                            type: z.ZodString;
                            description: z.ZodOptional<z.ZodString>;
                        }, z.core.$strip>>;
                        requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        sideEffects: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        destructive: z.ZodOptional<z.ZodBoolean>;
                    }, z.core.$strip>>>;
                    relations: z.ZodOptional<z.ZodArray<z.ZodObject<{
                        type: z.ZodEnum<{
                            dependency: "dependency";
                            parent: "parent";
                            child: "child";
                            sibling: "sibling";
                            reference: "reference";
                            related: "related";
                        }>;
                        targetId: z.ZodString;
                        targetType: z.ZodString;
                        weight: z.ZodDefault<z.ZodNumber>;
                        metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                    }, z.core.$strip>>>;
                    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                    keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    priority: z.ZodOptional<z.ZodNumber>;
                }, z.core.$strip>>;
                createdAt: z.ZodString;
                updatedAt: z.ZodString;
                schemaVersion: z.ZodDefault<z.ZodNumber>;
                siteId: z.ZodString;
                title: z.ZodString;
                slug: z.ZodString;
                path: z.ZodString;
                status: z.ZodEnum<{
                    draft: "draft";
                    published: "published";
                    scheduled: "scheduled";
                    archived: "archived";
                }>;
                blocks: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
                    id: z.ZodString;
                    style: z.ZodOptional<z.ZodObject<{
                        align: z.ZodOptional<z.ZodEnum<{
                            left: "left";
                            center: "center";
                            right: "right";
                            justify: "justify";
                        }>>;
                        backgroundColor: z.ZodOptional<z.ZodString>;
                        textColor: z.ZodOptional<z.ZodString>;
                        padding: z.ZodOptional<z.ZodString>;
                        margin: z.ZodOptional<z.ZodString>;
                        borderRadius: z.ZodOptional<z.ZodString>;
                        className: z.ZodOptional<z.ZodString>;
                        style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strip>>;
                    meta: z.ZodOptional<z.ZodObject<{
                        version: z.ZodOptional<z.ZodNumber>;
                        description: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        aiGenerated: z.ZodOptional<z.ZodBoolean>;
                        sourcePrompt: z.ZodOptional<z.ZodString>;
                        lastEditor: z.ZodOptional<z.ZodString>;
                        lastEditedAt: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>;
                    type: z.ZodLiteral<"text">;
                    data: z.ZodObject<{
                        content: z.ZodString;
                        format: z.ZodDefault<z.ZodEnum<{
                            plain: "plain";
                            markdown: "markdown";
                            html: "html";
                            tiptap: "tiptap";
                        }>>;
                    }, z.core.$strip>;
                }, z.core.$strip>, z.ZodObject<{
                    id: z.ZodString;
                    style: z.ZodOptional<z.ZodObject<{
                        align: z.ZodOptional<z.ZodEnum<{
                            left: "left";
                            center: "center";
                            right: "right";
                            justify: "justify";
                        }>>;
                        backgroundColor: z.ZodOptional<z.ZodString>;
                        textColor: z.ZodOptional<z.ZodString>;
                        padding: z.ZodOptional<z.ZodString>;
                        margin: z.ZodOptional<z.ZodString>;
                        borderRadius: z.ZodOptional<z.ZodString>;
                        className: z.ZodOptional<z.ZodString>;
                        style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strip>>;
                    meta: z.ZodOptional<z.ZodObject<{
                        version: z.ZodOptional<z.ZodNumber>;
                        description: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        aiGenerated: z.ZodOptional<z.ZodBoolean>;
                        sourcePrompt: z.ZodOptional<z.ZodString>;
                        lastEditor: z.ZodOptional<z.ZodString>;
                        lastEditedAt: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>;
                    type: z.ZodLiteral<"heading">;
                    data: z.ZodObject<{
                        text: z.ZodString;
                        level: z.ZodEnum<{
                            h1: "h1";
                            h2: "h2";
                            h3: "h3";
                            h4: "h4";
                            h5: "h5";
                            h6: "h6";
                        }>;
                        anchor: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>;
                }, z.core.$strip>, z.ZodObject<{
                    id: z.ZodString;
                    style: z.ZodOptional<z.ZodObject<{
                        align: z.ZodOptional<z.ZodEnum<{
                            left: "left";
                            center: "center";
                            right: "right";
                            justify: "justify";
                        }>>;
                        backgroundColor: z.ZodOptional<z.ZodString>;
                        textColor: z.ZodOptional<z.ZodString>;
                        padding: z.ZodOptional<z.ZodString>;
                        margin: z.ZodOptional<z.ZodString>;
                        borderRadius: z.ZodOptional<z.ZodString>;
                        className: z.ZodOptional<z.ZodString>;
                        style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strip>>;
                    meta: z.ZodOptional<z.ZodObject<{
                        version: z.ZodOptional<z.ZodNumber>;
                        description: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        aiGenerated: z.ZodOptional<z.ZodBoolean>;
                        sourcePrompt: z.ZodOptional<z.ZodString>;
                        lastEditor: z.ZodOptional<z.ZodString>;
                        lastEditedAt: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>;
                    type: z.ZodLiteral<"quote">;
                    data: z.ZodObject<{
                        content: z.ZodString;
                        attribution: z.ZodOptional<z.ZodString>;
                        cite: z.ZodOptional<z.ZodURL>;
                    }, z.core.$strip>;
                }, z.core.$strip>, z.ZodObject<{
                    id: z.ZodString;
                    style: z.ZodOptional<z.ZodObject<{
                        align: z.ZodOptional<z.ZodEnum<{
                            left: "left";
                            center: "center";
                            right: "right";
                            justify: "justify";
                        }>>;
                        backgroundColor: z.ZodOptional<z.ZodString>;
                        textColor: z.ZodOptional<z.ZodString>;
                        padding: z.ZodOptional<z.ZodString>;
                        margin: z.ZodOptional<z.ZodString>;
                        borderRadius: z.ZodOptional<z.ZodString>;
                        className: z.ZodOptional<z.ZodString>;
                        style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strip>>;
                    meta: z.ZodOptional<z.ZodObject<{
                        version: z.ZodOptional<z.ZodNumber>;
                        description: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        aiGenerated: z.ZodOptional<z.ZodBoolean>;
                        sourcePrompt: z.ZodOptional<z.ZodString>;
                        lastEditor: z.ZodOptional<z.ZodString>;
                        lastEditedAt: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>;
                    type: z.ZodLiteral<"code">;
                    data: z.ZodObject<{
                        code: z.ZodString;
                        language: z.ZodOptional<z.ZodString>;
                        filename: z.ZodOptional<z.ZodString>;
                        showLineNumbers: z.ZodDefault<z.ZodBoolean>;
                        highlightLines: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
                    }, z.core.$strip>;
                }, z.core.$strip>, z.ZodObject<{
                    id: z.ZodString;
                    style: z.ZodOptional<z.ZodObject<{
                        align: z.ZodOptional<z.ZodEnum<{
                            left: "left";
                            center: "center";
                            right: "right";
                            justify: "justify";
                        }>>;
                        backgroundColor: z.ZodOptional<z.ZodString>;
                        textColor: z.ZodOptional<z.ZodString>;
                        padding: z.ZodOptional<z.ZodString>;
                        margin: z.ZodOptional<z.ZodString>;
                        borderRadius: z.ZodOptional<z.ZodString>;
                        className: z.ZodOptional<z.ZodString>;
                        style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strip>>;
                    meta: z.ZodOptional<z.ZodObject<{
                        version: z.ZodOptional<z.ZodNumber>;
                        description: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        aiGenerated: z.ZodOptional<z.ZodBoolean>;
                        sourcePrompt: z.ZodOptional<z.ZodString>;
                        lastEditor: z.ZodOptional<z.ZodString>;
                        lastEditedAt: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>;
                    type: z.ZodLiteral<"image">;
                    data: z.ZodObject<{
                        src: z.ZodURL;
                        alt: z.ZodString;
                        caption: z.ZodOptional<z.ZodString>;
                        width: z.ZodOptional<z.ZodNumber>;
                        height: z.ZodOptional<z.ZodNumber>;
                        loading: z.ZodDefault<z.ZodEnum<{
                            lazy: "lazy";
                            eager: "eager";
                        }>>;
                    }, z.core.$strip>;
                }, z.core.$strip>, z.ZodObject<{
                    id: z.ZodString;
                    style: z.ZodOptional<z.ZodObject<{
                        align: z.ZodOptional<z.ZodEnum<{
                            left: "left";
                            center: "center";
                            right: "right";
                            justify: "justify";
                        }>>;
                        backgroundColor: z.ZodOptional<z.ZodString>;
                        textColor: z.ZodOptional<z.ZodString>;
                        padding: z.ZodOptional<z.ZodString>;
                        margin: z.ZodOptional<z.ZodString>;
                        borderRadius: z.ZodOptional<z.ZodString>;
                        className: z.ZodOptional<z.ZodString>;
                        style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strip>>;
                    meta: z.ZodOptional<z.ZodObject<{
                        version: z.ZodOptional<z.ZodNumber>;
                        description: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        aiGenerated: z.ZodOptional<z.ZodBoolean>;
                        sourcePrompt: z.ZodOptional<z.ZodString>;
                        lastEditor: z.ZodOptional<z.ZodString>;
                        lastEditedAt: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>;
                    type: z.ZodLiteral<"video">;
                    data: z.ZodObject<{
                        src: z.ZodURL;
                        poster: z.ZodOptional<z.ZodURL>;
                        autoplay: z.ZodDefault<z.ZodBoolean>;
                        loop: z.ZodDefault<z.ZodBoolean>;
                        muted: z.ZodDefault<z.ZodBoolean>;
                        controls: z.ZodDefault<z.ZodBoolean>;
                    }, z.core.$strip>;
                }, z.core.$strip>, z.ZodObject<{
                    id: z.ZodString;
                    style: z.ZodOptional<z.ZodObject<{
                        align: z.ZodOptional<z.ZodEnum<{
                            left: "left";
                            center: "center";
                            right: "right";
                            justify: "justify";
                        }>>;
                        backgroundColor: z.ZodOptional<z.ZodString>;
                        textColor: z.ZodOptional<z.ZodString>;
                        padding: z.ZodOptional<z.ZodString>;
                        margin: z.ZodOptional<z.ZodString>;
                        borderRadius: z.ZodOptional<z.ZodString>;
                        className: z.ZodOptional<z.ZodString>;
                        style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strip>>;
                    meta: z.ZodOptional<z.ZodObject<{
                        version: z.ZodOptional<z.ZodNumber>;
                        description: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        aiGenerated: z.ZodOptional<z.ZodBoolean>;
                        sourcePrompt: z.ZodOptional<z.ZodString>;
                        lastEditor: z.ZodOptional<z.ZodString>;
                        lastEditedAt: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>;
                    type: z.ZodLiteral<"embed">;
                    data: z.ZodObject<{
                        url: z.ZodURL;
                        provider: z.ZodOptional<z.ZodString>;
                        html: z.ZodOptional<z.ZodString>;
                        aspectRatio: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>;
                }, z.core.$strip>, z.ZodObject<{
                    id: z.ZodString;
                    style: z.ZodOptional<z.ZodObject<{
                        align: z.ZodOptional<z.ZodEnum<{
                            left: "left";
                            center: "center";
                            right: "right";
                            justify: "justify";
                        }>>;
                        backgroundColor: z.ZodOptional<z.ZodString>;
                        textColor: z.ZodOptional<z.ZodString>;
                        padding: z.ZodOptional<z.ZodString>;
                        margin: z.ZodOptional<z.ZodString>;
                        borderRadius: z.ZodOptional<z.ZodString>;
                        className: z.ZodOptional<z.ZodString>;
                        style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strip>>;
                    meta: z.ZodOptional<z.ZodObject<{
                        version: z.ZodOptional<z.ZodNumber>;
                        description: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        aiGenerated: z.ZodOptional<z.ZodBoolean>;
                        sourcePrompt: z.ZodOptional<z.ZodString>;
                        lastEditor: z.ZodOptional<z.ZodString>;
                        lastEditedAt: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>;
                    type: z.ZodLiteral<"button">;
                    data: z.ZodObject<{
                        text: z.ZodString;
                        href: z.ZodOptional<z.ZodString>;
                        action: z.ZodDefault<z.ZodEnum<{
                            link: "link";
                            custom: "custom";
                            submit: "submit";
                        }>>;
                        variant: z.ZodDefault<z.ZodEnum<{
                            primary: "primary";
                            secondary: "secondary";
                            outline: "outline";
                            ghost: "ghost";
                        }>>;
                        size: z.ZodDefault<z.ZodEnum<{
                            sm: "sm";
                            md: "md";
                            lg: "lg";
                        }>>;
                    }, z.core.$strip>;
                }, z.core.$strip>, z.ZodObject<{
                    id: z.ZodString;
                    style: z.ZodOptional<z.ZodObject<{
                        align: z.ZodOptional<z.ZodEnum<{
                            left: "left";
                            center: "center";
                            right: "right";
                            justify: "justify";
                        }>>;
                        backgroundColor: z.ZodOptional<z.ZodString>;
                        textColor: z.ZodOptional<z.ZodString>;
                        padding: z.ZodOptional<z.ZodString>;
                        margin: z.ZodOptional<z.ZodString>;
                        borderRadius: z.ZodOptional<z.ZodString>;
                        className: z.ZodOptional<z.ZodString>;
                        style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strip>>;
                    meta: z.ZodOptional<z.ZodObject<{
                        version: z.ZodOptional<z.ZodNumber>;
                        description: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        aiGenerated: z.ZodOptional<z.ZodBoolean>;
                        sourcePrompt: z.ZodOptional<z.ZodString>;
                        lastEditor: z.ZodOptional<z.ZodString>;
                        lastEditedAt: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>;
                    type: z.ZodLiteral<"divider">;
                    data: z.ZodObject<{
                        variant: z.ZodDefault<z.ZodEnum<{
                            solid: "solid";
                            dashed: "dashed";
                            dotted: "dotted";
                        }>>;
                        thickness: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>;
                }, z.core.$strip>, z.ZodObject<{
                    id: z.ZodString;
                    style: z.ZodOptional<z.ZodObject<{
                        align: z.ZodOptional<z.ZodEnum<{
                            left: "left";
                            center: "center";
                            right: "right";
                            justify: "justify";
                        }>>;
                        backgroundColor: z.ZodOptional<z.ZodString>;
                        textColor: z.ZodOptional<z.ZodString>;
                        padding: z.ZodOptional<z.ZodString>;
                        margin: z.ZodOptional<z.ZodString>;
                        borderRadius: z.ZodOptional<z.ZodString>;
                        className: z.ZodOptional<z.ZodString>;
                        style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strip>>;
                    meta: z.ZodOptional<z.ZodObject<{
                        version: z.ZodOptional<z.ZodNumber>;
                        description: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        aiGenerated: z.ZodOptional<z.ZodBoolean>;
                        sourcePrompt: z.ZodOptional<z.ZodString>;
                        lastEditor: z.ZodOptional<z.ZodString>;
                        lastEditedAt: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>;
                    type: z.ZodLiteral<"spacer">;
                    data: z.ZodObject<{
                        height: z.ZodDefault<z.ZodString>;
                    }, z.core.$strip>;
                }, z.core.$strip>, z.ZodObject<{
                    id: z.ZodString;
                    style: z.ZodOptional<z.ZodObject<{
                        align: z.ZodOptional<z.ZodEnum<{
                            left: "left";
                            center: "center";
                            right: "right";
                            justify: "justify";
                        }>>;
                        backgroundColor: z.ZodOptional<z.ZodString>;
                        textColor: z.ZodOptional<z.ZodString>;
                        padding: z.ZodOptional<z.ZodString>;
                        margin: z.ZodOptional<z.ZodString>;
                        borderRadius: z.ZodOptional<z.ZodString>;
                        className: z.ZodOptional<z.ZodString>;
                        style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strip>>;
                    meta: z.ZodOptional<z.ZodObject<{
                        version: z.ZodOptional<z.ZodNumber>;
                        description: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        aiGenerated: z.ZodOptional<z.ZodBoolean>;
                        sourcePrompt: z.ZodOptional<z.ZodString>;
                        lastEditor: z.ZodOptional<z.ZodString>;
                        lastEditedAt: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>;
                    type: z.ZodLiteral<"list">;
                    data: z.ZodObject<{
                        items: z.ZodArray<z.ZodObject<{
                            id: z.ZodString;
                            content: z.ZodString;
                            checked: z.ZodOptional<z.ZodBoolean>;
                        }, z.core.$strip>>;
                        variant: z.ZodDefault<z.ZodEnum<{
                            unordered: "unordered";
                            ordered: "ordered";
                            checklist: "checklist";
                        }>>;
                    }, z.core.$strip>;
                }, z.core.$strip>, z.ZodObject<{
                    id: z.ZodString;
                    style: z.ZodOptional<z.ZodObject<{
                        align: z.ZodOptional<z.ZodEnum<{
                            left: "left";
                            center: "center";
                            right: "right";
                            justify: "justify";
                        }>>;
                        backgroundColor: z.ZodOptional<z.ZodString>;
                        textColor: z.ZodOptional<z.ZodString>;
                        padding: z.ZodOptional<z.ZodString>;
                        margin: z.ZodOptional<z.ZodString>;
                        borderRadius: z.ZodOptional<z.ZodString>;
                        className: z.ZodOptional<z.ZodString>;
                        style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strip>>;
                    meta: z.ZodOptional<z.ZodObject<{
                        version: z.ZodOptional<z.ZodNumber>;
                        description: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        aiGenerated: z.ZodOptional<z.ZodBoolean>;
                        sourcePrompt: z.ZodOptional<z.ZodString>;
                        lastEditor: z.ZodOptional<z.ZodString>;
                        lastEditedAt: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>;
                    type: z.ZodLiteral<"table">;
                    data: z.ZodObject<{
                        headers: z.ZodArray<z.ZodObject<{
                            id: z.ZodString;
                            content: z.ZodString;
                        }, z.core.$strip>>;
                        rows: z.ZodArray<z.ZodObject<{
                            id: z.ZodString;
                            cells: z.ZodArray<z.ZodString>;
                        }, z.core.$strip>>;
                        caption: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>;
                }, z.core.$strip>, z.ZodObject<{
                    id: z.ZodString;
                    style: z.ZodOptional<z.ZodObject<{
                        align: z.ZodOptional<z.ZodEnum<{
                            left: "left";
                            center: "center";
                            right: "right";
                            justify: "justify";
                        }>>;
                        backgroundColor: z.ZodOptional<z.ZodString>;
                        textColor: z.ZodOptional<z.ZodString>;
                        padding: z.ZodOptional<z.ZodString>;
                        margin: z.ZodOptional<z.ZodString>;
                        borderRadius: z.ZodOptional<z.ZodString>;
                        className: z.ZodOptional<z.ZodString>;
                        style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strip>>;
                    meta: z.ZodOptional<z.ZodObject<{
                        version: z.ZodOptional<z.ZodNumber>;
                        description: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        aiGenerated: z.ZodOptional<z.ZodBoolean>;
                        sourcePrompt: z.ZodOptional<z.ZodString>;
                        lastEditor: z.ZodOptional<z.ZodString>;
                        lastEditedAt: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>;
                    type: z.ZodLiteral<"columns">;
                    data: z.ZodObject<{
                        columns: z.ZodArray<z.ZodObject<{
                            id: z.ZodString;
                            width: z.ZodOptional<z.ZodString>;
                            blocks: z.ZodArray<z.ZodLazy<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
                        }, z.core.$strip>>;
                        gap: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>;
                }, z.core.$strip>, z.ZodObject<{
                    id: z.ZodString;
                    style: z.ZodOptional<z.ZodObject<{
                        align: z.ZodOptional<z.ZodEnum<{
                            left: "left";
                            center: "center";
                            right: "right";
                            justify: "justify";
                        }>>;
                        backgroundColor: z.ZodOptional<z.ZodString>;
                        textColor: z.ZodOptional<z.ZodString>;
                        padding: z.ZodOptional<z.ZodString>;
                        margin: z.ZodOptional<z.ZodString>;
                        borderRadius: z.ZodOptional<z.ZodString>;
                        className: z.ZodOptional<z.ZodString>;
                        style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strip>>;
                    meta: z.ZodOptional<z.ZodObject<{
                        version: z.ZodOptional<z.ZodNumber>;
                        description: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        aiGenerated: z.ZodOptional<z.ZodBoolean>;
                        sourcePrompt: z.ZodOptional<z.ZodString>;
                        lastEditor: z.ZodOptional<z.ZodString>;
                        lastEditedAt: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>;
                    type: z.ZodLiteral<"grid">;
                    data: z.ZodObject<{
                        columns: z.ZodOptional<z.ZodNumber>;
                        gap: z.ZodOptional<z.ZodString>;
                        items: z.ZodArray<z.ZodObject<{
                            id: z.ZodString;
                            span: z.ZodOptional<z.ZodNumber>;
                            blocks: z.ZodArray<z.ZodLazy<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
                        }, z.core.$strip>>;
                    }, z.core.$strip>;
                }, z.core.$strip>, z.ZodObject<{
                    id: z.ZodString;
                    style: z.ZodOptional<z.ZodObject<{
                        align: z.ZodOptional<z.ZodEnum<{
                            left: "left";
                            center: "center";
                            right: "right";
                            justify: "justify";
                        }>>;
                        backgroundColor: z.ZodOptional<z.ZodString>;
                        textColor: z.ZodOptional<z.ZodString>;
                        padding: z.ZodOptional<z.ZodString>;
                        margin: z.ZodOptional<z.ZodString>;
                        borderRadius: z.ZodOptional<z.ZodString>;
                        className: z.ZodOptional<z.ZodString>;
                        style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strip>>;
                    meta: z.ZodOptional<z.ZodObject<{
                        version: z.ZodOptional<z.ZodNumber>;
                        description: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        aiGenerated: z.ZodOptional<z.ZodBoolean>;
                        sourcePrompt: z.ZodOptional<z.ZodString>;
                        lastEditor: z.ZodOptional<z.ZodString>;
                        lastEditedAt: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>;
                    type: z.ZodLiteral<"accordion">;
                    data: z.ZodObject<{
                        items: z.ZodArray<z.ZodObject<{
                            id: z.ZodString;
                            title: z.ZodString;
                            blocks: z.ZodArray<z.ZodLazy<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
                            defaultOpen: z.ZodOptional<z.ZodBoolean>;
                        }, z.core.$strip>>;
                        allowMultiple: z.ZodOptional<z.ZodBoolean>;
                    }, z.core.$strip>;
                }, z.core.$strip>, z.ZodObject<{
                    id: z.ZodString;
                    style: z.ZodOptional<z.ZodObject<{
                        align: z.ZodOptional<z.ZodEnum<{
                            left: "left";
                            center: "center";
                            right: "right";
                            justify: "justify";
                        }>>;
                        backgroundColor: z.ZodOptional<z.ZodString>;
                        textColor: z.ZodOptional<z.ZodString>;
                        padding: z.ZodOptional<z.ZodString>;
                        margin: z.ZodOptional<z.ZodString>;
                        borderRadius: z.ZodOptional<z.ZodString>;
                        className: z.ZodOptional<z.ZodString>;
                        style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strip>>;
                    meta: z.ZodOptional<z.ZodObject<{
                        version: z.ZodOptional<z.ZodNumber>;
                        description: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        aiGenerated: z.ZodOptional<z.ZodBoolean>;
                        sourcePrompt: z.ZodOptional<z.ZodString>;
                        lastEditor: z.ZodOptional<z.ZodString>;
                        lastEditedAt: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>;
                    type: z.ZodLiteral<"tabs">;
                    data: z.ZodObject<{
                        tabs: z.ZodArray<z.ZodObject<{
                            id: z.ZodString;
                            label: z.ZodString;
                            blocks: z.ZodArray<z.ZodLazy<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
                        }, z.core.$strip>>;
                        defaultTab: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>;
                }, z.core.$strip>, z.ZodObject<{
                    id: z.ZodString;
                    style: z.ZodOptional<z.ZodObject<{
                        align: z.ZodOptional<z.ZodEnum<{
                            left: "left";
                            center: "center";
                            right: "right";
                            justify: "justify";
                        }>>;
                        backgroundColor: z.ZodOptional<z.ZodString>;
                        textColor: z.ZodOptional<z.ZodString>;
                        padding: z.ZodOptional<z.ZodString>;
                        margin: z.ZodOptional<z.ZodString>;
                        borderRadius: z.ZodOptional<z.ZodString>;
                        className: z.ZodOptional<z.ZodString>;
                        style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strip>>;
                    meta: z.ZodOptional<z.ZodObject<{
                        version: z.ZodOptional<z.ZodNumber>;
                        description: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        aiGenerated: z.ZodOptional<z.ZodBoolean>;
                        sourcePrompt: z.ZodOptional<z.ZodString>;
                        lastEditor: z.ZodOptional<z.ZodString>;
                        lastEditedAt: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>;
                    type: z.ZodLiteral<"form">;
                    data: z.ZodObject<{
                        action: z.ZodOptional<z.ZodURL>;
                        method: z.ZodDefault<z.ZodEnum<{
                            GET: "GET";
                            POST: "POST";
                        }>>;
                        fields: z.ZodArray<z.ZodObject<{
                            id: z.ZodString;
                            type: z.ZodEnum<{
                                file: "file";
                                text: "text";
                                email: "email";
                                password: "password";
                                textarea: "textarea";
                                select: "select";
                                checkbox: "checkbox";
                                radio: "radio";
                            }>;
                            name: z.ZodString;
                            label: z.ZodString;
                            placeholder: z.ZodOptional<z.ZodString>;
                            required: z.ZodDefault<z.ZodBoolean>;
                            options: z.ZodOptional<z.ZodArray<z.ZodObject<{
                                value: z.ZodString;
                                label: z.ZodString;
                            }, z.core.$strip>>>;
                        }, z.core.$strip>>;
                        submitText: z.ZodDefault<z.ZodString>;
                    }, z.core.$strip>;
                }, z.core.$strip>, z.ZodObject<{
                    id: z.ZodString;
                    style: z.ZodOptional<z.ZodObject<{
                        align: z.ZodOptional<z.ZodEnum<{
                            left: "left";
                            center: "center";
                            right: "right";
                            justify: "justify";
                        }>>;
                        backgroundColor: z.ZodOptional<z.ZodString>;
                        textColor: z.ZodOptional<z.ZodString>;
                        padding: z.ZodOptional<z.ZodString>;
                        margin: z.ZodOptional<z.ZodString>;
                        borderRadius: z.ZodOptional<z.ZodString>;
                        className: z.ZodOptional<z.ZodString>;
                        style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strip>>;
                    meta: z.ZodOptional<z.ZodObject<{
                        version: z.ZodOptional<z.ZodNumber>;
                        description: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        aiGenerated: z.ZodOptional<z.ZodBoolean>;
                        sourcePrompt: z.ZodOptional<z.ZodString>;
                        lastEditor: z.ZodOptional<z.ZodString>;
                        lastEditedAt: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>;
                    type: z.ZodLiteral<"html">;
                    data: z.ZodObject<{
                        html: z.ZodString;
                        sanitize: z.ZodDefault<z.ZodBoolean>;
                    }, z.core.$strip>;
                }, z.core.$strip>, z.ZodObject<{
                    id: z.ZodString;
                    style: z.ZodOptional<z.ZodObject<{
                        align: z.ZodOptional<z.ZodEnum<{
                            left: "left";
                            center: "center";
                            right: "right";
                            justify: "justify";
                        }>>;
                        backgroundColor: z.ZodOptional<z.ZodString>;
                        textColor: z.ZodOptional<z.ZodString>;
                        padding: z.ZodOptional<z.ZodString>;
                        margin: z.ZodOptional<z.ZodString>;
                        borderRadius: z.ZodOptional<z.ZodString>;
                        className: z.ZodOptional<z.ZodString>;
                        style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strip>>;
                    meta: z.ZodOptional<z.ZodObject<{
                        version: z.ZodOptional<z.ZodNumber>;
                        description: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        aiGenerated: z.ZodOptional<z.ZodBoolean>;
                        sourcePrompt: z.ZodOptional<z.ZodString>;
                        lastEditor: z.ZodOptional<z.ZodString>;
                        lastEditedAt: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>;
                    type: z.ZodLiteral<"component">;
                    data: z.ZodObject<{
                        componentId: z.ZodString;
                        props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                        source: z.ZodDefault<z.ZodEnum<{
                            custom: "custom";
                            builtin: "builtin";
                            marketplace: "marketplace";
                        }>>;
                    }, z.core.$strip>;
                }, z.core.$strip>]>>;
                seo: z.ZodOptional<z.ZodObject<{
                    title: z.ZodOptional<z.ZodString>;
                    description: z.ZodOptional<z.ZodString>;
                    image: z.ZodOptional<z.ZodURL>;
                    noIndex: z.ZodDefault<z.ZodBoolean>;
                    canonicalUrl: z.ZodOptional<z.ZodURL>;
                    ogType: z.ZodDefault<z.ZodEnum<{
                        website: "website";
                        article: "article";
                        product: "product";
                    }>>;
                    structuredData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                }, z.core.$strip>>;
                parentId: z.ZodOptional<z.ZodString>;
                order: z.ZodDefault<z.ZodNumber>;
                scheduledAt: z.ZodOptional<z.ZodString>;
                publishedAt: z.ZodOptional<z.ZodString>;
                templateId: z.ZodOptional<z.ZodString>;
                lock: z.ZodOptional<z.ZodObject<{
                    userId: z.ZodString;
                    lockedAt: z.ZodString;
                    expiresAt: z.ZodString;
                    reason: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                blockCount: z.ZodDefault<z.ZodNumber>;
                wordCount: z.ZodDefault<z.ZodNumber>;
                lastEditorId: z.ZodOptional<z.ZodString>;
            }, z.core.$strip>;
            readonly pageLock: z.ZodObject<{
                userId: z.ZodString;
                lockedAt: z.ZodString;
                expiresAt: z.ZodString;
                reason: z.ZodOptional<z.ZodString>;
            }, z.core.$strip>;
            readonly session: z.ZodObject<{
                id: z.ZodString;
                schemaVersion: z.ZodDefault<z.ZodString>;
                userId: z.ZodString;
                tokenHash: z.ZodString;
                expiresAt: z.ZodDate;
                userAgent: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                ipAddress: z.ZodDefault<z.ZodNullable<z.ZodString>>;
                persistent: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
                lastActivityAt: z.ZodDate;
                createdAt: z.ZodDate;
            }, z.core.$strip>;
            readonly site: z.ZodObject<{
                id: z.ZodString;
                version: z.ZodDefault<z.ZodNumber>;
                human: z.ZodOptional<z.ZodObject<{
                    label: z.ZodString;
                    description: z.ZodOptional<z.ZodString>;
                    icon: z.ZodOptional<z.ZodString>;
                    color: z.ZodOptional<z.ZodString>;
                    preview: z.ZodOptional<z.ZodString>;
                    suggestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    helpText: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                agent: z.ZodOptional<z.ZodObject<{
                    semanticType: z.ZodString;
                    embedding: z.ZodOptional<z.ZodObject<{
                        model: z.ZodString;
                        vector: z.ZodArray<z.ZodNumber>;
                        dimension: z.ZodNumber;
                        generatedAt: z.ZodString;
                    }, z.core.$strip>>;
                    constraints: z.ZodOptional<z.ZodArray<z.ZodObject<{
                        type: z.ZodEnum<{
                            custom: "custom";
                            readonly: "readonly";
                            pattern: "pattern";
                            required: "required";
                            immutable: "immutable";
                            range: "range";
                            dependency: "dependency";
                            capability: "capability";
                            permission: "permission";
                        }>;
                        field: z.ZodOptional<z.ZodString>;
                        params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                        message: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>>;
                    actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
                        name: z.ZodString;
                        description: z.ZodString;
                        params: z.ZodRecord<z.ZodString, z.ZodObject<{
                            type: z.ZodString;
                            required: z.ZodOptional<z.ZodBoolean>;
                            description: z.ZodOptional<z.ZodString>;
                            default: z.ZodOptional<z.ZodUnknown>;
                            enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        }, z.core.$strip>>;
                        returns: z.ZodOptional<z.ZodObject<{
                            type: z.ZodString;
                            description: z.ZodOptional<z.ZodString>;
                        }, z.core.$strip>>;
                        requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        sideEffects: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        destructive: z.ZodOptional<z.ZodBoolean>;
                    }, z.core.$strip>>>;
                    relations: z.ZodOptional<z.ZodArray<z.ZodObject<{
                        type: z.ZodEnum<{
                            dependency: "dependency";
                            parent: "parent";
                            child: "child";
                            sibling: "sibling";
                            reference: "reference";
                            related: "related";
                        }>;
                        targetId: z.ZodString;
                        targetType: z.ZodString;
                        weight: z.ZodDefault<z.ZodNumber>;
                        metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                    }, z.core.$strip>>>;
                    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                    keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    priority: z.ZodOptional<z.ZodNumber>;
                }, z.core.$strip>>;
                createdAt: z.ZodString;
                updatedAt: z.ZodString;
                schemaVersion: z.ZodDefault<z.ZodNumber>;
                name: z.ZodString;
                slug: z.ZodString;
                description: z.ZodOptional<z.ZodString>;
                ownerId: z.ZodString;
                status: z.ZodEnum<{
                    draft: "draft";
                    published: "published";
                    archived: "archived";
                    maintenance: "maintenance";
                }>;
                settings: z.ZodObject<{
                    domain: z.ZodOptional<z.ZodString>;
                    subdomain: z.ZodOptional<z.ZodString>;
                    language: z.ZodDefault<z.ZodString>;
                    supportedLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    timezone: z.ZodDefault<z.ZodString>;
                    seo: z.ZodOptional<z.ZodObject<{
                        title: z.ZodOptional<z.ZodString>;
                        description: z.ZodOptional<z.ZodString>;
                        image: z.ZodOptional<z.ZodURL>;
                        twitterHandle: z.ZodOptional<z.ZodString>;
                        facebookAppId: z.ZodOptional<z.ZodString>;
                        googleSiteVerification: z.ZodOptional<z.ZodString>;
                        robots: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>;
                    analyticsId: z.ZodOptional<z.ZodString>;
                    allowAgentEdits: z.ZodDefault<z.ZodBoolean>;
                    agentRestrictions: z.ZodOptional<z.ZodObject<{
                        canPublish: z.ZodDefault<z.ZodBoolean>;
                        canDeletePages: z.ZodDefault<z.ZodBoolean>;
                        canModifySettings: z.ZodDefault<z.ZodBoolean>;
                        protectedPages: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    }, z.core.$strip>>;
                    notFoundPageId: z.ZodOptional<z.ZodString>;
                    faviconUrl: z.ZodOptional<z.ZodURL>;
                    socialLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
                        platform: z.ZodString;
                        url: z.ZodURL;
                    }, z.core.$strip>>>;
                }, z.core.$strip>;
                collaborators: z.ZodDefault<z.ZodArray<z.ZodObject<{
                    userId: z.ZodString;
                    role: z.ZodEnum<{
                        admin: "admin";
                        editor: "editor";
                        viewer: "viewer";
                    }>;
                    addedAt: z.ZodString;
                    addedBy: z.ZodString;
                }, z.core.$strip>>>;
                templateId: z.ZodOptional<z.ZodString>;
                theme: z.ZodOptional<z.ZodObject<{
                    primaryColor: z.ZodOptional<z.ZodString>;
                    secondaryColor: z.ZodOptional<z.ZodString>;
                    accentColor: z.ZodOptional<z.ZodString>;
                    backgroundColor: z.ZodOptional<z.ZodString>;
                    textColor: z.ZodOptional<z.ZodString>;
                    fontFamily: z.ZodOptional<z.ZodString>;
                    headingFontFamily: z.ZodOptional<z.ZodString>;
                    borderRadius: z.ZodDefault<z.ZodEnum<{
                        sm: "sm";
                        md: "md";
                        lg: "lg";
                        none: "none";
                        full: "full";
                    }>>;
                    mode: z.ZodDefault<z.ZodEnum<{
                        light: "light";
                        dark: "dark";
                        auto: "auto";
                    }>>;
                    customVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strip>>;
                pageCount: z.ZodDefault<z.ZodNumber>;
                publishedAt: z.ZodOptional<z.ZodString>;
            }, z.core.$strip>;
        };
    };
    readonly generated: {
        readonly primary: "usersInsert";
        readonly description: "Drizzle-zod-generated Insert/Select schemas reflecting raw DB columns. Sample of the most-used tables (full set is 86+ schemas).";
        readonly schemas: {
            readonly accountsSelect: import("drizzle-zod").BuildSchema<"select", {
                id: import("drizzle-orm/pg-core").PgColumn<{
                    name: "id";
                    tableName: "accounts";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: true;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                name: import("drizzle-orm/pg-core").PgColumn<{
                    name: "name";
                    tableName: "accounts";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                slug: import("drizzle-orm/pg-core").PgColumn<{
                    name: "slug";
                    tableName: "accounts";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                status: import("drizzle-orm/pg-core").PgColumn<{
                    name: "status";
                    tableName: "accounts";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                createdAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "created_at";
                    tableName: "accounts";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                updatedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "updated_at";
                    tableName: "accounts";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
            }, undefined, undefined>;
            readonly accountsInsert: import("drizzle-zod").BuildSchema<"insert", {
                id: import("drizzle-orm/pg-core").PgColumn<{
                    name: "id";
                    tableName: "accounts";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: true;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                name: import("drizzle-orm/pg-core").PgColumn<{
                    name: "name";
                    tableName: "accounts";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                slug: import("drizzle-orm/pg-core").PgColumn<{
                    name: "slug";
                    tableName: "accounts";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                status: import("drizzle-orm/pg-core").PgColumn<{
                    name: "status";
                    tableName: "accounts";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                createdAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "created_at";
                    tableName: "accounts";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                updatedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "updated_at";
                    tableName: "accounts";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
            }, undefined, undefined>;
            readonly agentContextsInsert: import("drizzle-zod").BuildSchema<"insert", {
                id: import("drizzle-orm/pg-core").PgColumn<{
                    name: "id";
                    tableName: "agent_contexts";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: true;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                version: import("drizzle-orm/pg-core").PgColumn<{
                    name: "version";
                    tableName: "agent_contexts";
                    dataType: "number";
                    columnType: "PgInteger";
                    data: number;
                    driverParam: string | number;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                sessionId: import("drizzle-orm/pg-core").PgColumn<{
                    name: "session_id";
                    tableName: "agent_contexts";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                agentId: import("drizzle-orm/pg-core").PgColumn<{
                    name: "agent_id";
                    tableName: "agent_contexts";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                context: import("drizzle-orm/pg-core").PgColumn<{
                    name: "context";
                    tableName: "agent_contexts";
                    dataType: "json";
                    columnType: "PgJsonb";
                    data: unknown;
                    driverParam: unknown;
                    notNull: false;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                priority: import("drizzle-orm/pg-core").PgColumn<{
                    name: "priority";
                    tableName: "agent_contexts";
                    dataType: "number";
                    columnType: "PgReal";
                    data: number;
                    driverParam: string | number;
                    notNull: false;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                embedding: import("drizzle-orm/pg-core").PgColumn<{
                    name: "embedding";
                    tableName: "agent_contexts";
                    dataType: "custom";
                    columnType: "PgCustomColumn";
                    data: number[];
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {
                    pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
                }>;
                createdAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "created_at";
                    tableName: "agent_contexts";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                updatedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "updated_at";
                    tableName: "agent_contexts";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
            }, undefined, undefined>;
            readonly agentMemoriesInsert: import("drizzle-zod").BuildSchema<"insert", {
                id: import("drizzle-orm/pg-core").PgColumn<{
                    name: "id";
                    tableName: "agent_memories";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: true;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                version: import("drizzle-orm/pg-core").PgColumn<{
                    name: "version";
                    tableName: "agent_memories";
                    dataType: "number";
                    columnType: "PgInteger";
                    data: number;
                    driverParam: string | number;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                content: import("drizzle-orm/pg-core").PgColumn<{
                    name: "content";
                    tableName: "agent_memories";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                type: import("drizzle-orm/pg-core").PgColumn<{
                    name: "type";
                    tableName: "agent_memories";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                source: import("drizzle-orm/pg-core").PgColumn<{
                    name: "source";
                    tableName: "agent_memories";
                    dataType: "json";
                    columnType: "PgJsonb";
                    data: unknown;
                    driverParam: unknown;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                embedding: import("drizzle-orm/pg-core").PgColumn<{
                    name: "embedding";
                    tableName: "agent_memories";
                    dataType: "custom";
                    columnType: "PgCustomColumn";
                    data: number[];
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {
                    pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
                }>;
                embeddingMetadata: import("drizzle-orm/pg-core").PgColumn<{
                    name: "embedding_metadata";
                    tableName: "agent_memories";
                    dataType: "json";
                    columnType: "PgJsonb";
                    data: unknown;
                    driverParam: unknown;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                metadata: import("drizzle-orm/pg-core").PgColumn<{
                    name: "metadata";
                    tableName: "agent_memories";
                    dataType: "json";
                    columnType: "PgJsonb";
                    data: unknown;
                    driverParam: unknown;
                    notNull: false;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                accessCount: import("drizzle-orm/pg-core").PgColumn<{
                    name: "access_count";
                    tableName: "agent_memories";
                    dataType: "number";
                    columnType: "PgInteger";
                    data: number;
                    driverParam: string | number;
                    notNull: false;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                accessedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "accessed_at";
                    tableName: "agent_memories";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                verified: import("drizzle-orm/pg-core").PgColumn<{
                    name: "verified";
                    tableName: "agent_memories";
                    dataType: "boolean";
                    columnType: "PgBoolean";
                    data: boolean;
                    driverParam: boolean;
                    notNull: false;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                verifiedBy: import("drizzle-orm/pg-core").PgColumn<{
                    name: "verified_by";
                    tableName: "agent_memories";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                verifiedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "verified_at";
                    tableName: "agent_memories";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                siteId: import("drizzle-orm/pg-core").PgColumn<{
                    name: "site_id";
                    tableName: "agent_memories";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                agentId: import("drizzle-orm/pg-core").PgColumn<{
                    name: "agent_id";
                    tableName: "agent_memories";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                scope: import("drizzle-orm/pg-core").PgColumn<{
                    name: "scope";
                    tableName: "agent_memories";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                sessionScope: import("drizzle-orm/pg-core").PgColumn<{
                    name: "session_scope";
                    tableName: "agent_memories";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                sourceFacts: import("drizzle-orm/pg-core").PgColumn<{
                    name: "source_facts";
                    tableName: "agent_memories";
                    dataType: "json";
                    columnType: "PgJsonb";
                    data: string[];
                    driverParam: unknown;
                    notNull: false;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {
                    $type: string[];
                }>;
                reconciledAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "reconciled_at";
                    tableName: "agent_memories";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                createdAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "created_at";
                    tableName: "agent_memories";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                expiresAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "expires_at";
                    tableName: "agent_memories";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
            }, undefined, undefined>;
            readonly pagesInsert: import("drizzle-zod").BuildSchema<"insert", {
                id: import("drizzle-orm/pg-core").PgColumn<{
                    name: "id";
                    tableName: "pages";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: true;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                schemaVersion: import("drizzle-orm/pg-core").PgColumn<{
                    name: "schema_version";
                    tableName: "pages";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                version: import("drizzle-orm/pg-core").PgColumn<{
                    name: "version";
                    tableName: "pages";
                    dataType: "number";
                    columnType: "PgInteger";
                    data: number;
                    driverParam: string | number;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                siteId: import("drizzle-orm/pg-core").PgColumn<{
                    name: "site_id";
                    tableName: "pages";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                parentId: import("drizzle-orm/pg-core").PgColumn<{
                    name: "parent_id";
                    tableName: "pages";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                templateId: import("drizzle-orm/pg-core").PgColumn<{
                    name: "template_id";
                    tableName: "pages";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                title: import("drizzle-orm/pg-core").PgColumn<{
                    name: "title";
                    tableName: "pages";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                slug: import("drizzle-orm/pg-core").PgColumn<{
                    name: "slug";
                    tableName: "pages";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                path: import("drizzle-orm/pg-core").PgColumn<{
                    name: "path";
                    tableName: "pages";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                status: import("drizzle-orm/pg-core").PgColumn<{
                    name: "status";
                    tableName: "pages";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                blocks: import("drizzle-orm/pg-core").PgColumn<{
                    name: "blocks";
                    tableName: "pages";
                    dataType: "json";
                    columnType: "PgJsonb";
                    data: unknown[];
                    driverParam: unknown;
                    notNull: false;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {
                    $type: unknown[];
                }>;
                seo: import("drizzle-orm/pg-core").PgColumn<{
                    name: "seo";
                    tableName: "pages";
                    dataType: "json";
                    columnType: "PgJsonb";
                    data: unknown;
                    driverParam: unknown;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                blockCount: import("drizzle-orm/pg-core").PgColumn<{
                    name: "block_count";
                    tableName: "pages";
                    dataType: "number";
                    columnType: "PgInteger";
                    data: number;
                    driverParam: string | number;
                    notNull: false;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                wordCount: import("drizzle-orm/pg-core").PgColumn<{
                    name: "word_count";
                    tableName: "pages";
                    dataType: "number";
                    columnType: "PgInteger";
                    data: number;
                    driverParam: string | number;
                    notNull: false;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                lock: import("drizzle-orm/pg-core").PgColumn<{
                    name: "lock";
                    tableName: "pages";
                    dataType: "json";
                    columnType: "PgJsonb";
                    data: unknown;
                    driverParam: unknown;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                scheduledAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "scheduled_at";
                    tableName: "pages";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                createdAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "created_at";
                    tableName: "pages";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                updatedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "updated_at";
                    tableName: "pages";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                publishedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "published_at";
                    tableName: "pages";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                deletedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "deleted_at";
                    tableName: "pages";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
            }, undefined, undefined>;
            readonly sessionsInsert: import("drizzle-zod").BuildSchema<"insert", {
                id: import("drizzle-orm/pg-core").PgColumn<{
                    name: "id";
                    tableName: "sessions";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: true;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                schemaVersion: import("drizzle-orm/pg-core").PgColumn<{
                    name: "schema_version";
                    tableName: "sessions";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                userId: import("drizzle-orm/pg-core").PgColumn<{
                    name: "user_id";
                    tableName: "sessions";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                tokenHash: import("drizzle-orm/pg-core").PgColumn<{
                    name: "token_hash";
                    tableName: "sessions";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                userAgent: import("drizzle-orm/pg-core").PgColumn<{
                    name: "user_agent";
                    tableName: "sessions";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                ipAddress: import("drizzle-orm/pg-core").PgColumn<{
                    name: "ip_address";
                    tableName: "sessions";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                persistent: import("drizzle-orm/pg-core").PgColumn<{
                    name: "persistent";
                    tableName: "sessions";
                    dataType: "boolean";
                    columnType: "PgBoolean";
                    data: boolean;
                    driverParam: boolean;
                    notNull: false;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                metadata: import("drizzle-orm/pg-core").PgColumn<{
                    name: "metadata";
                    tableName: "sessions";
                    dataType: "json";
                    columnType: "PgJsonb";
                    data: Record<string, unknown>;
                    driverParam: unknown;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {
                    $type: Record<string, unknown>;
                }>;
                lastActivityAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "last_activity_at";
                    tableName: "sessions";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                createdAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "created_at";
                    tableName: "sessions";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                expiresAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "expires_at";
                    tableName: "sessions";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                deletedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "deleted_at";
                    tableName: "sessions";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
            }, undefined, undefined>;
            readonly sitesInsert: import("drizzle-zod").BuildSchema<"insert", {
                id: import("drizzle-orm/pg-core").PgColumn<{
                    name: "id";
                    tableName: "sites";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: true;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                schemaVersion: import("drizzle-orm/pg-core").PgColumn<{
                    name: "schema_version";
                    tableName: "sites";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                version: import("drizzle-orm/pg-core").PgColumn<{
                    name: "version";
                    tableName: "sites";
                    dataType: "number";
                    columnType: "PgInteger";
                    data: number;
                    driverParam: string | number;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                ownerId: import("drizzle-orm/pg-core").PgColumn<{
                    name: "owner_id";
                    tableName: "sites";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                name: import("drizzle-orm/pg-core").PgColumn<{
                    name: "name";
                    tableName: "sites";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                slug: import("drizzle-orm/pg-core").PgColumn<{
                    name: "slug";
                    tableName: "sites";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                description: import("drizzle-orm/pg-core").PgColumn<{
                    name: "description";
                    tableName: "sites";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                status: import("drizzle-orm/pg-core").PgColumn<{
                    name: "status";
                    tableName: "sites";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                theme: import("drizzle-orm/pg-core").PgColumn<{
                    name: "theme";
                    tableName: "sites";
                    dataType: "json";
                    columnType: "PgJsonb";
                    data: unknown;
                    driverParam: unknown;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                settings: import("drizzle-orm/pg-core").PgColumn<{
                    name: "settings";
                    tableName: "sites";
                    dataType: "json";
                    columnType: "PgJsonb";
                    data: unknown;
                    driverParam: unknown;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                pageCount: import("drizzle-orm/pg-core").PgColumn<{
                    name: "page_count";
                    tableName: "sites";
                    dataType: "number";
                    columnType: "PgInteger";
                    data: number;
                    driverParam: string | number;
                    notNull: false;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                favicon: import("drizzle-orm/pg-core").PgColumn<{
                    name: "favicon";
                    tableName: "sites";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                createdAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "created_at";
                    tableName: "sites";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                updatedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "updated_at";
                    tableName: "sites";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                publishedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "published_at";
                    tableName: "sites";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                deletedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "deleted_at";
                    tableName: "sites";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
            }, undefined, undefined>;
            readonly usersSelect: import("drizzle-zod").BuildSchema<"select", {
                id: import("drizzle-orm/pg-core").PgColumn<{
                    name: "id";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: true;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                schemaVersion: import("drizzle-orm/pg-core").PgColumn<{
                    name: "schema_version";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                type: import("drizzle-orm/pg-core").PgColumn<{
                    name: "type";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                name: import("drizzle-orm/pg-core").PgColumn<{
                    name: "name";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                email: import("drizzle-orm/pg-core").PgColumn<{
                    name: "email";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                avatarUrl: import("drizzle-orm/pg-core").PgColumn<{
                    name: "avatar_url";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                password: import("drizzle-orm/pg-core").PgColumn<{
                    name: "password";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                mustRotatePassword: import("drizzle-orm/pg-core").PgColumn<{
                    name: "must_rotate_password";
                    tableName: "users";
                    dataType: "boolean";
                    columnType: "PgBoolean";
                    data: boolean;
                    driverParam: boolean;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                role: import("drizzle-orm/pg-core").PgColumn<{
                    name: "role";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                status: import("drizzle-orm/pg-core").PgColumn<{
                    name: "status";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                agentModel: import("drizzle-orm/pg-core").PgColumn<{
                    name: "agent_model";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                agentCapabilities: import("drizzle-orm/pg-core").PgColumn<{
                    name: "agent_capabilities";
                    tableName: "users";
                    dataType: "json";
                    columnType: "PgJsonb";
                    data: string[];
                    driverParam: unknown;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {
                    $type: string[];
                }>;
                agentConfig: import("drizzle-orm/pg-core").PgColumn<{
                    name: "agent_config";
                    tableName: "users";
                    dataType: "json";
                    columnType: "PgJsonb";
                    data: unknown;
                    driverParam: unknown;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                emailVerified: import("drizzle-orm/pg-core").PgColumn<{
                    name: "email_verified";
                    tableName: "users";
                    dataType: "boolean";
                    columnType: "PgBoolean";
                    data: boolean;
                    driverParam: boolean;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                emailVerificationToken: import("drizzle-orm/pg-core").PgColumn<{
                    name: "email_verification_token";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                emailVerificationTokenExpiresAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "email_verification_token_expires_at";
                    tableName: "users";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                emailVerifiedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "email_verified_at";
                    tableName: "users";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                tosAcceptedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "tos_accepted_at";
                    tableName: "users";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                tosVersion: import("drizzle-orm/pg-core").PgColumn<{
                    name: "tos_version";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                stripeCustomerId: import("drizzle-orm/pg-core").PgColumn<{
                    name: "stripe_customer_id";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                mfaEnabled: import("drizzle-orm/pg-core").PgColumn<{
                    name: "mfa_enabled";
                    tableName: "users";
                    dataType: "boolean";
                    columnType: "PgBoolean";
                    data: boolean;
                    driverParam: boolean;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                mfaSecret: import("drizzle-orm/pg-core").PgColumn<{
                    name: "mfa_secret";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                mfaBackupCodes: import("drizzle-orm/pg-core").PgColumn<{
                    name: "mfa_backup_codes";
                    tableName: "users";
                    dataType: "json";
                    columnType: "PgJsonb";
                    data: string[];
                    driverParam: unknown;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {
                    $type: string[];
                }>;
                mfaVerifiedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "mfa_verified_at";
                    tableName: "users";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                mfaLastUsedCounter: import("drizzle-orm/pg-core").PgColumn<{
                    name: "mfa_last_used_counter";
                    tableName: "users";
                    dataType: "number";
                    columnType: "PgInteger";
                    data: number;
                    driverParam: string | number;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                sshKeyFingerprint: import("drizzle-orm/pg-core").PgColumn<{
                    name: "ssh_key_fingerprint";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                devkitProfile: import("drizzle-orm/pg-core").PgColumn<{
                    name: "devkit_profile";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                preferences: import("drizzle-orm/pg-core").PgColumn<{
                    name: "preferences";
                    tableName: "users";
                    dataType: "json";
                    columnType: "PgJsonb";
                    data: unknown;
                    driverParam: unknown;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                createdAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "created_at";
                    tableName: "users";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                updatedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "updated_at";
                    tableName: "users";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                lastActiveAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "last_active_at";
                    tableName: "users";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                deletedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "deleted_at";
                    tableName: "users";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                anonymizedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "anonymized_at";
                    tableName: "users";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                stripeDeletionStatus: import("drizzle-orm/pg-core").PgColumn<{
                    name: "stripe_deletion_status";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                stripeDeletionAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "stripe_deletion_at";
                    tableName: "users";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                _json: import("drizzle-orm/pg-core").PgColumn<{
                    name: "_json";
                    tableName: "users";
                    dataType: "json";
                    columnType: "PgJsonb";
                    data: unknown;
                    driverParam: unknown;
                    notNull: false;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
            }, undefined, undefined>;
            readonly usersInsert: import("drizzle-zod").BuildSchema<"insert", {
                id: import("drizzle-orm/pg-core").PgColumn<{
                    name: "id";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: true;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                schemaVersion: import("drizzle-orm/pg-core").PgColumn<{
                    name: "schema_version";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                type: import("drizzle-orm/pg-core").PgColumn<{
                    name: "type";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                name: import("drizzle-orm/pg-core").PgColumn<{
                    name: "name";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                email: import("drizzle-orm/pg-core").PgColumn<{
                    name: "email";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                avatarUrl: import("drizzle-orm/pg-core").PgColumn<{
                    name: "avatar_url";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                password: import("drizzle-orm/pg-core").PgColumn<{
                    name: "password";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                mustRotatePassword: import("drizzle-orm/pg-core").PgColumn<{
                    name: "must_rotate_password";
                    tableName: "users";
                    dataType: "boolean";
                    columnType: "PgBoolean";
                    data: boolean;
                    driverParam: boolean;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                role: import("drizzle-orm/pg-core").PgColumn<{
                    name: "role";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                status: import("drizzle-orm/pg-core").PgColumn<{
                    name: "status";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                agentModel: import("drizzle-orm/pg-core").PgColumn<{
                    name: "agent_model";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                agentCapabilities: import("drizzle-orm/pg-core").PgColumn<{
                    name: "agent_capabilities";
                    tableName: "users";
                    dataType: "json";
                    columnType: "PgJsonb";
                    data: string[];
                    driverParam: unknown;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {
                    $type: string[];
                }>;
                agentConfig: import("drizzle-orm/pg-core").PgColumn<{
                    name: "agent_config";
                    tableName: "users";
                    dataType: "json";
                    columnType: "PgJsonb";
                    data: unknown;
                    driverParam: unknown;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                emailVerified: import("drizzle-orm/pg-core").PgColumn<{
                    name: "email_verified";
                    tableName: "users";
                    dataType: "boolean";
                    columnType: "PgBoolean";
                    data: boolean;
                    driverParam: boolean;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                emailVerificationToken: import("drizzle-orm/pg-core").PgColumn<{
                    name: "email_verification_token";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                emailVerificationTokenExpiresAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "email_verification_token_expires_at";
                    tableName: "users";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                emailVerifiedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "email_verified_at";
                    tableName: "users";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                tosAcceptedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "tos_accepted_at";
                    tableName: "users";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                tosVersion: import("drizzle-orm/pg-core").PgColumn<{
                    name: "tos_version";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                stripeCustomerId: import("drizzle-orm/pg-core").PgColumn<{
                    name: "stripe_customer_id";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                mfaEnabled: import("drizzle-orm/pg-core").PgColumn<{
                    name: "mfa_enabled";
                    tableName: "users";
                    dataType: "boolean";
                    columnType: "PgBoolean";
                    data: boolean;
                    driverParam: boolean;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                mfaSecret: import("drizzle-orm/pg-core").PgColumn<{
                    name: "mfa_secret";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                mfaBackupCodes: import("drizzle-orm/pg-core").PgColumn<{
                    name: "mfa_backup_codes";
                    tableName: "users";
                    dataType: "json";
                    columnType: "PgJsonb";
                    data: string[];
                    driverParam: unknown;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {
                    $type: string[];
                }>;
                mfaVerifiedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "mfa_verified_at";
                    tableName: "users";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                mfaLastUsedCounter: import("drizzle-orm/pg-core").PgColumn<{
                    name: "mfa_last_used_counter";
                    tableName: "users";
                    dataType: "number";
                    columnType: "PgInteger";
                    data: number;
                    driverParam: string | number;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                sshKeyFingerprint: import("drizzle-orm/pg-core").PgColumn<{
                    name: "ssh_key_fingerprint";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                devkitProfile: import("drizzle-orm/pg-core").PgColumn<{
                    name: "devkit_profile";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                preferences: import("drizzle-orm/pg-core").PgColumn<{
                    name: "preferences";
                    tableName: "users";
                    dataType: "json";
                    columnType: "PgJsonb";
                    data: unknown;
                    driverParam: unknown;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                createdAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "created_at";
                    tableName: "users";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                updatedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "updated_at";
                    tableName: "users";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: true;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                lastActiveAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "last_active_at";
                    tableName: "users";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                deletedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "deleted_at";
                    tableName: "users";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                anonymizedAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "anonymized_at";
                    tableName: "users";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                stripeDeletionStatus: import("drizzle-orm/pg-core").PgColumn<{
                    name: "stripe_deletion_status";
                    tableName: "users";
                    dataType: "string";
                    columnType: "PgText";
                    data: string;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: [string, ...string[]];
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                stripeDeletionAt: import("drizzle-orm/pg-core").PgColumn<{
                    name: "stripe_deletion_at";
                    tableName: "users";
                    dataType: "date";
                    columnType: "PgTimestamp";
                    data: Date;
                    driverParam: string;
                    notNull: false;
                    hasDefault: false;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
                _json: import("drizzle-orm/pg-core").PgColumn<{
                    name: "_json";
                    tableName: "users";
                    dataType: "json";
                    columnType: "PgJsonb";
                    data: unknown;
                    driverParam: unknown;
                    notNull: false;
                    hasDefault: true;
                    isPrimaryKey: false;
                    isAutoincrement: false;
                    hasRuntimeDefault: false;
                    enumValues: undefined;
                    baseColumn: never;
                    identity: undefined;
                    generated: undefined;
                }, {}, {}>;
            }, undefined, undefined>;
        };
    };
    readonly providers: {
        readonly primary: "providerId";
        readonly description: "Supported LLM provider id — one of groq, huggingface, inference-snaps, ollama. Open models only.";
        readonly schemas: {
            readonly providerId: z.ZodEnum<{
                groq: "groq";
                huggingface: "huggingface";
                "inference-snaps": "inference-snaps";
                ollama: "ollama";
            }>;
        };
    };
    readonly representation: {
        readonly primary: "dualEntity";
        readonly description: "Dual representation layer — DualEntity wraps every entity with both Human and Agent views. Includes Embedding, AgentRepresentation, HumanRepresentation, AgentAction, AgentConstraint, AgentRelation.";
        readonly schemas: {
            readonly dualEntity: z.ZodObject<{
                id: z.ZodString;
                version: z.ZodDefault<z.ZodNumber>;
                human: z.ZodOptional<z.ZodObject<{
                    label: z.ZodString;
                    description: z.ZodOptional<z.ZodString>;
                    icon: z.ZodOptional<z.ZodString>;
                    color: z.ZodOptional<z.ZodString>;
                    preview: z.ZodOptional<z.ZodString>;
                    suggestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    helpText: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                agent: z.ZodOptional<z.ZodObject<{
                    semanticType: z.ZodString;
                    embedding: z.ZodOptional<z.ZodObject<{
                        model: z.ZodString;
                        vector: z.ZodArray<z.ZodNumber>;
                        dimension: z.ZodNumber;
                        generatedAt: z.ZodString;
                    }, z.core.$strip>>;
                    constraints: z.ZodOptional<z.ZodArray<z.ZodObject<{
                        type: z.ZodEnum<{
                            custom: "custom";
                            readonly: "readonly";
                            pattern: "pattern";
                            required: "required";
                            immutable: "immutable";
                            range: "range";
                            dependency: "dependency";
                            capability: "capability";
                            permission: "permission";
                        }>;
                        field: z.ZodOptional<z.ZodString>;
                        params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                        message: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>>;
                    actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
                        name: z.ZodString;
                        description: z.ZodString;
                        params: z.ZodRecord<z.ZodString, z.ZodObject<{
                            type: z.ZodString;
                            required: z.ZodOptional<z.ZodBoolean>;
                            description: z.ZodOptional<z.ZodString>;
                            default: z.ZodOptional<z.ZodUnknown>;
                            enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        }, z.core.$strip>>;
                        returns: z.ZodOptional<z.ZodObject<{
                            type: z.ZodString;
                            description: z.ZodOptional<z.ZodString>;
                        }, z.core.$strip>>;
                        requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        sideEffects: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        destructive: z.ZodOptional<z.ZodBoolean>;
                    }, z.core.$strip>>>;
                    relations: z.ZodOptional<z.ZodArray<z.ZodObject<{
                        type: z.ZodEnum<{
                            dependency: "dependency";
                            parent: "parent";
                            child: "child";
                            sibling: "sibling";
                            reference: "reference";
                            related: "related";
                        }>;
                        targetId: z.ZodString;
                        targetType: z.ZodString;
                        weight: z.ZodDefault<z.ZodNumber>;
                        metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                    }, z.core.$strip>>>;
                    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                    keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    priority: z.ZodOptional<z.ZodNumber>;
                }, z.core.$strip>>;
                createdAt: z.ZodString;
                updatedAt: z.ZodString;
            }, z.core.$strip>;
            readonly embedding: z.ZodObject<{
                model: z.ZodString;
                vector: z.ZodArray<z.ZodNumber>;
                dimension: z.ZodNumber;
                generatedAt: z.ZodString;
            }, z.core.$strip>;
            readonly agentRepresentation: z.ZodObject<{
                semanticType: z.ZodString;
                embedding: z.ZodOptional<z.ZodObject<{
                    model: z.ZodString;
                    vector: z.ZodArray<z.ZodNumber>;
                    dimension: z.ZodNumber;
                    generatedAt: z.ZodString;
                }, z.core.$strip>>;
                constraints: z.ZodOptional<z.ZodArray<z.ZodObject<{
                    type: z.ZodEnum<{
                        custom: "custom";
                        readonly: "readonly";
                        pattern: "pattern";
                        required: "required";
                        immutable: "immutable";
                        range: "range";
                        dependency: "dependency";
                        capability: "capability";
                        permission: "permission";
                    }>;
                    field: z.ZodOptional<z.ZodString>;
                    params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                    message: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>>;
                actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
                    name: z.ZodString;
                    description: z.ZodString;
                    params: z.ZodRecord<z.ZodString, z.ZodObject<{
                        type: z.ZodString;
                        required: z.ZodOptional<z.ZodBoolean>;
                        description: z.ZodOptional<z.ZodString>;
                        default: z.ZodOptional<z.ZodUnknown>;
                        enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    }, z.core.$strip>>;
                    returns: z.ZodOptional<z.ZodObject<{
                        type: z.ZodString;
                        description: z.ZodOptional<z.ZodString>;
                    }, z.core.$strip>>;
                    requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    sideEffects: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    destructive: z.ZodOptional<z.ZodBoolean>;
                }, z.core.$strip>>>;
                relations: z.ZodOptional<z.ZodArray<z.ZodObject<{
                    type: z.ZodEnum<{
                        dependency: "dependency";
                        parent: "parent";
                        child: "child";
                        sibling: "sibling";
                        reference: "reference";
                        related: "related";
                    }>;
                    targetId: z.ZodString;
                    targetType: z.ZodString;
                    weight: z.ZodDefault<z.ZodNumber>;
                    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                }, z.core.$strip>>>;
                metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
                priority: z.ZodOptional<z.ZodNumber>;
            }, z.core.$strip>;
            readonly humanRepresentation: z.ZodObject<{
                label: z.ZodString;
                description: z.ZodOptional<z.ZodString>;
                icon: z.ZodOptional<z.ZodString>;
                color: z.ZodOptional<z.ZodString>;
                preview: z.ZodOptional<z.ZodString>;
                suggestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
                helpText: z.ZodOptional<z.ZodString>;
            }, z.core.$strip>;
            readonly agentActionDefinition: z.ZodObject<{
                name: z.ZodString;
                description: z.ZodString;
                params: z.ZodRecord<z.ZodString, z.ZodObject<{
                    type: z.ZodString;
                    required: z.ZodOptional<z.ZodBoolean>;
                    description: z.ZodOptional<z.ZodString>;
                    default: z.ZodOptional<z.ZodUnknown>;
                    enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
                }, z.core.$strip>>;
                returns: z.ZodOptional<z.ZodObject<{
                    type: z.ZodString;
                    description: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>>;
                requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
                sideEffects: z.ZodOptional<z.ZodArray<z.ZodString>>;
                destructive: z.ZodOptional<z.ZodBoolean>;
            }, z.core.$strip>;
            readonly agentConstraint: z.ZodObject<{
                type: z.ZodEnum<{
                    custom: "custom";
                    readonly: "readonly";
                    pattern: "pattern";
                    required: "required";
                    immutable: "immutable";
                    range: "range";
                    dependency: "dependency";
                    capability: "capability";
                    permission: "permission";
                }>;
                field: z.ZodOptional<z.ZodString>;
                params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
                message: z.ZodOptional<z.ZodString>;
            }, z.core.$strip>;
            readonly agentRelation: z.ZodObject<{
                type: z.ZodEnum<{
                    dependency: "dependency";
                    parent: "parent";
                    child: "child";
                    sibling: "sibling";
                    reference: "reference";
                    related: "related";
                }>;
                targetId: z.ZodString;
                targetType: z.ZodString;
                weight: z.ZodDefault<z.ZodNumber>;
                metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
            }, z.core.$strip>;
        };
    };
    readonly secrets: {
        readonly primary: "secretActor";
        readonly description: "Revvault secret-management contracts — SecretPath, SecretActor, RotationEvent, SecretAuditEvent.";
        readonly schemas: {
            readonly secretActor: z.ZodObject<{
                type: z.ZodEnum<{
                    agent: "agent";
                    system: "system";
                    user: "user";
                }>;
                id: z.ZodString;
                label: z.ZodOptional<z.ZodString>;
            }, z.core.$strip>;
            readonly secretActorType: z.ZodEnum<{
                agent: "agent";
                system: "system";
                user: "user";
            }>;
            readonly secretPath: z.ZodString;
            readonly rotationEvent: z.ZodObject<{
                id: z.ZodString;
                version: z.ZodDefault<z.ZodNumber>;
                path: z.ZodString;
                previousHash: z.ZodOptional<z.ZodString>;
                newHash: z.ZodString;
                reason: z.ZodEnum<{
                    unknown: "unknown";
                    scheduled: "scheduled";
                    manual: "manual";
                    breach: "breach";
                    compromise: "compromise";
                    "key-loss": "key-loss";
                }>;
                actor: z.ZodObject<{
                    type: z.ZodEnum<{
                        agent: "agent";
                        system: "system";
                        user: "user";
                    }>;
                    id: z.ZodString;
                    label: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>;
                rotatedAt: z.ZodString;
                notes: z.ZodOptional<z.ZodString>;
            }, z.core.$strip>;
            readonly rotationReason: z.ZodEnum<{
                unknown: "unknown";
                scheduled: "scheduled";
                manual: "manual";
                breach: "breach";
                compromise: "compromise";
                "key-loss": "key-loss";
            }>;
            readonly secretAuditEvent: z.ZodObject<{
                id: z.ZodString;
                version: z.ZodDefault<z.ZodNumber>;
                path: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>;
                type: z.ZodEnum<{
                    list: "list";
                    delete: "delete";
                    update: "update";
                    read: "read";
                    write: "write";
                    rotate: "rotate";
                    "access-denied": "access-denied";
                }>;
                actor: z.ZodObject<{
                    type: z.ZodEnum<{
                        agent: "agent";
                        system: "system";
                        user: "user";
                    }>;
                    id: z.ZodString;
                    label: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>;
                success: z.ZodBoolean;
                error: z.ZodOptional<z.ZodString>;
                timestamp: z.ZodString;
                context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
            }, z.core.$strip>;
            readonly secretAuditEventType: z.ZodEnum<{
                list: "list";
                delete: "delete";
                update: "update";
                read: "read";
                write: "write";
                rotate: "rotate";
                "access-denied": "access-denied";
            }>;
        };
    };
    readonly security: {
        readonly primary: "securityRule";
        readonly description: "Security rule contracts — SecurityRule, SecurityFinding, severity/category enums, IssueLocation.";
        readonly schemas: {
            readonly securityRule: z.ZodObject<{
                id: z.ZodString;
                title: z.ZodString;
                description: z.ZodString;
                severity: z.ZodEnum<{
                    error: "error";
                    warning: "warning";
                    info: "info";
                }>;
                category: z.ZodEnum<{
                    auth: "auth";
                    injection: "injection";
                    "race-condition": "race-condition";
                    "denial-of-service": "denial-of-service";
                    api: "api";
                    sanitization: "sanitization";
                }>;
                cwe: z.ZodOptional<z.ZodString>;
                remediation: z.ZodOptional<z.ZodString>;
            }, z.core.$strip>;
            readonly securityFinding: z.ZodObject<{
                rule: z.ZodObject<{
                    id: z.ZodString;
                    title: z.ZodString;
                    description: z.ZodString;
                    severity: z.ZodEnum<{
                        error: "error";
                        warning: "warning";
                        info: "info";
                    }>;
                    category: z.ZodEnum<{
                        auth: "auth";
                        injection: "injection";
                        "race-condition": "race-condition";
                        "denial-of-service": "denial-of-service";
                        api: "api";
                        sanitization: "sanitization";
                    }>;
                    cwe: z.ZodOptional<z.ZodString>;
                    remediation: z.ZodOptional<z.ZodString>;
                }, z.core.$strip>;
                location: z.ZodObject<{
                    file: z.ZodString;
                    line: z.ZodNumber;
                    column: z.ZodNumber;
                    snippet: z.ZodString;
                }, z.core.$strip>;
            }, z.core.$strip>;
            readonly severity: z.ZodEnum<{
                error: "error";
                warning: "warning";
                info: "info";
            }>;
            readonly category: z.ZodEnum<{
                auth: "auth";
                injection: "injection";
                "race-condition": "race-condition";
                "denial-of-service": "denial-of-service";
                api: "api";
                sanitization: "sanitization";
            }>;
            readonly issueLocation: z.ZodObject<{
                file: z.ZodString;
                line: z.ZodNumber;
                column: z.ZodNumber;
                snippet: z.ZodString;
            }, z.core.$strip>;
        };
    };
    readonly stripe_webhook_events: {
        readonly primary: "eventType";
        readonly description: "Canonical Stripe webhook event types handled by RevealUI (subset of Stripe API events).";
        readonly schemas: {
            readonly eventType: z.ZodEnum<{
                [x: string]: string;
            }>;
        };
    };
};
type CategoryName = keyof typeof SCHEMA_REGISTRY;
/**
 * Public alias for the literal-union of registered category names. Consumers
 * (e.g. `@revealui/openapi`'s `emit-from-mcp.ts`) can use this for strict
 * keying of catalog operations; loose `string` is also accepted everywhere.
 */
export type ContractCategoryName = CategoryName;
export declare const REGISTERED_CATEGORIES: readonly string[];
/**
 * Public shape of a single category entry in the contracts catalog. Used by
 * downstream consumers — most notably `@revealui/openapi`'s `emit-from-mcp.ts`
 * generator, which consumes the catalog at build-time to materialize an
 * OpenAPI 3.1 `components.schemas` map.
 */
export interface ContractCategorySchemas {
    /** Stable JSON Schemas keyed by schema name within the category. */
    schemas: Record<string, unknown>;
    /** The primary schema name (default for `validate_<category>` when no `schema` argument is given). */
    primary: string;
    /** Human description of the category. */
    description: string;
}
/**
 * Build the contracts catalog: a snapshot of every registered category's
 * JSON Schemas (computed via Zod v4's built-in `z.toJSONSchema()`), keyed
 * first by category name, then by schema name within the category.
 *
 * Pure (no side effects, no external state). Safe to call multiple times;
 * each call recomputes from `SCHEMA_REGISTRY`. Cheap enough that callers
 * who want a long-lived snapshot (e.g. the MCP server's per-instance cache)
 * can call once and memoize the result themselves.
 *
 * Some Zod constructs (e.g. discriminated unions with overlapping
 * discriminators, recursive schemas without lazy guards, custom transforms)
 * cannot be serialized to JSON Schema. For those entries, the catalog
 * surfaces a placeholder `{ $comment: "JSON Schema serialization failed: ..." }`
 * so the schema name still appears in the catalog; runtime validation
 * (via `validatePayload`) is unaffected.
 */
export declare function getContractsCatalog(): Record<ContractCategoryName, ContractCategorySchemas>;
interface ValidateSuccess {
    success: true;
    category: CategoryName;
    schema: string;
    data: unknown;
}
interface ValidateFailure {
    success: false;
    category: CategoryName;
    schema: string;
    issues: Array<{
        path: ReadonlyArray<PropertyKey>;
        message: string;
        code: string;
    }>;
}
type ValidateResult = ValidateSuccess | ValidateFailure;
export declare function validatePayload(category: CategoryName, schemaName: string, data: unknown): ValidateResult;
export interface CreateContractsServerOptions {
    /**
     * Override the server name advertised in the MCP `initialize` response.
     * Mostly useful for tests that spin up multiple servers in one process.
     */
    serverName?: string;
}
/**
 * Create a fresh contracts MCP Server instance. Safe to call multiple
 * times — each call returns an independent Server with its own request
 * handlers and its own JSON Schema cache.
 */
export declare function createContractsServer(options?: CreateContractsServerOptions): Server;
export {};
//# sourceMappingURL=contracts.d.ts.map