@bettercms-ai/types 1.55.0 → 1.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -16,16 +16,228 @@ interface Workspace {
16
16
  /**
17
17
  * Generated by scripts/gen-dock-icon-names.mjs from the vendored icon tarball
18
18
  * (sha256 0691620e50bdf453c2fed06224d9dc52d521574ab254a149eba47664b92fb889)
19
- * and the vendored line-icon subset (sha256 06cd85d602d1104d962ed8ace64f6c4d64846ee50bd62bd328252c9d8f697b75).
19
+ * and the vendored line-icon subset (sha256 6c5d1e54865d87a2b7a1109b5ba69e86b1040bb6b59267eb7b0349401642f169).
20
20
  * Do not edit by hand: rerun the script (`--check` fails CI on drift).
21
21
  *
22
22
  * The closed vocabulary for `ui.icon` (field ui, fieldsets, prop ui.group). `as const` because a
23
23
  * z.enum needs the literal tuple; a `readonly string[]` would type every string as valid.
24
24
  */
25
- declare const DOCK_ICON_NAMES: readonly ["abc", "access-denied", "activity", "add", "add-circle", "add-comment", "add-document", "add-user", "address-book", "adjustments", "adjustments-horizontal", "alarm", "alert-triangle", "align-left", "api", "app-window", "apple", "apps", "archive", "arrow-back-up", "arrow-down", "arrow-guide", "arrow-left", "arrow-right", "arrow-top-right", "arrow-up", "arrows-diagonal", "arrows-down", "arrows-exchange", "arrows-horizontal", "arrows-left-right", "arrows-shuffle", "arrows-sort", "article", "aspect-ratio", "asterisk", "award", "axis-x", "backpack", "badge", "badge-cc", "badges", "bar-chart", "basket", "bell", "bill", "binary-document", "block-content", "block-element", "blockquote", "bold", "bolt", "book", "book-2", "bookmark", "bookmark-filled", "books", "bottle", "box", "brand-dribbble", "brand-facebook", "brand-instagram", "brand-linkedin", "brand-pinterest", "brand-tiktok", "brand-x", "brand-youtube", "briefcase", "broadcast", "browser", "bug", "building", "building-skyscraper", "building-store", "bulb-filled", "bulb-outline", "calculator", "calendar", "calendar-dollar", "calendar-event", "calendar-exclamation", "calendar-off", "calendar-plus", "calendar-star", "calendar-time", "camera", "campfire", "carousel-horizontal", "case", "cash", "category", "category-2", "chart-area", "chart-arrows", "chart-bar", "chart-bar-popular", "chart-donut", "chart-dots", "chart-line", "chart-upward", "check", "checkbox", "checklist", "checkmark", "checkmark-circle", "chef-hat", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "chevrons-right", "circle", "circle-check", "circle-dot", "circle-number-1", "circle-plus", "click", "clipboard", "clipboard-image", "clipboard-text", "clock", "clock-check", "clock-hour-4", "close", "close-circle", "code", "code-block", "cog", "collapse", "color-wheel", "columns", "columns-2", "columns-3", "comment", "component", "compose", "compose-sparkles", "confetti", "controls", "cookie", "copy", "credit-card", "crop", "cube", "currency-dollar", "dashboard", "database", "database-search", "desktop", "device-desktop", "device-mobile", "device-tablet", "devices", "diamond", "discount", "document", "document-pdf", "document-remove", "document-sheet", "document-text", "document-video", "document-word", "document-zip", "documents", "door-exit", "dot", "double-chevron-down", "double-chevron-left", "double-chevron-right", "double-chevron-up", "double-quote", "download", "drag-handle", "drop", "droplet", "droplet-half", "earth-americas", "earth-globe", "edit", "egg", "ellipsis-horizontal", "ellipsis-vertical", "empty", "enter", "enter-right", "envelope", "equal", "error-filled", "error-outline", "error-screen", "expand", "eye-closed", "eye-off", "eye-open", "face-happy", "face-indifferent", "face-sad", "feather", "feedback", "file", "file-certificate", "file-code", "file-download", "file-text", "filter", "flag", "flame", "flask", "focus-2", "folder", "folders", "forms", "frame", "generate", "gift", "git-branch", "github", "grid-dots", "groq", "hammer", "hand-finger", "hanger", "hash", "headphones", "headset", "heart", "heart-filled", "heart-handshake", "help-circle", "highlight", "history", "home", "hourglass", "ice-cream", "id-badge", "id-badge-2", "image", "image-remove", "images", "inbox", "infinity", "info-circle", "info-filled", "info-outline", "info-square-rounded", "inline", "inline-element", "input-search", "insert-above", "insert-below", "italic", "joystick", "json", "language", "launch", "layout", "layout-align-center", "layout-board", "layout-board-split", "layout-bottombar", "layout-bottombar-expand", "layout-cards", "layout-columns", "layout-dashboard", "layout-grid", "layout-list", "layout-navbar", "layout-rows", "layout-sidebar", "layout-sidebar-right", "leaf", "leave", "lemon", "library-photo", "lifebuoy", "link", "link-removed", "linkedin", "list", "list-check", "list-details", "list-numbers", "list-tree", "lock", "logo-js", "logo-ts", "mail", "map-2", "map-pin", "map-pins", "marker", "marker-removed", "master-detail", "math-function", "meat", "menu", "message", "message-2", "message-check", "message-circle", "message-circle-2", "message-plus", "message-star", "microphone", "microphone-slash", "mobile-device", "mood-empty", "moon", "movie", "news", "notes", "number", "ok-hand", "olist", "overage", "package", "packages", "palette", "panel-left", "panel-right", "paperclip", "pause", "pencil", "phone", "photo", "photo-scan", "photo-search", "pig-money", "pin", "pin-filled", "pin-removed", "play", "player-play", "player-track-next", "playlist-add", "plug", "plug-connected", "plus-minus", "point", "presentation", "printer", "progress-50", "progress-75", "projects", "publish", "qrcode", "quote", "read-only", "receipt", "recycle", "redo", "refresh", "remove", "remove-circle", "repeat", "reset", "restore", "retrieve", "retry", "revert", "robot", "rocket", "rosette", "route", "ruler", "ruler-measure", "salad", "scale", "schema", "school", "search", "section", "select", "send", "server", "settings", "share", "shield-check", "shield-lock", "shopping-bag", "shopping-cart", "shopping-cart-plus", "signature", "sitemap", "slideshow", "sort", "sort-descending", "spacing-vertical", "sparkle", "sparkles", "speakerphone", "spinner", "split-horizontal", "split-vertical", "square", "stack", "stack-2", "stack-compact", "stairs", "stairs-up", "star", "star-filled", "stars", "stop", "strikethrough", "string", "subtask", "sun", "superscript", "sync", "table", "table-options", "tablet-device", "tag", "tags", "target", "task", "template", "tent", "terminal", "terminal-2", "text", "th-large", "th-list", "thumb-up", "thumbs-down", "thumbs-up", "ticket", "tiers", "timeline", "toggle-arrow-right", "toggle-right", "token", "tool", "tools-kitchen-2", "transfer", "translate", "trash", "trend-upward", "triangle-outline", "trolley", "truck", "truck-delivery", "truncate", "twitter", "typography", "ulist", "unarchive", "underline", "undo", "unknown", "unlink", "unlock", "unpublish", "upload", "user", "user-circle", "user-plus", "user-search", "user-star", "users", "users-group", "versions", "video", "vocabulary", "vs", "warning-filled", "warning-outline", "weight", "world", "wrench", "zoom-question"];
25
+ declare const DOCK_ICON_NAMES: readonly ["abc", "access-denied", "activity", "add", "add-circle", "add-comment", "add-document", "add-user", "address-book", "adjustments", "adjustments-horizontal", "alarm", "alert-triangle", "align-left", "api", "app-window", "apple", "apps", "archive", "arrow-back-up", "arrow-down", "arrow-guide", "arrow-left", "arrow-right", "arrow-top-right", "arrow-up", "arrows-diagonal", "arrows-down", "arrows-exchange", "arrows-horizontal", "arrows-left-right", "arrows-shuffle", "arrows-sort", "article", "aspect-ratio", "asterisk", "award", "axis-x", "backpack", "badge", "badge-cc", "badges", "bar-chart", "basket", "bell", "bill", "binary-document", "block-content", "block-element", "blockquote", "bold", "bolt", "book", "book-2", "bookmark", "bookmark-filled", "books", "bottle", "box", "brand-dribbble", "brand-facebook", "brand-instagram", "brand-linkedin", "brand-pinterest", "brand-tiktok", "brand-x", "brand-youtube", "briefcase", "broadcast", "browser", "bug", "building", "building-skyscraper", "building-store", "bulb-filled", "bulb-outline", "calculator", "calendar", "calendar-dollar", "calendar-event", "calendar-exclamation", "calendar-off", "calendar-plus", "calendar-star", "calendar-time", "camera", "campfire", "carousel-horizontal", "case", "cash", "category", "category-2", "chart-area", "chart-arrows", "chart-bar", "chart-bar-popular", "chart-donut", "chart-dots", "chart-line", "chart-upward", "check", "checkbox", "checklist", "checkmark", "checkmark-circle", "chef-hat", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "chevrons-right", "circle", "circle-check", "circle-dot", "circle-number-1", "circle-plus", "click", "clipboard", "clipboard-image", "clipboard-text", "clock", "clock-check", "clock-hour-4", "close", "close-circle", "code", "code-block", "cog", "collapse", "color-wheel", "columns", "columns-2", "columns-3", "comment", "component", "compose", "compose-sparkles", "confetti", "controls", "cookie", "copy", "credit-card", "crop", "cube", "currency-dollar", "dashboard", "database", "database-search", "desktop", "device-desktop", "device-mobile", "device-tablet", "devices", "diamond", "discount", "document", "document-pdf", "document-remove", "document-sheet", "document-text", "document-video", "document-word", "document-zip", "documents", "door-exit", "dot", "double-chevron-down", "double-chevron-left", "double-chevron-right", "double-chevron-up", "double-quote", "download", "drag-handle", "drop", "droplet", "droplet-half", "earth-americas", "earth-globe", "edit", "egg", "ellipsis-horizontal", "ellipsis-vertical", "empty", "enter", "enter-right", "envelope", "equal", "error-filled", "error-outline", "error-screen", "expand", "eye-closed", "eye-off", "eye-open", "face-happy", "face-indifferent", "face-sad", "feather", "feedback", "file", "file-certificate", "file-code", "file-download", "file-settings", "file-text", "filter", "flag", "flame", "flask", "focus-2", "folder", "folders", "forms", "frame", "generate", "gift", "git-branch", "github", "grid-dots", "groq", "hammer", "hand-finger", "hanger", "hash", "headphones", "headset", "heart", "heart-filled", "heart-handshake", "help-circle", "highlight", "history", "home", "hourglass", "ice-cream", "id-badge", "id-badge-2", "image", "image-remove", "images", "inbox", "infinity", "info-circle", "info-filled", "info-outline", "info-square-rounded", "inline", "inline-element", "input-search", "insert-above", "insert-below", "italic", "joystick", "json", "language", "launch", "layout", "layout-align-center", "layout-board", "layout-board-split", "layout-bottombar", "layout-bottombar-expand", "layout-cards", "layout-columns", "layout-dashboard", "layout-grid", "layout-list", "layout-navbar", "layout-rows", "layout-sidebar", "layout-sidebar-right", "leaf", "leave", "lemon", "library-photo", "lifebuoy", "link", "link-removed", "linkedin", "list", "list-check", "list-details", "list-numbers", "list-tree", "lock", "logo-js", "logo-ts", "mail", "map-2", "map-pin", "map-pins", "marker", "marker-removed", "master-detail", "math-function", "meat", "menu", "message", "message-2", "message-check", "message-circle", "message-circle-2", "message-plus", "message-star", "microphone", "microphone-slash", "mobile-device", "mood-empty", "moon", "movie", "news", "notes", "number", "ok-hand", "olist", "overage", "package", "packages", "palette", "panel-left", "panel-right", "paperclip", "pause", "pencil", "phone", "photo", "photo-scan", "photo-search", "pig-money", "pin", "pin-filled", "pin-removed", "play", "player-play", "player-track-next", "playlist-add", "plug", "plug-connected", "plus-minus", "point", "presentation", "printer", "progress-50", "progress-75", "projects", "publish", "qrcode", "quote", "read-only", "receipt", "recycle", "redo", "refresh", "remove", "remove-circle", "repeat", "reset", "restore", "retrieve", "retry", "revert", "robot", "rocket", "rosette", "route", "ruler", "ruler-measure", "salad", "scale", "schema", "school", "search", "section", "select", "send", "server", "settings", "share", "shield-check", "shield-lock", "shopping-bag", "shopping-cart", "shopping-cart-plus", "signature", "sitemap", "slideshow", "sort", "sort-descending", "spacing-vertical", "sparkle", "sparkles", "speakerphone", "spinner", "split-horizontal", "split-vertical", "square", "stack", "stack-2", "stack-compact", "stairs", "stairs-up", "star", "star-filled", "stars", "stop", "strikethrough", "string", "subtask", "sun", "superscript", "sync", "table", "table-options", "tablet-device", "tag", "tags", "target", "task", "template", "tent", "terminal", "terminal-2", "text", "th-large", "th-list", "thumb-up", "thumbs-down", "thumbs-up", "ticket", "tiers", "timeline", "toggle-arrow-right", "toggle-right", "token", "tool", "tools-kitchen-2", "transfer", "translate", "trash", "trend-upward", "triangle-outline", "trolley", "truck", "truck-delivery", "truncate", "twitter", "typography", "ulist", "unarchive", "underline", "undo", "unknown", "unlink", "unlock", "unpublish", "upload", "user", "user-circle", "user-plus", "user-search", "user-star", "users", "users-group", "versions", "video", "vocabulary", "vs", "warning-filled", "warning-outline", "weight", "world", "wrench", "zoom-question"];
26
26
  type DockIconName = (typeof DOCK_ICON_NAMES)[number];
27
27
  declare const DOCK_ICON_NAME_SET: ReadonlySet<string>;
28
28
 
29
+ /**
30
+ * The V2 kit's storage contract, shared by V2 authoring (the dashboard kit) and prod validation.
31
+ * One home per constant: a bound the two sides kept separately is how a value got refused on one
32
+ * side and stored on the other (kit-facet-table.v3.md, "Carriers" and "Corpus floor").
33
+ */
34
+
35
+ /** Tabs on one screen, the V2 target: a model's `fieldsets kind:"tab"` and a component's prop tabs alike. */
36
+ declare const TAB_MAX = 8;
37
+ /**
38
+ * @deprecated Use TAB_MAX. There is no render cap: like V2's GroupTabs, the dock folds the tabs
39
+ * that do not fit into "More" by width, so a model screen shows every tab TAB_MAX allows
40
+ * (G-REMAIN B4). Kept equal to TAB_MAX until its readers move off it.
41
+ */
42
+ declare const TAB_MAX_RENDERABLE_NOW = 8;
43
+ /** `ui.control:"segmented"`: the option count it stores. V2's 3 is a render-fit rule, not this. */
44
+ declare const SEGMENTED_MIN = 2;
45
+ declare const SEGMENTED_MAX = 8;
46
+ /** Field / prop nesting depth. */
47
+ declare const DEPTH_MAX = 10;
48
+ /** Help and description caps by where the text sits. */
49
+ declare const HELP_CAPS: {
50
+ readonly field: 500;
51
+ readonly prop: 200;
52
+ readonly placeholder: 120;
53
+ readonly helpMore: 2000;
54
+ readonly option: 140;
55
+ readonly fieldset: 500;
56
+ readonly propGroup: 200;
57
+ };
58
+ /** `config.settings` on a slot prop or a slot / modular field: at most this many setting defs. */
59
+ declare const SLOT_SETTINGS_MAX = 12;
60
+ /**
61
+ * The types a slot setting may be: one value on one block. A select's options are written inline
62
+ * on the setting; no reference type, since a setting never points at another record.
63
+ */
64
+ declare const SLOT_SETTINGS_TYPES: readonly ["text", "slug", "select", "multiselect", "number", "rating", "date", "datetime", "boolean", "color", "icon", "link"];
65
+ /**
66
+ * The field types a `kind:'block'` model may hold: the TARGET set. The kit corpus uses every one
67
+ * of them, so this is the bound; anything outside it is refused as out of domain.
68
+ */
69
+ declare const BLOCK_FIELD_TYPES: readonly ["text", "longtext", "richtext", "image", "link", "slug", "email", "phone", "color", "select", "number", "rating", "date", "datetime", "boolean", "video", "object", "array", "reference", "file", "tags"];
70
+ /**
71
+ * The staged part of BLOCK_FIELD_TYPES a block primitive renders TODAY
72
+ * (src/lib/sections/block-model-mapping.ts FIELD_PRIMITIVE). A type in the target set but not
73
+ * here is refused with `schema.block_field_unrenderable` only until its renderer ships, and then
74
+ * joins this list. When this equals BLOCK_FIELD_TYPES (G7), the staging is over.
75
+ */
76
+ declare const BLOCK_FIELD_TYPES_RENDERABLE_NOW: readonly ["text", "longtext", "richtext", "image", "link", "slug", "email", "phone", "color", "select", "number", "rating", "date", "datetime", "boolean"];
77
+ /** `openMode` values (content-model.ts OpenMode). */
78
+ declare const OPEN_MODES: readonly ["inline", "drill", "popover", "dialog"];
79
+ /**
80
+ * The types `openMode` may sit on, in either lane: what opens (object, group), what holds rows
81
+ * (array, repeater, table) and `code`, whose editor may open in a dialog (facet row 21).
82
+ */
83
+ declare const OPEN_MODE_TYPES: readonly ["object", "array", "group", "repeater", "table", "code"];
84
+ /** `showIf` rule `scope` (ShowIfRule.scope); absent is a sibling. */
85
+ declare const SHOW_IF_SCOPES: readonly ["parent", "root"];
86
+ /** A list row's preview slots: `components.preview` and the widened `content_models.list_preview`. */
87
+ declare const LIST_PREVIEW_SLOTS: readonly ["title", "subtitle", "media", "fallback", "icon"];
88
+ declare const V2_SHAPES: readonly ["block", "page", "entry", "global", "object"];
89
+ /** What a definition IS in V2. On a model, `block` ⇔ `content_models.kind = 'block'`. */
90
+ type V2Shape = (typeof V2_SHAPES)[number];
91
+ declare const V2_PLACEMENTS: readonly ["inline", "section", "page"];
92
+ /** Where a block may be placed. */
93
+ type V2Placement = (typeof V2_PLACEMENTS)[number];
94
+ /** The kit catalogue's categories, verbatim (dashboard src/kit/library/catalog.ts CATEGORY_ORDER). */
95
+ declare const KIT_CATEGORIES: readonly ["Navigation & chrome", "Heroes", "Features & storytelling", "Social proof", "Media & galleries", "Commerce", "Pricing & plans", "Conversion & forms", "Listings & feeds", "Long-form & docs", "Company & people", "Events & places", "Data & interactive", "Advanced patterns"];
96
+ type KitCategory = (typeof KIT_CATEGORIES)[number];
97
+ /** The catalogue's order, by the name the facet table bounds `category` with. */
98
+ declare const CATEGORY_ORDER: readonly ["Navigation & chrome", "Heroes", "Features & storytelling", "Social proof", "Media & galleries", "Commerce", "Pricing & plans", "Conversion & forms", "Listings & feeds", "Long-form & docs", "Company & people", "Events & places", "Data & interactive", "Advanced patterns"];
99
+ /** `components.category` is varchar(32) (0503): every category id fits. */
100
+ declare const CATEGORY_ID_MAX = 32;
101
+ /** A variant's chrome. Its slug, name and members are native; only these two are not. */
102
+ interface V2VariantMeta {
103
+ icon?: DockIconName;
104
+ description?: string;
105
+ }
106
+ /** `components.v2` / `published_v2`. Category and icon are native columns. */
107
+ interface ComponentV2 {
108
+ shape?: V2Shape;
109
+ placement?: V2Placement;
110
+ }
111
+ /** `content_models.v2`. Icon and preview are native (`icon`, `list_preview`). */
112
+ interface ContentModelV2 {
113
+ shape?: V2Shape;
114
+ placement?: V2Placement;
115
+ category?: KitCategory;
116
+ /** By variant slug; the slugs themselves are the options of the model's `_variant` select. */
117
+ variants?: Record<string, V2VariantMeta>;
118
+ }
119
+ /** `component_variant_groups.v2` / `published_v2`. ORDER is the array index, like field order. */
120
+ interface VariantGroupV2 {
121
+ variants?: Array<V2VariantMeta & {
122
+ componentId: string;
123
+ }>;
124
+ }
125
+ /** The keys each table's block may hold; validators build strict schemas from these. */
126
+ declare const V2_KEYS: {
127
+ readonly components: readonly ["shape", "placement"];
128
+ readonly content_models: readonly ["shape", "placement", "category", "variants"];
129
+ readonly component_variant_groups: readonly ["variants"];
130
+ };
131
+ /** Who last wrote a facet, weakest first: the generator, the site's own code, an agent, a person. */
132
+ declare const SOURCE_RANK: {
133
+ readonly auto: 0;
134
+ readonly site: 1;
135
+ readonly agent: 2;
136
+ readonly human: 3;
137
+ };
138
+ type SchemaSource = keyof typeof SOURCE_RANK;
139
+ /** The facets a per-def `sources` map tracks. */
140
+ type SourcedFacet = "ui" | "input" | "ai";
141
+ /** A field's or prop's `sources`: server-owned, stamped on write, never taken from a client. */
142
+ type DefSources = Partial<Record<SourcedFacet, SchemaSource>>;
143
+ /**
144
+ * May `incoming` overwrite a facet `stored` last wrote? Never a weaker source over a stronger
145
+ * one, so a re-derive cannot undo a person's edit. Equal rank may: an agent revises its own work.
146
+ * An absent source is `auto`.
147
+ */
148
+ declare const mayOverwrite: (stored: SchemaSource | undefined, incoming: SchemaSource) => boolean;
149
+ declare const UI_REFUSAL_CODES: {
150
+ readonly schema: readonly ["facet_unclassified", "excluded_facet", "depth_exceeded", "validation_failed", "hash_mismatch", "non_finite_number", "shape_kind_mismatch", "block_field_unrenderable", "block_not_accepted", "derived_field", "feature_unknown"];
151
+ readonly build: readonly ["peer_missing", "kit_major_unsupported", "compile_error", "nondeterministic", "size_exceeded", "import_denied", "name_conflict"];
152
+ readonly protocol: readonly ["unsupported", "handshake_timeout", "origin_mismatch", "write_denied"];
153
+ readonly runtime: readonly ["crashed", "blank", "csp_violation"];
154
+ readonly policy: readonly ["confirmation_required", "flag_off", "not_approved"];
155
+ };
156
+ type UiRefusalFamily = keyof typeof UI_REFUSAL_CODES;
157
+ type UiRefusal = {
158
+ [F in UiRefusalFamily]: {
159
+ family: F;
160
+ code: (typeof UI_REFUSAL_CODES)[F][number];
161
+ message: string;
162
+ /** What it is about: a facet name, a field type, a path. */
163
+ detail?: string;
164
+ };
165
+ }[UiRefusalFamily];
166
+ /** `schema.depth_exceeded`: how a refusal is named on the wire, in a chip, in a build receipt. */
167
+ type UiRefusalId = {
168
+ [F in UiRefusalFamily]: `${F}.${(typeof UI_REFUSAL_CODES)[F][number]}`;
169
+ }[UiRefusalFamily];
170
+ /** Every id, so a lane that keeps a subset (a frame's own refusals) checks it against one list. */
171
+ declare const UI_REFUSAL_IDS: readonly UiRefusalId[];
172
+ declare const uiRefusalId: (r: UiRefusal) => UiRefusalId;
173
+ /** The refusals a frame may report about itself; the host owns every other one. */
174
+ declare const FRAME_REFUSALS: readonly ["runtime.crashed", "runtime.blank", "runtime.csp_violation", "protocol.unsupported"];
175
+ /** What a host speaks, best first (dock-input ui2.ts HOST_PROTOCOLS). */
176
+ declare const UI_PROTOCOLS: readonly ["bcms-ui/2", "bcms-input/1", "bcms-panel/1"];
177
+ type UiProtocol = (typeof UI_PROTOCOLS)[number];
178
+ interface UiManifestEntry {
179
+ /** The bundle's content key: its files are `bundles/<k>/<js>` and `bundles/<k>/<html>`. */
180
+ k: string;
181
+ protocol: UiProtocol;
182
+ js: string;
183
+ html: string;
184
+ }
185
+ interface UiManifestV2 {
186
+ version: 2;
187
+ /** The release key: the Merkle root over every entry's `k`. */
188
+ K: string;
189
+ algorithm: string;
190
+ kit: {
191
+ version: string;
192
+ stylesSha: string;
193
+ } | null;
194
+ /** By `input:<name>` | `panel:<name>`. */
195
+ entries: Record<string, UiManifestEntry>;
196
+ }
197
+ declare const isUiRefusal: (v: unknown) => v is UiRefusal;
198
+ /** KEY_RESERVED, the API contract: `derived` (the Layout id prefix), `layout` and `page` (address prefixes). */
199
+ declare const KEY_RESERVED: ReadonlySet<string>;
200
+ /** The derive lane's minted-key bound: KEY_RESERVED and `id` (key-rules.ts RESERVED_KEYS). */
201
+ declare const DERIVE_MINTED_RESERVED: ReadonlySet<string>;
202
+ /** Keys that reach an object's prototype (safe-keys.ts FORBIDDEN_KEYS): also refused as KEY_RESERVED. */
203
+ declare const KEY_FORBIDDEN: ReadonlySet<string>;
204
+ /** A key with this lead is the platform's too (`_type`, `_key`, `_variant`): KEY_RESERVED. */
205
+ declare const KEY_RESERVED_PREFIX = "_";
206
+ /** KEY_FORMAT: a stored field key is a letter, then letters, digits, `-` and `_` (key-rules.ts API_KEY). */
207
+ declare const KEY_FORMAT: RegExp;
208
+ /** Whether the API refuses a key as KEY_RESERVED (content.ts keyRuleProblem). */
209
+ declare const isReservedKey: (key: string) => boolean;
210
+ /** Whether the derive lane may not mint a key (key-rules.ts isReservedKey): the API's words and `id`. */
211
+ declare const isDeriveReservedKey: (key: string) => boolean;
212
+ /**
213
+ * A primitive `array` (`config.itemType`): the item types it may list, the only config keys it may
214
+ * hold, and the item types an array with `zones` may not name (a list of values holds no rows).
215
+ * `minItems ≤ maxItems`, and both bound the primitive list only (beside `itemType`).
216
+ * src/lib/validation/schemas/content.ts ARRAY_ITEM_TYPES / PRIMITIVE_ARRAY_CONFIG_KEYS, in their order.
217
+ */
218
+ declare const PRIMITIVE_ARRAY_RULE: {
219
+ readonly itemTypes: readonly ["text", "number", "date", "image", "link", "richtext"];
220
+ readonly configKeys: readonly ["itemType", "minItems", "maxItems", "aliases"];
221
+ readonly notWithZones: readonly ["image", "link", "richtext"];
222
+ };
223
+ declare function canonicalJson(value: unknown): string;
224
+ /**
225
+ * The definition a table's `schema_hash` is taken over: what a dock UI is built against. Names,
226
+ * slugs and list chrome are not in it. Migration 0503's schema_hash_clear_when_stale triggers clear
227
+ * the hash when exactly these change.
228
+ */
229
+ declare const SCHEMA_HASH_INPUTS: {
230
+ readonly components: readonly ["props", "tabs", "v2"];
231
+ readonly content_models: readonly ["fields", "fieldsets", "v2"];
232
+ readonly component_variant_groups: readonly ["canonicalInputs", "v2"];
233
+ };
234
+ type SchemaHashTable = keyof typeof SCHEMA_HASH_INPUTS;
235
+ /**
236
+ * What `canonicalJson` hashes for one definition: exactly its table's inputs, so an unset key and a
237
+ * cleared one hash alike. `schema_hash` = "v1:" + sha256 hex of `canonicalJson(schemaHashInput(…))`.
238
+ */
239
+ declare function schemaHashInput(table: SchemaHashTable, def: Readonly<Record<string, unknown>>): Record<string, unknown>;
240
+
29
241
  /**
30
242
  * How a `number` field's value is SHOWN: `config.format` on the field.
31
243
  *
@@ -376,6 +588,11 @@ interface ShowIfRule {
376
588
  */
377
589
  op: "eq" | "neq" | "in" | "notIn" | "gt" | "lt" | "isSet" | "notEmpty" | "empty";
378
590
  value?: string | string[];
591
+ /**
592
+ * Where `field` is looked up: absent = a sibling; `parent` = the object that holds the siblings;
593
+ * `root` = the top of the component or entry. @see SHOW_IF_SCOPES
594
+ */
595
+ scope?: "parent" | "root";
379
596
  }
380
597
  interface ShowIf {
381
598
  match: "all" | "any";
@@ -400,8 +617,12 @@ interface ContentModelField {
400
617
  config?: FieldConfig | null;
401
618
  /** `object`: its child fields. */
402
619
  fields?: ContentModelField[];
403
- /** `object` / `array`: how the value (or each row) opens when edited. */
620
+ /** `object` / `array` / `group` / `repeater` / `table` / `code`: how the value (or each row) opens when edited. @see OPEN_MODE_TYPES */
404
621
  openMode?: OpenMode;
622
+ /** V2 `ai`: the editor offers its AI assist on this field. A stored marker. */
623
+ ai?: boolean;
624
+ /** Server-owned: who last wrote each facet (`mayOverwrite`). Never taken from a client. */
625
+ sources?: DefSources;
405
626
  /** Longer help behind the ⓘ next to the label. Editor-only. */
406
627
  helpMore?: string;
407
628
  /** Tuck into the closed "Advanced" section. Editor-only. */
@@ -542,6 +763,7 @@ interface ContentModelFieldUi {
542
763
  blocks?: Record<string, {
543
764
  icon?: DockIconName;
544
765
  preview?: ContentModelFieldUi["preview"];
766
+ openMode?: OpenMode;
545
767
  }>;
546
768
  /**
547
769
  * A custom dock input, by NAME: the project's own input (built with its site, served on its
@@ -766,7 +988,7 @@ type ButtonVariant = (typeof BUTTON_VARIANTS)[number];
766
988
  /** Each icon's inner SVG markup (viewBox `0 0 25 25`), by name. */
767
989
  declare const BUTTON_ICONS: Readonly<Record<DockIconName, string>>;
768
990
  type ButtonIcon = DockIconName;
769
- declare const BUTTON_ICON_NAMES: readonly ["abc", "access-denied", "activity", "add", "add-circle", "add-comment", "add-document", "add-user", "address-book", "adjustments", "adjustments-horizontal", "alarm", "alert-triangle", "align-left", "api", "app-window", "apple", "apps", "archive", "arrow-back-up", "arrow-down", "arrow-guide", "arrow-left", "arrow-right", "arrow-top-right", "arrow-up", "arrows-diagonal", "arrows-down", "arrows-exchange", "arrows-horizontal", "arrows-left-right", "arrows-shuffle", "arrows-sort", "article", "aspect-ratio", "asterisk", "award", "axis-x", "backpack", "badge", "badge-cc", "badges", "bar-chart", "basket", "bell", "bill", "binary-document", "block-content", "block-element", "blockquote", "bold", "bolt", "book", "book-2", "bookmark", "bookmark-filled", "books", "bottle", "box", "brand-dribbble", "brand-facebook", "brand-instagram", "brand-linkedin", "brand-pinterest", "brand-tiktok", "brand-x", "brand-youtube", "briefcase", "broadcast", "browser", "bug", "building", "building-skyscraper", "building-store", "bulb-filled", "bulb-outline", "calculator", "calendar", "calendar-dollar", "calendar-event", "calendar-exclamation", "calendar-off", "calendar-plus", "calendar-star", "calendar-time", "camera", "campfire", "carousel-horizontal", "case", "cash", "category", "category-2", "chart-area", "chart-arrows", "chart-bar", "chart-bar-popular", "chart-donut", "chart-dots", "chart-line", "chart-upward", "check", "checkbox", "checklist", "checkmark", "checkmark-circle", "chef-hat", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "chevrons-right", "circle", "circle-check", "circle-dot", "circle-number-1", "circle-plus", "click", "clipboard", "clipboard-image", "clipboard-text", "clock", "clock-check", "clock-hour-4", "close", "close-circle", "code", "code-block", "cog", "collapse", "color-wheel", "columns", "columns-2", "columns-3", "comment", "component", "compose", "compose-sparkles", "confetti", "controls", "cookie", "copy", "credit-card", "crop", "cube", "currency-dollar", "dashboard", "database", "database-search", "desktop", "device-desktop", "device-mobile", "device-tablet", "devices", "diamond", "discount", "document", "document-pdf", "document-remove", "document-sheet", "document-text", "document-video", "document-word", "document-zip", "documents", "door-exit", "dot", "double-chevron-down", "double-chevron-left", "double-chevron-right", "double-chevron-up", "double-quote", "download", "drag-handle", "drop", "droplet", "droplet-half", "earth-americas", "earth-globe", "edit", "egg", "ellipsis-horizontal", "ellipsis-vertical", "empty", "enter", "enter-right", "envelope", "equal", "error-filled", "error-outline", "error-screen", "expand", "eye-closed", "eye-off", "eye-open", "face-happy", "face-indifferent", "face-sad", "feather", "feedback", "file", "file-certificate", "file-code", "file-download", "file-text", "filter", "flag", "flame", "flask", "focus-2", "folder", "folders", "forms", "frame", "generate", "gift", "git-branch", "github", "grid-dots", "groq", "hammer", "hand-finger", "hanger", "hash", "headphones", "headset", "heart", "heart-filled", "heart-handshake", "help-circle", "highlight", "history", "home", "hourglass", "ice-cream", "id-badge", "id-badge-2", "image", "image-remove", "images", "inbox", "infinity", "info-circle", "info-filled", "info-outline", "info-square-rounded", "inline", "inline-element", "input-search", "insert-above", "insert-below", "italic", "joystick", "json", "language", "launch", "layout", "layout-align-center", "layout-board", "layout-board-split", "layout-bottombar", "layout-bottombar-expand", "layout-cards", "layout-columns", "layout-dashboard", "layout-grid", "layout-list", "layout-navbar", "layout-rows", "layout-sidebar", "layout-sidebar-right", "leaf", "leave", "lemon", "library-photo", "lifebuoy", "link", "link-removed", "linkedin", "list", "list-check", "list-details", "list-numbers", "list-tree", "lock", "logo-js", "logo-ts", "mail", "map-2", "map-pin", "map-pins", "marker", "marker-removed", "master-detail", "math-function", "meat", "menu", "message", "message-2", "message-check", "message-circle", "message-circle-2", "message-plus", "message-star", "microphone", "microphone-slash", "mobile-device", "mood-empty", "moon", "movie", "news", "notes", "number", "ok-hand", "olist", "overage", "package", "packages", "palette", "panel-left", "panel-right", "paperclip", "pause", "pencil", "phone", "photo", "photo-scan", "photo-search", "pig-money", "pin", "pin-filled", "pin-removed", "play", "player-play", "player-track-next", "playlist-add", "plug", "plug-connected", "plus-minus", "point", "presentation", "printer", "progress-50", "progress-75", "projects", "publish", "qrcode", "quote", "read-only", "receipt", "recycle", "redo", "refresh", "remove", "remove-circle", "repeat", "reset", "restore", "retrieve", "retry", "revert", "robot", "rocket", "rosette", "route", "ruler", "ruler-measure", "salad", "scale", "schema", "school", "search", "section", "select", "send", "server", "settings", "share", "shield-check", "shield-lock", "shopping-bag", "shopping-cart", "shopping-cart-plus", "signature", "sitemap", "slideshow", "sort", "sort-descending", "spacing-vertical", "sparkle", "sparkles", "speakerphone", "spinner", "split-horizontal", "split-vertical", "square", "stack", "stack-2", "stack-compact", "stairs", "stairs-up", "star", "star-filled", "stars", "stop", "strikethrough", "string", "subtask", "sun", "superscript", "sync", "table", "table-options", "tablet-device", "tag", "tags", "target", "task", "template", "tent", "terminal", "terminal-2", "text", "th-large", "th-list", "thumb-up", "thumbs-down", "thumbs-up", "ticket", "tiers", "timeline", "toggle-arrow-right", "toggle-right", "token", "tool", "tools-kitchen-2", "transfer", "translate", "trash", "trend-upward", "triangle-outline", "trolley", "truck", "truck-delivery", "truncate", "twitter", "typography", "ulist", "unarchive", "underline", "undo", "unknown", "unlink", "unlock", "unpublish", "upload", "user", "user-circle", "user-plus", "user-search", "user-star", "users", "users-group", "versions", "video", "vocabulary", "vs", "warning-filled", "warning-outline", "weight", "world", "wrench", "zoom-question"];
991
+ declare const BUTTON_ICON_NAMES: readonly ["abc", "access-denied", "activity", "add", "add-circle", "add-comment", "add-document", "add-user", "address-book", "adjustments", "adjustments-horizontal", "alarm", "alert-triangle", "align-left", "api", "app-window", "apple", "apps", "archive", "arrow-back-up", "arrow-down", "arrow-guide", "arrow-left", "arrow-right", "arrow-top-right", "arrow-up", "arrows-diagonal", "arrows-down", "arrows-exchange", "arrows-horizontal", "arrows-left-right", "arrows-shuffle", "arrows-sort", "article", "aspect-ratio", "asterisk", "award", "axis-x", "backpack", "badge", "badge-cc", "badges", "bar-chart", "basket", "bell", "bill", "binary-document", "block-content", "block-element", "blockquote", "bold", "bolt", "book", "book-2", "bookmark", "bookmark-filled", "books", "bottle", "box", "brand-dribbble", "brand-facebook", "brand-instagram", "brand-linkedin", "brand-pinterest", "brand-tiktok", "brand-x", "brand-youtube", "briefcase", "broadcast", "browser", "bug", "building", "building-skyscraper", "building-store", "bulb-filled", "bulb-outline", "calculator", "calendar", "calendar-dollar", "calendar-event", "calendar-exclamation", "calendar-off", "calendar-plus", "calendar-star", "calendar-time", "camera", "campfire", "carousel-horizontal", "case", "cash", "category", "category-2", "chart-area", "chart-arrows", "chart-bar", "chart-bar-popular", "chart-donut", "chart-dots", "chart-line", "chart-upward", "check", "checkbox", "checklist", "checkmark", "checkmark-circle", "chef-hat", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "chevrons-right", "circle", "circle-check", "circle-dot", "circle-number-1", "circle-plus", "click", "clipboard", "clipboard-image", "clipboard-text", "clock", "clock-check", "clock-hour-4", "close", "close-circle", "code", "code-block", "cog", "collapse", "color-wheel", "columns", "columns-2", "columns-3", "comment", "component", "compose", "compose-sparkles", "confetti", "controls", "cookie", "copy", "credit-card", "crop", "cube", "currency-dollar", "dashboard", "database", "database-search", "desktop", "device-desktop", "device-mobile", "device-tablet", "devices", "diamond", "discount", "document", "document-pdf", "document-remove", "document-sheet", "document-text", "document-video", "document-word", "document-zip", "documents", "door-exit", "dot", "double-chevron-down", "double-chevron-left", "double-chevron-right", "double-chevron-up", "double-quote", "download", "drag-handle", "drop", "droplet", "droplet-half", "earth-americas", "earth-globe", "edit", "egg", "ellipsis-horizontal", "ellipsis-vertical", "empty", "enter", "enter-right", "envelope", "equal", "error-filled", "error-outline", "error-screen", "expand", "eye-closed", "eye-off", "eye-open", "face-happy", "face-indifferent", "face-sad", "feather", "feedback", "file", "file-certificate", "file-code", "file-download", "file-settings", "file-text", "filter", "flag", "flame", "flask", "focus-2", "folder", "folders", "forms", "frame", "generate", "gift", "git-branch", "github", "grid-dots", "groq", "hammer", "hand-finger", "hanger", "hash", "headphones", "headset", "heart", "heart-filled", "heart-handshake", "help-circle", "highlight", "history", "home", "hourglass", "ice-cream", "id-badge", "id-badge-2", "image", "image-remove", "images", "inbox", "infinity", "info-circle", "info-filled", "info-outline", "info-square-rounded", "inline", "inline-element", "input-search", "insert-above", "insert-below", "italic", "joystick", "json", "language", "launch", "layout", "layout-align-center", "layout-board", "layout-board-split", "layout-bottombar", "layout-bottombar-expand", "layout-cards", "layout-columns", "layout-dashboard", "layout-grid", "layout-list", "layout-navbar", "layout-rows", "layout-sidebar", "layout-sidebar-right", "leaf", "leave", "lemon", "library-photo", "lifebuoy", "link", "link-removed", "linkedin", "list", "list-check", "list-details", "list-numbers", "list-tree", "lock", "logo-js", "logo-ts", "mail", "map-2", "map-pin", "map-pins", "marker", "marker-removed", "master-detail", "math-function", "meat", "menu", "message", "message-2", "message-check", "message-circle", "message-circle-2", "message-plus", "message-star", "microphone", "microphone-slash", "mobile-device", "mood-empty", "moon", "movie", "news", "notes", "number", "ok-hand", "olist", "overage", "package", "packages", "palette", "panel-left", "panel-right", "paperclip", "pause", "pencil", "phone", "photo", "photo-scan", "photo-search", "pig-money", "pin", "pin-filled", "pin-removed", "play", "player-play", "player-track-next", "playlist-add", "plug", "plug-connected", "plus-minus", "point", "presentation", "printer", "progress-50", "progress-75", "projects", "publish", "qrcode", "quote", "read-only", "receipt", "recycle", "redo", "refresh", "remove", "remove-circle", "repeat", "reset", "restore", "retrieve", "retry", "revert", "robot", "rocket", "rosette", "route", "ruler", "ruler-measure", "salad", "scale", "schema", "school", "search", "section", "select", "send", "server", "settings", "share", "shield-check", "shield-lock", "shopping-bag", "shopping-cart", "shopping-cart-plus", "signature", "sitemap", "slideshow", "sort", "sort-descending", "spacing-vertical", "sparkle", "sparkles", "speakerphone", "spinner", "split-horizontal", "split-vertical", "square", "stack", "stack-2", "stack-compact", "stairs", "stairs-up", "star", "star-filled", "stars", "stop", "strikethrough", "string", "subtask", "sun", "superscript", "sync", "table", "table-options", "tablet-device", "tag", "tags", "target", "task", "template", "tent", "terminal", "terminal-2", "text", "th-large", "th-list", "thumb-up", "thumbs-down", "thumbs-up", "ticket", "tiers", "timeline", "toggle-arrow-right", "toggle-right", "token", "tool", "tools-kitchen-2", "transfer", "translate", "trash", "trend-upward", "triangle-outline", "trolley", "truck", "truck-delivery", "truncate", "twitter", "typography", "ulist", "unarchive", "underline", "undo", "unknown", "unlink", "unlock", "unpublish", "upload", "user", "user-circle", "user-plus", "user-search", "user-star", "users", "users-group", "versions", "video", "vocabulary", "vs", "warning-filled", "warning-outline", "weight", "world", "wrench", "zoom-question"];
770
992
  /** A stored variant as it renders: anything off the list is Primary. */
771
993
  declare function buttonVariantOf(value: unknown): ButtonVariant;
772
994
  /**
@@ -2256,6 +2478,8 @@ declare function visibleDeliveredLayout<T extends DeliveredLayout | null | undef
2256
2478
  */
2257
2479
  declare const SECTION_DOCTRINE = "STRUCTURE (separate from schema): a page is composed of SECTIONS. NEVER build a page out of loose top-level heading/text/image/button/spacer blocks \u2014 they cannot be moved, duplicated or swapped as a unit, the visual editor cannot outline or name them, and every one of them becomes its own section in the editor. A hero of a headline, a lede and two CTAs is ONE section, not four. TWO SHAPES, and the choice is about REUSE. (1) A band that appears on more than one page, or that needs layout variants, is a COMPONENT with a `sectionType` \u2014 see create_component. Components sharing a `sectionType` are that section's VARIANTS (one Hero: 'Centered' for the home page and 'Two-column' for about, same prop keys so a swap keeps the content). This is also the only shape the editor's 'Add a section' picker can insert, and the only one that gets a family name and a variant switcher. (2) A genuinely one-off band on a single page is a `section` BLOCK whose `props.children` hold its blocks. THE TRADEOFF, stated in the present tense because it is real today: inside a component, ONLY the leaves a declared prop TARGETS are click-to-edit on the canvas \u2014 each declared prop's `target` is re-keyed to that PLACEMENT's own override address, so editing it changes this page and not the shared definition. A prop with no `target` still SHOWS as a dock control, but its override reaches no rendered slot, so editing it changes nothing on the page. Copy that no prop points at is worse still: no binding and no control, unreachable from click-to-edit AND from the dock, changeable only by editing the component definition, which rewrites every page that places it. A `section` block's children stay click-to-edit unconditionally. So when you choose a component, DECLARE A PROP \u2014 WITH A `target` \u2014 for every string, link and image a marketer will ever touch; a component with un-propped editable copy is the defect, not the component. In the dock an unset prop shows EMPTY and inherits the definition's default, so set props explicitly when you want the current copy visible there. An IMPORTED site's components are its own (read the repo); its nav, footer and modals are the Layout. On a blank site, do not hand-write a band's JSON: start from a built-in section blueprint (list_components returns locked `builtin:*` blueprints with no projectId \u2014 hero-centered, hero-split, feature-grid-three, cta-banner and more), each already rooted in a `section` block with its editable leaves declared as props. INLINE its blockJson as a `section` block for a one-off band; for a recurring band, materialize it with create_component `from` so it becomes project-scoped before implementation validation, Output or publication. Direct `builtin:*` component references exist only for legacy delivery compatibility. Two consecutive call-to-action buttons are two sibling `button` blocks inside the same section \u2014 never a `columns` block, which is a `repeat(N,1fr)` grid and would stretch each CTA to half the container. Buttons are inline-level and flow side by side on their own.";
2258
2480
  type ComponentCategory = "navbar" | "footer" | "button" | "section" | "slider" | "tabs" | "form" | "custom" | "hero" | "content" | "social-proof" | "conversion";
2481
+ /** What `components.category` stores: a library tab, or one of the kit catalogue's categories (facet row 2). */
2482
+ type ComponentCategoryId = ComponentCategory | KitCategory;
2259
2483
  /**
2260
2484
  * A single overridable field on a component. `target` points at the block + JSON
2261
2485
  * path inside `blockJson` the override writes to (e.g. blockId "cta", path
@@ -2378,8 +2602,12 @@ interface ComponentPropDef {
2378
2602
  * the value. Refused (`unique_prop_scope`) on a top-level scalar: nothing to be unique across.
2379
2603
  */
2380
2604
  unique?: boolean;
2381
- /** `object` / `group` / `table`: how the value (or each row) opens when edited. */
2605
+ /** `object` / `group` / `table` / `code`: how the value (or each row) opens when edited. @see OPEN_MODE_TYPES */
2382
2606
  openMode?: OpenMode;
2607
+ /** V2 `ai`: the editor offers its AI assist on this prop. A stored marker. */
2608
+ ai?: boolean;
2609
+ /** Server-owned: who last wrote each facet (`mayOverwrite`). Never taken from a client. */
2610
+ sources?: DefSources;
2383
2611
  /**
2384
2612
  * The content-model field's `readOnly` / `lockReason` pair, as STORED MARKERS only: the
2385
2613
  * editor may render the prop read-only, and no write of a prop value is refused for them.
@@ -2406,6 +2634,7 @@ interface ComponentPropDef {
2406
2634
  maxLength?: number;
2407
2635
  pattern?: string;
2408
2636
  patternMessage?: string;
2637
+ openMode?: OpenMode;
2409
2638
  };
2410
2639
  /** `slot` — the value is a list of instances, not one. @see slotItems */
2411
2640
  multiple?: boolean;
@@ -2435,6 +2664,8 @@ interface ComponentPropDef {
2435
2664
  };
2436
2665
  /** The row icon for this type, a dock icon name. */
2437
2666
  icon?: DockIconName;
2667
+ /** How a row of this type opens when edited. */
2668
+ openMode?: OpenMode;
2438
2669
  }>;
2439
2670
  /**
2440
2671
  * `select` / `multiselect` — the choices. Required, and a default must be one of them. `{ label, value }`
@@ -2657,7 +2888,7 @@ interface Component {
2657
2888
  projectId?: string | null;
2658
2889
  name: string;
2659
2890
  slug: string;
2660
- category: ComponentCategory;
2891
+ category: ComponentCategoryId;
2661
2892
  /**
2662
2893
  * Section library: the family this component is a LAYOUT of, e.g. "Hero". `name` is the
2663
2894
  * layout label ("Centered"), so components sharing a sectionType are selectable variants
@@ -2719,7 +2950,7 @@ interface DeliveryComponent {
2719
2950
  thumbnail?: string | null;
2720
2951
  name: string;
2721
2952
  slug: string;
2722
- category: ComponentCategory;
2953
+ category: ComponentCategoryId;
2723
2954
  sectionType?: string | null;
2724
2955
  blockJson: ContentBlock[];
2725
2956
  props: ComponentPropDef[];
@@ -3295,9 +3526,36 @@ interface MediaFieldValue {
3295
3526
  }
3296
3527
 
3297
3528
  /**
3298
- * Delivery API response shapes — the read surface consumed by framework
3299
- * SDKs (@bettercms-ai/sdk core client, @bettercms-ai/astro, @bettercms-ai/next).
3529
+ * What a delivered rich-text value carries for its references, beside its `html` (RT8): the
3530
+ * entries an author bio and related posts point at, resolved by the server (one query, at
3531
+ * html-cache build) so every renderer draws the same thing and none of them fetches.
3300
3532
  */
3533
+ /** A related post as a reader sees it. `url` is the final href (from the collection's route). */
3534
+ interface ResolvedPost {
3535
+ title: string;
3536
+ url: string;
3537
+ cover?: string;
3538
+ category?: string;
3539
+ }
3540
+ /** An author as a reader sees them. `bio` is plain text; `avatar` an image src. */
3541
+ interface ResolvedAuthor {
3542
+ name: string;
3543
+ avatar?: string;
3544
+ bio?: string;
3545
+ url?: string;
3546
+ }
3547
+ interface RichTextResolved {
3548
+ /** Entry id → the post: every hand-picked `posts[]._ref`, and every id the query chose. */
3549
+ posts?: Record<string, ResolvedPost>;
3550
+ /** Entry id → the author, for each author bio's `author._ref`. */
3551
+ authors?: Record<string, ResolvedAuthor>;
3552
+ /**
3553
+ * A related-posts block's `_key` → the entry ids the server chose for a `topic` or `newest`
3554
+ * block, in display order, at most its `count`, the current entry excluded. Not read for a
3555
+ * `manual` block, whose own `posts` are the list.
3556
+ */
3557
+ related?: Record<string, string[]>;
3558
+ }
3301
3559
 
3302
3560
  /** Which content lane to read from. */
3303
3561
  type Perspective = "published" | "drafts";
@@ -3336,6 +3594,13 @@ interface DeliveryEntry<T = Record<string, unknown>> {
3336
3594
  seo?: DeliveryEntrySeo;
3337
3595
  /** Hydrated reference fields, present when `depth >= 1`. */
3338
3596
  _hydration?: Record<string, DeliveryEntry | DeliveryEntry[]>;
3597
+ /**
3598
+ * What this response resolved the entry's related posts and author bios to (RT8), merged over all
3599
+ * of its rich-text values: from the PUBLISHED entries, never stored. An envelope value also carries
3600
+ * its own (`value.resolved`); a Body stored as a bare block array has nowhere to, and reads this.
3601
+ * The SDK's `resolved(value, entry)` picks the right one. Absent when nothing needed resolving.
3602
+ */
3603
+ resolved?: RichTextResolved;
3339
3604
  _meta?: {
3340
3605
  modelSlug: string;
3341
3606
  depth: number;
@@ -4001,173 +4266,122 @@ type SectionPlanItem<B> = {
4001
4266
  */
4002
4267
  declare function planSections<B>(slots: readonly string[], blocks: readonly B[] | null | undefined): SectionPlanItem<B>[];
4003
4268
 
4004
- /**
4005
- * The V2 kit's storage contract, shared by V2 authoring (the dashboard kit) and prod validation.
4006
- * One home per constant: a bound the two sides kept separately is how a value got refused on one
4007
- * side and stored on the other (kit-facet-table.v3.md, "Carriers" and "Corpus floor").
4008
- */
4009
-
4010
- /** Tabs on one screen, the V2 target: a model's `fieldsets kind:"tab"` and a component's prop tabs alike. */
4011
- declare const TAB_MAX = 8;
4012
- /**
4013
- * The model tab bound prod accepts TODAY (src/lib/content/dock-vocabulary.ts TAB_MAX): the
4014
- * dashboard renders 3 tabs on a model screen. It rises to TAB_MAX when the dashboard renders 8
4015
- * (facet table row 7, F12). Component prop tabs are at TAB_MAX already.
4016
- */
4017
- declare const TAB_MAX_RENDERABLE_NOW = 3;
4018
- /** `ui.control:"segmented"`: the option count it stores. V2's 3 is a render-fit rule, not this. */
4019
- declare const SEGMENTED_MIN = 2;
4020
- declare const SEGMENTED_MAX = 8;
4021
- /** Field / prop nesting depth. */
4022
- declare const DEPTH_MAX = 10;
4023
- /** Help and description caps by where the text sits. */
4024
- declare const HELP_CAPS: {
4025
- readonly field: 500;
4026
- readonly prop: 200;
4027
- readonly placeholder: 120;
4028
- readonly helpMore: 2000;
4029
- readonly option: 140;
4030
- readonly fieldset: 500;
4031
- readonly propGroup: 200;
4269
+ type DockUiScope = "field" | "section" | "page" | "layout";
4270
+ type DockUiKind = "input" | "panel";
4271
+ type DockUiStatus = "draft" | "approved" | "published";
4272
+ type DockUiOrigin = "dashboard" | "management" | "mcp" | "system";
4273
+ /** The write path's limits. A version over its cap, or a project over its, refuses `build.size_exceeded`. */
4274
+ declare const DOCK_UI_LIMITS: {
4275
+ readonly sourcesPerProject: 64;
4276
+ readonly bytesPerProject: number;
4277
+ readonly bytesPerVersion: number;
4278
+ readonly bytesPerBundle: number;
4032
4279
  };
4033
- /** `config.settings` on a slot prop or a slot / modular field: at most this many setting defs. */
4034
- declare const SLOT_SETTINGS_MAX = 12;
4035
- /**
4036
- * The types a slot setting may be: one value on one block. A select's options are written inline
4037
- * on the setting; no reference type, since a setting never points at another record.
4038
- */
4039
- declare const SLOT_SETTINGS_TYPES: readonly ["text", "slug", "select", "multiselect", "number", "rating", "date", "datetime", "boolean", "color", "icon", "link"];
4040
- /**
4041
- * The field types a `kind:'block'` model may hold: the TARGET set. The kit corpus uses every one
4042
- * of them, so this is the bound; anything outside it is refused as out of domain.
4043
- */
4044
- declare const BLOCK_FIELD_TYPES: readonly ["text", "longtext", "richtext", "image", "link", "slug", "email", "phone", "color", "select", "number", "rating", "date", "datetime", "boolean", "video", "object", "array", "reference", "file", "tags"];
4045
- /**
4046
- * The staged part of BLOCK_FIELD_TYPES a block primitive renders TODAY
4047
- * (src/lib/sections/block-model-mapping.ts FIELD_PRIMITIVE). A type in the target set but not
4048
- * here is refused with `schema.block_field_unrenderable` only until its renderer ships, and then
4049
- * joins this list. When this equals BLOCK_FIELD_TYPES (G7), the staging is over.
4050
- */
4051
- declare const BLOCK_FIELD_TYPES_RENDERABLE_NOW: readonly ["text", "longtext", "richtext", "image", "link", "slug", "email", "phone", "color", "select", "number", "rating", "date", "datetime", "boolean"];
4052
- declare const V2_SHAPES: readonly ["block", "page", "entry", "global", "object"];
4053
- /** What a definition IS in V2. On a model, `block` ⇔ `content_models.kind = 'block'`. */
4054
- type V2Shape = (typeof V2_SHAPES)[number];
4055
- declare const V2_PLACEMENTS: readonly ["inline", "section", "page"];
4056
- /** Where a block may be placed. */
4057
- type V2Placement = (typeof V2_PLACEMENTS)[number];
4058
- /** The kit catalogue's categories, verbatim (dashboard src/kit/library/catalog.ts CATEGORY_ORDER). */
4059
- declare const KIT_CATEGORIES: readonly ["Navigation & chrome", "Heroes", "Features & storytelling", "Social proof", "Media & galleries", "Commerce", "Pricing & plans", "Conversion & forms", "Listings & feeds", "Long-form & docs", "Company & people", "Events & places", "Data & interactive", "Advanced patterns"];
4060
- type KitCategory = (typeof KIT_CATEGORIES)[number];
4061
- /** A variant's chrome. Its slug, name and members are native; only these two are not. */
4062
- interface V2VariantMeta {
4063
- icon?: DockIconName;
4064
- description?: string;
4065
- }
4066
- /** `components.v2` / `published_v2`. Category and icon are native columns. */
4067
- interface ComponentV2 {
4068
- shape?: V2Shape;
4069
- placement?: V2Placement;
4070
- }
4071
- /** `content_models.v2`. Icon and preview are native (`icon`, `list_preview`). */
4072
- interface ContentModelV2 {
4073
- shape?: V2Shape;
4074
- placement?: V2Placement;
4075
- category?: KitCategory;
4076
- /** By variant slug; the slugs themselves are the options of the model's `_variant` select. */
4077
- variants?: Record<string, V2VariantMeta>;
4078
- }
4079
- /** `component_variant_groups.v2` / `published_v2`. ORDER is the array index, like field order. */
4080
- interface VariantGroupV2 {
4081
- variants?: Array<V2VariantMeta & {
4082
- componentId: string;
4083
- }>;
4084
- }
4085
- /** The keys each table's block may hold; validators build strict schemas from these. */
4086
- declare const V2_KEYS: {
4087
- readonly components: readonly ["shape", "placement"];
4088
- readonly content_models: readonly ["shape", "placement", "category", "variants"];
4089
- readonly component_variant_groups: readonly ["variants"];
4280
+ /** What a `cms:<name>` import resolves: lowercase letters, digits and hyphens, at most 64 (the column). */
4281
+ declare const DOCK_UI_NAME: RegExp;
4282
+ /** The only imports a CMS source may make; anything else refuses `build.import_denied`. */
4283
+ declare const DOCK_UI_IMPORTS: readonly ["react", "react-dom", "@bettercms-ai/kit/*", "@bettercms-ai/dock-input"];
4284
+ declare const isDockUiImportAllowed: (specifier: string) => boolean;
4285
+ /** A CMS source's entry in the Merkle input, beside the repo's: `"cms:<name>@<version>": source_sha`. */
4286
+ declare const dockUiMerkleKey: (name: string, version: number) => string;
4287
+ /** What the builder recorded for the last validate or publish. */
4288
+ type DockUiBuildReceipt = {
4289
+ ok: true;
4290
+ version: number;
4291
+ bundleKey: string;
4292
+ bytes: number;
4293
+ builtAt: string;
4294
+ } | {
4295
+ ok: false;
4296
+ version: number;
4297
+ refusals: UiRefusal[];
4298
+ builtAt: string;
4090
4299
  };
4091
- /** Who last wrote a facet, weakest first: the generator, the site's own code, an agent, a person. */
4092
- declare const SOURCE_RANK: {
4093
- readonly auto: 0;
4094
- readonly site: 1;
4095
- readonly agent: 2;
4096
- readonly human: 3;
4300
+ type DockUiSource = {
4301
+ id: string;
4302
+ name: string;
4303
+ scope: DockUiScope;
4304
+ kind: DockUiKind;
4305
+ /** What the UI is for (a field path, a section, a page, the layout), per `scope`. */
4306
+ target: Record<string, unknown>;
4307
+ /** The newest saved version; 0 before the first write. */
4308
+ headVersion: number;
4309
+ /** The version the dock serves, null until the first publish. */
4310
+ publishedVersion: number | null;
4311
+ status: DockUiStatus;
4312
+ approvedBy: string | null;
4313
+ approvedAt: string | null;
4314
+ buildReceipt: DockUiBuildReceipt | null;
4315
+ createdAt: string;
4316
+ updatedAt: string;
4097
4317
  };
4098
- type SchemaSource = keyof typeof SOURCE_RANK;
4099
- /** The facets a per-def `sources` map tracks. */
4100
- type SourcedFacet = "ui" | "input" | "ai";
4101
- /** A field's or prop's `sources`: server-owned, stamped on write, never taken from a client. */
4102
- type DefSources = Partial<Record<SourcedFacet, SchemaSource>>;
4103
- /**
4104
- * May `incoming` overwrite a facet `stored` last wrote? Never a weaker source over a stronger
4105
- * one, so a re-derive cannot undo a person's edit. Equal rank may: an agent revises its own work.
4106
- * An absent source is `auto`.
4107
- */
4108
- declare const mayOverwrite: (stored: SchemaSource | undefined, incoming: SchemaSource) => boolean;
4109
- declare const UI_REFUSAL_CODES: {
4110
- readonly schema: readonly ["facet_unclassified", "excluded_facet", "depth_exceeded", "validation_failed", "hash_mismatch", "non_finite_number", "shape_kind_mismatch", "block_field_unrenderable", "block_not_accepted", "derived_field", "feature_unknown"];
4111
- readonly build: readonly ["peer_missing", "kit_major_unsupported", "compile_error", "nondeterministic", "size_exceeded"];
4112
- readonly protocol: readonly ["unsupported", "handshake_timeout", "origin_mismatch", "write_denied"];
4113
- readonly runtime: readonly ["crashed", "blank", "csp_violation"];
4114
- readonly policy: readonly ["confirmation_required", "flag_off"];
4318
+ /** One append-only saved version. `sourceText` is left out of lists. */
4319
+ type DockUiVersion = {
4320
+ version: number;
4321
+ /** sha256 hex of `sourceText` */
4322
+ sourceSha: string;
4323
+ sourceText?: string;
4324
+ actorId: string | null;
4325
+ origin: DockUiOrigin;
4326
+ createdAt: string;
4115
4327
  };
4116
- type UiRefusalFamily = keyof typeof UI_REFUSAL_CODES;
4117
- type UiRefusal = {
4118
- [F in UiRefusalFamily]: {
4119
- family: F;
4120
- code: (typeof UI_REFUSAL_CODES)[F][number];
4121
- message: string;
4122
- /** What it is about: a facet name, a field type, a path. */
4123
- detail?: string;
4124
- };
4125
- }[UiRefusalFamily];
4126
- /** `schema.depth_exceeded` */
4127
- declare const uiRefusalId: (r: UiRefusal) => string;
4128
- declare const isUiRefusal: (v: unknown) => v is UiRefusal;
4129
- /** KEY_RESERVED, the API contract: `derived` (the Layout id prefix), `layout` and `page` (address prefixes). */
4130
- declare const KEY_RESERVED: ReadonlySet<string>;
4131
- /** The derive lane's minted-key bound: KEY_RESERVED and `id` (key-rules.ts RESERVED_KEYS). */
4132
- declare const DERIVE_MINTED_RESERVED: ReadonlySet<string>;
4133
- /** Keys that reach an object's prototype (safe-keys.ts FORBIDDEN_KEYS): also refused as KEY_RESERVED. */
4134
- declare const KEY_FORBIDDEN: ReadonlySet<string>;
4135
- /** A key with this lead is the platform's too (`_type`, `_key`, `_variant`): KEY_RESERVED. */
4136
- declare const KEY_RESERVED_PREFIX = "_";
4137
- /** KEY_FORMAT: a stored field key is a letter, then letters, digits, `-` and `_` (key-rules.ts API_KEY). */
4138
- declare const KEY_FORMAT: RegExp;
4139
- /** Whether the API refuses a key as KEY_RESERVED (content.ts keyRuleProblem). */
4140
- declare const isReservedKey: (key: string) => boolean;
4141
- /** Whether the derive lane may not mint a key (key-rules.ts isReservedKey): the API's words and `id`. */
4142
- declare const isDeriveReservedKey: (key: string) => boolean;
4143
- /**
4144
- * A primitive `array` (`config.itemType`): the item types it may list, the only config keys it may
4145
- * hold, and the item types an array with `zones` may not name (a list of values holds no rows).
4146
- * `minItems ≤ maxItems`, and both bound the primitive list only (beside `itemType`).
4147
- * src/lib/validation/schemas/content.ts ARRAY_ITEM_TYPES / PRIMITIVE_ARRAY_CONFIG_KEYS, in their order.
4148
- */
4149
- declare const PRIMITIVE_ARRAY_RULE: {
4150
- readonly itemTypes: readonly ["text", "number", "date", "image", "link", "richtext"];
4151
- readonly configKeys: readonly ["itemType", "minItems", "maxItems", "aliases"];
4152
- readonly notWithZones: readonly ["image", "link", "richtext"];
4328
+ /** write_dock_ui: saves a new version as a draft (creates the source on its first write). */
4329
+ type WriteDockUiInput = {
4330
+ name: string;
4331
+ scope: DockUiScope;
4332
+ kind: DockUiKind;
4333
+ target: Record<string, unknown>;
4334
+ source: string;
4153
4335
  };
4154
- declare function canonicalJson(value: unknown): string;
4155
- /**
4156
- * The definition a table's `schema_hash` is taken over: what a dock UI is built against. Names,
4157
- * slugs and list chrome are not in it. Migration 0503's schema_hash_clear_when_stale triggers clear
4158
- * the hash when exactly these change.
4159
- */
4160
- declare const SCHEMA_HASH_INPUTS: {
4161
- readonly components: readonly ["props", "tabs", "v2"];
4162
- readonly content_models: readonly ["fields", "fieldsets", "v2"];
4163
- readonly component_variant_groups: readonly ["canonicalInputs", "v2"];
4336
+ type WriteDockUiOutput = {
4337
+ source: DockUiSource;
4338
+ version: DockUiVersion;
4339
+ created: boolean;
4340
+ };
4341
+ /** approve_dock_ui: approves one version, so a later write is not approved with it. */
4342
+ type ApproveDockUiInput = {
4343
+ name: string;
4344
+ version: number;
4345
+ };
4346
+ type ApproveDockUiOutput = {
4347
+ source: DockUiSource;
4348
+ };
4349
+ /** validate_dock_ui: builds without publishing; the head version when `version` is left out. */
4350
+ type ValidateDockUiInput = {
4351
+ name: string;
4352
+ version?: number;
4353
+ };
4354
+ type ValidateDockUiOutput = {
4355
+ name: string;
4356
+ receipt: DockUiBuildReceipt;
4357
+ };
4358
+ /** publish_dock_ui: validates first, and publishes only an approved version that builds. */
4359
+ type PublishDockUiInput = {
4360
+ name: string;
4361
+ version?: number;
4362
+ };
4363
+ type PublishDockUiOutput = {
4364
+ ok: true;
4365
+ source: DockUiSource;
4366
+ receipt: Extract<DockUiBuildReceipt, {
4367
+ ok: true;
4368
+ }>;
4369
+ } | {
4370
+ ok: false;
4371
+ refusals: UiRefusal[];
4372
+ };
4373
+ type ListDockUiInput = {
4374
+ scope?: DockUiScope;
4375
+ status?: DockUiStatus;
4376
+ };
4377
+ type ListDockUiOutput = {
4378
+ sources: DockUiSource[];
4379
+ usage: {
4380
+ sources: number;
4381
+ bytes: number;
4382
+ limits: typeof DOCK_UI_LIMITS;
4383
+ };
4164
4384
  };
4165
- type SchemaHashTable = keyof typeof SCHEMA_HASH_INPUTS;
4166
- /**
4167
- * What `canonicalJson` hashes for one definition: exactly its table's inputs, so an unset key and a
4168
- * cleared one hash alike. `schema_hash` = "v1:" + sha256 hex of `canonicalJson(schemaHashInput(…))`.
4169
- */
4170
- declare function schemaHashInput(table: SchemaHashTable, def: Readonly<Record<string, unknown>>): Record<string, unknown>;
4171
4385
 
4172
4386
  /**
4173
4387
  * The rich-text features vocabulary: every name a field's `config.features` may carry.
@@ -4231,6 +4445,49 @@ type RichTextRefusalCode = "block_not_accepted" | "derived_field" | "feature_unk
4231
4445
  */
4232
4446
  declare const richTextRefusal: (code: RichTextRefusalCode, detail: string) => UiRefusal;
4233
4447
 
4448
+ /** Every way a create can be refused: a closed set, so the picker always names the reason. */
4449
+ declare const REFERENCE_CREATE_REFUSAL_CODES: readonly ["no_title_field", "not_an_entry_model", "singleton", "model_not_found", "forbidden", "branch_readonly", "title_invalid", "locale_required", "slug_exhausted", "unique_conflict", "in_progress"];
4450
+ type ReferenceCreateRefusalCode = (typeof REFERENCE_CREATE_REFUSAL_CODES)[number];
4451
+ /** A refusal as the endpoint sends it: `code` is `reference_create.<code>`, `reason` adds the detail. */
4452
+ type ReferenceCreateRefusal = {
4453
+ code: `reference_create.${ReferenceCreateRefusalCode}`;
4454
+ reason: string;
4455
+ };
4456
+ /**
4457
+ * One refusal, named the same way everywhere: `reason` is `reference_create.<code>:<detail>`
4458
+ * (a model slug, the title's limit, a permission), so a caller can show or match it.
4459
+ */
4460
+ declare const referenceCreateRefusal: (code: ReferenceCreateRefusalCode, detail: string) => ReferenceCreateRefusal;
4461
+ /** Whether the picker may offer "Create new" for a target: the host passes `createReference` only on `ok`. */
4462
+ type ReferenceCreateCapability = {
4463
+ ok: true;
4464
+ } | ({
4465
+ ok: false;
4466
+ } & ReferenceCreateRefusal);
4467
+ /** The created (or replayed) entry, as the picker lists it: the search endpoint's entry option. */
4468
+ type ReferenceCreatedOption = {
4469
+ kind: "entry";
4470
+ id: string;
4471
+ title: string;
4472
+ /** `<Model> · draft` */
4473
+ subtitle: string | null;
4474
+ status: string | null;
4475
+ modelSlug?: string;
4476
+ url?: string | null;
4477
+ };
4478
+ type ReferenceCreateResult = {
4479
+ option: ReferenceCreatedOption;
4480
+ /** false on an idempotent replay, or when an existing entry answered the title. */
4481
+ created: boolean;
4482
+ slug: string;
4483
+ /** The required fields the draft still lacks, so the picker can say what is left to fill. */
4484
+ completeness: {
4485
+ missingRequired: string[];
4486
+ };
4487
+ /** Whether the new entry passes the field's reference filter (it is selected either way). */
4488
+ satisfiesFilter: boolean;
4489
+ };
4490
+
4234
4491
  /**
4235
4492
  * What a delivered rich-text value carries for its embeds, beside its `html`: the one shape the
4236
4493
  * server writes (at html-cache build), the SDK surfaces and every renderer reads.
@@ -4261,4 +4518,4 @@ interface RichTextEmbeds {
4261
4518
  */
4262
4519
  declare const slugify: (s: string) => string;
4263
4520
 
4264
- export { type AlignToken, type AllowRule, type ApiError, type ApiKey, type ApiKeyPermission, type ApiKeyTokenType, type ArrayZoneConfig, type AssertEqual, type AuthResponse, type AuthSession, type AuthUser, BLOCK_BINDINGS, BLOCK_FIELD_TYPES, BLOCK_FIELD_TYPES_RENDERABLE_NOW, BODY_SCHEMA_ORIGINS, BREAKPOINTS, BUTTON_ACTIONS, BUTTON_FULL_WIDTH_INVALID, BUTTON_ICONS, BUTTON_ICON_NAMES, BUTTON_LOOK_KEYS, BUTTON_PLACEMENT_KEYS, BUTTON_SIZES, BUTTON_VARIANTS, type BetterCMSErrorCode, type BgToken, type BindingKind, type BlockBinding, type BlockHoverStyle, type BlockStyle, type BlockType, type BodySchema, type BodySchemaOrigin, type ButtonAction, type ButtonBlock, type ButtonIcon, type ButtonLinkCandidate, type ButtonLookKey, type ButtonProps, type ButtonSiteLook, type ButtonSizeName, type ButtonValue, type ButtonVariant, CANVAS_GESTURE_NAMES, CODE_SLOT_PREFIX, COMPONENT_PROP_TYPES, CONTROL_HELP, type CanonicalInputDefinition, type CanvasGesture, type ChoiceOption, type CollectionBlock, type CollectionFilter, type CollectionProps, type ColorToken, type ColumnsBlock, type ColumnsProps, type Component, type ComponentBlock, type ComponentCategory, type ComponentFormPropRef, type ComponentPreview, type ComponentPropDef, type ComponentPropType, type ComponentPropUi, type ComponentProps, type ComponentSubField, type ComponentTab, type ComponentV2, type ComponentVariantGroup, type Content, type ContentBlock, type ContentEntry, type ContentModel, type ContentModelField, type ContentModelFieldType, type ContentModelFieldUi, type ContentModelV2, type ContentPageResult, type ContentResponse, type ContentWidthToken, type ControlKind, type CornerToken, DEPTH_MAX, DERIVE_MINTED_RESERVED, DIALOG_SELECTOR, DOCK_BUDGET, DOCK_ICON_NAMES, DOCK_ICON_NAME_SET, type DeepReadonly, type DefSources, type DeliveredLayout, type DeliveryComponent, type DeliveryEntry, type DeliveryEntrySeo, type DeliveryList, type DeliveryPage, type DerivedLocator, type DockBudget, type DockFieldLike, type DockFieldsetLike, type DockIconName, type DockInputRef, type DockLane, type DockNode, type DockPropGroupLike, type DockScreen, type ElementLike, type EmbedCard, type ExpandedBinding, FIELD_SIZE_ZOOM, FIELD_STYLE_KEYS, FOOTER_SECTION_ID, type FieldConfig, type FieldSize, type FieldStyle, type FieldStyleKey, type FieldStyles, type Fieldset, type FieldsetKind, type FieldsetUiBefore, type FontSizeToken, type FooterBlock, type FooterColumn, type FooterProps, type Form, type FormBlock, type FormField, type FormProps, type FormSubmission, HELP_CAPS, HELP_MAX, type HeadingBlock, type HeadingProps, IMAGE_ASPECTS, IMAGE_FRAME_RADIUS, type ImageAspect, type ImageBlock, type ImageProps, KEY_FORBIDDEN, KEY_FORMAT, KEY_RESERVED, KEY_RESERVED_PREFIX, KIT_CATEGORIES, type KitCategory, LANDMARK_SELECTOR, LAYOUT_SECTION_ICONS, LAYOUT_SECTION_ICON_SET, LINK_RELS, LINK_VALUE_TYPES, LIST_ITEMS_CAP, LOCATOR_PATH, type LandmarkChainElement, type LandmarkElement, type LayoutComponentItem, type LayoutDataDocument, type LayoutFieldDefinition, type LayoutFieldItem, type LayoutFieldType, type LayoutScalarFieldType, type LayoutSection, type LayoutSectionIcon, type LayoutSectionItem, type LayoutStructureDocument, type LayoutZone, type LinkPairSibling, type LinkRel, type LinkValue, type LinkValueType, type LocatorGrammar, MAIN_SELECTOR, type ManagementLayoutCommand, type MediaAsset, type MediaCaptionTrack, type MediaFieldValue, NAVIGATION_SECTION_ID, type NavLink, type NavbarBlock, type NavbarProps, type NumberFieldFormat, type NumberScale, OPTION_DESCRIPTION_MAX, type OpenMode, PAGE_CONTENT_ANCHOR_ID, PRIMITIVE_ARRAY_RULE, type Page, type PageLayoutOverrideDataDocument, type PageLayoutOverrideDocument, type PageLayoutOverrideState, type PageLayoutOverrideStructureDocument, type PageLayoutSectionOverride, type PageLayoutSectionStructureOverride, type PageMetaJson, type PageOnlyLayoutSection, type PageSectionPlacement, type PaginatedResult, type Perspective, type PortableTextDocument, type PortableTextNode, type PropGroup, type PropTab, RESPONSIVE_CSS, RICHTEXT_ADVANCED_ELEMENTS, RICHTEXT_BLOCK_ELEMENTS, RICHTEXT_BLOCK_FEATURES, RICHTEXT_CORE_ELEMENTS, RICHTEXT_ELEMENTS, RICHTEXT_FEATURES, RICHTEXT_FEATURE_ALIASES, RICHTEXT_HEADING_FEATURES, RICHTEXT_MARK_FEATURES, RICHTEXT_TOGGLE_FEATURES, ROLE_HELP, ROLE_KEYS, type RadiusToken, type ReadButtonValue, type Redirect, type ReservedLayoutSection, type ResolvedLayoutNode, type RichTextBlock, type RichTextElementName, type RichTextEmbeds, type RichTextFeature, type RichTextProps, type RichTextRefusalCode, SCHEMA_HASH_INPUTS, SECTION_DOCTRINE, SECTION_SPACE_TOKENS, SEGMENTED_MAX, SEGMENTED_MIN, SIDE_SPACE_MIN_PX, SIDE_SPACE_TOKENS, SLOT_CHILD_KEYS, SLOT_ITEMS_CAP, SLOT_MAX_ITEMS, SLOT_SETTINGS_MAX, SLOT_SETTINGS_TYPES, SOURCE_RANK, SPACE_BOTTOM_TOKENS, SPACE_STEP_TOKENS, type ScaleUnit, type SchemaHashTable, type SchemaSource, type SectionBlock, type SectionPlanItem, type SectionProps, type SectionSpaceToken, type ShadowToken, type ShowIf, type ShowIfRule, type SignInInput, type SignUpInput, type SiteSeoDefaults, type SlideItem, type SliderBlock, type SliderProps, type SlotChild, type SlotItem, type SlotShapeOptions, type SlotShapeProblem, type SlotValue, type SourcedFacet, type SpaceStepToken, type SpaceToken, type SpacerBlock, type SpacerProps, TABLE_COLUMN_TYPES, TABLE_JSONLD_TYPES, TABLE_LIMITS, TABLE_RESPONSIVE, TAB_MAX, TAB_MAX_RENDERABLE_NOW, TAG_HEADS, type TabItem, type TableCell, type TableCellObject, type TableCellValue, type TableCheckOptions, type TableColumn, type TableColumnType, type TableFieldOptions, type TableFootnote, type TableGroup, type TableLink, type TableProblem, type TableRef, type TableRefResolved, type TableRow, type TableValue, type TabsBlock, type TabsProps, type TextBlock, type TextProps, type ThemeToken, UI_REFUSAL_CODES, type UiBefore, type UiOrigin, type UiRefusal, type UiRefusalFamily, type V2Placement, type V2Shape, type V2VariantMeta, V2_KEYS, V2_PLACEMENTS, V2_SHAPES, VIDEO_TRANSCRIPT_MAX, VIDEO_VALUE_KEYS, type VariantGroupV2, type VariantInputMapping, type VideoBlock, type VideoProps, type VideoValue, type VisibilityWindow, type WeightToken, type WindowState, type Workspace, type ZoneField, allowRuleOf, anchorTargetRel, blockStyleToColumnCss, blockStyleToCss, blockStyleToInnerCss, bodySchemaOf, buttonBlockProps, buttonFullWidthProblem, buttonIconOf, buttonIconSvg, buttonLinkPairs, buttonLookValue, buttonSiteLookOf, buttonValueOfInstance, buttonValueProblem, buttonVariantOf, candidateRole, canonicalJson, componentInstanceAddresses, componentPropTargetKey, derivedPairs, dockBudget, dockScreens, exampleFor, expandBlockBindings, fieldGroupOf, fieldStyleCssText, fieldStyleToCss, formatNumber, formatPropsAttribute, getBlockType, headingPaintCss, hiddenEverywhere, hideOnAttr, imageFrameCss, inWindow, isBlock, isButtonLookValue, isChromeLandmark, isCodeButton, isDeriveReservedKey, isLinkObject, isReservedKey, isRoleKey, isRulePaired, isScriptHref, isSlotChild, isTableValue, isUiRefusal, keyWords, landmarkRegions, linkAnchorOf, linkHref, linkRefOf, linkValueProblem, locatorFor, locatorPath, mayOverwrite, normaliseRichTextFeatures, normalizeLinkValue, normalizeTableValue, normalizeWindow, parseNumberText, parsePropsAttribute, pickFieldStyle, placementBindOf, planSections, readButtonValue, readNumberFormat, readPath, regionOf, renderTableHtml, richTextRefusal, rulePartnerOf, safeCssUrl, schemaHashInput, sideFloorApplies, sideSpaceCss, slotBindOf, slotChildValues, slotItems, slotPathString, slotShapeProblems, slugify, spaceTokenCss, splitButtonStyle, tableCellText, tablePathString, tableRefCells, tableSearchText, tableToMarkdown, tableValueProblems, topFieldKeyOf, uiRefusalId, usesHideOn, videoUrlOf, videoValueProblem, visibleBlocks, visibleDeliveredLayout, visibleLayoutStructure, windowState, withButtonLookProps, withExample };
4521
+ export { type AlignToken, type AllowRule, type ApiError, type ApiKey, type ApiKeyPermission, type ApiKeyTokenType, type ApproveDockUiInput, type ApproveDockUiOutput, type ArrayZoneConfig, type AssertEqual, type AuthResponse, type AuthSession, type AuthUser, BLOCK_BINDINGS, BLOCK_FIELD_TYPES, BLOCK_FIELD_TYPES_RENDERABLE_NOW, BODY_SCHEMA_ORIGINS, BREAKPOINTS, BUTTON_ACTIONS, BUTTON_FULL_WIDTH_INVALID, BUTTON_ICONS, BUTTON_ICON_NAMES, BUTTON_LOOK_KEYS, BUTTON_PLACEMENT_KEYS, BUTTON_SIZES, BUTTON_VARIANTS, type BetterCMSErrorCode, type BgToken, type BindingKind, type BlockBinding, type BlockHoverStyle, type BlockStyle, type BlockType, type BodySchema, type BodySchemaOrigin, type ButtonAction, type ButtonBlock, type ButtonIcon, type ButtonLinkCandidate, type ButtonLookKey, type ButtonProps, type ButtonSiteLook, type ButtonSizeName, type ButtonValue, type ButtonVariant, CANVAS_GESTURE_NAMES, CATEGORY_ID_MAX, CATEGORY_ORDER, CODE_SLOT_PREFIX, COMPONENT_PROP_TYPES, CONTROL_HELP, type CanonicalInputDefinition, type CanvasGesture, type ChoiceOption, type CollectionBlock, type CollectionFilter, type CollectionProps, type ColorToken, type ColumnsBlock, type ColumnsProps, type Component, type ComponentBlock, type ComponentCategory, type ComponentCategoryId, type ComponentFormPropRef, type ComponentPreview, type ComponentPropDef, type ComponentPropType, type ComponentPropUi, type ComponentProps, type ComponentSubField, type ComponentTab, type ComponentV2, type ComponentVariantGroup, type Content, type ContentBlock, type ContentEntry, type ContentModel, type ContentModelField, type ContentModelFieldType, type ContentModelFieldUi, type ContentModelV2, type ContentPageResult, type ContentResponse, type ContentWidthToken, type ControlKind, type CornerToken, DEPTH_MAX, DERIVE_MINTED_RESERVED, DIALOG_SELECTOR, DOCK_BUDGET, DOCK_ICON_NAMES, DOCK_ICON_NAME_SET, DOCK_UI_IMPORTS, DOCK_UI_LIMITS, DOCK_UI_NAME, type DeepReadonly, type DefSources, type DeliveredLayout, type DeliveryComponent, type DeliveryEntry, type DeliveryEntrySeo, type DeliveryList, type DeliveryPage, type DerivedLocator, type DockBudget, type DockFieldLike, type DockFieldsetLike, type DockIconName, type DockInputRef, type DockLane, type DockNode, type DockPropGroupLike, type DockScreen, type DockUiBuildReceipt, type DockUiKind, type DockUiOrigin, type DockUiScope, type DockUiSource, type DockUiStatus, type DockUiVersion, type ElementLike, type EmbedCard, type ExpandedBinding, FIELD_SIZE_ZOOM, FIELD_STYLE_KEYS, FOOTER_SECTION_ID, FRAME_REFUSALS, type FieldConfig, type FieldSize, type FieldStyle, type FieldStyleKey, type FieldStyles, type Fieldset, type FieldsetKind, type FieldsetUiBefore, type FontSizeToken, type FooterBlock, type FooterColumn, type FooterProps, type Form, type FormBlock, type FormField, type FormProps, type FormSubmission, HELP_CAPS, HELP_MAX, type HeadingBlock, type HeadingProps, IMAGE_ASPECTS, IMAGE_FRAME_RADIUS, type ImageAspect, type ImageBlock, type ImageProps, KEY_FORBIDDEN, KEY_FORMAT, KEY_RESERVED, KEY_RESERVED_PREFIX, KIT_CATEGORIES, type KitCategory, LANDMARK_SELECTOR, LAYOUT_SECTION_ICONS, LAYOUT_SECTION_ICON_SET, LINK_RELS, LINK_VALUE_TYPES, LIST_ITEMS_CAP, LIST_PREVIEW_SLOTS, LOCATOR_PATH, type LandmarkChainElement, type LandmarkElement, type LayoutComponentItem, type LayoutDataDocument, type LayoutFieldDefinition, type LayoutFieldItem, type LayoutFieldType, type LayoutScalarFieldType, type LayoutSection, type LayoutSectionIcon, type LayoutSectionItem, type LayoutStructureDocument, type LayoutZone, type LinkPairSibling, type LinkRel, type LinkValue, type LinkValueType, type ListDockUiInput, type ListDockUiOutput, type LocatorGrammar, MAIN_SELECTOR, type ManagementLayoutCommand, type MediaAsset, type MediaCaptionTrack, type MediaFieldValue, NAVIGATION_SECTION_ID, type NavLink, type NavbarBlock, type NavbarProps, type NumberFieldFormat, type NumberScale, OPEN_MODES, OPEN_MODE_TYPES, OPTION_DESCRIPTION_MAX, type OpenMode, PAGE_CONTENT_ANCHOR_ID, PRIMITIVE_ARRAY_RULE, type Page, type PageLayoutOverrideDataDocument, type PageLayoutOverrideDocument, type PageLayoutOverrideState, type PageLayoutOverrideStructureDocument, type PageLayoutSectionOverride, type PageLayoutSectionStructureOverride, type PageMetaJson, type PageOnlyLayoutSection, type PageSectionPlacement, type PaginatedResult, type Perspective, type PortableTextDocument, type PortableTextNode, type PropGroup, type PropTab, type PublishDockUiInput, type PublishDockUiOutput, REFERENCE_CREATE_REFUSAL_CODES, RESPONSIVE_CSS, RICHTEXT_ADVANCED_ELEMENTS, RICHTEXT_BLOCK_ELEMENTS, RICHTEXT_BLOCK_FEATURES, RICHTEXT_CORE_ELEMENTS, RICHTEXT_ELEMENTS, RICHTEXT_FEATURES, RICHTEXT_FEATURE_ALIASES, RICHTEXT_HEADING_FEATURES, RICHTEXT_MARK_FEATURES, RICHTEXT_TOGGLE_FEATURES, ROLE_HELP, ROLE_KEYS, type RadiusToken, type ReadButtonValue, type Redirect, type ReferenceCreateCapability, type ReferenceCreateRefusal, type ReferenceCreateRefusalCode, type ReferenceCreateResult, type ReferenceCreatedOption, type ReservedLayoutSection, type ResolvedAuthor, type ResolvedLayoutNode, type ResolvedPost, type RichTextBlock, type RichTextElementName, type RichTextEmbeds, type RichTextFeature, type RichTextProps, type RichTextRefusalCode, type RichTextResolved, SCHEMA_HASH_INPUTS, SECTION_DOCTRINE, SECTION_SPACE_TOKENS, SEGMENTED_MAX, SEGMENTED_MIN, SHOW_IF_SCOPES, SIDE_SPACE_MIN_PX, SIDE_SPACE_TOKENS, SLOT_CHILD_KEYS, SLOT_ITEMS_CAP, SLOT_MAX_ITEMS, SLOT_SETTINGS_MAX, SLOT_SETTINGS_TYPES, SOURCE_RANK, SPACE_BOTTOM_TOKENS, SPACE_STEP_TOKENS, type ScaleUnit, type SchemaHashTable, type SchemaSource, type SectionBlock, type SectionPlanItem, type SectionProps, type SectionSpaceToken, type ShadowToken, type ShowIf, type ShowIfRule, type SignInInput, type SignUpInput, type SiteSeoDefaults, type SlideItem, type SliderBlock, type SliderProps, type SlotChild, type SlotItem, type SlotShapeOptions, type SlotShapeProblem, type SlotValue, type SourcedFacet, type SpaceStepToken, type SpaceToken, type SpacerBlock, type SpacerProps, TABLE_COLUMN_TYPES, TABLE_JSONLD_TYPES, TABLE_LIMITS, TABLE_RESPONSIVE, TAB_MAX, TAB_MAX_RENDERABLE_NOW, TAG_HEADS, type TabItem, type TableCell, type TableCellObject, type TableCellValue, type TableCheckOptions, type TableColumn, type TableColumnType, type TableFieldOptions, type TableFootnote, type TableGroup, type TableLink, type TableProblem, type TableRef, type TableRefResolved, type TableRow, type TableValue, type TabsBlock, type TabsProps, type TextBlock, type TextProps, type ThemeToken, UI_PROTOCOLS, UI_REFUSAL_CODES, UI_REFUSAL_IDS, type UiBefore, type UiManifestEntry, type UiManifestV2, type UiOrigin, type UiProtocol, type UiRefusal, type UiRefusalFamily, type UiRefusalId, type V2Placement, type V2Shape, type V2VariantMeta, V2_KEYS, V2_PLACEMENTS, V2_SHAPES, VIDEO_TRANSCRIPT_MAX, VIDEO_VALUE_KEYS, type ValidateDockUiInput, type ValidateDockUiOutput, type VariantGroupV2, type VariantInputMapping, type VideoBlock, type VideoProps, type VideoValue, type VisibilityWindow, type WeightToken, type WindowState, type Workspace, type WriteDockUiInput, type WriteDockUiOutput, type ZoneField, allowRuleOf, anchorTargetRel, blockStyleToColumnCss, blockStyleToCss, blockStyleToInnerCss, bodySchemaOf, buttonBlockProps, buttonFullWidthProblem, buttonIconOf, buttonIconSvg, buttonLinkPairs, buttonLookValue, buttonSiteLookOf, buttonValueOfInstance, buttonValueProblem, buttonVariantOf, candidateRole, canonicalJson, componentInstanceAddresses, componentPropTargetKey, derivedPairs, dockBudget, dockScreens, dockUiMerkleKey, exampleFor, expandBlockBindings, fieldGroupOf, fieldStyleCssText, fieldStyleToCss, formatNumber, formatPropsAttribute, getBlockType, headingPaintCss, hiddenEverywhere, hideOnAttr, imageFrameCss, inWindow, isBlock, isButtonLookValue, isChromeLandmark, isCodeButton, isDeriveReservedKey, isDockUiImportAllowed, isLinkObject, isReservedKey, isRoleKey, isRulePaired, isScriptHref, isSlotChild, isTableValue, isUiRefusal, keyWords, landmarkRegions, linkAnchorOf, linkHref, linkRefOf, linkValueProblem, locatorFor, locatorPath, mayOverwrite, normaliseRichTextFeatures, normalizeLinkValue, normalizeTableValue, normalizeWindow, parseNumberText, parsePropsAttribute, pickFieldStyle, placementBindOf, planSections, readButtonValue, readNumberFormat, readPath, referenceCreateRefusal, regionOf, renderTableHtml, richTextRefusal, rulePartnerOf, safeCssUrl, schemaHashInput, sideFloorApplies, sideSpaceCss, slotBindOf, slotChildValues, slotItems, slotPathString, slotShapeProblems, slugify, spaceTokenCss, splitButtonStyle, tableCellText, tablePathString, tableRefCells, tableSearchText, tableToMarkdown, tableValueProblems, topFieldKeyOf, uiRefusalId, usesHideOn, videoUrlOf, videoValueProblem, visibleBlocks, visibleDeliveredLayout, visibleLayoutStructure, windowState, withButtonLookProps, withExample };