@bettercms-ai/types 1.33.0 → 1.35.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
@@ -205,7 +205,7 @@ interface ContentModelField {
205
205
  key: string;
206
206
  label: string;
207
207
  type: ContentModelFieldType;
208
- /** Shown to editors under the field — an import writes the field's copy as `e.g. "49"`. */
208
+ /** Shown to editors under the field: what it is for, where it shows, any constraint. Never its value. */
209
209
  helpText?: string;
210
210
  required?: boolean;
211
211
  /**
@@ -241,10 +241,14 @@ interface ContentModelField {
241
241
  ui?: ContentModelFieldUi;
242
242
  /** Server-owned: who named this field (label, help text). Only an `auto` name may be renamed by a derive. */
243
243
  nameSource?: "auto" | "human";
244
+ /** Server-owned: who wrote `helpText`. @see HelpSource */
245
+ helpSource?: HelpSource;
244
246
  /** Server-owned provenance of this field's chrome. @see UiOrigin */
245
247
  uiOrigin?: UiOrigin;
246
248
  /** Server-owned revert point. @see UiBefore */
247
249
  uiBefore?: UiBefore;
250
+ /** `true`: the last release's build renders this field on no route of its page — hidden, never deleted. `false`: a person keeps it shown. */
251
+ stale?: boolean;
248
252
  }
249
253
  /** @see ContentModelField.ui */
250
254
  interface ContentModelFieldUi {
@@ -313,6 +317,12 @@ interface DockInputRef {
313
317
  * (an array zone field with its own `config.zones`) is supported.
314
318
  */
315
319
  type ZoneField = ContentModelField;
320
+ /**
321
+ * Who wrote a help text or a description: the platform's generator (`auto`, rewritten whenever its
322
+ * wording improves), a person in the dashboard (`human`) or an agent over the API (`agent`). Only
323
+ * `auto` text is ever replaced. Server-owned: a client's copy is ignored.
324
+ */
325
+ type HelpSource = "auto" | "human" | "agent";
316
326
 
317
327
  /**
318
328
  * Page — a published content page within a workspace.
@@ -1128,6 +1138,12 @@ interface LayoutFieldDefinition {
1128
1138
  } & Record<string, unknown>;
1129
1139
  /** Required for group/repeater; forbidden for scalar fields. */
1130
1140
  fields?: LayoutFieldDefinition[];
1141
+ /** Shown to editors under the field. */
1142
+ helpText?: string;
1143
+ /** Server-owned: who wrote `helpText`. */
1144
+ helpSource?: "auto" | "human" | "agent";
1145
+ /** `true`: no route the last release inspected renders this field — hidden, never deleted. `false`: a person keeps it shown. */
1146
+ stale?: boolean;
1131
1147
  }
1132
1148
  /** The canonical public input contract all variants in a group implement. */
1133
1149
  type CanonicalInputDefinition = LayoutFieldDefinition;
@@ -1175,6 +1191,10 @@ interface LayoutSection {
1175
1191
  reserved?: ReservedLayoutSection;
1176
1192
  fields: LayoutFieldDefinition[];
1177
1193
  items: LayoutSectionItem[];
1194
+ /** What this Section is and which pages show it — for editors; no build reads it. */
1195
+ description?: string;
1196
+ /** Server-owned: who wrote `description`. */
1197
+ helpSource?: "auto" | "human" | "agent";
1178
1198
  /**
1179
1199
  * The language this Section is a VARIANT for — BCP-47, lowercase (`fr`, `pt-br`).
1180
1200
  *
@@ -1339,6 +1359,7 @@ type ManagementLayoutCommand = {
1339
1359
  slug?: string;
1340
1360
  zone?: LayoutZone;
1341
1361
  orderKey?: string;
1362
+ description?: string;
1342
1363
  } | {
1343
1364
  type: "remove-section";
1344
1365
  sectionId: string;
@@ -1559,6 +1580,8 @@ interface ComponentPropDef {
1559
1580
  required?: boolean;
1560
1581
  /** Hint shown under the control, muted. */
1561
1582
  helpText?: string;
1583
+ /** Server-owned: who wrote `helpText`. */
1584
+ helpSource?: "auto" | "human" | "agent";
1562
1585
  /** Ghost text inside a text-ish control. */
1563
1586
  placeholder?: string;
1564
1587
  /** Per-type settings; the save schema enforces that each is present on the type needing it. */
@@ -1597,6 +1620,8 @@ interface ComponentPropDef {
1597
1620
  uiOrigin?: UiOrigin;
1598
1621
  /** Server-owned revert point. @see UiBefore */
1599
1622
  uiBefore?: UiBefore;
1623
+ /** `true`: no placement the last release inspected renders this prop — hidden, never deleted. `false`: a person keeps it shown. */
1624
+ stale?: boolean;
1600
1625
  }
1601
1626
  /**
1602
1627
  * A top-level prop's dock group. Props have no fieldsets column, so the group rides inline: the
@@ -1624,6 +1649,7 @@ interface ComponentSubField {
1624
1649
  /** The same editor hints as the prop above, one level down. @see ComponentPropDef */
1625
1650
  required?: boolean;
1626
1651
  helpText?: string;
1652
+ helpSource?: "auto" | "human" | "agent";
1627
1653
  placeholder?: string;
1628
1654
  options?: string[];
1629
1655
  /** CANONICAL. A nested `group`/`table`'s own sub-shape. */