@ue-shed/protocol 0.7.1 → 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.
Files changed (79) hide show
  1. package/contracts/cameras/authoring/v1/README.md +50 -0
  2. package/contracts/cameras/authoring/v1/approval.schema.json +106 -0
  3. package/contracts/cameras/authoring/v1/arrangement.schema.json +1801 -0
  4. package/contracts/cameras/authoring/v1/bridge-request.schema.json +10862 -0
  5. package/contracts/cameras/authoring/v1/bridge-response.schema.json +10323 -0
  6. package/contracts/cameras/authoring/v1/command.schema.json +4109 -0
  7. package/contracts/cameras/authoring/v1/document.schema.json +4409 -0
  8. package/contracts/cameras/authoring/v1/panel-event.schema.json +4885 -0
  9. package/contracts/cameras/authoring/v1/panel-state.schema.json +3548 -0
  10. package/contracts/cameras/authoring/v1/recipe.schema.json +340 -0
  11. package/contracts/cameras/authoring/v1/visibility-preset.schema.json +205 -0
  12. package/contracts/cameras/map-tile/v1/README.md +4 -1
  13. package/contracts/cameras/map-tile/v1/capture-operation.schema.json +1621 -30
  14. package/contracts/cameras/map-tile/v1/capture-request.schema.json +497 -48
  15. package/contracts/cameras/map-tile/v1/capture-response.schema.json +1383 -96
  16. package/contracts/cameras/map-tile/v1/manifest.schema.json +1760 -110
  17. package/contracts/cameras/map-tile/v1/plan.schema.json +394 -200
  18. package/contracts/cameras/map-tile/v1/release-result.schema.json +7 -2
  19. package/contracts/cameras/provisioning/v1/provision-request.schema.json +663 -141
  20. package/contracts/cameras/render/v1/begin-result.schema.json +167 -0
  21. package/contracts/cameras/render/v1/capabilities.schema.json +25 -0
  22. package/contracts/cameras/render/v1/frame-evidence.schema.json +240 -0
  23. package/contracts/cameras/render/v1/frame-status.schema.json +249 -0
  24. package/contracts/cameras/render/v1/policy.schema.json +159 -0
  25. package/contracts/cameras/render/v1/review-inspection-result.schema.json +263 -0
  26. package/contracts/cameras/render/v1/session-request.schema.json +167 -0
  27. package/contracts/cameras/review/v1/README.md +6 -0
  28. package/contracts/cameras/review/v1/capture-request.schema.json +221 -3
  29. package/contracts/cameras/review/v1/capture-response.schema.json +3648 -0
  30. package/contracts/cameras/review/v1/fixtures/capture-authored.json +205 -0
  31. package/contracts/core/v1/WINDOW-ACTIVATION.md +21 -0
  32. package/contracts/core/v1/window-activation-request.schema.json +20 -0
  33. package/contracts/core/v1/window-activation-result.schema.json +49 -0
  34. package/contracts/editor-world/v1/README.md +27 -0
  35. package/contracts/editor-world/v1/operation.schema.json +761 -0
  36. package/contracts/editor-world/v1/state.schema.json +92 -0
  37. package/contracts/uasset-io/v1/event.schema.json +613 -171
  38. package/contracts/uasset-io/v1/fixtures/invalid/inspect-string-table-nonstring-metadata.json +53 -0
  39. package/contracts/uasset-io/v1/fixtures/invalid/negative-instanced-size.json +97 -0
  40. package/contracts/uasset-io/v1/fixtures/invalid/non-string-metadata.json +97 -0
  41. package/contracts/uasset-io/v1/fixtures/invalid/unknown-native-value.json +97 -0
  42. package/contracts/uasset-io/v1/fixtures/valid/extract-text-string-table-occurrence-result-event.json +30 -0
  43. package/contracts/uasset-io/v1/fixtures/valid/inspect-native-result-event.json +97 -0
  44. package/contracts/uasset-io/v1/fixtures/valid/inspect-string-table-metadata-result-event.json +53 -0
  45. package/contracts/world/preparation/v1/fixtures/invalid-contract-version.json +10 -0
  46. package/contracts/world/preparation/v1/fixtures/invalid-extra-field.json +11 -0
  47. package/contracts/world/preparation/v1/fixtures/invalid-negative-budget.json +37 -0
  48. package/contracts/world/preparation/v1/fixtures/invalid-region-negative-extent.json +40 -0
  49. package/contracts/world/preparation/v1/fixtures/valid-actor-context.json +37 -0
  50. package/contracts/world/preparation/v1/fixtures/valid-describe.json +10 -0
  51. package/contracts/world/preparation/v1/request.schema.json +897 -0
  52. package/contracts/world/preparation/v1/response.schema.json +449 -0
  53. package/dist/cameras.d.ts +16 -12
  54. package/dist/cameras.d.ts.map +1 -1
  55. package/dist/cameras.js +1 -0
  56. package/dist/cameras.js.map +1 -1
  57. package/dist/companion.d.ts +6 -0
  58. package/dist/companion.d.ts.map +1 -1
  59. package/dist/companion.js +3 -0
  60. package/dist/companion.js.map +1 -1
  61. package/dist/editor-window-activation.d.ts +16 -0
  62. package/dist/editor-window-activation.d.ts.map +1 -0
  63. package/dist/editor-window-activation.js +19 -0
  64. package/dist/editor-window-activation.js.map +1 -0
  65. package/dist/editor-world-control.d.ts +125 -0
  66. package/dist/editor-world-control.d.ts.map +1 -1
  67. package/dist/editor-world-control.js +25 -0
  68. package/dist/editor-world-control.js.map +1 -1
  69. package/dist/index.d.ts +1 -0
  70. package/dist/index.d.ts.map +1 -1
  71. package/dist/index.js +1 -0
  72. package/dist/index.js.map +1 -1
  73. package/dist/uasset-inspection.d.ts +112 -55
  74. package/dist/uasset-inspection.d.ts.map +1 -1
  75. package/dist/uasset-inspection.js +29 -0
  76. package/dist/uasset-inspection.js.map +1 -1
  77. package/dist/uasset-io.d.ts +54 -0
  78. package/dist/uasset-io.d.ts.map +1 -1
  79. package/package.json +1 -1
@@ -62,6 +62,173 @@
62
62
  "policy": {
63
63
  "type": "object",
64
64
  "properties": {
65
+ "visibility": {
66
+ "type": "object",
67
+ "properties": {
68
+ "hide": {
69
+ "type": "array",
70
+ "items": {
71
+ "type": "object",
72
+ "properties": {
73
+ "locator": {
74
+ "anyOf": [
75
+ {
76
+ "type": "object",
77
+ "properties": {
78
+ "kind": {
79
+ "type": "string",
80
+ "enum": ["actor_path"]
81
+ },
82
+ "actorPath": {
83
+ "type": "string",
84
+ "allOf": [
85
+ {
86
+ "pattern": "^\\/Game\\/"
87
+ },
88
+ {
89
+ "maxLength": 4096
90
+ }
91
+ ]
92
+ }
93
+ },
94
+ "required": ["kind", "actorPath"],
95
+ "additionalProperties": false
96
+ },
97
+ {
98
+ "type": "object",
99
+ "properties": {
100
+ "kind": {
101
+ "type": "string",
102
+ "enum": ["actor_guid"]
103
+ },
104
+ "actorGuid": {
105
+ "type": "string",
106
+ "allOf": [
107
+ {
108
+ "pattern": "^(?!00000000-00000000-00000000-00000000$)[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{8}){3}$"
109
+ }
110
+ ]
111
+ },
112
+ "lastKnownActorPath": {
113
+ "type": "string",
114
+ "allOf": [
115
+ {
116
+ "maxLength": 4096
117
+ }
118
+ ]
119
+ }
120
+ },
121
+ "required": [
122
+ "kind",
123
+ "actorGuid",
124
+ "lastKnownActorPath"
125
+ ],
126
+ "additionalProperties": false
127
+ }
128
+ ]
129
+ },
130
+ "label": {
131
+ "type": "string",
132
+ "allOf": [
133
+ {
134
+ "maxLength": 256
135
+ }
136
+ ]
137
+ }
138
+ },
139
+ "required": ["locator", "label"],
140
+ "additionalProperties": false
141
+ },
142
+ "allOf": [
143
+ {
144
+ "maxItems": 256
145
+ }
146
+ ]
147
+ },
148
+ "protect": {
149
+ "type": "array",
150
+ "items": {
151
+ "type": "object",
152
+ "properties": {
153
+ "locator": {
154
+ "anyOf": [
155
+ {
156
+ "type": "object",
157
+ "properties": {
158
+ "kind": {
159
+ "type": "string",
160
+ "enum": ["actor_path"]
161
+ },
162
+ "actorPath": {
163
+ "type": "string",
164
+ "allOf": [
165
+ {
166
+ "pattern": "^\\/Game\\/"
167
+ },
168
+ {
169
+ "maxLength": 4096
170
+ }
171
+ ]
172
+ }
173
+ },
174
+ "required": ["kind", "actorPath"],
175
+ "additionalProperties": false
176
+ },
177
+ {
178
+ "type": "object",
179
+ "properties": {
180
+ "kind": {
181
+ "type": "string",
182
+ "enum": ["actor_guid"]
183
+ },
184
+ "actorGuid": {
185
+ "type": "string",
186
+ "allOf": [
187
+ {
188
+ "pattern": "^(?!00000000-00000000-00000000-00000000$)[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{8}){3}$"
189
+ }
190
+ ]
191
+ },
192
+ "lastKnownActorPath": {
193
+ "type": "string",
194
+ "allOf": [
195
+ {
196
+ "maxLength": 4096
197
+ }
198
+ ]
199
+ }
200
+ },
201
+ "required": [
202
+ "kind",
203
+ "actorGuid",
204
+ "lastKnownActorPath"
205
+ ],
206
+ "additionalProperties": false
207
+ }
208
+ ]
209
+ },
210
+ "label": {
211
+ "type": "string",
212
+ "allOf": [
213
+ {
214
+ "maxLength": 256
215
+ }
216
+ ]
217
+ }
218
+ },
219
+ "required": ["locator", "label"],
220
+ "additionalProperties": false
221
+ },
222
+ "allOf": [
223
+ {
224
+ "maxItems": 256
225
+ }
226
+ ]
227
+ }
228
+ },
229
+ "required": ["hide", "protect"],
230
+ "additionalProperties": false
231
+ },
65
232
  "renderer": {
66
233
  "anyOf": [
67
234
  {
@@ -81,3 +81,9 @@ Change a wire shape in this order:
81
81
  4. Switch consumers only after both producers pass.
82
82
 
83
83
  Do not generate these files from TypeScript. That would reverse the authority established by ADR 0002.
84
+
85
+ Capture 1.7 adds `authoredVisibility` and separately named `authored` artifacts with `authoredEvidence`.
86
+ Natural-only, authored-only and paired output require exactly their requested variants. Paired output
87
+ retains natural assessment and shared exposure; authored-only does not fabricate a natural score.
88
+ Semantic validation requires evidence to match the saved policy and forbids exclusions on Pure.
89
+ Legacy 1.0-1.6 and Clear remain readable. Review Set 1.5 and Capture Run 1.7 persist the new state.
@@ -25,7 +25,7 @@
25
25
  "minor": {
26
26
  "type": "integer",
27
27
  "minimum": 0,
28
- "maximum": 6
28
+ "maximum": 7
29
29
  }
30
30
  }
31
31
  }
@@ -161,7 +161,198 @@
161
161
  "$ref": "#/$defs/viewpoint"
162
162
  },
163
163
  "renderPolicy": {
164
- "$ref": "../../render/v1/policy.schema.json"
164
+ "allOf": [
165
+ {
166
+ "$ref": "../../render/v1/policy.schema.json"
167
+ },
168
+ {
169
+ "not": {
170
+ "required": ["visibility"]
171
+ }
172
+ }
173
+ ]
174
+ },
175
+ "authoredVisibility": {
176
+ "type": "object",
177
+ "properties": {
178
+ "version": {
179
+ "type": "number",
180
+ "enum": [1]
181
+ },
182
+ "output": {
183
+ "type": "string",
184
+ "enum": ["natural_only", "authored_only", "natural_and_authored"]
185
+ },
186
+ "actors": {
187
+ "type": "object",
188
+ "properties": {
189
+ "hide": {
190
+ "type": "array",
191
+ "items": {
192
+ "type": "object",
193
+ "properties": {
194
+ "locator": {
195
+ "anyOf": [
196
+ {
197
+ "type": "object",
198
+ "properties": {
199
+ "kind": {
200
+ "type": "string",
201
+ "enum": ["actor_path"]
202
+ },
203
+ "actorPath": {
204
+ "type": "string",
205
+ "allOf": [
206
+ {
207
+ "pattern": "^\\/Game\\/"
208
+ },
209
+ {
210
+ "maxLength": 4096
211
+ }
212
+ ]
213
+ }
214
+ },
215
+ "required": ["kind", "actorPath"],
216
+ "additionalProperties": false
217
+ },
218
+ {
219
+ "type": "object",
220
+ "properties": {
221
+ "kind": {
222
+ "type": "string",
223
+ "enum": ["actor_guid"]
224
+ },
225
+ "actorGuid": {
226
+ "type": "string",
227
+ "allOf": [
228
+ {
229
+ "pattern": "^(?!00000000-00000000-00000000-00000000$)[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{8}){3}$"
230
+ }
231
+ ]
232
+ },
233
+ "lastKnownActorPath": {
234
+ "type": "string",
235
+ "allOf": [
236
+ {
237
+ "maxLength": 4096
238
+ }
239
+ ]
240
+ }
241
+ },
242
+ "required": [
243
+ "kind",
244
+ "actorGuid",
245
+ "lastKnownActorPath"
246
+ ],
247
+ "additionalProperties": false
248
+ }
249
+ ]
250
+ },
251
+ "label": {
252
+ "type": "string",
253
+ "allOf": [
254
+ {
255
+ "maxLength": 256
256
+ }
257
+ ]
258
+ }
259
+ },
260
+ "required": ["locator", "label"],
261
+ "additionalProperties": false
262
+ },
263
+ "allOf": [
264
+ {
265
+ "maxItems": 256
266
+ }
267
+ ]
268
+ },
269
+ "protect": {
270
+ "type": "array",
271
+ "items": {
272
+ "type": "object",
273
+ "properties": {
274
+ "locator": {
275
+ "anyOf": [
276
+ {
277
+ "type": "object",
278
+ "properties": {
279
+ "kind": {
280
+ "type": "string",
281
+ "enum": ["actor_path"]
282
+ },
283
+ "actorPath": {
284
+ "type": "string",
285
+ "allOf": [
286
+ {
287
+ "pattern": "^\\/Game\\/"
288
+ },
289
+ {
290
+ "maxLength": 4096
291
+ }
292
+ ]
293
+ }
294
+ },
295
+ "required": ["kind", "actorPath"],
296
+ "additionalProperties": false
297
+ },
298
+ {
299
+ "type": "object",
300
+ "properties": {
301
+ "kind": {
302
+ "type": "string",
303
+ "enum": ["actor_guid"]
304
+ },
305
+ "actorGuid": {
306
+ "type": "string",
307
+ "allOf": [
308
+ {
309
+ "pattern": "^(?!00000000-00000000-00000000-00000000$)[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{8}){3}$"
310
+ }
311
+ ]
312
+ },
313
+ "lastKnownActorPath": {
314
+ "type": "string",
315
+ "allOf": [
316
+ {
317
+ "maxLength": 4096
318
+ }
319
+ ]
320
+ }
321
+ },
322
+ "required": [
323
+ "kind",
324
+ "actorGuid",
325
+ "lastKnownActorPath"
326
+ ],
327
+ "additionalProperties": false
328
+ }
329
+ ]
330
+ },
331
+ "label": {
332
+ "type": "string",
333
+ "allOf": [
334
+ {
335
+ "maxLength": 256
336
+ }
337
+ ]
338
+ }
339
+ },
340
+ "required": ["locator", "label"],
341
+ "additionalProperties": false
342
+ },
343
+ "allOf": [
344
+ {
345
+ "maxItems": 256
346
+ }
347
+ ]
348
+ }
349
+ },
350
+ "required": ["hide", "protect"],
351
+ "additionalProperties": false
352
+ }
353
+ },
354
+ "required": ["version", "output", "actors"],
355
+ "additionalProperties": false
165
356
  }
166
357
  },
167
358
  "allOf": [
@@ -250,7 +441,7 @@
250
441
  "version": {
251
442
  "properties": {
252
443
  "minor": {
253
- "const": 6
444
+ "enum": [6, 7]
254
445
  }
255
446
  }
256
447
  }
@@ -266,6 +457,33 @@
266
457
  "required": ["renderPolicy"]
267
458
  }
268
459
  }
460
+ },
461
+ {
462
+ "if": {
463
+ "required": ["authoredVisibility"]
464
+ },
465
+ "then": {
466
+ "properties": {
467
+ "contract": {
468
+ "properties": {
469
+ "version": {
470
+ "properties": {
471
+ "minor": {
472
+ "const": 7
473
+ }
474
+ }
475
+ }
476
+ }
477
+ },
478
+ "clearCompanion": {
479
+ "properties": {
480
+ "status": {
481
+ "const": "not_requested"
482
+ }
483
+ }
484
+ }
485
+ }
486
+ }
269
487
  }
270
488
  ],
271
489
  "$defs": {