@cloudhal/core-contracts 0.5.0 → 0.6.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.
@@ -452,6 +452,28 @@ export declare const SiteSchema: {
452
452
  };
453
453
  };
454
454
  };
455
+ readonly CollectionExpiry: {
456
+ readonly type: "object";
457
+ readonly description: "RFC-0042: a time gate every entry derives from one of its date or datetime fields, checked at render time like Availability.until. A date ends at the start of the next day in the site's time zone.";
458
+ readonly additionalProperties: false;
459
+ readonly required: readonly ["field", "action"];
460
+ readonly properties: {
461
+ readonly field: {
462
+ readonly $ref: "#/$defs/FieldKey";
463
+ };
464
+ readonly action: {
465
+ readonly type: "string";
466
+ readonly description: "unlist: the page stays, the entry leaves listings, feeds, the sitemap and search. hide: every public route answers 404.";
467
+ readonly enum: readonly ["unlist", "hide"];
468
+ };
469
+ readonly afterMinutes: {
470
+ readonly type: "integer";
471
+ readonly description: "Grace after the field's instant. Absent: 0.";
472
+ readonly minimum: 0;
473
+ readonly maximum: 10080;
474
+ };
475
+ };
476
+ };
455
477
  readonly CollectionLabel: {
456
478
  readonly type: "object";
457
479
  readonly additionalProperties: false;
@@ -521,6 +543,22 @@ export declare const SiteSchema: {
521
543
  readonly $ref: "#/$defs/FieldDefinition";
522
544
  };
523
545
  };
546
+ readonly listFields: {
547
+ readonly type: "array";
548
+ readonly description: "RFC-0042: fields that listings, queries, Studio columns and MCP may filter and sort by, in column order. Keys of this collection's fields (checked in code).";
549
+ readonly minItems: 1;
550
+ readonly maxItems: 4;
551
+ readonly uniqueItems: true;
552
+ readonly items: {
553
+ readonly $ref: "#/$defs/FieldKey";
554
+ };
555
+ };
556
+ readonly expiry: {
557
+ readonly $ref: "#/$defs/CollectionExpiry";
558
+ };
559
+ readonly structuredData: {
560
+ readonly $ref: "#/$defs/StructuredDataPreset";
561
+ };
524
562
  };
525
563
  };
526
564
  readonly Consent: {
@@ -565,6 +603,44 @@ export declare const SiteSchema: {
565
603
  };
566
604
  };
567
605
  };
606
+ readonly EntryValueProperty: {
607
+ readonly type: "string";
608
+ readonly description: "RFC-0042: entry properties a structured-data property may read.";
609
+ readonly enum: readonly ["title", "summary", "body", "coverImage", "url", "publishedAt", "updatedAt"];
610
+ };
611
+ readonly FieldCondition: {
612
+ readonly type: "object";
613
+ readonly description: "RFC-0042: one condition on a typed field of the listed collection. `value` is read by the field's type: a number, YYYY-MM-DD, an RFC 3339 instant, true/false, an option value, or `now`. `values` only with `in`.";
614
+ readonly additionalProperties: false;
615
+ readonly required: readonly ["field", "op"];
616
+ readonly properties: {
617
+ readonly field: {
618
+ readonly type: "string";
619
+ readonly description: "A field key (site.schema.json FieldKey's pattern, repeated).";
620
+ readonly pattern: "^[a-z][A-Za-z0-9]{0,39}$";
621
+ };
622
+ readonly op: {
623
+ readonly type: "string";
624
+ readonly enum: readonly ["eq", "ne", "lt", "lte", "gt", "gte", "in", "set", "unset"];
625
+ };
626
+ readonly value: {
627
+ readonly type: "string";
628
+ readonly minLength: 1;
629
+ readonly maxLength: 100;
630
+ };
631
+ readonly values: {
632
+ readonly type: "array";
633
+ readonly minItems: 1;
634
+ readonly maxItems: 20;
635
+ readonly uniqueItems: true;
636
+ readonly items: {
637
+ readonly type: "string";
638
+ readonly minLength: 1;
639
+ readonly maxLength: 100;
640
+ };
641
+ };
642
+ };
643
+ };
568
644
  readonly FieldDefinition: {
569
645
  readonly description: "RFC-0041: one typed custom field of a collection, discriminated by `type`.";
570
646
  readonly oneOf: readonly [{
@@ -944,6 +1020,23 @@ export declare const SiteSchema: {
944
1020
  };
945
1021
  };
946
1022
  };
1023
+ readonly FieldOrder: {
1024
+ readonly type: "object";
1025
+ readonly description: "RFC-0042: order a listing by a number, date or datetime field. Entries without a value sort last.";
1026
+ readonly additionalProperties: false;
1027
+ readonly required: readonly ["field", "direction"];
1028
+ readonly properties: {
1029
+ readonly field: {
1030
+ readonly type: "string";
1031
+ readonly description: "A field key (site.schema.json FieldKey's pattern, repeated).";
1032
+ readonly pattern: "^[a-z][A-Za-z0-9]{0,39}$";
1033
+ };
1034
+ readonly direction: {
1035
+ readonly type: "string";
1036
+ readonly enum: readonly ["asc", "desc"];
1037
+ };
1038
+ };
1039
+ };
947
1040
  readonly FooterColumn: {
948
1041
  readonly type: "object";
949
1042
  readonly additionalProperties: false;
@@ -1232,6 +1325,18 @@ export declare const SiteSchema: {
1232
1325
  readonly minLength: 1;
1233
1326
  readonly maxLength: 512;
1234
1327
  };
1328
+ readonly where: {
1329
+ readonly type: "array";
1330
+ readonly description: "RFC-0042: conditions on the collection's list fields, ANDed.";
1331
+ readonly minItems: 1;
1332
+ readonly maxItems: 4;
1333
+ readonly items: {
1334
+ readonly $ref: "#/$defs/FieldCondition";
1335
+ };
1336
+ };
1337
+ readonly orderBy: {
1338
+ readonly $ref: "#/$defs/FieldOrder";
1339
+ };
1235
1340
  };
1236
1341
  }, {
1237
1342
  readonly type: "object";
@@ -1292,6 +1397,11 @@ export declare const SiteSchema: {
1292
1397
  };
1293
1398
  }];
1294
1399
  };
1400
+ readonly SiteValueProperty: {
1401
+ readonly type: "string";
1402
+ readonly description: "RFC-0042: site properties a structured-data property may read.";
1403
+ readonly enum: readonly ["name", "url", "logo"];
1404
+ };
1295
1405
  readonly Slug: {
1296
1406
  readonly type: "string";
1297
1407
  readonly description: "Lower-case URL segment.";
@@ -1315,6 +1425,98 @@ export declare const SiteSchema: {
1315
1425
  };
1316
1426
  };
1317
1427
  };
1428
+ readonly StructuredDataPreset: {
1429
+ readonly type: "object";
1430
+ readonly description: "RFC-0042: the JSON-LD type an entry page emits in place of BlogPosting, with its properties mapped to value sources. Paths, fitting field types and required properties are a closed table in code (@cloudhal/core-ts/structured-data).";
1431
+ readonly additionalProperties: false;
1432
+ readonly required: readonly ["type", "properties"];
1433
+ readonly properties: {
1434
+ readonly type: {
1435
+ readonly type: "string";
1436
+ readonly enum: readonly ["Event", "JobPosting", "Product", "Recipe"];
1437
+ };
1438
+ readonly properties: {
1439
+ readonly type: "object";
1440
+ readonly description: "Keyed by property path, e.g. startDate or location.address.addressLocality.";
1441
+ readonly propertyNames: {
1442
+ readonly type: "string";
1443
+ readonly pattern: "^[a-z][A-Za-z]{0,39}(\\.[a-z][A-Za-z]{0,39}){0,2}$";
1444
+ };
1445
+ readonly minProperties: 1;
1446
+ readonly maxProperties: 40;
1447
+ readonly additionalProperties: {
1448
+ readonly $ref: "#/$defs/StructuredDataSource";
1449
+ };
1450
+ };
1451
+ };
1452
+ };
1453
+ readonly StructuredDataSource: {
1454
+ readonly description: "RFC-0042: where one JSON-LD property's value comes from, discriminated by `kind`.";
1455
+ readonly oneOf: readonly [{
1456
+ readonly title: "FieldValueSource";
1457
+ readonly type: "object";
1458
+ readonly description: "A typed field of this collection, converted by its type.";
1459
+ readonly additionalProperties: false;
1460
+ readonly required: readonly ["kind", "field"];
1461
+ readonly properties: {
1462
+ readonly kind: {
1463
+ readonly type: "string";
1464
+ readonly enum: readonly ["field"];
1465
+ };
1466
+ readonly field: {
1467
+ readonly $ref: "#/$defs/FieldKey";
1468
+ };
1469
+ };
1470
+ }, {
1471
+ readonly title: "EntryValueSource";
1472
+ readonly type: "object";
1473
+ readonly description: "A built-in property of the entry.";
1474
+ readonly additionalProperties: false;
1475
+ readonly required: readonly ["kind", "property"];
1476
+ readonly properties: {
1477
+ readonly kind: {
1478
+ readonly type: "string";
1479
+ readonly enum: readonly ["entry"];
1480
+ };
1481
+ readonly property: {
1482
+ readonly $ref: "#/$defs/EntryValueProperty";
1483
+ };
1484
+ };
1485
+ }, {
1486
+ readonly title: "SiteValueSource";
1487
+ readonly type: "object";
1488
+ readonly description: "A property of the site.";
1489
+ readonly additionalProperties: false;
1490
+ readonly required: readonly ["kind", "property"];
1491
+ readonly properties: {
1492
+ readonly kind: {
1493
+ readonly type: "string";
1494
+ readonly enum: readonly ["site"];
1495
+ };
1496
+ readonly property: {
1497
+ readonly $ref: "#/$defs/SiteValueProperty";
1498
+ };
1499
+ };
1500
+ }, {
1501
+ readonly title: "ConstantValueSource";
1502
+ readonly type: "object";
1503
+ readonly description: "A plain-text constant: no control characters, no markup meaning; vocabulary-checked on enum paths (in code).";
1504
+ readonly additionalProperties: false;
1505
+ readonly required: readonly ["kind", "value"];
1506
+ readonly properties: {
1507
+ readonly kind: {
1508
+ readonly type: "string";
1509
+ readonly enum: readonly ["constant"];
1510
+ };
1511
+ readonly value: {
1512
+ readonly type: "string";
1513
+ readonly minLength: 1;
1514
+ readonly maxLength: 200;
1515
+ readonly pattern: "^[^\\x00-\\x1F\\x7F]+$";
1516
+ };
1517
+ };
1518
+ }];
1519
+ };
1318
1520
  readonly SurfaceComponent: {
1319
1521
  readonly type: "object";
1320
1522
  readonly description: "One element of a generative UI surface (RFC-0020 §1), in a flat list: `component` names a catalog entry (a PascalCase built-in primitive such as `Stack`, or a registry block type such as `callout`), `children` refer to other ids of the same surface, and `props` follow the entry's schema, which the store checks. Field names follow A2UI v0.9.";
@@ -1550,6 +1752,56 @@ export declare const PageSchema: {
1550
1752
  readonly enum: readonly [1];
1551
1753
  readonly description: "The markdown dialect a body follows (RFC-0014 §1): 1 = Cloudhal Markdown v1 (CommonMark + GFM + `asset:` + directives; raw HTML escaped). Set by the store on markdown bodies.";
1552
1754
  };
1755
+ readonly FieldCondition: {
1756
+ readonly type: "object";
1757
+ readonly description: "RFC-0042: one condition on a typed field of the listed collection. `value` is read by the field's type: a number, YYYY-MM-DD, an RFC 3339 instant, true/false, an option value, or `now`. `values` only with `in`.";
1758
+ readonly additionalProperties: false;
1759
+ readonly required: readonly ["field", "op"];
1760
+ readonly properties: {
1761
+ readonly field: {
1762
+ readonly type: "string";
1763
+ readonly description: "A field key (site.schema.json FieldKey's pattern, repeated).";
1764
+ readonly pattern: "^[a-z][A-Za-z0-9]{0,39}$";
1765
+ };
1766
+ readonly op: {
1767
+ readonly type: "string";
1768
+ readonly enum: readonly ["eq", "ne", "lt", "lte", "gt", "gte", "in", "set", "unset"];
1769
+ };
1770
+ readonly value: {
1771
+ readonly type: "string";
1772
+ readonly minLength: 1;
1773
+ readonly maxLength: 100;
1774
+ };
1775
+ readonly values: {
1776
+ readonly type: "array";
1777
+ readonly minItems: 1;
1778
+ readonly maxItems: 20;
1779
+ readonly uniqueItems: true;
1780
+ readonly items: {
1781
+ readonly type: "string";
1782
+ readonly minLength: 1;
1783
+ readonly maxLength: 100;
1784
+ };
1785
+ };
1786
+ };
1787
+ };
1788
+ readonly FieldOrder: {
1789
+ readonly type: "object";
1790
+ readonly description: "RFC-0042: order a listing by a number, date or datetime field. Entries without a value sort last.";
1791
+ readonly additionalProperties: false;
1792
+ readonly required: readonly ["field", "direction"];
1793
+ readonly properties: {
1794
+ readonly field: {
1795
+ readonly type: "string";
1796
+ readonly description: "A field key (site.schema.json FieldKey's pattern, repeated).";
1797
+ readonly pattern: "^[a-z][A-Za-z0-9]{0,39}$";
1798
+ };
1799
+ readonly direction: {
1800
+ readonly type: "string";
1801
+ readonly enum: readonly ["asc", "desc"];
1802
+ };
1803
+ };
1804
+ };
1553
1805
  readonly Id: {
1554
1806
  readonly type: "string";
1555
1807
  readonly description: "Prefixed, URL-safe identifier, e.g. site_01HZX8K3Q9. The prefix names the entity kind; agents and the MCP server pass these as opaque handles.";
@@ -1751,6 +2003,18 @@ export declare const PageSchema: {
1751
2003
  readonly minLength: 1;
1752
2004
  readonly maxLength: 512;
1753
2005
  };
2006
+ readonly where: {
2007
+ readonly type: "array";
2008
+ readonly description: "RFC-0042: conditions on the collection's list fields, ANDed.";
2009
+ readonly minItems: 1;
2010
+ readonly maxItems: 4;
2011
+ readonly items: {
2012
+ readonly $ref: "#/$defs/FieldCondition";
2013
+ };
2014
+ };
2015
+ readonly orderBy: {
2016
+ readonly $ref: "#/$defs/FieldOrder";
2017
+ };
1754
2018
  };
1755
2019
  }, {
1756
2020
  readonly type: "object";
@@ -2105,6 +2369,18 @@ export declare const SectionSchema: {
2105
2369
  readonly minLength: 1;
2106
2370
  readonly maxLength: 512;
2107
2371
  };
2372
+ readonly where: {
2373
+ readonly type: "array";
2374
+ readonly description: "RFC-0042: conditions on the collection's list fields, ANDed.";
2375
+ readonly minItems: 1;
2376
+ readonly maxItems: 4;
2377
+ readonly items: {
2378
+ readonly $ref: "#/$defs/FieldCondition";
2379
+ };
2380
+ };
2381
+ readonly orderBy: {
2382
+ readonly $ref: "#/$defs/FieldOrder";
2383
+ };
2108
2384
  };
2109
2385
  }, {
2110
2386
  readonly type: "object";
@@ -2229,6 +2505,56 @@ export declare const SectionSchema: {
2229
2505
  readonly enum: readonly [1];
2230
2506
  readonly description: "The markdown dialect a body follows (RFC-0014 §1): 1 = Cloudhal Markdown v1 (CommonMark + GFM + `asset:` + directives; raw HTML escaped). Set by the store on markdown bodies.";
2231
2507
  };
2508
+ readonly FieldCondition: {
2509
+ readonly type: "object";
2510
+ readonly description: "RFC-0042: one condition on a typed field of the listed collection. `value` is read by the field's type: a number, YYYY-MM-DD, an RFC 3339 instant, true/false, an option value, or `now`. `values` only with `in`.";
2511
+ readonly additionalProperties: false;
2512
+ readonly required: readonly ["field", "op"];
2513
+ readonly properties: {
2514
+ readonly field: {
2515
+ readonly type: "string";
2516
+ readonly description: "A field key (site.schema.json FieldKey's pattern, repeated).";
2517
+ readonly pattern: "^[a-z][A-Za-z0-9]{0,39}$";
2518
+ };
2519
+ readonly op: {
2520
+ readonly type: "string";
2521
+ readonly enum: readonly ["eq", "ne", "lt", "lte", "gt", "gte", "in", "set", "unset"];
2522
+ };
2523
+ readonly value: {
2524
+ readonly type: "string";
2525
+ readonly minLength: 1;
2526
+ readonly maxLength: 100;
2527
+ };
2528
+ readonly values: {
2529
+ readonly type: "array";
2530
+ readonly minItems: 1;
2531
+ readonly maxItems: 20;
2532
+ readonly uniqueItems: true;
2533
+ readonly items: {
2534
+ readonly type: "string";
2535
+ readonly minLength: 1;
2536
+ readonly maxLength: 100;
2537
+ };
2538
+ };
2539
+ };
2540
+ };
2541
+ readonly FieldOrder: {
2542
+ readonly type: "object";
2543
+ readonly description: "RFC-0042: order a listing by a number, date or datetime field. Entries without a value sort last.";
2544
+ readonly additionalProperties: false;
2545
+ readonly required: readonly ["field", "direction"];
2546
+ readonly properties: {
2547
+ readonly field: {
2548
+ readonly type: "string";
2549
+ readonly description: "A field key (site.schema.json FieldKey's pattern, repeated).";
2550
+ readonly pattern: "^[a-z][A-Za-z0-9]{0,39}$";
2551
+ };
2552
+ readonly direction: {
2553
+ readonly type: "string";
2554
+ readonly enum: readonly ["asc", "desc"];
2555
+ };
2556
+ };
2557
+ };
2232
2558
  readonly Id: {
2233
2559
  readonly type: "string";
2234
2560
  readonly description: "Prefixed, URL-safe identifier, e.g. site_01HZX8K3Q9. The prefix names the entity kind; agents and the MCP server pass these as opaque handles.";
@@ -6719,6 +7045,28 @@ export declare const schemas: {
6719
7045
  };
6720
7046
  };
6721
7047
  };
7048
+ readonly CollectionExpiry: {
7049
+ readonly type: "object";
7050
+ readonly description: "RFC-0042: a time gate every entry derives from one of its date or datetime fields, checked at render time like Availability.until. A date ends at the start of the next day in the site's time zone.";
7051
+ readonly additionalProperties: false;
7052
+ readonly required: readonly ["field", "action"];
7053
+ readonly properties: {
7054
+ readonly field: {
7055
+ readonly $ref: "#/$defs/FieldKey";
7056
+ };
7057
+ readonly action: {
7058
+ readonly type: "string";
7059
+ readonly description: "unlist: the page stays, the entry leaves listings, feeds, the sitemap and search. hide: every public route answers 404.";
7060
+ readonly enum: readonly ["unlist", "hide"];
7061
+ };
7062
+ readonly afterMinutes: {
7063
+ readonly type: "integer";
7064
+ readonly description: "Grace after the field's instant. Absent: 0.";
7065
+ readonly minimum: 0;
7066
+ readonly maximum: 10080;
7067
+ };
7068
+ };
7069
+ };
6722
7070
  readonly CollectionLabel: {
6723
7071
  readonly type: "object";
6724
7072
  readonly additionalProperties: false;
@@ -6788,6 +7136,22 @@ export declare const schemas: {
6788
7136
  readonly $ref: "#/$defs/FieldDefinition";
6789
7137
  };
6790
7138
  };
7139
+ readonly listFields: {
7140
+ readonly type: "array";
7141
+ readonly description: "RFC-0042: fields that listings, queries, Studio columns and MCP may filter and sort by, in column order. Keys of this collection's fields (checked in code).";
7142
+ readonly minItems: 1;
7143
+ readonly maxItems: 4;
7144
+ readonly uniqueItems: true;
7145
+ readonly items: {
7146
+ readonly $ref: "#/$defs/FieldKey";
7147
+ };
7148
+ };
7149
+ readonly expiry: {
7150
+ readonly $ref: "#/$defs/CollectionExpiry";
7151
+ };
7152
+ readonly structuredData: {
7153
+ readonly $ref: "#/$defs/StructuredDataPreset";
7154
+ };
6791
7155
  };
6792
7156
  };
6793
7157
  readonly Consent: {
@@ -6832,6 +7196,44 @@ export declare const schemas: {
6832
7196
  };
6833
7197
  };
6834
7198
  };
7199
+ readonly EntryValueProperty: {
7200
+ readonly type: "string";
7201
+ readonly description: "RFC-0042: entry properties a structured-data property may read.";
7202
+ readonly enum: readonly ["title", "summary", "body", "coverImage", "url", "publishedAt", "updatedAt"];
7203
+ };
7204
+ readonly FieldCondition: {
7205
+ readonly type: "object";
7206
+ readonly description: "RFC-0042: one condition on a typed field of the listed collection. `value` is read by the field's type: a number, YYYY-MM-DD, an RFC 3339 instant, true/false, an option value, or `now`. `values` only with `in`.";
7207
+ readonly additionalProperties: false;
7208
+ readonly required: readonly ["field", "op"];
7209
+ readonly properties: {
7210
+ readonly field: {
7211
+ readonly type: "string";
7212
+ readonly description: "A field key (site.schema.json FieldKey's pattern, repeated).";
7213
+ readonly pattern: "^[a-z][A-Za-z0-9]{0,39}$";
7214
+ };
7215
+ readonly op: {
7216
+ readonly type: "string";
7217
+ readonly enum: readonly ["eq", "ne", "lt", "lte", "gt", "gte", "in", "set", "unset"];
7218
+ };
7219
+ readonly value: {
7220
+ readonly type: "string";
7221
+ readonly minLength: 1;
7222
+ readonly maxLength: 100;
7223
+ };
7224
+ readonly values: {
7225
+ readonly type: "array";
7226
+ readonly minItems: 1;
7227
+ readonly maxItems: 20;
7228
+ readonly uniqueItems: true;
7229
+ readonly items: {
7230
+ readonly type: "string";
7231
+ readonly minLength: 1;
7232
+ readonly maxLength: 100;
7233
+ };
7234
+ };
7235
+ };
7236
+ };
6835
7237
  readonly FieldDefinition: {
6836
7238
  readonly description: "RFC-0041: one typed custom field of a collection, discriminated by `type`.";
6837
7239
  readonly oneOf: readonly [{
@@ -7211,6 +7613,23 @@ export declare const schemas: {
7211
7613
  };
7212
7614
  };
7213
7615
  };
7616
+ readonly FieldOrder: {
7617
+ readonly type: "object";
7618
+ readonly description: "RFC-0042: order a listing by a number, date or datetime field. Entries without a value sort last.";
7619
+ readonly additionalProperties: false;
7620
+ readonly required: readonly ["field", "direction"];
7621
+ readonly properties: {
7622
+ readonly field: {
7623
+ readonly type: "string";
7624
+ readonly description: "A field key (site.schema.json FieldKey's pattern, repeated).";
7625
+ readonly pattern: "^[a-z][A-Za-z0-9]{0,39}$";
7626
+ };
7627
+ readonly direction: {
7628
+ readonly type: "string";
7629
+ readonly enum: readonly ["asc", "desc"];
7630
+ };
7631
+ };
7632
+ };
7214
7633
  readonly FooterColumn: {
7215
7634
  readonly type: "object";
7216
7635
  readonly additionalProperties: false;
@@ -7499,6 +7918,18 @@ export declare const schemas: {
7499
7918
  readonly minLength: 1;
7500
7919
  readonly maxLength: 512;
7501
7920
  };
7921
+ readonly where: {
7922
+ readonly type: "array";
7923
+ readonly description: "RFC-0042: conditions on the collection's list fields, ANDed.";
7924
+ readonly minItems: 1;
7925
+ readonly maxItems: 4;
7926
+ readonly items: {
7927
+ readonly $ref: "#/$defs/FieldCondition";
7928
+ };
7929
+ };
7930
+ readonly orderBy: {
7931
+ readonly $ref: "#/$defs/FieldOrder";
7932
+ };
7502
7933
  };
7503
7934
  }, {
7504
7935
  readonly type: "object";
@@ -7559,6 +7990,11 @@ export declare const schemas: {
7559
7990
  };
7560
7991
  }];
7561
7992
  };
7993
+ readonly SiteValueProperty: {
7994
+ readonly type: "string";
7995
+ readonly description: "RFC-0042: site properties a structured-data property may read.";
7996
+ readonly enum: readonly ["name", "url", "logo"];
7997
+ };
7562
7998
  readonly Slug: {
7563
7999
  readonly type: "string";
7564
8000
  readonly description: "Lower-case URL segment.";
@@ -7582,6 +8018,98 @@ export declare const schemas: {
7582
8018
  };
7583
8019
  };
7584
8020
  };
8021
+ readonly StructuredDataPreset: {
8022
+ readonly type: "object";
8023
+ readonly description: "RFC-0042: the JSON-LD type an entry page emits in place of BlogPosting, with its properties mapped to value sources. Paths, fitting field types and required properties are a closed table in code (@cloudhal/core-ts/structured-data).";
8024
+ readonly additionalProperties: false;
8025
+ readonly required: readonly ["type", "properties"];
8026
+ readonly properties: {
8027
+ readonly type: {
8028
+ readonly type: "string";
8029
+ readonly enum: readonly ["Event", "JobPosting", "Product", "Recipe"];
8030
+ };
8031
+ readonly properties: {
8032
+ readonly type: "object";
8033
+ readonly description: "Keyed by property path, e.g. startDate or location.address.addressLocality.";
8034
+ readonly propertyNames: {
8035
+ readonly type: "string";
8036
+ readonly pattern: "^[a-z][A-Za-z]{0,39}(\\.[a-z][A-Za-z]{0,39}){0,2}$";
8037
+ };
8038
+ readonly minProperties: 1;
8039
+ readonly maxProperties: 40;
8040
+ readonly additionalProperties: {
8041
+ readonly $ref: "#/$defs/StructuredDataSource";
8042
+ };
8043
+ };
8044
+ };
8045
+ };
8046
+ readonly StructuredDataSource: {
8047
+ readonly description: "RFC-0042: where one JSON-LD property's value comes from, discriminated by `kind`.";
8048
+ readonly oneOf: readonly [{
8049
+ readonly title: "FieldValueSource";
8050
+ readonly type: "object";
8051
+ readonly description: "A typed field of this collection, converted by its type.";
8052
+ readonly additionalProperties: false;
8053
+ readonly required: readonly ["kind", "field"];
8054
+ readonly properties: {
8055
+ readonly kind: {
8056
+ readonly type: "string";
8057
+ readonly enum: readonly ["field"];
8058
+ };
8059
+ readonly field: {
8060
+ readonly $ref: "#/$defs/FieldKey";
8061
+ };
8062
+ };
8063
+ }, {
8064
+ readonly title: "EntryValueSource";
8065
+ readonly type: "object";
8066
+ readonly description: "A built-in property of the entry.";
8067
+ readonly additionalProperties: false;
8068
+ readonly required: readonly ["kind", "property"];
8069
+ readonly properties: {
8070
+ readonly kind: {
8071
+ readonly type: "string";
8072
+ readonly enum: readonly ["entry"];
8073
+ };
8074
+ readonly property: {
8075
+ readonly $ref: "#/$defs/EntryValueProperty";
8076
+ };
8077
+ };
8078
+ }, {
8079
+ readonly title: "SiteValueSource";
8080
+ readonly type: "object";
8081
+ readonly description: "A property of the site.";
8082
+ readonly additionalProperties: false;
8083
+ readonly required: readonly ["kind", "property"];
8084
+ readonly properties: {
8085
+ readonly kind: {
8086
+ readonly type: "string";
8087
+ readonly enum: readonly ["site"];
8088
+ };
8089
+ readonly property: {
8090
+ readonly $ref: "#/$defs/SiteValueProperty";
8091
+ };
8092
+ };
8093
+ }, {
8094
+ readonly title: "ConstantValueSource";
8095
+ readonly type: "object";
8096
+ readonly description: "A plain-text constant: no control characters, no markup meaning; vocabulary-checked on enum paths (in code).";
8097
+ readonly additionalProperties: false;
8098
+ readonly required: readonly ["kind", "value"];
8099
+ readonly properties: {
8100
+ readonly kind: {
8101
+ readonly type: "string";
8102
+ readonly enum: readonly ["constant"];
8103
+ };
8104
+ readonly value: {
8105
+ readonly type: "string";
8106
+ readonly minLength: 1;
8107
+ readonly maxLength: 200;
8108
+ readonly pattern: "^[^\\x00-\\x1F\\x7F]+$";
8109
+ };
8110
+ };
8111
+ }];
8112
+ };
7585
8113
  readonly SurfaceComponent: {
7586
8114
  readonly type: "object";
7587
8115
  readonly description: "One element of a generative UI surface (RFC-0020 §1), in a flat list: `component` names a catalog entry (a PascalCase built-in primitive such as `Stack`, or a registry block type such as `callout`), `children` refer to other ids of the same surface, and `props` follow the entry's schema, which the store checks. Field names follow A2UI v0.9.";
@@ -7817,6 +8345,56 @@ export declare const schemas: {
7817
8345
  readonly enum: readonly [1];
7818
8346
  readonly description: "The markdown dialect a body follows (RFC-0014 §1): 1 = Cloudhal Markdown v1 (CommonMark + GFM + `asset:` + directives; raw HTML escaped). Set by the store on markdown bodies.";
7819
8347
  };
8348
+ readonly FieldCondition: {
8349
+ readonly type: "object";
8350
+ readonly description: "RFC-0042: one condition on a typed field of the listed collection. `value` is read by the field's type: a number, YYYY-MM-DD, an RFC 3339 instant, true/false, an option value, or `now`. `values` only with `in`.";
8351
+ readonly additionalProperties: false;
8352
+ readonly required: readonly ["field", "op"];
8353
+ readonly properties: {
8354
+ readonly field: {
8355
+ readonly type: "string";
8356
+ readonly description: "A field key (site.schema.json FieldKey's pattern, repeated).";
8357
+ readonly pattern: "^[a-z][A-Za-z0-9]{0,39}$";
8358
+ };
8359
+ readonly op: {
8360
+ readonly type: "string";
8361
+ readonly enum: readonly ["eq", "ne", "lt", "lte", "gt", "gte", "in", "set", "unset"];
8362
+ };
8363
+ readonly value: {
8364
+ readonly type: "string";
8365
+ readonly minLength: 1;
8366
+ readonly maxLength: 100;
8367
+ };
8368
+ readonly values: {
8369
+ readonly type: "array";
8370
+ readonly minItems: 1;
8371
+ readonly maxItems: 20;
8372
+ readonly uniqueItems: true;
8373
+ readonly items: {
8374
+ readonly type: "string";
8375
+ readonly minLength: 1;
8376
+ readonly maxLength: 100;
8377
+ };
8378
+ };
8379
+ };
8380
+ };
8381
+ readonly FieldOrder: {
8382
+ readonly type: "object";
8383
+ readonly description: "RFC-0042: order a listing by a number, date or datetime field. Entries without a value sort last.";
8384
+ readonly additionalProperties: false;
8385
+ readonly required: readonly ["field", "direction"];
8386
+ readonly properties: {
8387
+ readonly field: {
8388
+ readonly type: "string";
8389
+ readonly description: "A field key (site.schema.json FieldKey's pattern, repeated).";
8390
+ readonly pattern: "^[a-z][A-Za-z0-9]{0,39}$";
8391
+ };
8392
+ readonly direction: {
8393
+ readonly type: "string";
8394
+ readonly enum: readonly ["asc", "desc"];
8395
+ };
8396
+ };
8397
+ };
7820
8398
  readonly Id: {
7821
8399
  readonly type: "string";
7822
8400
  readonly description: "Prefixed, URL-safe identifier, e.g. site_01HZX8K3Q9. The prefix names the entity kind; agents and the MCP server pass these as opaque handles.";
@@ -8018,6 +8596,18 @@ export declare const schemas: {
8018
8596
  readonly minLength: 1;
8019
8597
  readonly maxLength: 512;
8020
8598
  };
8599
+ readonly where: {
8600
+ readonly type: "array";
8601
+ readonly description: "RFC-0042: conditions on the collection's list fields, ANDed.";
8602
+ readonly minItems: 1;
8603
+ readonly maxItems: 4;
8604
+ readonly items: {
8605
+ readonly $ref: "#/$defs/FieldCondition";
8606
+ };
8607
+ };
8608
+ readonly orderBy: {
8609
+ readonly $ref: "#/$defs/FieldOrder";
8610
+ };
8021
8611
  };
8022
8612
  }, {
8023
8613
  readonly type: "object";
@@ -8372,6 +8962,18 @@ export declare const schemas: {
8372
8962
  readonly minLength: 1;
8373
8963
  readonly maxLength: 512;
8374
8964
  };
8965
+ readonly where: {
8966
+ readonly type: "array";
8967
+ readonly description: "RFC-0042: conditions on the collection's list fields, ANDed.";
8968
+ readonly minItems: 1;
8969
+ readonly maxItems: 4;
8970
+ readonly items: {
8971
+ readonly $ref: "#/$defs/FieldCondition";
8972
+ };
8973
+ };
8974
+ readonly orderBy: {
8975
+ readonly $ref: "#/$defs/FieldOrder";
8976
+ };
8375
8977
  };
8376
8978
  }, {
8377
8979
  readonly type: "object";
@@ -8496,6 +9098,56 @@ export declare const schemas: {
8496
9098
  readonly enum: readonly [1];
8497
9099
  readonly description: "The markdown dialect a body follows (RFC-0014 §1): 1 = Cloudhal Markdown v1 (CommonMark + GFM + `asset:` + directives; raw HTML escaped). Set by the store on markdown bodies.";
8498
9100
  };
9101
+ readonly FieldCondition: {
9102
+ readonly type: "object";
9103
+ readonly description: "RFC-0042: one condition on a typed field of the listed collection. `value` is read by the field's type: a number, YYYY-MM-DD, an RFC 3339 instant, true/false, an option value, or `now`. `values` only with `in`.";
9104
+ readonly additionalProperties: false;
9105
+ readonly required: readonly ["field", "op"];
9106
+ readonly properties: {
9107
+ readonly field: {
9108
+ readonly type: "string";
9109
+ readonly description: "A field key (site.schema.json FieldKey's pattern, repeated).";
9110
+ readonly pattern: "^[a-z][A-Za-z0-9]{0,39}$";
9111
+ };
9112
+ readonly op: {
9113
+ readonly type: "string";
9114
+ readonly enum: readonly ["eq", "ne", "lt", "lte", "gt", "gte", "in", "set", "unset"];
9115
+ };
9116
+ readonly value: {
9117
+ readonly type: "string";
9118
+ readonly minLength: 1;
9119
+ readonly maxLength: 100;
9120
+ };
9121
+ readonly values: {
9122
+ readonly type: "array";
9123
+ readonly minItems: 1;
9124
+ readonly maxItems: 20;
9125
+ readonly uniqueItems: true;
9126
+ readonly items: {
9127
+ readonly type: "string";
9128
+ readonly minLength: 1;
9129
+ readonly maxLength: 100;
9130
+ };
9131
+ };
9132
+ };
9133
+ };
9134
+ readonly FieldOrder: {
9135
+ readonly type: "object";
9136
+ readonly description: "RFC-0042: order a listing by a number, date or datetime field. Entries without a value sort last.";
9137
+ readonly additionalProperties: false;
9138
+ readonly required: readonly ["field", "direction"];
9139
+ readonly properties: {
9140
+ readonly field: {
9141
+ readonly type: "string";
9142
+ readonly description: "A field key (site.schema.json FieldKey's pattern, repeated).";
9143
+ readonly pattern: "^[a-z][A-Za-z0-9]{0,39}$";
9144
+ };
9145
+ readonly direction: {
9146
+ readonly type: "string";
9147
+ readonly enum: readonly ["asc", "desc"];
9148
+ };
9149
+ };
9150
+ };
8499
9151
  readonly Id: {
8500
9152
  readonly type: "string";
8501
9153
  readonly description: "Prefixed, URL-safe identifier, e.g. site_01HZX8K3Q9. The prefix names the entity kind; agents and the MCP server pass these as opaque handles.";