@ue-shed/protocol 0.6.0 → 0.7.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 (33) hide show
  1. package/contracts/cameras/map-tile/v1/README.md +7 -0
  2. package/contracts/cameras/map-tile/v1/capture-response.schema.json +97 -25
  3. package/contracts/cameras/map-tile/v1/manifest.schema.json +136 -37
  4. package/contracts/cameras/map-tile/v1/plan.schema.json +132 -36
  5. package/contracts/cameras/map-tile/v1/release-result.schema.json +12 -0
  6. package/contracts/cameras/render/v1/README.md +33 -0
  7. package/contracts/cameras/render/v1/begin-result.schema.json +712 -0
  8. package/contracts/cameras/render/v1/capabilities.schema.json +201 -0
  9. package/contracts/cameras/render/v1/end-result.schema.json +185 -0
  10. package/contracts/cameras/render/v1/fixtures/frame-orthographic.json +31 -0
  11. package/contracts/cameras/render/v1/fixtures/frame-perspective.json +31 -0
  12. package/contracts/cameras/render/v1/fixtures/invalid-frame-mixed-projection.json +32 -0
  13. package/contracts/cameras/render/v1/fixtures/invalid-frame-size.json +31 -0
  14. package/contracts/cameras/render/v1/fixtures/invalid-session-backend-fields.json +40 -0
  15. package/contracts/cameras/render/v1/fixtures/invalid-session-budget.json +39 -0
  16. package/contracts/cameras/render/v1/fixtures/invalid-session-future.json +39 -0
  17. package/contracts/cameras/render/v1/fixtures/session-camera-regions.json +51 -0
  18. package/contracts/cameras/render/v1/fixtures/session-editor-viewport.json +40 -0
  19. package/contracts/cameras/render/v1/fixtures/session-scene-capture.json +39 -0
  20. package/contracts/cameras/render/v1/frame-evidence.schema.json +771 -0
  21. package/contracts/cameras/render/v1/frame-request.schema.json +219 -0
  22. package/contracts/cameras/render/v1/frame-status.schema.json +1076 -0
  23. package/contracts/cameras/render/v1/policy.schema.json +510 -0
  24. package/contracts/cameras/render/v1/preflight.schema.json +68 -0
  25. package/contracts/cameras/render/v1/review-inspection-request.schema.json +342 -0
  26. package/contracts/cameras/render/v1/review-inspection-result.schema.json +2030 -0
  27. package/contracts/cameras/render/v1/review-realization-request.schema.json +417 -0
  28. package/contracts/cameras/render/v1/review-realization-result.schema.json +454 -0
  29. package/contracts/cameras/render/v1/session-request.schema.json +617 -0
  30. package/contracts/cameras/review/v1/README.md +7 -0
  31. package/contracts/cameras/review/v1/capture-request.schema.json +247 -61
  32. package/contracts/cameras/review/v1/capture-response.schema.json +820 -192
  33. package/package.json +1 -1
@@ -0,0 +1,342 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://ue-shed.dev/contracts/cameras/render/v1/review-inspection-request.schema.json",
4
+ "type": "object",
5
+ "properties": {
6
+ "contract": {
7
+ "type": "object",
8
+ "properties": {
9
+ "name": {
10
+ "type": "string",
11
+ "enum": ["ue-shed-review-render-stages"]
12
+ },
13
+ "version": {
14
+ "type": "object",
15
+ "properties": {
16
+ "major": {
17
+ "type": "number",
18
+ "enum": [1]
19
+ },
20
+ "minor": {
21
+ "type": "number",
22
+ "enum": [0]
23
+ }
24
+ },
25
+ "required": ["major", "minor"],
26
+ "additionalProperties": false
27
+ }
28
+ },
29
+ "required": ["name", "version"],
30
+ "additionalProperties": false
31
+ },
32
+ "subject": {
33
+ "anyOf": [
34
+ {
35
+ "anyOf": [
36
+ {
37
+ "type": "object",
38
+ "properties": {
39
+ "actorGuid": {
40
+ "type": "string",
41
+ "allOf": [
42
+ {
43
+ "pattern": "^(?!00000000-00000000-00000000-00000000$)[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{8}){3}$"
44
+ }
45
+ ]
46
+ },
47
+ "diagnosticLabel": {
48
+ "anyOf": [
49
+ {
50
+ "type": "string",
51
+ "allOf": [
52
+ {
53
+ "minLength": 1
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "type": "null"
59
+ }
60
+ ]
61
+ },
62
+ "kind": {
63
+ "type": "string",
64
+ "enum": ["actor_guid"]
65
+ },
66
+ "lastKnownActorPath": {
67
+ "anyOf": [
68
+ {
69
+ "type": "string",
70
+ "allOf": [
71
+ {
72
+ "minLength": 7
73
+ },
74
+ {
75
+ "maxLength": 4096
76
+ },
77
+ {
78
+ "pattern": "^\\/Game\\/"
79
+ }
80
+ ]
81
+ },
82
+ {
83
+ "type": "null"
84
+ }
85
+ ]
86
+ }
87
+ },
88
+ "required": ["actorGuid", "kind"],
89
+ "additionalProperties": false
90
+ },
91
+ {
92
+ "type": "object",
93
+ "properties": {
94
+ "actorPath": {
95
+ "type": "string",
96
+ "allOf": [
97
+ {
98
+ "minLength": 7
99
+ },
100
+ {
101
+ "maxLength": 4096
102
+ },
103
+ {
104
+ "pattern": "^\\/Game\\/"
105
+ }
106
+ ]
107
+ },
108
+ "diagnosticLabel": {
109
+ "anyOf": [
110
+ {
111
+ "type": "string",
112
+ "allOf": [
113
+ {
114
+ "minLength": 1
115
+ }
116
+ ]
117
+ },
118
+ {
119
+ "type": "null"
120
+ }
121
+ ]
122
+ },
123
+ "kind": {
124
+ "type": "string",
125
+ "enum": ["actor_path"]
126
+ }
127
+ },
128
+ "required": ["actorPath", "kind"],
129
+ "additionalProperties": false
130
+ }
131
+ ]
132
+ },
133
+ {
134
+ "type": "object",
135
+ "properties": {
136
+ "bounds": {
137
+ "type": "object",
138
+ "properties": {
139
+ "center": {
140
+ "type": "object",
141
+ "properties": {
142
+ "x": {
143
+ "type": "number"
144
+ },
145
+ "y": {
146
+ "type": "number"
147
+ },
148
+ "z": {
149
+ "type": "number"
150
+ }
151
+ },
152
+ "required": ["x", "y", "z"],
153
+ "additionalProperties": false
154
+ },
155
+ "extent": {
156
+ "type": "object",
157
+ "properties": {
158
+ "x": {
159
+ "type": "number",
160
+ "allOf": [
161
+ {
162
+ "minimum": 0
163
+ }
164
+ ]
165
+ },
166
+ "y": {
167
+ "type": "number",
168
+ "allOf": [
169
+ {
170
+ "minimum": 0
171
+ }
172
+ ]
173
+ },
174
+ "z": {
175
+ "type": "number",
176
+ "allOf": [
177
+ {
178
+ "minimum": 0
179
+ }
180
+ ]
181
+ }
182
+ },
183
+ "required": ["x", "y", "z"],
184
+ "additionalProperties": false
185
+ },
186
+ "rotation": {
187
+ "type": "object",
188
+ "properties": {
189
+ "pitch": {
190
+ "type": "number"
191
+ },
192
+ "roll": {
193
+ "type": "number"
194
+ },
195
+ "yaw": {
196
+ "type": "number"
197
+ }
198
+ },
199
+ "required": ["pitch", "roll", "yaw"],
200
+ "additionalProperties": false
201
+ }
202
+ },
203
+ "required": ["center", "extent", "rotation"],
204
+ "additionalProperties": false
205
+ },
206
+ "kind": {
207
+ "type": "string",
208
+ "enum": ["oriented_bounds"]
209
+ }
210
+ },
211
+ "required": ["bounds", "kind"],
212
+ "additionalProperties": false
213
+ }
214
+ ]
215
+ },
216
+ "assessment": {
217
+ "anyOf": [
218
+ {
219
+ "type": "object",
220
+ "properties": {
221
+ "method": {
222
+ "type": "string",
223
+ "enum": ["automatic"]
224
+ }
225
+ },
226
+ "required": ["method"],
227
+ "additionalProperties": false
228
+ },
229
+ {
230
+ "type": "object",
231
+ "properties": {
232
+ "method": {
233
+ "type": "string",
234
+ "enum": ["ray_samples"]
235
+ },
236
+ "samplePreset": {
237
+ "type": "string",
238
+ "enum": ["sparse", "standard", "dense"]
239
+ }
240
+ },
241
+ "required": ["method", "samplePreset"],
242
+ "additionalProperties": false
243
+ },
244
+ {
245
+ "type": "object",
246
+ "properties": {
247
+ "method": {
248
+ "type": "string",
249
+ "enum": ["subject_mask"]
250
+ }
251
+ },
252
+ "required": ["method"],
253
+ "additionalProperties": false
254
+ },
255
+ {
256
+ "type": "object",
257
+ "properties": {
258
+ "method": {
259
+ "type": "string",
260
+ "enum": ["depth_compare"]
261
+ }
262
+ },
263
+ "required": ["method"],
264
+ "additionalProperties": false
265
+ }
266
+ ]
267
+ },
268
+ "clearCompanion": {
269
+ "anyOf": [
270
+ {
271
+ "type": "object",
272
+ "properties": {
273
+ "status": {
274
+ "type": "string",
275
+ "enum": ["not_requested"]
276
+ }
277
+ },
278
+ "required": ["status"],
279
+ "additionalProperties": false
280
+ },
281
+ {
282
+ "type": "object",
283
+ "properties": {
284
+ "status": {
285
+ "type": "string",
286
+ "enum": ["requested"]
287
+ },
288
+ "strategy": {
289
+ "type": "string",
290
+ "enum": ["isolate_target"]
291
+ }
292
+ },
293
+ "required": ["status", "strategy"],
294
+ "additionalProperties": false
295
+ },
296
+ {
297
+ "type": "object",
298
+ "properties": {
299
+ "actors": {
300
+ "type": "array",
301
+ "items": {
302
+ "type": "string",
303
+ "allOf": [
304
+ {
305
+ "minLength": 7
306
+ },
307
+ {
308
+ "maxLength": 4096
309
+ },
310
+ {
311
+ "pattern": "^\\/Game\\/"
312
+ }
313
+ ]
314
+ },
315
+ "allOf": [
316
+ {
317
+ "minItems": 1
318
+ },
319
+ {
320
+ "maxItems": 32
321
+ }
322
+ ]
323
+ },
324
+ "status": {
325
+ "type": "string",
326
+ "enum": ["requested"]
327
+ },
328
+ "strategy": {
329
+ "type": "string",
330
+ "enum": ["hide_explicit"]
331
+ }
332
+ },
333
+ "required": ["actors", "status", "strategy"],
334
+ "additionalProperties": false
335
+ }
336
+ ]
337
+ }
338
+ },
339
+ "required": ["contract", "subject", "assessment", "clearCompanion"],
340
+ "additionalProperties": false,
341
+ "$defs": {}
342
+ }