@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.
- package/contract/wave-v1.md +16 -5
- package/manifest/app-facade.v1.json +1 -2
- package/manifest/authorization.v1.json +1 -2
- 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/routing.v1.json +1 -1
- package/manifest/targets.v1.json +1 -1
- package/package.json +1 -1
- package/protocol.json +1 -1
package/contract/wave-v1.md
CHANGED
|
@@ -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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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.
|
|
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.
|
|
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"
|
package/manifest/routing.v1.json
CHANGED
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED