@mhome/app-facade-protocol 1.38.0 → 1.38.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.app-facade.v1",
3
- "contractVersion": "1.38.0",
3
+ "contractVersion": "1.38.2",
4
4
  "callSchema": "schema/facade-call.v1.schema.json",
5
5
  "routing": "manifest/routing.v1.json",
6
6
  "routingSchema": "schema/routing.v1.schema.json",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.host-provision.targets.v1",
3
- "contractVersion": "1.38.0",
3
+ "contractVersion": "1.38.2",
4
4
  "contract": "contract/host-provisioning-v1.md",
5
5
  "localTargets": [
6
6
  "/local/host/provision/start",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.hub.targets.v1",
3
- "contractVersion": "1.38.0",
3
+ "contractVersion": "1.38.2",
4
4
  "appTargets": [
5
5
  "/app/hub/get",
6
6
  "/app/hub/remove",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.pod.targets.v1",
3
- "contractVersion": "1.38.0",
3
+ "contractVersion": "1.38.2",
4
4
  "contract": "contract/pod-commissioning-v1.md",
5
5
  "localTargets": [
6
6
  "/local/pod/discovery/start",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.app-facade.routing.v1",
3
- "contractVersion": "1.38.0",
3
+ "contractVersion": "1.38.2",
4
4
  "targetPrefix": "/app/",
5
5
  "default": {
6
6
  "execution": "scopeMode",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.messaging.targets.v1",
3
- "contractVersion": "1.38.0",
3
+ "contractVersion": "1.38.2",
4
4
  "requestTargets": [
5
5
  "/app/messaging/provider/list",
6
6
  "/app/messaging/provider-account/list",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mhome/app-facade-protocol",
3
- "version": "1.38.0",
3
+ "version": "1.38.2",
4
4
  "description": "Build-time protocol artifacts for mhome.app-facade",
5
5
  "license": "MIT",
6
6
  "repository": {
package/protocol.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "protocol": "mhome.app-facade",
3
- "contractVersion": "1.38.0",
3
+ "contractVersion": "1.38.2",
4
4
  "manifest": "manifest/app-facade.v1.json",
5
5
  "schemas": {
6
6
  "capabilityDescriptor": "schema/capability-descriptor.v1.schema.json",
@@ -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
  }
@@ -12,7 +12,7 @@
12
12
  "allOf": [
13
13
  {
14
14
  "if": { "properties": { "status": { "const": "active" } } },
15
- "then": { "required": ["activatedAt"] }
15
+ "then": { "properties": { "activatedAt": {} }, "required": ["activatedAt"] }
16
16
  }
17
17
  ]
18
18
  }