/** * 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://` — JSON document with * `{ category, primarySchema, schemas: Record }`. * * ## 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_` (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` 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; provider: z.ZodOptional; }, z.core.$strip>>; version: z.ZodDefault; capabilities: z.ZodObject<{ streaming: z.ZodDefault; pushNotifications: z.ZodDefault; stateTransitionHistory: z.ZodDefault; }, z.core.$strip>; authentication: z.ZodObject<{ schemes: z.ZodDefault>>; credentials: z.ZodDefault>; }, z.core.$strip>; defaultInputModes: z.ZodDefault>; defaultOutputModes: z.ZodDefault>; skills: z.ZodArray>; examples: z.ZodOptional>; inputModes: z.ZodDefault>; outputModes: z.ZodDefault>; }, z.core.$strip>>; }, z.core.$strip>; readonly artifact: z.ZodObject<{ name: z.ZodOptional; description: z.ZodOptional; parts: z.ZodArray; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"data">; data: z.ZodRecord; mimeType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"file">; mimeType: z.ZodString; data: z.ZodString; name: z.ZodOptional; }, z.core.$strip>], "type">>; metadata: z.ZodOptional>; index: z.ZodDefault; append: z.ZodOptional; lastChunk: z.ZodOptional; }, z.core.$strip>; readonly auth: z.ZodObject<{ schemes: z.ZodDefault>>; credentials: z.ZodDefault>; }, z.core.$strip>; readonly capabilities: z.ZodObject<{ streaming: z.ZodDefault; pushNotifications: z.ZodDefault; stateTransitionHistory: z.ZodDefault; }, z.core.$strip>; readonly jsonRpcRequest: z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodUnion; method: z.ZodString; params: z.ZodOptional>; }, z.core.$strip>; readonly jsonRpcResponse: z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodUnion; result: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; readonly message: z.ZodObject<{ role: z.ZodEnum<{ agent: "agent"; user: "user"; }>; parts: z.ZodArray; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"data">; data: z.ZodRecord; mimeType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"file">; mimeType: z.ZodString; data: z.ZodString; name: z.ZodOptional; }, z.core.$strip>], "type">>; metadata: z.ZodOptional>; }, 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; mimeType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"file">; mimeType: z.ZodString; data: z.ZodString; name: z.ZodOptional; }, z.core.$strip>], "type">; readonly provider: z.ZodObject<{ organization: z.ZodString; url: z.ZodOptional; }, z.core.$strip>; readonly sendTaskParams: z.ZodObject<{ id: z.ZodOptional; sessionId: z.ZodOptional; message: z.ZodObject<{ role: z.ZodEnum<{ agent: "agent"; user: "user"; }>; parts: z.ZodArray; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"data">; data: z.ZodRecord; mimeType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"file">; mimeType: z.ZodString; data: z.ZodString; name: z.ZodOptional; }, z.core.$strip>], "type">>; metadata: z.ZodOptional>; }, z.core.$strip>; metadata: z.ZodOptional>; }, z.core.$strip>; readonly skill: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodString; tags: z.ZodOptional>; examples: z.ZodOptional>; inputModes: z.ZodDefault>; outputModes: z.ZodDefault>; }, z.core.$strip>; readonly task: z.ZodObject<{ id: z.ZodString; sessionId: z.ZodOptional; 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; parts: z.ZodArray; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"data">; data: z.ZodRecord; mimeType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"file">; mimeType: z.ZodString; data: z.ZodString; name: z.ZodOptional; }, z.core.$strip>], "type">>; metadata: z.ZodOptional>; }, z.core.$strip>>; timestamp: z.ZodString; }, z.core.$strip>; artifacts: z.ZodOptional; description: z.ZodOptional; parts: z.ZodArray; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"data">; data: z.ZodRecord; mimeType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"file">; mimeType: z.ZodString; data: z.ZodString; name: z.ZodOptional; }, z.core.$strip>], "type">>; metadata: z.ZodOptional>; index: z.ZodDefault; append: z.ZodOptional; lastChunk: z.ZodOptional; }, z.core.$strip>>>; history: z.ZodOptional; parts: z.ZodArray; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"data">; data: z.ZodRecord; mimeType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"file">; mimeType: z.ZodString; data: z.ZodString; name: z.ZodOptional; }, z.core.$strip>], "type">>; metadata: z.ZodOptional>; }, z.core.$strip>>>; metadata: z.ZodOptional>; }, 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; parts: z.ZodArray; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"data">; data: z.ZodRecord; mimeType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"file">; mimeType: z.ZodString; data: z.ZodString; name: z.ZodOptional; }, z.core.$strip>], "type">>; metadata: z.ZodOptional>; }, 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 pattern."; readonly schemas: { readonly collection: z.ZodType>; 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 | 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 | 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 | undefined; custom?: Record | 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 | 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 | 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 | undefined; custom?: Record | 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; agentId: z.ZodString; sessionId: z.ZodString; action: z.ZodString; params: z.ZodRecord; result: z.ZodObject<{ success: z.ZodBoolean; data: z.ZodOptional; error: z.ZodOptional; errorCode: z.ZodOptional; }, z.core.$strip>; intent: z.ZodOptional; confidence: z.ZodOptional; }, z.core.$strip>>; affectedEntities: z.ZodOptional; }, z.core.$strip>>>; durationMs: z.ZodNumber; timestamp: z.ZodString; }, z.core.$strip>; readonly agentContext: z.ZodObject<{ id: z.ZodString; version: z.ZodDefault; sessionId: z.ZodString; agentId: z.ZodString; context: z.ZodRecord; priority: z.ZodDefault; expiresAt: z.ZodOptional; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strip>; readonly agentDefinition: z.ZodObject<{ id: z.ZodString; version: z.ZodDefault; name: z.ZodString; description: z.ZodString; model: z.ZodString; systemPrompt: z.ZodString; tools: z.ZodArray>>; returns: z.ZodOptional>; examples: z.ZodOptional; output: z.ZodUnknown; description: z.ZodOptional; }, z.core.$strip>>>; requiredCapabilities: z.ZodOptional>; destructive: z.ZodDefault; rateLimit: z.ZodOptional; }, z.core.$strip>>; capabilities: z.ZodArray; temperature: z.ZodDefault; maxTokens: z.ZodDefault; canDelegateToAgents: z.ZodOptional>; rateLimits: z.ZodOptional; tokensPerMinute: z.ZodOptional; }, z.core.$strip>>; pricing: z.ZodOptional>; }, z.core.$strip>; readonly agentMemory: z.ZodObject<{ id: z.ZodString; version: z.ZodDefault; 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; confidence: z.ZodDefault; }, z.core.$strip>; embedding: z.ZodOptional; dimension: z.ZodNumber; generatedAt: z.ZodString; }, z.core.$strip>>; metadata: z.ZodObject<{ siteId: z.ZodOptional; pageId: z.ZodOptional; blockId: z.ZodOptional; tags: z.ZodOptional>; importance: z.ZodDefault; expiresAt: z.ZodOptional; agentId: z.ZodOptional; sessionId: z.ZodOptional; custom: z.ZodOptional>; }, z.core.$strip>; createdAt: z.ZodString; accessedAt: z.ZodString; accessCount: z.ZodDefault; verified: z.ZodDefault; }, z.core.$strip>; readonly agentState: z.ZodObject<{ agent: z.ZodObject<{ id: z.ZodString; version: z.ZodDefault; name: z.ZodString; description: z.ZodString; model: z.ZodString; systemPrompt: z.ZodString; tools: z.ZodArray>>; returns: z.ZodOptional>; examples: z.ZodOptional; output: z.ZodUnknown; description: z.ZodOptional; }, z.core.$strip>>>; requiredCapabilities: z.ZodOptional>; destructive: z.ZodDefault; rateLimit: z.ZodOptional; }, z.core.$strip>>; capabilities: z.ZodArray; temperature: z.ZodDefault; maxTokens: z.ZodDefault; canDelegateToAgents: z.ZodOptional>; rateLimits: z.ZodOptional; tokensPerMinute: z.ZodOptional; }, z.core.$strip>>; pricing: z.ZodOptional>; }, z.core.$strip>; context: z.ZodObject<{ id: z.ZodString; version: z.ZodDefault; sessionId: z.ZodString; agentId: z.ZodString; context: z.ZodRecord; priority: z.ZodDefault; expiresAt: z.ZodOptional; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strip>; conversation: z.ZodOptional; sessionId: z.ZodString; userId: z.ZodString; agentId: z.ZodString; messages: z.ZodArray; content: z.ZodString; data: z.ZodOptional; }, z.core.$strip>>; toolResult: z.ZodOptional>; attachments: z.ZodOptional; url: z.ZodString; name: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; metadata: z.ZodOptional; model: z.ZodOptional; latencyMs: z.ZodOptional; }, z.core.$strip>>; timestamp: z.ZodString; }, z.core.$strip>>; status: z.ZodDefault>; metadata: z.ZodOptional; pageId: z.ZodOptional; topic: z.ZodOptional; summary: z.ZodOptional; totalTokens: z.ZodOptional; }, z.core.$strip>>; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strip>>; recentMemories: z.ZodOptional; 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; confidence: z.ZodDefault; }, z.core.$strip>; embedding: z.ZodOptional; dimension: z.ZodNumber; generatedAt: z.ZodString; }, z.core.$strip>>; metadata: z.ZodObject<{ siteId: z.ZodOptional; pageId: z.ZodOptional; blockId: z.ZodOptional; tags: z.ZodOptional>; importance: z.ZodDefault; expiresAt: z.ZodOptional; agentId: z.ZodOptional; sessionId: z.ZodOptional; custom: z.ZodOptional>; }, z.core.$strip>; createdAt: z.ZodString; accessedAt: z.ZodString; accessCount: z.ZodDefault; verified: z.ZodDefault; }, z.core.$strip>>>; focus: z.ZodOptional; pageId: z.ZodOptional; blockId: z.ZodOptional; selection: z.ZodOptional>; }, z.core.$strip>>; currentTask: z.ZodOptional; progress: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; readonly conversation: z.ZodObject<{ id: z.ZodString; version: z.ZodDefault; sessionId: z.ZodString; userId: z.ZodString; agentId: z.ZodString; messages: z.ZodArray; content: z.ZodString; data: z.ZodOptional; }, z.core.$strip>>; toolResult: z.ZodOptional>; attachments: z.ZodOptional; url: z.ZodString; name: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; metadata: z.ZodOptional; model: z.ZodOptional; latencyMs: z.ZodOptional; }, z.core.$strip>>; timestamp: z.ZodString; }, z.core.$strip>>; status: z.ZodDefault>; metadata: z.ZodOptional; pageId: z.ZodOptional; topic: z.ZodOptional; summary: z.ZodOptional; totalTokens: z.ZodOptional; }, 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.core.$strip>>; toolResult: z.ZodOptional>; attachments: z.ZodOptional; url: z.ZodString; name: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; metadata: z.ZodOptional; model: z.ZodOptional; latencyMs: z.ZodOptional; }, 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; entities: z.ZodOptional>; }, z.core.$strip>>>; confidence: z.ZodNumber; alternatives: z.ZodOptional; action: z.ZodOptional; confidence: z.ZodNumber; }, z.core.$strip>>>; requiresConfirmation: z.ZodDefault; }, 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; confidence: z.ZodDefault; }, 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>>; returns: z.ZodOptional>; examples: z.ZodOptional; output: z.ZodUnknown; description: z.ZodOptional; }, z.core.$strip>>>; requiredCapabilities: z.ZodOptional>; destructive: z.ZodDefault; rateLimit: z.ZodOptional; }, z.core.$strip>; readonly toolParameter: z.ZodType>; }; }; 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>; password: z.ZodString; }, z.core.$strip>; readonly signUp: z.ZodObject<{ email: z.ZodPipe>; password: z.ZodString; name: z.ZodPipe>; tosAccepted: z.ZodLiteral; }, z.core.$strip>; readonly passwordReset: z.ZodObject<{ email: z.ZodPipe>; }, 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.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.core.$strip>], "method">; readonly mfaBackupCode: z.ZodObject<{ code: z.ZodString; }, z.core.$strip>; readonly passkeyRegisterOptions: z.ZodObject<{ email: z.ZodOptional; name: z.ZodOptional; }, z.core.$strip>; readonly passkeyRegisterVerify: z.ZodObject<{ attestationResponse: z.ZodRecord; deviceName: z.ZodOptional; }, z.core.$strip>; readonly passkeyAuthenticateOptions: z.ZodObject<{}, z.core.$strip>; readonly passkeyAuthenticateVerify: z.ZodObject<{ authenticationResponse: z.ZodRecord; }, z.core.$strip>; readonly passkeyList: z.ZodObject<{ passkeys: z.ZodArray; aaguid: z.ZodNullable; backedUp: z.ZodBoolean; createdAt: z.ZodString; lastUsedAt: z.ZodNullable; }, 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; content: z.ZodUnion; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image_url">; image_url: z.ZodObject<{ url: z.ZodString; detail: z.ZodOptional>; }, 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; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image_url">; image_url: z.ZodObject<{ url: z.ZodString; detail: z.ZodOptional>; }, 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; email: z.ZodOptional; }, z.core.$strip>; readonly gdprDelete: z.ZodObject<{ userId: z.ZodOptional; email: z.ZodOptional; 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>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"text">; data: z.ZodObject<{ content: z.ZodString; format: z.ZodDefault>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, 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.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"quote">; data: z.ZodObject<{ content: z.ZodString; attribution: z.ZodOptional; cite: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"code">; data: z.ZodObject<{ code: z.ZodString; language: z.ZodOptional; filename: z.ZodOptional; showLineNumbers: z.ZodDefault; highlightLines: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"image">; data: z.ZodObject<{ src: z.ZodURL; alt: z.ZodString; caption: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; loading: z.ZodDefault>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"video">; data: z.ZodObject<{ src: z.ZodURL; poster: z.ZodOptional; autoplay: z.ZodDefault; loop: z.ZodDefault; muted: z.ZodDefault; controls: z.ZodDefault; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"embed">; data: z.ZodObject<{ url: z.ZodURL; provider: z.ZodOptional; html: z.ZodOptional; aspectRatio: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"button">; data: z.ZodObject<{ text: z.ZodString; href: z.ZodOptional; action: z.ZodDefault>; variant: z.ZodDefault>; size: z.ZodDefault>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"divider">; data: z.ZodObject<{ variant: z.ZodDefault>; thickness: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"spacer">; data: z.ZodObject<{ height: z.ZodDefault; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"list">; data: z.ZodObject<{ items: z.ZodArray; }, z.core.$strip>>; variant: z.ZodDefault>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"table">; data: z.ZodObject<{ headers: z.ZodArray>; rows: z.ZodArray; }, z.core.$strip>>; caption: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"columns">; data: z.ZodObject<{ columns: z.ZodArray; blocks: z.ZodArray>>>; }, z.core.$strip>>; gap: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"grid">; data: z.ZodObject<{ columns: z.ZodOptional; gap: z.ZodOptional; items: z.ZodArray; blocks: z.ZodArray>>>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"accordion">; data: z.ZodObject<{ items: z.ZodArray>>>; defaultOpen: z.ZodOptional; }, z.core.$strip>>; allowMultiple: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"tabs">; data: z.ZodObject<{ tabs: z.ZodArray>>>; }, z.core.$strip>>; defaultTab: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"form">; data: z.ZodObject<{ action: z.ZodOptional; method: z.ZodDefault>; fields: z.ZodArray; name: z.ZodString; label: z.ZodString; placeholder: z.ZodOptional; required: z.ZodDefault; options: z.ZodOptional>>; }, z.core.$strip>>; submitText: z.ZodDefault; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"html">; data: z.ZodObject<{ html: z.ZodString; sanitize: z.ZodDefault; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"component">; data: z.ZodObject<{ componentId: z.ZodString; props: z.ZodOptional>; source: z.ZodDefault>; }, z.core.$strip>; }, z.core.$strip>]>; readonly blockMeta: z.ZodObject<{ version: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>; readonly blockStyle: z.ZodObject<{ align: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>; readonly accordion: z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"accordion">; data: z.ZodObject<{ items: z.ZodArray>>>; defaultOpen: z.ZodOptional; }, z.core.$strip>>; allowMultiple: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; readonly button: z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"button">; data: z.ZodObject<{ text: z.ZodString; href: z.ZodOptional; action: z.ZodDefault>; variant: z.ZodDefault>; size: z.ZodDefault>; }, z.core.$strip>; }, z.core.$strip>; readonly code: z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"code">; data: z.ZodObject<{ code: z.ZodString; language: z.ZodOptional; filename: z.ZodOptional; showLineNumbers: z.ZodDefault; highlightLines: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>; readonly columns: z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"columns">; data: z.ZodObject<{ columns: z.ZodArray; blocks: z.ZodArray>>>; }, z.core.$strip>>; gap: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; readonly component: z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"component">; data: z.ZodObject<{ componentId: z.ZodString; props: z.ZodOptional>; source: z.ZodDefault>; }, z.core.$strip>; }, z.core.$strip>; readonly divider: z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"divider">; data: z.ZodObject<{ variant: z.ZodDefault>; thickness: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; readonly embed: z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"embed">; data: z.ZodObject<{ url: z.ZodURL; provider: z.ZodOptional; html: z.ZodOptional; aspectRatio: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; readonly form: z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"form">; data: z.ZodObject<{ action: z.ZodOptional; method: z.ZodDefault>; fields: z.ZodArray; name: z.ZodString; label: z.ZodString; placeholder: z.ZodOptional; required: z.ZodDefault; options: z.ZodOptional>>; }, z.core.$strip>>; submitText: z.ZodDefault; }, z.core.$strip>; }, z.core.$strip>; readonly grid: z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"grid">; data: z.ZodObject<{ columns: z.ZodOptional; gap: z.ZodOptional; items: z.ZodArray; blocks: z.ZodArray>>>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>; readonly heading: z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, 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.core.$strip>; }, z.core.$strip>; readonly html: z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"html">; data: z.ZodObject<{ html: z.ZodString; sanitize: z.ZodDefault; }, z.core.$strip>; }, z.core.$strip>; readonly image: z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"image">; data: z.ZodObject<{ src: z.ZodURL; alt: z.ZodString; caption: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; loading: z.ZodDefault>; }, z.core.$strip>; }, z.core.$strip>; readonly list: z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"list">; data: z.ZodObject<{ items: z.ZodArray; }, z.core.$strip>>; variant: z.ZodDefault>; }, z.core.$strip>; }, z.core.$strip>; readonly quote: z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"quote">; data: z.ZodObject<{ content: z.ZodString; attribution: z.ZodOptional; cite: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; readonly spacer: z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"spacer">; data: z.ZodObject<{ height: z.ZodDefault; }, z.core.$strip>; }, z.core.$strip>; readonly table: z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"table">; data: z.ZodObject<{ headers: z.ZodArray>; rows: z.ZodArray; }, z.core.$strip>>; caption: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; readonly tabs: z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"tabs">; data: z.ZodObject<{ tabs: z.ZodArray>>>; }, z.core.$strip>>; defaultTab: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; readonly text: z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"text">; data: z.ZodObject<{ content: z.ZodString; format: z.ZodDefault>; }, z.core.$strip>; }, z.core.$strip>; readonly video: z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"video">; data: z.ZodObject<{ src: z.ZodURL; poster: z.ZodOptional; autoplay: z.ZodDefault; loop: z.ZodDefault; muted: z.ZodDefault; controls: z.ZodDefault; }, 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; human: z.ZodOptional; icon: z.ZodOptional; color: z.ZodOptional; preview: z.ZodOptional; suggestions: z.ZodOptional>; helpText: z.ZodOptional; }, z.core.$strip>>; agent: z.ZodOptional; dimension: z.ZodNumber; generatedAt: z.ZodString; }, z.core.$strip>>; constraints: z.ZodOptional; field: z.ZodOptional; params: z.ZodRecord; message: z.ZodOptional; }, z.core.$strip>>>; actions: z.ZodOptional; description: z.ZodOptional; default: z.ZodOptional; enum: z.ZodOptional>; }, z.core.$strip>>; returns: z.ZodOptional; }, z.core.$strip>>; requiredCapabilities: z.ZodOptional>; sideEffects: z.ZodOptional>; destructive: z.ZodOptional; }, z.core.$strip>>>; relations: z.ZodOptional; targetId: z.ZodString; targetType: z.ZodString; weight: z.ZodDefault; metadata: z.ZodOptional>; }, z.core.$strip>>>; metadata: z.ZodOptional>; keywords: z.ZodOptional>; priority: z.ZodOptional; }, z.core.$strip>>; createdAt: z.ZodString; updatedAt: z.ZodString; schemaVersion: z.ZodDefault; type: z.ZodEnum<{ human: "human"; agent: "agent"; system: "system"; }>; status: z.ZodDefault>; email: z.ZodOptional; name: z.ZodString; avatarUrl: z.ZodOptional; role: z.ZodEnum<{ agent: "agent"; admin: "admin"; editor: "editor"; viewer: "viewer"; owner: "owner"; contributor: "contributor"; }>; agentModel: z.ZodOptional; agentCapabilities: z.ZodOptional>; agentConfig: z.ZodOptional; temperature: z.ZodOptional; maxTokens: z.ZodOptional; }, z.core.$strip>>; preferences: z.ZodOptional>; language: z.ZodDefault; timezone: z.ZodDefault; notifications: z.ZodOptional; push: z.ZodDefault; inApp: z.ZodDefault; }, z.core.$strip>>; editor: z.ZodOptional; tabSize: z.ZodDefault; wordWrap: z.ZodDefault; autoSave: z.ZodDefault; autoSaveIntervalMs: z.ZodDefault; }, z.core.$strip>>; ai: z.ZodOptional; autoSuggest: z.ZodDefault; voiceEnabled: z.ZodDefault; }, z.core.$strip>>; }, z.core.$strip>>; lastActiveAt: z.ZodOptional; emailVerified: z.ZodDefault; }, z.core.$strip>; readonly page: z.ZodObject<{ id: z.ZodString; version: z.ZodDefault; human: z.ZodOptional; icon: z.ZodOptional; color: z.ZodOptional; preview: z.ZodOptional; suggestions: z.ZodOptional>; helpText: z.ZodOptional; }, z.core.$strip>>; agent: z.ZodOptional; dimension: z.ZodNumber; generatedAt: z.ZodString; }, z.core.$strip>>; constraints: z.ZodOptional; field: z.ZodOptional; params: z.ZodRecord; message: z.ZodOptional; }, z.core.$strip>>>; actions: z.ZodOptional; description: z.ZodOptional; default: z.ZodOptional; enum: z.ZodOptional>; }, z.core.$strip>>; returns: z.ZodOptional; }, z.core.$strip>>; requiredCapabilities: z.ZodOptional>; sideEffects: z.ZodOptional>; destructive: z.ZodOptional; }, z.core.$strip>>>; relations: z.ZodOptional; targetId: z.ZodString; targetType: z.ZodString; weight: z.ZodDefault; metadata: z.ZodOptional>; }, z.core.$strip>>>; metadata: z.ZodOptional>; keywords: z.ZodOptional>; priority: z.ZodOptional; }, z.core.$strip>>; createdAt: z.ZodString; updatedAt: z.ZodString; schemaVersion: z.ZodDefault; 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>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"text">; data: z.ZodObject<{ content: z.ZodString; format: z.ZodDefault>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, 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.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"quote">; data: z.ZodObject<{ content: z.ZodString; attribution: z.ZodOptional; cite: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"code">; data: z.ZodObject<{ code: z.ZodString; language: z.ZodOptional; filename: z.ZodOptional; showLineNumbers: z.ZodDefault; highlightLines: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"image">; data: z.ZodObject<{ src: z.ZodURL; alt: z.ZodString; caption: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; loading: z.ZodDefault>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"video">; data: z.ZodObject<{ src: z.ZodURL; poster: z.ZodOptional; autoplay: z.ZodDefault; loop: z.ZodDefault; muted: z.ZodDefault; controls: z.ZodDefault; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"embed">; data: z.ZodObject<{ url: z.ZodURL; provider: z.ZodOptional; html: z.ZodOptional; aspectRatio: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"button">; data: z.ZodObject<{ text: z.ZodString; href: z.ZodOptional; action: z.ZodDefault>; variant: z.ZodDefault>; size: z.ZodDefault>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"divider">; data: z.ZodObject<{ variant: z.ZodDefault>; thickness: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"spacer">; data: z.ZodObject<{ height: z.ZodDefault; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"list">; data: z.ZodObject<{ items: z.ZodArray; }, z.core.$strip>>; variant: z.ZodDefault>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"table">; data: z.ZodObject<{ headers: z.ZodArray>; rows: z.ZodArray; }, z.core.$strip>>; caption: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"columns">; data: z.ZodObject<{ columns: z.ZodArray; blocks: z.ZodArray>>>; }, z.core.$strip>>; gap: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"grid">; data: z.ZodObject<{ columns: z.ZodOptional; gap: z.ZodOptional; items: z.ZodArray; blocks: z.ZodArray>>>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"accordion">; data: z.ZodObject<{ items: z.ZodArray>>>; defaultOpen: z.ZodOptional; }, z.core.$strip>>; allowMultiple: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"tabs">; data: z.ZodObject<{ tabs: z.ZodArray>>>; }, z.core.$strip>>; defaultTab: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"form">; data: z.ZodObject<{ action: z.ZodOptional; method: z.ZodDefault>; fields: z.ZodArray; name: z.ZodString; label: z.ZodString; placeholder: z.ZodOptional; required: z.ZodDefault; options: z.ZodOptional>>; }, z.core.$strip>>; submitText: z.ZodDefault; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"html">; data: z.ZodObject<{ html: z.ZodString; sanitize: z.ZodDefault; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; style: z.ZodOptional>; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; padding: z.ZodOptional; margin: z.ZodOptional; borderRadius: z.ZodOptional; className: z.ZodOptional; style: z.ZodOptional>; }, z.core.$strip>>; meta: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>; aiGenerated: z.ZodOptional; sourcePrompt: z.ZodOptional; lastEditor: z.ZodOptional; lastEditedAt: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"component">; data: z.ZodObject<{ componentId: z.ZodString; props: z.ZodOptional>; source: z.ZodDefault>; }, z.core.$strip>; }, z.core.$strip>]>>; seo: z.ZodOptional; description: z.ZodOptional; image: z.ZodOptional; noIndex: z.ZodDefault; canonicalUrl: z.ZodOptional; ogType: z.ZodDefault>; structuredData: z.ZodOptional>; }, z.core.$strip>>; parentId: z.ZodOptional; order: z.ZodDefault; publishAt: z.ZodOptional; publishedAt: z.ZodOptional; templateId: z.ZodOptional; lock: z.ZodOptional; }, z.core.$strip>>; blockCount: z.ZodDefault; wordCount: z.ZodDefault; lastEditorId: z.ZodOptional; }, z.core.$strip>; readonly pageLock: z.ZodObject<{ userId: z.ZodString; lockedAt: z.ZodString; expiresAt: z.ZodString; reason: z.ZodOptional; }, z.core.$strip>; readonly session: z.ZodObject<{ id: z.ZodString; schemaVersion: z.ZodDefault; userId: z.ZodString; tokenHash: z.ZodString; expiresAt: z.ZodDate; userAgent: z.ZodDefault>; ipAddress: z.ZodDefault>; persistent: z.ZodDefault>; lastActivityAt: z.ZodDate; createdAt: z.ZodDate; }, z.core.$strip>; readonly site: z.ZodObject<{ id: z.ZodString; version: z.ZodDefault; human: z.ZodOptional; icon: z.ZodOptional; color: z.ZodOptional; preview: z.ZodOptional; suggestions: z.ZodOptional>; helpText: z.ZodOptional; }, z.core.$strip>>; agent: z.ZodOptional; dimension: z.ZodNumber; generatedAt: z.ZodString; }, z.core.$strip>>; constraints: z.ZodOptional; field: z.ZodOptional; params: z.ZodRecord; message: z.ZodOptional; }, z.core.$strip>>>; actions: z.ZodOptional; description: z.ZodOptional; default: z.ZodOptional; enum: z.ZodOptional>; }, z.core.$strip>>; returns: z.ZodOptional; }, z.core.$strip>>; requiredCapabilities: z.ZodOptional>; sideEffects: z.ZodOptional>; destructive: z.ZodOptional; }, z.core.$strip>>>; relations: z.ZodOptional; targetId: z.ZodString; targetType: z.ZodString; weight: z.ZodDefault; metadata: z.ZodOptional>; }, z.core.$strip>>>; metadata: z.ZodOptional>; keywords: z.ZodOptional>; priority: z.ZodOptional; }, z.core.$strip>>; createdAt: z.ZodString; updatedAt: z.ZodString; schemaVersion: z.ZodDefault; name: z.ZodString; slug: z.ZodString; description: z.ZodOptional; ownerId: z.ZodString; status: z.ZodEnum<{ draft: "draft"; published: "published"; archived: "archived"; maintenance: "maintenance"; }>; settings: z.ZodObject<{ domain: z.ZodOptional; subdomain: z.ZodOptional; language: z.ZodDefault; supportedLanguages: z.ZodOptional>; timezone: z.ZodDefault; seo: z.ZodOptional; description: z.ZodOptional; image: z.ZodOptional; twitterHandle: z.ZodOptional; facebookAppId: z.ZodOptional; googleSiteVerification: z.ZodOptional; robots: z.ZodOptional; }, z.core.$strip>>; analyticsId: z.ZodOptional; allowAgentEdits: z.ZodDefault; agentRestrictions: z.ZodOptional; canDeletePages: z.ZodDefault; canModifySettings: z.ZodDefault; protectedPages: z.ZodOptional>; }, z.core.$strip>>; notFoundPageId: z.ZodOptional; faviconUrl: z.ZodOptional; socialLinks: z.ZodOptional>>; }, z.core.$strip>; collaborators: z.ZodDefault; addedAt: z.ZodString; addedBy: z.ZodString; }, z.core.$strip>>>; templateId: z.ZodOptional; theme: z.ZodOptional; secondaryColor: z.ZodOptional; accentColor: z.ZodOptional; backgroundColor: z.ZodOptional; textColor: z.ZodOptional; fontFamily: z.ZodOptional; headingFontFamily: z.ZodOptional; borderRadius: z.ZodDefault>; mode: z.ZodDefault>; customVariables: z.ZodOptional>; }, z.core.$strip>>; pageCount: z.ZodDefault; publishedAt: z.ZodOptional; }, 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; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: Record; }>; 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; human: z.ZodOptional; icon: z.ZodOptional; color: z.ZodOptional; preview: z.ZodOptional; suggestions: z.ZodOptional>; helpText: z.ZodOptional; }, z.core.$strip>>; agent: z.ZodOptional; dimension: z.ZodNumber; generatedAt: z.ZodString; }, z.core.$strip>>; constraints: z.ZodOptional; field: z.ZodOptional; params: z.ZodRecord; message: z.ZodOptional; }, z.core.$strip>>>; actions: z.ZodOptional; description: z.ZodOptional; default: z.ZodOptional; enum: z.ZodOptional>; }, z.core.$strip>>; returns: z.ZodOptional; }, z.core.$strip>>; requiredCapabilities: z.ZodOptional>; sideEffects: z.ZodOptional>; destructive: z.ZodOptional; }, z.core.$strip>>>; relations: z.ZodOptional; targetId: z.ZodString; targetType: z.ZodString; weight: z.ZodDefault; metadata: z.ZodOptional>; }, z.core.$strip>>>; metadata: z.ZodOptional>; keywords: z.ZodOptional>; priority: z.ZodOptional; }, z.core.$strip>>; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strip>; readonly embedding: z.ZodObject<{ model: z.ZodString; vector: z.ZodArray; dimension: z.ZodNumber; generatedAt: z.ZodString; }, z.core.$strip>; readonly agentRepresentation: z.ZodObject<{ semanticType: z.ZodString; embedding: z.ZodOptional; dimension: z.ZodNumber; generatedAt: z.ZodString; }, z.core.$strip>>; constraints: z.ZodOptional; field: z.ZodOptional; params: z.ZodRecord; message: z.ZodOptional; }, z.core.$strip>>>; actions: z.ZodOptional; description: z.ZodOptional; default: z.ZodOptional; enum: z.ZodOptional>; }, z.core.$strip>>; returns: z.ZodOptional; }, z.core.$strip>>; requiredCapabilities: z.ZodOptional>; sideEffects: z.ZodOptional>; destructive: z.ZodOptional; }, z.core.$strip>>>; relations: z.ZodOptional; targetId: z.ZodString; targetType: z.ZodString; weight: z.ZodDefault; metadata: z.ZodOptional>; }, z.core.$strip>>>; metadata: z.ZodOptional>; keywords: z.ZodOptional>; priority: z.ZodOptional; }, z.core.$strip>; readonly humanRepresentation: z.ZodObject<{ label: z.ZodString; description: z.ZodOptional; icon: z.ZodOptional; color: z.ZodOptional; preview: z.ZodOptional; suggestions: z.ZodOptional>; helpText: z.ZodOptional; }, z.core.$strip>; readonly agentActionDefinition: z.ZodObject<{ name: z.ZodString; description: z.ZodString; params: z.ZodRecord; description: z.ZodOptional; default: z.ZodOptional; enum: z.ZodOptional>; }, z.core.$strip>>; returns: z.ZodOptional; }, z.core.$strip>>; requiredCapabilities: z.ZodOptional>; sideEffects: z.ZodOptional>; destructive: z.ZodOptional; }, 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; params: z.ZodRecord; message: z.ZodOptional; }, 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; metadata: z.ZodOptional>; }, 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.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; path: z.ZodString; previousHash: z.ZodOptional; 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.core.$strip>; rotatedAt: z.ZodString; notes: z.ZodOptional; }, 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; path: z.ZodUnion]>; 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.core.$strip>; success: z.ZodBoolean; error: z.ZodOptional; timestamp: z.ZodString; context: z.ZodOptional>>; }, 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; remediation: z.ZodOptional; }, 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; remediation: z.ZodOptional; }, 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; /** The primary schema name (default for `validate_` 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; interface ValidateSuccess { success: true; category: CategoryName; schema: string; data: unknown; } interface ValidateFailure { success: false; category: CategoryName; schema: string; issues: Array<{ path: ReadonlyArray; 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