@mhome/app-facade-protocol 1.131.0 → 1.133.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/automation-presentation-v1.md +6 -1
- package/contract/automation-v1.md +12 -0
- package/contract/nfc-v1.md +3 -2
- 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/routing.v1.json +1 -1
- package/manifest/targets.v1.json +1 -1
- package/package.json +1 -1
- package/protocol.json +1 -1
- package/schema/automation-presentation.v1.schema.json +9 -0
|
@@ -8,7 +8,7 @@ Full and Essential use the same business read scope; UI requests Full.
|
|
|
8
8
|
| --- | --- | --- |
|
|
9
9
|
| `/app/presentation/automation/names/get` | `{ids}`: 1–100 selected, trimmed/deduplicated IDs | `{automations: {id: label}}`. Missing IDs omitted. Selected definition metadata only; no source downloads, parsing, state, history or graph reads. |
|
|
10
10
|
| `/app/presentation/automation/list` | `{type: "RECURRING" \| "TASK_FLOW"}` | `{automations}`: current-type regular user programs, with labels, runnable/health/expiry metadata, enabled/running/blocked, last-run `timestamp`, status timestamps and tags. No temporary-program, Group, Widget, snapshot, graph or authored-source expansion. |
|
|
11
|
-
| `/app/presentation/automation/overview/get` | `{automationId}`: nonblank, trimmed | `{id,name,type,enabled,runnable,corrupted,blocked,widgets}`. Selected metadata, status, cloud quota display state and owned Widget configuration/current values. No source, graph traversal, running history or snapshots. Missing definition is not-found. |
|
|
11
|
+
| `/app/presentation/automation/overview/get` | `{automationId}`: nonblank, trimmed | `{id,name,type,enabled,runnable,corrupted,blocked,saveIncomplete?,widgets}`. Selected metadata, status, cloud quota display state and owned Widget configuration/current values. No source, graph traversal, running history or snapshots. Missing definition is not-found. |
|
|
12
12
|
| `/app/presentation/automation/placements/get` | `{automationId}`: nonblank, trimmed | `{canvases:[{id,name,containsAutomation}]}`. Matches both owned Widget-to-Card relations and dedicated Automation Cards by `meta.automationId`, against Canvas leaf IDs including composition members. Backends read current-Space Card records to resolve these business references; responses contain only Canvas labels and membership flags. Retains existing default-canvas initialization when the Space has none. |
|
|
13
13
|
|
|
14
14
|
Labels use saved preferredName, then the script-derived saved name, then the
|
|
@@ -24,6 +24,11 @@ hydrate source bodies or read the temporary/Group stores. This is not a promise
|
|
|
24
24
|
of a type-specific physical index. Billing display and lifecycle state retain
|
|
25
25
|
their existing authorities; enabled, runnable and running are independent.
|
|
26
26
|
|
|
27
|
+
List items, selected summaries and overview may include `saveIncomplete`.
|
|
28
|
+
It reflects the existing persisted marker for an unfinished definition save,
|
|
29
|
+
independently of execution health, run capability and cloud quota. A completed
|
|
30
|
+
save clears the marker. Readers may treat an absent field as false.
|
|
31
|
+
|
|
27
32
|
List Full timestamps are milliseconds. Essential renders explicit timestamp
|
|
28
33
|
fields in the Space's Home timezone. Widget values retain their existing Widget
|
|
29
34
|
DTO semantics; their numbers are not interpreted as timestamps.
|
|
@@ -26,3 +26,15 @@ Generated Twin and Group programs remain internal resources.
|
|
|
26
26
|
rename. The script's authored root name remains available in the script itself.
|
|
27
27
|
|
|
28
28
|
Inputs are closed objects. The schema is `schema/automation.v1.schema.json`.
|
|
29
|
+
|
|
30
|
+
For `/app/automation/save` and `/app/automation/snapshot/rollback`, the definition
|
|
31
|
+
is committed before the optional attempt to restore the enabled state. If that
|
|
32
|
+
attempt is rejected or unconfirmed, the Facade returns `partial` with the
|
|
33
|
+
Automation ID and `restoreIssue` (`failed` or `unconfirmed`). Rollback also
|
|
34
|
+
includes the snapshot ID. Its `enabled` field is omitted when the post-write
|
|
35
|
+
observation is unavailable. Read current state before deciding whether to enable.
|
|
36
|
+
|
|
37
|
+
`/app/automation/delete` returns `success` when all targets complete and `partial`
|
|
38
|
+
when `deletedIds` and `failedIds` both contain IDs. A batch with no completed
|
|
39
|
+
targets returns `error` with its per-target details. These outcomes apply to direct
|
|
40
|
+
calls and prepared commits, in Full and Essential presentation.
|
package/contract/nfc-v1.md
CHANGED
|
@@ -33,8 +33,9 @@ Only activation changes pending to active and sets createdAt. Repeating activati
|
|
|
33
33
|
preserves createdAt and lastUsedAt. Cancelled/failed physical writes explicitly
|
|
34
34
|
delete pending; read/list/sync do not clean it up. No TTL or background cleanup.
|
|
35
35
|
Update patches configuration without activating or resetting metadata.
|
|
36
|
-
Delete missing IDs
|
|
37
|
-
|
|
36
|
+
Delete treats missing IDs as complete and returns an acknowledgement. SQLite and
|
|
37
|
+
DynamoDB delete a request atomically. Tablestore batch deletion can partially
|
|
38
|
+
apply before returning an error. Physical tags retain their written content.
|
|
38
39
|
Prepared preview includes requested IDs, found state, name and creation state;
|
|
39
40
|
last-use observations do not invalidate a preview.
|
|
40
41
|
|
package/manifest/routing.v1.json
CHANGED
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -98,6 +98,9 @@
|
|
|
98
98
|
"corrupted": {
|
|
99
99
|
"type": "boolean"
|
|
100
100
|
},
|
|
101
|
+
"saveIncomplete": {
|
|
102
|
+
"type": "boolean"
|
|
103
|
+
},
|
|
101
104
|
"runnable": {
|
|
102
105
|
"type": "boolean"
|
|
103
106
|
},
|
|
@@ -177,6 +180,9 @@
|
|
|
177
180
|
"corrupted": {
|
|
178
181
|
"type": "boolean"
|
|
179
182
|
},
|
|
183
|
+
"saveIncomplete": {
|
|
184
|
+
"type": "boolean"
|
|
185
|
+
},
|
|
180
186
|
"blocked": {
|
|
181
187
|
"type": "boolean"
|
|
182
188
|
},
|
|
@@ -265,6 +271,9 @@
|
|
|
265
271
|
"corrupted": {
|
|
266
272
|
"type": "boolean"
|
|
267
273
|
},
|
|
274
|
+
"saveIncomplete": {
|
|
275
|
+
"type": "boolean"
|
|
276
|
+
},
|
|
268
277
|
"runnable": {
|
|
269
278
|
"type": "boolean"
|
|
270
279
|
},
|