@mhome/app-facade-protocol 1.64.0 → 1.69.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.
- package/README.md +37 -6
- package/contract/entity-presentation-v1.md +1 -1
- package/contract/integration-presentation-v1.md +27 -0
- package/contract/resource-read-v1.md +75 -0
- package/fixtures/group.conformance.json +383 -0
- package/fixtures/integration-presentation.conformance.json +206 -0
- package/fixtures/presentation/cases.json +815 -189
- package/fixtures/routing/cases.json +32 -0
- package/manifest/app-facade.v1.json +34 -1
- package/manifest/authorization.v1.json +16 -10
- package/manifest/host-provision-targets.v1.json +1 -1
- package/manifest/hub-targets.v1.json +1 -1
- package/manifest/pod-targets.v1.json +1 -1
- package/manifest/routing.v1.json +3 -2
- package/manifest/targets.v1.json +1 -1
- package/package.json +1 -1
- package/protocol.json +5 -1
- package/schema/facade-response.v1.schema.json +7 -45
- package/schema/group.v1.schema.json +474 -0
- package/schema/integration-presentation.v1.schema.json +81 -0
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
{
|
|
2
|
+
"input": {
|
|
3
|
+
"valid": [
|
|
4
|
+
{
|
|
5
|
+
"integrationId": "basic.device"
|
|
6
|
+
}
|
|
7
|
+
],
|
|
8
|
+
"invalid": [
|
|
9
|
+
{},
|
|
10
|
+
{
|
|
11
|
+
"integration": "basic.device"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"integrationId": ""
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"integrationId": " "
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"integrationId": "basic.device",
|
|
21
|
+
"scopeId": "other"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"integrationId": 7
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"model": {
|
|
29
|
+
"integrationId": "basic.device",
|
|
30
|
+
"displayName": "Devices",
|
|
31
|
+
"iconUrl": "https://example.invalid/device.png",
|
|
32
|
+
"entityNames": {
|
|
33
|
+
"basic.device.Device": "Device",
|
|
34
|
+
"basic.device.Component": "Component"
|
|
35
|
+
},
|
|
36
|
+
"standaloneEntityTypes": [
|
|
37
|
+
"basic.device.Device"
|
|
38
|
+
],
|
|
39
|
+
"entityGroupEnabled": {
|
|
40
|
+
"basic.device.Device": true
|
|
41
|
+
},
|
|
42
|
+
"implIntegrations": [
|
|
43
|
+
{
|
|
44
|
+
"integration": "example.device",
|
|
45
|
+
"name": "Example Provider",
|
|
46
|
+
"iconUrl": "https://example.invalid/provider.png"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"integration": "other.device",
|
|
50
|
+
"name": "Other Provider",
|
|
51
|
+
"iconUrl": ""
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"capabilities": {
|
|
55
|
+
"command.onOff": {
|
|
56
|
+
"displayName": "Power",
|
|
57
|
+
"description": "Switch power.",
|
|
58
|
+
"visibility": "full",
|
|
59
|
+
"tag": "on/off"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"output": {
|
|
64
|
+
"valid": [
|
|
65
|
+
{
|
|
66
|
+
"integrationId": "basic.device",
|
|
67
|
+
"integrationNames": {
|
|
68
|
+
"basic.device": "Devices",
|
|
69
|
+
"example.device": "Example Provider",
|
|
70
|
+
"other.device": "Other Provider"
|
|
71
|
+
},
|
|
72
|
+
"integrationIconUrls": {
|
|
73
|
+
"basic.device": "https://example.invalid/device.png",
|
|
74
|
+
"example.device": "https://example.invalid/provider.png"
|
|
75
|
+
},
|
|
76
|
+
"typeNames": {
|
|
77
|
+
"basic.device.Device": "Device",
|
|
78
|
+
"basic.device.Component": "Component"
|
|
79
|
+
},
|
|
80
|
+
"twinNames": {
|
|
81
|
+
"basic.device.Light": "Light"
|
|
82
|
+
},
|
|
83
|
+
"entityStandalone": {
|
|
84
|
+
"basic.device.Device": true,
|
|
85
|
+
"basic.device.Component": false
|
|
86
|
+
},
|
|
87
|
+
"groupSupported": {
|
|
88
|
+
"basic.device.Device": true
|
|
89
|
+
},
|
|
90
|
+
"capabilities": [
|
|
91
|
+
{
|
|
92
|
+
"capabilityId": "basic.device.command.onOff",
|
|
93
|
+
"type": "COMMAND",
|
|
94
|
+
"displayName": "Power",
|
|
95
|
+
"description": "Switch power.",
|
|
96
|
+
"visibility": "full",
|
|
97
|
+
"tag": "on/off"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"invalid": [
|
|
103
|
+
{
|
|
104
|
+
"integrationId": "basic.device",
|
|
105
|
+
"integrationNames": {
|
|
106
|
+
"basic.device": "Devices",
|
|
107
|
+
"example.device": "Example Provider",
|
|
108
|
+
"other.device": "Other Provider"
|
|
109
|
+
},
|
|
110
|
+
"integrationIconUrls": {
|
|
111
|
+
"basic.device": "https://example.invalid/device.png",
|
|
112
|
+
"example.device": "https://example.invalid/provider.png"
|
|
113
|
+
},
|
|
114
|
+
"typeNames": {
|
|
115
|
+
"basic.device.Device": "Device",
|
|
116
|
+
"basic.device.Component": "Component"
|
|
117
|
+
},
|
|
118
|
+
"twinNames": {
|
|
119
|
+
"basic.device.Light": "Light"
|
|
120
|
+
},
|
|
121
|
+
"entityStandalone": {
|
|
122
|
+
"basic.device.Device": true,
|
|
123
|
+
"basic.device.Component": false
|
|
124
|
+
},
|
|
125
|
+
"groupSupported": {
|
|
126
|
+
"basic.device.Device": true
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"integrationId": "basic.device",
|
|
131
|
+
"integrationNames": {
|
|
132
|
+
"basic.device": "Devices",
|
|
133
|
+
"example.device": "Example Provider",
|
|
134
|
+
"other.device": "Other Provider"
|
|
135
|
+
},
|
|
136
|
+
"integrationIconUrls": {
|
|
137
|
+
"basic.device": "https://example.invalid/device.png",
|
|
138
|
+
"example.device": "https://example.invalid/provider.png"
|
|
139
|
+
},
|
|
140
|
+
"typeNames": {
|
|
141
|
+
"basic.device.Device": "Device",
|
|
142
|
+
"basic.device.Component": "Component"
|
|
143
|
+
},
|
|
144
|
+
"twinNames": {
|
|
145
|
+
"basic.device.Light": "Light"
|
|
146
|
+
},
|
|
147
|
+
"entityStandalone": {
|
|
148
|
+
"basic.device.Device": true,
|
|
149
|
+
"basic.device.Component": false
|
|
150
|
+
},
|
|
151
|
+
"groupSupported": {
|
|
152
|
+
"basic.device.Device": true
|
|
153
|
+
},
|
|
154
|
+
"capabilities": [
|
|
155
|
+
{
|
|
156
|
+
"capabilityId": "basic.device.command.onOff",
|
|
157
|
+
"type": "COMMAND",
|
|
158
|
+
"displayName": "Power",
|
|
159
|
+
"description": "Switch power.",
|
|
160
|
+
"visibility": "full",
|
|
161
|
+
"tag": "on/off"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"entityEnabled": {
|
|
165
|
+
"basic.device.Device": true
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"integrationId": "basic.device",
|
|
170
|
+
"integrationNames": {
|
|
171
|
+
"basic.device": "Devices",
|
|
172
|
+
"example.device": "Example Provider",
|
|
173
|
+
"other.device": "Other Provider"
|
|
174
|
+
},
|
|
175
|
+
"integrationIconUrls": {
|
|
176
|
+
"basic.device": "https://example.invalid/device.png",
|
|
177
|
+
"example.device": "https://example.invalid/provider.png"
|
|
178
|
+
},
|
|
179
|
+
"typeNames": {
|
|
180
|
+
"basic.device.Device": "Device",
|
|
181
|
+
"basic.device.Component": "Component"
|
|
182
|
+
},
|
|
183
|
+
"twinNames": {
|
|
184
|
+
"basic.device.Light": "Light"
|
|
185
|
+
},
|
|
186
|
+
"entityStandalone": {
|
|
187
|
+
"basic.device.Device": true,
|
|
188
|
+
"basic.device.Component": false
|
|
189
|
+
},
|
|
190
|
+
"groupSupported": {
|
|
191
|
+
"basic.device.Device": "yes"
|
|
192
|
+
},
|
|
193
|
+
"capabilities": [
|
|
194
|
+
{
|
|
195
|
+
"capabilityId": "basic.device.command.onOff",
|
|
196
|
+
"type": "COMMAND",
|
|
197
|
+
"displayName": "Power",
|
|
198
|
+
"description": "Switch power.",
|
|
199
|
+
"visibility": "full",
|
|
200
|
+
"tag": "on/off"
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
}
|