@mhome/app-facade-protocol 1.169.1 → 1.170.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 +48 -89
- 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
|
@@ -1,94 +1,53 @@
|
|
|
1
|
-
# Wave authorization management
|
|
1
|
+
# Wave authorization and business management
|
|
2
2
|
|
|
3
3
|
These Hub-routed App Facades require current-Space Manage access and an active
|
|
4
|
-
local Hub. Each physical
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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.
|
|
21
|
-
LAN discovery browses `_meow-wave._tcp.local.`; it never invokes BLE Relay.
|
|
22
|
-
BLE discovery searches only bound relays for pure BLE operation. It does not
|
|
23
|
-
discover unconfigured Wi-Fi devices for network setup. The caller selects
|
|
24
|
-
exactly one transport; there is no implicit discovery or fallback.
|
|
25
|
-
Results are untrusted location hints, scoped to this caller, Space and Hub
|
|
26
|
-
generation and transport, expiring after two minutes. They never grant operation
|
|
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.
|
|
31
|
-
- `/app/wave/list`: `{}` -> `{bindings:[{deviceId,grantState}]}`. States are
|
|
32
|
-
`candidate`, `committed` or `removing`; this is authorization bookkeeping, not
|
|
33
|
-
Device/Twin inventory, online state or evidence that a candidate committed on the device.
|
|
34
|
-
- `/app/wave/refresh`: `{deviceId}` -> AdmissionResult. Reconcile the same saved
|
|
35
|
-
credential, validate full Entity self-description against installed contracts,
|
|
36
|
-
then use ordinary Twin source synchronization. It cannot open a pairing window.
|
|
4
|
+
local Hub. Each physical product has one Space owner. Keys, grants, certificates,
|
|
5
|
+
Hub selectors and device addresses never enter these inputs or results.
|
|
6
|
+
|
|
7
|
+
Physical addition uses the common device-owned operation and its Cloud approval;
|
|
8
|
+
see [onboarding](../../onboard-api/contract/onboarding-v1.md). There is no separate
|
|
9
|
+
Wave discovery/pair Facade or Integration Connect initial writer.
|
|
10
|
+
|
|
11
|
+
- `/app/wave/list`: `{}` -> `{bindings:[{deviceId,grantState}]}`. Candidate,
|
|
12
|
+
committed and removing describe saved authorization, not reachability or Twins.
|
|
13
|
+
- `/app/wave/refresh`: `{deviceId}` -> AdmissionResult. Only an already committed
|
|
14
|
+
common-operation binding may supply authenticated inventory. The operation
|
|
15
|
+
validates it against installed business contracts and feeds ordinary Twin
|
|
16
|
+
synchronization. It cannot create credentials, promote a candidate, open a
|
|
17
|
+
physical window or renew operation authority.
|
|
37
18
|
- `/app/wave/remove`: `{deviceId,forgetAfterDeviceReset?:boolean}` ->
|
|
38
|
-
`{deviceId,grantState}`.
|
|
39
|
-
|
|
40
|
-
`
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
authenticate another attempt, even when the device is reachable. The user
|
|
45
|
-
clears Wave authorization locally on the device, then explicitly confirms
|
|
46
|
-
`forgetAfterDeviceReset:true` to clear this Space's saved binding. This confirmation
|
|
47
|
-
does not itself reset or revoke anything on the device. `unbound` means no saved
|
|
48
|
-
binding remains.
|
|
49
|
-
`forgotten` clears its saved local binding without a device revocation reply.
|
|
50
|
-
Clearing a local binding also clears its published inventory. Ordinary
|
|
51
|
-
Integration uninstall remains a separate operation.
|
|
19
|
+
`{deviceId,grantState}`. `removed` confirms authenticated device revocation and
|
|
20
|
+
local cleanup. `removing` retains an uncertain outcome for explicit recovery.
|
|
21
|
+
`unbound` reports no saved binding. After local device reset, explicit
|
|
22
|
+
`forgetAfterDeviceReset:true` may return `forgotten`; this clears bookkeeping
|
|
23
|
+
without claiming that Core reset or revoked the device. Published sources are
|
|
24
|
+
cleared with the binding. Integration uninstall is independent.
|
|
52
25
|
|
|
53
26
|
AdmissionResult is `{deviceId,grantState,inventoryState,entityIds,reason?}`.
|
|
54
|
-
`inventoryState:ready` means
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
No retry replaces an existing device identity or replays a business command.
|
|
82
|
-
|
|
83
|
-
The decision to request new pairing input survives Core restart. Status can return
|
|
84
|
-
the reconstructed input view. Clients replace their displayed flow with this
|
|
85
|
-
authoritative retry/status view, including its step and revision; they must not
|
|
86
|
-
reuse commands or PINs from the previous page. Reconstructed pages use new step
|
|
87
|
-
identities, while ordinary next/refresh/confirm retain their revision fences.
|
|
88
|
-
Closing this input cancels only the interaction, preserving candidate credentials.
|
|
89
|
-
Additional unavailable capabilities warn without erasing compatible entities.
|
|
90
|
-
Preview selection does not install a business Integration. Integration uninstall
|
|
91
|
-
and physical grant removal are separate operations.
|
|
92
|
-
|
|
93
|
-
Credentials remain Core-local, outside ordinary Connection/privateData/Twin/sync.
|
|
94
|
-
Explicit Hub migration is outside this increment. Physical target acceptance and publication remain separate from source implementation. Commands are never replayed.
|
|
27
|
+
`inventoryState:ready` means business synchronization completed. An unavailable
|
|
28
|
+
business definition or endpoint preserves committed product ownership and may
|
|
29
|
+
produce partial results/warnings. Business failure never starts onboarding.
|
|
30
|
+
Normal Device/capability interfaces own later observations and control.
|
|
31
|
+
|
|
32
|
+
Core initiates business inventory after successful operating confirmation, on
|
|
33
|
+
Hub readiness, and through the existing resource-recovery lifecycle. These are
|
|
34
|
+
bounded, cancellable derived-projection jobs, not another onboarding state
|
|
35
|
+
machine. Periodic recovery need not reread products with retained Twin sources;
|
|
36
|
+
resource changes can revalidate all committed products.
|
|
37
|
+
|
|
38
|
+
A concrete Integration with `connectAdapter:wave` may use ordinary
|
|
39
|
+
`/app/integration/connect` for an explicit business association. Its one typed
|
|
40
|
+
form chooses a product already bound to this Hub. There are no transport, PIN,
|
|
41
|
+
window or discovery-candidate fields. Authenticated inventory must advertise the
|
|
42
|
+
chosen Integration before normal Integration installation and Twin publication.
|
|
43
|
+
The flow creates no ordinary Connection or product credentials.
|
|
44
|
+
|
|
45
|
+
The lifecycle result retains
|
|
46
|
+
`wave:{deviceId,grantState,inventoryState,installed,entityIds,warnings,reason?}`.
|
|
47
|
+
Complete business projection returns `status:done`; interrupted work returns
|
|
48
|
+
`status:failed,recoverable:true,canCancel:false`. An immutable accepted receipt
|
|
49
|
+
survives restart. Retry resumes only business installation/synchronization for
|
|
50
|
+
its original caller, device and selected resource; a removed device cannot
|
|
51
|
+
resume. It never reconstructs pairing input, changes keys or repeats a business
|
|
52
|
+
command. Missing definitions do not authorize arbitrary script or Plugin code
|
|
53
|
+
installation. Credentials remain Core-local and outside sync/exported Twins.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest": "mhome.app-facade.v1",
|
|
3
|
-
"contractVersion": "1.
|
|
3
|
+
"contractVersion": "1.170.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",
|
|
@@ -489,7 +489,6 @@
|
|
|
489
489
|
"wave": {
|
|
490
490
|
"contract": "contract/wave-v1.md",
|
|
491
491
|
"requestTargets": [
|
|
492
|
-
"/app/wave/discover",
|
|
493
492
|
"/app/wave/list",
|
|
494
493
|
"/app/wave/refresh",
|
|
495
494
|
"/app/wave/remove"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contractVersion": "1.
|
|
2
|
+
"contractVersion": "1.170.0",
|
|
3
3
|
"operations": {
|
|
4
4
|
"/app/agent/context/get": "spaceRead",
|
|
5
5
|
"/app/agent/conversation/get": "spaceRead",
|
|
@@ -332,7 +332,6 @@
|
|
|
332
332
|
"/app/user/profile/avatar/prepare": "userWrite",
|
|
333
333
|
"/app/user/profile/get": "userRead",
|
|
334
334
|
"/app/user/profile/update": "userWrite",
|
|
335
|
-
"/app/wave/discover": "spaceManage",
|
|
336
335
|
"/app/wave/list": "spaceManage",
|
|
337
336
|
"/app/wave/refresh": "spaceManage",
|
|
338
337
|
"/app/wave/remove": "spaceManage",
|
package/manifest/routing.v1.json
CHANGED
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED