@mhome/app-facade-protocol 1.93.0 → 1.109.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 (34) hide show
  1. package/README.md +13 -1
  2. package/contract/automation-presentation-v1.md +76 -0
  3. package/contract/automation-v1.md +28 -0
  4. package/contract/client-space-focus-v1.md +26 -0
  5. package/contract/entity-presentation-v1.md +24 -1
  6. package/contract/integration-presentation-v1.md +1 -1
  7. package/contract/plugin-preview-v1.md +16 -0
  8. package/contract/reference-presentation-v1.md +35 -0
  9. package/contract/resource-read-v1.md +2 -2
  10. package/contract/space-presentation-v1.md +45 -0
  11. package/contract/storage-v1.md +3 -1
  12. package/contract/widget-presentation-v1.md +36 -0
  13. package/contract/widget-writes-v1.md +44 -0
  14. package/fixtures/authorization/decisions.json +96 -0
  15. package/fixtures/entity-presentation.conformance.json +216 -0
  16. package/fixtures/nfc.conformance.json +442 -0
  17. package/fixtures/presentation/cases.json +48 -50
  18. package/fixtures/reference-presentation.v1.json +5 -0
  19. package/fixtures/routing/cases.json +192 -0
  20. package/fixtures/widget-presentation.v1.json +96 -0
  21. package/manifest/app-facade.v1.json +87 -6
  22. package/manifest/authorization.v1.json +75 -99
  23. package/manifest/host-provision-targets.v1.json +1 -1
  24. package/manifest/hub-targets.v1.json +1 -1
  25. package/manifest/pod-targets.v1.json +1 -1
  26. package/manifest/presentation-times.v1.json +50 -1
  27. package/manifest/routing.v1.json +14 -4
  28. package/manifest/targets.v1.json +1 -1
  29. package/package.json +1 -1
  30. package/protocol.json +1 -1
  31. package/schema/automation-presentation.v1.schema.json +602 -0
  32. package/schema/automation.v1.schema.json +142 -0
  33. package/schema/entity-presentation.v1.schema.json +111 -0
  34. package/schema/routing.v1.schema.json +5 -1
@@ -0,0 +1,142 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://mhome.ai/schema/automation.v1.schema.json",
4
+ "$defs": {
5
+ "startInput": {
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "automationId": {
10
+ "type": "string",
11
+ "pattern": "\\S"
12
+ },
13
+ "timezone": {
14
+ "type": "string",
15
+ "pattern": "\\S"
16
+ },
17
+ "locationSymbol": {
18
+ "type": "string"
19
+ }
20
+ },
21
+ "required": [
22
+ "automationId"
23
+ ]
24
+ },
25
+ "stopInput": {
26
+ "type": "object",
27
+ "additionalProperties": false,
28
+ "properties": {
29
+ "automationId": {
30
+ "type": "string",
31
+ "pattern": "\\S"
32
+ }
33
+ },
34
+ "required": [
35
+ "automationId"
36
+ ]
37
+ },
38
+ "controlOutput": {
39
+ "type": "object",
40
+ "additionalProperties": false,
41
+ "properties": {
42
+ "automationId": {
43
+ "type": "string",
44
+ "pattern": "\\S"
45
+ },
46
+ "enabled": {
47
+ "type": "boolean"
48
+ },
49
+ "running": {
50
+ "type": "boolean"
51
+ }
52
+ },
53
+ "required": [
54
+ "automationId",
55
+ "enabled",
56
+ "running"
57
+ ]
58
+ },
59
+ "renameInput": {
60
+ "type": "object",
61
+ "additionalProperties": false,
62
+ "properties": {
63
+ "automationId": {
64
+ "type": "string",
65
+ "pattern": "\\S"
66
+ },
67
+ "name": {
68
+ "type": "string",
69
+ "pattern": "\\S"
70
+ }
71
+ },
72
+ "required": [
73
+ "automationId",
74
+ "name"
75
+ ]
76
+ },
77
+ "renameOutput": {
78
+ "type": "object",
79
+ "additionalProperties": false,
80
+ "properties": {
81
+ "automationId": {
82
+ "type": "string",
83
+ "pattern": "\\S"
84
+ },
85
+ "name": {
86
+ "type": "string",
87
+ "pattern": "\\S"
88
+ }
89
+ },
90
+ "required": [
91
+ "automationId",
92
+ "name"
93
+ ]
94
+ },
95
+ "descriptionInput": {
96
+ "type": "object",
97
+ "additionalProperties": false,
98
+ "properties": {
99
+ "automationId": {
100
+ "type": "string",
101
+ "pattern": "\\S"
102
+ },
103
+ "expectedScriptHash": {
104
+ "type": "string",
105
+ "pattern": "\\S"
106
+ },
107
+ "description": {
108
+ "type": "string",
109
+ "pattern": "\\S"
110
+ },
111
+ "varDescription": {
112
+ "type": "object",
113
+ "additionalProperties": {
114
+ "type": "string",
115
+ "pattern": "\\S"
116
+ }
117
+ }
118
+ },
119
+ "required": [
120
+ "automationId",
121
+ "expectedScriptHash"
122
+ ],
123
+ "anyOf": [
124
+ {
125
+ "required": [
126
+ "description"
127
+ ]
128
+ },
129
+ {
130
+ "required": [
131
+ "varDescription"
132
+ ],
133
+ "properties": {
134
+ "varDescription": {
135
+ "minProperties": 1
136
+ }
137
+ }
138
+ }
139
+ ]
140
+ }
141
+ }
142
+ }
@@ -78,6 +78,117 @@
78
78
  }
79
79
  }
80
80
  }
81
+ },
82
+ "metaInput": {
83
+ "type": "object",
84
+ "additionalProperties": false,
85
+ "required": [
86
+ "entityType",
87
+ "ids"
88
+ ],
89
+ "properties": {
90
+ "entityType": {
91
+ "type": "string",
92
+ "pattern": "\\S"
93
+ },
94
+ "ids": {
95
+ "type": "array",
96
+ "minItems": 1,
97
+ "maxItems": 100,
98
+ "items": {
99
+ "type": "string",
100
+ "pattern": "\\S"
101
+ }
102
+ }
103
+ }
104
+ },
105
+ "metadata": {
106
+ "type": "object",
107
+ "additionalProperties": false,
108
+ "required": [
109
+ "id",
110
+ "entityType",
111
+ "displayName",
112
+ "group"
113
+ ],
114
+ "properties": {
115
+ "id": {
116
+ "type": "string",
117
+ "pattern": "\\S"
118
+ },
119
+ "entityType": {
120
+ "type": "string",
121
+ "pattern": "\\S"
122
+ },
123
+ "displayName": {
124
+ "type": "string"
125
+ },
126
+ "group": {
127
+ "type": "boolean"
128
+ }
129
+ }
130
+ },
131
+ "metaItem": {
132
+ "oneOf": [
133
+ {
134
+ "type": "object",
135
+ "additionalProperties": false,
136
+ "required": [
137
+ "requestedId",
138
+ "found",
139
+ "resource"
140
+ ],
141
+ "properties": {
142
+ "requestedId": {
143
+ "type": "string",
144
+ "pattern": "\\S"
145
+ },
146
+ "found": {
147
+ "const": true
148
+ },
149
+ "resource": {
150
+ "$ref": "#/$defs/metadata"
151
+ }
152
+ }
153
+ },
154
+ {
155
+ "type": "object",
156
+ "additionalProperties": false,
157
+ "required": [
158
+ "requestedId",
159
+ "found",
160
+ "reason"
161
+ ],
162
+ "properties": {
163
+ "requestedId": {
164
+ "type": "string",
165
+ "pattern": "\\S"
166
+ },
167
+ "found": {
168
+ "const": false
169
+ },
170
+ "reason": {
171
+ "const": "not_found"
172
+ }
173
+ }
174
+ }
175
+ ]
176
+ },
177
+ "metaOutput": {
178
+ "type": "object",
179
+ "additionalProperties": false,
180
+ "required": [
181
+ "items"
182
+ ],
183
+ "properties": {
184
+ "items": {
185
+ "type": "array",
186
+ "maxItems": 100,
187
+ "items": {
188
+ "$ref": "#/$defs/metaItem"
189
+ }
190
+ }
191
+ }
81
192
  }
82
193
  }
83
194
  }
@@ -51,7 +51,8 @@
51
51
  "scopeModeTargets",
52
52
  "hubPrefixes",
53
53
  "requestPlacementPrefixes",
54
- "hubTargets"
54
+ "hubTargets",
55
+ "connectionTargets"
55
56
  ],
56
57
  "properties": {
57
58
  "cloudPrefixes": {
@@ -71,6 +72,9 @@
71
72
  },
72
73
  "hubTargets": {
73
74
  "$ref": "#/$defs/targetList"
75
+ },
76
+ "connectionTargets": {
77
+ "$ref": "#/$defs/targetList"
74
78
  }
75
79
  }
76
80
  }