@mhome/app-facade-protocol 1.140.0 → 1.141.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/pod-commissioning-v1.md +1 -1
- package/contract/pod-directory-v1.md +2 -0
- package/contract/wave-v1.md +33 -8
- package/fixtures/presentation/cases.json +4 -3
- package/manifest/app-facade.v1.json +1 -1
- package/manifest/authorization.v1.json +1 -1
- 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/presentation-times.v1.json +7 -0
- 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/schema/pod-commission.v1.schema.json +2 -1
|
@@ -339,7 +339,7 @@ not request Bluetooth permission. BLE discovery uses the current Client's radio.
|
|
|
339
339
|
Snapshots may contain both transports when several callers hold leases. A running
|
|
340
340
|
Pod setup may continue LAN browsing to complete a handoff.
|
|
341
341
|
|
|
342
|
-
Initial BLE Wi-Fi setup requires `enrollment: {spaceId, clientMode}`. An
|
|
342
|
+
Initial BLE Wi-Fi setup requires `enrollment: {spaceId, clientMode, firstHub?}`. An
|
|
343
343
|
already-bound Pod changing Wi-Fi uses the stored authorization and omits it.
|
|
344
344
|
An already-networked Pod selects its authorization in the LAN session.
|
|
345
345
|
|
|
@@ -20,6 +20,8 @@ Every row contains `registrationId`, `clientMode` (`user` or `space`), `register
|
|
|
20
20
|
`spaceId` and `appClientId`. Personal rows contain the saved `name`, `deviceId`,
|
|
21
21
|
`model`, `platform`, `firmwareVersion`, `issuedAt`, and `activatedAt`.
|
|
22
22
|
No tokens, enrollment grants, credential IDs or private keys are returned.
|
|
23
|
+
`observedAtMs`, `issuedAt`, and `activatedAt` are Unix milliseconds in Full.
|
|
24
|
+
Essential renders them in the authorized display time zone.
|
|
23
25
|
|
|
24
26
|
Connection is an observation in the indicated Space, not global power state.
|
|
25
27
|
Personal registration IDs are keyed by User and device public-key fingerprint;
|
package/contract/wave-v1.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Wave authorization management
|
|
2
2
|
|
|
3
3
|
These Hub-routed App Facades require current-Space Manage access and an active
|
|
4
4
|
local Hub. They do not make Wave devices Hosts, Nodes or Plugins. No device URL,
|
|
@@ -13,11 +13,9 @@ Space/Hub selector, grant, certificate or private key is an input/output.
|
|
|
13
13
|
Results are untrusted location hints, scoped to this caller, Space and Hub
|
|
14
14
|
generation and transport, expiring after two minutes. They never grant operation
|
|
15
15
|
authority.
|
|
16
|
-
- `/app/wave/pair
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
only for an explicitly opened initial local-claim window. No fallback occurs.
|
|
20
|
-
Retry reconciles an existing candidate; an uncertain result never rotates a key.
|
|
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.
|
|
21
19
|
- `/app/wave/list`: `{}` -> `{bindings:[{deviceId,grantState}]}`. States are
|
|
22
20
|
`candidate` or `committed`; this is authorization bookkeeping, not Device/Twin
|
|
23
21
|
inventory, online state or evidence that a candidate committed on the device.
|
|
@@ -33,6 +31,33 @@ fails. A later refresh uses the existing grant, without consuming another slot.
|
|
|
33
31
|
Missing/uninstalled or incompatible contracts never install code automatically.
|
|
34
32
|
Normal Device/capability APIs own subsequent observations, control and subscriptions.
|
|
35
33
|
|
|
34
|
+
Standard onboarding uses `/app/integration/connect` for a concrete local Integration
|
|
35
|
+
whose compiled model declares `connectAdapter: wave`. It uses the same interactive
|
|
36
|
+
start/input/resolve/next/confirm/read/retry lifecycle as other custom connections.
|
|
37
|
+
The built-in typed form supports PIN6 and explicitly opened initial no-PIN windows.
|
|
38
|
+
Core checks the selected resource before pairing, verifies it against authenticated
|
|
39
|
+
inventory after grant confirmation, writes the normal IntegrationInstall, and
|
|
40
|
+
publishes compatible entities. It creates no ordinary Connection record.
|
|
41
|
+
|
|
42
|
+
The lifecycle response includes `wave: {deviceId,grantState,inventoryState,installed,
|
|
43
|
+
entityIds,warnings,reason?}`. Completed projection is `status: done`; interrupted
|
|
44
|
+
setup is `status: failed, recoverable: true, canCancel: false`, preserving committed
|
|
45
|
+
facts. Retry first reconciles the durable candidate/identity through authenticated
|
|
46
|
+
operation. A committed grant continues installation without pairing. If the grant
|
|
47
|
+
is still unconfirmed, retry returns `needs_input` with a standard typed Flow view
|
|
48
|
+
for the same device. The user opens its pairing window again and re-enters its
|
|
49
|
+
current PIN when required; confirmation reuses the exact saved key/grant/attempt.
|
|
50
|
+
No retry replaces an existing device identity or replays a business command.
|
|
51
|
+
|
|
52
|
+
The decision to request new pairing input survives Core restart. Status can return
|
|
53
|
+
the reconstructed input view. Clients replace their displayed flow with this
|
|
54
|
+
authoritative retry/status view, including its step and revision; they must not
|
|
55
|
+
reuse commands or PINs from the previous page. Reconstructed pages use new step
|
|
56
|
+
identities, while ordinary next/refresh/confirm retain their revision fences.
|
|
57
|
+
Closing this input cancels only the interaction, preserving candidate credentials.
|
|
58
|
+
Additional unavailable capabilities warn without erasing compatible entities.
|
|
59
|
+
Preview selection does not install a business Integration. Integration uninstall
|
|
60
|
+
and physical grant removal are separate operations.
|
|
61
|
+
|
|
36
62
|
Credentials remain Core-local, outside ordinary Connection/privateData/Twin/sync.
|
|
37
|
-
Explicit Hub migration is outside this increment.
|
|
38
|
-
physical target acceptance remain separate increments. Commands are never replayed.
|
|
63
|
+
Explicit Hub migration is outside this increment. Physical target acceptance and publication remain separate from source implementation. Commands are never replayed.
|
|
@@ -1300,6 +1300,7 @@
|
|
|
1300
1300
|
{
|
|
1301
1301
|
"name": "pod-directory-unknown",
|
|
1302
1302
|
"target": "/app/pod/list",
|
|
1303
|
+
"timezone": "Asia/Shanghai",
|
|
1303
1304
|
"data": {
|
|
1304
1305
|
"spaceId": "space-demo",
|
|
1305
1306
|
"observedAtMs": 1800000000000,
|
|
@@ -1329,7 +1330,7 @@
|
|
|
1329
1330
|
"status": "success",
|
|
1330
1331
|
"essential": {
|
|
1331
1332
|
"spaceId": "space-demo",
|
|
1332
|
-
"observedAtMs":
|
|
1333
|
+
"observedAtMs": "2027-01-15 16:00:00 +08:00 (Asia/Shanghai)",
|
|
1333
1334
|
"pods": [
|
|
1334
1335
|
{
|
|
1335
1336
|
"registrationId": "pod-demo",
|
|
@@ -1340,8 +1341,8 @@
|
|
|
1340
1341
|
"model": "Pod",
|
|
1341
1342
|
"platform": "esp32",
|
|
1342
1343
|
"firmwareVersion": "1.0.0",
|
|
1343
|
-
"issuedAt":
|
|
1344
|
-
"activatedAt":
|
|
1344
|
+
"issuedAt": "2027-01-15 16:00:00 +08:00 (Asia/Shanghai)",
|
|
1345
|
+
"activatedAt": "2027-01-15 16:00:01 +08:00 (Asia/Shanghai)",
|
|
1345
1346
|
"connection": {
|
|
1346
1347
|
"state": "unknown",
|
|
1347
1348
|
"source": "unavailable",
|
package/manifest/routing.v1.json
CHANGED
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -107,7 +107,8 @@
|
|
|
107
107
|
"required": ["spaceId", "clientMode"],
|
|
108
108
|
"properties": {
|
|
109
109
|
"spaceId": { "type": "string", "minLength": 1 },
|
|
110
|
-
"clientMode": { "enum": ["user", "space"] }
|
|
110
|
+
"clientMode": { "enum": ["user", "space"] },
|
|
111
|
+
"firstHub": { "type": "boolean" }
|
|
111
112
|
}
|
|
112
113
|
},
|
|
113
114
|
"authorization": {
|