@mhome/app-facade-protocol 1.37.4 → 1.38.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.
- package/manifest/app-facade.v1.json +6 -3
- 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 +5 -2
- package/manifest/targets.v1.json +1 -1
- package/package.json +1 -1
- package/protocol.json +1 -1
- package/schema/facade-call.v1.schema.json +5 -4
- package/schema/host-provision.v1.schema.json +6 -5
- package/schema/hub-state.v1.schema.json +2 -2
- package/schema/local-hub-state.v1.schema.json +2 -2
- package/schema/person.v1.schema.json +52 -0
- package/schema/pod-commission.v1.schema.json +9 -9
- package/schema/pod-credential-status.v1.schema.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest": "mhome.app-facade.v1",
|
|
3
|
-
"contractVersion": "1.
|
|
3
|
+
"contractVersion": "1.38.1",
|
|
4
4
|
"callSchema": "schema/facade-call.v1.schema.json",
|
|
5
5
|
"routing": "manifest/routing.v1.json",
|
|
6
6
|
"routingSchema": "schema/routing.v1.schema.json",
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"requestTargets": [
|
|
11
11
|
"/app/artifact/resolve",
|
|
12
12
|
"/app/artifact/put",
|
|
13
|
-
"/app/artifact/import"
|
|
13
|
+
"/app/artifact/import",
|
|
14
|
+
"/app/artifact/persist",
|
|
15
|
+
"/app/artifact/delete"
|
|
14
16
|
]
|
|
15
17
|
},
|
|
16
18
|
"hub": {
|
|
@@ -119,7 +121,8 @@
|
|
|
119
121
|
"/app/person/list",
|
|
120
122
|
"/app/person/reset",
|
|
121
123
|
"/app/person/clusters/image",
|
|
122
|
-
"/app/person/status"
|
|
124
|
+
"/app/person/status",
|
|
125
|
+
"/app/person/summary-images/batch-get"
|
|
123
126
|
],
|
|
124
127
|
"managementPermission": "spaceMember",
|
|
125
128
|
"owner": "scopeHub",
|
package/manifest/routing.v1.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest": "mhome.app-facade.routing.v1",
|
|
3
|
-
"contractVersion": "1.
|
|
3
|
+
"contractVersion": "1.38.1",
|
|
4
4
|
"targetPrefix": "/app/",
|
|
5
5
|
"default": {
|
|
6
6
|
"execution": "scopeMode",
|
|
@@ -27,7 +27,9 @@
|
|
|
27
27
|
"/app/artifact/resolve",
|
|
28
28
|
"/app/scope/context/get",
|
|
29
29
|
"/app/artifact/put",
|
|
30
|
-
"/app/artifact/import"
|
|
30
|
+
"/app/artifact/import",
|
|
31
|
+
"/app/artifact/persist",
|
|
32
|
+
"/app/artifact/delete"
|
|
31
33
|
],
|
|
32
34
|
"hubPrefixes": [
|
|
33
35
|
"/app/plugin/",
|
|
@@ -57,6 +59,7 @@
|
|
|
57
59
|
"/app/system/hosts/get",
|
|
58
60
|
"/app/system/hosts/runtime",
|
|
59
61
|
"/app/system/hosts/claim",
|
|
62
|
+
"/app/person/summary-images/batch-get",
|
|
60
63
|
"/app/person/status",
|
|
61
64
|
"/app/person/list",
|
|
62
65
|
"/app/person/get",
|
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -22,21 +22,22 @@
|
|
|
22
22
|
"then": {
|
|
23
23
|
"not": {
|
|
24
24
|
"anyOf": [
|
|
25
|
-
{ "required": ["preparedActionId"] },
|
|
26
|
-
{ "required": ["approvalToken"] }
|
|
25
|
+
{ "properties": { "preparedActionId": {} }, "required": ["preparedActionId"] },
|
|
26
|
+
{ "properties": { "approvalToken": {} }, "required": ["approvalToken"] }
|
|
27
27
|
]
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
"if": { "properties": { "mode": { "const": "commit" } } },
|
|
33
|
-
"then": { "required": ["preparedActionId", "approvalToken"] }
|
|
33
|
+
"then": { "properties": { "preparedActionId": {}, "approvalToken": {} }, "required": ["preparedActionId", "approvalToken"] }
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"if": { "properties": { "mode": { "const": "reject" } } },
|
|
37
37
|
"then": {
|
|
38
|
+
"properties": { "preparedActionId": {} },
|
|
38
39
|
"required": ["preparedActionId"],
|
|
39
|
-
"not": { "required": ["approvalToken"] }
|
|
40
|
+
"not": { "properties": { "approvalToken": {} }, "required": ["approvalToken"] }
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
]
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"allOf": [
|
|
86
86
|
{
|
|
87
87
|
"if": { "properties": { "state": { "enum": ["failed", "timed_out"] } } },
|
|
88
|
-
"then": { "required": ["error"] }
|
|
88
|
+
"then": { "properties": { "error": {} }, "required": ["error"] }
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
"if": {
|
|
@@ -93,17 +93,18 @@
|
|
|
93
93
|
"state": { "not": { "enum": ["failed", "timed_out", "awaiting_code", "awaiting_wifi"] } }
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
|
-
"then": { "not": { "required": ["error"] } }
|
|
96
|
+
"then": { "not": { "properties": { "error": {} }, "required": ["error"] } }
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
"if": { "properties": { "state": { "const": "awaiting_code" } }, "required": ["error"] },
|
|
100
|
-
"then": { "properties": { "error": { "properties": { "code": { "const": "code_rejected" } } } } }
|
|
100
|
+
"then": { "properties": { "error": { "type": "object", "properties": { "code": { "const": "code_rejected" } } } } }
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"if": { "properties": { "state": { "const": "awaiting_wifi" } }, "required": ["error"] },
|
|
104
104
|
"then": {
|
|
105
105
|
"properties": {
|
|
106
106
|
"error": {
|
|
107
|
+
"type": "object",
|
|
107
108
|
"properties": {
|
|
108
109
|
"code": { "enum": ["wifi_auth_failed", "wifi_not_found", "wifi_failed"] }
|
|
109
110
|
}
|
|
@@ -113,8 +114,8 @@
|
|
|
113
114
|
},
|
|
114
115
|
{
|
|
115
116
|
"if": { "properties": { "state": { "const": "completed" } } },
|
|
116
|
-
"then": { "required": ["host"] },
|
|
117
|
-
"else": { "not": { "required": ["claimToken"] } }
|
|
117
|
+
"then": { "properties": { "host": {} }, "required": ["host"] },
|
|
118
|
+
"else": { "not": { "properties": { "claimToken": {} }, "required": ["claimToken"] } }
|
|
118
119
|
}
|
|
119
120
|
]
|
|
120
121
|
}
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"allOf": [
|
|
16
16
|
{
|
|
17
17
|
"if": { "properties": { "configured": { "const": true } }, "required": ["configured"] },
|
|
18
|
-
"then": { "required": ["hub"] },
|
|
19
|
-
"else": { "not": { "required": ["hub"] } }
|
|
18
|
+
"then": { "properties": { "hub": {} }, "required": ["hub"] },
|
|
19
|
+
"else": { "not": { "properties": { "hub": {} }, "required": ["hub"] } }
|
|
20
20
|
}
|
|
21
21
|
],
|
|
22
22
|
"$defs": {
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"allOf": [
|
|
31
31
|
{
|
|
32
32
|
"if": { "properties": { "configured": { "const": true } }, "required": ["configured"] },
|
|
33
|
-
"then": { "required": ["hub"] },
|
|
34
|
-
"else": { "not": { "required": ["hub"] } }
|
|
33
|
+
"then": { "properties": { "hub": {} }, "required": ["hub"] },
|
|
34
|
+
"else": { "not": { "properties": { "hub": {} }, "required": ["hub"] } }
|
|
35
35
|
}
|
|
36
36
|
],
|
|
37
37
|
"$defs": {
|
|
@@ -195,6 +195,58 @@
|
|
|
195
195
|
"id",
|
|
196
196
|
"representativeSampleId"
|
|
197
197
|
]
|
|
198
|
+
},
|
|
199
|
+
"SummaryImagesInput": {
|
|
200
|
+
"type": "object",
|
|
201
|
+
"additionalProperties": false,
|
|
202
|
+
"properties": {
|
|
203
|
+
"ids": {
|
|
204
|
+
"type": "array",
|
|
205
|
+
"items": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"pattern": "^(person|cluster):.+$"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"required": [
|
|
212
|
+
"ids"
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
"SummaryImagesOutput": {
|
|
216
|
+
"type": "object",
|
|
217
|
+
"additionalProperties": false,
|
|
218
|
+
"properties": {
|
|
219
|
+
"items": {
|
|
220
|
+
"type": "array",
|
|
221
|
+
"items": {
|
|
222
|
+
"type": "object",
|
|
223
|
+
"additionalProperties": false,
|
|
224
|
+
"properties": {
|
|
225
|
+
"id": {
|
|
226
|
+
"type": "string"
|
|
227
|
+
},
|
|
228
|
+
"uri": {
|
|
229
|
+
"type": "string",
|
|
230
|
+
"pattern": "^meow-artifact://"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"required": [
|
|
234
|
+
"id",
|
|
235
|
+
"uri"
|
|
236
|
+
]
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"missingIds": {
|
|
240
|
+
"type": "array",
|
|
241
|
+
"items": {
|
|
242
|
+
"type": "string"
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"required": [
|
|
247
|
+
"items",
|
|
248
|
+
"missingIds"
|
|
249
|
+
]
|
|
198
250
|
}
|
|
199
251
|
}
|
|
200
252
|
}
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"allOf": [
|
|
106
106
|
{
|
|
107
107
|
"if": { "properties": { "state": { "enum": ["failed", "timed_out"] } } },
|
|
108
|
-
"then": { "required": ["error"] }
|
|
108
|
+
"then": { "properties": { "error": {} }, "required": ["error"] }
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
"if": {
|
|
@@ -113,31 +113,31 @@
|
|
|
113
113
|
"state": { "not": { "enum": ["failed", "timed_out", "awaiting_code", "awaiting_wifi"] } }
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
|
-
"then": { "not": { "required": ["error"] } }
|
|
116
|
+
"then": { "not": { "properties": { "error": {} }, "required": ["error"] } }
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
"if": { "properties": { "state": { "const": "awaiting_code" } }, "required": ["error"] },
|
|
120
|
-
"then": { "properties": { "error": { "properties": { "code": { "const": "code_rejected" } } } } }
|
|
120
|
+
"then": { "properties": { "error": { "type": "object", "properties": { "code": { "const": "code_rejected" } } } } }
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
"if": { "properties": { "state": { "const": "awaiting_wifi" } }, "required": ["error"] },
|
|
124
124
|
"then": {
|
|
125
125
|
"properties": {
|
|
126
|
-
"error": { "properties": { "code": { "enum": ["wifi_auth_failed", "wifi_not_found", "wifi_failed"] } } }
|
|
126
|
+
"error": { "type": "object", "properties": { "code": { "enum": ["wifi_auth_failed", "wifi_not_found", "wifi_failed"] } } }
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
"if": { "properties": { "state": { "const": "awaiting_authorization" } } },
|
|
132
|
-
"then": { "required": ["authorization"] }
|
|
132
|
+
"then": { "properties": { "authorization": {} }, "required": ["authorization"] }
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
|
-
"if": { "properties": { "state": { "const": "completed" } }, "not": { "required": ["mode"] } },
|
|
136
|
-
"then": { "required": ["podId"] }
|
|
135
|
+
"if": { "properties": { "state": { "const": "completed" } }, "not": { "properties": { "mode": {} }, "required": ["mode"] } },
|
|
136
|
+
"then": { "properties": { "podId": {} }, "required": ["podId"] }
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
|
-
"if": { "required": ["mode"] },
|
|
140
|
-
"then": { "not": { "anyOf": [{ "required": ["podId"] }, { "required": ["authorization"] }] } }
|
|
139
|
+
"if": { "properties": { "mode": {} }, "required": ["mode"] },
|
|
140
|
+
"then": { "not": { "anyOf": [{ "properties": { "podId": {} }, "required": ["podId"] }, { "properties": { "authorization": {} }, "required": ["authorization"] }] } }
|
|
141
141
|
}
|
|
142
142
|
]
|
|
143
143
|
}
|