@mhome/app-facade-protocol 1.148.0 → 1.150.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.
@@ -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. They do not make Wave devices Hosts, Nodes or Plugins. No device URL,
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"}` ->
@@ -12,10 +17,10 @@ Space/Hub selector, grant, certificate or private key is an input/output.
12
17
  exactly one transport; there is no implicit discovery or fallback.
13
18
  Results are untrusted location hints, scoped to this caller, Space and Hub
14
19
  generation and transport, expiring after two minutes. They never grant operation
15
- authority.
16
- - `/app/wave/pair` is retired. Core rejects it with guidance to select the
17
- Integration and use `/app/integration/connect`. Its constant/input DTO remain
18
- readable for older clients; this route cannot enroll a device.
20
+ authority. No connected BLE Relay, all-busy Relays or failed scans return an
21
+ availability error rather than a successful empty list. Partial scan coverage
22
+ returns available candidates with a `WAVE_BLE_DISCOVERY_INCOMPLETE` warning.
23
+ A successful empty scan has no such warning.
19
24
  - `/app/wave/list`: `{}` -> `{bindings:[{deviceId,grantState}]}`. States are
20
25
  `candidate`, `committed` or `removing`; this is authorization bookkeeping, not
21
26
  Device/Twin inventory, online state or evidence that a candidate committed on the device.
@@ -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. A device-wide
35
- Wave reset also removes its other Space grants. `unbound` means no saved binding
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.
@@ -54,6 +59,10 @@ Core checks the selected resource before pairing, verifies it against authentica
54
59
  inventory after grant confirmation, writes the normal IntegrationInstall, and
55
60
  publishes compatible entities. It creates no ordinary Connection record.
56
61
 
62
+ The lifecycle response has optional top-level `warnings` for partial discovery,
63
+ including before a device is selected. Committed authorizations are labeled
64
+ “already added”; discovery does not assert that they are online.
65
+
57
66
  The lifecycle response includes `wave: {deviceId,grantState,inventoryState,installed,
58
67
  entityIds,warnings,reason?}`. Completed projection is `status: done`; interrupted
59
68
  setup is `status: failed, recoverable: true, canCancel: false`, preserving committed
@@ -1119,10 +1119,10 @@
1119
1119
  {
1120
1120
  "target": "/app/capability/invoke/json",
1121
1121
  "input": {
1122
- "capabilityId": "basic.device.command.chime",
1122
+ "capabilityId": "basic.device.command.chimeControl",
1123
1123
  "request": {
1124
1124
  "device": "doorbell",
1125
- "command": "off",
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.chime",
1137
+ "capabilityId": "basic.device.command.chimeControl",
1138
1138
  "parameters": {
1139
1139
  "device": "doorbell",
1140
- "command": "off"
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
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.app-facade.v1",
3
- "contractVersion": "1.148.0",
3
+ "contractVersion": "1.150.0",
4
4
  "callSchema": "schema/facade-call.v1.schema.json",
5
5
  "routing": "manifest/routing.v1.json",
6
6
  "routingSchema": "schema/routing.v1.schema.json",
@@ -487,7 +487,6 @@
487
487
  "contract": "contract/wave-v1.md",
488
488
  "requestTargets": [
489
489
  "/app/wave/discover",
490
- "/app/wave/pair",
491
490
  "/app/wave/list",
492
491
  "/app/wave/refresh",
493
492
  "/app/wave/remove"
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractVersion": "1.148.0",
2
+ "contractVersion": "1.150.0",
3
3
  "operations": {
4
4
  "/app/agent/context/get": "spaceRead",
5
5
  "/app/agent/credit/usage": "spaceRead",
@@ -374,7 +374,6 @@
374
374
  "/pod/talk/view/get": "spaceRead",
375
375
  "/app/entity/state/get": "spaceRead",
376
376
  "/app/wave/discover": "spaceManage",
377
- "/app/wave/pair": "spaceManage",
378
377
  "/app/wave/list": "spaceManage",
379
378
  "/app/wave/refresh": "spaceManage",
380
379
  "/app/wave/remove": "spaceManage"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.host-provision.targets.v1",
3
- "contractVersion": "1.148.0",
3
+ "contractVersion": "1.150.0",
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.148.0",
3
+ "contractVersion": "1.150.0",
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.148.0",
3
+ "contractVersion": "1.150.0",
4
4
  "contract": "contract/pod-commissioning-v1.md",
5
5
  "localTargets": [
6
6
  "/local/pod/discovery/start",
@@ -310,9 +310,15 @@
310
310
  "volume",
311
311
  "priority"
312
312
  ],
313
- "chime": [
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.chime": "chime",
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.chime": "chime",
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.chime": "chime",
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
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.app-facade.routing.v1",
3
- "contractVersion": "1.148.0",
3
+ "contractVersion": "1.150.0",
4
4
  "targetPrefix": "/app/",
5
5
  "default": {
6
6
  "execution": "spaceMode"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.messaging.targets.v1",
3
- "contractVersion": "1.148.0",
3
+ "contractVersion": "1.150.0",
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.148.0",
3
+ "version": "1.150.0",
4
4
  "description": "Build-time protocol artifacts for mhome.app-facade",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
package/protocol.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "protocol": "mhome.app-facade",
3
- "contractVersion": "1.148.0",
3
+ "contractVersion": "1.150.0",
4
4
  "manifest": "manifest/app-facade.v1.json",
5
5
  "schemas": {
6
6
  "storage": "schema/storage.v1.schema.json",