@cloudhal/core-contracts 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/generated/content-entry.d.ts +1 -1
- package/dist/src/generated/content-entry.js +1 -1
- package/dist/src/generated/index.d.ts +1 -1
- package/dist/src/generated/index.js +1 -1
- package/dist/src/generated/schemas.d.ts +778 -2
- package/dist/src/generated/schemas.js +480 -1
- package/dist/src/generated/site.d.ts +248 -0
- package/dist/src/generated/site.js +258 -0
- package/dist/src/generated/validators.js +3393 -1156
- package/package.json +1 -1
- package/schemas/content-entry.schema.json +1 -1
- package/schemas/site.schema.json +408 -0
|
@@ -512,6 +512,15 @@ export declare const SiteSchema: {
|
|
|
512
512
|
readonly description: "RFC-0040: default order where none is given (Studio's list, entry queries without sort, MCP list_entries). Absent: newest.";
|
|
513
513
|
readonly enum: readonly ["newest", "oldest", "title"];
|
|
514
514
|
};
|
|
515
|
+
readonly fields: {
|
|
516
|
+
readonly type: "array";
|
|
517
|
+
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).";
|
|
518
|
+
readonly minItems: 1;
|
|
519
|
+
readonly maxItems: 30;
|
|
520
|
+
readonly items: {
|
|
521
|
+
readonly $ref: "#/$defs/FieldDefinition";
|
|
522
|
+
};
|
|
523
|
+
};
|
|
515
524
|
};
|
|
516
525
|
};
|
|
517
526
|
readonly Consent: {
|
|
@@ -556,6 +565,385 @@ export declare const SiteSchema: {
|
|
|
556
565
|
};
|
|
557
566
|
};
|
|
558
567
|
};
|
|
568
|
+
readonly FieldDefinition: {
|
|
569
|
+
readonly description: "RFC-0041: one typed custom field of a collection, discriminated by `type`.";
|
|
570
|
+
readonly oneOf: readonly [{
|
|
571
|
+
readonly title: "TextField";
|
|
572
|
+
readonly type: "object";
|
|
573
|
+
readonly description: "Plain text: a string of at most maxLength characters.";
|
|
574
|
+
readonly additionalProperties: false;
|
|
575
|
+
readonly required: readonly ["key", "type", "labels", "localized"];
|
|
576
|
+
readonly properties: {
|
|
577
|
+
readonly key: {
|
|
578
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
579
|
+
};
|
|
580
|
+
readonly type: {
|
|
581
|
+
readonly type: "string";
|
|
582
|
+
readonly enum: readonly ["text"];
|
|
583
|
+
};
|
|
584
|
+
readonly labels: {
|
|
585
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
586
|
+
};
|
|
587
|
+
readonly localized: {
|
|
588
|
+
readonly type: "boolean";
|
|
589
|
+
readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
|
|
590
|
+
};
|
|
591
|
+
readonly requiredToPublish: {
|
|
592
|
+
readonly type: "boolean";
|
|
593
|
+
readonly description: "An entry in review or published needs a value. Absent: false.";
|
|
594
|
+
};
|
|
595
|
+
readonly migration: {
|
|
596
|
+
readonly $ref: "#/$defs/FieldMigration";
|
|
597
|
+
};
|
|
598
|
+
readonly maxLength: {
|
|
599
|
+
readonly type: "integer";
|
|
600
|
+
readonly description: "Absent: 5000.";
|
|
601
|
+
readonly minimum: 1;
|
|
602
|
+
readonly maximum: 5000;
|
|
603
|
+
};
|
|
604
|
+
readonly multiline: {
|
|
605
|
+
readonly type: "boolean";
|
|
606
|
+
readonly description: "Line breaks allowed. Absent: false.";
|
|
607
|
+
};
|
|
608
|
+
readonly searchable: {
|
|
609
|
+
readonly type: "boolean";
|
|
610
|
+
readonly description: "Its words go into site search. Absent: false.";
|
|
611
|
+
};
|
|
612
|
+
};
|
|
613
|
+
}, {
|
|
614
|
+
readonly title: "RichTextField";
|
|
615
|
+
readonly type: "object";
|
|
616
|
+
readonly description: "Cloudhal Markdown v1 (ADR-0028), at most 50 000 characters.";
|
|
617
|
+
readonly additionalProperties: false;
|
|
618
|
+
readonly required: readonly ["key", "type", "labels", "localized"];
|
|
619
|
+
readonly properties: {
|
|
620
|
+
readonly key: {
|
|
621
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
622
|
+
};
|
|
623
|
+
readonly type: {
|
|
624
|
+
readonly type: "string";
|
|
625
|
+
readonly enum: readonly ["richText"];
|
|
626
|
+
};
|
|
627
|
+
readonly labels: {
|
|
628
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
629
|
+
};
|
|
630
|
+
readonly localized: {
|
|
631
|
+
readonly type: "boolean";
|
|
632
|
+
readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
|
|
633
|
+
};
|
|
634
|
+
readonly requiredToPublish: {
|
|
635
|
+
readonly type: "boolean";
|
|
636
|
+
readonly description: "An entry in review or published needs a value. Absent: false.";
|
|
637
|
+
};
|
|
638
|
+
readonly migration: {
|
|
639
|
+
readonly $ref: "#/$defs/FieldMigration";
|
|
640
|
+
};
|
|
641
|
+
readonly searchable: {
|
|
642
|
+
readonly type: "boolean";
|
|
643
|
+
readonly description: "Its words go into site search. Absent: false.";
|
|
644
|
+
};
|
|
645
|
+
};
|
|
646
|
+
}, {
|
|
647
|
+
readonly title: "NumberField";
|
|
648
|
+
readonly type: "object";
|
|
649
|
+
readonly description: "A finite number.";
|
|
650
|
+
readonly additionalProperties: false;
|
|
651
|
+
readonly required: readonly ["key", "type", "labels", "localized"];
|
|
652
|
+
readonly properties: {
|
|
653
|
+
readonly key: {
|
|
654
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
655
|
+
};
|
|
656
|
+
readonly type: {
|
|
657
|
+
readonly type: "string";
|
|
658
|
+
readonly enum: readonly ["number"];
|
|
659
|
+
};
|
|
660
|
+
readonly labels: {
|
|
661
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
662
|
+
};
|
|
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.";
|
|
666
|
+
};
|
|
667
|
+
readonly requiredToPublish: {
|
|
668
|
+
readonly type: "boolean";
|
|
669
|
+
readonly description: "An entry in review or published needs a value. Absent: false.";
|
|
670
|
+
};
|
|
671
|
+
readonly migration: {
|
|
672
|
+
readonly $ref: "#/$defs/FieldMigration";
|
|
673
|
+
};
|
|
674
|
+
readonly integer: {
|
|
675
|
+
readonly type: "boolean";
|
|
676
|
+
readonly description: "Whole numbers only. Absent: false.";
|
|
677
|
+
};
|
|
678
|
+
readonly minimum: {
|
|
679
|
+
readonly type: "number";
|
|
680
|
+
};
|
|
681
|
+
readonly maximum: {
|
|
682
|
+
readonly type: "number";
|
|
683
|
+
};
|
|
684
|
+
};
|
|
685
|
+
}, {
|
|
686
|
+
readonly title: "BooleanField";
|
|
687
|
+
readonly type: "object";
|
|
688
|
+
readonly description: "true or false; absent reads as false, so it cannot be required to publish.";
|
|
689
|
+
readonly additionalProperties: false;
|
|
690
|
+
readonly required: readonly ["key", "type", "labels", "localized"];
|
|
691
|
+
readonly properties: {
|
|
692
|
+
readonly key: {
|
|
693
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
694
|
+
};
|
|
695
|
+
readonly type: {
|
|
696
|
+
readonly type: "string";
|
|
697
|
+
readonly enum: readonly ["boolean"];
|
|
698
|
+
};
|
|
699
|
+
readonly labels: {
|
|
700
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
701
|
+
};
|
|
702
|
+
readonly localized: {
|
|
703
|
+
readonly type: "boolean";
|
|
704
|
+
readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
|
|
705
|
+
};
|
|
706
|
+
readonly migration: {
|
|
707
|
+
readonly $ref: "#/$defs/FieldMigration";
|
|
708
|
+
};
|
|
709
|
+
};
|
|
710
|
+
}, {
|
|
711
|
+
readonly title: "DateField";
|
|
712
|
+
readonly type: "object";
|
|
713
|
+
readonly description: "A calendar day without a zone (YYYY-MM-DD).";
|
|
714
|
+
readonly additionalProperties: false;
|
|
715
|
+
readonly required: readonly ["key", "type", "labels", "localized"];
|
|
716
|
+
readonly properties: {
|
|
717
|
+
readonly key: {
|
|
718
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
719
|
+
};
|
|
720
|
+
readonly type: {
|
|
721
|
+
readonly type: "string";
|
|
722
|
+
readonly enum: readonly ["date"];
|
|
723
|
+
};
|
|
724
|
+
readonly labels: {
|
|
725
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
726
|
+
};
|
|
727
|
+
readonly localized: {
|
|
728
|
+
readonly type: "boolean";
|
|
729
|
+
readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
|
|
730
|
+
};
|
|
731
|
+
readonly requiredToPublish: {
|
|
732
|
+
readonly type: "boolean";
|
|
733
|
+
readonly description: "An entry in review or published needs a value. Absent: false.";
|
|
734
|
+
};
|
|
735
|
+
readonly migration: {
|
|
736
|
+
readonly $ref: "#/$defs/FieldMigration";
|
|
737
|
+
};
|
|
738
|
+
};
|
|
739
|
+
}, {
|
|
740
|
+
readonly title: "DateTimeField";
|
|
741
|
+
readonly type: "object";
|
|
742
|
+
readonly description: "An instant with the zone it was entered in: {at, timeZone} (RFC-0008 §9.1).";
|
|
743
|
+
readonly additionalProperties: false;
|
|
744
|
+
readonly required: readonly ["key", "type", "labels", "localized"];
|
|
745
|
+
readonly properties: {
|
|
746
|
+
readonly key: {
|
|
747
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
748
|
+
};
|
|
749
|
+
readonly type: {
|
|
750
|
+
readonly type: "string";
|
|
751
|
+
readonly enum: readonly ["datetime"];
|
|
752
|
+
};
|
|
753
|
+
readonly labels: {
|
|
754
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
755
|
+
};
|
|
756
|
+
readonly localized: {
|
|
757
|
+
readonly type: "boolean";
|
|
758
|
+
readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
|
|
759
|
+
};
|
|
760
|
+
readonly requiredToPublish: {
|
|
761
|
+
readonly type: "boolean";
|
|
762
|
+
readonly description: "An entry in review or published needs a value. Absent: false.";
|
|
763
|
+
};
|
|
764
|
+
readonly migration: {
|
|
765
|
+
readonly $ref: "#/$defs/FieldMigration";
|
|
766
|
+
};
|
|
767
|
+
};
|
|
768
|
+
}, {
|
|
769
|
+
readonly title: "UrlField";
|
|
770
|
+
readonly type: "object";
|
|
771
|
+
readonly description: "A link: https, http, mailto, tel, a site-relative path or a #fragment; at most 2048 characters.";
|
|
772
|
+
readonly additionalProperties: false;
|
|
773
|
+
readonly required: readonly ["key", "type", "labels", "localized"];
|
|
774
|
+
readonly properties: {
|
|
775
|
+
readonly key: {
|
|
776
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
777
|
+
};
|
|
778
|
+
readonly type: {
|
|
779
|
+
readonly type: "string";
|
|
780
|
+
readonly enum: readonly ["url"];
|
|
781
|
+
};
|
|
782
|
+
readonly labels: {
|
|
783
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
784
|
+
};
|
|
785
|
+
readonly localized: {
|
|
786
|
+
readonly type: "boolean";
|
|
787
|
+
readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
|
|
788
|
+
};
|
|
789
|
+
readonly requiredToPublish: {
|
|
790
|
+
readonly type: "boolean";
|
|
791
|
+
readonly description: "An entry in review or published needs a value. Absent: false.";
|
|
792
|
+
};
|
|
793
|
+
readonly migration: {
|
|
794
|
+
readonly $ref: "#/$defs/FieldMigration";
|
|
795
|
+
};
|
|
796
|
+
};
|
|
797
|
+
}, {
|
|
798
|
+
readonly title: "ImageField";
|
|
799
|
+
readonly type: "object";
|
|
800
|
+
readonly description: "An image Asset of the same site, by id (asset_…).";
|
|
801
|
+
readonly additionalProperties: false;
|
|
802
|
+
readonly required: readonly ["key", "type", "labels", "localized"];
|
|
803
|
+
readonly properties: {
|
|
804
|
+
readonly key: {
|
|
805
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
806
|
+
};
|
|
807
|
+
readonly type: {
|
|
808
|
+
readonly type: "string";
|
|
809
|
+
readonly enum: readonly ["image"];
|
|
810
|
+
};
|
|
811
|
+
readonly labels: {
|
|
812
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
813
|
+
};
|
|
814
|
+
readonly localized: {
|
|
815
|
+
readonly type: "boolean";
|
|
816
|
+
readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
|
|
817
|
+
};
|
|
818
|
+
readonly requiredToPublish: {
|
|
819
|
+
readonly type: "boolean";
|
|
820
|
+
readonly description: "An entry in review or published needs a value. Absent: false.";
|
|
821
|
+
};
|
|
822
|
+
readonly migration: {
|
|
823
|
+
readonly $ref: "#/$defs/FieldMigration";
|
|
824
|
+
};
|
|
825
|
+
};
|
|
826
|
+
}, {
|
|
827
|
+
readonly title: "SelectField";
|
|
828
|
+
readonly type: "object";
|
|
829
|
+
readonly description: "One of a closed list of options, or several when multiple.";
|
|
830
|
+
readonly additionalProperties: false;
|
|
831
|
+
readonly required: readonly ["key", "type", "labels", "localized", "options"];
|
|
832
|
+
readonly properties: {
|
|
833
|
+
readonly key: {
|
|
834
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
835
|
+
};
|
|
836
|
+
readonly type: {
|
|
837
|
+
readonly type: "string";
|
|
838
|
+
readonly enum: readonly ["select"];
|
|
839
|
+
};
|
|
840
|
+
readonly labels: {
|
|
841
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
842
|
+
};
|
|
843
|
+
readonly localized: {
|
|
844
|
+
readonly type: "boolean";
|
|
845
|
+
readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
|
|
846
|
+
};
|
|
847
|
+
readonly requiredToPublish: {
|
|
848
|
+
readonly type: "boolean";
|
|
849
|
+
readonly description: "An entry in review or published needs a value. Absent: false.";
|
|
850
|
+
};
|
|
851
|
+
readonly migration: {
|
|
852
|
+
readonly $ref: "#/$defs/FieldMigration";
|
|
853
|
+
};
|
|
854
|
+
readonly options: {
|
|
855
|
+
readonly type: "array";
|
|
856
|
+
readonly minItems: 1;
|
|
857
|
+
readonly maxItems: 50;
|
|
858
|
+
readonly items: {
|
|
859
|
+
readonly $ref: "#/$defs/FieldOption";
|
|
860
|
+
};
|
|
861
|
+
};
|
|
862
|
+
readonly multiple: {
|
|
863
|
+
readonly type: "boolean";
|
|
864
|
+
readonly description: "The value is a list of option values. Absent: false.";
|
|
865
|
+
};
|
|
866
|
+
};
|
|
867
|
+
}];
|
|
868
|
+
};
|
|
869
|
+
readonly FieldKey: {
|
|
870
|
+
readonly type: "string";
|
|
871
|
+
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).";
|
|
872
|
+
readonly pattern: "^[a-z][A-Za-z0-9]{0,39}$";
|
|
873
|
+
};
|
|
874
|
+
readonly FieldLabel: {
|
|
875
|
+
readonly type: "object";
|
|
876
|
+
readonly additionalProperties: false;
|
|
877
|
+
readonly required: readonly ["label"];
|
|
878
|
+
readonly properties: {
|
|
879
|
+
readonly label: {
|
|
880
|
+
readonly type: "string";
|
|
881
|
+
readonly minLength: 1;
|
|
882
|
+
readonly maxLength: 100;
|
|
883
|
+
};
|
|
884
|
+
readonly help: {
|
|
885
|
+
readonly type: "string";
|
|
886
|
+
readonly maxLength: 300;
|
|
887
|
+
};
|
|
888
|
+
};
|
|
889
|
+
};
|
|
890
|
+
readonly FieldLabels: {
|
|
891
|
+
readonly type: "object";
|
|
892
|
+
readonly description: "The field's label and help per locale. Missing a locale: the default locale's, then the key.";
|
|
893
|
+
readonly propertyNames: {
|
|
894
|
+
readonly $ref: "#/$defs/Locale";
|
|
895
|
+
};
|
|
896
|
+
readonly minProperties: 1;
|
|
897
|
+
readonly additionalProperties: {
|
|
898
|
+
readonly $ref: "#/$defs/FieldLabel";
|
|
899
|
+
};
|
|
900
|
+
};
|
|
901
|
+
readonly FieldMigration: {
|
|
902
|
+
readonly type: "object";
|
|
903
|
+
readonly description: "RFC-0041 §6: present only while a field operation rewrites entries.";
|
|
904
|
+
readonly additionalProperties: false;
|
|
905
|
+
readonly required: readonly ["id"];
|
|
906
|
+
readonly properties: {
|
|
907
|
+
readonly id: {
|
|
908
|
+
readonly $ref: "#/$defs/Id";
|
|
909
|
+
readonly description: "The operation's \"before\" snapshot.";
|
|
910
|
+
};
|
|
911
|
+
readonly fromKey: {
|
|
912
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
913
|
+
};
|
|
914
|
+
readonly fromType: {
|
|
915
|
+
readonly type: "string";
|
|
916
|
+
readonly enum: readonly ["text", "richText", "number", "boolean", "date", "datetime", "url", "image", "select"];
|
|
917
|
+
};
|
|
918
|
+
readonly fromLocalized: {
|
|
919
|
+
readonly type: "boolean";
|
|
920
|
+
};
|
|
921
|
+
};
|
|
922
|
+
};
|
|
923
|
+
readonly FieldOption: {
|
|
924
|
+
readonly type: "object";
|
|
925
|
+
readonly description: "One option of a select field. Values are unique in the field (checked in code).";
|
|
926
|
+
readonly additionalProperties: false;
|
|
927
|
+
readonly required: readonly ["value", "labels"];
|
|
928
|
+
readonly properties: {
|
|
929
|
+
readonly value: {
|
|
930
|
+
readonly $ref: "#/$defs/Slug";
|
|
931
|
+
readonly description: "Stored in entries, never shown.";
|
|
932
|
+
};
|
|
933
|
+
readonly labels: {
|
|
934
|
+
readonly type: "object";
|
|
935
|
+
readonly propertyNames: {
|
|
936
|
+
readonly $ref: "#/$defs/Locale";
|
|
937
|
+
};
|
|
938
|
+
readonly minProperties: 1;
|
|
939
|
+
readonly additionalProperties: {
|
|
940
|
+
readonly type: "string";
|
|
941
|
+
readonly minLength: 1;
|
|
942
|
+
readonly maxLength: 100;
|
|
943
|
+
};
|
|
944
|
+
};
|
|
945
|
+
};
|
|
946
|
+
};
|
|
559
947
|
readonly FooterColumn: {
|
|
560
948
|
readonly type: "object";
|
|
561
949
|
readonly additionalProperties: false;
|
|
@@ -1997,7 +2385,7 @@ export declare const ContentEntrySchema: {
|
|
|
1997
2385
|
};
|
|
1998
2386
|
readonly fields: {
|
|
1999
2387
|
readonly type: "object";
|
|
2000
|
-
readonly description: "Collection-specific values; any JSON.";
|
|
2388
|
+
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
2389
|
readonly additionalProperties: true;
|
|
2002
2390
|
};
|
|
2003
2391
|
readonly tags: {
|
|
@@ -6391,6 +6779,15 @@ export declare const schemas: {
|
|
|
6391
6779
|
readonly description: "RFC-0040: default order where none is given (Studio's list, entry queries without sort, MCP list_entries). Absent: newest.";
|
|
6392
6780
|
readonly enum: readonly ["newest", "oldest", "title"];
|
|
6393
6781
|
};
|
|
6782
|
+
readonly fields: {
|
|
6783
|
+
readonly type: "array";
|
|
6784
|
+
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).";
|
|
6785
|
+
readonly minItems: 1;
|
|
6786
|
+
readonly maxItems: 30;
|
|
6787
|
+
readonly items: {
|
|
6788
|
+
readonly $ref: "#/$defs/FieldDefinition";
|
|
6789
|
+
};
|
|
6790
|
+
};
|
|
6394
6791
|
};
|
|
6395
6792
|
};
|
|
6396
6793
|
readonly Consent: {
|
|
@@ -6435,6 +6832,385 @@ export declare const schemas: {
|
|
|
6435
6832
|
};
|
|
6436
6833
|
};
|
|
6437
6834
|
};
|
|
6835
|
+
readonly FieldDefinition: {
|
|
6836
|
+
readonly description: "RFC-0041: one typed custom field of a collection, discriminated by `type`.";
|
|
6837
|
+
readonly oneOf: readonly [{
|
|
6838
|
+
readonly title: "TextField";
|
|
6839
|
+
readonly type: "object";
|
|
6840
|
+
readonly description: "Plain text: a string of at most maxLength characters.";
|
|
6841
|
+
readonly additionalProperties: false;
|
|
6842
|
+
readonly required: readonly ["key", "type", "labels", "localized"];
|
|
6843
|
+
readonly properties: {
|
|
6844
|
+
readonly key: {
|
|
6845
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
6846
|
+
};
|
|
6847
|
+
readonly type: {
|
|
6848
|
+
readonly type: "string";
|
|
6849
|
+
readonly enum: readonly ["text"];
|
|
6850
|
+
};
|
|
6851
|
+
readonly labels: {
|
|
6852
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
6853
|
+
};
|
|
6854
|
+
readonly localized: {
|
|
6855
|
+
readonly type: "boolean";
|
|
6856
|
+
readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
|
|
6857
|
+
};
|
|
6858
|
+
readonly requiredToPublish: {
|
|
6859
|
+
readonly type: "boolean";
|
|
6860
|
+
readonly description: "An entry in review or published needs a value. Absent: false.";
|
|
6861
|
+
};
|
|
6862
|
+
readonly migration: {
|
|
6863
|
+
readonly $ref: "#/$defs/FieldMigration";
|
|
6864
|
+
};
|
|
6865
|
+
readonly maxLength: {
|
|
6866
|
+
readonly type: "integer";
|
|
6867
|
+
readonly description: "Absent: 5000.";
|
|
6868
|
+
readonly minimum: 1;
|
|
6869
|
+
readonly maximum: 5000;
|
|
6870
|
+
};
|
|
6871
|
+
readonly multiline: {
|
|
6872
|
+
readonly type: "boolean";
|
|
6873
|
+
readonly description: "Line breaks allowed. Absent: false.";
|
|
6874
|
+
};
|
|
6875
|
+
readonly searchable: {
|
|
6876
|
+
readonly type: "boolean";
|
|
6877
|
+
readonly description: "Its words go into site search. Absent: false.";
|
|
6878
|
+
};
|
|
6879
|
+
};
|
|
6880
|
+
}, {
|
|
6881
|
+
readonly title: "RichTextField";
|
|
6882
|
+
readonly type: "object";
|
|
6883
|
+
readonly description: "Cloudhal Markdown v1 (ADR-0028), at most 50 000 characters.";
|
|
6884
|
+
readonly additionalProperties: false;
|
|
6885
|
+
readonly required: readonly ["key", "type", "labels", "localized"];
|
|
6886
|
+
readonly properties: {
|
|
6887
|
+
readonly key: {
|
|
6888
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
6889
|
+
};
|
|
6890
|
+
readonly type: {
|
|
6891
|
+
readonly type: "string";
|
|
6892
|
+
readonly enum: readonly ["richText"];
|
|
6893
|
+
};
|
|
6894
|
+
readonly labels: {
|
|
6895
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
6896
|
+
};
|
|
6897
|
+
readonly localized: {
|
|
6898
|
+
readonly type: "boolean";
|
|
6899
|
+
readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
|
|
6900
|
+
};
|
|
6901
|
+
readonly requiredToPublish: {
|
|
6902
|
+
readonly type: "boolean";
|
|
6903
|
+
readonly description: "An entry in review or published needs a value. Absent: false.";
|
|
6904
|
+
};
|
|
6905
|
+
readonly migration: {
|
|
6906
|
+
readonly $ref: "#/$defs/FieldMigration";
|
|
6907
|
+
};
|
|
6908
|
+
readonly searchable: {
|
|
6909
|
+
readonly type: "boolean";
|
|
6910
|
+
readonly description: "Its words go into site search. Absent: false.";
|
|
6911
|
+
};
|
|
6912
|
+
};
|
|
6913
|
+
}, {
|
|
6914
|
+
readonly title: "NumberField";
|
|
6915
|
+
readonly type: "object";
|
|
6916
|
+
readonly description: "A finite number.";
|
|
6917
|
+
readonly additionalProperties: false;
|
|
6918
|
+
readonly required: readonly ["key", "type", "labels", "localized"];
|
|
6919
|
+
readonly properties: {
|
|
6920
|
+
readonly key: {
|
|
6921
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
6922
|
+
};
|
|
6923
|
+
readonly type: {
|
|
6924
|
+
readonly type: "string";
|
|
6925
|
+
readonly enum: readonly ["number"];
|
|
6926
|
+
};
|
|
6927
|
+
readonly labels: {
|
|
6928
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
6929
|
+
};
|
|
6930
|
+
readonly localized: {
|
|
6931
|
+
readonly type: "boolean";
|
|
6932
|
+
readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
|
|
6933
|
+
};
|
|
6934
|
+
readonly requiredToPublish: {
|
|
6935
|
+
readonly type: "boolean";
|
|
6936
|
+
readonly description: "An entry in review or published needs a value. Absent: false.";
|
|
6937
|
+
};
|
|
6938
|
+
readonly migration: {
|
|
6939
|
+
readonly $ref: "#/$defs/FieldMigration";
|
|
6940
|
+
};
|
|
6941
|
+
readonly integer: {
|
|
6942
|
+
readonly type: "boolean";
|
|
6943
|
+
readonly description: "Whole numbers only. Absent: false.";
|
|
6944
|
+
};
|
|
6945
|
+
readonly minimum: {
|
|
6946
|
+
readonly type: "number";
|
|
6947
|
+
};
|
|
6948
|
+
readonly maximum: {
|
|
6949
|
+
readonly type: "number";
|
|
6950
|
+
};
|
|
6951
|
+
};
|
|
6952
|
+
}, {
|
|
6953
|
+
readonly title: "BooleanField";
|
|
6954
|
+
readonly type: "object";
|
|
6955
|
+
readonly description: "true or false; absent reads as false, so it cannot be required to publish.";
|
|
6956
|
+
readonly additionalProperties: false;
|
|
6957
|
+
readonly required: readonly ["key", "type", "labels", "localized"];
|
|
6958
|
+
readonly properties: {
|
|
6959
|
+
readonly key: {
|
|
6960
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
6961
|
+
};
|
|
6962
|
+
readonly type: {
|
|
6963
|
+
readonly type: "string";
|
|
6964
|
+
readonly enum: readonly ["boolean"];
|
|
6965
|
+
};
|
|
6966
|
+
readonly labels: {
|
|
6967
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
6968
|
+
};
|
|
6969
|
+
readonly localized: {
|
|
6970
|
+
readonly type: "boolean";
|
|
6971
|
+
readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
|
|
6972
|
+
};
|
|
6973
|
+
readonly migration: {
|
|
6974
|
+
readonly $ref: "#/$defs/FieldMigration";
|
|
6975
|
+
};
|
|
6976
|
+
};
|
|
6977
|
+
}, {
|
|
6978
|
+
readonly title: "DateField";
|
|
6979
|
+
readonly type: "object";
|
|
6980
|
+
readonly description: "A calendar day without a zone (YYYY-MM-DD).";
|
|
6981
|
+
readonly additionalProperties: false;
|
|
6982
|
+
readonly required: readonly ["key", "type", "labels", "localized"];
|
|
6983
|
+
readonly properties: {
|
|
6984
|
+
readonly key: {
|
|
6985
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
6986
|
+
};
|
|
6987
|
+
readonly type: {
|
|
6988
|
+
readonly type: "string";
|
|
6989
|
+
readonly enum: readonly ["date"];
|
|
6990
|
+
};
|
|
6991
|
+
readonly labels: {
|
|
6992
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
6993
|
+
};
|
|
6994
|
+
readonly localized: {
|
|
6995
|
+
readonly type: "boolean";
|
|
6996
|
+
readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
|
|
6997
|
+
};
|
|
6998
|
+
readonly requiredToPublish: {
|
|
6999
|
+
readonly type: "boolean";
|
|
7000
|
+
readonly description: "An entry in review or published needs a value. Absent: false.";
|
|
7001
|
+
};
|
|
7002
|
+
readonly migration: {
|
|
7003
|
+
readonly $ref: "#/$defs/FieldMigration";
|
|
7004
|
+
};
|
|
7005
|
+
};
|
|
7006
|
+
}, {
|
|
7007
|
+
readonly title: "DateTimeField";
|
|
7008
|
+
readonly type: "object";
|
|
7009
|
+
readonly description: "An instant with the zone it was entered in: {at, timeZone} (RFC-0008 §9.1).";
|
|
7010
|
+
readonly additionalProperties: false;
|
|
7011
|
+
readonly required: readonly ["key", "type", "labels", "localized"];
|
|
7012
|
+
readonly properties: {
|
|
7013
|
+
readonly key: {
|
|
7014
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
7015
|
+
};
|
|
7016
|
+
readonly type: {
|
|
7017
|
+
readonly type: "string";
|
|
7018
|
+
readonly enum: readonly ["datetime"];
|
|
7019
|
+
};
|
|
7020
|
+
readonly labels: {
|
|
7021
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
7022
|
+
};
|
|
7023
|
+
readonly localized: {
|
|
7024
|
+
readonly type: "boolean";
|
|
7025
|
+
readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
|
|
7026
|
+
};
|
|
7027
|
+
readonly requiredToPublish: {
|
|
7028
|
+
readonly type: "boolean";
|
|
7029
|
+
readonly description: "An entry in review or published needs a value. Absent: false.";
|
|
7030
|
+
};
|
|
7031
|
+
readonly migration: {
|
|
7032
|
+
readonly $ref: "#/$defs/FieldMigration";
|
|
7033
|
+
};
|
|
7034
|
+
};
|
|
7035
|
+
}, {
|
|
7036
|
+
readonly title: "UrlField";
|
|
7037
|
+
readonly type: "object";
|
|
7038
|
+
readonly description: "A link: https, http, mailto, tel, a site-relative path or a #fragment; at most 2048 characters.";
|
|
7039
|
+
readonly additionalProperties: false;
|
|
7040
|
+
readonly required: readonly ["key", "type", "labels", "localized"];
|
|
7041
|
+
readonly properties: {
|
|
7042
|
+
readonly key: {
|
|
7043
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
7044
|
+
};
|
|
7045
|
+
readonly type: {
|
|
7046
|
+
readonly type: "string";
|
|
7047
|
+
readonly enum: readonly ["url"];
|
|
7048
|
+
};
|
|
7049
|
+
readonly labels: {
|
|
7050
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
7051
|
+
};
|
|
7052
|
+
readonly localized: {
|
|
7053
|
+
readonly type: "boolean";
|
|
7054
|
+
readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
|
|
7055
|
+
};
|
|
7056
|
+
readonly requiredToPublish: {
|
|
7057
|
+
readonly type: "boolean";
|
|
7058
|
+
readonly description: "An entry in review or published needs a value. Absent: false.";
|
|
7059
|
+
};
|
|
7060
|
+
readonly migration: {
|
|
7061
|
+
readonly $ref: "#/$defs/FieldMigration";
|
|
7062
|
+
};
|
|
7063
|
+
};
|
|
7064
|
+
}, {
|
|
7065
|
+
readonly title: "ImageField";
|
|
7066
|
+
readonly type: "object";
|
|
7067
|
+
readonly description: "An image Asset of the same site, by id (asset_…).";
|
|
7068
|
+
readonly additionalProperties: false;
|
|
7069
|
+
readonly required: readonly ["key", "type", "labels", "localized"];
|
|
7070
|
+
readonly properties: {
|
|
7071
|
+
readonly key: {
|
|
7072
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
7073
|
+
};
|
|
7074
|
+
readonly type: {
|
|
7075
|
+
readonly type: "string";
|
|
7076
|
+
readonly enum: readonly ["image"];
|
|
7077
|
+
};
|
|
7078
|
+
readonly labels: {
|
|
7079
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
7080
|
+
};
|
|
7081
|
+
readonly localized: {
|
|
7082
|
+
readonly type: "boolean";
|
|
7083
|
+
readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
|
|
7084
|
+
};
|
|
7085
|
+
readonly requiredToPublish: {
|
|
7086
|
+
readonly type: "boolean";
|
|
7087
|
+
readonly description: "An entry in review or published needs a value. Absent: false.";
|
|
7088
|
+
};
|
|
7089
|
+
readonly migration: {
|
|
7090
|
+
readonly $ref: "#/$defs/FieldMigration";
|
|
7091
|
+
};
|
|
7092
|
+
};
|
|
7093
|
+
}, {
|
|
7094
|
+
readonly title: "SelectField";
|
|
7095
|
+
readonly type: "object";
|
|
7096
|
+
readonly description: "One of a closed list of options, or several when multiple.";
|
|
7097
|
+
readonly additionalProperties: false;
|
|
7098
|
+
readonly required: readonly ["key", "type", "labels", "localized", "options"];
|
|
7099
|
+
readonly properties: {
|
|
7100
|
+
readonly key: {
|
|
7101
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
7102
|
+
};
|
|
7103
|
+
readonly type: {
|
|
7104
|
+
readonly type: "string";
|
|
7105
|
+
readonly enum: readonly ["select"];
|
|
7106
|
+
};
|
|
7107
|
+
readonly labels: {
|
|
7108
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
7109
|
+
};
|
|
7110
|
+
readonly localized: {
|
|
7111
|
+
readonly type: "boolean";
|
|
7112
|
+
readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
|
|
7113
|
+
};
|
|
7114
|
+
readonly requiredToPublish: {
|
|
7115
|
+
readonly type: "boolean";
|
|
7116
|
+
readonly description: "An entry in review or published needs a value. Absent: false.";
|
|
7117
|
+
};
|
|
7118
|
+
readonly migration: {
|
|
7119
|
+
readonly $ref: "#/$defs/FieldMigration";
|
|
7120
|
+
};
|
|
7121
|
+
readonly options: {
|
|
7122
|
+
readonly type: "array";
|
|
7123
|
+
readonly minItems: 1;
|
|
7124
|
+
readonly maxItems: 50;
|
|
7125
|
+
readonly items: {
|
|
7126
|
+
readonly $ref: "#/$defs/FieldOption";
|
|
7127
|
+
};
|
|
7128
|
+
};
|
|
7129
|
+
readonly multiple: {
|
|
7130
|
+
readonly type: "boolean";
|
|
7131
|
+
readonly description: "The value is a list of option values. Absent: false.";
|
|
7132
|
+
};
|
|
7133
|
+
};
|
|
7134
|
+
}];
|
|
7135
|
+
};
|
|
7136
|
+
readonly FieldKey: {
|
|
7137
|
+
readonly type: "string";
|
|
7138
|
+
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).";
|
|
7139
|
+
readonly pattern: "^[a-z][A-Za-z0-9]{0,39}$";
|
|
7140
|
+
};
|
|
7141
|
+
readonly FieldLabel: {
|
|
7142
|
+
readonly type: "object";
|
|
7143
|
+
readonly additionalProperties: false;
|
|
7144
|
+
readonly required: readonly ["label"];
|
|
7145
|
+
readonly properties: {
|
|
7146
|
+
readonly label: {
|
|
7147
|
+
readonly type: "string";
|
|
7148
|
+
readonly minLength: 1;
|
|
7149
|
+
readonly maxLength: 100;
|
|
7150
|
+
};
|
|
7151
|
+
readonly help: {
|
|
7152
|
+
readonly type: "string";
|
|
7153
|
+
readonly maxLength: 300;
|
|
7154
|
+
};
|
|
7155
|
+
};
|
|
7156
|
+
};
|
|
7157
|
+
readonly FieldLabels: {
|
|
7158
|
+
readonly type: "object";
|
|
7159
|
+
readonly description: "The field's label and help per locale. Missing a locale: the default locale's, then the key.";
|
|
7160
|
+
readonly propertyNames: {
|
|
7161
|
+
readonly $ref: "#/$defs/Locale";
|
|
7162
|
+
};
|
|
7163
|
+
readonly minProperties: 1;
|
|
7164
|
+
readonly additionalProperties: {
|
|
7165
|
+
readonly $ref: "#/$defs/FieldLabel";
|
|
7166
|
+
};
|
|
7167
|
+
};
|
|
7168
|
+
readonly FieldMigration: {
|
|
7169
|
+
readonly type: "object";
|
|
7170
|
+
readonly description: "RFC-0041 §6: present only while a field operation rewrites entries.";
|
|
7171
|
+
readonly additionalProperties: false;
|
|
7172
|
+
readonly required: readonly ["id"];
|
|
7173
|
+
readonly properties: {
|
|
7174
|
+
readonly id: {
|
|
7175
|
+
readonly $ref: "#/$defs/Id";
|
|
7176
|
+
readonly description: "The operation's \"before\" snapshot.";
|
|
7177
|
+
};
|
|
7178
|
+
readonly fromKey: {
|
|
7179
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
7180
|
+
};
|
|
7181
|
+
readonly fromType: {
|
|
7182
|
+
readonly type: "string";
|
|
7183
|
+
readonly enum: readonly ["text", "richText", "number", "boolean", "date", "datetime", "url", "image", "select"];
|
|
7184
|
+
};
|
|
7185
|
+
readonly fromLocalized: {
|
|
7186
|
+
readonly type: "boolean";
|
|
7187
|
+
};
|
|
7188
|
+
};
|
|
7189
|
+
};
|
|
7190
|
+
readonly FieldOption: {
|
|
7191
|
+
readonly type: "object";
|
|
7192
|
+
readonly description: "One option of a select field. Values are unique in the field (checked in code).";
|
|
7193
|
+
readonly additionalProperties: false;
|
|
7194
|
+
readonly required: readonly ["value", "labels"];
|
|
7195
|
+
readonly properties: {
|
|
7196
|
+
readonly value: {
|
|
7197
|
+
readonly $ref: "#/$defs/Slug";
|
|
7198
|
+
readonly description: "Stored in entries, never shown.";
|
|
7199
|
+
};
|
|
7200
|
+
readonly labels: {
|
|
7201
|
+
readonly type: "object";
|
|
7202
|
+
readonly propertyNames: {
|
|
7203
|
+
readonly $ref: "#/$defs/Locale";
|
|
7204
|
+
};
|
|
7205
|
+
readonly minProperties: 1;
|
|
7206
|
+
readonly additionalProperties: {
|
|
7207
|
+
readonly type: "string";
|
|
7208
|
+
readonly minLength: 1;
|
|
7209
|
+
readonly maxLength: 100;
|
|
7210
|
+
};
|
|
7211
|
+
};
|
|
7212
|
+
};
|
|
7213
|
+
};
|
|
6438
7214
|
readonly FooterColumn: {
|
|
6439
7215
|
readonly type: "object";
|
|
6440
7216
|
readonly additionalProperties: false;
|
|
@@ -7876,7 +8652,7 @@ export declare const schemas: {
|
|
|
7876
8652
|
};
|
|
7877
8653
|
readonly fields: {
|
|
7878
8654
|
readonly type: "object";
|
|
7879
|
-
readonly description: "Collection-specific values; any JSON.";
|
|
8655
|
+
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
8656
|
readonly additionalProperties: true;
|
|
7881
8657
|
};
|
|
7882
8658
|
readonly tags: {
|