/** * Adaptive Chatbot - Config Schema * * Zod schema for validating chatbot widget configuration. */ import { z } from 'zod'; export declare const configSchema: z.ZodObject<{ /** Backend URL for the chat API endpoint. "" for same-origin, or an absolute http(s):// URL. */ backendUrl: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>; /** MLflow run ID for experiment tracking */ mlflowRunId: z.ZodOptional; /** Greeting message shown when the chat opens */ greeting: z.ZodDefault; /** Maximum number of history messages sent to the backend */ maxHistory: z.ZodDefault; /** Quick-reply suggestions shown in the empty state */ suggestions: z.ZodOptional>; voiceInput: z.ZodOptional; /** * Per-customer fallback card rendered when chat can't open (Turnstile * failure, network error, etc.). The end-user is redirected to the * customer's normal support path — no Cloudflare-branded challenge is * ever shown. */ fallback: z.ZodOptional; /** Body copy explaining the situation in the customer's voice. */ message: z.ZodOptional; /** Label for the call-to-action link. If `ctaHref` is set this should be too. */ ctaLabel: z.ZodOptional; /** Target of the CTA link — typically the customer's existing support path. */ ctaHref: z.ZodOptional]>>; }, "strict", z.ZodTypeAny, { message?: string | undefined; title?: string | undefined; ctaLabel?: string | undefined; ctaHref?: string | undefined; }, { message?: string | undefined; title?: string | undefined; ctaLabel?: string | undefined; ctaHref?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { greeting: string; backendUrl: string; maxHistory: number; voiceInput?: boolean | undefined; mlflowRunId?: string | undefined; suggestions?: string[] | undefined; fallback?: { message?: string | undefined; title?: string | undefined; ctaLabel?: string | undefined; ctaHref?: string | undefined; } | undefined; }, { backendUrl: string; greeting?: string | undefined; voiceInput?: boolean | undefined; mlflowRunId?: string | undefined; maxHistory?: number | undefined; suggestions?: string[] | undefined; fallback?: { message?: string | undefined; title?: string | undefined; ctaLabel?: string | undefined; ctaHref?: string | undefined; } | undefined; }>; export type ChatbotConfigSchema = z.infer; export declare function validateChatbotConfig(data: unknown): z.SafeParseReturnType<{ backendUrl: string; greeting?: string | undefined; voiceInput?: boolean | undefined; mlflowRunId?: string | undefined; maxHistory?: number | undefined; suggestions?: string[] | undefined; fallback?: { message?: string | undefined; title?: string | undefined; ctaLabel?: string | undefined; ctaHref?: string | undefined; } | undefined; }, { greeting: string; backendUrl: string; maxHistory: number; voiceInput?: boolean | undefined; mlflowRunId?: string | undefined; suggestions?: string[] | undefined; fallback?: { message?: string | undefined; title?: string | undefined; ctaLabel?: string | undefined; ctaHref?: string | undefined; } | undefined; }>; /** * Props schema for the `adaptive-chatbot:chat-bar` widget. This is the * headless chat-input shell — no transport, no message persistence. * Customers wire `chat-message-sent` / `chat-interrupt` / `canvas-close` * to their own pipeline. * * All fields are optional: the bar renders an empty trail + send-only * placeholder if nothing is passed. Authors who want a stateful chat * use `adaptive-chatbot:assistant` instead. */ export declare const chatBarPropsSchema: z.ZodObject<{ placeholder: z.ZodOptional; assistantName: z.ZodOptional; personas: z.ZodOptional; pronouns: z.ZodOptional; avatar: z.ZodOptional; md: z.ZodOptional; lg: z.ZodOptional; }, "strip", z.ZodTypeAny, { md?: string | undefined; sm?: string | undefined; lg?: string | undefined; }, { md?: string | undefined; sm?: string | undefined; lg?: string | undefined; }>>; intro_line: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; name: string; avatar?: { md?: string | undefined; sm?: string | undefined; lg?: string | undefined; } | undefined; role_title?: string | undefined; pronouns?: string | undefined; intro_line?: string | undefined; }, { id: string; name: string; avatar?: { md?: string | undefined; sm?: string | undefined; lg?: string | undefined; } | undefined; role_title?: string | undefined; pronouns?: string | undefined; intro_line?: string | undefined; }>, "many">>; messages: z.ZodOptional; role: z.ZodEnum<["user", "assistant"]>; text: z.ZodString; }, "strip", z.ZodTypeAny, { id: string | number; text: string; role: "user" | "assistant"; }, { id: string | number; text: string; role: "user" | "assistant"; }>, "many">>; inFlight: z.ZodOptional; forceExpanded: z.ZodOptional; backendUrl: z.ZodOptional; greeting: z.ZodOptional; introSuggestion: z.ZodOptional>; fallback: z.ZodOptional; message: z.ZodOptional; ctaLabel: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodOptional; message: z.ZodOptional; ctaLabel: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodOptional; message: z.ZodOptional; ctaLabel: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; elementsEnabled: z.ZodOptional; uiTemplates: z.ZodOptional, Record, Record>>; voiceInput: z.ZodOptional; transcript: z.ZodOptional; text: z.ZodString; }, "strict", z.ZodTypeAny, { text: string; role: "user" | "assistant"; }, { text: string; role: "user" | "assistant"; }>, "many">>; supportChat: z.ZodOptional; widgetId: z.ZodOptional; inbox: z.ZodOptional>; }, "strict", z.ZodTypeAny, { vendor: string; widgetId?: string | undefined; inbox?: { title: string; toastTitle: string; } | undefined; suppressNative?: boolean | undefined; }, { vendor: string; widgetId?: string | undefined; inbox?: { title: string; toastTitle: string; } | undefined; suppressNative?: boolean | undefined; }>, { vendor: string; widgetId?: string | undefined; inbox?: { title: string; toastTitle: string; } | undefined; suppressNative?: boolean | undefined; }, { vendor: string; widgetId?: string | undefined; inbox?: { title: string; toastTitle: string; } | undefined; suppressNative?: boolean | undefined; }>>; }, "strict", z.ZodTypeAny, { messages?: { id: string | number; text: string; role: "user" | "assistant"; }[] | undefined; greeting?: string | undefined; forceExpanded?: boolean | undefined; inFlight?: boolean | undefined; introSuggestion?: { label: string; prompt: string; } | undefined; personas?: { id: string; name: string; avatar?: { md?: string | undefined; sm?: string | undefined; lg?: string | undefined; } | undefined; role_title?: string | undefined; pronouns?: string | undefined; intro_line?: string | undefined; }[] | undefined; placeholder?: string | undefined; assistantName?: string | undefined; voiceInput?: boolean | undefined; backendUrl?: string | undefined; fallback?: z.objectOutputType<{ title: z.ZodOptional; message: z.ZodOptional; ctaLabel: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; uiTemplates?: Record | undefined; transcript?: { text: string; role: "user" | "assistant"; }[] | undefined; elementsEnabled?: boolean | undefined; supportChat?: { vendor: string; widgetId?: string | undefined; inbox?: { title: string; toastTitle: string; } | undefined; suppressNative?: boolean | undefined; } | undefined; }, { messages?: { id: string | number; text: string; role: "user" | "assistant"; }[] | undefined; greeting?: string | undefined; forceExpanded?: boolean | undefined; inFlight?: boolean | undefined; introSuggestion?: { label: string; prompt: string; } | undefined; personas?: { id: string; name: string; avatar?: { md?: string | undefined; sm?: string | undefined; lg?: string | undefined; } | undefined; role_title?: string | undefined; pronouns?: string | undefined; intro_line?: string | undefined; }[] | undefined; placeholder?: string | undefined; assistantName?: string | undefined; voiceInput?: boolean | undefined; backendUrl?: string | undefined; fallback?: z.objectInputType<{ title: z.ZodOptional; message: z.ZodOptional; ctaLabel: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; uiTemplates?: Record | undefined; transcript?: { text: string; role: "user" | "assistant"; }[] | undefined; elementsEnabled?: boolean | undefined; supportChat?: { vendor: string; widgetId?: string | undefined; inbox?: { title: string; toastTitle: string; } | undefined; suppressNative?: boolean | undefined; } | undefined; }>; export type ChatBarProps = z.infer; /** * Props schema for the `adaptive-chatbot:chips-strip` widget. Chips * follow the compositional-action shape (see SuggestionChipSchema in * AdaptiveChipsStrip.ts) — same pattern as faq:question. */ export declare const chipsStripPropsSchema: z.ZodObject<{ chips: z.ZodDefault; config: z.ZodObject<{ id: z.ZodString; title: z.ZodString; payload: z.ZodObject<{ widget: z.ZodString; props: z.ZodOptional>; }, "strict", z.ZodTypeAny, { widget: string; props?: Record | undefined; }, { widget: string; props?: Record | undefined; }>; }, "strip", z.ZodTypeAny, { id: string; title: string; payload: { widget: string; props?: Record | undefined; }; }, { id: string; title: string; payload: { widget: string; props?: Record | undefined; }; }>; triggerWhen: z.ZodOptional; rules: z.ZodArray; url: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_url"; url: string; }, { type: "page_url"; url: string; }>, z.ZodObject<{ type: z.ZodLiteral<"route">; routeId: z.ZodString; }, "strip", z.ZodTypeAny, { type: "route"; routeId: string; }, { type: "route"; routeId: string; }>, z.ZodObject<{ type: z.ZodLiteral<"anchor_visible">; anchorId: z.ZodString; state: z.ZodEnum<["visible", "present", "absent"]>; }, "strip", z.ZodTypeAny, { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; }, { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; }>, z.ZodObject<{ type: z.ZodLiteral<"event_occurred">; eventName: z.ZodString; withinMs: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "event_occurred"; eventName: string; withinMs?: number | undefined; }, { type: "event_occurred"; eventName: string; withinMs?: number | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"state_equals">; key: z.ZodString; value: z.ZodUnknown; }, "strip", z.ZodTypeAny, { type: "state_equals"; key: string; value?: unknown; }, { type: "state_equals"; key: string; value?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"viewport">; minWidth: z.ZodOptional; maxWidth: z.ZodOptional; minHeight: z.ZodOptional; maxHeight: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; }, { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"session_metric">; key: z.ZodEnum<["time_on_page", "page_views", "scroll_depth"]>; operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>; threshold: z.ZodNumber; }, "strip", z.ZodTypeAny, { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; }, { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; }>, z.ZodObject<{ type: z.ZodLiteral<"dismissed">; key: z.ZodString; inverted: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "dismissed"; key: string; inverted?: boolean | undefined; }, { type: "dismissed"; key: string; inverted?: boolean | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"cooldown_active">; key: z.ZodString; inverted: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "cooldown_active"; key: string; inverted?: boolean | undefined; }, { type: "cooldown_active"; key: string; inverted?: boolean | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"frequency_limit">; key: z.ZodString; limit: z.ZodNumber; inverted: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; }, { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"event_count">; key: z.ZodString; operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>; count: z.ZodNumber; withinMs: z.ZodOptional; counter: z.ZodOptional, "many">; match: z.ZodOptional>; contains: z.ZodOptional; }, "strip", z.ZodTypeAny, { equals?: string | number | boolean | undefined; contains?: string | undefined; }, { equals?: string | number | boolean | undefined; contains?: string | undefined; }>, { equals?: string | number | boolean | undefined; contains?: string | undefined; }, { equals?: string | number | boolean | undefined; contains?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; }, { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; }>>; }, "strip", z.ZodTypeAny, { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; }, { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; }>]>, "many">; value: z.ZodUnknown; }, "strip", z.ZodTypeAny, { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }, { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }>, "many">; default: z.ZodUnknown; }, "strip", z.ZodTypeAny, { type: "rules"; rules: { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }[]; default?: unknown; }, { type: "rules"; rules: { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }[]; default?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"score">; field: z.ZodString; threshold: z.ZodNumber; above: z.ZodUnknown; below: z.ZodUnknown; }, "strip", z.ZodTypeAny, { type: "score"; field: string; threshold: number; above?: unknown; below?: unknown; }, { type: "score"; field: string; threshold: number; above?: unknown; below?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"model">; modelId: z.ZodString; inputs: z.ZodArray; outputMapping: z.ZodRecord; default: z.ZodUnknown; }, "strip", z.ZodTypeAny, { type: "model"; modelId: string; inputs: string[]; outputMapping: Record; default?: unknown; }, { type: "model"; modelId: string; inputs: string[]; outputMapping: Record; default?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; endpoint: z.ZodString; method: z.ZodOptional>; default: z.ZodUnknown; timeoutMs: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "external"; endpoint: string; method?: "GET" | "POST" | undefined; default?: unknown; timeoutMs?: number | undefined; }, { type: "external"; endpoint: string; method?: "GET" | "POST" | undefined; default?: unknown; timeoutMs?: number | undefined; }>]>>>; notify: z.ZodOptional; body: z.ZodOptional; icon: z.ZodOptional; }, "strip", z.ZodTypeAny, { title?: string | undefined; body?: string | undefined; icon?: string | undefined; }, { title?: string | undefined; body?: string | undefined; icon?: string | undefined; }>>>; id: z.ZodOptional; title: z.ZodOptional; description: z.ZodOptional; validation: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "suggestions:chip"; config: { id: string; title: string; payload: { widget: string; props?: Record | undefined; }; }; id?: string | undefined; title?: string | undefined; validation?: string[] | undefined; triggerWhen?: { type: "rules"; rules: { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }[]; default?: unknown; } | { type: "score"; field: string; threshold: number; above?: unknown; below?: unknown; } | { type: "model"; modelId: string; inputs: string[]; outputMapping: Record; default?: unknown; } | { type: "external"; endpoint: string; method?: "GET" | "POST" | undefined; default?: unknown; timeoutMs?: number | undefined; } | null | undefined; notify?: { title?: string | undefined; body?: string | undefined; icon?: string | undefined; } | null | undefined; description?: string | undefined; }, { kind: "suggestions:chip"; config: { id: string; title: string; payload: { widget: string; props?: Record | undefined; }; }; id?: string | undefined; title?: string | undefined; validation?: string[] | undefined; triggerWhen?: { type: "rules"; rules: { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }[]; default?: unknown; } | { type: "score"; field: string; threshold: number; above?: unknown; below?: unknown; } | { type: "model"; modelId: string; inputs: string[]; outputMapping: Record; default?: unknown; } | { type: "external"; endpoint: string; method?: "GET" | "POST" | undefined; default?: unknown; timeoutMs?: number | undefined; } | null | undefined; notify?: { title?: string | undefined; body?: string | undefined; icon?: string | undefined; } | null | undefined; description?: string | undefined; }>, { kind: "suggestions:chip"; config: { id: string; title: string; payload: { widget: string; props?: Record | undefined; }; }; id?: string | undefined; title?: string | undefined; validation?: string[] | undefined; triggerWhen?: { type: "rules"; rules: { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }[]; default?: unknown; } | { type: "score"; field: string; threshold: number; above?: unknown; below?: unknown; } | { type: "model"; modelId: string; inputs: string[]; outputMapping: Record; default?: unknown; } | { type: "external"; endpoint: string; method?: "GET" | "POST" | undefined; default?: unknown; timeoutMs?: number | undefined; } | null | undefined; notify?: { title?: string | undefined; body?: string | undefined; icon?: string | undefined; } | null | undefined; description?: string | undefined; }, { kind: "suggestions:chip"; config: { id: string; title: string; payload: { widget: string; props?: Record | undefined; }; }; id?: string | undefined; title?: string | undefined; validation?: string[] | undefined; triggerWhen?: { type: "rules"; rules: { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }[]; default?: unknown; } | { type: "score"; field: string; threshold: number; above?: unknown; below?: unknown; } | { type: "model"; modelId: string; inputs: string[]; outputMapping: Record; default?: unknown; } | { type: "external"; endpoint: string; method?: "GET" | "POST" | undefined; default?: unknown; timeoutMs?: number | undefined; } | null | undefined; notify?: { title?: string | undefined; body?: string | undefined; icon?: string | undefined; } | null | undefined; description?: string | undefined; }>, "many">>; }, "strict", z.ZodTypeAny, { chips: { kind: "suggestions:chip"; config: { id: string; title: string; payload: { widget: string; props?: Record | undefined; }; }; id?: string | undefined; title?: string | undefined; validation?: string[] | undefined; triggerWhen?: { type: "rules"; rules: { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }[]; default?: unknown; } | { type: "score"; field: string; threshold: number; above?: unknown; below?: unknown; } | { type: "model"; modelId: string; inputs: string[]; outputMapping: Record; default?: unknown; } | { type: "external"; endpoint: string; method?: "GET" | "POST" | undefined; default?: unknown; timeoutMs?: number | undefined; } | null | undefined; notify?: { title?: string | undefined; body?: string | undefined; icon?: string | undefined; } | null | undefined; description?: string | undefined; }[]; }, { chips?: { kind: "suggestions:chip"; config: { id: string; title: string; payload: { widget: string; props?: Record | undefined; }; }; id?: string | undefined; title?: string | undefined; validation?: string[] | undefined; triggerWhen?: { type: "rules"; rules: { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }[]; default?: unknown; } | { type: "score"; field: string; threshold: number; above?: unknown; below?: unknown; } | { type: "model"; modelId: string; inputs: string[]; outputMapping: Record; default?: unknown; } | { type: "external"; endpoint: string; method?: "GET" | "POST" | undefined; default?: unknown; timeoutMs?: number | undefined; } | null | undefined; notify?: { title?: string | undefined; body?: string | undefined; icon?: string | undefined; } | null | undefined; description?: string | undefined; }[] | undefined; }>; export type ChipsStripProps = z.infer; /** * Tile widget definitions for unified JSON Schema generation. * Maps widget IDs to their props validation schema so the build script * can inject if/then constraints on tile.props. */ export declare const tileWidgets: ({ widget: string; defName: string; propsSchema: z.ZodObject<{ /** Backend URL for the chat API endpoint. "" for same-origin, or an absolute http(s):// URL. */ backendUrl: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>; /** MLflow run ID for experiment tracking */ mlflowRunId: z.ZodOptional; /** Greeting message shown when the chat opens */ greeting: z.ZodDefault; /** Maximum number of history messages sent to the backend */ maxHistory: z.ZodDefault; /** Quick-reply suggestions shown in the empty state */ suggestions: z.ZodOptional>; voiceInput: z.ZodOptional; /** * Per-customer fallback card rendered when chat can't open (Turnstile * failure, network error, etc.). The end-user is redirected to the * customer's normal support path — no Cloudflare-branded challenge is * ever shown. */ fallback: z.ZodOptional; /** Body copy explaining the situation in the customer's voice. */ message: z.ZodOptional; /** Label for the call-to-action link. If `ctaHref` is set this should be too. */ ctaLabel: z.ZodOptional; /** Target of the CTA link — typically the customer's existing support path. */ ctaHref: z.ZodOptional]>>; }, "strict", z.ZodTypeAny, { message?: string | undefined; title?: string | undefined; ctaLabel?: string | undefined; ctaHref?: string | undefined; }, { message?: string | undefined; title?: string | undefined; ctaLabel?: string | undefined; ctaHref?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { greeting: string; backendUrl: string; maxHistory: number; voiceInput?: boolean | undefined; mlflowRunId?: string | undefined; suggestions?: string[] | undefined; fallback?: { message?: string | undefined; title?: string | undefined; ctaLabel?: string | undefined; ctaHref?: string | undefined; } | undefined; }, { backendUrl: string; greeting?: string | undefined; voiceInput?: boolean | undefined; mlflowRunId?: string | undefined; maxHistory?: number | undefined; suggestions?: string[] | undefined; fallback?: { message?: string | undefined; title?: string | undefined; ctaLabel?: string | undefined; ctaHref?: string | undefined; } | undefined; }>; } | { widget: string; defName: string; propsSchema: z.ZodObject<{ placeholder: z.ZodOptional; assistantName: z.ZodOptional; personas: z.ZodOptional; pronouns: z.ZodOptional; avatar: z.ZodOptional; md: z.ZodOptional; lg: z.ZodOptional; }, "strip", z.ZodTypeAny, { md?: string | undefined; sm?: string | undefined; lg?: string | undefined; }, { md?: string | undefined; sm?: string | undefined; lg?: string | undefined; }>>; intro_line: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; name: string; avatar?: { md?: string | undefined; sm?: string | undefined; lg?: string | undefined; } | undefined; role_title?: string | undefined; pronouns?: string | undefined; intro_line?: string | undefined; }, { id: string; name: string; avatar?: { md?: string | undefined; sm?: string | undefined; lg?: string | undefined; } | undefined; role_title?: string | undefined; pronouns?: string | undefined; intro_line?: string | undefined; }>, "many">>; messages: z.ZodOptional; role: z.ZodEnum<["user", "assistant"]>; text: z.ZodString; }, "strip", z.ZodTypeAny, { id: string | number; text: string; role: "user" | "assistant"; }, { id: string | number; text: string; role: "user" | "assistant"; }>, "many">>; inFlight: z.ZodOptional; forceExpanded: z.ZodOptional; backendUrl: z.ZodOptional; greeting: z.ZodOptional; introSuggestion: z.ZodOptional>; fallback: z.ZodOptional; message: z.ZodOptional; ctaLabel: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodOptional; message: z.ZodOptional; ctaLabel: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodOptional; message: z.ZodOptional; ctaLabel: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; elementsEnabled: z.ZodOptional; uiTemplates: z.ZodOptional, Record, Record>>; voiceInput: z.ZodOptional; transcript: z.ZodOptional; text: z.ZodString; }, "strict", z.ZodTypeAny, { text: string; role: "user" | "assistant"; }, { text: string; role: "user" | "assistant"; }>, "many">>; supportChat: z.ZodOptional; widgetId: z.ZodOptional; inbox: z.ZodOptional>; }, "strict", z.ZodTypeAny, { vendor: string; widgetId?: string | undefined; inbox?: { title: string; toastTitle: string; } | undefined; suppressNative?: boolean | undefined; }, { vendor: string; widgetId?: string | undefined; inbox?: { title: string; toastTitle: string; } | undefined; suppressNative?: boolean | undefined; }>, { vendor: string; widgetId?: string | undefined; inbox?: { title: string; toastTitle: string; } | undefined; suppressNative?: boolean | undefined; }, { vendor: string; widgetId?: string | undefined; inbox?: { title: string; toastTitle: string; } | undefined; suppressNative?: boolean | undefined; }>>; }, "strict", z.ZodTypeAny, { messages?: { id: string | number; text: string; role: "user" | "assistant"; }[] | undefined; greeting?: string | undefined; forceExpanded?: boolean | undefined; inFlight?: boolean | undefined; introSuggestion?: { label: string; prompt: string; } | undefined; personas?: { id: string; name: string; avatar?: { md?: string | undefined; sm?: string | undefined; lg?: string | undefined; } | undefined; role_title?: string | undefined; pronouns?: string | undefined; intro_line?: string | undefined; }[] | undefined; placeholder?: string | undefined; assistantName?: string | undefined; voiceInput?: boolean | undefined; backendUrl?: string | undefined; fallback?: z.objectOutputType<{ title: z.ZodOptional; message: z.ZodOptional; ctaLabel: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; uiTemplates?: Record | undefined; transcript?: { text: string; role: "user" | "assistant"; }[] | undefined; elementsEnabled?: boolean | undefined; supportChat?: { vendor: string; widgetId?: string | undefined; inbox?: { title: string; toastTitle: string; } | undefined; suppressNative?: boolean | undefined; } | undefined; }, { messages?: { id: string | number; text: string; role: "user" | "assistant"; }[] | undefined; greeting?: string | undefined; forceExpanded?: boolean | undefined; inFlight?: boolean | undefined; introSuggestion?: { label: string; prompt: string; } | undefined; personas?: { id: string; name: string; avatar?: { md?: string | undefined; sm?: string | undefined; lg?: string | undefined; } | undefined; role_title?: string | undefined; pronouns?: string | undefined; intro_line?: string | undefined; }[] | undefined; placeholder?: string | undefined; assistantName?: string | undefined; voiceInput?: boolean | undefined; backendUrl?: string | undefined; fallback?: z.objectInputType<{ title: z.ZodOptional; message: z.ZodOptional; ctaLabel: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; uiTemplates?: Record | undefined; transcript?: { text: string; role: "user" | "assistant"; }[] | undefined; elementsEnabled?: boolean | undefined; supportChat?: { vendor: string; widgetId?: string | undefined; inbox?: { title: string; toastTitle: string; } | undefined; suppressNative?: boolean | undefined; } | undefined; }>; } | { widget: string; defName: string; propsSchema: z.ZodObject<{ chips: z.ZodDefault; config: z.ZodObject<{ id: z.ZodString; title: z.ZodString; payload: z.ZodObject<{ widget: z.ZodString; props: z.ZodOptional>; }, "strict", z.ZodTypeAny, { widget: string; props?: Record | undefined; }, { widget: string; props?: Record | undefined; }>; }, "strip", z.ZodTypeAny, { id: string; title: string; payload: { widget: string; props?: Record | undefined; }; }, { id: string; title: string; payload: { widget: string; props?: Record | undefined; }; }>; triggerWhen: z.ZodOptional; rules: z.ZodArray; url: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_url"; url: string; }, { type: "page_url"; url: string; }>, z.ZodObject<{ type: z.ZodLiteral<"route">; routeId: z.ZodString; }, "strip", z.ZodTypeAny, { type: "route"; routeId: string; }, { type: "route"; routeId: string; }>, z.ZodObject<{ type: z.ZodLiteral<"anchor_visible">; anchorId: z.ZodString; state: z.ZodEnum<["visible", "present", "absent"]>; }, "strip", z.ZodTypeAny, { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; }, { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; }>, z.ZodObject<{ type: z.ZodLiteral<"event_occurred">; eventName: z.ZodString; withinMs: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "event_occurred"; eventName: string; withinMs?: number | undefined; }, { type: "event_occurred"; eventName: string; withinMs?: number | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"state_equals">; key: z.ZodString; value: z.ZodUnknown; }, "strip", z.ZodTypeAny, { type: "state_equals"; key: string; value?: unknown; }, { type: "state_equals"; key: string; value?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"viewport">; minWidth: z.ZodOptional; maxWidth: z.ZodOptional; minHeight: z.ZodOptional; maxHeight: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; }, { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"session_metric">; key: z.ZodEnum<["time_on_page", "page_views", "scroll_depth"]>; operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>; threshold: z.ZodNumber; }, "strip", z.ZodTypeAny, { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; }, { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; }>, z.ZodObject<{ type: z.ZodLiteral<"dismissed">; key: z.ZodString; inverted: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "dismissed"; key: string; inverted?: boolean | undefined; }, { type: "dismissed"; key: string; inverted?: boolean | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"cooldown_active">; key: z.ZodString; inverted: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "cooldown_active"; key: string; inverted?: boolean | undefined; }, { type: "cooldown_active"; key: string; inverted?: boolean | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"frequency_limit">; key: z.ZodString; limit: z.ZodNumber; inverted: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; }, { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"event_count">; key: z.ZodString; operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>; count: z.ZodNumber; withinMs: z.ZodOptional; counter: z.ZodOptional, "many">; match: z.ZodOptional>; contains: z.ZodOptional; }, "strip", z.ZodTypeAny, { equals?: string | number | boolean | undefined; contains?: string | undefined; }, { equals?: string | number | boolean | undefined; contains?: string | undefined; }>, { equals?: string | number | boolean | undefined; contains?: string | undefined; }, { equals?: string | number | boolean | undefined; contains?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; }, { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; }>>; }, "strip", z.ZodTypeAny, { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; }, { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; }>]>, "many">; value: z.ZodUnknown; }, "strip", z.ZodTypeAny, { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }, { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }>, "many">; default: z.ZodUnknown; }, "strip", z.ZodTypeAny, { type: "rules"; rules: { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }[]; default?: unknown; }, { type: "rules"; rules: { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }[]; default?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"score">; field: z.ZodString; threshold: z.ZodNumber; above: z.ZodUnknown; below: z.ZodUnknown; }, "strip", z.ZodTypeAny, { type: "score"; field: string; threshold: number; above?: unknown; below?: unknown; }, { type: "score"; field: string; threshold: number; above?: unknown; below?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"model">; modelId: z.ZodString; inputs: z.ZodArray; outputMapping: z.ZodRecord; default: z.ZodUnknown; }, "strip", z.ZodTypeAny, { type: "model"; modelId: string; inputs: string[]; outputMapping: Record; default?: unknown; }, { type: "model"; modelId: string; inputs: string[]; outputMapping: Record; default?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; endpoint: z.ZodString; method: z.ZodOptional>; default: z.ZodUnknown; timeoutMs: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "external"; endpoint: string; method?: "GET" | "POST" | undefined; default?: unknown; timeoutMs?: number | undefined; }, { type: "external"; endpoint: string; method?: "GET" | "POST" | undefined; default?: unknown; timeoutMs?: number | undefined; }>]>>>; notify: z.ZodOptional; body: z.ZodOptional; icon: z.ZodOptional; }, "strip", z.ZodTypeAny, { title?: string | undefined; body?: string | undefined; icon?: string | undefined; }, { title?: string | undefined; body?: string | undefined; icon?: string | undefined; }>>>; id: z.ZodOptional; title: z.ZodOptional; description: z.ZodOptional; validation: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "suggestions:chip"; config: { id: string; title: string; payload: { widget: string; props?: Record | undefined; }; }; id?: string | undefined; title?: string | undefined; validation?: string[] | undefined; triggerWhen?: { type: "rules"; rules: { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }[]; default?: unknown; } | { type: "score"; field: string; threshold: number; above?: unknown; below?: unknown; } | { type: "model"; modelId: string; inputs: string[]; outputMapping: Record; default?: unknown; } | { type: "external"; endpoint: string; method?: "GET" | "POST" | undefined; default?: unknown; timeoutMs?: number | undefined; } | null | undefined; notify?: { title?: string | undefined; body?: string | undefined; icon?: string | undefined; } | null | undefined; description?: string | undefined; }, { kind: "suggestions:chip"; config: { id: string; title: string; payload: { widget: string; props?: Record | undefined; }; }; id?: string | undefined; title?: string | undefined; validation?: string[] | undefined; triggerWhen?: { type: "rules"; rules: { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }[]; default?: unknown; } | { type: "score"; field: string; threshold: number; above?: unknown; below?: unknown; } | { type: "model"; modelId: string; inputs: string[]; outputMapping: Record; default?: unknown; } | { type: "external"; endpoint: string; method?: "GET" | "POST" | undefined; default?: unknown; timeoutMs?: number | undefined; } | null | undefined; notify?: { title?: string | undefined; body?: string | undefined; icon?: string | undefined; } | null | undefined; description?: string | undefined; }>, { kind: "suggestions:chip"; config: { id: string; title: string; payload: { widget: string; props?: Record | undefined; }; }; id?: string | undefined; title?: string | undefined; validation?: string[] | undefined; triggerWhen?: { type: "rules"; rules: { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }[]; default?: unknown; } | { type: "score"; field: string; threshold: number; above?: unknown; below?: unknown; } | { type: "model"; modelId: string; inputs: string[]; outputMapping: Record; default?: unknown; } | { type: "external"; endpoint: string; method?: "GET" | "POST" | undefined; default?: unknown; timeoutMs?: number | undefined; } | null | undefined; notify?: { title?: string | undefined; body?: string | undefined; icon?: string | undefined; } | null | undefined; description?: string | undefined; }, { kind: "suggestions:chip"; config: { id: string; title: string; payload: { widget: string; props?: Record | undefined; }; }; id?: string | undefined; title?: string | undefined; validation?: string[] | undefined; triggerWhen?: { type: "rules"; rules: { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }[]; default?: unknown; } | { type: "score"; field: string; threshold: number; above?: unknown; below?: unknown; } | { type: "model"; modelId: string; inputs: string[]; outputMapping: Record; default?: unknown; } | { type: "external"; endpoint: string; method?: "GET" | "POST" | undefined; default?: unknown; timeoutMs?: number | undefined; } | null | undefined; notify?: { title?: string | undefined; body?: string | undefined; icon?: string | undefined; } | null | undefined; description?: string | undefined; }>, "many">>; }, "strict", z.ZodTypeAny, { chips: { kind: "suggestions:chip"; config: { id: string; title: string; payload: { widget: string; props?: Record | undefined; }; }; id?: string | undefined; title?: string | undefined; validation?: string[] | undefined; triggerWhen?: { type: "rules"; rules: { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }[]; default?: unknown; } | { type: "score"; field: string; threshold: number; above?: unknown; below?: unknown; } | { type: "model"; modelId: string; inputs: string[]; outputMapping: Record; default?: unknown; } | { type: "external"; endpoint: string; method?: "GET" | "POST" | undefined; default?: unknown; timeoutMs?: number | undefined; } | null | undefined; notify?: { title?: string | undefined; body?: string | undefined; icon?: string | undefined; } | null | undefined; description?: string | undefined; }[]; }, { chips?: { kind: "suggestions:chip"; config: { id: string; title: string; payload: { widget: string; props?: Record | undefined; }; }; id?: string | undefined; title?: string | undefined; validation?: string[] | undefined; triggerWhen?: { type: "rules"; rules: { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }[]; default?: unknown; } | { type: "score"; field: string; threshold: number; above?: unknown; below?: unknown; } | { type: "model"; modelId: string; inputs: string[]; outputMapping: Record; default?: unknown; } | { type: "external"; endpoint: string; method?: "GET" | "POST" | undefined; default?: unknown; timeoutMs?: number | undefined; } | null | undefined; notify?: { title?: string | undefined; body?: string | undefined; icon?: string | undefined; } | null | undefined; description?: string | undefined; }[] | undefined; }>; })[]; export declare const CAPABILITIES_DOCUMENTATION: { packageId: string; plannerSummary: string; description: string; whenToUse: { goal: string; action: string; }[]; conventions: { name: string; description: string; }[]; events: { name: string; when: string; props: string; }[]; }; /** * Action step schemas — registered into the unified canvas-config * JSON Schema's action-step union so authors (and the tactician LLM) * can emit `suggestions:chip` items inside a chips-strip tile's * `props.chips` array with full validation. * * `.innerType()` strips the `.refine()` wrapper (cross-field * refinements don't translate to JSON Schema); runtime Zod still * enforces them. */ export declare const actionStepSchemas: { defName: string; schema: z.ZodObject<{ kind: z.ZodLiteral<"suggestions:chip">; config: z.ZodObject<{ id: z.ZodString; title: z.ZodString; payload: z.ZodObject<{ widget: z.ZodString; props: z.ZodOptional>; }, "strict", z.ZodTypeAny, { widget: string; props?: Record | undefined; }, { widget: string; props?: Record | undefined; }>; }, "strip", z.ZodTypeAny, { id: string; title: string; payload: { widget: string; props?: Record | undefined; }; }, { id: string; title: string; payload: { widget: string; props?: Record | undefined; }; }>; triggerWhen: z.ZodOptional; rules: z.ZodArray; url: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_url"; url: string; }, { type: "page_url"; url: string; }>, z.ZodObject<{ type: z.ZodLiteral<"route">; routeId: z.ZodString; }, "strip", z.ZodTypeAny, { type: "route"; routeId: string; }, { type: "route"; routeId: string; }>, z.ZodObject<{ type: z.ZodLiteral<"anchor_visible">; anchorId: z.ZodString; state: z.ZodEnum<["visible", "present", "absent"]>; }, "strip", z.ZodTypeAny, { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; }, { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; }>, z.ZodObject<{ type: z.ZodLiteral<"event_occurred">; eventName: z.ZodString; withinMs: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "event_occurred"; eventName: string; withinMs?: number | undefined; }, { type: "event_occurred"; eventName: string; withinMs?: number | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"state_equals">; key: z.ZodString; value: z.ZodUnknown; }, "strip", z.ZodTypeAny, { type: "state_equals"; key: string; value?: unknown; }, { type: "state_equals"; key: string; value?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"viewport">; minWidth: z.ZodOptional; maxWidth: z.ZodOptional; minHeight: z.ZodOptional; maxHeight: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; }, { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"session_metric">; key: z.ZodEnum<["time_on_page", "page_views", "scroll_depth"]>; operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>; threshold: z.ZodNumber; }, "strip", z.ZodTypeAny, { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; }, { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; }>, z.ZodObject<{ type: z.ZodLiteral<"dismissed">; key: z.ZodString; inverted: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "dismissed"; key: string; inverted?: boolean | undefined; }, { type: "dismissed"; key: string; inverted?: boolean | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"cooldown_active">; key: z.ZodString; inverted: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "cooldown_active"; key: string; inverted?: boolean | undefined; }, { type: "cooldown_active"; key: string; inverted?: boolean | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"frequency_limit">; key: z.ZodString; limit: z.ZodNumber; inverted: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; }, { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"event_count">; key: z.ZodString; operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>; count: z.ZodNumber; withinMs: z.ZodOptional; counter: z.ZodOptional, "many">; match: z.ZodOptional>; contains: z.ZodOptional; }, "strip", z.ZodTypeAny, { equals?: string | number | boolean | undefined; contains?: string | undefined; }, { equals?: string | number | boolean | undefined; contains?: string | undefined; }>, { equals?: string | number | boolean | undefined; contains?: string | undefined; }, { equals?: string | number | boolean | undefined; contains?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; }, { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; }>>; }, "strip", z.ZodTypeAny, { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; }, { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; }>]>, "many">; value: z.ZodUnknown; }, "strip", z.ZodTypeAny, { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }, { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }>, "many">; default: z.ZodUnknown; }, "strip", z.ZodTypeAny, { type: "rules"; rules: { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }[]; default?: unknown; }, { type: "rules"; rules: { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }[]; default?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"score">; field: z.ZodString; threshold: z.ZodNumber; above: z.ZodUnknown; below: z.ZodUnknown; }, "strip", z.ZodTypeAny, { type: "score"; field: string; threshold: number; above?: unknown; below?: unknown; }, { type: "score"; field: string; threshold: number; above?: unknown; below?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"model">; modelId: z.ZodString; inputs: z.ZodArray; outputMapping: z.ZodRecord; default: z.ZodUnknown; }, "strip", z.ZodTypeAny, { type: "model"; modelId: string; inputs: string[]; outputMapping: Record; default?: unknown; }, { type: "model"; modelId: string; inputs: string[]; outputMapping: Record; default?: unknown; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; endpoint: z.ZodString; method: z.ZodOptional>; default: z.ZodUnknown; timeoutMs: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "external"; endpoint: string; method?: "GET" | "POST" | undefined; default?: unknown; timeoutMs?: number | undefined; }, { type: "external"; endpoint: string; method?: "GET" | "POST" | undefined; default?: unknown; timeoutMs?: number | undefined; }>]>>>; notify: z.ZodOptional; body: z.ZodOptional; icon: z.ZodOptional; }, "strip", z.ZodTypeAny, { title?: string | undefined; body?: string | undefined; icon?: string | undefined; }, { title?: string | undefined; body?: string | undefined; icon?: string | undefined; }>>>; id: z.ZodOptional; title: z.ZodOptional; description: z.ZodOptional; validation: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "suggestions:chip"; config: { id: string; title: string; payload: { widget: string; props?: Record | undefined; }; }; id?: string | undefined; title?: string | undefined; validation?: string[] | undefined; triggerWhen?: { type: "rules"; rules: { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }[]; default?: unknown; } | { type: "score"; field: string; threshold: number; above?: unknown; below?: unknown; } | { type: "model"; modelId: string; inputs: string[]; outputMapping: Record; default?: unknown; } | { type: "external"; endpoint: string; method?: "GET" | "POST" | undefined; default?: unknown; timeoutMs?: number | undefined; } | null | undefined; notify?: { title?: string | undefined; body?: string | undefined; icon?: string | undefined; } | null | undefined; description?: string | undefined; }, { kind: "suggestions:chip"; config: { id: string; title: string; payload: { widget: string; props?: Record | undefined; }; }; id?: string | undefined; title?: string | undefined; validation?: string[] | undefined; triggerWhen?: { type: "rules"; rules: { conditions: ({ type: "page_url"; url: string; } | { type: "route"; routeId: string; } | { type: "anchor_visible"; anchorId: string; state: "absent" | "visible" | "present"; } | { type: "event_occurred"; eventName: string; withinMs?: number | undefined; } | { type: "state_equals"; key: string; value?: unknown; } | { type: "viewport"; minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; } | { type: "session_metric"; key: "time_on_page" | "page_views" | "scroll_depth"; operator: "gte" | "lte" | "eq" | "gt" | "lt"; threshold: number; } | { type: "dismissed"; key: string; inverted?: boolean | undefined; } | { type: "cooldown_active"; key: string; inverted?: boolean | undefined; } | { type: "frequency_limit"; key: string; limit: number; inverted?: boolean | undefined; } | { type: "event_count"; key: string; operator: "gte" | "lte" | "eq" | "gt" | "lt"; count: number; withinMs?: number | undefined; counter?: { events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[]; match?: Record | undefined; } | undefined; })[]; value?: unknown; }[]; default?: unknown; } | { type: "score"; field: string; threshold: number; above?: unknown; below?: unknown; } | { type: "model"; modelId: string; inputs: string[]; outputMapping: Record; default?: unknown; } | { type: "external"; endpoint: string; method?: "GET" | "POST" | undefined; default?: unknown; timeoutMs?: number | undefined; } | null | undefined; notify?: { title?: string | undefined; body?: string | undefined; icon?: string | undefined; } | null | undefined; description?: string | undefined; }>; }[]; //# sourceMappingURL=schema.d.ts.map