@mhome/app-facade-protocol 1.164.0 → 1.165.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/README.md CHANGED
@@ -317,3 +317,37 @@ Agent Profile Markdown image ownership and canonical read-back are specified in
317
317
  [Agent Profile media](contract/agent-profile-media-v1.md).
318
318
 
319
319
  NFC management: [contract](contract/nfc-v1.md), [schema](schema/nfc.v1.schema.json).
320
+
321
+ ### Space creation identity and cancellation
322
+
323
+ `/app/space/create` commits the initial Owner and default data before `ACTIVE`.
324
+ A completed retry checks current Owner authority; it never restores a removed membership.
325
+ The authenticated, unspaced `/app/space/create/cancel` takes `{ "requestId": "..." }`.
326
+ It resolves the same server-derived Space identity without name searches or client-side ID derivation.
327
+ For missing/incomplete creation it durably starts the normal deletion operation; for `ACTIVE`
328
+ it returns `accepted: false`, the exact `spaceId`, `state: "ACTIVE"`, and `deleted: false`.
329
+ The caller must use normal Space deletion for that completed Space. Other results expose
330
+ `accepted`, nullable `operationId`, `spaceId`, `state`, `message`, and `deleted`; use
331
+ `/app/space/delete/status` with the accepted operation ID to observe completion.
332
+ Cancellation never renews a request or its retry deadline and remains available after expiry.
333
+
334
+ Testing accounts are identified by the server's enabled testing-account registry. Any account
335
+ may use ordinary opaque request IDs, including App and Agent creation by testing accounts;
336
+ their terminal identity/operation records have no automatic expiry. E2E producers use bounded
337
+ creation request IDs of the form `e2e-v1:<Unix deadline seconds>:<canonical UUID>` with a
338
+ maximum 24-hour creation window (one minute of clock skew). The whole string is immutable;
339
+ changing its deadline changes the creation identity. All authentication methods enforce expiry.
340
+ Ordinary opaque creation request IDs keep their existing identity derivation. A bounded ID
341
+ alone does not grant retention eligibility to an ordinary account.
342
+
343
+ Ordinary deletion retains only a terminal identity marker after business cleanup. For registered
344
+ testing creations with a bounded request ID, only confirmed terminal identity/operation records
345
+ receive AWS per-item `expireAt` TTL, after the creation cutoff and delayed final-sweep/in-flight
346
+ budgets. Live, failed and uncertain work has no automatic TTL. Database TTL is asynchronous;
347
+ Aliyun's table-wide TTL is not used for mixed ordinary/testing identities.
348
+
349
+ All Lion instances sharing this Space store must enforce the expiring-request contract
350
+ before terminal TTL records are produced. Upgrade both the public AWS service and local
351
+ cloud instances together. An old writer that accepts expired IDs would invalidate the
352
+ retention guarantee after collection; rolling back to that creation behavior is unsupported.
353
+ Enabling database TTL alone does not expire rows that have no `expireAt` attribute.
@@ -1302,32 +1302,6 @@
1302
1302
  "status": "success"
1303
1303
  }
1304
1304
  },
1305
- {
1306
- "target": "/app/capability/invoke/json",
1307
- "input": {
1308
- "capabilityId": "basic.device.command.setCameraRecording",
1309
- "request": {
1310
- "device": "camera",
1311
- "mode": "off",
1312
- "internal": "private-request"
1313
- }
1314
- },
1315
- "outcome": {
1316
- "status": "success",
1317
- "data": {
1318
- "internal": "private-response"
1319
- }
1320
- },
1321
- "expected": {
1322
- "event": "device.command",
1323
- "capabilityId": "basic.device.command.setCameraRecording",
1324
- "parameters": {
1325
- "device": "camera",
1326
- "mode": "off"
1327
- },
1328
- "status": "success"
1329
- }
1330
- },
1331
1305
  {
1332
1306
  "target": "/app/capability/invoke/json",
1333
1307
  "input": {
@@ -31,6 +31,38 @@
31
31
  "cloudReady": false,
32
32
  "entry": "unavailable"
33
33
  },
34
+ {
35
+ "target": "/app/space/create/cancel",
36
+ "execution": "cloud",
37
+ "placement": null,
38
+ "hubReady": true,
39
+ "cloudReady": true,
40
+ "entry": "cloud"
41
+ },
42
+ {
43
+ "target": "/app/space/create/cancel",
44
+ "execution": "cloud",
45
+ "placement": null,
46
+ "hubReady": true,
47
+ "cloudReady": false,
48
+ "entry": "unavailable"
49
+ },
50
+ {
51
+ "target": "/app/space/create/cancel",
52
+ "execution": "cloud",
53
+ "placement": null,
54
+ "hubReady": false,
55
+ "cloudReady": true,
56
+ "entry": "cloud"
57
+ },
58
+ {
59
+ "target": "/app/space/create/cancel",
60
+ "execution": "cloud",
61
+ "placement": null,
62
+ "hubReady": false,
63
+ "cloudReady": false,
64
+ "entry": "unavailable"
65
+ },
34
66
  {
35
67
  "target": "/app/room/delete",
36
68
  "execution": "spaceMode",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.app-facade.v1",
3
- "contractVersion": "1.164.0",
3
+ "contractVersion": "1.165.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",
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractVersion": "1.164.0",
2
+ "contractVersion": "1.165.0",
3
3
  "operations": {
4
4
  "/app/agent/context/get": "spaceRead",
5
5
  "/app/agent/conversation/get": "spaceRead",
@@ -273,6 +273,7 @@
273
273
  "/app/space/beta/update": "spaceManage",
274
274
  "/app/space/context/get": "spaceRead",
275
275
  "/app/space/create": "userWrite",
276
+ "/app/space/create/cancel": "userWrite",
276
277
  "/app/space/delete": "userWrite",
277
278
  "/app/space/delete/status": "userRead",
278
279
  "/app/space/detail/get": "spaceRead",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.host-provision.targets.v1",
3
- "contractVersion": "1.164.0",
3
+ "contractVersion": "1.165.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.164.0",
3
+ "contractVersion": "1.165.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.164.0",
3
+ "contractVersion": "1.165.0",
4
4
  "contract": "contract/pod-commissioning-v1.md",
5
5
  "localTargets": [
6
6
  "/local/pod/discovery/start",
@@ -385,10 +385,6 @@
385
385
  "speed",
386
386
  "duration"
387
387
  ],
388
- "setCameraRecording": [
389
- "device",
390
- "mode"
391
- ],
392
388
  "setCameraSetting": [
393
389
  "device",
394
390
  "monitoringMode",
@@ -424,7 +420,6 @@
424
420
  "basic.device.command.setAudioMute": "setAudioMute",
425
421
  "basic.device.command.setAudioVolume": "setAudioVolume",
426
422
  "basic.device.command.setBrightness": "setBrightness",
427
- "basic.device.command.setCameraRecording": "setCameraRecording",
428
423
  "basic.device.command.setCameraSetting": "setCameraSetting",
429
424
  "basic.device.command.setColor": "setColor",
430
425
  "basic.device.command.setColorTemperature": "setColorTemperature",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.app-facade.routing.v1",
3
- "contractVersion": "1.164.0",
3
+ "contractVersion": "1.165.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.164.0",
3
+ "contractVersion": "1.165.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.164.0",
3
+ "version": "1.165.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.164.0",
3
+ "contractVersion": "1.165.0",
4
4
  "manifest": "manifest/app-facade.v1.json",
5
5
  "schemas": {
6
6
  "dashboardCardAuthoring": "schema/dashboard-card-authoring.v1.schema.json",