@mhome/core-protocol 1.62.1 → 1.72.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/contract/extension-preview-v1.md +54 -0
- package/contract/extension-sources-v1.md +107 -0
- package/contract/{node-metadata-v1.md → node-metadata-v2.md} +50 -7
- package/contract/storage-v1.md +202 -0
- package/fixtures/extension-sources.conformance.json +520 -0
- package/fixtures/operation-timeouts.conformance.json +242 -25
- package/manifest/core.v1.json +22 -4
- package/manifest/operation-timeouts.v1.json +3 -3
- package/package.json +1 -1
- package/protocol.json +4 -2
- package/schema/node-metadata.v2.schema.json +129 -0
- package/schema/storage.v1.schema.json +548 -0
- package/schema/node-metadata.v1.schema.json +0 -65
|
@@ -1,27 +1,244 @@
|
|
|
1
1
|
[
|
|
2
|
-
{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
2
|
+
{
|
|
3
|
+
"target": "/app/widget/list",
|
|
4
|
+
"payload": {},
|
|
5
|
+
"operation": "coreRequest",
|
|
6
|
+
"totalMs": 60000
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"target": "/harness/test/session/open",
|
|
10
|
+
"payload": {},
|
|
11
|
+
"operation": "harnessSessionOpen",
|
|
12
|
+
"totalMs": 150000
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"target": "/app/automation/save",
|
|
16
|
+
"payload": {
|
|
17
|
+
"input": {
|
|
18
|
+
"script": {
|
|
19
|
+
"scripts": {
|
|
20
|
+
"lighting": "source"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"operation": "scriptSave",
|
|
26
|
+
"totalMs": 60000,
|
|
27
|
+
"lionWaitMs": 90000
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"target": "/app/automation/verify",
|
|
31
|
+
"payload": {
|
|
32
|
+
"input": {
|
|
33
|
+
"script": {
|
|
34
|
+
"scripts": {
|
|
35
|
+
"lighting": "source"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"operation": "scriptValidation",
|
|
41
|
+
"totalMs": 60000,
|
|
42
|
+
"lionWaitMs": 85000
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"target": "/app/automation/save",
|
|
46
|
+
"payload": {
|
|
47
|
+
"input": {
|
|
48
|
+
"script": {
|
|
49
|
+
"scripts": {
|
|
50
|
+
"lighting": "source"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"operation": "scriptSave",
|
|
56
|
+
"totalMs": 60000
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"target": "/invoke/app/automation/save",
|
|
60
|
+
"payload": {
|
|
61
|
+
"call": {
|
|
62
|
+
"input": {
|
|
63
|
+
"script": {
|
|
64
|
+
"scripts": {
|
|
65
|
+
"lighting": "source"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"operation": "scriptSave",
|
|
72
|
+
"totalMs": 60000
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"target": "/dispatch/agent/app/automation/verify",
|
|
76
|
+
"payload": {
|
|
77
|
+
"call": {
|
|
78
|
+
"input": {
|
|
79
|
+
"script": {
|
|
80
|
+
"scripts": {
|
|
81
|
+
"lighting": "source"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"operation": "scriptValidation",
|
|
88
|
+
"totalMs": 60000
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"target": "/dispatch/app/automation/save",
|
|
92
|
+
"payload": {
|
|
93
|
+
"call": {
|
|
94
|
+
"input": {
|
|
95
|
+
"script": {
|
|
96
|
+
"scripts": {
|
|
97
|
+
"lighting": "source"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"operation": "scriptSave",
|
|
104
|
+
"totalMs": 60000
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"target": "/app/automation/save",
|
|
108
|
+
"payload": {
|
|
109
|
+
"input": {
|
|
110
|
+
"script": {
|
|
111
|
+
"scripts": {}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"operation": "coreRequest",
|
|
116
|
+
"totalMs": 60000
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"target": "/app/automation/save",
|
|
120
|
+
"payload": {
|
|
121
|
+
"script": {
|
|
122
|
+
"scripts": {
|
|
123
|
+
"lighting": "source"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"operation": "coreRequest",
|
|
128
|
+
"totalMs": 60000
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"target": "/app/automation/save",
|
|
132
|
+
"payload": {
|
|
133
|
+
"input": {
|
|
134
|
+
"script": {
|
|
135
|
+
"scripts": []
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"operation": "coreRequest",
|
|
140
|
+
"totalMs": 60000
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"target": "/app/automation/snapshot/rollback",
|
|
144
|
+
"payload": {},
|
|
145
|
+
"operation": "scriptSave",
|
|
146
|
+
"totalMs": 60000
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"target": "/app/presentation/automation/copy",
|
|
150
|
+
"payload": {},
|
|
151
|
+
"operation": "scriptSave",
|
|
152
|
+
"totalMs": 60000
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"target": "/app/presentation/automation/enroll",
|
|
156
|
+
"payload": {},
|
|
157
|
+
"operation": "scriptSave",
|
|
158
|
+
"totalMs": 60000
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"target": "/app/presentation/automation/overview/save",
|
|
162
|
+
"payload": {},
|
|
163
|
+
"operation": "scriptSave",
|
|
164
|
+
"totalMs": 60000
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"target": "/bridge/automation/compile",
|
|
168
|
+
"payload": {
|
|
169
|
+
"script": {
|
|
170
|
+
"scripts": {
|
|
171
|
+
"lighting": "source"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"operation": "scriptValidation",
|
|
176
|
+
"totalMs": 60000
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"target": "/app/integration/entity/refresh",
|
|
180
|
+
"payload": {},
|
|
181
|
+
"operation": "entityRefresh",
|
|
182
|
+
"totalMs": 85000,
|
|
183
|
+
"lionWaitMs": 90000
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"target": "/invoke/app/integration/entity/refresh",
|
|
187
|
+
"payload": {},
|
|
188
|
+
"operation": "entityRefresh",
|
|
189
|
+
"totalMs": 85000,
|
|
190
|
+
"lionWaitMs": 90000
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"target": "/dispatch/app/integration/entity/refresh",
|
|
194
|
+
"payload": {},
|
|
195
|
+
"operation": "entityRefresh",
|
|
196
|
+
"totalMs": 85000,
|
|
197
|
+
"lionWaitMs": 90000
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"target": "/dispatch/agent/app/integration/entity/refresh",
|
|
201
|
+
"payload": {},
|
|
202
|
+
"operation": "entityRefresh",
|
|
203
|
+
"totalMs": 85000,
|
|
204
|
+
"lionWaitMs": 90000
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"target": "/bridge/automation/parse",
|
|
208
|
+
"payload": {
|
|
209
|
+
"script": {
|
|
210
|
+
"scripts": {
|
|
211
|
+
"lighting": "source"
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"operation": "scriptValidation",
|
|
216
|
+
"totalMs": 60000,
|
|
217
|
+
"lionWaitMs": 85000
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"target": "/bridge/automation/format",
|
|
221
|
+
"payload": {
|
|
222
|
+
"script": {
|
|
223
|
+
"scripts": {
|
|
224
|
+
"lighting": "source"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"operation": "scriptValidation",
|
|
229
|
+
"totalMs": 60000,
|
|
230
|
+
"lionWaitMs": 85000
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"target": "/dispatch/hub/revoke/start",
|
|
234
|
+
"payload": {},
|
|
235
|
+
"operation": "hubMigration",
|
|
236
|
+
"totalMs": 600000
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"target": "/bridge/hub/revoke/dataUploaded",
|
|
240
|
+
"payload": {},
|
|
241
|
+
"operation": "hubMigration",
|
|
242
|
+
"totalMs": 600000
|
|
243
|
+
}
|
|
27
244
|
]
|
package/manifest/core.v1.json
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest": "mhome.core.v1",
|
|
3
|
-
"contractVersion": "1.
|
|
3
|
+
"contractVersion": "1.72.0",
|
|
4
4
|
"protocols": {
|
|
5
|
+
"extensionSources": {
|
|
6
|
+
"contract": "contract/extension-sources-v1.md",
|
|
7
|
+
"fixtures": "fixtures/extension-sources.conformance.json",
|
|
8
|
+
"snapshotTarget": "/dispatch/extension/sources/snapshot",
|
|
9
|
+
"readTarget": "/dispatch/extension/sources/read"
|
|
10
|
+
},
|
|
5
11
|
"agentGateway": {
|
|
6
12
|
"submitTarget": "/agent/submit",
|
|
7
13
|
"replyTarget": "/{nodeType}/agent/reply"
|
|
@@ -24,8 +30,10 @@
|
|
|
24
30
|
"interactionFlowSubmissionRetryTarget": "/{nodeType}/interaction-flow/submission/retry",
|
|
25
31
|
"interactionFlowCloseTarget": "/{nodeType}/interaction-flow/close",
|
|
26
32
|
"metadataTarget": "/node/metadata",
|
|
27
|
-
"metadataSchema": "schema/node-metadata.
|
|
28
|
-
"metadataContract": "contract/node-metadata-
|
|
33
|
+
"metadataSchema": "schema/node-metadata.v2.schema.json",
|
|
34
|
+
"metadataContract": "contract/node-metadata-v2.md",
|
|
35
|
+
"previewApplyLocalPath": "/v1/plugins/preview/apply",
|
|
36
|
+
"previewStatusLocalPath": "/v1/plugins/preview/status"
|
|
29
37
|
},
|
|
30
38
|
"audioBridgePlugin": {
|
|
31
39
|
"version": "v1",
|
|
@@ -51,7 +59,9 @@
|
|
|
51
59
|
"commandsSchema": "schema/messaging-commands.v1.schema.json"
|
|
52
60
|
},
|
|
53
61
|
"storage": {
|
|
54
|
-
"version": "storage.v1"
|
|
62
|
+
"version": "storage.v1",
|
|
63
|
+
"schema": "schema/storage.v1.schema.json",
|
|
64
|
+
"contract": "contract/storage-v1.md"
|
|
55
65
|
},
|
|
56
66
|
"hostDelivery": {
|
|
57
67
|
"externalProtocolVersion": 26,
|
|
@@ -73,6 +83,14 @@
|
|
|
73
83
|
"statusPath": "/v1/permissions",
|
|
74
84
|
"requestPath": "/internal/permissions/request",
|
|
75
85
|
"settingsPath": "/internal/permissions/open-settings"
|
|
86
|
+
},
|
|
87
|
+
"extensionPreview": {
|
|
88
|
+
"contract": "contract/extension-preview-v1.md",
|
|
89
|
+
"applyTarget": "/app/integration/preview/apply",
|
|
90
|
+
"statusTarget": "/app/integration/preview/status",
|
|
91
|
+
"transferPrepareTarget": "/app/resource/transfer/prepare",
|
|
92
|
+
"transferReadTarget": "/bridge/resource/transfer/read",
|
|
93
|
+
"runtimeEnvReadTarget": "/dispatch/integration/preview/env/read"
|
|
76
94
|
}
|
|
77
95
|
},
|
|
78
96
|
"hostManagement": {
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
},
|
|
23
23
|
"selectors": {
|
|
24
24
|
"forwardPrefixes": ["/invoke", "/dispatch/agent", "/dispatch"],
|
|
25
|
-
"storedScriptSave": ["/automation/snapshot/rollback", "/app/
|
|
26
|
-
"sourceScriptSave": ["/
|
|
27
|
-
"sourceScriptValidation": ["/app/automation/verify", "/bridge/automation/parse", "/bridge/automation/format", "/bridge/automation/verify", "/
|
|
25
|
+
"storedScriptSave": ["/app/automation/snapshot/rollback", "/app/presentation/automation/overview/save", "/app/presentation/automation/copy", "/app/presentation/automation/enroll"],
|
|
26
|
+
"sourceScriptSave": ["/app/automation/save"],
|
|
27
|
+
"sourceScriptValidation": ["/app/automation/verify", "/bridge/automation/parse", "/bridge/automation/format", "/bridge/automation/verify", "/bridge/automation/compile", "/bridge/agent/automation/compile"],
|
|
28
28
|
"ordinaryOverrides": { "/hub/revoke/start": "hubMigration", "/bridge/hub/revoke/dataUploaded": "hubMigration", "/app/integration/entity/refresh": "entityRefresh", "/harness/test/session/open": "harnessSessionOpen" }
|
|
29
29
|
}
|
|
30
30
|
}
|
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"protocol": "mhome.core",
|
|
3
|
-
"contractVersion": "1.
|
|
3
|
+
"contractVersion": "1.72.0",
|
|
4
4
|
"manifest": "manifest/core.v1.json",
|
|
5
5
|
"schemas": {
|
|
6
|
+
"storage": "schema/storage.v1.schema.json",
|
|
6
7
|
"hostManagementRequest": "schema/host-management-request.v1.schema.json",
|
|
7
8
|
"hostPermissions": "schema/host-permissions.schema.json",
|
|
8
9
|
"normalizedInbound": "schema/normalized-inbound.v4.schema.json",
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
"normalizedInbound": "fixtures/normalized-inbound.conformance.json",
|
|
15
16
|
"messagingCommands": "fixtures/messaging-commands.conformance.json",
|
|
16
17
|
"interactionFlowNode": "fixtures/interaction-flow-node.conformance.json",
|
|
17
|
-
"recipientId": "fixtures/recipient-id.conformance.json"
|
|
18
|
+
"recipientId": "fixtures/recipient-id.conformance.json",
|
|
19
|
+
"extensionSources": "fixtures/extension-sources.conformance.json"
|
|
18
20
|
}
|
|
19
21
|
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"required": [
|
|
6
|
+
"schemaVersion",
|
|
7
|
+
"delivery",
|
|
8
|
+
"nodeType",
|
|
9
|
+
"serviceId",
|
|
10
|
+
"serviceVersion",
|
|
11
|
+
"source"
|
|
12
|
+
],
|
|
13
|
+
"properties": {
|
|
14
|
+
"schemaVersion": {
|
|
15
|
+
"const": "meow.node.metadata.v2"
|
|
16
|
+
},
|
|
17
|
+
"delivery": {
|
|
18
|
+
"enum": [
|
|
19
|
+
"host",
|
|
20
|
+
"firmware"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"nodeType": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"minLength": 1
|
|
26
|
+
},
|
|
27
|
+
"serviceId": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"minLength": 1
|
|
30
|
+
},
|
|
31
|
+
"serviceVersion": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"minLength": 1
|
|
34
|
+
},
|
|
35
|
+
"source": {
|
|
36
|
+
"oneOf": [
|
|
37
|
+
{
|
|
38
|
+
"type": "object",
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"required": [
|
|
41
|
+
"kind",
|
|
42
|
+
"releaseManifest"
|
|
43
|
+
],
|
|
44
|
+
"properties": {
|
|
45
|
+
"kind": {
|
|
46
|
+
"const": "published"
|
|
47
|
+
},
|
|
48
|
+
"releaseManifest": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"required": [
|
|
52
|
+
"schemaVersion",
|
|
53
|
+
"kind",
|
|
54
|
+
"manifest",
|
|
55
|
+
"signature"
|
|
56
|
+
],
|
|
57
|
+
"properties": {
|
|
58
|
+
"schemaVersion": {
|
|
59
|
+
"const": 1
|
|
60
|
+
},
|
|
61
|
+
"kind": {
|
|
62
|
+
"enum": [
|
|
63
|
+
"meow.plugin.manifest-bundle",
|
|
64
|
+
"meow.node.firmware-manifest-bundle"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"manifest": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"minLength": 1
|
|
70
|
+
},
|
|
71
|
+
"signature": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"minLength": 1
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"type": "object",
|
|
81
|
+
"additionalProperties": false,
|
|
82
|
+
"required": [
|
|
83
|
+
"kind",
|
|
84
|
+
"manifest",
|
|
85
|
+
"hostProof"
|
|
86
|
+
],
|
|
87
|
+
"properties": {
|
|
88
|
+
"kind": {
|
|
89
|
+
"const": "preview"
|
|
90
|
+
},
|
|
91
|
+
"manifest": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"minLength": 1,
|
|
94
|
+
"maxLength": 1048576
|
|
95
|
+
},
|
|
96
|
+
"hostProof": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"minLength": 1,
|
|
99
|
+
"maxLength": 16384
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"allOf": [
|
|
107
|
+
{
|
|
108
|
+
"if": {
|
|
109
|
+
"properties": {
|
|
110
|
+
"delivery": {
|
|
111
|
+
"const": "firmware"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"then": {
|
|
116
|
+
"properties": {
|
|
117
|
+
"source": {
|
|
118
|
+
"properties": {
|
|
119
|
+
"kind": {
|
|
120
|
+
"const": "published"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"type": "object"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
}
|