@mhome/app-facade-protocol 1.150.0 → 1.151.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.
@@ -10,7 +10,14 @@ They do not make Wave devices Hosts, Nodes or Plugins. No device URL,
10
10
  Space/Hub selector, grant, certificate or private key is an input/output.
11
11
 
12
12
  - `/app/wave/discover`: `{transport:"lan"|"ble"}` ->
13
- `{candidates:[{candidateId,deviceId,proof,purpose}]}`.
13
+ `{candidates:[{candidateId,deviceId,productId,proof,purpose}]}`.
14
+ `productId` is a lowercase 32-hex public model lookup hint, separate from the
15
+ physical `deviceId`. The controller rechecks it in the protected device session
16
+ before saving candidate credentials or committing a grant. A mismatch requires
17
+ a new explicit selection. It does not attest the manufacturer or grant any
18
+ authority. Missing/unreachable product metadata never blocks normal addition;
19
+ callers show a generic Wave device label and short physical candidate reference.
20
+ Metadata refresh never overwrites a user-supplied Space device name.
14
21
  LAN discovery browses `_meow-wave._tcp.local.`; it never invokes BLE Relay.
15
22
  BLE discovery searches only bound relays for pure BLE operation. It does not
16
23
  discover unconfigured Wi-Fi devices for network setup. The caller selects
@@ -700,7 +700,7 @@
700
700
  {
701
701
  "target": "/app/capability/invoke/json",
702
702
  "input": {
703
- "capabilityId": "basic.device.command.setColorRGB",
703
+ "capabilityId": "basic.device.command.setColor",
704
704
  "request": {
705
705
  "device": "lamp",
706
706
  "hue": 0,
@@ -717,7 +717,7 @@
717
717
  },
718
718
  "expected": {
719
719
  "event": "device.command",
720
- "capabilityId": "basic.device.command.setColorRGB",
720
+ "capabilityId": "basic.device.command.setColor",
721
721
  "parameters": {
722
722
  "device": "lamp",
723
723
  "hue": 0,
@@ -862,16 +862,14 @@
862
862
  {
863
863
  "target": "/app/capability/invoke/json",
864
864
  "input": {
865
- "capabilityId": "basic.device.command.controlCover",
865
+ "capabilityId": "basic.device.command.coverControl",
866
866
  "request": {
867
867
  "device": "curtain",
868
- "command": "close",
869
- "position": 0,
870
- "internal": "private-request",
871
- "positionTransitionDuration": "3sec",
872
- "tiltPosition": 35.5,
868
+ "opening": 0,
869
+ "tiltOpening": 35.5,
870
+ "transitionDuration": "3sec",
873
871
  "tiltTransitionDuration": "0sec",
874
- "latch": false
872
+ "internal": "private-request"
875
873
  }
876
874
  },
877
875
  "outcome": {
@@ -882,15 +880,69 @@
882
880
  },
883
881
  "expected": {
884
882
  "event": "device.command",
885
- "capabilityId": "basic.device.command.controlCover",
883
+ "capabilityId": "basic.device.command.coverControl",
886
884
  "parameters": {
887
885
  "device": "curtain",
886
+ "opening": 0,
887
+ "tiltOpening": 35.5,
888
+ "transitionDuration": "3sec",
889
+ "tiltTransitionDuration": "0sec"
890
+ },
891
+ "status": "success"
892
+ }
893
+ },
894
+ {
895
+ "target": "/app/capability/invoke/json",
896
+ "input": {
897
+ "capabilityId": "basic.device.command.coverControl",
898
+ "request": {
899
+ "device": "panel",
900
+ "position": 50,
901
+ "latchState": "unlatched",
902
+ "speed": "medium",
903
+ "internal": "private-request"
904
+ }
905
+ },
906
+ "outcome": {
907
+ "status": "success",
908
+ "data": {
909
+ "internal": "private-response"
910
+ }
911
+ },
912
+ "expected": {
913
+ "event": "device.command",
914
+ "capabilityId": "basic.device.command.coverControl",
915
+ "parameters": {
916
+ "device": "panel",
917
+ "position": 50,
918
+ "latchState": "unlatched",
919
+ "speed": "medium"
920
+ },
921
+ "status": "success"
922
+ }
923
+ },
924
+ {
925
+ "target": "/app/capability/invoke/json",
926
+ "input": {
927
+ "capabilityId": "basic.device.command.coverControl",
928
+ "request": {
929
+ "device": "door",
888
930
  "command": "close",
889
- "position": 0,
890
- "positionTransitionDuration": "3sec",
891
- "tiltPosition": 35.5,
892
- "tiltTransitionDuration": "0sec",
893
- "latch": false
931
+ "internal": "private-request"
932
+ }
933
+ },
934
+ "outcome": {
935
+ "status": "success",
936
+ "data": {
937
+ "internal": "private-response"
938
+ }
939
+ },
940
+ "expected": {
941
+ "event": "device.command",
942
+ "capabilityId": "basic.device.command.coverControl",
943
+ "parameters": {
944
+ "device": "door",
945
+ "command": "close"
894
946
  },
895
947
  "status": "success"
896
948
  }
@@ -1471,5 +1523,63 @@
1471
1523
  }
1472
1524
  },
1473
1525
  "expected": null
1526
+ },
1527
+ {
1528
+ "target": "/app/capability/invoke/json",
1529
+ "input": {
1530
+ "capabilityId": "basic.device.command.setColor",
1531
+ "request": {
1532
+ "device": "lamp",
1533
+ "red": 128,
1534
+ "green": 0,
1535
+ "blue": 0,
1536
+ "internal": "private-request"
1537
+ }
1538
+ },
1539
+ "outcome": {
1540
+ "status": "success",
1541
+ "data": {
1542
+ "internal": "private-response"
1543
+ }
1544
+ },
1545
+ "expected": {
1546
+ "event": "device.command",
1547
+ "capabilityId": "basic.device.command.setColor",
1548
+ "parameters": {
1549
+ "device": "lamp",
1550
+ "red": 128,
1551
+ "green": 0,
1552
+ "blue": 0
1553
+ },
1554
+ "status": "success"
1555
+ }
1556
+ },
1557
+ {
1558
+ "target": "/app/capability/invoke/json",
1559
+ "input": {
1560
+ "capabilityId": "basic.device.command.setColor",
1561
+ "request": {
1562
+ "device": "lamp",
1563
+ "x": 0.3,
1564
+ "y": 0.6,
1565
+ "internal": "private-request"
1566
+ }
1567
+ },
1568
+ "outcome": {
1569
+ "status": "success",
1570
+ "data": {
1571
+ "internal": "private-response"
1572
+ }
1573
+ },
1574
+ "expected": {
1575
+ "event": "device.command",
1576
+ "capabilityId": "basic.device.command.setColor",
1577
+ "parameters": {
1578
+ "device": "lamp",
1579
+ "x": 0.3,
1580
+ "y": 0.6
1581
+ },
1582
+ "status": "success"
1583
+ }
1474
1584
  }
1475
1585
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.app-facade.v1",
3
- "contractVersion": "1.150.0",
3
+ "contractVersion": "1.151.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",
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractVersion": "1.150.0",
2
+ "contractVersion": "1.151.1",
3
3
  "operations": {
4
4
  "/app/agent/context/get": "spaceRead",
5
5
  "/app/agent/credit/usage": "spaceRead",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.host-provision.targets.v1",
3
- "contractVersion": "1.150.0",
3
+ "contractVersion": "1.151.1",
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.150.0",
3
+ "contractVersion": "1.151.1",
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.150.0",
3
+ "contractVersion": "1.151.1",
4
4
  "contract": "contract/pod-commissioning-v1.md",
5
5
  "localTargets": [
6
6
  "/local/pod/discovery/start",
@@ -249,10 +249,15 @@
249
249
  "colorTemperature",
250
250
  "transitionDuration"
251
251
  ],
252
- "setColorRGB": [
252
+ "setColor": [
253
253
  "device",
254
254
  "hue",
255
255
  "saturation",
256
+ "red",
257
+ "green",
258
+ "blue",
259
+ "x",
260
+ "y",
256
261
  "transitionDuration"
257
262
  ],
258
263
  "setThermostatTemperature": [
@@ -270,13 +275,15 @@
270
275
  "mode",
271
276
  "speed"
272
277
  ],
273
- "controlCover": [
278
+ "coverControl": [
274
279
  "device",
275
- "latch",
276
280
  "command",
281
+ "opening",
282
+ "tiltOpening",
277
283
  "position",
278
- "tiltPosition",
279
- "positionTransitionDuration",
284
+ "latchState",
285
+ "speed",
286
+ "transitionDuration",
280
287
  "tiltTransitionDuration"
281
288
  ],
282
289
  "doorLock": [
@@ -362,7 +369,7 @@
362
369
  "basic.device.command.chimeControl": "chimeControl",
363
370
  "basic.device.command.chimeSetting": "chimeSetting",
364
371
  "basic.device.command.controlMediaPlayback": "controlMediaPlayback",
365
- "basic.device.command.controlCover": "controlCover",
372
+ "basic.device.command.coverControl": "coverControl",
366
373
  "basic.device.command.dispensePetFood": "dispensePetFood",
367
374
  "basic.device.command.doorLock": "doorLock",
368
375
  "basic.device.command.onOff": "onOff",
@@ -373,7 +380,7 @@
373
380
  "basic.device.command.setBrightness": "setBrightness",
374
381
  "basic.device.command.setCameraRecording": "setCameraRecording",
375
382
  "basic.device.command.setCameraSetting": "setCameraSetting",
376
- "basic.device.command.setColorRGB": "setColorRGB",
383
+ "basic.device.command.setColor": "setColor",
377
384
  "basic.device.command.setColorTemperature": "setColorTemperature",
378
385
  "basic.device.command.setFan": "setFan",
379
386
  "basic.device.command.setThermostatMode": "setThermostatMode",
@@ -390,52 +397,52 @@
390
397
  "mlinkGoogleCast.device.command.setAudioVolume": "setAudioVolume",
391
398
  "mlinkHomeAssistant.device.command.broadcastAudio": "broadcastAudio",
392
399
  "mlinkHomeAssistant.device.command.controlMediaPlayback": "controlMediaPlayback",
393
- "mlinkHomeAssistant.device.command.controlCover": "controlCover",
400
+ "mlinkHomeAssistant.device.command.coverControl": "coverControl",
394
401
  "mlinkHomeAssistant.device.command.doorLock": "doorLock",
395
402
  "mlinkHomeAssistant.device.command.onOff": "onOff",
396
403
  "mlinkHomeAssistant.device.command.playMedia": "playMedia",
397
404
  "mlinkHomeAssistant.device.command.setAudioMute": "setAudioMute",
398
405
  "mlinkHomeAssistant.device.command.setAudioVolume": "setAudioVolume",
399
406
  "mlinkHomeAssistant.device.command.setBrightness": "setBrightness",
400
- "mlinkHomeAssistant.device.command.setColorRGB": "setColorRGB",
407
+ "mlinkHomeAssistant.device.command.setColor": "setColor",
401
408
  "mlinkHomeAssistant.device.command.setColorTemperature": "setColorTemperature",
402
409
  "mlinkHomeAssistant.device.command.setFan": "setFan",
403
410
  "mlinkHomeAssistant.device.command.setThermostatMode": "setThermostatMode",
404
411
  "mlinkHomeAssistant.device.command.setThermostatTemperature": "setThermostatTemperature",
405
412
  "mlinkHue.device.command.onOff": "onOff",
406
413
  "mlinkHue.device.command.setBrightness": "setBrightness",
407
- "mlinkHue.device.command.setColorRGB": "setColorRGB",
414
+ "mlinkHue.device.command.setColor": "setColor",
408
415
  "mlinkHue.device.command.setColorTemperature": "setColorTemperature",
409
- "mlinkLutron.device.command.controlCover": "controlCover",
416
+ "mlinkLutron.device.command.coverControl": "coverControl",
410
417
  "mlinkLutron.device.command.onOff": "onOff",
411
418
  "mlinkLutron.device.command.setBrightness": "setBrightness",
412
419
  "mlinkLutron.device.command.setFan": "setFan",
413
- "mlinkMatter.device.command.controlCover": "controlCover",
420
+ "mlinkMatter.device.command.coverControl": "coverControl",
414
421
  "mlinkMatter.device.command.doorLock": "doorLock",
415
422
  "mlinkMatter.device.command.onOff": "onOff",
416
423
  "mlinkMatter.device.command.setAudioMute": "setAudioMute",
417
424
  "mlinkMatter.device.command.setAudioVolume": "setAudioVolume",
418
425
  "mlinkMatter.device.command.setBrightness": "setBrightness",
419
- "mlinkMatter.device.command.setColorRGB": "setColorRGB",
426
+ "mlinkMatter.device.command.setColor": "setColor",
420
427
  "mlinkMatter.device.command.setColorTemperature": "setColorTemperature",
421
428
  "mlinkMatter.device.command.setFan": "setFan",
422
429
  "mlinkMatter.device.command.setThermostatMode": "setThermostatMode",
423
430
  "mlinkMatter.device.command.setThermostatTemperature": "setThermostatTemperature",
424
- "mlinkShelly.device.command.controlCover": "controlCover",
431
+ "mlinkShelly.device.command.coverControl": "coverControl",
425
432
  "mlinkShelly.device.command.onOff": "onOff",
426
433
  "mlinkShelly.device.command.setBrightness": "setBrightness",
427
- "mlinkShelly.device.command.setColorRGB": "setColorRGB",
434
+ "mlinkShelly.device.command.setColor": "setColor",
428
435
  "mlinkShelly.device.command.setColorTemperature": "setColorTemperature",
429
436
  "mlinkSmartThings.device.command.broadcastAudio": "broadcastAudio",
430
437
  "mlinkSmartThings.device.command.chimeControl": "chimeControl",
431
438
  "mlinkSmartThings.device.command.controlMediaPlayback": "controlMediaPlayback",
432
- "mlinkSmartThings.device.command.controlCover": "controlCover",
439
+ "mlinkSmartThings.device.command.coverControl": "coverControl",
433
440
  "mlinkSmartThings.device.command.doorLock": "doorLock",
434
441
  "mlinkSmartThings.device.command.onOff": "onOff",
435
442
  "mlinkSmartThings.device.command.setAudioMute": "setAudioMute",
436
443
  "mlinkSmartThings.device.command.setAudioVolume": "setAudioVolume",
437
444
  "mlinkSmartThings.device.command.setBrightness": "setBrightness",
438
- "mlinkSmartThings.device.command.setColorRGB": "setColorRGB",
445
+ "mlinkSmartThings.device.command.setColor": "setColor",
439
446
  "mlinkSmartThings.device.command.setColorTemperature": "setColorTemperature",
440
447
  "mlinkSmartThings.device.command.setFan": "setFan",
441
448
  "mlinkSmartThings.device.command.setThermostatMode": "setThermostatMode",
@@ -449,29 +456,30 @@
449
456
  "playground.device.command.chimeControl": "chimeControl",
450
457
  "playground.device.command.chimeSetting": "chimeSetting",
451
458
  "playground.device.command.controlMediaPlayback": "controlMediaPlayback",
452
- "playground.device.command.controlCover": "controlCover",
459
+ "playground.device.command.coverControl": "coverControl",
453
460
  "playground.device.command.doorLock": "doorLock",
454
461
  "playground.device.command.onOff": "onOff",
455
462
  "playground.device.command.playMedia": "playMedia",
456
463
  "playground.device.command.setAudioMute": "setAudioMute",
457
464
  "playground.device.command.setAudioVolume": "setAudioVolume",
458
465
  "playground.device.command.setBrightness": "setBrightness",
459
- "playground.device.command.setColorRGB": "setColorRGB",
466
+ "playground.device.command.setColor": "setColor",
460
467
  "playground.device.command.setColorTemperature": "setColorTemperature",
461
468
  "playground.device.command.setFan": "setFan",
462
469
  "playground.device.command.setThermostatMode": "setThermostatMode",
463
470
  "playground.device.command.setThermostatTemperature": "setThermostatTemperature",
464
471
  "smartLife.device.command.onOff": "onOff",
465
472
  "smartLife.device.command.setBrightness": "setBrightness",
466
- "smartLife.device.command.setColorRGB": "setColorRGB",
473
+ "smartLife.device.command.setColor": "setColor",
467
474
  "smartLife.device.command.setColorTemperature": "setColorTemperature",
468
475
  "smartLife.device.command.setFan": "setFan",
469
476
  "xiaomi.device.command.onOff": "onOff",
470
477
  "xiaomi.device.command.setBrightness": "setBrightness",
471
- "xiaomi.device.command.setColorRGB": "setColorRGB",
478
+ "xiaomi.device.command.setColor": "setColor",
472
479
  "xiaomi.device.command.setColorTemperature": "setColorTemperature",
473
480
  "xiaomi.device.command.setFan": "setFan",
474
481
  "mlinkMatter.device.command.chimeControl": "chimeControl",
475
- "mlinkMatter.device.command.chimeSetting": "chimeSetting"
482
+ "mlinkMatter.device.command.chimeSetting": "chimeSetting",
483
+ "mlinkSwitchBot.device.command.coverControl": "coverControl"
476
484
  }
477
485
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.app-facade.routing.v1",
3
- "contractVersion": "1.150.0",
3
+ "contractVersion": "1.151.1",
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.150.0",
3
+ "contractVersion": "1.151.1",
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.150.0",
3
+ "version": "1.151.1",
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.150.0",
3
+ "contractVersion": "1.151.1",
4
4
  "manifest": "manifest/app-facade.v1.json",
5
5
  "schemas": {
6
6
  "storage": "schema/storage.v1.schema.json",