@hyprune/schema 0.5.1 → 0.6.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 (47) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +21 -4
  3. package/bin/validate.mjs +4 -4
  4. package/extensions/blueprint.schema.json +29 -0
  5. package/lib/validate.d.mts +6 -0
  6. package/lib/validate.mjs +54 -2
  7. package/package.json +2 -2
  8. package/v0/common.schema.json +85 -0
  9. package/v0/extension.schema.json +121 -0
  10. package/v0/ipc.schema.json +1725 -0
  11. package/v0/screen-type.schema.json +115 -0
  12. package/v0/world.schema.json +363 -0
  13. package/v0.10/ipc.schema.json +8811 -0
  14. package/v0.11/ipc.schema.json +8863 -0
  15. package/v0.12/ipc.schema.json +9541 -0
  16. package/v0.13/ipc.schema.json +10032 -0
  17. package/v0.14/ipc.schema.json +10127 -0
  18. package/v0.15/ipc.schema.json +10534 -0
  19. package/v0.16/ipc.schema.json +10550 -0
  20. package/v0.17/ipc.schema.json +10703 -0
  21. package/v0.18/ipc.schema.json +10801 -0
  22. package/v0.19/ipc.schema.json +11587 -0
  23. package/v0.2/common.schema.json +86 -0
  24. package/v0.2/ipc.schema.json +3570 -0
  25. package/v0.2/world.schema.json +363 -0
  26. package/v0.20/ipc.schema.json +11800 -0
  27. package/v0.3/common.schema.json +477 -0
  28. package/v0.3/ipc.schema.json +4044 -0
  29. package/v0.3/world.schema.json +390 -0
  30. package/v0.4/common.schema.json +477 -0
  31. package/v0.4/ipc.schema.json +5561 -0
  32. package/v0.4/world.schema.json +496 -0
  33. package/v0.5/common.schema.json +477 -0
  34. package/v0.5/ipc.schema.json +5781 -0
  35. package/v0.5/world.schema.json +790 -0
  36. package/v0.6/common.schema.json +478 -0
  37. package/v0.6/input.schema.json +519 -0
  38. package/v0.6/ipc.schema.json +7375 -0
  39. package/v0.6/world.schema.json +1062 -0
  40. package/v0.7/common.schema.json +478 -0
  41. package/v0.7/ipc.schema.json +7905 -0
  42. package/v0.7/world.schema.json +1062 -0
  43. package/v0.8/common.schema.json +478 -0
  44. package/v0.8/ipc.schema.json +7945 -0
  45. package/v0.8/world.schema.json +1261 -0
  46. package/v0.9/input.schema.json +518 -0
  47. package/v0.9/ipc.schema.json +8613 -0
@@ -0,0 +1,519 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://hyprune.com/schema/v0.6/input.schema.json",
4
+ "title": "Hyprune input keymap v2",
5
+ "type": "object",
6
+ "properties": {
7
+ "version": {
8
+ "const": 2
9
+ },
10
+ "longHoldMs": {
11
+ "type": "integer",
12
+ "minimum": 100,
13
+ "maximum": 5000
14
+ },
15
+ "scopeVignette": {
16
+ "type": "boolean"
17
+ },
18
+ "useDistance": {
19
+ "type": "number",
20
+ "minimum": 0.2,
21
+ "maximum": 30
22
+ },
23
+ "useTolerance": {
24
+ "type": "number",
25
+ "minimum": 0,
26
+ "maximum": 0.5
27
+ },
28
+ "captureInputLimit": {
29
+ "type": "integer",
30
+ "minimum": 16,
31
+ "maximum": 1024
32
+ },
33
+ "modes": {
34
+ "type": "object",
35
+ "properties": {
36
+ "world": {
37
+ "type": "object",
38
+ "properties": {
39
+ "look": {
40
+ "type": "array",
41
+ "items": {
42
+ "type": "string",
43
+ "minLength": 1,
44
+ "maxLength": 96
45
+ },
46
+ "maxItems": 3,
47
+ "uniqueItems": true
48
+ },
49
+ "forward": {
50
+ "type": "array",
51
+ "items": {
52
+ "type": "string",
53
+ "minLength": 1,
54
+ "maxLength": 96
55
+ },
56
+ "maxItems": 3,
57
+ "uniqueItems": true
58
+ },
59
+ "back": {
60
+ "type": "array",
61
+ "items": {
62
+ "type": "string",
63
+ "minLength": 1,
64
+ "maxLength": 96
65
+ },
66
+ "maxItems": 3,
67
+ "uniqueItems": true
68
+ },
69
+ "left": {
70
+ "type": "array",
71
+ "items": {
72
+ "type": "string",
73
+ "minLength": 1,
74
+ "maxLength": 96
75
+ },
76
+ "maxItems": 3,
77
+ "uniqueItems": true
78
+ },
79
+ "right": {
80
+ "type": "array",
81
+ "items": {
82
+ "type": "string",
83
+ "minLength": 1,
84
+ "maxLength": 96
85
+ },
86
+ "maxItems": 3,
87
+ "uniqueItems": true
88
+ },
89
+ "menu": {
90
+ "type": "array",
91
+ "items": {
92
+ "type": "string",
93
+ "minLength": 1,
94
+ "maxLength": 96
95
+ },
96
+ "maxItems": 3,
97
+ "uniqueItems": true
98
+ },
99
+ "sprint": {
100
+ "type": "array",
101
+ "items": {
102
+ "type": "string",
103
+ "minLength": 1,
104
+ "maxLength": 96
105
+ },
106
+ "maxItems": 3,
107
+ "uniqueItems": true
108
+ },
109
+ "up": {
110
+ "type": "array",
111
+ "items": {
112
+ "type": "string",
113
+ "minLength": 1,
114
+ "maxLength": 96
115
+ },
116
+ "maxItems": 3,
117
+ "uniqueItems": true
118
+ },
119
+ "down": {
120
+ "type": "array",
121
+ "items": {
122
+ "type": "string",
123
+ "minLength": 1,
124
+ "maxLength": 96
125
+ },
126
+ "maxItems": 3,
127
+ "uniqueItems": true
128
+ },
129
+ "use": {
130
+ "type": "array",
131
+ "items": {
132
+ "type": "string",
133
+ "minLength": 1,
134
+ "maxLength": 96
135
+ },
136
+ "maxItems": 3,
137
+ "uniqueItems": true
138
+ },
139
+ "focus": {
140
+ "type": "array",
141
+ "items": {
142
+ "type": "string",
143
+ "minLength": 1,
144
+ "maxLength": 96
145
+ },
146
+ "maxItems": 3,
147
+ "uniqueItems": true
148
+ },
149
+ "noclip": {
150
+ "type": "array",
151
+ "items": {
152
+ "type": "string",
153
+ "minLength": 1,
154
+ "maxLength": 96
155
+ },
156
+ "maxItems": 3,
157
+ "uniqueItems": true
158
+ },
159
+ "scope": {
160
+ "type": "array",
161
+ "items": {
162
+ "type": "string",
163
+ "minLength": 1,
164
+ "maxLength": 96
165
+ },
166
+ "maxItems": 3,
167
+ "uniqueItems": true
168
+ },
169
+ "debug": {
170
+ "type": "array",
171
+ "items": {
172
+ "type": "string",
173
+ "minLength": 1,
174
+ "maxLength": 96
175
+ },
176
+ "maxItems": 3,
177
+ "uniqueItems": true
178
+ },
179
+ "capture": {
180
+ "type": "array",
181
+ "items": {
182
+ "type": "string",
183
+ "minLength": 1,
184
+ "maxLength": 96
185
+ },
186
+ "maxItems": 3,
187
+ "uniqueItems": true
188
+ },
189
+ "carry": {
190
+ "type": "array",
191
+ "items": {
192
+ "type": "string",
193
+ "minLength": 1,
194
+ "maxLength": 96
195
+ },
196
+ "maxItems": 3,
197
+ "uniqueItems": true
198
+ },
199
+ "resize": {
200
+ "type": "array",
201
+ "items": {
202
+ "type": "string",
203
+ "minLength": 1,
204
+ "maxLength": 96
205
+ },
206
+ "maxItems": 3,
207
+ "uniqueItems": true
208
+ },
209
+ "distance": {
210
+ "type": "array",
211
+ "items": {
212
+ "type": "string",
213
+ "minLength": 1,
214
+ "maxLength": 96
215
+ },
216
+ "maxItems": 3,
217
+ "uniqueItems": true
218
+ },
219
+ "rotate": {
220
+ "type": "array",
221
+ "items": {
222
+ "type": "string",
223
+ "minLength": 1,
224
+ "maxLength": 96
225
+ },
226
+ "maxItems": 3,
227
+ "uniqueItems": true
228
+ },
229
+ "tool1": {
230
+ "type": "array",
231
+ "items": {
232
+ "type": "string",
233
+ "minLength": 1,
234
+ "maxLength": 96
235
+ },
236
+ "maxItems": 3,
237
+ "uniqueItems": true
238
+ },
239
+ "tool2": {
240
+ "type": "array",
241
+ "items": {
242
+ "type": "string",
243
+ "minLength": 1,
244
+ "maxLength": 96
245
+ },
246
+ "maxItems": 3,
247
+ "uniqueItems": true
248
+ },
249
+ "tool3": {
250
+ "type": "array",
251
+ "items": {
252
+ "type": "string",
253
+ "minLength": 1,
254
+ "maxLength": 96
255
+ },
256
+ "maxItems": 3,
257
+ "uniqueItems": true
258
+ },
259
+ "tool4": {
260
+ "type": "array",
261
+ "items": {
262
+ "type": "string",
263
+ "minLength": 1,
264
+ "maxLength": 96
265
+ },
266
+ "maxItems": 3,
267
+ "uniqueItems": true
268
+ },
269
+ "tool5": {
270
+ "type": "array",
271
+ "items": {
272
+ "type": "string",
273
+ "minLength": 1,
274
+ "maxLength": 96
275
+ },
276
+ "maxItems": 3,
277
+ "uniqueItems": true
278
+ },
279
+ "transport": {
280
+ "type": "array",
281
+ "items": {
282
+ "type": "string",
283
+ "minLength": 1,
284
+ "maxLength": 96
285
+ },
286
+ "maxItems": 3,
287
+ "uniqueItems": true
288
+ },
289
+ "autopilot": {
290
+ "type": "array",
291
+ "items": {
292
+ "type": "string",
293
+ "minLength": 1,
294
+ "maxLength": 96
295
+ },
296
+ "maxItems": 3,
297
+ "uniqueItems": true
298
+ },
299
+ "primary": {
300
+ "type": "array",
301
+ "items": {
302
+ "type": "string",
303
+ "minLength": 1,
304
+ "maxLength": 96
305
+ },
306
+ "maxItems": 3,
307
+ "uniqueItems": true
308
+ },
309
+ "secondary": {
310
+ "type": "array",
311
+ "items": {
312
+ "type": "string",
313
+ "minLength": 1,
314
+ "maxLength": 96
315
+ },
316
+ "maxItems": 3,
317
+ "uniqueItems": true
318
+ },
319
+ "wheel": {
320
+ "type": "array",
321
+ "items": {
322
+ "type": "string",
323
+ "minLength": 1,
324
+ "maxLength": 96
325
+ },
326
+ "maxItems": 3,
327
+ "uniqueItems": true
328
+ },
329
+ "fly": {
330
+ "type": "array",
331
+ "items": {
332
+ "type": "string",
333
+ "minLength": 1,
334
+ "maxLength": 96
335
+ },
336
+ "maxItems": 3,
337
+ "uniqueItems": true
338
+ }
339
+ },
340
+ "required": [
341
+ "look",
342
+ "forward",
343
+ "back",
344
+ "left",
345
+ "right",
346
+ "menu",
347
+ "sprint",
348
+ "up",
349
+ "down",
350
+ "use",
351
+ "focus",
352
+ "noclip",
353
+ "scope",
354
+ "debug",
355
+ "capture",
356
+ "carry",
357
+ "resize",
358
+ "distance",
359
+ "rotate",
360
+ "tool1",
361
+ "tool2",
362
+ "tool3",
363
+ "tool4",
364
+ "tool5",
365
+ "transport",
366
+ "autopilot",
367
+ "primary",
368
+ "secondary",
369
+ "wheel",
370
+ "fly"
371
+ ],
372
+ "additionalProperties": false
373
+ },
374
+ "interactive": {
375
+ "type": "object",
376
+ "properties": {
377
+ "exit": {
378
+ "type": "array",
379
+ "items": {
380
+ "type": "string",
381
+ "minLength": 1,
382
+ "maxLength": 96
383
+ },
384
+ "maxItems": 3,
385
+ "uniqueItems": true
386
+ },
387
+ "debug": {
388
+ "type": "array",
389
+ "items": {
390
+ "type": "string",
391
+ "minLength": 1,
392
+ "maxLength": 96
393
+ },
394
+ "maxItems": 3,
395
+ "uniqueItems": true
396
+ },
397
+ "capture": {
398
+ "type": "array",
399
+ "items": {
400
+ "type": "string",
401
+ "minLength": 1,
402
+ "maxLength": 96
403
+ },
404
+ "maxItems": 3,
405
+ "uniqueItems": true
406
+ }
407
+ },
408
+ "required": [
409
+ "exit"
410
+ ],
411
+ "additionalProperties": false
412
+ },
413
+ "focus": {
414
+ "type": "object",
415
+ "properties": {
416
+ "exit": {
417
+ "type": "array",
418
+ "items": {
419
+ "type": "string",
420
+ "minLength": 1,
421
+ "maxLength": 96
422
+ },
423
+ "maxItems": 3,
424
+ "uniqueItems": true
425
+ },
426
+ "debug": {
427
+ "type": "array",
428
+ "items": {
429
+ "type": "string",
430
+ "minLength": 1,
431
+ "maxLength": 96
432
+ },
433
+ "maxItems": 3,
434
+ "uniqueItems": true
435
+ },
436
+ "capture": {
437
+ "type": "array",
438
+ "items": {
439
+ "type": "string",
440
+ "minLength": 1,
441
+ "maxLength": 96
442
+ },
443
+ "maxItems": 3,
444
+ "uniqueItems": true
445
+ }
446
+ },
447
+ "required": [
448
+ "exit"
449
+ ],
450
+ "additionalProperties": false
451
+ },
452
+ "menu": {
453
+ "type": "object",
454
+ "properties": {
455
+ "exit": {
456
+ "type": "array",
457
+ "items": {
458
+ "type": "string",
459
+ "minLength": 1,
460
+ "maxLength": 96
461
+ },
462
+ "maxItems": 3,
463
+ "uniqueItems": true
464
+ },
465
+ "debug": {
466
+ "type": "array",
467
+ "items": {
468
+ "type": "string",
469
+ "minLength": 1,
470
+ "maxLength": 96
471
+ },
472
+ "maxItems": 3,
473
+ "uniqueItems": true
474
+ },
475
+ "capture": {
476
+ "type": "array",
477
+ "items": {
478
+ "type": "string",
479
+ "minLength": 1,
480
+ "maxLength": 96
481
+ },
482
+ "maxItems": 3,
483
+ "uniqueItems": true
484
+ }
485
+ },
486
+ "required": [
487
+ "exit"
488
+ ],
489
+ "additionalProperties": false
490
+ }
491
+ },
492
+ "required": [
493
+ "world",
494
+ "interactive",
495
+ "focus",
496
+ "menu"
497
+ ],
498
+ "additionalProperties": false
499
+ },
500
+ "invert_y": {
501
+ "type": "boolean",
502
+ "description": "Invert vertical mouse look; default false."
503
+ },
504
+ "show_area_markers": {
505
+ "type": "boolean",
506
+ "description": "Render optional place/area labels in core; default false."
507
+ }
508
+ },
509
+ "required": [
510
+ "version",
511
+ "longHoldMs",
512
+ "scopeVignette",
513
+ "useDistance",
514
+ "useTolerance",
515
+ "captureInputLimit",
516
+ "modes"
517
+ ],
518
+ "additionalProperties": false
519
+ }