@cloudhal/core-contracts 0.4.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;
@@ -512,6 +534,31 @@ export declare const SiteSchema: {
512
534
  readonly description: "RFC-0040: default order where none is given (Studio's list, entry queries without sort, MCP list_entries). Absent: newest.";
513
535
  readonly enum: readonly ["newest", "oldest", "title"];
514
536
  };
537
+ readonly fields: {
538
+ readonly type: "array";
539
+ readonly description: "RFC-0041: the collection's typed custom fields, in form order. Values live in ContentEntry.fields under each key. At most 200 per site and unique keys (checked in code).";
540
+ readonly minItems: 1;
541
+ readonly maxItems: 30;
542
+ readonly items: {
543
+ readonly $ref: "#/$defs/FieldDefinition";
544
+ };
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
+ };
515
562
  };
516
563
  };
517
564
  readonly Consent: {
@@ -556,618 +603,487 @@ export declare const SiteSchema: {
556
603
  };
557
604
  };
558
605
  };
559
- readonly FooterColumn: {
560
- readonly type: "object";
561
- readonly additionalProperties: false;
562
- readonly required: readonly ["heading", "menu"];
563
- readonly properties: {
564
- readonly heading: {
565
- readonly type: "string";
566
- readonly minLength: 1;
567
- readonly maxLength: 60;
568
- };
569
- readonly menu: {
570
- readonly $ref: "#/$defs/Slug";
571
- readonly description: "A menu key (RFC-0003).";
572
- };
573
- };
574
- };
575
- readonly HeaderAction: {
576
- readonly type: "object";
577
- readonly additionalProperties: false;
578
- readonly required: readonly ["kind"];
579
- readonly properties: {
580
- readonly kind: {
581
- readonly type: "string";
582
- readonly enum: readonly ["button", "search", "locale", "theme-toggle", "motion-toggle"];
583
- };
584
- readonly label: {
585
- readonly type: "string";
586
- readonly minLength: 1;
587
- readonly maxLength: 40;
588
- };
589
- readonly href: {
590
- readonly type: "string";
591
- readonly minLength: 1;
592
- readonly maxLength: 2048;
593
- };
594
- readonly variant: {
595
- readonly type: "string";
596
- readonly enum: readonly ["primary", "secondary"];
597
- };
598
- };
599
- };
600
- readonly Id: {
606
+ readonly EntryValueProperty: {
601
607
  readonly type: "string";
602
- 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.";
603
- readonly pattern: "^[a-z]+_[A-Za-z0-9]{6,32}$";
604
- readonly minLength: 8;
605
- readonly maxLength: 48;
608
+ readonly description: "RFC-0042: entry properties a structured-data property may read.";
609
+ readonly enum: readonly ["title", "summary", "body", "coverImage", "url", "publishedAt", "updatedAt"];
606
610
  };
607
- readonly ImageRef: {
611
+ readonly FieldCondition: {
608
612
  readonly type: "object";
609
- readonly description: "Reference to an image. With `assetId` the image is an Asset node (RFC-0004): the store writes its media URL into `src`, and its size into `width` and `height`, as a fallback for readers that do not resolve assets. Without it, `src` is a relative path or an absolute URL, as before.";
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`.";
610
614
  readonly additionalProperties: false;
611
- readonly required: readonly ["src", "alt"];
615
+ readonly required: readonly ["field", "op"];
612
616
  readonly properties: {
613
- readonly assetId: {
614
- readonly $ref: "#/$defs/Id";
615
- readonly description: "The Asset node shown (RFC-0004). Renderers that know assets resolve it and ignore `src`.";
616
- };
617
- readonly src: {
618
- readonly type: "string";
619
- readonly minLength: 1;
620
- readonly maxLength: 2048;
621
- };
622
- readonly alt: {
617
+ readonly field: {
623
618
  readonly type: "string";
624
- readonly maxLength: 500;
625
- };
626
- readonly width: {
627
- readonly type: "integer";
628
- readonly minimum: 1;
629
- };
630
- readonly height: {
631
- readonly type: "integer";
632
- readonly minimum: 1;
619
+ readonly description: "A field key (site.schema.json FieldKey's pattern, repeated).";
620
+ readonly pattern: "^[a-z][A-Za-z0-9]{0,39}$";
633
621
  };
634
- };
635
- };
636
- readonly Link: {
637
- readonly type: "object";
638
- readonly additionalProperties: false;
639
- readonly required: readonly ["label", "href"];
640
- readonly properties: {
641
- readonly label: {
622
+ readonly op: {
642
623
  readonly type: "string";
643
- readonly minLength: 1;
644
- readonly maxLength: 200;
624
+ readonly enum: readonly ["eq", "ne", "lt", "lte", "gt", "gte", "in", "set", "unset"];
645
625
  };
646
- readonly href: {
626
+ readonly value: {
647
627
  readonly type: "string";
648
628
  readonly minLength: 1;
649
- readonly maxLength: 2048;
650
- };
651
- readonly external: {
652
- readonly type: "boolean";
653
- };
654
- };
655
- };
656
- readonly Locale: {
657
- readonly type: "string";
658
- readonly description: "BCP 47 language tag, e.g. en, tr, en-US.";
659
- readonly pattern: "^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$";
660
- };
661
- readonly Localization: {
662
- readonly type: "object";
663
- readonly description: "How the site serves its locales (RFC-0033 §2). Absent fields mean: prefix-except-default routing, no fallback, no required review, the machine-translation notice until reviewed.";
664
- readonly additionalProperties: false;
665
- readonly properties: {
666
- readonly routing: {
667
- readonly type: "string";
668
- readonly description: "prefix-except-default: the default locale at the root, the others under /<locale>/. prefix-all: every locale prefixed, / is a language chooser (x-default).";
669
- readonly enum: readonly ["prefix-except-default", "prefix-all"];
629
+ readonly maxLength: 100;
670
630
  };
671
- readonly domains: {
672
- readonly type: "object";
673
- readonly description: "Optional hostname per locale; that locale is then served at the host's root.";
674
- readonly propertyNames: {
675
- readonly $ref: "#/$defs/Locale";
676
- };
677
- readonly additionalProperties: {
631
+ readonly values: {
632
+ readonly type: "array";
633
+ readonly minItems: 1;
634
+ readonly maxItems: 20;
635
+ readonly uniqueItems: true;
636
+ readonly items: {
678
637
  readonly type: "string";
679
- readonly pattern: "^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$";
680
- readonly maxLength: 253;
681
- };
682
- };
683
- readonly fallback: {
684
- readonly type: "string";
685
- readonly description: "none: a missing translation is not found. default-with-notice: the default locale's page is served with a notice and noindex.";
686
- readonly enum: readonly ["none", "default-with-notice"];
687
- };
688
- readonly review: {
689
- readonly type: "object";
690
- readonly description: "Collections whose machine translations need a person's review before they publish ('pages' stands for pages).";
691
- readonly additionalProperties: false;
692
- readonly properties: {
693
- readonly required: {
694
- readonly type: "array";
695
- readonly items: {
696
- readonly type: "string";
697
- readonly minLength: 1;
698
- readonly maxLength: 100;
699
- };
700
- readonly uniqueItems: true;
701
- };
638
+ readonly minLength: 1;
639
+ readonly maxLength: 100;
702
640
  };
703
641
  };
704
- readonly label: {
705
- readonly type: "string";
706
- readonly description: "When readers see the machine-translation notice: unreviewed (until a person reviews) or always.";
707
- readonly enum: readonly ["unreviewed", "always"];
708
- };
709
642
  };
710
643
  };
711
- readonly Metadata: {
712
- readonly type: "object";
713
- readonly description: "Free-form string-to-string map for extensions. Keys should be namespaced (e.g. cloudhal.source).";
714
- readonly additionalProperties: {
715
- readonly type: "string";
716
- };
717
- };
718
- readonly Path: {
719
- readonly type: "string";
720
- readonly description: "Absolute URL path of a route the site owns: starts with '/', lower-case slug segments, no trailing slash except root.";
721
- readonly pattern: "^/(?:[a-z0-9]+(?:-[a-z0-9]+)*(?:/[a-z0-9]+(?:-[a-z0-9]+)*)*)?$";
722
- readonly maxLength: 1024;
723
- };
724
- readonly Revision: {
725
- readonly type: "integer";
726
- readonly description: "Monotonic per-node revision used for optimistic locking (compare-and-swap on write).";
727
- readonly minimum: 0;
728
- };
729
- readonly SchemaVersion: {
730
- readonly type: "integer";
731
- readonly description: "Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.";
732
- readonly enum: readonly [1];
733
- };
734
- readonly Section: {
735
- readonly title: "Section";
736
- readonly description: "A block inside a page, discriminated by `kind`. Variants are written inline (not via $ref) and `kind` is a single-value string enum so that TypeScript gets a literal union and Rust gets a serde internally-tagged enum.";
644
+ readonly FieldDefinition: {
645
+ readonly description: "RFC-0041: one typed custom field of a collection, discriminated by `type`.";
737
646
  readonly oneOf: readonly [{
647
+ readonly title: "TextField";
738
648
  readonly type: "object";
739
- readonly title: "HeroSection";
649
+ readonly description: "Plain text: a string of at most maxLength characters.";
740
650
  readonly additionalProperties: false;
741
- readonly required: readonly ["id", "kind", "heading"];
651
+ readonly required: readonly ["key", "type", "labels", "localized"];
742
652
  readonly properties: {
743
- readonly id: {
744
- readonly $ref: "#/$defs/Id";
653
+ readonly key: {
654
+ readonly $ref: "#/$defs/FieldKey";
745
655
  };
746
- readonly kind: {
656
+ readonly type: {
747
657
  readonly type: "string";
748
- readonly enum: readonly ["hero"];
658
+ readonly enum: readonly ["text"];
749
659
  };
750
- readonly heading: {
751
- readonly type: "string";
752
- readonly minLength: 1;
753
- readonly maxLength: 300;
660
+ readonly labels: {
661
+ readonly $ref: "#/$defs/FieldLabels";
754
662
  };
755
- readonly subheading: {
756
- readonly type: "string";
757
- readonly maxLength: 1000;
663
+ readonly localized: {
664
+ readonly type: "boolean";
665
+ readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
758
666
  };
759
- readonly image: {
760
- readonly $ref: "#/$defs/ImageRef";
667
+ readonly requiredToPublish: {
668
+ readonly type: "boolean";
669
+ readonly description: "An entry in review or published needs a value. Absent: false.";
761
670
  };
762
- readonly cta: {
763
- readonly $ref: "#/$defs/Link";
671
+ readonly migration: {
672
+ readonly $ref: "#/$defs/FieldMigration";
673
+ };
674
+ readonly maxLength: {
675
+ readonly type: "integer";
676
+ readonly description: "Absent: 5000.";
677
+ readonly minimum: 1;
678
+ readonly maximum: 5000;
679
+ };
680
+ readonly multiline: {
681
+ readonly type: "boolean";
682
+ readonly description: "Line breaks allowed. Absent: false.";
683
+ };
684
+ readonly searchable: {
685
+ readonly type: "boolean";
686
+ readonly description: "Its words go into site search. Absent: false.";
764
687
  };
765
688
  };
766
689
  }, {
690
+ readonly title: "RichTextField";
767
691
  readonly type: "object";
768
- readonly title: "RichTextSection";
692
+ readonly description: "Cloudhal Markdown v1 (ADR-0028), at most 50 000 characters.";
769
693
  readonly additionalProperties: false;
770
- readonly required: readonly ["id", "kind", "format", "body"];
694
+ readonly required: readonly ["key", "type", "labels", "localized"];
771
695
  readonly properties: {
772
- readonly id: {
773
- readonly $ref: "#/$defs/Id";
696
+ readonly key: {
697
+ readonly $ref: "#/$defs/FieldKey";
774
698
  };
775
- readonly kind: {
699
+ readonly type: {
776
700
  readonly type: "string";
777
701
  readonly enum: readonly ["richText"];
778
702
  };
779
- readonly format: {
780
- readonly type: "string";
781
- readonly enum: readonly ["markdown", "html"];
703
+ readonly labels: {
704
+ readonly $ref: "#/$defs/FieldLabels";
782
705
  };
783
- readonly body: {
784
- readonly type: "string";
785
- readonly maxLength: 200000;
706
+ readonly localized: {
707
+ readonly type: "boolean";
708
+ readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
786
709
  };
787
- readonly profile: {
788
- readonly $ref: "#/$defs/BodyProfile";
710
+ readonly requiredToPublish: {
711
+ readonly type: "boolean";
712
+ readonly description: "An entry in review or published needs a value. Absent: false.";
789
713
  };
790
- readonly blocks: {
791
- readonly $ref: "#/$defs/BodyBlocks";
714
+ readonly migration: {
715
+ readonly $ref: "#/$defs/FieldMigration";
716
+ };
717
+ readonly searchable: {
718
+ readonly type: "boolean";
719
+ readonly description: "Its words go into site search. Absent: false.";
792
720
  };
793
721
  };
794
722
  }, {
723
+ readonly title: "NumberField";
795
724
  readonly type: "object";
796
- readonly title: "ImageSection";
725
+ readonly description: "A finite number.";
797
726
  readonly additionalProperties: false;
798
- readonly required: readonly ["id", "kind", "image"];
727
+ readonly required: readonly ["key", "type", "labels", "localized"];
799
728
  readonly properties: {
800
- readonly id: {
801
- readonly $ref: "#/$defs/Id";
729
+ readonly key: {
730
+ readonly $ref: "#/$defs/FieldKey";
802
731
  };
803
- readonly kind: {
732
+ readonly type: {
804
733
  readonly type: "string";
805
- readonly enum: readonly ["image"];
734
+ readonly enum: readonly ["number"];
806
735
  };
807
- readonly image: {
808
- readonly $ref: "#/$defs/ImageRef";
736
+ readonly labels: {
737
+ readonly $ref: "#/$defs/FieldLabels";
809
738
  };
810
- readonly caption: {
811
- readonly type: "string";
812
- readonly maxLength: 1000;
739
+ readonly localized: {
740
+ readonly type: "boolean";
741
+ readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
742
+ };
743
+ readonly requiredToPublish: {
744
+ readonly type: "boolean";
745
+ readonly description: "An entry in review or published needs a value. Absent: false.";
746
+ };
747
+ readonly migration: {
748
+ readonly $ref: "#/$defs/FieldMigration";
749
+ };
750
+ readonly integer: {
751
+ readonly type: "boolean";
752
+ readonly description: "Whole numbers only. Absent: false.";
753
+ };
754
+ readonly minimum: {
755
+ readonly type: "number";
756
+ };
757
+ readonly maximum: {
758
+ readonly type: "number";
813
759
  };
814
760
  };
815
761
  }, {
762
+ readonly title: "BooleanField";
816
763
  readonly type: "object";
817
- readonly title: "ContentListSection";
818
- readonly description: "Renders the newest entries of a content collection (e.g. blog posts).";
764
+ readonly description: "true or false; absent reads as false, so it cannot be required to publish.";
819
765
  readonly additionalProperties: false;
820
- readonly required: readonly ["id", "kind", "collection", "limit", "sort"];
766
+ readonly required: readonly ["key", "type", "labels", "localized"];
821
767
  readonly properties: {
822
- readonly id: {
823
- readonly $ref: "#/$defs/Id";
768
+ readonly key: {
769
+ readonly $ref: "#/$defs/FieldKey";
824
770
  };
825
- readonly kind: {
771
+ readonly type: {
826
772
  readonly type: "string";
827
- readonly enum: readonly ["contentList"];
773
+ readonly enum: readonly ["boolean"];
828
774
  };
829
- readonly collection: {
830
- readonly $ref: "#/$defs/Slug";
775
+ readonly labels: {
776
+ readonly $ref: "#/$defs/FieldLabels";
831
777
  };
832
- readonly limit: {
833
- readonly type: "integer";
834
- readonly minimum: 1;
835
- readonly maximum: 100;
778
+ readonly localized: {
779
+ readonly type: "boolean";
780
+ readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
836
781
  };
837
- readonly sort: {
838
- readonly type: "string";
839
- readonly enum: readonly ["newest", "oldest", "title"];
782
+ readonly migration: {
783
+ readonly $ref: "#/$defs/FieldMigration";
840
784
  };
841
- readonly filter: {
785
+ };
786
+ }, {
787
+ readonly title: "DateField";
788
+ readonly type: "object";
789
+ readonly description: "A calendar day without a zone (YYYY-MM-DD).";
790
+ readonly additionalProperties: false;
791
+ readonly required: readonly ["key", "type", "labels", "localized"];
792
+ readonly properties: {
793
+ readonly key: {
794
+ readonly $ref: "#/$defs/FieldKey";
795
+ };
796
+ readonly type: {
842
797
  readonly type: "string";
843
- readonly description: "Filter expression over term assignments (RFC-0002), e.g. 'category:news+tag:ai' or 'category:news>*'.";
844
- readonly minLength: 1;
845
- readonly maxLength: 512;
798
+ readonly enum: readonly ["date"];
799
+ };
800
+ readonly labels: {
801
+ readonly $ref: "#/$defs/FieldLabels";
802
+ };
803
+ readonly localized: {
804
+ readonly type: "boolean";
805
+ readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
806
+ };
807
+ readonly requiredToPublish: {
808
+ readonly type: "boolean";
809
+ readonly description: "An entry in review or published needs a value. Absent: false.";
810
+ };
811
+ readonly migration: {
812
+ readonly $ref: "#/$defs/FieldMigration";
846
813
  };
847
814
  };
848
815
  }, {
816
+ readonly title: "DateTimeField";
849
817
  readonly type: "object";
850
- readonly title: "ComponentSection";
851
- readonly description: "A typed block from the block registry (RFC-0015): `type` names a registered block type (one global namespace of English names), `props` follow that type's props schema, which the store validates.";
818
+ readonly description: "An instant with the zone it was entered in: {at, timeZone} (RFC-0008 §9.1).";
852
819
  readonly additionalProperties: false;
853
- readonly required: readonly ["id", "kind", "type", "props"];
820
+ readonly required: readonly ["key", "type", "labels", "localized"];
854
821
  readonly properties: {
855
- readonly id: {
856
- readonly $ref: "#/$defs/Id";
822
+ readonly key: {
823
+ readonly $ref: "#/$defs/FieldKey";
857
824
  };
858
- readonly kind: {
825
+ readonly type: {
859
826
  readonly type: "string";
860
- readonly enum: readonly ["component"];
827
+ readonly enum: readonly ["datetime"];
828
+ };
829
+ readonly labels: {
830
+ readonly $ref: "#/$defs/FieldLabels";
831
+ };
832
+ readonly localized: {
833
+ readonly type: "boolean";
834
+ readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
835
+ };
836
+ readonly requiredToPublish: {
837
+ readonly type: "boolean";
838
+ readonly description: "An entry in review or published needs a value. Absent: false.";
839
+ };
840
+ readonly migration: {
841
+ readonly $ref: "#/$defs/FieldMigration";
842
+ };
843
+ };
844
+ }, {
845
+ readonly title: "UrlField";
846
+ readonly type: "object";
847
+ readonly description: "A link: https, http, mailto, tel, a site-relative path or a #fragment; at most 2048 characters.";
848
+ readonly additionalProperties: false;
849
+ readonly required: readonly ["key", "type", "labels", "localized"];
850
+ readonly properties: {
851
+ readonly key: {
852
+ readonly $ref: "#/$defs/FieldKey";
861
853
  };
862
854
  readonly type: {
863
855
  readonly type: "string";
864
- readonly pattern: "^[a-z][a-z0-9-]{1,40}$";
856
+ readonly enum: readonly ["url"];
865
857
  };
866
- readonly props: {
867
- readonly type: "object";
868
- readonly description: "Validated against the type's props schema by the store, not by this contract.";
869
- readonly additionalProperties: true;
858
+ readonly labels: {
859
+ readonly $ref: "#/$defs/FieldLabels";
860
+ };
861
+ readonly localized: {
862
+ readonly type: "boolean";
863
+ readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
864
+ };
865
+ readonly requiredToPublish: {
866
+ readonly type: "boolean";
867
+ readonly description: "An entry in review or published needs a value. Absent: false.";
868
+ };
869
+ readonly migration: {
870
+ readonly $ref: "#/$defs/FieldMigration";
870
871
  };
871
872
  };
872
873
  }, {
874
+ readonly title: "ImageField";
873
875
  readonly type: "object";
874
- readonly title: "SurfaceSection";
875
- readonly description: "A generative UI surface (RFC-0020): a flat list of catalog components with a `root`, plus a data model their props may bind to. Written and streamed by agents as data, never code; the store checks the tree, the catalog and the limits.";
876
+ readonly description: "An image Asset of the same site, by id (asset_…).";
876
877
  readonly additionalProperties: false;
877
- readonly required: readonly ["id", "kind", "catalog", "components"];
878
+ readonly required: readonly ["key", "type", "labels", "localized"];
878
879
  readonly properties: {
879
- readonly id: {
880
- readonly $ref: "#/$defs/Id";
880
+ readonly key: {
881
+ readonly $ref: "#/$defs/FieldKey";
881
882
  };
882
- readonly kind: {
883
+ readonly type: {
883
884
  readonly type: "string";
884
- readonly enum: readonly ["surface"];
885
+ readonly enum: readonly ["image"];
885
886
  };
886
- readonly catalog: {
887
+ readonly labels: {
888
+ readonly $ref: "#/$defs/FieldLabels";
889
+ };
890
+ readonly localized: {
891
+ readonly type: "boolean";
892
+ readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
893
+ };
894
+ readonly requiredToPublish: {
895
+ readonly type: "boolean";
896
+ readonly description: "An entry in review or published needs a value. Absent: false.";
897
+ };
898
+ readonly migration: {
899
+ readonly $ref: "#/$defs/FieldMigration";
900
+ };
901
+ };
902
+ }, {
903
+ readonly title: "SelectField";
904
+ readonly type: "object";
905
+ readonly description: "One of a closed list of options, or several when multiple.";
906
+ readonly additionalProperties: false;
907
+ readonly required: readonly ["key", "type", "labels", "localized", "options"];
908
+ readonly properties: {
909
+ readonly key: {
910
+ readonly $ref: "#/$defs/FieldKey";
911
+ };
912
+ readonly type: {
887
913
  readonly type: "string";
888
- readonly description: "The catalog the surface was written for: `<theme>@<major>` (RFC-0018 manifest).";
889
- readonly pattern: "^[a-z][a-z0-9-]{0,40}@[0-9]{1,4}$";
914
+ readonly enum: readonly ["select"];
890
915
  };
891
- readonly components: {
916
+ readonly labels: {
917
+ readonly $ref: "#/$defs/FieldLabels";
918
+ };
919
+ readonly localized: {
920
+ readonly type: "boolean";
921
+ readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
922
+ };
923
+ readonly requiredToPublish: {
924
+ readonly type: "boolean";
925
+ readonly description: "An entry in review or published needs a value. Absent: false.";
926
+ };
927
+ readonly migration: {
928
+ readonly $ref: "#/$defs/FieldMigration";
929
+ };
930
+ readonly options: {
892
931
  readonly type: "array";
893
932
  readonly minItems: 1;
894
- readonly maxItems: 200;
933
+ readonly maxItems: 50;
895
934
  readonly items: {
896
- readonly $ref: "#/$defs/SurfaceComponent";
935
+ readonly $ref: "#/$defs/FieldOption";
897
936
  };
898
937
  };
899
- readonly data: {
900
- readonly type: "object";
901
- readonly description: "The surface's data model: JSON its components bind to with `{path}` (at most 64 KB serialized; the store enforces the size).";
902
- readonly additionalProperties: true;
938
+ readonly multiple: {
939
+ readonly type: "boolean";
940
+ readonly description: "The value is a list of option values. Absent: false.";
903
941
  };
904
942
  };
905
943
  }];
906
944
  };
907
- readonly Slug: {
945
+ readonly FieldKey: {
908
946
  readonly type: "string";
909
- readonly description: "Lower-case URL segment.";
910
- readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
911
- readonly minLength: 1;
912
- readonly maxLength: 128;
947
+ readonly description: "The field's key in ContentEntry.fields: lower camelCase, a JavaScript identifier. Unique in its collection; built-in entry property names are reserved (checked in code).";
948
+ readonly pattern: "^[a-z][A-Za-z0-9]{0,39}$";
913
949
  };
914
- readonly SocialLink: {
950
+ readonly FieldLabel: {
915
951
  readonly type: "object";
916
952
  readonly additionalProperties: false;
917
- readonly required: readonly ["network", "href"];
953
+ readonly required: readonly ["label"];
918
954
  readonly properties: {
919
- readonly network: {
955
+ readonly label: {
920
956
  readonly type: "string";
921
- readonly enum: readonly ["x", "bluesky", "mastodon", "github", "linkedin", "instagram", "facebook", "youtube", "tiktok", "threads", "rss", "email"];
957
+ readonly minLength: 1;
958
+ readonly maxLength: 100;
922
959
  };
923
- readonly href: {
960
+ readonly help: {
924
961
  readonly type: "string";
925
- readonly minLength: 1;
926
- readonly maxLength: 2048;
962
+ readonly maxLength: 300;
927
963
  };
928
964
  };
929
965
  };
930
- readonly SurfaceComponent: {
966
+ readonly FieldLabels: {
931
967
  readonly type: "object";
932
- 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.";
968
+ readonly description: "The field's label and help per locale. Missing a locale: the default locale's, then the key.";
969
+ readonly propertyNames: {
970
+ readonly $ref: "#/$defs/Locale";
971
+ };
972
+ readonly minProperties: 1;
973
+ readonly additionalProperties: {
974
+ readonly $ref: "#/$defs/FieldLabel";
975
+ };
976
+ };
977
+ readonly FieldMigration: {
978
+ readonly type: "object";
979
+ readonly description: "RFC-0041 §6: present only while a field operation rewrites entries.";
933
980
  readonly additionalProperties: false;
934
- readonly required: readonly ["id", "component"];
981
+ readonly required: readonly ["id"];
935
982
  readonly properties: {
936
983
  readonly id: {
937
- readonly $ref: "#/$defs/SurfaceComponentId";
984
+ readonly $ref: "#/$defs/Id";
985
+ readonly description: "The operation's \"before\" snapshot.";
938
986
  };
939
- readonly component: {
940
- readonly type: "string";
941
- readonly pattern: "^(?:[A-Z][A-Za-z0-9]{1,40}|[a-z][a-z0-9-]{1,40})$";
987
+ readonly fromKey: {
988
+ readonly $ref: "#/$defs/FieldKey";
942
989
  };
943
- readonly children: {
944
- readonly type: "array";
945
- readonly maxItems: 200;
946
- readonly items: {
947
- readonly $ref: "#/$defs/SurfaceComponentId";
948
- };
990
+ readonly fromType: {
991
+ readonly type: "string";
992
+ readonly enum: readonly ["text", "richText", "number", "boolean", "date", "datetime", "url", "image", "select"];
949
993
  };
950
- readonly props: {
951
- readonly type: "object";
952
- readonly description: "Literal values, `{path}` bindings into the surface's data, or `{call}` named functions; validated by the store against the catalog, not by this contract.";
953
- readonly additionalProperties: true;
994
+ readonly fromLocalized: {
995
+ readonly type: "boolean";
954
996
  };
955
- readonly visible: {
956
- readonly type: "object";
957
- readonly description: "A visibility condition over the surface's data (`eq`, `ne`, `gt`, `lt`, `and`, `or`, `not`); validated by the store.";
958
- readonly additionalProperties: true;
997
+ };
998
+ };
999
+ readonly FieldOption: {
1000
+ readonly type: "object";
1001
+ readonly description: "One option of a select field. Values are unique in the field (checked in code).";
1002
+ readonly additionalProperties: false;
1003
+ readonly required: readonly ["value", "labels"];
1004
+ readonly properties: {
1005
+ readonly value: {
1006
+ readonly $ref: "#/$defs/Slug";
1007
+ readonly description: "Stored in entries, never shown.";
959
1008
  };
960
- readonly motion: {
1009
+ readonly labels: {
961
1010
  readonly type: "object";
962
- readonly description: "Motion presets for this component (RFC-0024 §2): `reveal`, `hover`, `speed`, `delay`, `stagger`, `replay` and later `scroll`, `loop`; enums and clamped numbers only, validated by the store against the catalog. The renderer turns them into CSS; agents never write CSS.";
963
- readonly additionalProperties: true;
1011
+ readonly propertyNames: {
1012
+ readonly $ref: "#/$defs/Locale";
1013
+ };
1014
+ readonly minProperties: 1;
1015
+ readonly additionalProperties: {
1016
+ readonly type: "string";
1017
+ readonly minLength: 1;
1018
+ readonly maxLength: 100;
1019
+ };
964
1020
  };
965
1021
  };
966
1022
  };
967
- readonly SurfaceComponentId: {
968
- readonly type: "string";
969
- readonly description: "A component's id, unique within its surface; `root` is the tree's root (RFC-0020 §1).";
970
- readonly pattern: "^[a-z][a-z0-9-]{0,40}$";
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
+ };
971
1039
  };
972
- readonly ThemeRef: {
1040
+ readonly FooterColumn: {
973
1041
  readonly type: "object";
974
- readonly description: "Theme (a.k.a. Experience) applied by the renderer. Config is theme-defined and validated by the theme's own schema, not here.";
975
1042
  readonly additionalProperties: false;
976
- readonly required: readonly ["name"];
1043
+ readonly required: readonly ["heading", "menu"];
977
1044
  readonly properties: {
978
- readonly name: {
1045
+ readonly heading: {
1046
+ readonly type: "string";
1047
+ readonly minLength: 1;
1048
+ readonly maxLength: 60;
1049
+ };
1050
+ readonly menu: {
979
1051
  readonly $ref: "#/$defs/Slug";
1052
+ readonly description: "A menu key (RFC-0003).";
980
1053
  };
981
- readonly version: {
1054
+ };
1055
+ };
1056
+ readonly HeaderAction: {
1057
+ readonly type: "object";
1058
+ readonly additionalProperties: false;
1059
+ readonly required: readonly ["kind"];
1060
+ readonly properties: {
1061
+ readonly kind: {
982
1062
  readonly type: "string";
983
- readonly maxLength: 64;
1063
+ readonly enum: readonly ["button", "search", "locale", "theme-toggle", "motion-toggle"];
984
1064
  };
985
- readonly config: {
986
- readonly type: "object";
987
- readonly additionalProperties: true;
1065
+ readonly label: {
1066
+ readonly type: "string";
1067
+ readonly minLength: 1;
1068
+ readonly maxLength: 40;
1069
+ };
1070
+ readonly href: {
1071
+ readonly type: "string";
1072
+ readonly minLength: 1;
1073
+ readonly maxLength: 2048;
1074
+ };
1075
+ readonly variant: {
1076
+ readonly type: "string";
1077
+ readonly enum: readonly ["primary", "secondary"];
988
1078
  };
989
1079
  };
990
1080
  };
991
- readonly Timestamp: {
992
- readonly type: "string";
993
- readonly description: "RFC 3339 / ISO 8601 instant in UTC.";
994
- readonly format: "date-time";
995
- };
996
- readonly TimeZone: {
1081
+ readonly Id: {
997
1082
  readonly type: "string";
998
- readonly description: "IANA time zone name from the tz database (RFC-0008), e.g. Europe/Istanbul, America/Argentina/Buenos_Aires, Etc/GMT+3 or UTC. Wall-clock times a person enters are kept with their zone, so the instant is recomputed when governments change the rules. The pattern bounds the shape only; writers also check the name against the runtime's Intl zone list.";
999
- readonly pattern: "^(?:UTC|[A-Z][A-Za-z_-]+(?:/[A-Za-z0-9_+-]+){1,2})$";
1000
- readonly maxLength: 64;
1001
- };
1002
- };
1003
- };
1004
- export declare const PageSchema: {
1005
- readonly $schema: "https://json-schema.org/draft/2020-12/schema";
1006
- readonly $id: "https://cloudhal.dev/schemas/v1/page.schema.json";
1007
- readonly title: "Page";
1008
- readonly description: "A routable page of a site: a path, editorial status and an ordered list of sections. Sections are embedded (not separate nodes) so a page is the unit of locking, snapshotting and diffing.";
1009
- readonly type: "object";
1010
- readonly additionalProperties: false;
1011
- readonly required: readonly ["schemaVersion", "id", "siteId", "path", "title", "locale", "status", "sections", "rev", "createdAt", "updatedAt"];
1012
- readonly properties: {
1013
- readonly schemaVersion: {
1014
- readonly $ref: "#/$defs/SchemaVersion";
1015
- };
1016
- readonly id: {
1017
- readonly $ref: "#/$defs/Id";
1018
- };
1019
- readonly siteId: {
1020
- readonly $ref: "#/$defs/Id";
1021
- };
1022
- readonly path: {
1023
- readonly type: "string";
1024
- readonly description: "Absolute URL path, starting with '/', no trailing slash except root.";
1025
- readonly pattern: "^/(?:[a-z0-9]+(?:-[a-z0-9]+)*(?:/[a-z0-9]+(?:-[a-z0-9]+)*)*)?$";
1026
- readonly maxLength: 1024;
1027
- };
1028
- readonly title: {
1029
- readonly type: "string";
1030
- readonly minLength: 1;
1031
- readonly maxLength: 300;
1032
- };
1033
- readonly locale: {
1034
- readonly $ref: "#/$defs/Locale";
1035
- };
1036
- readonly status: {
1037
- readonly $ref: "#/$defs/PublishStatus";
1038
- };
1039
- readonly sections: {
1040
- readonly type: "array";
1041
- readonly items: {
1042
- readonly $ref: "#/$defs/Section";
1043
- };
1044
- };
1045
- readonly seo: {
1046
- readonly $ref: "#/$defs/Seo";
1047
- };
1048
- readonly availability: {
1049
- readonly $ref: "#/$defs/Availability";
1050
- };
1051
- readonly chrome: {
1052
- readonly type: "object";
1053
- readonly description: "This page's own header and footer (RFC-0025 §1): a landing page without the menu, a checkout without the footer.";
1054
- readonly additionalProperties: false;
1055
- readonly properties: {
1056
- readonly header: {
1057
- readonly type: "string";
1058
- readonly enum: readonly ["default", "transparent", "hidden"];
1059
- };
1060
- readonly footer: {
1061
- readonly type: "string";
1062
- readonly enum: readonly ["default", "minimal", "hidden"];
1063
- };
1064
- };
1065
- };
1066
- readonly motion: {
1067
- readonly $ref: "#/$defs/MotionLevel";
1068
- readonly description: "Overrides the site's motion level for this page, up or down (RFC-0024 §1); absent follows the site.";
1069
- };
1070
- readonly rev: {
1071
- readonly $ref: "#/$defs/Revision";
1072
- };
1073
- readonly createdAt: {
1074
- readonly $ref: "#/$defs/Timestamp";
1075
- };
1076
- readonly updatedAt: {
1077
- readonly $ref: "#/$defs/Timestamp";
1078
- };
1079
- readonly translation: {
1080
- readonly $ref: "#/$defs/Translation";
1081
- };
1082
- readonly metadata: {
1083
- readonly $ref: "#/$defs/Metadata";
1084
- };
1085
- };
1086
- readonly $defs: {
1087
- readonly Actor: {
1088
- readonly type: "object";
1089
- readonly additionalProperties: false;
1090
- readonly required: readonly ["kind", "id"];
1091
- readonly properties: {
1092
- readonly kind: {
1093
- readonly $ref: "#/$defs/ActorKind";
1094
- };
1095
- readonly id: {
1096
- readonly $ref: "#/$defs/Id";
1097
- };
1098
- readonly name: {
1099
- readonly type: "string";
1100
- readonly maxLength: 200;
1101
- };
1102
- };
1103
- };
1104
- readonly ActorKind: {
1105
- readonly type: "string";
1106
- readonly description: "Who performed an action. Humans and agents share one actor model so the policy engine treats them uniformly.";
1107
- readonly enum: readonly ["human", "agent", "system"];
1108
- };
1109
- readonly Availability: {
1110
- readonly type: "object";
1111
- readonly description: "Time gates of a page or content entry (RFC-0008): the published site shows the node only from `from` (inclusive: an embargo) until `until` (exclusive: an expiry), checked at render time, so the gates hold even when no scheduler runs. Before `from` and from `until` on, the node is absent from every public route, list, feed, sitemap and search output; previews still show it. At least one gate; writers check that `from` is before `until`.";
1112
- readonly additionalProperties: false;
1113
- readonly minProperties: 1;
1114
- readonly properties: {
1115
- readonly from: {
1116
- readonly $ref: "#/$defs/Timestamp";
1117
- };
1118
- readonly until: {
1119
- readonly $ref: "#/$defs/Timestamp";
1120
- };
1121
- };
1122
- };
1123
- readonly BodyBlock: {
1124
- readonly type: "object";
1125
- readonly description: "One top-level block of a markdown body in the store's index (RFC-0014 §3). Written by the store only: a client's values are replaced on every write. `by`, `via` and `at` say who last changed the block's content, through which channel and when; they are absent for content written before the index existed.";
1126
- readonly additionalProperties: false;
1127
- readonly required: readonly ["id", "hash"];
1128
- readonly properties: {
1129
- readonly id: {
1130
- readonly type: "string";
1131
- readonly pattern: "^blk_[0-9A-Za-z]{8,24}$";
1132
- readonly description: "Stable across writes that keep the block's content or its place among unchanged blocks.";
1133
- };
1134
- readonly hash: {
1135
- readonly type: "string";
1136
- readonly pattern: "^[0-9a-f]{64}$";
1137
- readonly description: "SHA-256 (hex) of the block's markdown without trailing whitespace.";
1138
- };
1139
- readonly by: {
1140
- readonly $ref: "#/$defs/Actor";
1141
- };
1142
- readonly via: {
1143
- readonly type: "string";
1144
- readonly enum: readonly ["studio", "mcp", "api", "import", "ai-command", "proposal"];
1145
- readonly description: "The channel of that change.";
1146
- };
1147
- readonly at: {
1148
- readonly $ref: "#/$defs/Timestamp";
1149
- };
1150
- };
1151
- };
1152
- readonly BodyBlocks: {
1153
- readonly type: "array";
1154
- readonly description: "A markdown body's block index, in body order (RFC-0014 §3). Absent means not indexed (yet, or an HTML body), never empty.";
1155
- readonly maxItems: 5000;
1156
- readonly items: {
1157
- readonly $ref: "#/$defs/BodyBlock";
1158
- };
1159
- };
1160
- readonly BodyProfile: {
1161
- readonly type: "integer";
1162
- readonly enum: readonly [1];
1163
- 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.";
1164
- };
1165
- readonly Id: {
1166
- readonly type: "string";
1167
- 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.";
1168
- readonly pattern: "^[a-z]+_[A-Za-z0-9]{6,32}$";
1169
- readonly minLength: 8;
1170
- readonly maxLength: 48;
1083
+ 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.";
1084
+ readonly pattern: "^[a-z]+_[A-Za-z0-9]{6,32}$";
1085
+ readonly minLength: 8;
1086
+ readonly maxLength: 48;
1171
1087
  };
1172
1088
  readonly ImageRef: {
1173
1089
  readonly type: "object";
@@ -1223,6 +1139,56 @@ export declare const PageSchema: {
1223
1139
  readonly description: "BCP 47 language tag, e.g. en, tr, en-US.";
1224
1140
  readonly pattern: "^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$";
1225
1141
  };
1142
+ readonly Localization: {
1143
+ readonly type: "object";
1144
+ readonly description: "How the site serves its locales (RFC-0033 §2). Absent fields mean: prefix-except-default routing, no fallback, no required review, the machine-translation notice until reviewed.";
1145
+ readonly additionalProperties: false;
1146
+ readonly properties: {
1147
+ readonly routing: {
1148
+ readonly type: "string";
1149
+ readonly description: "prefix-except-default: the default locale at the root, the others under /<locale>/. prefix-all: every locale prefixed, / is a language chooser (x-default).";
1150
+ readonly enum: readonly ["prefix-except-default", "prefix-all"];
1151
+ };
1152
+ readonly domains: {
1153
+ readonly type: "object";
1154
+ readonly description: "Optional hostname per locale; that locale is then served at the host's root.";
1155
+ readonly propertyNames: {
1156
+ readonly $ref: "#/$defs/Locale";
1157
+ };
1158
+ readonly additionalProperties: {
1159
+ readonly type: "string";
1160
+ readonly pattern: "^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$";
1161
+ readonly maxLength: 253;
1162
+ };
1163
+ };
1164
+ readonly fallback: {
1165
+ readonly type: "string";
1166
+ readonly description: "none: a missing translation is not found. default-with-notice: the default locale's page is served with a notice and noindex.";
1167
+ readonly enum: readonly ["none", "default-with-notice"];
1168
+ };
1169
+ readonly review: {
1170
+ readonly type: "object";
1171
+ readonly description: "Collections whose machine translations need a person's review before they publish ('pages' stands for pages).";
1172
+ readonly additionalProperties: false;
1173
+ readonly properties: {
1174
+ readonly required: {
1175
+ readonly type: "array";
1176
+ readonly items: {
1177
+ readonly type: "string";
1178
+ readonly minLength: 1;
1179
+ readonly maxLength: 100;
1180
+ };
1181
+ readonly uniqueItems: true;
1182
+ };
1183
+ };
1184
+ };
1185
+ readonly label: {
1186
+ readonly type: "string";
1187
+ readonly description: "When readers see the machine-translation notice: unreviewed (until a person reviews) or always.";
1188
+ readonly enum: readonly ["unreviewed", "always"];
1189
+ };
1190
+ };
1191
+ };
1226
1192
  readonly Metadata: {
1227
1193
  readonly type: "object";
1228
1194
  readonly description: "Free-form string-to-string map for extensions. Keys should be namespaced (e.g. cloudhal.source).";
@@ -1230,15 +1196,11 @@ export declare const PageSchema: {
1230
1196
  readonly type: "string";
1231
1197
  };
1232
1198
  };
1233
- readonly MotionLevel: {
1234
- readonly type: "string";
1235
- readonly description: "How much a page may move (RFC-0024 §1); the reader's reduced-motion preference and pause control can only lower it.";
1236
- readonly enum: readonly ["none", "subtle", "standard", "expressive"];
1237
- };
1238
- readonly PublishStatus: {
1199
+ readonly Path: {
1239
1200
  readonly type: "string";
1240
- readonly description: "Editorial lifecycle of a page or content entry.";
1241
- readonly enum: readonly ["draft", "review", "published", "archived"];
1201
+ readonly description: "Absolute URL path of a route the site owns: starts with '/', lower-case slug segments, no trailing slash except root.";
1202
+ readonly pattern: "^/(?:[a-z0-9]+(?:-[a-z0-9]+)*(?:/[a-z0-9]+(?:-[a-z0-9]+)*)*)?$";
1203
+ readonly maxLength: 1024;
1242
1204
  };
1243
1205
  readonly Revision: {
1244
1206
  readonly type: "integer";
@@ -1363,6 +1325,18 @@ export declare const PageSchema: {
1363
1325
  readonly minLength: 1;
1364
1326
  readonly maxLength: 512;
1365
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
+ };
1366
1340
  };
1367
1341
  }, {
1368
1342
  readonly type: "object";
@@ -1423,37 +1397,125 @@ export declare const PageSchema: {
1423
1397
  };
1424
1398
  }];
1425
1399
  };
1426
- readonly Seo: {
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
+ };
1405
+ readonly Slug: {
1406
+ readonly type: "string";
1407
+ readonly description: "Lower-case URL segment.";
1408
+ readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
1409
+ readonly minLength: 1;
1410
+ readonly maxLength: 128;
1411
+ };
1412
+ readonly SocialLink: {
1427
1413
  readonly type: "object";
1428
- readonly description: "Search and social metadata of a routable node (page, term archive).";
1429
1414
  readonly additionalProperties: false;
1415
+ readonly required: readonly ["network", "href"];
1430
1416
  readonly properties: {
1431
- readonly title: {
1417
+ readonly network: {
1432
1418
  readonly type: "string";
1433
- readonly maxLength: 300;
1419
+ readonly enum: readonly ["x", "bluesky", "mastodon", "github", "linkedin", "instagram", "facebook", "youtube", "tiktok", "threads", "rss", "email"];
1434
1420
  };
1435
- readonly description: {
1421
+ readonly href: {
1436
1422
  readonly type: "string";
1437
- readonly maxLength: 500;
1438
- };
1439
- readonly noindex: {
1440
- readonly type: "boolean";
1423
+ readonly minLength: 1;
1424
+ readonly maxLength: 2048;
1441
1425
  };
1442
- readonly canonical: {
1426
+ };
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: {
1443
1435
  readonly type: "string";
1444
- readonly maxLength: 2048;
1436
+ readonly enum: readonly ["Event", "JobPosting", "Product", "Recipe"];
1445
1437
  };
1446
- readonly ogImage: {
1447
- readonly $ref: "#/$defs/ImageRef";
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
+ };
1448
1450
  };
1449
1451
  };
1450
1452
  };
1451
- readonly Slug: {
1452
- readonly type: "string";
1453
- readonly description: "Lower-case URL segment.";
1454
- readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
1455
- readonly minLength: 1;
1456
- readonly maxLength: 128;
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
+ }];
1457
1519
  };
1458
1520
  readonly SurfaceComponent: {
1459
1521
  readonly type: "object";
@@ -1497,285 +1559,120 @@ export declare const PageSchema: {
1497
1559
  readonly description: "A component's id, unique within its surface; `root` is the tree's root (RFC-0020 §1).";
1498
1560
  readonly pattern: "^[a-z][a-z0-9-]{0,40}$";
1499
1561
  };
1500
- readonly Timestamp: {
1501
- readonly type: "string";
1502
- readonly description: "RFC 3339 / ISO 8601 instant in UTC.";
1503
- readonly format: "date-time";
1504
- };
1505
- readonly Translation: {
1562
+ readonly ThemeRef: {
1506
1563
  readonly type: "object";
1507
- readonly description: "Links a page or entry to the other language versions of the same work (RFC-0033 §2). Staleness is computed: the source's current hash differs from source.hash.";
1564
+ readonly description: "Theme (a.k.a. Experience) applied by the renderer. Config is theme-defined and validated by the theme's own schema, not here.";
1508
1565
  readonly additionalProperties: false;
1509
- readonly required: readonly ["group", "method"];
1566
+ readonly required: readonly ["name"];
1510
1567
  readonly properties: {
1511
- readonly group: {
1512
- readonly $ref: "#/$defs/Id";
1513
- readonly description: "The group's id: the original node's id, shared by every translation. May cross sites in one project.";
1514
- };
1515
- readonly method: {
1516
- readonly $ref: "#/$defs/TranslationMethod";
1568
+ readonly name: {
1569
+ readonly $ref: "#/$defs/Slug";
1517
1570
  };
1518
- readonly layout: {
1571
+ readonly version: {
1519
1572
  readonly type: "string";
1520
- readonly description: "linked: the original's structural changes propagate to this translation as drafts (RFC-0033 §4a); independent: nothing propagates. Absent means linked.";
1521
- readonly enum: readonly ["linked", "independent"];
1522
- };
1523
- readonly source: {
1524
- readonly type: "object";
1525
- readonly description: "The node and revision this translation was made from. Absent on the original.";
1526
- readonly additionalProperties: false;
1527
- readonly required: readonly ["id", "locale", "rev", "hash"];
1528
- readonly properties: {
1529
- readonly id: {
1530
- readonly $ref: "#/$defs/Id";
1531
- };
1532
- readonly siteId: {
1533
- readonly $ref: "#/$defs/Id";
1534
- readonly description: "The source's site when it is another site of the same project (a language edition). Absent means this site.";
1535
- };
1536
- readonly locale: {
1537
- readonly $ref: "#/$defs/Locale";
1538
- };
1539
- readonly rev: {
1540
- readonly $ref: "#/$defs/Revision";
1541
- };
1542
- readonly hash: {
1543
- readonly type: "string";
1544
- readonly description: "Lower-case hex SHA-256 of the source node's canonical JSON at that revision.";
1545
- readonly pattern: "^[0-9a-f]{64}$";
1546
- };
1547
- };
1548
- };
1549
- readonly provenance: {
1550
- readonly type: "object";
1551
- readonly description: "The machine-translation record: engine, glossary revision, checks run, quality score. Required when method is machine or machine-reviewed.";
1552
- readonly additionalProperties: false;
1553
- readonly required: readonly ["engine", "at"];
1554
- readonly properties: {
1555
- readonly engine: {
1556
- readonly type: "string";
1557
- readonly minLength: 1;
1558
- readonly maxLength: 200;
1559
- };
1560
- readonly glossaryRev: {
1561
- readonly $ref: "#/$defs/Revision";
1562
- };
1563
- readonly score: {
1564
- readonly type: "number";
1565
- readonly minimum: 0;
1566
- readonly maximum: 100;
1567
- };
1568
- readonly checks: {
1569
- readonly type: "array";
1570
- readonly items: {
1571
- readonly type: "string";
1572
- readonly minLength: 1;
1573
- readonly maxLength: 100;
1574
- };
1575
- readonly maxItems: 50;
1576
- };
1577
- readonly at: {
1578
- readonly $ref: "#/$defs/Timestamp";
1579
- };
1580
- };
1573
+ readonly maxLength: 64;
1581
1574
  };
1582
- readonly review: {
1575
+ readonly config: {
1583
1576
  readonly type: "object";
1584
- readonly description: "The person who reviewed this translation and when. Only humans set it.";
1585
- readonly additionalProperties: false;
1586
- readonly required: readonly ["by", "at"];
1587
- readonly properties: {
1588
- readonly by: {
1589
- readonly $ref: "#/$defs/Actor";
1590
- };
1591
- readonly at: {
1592
- readonly $ref: "#/$defs/Timestamp";
1593
- };
1594
- };
1577
+ readonly additionalProperties: true;
1595
1578
  };
1596
1579
  };
1597
1580
  };
1598
- readonly TranslationMethod: {
1581
+ readonly Timestamp: {
1599
1582
  readonly type: "string";
1600
- readonly description: "How a page's or entry's text came to be (RFC-0033). 'original' marks the source of a translation group; 'machine-reviewed' is machine output a person has reviewed.";
1601
- readonly enum: readonly ["original", "human", "machine", "machine-reviewed"];
1583
+ readonly description: "RFC 3339 / ISO 8601 instant in UTC.";
1584
+ readonly format: "date-time";
1585
+ };
1586
+ readonly TimeZone: {
1587
+ readonly type: "string";
1588
+ readonly description: "IANA time zone name from the tz database (RFC-0008), e.g. Europe/Istanbul, America/Argentina/Buenos_Aires, Etc/GMT+3 or UTC. Wall-clock times a person enters are kept with their zone, so the instant is recomputed when governments change the rules. The pattern bounds the shape only; writers also check the name against the runtime's Intl zone list.";
1589
+ readonly pattern: "^(?:UTC|[A-Z][A-Za-z_-]+(?:/[A-Za-z0-9_+-]+){1,2})$";
1590
+ readonly maxLength: 64;
1602
1591
  };
1603
1592
  };
1604
1593
  };
1605
- export declare const SectionSchema: {
1594
+ export declare const PageSchema: {
1606
1595
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
1607
- readonly $id: "https://cloudhal.dev/schemas/v1/section.schema.json";
1608
- readonly title: "Section";
1609
- readonly description: "A block inside a page, discriminated by `kind`. Variants are written inline (not via $ref) and `kind` is a single-value string enum so that TypeScript gets a literal union and Rust gets a serde internally-tagged enum.";
1610
- readonly oneOf: readonly [{
1611
- readonly type: "object";
1612
- readonly title: "HeroSection";
1613
- readonly additionalProperties: false;
1614
- readonly required: readonly ["id", "kind", "heading"];
1615
- readonly properties: {
1616
- readonly id: {
1617
- readonly $ref: "#/$defs/Id";
1618
- };
1619
- readonly kind: {
1620
- readonly type: "string";
1621
- readonly enum: readonly ["hero"];
1622
- };
1623
- readonly heading: {
1624
- readonly type: "string";
1625
- readonly minLength: 1;
1626
- readonly maxLength: 300;
1627
- };
1628
- readonly subheading: {
1629
- readonly type: "string";
1630
- readonly maxLength: 1000;
1631
- };
1632
- readonly image: {
1633
- readonly $ref: "#/$defs/ImageRef";
1634
- };
1635
- readonly cta: {
1636
- readonly $ref: "#/$defs/Link";
1637
- };
1596
+ readonly $id: "https://cloudhal.dev/schemas/v1/page.schema.json";
1597
+ readonly title: "Page";
1598
+ readonly description: "A routable page of a site: a path, editorial status and an ordered list of sections. Sections are embedded (not separate nodes) so a page is the unit of locking, snapshotting and diffing.";
1599
+ readonly type: "object";
1600
+ readonly additionalProperties: false;
1601
+ readonly required: readonly ["schemaVersion", "id", "siteId", "path", "title", "locale", "status", "sections", "rev", "createdAt", "updatedAt"];
1602
+ readonly properties: {
1603
+ readonly schemaVersion: {
1604
+ readonly $ref: "#/$defs/SchemaVersion";
1638
1605
  };
1639
- }, {
1640
- readonly type: "object";
1641
- readonly title: "RichTextSection";
1642
- readonly additionalProperties: false;
1643
- readonly required: readonly ["id", "kind", "format", "body"];
1644
- readonly properties: {
1645
- readonly id: {
1646
- readonly $ref: "#/$defs/Id";
1647
- };
1648
- readonly kind: {
1649
- readonly type: "string";
1650
- readonly enum: readonly ["richText"];
1651
- };
1652
- readonly format: {
1653
- readonly type: "string";
1654
- readonly enum: readonly ["markdown", "html"];
1655
- };
1656
- readonly body: {
1657
- readonly type: "string";
1658
- readonly maxLength: 200000;
1659
- };
1660
- readonly profile: {
1661
- readonly $ref: "#/$defs/BodyProfile";
1662
- };
1663
- readonly blocks: {
1664
- readonly $ref: "#/$defs/BodyBlocks";
1665
- };
1606
+ readonly id: {
1607
+ readonly $ref: "#/$defs/Id";
1666
1608
  };
1667
- }, {
1668
- readonly type: "object";
1669
- readonly title: "ImageSection";
1670
- readonly additionalProperties: false;
1671
- readonly required: readonly ["id", "kind", "image"];
1672
- readonly properties: {
1673
- readonly id: {
1674
- readonly $ref: "#/$defs/Id";
1675
- };
1676
- readonly kind: {
1677
- readonly type: "string";
1678
- readonly enum: readonly ["image"];
1679
- };
1680
- readonly image: {
1681
- readonly $ref: "#/$defs/ImageRef";
1682
- };
1683
- readonly caption: {
1684
- readonly type: "string";
1685
- readonly maxLength: 1000;
1686
- };
1609
+ readonly siteId: {
1610
+ readonly $ref: "#/$defs/Id";
1687
1611
  };
1688
- }, {
1689
- readonly type: "object";
1690
- readonly title: "ContentListSection";
1691
- readonly description: "Renders the newest entries of a content collection (e.g. blog posts).";
1692
- readonly additionalProperties: false;
1693
- readonly required: readonly ["id", "kind", "collection", "limit", "sort"];
1694
- readonly properties: {
1695
- readonly id: {
1696
- readonly $ref: "#/$defs/Id";
1697
- };
1698
- readonly kind: {
1699
- readonly type: "string";
1700
- readonly enum: readonly ["contentList"];
1701
- };
1702
- readonly collection: {
1703
- readonly $ref: "#/$defs/Slug";
1704
- };
1705
- readonly limit: {
1706
- readonly type: "integer";
1707
- readonly minimum: 1;
1708
- readonly maximum: 100;
1709
- };
1710
- readonly sort: {
1711
- readonly type: "string";
1712
- readonly enum: readonly ["newest", "oldest", "title"];
1713
- };
1714
- readonly filter: {
1715
- readonly type: "string";
1716
- readonly description: "Filter expression over term assignments (RFC-0002), e.g. 'category:news+tag:ai' or 'category:news>*'.";
1717
- readonly minLength: 1;
1718
- readonly maxLength: 512;
1719
- };
1612
+ readonly path: {
1613
+ readonly type: "string";
1614
+ readonly description: "Absolute URL path, starting with '/', no trailing slash except root.";
1615
+ readonly pattern: "^/(?:[a-z0-9]+(?:-[a-z0-9]+)*(?:/[a-z0-9]+(?:-[a-z0-9]+)*)*)?$";
1616
+ readonly maxLength: 1024;
1720
1617
  };
1721
- }, {
1722
- readonly type: "object";
1723
- readonly title: "ComponentSection";
1724
- readonly description: "A typed block from the block registry (RFC-0015): `type` names a registered block type (one global namespace of English names), `props` follow that type's props schema, which the store validates.";
1725
- readonly additionalProperties: false;
1726
- readonly required: readonly ["id", "kind", "type", "props"];
1727
- readonly properties: {
1728
- readonly id: {
1729
- readonly $ref: "#/$defs/Id";
1730
- };
1731
- readonly kind: {
1732
- readonly type: "string";
1733
- readonly enum: readonly ["component"];
1734
- };
1735
- readonly type: {
1736
- readonly type: "string";
1737
- readonly pattern: "^[a-z][a-z0-9-]{1,40}$";
1738
- };
1739
- readonly props: {
1740
- readonly type: "object";
1741
- readonly description: "Validated against the type's props schema by the store, not by this contract.";
1742
- readonly additionalProperties: true;
1743
- };
1618
+ readonly title: {
1619
+ readonly type: "string";
1620
+ readonly minLength: 1;
1621
+ readonly maxLength: 300;
1744
1622
  };
1745
- }, {
1746
- readonly type: "object";
1747
- readonly title: "SurfaceSection";
1748
- readonly description: "A generative UI surface (RFC-0020): a flat list of catalog components with a `root`, plus a data model their props may bind to. Written and streamed by agents as data, never code; the store checks the tree, the catalog and the limits.";
1749
- readonly additionalProperties: false;
1750
- readonly required: readonly ["id", "kind", "catalog", "components"];
1751
- readonly properties: {
1752
- readonly id: {
1753
- readonly $ref: "#/$defs/Id";
1754
- };
1755
- readonly kind: {
1756
- readonly type: "string";
1757
- readonly enum: readonly ["surface"];
1758
- };
1759
- readonly catalog: {
1760
- readonly type: "string";
1761
- readonly description: "The catalog the surface was written for: `<theme>@<major>` (RFC-0018 manifest).";
1762
- readonly pattern: "^[a-z][a-z0-9-]{0,40}@[0-9]{1,4}$";
1623
+ readonly locale: {
1624
+ readonly $ref: "#/$defs/Locale";
1625
+ };
1626
+ readonly status: {
1627
+ readonly $ref: "#/$defs/PublishStatus";
1628
+ };
1629
+ readonly sections: {
1630
+ readonly type: "array";
1631
+ readonly items: {
1632
+ readonly $ref: "#/$defs/Section";
1763
1633
  };
1764
- readonly components: {
1765
- readonly type: "array";
1766
- readonly minItems: 1;
1767
- readonly maxItems: 200;
1768
- readonly items: {
1769
- readonly $ref: "#/$defs/SurfaceComponent";
1634
+ };
1635
+ readonly seo: {
1636
+ readonly $ref: "#/$defs/Seo";
1637
+ };
1638
+ readonly availability: {
1639
+ readonly $ref: "#/$defs/Availability";
1640
+ };
1641
+ readonly chrome: {
1642
+ readonly type: "object";
1643
+ readonly description: "This page's own header and footer (RFC-0025 §1): a landing page without the menu, a checkout without the footer.";
1644
+ readonly additionalProperties: false;
1645
+ readonly properties: {
1646
+ readonly header: {
1647
+ readonly type: "string";
1648
+ readonly enum: readonly ["default", "transparent", "hidden"];
1649
+ };
1650
+ readonly footer: {
1651
+ readonly type: "string";
1652
+ readonly enum: readonly ["default", "minimal", "hidden"];
1770
1653
  };
1771
- };
1772
- readonly data: {
1773
- readonly type: "object";
1774
- readonly description: "The surface's data model: JSON its components bind to with `{path}` (at most 64 KB serialized; the store enforces the size).";
1775
- readonly additionalProperties: true;
1776
1654
  };
1777
1655
  };
1778
- }];
1656
+ readonly motion: {
1657
+ readonly $ref: "#/$defs/MotionLevel";
1658
+ readonly description: "Overrides the site's motion level for this page, up or down (RFC-0024 §1); absent follows the site.";
1659
+ };
1660
+ readonly rev: {
1661
+ readonly $ref: "#/$defs/Revision";
1662
+ };
1663
+ readonly createdAt: {
1664
+ readonly $ref: "#/$defs/Timestamp";
1665
+ };
1666
+ readonly updatedAt: {
1667
+ readonly $ref: "#/$defs/Timestamp";
1668
+ };
1669
+ readonly translation: {
1670
+ readonly $ref: "#/$defs/Translation";
1671
+ };
1672
+ readonly metadata: {
1673
+ readonly $ref: "#/$defs/Metadata";
1674
+ };
1675
+ };
1779
1676
  readonly $defs: {
1780
1677
  readonly Actor: {
1781
1678
  readonly type: "object";
@@ -1799,6 +1696,20 @@ export declare const SectionSchema: {
1799
1696
  readonly description: "Who performed an action. Humans and agents share one actor model so the policy engine treats them uniformly.";
1800
1697
  readonly enum: readonly ["human", "agent", "system"];
1801
1698
  };
1699
+ readonly Availability: {
1700
+ readonly type: "object";
1701
+ readonly description: "Time gates of a page or content entry (RFC-0008): the published site shows the node only from `from` (inclusive: an embargo) until `until` (exclusive: an expiry), checked at render time, so the gates hold even when no scheduler runs. Before `from` and from `until` on, the node is absent from every public route, list, feed, sitemap and search output; previews still show it. At least one gate; writers check that `from` is before `until`.";
1702
+ readonly additionalProperties: false;
1703
+ readonly minProperties: 1;
1704
+ readonly properties: {
1705
+ readonly from: {
1706
+ readonly $ref: "#/$defs/Timestamp";
1707
+ };
1708
+ readonly until: {
1709
+ readonly $ref: "#/$defs/Timestamp";
1710
+ };
1711
+ };
1712
+ };
1802
1713
  readonly BodyBlock: {
1803
1714
  readonly type: "object";
1804
1715
  readonly description: "One top-level block of a markdown body in the store's index (RFC-0014 §3). Written by the store only: a client's values are replaced on every write. `by`, `via` and `at` say who last changed the block's content, through which channel and when; they are absent for content written before the index existed.";
@@ -1841,6 +1752,56 @@ export declare const SectionSchema: {
1841
1752
  readonly enum: readonly [1];
1842
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.";
1843
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
+ };
1844
1805
  readonly Id: {
1845
1806
  readonly type: "string";
1846
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.";
@@ -1897,53 +1858,806 @@ export declare const SectionSchema: {
1897
1858
  };
1898
1859
  };
1899
1860
  };
1900
- readonly Slug: {
1861
+ readonly Locale: {
1901
1862
  readonly type: "string";
1902
- readonly description: "Lower-case URL segment.";
1903
- readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
1904
- readonly minLength: 1;
1905
- readonly maxLength: 128;
1863
+ readonly description: "BCP 47 language tag, e.g. en, tr, en-US.";
1864
+ readonly pattern: "^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$";
1906
1865
  };
1907
- readonly SurfaceComponent: {
1866
+ readonly Metadata: {
1908
1867
  readonly type: "object";
1909
- 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.";
1910
- readonly additionalProperties: false;
1911
- readonly required: readonly ["id", "component"];
1912
- readonly properties: {
1913
- readonly id: {
1914
- readonly $ref: "#/$defs/SurfaceComponentId";
1915
- };
1916
- readonly component: {
1917
- readonly type: "string";
1918
- readonly pattern: "^(?:[A-Z][A-Za-z0-9]{1,40}|[a-z][a-z0-9-]{1,40})$";
1919
- };
1920
- readonly children: {
1921
- readonly type: "array";
1922
- readonly maxItems: 200;
1923
- readonly items: {
1924
- readonly $ref: "#/$defs/SurfaceComponentId";
1925
- };
1926
- };
1927
- readonly props: {
1928
- readonly type: "object";
1929
- readonly description: "Literal values, `{path}` bindings into the surface's data, or `{call}` named functions; validated by the store against the catalog, not by this contract.";
1930
- readonly additionalProperties: true;
1931
- };
1932
- readonly visible: {
1933
- readonly type: "object";
1934
- readonly description: "A visibility condition over the surface's data (`eq`, `ne`, `gt`, `lt`, `and`, `or`, `not`); validated by the store.";
1935
- readonly additionalProperties: true;
1936
- };
1937
- readonly motion: {
1938
- readonly type: "object";
1939
- readonly description: "Motion presets for this component (RFC-0024 §2): `reveal`, `hover`, `speed`, `delay`, `stagger`, `replay` and later `scroll`, `loop`; enums and clamped numbers only, validated by the store against the catalog. The renderer turns them into CSS; agents never write CSS.";
1940
- readonly additionalProperties: true;
1941
- };
1868
+ readonly description: "Free-form string-to-string map for extensions. Keys should be namespaced (e.g. cloudhal.source).";
1869
+ readonly additionalProperties: {
1870
+ readonly type: "string";
1942
1871
  };
1943
1872
  };
1944
- readonly SurfaceComponentId: {
1873
+ readonly MotionLevel: {
1945
1874
  readonly type: "string";
1946
- readonly description: "A component's id, unique within its surface; `root` is the tree's root (RFC-0020 §1).";
1875
+ readonly description: "How much a page may move (RFC-0024 §1); the reader's reduced-motion preference and pause control can only lower it.";
1876
+ readonly enum: readonly ["none", "subtle", "standard", "expressive"];
1877
+ };
1878
+ readonly PublishStatus: {
1879
+ readonly type: "string";
1880
+ readonly description: "Editorial lifecycle of a page or content entry.";
1881
+ readonly enum: readonly ["draft", "review", "published", "archived"];
1882
+ };
1883
+ readonly Revision: {
1884
+ readonly type: "integer";
1885
+ readonly description: "Monotonic per-node revision used for optimistic locking (compare-and-swap on write).";
1886
+ readonly minimum: 0;
1887
+ };
1888
+ readonly SchemaVersion: {
1889
+ readonly type: "integer";
1890
+ readonly description: "Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.";
1891
+ readonly enum: readonly [1];
1892
+ };
1893
+ readonly Section: {
1894
+ readonly title: "Section";
1895
+ readonly description: "A block inside a page, discriminated by `kind`. Variants are written inline (not via $ref) and `kind` is a single-value string enum so that TypeScript gets a literal union and Rust gets a serde internally-tagged enum.";
1896
+ readonly oneOf: readonly [{
1897
+ readonly type: "object";
1898
+ readonly title: "HeroSection";
1899
+ readonly additionalProperties: false;
1900
+ readonly required: readonly ["id", "kind", "heading"];
1901
+ readonly properties: {
1902
+ readonly id: {
1903
+ readonly $ref: "#/$defs/Id";
1904
+ };
1905
+ readonly kind: {
1906
+ readonly type: "string";
1907
+ readonly enum: readonly ["hero"];
1908
+ };
1909
+ readonly heading: {
1910
+ readonly type: "string";
1911
+ readonly minLength: 1;
1912
+ readonly maxLength: 300;
1913
+ };
1914
+ readonly subheading: {
1915
+ readonly type: "string";
1916
+ readonly maxLength: 1000;
1917
+ };
1918
+ readonly image: {
1919
+ readonly $ref: "#/$defs/ImageRef";
1920
+ };
1921
+ readonly cta: {
1922
+ readonly $ref: "#/$defs/Link";
1923
+ };
1924
+ };
1925
+ }, {
1926
+ readonly type: "object";
1927
+ readonly title: "RichTextSection";
1928
+ readonly additionalProperties: false;
1929
+ readonly required: readonly ["id", "kind", "format", "body"];
1930
+ readonly properties: {
1931
+ readonly id: {
1932
+ readonly $ref: "#/$defs/Id";
1933
+ };
1934
+ readonly kind: {
1935
+ readonly type: "string";
1936
+ readonly enum: readonly ["richText"];
1937
+ };
1938
+ readonly format: {
1939
+ readonly type: "string";
1940
+ readonly enum: readonly ["markdown", "html"];
1941
+ };
1942
+ readonly body: {
1943
+ readonly type: "string";
1944
+ readonly maxLength: 200000;
1945
+ };
1946
+ readonly profile: {
1947
+ readonly $ref: "#/$defs/BodyProfile";
1948
+ };
1949
+ readonly blocks: {
1950
+ readonly $ref: "#/$defs/BodyBlocks";
1951
+ };
1952
+ };
1953
+ }, {
1954
+ readonly type: "object";
1955
+ readonly title: "ImageSection";
1956
+ readonly additionalProperties: false;
1957
+ readonly required: readonly ["id", "kind", "image"];
1958
+ readonly properties: {
1959
+ readonly id: {
1960
+ readonly $ref: "#/$defs/Id";
1961
+ };
1962
+ readonly kind: {
1963
+ readonly type: "string";
1964
+ readonly enum: readonly ["image"];
1965
+ };
1966
+ readonly image: {
1967
+ readonly $ref: "#/$defs/ImageRef";
1968
+ };
1969
+ readonly caption: {
1970
+ readonly type: "string";
1971
+ readonly maxLength: 1000;
1972
+ };
1973
+ };
1974
+ }, {
1975
+ readonly type: "object";
1976
+ readonly title: "ContentListSection";
1977
+ readonly description: "Renders the newest entries of a content collection (e.g. blog posts).";
1978
+ readonly additionalProperties: false;
1979
+ readonly required: readonly ["id", "kind", "collection", "limit", "sort"];
1980
+ readonly properties: {
1981
+ readonly id: {
1982
+ readonly $ref: "#/$defs/Id";
1983
+ };
1984
+ readonly kind: {
1985
+ readonly type: "string";
1986
+ readonly enum: readonly ["contentList"];
1987
+ };
1988
+ readonly collection: {
1989
+ readonly $ref: "#/$defs/Slug";
1990
+ };
1991
+ readonly limit: {
1992
+ readonly type: "integer";
1993
+ readonly minimum: 1;
1994
+ readonly maximum: 100;
1995
+ };
1996
+ readonly sort: {
1997
+ readonly type: "string";
1998
+ readonly enum: readonly ["newest", "oldest", "title"];
1999
+ };
2000
+ readonly filter: {
2001
+ readonly type: "string";
2002
+ readonly description: "Filter expression over term assignments (RFC-0002), e.g. 'category:news+tag:ai' or 'category:news>*'.";
2003
+ readonly minLength: 1;
2004
+ readonly maxLength: 512;
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
+ };
2018
+ };
2019
+ }, {
2020
+ readonly type: "object";
2021
+ readonly title: "ComponentSection";
2022
+ readonly description: "A typed block from the block registry (RFC-0015): `type` names a registered block type (one global namespace of English names), `props` follow that type's props schema, which the store validates.";
2023
+ readonly additionalProperties: false;
2024
+ readonly required: readonly ["id", "kind", "type", "props"];
2025
+ readonly properties: {
2026
+ readonly id: {
2027
+ readonly $ref: "#/$defs/Id";
2028
+ };
2029
+ readonly kind: {
2030
+ readonly type: "string";
2031
+ readonly enum: readonly ["component"];
2032
+ };
2033
+ readonly type: {
2034
+ readonly type: "string";
2035
+ readonly pattern: "^[a-z][a-z0-9-]{1,40}$";
2036
+ };
2037
+ readonly props: {
2038
+ readonly type: "object";
2039
+ readonly description: "Validated against the type's props schema by the store, not by this contract.";
2040
+ readonly additionalProperties: true;
2041
+ };
2042
+ };
2043
+ }, {
2044
+ readonly type: "object";
2045
+ readonly title: "SurfaceSection";
2046
+ readonly description: "A generative UI surface (RFC-0020): a flat list of catalog components with a `root`, plus a data model their props may bind to. Written and streamed by agents as data, never code; the store checks the tree, the catalog and the limits.";
2047
+ readonly additionalProperties: false;
2048
+ readonly required: readonly ["id", "kind", "catalog", "components"];
2049
+ readonly properties: {
2050
+ readonly id: {
2051
+ readonly $ref: "#/$defs/Id";
2052
+ };
2053
+ readonly kind: {
2054
+ readonly type: "string";
2055
+ readonly enum: readonly ["surface"];
2056
+ };
2057
+ readonly catalog: {
2058
+ readonly type: "string";
2059
+ readonly description: "The catalog the surface was written for: `<theme>@<major>` (RFC-0018 manifest).";
2060
+ readonly pattern: "^[a-z][a-z0-9-]{0,40}@[0-9]{1,4}$";
2061
+ };
2062
+ readonly components: {
2063
+ readonly type: "array";
2064
+ readonly minItems: 1;
2065
+ readonly maxItems: 200;
2066
+ readonly items: {
2067
+ readonly $ref: "#/$defs/SurfaceComponent";
2068
+ };
2069
+ };
2070
+ readonly data: {
2071
+ readonly type: "object";
2072
+ readonly description: "The surface's data model: JSON its components bind to with `{path}` (at most 64 KB serialized; the store enforces the size).";
2073
+ readonly additionalProperties: true;
2074
+ };
2075
+ };
2076
+ }];
2077
+ };
2078
+ readonly Seo: {
2079
+ readonly type: "object";
2080
+ readonly description: "Search and social metadata of a routable node (page, term archive).";
2081
+ readonly additionalProperties: false;
2082
+ readonly properties: {
2083
+ readonly title: {
2084
+ readonly type: "string";
2085
+ readonly maxLength: 300;
2086
+ };
2087
+ readonly description: {
2088
+ readonly type: "string";
2089
+ readonly maxLength: 500;
2090
+ };
2091
+ readonly noindex: {
2092
+ readonly type: "boolean";
2093
+ };
2094
+ readonly canonical: {
2095
+ readonly type: "string";
2096
+ readonly maxLength: 2048;
2097
+ };
2098
+ readonly ogImage: {
2099
+ readonly $ref: "#/$defs/ImageRef";
2100
+ };
2101
+ };
2102
+ };
2103
+ readonly Slug: {
2104
+ readonly type: "string";
2105
+ readonly description: "Lower-case URL segment.";
2106
+ readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
2107
+ readonly minLength: 1;
2108
+ readonly maxLength: 128;
2109
+ };
2110
+ readonly SurfaceComponent: {
2111
+ readonly type: "object";
2112
+ 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.";
2113
+ readonly additionalProperties: false;
2114
+ readonly required: readonly ["id", "component"];
2115
+ readonly properties: {
2116
+ readonly id: {
2117
+ readonly $ref: "#/$defs/SurfaceComponentId";
2118
+ };
2119
+ readonly component: {
2120
+ readonly type: "string";
2121
+ readonly pattern: "^(?:[A-Z][A-Za-z0-9]{1,40}|[a-z][a-z0-9-]{1,40})$";
2122
+ };
2123
+ readonly children: {
2124
+ readonly type: "array";
2125
+ readonly maxItems: 200;
2126
+ readonly items: {
2127
+ readonly $ref: "#/$defs/SurfaceComponentId";
2128
+ };
2129
+ };
2130
+ readonly props: {
2131
+ readonly type: "object";
2132
+ readonly description: "Literal values, `{path}` bindings into the surface's data, or `{call}` named functions; validated by the store against the catalog, not by this contract.";
2133
+ readonly additionalProperties: true;
2134
+ };
2135
+ readonly visible: {
2136
+ readonly type: "object";
2137
+ readonly description: "A visibility condition over the surface's data (`eq`, `ne`, `gt`, `lt`, `and`, `or`, `not`); validated by the store.";
2138
+ readonly additionalProperties: true;
2139
+ };
2140
+ readonly motion: {
2141
+ readonly type: "object";
2142
+ readonly description: "Motion presets for this component (RFC-0024 §2): `reveal`, `hover`, `speed`, `delay`, `stagger`, `replay` and later `scroll`, `loop`; enums and clamped numbers only, validated by the store against the catalog. The renderer turns them into CSS; agents never write CSS.";
2143
+ readonly additionalProperties: true;
2144
+ };
2145
+ };
2146
+ };
2147
+ readonly SurfaceComponentId: {
2148
+ readonly type: "string";
2149
+ readonly description: "A component's id, unique within its surface; `root` is the tree's root (RFC-0020 §1).";
2150
+ readonly pattern: "^[a-z][a-z0-9-]{0,40}$";
2151
+ };
2152
+ readonly Timestamp: {
2153
+ readonly type: "string";
2154
+ readonly description: "RFC 3339 / ISO 8601 instant in UTC.";
2155
+ readonly format: "date-time";
2156
+ };
2157
+ readonly Translation: {
2158
+ readonly type: "object";
2159
+ readonly description: "Links a page or entry to the other language versions of the same work (RFC-0033 §2). Staleness is computed: the source's current hash differs from source.hash.";
2160
+ readonly additionalProperties: false;
2161
+ readonly required: readonly ["group", "method"];
2162
+ readonly properties: {
2163
+ readonly group: {
2164
+ readonly $ref: "#/$defs/Id";
2165
+ readonly description: "The group's id: the original node's id, shared by every translation. May cross sites in one project.";
2166
+ };
2167
+ readonly method: {
2168
+ readonly $ref: "#/$defs/TranslationMethod";
2169
+ };
2170
+ readonly layout: {
2171
+ readonly type: "string";
2172
+ readonly description: "linked: the original's structural changes propagate to this translation as drafts (RFC-0033 §4a); independent: nothing propagates. Absent means linked.";
2173
+ readonly enum: readonly ["linked", "independent"];
2174
+ };
2175
+ readonly source: {
2176
+ readonly type: "object";
2177
+ readonly description: "The node and revision this translation was made from. Absent on the original.";
2178
+ readonly additionalProperties: false;
2179
+ readonly required: readonly ["id", "locale", "rev", "hash"];
2180
+ readonly properties: {
2181
+ readonly id: {
2182
+ readonly $ref: "#/$defs/Id";
2183
+ };
2184
+ readonly siteId: {
2185
+ readonly $ref: "#/$defs/Id";
2186
+ readonly description: "The source's site when it is another site of the same project (a language edition). Absent means this site.";
2187
+ };
2188
+ readonly locale: {
2189
+ readonly $ref: "#/$defs/Locale";
2190
+ };
2191
+ readonly rev: {
2192
+ readonly $ref: "#/$defs/Revision";
2193
+ };
2194
+ readonly hash: {
2195
+ readonly type: "string";
2196
+ readonly description: "Lower-case hex SHA-256 of the source node's canonical JSON at that revision.";
2197
+ readonly pattern: "^[0-9a-f]{64}$";
2198
+ };
2199
+ };
2200
+ };
2201
+ readonly provenance: {
2202
+ readonly type: "object";
2203
+ readonly description: "The machine-translation record: engine, glossary revision, checks run, quality score. Required when method is machine or machine-reviewed.";
2204
+ readonly additionalProperties: false;
2205
+ readonly required: readonly ["engine", "at"];
2206
+ readonly properties: {
2207
+ readonly engine: {
2208
+ readonly type: "string";
2209
+ readonly minLength: 1;
2210
+ readonly maxLength: 200;
2211
+ };
2212
+ readonly glossaryRev: {
2213
+ readonly $ref: "#/$defs/Revision";
2214
+ };
2215
+ readonly score: {
2216
+ readonly type: "number";
2217
+ readonly minimum: 0;
2218
+ readonly maximum: 100;
2219
+ };
2220
+ readonly checks: {
2221
+ readonly type: "array";
2222
+ readonly items: {
2223
+ readonly type: "string";
2224
+ readonly minLength: 1;
2225
+ readonly maxLength: 100;
2226
+ };
2227
+ readonly maxItems: 50;
2228
+ };
2229
+ readonly at: {
2230
+ readonly $ref: "#/$defs/Timestamp";
2231
+ };
2232
+ };
2233
+ };
2234
+ readonly review: {
2235
+ readonly type: "object";
2236
+ readonly description: "The person who reviewed this translation and when. Only humans set it.";
2237
+ readonly additionalProperties: false;
2238
+ readonly required: readonly ["by", "at"];
2239
+ readonly properties: {
2240
+ readonly by: {
2241
+ readonly $ref: "#/$defs/Actor";
2242
+ };
2243
+ readonly at: {
2244
+ readonly $ref: "#/$defs/Timestamp";
2245
+ };
2246
+ };
2247
+ };
2248
+ };
2249
+ };
2250
+ readonly TranslationMethod: {
2251
+ readonly type: "string";
2252
+ readonly description: "How a page's or entry's text came to be (RFC-0033). 'original' marks the source of a translation group; 'machine-reviewed' is machine output a person has reviewed.";
2253
+ readonly enum: readonly ["original", "human", "machine", "machine-reviewed"];
2254
+ };
2255
+ };
2256
+ };
2257
+ export declare const SectionSchema: {
2258
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
2259
+ readonly $id: "https://cloudhal.dev/schemas/v1/section.schema.json";
2260
+ readonly title: "Section";
2261
+ readonly description: "A block inside a page, discriminated by `kind`. Variants are written inline (not via $ref) and `kind` is a single-value string enum so that TypeScript gets a literal union and Rust gets a serde internally-tagged enum.";
2262
+ readonly oneOf: readonly [{
2263
+ readonly type: "object";
2264
+ readonly title: "HeroSection";
2265
+ readonly additionalProperties: false;
2266
+ readonly required: readonly ["id", "kind", "heading"];
2267
+ readonly properties: {
2268
+ readonly id: {
2269
+ readonly $ref: "#/$defs/Id";
2270
+ };
2271
+ readonly kind: {
2272
+ readonly type: "string";
2273
+ readonly enum: readonly ["hero"];
2274
+ };
2275
+ readonly heading: {
2276
+ readonly type: "string";
2277
+ readonly minLength: 1;
2278
+ readonly maxLength: 300;
2279
+ };
2280
+ readonly subheading: {
2281
+ readonly type: "string";
2282
+ readonly maxLength: 1000;
2283
+ };
2284
+ readonly image: {
2285
+ readonly $ref: "#/$defs/ImageRef";
2286
+ };
2287
+ readonly cta: {
2288
+ readonly $ref: "#/$defs/Link";
2289
+ };
2290
+ };
2291
+ }, {
2292
+ readonly type: "object";
2293
+ readonly title: "RichTextSection";
2294
+ readonly additionalProperties: false;
2295
+ readonly required: readonly ["id", "kind", "format", "body"];
2296
+ readonly properties: {
2297
+ readonly id: {
2298
+ readonly $ref: "#/$defs/Id";
2299
+ };
2300
+ readonly kind: {
2301
+ readonly type: "string";
2302
+ readonly enum: readonly ["richText"];
2303
+ };
2304
+ readonly format: {
2305
+ readonly type: "string";
2306
+ readonly enum: readonly ["markdown", "html"];
2307
+ };
2308
+ readonly body: {
2309
+ readonly type: "string";
2310
+ readonly maxLength: 200000;
2311
+ };
2312
+ readonly profile: {
2313
+ readonly $ref: "#/$defs/BodyProfile";
2314
+ };
2315
+ readonly blocks: {
2316
+ readonly $ref: "#/$defs/BodyBlocks";
2317
+ };
2318
+ };
2319
+ }, {
2320
+ readonly type: "object";
2321
+ readonly title: "ImageSection";
2322
+ readonly additionalProperties: false;
2323
+ readonly required: readonly ["id", "kind", "image"];
2324
+ readonly properties: {
2325
+ readonly id: {
2326
+ readonly $ref: "#/$defs/Id";
2327
+ };
2328
+ readonly kind: {
2329
+ readonly type: "string";
2330
+ readonly enum: readonly ["image"];
2331
+ };
2332
+ readonly image: {
2333
+ readonly $ref: "#/$defs/ImageRef";
2334
+ };
2335
+ readonly caption: {
2336
+ readonly type: "string";
2337
+ readonly maxLength: 1000;
2338
+ };
2339
+ };
2340
+ }, {
2341
+ readonly type: "object";
2342
+ readonly title: "ContentListSection";
2343
+ readonly description: "Renders the newest entries of a content collection (e.g. blog posts).";
2344
+ readonly additionalProperties: false;
2345
+ readonly required: readonly ["id", "kind", "collection", "limit", "sort"];
2346
+ readonly properties: {
2347
+ readonly id: {
2348
+ readonly $ref: "#/$defs/Id";
2349
+ };
2350
+ readonly kind: {
2351
+ readonly type: "string";
2352
+ readonly enum: readonly ["contentList"];
2353
+ };
2354
+ readonly collection: {
2355
+ readonly $ref: "#/$defs/Slug";
2356
+ };
2357
+ readonly limit: {
2358
+ readonly type: "integer";
2359
+ readonly minimum: 1;
2360
+ readonly maximum: 100;
2361
+ };
2362
+ readonly sort: {
2363
+ readonly type: "string";
2364
+ readonly enum: readonly ["newest", "oldest", "title"];
2365
+ };
2366
+ readonly filter: {
2367
+ readonly type: "string";
2368
+ readonly description: "Filter expression over term assignments (RFC-0002), e.g. 'category:news+tag:ai' or 'category:news>*'.";
2369
+ readonly minLength: 1;
2370
+ readonly maxLength: 512;
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
+ };
2384
+ };
2385
+ }, {
2386
+ readonly type: "object";
2387
+ readonly title: "ComponentSection";
2388
+ readonly description: "A typed block from the block registry (RFC-0015): `type` names a registered block type (one global namespace of English names), `props` follow that type's props schema, which the store validates.";
2389
+ readonly additionalProperties: false;
2390
+ readonly required: readonly ["id", "kind", "type", "props"];
2391
+ readonly properties: {
2392
+ readonly id: {
2393
+ readonly $ref: "#/$defs/Id";
2394
+ };
2395
+ readonly kind: {
2396
+ readonly type: "string";
2397
+ readonly enum: readonly ["component"];
2398
+ };
2399
+ readonly type: {
2400
+ readonly type: "string";
2401
+ readonly pattern: "^[a-z][a-z0-9-]{1,40}$";
2402
+ };
2403
+ readonly props: {
2404
+ readonly type: "object";
2405
+ readonly description: "Validated against the type's props schema by the store, not by this contract.";
2406
+ readonly additionalProperties: true;
2407
+ };
2408
+ };
2409
+ }, {
2410
+ readonly type: "object";
2411
+ readonly title: "SurfaceSection";
2412
+ readonly description: "A generative UI surface (RFC-0020): a flat list of catalog components with a `root`, plus a data model their props may bind to. Written and streamed by agents as data, never code; the store checks the tree, the catalog and the limits.";
2413
+ readonly additionalProperties: false;
2414
+ readonly required: readonly ["id", "kind", "catalog", "components"];
2415
+ readonly properties: {
2416
+ readonly id: {
2417
+ readonly $ref: "#/$defs/Id";
2418
+ };
2419
+ readonly kind: {
2420
+ readonly type: "string";
2421
+ readonly enum: readonly ["surface"];
2422
+ };
2423
+ readonly catalog: {
2424
+ readonly type: "string";
2425
+ readonly description: "The catalog the surface was written for: `<theme>@<major>` (RFC-0018 manifest).";
2426
+ readonly pattern: "^[a-z][a-z0-9-]{0,40}@[0-9]{1,4}$";
2427
+ };
2428
+ readonly components: {
2429
+ readonly type: "array";
2430
+ readonly minItems: 1;
2431
+ readonly maxItems: 200;
2432
+ readonly items: {
2433
+ readonly $ref: "#/$defs/SurfaceComponent";
2434
+ };
2435
+ };
2436
+ readonly data: {
2437
+ readonly type: "object";
2438
+ readonly description: "The surface's data model: JSON its components bind to with `{path}` (at most 64 KB serialized; the store enforces the size).";
2439
+ readonly additionalProperties: true;
2440
+ };
2441
+ };
2442
+ }];
2443
+ readonly $defs: {
2444
+ readonly Actor: {
2445
+ readonly type: "object";
2446
+ readonly additionalProperties: false;
2447
+ readonly required: readonly ["kind", "id"];
2448
+ readonly properties: {
2449
+ readonly kind: {
2450
+ readonly $ref: "#/$defs/ActorKind";
2451
+ };
2452
+ readonly id: {
2453
+ readonly $ref: "#/$defs/Id";
2454
+ };
2455
+ readonly name: {
2456
+ readonly type: "string";
2457
+ readonly maxLength: 200;
2458
+ };
2459
+ };
2460
+ };
2461
+ readonly ActorKind: {
2462
+ readonly type: "string";
2463
+ readonly description: "Who performed an action. Humans and agents share one actor model so the policy engine treats them uniformly.";
2464
+ readonly enum: readonly ["human", "agent", "system"];
2465
+ };
2466
+ readonly BodyBlock: {
2467
+ readonly type: "object";
2468
+ readonly description: "One top-level block of a markdown body in the store's index (RFC-0014 §3). Written by the store only: a client's values are replaced on every write. `by`, `via` and `at` say who last changed the block's content, through which channel and when; they are absent for content written before the index existed.";
2469
+ readonly additionalProperties: false;
2470
+ readonly required: readonly ["id", "hash"];
2471
+ readonly properties: {
2472
+ readonly id: {
2473
+ readonly type: "string";
2474
+ readonly pattern: "^blk_[0-9A-Za-z]{8,24}$";
2475
+ readonly description: "Stable across writes that keep the block's content or its place among unchanged blocks.";
2476
+ };
2477
+ readonly hash: {
2478
+ readonly type: "string";
2479
+ readonly pattern: "^[0-9a-f]{64}$";
2480
+ readonly description: "SHA-256 (hex) of the block's markdown without trailing whitespace.";
2481
+ };
2482
+ readonly by: {
2483
+ readonly $ref: "#/$defs/Actor";
2484
+ };
2485
+ readonly via: {
2486
+ readonly type: "string";
2487
+ readonly enum: readonly ["studio", "mcp", "api", "import", "ai-command", "proposal"];
2488
+ readonly description: "The channel of that change.";
2489
+ };
2490
+ readonly at: {
2491
+ readonly $ref: "#/$defs/Timestamp";
2492
+ };
2493
+ };
2494
+ };
2495
+ readonly BodyBlocks: {
2496
+ readonly type: "array";
2497
+ readonly description: "A markdown body's block index, in body order (RFC-0014 §3). Absent means not indexed (yet, or an HTML body), never empty.";
2498
+ readonly maxItems: 5000;
2499
+ readonly items: {
2500
+ readonly $ref: "#/$defs/BodyBlock";
2501
+ };
2502
+ };
2503
+ readonly BodyProfile: {
2504
+ readonly type: "integer";
2505
+ readonly enum: readonly [1];
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.";
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
+ };
2558
+ readonly Id: {
2559
+ readonly type: "string";
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.";
2561
+ readonly pattern: "^[a-z]+_[A-Za-z0-9]{6,32}$";
2562
+ readonly minLength: 8;
2563
+ readonly maxLength: 48;
2564
+ };
2565
+ readonly ImageRef: {
2566
+ readonly type: "object";
2567
+ readonly description: "Reference to an image. With `assetId` the image is an Asset node (RFC-0004): the store writes its media URL into `src`, and its size into `width` and `height`, as a fallback for readers that do not resolve assets. Without it, `src` is a relative path or an absolute URL, as before.";
2568
+ readonly additionalProperties: false;
2569
+ readonly required: readonly ["src", "alt"];
2570
+ readonly properties: {
2571
+ readonly assetId: {
2572
+ readonly $ref: "#/$defs/Id";
2573
+ readonly description: "The Asset node shown (RFC-0004). Renderers that know assets resolve it and ignore `src`.";
2574
+ };
2575
+ readonly src: {
2576
+ readonly type: "string";
2577
+ readonly minLength: 1;
2578
+ readonly maxLength: 2048;
2579
+ };
2580
+ readonly alt: {
2581
+ readonly type: "string";
2582
+ readonly maxLength: 500;
2583
+ };
2584
+ readonly width: {
2585
+ readonly type: "integer";
2586
+ readonly minimum: 1;
2587
+ };
2588
+ readonly height: {
2589
+ readonly type: "integer";
2590
+ readonly minimum: 1;
2591
+ };
2592
+ };
2593
+ };
2594
+ readonly Link: {
2595
+ readonly type: "object";
2596
+ readonly additionalProperties: false;
2597
+ readonly required: readonly ["label", "href"];
2598
+ readonly properties: {
2599
+ readonly label: {
2600
+ readonly type: "string";
2601
+ readonly minLength: 1;
2602
+ readonly maxLength: 200;
2603
+ };
2604
+ readonly href: {
2605
+ readonly type: "string";
2606
+ readonly minLength: 1;
2607
+ readonly maxLength: 2048;
2608
+ };
2609
+ readonly external: {
2610
+ readonly type: "boolean";
2611
+ };
2612
+ };
2613
+ };
2614
+ readonly Slug: {
2615
+ readonly type: "string";
2616
+ readonly description: "Lower-case URL segment.";
2617
+ readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
2618
+ readonly minLength: 1;
2619
+ readonly maxLength: 128;
2620
+ };
2621
+ readonly SurfaceComponent: {
2622
+ readonly type: "object";
2623
+ 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.";
2624
+ readonly additionalProperties: false;
2625
+ readonly required: readonly ["id", "component"];
2626
+ readonly properties: {
2627
+ readonly id: {
2628
+ readonly $ref: "#/$defs/SurfaceComponentId";
2629
+ };
2630
+ readonly component: {
2631
+ readonly type: "string";
2632
+ readonly pattern: "^(?:[A-Z][A-Za-z0-9]{1,40}|[a-z][a-z0-9-]{1,40})$";
2633
+ };
2634
+ readonly children: {
2635
+ readonly type: "array";
2636
+ readonly maxItems: 200;
2637
+ readonly items: {
2638
+ readonly $ref: "#/$defs/SurfaceComponentId";
2639
+ };
2640
+ };
2641
+ readonly props: {
2642
+ readonly type: "object";
2643
+ readonly description: "Literal values, `{path}` bindings into the surface's data, or `{call}` named functions; validated by the store against the catalog, not by this contract.";
2644
+ readonly additionalProperties: true;
2645
+ };
2646
+ readonly visible: {
2647
+ readonly type: "object";
2648
+ readonly description: "A visibility condition over the surface's data (`eq`, `ne`, `gt`, `lt`, `and`, `or`, `not`); validated by the store.";
2649
+ readonly additionalProperties: true;
2650
+ };
2651
+ readonly motion: {
2652
+ readonly type: "object";
2653
+ readonly description: "Motion presets for this component (RFC-0024 §2): `reveal`, `hover`, `speed`, `delay`, `stagger`, `replay` and later `scroll`, `loop`; enums and clamped numbers only, validated by the store against the catalog. The renderer turns them into CSS; agents never write CSS.";
2654
+ readonly additionalProperties: true;
2655
+ };
2656
+ };
2657
+ };
2658
+ readonly SurfaceComponentId: {
2659
+ readonly type: "string";
2660
+ readonly description: "A component's id, unique within its surface; `root` is the tree's root (RFC-0020 §1).";
1947
2661
  readonly pattern: "^[a-z][a-z0-9-]{0,40}$";
1948
2662
  };
1949
2663
  readonly Timestamp: {
@@ -1997,7 +2711,7 @@ export declare const ContentEntrySchema: {
1997
2711
  };
1998
2712
  readonly fields: {
1999
2713
  readonly type: "object";
2000
- readonly description: "Collection-specific values; any JSON.";
2714
+ readonly description: "Collection-specific values, keyed by field. A collection with typed fields (RFC-0041, Site.collections.<key>.fields) checks each value against its definition on write; otherwise any JSON. An absent key means no value.";
2001
2715
  readonly additionalProperties: true;
2002
2716
  };
2003
2717
  readonly tags: {
@@ -6243,195 +6957,676 @@ export declare const schemas: {
6243
6957
  readonly minLength: 1;
6244
6958
  readonly maxLength: 40;
6245
6959
  };
6246
- readonly ctaHref: {
6247
- readonly type: "string";
6248
- readonly minLength: 1;
6249
- readonly maxLength: 2048;
6960
+ readonly ctaHref: {
6961
+ readonly type: "string";
6962
+ readonly minLength: 1;
6963
+ readonly maxLength: 2048;
6964
+ };
6965
+ readonly social: {
6966
+ readonly type: "boolean";
6967
+ };
6968
+ readonly copyright: {
6969
+ readonly type: "string";
6970
+ readonly minLength: 1;
6971
+ readonly maxLength: 200;
6972
+ readonly description: "The legal line; {year} and {site} are the only placeholders.";
6973
+ };
6974
+ readonly legal: {
6975
+ readonly $ref: "#/$defs/Slug";
6976
+ readonly description: "A menu key (RFC-0003).";
6977
+ };
6978
+ readonly extras: {
6979
+ readonly type: "array";
6980
+ readonly maxItems: 3;
6981
+ readonly uniqueItems: true;
6982
+ readonly items: {
6983
+ readonly type: "string";
6984
+ readonly enum: readonly ["locale", "theme-toggle", "motion-toggle"];
6985
+ };
6986
+ };
6987
+ readonly credit: {
6988
+ readonly type: "boolean";
6989
+ };
6990
+ readonly region: {
6991
+ readonly $ref: "#/$defs/Section";
6992
+ readonly description: "RFC-0025 §2: one optional surface (kind `surface`) above the footer's columns, built and checked like any surface; the store refuses other section kinds.";
6993
+ };
6994
+ };
6995
+ };
6996
+ readonly ChromeHeader: {
6997
+ readonly type: "object";
6998
+ readonly additionalProperties: false;
6999
+ readonly properties: {
7000
+ readonly layout: {
7001
+ readonly type: "string";
7002
+ readonly enum: readonly ["logo-left", "logo-left-nav-center", "centered", "split", "minimal"];
7003
+ };
7004
+ readonly behavior: {
7005
+ readonly type: "string";
7006
+ readonly enum: readonly ["static", "sticky", "hide-on-scroll", "fixed"];
7007
+ };
7008
+ readonly shrink: {
7009
+ readonly type: "boolean";
7010
+ };
7011
+ readonly overHero: {
7012
+ readonly type: "string";
7013
+ readonly enum: readonly ["solid", "transparent"];
7014
+ };
7015
+ readonly width: {
7016
+ readonly type: "string";
7017
+ readonly enum: readonly ["content", "wide", "full"];
7018
+ };
7019
+ readonly surface: {
7020
+ readonly type: "string";
7021
+ readonly enum: readonly ["plain", "muted", "raised", "inverse", "brand"];
7022
+ };
7023
+ readonly mobileStyle: {
7024
+ readonly type: "string";
7025
+ readonly enum: readonly ["dropdown", "drawer-start", "drawer-end", "fullscreen"];
7026
+ };
7027
+ readonly collapseAt: {
7028
+ readonly type: "string";
7029
+ readonly enum: readonly ["sm", "md", "lg", "always"];
7030
+ };
7031
+ readonly nav: {
7032
+ readonly $ref: "#/$defs/Slug";
7033
+ readonly description: "A menu key (RFC-0003).";
7034
+ };
7035
+ readonly utility: {
7036
+ readonly $ref: "#/$defs/Slug";
7037
+ readonly description: "A menu key (RFC-0003).";
7038
+ };
7039
+ readonly actions: {
7040
+ readonly type: "array";
7041
+ readonly maxItems: 3;
7042
+ readonly items: {
7043
+ readonly $ref: "#/$defs/HeaderAction";
7044
+ };
7045
+ };
7046
+ };
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
+ };
7070
+ readonly CollectionLabel: {
7071
+ readonly type: "object";
7072
+ readonly additionalProperties: false;
7073
+ readonly required: readonly ["singular", "plural"];
7074
+ readonly properties: {
7075
+ readonly singular: {
7076
+ readonly type: "string";
7077
+ readonly minLength: 1;
7078
+ readonly maxLength: 100;
7079
+ };
7080
+ readonly plural: {
7081
+ readonly type: "string";
7082
+ readonly minLength: 1;
7083
+ readonly maxLength: 100;
7084
+ };
7085
+ readonly description: {
7086
+ readonly type: "string";
7087
+ readonly maxLength: 1000;
7088
+ };
7089
+ };
7090
+ };
7091
+ readonly CollectionSettings: {
7092
+ readonly type: "object";
7093
+ readonly additionalProperties: false;
7094
+ readonly properties: {
7095
+ readonly permalink: {
7096
+ readonly type: "string";
7097
+ 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}.";
7098
+ readonly pattern: "^(/[a-z0-9]+(-[a-z0-9]+)*)+/\\{slug\\}$";
7099
+ };
7100
+ readonly labels: {
7101
+ readonly type: "object";
7102
+ readonly description: "RFC-0040: display names per locale (Studio, agents, themes). Absent or missing a locale: the default locale's, then the key.";
7103
+ readonly propertyNames: {
7104
+ readonly $ref: "#/$defs/Locale";
7105
+ };
7106
+ readonly minProperties: 1;
7107
+ readonly additionalProperties: {
7108
+ readonly $ref: "#/$defs/CollectionLabel";
7109
+ };
7110
+ };
7111
+ readonly icon: {
7112
+ readonly type: "string";
7113
+ readonly description: "RFC-0040: a name from Studio's closed icon set (e.g. calendar, briefcase, users). Unknown names show the default icon. Never a URL or markup.";
7114
+ readonly pattern: "^[a-z0-9]+(-[a-z0-9]+)*$";
7115
+ readonly maxLength: 40;
7116
+ };
7117
+ readonly feed: {
7118
+ readonly type: "boolean";
7119
+ readonly description: "RFC-0040: entries appear in the site's RSS feeds. Absent: true.";
6250
7120
  };
6251
- readonly social: {
7121
+ readonly sitemap: {
6252
7122
  readonly type: "boolean";
7123
+ readonly description: "RFC-0040: published entries appear in sitemap.xml. Absent: true.";
6253
7124
  };
6254
- readonly copyright: {
7125
+ readonly sort: {
6255
7126
  readonly type: "string";
6256
- readonly minLength: 1;
6257
- readonly maxLength: 200;
6258
- readonly description: "The legal line; {year} and {site} are the only placeholders.";
7127
+ readonly description: "RFC-0040: default order where none is given (Studio's list, entry queries without sort, MCP list_entries). Absent: newest.";
7128
+ readonly enum: readonly ["newest", "oldest", "title"];
6259
7129
  };
6260
- readonly legal: {
6261
- readonly $ref: "#/$defs/Slug";
6262
- readonly description: "A menu key (RFC-0003).";
7130
+ readonly fields: {
7131
+ readonly type: "array";
7132
+ readonly description: "RFC-0041: the collection's typed custom fields, in form order. Values live in ContentEntry.fields under each key. At most 200 per site and unique keys (checked in code).";
7133
+ readonly minItems: 1;
7134
+ readonly maxItems: 30;
7135
+ readonly items: {
7136
+ readonly $ref: "#/$defs/FieldDefinition";
7137
+ };
6263
7138
  };
6264
- readonly extras: {
7139
+ readonly listFields: {
6265
7140
  readonly type: "array";
6266
- readonly maxItems: 3;
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;
6267
7144
  readonly uniqueItems: true;
6268
7145
  readonly items: {
6269
- readonly type: "string";
6270
- readonly enum: readonly ["locale", "theme-toggle", "motion-toggle"];
7146
+ readonly $ref: "#/$defs/FieldKey";
6271
7147
  };
6272
7148
  };
6273
- readonly credit: {
6274
- readonly type: "boolean";
7149
+ readonly expiry: {
7150
+ readonly $ref: "#/$defs/CollectionExpiry";
6275
7151
  };
6276
- readonly region: {
6277
- readonly $ref: "#/$defs/Section";
6278
- readonly description: "RFC-0025 §2: one optional surface (kind `surface`) above the footer's columns, built and checked like any surface; the store refuses other section kinds.";
7152
+ readonly structuredData: {
7153
+ readonly $ref: "#/$defs/StructuredDataPreset";
6279
7154
  };
6280
7155
  };
6281
7156
  };
6282
- readonly ChromeHeader: {
7157
+ readonly Consent: {
6283
7158
  readonly type: "object";
6284
7159
  readonly additionalProperties: false;
7160
+ readonly required: readonly ["mode"];
6285
7161
  readonly properties: {
6286
- readonly layout: {
7162
+ readonly mode: {
6287
7163
  readonly type: "string";
6288
- readonly enum: readonly ["logo-left", "logo-left-nav-center", "centered", "split", "minimal"];
7164
+ readonly enum: readonly ["none", "notice", "choices"];
6289
7165
  };
6290
- readonly behavior: {
7166
+ readonly policy: {
7167
+ readonly $ref: "#/$defs/Path";
7168
+ };
7169
+ };
7170
+ };
7171
+ readonly Design: {
7172
+ readonly type: "object";
7173
+ readonly description: "The site's design rules for people and agents (RFC-0021): Markdown that agents read with the theme's DESIGN.md before they build. Guidance only: it changes neither rendering nor permissions.";
7174
+ readonly additionalProperties: false;
7175
+ readonly required: readonly ["markdown"];
7176
+ readonly properties: {
7177
+ readonly markdown: {
6291
7178
  readonly type: "string";
6292
- readonly enum: readonly ["static", "sticky", "hide-on-scroll", "fixed"];
7179
+ readonly minLength: 1;
7180
+ readonly maxLength: 24000;
6293
7181
  };
6294
- readonly shrink: {
7182
+ };
7183
+ };
7184
+ readonly Domain: {
7185
+ readonly type: "object";
7186
+ readonly additionalProperties: false;
7187
+ readonly required: readonly ["hostname", "primary"];
7188
+ readonly properties: {
7189
+ readonly hostname: {
7190
+ readonly type: "string";
7191
+ readonly pattern: "^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$";
7192
+ readonly maxLength: 253;
7193
+ };
7194
+ readonly primary: {
6295
7195
  readonly type: "boolean";
6296
7196
  };
6297
- readonly overHero: {
7197
+ };
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: {
6298
7211
  readonly type: "string";
6299
- readonly enum: readonly ["solid", "transparent"];
7212
+ readonly description: "A field key (site.schema.json FieldKey's pattern, repeated).";
7213
+ readonly pattern: "^[a-z][A-Za-z0-9]{0,39}$";
6300
7214
  };
6301
- readonly width: {
7215
+ readonly op: {
6302
7216
  readonly type: "string";
6303
- readonly enum: readonly ["content", "wide", "full"];
7217
+ readonly enum: readonly ["eq", "ne", "lt", "lte", "gt", "gte", "in", "set", "unset"];
6304
7218
  };
6305
- readonly surface: {
7219
+ readonly value: {
6306
7220
  readonly type: "string";
6307
- readonly enum: readonly ["plain", "muted", "raised", "inverse", "brand"];
7221
+ readonly minLength: 1;
7222
+ readonly maxLength: 100;
6308
7223
  };
6309
- readonly mobileStyle: {
6310
- readonly type: "string";
6311
- readonly enum: readonly ["dropdown", "drawer-start", "drawer-end", "fullscreen"];
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
+ };
6312
7234
  };
6313
- readonly collapseAt: {
6314
- readonly type: "string";
6315
- readonly enum: readonly ["sm", "md", "lg", "always"];
7235
+ };
7236
+ };
7237
+ readonly FieldDefinition: {
7238
+ readonly description: "RFC-0041: one typed custom field of a collection, discriminated by `type`.";
7239
+ readonly oneOf: readonly [{
7240
+ readonly title: "TextField";
7241
+ readonly type: "object";
7242
+ readonly description: "Plain text: a string of at most maxLength characters.";
7243
+ readonly additionalProperties: false;
7244
+ readonly required: readonly ["key", "type", "labels", "localized"];
7245
+ readonly properties: {
7246
+ readonly key: {
7247
+ readonly $ref: "#/$defs/FieldKey";
7248
+ };
7249
+ readonly type: {
7250
+ readonly type: "string";
7251
+ readonly enum: readonly ["text"];
7252
+ };
7253
+ readonly labels: {
7254
+ readonly $ref: "#/$defs/FieldLabels";
7255
+ };
7256
+ readonly localized: {
7257
+ readonly type: "boolean";
7258
+ readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
7259
+ };
7260
+ readonly requiredToPublish: {
7261
+ readonly type: "boolean";
7262
+ readonly description: "An entry in review or published needs a value. Absent: false.";
7263
+ };
7264
+ readonly migration: {
7265
+ readonly $ref: "#/$defs/FieldMigration";
7266
+ };
7267
+ readonly maxLength: {
7268
+ readonly type: "integer";
7269
+ readonly description: "Absent: 5000.";
7270
+ readonly minimum: 1;
7271
+ readonly maximum: 5000;
7272
+ };
7273
+ readonly multiline: {
7274
+ readonly type: "boolean";
7275
+ readonly description: "Line breaks allowed. Absent: false.";
7276
+ };
7277
+ readonly searchable: {
7278
+ readonly type: "boolean";
7279
+ readonly description: "Its words go into site search. Absent: false.";
7280
+ };
6316
7281
  };
6317
- readonly nav: {
6318
- readonly $ref: "#/$defs/Slug";
6319
- readonly description: "A menu key (RFC-0003).";
7282
+ }, {
7283
+ readonly title: "RichTextField";
7284
+ readonly type: "object";
7285
+ readonly description: "Cloudhal Markdown v1 (ADR-0028), at most 50 000 characters.";
7286
+ readonly additionalProperties: false;
7287
+ readonly required: readonly ["key", "type", "labels", "localized"];
7288
+ readonly properties: {
7289
+ readonly key: {
7290
+ readonly $ref: "#/$defs/FieldKey";
7291
+ };
7292
+ readonly type: {
7293
+ readonly type: "string";
7294
+ readonly enum: readonly ["richText"];
7295
+ };
7296
+ readonly labels: {
7297
+ readonly $ref: "#/$defs/FieldLabels";
7298
+ };
7299
+ readonly localized: {
7300
+ readonly type: "boolean";
7301
+ readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
7302
+ };
7303
+ readonly requiredToPublish: {
7304
+ readonly type: "boolean";
7305
+ readonly description: "An entry in review or published needs a value. Absent: false.";
7306
+ };
7307
+ readonly migration: {
7308
+ readonly $ref: "#/$defs/FieldMigration";
7309
+ };
7310
+ readonly searchable: {
7311
+ readonly type: "boolean";
7312
+ readonly description: "Its words go into site search. Absent: false.";
7313
+ };
6320
7314
  };
6321
- readonly utility: {
6322
- readonly $ref: "#/$defs/Slug";
6323
- readonly description: "A menu key (RFC-0003).";
7315
+ }, {
7316
+ readonly title: "NumberField";
7317
+ readonly type: "object";
7318
+ readonly description: "A finite number.";
7319
+ readonly additionalProperties: false;
7320
+ readonly required: readonly ["key", "type", "labels", "localized"];
7321
+ readonly properties: {
7322
+ readonly key: {
7323
+ readonly $ref: "#/$defs/FieldKey";
7324
+ };
7325
+ readonly type: {
7326
+ readonly type: "string";
7327
+ readonly enum: readonly ["number"];
7328
+ };
7329
+ readonly labels: {
7330
+ readonly $ref: "#/$defs/FieldLabels";
7331
+ };
7332
+ readonly localized: {
7333
+ readonly type: "boolean";
7334
+ readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
7335
+ };
7336
+ readonly requiredToPublish: {
7337
+ readonly type: "boolean";
7338
+ readonly description: "An entry in review or published needs a value. Absent: false.";
7339
+ };
7340
+ readonly migration: {
7341
+ readonly $ref: "#/$defs/FieldMigration";
7342
+ };
7343
+ readonly integer: {
7344
+ readonly type: "boolean";
7345
+ readonly description: "Whole numbers only. Absent: false.";
7346
+ };
7347
+ readonly minimum: {
7348
+ readonly type: "number";
7349
+ };
7350
+ readonly maximum: {
7351
+ readonly type: "number";
7352
+ };
6324
7353
  };
6325
- readonly actions: {
6326
- readonly type: "array";
6327
- readonly maxItems: 3;
6328
- readonly items: {
6329
- readonly $ref: "#/$defs/HeaderAction";
7354
+ }, {
7355
+ readonly title: "BooleanField";
7356
+ readonly type: "object";
7357
+ readonly description: "true or false; absent reads as false, so it cannot be required to publish.";
7358
+ readonly additionalProperties: false;
7359
+ readonly required: readonly ["key", "type", "labels", "localized"];
7360
+ readonly properties: {
7361
+ readonly key: {
7362
+ readonly $ref: "#/$defs/FieldKey";
7363
+ };
7364
+ readonly type: {
7365
+ readonly type: "string";
7366
+ readonly enum: readonly ["boolean"];
7367
+ };
7368
+ readonly labels: {
7369
+ readonly $ref: "#/$defs/FieldLabels";
7370
+ };
7371
+ readonly localized: {
7372
+ readonly type: "boolean";
7373
+ readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
7374
+ };
7375
+ readonly migration: {
7376
+ readonly $ref: "#/$defs/FieldMigration";
7377
+ };
7378
+ };
7379
+ }, {
7380
+ readonly title: "DateField";
7381
+ readonly type: "object";
7382
+ readonly description: "A calendar day without a zone (YYYY-MM-DD).";
7383
+ readonly additionalProperties: false;
7384
+ readonly required: readonly ["key", "type", "labels", "localized"];
7385
+ readonly properties: {
7386
+ readonly key: {
7387
+ readonly $ref: "#/$defs/FieldKey";
7388
+ };
7389
+ readonly type: {
7390
+ readonly type: "string";
7391
+ readonly enum: readonly ["date"];
7392
+ };
7393
+ readonly labels: {
7394
+ readonly $ref: "#/$defs/FieldLabels";
7395
+ };
7396
+ readonly localized: {
7397
+ readonly type: "boolean";
7398
+ readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
7399
+ };
7400
+ readonly requiredToPublish: {
7401
+ readonly type: "boolean";
7402
+ readonly description: "An entry in review or published needs a value. Absent: false.";
7403
+ };
7404
+ readonly migration: {
7405
+ readonly $ref: "#/$defs/FieldMigration";
7406
+ };
7407
+ };
7408
+ }, {
7409
+ readonly title: "DateTimeField";
7410
+ readonly type: "object";
7411
+ readonly description: "An instant with the zone it was entered in: {at, timeZone} (RFC-0008 §9.1).";
7412
+ readonly additionalProperties: false;
7413
+ readonly required: readonly ["key", "type", "labels", "localized"];
7414
+ readonly properties: {
7415
+ readonly key: {
7416
+ readonly $ref: "#/$defs/FieldKey";
7417
+ };
7418
+ readonly type: {
7419
+ readonly type: "string";
7420
+ readonly enum: readonly ["datetime"];
7421
+ };
7422
+ readonly labels: {
7423
+ readonly $ref: "#/$defs/FieldLabels";
7424
+ };
7425
+ readonly localized: {
7426
+ readonly type: "boolean";
7427
+ readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
7428
+ };
7429
+ readonly requiredToPublish: {
7430
+ readonly type: "boolean";
7431
+ readonly description: "An entry in review or published needs a value. Absent: false.";
7432
+ };
7433
+ readonly migration: {
7434
+ readonly $ref: "#/$defs/FieldMigration";
7435
+ };
7436
+ };
7437
+ }, {
7438
+ readonly title: "UrlField";
7439
+ readonly type: "object";
7440
+ readonly description: "A link: https, http, mailto, tel, a site-relative path or a #fragment; at most 2048 characters.";
7441
+ readonly additionalProperties: false;
7442
+ readonly required: readonly ["key", "type", "labels", "localized"];
7443
+ readonly properties: {
7444
+ readonly key: {
7445
+ readonly $ref: "#/$defs/FieldKey";
7446
+ };
7447
+ readonly type: {
7448
+ readonly type: "string";
7449
+ readonly enum: readonly ["url"];
7450
+ };
7451
+ readonly labels: {
7452
+ readonly $ref: "#/$defs/FieldLabels";
7453
+ };
7454
+ readonly localized: {
7455
+ readonly type: "boolean";
7456
+ readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
7457
+ };
7458
+ readonly requiredToPublish: {
7459
+ readonly type: "boolean";
7460
+ readonly description: "An entry in review or published needs a value. Absent: false.";
7461
+ };
7462
+ readonly migration: {
7463
+ readonly $ref: "#/$defs/FieldMigration";
7464
+ };
7465
+ };
7466
+ }, {
7467
+ readonly title: "ImageField";
7468
+ readonly type: "object";
7469
+ readonly description: "An image Asset of the same site, by id (asset_…).";
7470
+ readonly additionalProperties: false;
7471
+ readonly required: readonly ["key", "type", "labels", "localized"];
7472
+ readonly properties: {
7473
+ readonly key: {
7474
+ readonly $ref: "#/$defs/FieldKey";
7475
+ };
7476
+ readonly type: {
7477
+ readonly type: "string";
7478
+ readonly enum: readonly ["image"];
7479
+ };
7480
+ readonly labels: {
7481
+ readonly $ref: "#/$defs/FieldLabels";
7482
+ };
7483
+ readonly localized: {
7484
+ readonly type: "boolean";
7485
+ readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
7486
+ };
7487
+ readonly requiredToPublish: {
7488
+ readonly type: "boolean";
7489
+ readonly description: "An entry in review or published needs a value. Absent: false.";
7490
+ };
7491
+ readonly migration: {
7492
+ readonly $ref: "#/$defs/FieldMigration";
7493
+ };
7494
+ };
7495
+ }, {
7496
+ readonly title: "SelectField";
7497
+ readonly type: "object";
7498
+ readonly description: "One of a closed list of options, or several when multiple.";
7499
+ readonly additionalProperties: false;
7500
+ readonly required: readonly ["key", "type", "labels", "localized", "options"];
7501
+ readonly properties: {
7502
+ readonly key: {
7503
+ readonly $ref: "#/$defs/FieldKey";
7504
+ };
7505
+ readonly type: {
7506
+ readonly type: "string";
7507
+ readonly enum: readonly ["select"];
7508
+ };
7509
+ readonly labels: {
7510
+ readonly $ref: "#/$defs/FieldLabels";
7511
+ };
7512
+ readonly localized: {
7513
+ readonly type: "boolean";
7514
+ readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
7515
+ };
7516
+ readonly requiredToPublish: {
7517
+ readonly type: "boolean";
7518
+ readonly description: "An entry in review or published needs a value. Absent: false.";
7519
+ };
7520
+ readonly migration: {
7521
+ readonly $ref: "#/$defs/FieldMigration";
7522
+ };
7523
+ readonly options: {
7524
+ readonly type: "array";
7525
+ readonly minItems: 1;
7526
+ readonly maxItems: 50;
7527
+ readonly items: {
7528
+ readonly $ref: "#/$defs/FieldOption";
7529
+ };
7530
+ };
7531
+ readonly multiple: {
7532
+ readonly type: "boolean";
7533
+ readonly description: "The value is a list of option values. Absent: false.";
6330
7534
  };
6331
7535
  };
6332
- };
7536
+ }];
6333
7537
  };
6334
- readonly CollectionLabel: {
7538
+ readonly FieldKey: {
7539
+ readonly type: "string";
7540
+ readonly description: "The field's key in ContentEntry.fields: lower camelCase, a JavaScript identifier. Unique in its collection; built-in entry property names are reserved (checked in code).";
7541
+ readonly pattern: "^[a-z][A-Za-z0-9]{0,39}$";
7542
+ };
7543
+ readonly FieldLabel: {
6335
7544
  readonly type: "object";
6336
7545
  readonly additionalProperties: false;
6337
- readonly required: readonly ["singular", "plural"];
7546
+ readonly required: readonly ["label"];
6338
7547
  readonly properties: {
6339
- readonly singular: {
6340
- readonly type: "string";
6341
- readonly minLength: 1;
6342
- readonly maxLength: 100;
6343
- };
6344
- readonly plural: {
7548
+ readonly label: {
6345
7549
  readonly type: "string";
6346
7550
  readonly minLength: 1;
6347
7551
  readonly maxLength: 100;
6348
7552
  };
6349
- readonly description: {
7553
+ readonly help: {
6350
7554
  readonly type: "string";
6351
- readonly maxLength: 1000;
7555
+ readonly maxLength: 300;
6352
7556
  };
6353
7557
  };
6354
7558
  };
6355
- readonly CollectionSettings: {
7559
+ readonly FieldLabels: {
7560
+ readonly type: "object";
7561
+ readonly description: "The field's label and help per locale. Missing a locale: the default locale's, then the key.";
7562
+ readonly propertyNames: {
7563
+ readonly $ref: "#/$defs/Locale";
7564
+ };
7565
+ readonly minProperties: 1;
7566
+ readonly additionalProperties: {
7567
+ readonly $ref: "#/$defs/FieldLabel";
7568
+ };
7569
+ };
7570
+ readonly FieldMigration: {
6356
7571
  readonly type: "object";
7572
+ readonly description: "RFC-0041 §6: present only while a field operation rewrites entries.";
6357
7573
  readonly additionalProperties: false;
7574
+ readonly required: readonly ["id"];
6358
7575
  readonly properties: {
6359
- readonly permalink: {
6360
- readonly type: "string";
6361
- 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}.";
6362
- readonly pattern: "^(/[a-z0-9]+(-[a-z0-9]+)*)+/\\{slug\\}$";
7576
+ readonly id: {
7577
+ readonly $ref: "#/$defs/Id";
7578
+ readonly description: "The operation's \"before\" snapshot.";
6363
7579
  };
6364
- readonly labels: {
6365
- readonly type: "object";
6366
- readonly description: "RFC-0040: display names per locale (Studio, agents, themes). Absent or missing a locale: the default locale's, then the key.";
6367
- readonly propertyNames: {
6368
- readonly $ref: "#/$defs/Locale";
6369
- };
6370
- readonly minProperties: 1;
6371
- readonly additionalProperties: {
6372
- readonly $ref: "#/$defs/CollectionLabel";
6373
- };
7580
+ readonly fromKey: {
7581
+ readonly $ref: "#/$defs/FieldKey";
6374
7582
  };
6375
- readonly icon: {
7583
+ readonly fromType: {
6376
7584
  readonly type: "string";
6377
- readonly description: "RFC-0040: a name from Studio's closed icon set (e.g. calendar, briefcase, users). Unknown names show the default icon. Never a URL or markup.";
6378
- readonly pattern: "^[a-z0-9]+(-[a-z0-9]+)*$";
6379
- readonly maxLength: 40;
6380
- };
6381
- readonly feed: {
6382
- readonly type: "boolean";
6383
- readonly description: "RFC-0040: entries appear in the site's RSS feeds. Absent: true.";
7585
+ readonly enum: readonly ["text", "richText", "number", "boolean", "date", "datetime", "url", "image", "select"];
6384
7586
  };
6385
- readonly sitemap: {
7587
+ readonly fromLocalized: {
6386
7588
  readonly type: "boolean";
6387
- readonly description: "RFC-0040: published entries appear in sitemap.xml. Absent: true.";
6388
- };
6389
- readonly sort: {
6390
- readonly type: "string";
6391
- readonly description: "RFC-0040: default order where none is given (Studio's list, entry queries without sort, MCP list_entries). Absent: newest.";
6392
- readonly enum: readonly ["newest", "oldest", "title"];
6393
7589
  };
6394
7590
  };
6395
7591
  };
6396
- readonly Consent: {
7592
+ readonly FieldOption: {
6397
7593
  readonly type: "object";
7594
+ readonly description: "One option of a select field. Values are unique in the field (checked in code).";
6398
7595
  readonly additionalProperties: false;
6399
- readonly required: readonly ["mode"];
7596
+ readonly required: readonly ["value", "labels"];
6400
7597
  readonly properties: {
6401
- readonly mode: {
6402
- readonly type: "string";
6403
- readonly enum: readonly ["none", "notice", "choices"];
7598
+ readonly value: {
7599
+ readonly $ref: "#/$defs/Slug";
7600
+ readonly description: "Stored in entries, never shown.";
6404
7601
  };
6405
- readonly policy: {
6406
- readonly $ref: "#/$defs/Path";
7602
+ readonly labels: {
7603
+ readonly type: "object";
7604
+ readonly propertyNames: {
7605
+ readonly $ref: "#/$defs/Locale";
7606
+ };
7607
+ readonly minProperties: 1;
7608
+ readonly additionalProperties: {
7609
+ readonly type: "string";
7610
+ readonly minLength: 1;
7611
+ readonly maxLength: 100;
7612
+ };
6407
7613
  };
6408
7614
  };
6409
7615
  };
6410
- readonly Design: {
7616
+ readonly FieldOrder: {
6411
7617
  readonly type: "object";
6412
- readonly description: "The site's design rules for people and agents (RFC-0021): Markdown that agents read with the theme's DESIGN.md before they build. Guidance only: it changes neither rendering nor permissions.";
7618
+ readonly description: "RFC-0042: order a listing by a number, date or datetime field. Entries without a value sort last.";
6413
7619
  readonly additionalProperties: false;
6414
- readonly required: readonly ["markdown"];
7620
+ readonly required: readonly ["field", "direction"];
6415
7621
  readonly properties: {
6416
- readonly markdown: {
7622
+ readonly field: {
6417
7623
  readonly type: "string";
6418
- readonly minLength: 1;
6419
- readonly maxLength: 24000;
7624
+ readonly description: "A field key (site.schema.json FieldKey's pattern, repeated).";
7625
+ readonly pattern: "^[a-z][A-Za-z0-9]{0,39}$";
6420
7626
  };
6421
- };
6422
- };
6423
- readonly Domain: {
6424
- readonly type: "object";
6425
- readonly additionalProperties: false;
6426
- readonly required: readonly ["hostname", "primary"];
6427
- readonly properties: {
6428
- readonly hostname: {
7627
+ readonly direction: {
6429
7628
  readonly type: "string";
6430
- readonly pattern: "^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$";
6431
- readonly maxLength: 253;
6432
- };
6433
- readonly primary: {
6434
- readonly type: "boolean";
7629
+ readonly enum: readonly ["asc", "desc"];
6435
7630
  };
6436
7631
  };
6437
7632
  };
@@ -6723,6 +7918,18 @@ export declare const schemas: {
6723
7918
  readonly minLength: 1;
6724
7919
  readonly maxLength: 512;
6725
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
+ };
6726
7933
  };
6727
7934
  }, {
6728
7935
  readonly type: "object";
@@ -6783,6 +7990,11 @@ export declare const schemas: {
6783
7990
  };
6784
7991
  }];
6785
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
+ };
6786
7998
  readonly Slug: {
6787
7999
  readonly type: "string";
6788
8000
  readonly description: "Lower-case URL segment.";
@@ -6806,6 +8018,98 @@ export declare const schemas: {
6806
8018
  };
6807
8019
  };
6808
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
+ };
6809
8113
  readonly SurfaceComponent: {
6810
8114
  readonly type: "object";
6811
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.";
@@ -7041,6 +8345,56 @@ export declare const schemas: {
7041
8345
  readonly enum: readonly [1];
7042
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.";
7043
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
+ };
7044
8398
  readonly Id: {
7045
8399
  readonly type: "string";
7046
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.";
@@ -7242,6 +8596,18 @@ export declare const schemas: {
7242
8596
  readonly minLength: 1;
7243
8597
  readonly maxLength: 512;
7244
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
+ };
7245
8611
  };
7246
8612
  }, {
7247
8613
  readonly type: "object";
@@ -7596,6 +8962,18 @@ export declare const schemas: {
7596
8962
  readonly minLength: 1;
7597
8963
  readonly maxLength: 512;
7598
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
+ };
7599
8977
  };
7600
8978
  }, {
7601
8979
  readonly type: "object";
@@ -7720,6 +9098,56 @@ export declare const schemas: {
7720
9098
  readonly enum: readonly [1];
7721
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.";
7722
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
+ };
7723
9151
  readonly Id: {
7724
9152
  readonly type: "string";
7725
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.";
@@ -7876,7 +9304,7 @@ export declare const schemas: {
7876
9304
  };
7877
9305
  readonly fields: {
7878
9306
  readonly type: "object";
7879
- readonly description: "Collection-specific values; any JSON.";
9307
+ readonly description: "Collection-specific values, keyed by field. A collection with typed fields (RFC-0041, Site.collections.<key>.fields) checks each value against its definition on write; otherwise any JSON. An absent key means no value.";
7880
9308
  readonly additionalProperties: true;
7881
9309
  };
7882
9310
  readonly tags: {