@mhome/app-facade-protocol 1.132.0 → 1.134.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 +9 -1
- package/contract/automation-v1.md +7 -1
- 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 +18 -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,14 @@ 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 `pendingOperation`
|
|
28
|
+
(`create`, `update` or `delete`). Omission means the definition is ready for
|
|
29
|
+
ordinary management. An incomplete creation can only be deleted; an incomplete
|
|
30
|
+
update can be saved again or deleted; an incomplete deletion can be continued
|
|
31
|
+
by deleting the same ID. All three states block new execution. The
|
|
32
|
+
`saveIncomplete` field remains available to older clients and is true when a
|
|
33
|
+
pending operation is present.
|
|
34
|
+
|
|
27
35
|
List Full timestamps are milliseconds. Essential renders explicit timestamp
|
|
28
36
|
fields in the Space's Home timezone. Widget values retain their existing Widget
|
|
29
37
|
DTO semantics; their numbers are not interpreted as timestamps.
|
|
@@ -32,9 +32,15 @@ is committed before the optional attempt to restore the enabled state. If that
|
|
|
32
32
|
attempt is rejected or unconfirmed, the Facade returns `partial` with the
|
|
33
33
|
Automation ID and `restoreIssue` (`failed` or `unconfirmed`). Rollback also
|
|
34
34
|
includes the snapshot ID. Its `enabled` field is omitted when the post-write
|
|
35
|
-
observation is unavailable.
|
|
35
|
+
observation is unavailable. A newer user stop or definition change supersedes a
|
|
36
|
+
pending restoration without changing the successful definition save. Read
|
|
37
|
+
current state before deciding whether to enable.
|
|
36
38
|
|
|
37
39
|
`/app/automation/delete` returns `success` when all targets complete and `partial`
|
|
38
40
|
when `deletedIds` and `failedIds` both contain IDs. A batch with no completed
|
|
39
41
|
targets returns `error` with its per-target details. These outcomes apply to direct
|
|
40
42
|
calls and prepared commits, in Full and Essential presentation.
|
|
43
|
+
|
|
44
|
+
A partially deleted definition remains available for deletion with the same ID.
|
|
45
|
+
Existing cleanup steps tolerate resources already removed by an earlier attempt.
|
|
46
|
+
An already absent and cleaned definition is a completed delete target.
|
package/manifest/routing.v1.json
CHANGED
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -98,6 +98,12 @@
|
|
|
98
98
|
"corrupted": {
|
|
99
99
|
"type": "boolean"
|
|
100
100
|
},
|
|
101
|
+
"pendingOperation": {
|
|
102
|
+
"enum": ["create", "update", "delete"]
|
|
103
|
+
},
|
|
104
|
+
"saveIncomplete": {
|
|
105
|
+
"type": "boolean"
|
|
106
|
+
},
|
|
101
107
|
"runnable": {
|
|
102
108
|
"type": "boolean"
|
|
103
109
|
},
|
|
@@ -177,6 +183,12 @@
|
|
|
177
183
|
"corrupted": {
|
|
178
184
|
"type": "boolean"
|
|
179
185
|
},
|
|
186
|
+
"pendingOperation": {
|
|
187
|
+
"enum": ["create", "update", "delete"]
|
|
188
|
+
},
|
|
189
|
+
"saveIncomplete": {
|
|
190
|
+
"type": "boolean"
|
|
191
|
+
},
|
|
180
192
|
"blocked": {
|
|
181
193
|
"type": "boolean"
|
|
182
194
|
},
|
|
@@ -265,6 +277,12 @@
|
|
|
265
277
|
"corrupted": {
|
|
266
278
|
"type": "boolean"
|
|
267
279
|
},
|
|
280
|
+
"pendingOperation": {
|
|
281
|
+
"enum": ["create", "update", "delete"]
|
|
282
|
+
},
|
|
283
|
+
"saveIncomplete": {
|
|
284
|
+
"type": "boolean"
|
|
285
|
+
},
|
|
268
286
|
"runnable": {
|
|
269
287
|
"type": "boolean"
|
|
270
288
|
},
|