@cloudhal/core-contracts 0.7.3 → 0.8.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 +699 -25
- package/dist/src/generated/schemas.js +425 -2
- package/dist/src/generated/site.d.ts +410 -174
- package/dist/src/generated/site.js +609 -328
- package/dist/src/generated/validators.js +4120 -1753
- package/package.json +1 -1
- package/schemas/content-entry.schema.json +1 -1
- package/schemas/site.schema.json +352 -1
|
@@ -940,6 +940,112 @@ export declare const SiteSchema: {
|
|
|
940
940
|
readonly description: "The value is a list of option values. Absent: false.";
|
|
941
941
|
};
|
|
942
942
|
};
|
|
943
|
+
}, {
|
|
944
|
+
readonly title: "ReferenceField";
|
|
945
|
+
readonly type: "object";
|
|
946
|
+
readonly description: "RFC-0045: entries of other (or this) collections of the same site, by translation group id (entry_…): the id of the group's original, which every language version and edition carries in translation.group.";
|
|
947
|
+
readonly additionalProperties: false;
|
|
948
|
+
readonly required: readonly ["key", "type", "labels", "localized", "collections"];
|
|
949
|
+
readonly properties: {
|
|
950
|
+
readonly key: {
|
|
951
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
952
|
+
};
|
|
953
|
+
readonly type: {
|
|
954
|
+
readonly type: "string";
|
|
955
|
+
readonly enum: readonly ["reference"];
|
|
956
|
+
};
|
|
957
|
+
readonly labels: {
|
|
958
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
959
|
+
};
|
|
960
|
+
readonly localized: {
|
|
961
|
+
readonly type: "boolean";
|
|
962
|
+
readonly description: "true: each language version picks its own targets; false: only the translation group's original holds them, and every version resolves them in its own language.";
|
|
963
|
+
};
|
|
964
|
+
readonly requiredToPublish: {
|
|
965
|
+
readonly type: "boolean";
|
|
966
|
+
readonly description: "An entry in review or published needs at least one target. Absent: false.";
|
|
967
|
+
};
|
|
968
|
+
readonly migration: {
|
|
969
|
+
readonly $ref: "#/$defs/FieldMigration";
|
|
970
|
+
};
|
|
971
|
+
readonly collections: {
|
|
972
|
+
readonly type: "array";
|
|
973
|
+
readonly description: "The collections a target may belong to: declared collections of this site (checked in code).";
|
|
974
|
+
readonly minItems: 1;
|
|
975
|
+
readonly maxItems: 5;
|
|
976
|
+
readonly uniqueItems: true;
|
|
977
|
+
readonly items: {
|
|
978
|
+
readonly $ref: "#/$defs/Slug";
|
|
979
|
+
};
|
|
980
|
+
};
|
|
981
|
+
readonly multiple: {
|
|
982
|
+
readonly type: "boolean";
|
|
983
|
+
readonly description: "The value is an ordered list of targets. Absent: false.";
|
|
984
|
+
};
|
|
985
|
+
readonly maxItems: {
|
|
986
|
+
readonly type: "integer";
|
|
987
|
+
readonly description: "With multiple: at most this many targets. Absent: 20.";
|
|
988
|
+
readonly minimum: 1;
|
|
989
|
+
readonly maximum: 50;
|
|
990
|
+
};
|
|
991
|
+
readonly where: {
|
|
992
|
+
readonly type: "array";
|
|
993
|
+
readonly description: "Only with one target collection: conditions on its list fields that a newly chosen target must meet (no `now`; checked in code). Narrows the picker; not re-checked when the target changes later.";
|
|
994
|
+
readonly minItems: 1;
|
|
995
|
+
readonly maxItems: 4;
|
|
996
|
+
readonly items: {
|
|
997
|
+
readonly $ref: "#/$defs/FieldCondition";
|
|
998
|
+
};
|
|
999
|
+
};
|
|
1000
|
+
};
|
|
1001
|
+
}, {
|
|
1002
|
+
readonly title: "RepeaterField";
|
|
1003
|
+
readonly type: "object";
|
|
1004
|
+
readonly description: "RFC-0045: an ordered list of items, each a flat object of sub-fields. A repeater cannot contain a repeater.";
|
|
1005
|
+
readonly additionalProperties: false;
|
|
1006
|
+
readonly required: readonly ["key", "type", "labels", "localized", "fields"];
|
|
1007
|
+
readonly properties: {
|
|
1008
|
+
readonly key: {
|
|
1009
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
1010
|
+
};
|
|
1011
|
+
readonly type: {
|
|
1012
|
+
readonly type: "string";
|
|
1013
|
+
readonly enum: readonly ["repeater"];
|
|
1014
|
+
};
|
|
1015
|
+
readonly labels: {
|
|
1016
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
1017
|
+
};
|
|
1018
|
+
readonly localized: {
|
|
1019
|
+
readonly type: "boolean";
|
|
1020
|
+
readonly description: "true: each language version has its own list (missing reads the original's); false: only the original holds the list.";
|
|
1021
|
+
};
|
|
1022
|
+
readonly requiredToPublish: {
|
|
1023
|
+
readonly type: "boolean";
|
|
1024
|
+
readonly description: "An entry in review or published needs at least one item. Absent: false.";
|
|
1025
|
+
};
|
|
1026
|
+
readonly migration: {
|
|
1027
|
+
readonly $ref: "#/$defs/FieldMigration";
|
|
1028
|
+
};
|
|
1029
|
+
readonly fields: {
|
|
1030
|
+
readonly type: "array";
|
|
1031
|
+
readonly description: "The sub-fields of every item, in form order. Unique keys (checked in code).";
|
|
1032
|
+
readonly minItems: 1;
|
|
1033
|
+
readonly maxItems: 10;
|
|
1034
|
+
readonly items: {
|
|
1035
|
+
readonly $ref: "#/$defs/SubFieldDefinition";
|
|
1036
|
+
};
|
|
1037
|
+
};
|
|
1038
|
+
readonly maxItems: {
|
|
1039
|
+
readonly type: "integer";
|
|
1040
|
+
readonly description: "At most this many items. Absent: 20.";
|
|
1041
|
+
readonly minimum: 1;
|
|
1042
|
+
readonly maximum: 50;
|
|
1043
|
+
};
|
|
1044
|
+
readonly itemLabel: {
|
|
1045
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
1046
|
+
readonly description: "The text, select or reference sub-field that names an item in Studio and approval prompts. Absent: the first such sub-field.";
|
|
1047
|
+
};
|
|
1048
|
+
};
|
|
943
1049
|
}];
|
|
944
1050
|
};
|
|
945
1051
|
readonly FieldKey: {
|
|
@@ -989,11 +1095,15 @@ export declare const SiteSchema: {
|
|
|
989
1095
|
};
|
|
990
1096
|
readonly fromType: {
|
|
991
1097
|
readonly type: "string";
|
|
992
|
-
readonly enum: readonly ["text", "richText", "number", "boolean", "date", "datetime", "url", "image", "select"];
|
|
1098
|
+
readonly enum: readonly ["text", "richText", "number", "boolean", "date", "datetime", "url", "image", "select", "reference", "repeater"];
|
|
993
1099
|
};
|
|
994
1100
|
readonly fromLocalized: {
|
|
995
1101
|
readonly type: "boolean";
|
|
996
1102
|
};
|
|
1103
|
+
readonly sub: {
|
|
1104
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
1105
|
+
readonly description: "RFC-0045: the repeater's sub-field the operation rewrites (its key once the operation is done); fromKey and fromType then describe the sub-field.";
|
|
1106
|
+
};
|
|
997
1107
|
};
|
|
998
1108
|
};
|
|
999
1109
|
readonly FieldOption: {
|
|
@@ -1517,6 +1627,233 @@ export declare const SiteSchema: {
|
|
|
1517
1627
|
};
|
|
1518
1628
|
}];
|
|
1519
1629
|
};
|
|
1630
|
+
readonly SubFieldDefinition: {
|
|
1631
|
+
readonly description: "RFC-0045: one sub-field of a repeater item, discriminated by `type`. Only types whose value is a scalar: no datetime, no multiple select or reference, no repeater. No localized and no migration: the repeater's apply.";
|
|
1632
|
+
readonly oneOf: readonly [{
|
|
1633
|
+
readonly title: "TextSubField";
|
|
1634
|
+
readonly type: "object";
|
|
1635
|
+
readonly additionalProperties: false;
|
|
1636
|
+
readonly required: readonly ["key", "type", "labels"];
|
|
1637
|
+
readonly properties: {
|
|
1638
|
+
readonly key: {
|
|
1639
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
1640
|
+
};
|
|
1641
|
+
readonly type: {
|
|
1642
|
+
readonly type: "string";
|
|
1643
|
+
readonly enum: readonly ["text"];
|
|
1644
|
+
};
|
|
1645
|
+
readonly labels: {
|
|
1646
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
1647
|
+
};
|
|
1648
|
+
readonly requiredToPublish: {
|
|
1649
|
+
readonly type: "boolean";
|
|
1650
|
+
readonly description: "Every item of an entry in review or published needs a value. Absent: false.";
|
|
1651
|
+
};
|
|
1652
|
+
readonly maxLength: {
|
|
1653
|
+
readonly type: "integer";
|
|
1654
|
+
readonly description: "Absent: 5000.";
|
|
1655
|
+
readonly minimum: 1;
|
|
1656
|
+
readonly maximum: 5000;
|
|
1657
|
+
};
|
|
1658
|
+
readonly multiline: {
|
|
1659
|
+
readonly type: "boolean";
|
|
1660
|
+
readonly description: "Line breaks allowed. Absent: false.";
|
|
1661
|
+
};
|
|
1662
|
+
};
|
|
1663
|
+
}, {
|
|
1664
|
+
readonly title: "RichTextSubField";
|
|
1665
|
+
readonly type: "object";
|
|
1666
|
+
readonly additionalProperties: false;
|
|
1667
|
+
readonly required: readonly ["key", "type", "labels"];
|
|
1668
|
+
readonly properties: {
|
|
1669
|
+
readonly key: {
|
|
1670
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
1671
|
+
};
|
|
1672
|
+
readonly type: {
|
|
1673
|
+
readonly type: "string";
|
|
1674
|
+
readonly enum: readonly ["richText"];
|
|
1675
|
+
};
|
|
1676
|
+
readonly labels: {
|
|
1677
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
1678
|
+
};
|
|
1679
|
+
readonly requiredToPublish: {
|
|
1680
|
+
readonly type: "boolean";
|
|
1681
|
+
readonly description: "Every item of an entry in review or published needs a value. Absent: false.";
|
|
1682
|
+
};
|
|
1683
|
+
};
|
|
1684
|
+
}, {
|
|
1685
|
+
readonly title: "NumberSubField";
|
|
1686
|
+
readonly type: "object";
|
|
1687
|
+
readonly additionalProperties: false;
|
|
1688
|
+
readonly required: readonly ["key", "type", "labels"];
|
|
1689
|
+
readonly properties: {
|
|
1690
|
+
readonly key: {
|
|
1691
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
1692
|
+
};
|
|
1693
|
+
readonly type: {
|
|
1694
|
+
readonly type: "string";
|
|
1695
|
+
readonly enum: readonly ["number"];
|
|
1696
|
+
};
|
|
1697
|
+
readonly labels: {
|
|
1698
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
1699
|
+
};
|
|
1700
|
+
readonly requiredToPublish: {
|
|
1701
|
+
readonly type: "boolean";
|
|
1702
|
+
readonly description: "Every item of an entry in review or published needs a value. Absent: false.";
|
|
1703
|
+
};
|
|
1704
|
+
readonly integer: {
|
|
1705
|
+
readonly type: "boolean";
|
|
1706
|
+
readonly description: "Whole numbers only. Absent: false.";
|
|
1707
|
+
};
|
|
1708
|
+
readonly minimum: {
|
|
1709
|
+
readonly type: "number";
|
|
1710
|
+
};
|
|
1711
|
+
readonly maximum: {
|
|
1712
|
+
readonly type: "number";
|
|
1713
|
+
};
|
|
1714
|
+
};
|
|
1715
|
+
}, {
|
|
1716
|
+
readonly title: "BooleanSubField";
|
|
1717
|
+
readonly type: "object";
|
|
1718
|
+
readonly additionalProperties: false;
|
|
1719
|
+
readonly required: readonly ["key", "type", "labels"];
|
|
1720
|
+
readonly properties: {
|
|
1721
|
+
readonly key: {
|
|
1722
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
1723
|
+
};
|
|
1724
|
+
readonly type: {
|
|
1725
|
+
readonly type: "string";
|
|
1726
|
+
readonly enum: readonly ["boolean"];
|
|
1727
|
+
};
|
|
1728
|
+
readonly labels: {
|
|
1729
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
1730
|
+
};
|
|
1731
|
+
};
|
|
1732
|
+
}, {
|
|
1733
|
+
readonly title: "DateSubField";
|
|
1734
|
+
readonly type: "object";
|
|
1735
|
+
readonly additionalProperties: false;
|
|
1736
|
+
readonly required: readonly ["key", "type", "labels"];
|
|
1737
|
+
readonly properties: {
|
|
1738
|
+
readonly key: {
|
|
1739
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
1740
|
+
};
|
|
1741
|
+
readonly type: {
|
|
1742
|
+
readonly type: "string";
|
|
1743
|
+
readonly enum: readonly ["date"];
|
|
1744
|
+
};
|
|
1745
|
+
readonly labels: {
|
|
1746
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
1747
|
+
};
|
|
1748
|
+
readonly requiredToPublish: {
|
|
1749
|
+
readonly type: "boolean";
|
|
1750
|
+
readonly description: "Every item of an entry in review or published needs a value. Absent: false.";
|
|
1751
|
+
};
|
|
1752
|
+
};
|
|
1753
|
+
}, {
|
|
1754
|
+
readonly title: "UrlSubField";
|
|
1755
|
+
readonly type: "object";
|
|
1756
|
+
readonly additionalProperties: false;
|
|
1757
|
+
readonly required: readonly ["key", "type", "labels"];
|
|
1758
|
+
readonly properties: {
|
|
1759
|
+
readonly key: {
|
|
1760
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
1761
|
+
};
|
|
1762
|
+
readonly type: {
|
|
1763
|
+
readonly type: "string";
|
|
1764
|
+
readonly enum: readonly ["url"];
|
|
1765
|
+
};
|
|
1766
|
+
readonly labels: {
|
|
1767
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
1768
|
+
};
|
|
1769
|
+
readonly requiredToPublish: {
|
|
1770
|
+
readonly type: "boolean";
|
|
1771
|
+
readonly description: "Every item of an entry in review or published needs a value. Absent: false.";
|
|
1772
|
+
};
|
|
1773
|
+
};
|
|
1774
|
+
}, {
|
|
1775
|
+
readonly title: "ImageSubField";
|
|
1776
|
+
readonly type: "object";
|
|
1777
|
+
readonly additionalProperties: false;
|
|
1778
|
+
readonly required: readonly ["key", "type", "labels"];
|
|
1779
|
+
readonly properties: {
|
|
1780
|
+
readonly key: {
|
|
1781
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
1782
|
+
};
|
|
1783
|
+
readonly type: {
|
|
1784
|
+
readonly type: "string";
|
|
1785
|
+
readonly enum: readonly ["image"];
|
|
1786
|
+
};
|
|
1787
|
+
readonly labels: {
|
|
1788
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
1789
|
+
};
|
|
1790
|
+
readonly requiredToPublish: {
|
|
1791
|
+
readonly type: "boolean";
|
|
1792
|
+
readonly description: "Every item of an entry in review or published needs a value. Absent: false.";
|
|
1793
|
+
};
|
|
1794
|
+
};
|
|
1795
|
+
}, {
|
|
1796
|
+
readonly title: "SelectSubField";
|
|
1797
|
+
readonly type: "object";
|
|
1798
|
+
readonly additionalProperties: false;
|
|
1799
|
+
readonly required: readonly ["key", "type", "labels", "options"];
|
|
1800
|
+
readonly properties: {
|
|
1801
|
+
readonly key: {
|
|
1802
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
1803
|
+
};
|
|
1804
|
+
readonly type: {
|
|
1805
|
+
readonly type: "string";
|
|
1806
|
+
readonly enum: readonly ["select"];
|
|
1807
|
+
};
|
|
1808
|
+
readonly labels: {
|
|
1809
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
1810
|
+
};
|
|
1811
|
+
readonly requiredToPublish: {
|
|
1812
|
+
readonly type: "boolean";
|
|
1813
|
+
readonly description: "Every item of an entry in review or published needs a value. Absent: false.";
|
|
1814
|
+
};
|
|
1815
|
+
readonly options: {
|
|
1816
|
+
readonly type: "array";
|
|
1817
|
+
readonly minItems: 1;
|
|
1818
|
+
readonly maxItems: 50;
|
|
1819
|
+
readonly items: {
|
|
1820
|
+
readonly $ref: "#/$defs/FieldOption";
|
|
1821
|
+
};
|
|
1822
|
+
};
|
|
1823
|
+
};
|
|
1824
|
+
}, {
|
|
1825
|
+
readonly title: "ReferenceSubField";
|
|
1826
|
+
readonly type: "object";
|
|
1827
|
+
readonly additionalProperties: false;
|
|
1828
|
+
readonly required: readonly ["key", "type", "labels", "collections"];
|
|
1829
|
+
readonly properties: {
|
|
1830
|
+
readonly key: {
|
|
1831
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
1832
|
+
};
|
|
1833
|
+
readonly type: {
|
|
1834
|
+
readonly type: "string";
|
|
1835
|
+
readonly enum: readonly ["reference"];
|
|
1836
|
+
};
|
|
1837
|
+
readonly labels: {
|
|
1838
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
1839
|
+
};
|
|
1840
|
+
readonly requiredToPublish: {
|
|
1841
|
+
readonly type: "boolean";
|
|
1842
|
+
readonly description: "Every item of an entry in review or published needs a value. Absent: false.";
|
|
1843
|
+
};
|
|
1844
|
+
readonly collections: {
|
|
1845
|
+
readonly type: "array";
|
|
1846
|
+
readonly description: "The collections a target may belong to (checked in code).";
|
|
1847
|
+
readonly minItems: 1;
|
|
1848
|
+
readonly maxItems: 5;
|
|
1849
|
+
readonly uniqueItems: true;
|
|
1850
|
+
readonly items: {
|
|
1851
|
+
readonly $ref: "#/$defs/Slug";
|
|
1852
|
+
};
|
|
1853
|
+
};
|
|
1854
|
+
};
|
|
1855
|
+
}];
|
|
1856
|
+
};
|
|
1520
1857
|
readonly SurfaceComponent: {
|
|
1521
1858
|
readonly type: "object";
|
|
1522
1859
|
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.";
|
|
@@ -2711,7 +3048,7 @@ export declare const ContentEntrySchema: {
|
|
|
2711
3048
|
};
|
|
2712
3049
|
readonly fields: {
|
|
2713
3050
|
readonly type: "object";
|
|
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.";
|
|
3051
|
+
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. A reference value is a translation group id or a list of them, a repeater value a list of flat objects (RFC-0045).";
|
|
2715
3052
|
readonly additionalProperties: true;
|
|
2716
3053
|
};
|
|
2717
3054
|
readonly tags: {
|
|
@@ -7437,16 +7774,74 @@ export declare const schemas: {
|
|
|
7437
7774
|
}, {
|
|
7438
7775
|
readonly title: "UrlField";
|
|
7439
7776
|
readonly type: "object";
|
|
7440
|
-
readonly description: "A link: https, http, mailto, tel, a site-relative path or a #fragment; at most 2048 characters.";
|
|
7777
|
+
readonly description: "A link: https, http, mailto, tel, a site-relative path or a #fragment; at most 2048 characters.";
|
|
7778
|
+
readonly additionalProperties: false;
|
|
7779
|
+
readonly required: readonly ["key", "type", "labels", "localized"];
|
|
7780
|
+
readonly properties: {
|
|
7781
|
+
readonly key: {
|
|
7782
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
7783
|
+
};
|
|
7784
|
+
readonly type: {
|
|
7785
|
+
readonly type: "string";
|
|
7786
|
+
readonly enum: readonly ["url"];
|
|
7787
|
+
};
|
|
7788
|
+
readonly labels: {
|
|
7789
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
7790
|
+
};
|
|
7791
|
+
readonly localized: {
|
|
7792
|
+
readonly type: "boolean";
|
|
7793
|
+
readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
|
|
7794
|
+
};
|
|
7795
|
+
readonly requiredToPublish: {
|
|
7796
|
+
readonly type: "boolean";
|
|
7797
|
+
readonly description: "An entry in review or published needs a value. Absent: false.";
|
|
7798
|
+
};
|
|
7799
|
+
readonly migration: {
|
|
7800
|
+
readonly $ref: "#/$defs/FieldMigration";
|
|
7801
|
+
};
|
|
7802
|
+
};
|
|
7803
|
+
}, {
|
|
7804
|
+
readonly title: "ImageField";
|
|
7805
|
+
readonly type: "object";
|
|
7806
|
+
readonly description: "An image Asset of the same site, by id (asset_…).";
|
|
7807
|
+
readonly additionalProperties: false;
|
|
7808
|
+
readonly required: readonly ["key", "type", "labels", "localized"];
|
|
7809
|
+
readonly properties: {
|
|
7810
|
+
readonly key: {
|
|
7811
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
7812
|
+
};
|
|
7813
|
+
readonly type: {
|
|
7814
|
+
readonly type: "string";
|
|
7815
|
+
readonly enum: readonly ["image"];
|
|
7816
|
+
};
|
|
7817
|
+
readonly labels: {
|
|
7818
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
7819
|
+
};
|
|
7820
|
+
readonly localized: {
|
|
7821
|
+
readonly type: "boolean";
|
|
7822
|
+
readonly description: "true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.";
|
|
7823
|
+
};
|
|
7824
|
+
readonly requiredToPublish: {
|
|
7825
|
+
readonly type: "boolean";
|
|
7826
|
+
readonly description: "An entry in review or published needs a value. Absent: false.";
|
|
7827
|
+
};
|
|
7828
|
+
readonly migration: {
|
|
7829
|
+
readonly $ref: "#/$defs/FieldMigration";
|
|
7830
|
+
};
|
|
7831
|
+
};
|
|
7832
|
+
}, {
|
|
7833
|
+
readonly title: "SelectField";
|
|
7834
|
+
readonly type: "object";
|
|
7835
|
+
readonly description: "One of a closed list of options, or several when multiple.";
|
|
7441
7836
|
readonly additionalProperties: false;
|
|
7442
|
-
readonly required: readonly ["key", "type", "labels", "localized"];
|
|
7837
|
+
readonly required: readonly ["key", "type", "labels", "localized", "options"];
|
|
7443
7838
|
readonly properties: {
|
|
7444
7839
|
readonly key: {
|
|
7445
7840
|
readonly $ref: "#/$defs/FieldKey";
|
|
7446
7841
|
};
|
|
7447
7842
|
readonly type: {
|
|
7448
7843
|
readonly type: "string";
|
|
7449
|
-
readonly enum: readonly ["
|
|
7844
|
+
readonly enum: readonly ["select"];
|
|
7450
7845
|
};
|
|
7451
7846
|
readonly labels: {
|
|
7452
7847
|
readonly $ref: "#/$defs/FieldLabels";
|
|
@@ -7462,75 +7857,123 @@ export declare const schemas: {
|
|
|
7462
7857
|
readonly migration: {
|
|
7463
7858
|
readonly $ref: "#/$defs/FieldMigration";
|
|
7464
7859
|
};
|
|
7860
|
+
readonly options: {
|
|
7861
|
+
readonly type: "array";
|
|
7862
|
+
readonly minItems: 1;
|
|
7863
|
+
readonly maxItems: 50;
|
|
7864
|
+
readonly items: {
|
|
7865
|
+
readonly $ref: "#/$defs/FieldOption";
|
|
7866
|
+
};
|
|
7867
|
+
};
|
|
7868
|
+
readonly multiple: {
|
|
7869
|
+
readonly type: "boolean";
|
|
7870
|
+
readonly description: "The value is a list of option values. Absent: false.";
|
|
7871
|
+
};
|
|
7465
7872
|
};
|
|
7466
7873
|
}, {
|
|
7467
|
-
readonly title: "
|
|
7874
|
+
readonly title: "ReferenceField";
|
|
7468
7875
|
readonly type: "object";
|
|
7469
|
-
readonly description: "
|
|
7876
|
+
readonly description: "RFC-0045: entries of other (or this) collections of the same site, by translation group id (entry_…): the id of the group's original, which every language version and edition carries in translation.group.";
|
|
7470
7877
|
readonly additionalProperties: false;
|
|
7471
|
-
readonly required: readonly ["key", "type", "labels", "localized"];
|
|
7878
|
+
readonly required: readonly ["key", "type", "labels", "localized", "collections"];
|
|
7472
7879
|
readonly properties: {
|
|
7473
7880
|
readonly key: {
|
|
7474
7881
|
readonly $ref: "#/$defs/FieldKey";
|
|
7475
7882
|
};
|
|
7476
7883
|
readonly type: {
|
|
7477
7884
|
readonly type: "string";
|
|
7478
|
-
readonly enum: readonly ["
|
|
7885
|
+
readonly enum: readonly ["reference"];
|
|
7479
7886
|
};
|
|
7480
7887
|
readonly labels: {
|
|
7481
7888
|
readonly $ref: "#/$defs/FieldLabels";
|
|
7482
7889
|
};
|
|
7483
7890
|
readonly localized: {
|
|
7484
7891
|
readonly type: "boolean";
|
|
7485
|
-
readonly description: "true: each language version
|
|
7892
|
+
readonly description: "true: each language version picks its own targets; false: only the translation group's original holds them, and every version resolves them in its own language.";
|
|
7486
7893
|
};
|
|
7487
7894
|
readonly requiredToPublish: {
|
|
7488
7895
|
readonly type: "boolean";
|
|
7489
|
-
readonly description: "An entry in review or published needs
|
|
7896
|
+
readonly description: "An entry in review or published needs at least one target. Absent: false.";
|
|
7490
7897
|
};
|
|
7491
7898
|
readonly migration: {
|
|
7492
7899
|
readonly $ref: "#/$defs/FieldMigration";
|
|
7493
7900
|
};
|
|
7901
|
+
readonly collections: {
|
|
7902
|
+
readonly type: "array";
|
|
7903
|
+
readonly description: "The collections a target may belong to: declared collections of this site (checked in code).";
|
|
7904
|
+
readonly minItems: 1;
|
|
7905
|
+
readonly maxItems: 5;
|
|
7906
|
+
readonly uniqueItems: true;
|
|
7907
|
+
readonly items: {
|
|
7908
|
+
readonly $ref: "#/$defs/Slug";
|
|
7909
|
+
};
|
|
7910
|
+
};
|
|
7911
|
+
readonly multiple: {
|
|
7912
|
+
readonly type: "boolean";
|
|
7913
|
+
readonly description: "The value is an ordered list of targets. Absent: false.";
|
|
7914
|
+
};
|
|
7915
|
+
readonly maxItems: {
|
|
7916
|
+
readonly type: "integer";
|
|
7917
|
+
readonly description: "With multiple: at most this many targets. Absent: 20.";
|
|
7918
|
+
readonly minimum: 1;
|
|
7919
|
+
readonly maximum: 50;
|
|
7920
|
+
};
|
|
7921
|
+
readonly where: {
|
|
7922
|
+
readonly type: "array";
|
|
7923
|
+
readonly description: "Only with one target collection: conditions on its list fields that a newly chosen target must meet (no `now`; checked in code). Narrows the picker; not re-checked when the target changes later.";
|
|
7924
|
+
readonly minItems: 1;
|
|
7925
|
+
readonly maxItems: 4;
|
|
7926
|
+
readonly items: {
|
|
7927
|
+
readonly $ref: "#/$defs/FieldCondition";
|
|
7928
|
+
};
|
|
7929
|
+
};
|
|
7494
7930
|
};
|
|
7495
7931
|
}, {
|
|
7496
|
-
readonly title: "
|
|
7932
|
+
readonly title: "RepeaterField";
|
|
7497
7933
|
readonly type: "object";
|
|
7498
|
-
readonly description: "
|
|
7934
|
+
readonly description: "RFC-0045: an ordered list of items, each a flat object of sub-fields. A repeater cannot contain a repeater.";
|
|
7499
7935
|
readonly additionalProperties: false;
|
|
7500
|
-
readonly required: readonly ["key", "type", "labels", "localized", "
|
|
7936
|
+
readonly required: readonly ["key", "type", "labels", "localized", "fields"];
|
|
7501
7937
|
readonly properties: {
|
|
7502
7938
|
readonly key: {
|
|
7503
7939
|
readonly $ref: "#/$defs/FieldKey";
|
|
7504
7940
|
};
|
|
7505
7941
|
readonly type: {
|
|
7506
7942
|
readonly type: "string";
|
|
7507
|
-
readonly enum: readonly ["
|
|
7943
|
+
readonly enum: readonly ["repeater"];
|
|
7508
7944
|
};
|
|
7509
7945
|
readonly labels: {
|
|
7510
7946
|
readonly $ref: "#/$defs/FieldLabels";
|
|
7511
7947
|
};
|
|
7512
7948
|
readonly localized: {
|
|
7513
7949
|
readonly type: "boolean";
|
|
7514
|
-
readonly description: "true: each language version has its own
|
|
7950
|
+
readonly description: "true: each language version has its own list (missing reads the original's); false: only the original holds the list.";
|
|
7515
7951
|
};
|
|
7516
7952
|
readonly requiredToPublish: {
|
|
7517
7953
|
readonly type: "boolean";
|
|
7518
|
-
readonly description: "An entry in review or published needs
|
|
7954
|
+
readonly description: "An entry in review or published needs at least one item. Absent: false.";
|
|
7519
7955
|
};
|
|
7520
7956
|
readonly migration: {
|
|
7521
7957
|
readonly $ref: "#/$defs/FieldMigration";
|
|
7522
7958
|
};
|
|
7523
|
-
readonly
|
|
7959
|
+
readonly fields: {
|
|
7524
7960
|
readonly type: "array";
|
|
7961
|
+
readonly description: "The sub-fields of every item, in form order. Unique keys (checked in code).";
|
|
7525
7962
|
readonly minItems: 1;
|
|
7526
|
-
readonly maxItems:
|
|
7963
|
+
readonly maxItems: 10;
|
|
7527
7964
|
readonly items: {
|
|
7528
|
-
readonly $ref: "#/$defs/
|
|
7965
|
+
readonly $ref: "#/$defs/SubFieldDefinition";
|
|
7529
7966
|
};
|
|
7530
7967
|
};
|
|
7531
|
-
readonly
|
|
7532
|
-
readonly type: "
|
|
7533
|
-
readonly description: "
|
|
7968
|
+
readonly maxItems: {
|
|
7969
|
+
readonly type: "integer";
|
|
7970
|
+
readonly description: "At most this many items. Absent: 20.";
|
|
7971
|
+
readonly minimum: 1;
|
|
7972
|
+
readonly maximum: 50;
|
|
7973
|
+
};
|
|
7974
|
+
readonly itemLabel: {
|
|
7975
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
7976
|
+
readonly description: "The text, select or reference sub-field that names an item in Studio and approval prompts. Absent: the first such sub-field.";
|
|
7534
7977
|
};
|
|
7535
7978
|
};
|
|
7536
7979
|
}];
|
|
@@ -7582,11 +8025,15 @@ export declare const schemas: {
|
|
|
7582
8025
|
};
|
|
7583
8026
|
readonly fromType: {
|
|
7584
8027
|
readonly type: "string";
|
|
7585
|
-
readonly enum: readonly ["text", "richText", "number", "boolean", "date", "datetime", "url", "image", "select"];
|
|
8028
|
+
readonly enum: readonly ["text", "richText", "number", "boolean", "date", "datetime", "url", "image", "select", "reference", "repeater"];
|
|
7586
8029
|
};
|
|
7587
8030
|
readonly fromLocalized: {
|
|
7588
8031
|
readonly type: "boolean";
|
|
7589
8032
|
};
|
|
8033
|
+
readonly sub: {
|
|
8034
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
8035
|
+
readonly description: "RFC-0045: the repeater's sub-field the operation rewrites (its key once the operation is done); fromKey and fromType then describe the sub-field.";
|
|
8036
|
+
};
|
|
7590
8037
|
};
|
|
7591
8038
|
};
|
|
7592
8039
|
readonly FieldOption: {
|
|
@@ -8110,6 +8557,233 @@ export declare const schemas: {
|
|
|
8110
8557
|
};
|
|
8111
8558
|
}];
|
|
8112
8559
|
};
|
|
8560
|
+
readonly SubFieldDefinition: {
|
|
8561
|
+
readonly description: "RFC-0045: one sub-field of a repeater item, discriminated by `type`. Only types whose value is a scalar: no datetime, no multiple select or reference, no repeater. No localized and no migration: the repeater's apply.";
|
|
8562
|
+
readonly oneOf: readonly [{
|
|
8563
|
+
readonly title: "TextSubField";
|
|
8564
|
+
readonly type: "object";
|
|
8565
|
+
readonly additionalProperties: false;
|
|
8566
|
+
readonly required: readonly ["key", "type", "labels"];
|
|
8567
|
+
readonly properties: {
|
|
8568
|
+
readonly key: {
|
|
8569
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
8570
|
+
};
|
|
8571
|
+
readonly type: {
|
|
8572
|
+
readonly type: "string";
|
|
8573
|
+
readonly enum: readonly ["text"];
|
|
8574
|
+
};
|
|
8575
|
+
readonly labels: {
|
|
8576
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
8577
|
+
};
|
|
8578
|
+
readonly requiredToPublish: {
|
|
8579
|
+
readonly type: "boolean";
|
|
8580
|
+
readonly description: "Every item of an entry in review or published needs a value. Absent: false.";
|
|
8581
|
+
};
|
|
8582
|
+
readonly maxLength: {
|
|
8583
|
+
readonly type: "integer";
|
|
8584
|
+
readonly description: "Absent: 5000.";
|
|
8585
|
+
readonly minimum: 1;
|
|
8586
|
+
readonly maximum: 5000;
|
|
8587
|
+
};
|
|
8588
|
+
readonly multiline: {
|
|
8589
|
+
readonly type: "boolean";
|
|
8590
|
+
readonly description: "Line breaks allowed. Absent: false.";
|
|
8591
|
+
};
|
|
8592
|
+
};
|
|
8593
|
+
}, {
|
|
8594
|
+
readonly title: "RichTextSubField";
|
|
8595
|
+
readonly type: "object";
|
|
8596
|
+
readonly additionalProperties: false;
|
|
8597
|
+
readonly required: readonly ["key", "type", "labels"];
|
|
8598
|
+
readonly properties: {
|
|
8599
|
+
readonly key: {
|
|
8600
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
8601
|
+
};
|
|
8602
|
+
readonly type: {
|
|
8603
|
+
readonly type: "string";
|
|
8604
|
+
readonly enum: readonly ["richText"];
|
|
8605
|
+
};
|
|
8606
|
+
readonly labels: {
|
|
8607
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
8608
|
+
};
|
|
8609
|
+
readonly requiredToPublish: {
|
|
8610
|
+
readonly type: "boolean";
|
|
8611
|
+
readonly description: "Every item of an entry in review or published needs a value. Absent: false.";
|
|
8612
|
+
};
|
|
8613
|
+
};
|
|
8614
|
+
}, {
|
|
8615
|
+
readonly title: "NumberSubField";
|
|
8616
|
+
readonly type: "object";
|
|
8617
|
+
readonly additionalProperties: false;
|
|
8618
|
+
readonly required: readonly ["key", "type", "labels"];
|
|
8619
|
+
readonly properties: {
|
|
8620
|
+
readonly key: {
|
|
8621
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
8622
|
+
};
|
|
8623
|
+
readonly type: {
|
|
8624
|
+
readonly type: "string";
|
|
8625
|
+
readonly enum: readonly ["number"];
|
|
8626
|
+
};
|
|
8627
|
+
readonly labels: {
|
|
8628
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
8629
|
+
};
|
|
8630
|
+
readonly requiredToPublish: {
|
|
8631
|
+
readonly type: "boolean";
|
|
8632
|
+
readonly description: "Every item of an entry in review or published needs a value. Absent: false.";
|
|
8633
|
+
};
|
|
8634
|
+
readonly integer: {
|
|
8635
|
+
readonly type: "boolean";
|
|
8636
|
+
readonly description: "Whole numbers only. Absent: false.";
|
|
8637
|
+
};
|
|
8638
|
+
readonly minimum: {
|
|
8639
|
+
readonly type: "number";
|
|
8640
|
+
};
|
|
8641
|
+
readonly maximum: {
|
|
8642
|
+
readonly type: "number";
|
|
8643
|
+
};
|
|
8644
|
+
};
|
|
8645
|
+
}, {
|
|
8646
|
+
readonly title: "BooleanSubField";
|
|
8647
|
+
readonly type: "object";
|
|
8648
|
+
readonly additionalProperties: false;
|
|
8649
|
+
readonly required: readonly ["key", "type", "labels"];
|
|
8650
|
+
readonly properties: {
|
|
8651
|
+
readonly key: {
|
|
8652
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
8653
|
+
};
|
|
8654
|
+
readonly type: {
|
|
8655
|
+
readonly type: "string";
|
|
8656
|
+
readonly enum: readonly ["boolean"];
|
|
8657
|
+
};
|
|
8658
|
+
readonly labels: {
|
|
8659
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
8660
|
+
};
|
|
8661
|
+
};
|
|
8662
|
+
}, {
|
|
8663
|
+
readonly title: "DateSubField";
|
|
8664
|
+
readonly type: "object";
|
|
8665
|
+
readonly additionalProperties: false;
|
|
8666
|
+
readonly required: readonly ["key", "type", "labels"];
|
|
8667
|
+
readonly properties: {
|
|
8668
|
+
readonly key: {
|
|
8669
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
8670
|
+
};
|
|
8671
|
+
readonly type: {
|
|
8672
|
+
readonly type: "string";
|
|
8673
|
+
readonly enum: readonly ["date"];
|
|
8674
|
+
};
|
|
8675
|
+
readonly labels: {
|
|
8676
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
8677
|
+
};
|
|
8678
|
+
readonly requiredToPublish: {
|
|
8679
|
+
readonly type: "boolean";
|
|
8680
|
+
readonly description: "Every item of an entry in review or published needs a value. Absent: false.";
|
|
8681
|
+
};
|
|
8682
|
+
};
|
|
8683
|
+
}, {
|
|
8684
|
+
readonly title: "UrlSubField";
|
|
8685
|
+
readonly type: "object";
|
|
8686
|
+
readonly additionalProperties: false;
|
|
8687
|
+
readonly required: readonly ["key", "type", "labels"];
|
|
8688
|
+
readonly properties: {
|
|
8689
|
+
readonly key: {
|
|
8690
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
8691
|
+
};
|
|
8692
|
+
readonly type: {
|
|
8693
|
+
readonly type: "string";
|
|
8694
|
+
readonly enum: readonly ["url"];
|
|
8695
|
+
};
|
|
8696
|
+
readonly labels: {
|
|
8697
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
8698
|
+
};
|
|
8699
|
+
readonly requiredToPublish: {
|
|
8700
|
+
readonly type: "boolean";
|
|
8701
|
+
readonly description: "Every item of an entry in review or published needs a value. Absent: false.";
|
|
8702
|
+
};
|
|
8703
|
+
};
|
|
8704
|
+
}, {
|
|
8705
|
+
readonly title: "ImageSubField";
|
|
8706
|
+
readonly type: "object";
|
|
8707
|
+
readonly additionalProperties: false;
|
|
8708
|
+
readonly required: readonly ["key", "type", "labels"];
|
|
8709
|
+
readonly properties: {
|
|
8710
|
+
readonly key: {
|
|
8711
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
8712
|
+
};
|
|
8713
|
+
readonly type: {
|
|
8714
|
+
readonly type: "string";
|
|
8715
|
+
readonly enum: readonly ["image"];
|
|
8716
|
+
};
|
|
8717
|
+
readonly labels: {
|
|
8718
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
8719
|
+
};
|
|
8720
|
+
readonly requiredToPublish: {
|
|
8721
|
+
readonly type: "boolean";
|
|
8722
|
+
readonly description: "Every item of an entry in review or published needs a value. Absent: false.";
|
|
8723
|
+
};
|
|
8724
|
+
};
|
|
8725
|
+
}, {
|
|
8726
|
+
readonly title: "SelectSubField";
|
|
8727
|
+
readonly type: "object";
|
|
8728
|
+
readonly additionalProperties: false;
|
|
8729
|
+
readonly required: readonly ["key", "type", "labels", "options"];
|
|
8730
|
+
readonly properties: {
|
|
8731
|
+
readonly key: {
|
|
8732
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
8733
|
+
};
|
|
8734
|
+
readonly type: {
|
|
8735
|
+
readonly type: "string";
|
|
8736
|
+
readonly enum: readonly ["select"];
|
|
8737
|
+
};
|
|
8738
|
+
readonly labels: {
|
|
8739
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
8740
|
+
};
|
|
8741
|
+
readonly requiredToPublish: {
|
|
8742
|
+
readonly type: "boolean";
|
|
8743
|
+
readonly description: "Every item of an entry in review or published needs a value. Absent: false.";
|
|
8744
|
+
};
|
|
8745
|
+
readonly options: {
|
|
8746
|
+
readonly type: "array";
|
|
8747
|
+
readonly minItems: 1;
|
|
8748
|
+
readonly maxItems: 50;
|
|
8749
|
+
readonly items: {
|
|
8750
|
+
readonly $ref: "#/$defs/FieldOption";
|
|
8751
|
+
};
|
|
8752
|
+
};
|
|
8753
|
+
};
|
|
8754
|
+
}, {
|
|
8755
|
+
readonly title: "ReferenceSubField";
|
|
8756
|
+
readonly type: "object";
|
|
8757
|
+
readonly additionalProperties: false;
|
|
8758
|
+
readonly required: readonly ["key", "type", "labels", "collections"];
|
|
8759
|
+
readonly properties: {
|
|
8760
|
+
readonly key: {
|
|
8761
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
8762
|
+
};
|
|
8763
|
+
readonly type: {
|
|
8764
|
+
readonly type: "string";
|
|
8765
|
+
readonly enum: readonly ["reference"];
|
|
8766
|
+
};
|
|
8767
|
+
readonly labels: {
|
|
8768
|
+
readonly $ref: "#/$defs/FieldLabels";
|
|
8769
|
+
};
|
|
8770
|
+
readonly requiredToPublish: {
|
|
8771
|
+
readonly type: "boolean";
|
|
8772
|
+
readonly description: "Every item of an entry in review or published needs a value. Absent: false.";
|
|
8773
|
+
};
|
|
8774
|
+
readonly collections: {
|
|
8775
|
+
readonly type: "array";
|
|
8776
|
+
readonly description: "The collections a target may belong to (checked in code).";
|
|
8777
|
+
readonly minItems: 1;
|
|
8778
|
+
readonly maxItems: 5;
|
|
8779
|
+
readonly uniqueItems: true;
|
|
8780
|
+
readonly items: {
|
|
8781
|
+
readonly $ref: "#/$defs/Slug";
|
|
8782
|
+
};
|
|
8783
|
+
};
|
|
8784
|
+
};
|
|
8785
|
+
}];
|
|
8786
|
+
};
|
|
8113
8787
|
readonly SurfaceComponent: {
|
|
8114
8788
|
readonly type: "object";
|
|
8115
8789
|
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.";
|
|
@@ -9304,7 +9978,7 @@ export declare const schemas: {
|
|
|
9304
9978
|
};
|
|
9305
9979
|
readonly fields: {
|
|
9306
9980
|
readonly type: "object";
|
|
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.";
|
|
9981
|
+
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. A reference value is a translation group id or a list of them, a repeater value a list of flat objects (RFC-0045).";
|
|
9308
9982
|
readonly additionalProperties: true;
|
|
9309
9983
|
};
|
|
9310
9984
|
readonly tags: {
|