@kumwe/studio-protocol 0.1.0-alpha.2

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.
Files changed (42) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +22 -0
  3. package/dist/guards.d.ts +4 -0
  4. package/dist/guards.d.ts.map +1 -0
  5. package/dist/guards.js +288 -0
  6. package/dist/guards.js.map +1 -0
  7. package/dist/index.d.ts +4 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +4 -0
  10. package/dist/index.js.map +1 -0
  11. package/dist/schemas.d.ts +24 -0
  12. package/dist/schemas.d.ts.map +1 -0
  13. package/dist/schemas.js +66 -0
  14. package/dist/schemas.js.map +1 -0
  15. package/dist/types.d.ts +989 -0
  16. package/dist/types.d.ts.map +1 -0
  17. package/dist/types.js +3 -0
  18. package/dist/types.js.map +1 -0
  19. package/package.json +38 -0
  20. package/schemas/block-definition.schema.json +218 -0
  21. package/schemas/blueprint.schema.json +236 -0
  22. package/schemas/command-vector.schema.json +64 -0
  23. package/schemas/command.schema.json +373 -0
  24. package/schemas/common.schema.json +222 -0
  25. package/schemas/content-model.schema.json +216 -0
  26. package/schemas/entry.schema.json +32 -0
  27. package/schemas/host-capabilities.schema.json +64 -0
  28. package/schemas/host-error.schema.json +42 -0
  29. package/schemas/manifest.json +117 -0
  30. package/schemas/media-asset.schema.json +83 -0
  31. package/schemas/media-reference.schema.json +112 -0
  32. package/schemas/media-upload-session.schema.json +109 -0
  33. package/schemas/pattern.schema.json +50 -0
  34. package/schemas/plugin-manifest.schema.json +124 -0
  35. package/schemas/preview-message.schema.json +226 -0
  36. package/schemas/provenance.schema.json +57 -0
  37. package/schemas/rich-text-projection.schema.json +70 -0
  38. package/schemas/rich-text.schema.json +174 -0
  39. package/schemas/schema-profile.schema.json +161 -0
  40. package/schemas/studio-config.schema.json +244 -0
  41. package/schemas/theme.schema.json +164 -0
  42. package/schemas/unresolved-contribution.schema.json +48 -0
@@ -0,0 +1,373 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.kumwe.org/studio/v1/command.schema.json",
4
+ "title": "Studio command",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "contractVersion",
9
+ "kind",
10
+ "id",
11
+ "type",
12
+ "artifactId",
13
+ "sessionGeneration",
14
+ "baseStateVersion",
15
+ "payload"
16
+ ],
17
+ "properties": {
18
+ "contractVersion": { "$ref": "common.schema.json#/$defs/contractVersion" },
19
+ "kind": { "const": "command" },
20
+ "id": { "$ref": "common.schema.json#/$defs/stableId" },
21
+ "type": { "$ref": "common.schema.json#/$defs/qualifiedName" },
22
+ "artifactId": { "$ref": "common.schema.json#/$defs/stableId" },
23
+ "expectedRevision": { "$ref": "common.schema.json#/$defs/revision" },
24
+ "sessionGeneration": { "$ref": "common.schema.json#/$defs/revision" },
25
+ "baseStateVersion": { "type": "integer", "minimum": 0 },
26
+ "groupId": { "$ref": "common.schema.json#/$defs/stableId" },
27
+ "payload": {
28
+ "type": "object",
29
+ "maxProperties": 1000,
30
+ "propertyNames": { "$ref": "common.schema.json#/$defs/safeJsonMemberName" },
31
+ "additionalProperties": { "$ref": "common.schema.json#/$defs/jsonValue" }
32
+ }
33
+ },
34
+ "allOf": [
35
+ {
36
+ "if": { "properties": { "type": { "const": "studio.command/insert-node" } } },
37
+ "then": { "properties": { "payload": { "$ref": "#/$defs/insertNode" } } }
38
+ },
39
+ {
40
+ "if": { "properties": { "type": { "const": "studio.command/remove-node" } } },
41
+ "then": { "properties": { "payload": { "$ref": "#/$defs/removeNode" } } }
42
+ },
43
+ {
44
+ "if": { "properties": { "type": { "const": "studio.command/restore-node" } } },
45
+ "then": { "properties": { "payload": { "$ref": "#/$defs/restoreNode" } } }
46
+ },
47
+ {
48
+ "if": { "properties": { "type": { "const": "studio.command/move-node" } } },
49
+ "then": { "properties": { "payload": { "$ref": "#/$defs/moveNode" } } }
50
+ },
51
+ {
52
+ "if": { "properties": { "type": { "const": "studio.command/duplicate-node" } } },
53
+ "then": { "properties": { "payload": { "$ref": "#/$defs/duplicateNode" } } }
54
+ },
55
+ {
56
+ "if": { "properties": { "type": { "const": "studio.command/reorder-children" } } },
57
+ "then": { "properties": { "payload": { "$ref": "#/$defs/reorderChildren" } } }
58
+ },
59
+ {
60
+ "if": { "properties": { "type": { "const": "studio.command/set-property" } } },
61
+ "then": { "properties": { "payload": { "$ref": "#/$defs/setProperty" } } }
62
+ },
63
+ {
64
+ "if": { "properties": { "type": { "const": "studio.command/unset-property" } } },
65
+ "then": { "properties": { "payload": { "$ref": "#/$defs/unsetProperty" } } }
66
+ },
67
+ {
68
+ "if": { "properties": { "type": { "const": "studio.command/reset-inherited-property" } } },
69
+ "then": { "properties": { "payload": { "$ref": "#/$defs/resetInheritedProperty" } } }
70
+ },
71
+ {
72
+ "if": { "properties": { "type": { "const": "studio.command/set-binding" } } },
73
+ "then": { "properties": { "payload": { "$ref": "#/$defs/setBinding" } } }
74
+ },
75
+ {
76
+ "if": { "properties": { "type": { "const": "studio.command/remove-binding" } } },
77
+ "then": { "properties": { "payload": { "$ref": "#/$defs/removeBinding" } } }
78
+ },
79
+ {
80
+ "if": { "properties": { "type": { "const": "studio.command/set-field-value" } } },
81
+ "then": { "properties": { "payload": { "$ref": "#/$defs/setFieldValue" } } }
82
+ },
83
+ {
84
+ "if": { "properties": { "type": { "const": "studio.command/apply-pattern" } } },
85
+ "then": { "properties": { "payload": { "$ref": "#/$defs/applyPattern" } } }
86
+ },
87
+ {
88
+ "if": { "properties": { "type": { "const": "studio.command/add-model-field" } } },
89
+ "then": { "properties": { "payload": { "$ref": "#/$defs/addModelField" } } }
90
+ },
91
+ {
92
+ "if": { "properties": { "type": { "const": "studio.command/batch" } } },
93
+ "then": { "properties": { "payload": { "$ref": "#/$defs/batch" } } }
94
+ }
95
+ ],
96
+ "$defs": {
97
+ "destination": {
98
+ "type": "object",
99
+ "additionalProperties": false,
100
+ "required": ["position"],
101
+ "properties": {
102
+ "parentNodeId": { "$ref": "common.schema.json#/$defs/stableId" },
103
+ "slot": { "$ref": "common.schema.json#/$defs/localName" },
104
+ "position": { "type": "integer", "minimum": 0, "maximum": 100000 }
105
+ },
106
+ "dependentRequired": {
107
+ "parentNodeId": ["slot"],
108
+ "slot": ["parentNodeId"]
109
+ }
110
+ },
111
+ "insertNode": {
112
+ "type": "object",
113
+ "additionalProperties": false,
114
+ "required": ["node", "destination"],
115
+ "properties": {
116
+ "node": { "$ref": "blueprint.schema.json#/$defs/node" },
117
+ "destination": { "$ref": "#/$defs/destination" }
118
+ }
119
+ },
120
+ "removeNode": {
121
+ "type": "object",
122
+ "additionalProperties": false,
123
+ "required": ["nodeId"],
124
+ "properties": {
125
+ "nodeId": { "$ref": "common.schema.json#/$defs/stableId" }
126
+ }
127
+ },
128
+ "restoreNode": {
129
+ "type": "object",
130
+ "additionalProperties": false,
131
+ "required": ["node", "destination"],
132
+ "properties": {
133
+ "node": { "$ref": "blueprint.schema.json#/$defs/node" },
134
+ "destination": { "$ref": "#/$defs/destination" }
135
+ }
136
+ },
137
+ "moveNode": {
138
+ "type": "object",
139
+ "additionalProperties": false,
140
+ "required": ["nodeId", "destination"],
141
+ "properties": {
142
+ "nodeId": { "$ref": "common.schema.json#/$defs/stableId" },
143
+ "destination": { "$ref": "#/$defs/destination" }
144
+ }
145
+ },
146
+ "duplicateNode": {
147
+ "type": "object",
148
+ "additionalProperties": false,
149
+ "required": ["nodeId", "idMap"],
150
+ "properties": {
151
+ "nodeId": { "$ref": "common.schema.json#/$defs/stableId" },
152
+ "destination": { "$ref": "#/$defs/destination" },
153
+ "idMap": {
154
+ "type": "object",
155
+ "minProperties": 1,
156
+ "maxProperties": 5000,
157
+ "propertyNames": { "$ref": "common.schema.json#/$defs/stableId" },
158
+ "additionalProperties": { "$ref": "common.schema.json#/$defs/stableId" }
159
+ }
160
+ }
161
+ },
162
+ "reorderChildren": {
163
+ "type": "object",
164
+ "additionalProperties": false,
165
+ "required": ["order"],
166
+ "properties": {
167
+ "parentNodeId": { "$ref": "common.schema.json#/$defs/stableId" },
168
+ "slot": { "$ref": "common.schema.json#/$defs/localName" },
169
+ "order": {
170
+ "type": "array",
171
+ "minItems": 1,
172
+ "maxItems": 10000,
173
+ "uniqueItems": true,
174
+ "items": { "$ref": "common.schema.json#/$defs/stableId" }
175
+ }
176
+ },
177
+ "dependentRequired": {
178
+ "parentNodeId": ["slot"],
179
+ "slot": ["parentNodeId"]
180
+ }
181
+ },
182
+ "setProperty": {
183
+ "type": "object",
184
+ "additionalProperties": false,
185
+ "required": ["nodeId", "property", "value"],
186
+ "properties": {
187
+ "nodeId": { "$ref": "common.schema.json#/$defs/stableId" },
188
+ "property": { "$ref": "common.schema.json#/$defs/localName" },
189
+ "viewport": { "$ref": "common.schema.json#/$defs/localName" },
190
+ "value": { "$ref": "common.schema.json#/$defs/jsonValue" }
191
+ }
192
+ },
193
+ "unsetProperty": {
194
+ "type": "object",
195
+ "additionalProperties": false,
196
+ "required": ["nodeId", "property"],
197
+ "properties": {
198
+ "nodeId": { "$ref": "common.schema.json#/$defs/stableId" },
199
+ "property": { "$ref": "common.schema.json#/$defs/localName" },
200
+ "viewport": { "$ref": "common.schema.json#/$defs/localName" }
201
+ }
202
+ },
203
+ "resetInheritedProperty": {
204
+ "type": "object",
205
+ "additionalProperties": false,
206
+ "required": ["nodeId", "property"],
207
+ "properties": {
208
+ "nodeId": { "$ref": "common.schema.json#/$defs/stableId" },
209
+ "property": { "$ref": "common.schema.json#/$defs/localName" }
210
+ }
211
+ },
212
+ "setBinding": {
213
+ "type": "object",
214
+ "additionalProperties": false,
215
+ "required": ["nodeId", "port", "binding"],
216
+ "properties": {
217
+ "nodeId": { "$ref": "common.schema.json#/$defs/stableId" },
218
+ "port": { "$ref": "common.schema.json#/$defs/localName" },
219
+ "binding": { "$ref": "blueprint.schema.json#/$defs/binding" }
220
+ }
221
+ },
222
+ "removeBinding": {
223
+ "type": "object",
224
+ "additionalProperties": false,
225
+ "required": ["nodeId", "port"],
226
+ "properties": {
227
+ "nodeId": { "$ref": "common.schema.json#/$defs/stableId" },
228
+ "port": { "$ref": "common.schema.json#/$defs/localName" }
229
+ }
230
+ },
231
+ "setFieldValue": {
232
+ "type": "object",
233
+ "additionalProperties": false,
234
+ "required": ["fieldPath", "value"],
235
+ "properties": {
236
+ "fieldPath": {
237
+ "type": "array",
238
+ "minItems": 1,
239
+ "maxItems": 32,
240
+ "items": { "$ref": "common.schema.json#/$defs/localName" }
241
+ },
242
+ "locale": { "$ref": "common.schema.json#/$defs/locale" },
243
+ "value": { "$ref": "common.schema.json#/$defs/jsonValue" }
244
+ }
245
+ },
246
+ "addModelField": {
247
+ "type": "object",
248
+ "additionalProperties": false,
249
+ "required": ["field"],
250
+ "properties": {
251
+ "field": { "$ref": "content-model.schema.json#/$defs/field" },
252
+ "position": { "type": "integer", "minimum": 0, "maximum": 1000 }
253
+ }
254
+ },
255
+ "applyPattern": {
256
+ "type": "object",
257
+ "additionalProperties": false,
258
+ "required": ["pattern", "nodes", "destination", "idMap"],
259
+ "properties": {
260
+ "pattern": {
261
+ "type": "object",
262
+ "additionalProperties": false,
263
+ "required": ["id", "version", "revision"],
264
+ "properties": {
265
+ "id": { "$ref": "common.schema.json#/$defs/stableId" },
266
+ "version": { "$ref": "common.schema.json#/$defs/semanticVersion" },
267
+ "revision": { "$ref": "common.schema.json#/$defs/revision" }
268
+ }
269
+ },
270
+ "nodes": {
271
+ "type": "array",
272
+ "minItems": 1,
273
+ "maxItems": 100,
274
+ "items": { "$ref": "blueprint.schema.json#/$defs/node" }
275
+ },
276
+ "destination": { "$ref": "#/$defs/destination" },
277
+ "idMap": {
278
+ "type": "object",
279
+ "minProperties": 1,
280
+ "maxProperties": 5000,
281
+ "propertyNames": { "$ref": "common.schema.json#/$defs/stableId" },
282
+ "additionalProperties": { "$ref": "common.schema.json#/$defs/stableId" }
283
+ }
284
+ }
285
+ },
286
+ "batch": {
287
+ "type": "object",
288
+ "additionalProperties": false,
289
+ "required": ["operations"],
290
+ "properties": {
291
+ "operations": {
292
+ "type": "array",
293
+ "minItems": 1,
294
+ "maxItems": 100,
295
+ "items": { "$ref": "#/$defs/batchOperation" }
296
+ }
297
+ }
298
+ },
299
+ "batchOperation": {
300
+ "type": "object",
301
+ "additionalProperties": false,
302
+ "required": ["type", "payload"],
303
+ "properties": {
304
+ "type": {
305
+ "allOf": [
306
+ { "$ref": "common.schema.json#/$defs/qualifiedName" },
307
+ {
308
+ "not": {
309
+ "enum": [
310
+ "studio.command/apply-pattern",
311
+ "studio.command/batch",
312
+ "studio.command/reset-inherited-property"
313
+ ]
314
+ }
315
+ }
316
+ ]
317
+ },
318
+ "payload": {
319
+ "type": "object",
320
+ "maxProperties": 1000,
321
+ "propertyNames": { "$ref": "common.schema.json#/$defs/safeJsonMemberName" },
322
+ "additionalProperties": { "$ref": "common.schema.json#/$defs/jsonValue" }
323
+ }
324
+ },
325
+ "allOf": [
326
+ {
327
+ "if": { "properties": { "type": { "const": "studio.command/insert-node" } } },
328
+ "then": { "properties": { "payload": { "$ref": "#/$defs/insertNode" } } }
329
+ },
330
+ {
331
+ "if": { "properties": { "type": { "const": "studio.command/remove-node" } } },
332
+ "then": { "properties": { "payload": { "$ref": "#/$defs/removeNode" } } }
333
+ },
334
+ {
335
+ "if": { "properties": { "type": { "const": "studio.command/restore-node" } } },
336
+ "then": { "properties": { "payload": { "$ref": "#/$defs/restoreNode" } } }
337
+ },
338
+ {
339
+ "if": { "properties": { "type": { "const": "studio.command/move-node" } } },
340
+ "then": { "properties": { "payload": { "$ref": "#/$defs/moveNode" } } }
341
+ },
342
+ {
343
+ "if": { "properties": { "type": { "const": "studio.command/duplicate-node" } } },
344
+ "then": { "properties": { "payload": { "$ref": "#/$defs/duplicateNode" } } }
345
+ },
346
+ {
347
+ "if": { "properties": { "type": { "const": "studio.command/reorder-children" } } },
348
+ "then": { "properties": { "payload": { "$ref": "#/$defs/reorderChildren" } } }
349
+ },
350
+ {
351
+ "if": { "properties": { "type": { "const": "studio.command/set-property" } } },
352
+ "then": { "properties": { "payload": { "$ref": "#/$defs/setProperty" } } }
353
+ },
354
+ {
355
+ "if": { "properties": { "type": { "const": "studio.command/unset-property" } } },
356
+ "then": { "properties": { "payload": { "$ref": "#/$defs/unsetProperty" } } }
357
+ },
358
+ {
359
+ "if": { "properties": { "type": { "const": "studio.command/set-binding" } } },
360
+ "then": { "properties": { "payload": { "$ref": "#/$defs/setBinding" } } }
361
+ },
362
+ {
363
+ "if": { "properties": { "type": { "const": "studio.command/remove-binding" } } },
364
+ "then": { "properties": { "payload": { "$ref": "#/$defs/removeBinding" } } }
365
+ },
366
+ {
367
+ "if": { "properties": { "type": { "const": "studio.command/set-field-value" } } },
368
+ "then": { "properties": { "payload": { "$ref": "#/$defs/setFieldValue" } } }
369
+ }
370
+ ]
371
+ }
372
+ }
373
+ }
@@ -0,0 +1,222 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.kumwe.org/studio/v1/common.schema.json",
4
+ "title": "Studio common contract types",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "$defs": {
8
+ "contractVersion": {
9
+ "type": "string",
10
+ "const": "0.1-draft"
11
+ },
12
+ "semanticVersion": {
13
+ "type": "string",
14
+ "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(?:-((?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*))?(?:\\+([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?(?![\\s\\S])",
15
+ "maxLength": 100
16
+ },
17
+ "versionRange": {
18
+ "type": "string",
19
+ "minLength": 1,
20
+ "maxLength": 120,
21
+ "pattern": "^[0-9A-Za-z.*+<>=~^| -]+(?![\\s\\S])"
22
+ },
23
+ "qualifiedName": {
24
+ "type": "string",
25
+ "pattern": "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*/[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*(?![\\s\\S])",
26
+ "maxLength": 160
27
+ },
28
+ "localName": {
29
+ "type": "string",
30
+ "pattern": "^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*(?![\\s\\S])",
31
+ "not": { "enum": ["__proto__", "prototype", "constructor"] },
32
+ "maxLength": 100
33
+ },
34
+ "safeJsonMemberName": {
35
+ "type": "string",
36
+ "minLength": 1,
37
+ "maxLength": 200,
38
+ "pattern": "^[^\\u0000-\\u001F\\u007F]+(?![\\s\\S])",
39
+ "not": { "enum": ["__proto__", "prototype", "constructor"] }
40
+ },
41
+ "packageRelativePath": {
42
+ "type": "string",
43
+ "pattern": "^[A-Za-z0-9@][A-Za-z0-9._@-]*(?:/[A-Za-z0-9@][A-Za-z0-9._@-]*)*(?![\\s\\S])",
44
+ "maxLength": 240
45
+ },
46
+ "stableId": {
47
+ "type": "string",
48
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*(?![\\s\\S])",
49
+ "not": { "enum": ["__proto__", "prototype", "constructor"] },
50
+ "maxLength": 240
51
+ },
52
+ "revision": {
53
+ "type": "string",
54
+ "minLength": 1,
55
+ "maxLength": 200
56
+ },
57
+ "integrity": {
58
+ "type": "string",
59
+ "pattern": "^(?:sha256-[A-Za-z0-9+/]{42}[AEIMQUYcgkosw048]=|sha384-[A-Za-z0-9+/]{64}|sha512-[A-Za-z0-9+/]{85}[AQgw]==)(?![\\s\\S])",
60
+ "maxLength": 200
61
+ },
62
+ "locale": {
63
+ "type": "string",
64
+ "pattern": "^[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*(?![\\s\\S])",
65
+ "maxLength": 50
66
+ },
67
+ "canonicalDecimal": {
68
+ "type": "string",
69
+ "pattern": "^(?:-?(?:0|[1-9][0-9]*)\\.[0-9]+|0|-?[1-9][0-9]*)(?![\\s\\S])",
70
+ "maxLength": 40
71
+ },
72
+ "currencyCode": {
73
+ "type": "string",
74
+ "pattern": "^[A-Z]{3}(?![\\s\\S])"
75
+ },
76
+ "moneyValue": {
77
+ "type": "object",
78
+ "additionalProperties": false,
79
+ "required": ["amount", "currency"],
80
+ "properties": {
81
+ "amount": { "$ref": "#/$defs/canonicalDecimal" },
82
+ "currency": { "$ref": "#/$defs/currencyCode" }
83
+ }
84
+ },
85
+ "rfc3339Date": {
86
+ "type": "string",
87
+ "pattern": "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])(?![\\s\\S])"
88
+ },
89
+ "rfc3339Instant": {
90
+ "type": "string",
91
+ "pattern": "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])T(?:[01][0-9]|2[0-3]):[0-5][0-9]:(?:[0-5][0-9]|60)(?:\\.[0-9]{1,9})?(?:Z|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9])(?![\\s\\S])",
92
+ "maxLength": 40
93
+ },
94
+ "messageReference": {
95
+ "type": "object",
96
+ "additionalProperties": false,
97
+ "required": ["key"],
98
+ "properties": {
99
+ "key": { "$ref": "#/$defs/qualifiedName" },
100
+ "defaultMessage": {
101
+ "type": "string",
102
+ "minLength": 1,
103
+ "maxLength": 500
104
+ }
105
+ }
106
+ },
107
+ "ownerReference": {
108
+ "type": "object",
109
+ "additionalProperties": false,
110
+ "required": ["id", "version"],
111
+ "properties": {
112
+ "id": { "$ref": "#/$defs/qualifiedName" },
113
+ "version": { "$ref": "#/$defs/semanticVersion" }
114
+ }
115
+ },
116
+ "artifactReference": {
117
+ "type": "object",
118
+ "additionalProperties": false,
119
+ "required": ["id", "version"],
120
+ "properties": {
121
+ "id": { "$ref": "#/$defs/stableId" },
122
+ "version": { "$ref": "#/$defs/semanticVersion" },
123
+ "revision": { "$ref": "#/$defs/revision" },
124
+ "integrity": { "$ref": "#/$defs/integrity" }
125
+ }
126
+ },
127
+ "lockedArtifactReference": {
128
+ "type": "object",
129
+ "additionalProperties": false,
130
+ "required": ["id", "version", "revision"],
131
+ "properties": {
132
+ "id": { "$ref": "#/$defs/stableId" },
133
+ "version": { "$ref": "#/$defs/semanticVersion" },
134
+ "revision": { "$ref": "#/$defs/revision" },
135
+ "integrity": { "$ref": "#/$defs/integrity" }
136
+ }
137
+ },
138
+ "resolvedEntryReference": {
139
+ "type": "object",
140
+ "additionalProperties": false,
141
+ "required": ["id", "revision"],
142
+ "properties": {
143
+ "id": { "$ref": "#/$defs/stableId" },
144
+ "revision": { "$ref": "#/$defs/revision" },
145
+ "integrity": { "$ref": "#/$defs/integrity" }
146
+ }
147
+ },
148
+ "jsonValue": {
149
+ "oneOf": [
150
+ { "type": "null" },
151
+ { "type": "boolean" },
152
+ { "type": "number" },
153
+ { "type": "string" },
154
+ {
155
+ "type": "array",
156
+ "maxItems": 10000,
157
+ "items": { "$ref": "#/$defs/jsonValue" }
158
+ },
159
+ {
160
+ "type": "object",
161
+ "maxProperties": 10000,
162
+ "propertyNames": { "$ref": "#/$defs/safeJsonMemberName" },
163
+ "additionalProperties": { "$ref": "#/$defs/jsonValue" }
164
+ }
165
+ ]
166
+ },
167
+ "extensions": {
168
+ "type": "object",
169
+ "maxProperties": 100,
170
+ "propertyNames": { "$ref": "#/$defs/qualifiedName" },
171
+ "additionalProperties": { "$ref": "#/$defs/jsonValue" }
172
+ },
173
+ "diagnosticLocation": {
174
+ "type": "object",
175
+ "additionalProperties": false,
176
+ "properties": {
177
+ "artifactId": { "$ref": "#/$defs/stableId" },
178
+ "nodeId": { "$ref": "#/$defs/stableId" },
179
+ "fieldPath": {
180
+ "type": "array",
181
+ "maxItems": 32,
182
+ "items": { "$ref": "#/$defs/localName" }
183
+ },
184
+ "jsonPointer": {
185
+ "type": "string",
186
+ "maxLength": 1000
187
+ }
188
+ }
189
+ },
190
+ "diagnostic": {
191
+ "type": "object",
192
+ "additionalProperties": false,
193
+ "required": ["code", "severity", "message"],
194
+ "properties": {
195
+ "code": { "$ref": "#/$defs/qualifiedName" },
196
+ "severity": {
197
+ "enum": ["information", "warning", "error", "blocking"]
198
+ },
199
+ "message": { "$ref": "#/$defs/messageReference" },
200
+ "location": { "$ref": "#/$defs/diagnosticLocation" },
201
+ "parameters": {
202
+ "type": "object",
203
+ "maxProperties": 20,
204
+ "propertyNames": { "$ref": "#/$defs/safeJsonMemberName" },
205
+ "additionalProperties": {
206
+ "oneOf": [
207
+ { "type": "string" },
208
+ { "type": "number" },
209
+ { "type": "boolean" },
210
+ { "type": "null" }
211
+ ]
212
+ }
213
+ },
214
+ "remediations": {
215
+ "type": "array",
216
+ "maxItems": 10,
217
+ "items": { "$ref": "#/$defs/qualifiedName" }
218
+ }
219
+ }
220
+ }
221
+ }
222
+ }