@mhome/app-facade-protocol 1.38.0 → 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 +1 -1
- 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 +1 -1
- 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/pod-commission.v1.schema.json +9 -9
- package/schema/pod-credential-status.v1.schema.json +1 -1
package/manifest/routing.v1.json
CHANGED
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": {
|
|
@@ -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
|
}
|