@cloudhal/core-contracts 0.10.1 → 0.12.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudhal/core-contracts",
3
- "version": "0.10.1",
3
+ "version": "0.12.0",
4
4
  "description": "Cloudhal domain contracts: JSON Schema source of truth plus generated TypeScript types",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://cloudhal.dev",
@@ -30,11 +30,11 @@
30
30
  "README.md"
31
31
  ],
32
32
  "devDependencies": {
33
- "@types/node": "^26.6.5",
33
+ "@types/node": "^26.6.11",
34
34
  "json-schema-to-typescript": "16.0.0",
35
35
  "tsx": "^4.23.15",
36
36
  "typescript": "7.0.2",
37
- "vitest": "5.1.0"
37
+ "vitest": "5.1.2"
38
38
  },
39
39
  "dependencies": {
40
40
  "ajv": "8.20.0",
@@ -185,8 +185,8 @@
185
185
  "properties": {
186
186
  "field": {
187
187
  "type": "string",
188
- "description": "A field key (site.schema.json FieldKey's pattern, repeated).",
189
- "pattern": "^[a-z][A-Za-z0-9]{0,39}$"
188
+ "description": "A field key (site.schema.json FieldKey's pattern, repeated), or (RFC-0045 step 8c) `<reference>.<field>`: a list field of the entry a listed reference field names, one hop. Where a dotted key is allowed is checked in code.",
189
+ "pattern": "^[a-z][A-Za-z0-9]{0,39}(\\.[a-z][A-Za-z0-9]{0,39})?$"
190
190
  },
191
191
  "op": {
192
192
  "type": "string",
@@ -387,7 +387,8 @@
387
387
  "CLOUDHAL_PURGE_TOKEN",
388
388
  "CLOUDHAL_DEPLOY_TOKEN",
389
389
  "CLOUDHAL_SETUP_TOKEN",
390
- "CLOUDHAL_COMMENTS_KEY"
390
+ "CLOUDHAL_COMMENTS_KEY",
391
+ "CLOUDHAL_UPLOAD_SECRET"
391
392
  ]
392
393
  },
393
394
  "WorkerArtifact": {
@@ -248,9 +248,36 @@
248
248
  "pattern": "^[^\\x00-\\x1F\\x7F]+$"
249
249
  }
250
250
  }
251
+ },
252
+ {
253
+ "title": "ReferenceValueSource",
254
+ "type": "object",
255
+ "description": "RFC-0045 step 8b: the entry a single reference field (one target collection) names, as the view picks its member: a card property, or one of the target collection's fields. Exactly one of property and targetField (in code).",
256
+ "additionalProperties": false,
257
+ "required": ["kind", "field"],
258
+ "properties": {
259
+ "kind": {
260
+ "type": "string",
261
+ "enum": ["reference"]
262
+ },
263
+ "field": {
264
+ "$ref": "#/$defs/FieldKey"
265
+ },
266
+ "property": {
267
+ "$ref": "#/$defs/ReferenceValueProperty"
268
+ },
269
+ "targetField": {
270
+ "$ref": "#/$defs/FieldKey"
271
+ }
272
+ }
251
273
  }
252
274
  ]
253
275
  },
276
+ "ReferenceValueProperty": {
277
+ "type": "string",
278
+ "description": "RFC-0045 step 8b: card properties of a referenced entry a structured-data property may read.",
279
+ "enum": ["title", "url", "summary"]
280
+ },
254
281
  "EntryValueProperty": {
255
282
  "type": "string",
256
283
  "description": "RFC-0042: entry properties a structured-data property may read.",