@cloudhal/core-contracts 0.7.3 → 0.9.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/scripts/gen-ts.js +12 -4
- package/dist/scripts/schema-list.d.ts +9 -1
- package/dist/scripts/schema-list.js +14 -0
- 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 +3 -1
- package/dist/src/generated/index.js +3 -1
- package/dist/src/generated/release-manifest.d.ts +206 -0
- package/dist/src/generated/release-manifest.js +231 -0
- package/dist/src/generated/release-statement.d.ts +56 -0
- package/dist/src/generated/release-statement.js +60 -0
- package/dist/src/generated/schemas.d.ts +2467 -533
- package/dist/src/generated/schemas.js +1306 -51
- package/dist/src/generated/site.d.ts +410 -174
- package/dist/src/generated/site.js +609 -328
- package/dist/src/generated/validators.d.ts +3 -1
- package/dist/src/generated/validators.js +22492 -15817
- package/dist/src/validate.d.ts +3 -1
- package/dist/src/validate.js +6 -0
- package/package.json +1 -1
- package/schemas/content-entry.schema.json +1 -1
- package/schemas/release-manifest.schema.json +571 -0
- package/schemas/release-statement.schema.json +100 -0
- package/schemas/site.schema.json +352 -1
|
@@ -1165,6 +1165,130 @@ export const SiteSchema = {
|
|
|
1165
1165
|
"description": "The value is a list of option values. Absent: false."
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
"title": "ReferenceField",
|
|
1171
|
+
"type": "object",
|
|
1172
|
+
"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.",
|
|
1173
|
+
"additionalProperties": false,
|
|
1174
|
+
"required": [
|
|
1175
|
+
"key",
|
|
1176
|
+
"type",
|
|
1177
|
+
"labels",
|
|
1178
|
+
"localized",
|
|
1179
|
+
"collections"
|
|
1180
|
+
],
|
|
1181
|
+
"properties": {
|
|
1182
|
+
"key": {
|
|
1183
|
+
"$ref": "#/$defs/FieldKey"
|
|
1184
|
+
},
|
|
1185
|
+
"type": {
|
|
1186
|
+
"type": "string",
|
|
1187
|
+
"enum": [
|
|
1188
|
+
"reference"
|
|
1189
|
+
]
|
|
1190
|
+
},
|
|
1191
|
+
"labels": {
|
|
1192
|
+
"$ref": "#/$defs/FieldLabels"
|
|
1193
|
+
},
|
|
1194
|
+
"localized": {
|
|
1195
|
+
"type": "boolean",
|
|
1196
|
+
"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."
|
|
1197
|
+
},
|
|
1198
|
+
"requiredToPublish": {
|
|
1199
|
+
"type": "boolean",
|
|
1200
|
+
"description": "An entry in review or published needs at least one target. Absent: false."
|
|
1201
|
+
},
|
|
1202
|
+
"migration": {
|
|
1203
|
+
"$ref": "#/$defs/FieldMigration"
|
|
1204
|
+
},
|
|
1205
|
+
"collections": {
|
|
1206
|
+
"type": "array",
|
|
1207
|
+
"description": "The collections a target may belong to: declared collections of this site (checked in code).",
|
|
1208
|
+
"minItems": 1,
|
|
1209
|
+
"maxItems": 5,
|
|
1210
|
+
"uniqueItems": true,
|
|
1211
|
+
"items": {
|
|
1212
|
+
"$ref": "#/$defs/Slug"
|
|
1213
|
+
}
|
|
1214
|
+
},
|
|
1215
|
+
"multiple": {
|
|
1216
|
+
"type": "boolean",
|
|
1217
|
+
"description": "The value is an ordered list of targets. Absent: false."
|
|
1218
|
+
},
|
|
1219
|
+
"maxItems": {
|
|
1220
|
+
"type": "integer",
|
|
1221
|
+
"description": "With multiple: at most this many targets. Absent: 20.",
|
|
1222
|
+
"minimum": 1,
|
|
1223
|
+
"maximum": 50
|
|
1224
|
+
},
|
|
1225
|
+
"where": {
|
|
1226
|
+
"type": "array",
|
|
1227
|
+
"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.",
|
|
1228
|
+
"minItems": 1,
|
|
1229
|
+
"maxItems": 4,
|
|
1230
|
+
"items": {
|
|
1231
|
+
"$ref": "#/$defs/FieldCondition"
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
"title": "RepeaterField",
|
|
1238
|
+
"type": "object",
|
|
1239
|
+
"description": "RFC-0045: an ordered list of items, each a flat object of sub-fields. A repeater cannot contain a repeater.",
|
|
1240
|
+
"additionalProperties": false,
|
|
1241
|
+
"required": [
|
|
1242
|
+
"key",
|
|
1243
|
+
"type",
|
|
1244
|
+
"labels",
|
|
1245
|
+
"localized",
|
|
1246
|
+
"fields"
|
|
1247
|
+
],
|
|
1248
|
+
"properties": {
|
|
1249
|
+
"key": {
|
|
1250
|
+
"$ref": "#/$defs/FieldKey"
|
|
1251
|
+
},
|
|
1252
|
+
"type": {
|
|
1253
|
+
"type": "string",
|
|
1254
|
+
"enum": [
|
|
1255
|
+
"repeater"
|
|
1256
|
+
]
|
|
1257
|
+
},
|
|
1258
|
+
"labels": {
|
|
1259
|
+
"$ref": "#/$defs/FieldLabels"
|
|
1260
|
+
},
|
|
1261
|
+
"localized": {
|
|
1262
|
+
"type": "boolean",
|
|
1263
|
+
"description": "true: each language version has its own list (missing reads the original's); false: only the original holds the list."
|
|
1264
|
+
},
|
|
1265
|
+
"requiredToPublish": {
|
|
1266
|
+
"type": "boolean",
|
|
1267
|
+
"description": "An entry in review or published needs at least one item. Absent: false."
|
|
1268
|
+
},
|
|
1269
|
+
"migration": {
|
|
1270
|
+
"$ref": "#/$defs/FieldMigration"
|
|
1271
|
+
},
|
|
1272
|
+
"fields": {
|
|
1273
|
+
"type": "array",
|
|
1274
|
+
"description": "The sub-fields of every item, in form order. Unique keys (checked in code).",
|
|
1275
|
+
"minItems": 1,
|
|
1276
|
+
"maxItems": 10,
|
|
1277
|
+
"items": {
|
|
1278
|
+
"$ref": "#/$defs/SubFieldDefinition"
|
|
1279
|
+
}
|
|
1280
|
+
},
|
|
1281
|
+
"maxItems": {
|
|
1282
|
+
"type": "integer",
|
|
1283
|
+
"description": "At most this many items. Absent: 20.",
|
|
1284
|
+
"minimum": 1,
|
|
1285
|
+
"maximum": 50
|
|
1286
|
+
},
|
|
1287
|
+
"itemLabel": {
|
|
1288
|
+
"$ref": "#/$defs/FieldKey",
|
|
1289
|
+
"description": "The text, select or reference sub-field that names an item in Studio and approval prompts. Absent: the first such sub-field."
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1168
1292
|
}
|
|
1169
1293
|
]
|
|
1170
1294
|
},
|
|
@@ -1228,11 +1352,17 @@ export const SiteSchema = {
|
|
|
1228
1352
|
"datetime",
|
|
1229
1353
|
"url",
|
|
1230
1354
|
"image",
|
|
1231
|
-
"select"
|
|
1355
|
+
"select",
|
|
1356
|
+
"reference",
|
|
1357
|
+
"repeater"
|
|
1232
1358
|
]
|
|
1233
1359
|
},
|
|
1234
1360
|
"fromLocalized": {
|
|
1235
1361
|
"type": "boolean"
|
|
1362
|
+
},
|
|
1363
|
+
"sub": {
|
|
1364
|
+
"$ref": "#/$defs/FieldKey",
|
|
1365
|
+
"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."
|
|
1236
1366
|
}
|
|
1237
1367
|
}
|
|
1238
1368
|
},
|
|
@@ -1905,63 +2035,356 @@ export const SiteSchema = {
|
|
|
1905
2035
|
}
|
|
1906
2036
|
]
|
|
1907
2037
|
},
|
|
1908
|
-
"
|
|
1909
|
-
"
|
|
1910
|
-
"
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
2038
|
+
"SubFieldDefinition": {
|
|
2039
|
+
"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.",
|
|
2040
|
+
"oneOf": [
|
|
2041
|
+
{
|
|
2042
|
+
"title": "TextSubField",
|
|
2043
|
+
"type": "object",
|
|
2044
|
+
"additionalProperties": false,
|
|
2045
|
+
"required": [
|
|
2046
|
+
"key",
|
|
2047
|
+
"type",
|
|
2048
|
+
"labels"
|
|
2049
|
+
],
|
|
2050
|
+
"properties": {
|
|
2051
|
+
"key": {
|
|
2052
|
+
"$ref": "#/$defs/FieldKey"
|
|
2053
|
+
},
|
|
2054
|
+
"type": {
|
|
2055
|
+
"type": "string",
|
|
2056
|
+
"enum": [
|
|
2057
|
+
"text"
|
|
2058
|
+
]
|
|
2059
|
+
},
|
|
2060
|
+
"labels": {
|
|
2061
|
+
"$ref": "#/$defs/FieldLabels"
|
|
2062
|
+
},
|
|
2063
|
+
"requiredToPublish": {
|
|
2064
|
+
"type": "boolean",
|
|
2065
|
+
"description": "Every item of an entry in review or published needs a value. Absent: false."
|
|
2066
|
+
},
|
|
2067
|
+
"maxLength": {
|
|
2068
|
+
"type": "integer",
|
|
2069
|
+
"description": "Absent: 5000.",
|
|
2070
|
+
"minimum": 1,
|
|
2071
|
+
"maximum": 5000
|
|
2072
|
+
},
|
|
2073
|
+
"multiline": {
|
|
2074
|
+
"type": "boolean",
|
|
2075
|
+
"description": "Line breaks allowed. Absent: false."
|
|
2076
|
+
}
|
|
1929
2077
|
}
|
|
1930
2078
|
},
|
|
1931
|
-
|
|
2079
|
+
{
|
|
2080
|
+
"title": "RichTextSubField",
|
|
1932
2081
|
"type": "object",
|
|
1933
|
-
"
|
|
1934
|
-
"
|
|
2082
|
+
"additionalProperties": false,
|
|
2083
|
+
"required": [
|
|
2084
|
+
"key",
|
|
2085
|
+
"type",
|
|
2086
|
+
"labels"
|
|
2087
|
+
],
|
|
2088
|
+
"properties": {
|
|
2089
|
+
"key": {
|
|
2090
|
+
"$ref": "#/$defs/FieldKey"
|
|
2091
|
+
},
|
|
2092
|
+
"type": {
|
|
2093
|
+
"type": "string",
|
|
2094
|
+
"enum": [
|
|
2095
|
+
"richText"
|
|
2096
|
+
]
|
|
2097
|
+
},
|
|
2098
|
+
"labels": {
|
|
2099
|
+
"$ref": "#/$defs/FieldLabels"
|
|
2100
|
+
},
|
|
2101
|
+
"requiredToPublish": {
|
|
2102
|
+
"type": "boolean",
|
|
2103
|
+
"description": "Every item of an entry in review or published needs a value. Absent: false."
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
1935
2106
|
},
|
|
1936
|
-
|
|
2107
|
+
{
|
|
2108
|
+
"title": "NumberSubField",
|
|
1937
2109
|
"type": "object",
|
|
1938
|
-
"
|
|
1939
|
-
"
|
|
2110
|
+
"additionalProperties": false,
|
|
2111
|
+
"required": [
|
|
2112
|
+
"key",
|
|
2113
|
+
"type",
|
|
2114
|
+
"labels"
|
|
2115
|
+
],
|
|
2116
|
+
"properties": {
|
|
2117
|
+
"key": {
|
|
2118
|
+
"$ref": "#/$defs/FieldKey"
|
|
2119
|
+
},
|
|
2120
|
+
"type": {
|
|
2121
|
+
"type": "string",
|
|
2122
|
+
"enum": [
|
|
2123
|
+
"number"
|
|
2124
|
+
]
|
|
2125
|
+
},
|
|
2126
|
+
"labels": {
|
|
2127
|
+
"$ref": "#/$defs/FieldLabels"
|
|
2128
|
+
},
|
|
2129
|
+
"requiredToPublish": {
|
|
2130
|
+
"type": "boolean",
|
|
2131
|
+
"description": "Every item of an entry in review or published needs a value. Absent: false."
|
|
2132
|
+
},
|
|
2133
|
+
"integer": {
|
|
2134
|
+
"type": "boolean",
|
|
2135
|
+
"description": "Whole numbers only. Absent: false."
|
|
2136
|
+
},
|
|
2137
|
+
"minimum": {
|
|
2138
|
+
"type": "number"
|
|
2139
|
+
},
|
|
2140
|
+
"maximum": {
|
|
2141
|
+
"type": "number"
|
|
2142
|
+
}
|
|
2143
|
+
}
|
|
1940
2144
|
},
|
|
1941
|
-
|
|
2145
|
+
{
|
|
2146
|
+
"title": "BooleanSubField",
|
|
1942
2147
|
"type": "object",
|
|
1943
|
-
"
|
|
1944
|
-
"
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
2148
|
+
"additionalProperties": false,
|
|
2149
|
+
"required": [
|
|
2150
|
+
"key",
|
|
2151
|
+
"type",
|
|
2152
|
+
"labels"
|
|
2153
|
+
],
|
|
2154
|
+
"properties": {
|
|
2155
|
+
"key": {
|
|
2156
|
+
"$ref": "#/$defs/FieldKey"
|
|
2157
|
+
},
|
|
2158
|
+
"type": {
|
|
2159
|
+
"type": "string",
|
|
2160
|
+
"enum": [
|
|
2161
|
+
"boolean"
|
|
2162
|
+
]
|
|
2163
|
+
},
|
|
2164
|
+
"labels": {
|
|
2165
|
+
"$ref": "#/$defs/FieldLabels"
|
|
2166
|
+
}
|
|
2167
|
+
}
|
|
1963
2168
|
},
|
|
1964
|
-
|
|
2169
|
+
{
|
|
2170
|
+
"title": "DateSubField",
|
|
2171
|
+
"type": "object",
|
|
2172
|
+
"additionalProperties": false,
|
|
2173
|
+
"required": [
|
|
2174
|
+
"key",
|
|
2175
|
+
"type",
|
|
2176
|
+
"labels"
|
|
2177
|
+
],
|
|
2178
|
+
"properties": {
|
|
2179
|
+
"key": {
|
|
2180
|
+
"$ref": "#/$defs/FieldKey"
|
|
2181
|
+
},
|
|
2182
|
+
"type": {
|
|
2183
|
+
"type": "string",
|
|
2184
|
+
"enum": [
|
|
2185
|
+
"date"
|
|
2186
|
+
]
|
|
2187
|
+
},
|
|
2188
|
+
"labels": {
|
|
2189
|
+
"$ref": "#/$defs/FieldLabels"
|
|
2190
|
+
},
|
|
2191
|
+
"requiredToPublish": {
|
|
2192
|
+
"type": "boolean",
|
|
2193
|
+
"description": "Every item of an entry in review or published needs a value. Absent: false."
|
|
2194
|
+
}
|
|
2195
|
+
}
|
|
2196
|
+
},
|
|
2197
|
+
{
|
|
2198
|
+
"title": "UrlSubField",
|
|
2199
|
+
"type": "object",
|
|
2200
|
+
"additionalProperties": false,
|
|
2201
|
+
"required": [
|
|
2202
|
+
"key",
|
|
2203
|
+
"type",
|
|
2204
|
+
"labels"
|
|
2205
|
+
],
|
|
2206
|
+
"properties": {
|
|
2207
|
+
"key": {
|
|
2208
|
+
"$ref": "#/$defs/FieldKey"
|
|
2209
|
+
},
|
|
2210
|
+
"type": {
|
|
2211
|
+
"type": "string",
|
|
2212
|
+
"enum": [
|
|
2213
|
+
"url"
|
|
2214
|
+
]
|
|
2215
|
+
},
|
|
2216
|
+
"labels": {
|
|
2217
|
+
"$ref": "#/$defs/FieldLabels"
|
|
2218
|
+
},
|
|
2219
|
+
"requiredToPublish": {
|
|
2220
|
+
"type": "boolean",
|
|
2221
|
+
"description": "Every item of an entry in review or published needs a value. Absent: false."
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
},
|
|
2225
|
+
{
|
|
2226
|
+
"title": "ImageSubField",
|
|
2227
|
+
"type": "object",
|
|
2228
|
+
"additionalProperties": false,
|
|
2229
|
+
"required": [
|
|
2230
|
+
"key",
|
|
2231
|
+
"type",
|
|
2232
|
+
"labels"
|
|
2233
|
+
],
|
|
2234
|
+
"properties": {
|
|
2235
|
+
"key": {
|
|
2236
|
+
"$ref": "#/$defs/FieldKey"
|
|
2237
|
+
},
|
|
2238
|
+
"type": {
|
|
2239
|
+
"type": "string",
|
|
2240
|
+
"enum": [
|
|
2241
|
+
"image"
|
|
2242
|
+
]
|
|
2243
|
+
},
|
|
2244
|
+
"labels": {
|
|
2245
|
+
"$ref": "#/$defs/FieldLabels"
|
|
2246
|
+
},
|
|
2247
|
+
"requiredToPublish": {
|
|
2248
|
+
"type": "boolean",
|
|
2249
|
+
"description": "Every item of an entry in review or published needs a value. Absent: false."
|
|
2250
|
+
}
|
|
2251
|
+
}
|
|
2252
|
+
},
|
|
2253
|
+
{
|
|
2254
|
+
"title": "SelectSubField",
|
|
2255
|
+
"type": "object",
|
|
2256
|
+
"additionalProperties": false,
|
|
2257
|
+
"required": [
|
|
2258
|
+
"key",
|
|
2259
|
+
"type",
|
|
2260
|
+
"labels",
|
|
2261
|
+
"options"
|
|
2262
|
+
],
|
|
2263
|
+
"properties": {
|
|
2264
|
+
"key": {
|
|
2265
|
+
"$ref": "#/$defs/FieldKey"
|
|
2266
|
+
},
|
|
2267
|
+
"type": {
|
|
2268
|
+
"type": "string",
|
|
2269
|
+
"enum": [
|
|
2270
|
+
"select"
|
|
2271
|
+
]
|
|
2272
|
+
},
|
|
2273
|
+
"labels": {
|
|
2274
|
+
"$ref": "#/$defs/FieldLabels"
|
|
2275
|
+
},
|
|
2276
|
+
"requiredToPublish": {
|
|
2277
|
+
"type": "boolean",
|
|
2278
|
+
"description": "Every item of an entry in review or published needs a value. Absent: false."
|
|
2279
|
+
},
|
|
2280
|
+
"options": {
|
|
2281
|
+
"type": "array",
|
|
2282
|
+
"minItems": 1,
|
|
2283
|
+
"maxItems": 50,
|
|
2284
|
+
"items": {
|
|
2285
|
+
"$ref": "#/$defs/FieldOption"
|
|
2286
|
+
}
|
|
2287
|
+
}
|
|
2288
|
+
}
|
|
2289
|
+
},
|
|
2290
|
+
{
|
|
2291
|
+
"title": "ReferenceSubField",
|
|
2292
|
+
"type": "object",
|
|
2293
|
+
"additionalProperties": false,
|
|
2294
|
+
"required": [
|
|
2295
|
+
"key",
|
|
2296
|
+
"type",
|
|
2297
|
+
"labels",
|
|
2298
|
+
"collections"
|
|
2299
|
+
],
|
|
2300
|
+
"properties": {
|
|
2301
|
+
"key": {
|
|
2302
|
+
"$ref": "#/$defs/FieldKey"
|
|
2303
|
+
},
|
|
2304
|
+
"type": {
|
|
2305
|
+
"type": "string",
|
|
2306
|
+
"enum": [
|
|
2307
|
+
"reference"
|
|
2308
|
+
]
|
|
2309
|
+
},
|
|
2310
|
+
"labels": {
|
|
2311
|
+
"$ref": "#/$defs/FieldLabels"
|
|
2312
|
+
},
|
|
2313
|
+
"requiredToPublish": {
|
|
2314
|
+
"type": "boolean",
|
|
2315
|
+
"description": "Every item of an entry in review or published needs a value. Absent: false."
|
|
2316
|
+
},
|
|
2317
|
+
"collections": {
|
|
2318
|
+
"type": "array",
|
|
2319
|
+
"description": "The collections a target may belong to (checked in code).",
|
|
2320
|
+
"minItems": 1,
|
|
2321
|
+
"maxItems": 5,
|
|
2322
|
+
"uniqueItems": true,
|
|
2323
|
+
"items": {
|
|
2324
|
+
"$ref": "#/$defs/Slug"
|
|
2325
|
+
}
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
}
|
|
2329
|
+
]
|
|
2330
|
+
},
|
|
2331
|
+
"SurfaceComponent": {
|
|
2332
|
+
"type": "object",
|
|
2333
|
+
"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.",
|
|
2334
|
+
"additionalProperties": false,
|
|
2335
|
+
"required": [
|
|
2336
|
+
"id",
|
|
2337
|
+
"component"
|
|
2338
|
+
],
|
|
2339
|
+
"properties": {
|
|
2340
|
+
"id": {
|
|
2341
|
+
"$ref": "#/$defs/SurfaceComponentId"
|
|
2342
|
+
},
|
|
2343
|
+
"component": {
|
|
2344
|
+
"type": "string",
|
|
2345
|
+
"pattern": "^(?:[A-Z][A-Za-z0-9]{1,40}|[a-z][a-z0-9-]{1,40})$"
|
|
2346
|
+
},
|
|
2347
|
+
"children": {
|
|
2348
|
+
"type": "array",
|
|
2349
|
+
"maxItems": 200,
|
|
2350
|
+
"items": {
|
|
2351
|
+
"$ref": "#/$defs/SurfaceComponentId"
|
|
2352
|
+
}
|
|
2353
|
+
},
|
|
2354
|
+
"props": {
|
|
2355
|
+
"type": "object",
|
|
2356
|
+
"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.",
|
|
2357
|
+
"additionalProperties": true
|
|
2358
|
+
},
|
|
2359
|
+
"visible": {
|
|
2360
|
+
"type": "object",
|
|
2361
|
+
"description": "A visibility condition over the surface's data (`eq`, `ne`, `gt`, `lt`, `and`, `or`, `not`); validated by the store.",
|
|
2362
|
+
"additionalProperties": true
|
|
2363
|
+
},
|
|
2364
|
+
"motion": {
|
|
2365
|
+
"type": "object",
|
|
2366
|
+
"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.",
|
|
2367
|
+
"additionalProperties": true
|
|
2368
|
+
}
|
|
2369
|
+
}
|
|
2370
|
+
},
|
|
2371
|
+
"SurfaceComponentId": {
|
|
2372
|
+
"type": "string",
|
|
2373
|
+
"description": "A component's id, unique within its surface; `root` is the tree's root (RFC-0020 §1).",
|
|
2374
|
+
"pattern": "^[a-z][a-z0-9-]{0,40}$"
|
|
2375
|
+
},
|
|
2376
|
+
"ThemeRef": {
|
|
2377
|
+
"type": "object",
|
|
2378
|
+
"description": "Theme (a.k.a. Experience) applied by the renderer. Config is theme-defined and validated by the theme's own schema, not here.",
|
|
2379
|
+
"additionalProperties": false,
|
|
2380
|
+
"required": [
|
|
2381
|
+
"name"
|
|
2382
|
+
],
|
|
2383
|
+
"properties": {
|
|
2384
|
+
"name": {
|
|
2385
|
+
"$ref": "#/$defs/Slug"
|
|
2386
|
+
},
|
|
2387
|
+
"version": {
|
|
1965
2388
|
"type": "string",
|
|
1966
2389
|
"maxLength": 64
|
|
1967
2390
|
},
|
|
@@ -3381,7 +3804,7 @@ export const ContentEntrySchema = {
|
|
|
3381
3804
|
},
|
|
3382
3805
|
"fields": {
|
|
3383
3806
|
"type": "object",
|
|
3384
|
-
"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.",
|
|
3807
|
+
"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).",
|
|
3385
3808
|
"additionalProperties": true
|
|
3386
3809
|
},
|
|
3387
3810
|
"tags": {
|
|
@@ -8213,6 +8636,836 @@ export const GlossarySchema = {
|
|
|
8213
8636
|
}
|
|
8214
8637
|
} ;
|
|
8215
8638
|
|
|
8639
|
+
export const ReleaseManifestSchema = {
|
|
8640
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
8641
|
+
"$id": "https://cloudhal.dev/schemas/v1/release-manifest.schema.json",
|
|
8642
|
+
"title": "ReleaseManifest",
|
|
8643
|
+
"description": "cloudhal.release-manifest@1 (RFC-0046): the manifest of one Cloudhal release bundle, published as the release asset manifest.json next to the gzip tarball cloudhal-release-<version>.tar.gz. A project release is signed through release-statement.json, which pins this file's SHA-256 and size (signing.signature = release-statement.sig); the legacy form manifest.sig, a raw 64-byte Ed25519 signature over these exact bytes, is for development keys only. It describes every built Worker module and static asset by size and SHA-256, the binding templates, feature levels, migration range and rollback facts a remote deployer needs to install, update or refuse a version without running a build. Portable on purpose: it references common only for SchemaVersion and Timestamp; every other definition is local.",
|
|
8644
|
+
"type": "object",
|
|
8645
|
+
"additionalProperties": false,
|
|
8646
|
+
"required": [
|
|
8647
|
+
"schemaVersion",
|
|
8648
|
+
"format",
|
|
8649
|
+
"version",
|
|
8650
|
+
"channel",
|
|
8651
|
+
"securityRelease",
|
|
8652
|
+
"commit",
|
|
8653
|
+
"createdAt",
|
|
8654
|
+
"contracts",
|
|
8655
|
+
"levels",
|
|
8656
|
+
"migrations",
|
|
8657
|
+
"durableObjects",
|
|
8658
|
+
"runtime",
|
|
8659
|
+
"toolchain",
|
|
8660
|
+
"theme",
|
|
8661
|
+
"skills",
|
|
8662
|
+
"workers",
|
|
8663
|
+
"bindingTemplates",
|
|
8664
|
+
"requiredScopes",
|
|
8665
|
+
"optionalScopes",
|
|
8666
|
+
"requiredCapabilities",
|
|
8667
|
+
"optionalCapabilities",
|
|
8668
|
+
"starter",
|
|
8669
|
+
"features",
|
|
8670
|
+
"planVersion",
|
|
8671
|
+
"signing"
|
|
8672
|
+
],
|
|
8673
|
+
"properties": {
|
|
8674
|
+
"schemaVersion": {
|
|
8675
|
+
"$ref": "#/$defs/SchemaVersion"
|
|
8676
|
+
},
|
|
8677
|
+
"format": {
|
|
8678
|
+
"type": "string",
|
|
8679
|
+
"enum": [
|
|
8680
|
+
"cloudhal.release-manifest@1"
|
|
8681
|
+
]
|
|
8682
|
+
},
|
|
8683
|
+
"version": {
|
|
8684
|
+
"$ref": "#/$defs/CloudhalVersion"
|
|
8685
|
+
},
|
|
8686
|
+
"channel": {
|
|
8687
|
+
"type": "string",
|
|
8688
|
+
"enum": [
|
|
8689
|
+
"stable",
|
|
8690
|
+
"next"
|
|
8691
|
+
]
|
|
8692
|
+
},
|
|
8693
|
+
"securityRelease": {
|
|
8694
|
+
"type": "boolean"
|
|
8695
|
+
},
|
|
8696
|
+
"commit": {
|
|
8697
|
+
"type": "string",
|
|
8698
|
+
"pattern": "^[0-9a-f]{40}$"
|
|
8699
|
+
},
|
|
8700
|
+
"createdAt": {
|
|
8701
|
+
"$ref": "#/$defs/Timestamp"
|
|
8702
|
+
},
|
|
8703
|
+
"contracts": {
|
|
8704
|
+
"type": "object",
|
|
8705
|
+
"additionalProperties": false,
|
|
8706
|
+
"required": [
|
|
8707
|
+
"schemaVersion"
|
|
8708
|
+
],
|
|
8709
|
+
"properties": {
|
|
8710
|
+
"schemaVersion": {
|
|
8711
|
+
"type": "integer",
|
|
8712
|
+
"enum": [
|
|
8713
|
+
1
|
|
8714
|
+
]
|
|
8715
|
+
}
|
|
8716
|
+
}
|
|
8717
|
+
},
|
|
8718
|
+
"levels": {
|
|
8719
|
+
"type": "object",
|
|
8720
|
+
"additionalProperties": false,
|
|
8721
|
+
"required": [
|
|
8722
|
+
"schedules",
|
|
8723
|
+
"gates"
|
|
8724
|
+
],
|
|
8725
|
+
"properties": {
|
|
8726
|
+
"schedules": {
|
|
8727
|
+
"type": "integer",
|
|
8728
|
+
"minimum": 0
|
|
8729
|
+
},
|
|
8730
|
+
"gates": {
|
|
8731
|
+
"type": "integer",
|
|
8732
|
+
"minimum": 0
|
|
8733
|
+
}
|
|
8734
|
+
}
|
|
8735
|
+
},
|
|
8736
|
+
"migrations": {
|
|
8737
|
+
"type": "object",
|
|
8738
|
+
"additionalProperties": false,
|
|
8739
|
+
"required": [
|
|
8740
|
+
"first",
|
|
8741
|
+
"last",
|
|
8742
|
+
"count",
|
|
8743
|
+
"names",
|
|
8744
|
+
"compatibleWithPrevious"
|
|
8745
|
+
],
|
|
8746
|
+
"properties": {
|
|
8747
|
+
"first": {
|
|
8748
|
+
"$ref": "#/$defs/MigrationName"
|
|
8749
|
+
},
|
|
8750
|
+
"last": {
|
|
8751
|
+
"$ref": "#/$defs/MigrationName"
|
|
8752
|
+
},
|
|
8753
|
+
"count": {
|
|
8754
|
+
"type": "integer",
|
|
8755
|
+
"minimum": 1
|
|
8756
|
+
},
|
|
8757
|
+
"names": {
|
|
8758
|
+
"type": "array",
|
|
8759
|
+
"minItems": 1,
|
|
8760
|
+
"uniqueItems": true,
|
|
8761
|
+
"items": {
|
|
8762
|
+
"$ref": "#/$defs/MigrationName"
|
|
8763
|
+
}
|
|
8764
|
+
},
|
|
8765
|
+
"compatibleWithPrevious": {
|
|
8766
|
+
"type": "boolean"
|
|
8767
|
+
}
|
|
8768
|
+
}
|
|
8769
|
+
},
|
|
8770
|
+
"durableObjects": {
|
|
8771
|
+
"type": "object",
|
|
8772
|
+
"additionalProperties": false,
|
|
8773
|
+
"required": [
|
|
8774
|
+
"bindings",
|
|
8775
|
+
"lifecycleChange"
|
|
8776
|
+
],
|
|
8777
|
+
"properties": {
|
|
8778
|
+
"bindings": {
|
|
8779
|
+
"type": "array",
|
|
8780
|
+
"items": {
|
|
8781
|
+
"type": "object",
|
|
8782
|
+
"additionalProperties": false,
|
|
8783
|
+
"required": [
|
|
8784
|
+
"name",
|
|
8785
|
+
"className",
|
|
8786
|
+
"migration"
|
|
8787
|
+
],
|
|
8788
|
+
"properties": {
|
|
8789
|
+
"name": {
|
|
8790
|
+
"$ref": "#/$defs/BindingName"
|
|
8791
|
+
},
|
|
8792
|
+
"className": {
|
|
8793
|
+
"type": "string",
|
|
8794
|
+
"pattern": "^[A-Z][A-Za-z0-9]*$"
|
|
8795
|
+
},
|
|
8796
|
+
"migration": {
|
|
8797
|
+
"type": "string",
|
|
8798
|
+
"pattern": "^v[1-9][0-9]*$"
|
|
8799
|
+
}
|
|
8800
|
+
}
|
|
8801
|
+
}
|
|
8802
|
+
},
|
|
8803
|
+
"lifecycleChange": {
|
|
8804
|
+
"type": "boolean"
|
|
8805
|
+
}
|
|
8806
|
+
}
|
|
8807
|
+
},
|
|
8808
|
+
"runtime": {
|
|
8809
|
+
"type": "object",
|
|
8810
|
+
"additionalProperties": false,
|
|
8811
|
+
"required": [
|
|
8812
|
+
"compatibilityDate",
|
|
8813
|
+
"compatibilityFlags"
|
|
8814
|
+
],
|
|
8815
|
+
"properties": {
|
|
8816
|
+
"compatibilityDate": {
|
|
8817
|
+
"type": "string",
|
|
8818
|
+
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
|
|
8819
|
+
},
|
|
8820
|
+
"compatibilityFlags": {
|
|
8821
|
+
"type": "array",
|
|
8822
|
+
"uniqueItems": true,
|
|
8823
|
+
"items": {
|
|
8824
|
+
"type": "string",
|
|
8825
|
+
"pattern": "^[a-z0-9_]+$"
|
|
8826
|
+
}
|
|
8827
|
+
}
|
|
8828
|
+
}
|
|
8829
|
+
},
|
|
8830
|
+
"toolchain": {
|
|
8831
|
+
"type": "object",
|
|
8832
|
+
"additionalProperties": {
|
|
8833
|
+
"type": "string",
|
|
8834
|
+
"maxLength": 64
|
|
8835
|
+
}
|
|
8836
|
+
},
|
|
8837
|
+
"theme": {
|
|
8838
|
+
"type": "object",
|
|
8839
|
+
"additionalProperties": false,
|
|
8840
|
+
"required": [
|
|
8841
|
+
"name",
|
|
8842
|
+
"version",
|
|
8843
|
+
"blockTypes",
|
|
8844
|
+
"settingsSha256",
|
|
8845
|
+
"designSha256"
|
|
8846
|
+
],
|
|
8847
|
+
"properties": {
|
|
8848
|
+
"name": {
|
|
8849
|
+
"type": "string",
|
|
8850
|
+
"pattern": "^[a-z][a-z0-9-]{0,63}$"
|
|
8851
|
+
},
|
|
8852
|
+
"version": {
|
|
8853
|
+
"type": "string",
|
|
8854
|
+
"maxLength": 64
|
|
8855
|
+
},
|
|
8856
|
+
"blockTypes": {
|
|
8857
|
+
"type": "array",
|
|
8858
|
+
"uniqueItems": true,
|
|
8859
|
+
"items": {
|
|
8860
|
+
"type": "string"
|
|
8861
|
+
}
|
|
8862
|
+
},
|
|
8863
|
+
"settingsSha256": {
|
|
8864
|
+
"$ref": "#/$defs/Sha256Hex"
|
|
8865
|
+
},
|
|
8866
|
+
"designSha256": {
|
|
8867
|
+
"$ref": "#/$defs/Sha256Hex"
|
|
8868
|
+
}
|
|
8869
|
+
}
|
|
8870
|
+
},
|
|
8871
|
+
"skills": {
|
|
8872
|
+
"type": "array",
|
|
8873
|
+
"items": {
|
|
8874
|
+
"type": "object",
|
|
8875
|
+
"additionalProperties": false,
|
|
8876
|
+
"required": [
|
|
8877
|
+
"name",
|
|
8878
|
+
"sha256"
|
|
8879
|
+
],
|
|
8880
|
+
"properties": {
|
|
8881
|
+
"name": {
|
|
8882
|
+
"type": "string",
|
|
8883
|
+
"pattern": "^[a-z][a-z0-9-]{0,63}$"
|
|
8884
|
+
},
|
|
8885
|
+
"sha256": {
|
|
8886
|
+
"$ref": "#/$defs/Sha256Hex"
|
|
8887
|
+
}
|
|
8888
|
+
}
|
|
8889
|
+
}
|
|
8890
|
+
},
|
|
8891
|
+
"workers": {
|
|
8892
|
+
"type": "object",
|
|
8893
|
+
"additionalProperties": false,
|
|
8894
|
+
"required": [
|
|
8895
|
+
"site",
|
|
8896
|
+
"admin"
|
|
8897
|
+
],
|
|
8898
|
+
"properties": {
|
|
8899
|
+
"site": {
|
|
8900
|
+
"$ref": "#/$defs/WorkerArtifact"
|
|
8901
|
+
},
|
|
8902
|
+
"admin": {
|
|
8903
|
+
"$ref": "#/$defs/WorkerArtifact"
|
|
8904
|
+
}
|
|
8905
|
+
}
|
|
8906
|
+
},
|
|
8907
|
+
"bindingTemplates": {
|
|
8908
|
+
"type": "object",
|
|
8909
|
+
"additionalProperties": false,
|
|
8910
|
+
"required": [
|
|
8911
|
+
"site",
|
|
8912
|
+
"admin"
|
|
8913
|
+
],
|
|
8914
|
+
"properties": {
|
|
8915
|
+
"site": {
|
|
8916
|
+
"$ref": "#/$defs/BindingTemplate"
|
|
8917
|
+
},
|
|
8918
|
+
"admin": {
|
|
8919
|
+
"$ref": "#/$defs/BindingTemplate"
|
|
8920
|
+
}
|
|
8921
|
+
}
|
|
8922
|
+
},
|
|
8923
|
+
"requiredScopes": {
|
|
8924
|
+
"type": "array",
|
|
8925
|
+
"uniqueItems": true,
|
|
8926
|
+
"items": {
|
|
8927
|
+
"$ref": "#/$defs/ScopeId"
|
|
8928
|
+
}
|
|
8929
|
+
},
|
|
8930
|
+
"optionalScopes": {
|
|
8931
|
+
"type": "array",
|
|
8932
|
+
"uniqueItems": true,
|
|
8933
|
+
"items": {
|
|
8934
|
+
"$ref": "#/$defs/ScopeId"
|
|
8935
|
+
}
|
|
8936
|
+
},
|
|
8937
|
+
"requiredCapabilities": {
|
|
8938
|
+
"type": "array",
|
|
8939
|
+
"uniqueItems": true,
|
|
8940
|
+
"items": {
|
|
8941
|
+
"$ref": "#/$defs/Capability"
|
|
8942
|
+
}
|
|
8943
|
+
},
|
|
8944
|
+
"optionalCapabilities": {
|
|
8945
|
+
"type": "array",
|
|
8946
|
+
"uniqueItems": true,
|
|
8947
|
+
"items": {
|
|
8948
|
+
"$ref": "#/$defs/Capability"
|
|
8949
|
+
}
|
|
8950
|
+
},
|
|
8951
|
+
"starter": {
|
|
8952
|
+
"oneOf": [
|
|
8953
|
+
{
|
|
8954
|
+
"type": "object",
|
|
8955
|
+
"additionalProperties": false,
|
|
8956
|
+
"required": [
|
|
8957
|
+
"kind"
|
|
8958
|
+
],
|
|
8959
|
+
"properties": {
|
|
8960
|
+
"kind": {
|
|
8961
|
+
"type": "string",
|
|
8962
|
+
"enum": [
|
|
8963
|
+
"admin-api"
|
|
8964
|
+
]
|
|
8965
|
+
}
|
|
8966
|
+
}
|
|
8967
|
+
},
|
|
8968
|
+
{
|
|
8969
|
+
"type": "object",
|
|
8970
|
+
"additionalProperties": false,
|
|
8971
|
+
"required": [
|
|
8972
|
+
"kind",
|
|
8973
|
+
"path",
|
|
8974
|
+
"bytes",
|
|
8975
|
+
"sha256",
|
|
8976
|
+
"siteId"
|
|
8977
|
+
],
|
|
8978
|
+
"properties": {
|
|
8979
|
+
"kind": {
|
|
8980
|
+
"type": "string",
|
|
8981
|
+
"enum": [
|
|
8982
|
+
"bundle"
|
|
8983
|
+
]
|
|
8984
|
+
},
|
|
8985
|
+
"path": {
|
|
8986
|
+
"type": "string",
|
|
8987
|
+
"pattern": "^starter/[A-Za-z0-9._-]+$"
|
|
8988
|
+
},
|
|
8989
|
+
"bytes": {
|
|
8990
|
+
"type": "integer",
|
|
8991
|
+
"minimum": 1
|
|
8992
|
+
},
|
|
8993
|
+
"sha256": {
|
|
8994
|
+
"$ref": "#/$defs/Sha256Hex"
|
|
8995
|
+
},
|
|
8996
|
+
"siteId": {
|
|
8997
|
+
"$ref": "#/$defs/SiteId"
|
|
8998
|
+
}
|
|
8999
|
+
}
|
|
9000
|
+
}
|
|
9001
|
+
]
|
|
9002
|
+
},
|
|
9003
|
+
"features": {
|
|
9004
|
+
"type": "object",
|
|
9005
|
+
"additionalProperties": {
|
|
9006
|
+
"type": "boolean"
|
|
9007
|
+
},
|
|
9008
|
+
"required": [
|
|
9009
|
+
"adminSitesAcceptsSiteId",
|
|
9010
|
+
"healthReportsVersion",
|
|
9011
|
+
"mediaTransformVar"
|
|
9012
|
+
],
|
|
9013
|
+
"properties": {
|
|
9014
|
+
"adminSitesAcceptsSiteId": {
|
|
9015
|
+
"type": "boolean"
|
|
9016
|
+
},
|
|
9017
|
+
"healthReportsVersion": {
|
|
9018
|
+
"type": "boolean"
|
|
9019
|
+
},
|
|
9020
|
+
"mediaTransformVar": {
|
|
9021
|
+
"type": "boolean"
|
|
9022
|
+
}
|
|
9023
|
+
}
|
|
9024
|
+
},
|
|
9025
|
+
"planVersion": {
|
|
9026
|
+
"type": "integer",
|
|
9027
|
+
"minimum": 1
|
|
9028
|
+
},
|
|
9029
|
+
"signing": {
|
|
9030
|
+
"type": "object",
|
|
9031
|
+
"additionalProperties": false,
|
|
9032
|
+
"required": [
|
|
9033
|
+
"keyId",
|
|
9034
|
+
"algorithm",
|
|
9035
|
+
"signature"
|
|
9036
|
+
],
|
|
9037
|
+
"properties": {
|
|
9038
|
+
"keyId": {
|
|
9039
|
+
"type": "string",
|
|
9040
|
+
"pattern": "^[a-z0-9][a-z0-9-]{2,63}$"
|
|
9041
|
+
},
|
|
9042
|
+
"algorithm": {
|
|
9043
|
+
"type": "string",
|
|
9044
|
+
"enum": [
|
|
9045
|
+
"Ed25519"
|
|
9046
|
+
]
|
|
9047
|
+
},
|
|
9048
|
+
"signature": {
|
|
9049
|
+
"type": "string",
|
|
9050
|
+
"enum": [
|
|
9051
|
+
"manifest.sig",
|
|
9052
|
+
"release-statement.sig"
|
|
9053
|
+
]
|
|
9054
|
+
}
|
|
9055
|
+
}
|
|
9056
|
+
}
|
|
9057
|
+
},
|
|
9058
|
+
"$defs": {
|
|
9059
|
+
"BindingName": {
|
|
9060
|
+
"type": "string",
|
|
9061
|
+
"pattern": "^[A-Z][A-Z0-9_]*(_\\*)?$"
|
|
9062
|
+
},
|
|
9063
|
+
"BindingTemplate": {
|
|
9064
|
+
"type": "object",
|
|
9065
|
+
"additionalProperties": false,
|
|
9066
|
+
"required": [
|
|
9067
|
+
"bindings",
|
|
9068
|
+
"vars",
|
|
9069
|
+
"secrets"
|
|
9070
|
+
],
|
|
9071
|
+
"properties": {
|
|
9072
|
+
"bindings": {
|
|
9073
|
+
"type": "array",
|
|
9074
|
+
"items": {
|
|
9075
|
+
"type": "object",
|
|
9076
|
+
"additionalProperties": false,
|
|
9077
|
+
"required": [
|
|
9078
|
+
"name",
|
|
9079
|
+
"type",
|
|
9080
|
+
"required"
|
|
9081
|
+
],
|
|
9082
|
+
"properties": {
|
|
9083
|
+
"name": {
|
|
9084
|
+
"$ref": "#/$defs/BindingName"
|
|
9085
|
+
},
|
|
9086
|
+
"type": {
|
|
9087
|
+
"type": "string",
|
|
9088
|
+
"enum": [
|
|
9089
|
+
"d1",
|
|
9090
|
+
"r2_bucket",
|
|
9091
|
+
"assets",
|
|
9092
|
+
"service",
|
|
9093
|
+
"durable_object_namespace",
|
|
9094
|
+
"analytics_engine",
|
|
9095
|
+
"analytics_sql",
|
|
9096
|
+
"ratelimit",
|
|
9097
|
+
"ai_search",
|
|
9098
|
+
"send_email",
|
|
9099
|
+
"ai",
|
|
9100
|
+
"browser"
|
|
9101
|
+
]
|
|
9102
|
+
},
|
|
9103
|
+
"required": {
|
|
9104
|
+
"type": "boolean"
|
|
9105
|
+
},
|
|
9106
|
+
"aliases": {
|
|
9107
|
+
"type": "array",
|
|
9108
|
+
"items": {
|
|
9109
|
+
"$ref": "#/$defs/BindingName"
|
|
9110
|
+
}
|
|
9111
|
+
}
|
|
9112
|
+
}
|
|
9113
|
+
}
|
|
9114
|
+
},
|
|
9115
|
+
"vars": {
|
|
9116
|
+
"type": "array",
|
|
9117
|
+
"uniqueItems": true,
|
|
9118
|
+
"items": {
|
|
9119
|
+
"$ref": "#/$defs/BindingName"
|
|
9120
|
+
}
|
|
9121
|
+
},
|
|
9122
|
+
"secrets": {
|
|
9123
|
+
"type": "array",
|
|
9124
|
+
"uniqueItems": true,
|
|
9125
|
+
"items": {
|
|
9126
|
+
"$ref": "#/$defs/SecretName"
|
|
9127
|
+
}
|
|
9128
|
+
},
|
|
9129
|
+
"cache": {
|
|
9130
|
+
"type": "boolean"
|
|
9131
|
+
},
|
|
9132
|
+
"cron": {
|
|
9133
|
+
"type": "string",
|
|
9134
|
+
"pattern": "^[0-9*/,\\- ]+$"
|
|
9135
|
+
}
|
|
9136
|
+
}
|
|
9137
|
+
},
|
|
9138
|
+
"Capability": {
|
|
9139
|
+
"type": "string",
|
|
9140
|
+
"enum": [
|
|
9141
|
+
"account",
|
|
9142
|
+
"workers",
|
|
9143
|
+
"d1",
|
|
9144
|
+
"r2",
|
|
9145
|
+
"analytics",
|
|
9146
|
+
"domains"
|
|
9147
|
+
]
|
|
9148
|
+
},
|
|
9149
|
+
"CloudhalVersion": {
|
|
9150
|
+
"type": "string",
|
|
9151
|
+
"pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$"
|
|
9152
|
+
},
|
|
9153
|
+
"MigrationName": {
|
|
9154
|
+
"type": "string",
|
|
9155
|
+
"pattern": "^[0-9]{4}_[a-z0-9_]+$"
|
|
9156
|
+
},
|
|
9157
|
+
"SchemaVersion": {
|
|
9158
|
+
"type": "integer",
|
|
9159
|
+
"description": "Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.",
|
|
9160
|
+
"enum": [
|
|
9161
|
+
1
|
|
9162
|
+
]
|
|
9163
|
+
},
|
|
9164
|
+
"ScopeId": {
|
|
9165
|
+
"type": "string",
|
|
9166
|
+
"pattern": "^[a-z0-9-]+(\\.[a-z0-9-]+)+$"
|
|
9167
|
+
},
|
|
9168
|
+
"SecretName": {
|
|
9169
|
+
"type": "string",
|
|
9170
|
+
"enum": [
|
|
9171
|
+
"BETTER_AUTH_SECRET",
|
|
9172
|
+
"MCP_STATE_KEY",
|
|
9173
|
+
"CLOUDHAL_PREVIEW_SECRET",
|
|
9174
|
+
"CLOUDHAL_PURGE_TOKEN",
|
|
9175
|
+
"CLOUDHAL_DEPLOY_TOKEN",
|
|
9176
|
+
"CLOUDHAL_SETUP_TOKEN",
|
|
9177
|
+
"CLOUDHAL_COMMENTS_KEY"
|
|
9178
|
+
]
|
|
9179
|
+
},
|
|
9180
|
+
"Sha256Hex": {
|
|
9181
|
+
"type": "string",
|
|
9182
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
9183
|
+
},
|
|
9184
|
+
"SiteId": {
|
|
9185
|
+
"type": "string",
|
|
9186
|
+
"pattern": "^site_[A-Za-z0-9]{6,32}$"
|
|
9187
|
+
},
|
|
9188
|
+
"Timestamp": {
|
|
9189
|
+
"type": "string",
|
|
9190
|
+
"description": "RFC 3339 / ISO 8601 instant in UTC.",
|
|
9191
|
+
"format": "date-time"
|
|
9192
|
+
},
|
|
9193
|
+
"WorkerArtifact": {
|
|
9194
|
+
"type": "object",
|
|
9195
|
+
"additionalProperties": false,
|
|
9196
|
+
"required": [
|
|
9197
|
+
"mainModule",
|
|
9198
|
+
"modules",
|
|
9199
|
+
"assets"
|
|
9200
|
+
],
|
|
9201
|
+
"properties": {
|
|
9202
|
+
"mainModule": {
|
|
9203
|
+
"type": "string",
|
|
9204
|
+
"pattern": "^[A-Za-z0-9._/-]+$"
|
|
9205
|
+
},
|
|
9206
|
+
"modules": {
|
|
9207
|
+
"type": "array",
|
|
9208
|
+
"minItems": 1,
|
|
9209
|
+
"items": {
|
|
9210
|
+
"type": "object",
|
|
9211
|
+
"additionalProperties": false,
|
|
9212
|
+
"required": [
|
|
9213
|
+
"path",
|
|
9214
|
+
"type",
|
|
9215
|
+
"bytes",
|
|
9216
|
+
"sha256"
|
|
9217
|
+
],
|
|
9218
|
+
"properties": {
|
|
9219
|
+
"path": {
|
|
9220
|
+
"type": "string",
|
|
9221
|
+
"pattern": "^[A-Za-z0-9._-]+(/[A-Za-z0-9._-]+)*$"
|
|
9222
|
+
},
|
|
9223
|
+
"type": {
|
|
9224
|
+
"type": "string",
|
|
9225
|
+
"enum": [
|
|
9226
|
+
"esm",
|
|
9227
|
+
"cjs",
|
|
9228
|
+
"wasm",
|
|
9229
|
+
"text",
|
|
9230
|
+
"data"
|
|
9231
|
+
]
|
|
9232
|
+
},
|
|
9233
|
+
"bytes": {
|
|
9234
|
+
"type": "integer",
|
|
9235
|
+
"minimum": 1
|
|
9236
|
+
},
|
|
9237
|
+
"sha256": {
|
|
9238
|
+
"$ref": "#/$defs/Sha256Hex"
|
|
9239
|
+
}
|
|
9240
|
+
}
|
|
9241
|
+
}
|
|
9242
|
+
},
|
|
9243
|
+
"assets": {
|
|
9244
|
+
"type": "object",
|
|
9245
|
+
"additionalProperties": false,
|
|
9246
|
+
"required": [
|
|
9247
|
+
"count",
|
|
9248
|
+
"bytes",
|
|
9249
|
+
"files",
|
|
9250
|
+
"headers"
|
|
9251
|
+
],
|
|
9252
|
+
"properties": {
|
|
9253
|
+
"count": {
|
|
9254
|
+
"type": "integer",
|
|
9255
|
+
"minimum": 0,
|
|
9256
|
+
"maximum": 20000
|
|
9257
|
+
},
|
|
9258
|
+
"bytes": {
|
|
9259
|
+
"type": "integer",
|
|
9260
|
+
"minimum": 0
|
|
9261
|
+
},
|
|
9262
|
+
"files": {
|
|
9263
|
+
"type": "array",
|
|
9264
|
+
"maxItems": 20000,
|
|
9265
|
+
"items": {
|
|
9266
|
+
"type": "object",
|
|
9267
|
+
"additionalProperties": false,
|
|
9268
|
+
"required": [
|
|
9269
|
+
"path",
|
|
9270
|
+
"bytes",
|
|
9271
|
+
"sha256",
|
|
9272
|
+
"assetHash",
|
|
9273
|
+
"contentType"
|
|
9274
|
+
],
|
|
9275
|
+
"properties": {
|
|
9276
|
+
"path": {
|
|
9277
|
+
"type": "string",
|
|
9278
|
+
"pattern": "^/[^\\s]*$",
|
|
9279
|
+
"maxLength": 1024
|
|
9280
|
+
},
|
|
9281
|
+
"bytes": {
|
|
9282
|
+
"type": "integer",
|
|
9283
|
+
"minimum": 0,
|
|
9284
|
+
"maximum": 26214400
|
|
9285
|
+
},
|
|
9286
|
+
"sha256": {
|
|
9287
|
+
"$ref": "#/$defs/Sha256Hex"
|
|
9288
|
+
},
|
|
9289
|
+
"assetHash": {
|
|
9290
|
+
"type": "string",
|
|
9291
|
+
"pattern": "^[0-9a-f]{32}$"
|
|
9292
|
+
},
|
|
9293
|
+
"contentType": {
|
|
9294
|
+
"type": "string",
|
|
9295
|
+
"maxLength": 128
|
|
9296
|
+
}
|
|
9297
|
+
}
|
|
9298
|
+
}
|
|
9299
|
+
},
|
|
9300
|
+
"headers": {
|
|
9301
|
+
"type": "string",
|
|
9302
|
+
"maxLength": 100000
|
|
9303
|
+
},
|
|
9304
|
+
"config": {
|
|
9305
|
+
"type": "object",
|
|
9306
|
+
"additionalProperties": false,
|
|
9307
|
+
"properties": {
|
|
9308
|
+
"not_found_handling": {
|
|
9309
|
+
"type": "string",
|
|
9310
|
+
"enum": [
|
|
9311
|
+
"none",
|
|
9312
|
+
"404-page",
|
|
9313
|
+
"single-page-application"
|
|
9314
|
+
]
|
|
9315
|
+
},
|
|
9316
|
+
"run_worker_first": {
|
|
9317
|
+
"type": "array",
|
|
9318
|
+
"items": {
|
|
9319
|
+
"type": "string",
|
|
9320
|
+
"pattern": "^/"
|
|
9321
|
+
}
|
|
9322
|
+
}
|
|
9323
|
+
}
|
|
9324
|
+
}
|
|
9325
|
+
}
|
|
9326
|
+
},
|
|
9327
|
+
"bindingTemplate": {
|
|
9328
|
+
"type": "string",
|
|
9329
|
+
"enum": [
|
|
9330
|
+
"site",
|
|
9331
|
+
"admin"
|
|
9332
|
+
]
|
|
9333
|
+
}
|
|
9334
|
+
}
|
|
9335
|
+
}
|
|
9336
|
+
}
|
|
9337
|
+
} ;
|
|
9338
|
+
|
|
9339
|
+
export const ReleaseStatementSchema = {
|
|
9340
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
9341
|
+
"$id": "https://cloudhal.dev/schemas/v1/release-statement.schema.json",
|
|
9342
|
+
"title": "ReleaseStatement",
|
|
9343
|
+
"description": "cloudhal.release-statement@1 (RFC-0046): the small canonical document a Cloudhal release signs, published as the release asset release-statement.json next to release-statement.sig (a raw 64-byte Ed25519 signature over the exact bytes, at most 4096 of them). It names the version, channel, commit and key id and pins the SHA-256 and size of manifest.json and of the tarball, so a remote deployer verifies one small file and then checks every other asset by digest. Canonical bytes: keys sorted recursively, 2-space indent, a trailing newline; a consumer verifies the bytes it downloaded and never re-serialises them. Portable on purpose: it references common only for SchemaVersion and Timestamp.",
|
|
9344
|
+
"type": "object",
|
|
9345
|
+
"additionalProperties": false,
|
|
9346
|
+
"required": [
|
|
9347
|
+
"schemaVersion",
|
|
9348
|
+
"format",
|
|
9349
|
+
"version",
|
|
9350
|
+
"channel",
|
|
9351
|
+
"securityRelease",
|
|
9352
|
+
"commit",
|
|
9353
|
+
"createdAt",
|
|
9354
|
+
"signing",
|
|
9355
|
+
"manifest",
|
|
9356
|
+
"tarball"
|
|
9357
|
+
],
|
|
9358
|
+
"properties": {
|
|
9359
|
+
"schemaVersion": {
|
|
9360
|
+
"$ref": "#/$defs/SchemaVersion"
|
|
9361
|
+
},
|
|
9362
|
+
"format": {
|
|
9363
|
+
"type": "string",
|
|
9364
|
+
"enum": [
|
|
9365
|
+
"cloudhal.release-statement@1"
|
|
9366
|
+
]
|
|
9367
|
+
},
|
|
9368
|
+
"version": {
|
|
9369
|
+
"$ref": "#/$defs/CloudhalVersion"
|
|
9370
|
+
},
|
|
9371
|
+
"channel": {
|
|
9372
|
+
"type": "string",
|
|
9373
|
+
"enum": [
|
|
9374
|
+
"stable",
|
|
9375
|
+
"next"
|
|
9376
|
+
]
|
|
9377
|
+
},
|
|
9378
|
+
"securityRelease": {
|
|
9379
|
+
"type": "boolean"
|
|
9380
|
+
},
|
|
9381
|
+
"commit": {
|
|
9382
|
+
"type": "string",
|
|
9383
|
+
"pattern": "^[0-9a-f]{40}$"
|
|
9384
|
+
},
|
|
9385
|
+
"createdAt": {
|
|
9386
|
+
"$ref": "#/$defs/Timestamp"
|
|
9387
|
+
},
|
|
9388
|
+
"signing": {
|
|
9389
|
+
"type": "object",
|
|
9390
|
+
"additionalProperties": false,
|
|
9391
|
+
"required": [
|
|
9392
|
+
"keyId",
|
|
9393
|
+
"algorithm",
|
|
9394
|
+
"signature"
|
|
9395
|
+
],
|
|
9396
|
+
"properties": {
|
|
9397
|
+
"keyId": {
|
|
9398
|
+
"type": "string",
|
|
9399
|
+
"pattern": "^[a-z0-9][a-z0-9-]{2,63}$"
|
|
9400
|
+
},
|
|
9401
|
+
"algorithm": {
|
|
9402
|
+
"type": "string",
|
|
9403
|
+
"enum": [
|
|
9404
|
+
"Ed25519"
|
|
9405
|
+
]
|
|
9406
|
+
},
|
|
9407
|
+
"signature": {
|
|
9408
|
+
"type": "string",
|
|
9409
|
+
"enum": [
|
|
9410
|
+
"release-statement.sig"
|
|
9411
|
+
]
|
|
9412
|
+
}
|
|
9413
|
+
}
|
|
9414
|
+
},
|
|
9415
|
+
"manifest": {
|
|
9416
|
+
"$ref": "#/$defs/StatementAsset"
|
|
9417
|
+
},
|
|
9418
|
+
"tarball": {
|
|
9419
|
+
"$ref": "#/$defs/StatementAsset"
|
|
9420
|
+
}
|
|
9421
|
+
},
|
|
9422
|
+
"$defs": {
|
|
9423
|
+
"CloudhalVersion": {
|
|
9424
|
+
"type": "string",
|
|
9425
|
+
"pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$"
|
|
9426
|
+
},
|
|
9427
|
+
"SchemaVersion": {
|
|
9428
|
+
"type": "integer",
|
|
9429
|
+
"description": "Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.",
|
|
9430
|
+
"enum": [
|
|
9431
|
+
1
|
|
9432
|
+
]
|
|
9433
|
+
},
|
|
9434
|
+
"Sha256Hex": {
|
|
9435
|
+
"type": "string",
|
|
9436
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
9437
|
+
},
|
|
9438
|
+
"StatementAsset": {
|
|
9439
|
+
"type": "object",
|
|
9440
|
+
"additionalProperties": false,
|
|
9441
|
+
"required": [
|
|
9442
|
+
"name",
|
|
9443
|
+
"sha256",
|
|
9444
|
+
"bytes"
|
|
9445
|
+
],
|
|
9446
|
+
"properties": {
|
|
9447
|
+
"name": {
|
|
9448
|
+
"type": "string",
|
|
9449
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$"
|
|
9450
|
+
},
|
|
9451
|
+
"sha256": {
|
|
9452
|
+
"$ref": "#/$defs/Sha256Hex"
|
|
9453
|
+
},
|
|
9454
|
+
"bytes": {
|
|
9455
|
+
"type": "integer",
|
|
9456
|
+
"minimum": 1,
|
|
9457
|
+
"maximum": 104857600
|
|
9458
|
+
}
|
|
9459
|
+
}
|
|
9460
|
+
},
|
|
9461
|
+
"Timestamp": {
|
|
9462
|
+
"type": "string",
|
|
9463
|
+
"description": "RFC 3339 / ISO 8601 instant in UTC.",
|
|
9464
|
+
"format": "date-time"
|
|
9465
|
+
}
|
|
9466
|
+
}
|
|
9467
|
+
} ;
|
|
9468
|
+
|
|
8216
9469
|
export const schemas = {
|
|
8217
9470
|
"project": ProjectSchema,
|
|
8218
9471
|
"site": SiteSchema,
|
|
@@ -8234,4 +9487,6 @@ export const schemas = {
|
|
|
8234
9487
|
"automation": AutomationSchema,
|
|
8235
9488
|
"schedule-run": ScheduleRunSchema,
|
|
8236
9489
|
"glossary": GlossarySchema,
|
|
9490
|
+
"release-manifest": ReleaseManifestSchema,
|
|
9491
|
+
"release-statement": ReleaseStatementSchema,
|
|
8237
9492
|
} ;
|