@mhome/app-facade-protocol 1.149.0 → 1.151.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.
@@ -10,17 +10,24 @@ 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
17
24
  exactly one transport; there is no implicit discovery or fallback.
18
25
  Results are untrusted location hints, scoped to this caller, Space and Hub
19
26
  generation and transport, expiring after two minutes. They never grant operation
20
- authority.
21
- - `/app/wave/pair` is retired. Core rejects it with guidance to select the
22
- Integration and use `/app/integration/connect`. Its constant/input DTO remain
23
- readable for older clients; this route cannot enroll a device.
27
+ authority. No connected BLE Relay, all-busy Relays or failed scans return an
28
+ availability error rather than a successful empty list. Partial scan coverage
29
+ returns available candidates with a `WAVE_BLE_DISCOVERY_INCOMPLETE` warning.
30
+ A successful empty scan has no such warning.
24
31
  - `/app/wave/list`: `{}` -> `{bindings:[{deviceId,grantState}]}`. States are
25
32
  `candidate`, `committed` or `removing`; this is authorization bookkeeping, not
26
33
  Device/Twin inventory, online state or evidence that a candidate committed on the device.
@@ -59,6 +66,10 @@ Core checks the selected resource before pairing, verifies it against authentica
59
66
  inventory after grant confirmation, writes the normal IntegrationInstall, and
60
67
  publishes compatible entities. It creates no ordinary Connection record.
61
68
 
69
+ The lifecycle response has optional top-level `warnings` for partial discovery,
70
+ including before a device is selected. Committed authorizations are labeled
71
+ “already added”; discovery does not assert that they are online.
72
+
62
73
  The lifecycle response includes `wave: {deviceId,grantState,inventoryState,installed,
63
74
  entityIds,warnings,reason?}`. Completed projection is `status: done`; interrupted
64
75
  setup is `status: failed, recoverable: true, canCancel: false`, preserving committed
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.app-facade.v1",
3
- "contractVersion": "1.149.0",
3
+ "contractVersion": "1.151.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.149.0",
2
+ "contractVersion": "1.151.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.149.0",
3
+ "contractVersion": "1.151.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.149.0",
3
+ "contractVersion": "1.151.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.149.0",
3
+ "contractVersion": "1.151.0",
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.149.0",
3
+ "contractVersion": "1.151.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.149.0",
3
+ "contractVersion": "1.151.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.149.0",
3
+ "version": "1.151.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.149.0",
3
+ "contractVersion": "1.151.0",
4
4
  "manifest": "manifest/app-facade.v1.json",
5
5
  "schemas": {
6
6
  "storage": "schema/storage.v1.schema.json",