@hyprune/schema 0.5.1 → 0.5.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 (38) hide show
  1. package/package.json +2 -2
  2. package/v0/common.schema.json +85 -0
  3. package/v0/extension.schema.json +121 -0
  4. package/v0/ipc.schema.json +1725 -0
  5. package/v0/screen-type.schema.json +115 -0
  6. package/v0/world.schema.json +363 -0
  7. package/v0.10/ipc.schema.json +8811 -0
  8. package/v0.11/ipc.schema.json +8863 -0
  9. package/v0.12/ipc.schema.json +9541 -0
  10. package/v0.13/ipc.schema.json +10032 -0
  11. package/v0.14/ipc.schema.json +10127 -0
  12. package/v0.15/ipc.schema.json +10534 -0
  13. package/v0.16/ipc.schema.json +10550 -0
  14. package/v0.17/ipc.schema.json +10703 -0
  15. package/v0.18/ipc.schema.json +10801 -0
  16. package/v0.19/ipc.schema.json +11587 -0
  17. package/v0.2/common.schema.json +86 -0
  18. package/v0.2/ipc.schema.json +3570 -0
  19. package/v0.2/world.schema.json +363 -0
  20. package/v0.3/common.schema.json +477 -0
  21. package/v0.3/ipc.schema.json +4044 -0
  22. package/v0.3/world.schema.json +390 -0
  23. package/v0.4/common.schema.json +477 -0
  24. package/v0.4/ipc.schema.json +5561 -0
  25. package/v0.4/world.schema.json +496 -0
  26. package/v0.5/common.schema.json +477 -0
  27. package/v0.5/ipc.schema.json +5781 -0
  28. package/v0.5/world.schema.json +790 -0
  29. package/v0.6/common.schema.json +478 -0
  30. package/v0.6/input.schema.json +519 -0
  31. package/v0.6/ipc.schema.json +7375 -0
  32. package/v0.6/world.schema.json +1062 -0
  33. package/v0.7/common.schema.json +478 -0
  34. package/v0.7/ipc.schema.json +7905 -0
  35. package/v0.7/world.schema.json +1062 -0
  36. package/v0.8/ipc.schema.json +7945 -0
  37. package/v0.9/input.schema.json +518 -0
  38. package/v0.9/ipc.schema.json +8613 -0
@@ -0,0 +1,115 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://hyprune.com/schema/v0/screen-type.schema.json",
4
+ "title": "Hyprune v0 screen-type",
5
+ "type": "object",
6
+ "properties": {
7
+ "descriptorVersion": {
8
+ "const": "0.1"
9
+ },
10
+ "id": {
11
+ "$ref": "common.schema.json#/$defs/id"
12
+ },
13
+ "name": {
14
+ "type": "string",
15
+ "minLength": 1,
16
+ "maxLength": 256
17
+ },
18
+ "provider": {
19
+ "$ref": "common.schema.json#/$defs/id"
20
+ },
21
+ "source": {
22
+ "enum": [
23
+ "window",
24
+ "workspace",
25
+ "layer",
26
+ "web",
27
+ "custom"
28
+ ]
29
+ },
30
+ "geometry": {
31
+ "const": "plane"
32
+ },
33
+ "defaultSize": {
34
+ "type": "array",
35
+ "items": {
36
+ "type": "number",
37
+ "exclusiveMinimum": 0
38
+ },
39
+ "minItems": 2,
40
+ "maxItems": 2
41
+ },
42
+ "resolution": {
43
+ "type": "object",
44
+ "properties": {
45
+ "width": {
46
+ "type": "integer",
47
+ "minimum": 1,
48
+ "maximum": 8192
49
+ },
50
+ "height": {
51
+ "type": "integer",
52
+ "minimum": 1,
53
+ "maximum": 8192
54
+ }
55
+ },
56
+ "required": [
57
+ "width",
58
+ "height"
59
+ ],
60
+ "additionalProperties": false
61
+ },
62
+ "input": {
63
+ "type": "object",
64
+ "properties": {
65
+ "pointer": {
66
+ "type": "boolean"
67
+ },
68
+ "keyboard": {
69
+ "type": "boolean"
70
+ },
71
+ "touch": {
72
+ "const": false
73
+ }
74
+ },
75
+ "required": [
76
+ "pointer",
77
+ "keyboard",
78
+ "touch"
79
+ ],
80
+ "additionalProperties": false
81
+ },
82
+ "alphaMode": {
83
+ "enum": [
84
+ "opaque",
85
+ "blend"
86
+ ]
87
+ },
88
+ "colorSpace": {
89
+ "const": "srgb"
90
+ },
91
+ "maxFps": {
92
+ "type": "integer",
93
+ "minimum": 1,
94
+ "maximum": 120
95
+ },
96
+ "extensions": {
97
+ "$ref": "common.schema.json#/$defs/extensions"
98
+ }
99
+ },
100
+ "required": [
101
+ "descriptorVersion",
102
+ "id",
103
+ "name",
104
+ "provider",
105
+ "source",
106
+ "geometry",
107
+ "defaultSize",
108
+ "resolution",
109
+ "input",
110
+ "alphaMode",
111
+ "colorSpace",
112
+ "maxFps"
113
+ ],
114
+ "additionalProperties": false
115
+ }
@@ -0,0 +1,363 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://hyprune.com/schema/v0/world.schema.json",
4
+ "title": "Hyprune v0 world",
5
+ "type": "object",
6
+ "properties": {
7
+ "formatVersion": {
8
+ "const": "0.1"
9
+ },
10
+ "id": {
11
+ "$ref": "common.schema.json#/$defs/id"
12
+ },
13
+ "version": {
14
+ "$ref": "common.schema.json#/$defs/version"
15
+ },
16
+ "name": {
17
+ "type": "string",
18
+ "minLength": 1,
19
+ "maxLength": 256
20
+ },
21
+ "description": {
22
+ "type": "string",
23
+ "minLength": 0,
24
+ "maxLength": 4096
25
+ },
26
+ "license": {
27
+ "type": "string",
28
+ "minLength": 1,
29
+ "maxLength": 256
30
+ },
31
+ "scene": {
32
+ "allOf": [
33
+ {
34
+ "$ref": "common.schema.json#/$defs/path"
35
+ },
36
+ {
37
+ "pattern": "\\.(gltf|glb)$",
38
+ "type": "string"
39
+ }
40
+ ]
41
+ },
42
+ "preview": {
43
+ "$ref": "common.schema.json#/$defs/path"
44
+ },
45
+ "defaultSpawn": {
46
+ "$ref": "common.schema.json#/$defs/slug"
47
+ },
48
+ "spawns": {
49
+ "type": "array",
50
+ "items": {
51
+ "type": "object",
52
+ "properties": {
53
+ "id": {
54
+ "$ref": "common.schema.json#/$defs/slug"
55
+ },
56
+ "pose": {
57
+ "$ref": "common.schema.json#/$defs/pose"
58
+ },
59
+ "node": {
60
+ "$ref": "common.schema.json#/$defs/index"
61
+ }
62
+ },
63
+ "required": [
64
+ "id",
65
+ "pose"
66
+ ],
67
+ "additionalProperties": false
68
+ },
69
+ "minItems": 1
70
+ },
71
+ "attribution": {
72
+ "type": "array",
73
+ "items": {
74
+ "type": "object",
75
+ "properties": {
76
+ "path": {
77
+ "anyOf": [
78
+ {
79
+ "$ref": "common.schema.json#/$defs/path"
80
+ },
81
+ {
82
+ "const": "."
83
+ }
84
+ ]
85
+ },
86
+ "author": {
87
+ "type": "string",
88
+ "minLength": 1,
89
+ "maxLength": 256
90
+ },
91
+ "license": {
92
+ "type": "string",
93
+ "minLength": 1,
94
+ "maxLength": 256
95
+ },
96
+ "source": {
97
+ "type": "string",
98
+ "minLength": 1,
99
+ "maxLength": 2048,
100
+ "pattern": "^https://"
101
+ }
102
+ },
103
+ "required": [
104
+ "path",
105
+ "author",
106
+ "license"
107
+ ],
108
+ "additionalProperties": false
109
+ },
110
+ "minItems": 1
111
+ },
112
+ "zones": {
113
+ "type": "array",
114
+ "items": {
115
+ "type": "object",
116
+ "properties": {
117
+ "id": {
118
+ "$ref": "common.schema.json#/$defs/slug"
119
+ },
120
+ "name": {
121
+ "type": "string",
122
+ "minLength": 1,
123
+ "maxLength": 256
124
+ },
125
+ "bounds": {
126
+ "type": "object",
127
+ "properties": {
128
+ "min": {
129
+ "type": "array",
130
+ "items": {
131
+ "type": "number"
132
+ },
133
+ "minItems": 3,
134
+ "maxItems": 3
135
+ },
136
+ "max": {
137
+ "type": "array",
138
+ "items": {
139
+ "type": "number"
140
+ },
141
+ "minItems": 3,
142
+ "maxItems": 3
143
+ }
144
+ },
145
+ "required": [
146
+ "min",
147
+ "max"
148
+ ],
149
+ "additionalProperties": false
150
+ }
151
+ },
152
+ "required": [
153
+ "id",
154
+ "name",
155
+ "bounds"
156
+ ],
157
+ "additionalProperties": false
158
+ },
159
+ "minItems": 0
160
+ },
161
+ "anchors": {
162
+ "type": "array",
163
+ "items": {
164
+ "type": "object",
165
+ "properties": {
166
+ "id": {
167
+ "$ref": "common.schema.json#/$defs/slug"
168
+ },
169
+ "pose": {
170
+ "$ref": "common.schema.json#/$defs/pose"
171
+ },
172
+ "size": {
173
+ "type": "array",
174
+ "items": {
175
+ "type": "number",
176
+ "exclusiveMinimum": 0
177
+ },
178
+ "minItems": 2,
179
+ "maxItems": 2
180
+ },
181
+ "screenType": {
182
+ "$ref": "common.schema.json#/$defs/id"
183
+ },
184
+ "node": {
185
+ "$ref": "common.schema.json#/$defs/index"
186
+ }
187
+ },
188
+ "required": [
189
+ "id",
190
+ "pose",
191
+ "size",
192
+ "screenType"
193
+ ],
194
+ "additionalProperties": false
195
+ },
196
+ "minItems": 0
197
+ },
198
+ "navigation": {
199
+ "type": "object",
200
+ "properties": {
201
+ "kind": {
202
+ "const": "mesh"
203
+ },
204
+ "node": {
205
+ "$ref": "common.schema.json#/$defs/index"
206
+ },
207
+ "agentRadius": {
208
+ "type": "number",
209
+ "exclusiveMinimum": 0
210
+ },
211
+ "agentHeight": {
212
+ "type": "number",
213
+ "exclusiveMinimum": 0
214
+ }
215
+ },
216
+ "required": [
217
+ "kind",
218
+ "node",
219
+ "agentRadius",
220
+ "agentHeight"
221
+ ],
222
+ "additionalProperties": false
223
+ },
224
+ "collision": {
225
+ "type": "array",
226
+ "items": {
227
+ "type": "object",
228
+ "properties": {
229
+ "node": {
230
+ "$ref": "common.schema.json#/$defs/index"
231
+ },
232
+ "shape": {
233
+ "enum": [
234
+ "mesh",
235
+ "convex"
236
+ ]
237
+ },
238
+ "layer": {
239
+ "const": "static"
240
+ }
241
+ },
242
+ "required": [
243
+ "node",
244
+ "shape",
245
+ "layer"
246
+ ],
247
+ "additionalProperties": false
248
+ },
249
+ "minItems": 0
250
+ },
251
+ "audio": {
252
+ "type": "array",
253
+ "items": {
254
+ "type": "object",
255
+ "properties": {
256
+ "id": {
257
+ "$ref": "common.schema.json#/$defs/slug"
258
+ },
259
+ "path": {
260
+ "allOf": [
261
+ {
262
+ "$ref": "common.schema.json#/$defs/path"
263
+ },
264
+ {
265
+ "pattern": "\\.(ogg|wav)$",
266
+ "type": "string"
267
+ }
268
+ ]
269
+ },
270
+ "position": {
271
+ "type": "array",
272
+ "items": {
273
+ "type": "number"
274
+ },
275
+ "minItems": 3,
276
+ "maxItems": 3
277
+ },
278
+ "radius": {
279
+ "type": "number",
280
+ "exclusiveMinimum": 0
281
+ },
282
+ "gain": {
283
+ "type": "number",
284
+ "minimum": 0,
285
+ "maximum": 1
286
+ },
287
+ "loop": {
288
+ "type": "boolean"
289
+ }
290
+ },
291
+ "required": [
292
+ "id",
293
+ "path",
294
+ "position",
295
+ "radius",
296
+ "gain",
297
+ "loop"
298
+ ],
299
+ "additionalProperties": false
300
+ },
301
+ "minItems": 0
302
+ },
303
+ "lightmaps": {
304
+ "type": "array",
305
+ "items": {
306
+ "type": "object",
307
+ "properties": {
308
+ "material": {
309
+ "$ref": "common.schema.json#/$defs/index"
310
+ },
311
+ "texture": {
312
+ "$ref": "common.schema.json#/$defs/index"
313
+ },
314
+ "texCoord": {
315
+ "const": 1
316
+ },
317
+ "encoding": {
318
+ "enum": [
319
+ "linear",
320
+ "srgb"
321
+ ]
322
+ },
323
+ "intensity": {
324
+ "type": "number",
325
+ "minimum": 0
326
+ }
327
+ },
328
+ "required": [
329
+ "material",
330
+ "texture",
331
+ "texCoord",
332
+ "encoding",
333
+ "intensity"
334
+ ],
335
+ "additionalProperties": false
336
+ },
337
+ "minItems": 0
338
+ },
339
+ "extensions": {
340
+ "$ref": "common.schema.json#/$defs/extensions"
341
+ },
342
+ "requiredExtensions": {
343
+ "type": "array",
344
+ "items": {
345
+ "$ref": "common.schema.json#/$defs/id"
346
+ },
347
+ "minItems": 0,
348
+ "uniqueItems": true
349
+ }
350
+ },
351
+ "required": [
352
+ "formatVersion",
353
+ "id",
354
+ "version",
355
+ "name",
356
+ "license",
357
+ "scene",
358
+ "defaultSpawn",
359
+ "spawns",
360
+ "attribution"
361
+ ],
362
+ "additionalProperties": false
363
+ }