@hyprune/schema 0.5.0 → 0.5.1

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 +1 -1
  2. package/v0/common.schema.json +0 -85
  3. package/v0/extension.schema.json +0 -121
  4. package/v0/ipc.schema.json +0 -1725
  5. package/v0/screen-type.schema.json +0 -115
  6. package/v0/world.schema.json +0 -363
  7. package/v0.10/ipc.schema.json +0 -8811
  8. package/v0.11/ipc.schema.json +0 -8863
  9. package/v0.12/ipc.schema.json +0 -9541
  10. package/v0.13/ipc.schema.json +0 -10032
  11. package/v0.14/ipc.schema.json +0 -10127
  12. package/v0.15/ipc.schema.json +0 -10534
  13. package/v0.16/ipc.schema.json +0 -10550
  14. package/v0.17/ipc.schema.json +0 -10703
  15. package/v0.18/ipc.schema.json +0 -10801
  16. package/v0.19/ipc.schema.json +0 -11587
  17. package/v0.2/common.schema.json +0 -86
  18. package/v0.2/ipc.schema.json +0 -3570
  19. package/v0.2/world.schema.json +0 -363
  20. package/v0.3/common.schema.json +0 -477
  21. package/v0.3/ipc.schema.json +0 -4044
  22. package/v0.3/world.schema.json +0 -390
  23. package/v0.4/common.schema.json +0 -477
  24. package/v0.4/ipc.schema.json +0 -5561
  25. package/v0.4/world.schema.json +0 -496
  26. package/v0.5/common.schema.json +0 -477
  27. package/v0.5/ipc.schema.json +0 -5781
  28. package/v0.5/world.schema.json +0 -790
  29. package/v0.6/common.schema.json +0 -478
  30. package/v0.6/input.schema.json +0 -519
  31. package/v0.6/ipc.schema.json +0 -7375
  32. package/v0.6/world.schema.json +0 -1062
  33. package/v0.7/common.schema.json +0 -478
  34. package/v0.7/ipc.schema.json +0 -7905
  35. package/v0.7/world.schema.json +0 -1062
  36. package/v0.8/ipc.schema.json +0 -7945
  37. package/v0.9/input.schema.json +0 -518
  38. package/v0.9/ipc.schema.json +0 -8613
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyprune/schema",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Versioned JSON Schemas for Hyprune world packages and the IPC protocol, with a validator and CLI for world authors",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,85 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://hyprune.com/schema/v0/common.schema.json",
4
- "title": "Hyprune v0 common",
5
- "$defs": {
6
- "id": {
7
- "type": "string",
8
- "minLength": 1,
9
- "maxLength": 128,
10
- "pattern": "^[a-z][a-z0-9-]*(\\.[a-z][a-z0-9-]*)+$"
11
- },
12
- "slug": {
13
- "type": "string",
14
- "minLength": 1,
15
- "maxLength": 64,
16
- "pattern": "^[a-z][a-z0-9-]*$"
17
- },
18
- "version": {
19
- "type": "string",
20
- "minLength": 1,
21
- "maxLength": 256,
22
- "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$"
23
- },
24
- "path": {
25
- "type": "string",
26
- "minLength": 1,
27
- "maxLength": 512,
28
- "pattern": "^(?!.*(?:^|/)\\.{1,2}(?:/|$))[A-Za-z0-9_.-]+(?:/[A-Za-z0-9_.-]+)*$"
29
- },
30
- "pose": {
31
- "type": "object",
32
- "properties": {
33
- "position": {
34
- "type": "array",
35
- "items": {
36
- "type": "number"
37
- },
38
- "minItems": 3,
39
- "maxItems": 3
40
- },
41
- "rotation": {
42
- "type": "array",
43
- "items": {
44
- "type": "number"
45
- },
46
- "minItems": 4,
47
- "maxItems": 4
48
- }
49
- },
50
- "required": [
51
- "position",
52
- "rotation"
53
- ],
54
- "additionalProperties": false
55
- },
56
- "index": {
57
- "type": "integer",
58
- "minimum": 0
59
- },
60
- "capability": {
61
- "enum": [
62
- "state.read",
63
- "world.control",
64
- "surface.control",
65
- "movement.control",
66
- "shell.control",
67
- "runtime.control"
68
- ]
69
- },
70
- "extensions": {
71
- "type": "object",
72
- "propertyNames": {
73
- "$ref": "common.schema.json#/$defs/id"
74
- },
75
- "additionalProperties": {
76
- "type": "object"
77
- }
78
- },
79
- "revision": {
80
- "type": "integer",
81
- "minimum": 0,
82
- "maximum": 9007199254740991
83
- }
84
- }
85
- }
@@ -1,121 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://hyprune.com/schema/v0/extension.schema.json",
4
- "title": "Hyprune v0 extension",
5
- "type": "object",
6
- "properties": {
7
- "manifestVersion": {
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
- "apiVersion": {
32
- "const": "0.1"
33
- },
34
- "runtime": {
35
- "const": "process"
36
- },
37
- "entrypoint": {
38
- "$ref": "common.schema.json#/$defs/path"
39
- },
40
- "capabilities": {
41
- "type": "array",
42
- "items": {
43
- "$ref": "common.schema.json#/$defs/capability"
44
- },
45
- "minItems": 0,
46
- "uniqueItems": true
47
- },
48
- "contributes": {
49
- "type": "object",
50
- "properties": {
51
- "screenTypes": {
52
- "type": "array",
53
- "items": {
54
- "$ref": "common.schema.json#/$defs/path"
55
- },
56
- "minItems": 0,
57
- "uniqueItems": true
58
- },
59
- "widgets": {
60
- "type": "array",
61
- "items": {
62
- "$ref": "common.schema.json#/$defs/id"
63
- },
64
- "minItems": 0,
65
- "uniqueItems": true
66
- },
67
- "movementModes": {
68
- "type": "array",
69
- "items": {
70
- "$ref": "common.schema.json#/$defs/id"
71
- },
72
- "minItems": 0,
73
- "uniqueItems": true
74
- },
75
- "integrations": {
76
- "type": "array",
77
- "items": {
78
- "$ref": "common.schema.json#/$defs/id"
79
- },
80
- "minItems": 0,
81
- "uniqueItems": true
82
- }
83
- },
84
- "required": [],
85
- "additionalProperties": false
86
- },
87
- "sandbox": {
88
- "type": "object",
89
- "properties": {
90
- "required": {
91
- "const": true
92
- },
93
- "network": {
94
- "const": false
95
- }
96
- },
97
- "required": [
98
- "required",
99
- "network"
100
- ],
101
- "additionalProperties": false
102
- },
103
- "extensions": {
104
- "$ref": "common.schema.json#/$defs/extensions"
105
- }
106
- },
107
- "required": [
108
- "manifestVersion",
109
- "id",
110
- "version",
111
- "name",
112
- "license",
113
- "apiVersion",
114
- "runtime",
115
- "entrypoint",
116
- "capabilities",
117
- "contributes",
118
- "sandbox"
119
- ],
120
- "additionalProperties": false
121
- }