@cloudhal/core-contracts 0.3.10 → 0.3.12

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.
@@ -3,7 +3,7 @@
3
3
  * Source: packages/core-contracts/schemas/*.schema.json (run `pnpm gen`)
4
4
  */
5
5
  export type { SchemaVersion, Id, Slug, Revision, Timestamp, Project, Metadata } from "./project.js";
6
- export type { Locale, Section, BodyProfile, ActorKind, BodyBlocks, SurfaceComponentId, Path, Section1, TimeZone, Site, Domain, Localization, ThemeRef, Design, Brand, ImageRef, SocialLink, Chrome, ChromeHeader, HeaderAction, ChromeFooter, FooterColumn, HeroSection, Link, RichTextSection, BodyBlock, Actor, ImageSection, ContentListSection, ComponentSection, SurfaceSection, SurfaceComponent, Announcement, Consent } from "./site.js";
6
+ export type { Locale, Section, BodyProfile, ActorKind, BodyBlocks, SurfaceComponentId, Path, Section1, TimeZone, Site, Domain, Localization, CollectionSettings, ThemeRef, Design, Brand, ImageRef, SocialLink, Chrome, ChromeHeader, HeaderAction, ChromeFooter, FooterColumn, HeroSection, Link, RichTextSection, BodyBlock, Actor, ImageSection, ContentListSection, ComponentSection, SurfaceSection, SurfaceComponent, Announcement, Consent } from "./site.js";
7
7
  export type { PublishStatus, TranslationMethod, MotionLevel, Page, Seo, Availability, Translation } from "./page.js";
8
8
  export type { ContentEntry, Body, TermAssignment, Correction } from "./content-entry.js";
9
9
  export type { Snapshot, NodeRef, ChangeSummary } from "./snapshot.js";
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
 
9
-
9
+
10
10
 
11
11
 
12
12
 
@@ -144,6 +144,16 @@ export declare const SiteSchema: {
144
144
  readonly localization: {
145
145
  readonly $ref: "#/$defs/Localization";
146
146
  };
147
+ readonly collections: {
148
+ readonly type: "object";
149
+ readonly description: "RFC-0038: per-collection settings, keyed by collection (ContentEntry.collection). A collection without an entry here uses the defaults.";
150
+ readonly propertyNames: {
151
+ readonly $ref: "#/$defs/Slug";
152
+ };
153
+ readonly additionalProperties: {
154
+ readonly $ref: "#/$defs/CollectionSettings";
155
+ };
156
+ };
147
157
  readonly theme: {
148
158
  readonly $ref: "#/$defs/ThemeRef";
149
159
  };
@@ -441,6 +451,17 @@ export declare const SiteSchema: {
441
451
  };
442
452
  };
443
453
  };
454
+ readonly CollectionSettings: {
455
+ readonly type: "object";
456
+ readonly additionalProperties: false;
457
+ readonly properties: {
458
+ readonly permalink: {
459
+ readonly type: "string";
460
+ readonly description: "RFC-0038: where the collection's entries live, as a template with a closed token set. Version 1: one or more fixed lower-case path segments followed by /{slug}, e.g. /blog/{slug}. Absent means /<collection>/{slug}.";
461
+ readonly pattern: "^(/[a-z0-9]+(-[a-z0-9]+)*)+/\\{slug\\}$";
462
+ };
463
+ };
464
+ };
444
465
  readonly Consent: {
445
466
  readonly type: "object";
446
467
  readonly additionalProperties: false;
@@ -5950,6 +5971,16 @@ export declare const schemas: {
5950
5971
  readonly localization: {
5951
5972
  readonly $ref: "#/$defs/Localization";
5952
5973
  };
5974
+ readonly collections: {
5975
+ readonly type: "object";
5976
+ readonly description: "RFC-0038: per-collection settings, keyed by collection (ContentEntry.collection). A collection without an entry here uses the defaults.";
5977
+ readonly propertyNames: {
5978
+ readonly $ref: "#/$defs/Slug";
5979
+ };
5980
+ readonly additionalProperties: {
5981
+ readonly $ref: "#/$defs/CollectionSettings";
5982
+ };
5983
+ };
5953
5984
  readonly theme: {
5954
5985
  readonly $ref: "#/$defs/ThemeRef";
5955
5986
  };
@@ -6247,6 +6278,17 @@ export declare const schemas: {
6247
6278
  };
6248
6279
  };
6249
6280
  };
6281
+ readonly CollectionSettings: {
6282
+ readonly type: "object";
6283
+ readonly additionalProperties: false;
6284
+ readonly properties: {
6285
+ readonly permalink: {
6286
+ readonly type: "string";
6287
+ readonly description: "RFC-0038: where the collection's entries live, as a template with a closed token set. Version 1: one or more fixed lower-case path segments followed by /{slug}, e.g. /blog/{slug}. Absent means /<collection>/{slug}.";
6288
+ readonly pattern: "^(/[a-z0-9]+(-[a-z0-9]+)*)+/\\{slug\\}$";
6289
+ };
6290
+ };
6291
+ };
6250
6292
  readonly Consent: {
6251
6293
  readonly type: "object";
6252
6294
  readonly additionalProperties: false;
@@ -174,6 +174,16 @@ export const SiteSchema = {
174
174
  "localization": {
175
175
  "$ref": "#/$defs/Localization"
176
176
  },
177
+ "collections": {
178
+ "type": "object",
179
+ "description": "RFC-0038: per-collection settings, keyed by collection (ContentEntry.collection). A collection without an entry here uses the defaults.",
180
+ "propertyNames": {
181
+ "$ref": "#/$defs/Slug"
182
+ },
183
+ "additionalProperties": {
184
+ "$ref": "#/$defs/CollectionSettings"
185
+ }
186
+ },
177
187
  "theme": {
178
188
  "$ref": "#/$defs/ThemeRef"
179
189
  },
@@ -548,6 +558,17 @@ export const SiteSchema = {
548
558
  }
549
559
  }
550
560
  },
561
+ "CollectionSettings": {
562
+ "type": "object",
563
+ "additionalProperties": false,
564
+ "properties": {
565
+ "permalink": {
566
+ "type": "string",
567
+ "description": "RFC-0038: where the collection's entries live, as a template with a closed token set. Version 1: one or more fixed lower-case path segments followed by /{slug}, e.g. /blog/{slug}. Absent means /<collection>/{slug}.",
568
+ "pattern": "^(/[a-z0-9]+(-[a-z0-9]+)*)+/\\{slug\\}$"
569
+ }
570
+ }
571
+ },
551
572
  "Consent": {
552
573
  "type": "object",
553
574
  "additionalProperties": false,
@@ -120,6 +120,12 @@ export interface Site {
120
120
  pageIds: Id[];
121
121
  homePageId?: Id;
122
122
  localization?: Localization;
123
+ /**
124
+ * RFC-0038: per-collection settings, keyed by collection (ContentEntry.collection). A collection without an entry here uses the defaults.
125
+ */
126
+ collections?: {
127
+ [k: string]: CollectionSettings | undefined;
128
+ };
123
129
  theme: ThemeRef;
124
130
  design?: Design;
125
131
  brand?: Brand;
@@ -177,6 +183,16 @@ export interface Localization {
177
183
  */
178
184
  label?: "unreviewed" | "always";
179
185
  }
186
+ /**
187
+ * This interface was referenced by `Site`'s JSON-Schema
188
+ * via the `definition` "CollectionSettings".
189
+ */
190
+ export interface CollectionSettings {
191
+ /**
192
+ * RFC-0038: where the collection's entries live, as a template with a closed token set. Version 1: one or more fixed lower-case path segments followed by /{slug}, e.g. /blog/{slug}. Absent means /<collection>/{slug}.
193
+ */
194
+ permalink?: string;
195
+ }
180
196
  /**
181
197
  * Theme (a.k.a. Experience) applied by the renderer. Config is theme-defined and validated by the theme's own schema, not here.
182
198
  *
@@ -136,6 +136,12 @@
136
136
 
137
137
 
138
138
 
139
+
140
+
141
+
142
+
143
+
144
+
139
145
 
140
146
 
141
147
 
@@ -192,6 +198,16 @@
192
198
 
193
199
 
194
200
 
201
+
202
+ /**
203
+ * This interface was referenced by `Site`'s JSON-Schema
204
+ * via the `definition` "CollectionSettings".
205
+ */
206
+
207
+
208
+
209
+
210
+
195
211
 
196
212
  /**
197
213
  * Theme (a.k.a. Experience) applied by the renderer. Config is theme-defined and validated by the theme's own schema, not here.