@mhome/app-facade-protocol 1.147.0 → 1.149.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/messaging-route-updates.md +19 -5
- package/contract/pod-commissioning-v1.md +9 -4
- package/contract/wave-v1.md +9 -4
- package/fixtures/recording.conformance.json +78 -4
- package/manifest/app-facade.v1.json +1 -1
- package/manifest/authorization.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/recording.v1.json +16 -7
- 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/pod-commission.v1.schema.json +1 -0
|
@@ -5,11 +5,25 @@ delivery registrations. A rejected save leaves the old registrations and actions
|
|
|
5
5
|
untouched. Local route changes and old action invalidation share the existing
|
|
6
6
|
SQLite transaction; construct the receipt before committing it.
|
|
7
7
|
|
|
8
|
-
After commit, attempt the current registration and best-effort old-Space
|
|
9
|
-
independently.
|
|
10
|
-
the update or prevent a later update. Cleanup must not
|
|
11
|
-
sessions. Action handlers still check the current
|
|
12
|
-
message/button editing is not a prerequisite
|
|
8
|
+
After commit, attempt the current registration and best-effort old-Space action
|
|
9
|
+
cleanup independently. Cloud optional cleanup has a one-second total wait budget. Its
|
|
10
|
+
failure does not fail the update or prevent a later update. Cleanup must not
|
|
11
|
+
invalidate new-Space action sessions. Action handlers still check the current
|
|
12
|
+
route and authorization; provider message/button editing is not a prerequisite
|
|
13
|
+
for saving settings.
|
|
14
|
+
|
|
15
|
+
Retain obsolete AppClient registrations during route changes and cloud route
|
|
16
|
+
removal. They are disposable discovery records, not authorization. An unconditional
|
|
17
|
+
delete by reusable Space/client key could arrive after a later registration and
|
|
18
|
+
remove it. Actual delivery must resolve the authoritative route and check current
|
|
19
|
+
identity, membership or shared grant. Revocation and unlink still change those
|
|
20
|
+
authoritative records; retaining a registration never keeps a revoked route active.
|
|
21
|
+
|
|
22
|
+
Explicit, authorized selection of a revoked personal route creates a fresh active
|
|
23
|
+
binding using the existing binding identity field. Ordinary inbound messages reject
|
|
24
|
+
revoked routes and direct the user to select a Space. Route lists hide explicit
|
|
25
|
+
access denial but report authorization-query failures instead of returning a
|
|
26
|
+
successful empty list.
|
|
13
27
|
|
|
14
28
|
If the current delivery registration fails after commit, `/app/messaging/route/update`
|
|
15
29
|
returns `partial` with the committed `route` and optional `applicationProblem`
|
|
@@ -14,6 +14,10 @@ initial BLE Wi-Fi credentials or in the LAN session for an already-networked Pod
|
|
|
14
14
|
User mode uses the personal Pod credential.
|
|
15
15
|
Space mode uses a local Core credential signed by Lion; it carries no user
|
|
16
16
|
identity and has no cloud access/refresh token. Changing mode requires reset.
|
|
17
|
+
The selected device mode survives User logout and account replacement; only
|
|
18
|
+
factory reset returns a device to the unselected state. Secure device info and
|
|
19
|
+
normal native sessions expose retained `clientMode` before Wi-Fi/authorization;
|
|
20
|
+
callers offer only that mode. This field alone is never a completion receipt.
|
|
17
21
|
|
|
18
22
|
## 1. Device identity
|
|
19
23
|
|
|
@@ -123,7 +127,8 @@ and responses are bounded to 64 KiB including encryption overhead.
|
|
|
123
127
|
```
|
|
124
128
|
|
|
125
129
|
`env` must match the native Client runtime (`prod`, `dev`, `e2e`).
|
|
126
|
-
`
|
|
130
|
+
`clientMode` (`user` or `space`) reports the retained mode even after User logout,
|
|
131
|
+
without `podId`. `podId` accompanies `clientMode` when activation
|
|
127
132
|
is in flight or durably completed. A new session reads both from the secure
|
|
128
133
|
device response before resuming; a missing or unknown mode fails the attempt.
|
|
129
134
|
This observes completion without issuing another credential. Native completed
|
|
@@ -139,8 +144,8 @@ the response also carries `"mode":"reprovision"` and `wifiConfigured` is false
|
|
|
139
144
|
BLE `pod-info` is the network-phase DTO, not the LAN identity/receipt DTO above.
|
|
140
145
|
It carries `protocol`, `env`, `deviceId`, `model`, `firmwareVersion`,
|
|
141
146
|
`publicKey: [x, y]`, `wifiConfigured`, `state`, `dependentHost`, and optional
|
|
142
|
-
`mode`/`error: {code}`. It never includes
|
|
143
|
-
or a credential. `publicKey` is the same ES256 P-256 key as LAN: derive
|
|
147
|
+
`clientMode` (retained mode), `mode`/`error: {code}`. It never includes
|
|
148
|
+
`deviceBinding`, `podId` or a credential. `publicKey` is the same ES256 P-256 key as LAN: derive
|
|
144
149
|
`fingerprint = hex(SHA256(0x04 || x || y))` and `keyId = "p256:" + fingerprint`.
|
|
145
150
|
Coordinates are unpadded base64url. The complete JSON must fit 480 bytes,
|
|
146
151
|
leaving room for the authenticated record in one 512-byte ATT value.
|
|
@@ -246,7 +251,7 @@ Runtime states after commit:
|
|
|
246
251
|
identity key and cached Hub tokens, reboot to `unprovisioned`. No cloud
|
|
247
252
|
request is needed. User logout also clears local credentials without cloud revocation.
|
|
248
253
|
|
|
249
|
-
User logout keeps network and device preferences, but clears the User session,
|
|
254
|
+
User logout keeps the selected device mode, network and device preferences, but clears the User session,
|
|
250
255
|
selected Space, account navigation data and per-Hub credentials. A subsequent
|
|
251
256
|
User login obtains a fresh device session. Space mode refuses logout in both UI
|
|
252
257
|
and the native execution/persistence boundary. Network loss or rejected
|
package/contract/wave-v1.md
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
# Wave authorization management
|
|
2
2
|
|
|
3
3
|
These Hub-routed App Facades require current-Space Manage access and an active
|
|
4
|
-
local Hub.
|
|
4
|
+
local Hub. Each physical Wave device permits at most one Space grant at a time,
|
|
5
|
+
for both Wi-Fi and pure BLE. New addition requires an unbound device and an
|
|
6
|
+
explicit local initial/recovery window; no additional-Space invitation exists.
|
|
7
|
+
Moving to another Space requires confirmed removal or a local Wave reset first.
|
|
8
|
+
Connection capacity is separate from this one-grant policy.
|
|
9
|
+
They do not make Wave devices Hosts, Nodes or Plugins. No device URL,
|
|
5
10
|
Space/Hub selector, grant, certificate or private key is an input/output.
|
|
6
11
|
|
|
7
12
|
- `/app/wave/discover`: `{transport:"lan"|"ble"}` ->
|
|
@@ -31,9 +36,9 @@ Space/Hub selector, grant, certificate or private key is an input/output.
|
|
|
31
36
|
device already revoked it and its reply was lost, the old credential cannot
|
|
32
37
|
authenticate another attempt, even when the device is reachable. The user
|
|
33
38
|
clears Wave authorization locally on the device, then explicitly confirms
|
|
34
|
-
`forgetAfterDeviceReset:true` to clear this Space's saved binding.
|
|
35
|
-
|
|
36
|
-
remains.
|
|
39
|
+
`forgetAfterDeviceReset:true` to clear this Space's saved binding. This confirmation
|
|
40
|
+
does not itself reset or revoke anything on the device. `unbound` means no saved
|
|
41
|
+
binding remains.
|
|
37
42
|
`forgotten` clears its saved local binding without a device revocation reply.
|
|
38
43
|
Clearing a local binding also clears its published inventory. Ordinary
|
|
39
44
|
Integration uninstall remains a separate operation.
|
|
@@ -1119,10 +1119,10 @@
|
|
|
1119
1119
|
{
|
|
1120
1120
|
"target": "/app/capability/invoke/json",
|
|
1121
1121
|
"input": {
|
|
1122
|
-
"capabilityId": "basic.device.command.
|
|
1122
|
+
"capabilityId": "basic.device.command.chimeControl",
|
|
1123
1123
|
"request": {
|
|
1124
1124
|
"device": "doorbell",
|
|
1125
|
-
"command": "
|
|
1125
|
+
"command": "stop",
|
|
1126
1126
|
"internal": "private-request"
|
|
1127
1127
|
}
|
|
1128
1128
|
},
|
|
@@ -1134,10 +1134,10 @@
|
|
|
1134
1134
|
},
|
|
1135
1135
|
"expected": {
|
|
1136
1136
|
"event": "device.command",
|
|
1137
|
-
"capabilityId": "basic.device.command.
|
|
1137
|
+
"capabilityId": "basic.device.command.chimeControl",
|
|
1138
1138
|
"parameters": {
|
|
1139
1139
|
"device": "doorbell",
|
|
1140
|
-
"command": "
|
|
1140
|
+
"command": "stop"
|
|
1141
1141
|
},
|
|
1142
1142
|
"status": "success"
|
|
1143
1143
|
}
|
|
@@ -1397,5 +1397,79 @@
|
|
|
1397
1397
|
"status": "success"
|
|
1398
1398
|
},
|
|
1399
1399
|
"expected": null
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
"target": "/app/capability/invoke/json",
|
|
1403
|
+
"input": {
|
|
1404
|
+
"capabilityId": "basic.device.command.chimeControl",
|
|
1405
|
+
"request": {
|
|
1406
|
+
"device": "doorbell",
|
|
1407
|
+
"command": "play",
|
|
1408
|
+
"tone": "Bell",
|
|
1409
|
+
"internal": "private-request"
|
|
1410
|
+
}
|
|
1411
|
+
},
|
|
1412
|
+
"outcome": {
|
|
1413
|
+
"status": "success",
|
|
1414
|
+
"data": {
|
|
1415
|
+
"internal": "private-response"
|
|
1416
|
+
}
|
|
1417
|
+
},
|
|
1418
|
+
"expected": {
|
|
1419
|
+
"event": "device.command",
|
|
1420
|
+
"capabilityId": "basic.device.command.chimeControl",
|
|
1421
|
+
"parameters": {
|
|
1422
|
+
"device": "doorbell",
|
|
1423
|
+
"command": "play",
|
|
1424
|
+
"tone": "Bell"
|
|
1425
|
+
},
|
|
1426
|
+
"status": "success"
|
|
1427
|
+
}
|
|
1428
|
+
},
|
|
1429
|
+
{
|
|
1430
|
+
"target": "/app/capability/invoke/json",
|
|
1431
|
+
"input": {
|
|
1432
|
+
"capabilityId": "basic.device.command.chimeSetting",
|
|
1433
|
+
"request": {
|
|
1434
|
+
"device": "doorbell",
|
|
1435
|
+
"enabledState": "disabled",
|
|
1436
|
+
"tone": "Bell",
|
|
1437
|
+
"internal": "private-request"
|
|
1438
|
+
}
|
|
1439
|
+
},
|
|
1440
|
+
"outcome": {
|
|
1441
|
+
"status": "success",
|
|
1442
|
+
"data": {
|
|
1443
|
+
"internal": "private-response"
|
|
1444
|
+
}
|
|
1445
|
+
},
|
|
1446
|
+
"expected": {
|
|
1447
|
+
"event": "device.command",
|
|
1448
|
+
"capabilityId": "basic.device.command.chimeSetting",
|
|
1449
|
+
"parameters": {
|
|
1450
|
+
"device": "doorbell",
|
|
1451
|
+
"enabledState": "disabled",
|
|
1452
|
+
"tone": "Bell"
|
|
1453
|
+
},
|
|
1454
|
+
"status": "success"
|
|
1455
|
+
}
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
"target": "/app/capability/invoke/json",
|
|
1459
|
+
"input": {
|
|
1460
|
+
"capabilityId": "basic.device.command.chime",
|
|
1461
|
+
"request": {
|
|
1462
|
+
"device": "doorbell",
|
|
1463
|
+
"command": "off",
|
|
1464
|
+
"internal": "private-request"
|
|
1465
|
+
}
|
|
1466
|
+
},
|
|
1467
|
+
"outcome": {
|
|
1468
|
+
"status": "success",
|
|
1469
|
+
"data": {
|
|
1470
|
+
"internal": "private-response"
|
|
1471
|
+
}
|
|
1472
|
+
},
|
|
1473
|
+
"expected": null
|
|
1400
1474
|
}
|
|
1401
1475
|
]
|
|
@@ -310,9 +310,15 @@
|
|
|
310
310
|
"volume",
|
|
311
311
|
"priority"
|
|
312
312
|
],
|
|
313
|
-
"
|
|
313
|
+
"chimeControl": [
|
|
314
314
|
"device",
|
|
315
|
-
"command"
|
|
315
|
+
"command",
|
|
316
|
+
"tone"
|
|
317
|
+
],
|
|
318
|
+
"chimeSetting": [
|
|
319
|
+
"device",
|
|
320
|
+
"enabledState",
|
|
321
|
+
"tone"
|
|
316
322
|
],
|
|
317
323
|
"dispensePetFood": [
|
|
318
324
|
"device",
|
|
@@ -353,7 +359,8 @@
|
|
|
353
359
|
"audioBridge.device.command.stopAudioRecording": "stopAudioRecording",
|
|
354
360
|
"basic.device.command.broadcastAudio": "broadcastAudio",
|
|
355
361
|
"basic.device.command.cameraPtz": "cameraPtz",
|
|
356
|
-
"basic.device.command.
|
|
362
|
+
"basic.device.command.chimeControl": "chimeControl",
|
|
363
|
+
"basic.device.command.chimeSetting": "chimeSetting",
|
|
357
364
|
"basic.device.command.controlMediaPlayback": "controlMediaPlayback",
|
|
358
365
|
"basic.device.command.controlCover": "controlCover",
|
|
359
366
|
"basic.device.command.dispensePetFood": "dispensePetFood",
|
|
@@ -382,7 +389,6 @@
|
|
|
382
389
|
"mlinkGoogleCast.device.command.setAudioMute": "setAudioMute",
|
|
383
390
|
"mlinkGoogleCast.device.command.setAudioVolume": "setAudioVolume",
|
|
384
391
|
"mlinkHomeAssistant.device.command.broadcastAudio": "broadcastAudio",
|
|
385
|
-
"mlinkHomeAssistant.device.command.chime": "chime",
|
|
386
392
|
"mlinkHomeAssistant.device.command.controlMediaPlayback": "controlMediaPlayback",
|
|
387
393
|
"mlinkHomeAssistant.device.command.controlCover": "controlCover",
|
|
388
394
|
"mlinkHomeAssistant.device.command.doorLock": "doorLock",
|
|
@@ -421,7 +427,7 @@
|
|
|
421
427
|
"mlinkShelly.device.command.setColorRGB": "setColorRGB",
|
|
422
428
|
"mlinkShelly.device.command.setColorTemperature": "setColorTemperature",
|
|
423
429
|
"mlinkSmartThings.device.command.broadcastAudio": "broadcastAudio",
|
|
424
|
-
"mlinkSmartThings.device.command.
|
|
430
|
+
"mlinkSmartThings.device.command.chimeControl": "chimeControl",
|
|
425
431
|
"mlinkSmartThings.device.command.controlMediaPlayback": "controlMediaPlayback",
|
|
426
432
|
"mlinkSmartThings.device.command.controlCover": "controlCover",
|
|
427
433
|
"mlinkSmartThings.device.command.doorLock": "doorLock",
|
|
@@ -440,7 +446,8 @@
|
|
|
440
446
|
"mlinkSonos.device.command.setAudioMute": "setAudioMute",
|
|
441
447
|
"mlinkSonos.device.command.setAudioVolume": "setAudioVolume",
|
|
442
448
|
"playground.device.command.broadcastAudio": "broadcastAudio",
|
|
443
|
-
"playground.device.command.
|
|
449
|
+
"playground.device.command.chimeControl": "chimeControl",
|
|
450
|
+
"playground.device.command.chimeSetting": "chimeSetting",
|
|
444
451
|
"playground.device.command.controlMediaPlayback": "controlMediaPlayback",
|
|
445
452
|
"playground.device.command.controlCover": "controlCover",
|
|
446
453
|
"playground.device.command.doorLock": "doorLock",
|
|
@@ -463,6 +470,8 @@
|
|
|
463
470
|
"xiaomi.device.command.setBrightness": "setBrightness",
|
|
464
471
|
"xiaomi.device.command.setColorRGB": "setColorRGB",
|
|
465
472
|
"xiaomi.device.command.setColorTemperature": "setColorTemperature",
|
|
466
|
-
"xiaomi.device.command.setFan": "setFan"
|
|
473
|
+
"xiaomi.device.command.setFan": "setFan",
|
|
474
|
+
"mlinkMatter.device.command.chimeControl": "chimeControl",
|
|
475
|
+
"mlinkMatter.device.command.chimeSetting": "chimeSetting"
|
|
467
476
|
}
|
|
468
477
|
}
|
package/manifest/routing.v1.json
CHANGED
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED
package/protocol.json
CHANGED