@mhome/app-facade-protocol 1.170.0 → 1.171.1
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 +15 -2
- package/contract/device-lifecycle-v1.md +39 -0
- package/contract/entity-v1.md +4 -1
- package/contract/resource-read-v1.md +22 -5
- package/fixtures/presentation/cases.json +188 -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/presentation-times.v1.json +7 -3
- 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 +81 -15
|
@@ -7,8 +7,8 @@ Full and Essential use the same business read scope; UI requests Full.
|
|
|
7
7
|
| Target | Input | Output and read boundary |
|
|
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
|
-
| `/app/presentation/automation/list` | `{type: "RECURRING" \| "TASK_FLOW"}` | `{automations}`: current-type regular user programs, with labels, runnable/
|
|
11
|
-
| `/app/presentation/automation/overview/get` | `{automationId}`: nonblank, trimmed | `{id,name,type,enabled,runnable,
|
|
10
|
+
| `/app/presentation/automation/list` | `{type: "RECURRING" \| "TASK_FLOW"}` | `{automations}`: current-type regular user programs, with labels, runnable/last-execution/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,lastExecution,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
|
|
@@ -89,3 +89,16 @@ The script-source editor and all legacy `/automation/*` Controller routes are
|
|
|
89
89
|
retired. Configuration editing retains the existing internal save behavior;
|
|
90
90
|
public `/app/automation/save` retains its independent validated-source contract
|
|
91
91
|
for Agent/CLI/MCP. Internal compiler/format capabilities remain available.
|
|
92
|
+
|
|
93
|
+
### Latest execution result
|
|
94
|
+
|
|
95
|
+
`lastExecution` is null until the current definition revision has a completed execution.
|
|
96
|
+
Otherwise it contains `{revision, threadId, instanceId, finishedAt, outcome}`.
|
|
97
|
+
`finishedAt` is UTC epoch milliseconds in Full responses; Essential uses the declared
|
|
98
|
+
display timezone. `outcome` is one of `SUCCEEDED`, `FAILED`, `INTERRUPTED`, `CANCELLED`.
|
|
99
|
+
This is the latest completed execution, not a permanent health flag or an assessment
|
|
100
|
+
of every branch/member. Saving a new revision hides the previous result. Enable and
|
|
101
|
+
disable alone preserve it. Out-of-order reports cannot replace a newer result.
|
|
102
|
+
The small activity summary is independent of detailed diagnostic retention and does
|
|
103
|
+
not add an activity-history row. Suppression follows the existing runtime outcome;
|
|
104
|
+
there is no separate suppressed terminal state. The durable `corrupted` flag is removed.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Device lifecycle outcomes
|
|
2
|
+
|
|
3
|
+
`/app/device/enable` and `/app/device/disable` accept `{ids}` for exact physical
|
|
4
|
+
Device IDs. Tenant and Space come from authenticated context. All IDs and enable
|
|
5
|
+
metadata are validated before projection commits. Groups use their separate
|
|
6
|
+
application lifecycle.
|
|
7
|
+
|
|
8
|
+
Enable data contains `requestedIds`, `enabledIds`, `alreadyEnabledIds`, `pendingIds`
|
|
9
|
+
and `issues`. Disable uses `disabledIds` and `alreadyDisabledIds` instead. ID arrays
|
|
10
|
+
preserve normalized request order. Each issue contains `deviceId`, `stage`, `code`
|
|
11
|
+
and `message`. Stages are `projection`, `cleanup` or `confirmation`. Issues are
|
|
12
|
+
ordered by requested Device, retaining stage order within one Device.
|
|
13
|
+
|
|
14
|
+
Preparation errors before commits return an ordinary error. Once commit or cleanup
|
|
15
|
+
work has started, retain per-Device commit errors and confirm the persisted final
|
|
16
|
+
lifecycle. A failure for one Device does not erase another Device's completion.
|
|
17
|
+
`pendingIds` means the requested final lifecycle could not be confirmed, not that
|
|
18
|
+
no effects occurred. An issue may remain even when final lifecycle is confirmed:
|
|
19
|
+
a command can commit before its error is received. Do not turn an unknown result
|
|
20
|
+
into a successful or effect-free failure result.
|
|
21
|
+
|
|
22
|
+
A nonempty `pendingIds` or `issues` returns `partial`; clean completion returns
|
|
23
|
+
`success`. Confirmation-read failures preserve previous confirmations and return
|
|
24
|
+
the remaining IDs as pending with their confirmation issues. Failed commits get
|
|
25
|
+
one confirmation read and do not consume the asynchronous confirmation wait by
|
|
26
|
+
themselves. Full and Essential retain the same result fields; clients do not
|
|
27
|
+
rebuild this outcome.
|
|
28
|
+
|
|
29
|
+
Disable persists `disabling` before cleaning derived resources and writes
|
|
30
|
+
`disabled` only when cleanup completes. Failed or interrupted cleanup stays
|
|
31
|
+
retryable through the same disable operation, including after a restart. Enable
|
|
32
|
+
rejects `disabling`. No additional lifecycle database or automatic retry service
|
|
33
|
+
is introduced. Source devices, Device identity and retained Device history remain.
|
|
34
|
+
|
|
35
|
+
List, selected detail and the Device UI entry expose `lifecycle`. `active` is its
|
|
36
|
+
boolean projection (`enabled` only); generated Card presence is separate metadata.
|
|
37
|
+
UI displays unfinished cleanup and offers retry-disable. Refresh after either
|
|
38
|
+
successful or failed mutations reads the authoritative state; local UI toggles do
|
|
39
|
+
not manufacture a completed lifecycle.
|
package/contract/entity-v1.md
CHANGED
|
@@ -16,7 +16,10 @@ built-in Entity types; other types are Integration-defined.
|
|
|
16
16
|
`resource` is `{entityId, latest: [{capabilityId, state?, event?, log?}]}`.
|
|
17
17
|
These are latest persisted observations, without refreshing a Provider or deriving
|
|
18
18
|
online status. Groups read their own observations without expanding members.
|
|
19
|
-
|
|
19
|
+
Saved Locations read their Twin observations, including retained current weather
|
|
20
|
+
only when its coordinates match the saved Location. Weather from an old address
|
|
21
|
+
is omitted; reads do not fetch replacement weather. Existing AppClient endpoints
|
|
22
|
+
return `latest: []`; missing resources use
|
|
20
23
|
`found: false, reason: "not_found"` and omit resource. No observations is not missing.
|
|
21
24
|
- `/app/entity/history/list` remains independent and returns all retained matching records, with optional explicit time bounds.
|
|
22
25
|
|
|
@@ -17,25 +17,29 @@ follow the Space execution authority on both local Core and cloud.
|
|
|
17
17
|
| `/app/widget/list` | `{}` | Summaries: id, displayName, description, type, tag; Data adds dataType/repeated. No list mode or full-definition catalog |
|
|
18
18
|
| `/app/widget/detail/get` | `{ids}` | Existing ordered `items` with `widget` configuration; no value, next or nextTimestamp |
|
|
19
19
|
| `/app/widget/value/get` | `{ids}` | Ordered `items` with `resource: {widgetId, revision, value, next?, nextTimestamp?}` |
|
|
20
|
-
| `/app/automation/status` | `{ids}` | Ordered `items` with `resource: {automationId, enabled, runnable,
|
|
20
|
+
| `/app/automation/status` | `{ids}` | Ordered `items` with `resource: {automationId, enabled, runnable, lastExecution, running, blocked, lastRunAt}`; temporary programs also include `expireAt` |
|
|
21
21
|
| `/app/graph/relations/get` | `{resource: {kind, id}}` | `{resource, relations: [{from, relation, to, capabilityIds?}]}` |
|
|
22
22
|
|
|
23
23
|
Device list and detail discriminate status using `group`: physical Devices (`false`)
|
|
24
|
-
always include boolean `active` and omit `applyState`; Groups (`true`) always include
|
|
25
|
-
`applyState` (`applying`, `ready`, `failed`, `deleting`) and omit `active`. Both Full
|
|
24
|
+
always include boolean `active` and `lifecycle` (`enabled`, `disabling`, `disabled`) and omit `applyState`; Groups (`true`) always include
|
|
25
|
+
`applyState` (`applying`, `ready`, `failed`, `deleting`) and omit `active` and `lifecycle`. Both Full
|
|
26
26
|
and Essential preserve these fields. `active` describes physical Twin enablement,
|
|
27
|
-
not on/off or reachability. Group state comes from its stored definition, never a
|
|
27
|
+
not on/off or reachability. `active` is true only for `enabled`; `disabling` means cleanup has not completed, and is not an ordinary disabled device. UI offers retry-disable for that state and does not offer enable. The persisted Twin lifecycle is authoritative; Card presence never determines enablement. The legacy Device UI entry also carries that lifecycle. Group state comes from its stored definition, never a
|
|
28
28
|
Twin lookup; `ready` confirms application, not member reachability. Group diagnostics
|
|
29
29
|
and application errors are available through Group detail. Device enable/disable
|
|
30
30
|
accepts physical IDs only. This does not add Group enablement or alter lifecycle writes.
|
|
31
31
|
|
|
32
|
+
See [Device lifecycle outcomes](device-lifecycle-v1.md) for batch writes and retry behavior.
|
|
33
|
+
|
|
32
34
|
Observation batches accept 1–100 IDs, reject blanks, trim and deduplicate preserving
|
|
33
35
|
request order. Every normalized ID gets `{requestedId, found, resource?}`; missing
|
|
34
36
|
resources have `found: false, reason: "not_found"`. A known Device with no observations
|
|
35
37
|
has `found: true` and `latest: []`. Unknown reachability omits `online`; it is not false.
|
|
36
38
|
Device state supports visible physical devices and Device groups. General Entity state
|
|
37
39
|
also requires entityType, supports same-type Groups and respects source visibility;
|
|
38
|
-
|
|
40
|
+
saved Locations read their Twin observations, including retained weather matching
|
|
41
|
+
the saved coordinates. Weather from an old address is omitted without refreshing
|
|
42
|
+
the source. Known AppClient endpoints return empty latest without querying Twin. Automation status
|
|
39
43
|
accepts user program IDs, including retained one-time programs, not groups or internal
|
|
40
44
|
Twin programs. Widget value supports Data, Button and Circadian resources. JSON null
|
|
41
45
|
is a value, not a missing resource. Button values may be null.
|
|
@@ -134,3 +138,16 @@ a Core Device Group or require a separate parent Entity. Optional `setupStatus`
|
|
|
134
138
|
(`pending`, `failed`, `ready`) describes initial provider admission independently
|
|
135
139
|
of user enablement and subsequent online/offline observations. Essential device
|
|
136
140
|
lists retain both fields.
|
|
141
|
+
|
|
142
|
+
### Latest execution result
|
|
143
|
+
|
|
144
|
+
`lastExecution` is null until the current definition revision has a completed execution.
|
|
145
|
+
Otherwise it contains `{revision, threadId, instanceId, finishedAt, outcome}`.
|
|
146
|
+
`finishedAt` is UTC epoch milliseconds in Full responses; Essential uses the declared
|
|
147
|
+
display timezone. `outcome` is one of `SUCCEEDED`, `FAILED`, `INTERRUPTED`, `CANCELLED`.
|
|
148
|
+
This is the latest completed execution, not a permanent health flag or an assessment
|
|
149
|
+
of every branch/member. Saving a new revision hides the previous result. Enable and
|
|
150
|
+
disable alone preserve it. Out-of-order reports cannot replace a newer result.
|
|
151
|
+
The small activity summary is independent of detailed diagnostic retention and does
|
|
152
|
+
not add an activity-history row. Suppression follows the existing runtime outcome;
|
|
153
|
+
there is no separate suppressed terminal state. The durable `corrupted` flag is removed.
|
|
@@ -464,7 +464,8 @@
|
|
|
464
464
|
"availabilityStatus": "unavailable",
|
|
465
465
|
"blueprintIds": [
|
|
466
466
|
"light"
|
|
467
|
-
]
|
|
467
|
+
],
|
|
468
|
+
"lifecycle": "disabling"
|
|
468
469
|
},
|
|
469
470
|
{
|
|
470
471
|
"entityId": "g:1",
|
|
@@ -498,7 +499,8 @@
|
|
|
498
499
|
"availabilityStatus": "unavailable",
|
|
499
500
|
"blueprintIds": [
|
|
500
501
|
"light"
|
|
501
|
-
]
|
|
502
|
+
],
|
|
503
|
+
"lifecycle": "disabling"
|
|
502
504
|
},
|
|
503
505
|
{
|
|
504
506
|
"entityId": "g:1",
|
|
@@ -5204,5 +5206,189 @@
|
|
|
5204
5206
|
}
|
|
5205
5207
|
]
|
|
5206
5208
|
}
|
|
5209
|
+
},
|
|
5210
|
+
{
|
|
5211
|
+
"name": "device-enable-retains-mixed-issues",
|
|
5212
|
+
"target": "/app/device/enable",
|
|
5213
|
+
"data": {
|
|
5214
|
+
"requestedIds": [
|
|
5215
|
+
"a",
|
|
5216
|
+
"b"
|
|
5217
|
+
],
|
|
5218
|
+
"enabledIds": [
|
|
5219
|
+
"a"
|
|
5220
|
+
],
|
|
5221
|
+
"alreadyEnabledIds": [],
|
|
5222
|
+
"pendingIds": [
|
|
5223
|
+
"b"
|
|
5224
|
+
],
|
|
5225
|
+
"issues": [
|
|
5226
|
+
{
|
|
5227
|
+
"deviceId": "b",
|
|
5228
|
+
"stage": "projection",
|
|
5229
|
+
"code": "TEMPORARY_UNAVAILABLE",
|
|
5230
|
+
"message": "Device operation could not complete"
|
|
5231
|
+
}
|
|
5232
|
+
]
|
|
5233
|
+
},
|
|
5234
|
+
"status": "partial",
|
|
5235
|
+
"essential": {
|
|
5236
|
+
"requestedIds": [
|
|
5237
|
+
"a",
|
|
5238
|
+
"b"
|
|
5239
|
+
],
|
|
5240
|
+
"enabledIds": [
|
|
5241
|
+
"a"
|
|
5242
|
+
],
|
|
5243
|
+
"alreadyEnabledIds": [],
|
|
5244
|
+
"pendingIds": [
|
|
5245
|
+
"b"
|
|
5246
|
+
],
|
|
5247
|
+
"issues": [
|
|
5248
|
+
{
|
|
5249
|
+
"deviceId": "b",
|
|
5250
|
+
"stage": "projection",
|
|
5251
|
+
"code": "TEMPORARY_UNAVAILABLE",
|
|
5252
|
+
"message": "Device operation could not complete"
|
|
5253
|
+
}
|
|
5254
|
+
]
|
|
5255
|
+
}
|
|
5256
|
+
},
|
|
5257
|
+
{
|
|
5258
|
+
"name": "device-enable-retains-post-commit-issue",
|
|
5259
|
+
"target": "/app/device/enable",
|
|
5260
|
+
"data": {
|
|
5261
|
+
"requestedIds": [
|
|
5262
|
+
"a",
|
|
5263
|
+
"b"
|
|
5264
|
+
],
|
|
5265
|
+
"enabledIds": [
|
|
5266
|
+
"a",
|
|
5267
|
+
"b"
|
|
5268
|
+
],
|
|
5269
|
+
"alreadyEnabledIds": [],
|
|
5270
|
+
"pendingIds": [],
|
|
5271
|
+
"issues": [
|
|
5272
|
+
{
|
|
5273
|
+
"deviceId": "b",
|
|
5274
|
+
"stage": "projection",
|
|
5275
|
+
"code": "TEMPORARY_UNAVAILABLE",
|
|
5276
|
+
"message": "Device operation could not complete"
|
|
5277
|
+
}
|
|
5278
|
+
]
|
|
5279
|
+
},
|
|
5280
|
+
"status": "partial",
|
|
5281
|
+
"essential": {
|
|
5282
|
+
"requestedIds": [
|
|
5283
|
+
"a",
|
|
5284
|
+
"b"
|
|
5285
|
+
],
|
|
5286
|
+
"enabledIds": [
|
|
5287
|
+
"a",
|
|
5288
|
+
"b"
|
|
5289
|
+
],
|
|
5290
|
+
"alreadyEnabledIds": [],
|
|
5291
|
+
"pendingIds": [],
|
|
5292
|
+
"issues": [
|
|
5293
|
+
{
|
|
5294
|
+
"deviceId": "b",
|
|
5295
|
+
"stage": "projection",
|
|
5296
|
+
"code": "TEMPORARY_UNAVAILABLE",
|
|
5297
|
+
"message": "Device operation could not complete"
|
|
5298
|
+
}
|
|
5299
|
+
]
|
|
5300
|
+
}
|
|
5301
|
+
},
|
|
5302
|
+
{
|
|
5303
|
+
"name": "device-disable-retains-mixed-issues",
|
|
5304
|
+
"target": "/app/device/disable",
|
|
5305
|
+
"data": {
|
|
5306
|
+
"requestedIds": [
|
|
5307
|
+
"a",
|
|
5308
|
+
"b"
|
|
5309
|
+
],
|
|
5310
|
+
"disabledIds": [
|
|
5311
|
+
"a"
|
|
5312
|
+
],
|
|
5313
|
+
"alreadyDisabledIds": [],
|
|
5314
|
+
"pendingIds": [
|
|
5315
|
+
"b"
|
|
5316
|
+
],
|
|
5317
|
+
"issues": [
|
|
5318
|
+
{
|
|
5319
|
+
"deviceId": "b",
|
|
5320
|
+
"stage": "cleanup",
|
|
5321
|
+
"code": "TEMPORARY_UNAVAILABLE",
|
|
5322
|
+
"message": "Device operation could not complete"
|
|
5323
|
+
}
|
|
5324
|
+
]
|
|
5325
|
+
},
|
|
5326
|
+
"status": "partial",
|
|
5327
|
+
"essential": {
|
|
5328
|
+
"requestedIds": [
|
|
5329
|
+
"a",
|
|
5330
|
+
"b"
|
|
5331
|
+
],
|
|
5332
|
+
"disabledIds": [
|
|
5333
|
+
"a"
|
|
5334
|
+
],
|
|
5335
|
+
"alreadyDisabledIds": [],
|
|
5336
|
+
"pendingIds": [
|
|
5337
|
+
"b"
|
|
5338
|
+
],
|
|
5339
|
+
"issues": [
|
|
5340
|
+
{
|
|
5341
|
+
"deviceId": "b",
|
|
5342
|
+
"stage": "cleanup",
|
|
5343
|
+
"code": "TEMPORARY_UNAVAILABLE",
|
|
5344
|
+
"message": "Device operation could not complete"
|
|
5345
|
+
}
|
|
5346
|
+
]
|
|
5347
|
+
}
|
|
5348
|
+
},
|
|
5349
|
+
{
|
|
5350
|
+
"name": "device-disable-retains-post-commit-issue",
|
|
5351
|
+
"target": "/app/device/disable",
|
|
5352
|
+
"data": {
|
|
5353
|
+
"requestedIds": [
|
|
5354
|
+
"a",
|
|
5355
|
+
"b"
|
|
5356
|
+
],
|
|
5357
|
+
"disabledIds": [
|
|
5358
|
+
"a",
|
|
5359
|
+
"b"
|
|
5360
|
+
],
|
|
5361
|
+
"alreadyDisabledIds": [],
|
|
5362
|
+
"pendingIds": [],
|
|
5363
|
+
"issues": [
|
|
5364
|
+
{
|
|
5365
|
+
"deviceId": "b",
|
|
5366
|
+
"stage": "cleanup",
|
|
5367
|
+
"code": "TEMPORARY_UNAVAILABLE",
|
|
5368
|
+
"message": "Device operation could not complete"
|
|
5369
|
+
}
|
|
5370
|
+
]
|
|
5371
|
+
},
|
|
5372
|
+
"status": "partial",
|
|
5373
|
+
"essential": {
|
|
5374
|
+
"requestedIds": [
|
|
5375
|
+
"a",
|
|
5376
|
+
"b"
|
|
5377
|
+
],
|
|
5378
|
+
"disabledIds": [
|
|
5379
|
+
"a",
|
|
5380
|
+
"b"
|
|
5381
|
+
],
|
|
5382
|
+
"alreadyDisabledIds": [],
|
|
5383
|
+
"pendingIds": [],
|
|
5384
|
+
"issues": [
|
|
5385
|
+
{
|
|
5386
|
+
"deviceId": "b",
|
|
5387
|
+
"stage": "cleanup",
|
|
5388
|
+
"code": "TEMPORARY_UNAVAILABLE",
|
|
5389
|
+
"message": "Device operation could not complete"
|
|
5390
|
+
}
|
|
5391
|
+
]
|
|
5392
|
+
}
|
|
5207
5393
|
}
|
|
5208
5394
|
]
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
"/app/automation/status": {
|
|
3
3
|
"ms": [
|
|
4
4
|
"items.*.resource.lastRunAt",
|
|
5
|
-
"items.*.resource.expireAt"
|
|
5
|
+
"items.*.resource.expireAt",
|
|
6
|
+
"items.*.resource.lastExecution.finishedAt"
|
|
6
7
|
]
|
|
7
8
|
},
|
|
8
9
|
"/app/automation/activity/recent/list": {
|
|
@@ -99,9 +100,11 @@
|
|
|
99
100
|
"automations.*.timestamp",
|
|
100
101
|
"automations.*.createdAt",
|
|
101
102
|
"automations.*.updatedAt",
|
|
102
|
-
"automations.*.enabledAt"
|
|
103
|
+
"automations.*.enabledAt",
|
|
104
|
+
"automations.*.lastExecution.finishedAt"
|
|
103
105
|
]
|
|
104
106
|
},
|
|
107
|
+
"/app/presentation/automation/overview/get": { "ms": ["lastExecution.finishedAt"] },
|
|
105
108
|
"/app/presentation/widget/list": {
|
|
106
109
|
"ms": [
|
|
107
110
|
"items.*.nextTimestamp"
|
|
@@ -119,7 +122,8 @@
|
|
|
119
122
|
"items.*.resource.updatedAt",
|
|
120
123
|
"items.*.resource.enabledAt",
|
|
121
124
|
"items.*.resource.lastRunAt",
|
|
122
|
-
"items.*.resource.expireAt"
|
|
125
|
+
"items.*.resource.expireAt",
|
|
126
|
+
"items.*.resource.lastExecution.finishedAt"
|
|
123
127
|
]
|
|
124
128
|
},
|
|
125
129
|
"/app/nfc/list": {
|
package/manifest/routing.v1.json
CHANGED
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"name",
|
|
72
72
|
"type",
|
|
73
73
|
"enabled",
|
|
74
|
-
"
|
|
74
|
+
"lastExecution",
|
|
75
75
|
"runnable",
|
|
76
76
|
"running",
|
|
77
77
|
"blocked",
|
|
@@ -95,11 +95,12 @@
|
|
|
95
95
|
"enabled": {
|
|
96
96
|
"type": "boolean"
|
|
97
97
|
},
|
|
98
|
-
"corrupted": {
|
|
99
|
-
"type": "boolean"
|
|
100
|
-
},
|
|
101
98
|
"pendingOperation": {
|
|
102
|
-
"enum": [
|
|
99
|
+
"enum": [
|
|
100
|
+
"create",
|
|
101
|
+
"update",
|
|
102
|
+
"delete"
|
|
103
|
+
]
|
|
103
104
|
},
|
|
104
105
|
"saveIncomplete": {
|
|
105
106
|
"type": "boolean"
|
|
@@ -133,6 +134,16 @@
|
|
|
133
134
|
"items": {
|
|
134
135
|
"type": "string"
|
|
135
136
|
}
|
|
137
|
+
},
|
|
138
|
+
"lastExecution": {
|
|
139
|
+
"anyOf": [
|
|
140
|
+
{
|
|
141
|
+
"$ref": "#/$defs/lastExecution"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"type": "null"
|
|
145
|
+
}
|
|
146
|
+
]
|
|
136
147
|
}
|
|
137
148
|
}
|
|
138
149
|
},
|
|
@@ -160,7 +171,7 @@
|
|
|
160
171
|
"type",
|
|
161
172
|
"enabled",
|
|
162
173
|
"runnable",
|
|
163
|
-
"
|
|
174
|
+
"lastExecution",
|
|
164
175
|
"blocked",
|
|
165
176
|
"widgets"
|
|
166
177
|
],
|
|
@@ -180,11 +191,12 @@
|
|
|
180
191
|
"runnable": {
|
|
181
192
|
"type": "boolean"
|
|
182
193
|
},
|
|
183
|
-
"corrupted": {
|
|
184
|
-
"type": "boolean"
|
|
185
|
-
},
|
|
186
194
|
"pendingOperation": {
|
|
187
|
-
"enum": [
|
|
195
|
+
"enum": [
|
|
196
|
+
"create",
|
|
197
|
+
"update",
|
|
198
|
+
"delete"
|
|
199
|
+
]
|
|
188
200
|
},
|
|
189
201
|
"saveIncomplete": {
|
|
190
202
|
"type": "boolean"
|
|
@@ -197,6 +209,16 @@
|
|
|
197
209
|
"items": {
|
|
198
210
|
"type": "object"
|
|
199
211
|
}
|
|
212
|
+
},
|
|
213
|
+
"lastExecution": {
|
|
214
|
+
"anyOf": [
|
|
215
|
+
{
|
|
216
|
+
"$ref": "#/$defs/lastExecution"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"type": "null"
|
|
220
|
+
}
|
|
221
|
+
]
|
|
200
222
|
}
|
|
201
223
|
}
|
|
202
224
|
},
|
|
@@ -246,7 +268,7 @@
|
|
|
246
268
|
"name",
|
|
247
269
|
"type",
|
|
248
270
|
"enabled",
|
|
249
|
-
"
|
|
271
|
+
"lastExecution",
|
|
250
272
|
"runnable",
|
|
251
273
|
"running",
|
|
252
274
|
"blocked",
|
|
@@ -274,11 +296,12 @@
|
|
|
274
296
|
"enabled": {
|
|
275
297
|
"type": "boolean"
|
|
276
298
|
},
|
|
277
|
-
"corrupted": {
|
|
278
|
-
"type": "boolean"
|
|
279
|
-
},
|
|
280
299
|
"pendingOperation": {
|
|
281
|
-
"enum": [
|
|
300
|
+
"enum": [
|
|
301
|
+
"create",
|
|
302
|
+
"update",
|
|
303
|
+
"delete"
|
|
304
|
+
]
|
|
282
305
|
},
|
|
283
306
|
"saveIncomplete": {
|
|
284
307
|
"type": "boolean"
|
|
@@ -330,6 +353,16 @@
|
|
|
330
353
|
"integer",
|
|
331
354
|
"null"
|
|
332
355
|
]
|
|
356
|
+
},
|
|
357
|
+
"lastExecution": {
|
|
358
|
+
"anyOf": [
|
|
359
|
+
{
|
|
360
|
+
"$ref": "#/$defs/lastExecution"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"type": "null"
|
|
364
|
+
}
|
|
365
|
+
]
|
|
333
366
|
}
|
|
334
367
|
}
|
|
335
368
|
},
|
|
@@ -615,6 +648,39 @@
|
|
|
615
648
|
}
|
|
616
649
|
}
|
|
617
650
|
}
|
|
651
|
+
},
|
|
652
|
+
"lastExecution": {
|
|
653
|
+
"type": "object",
|
|
654
|
+
"additionalProperties": false,
|
|
655
|
+
"required": [
|
|
656
|
+
"revision",
|
|
657
|
+
"threadId",
|
|
658
|
+
"instanceId",
|
|
659
|
+
"finishedAt",
|
|
660
|
+
"outcome"
|
|
661
|
+
],
|
|
662
|
+
"properties": {
|
|
663
|
+
"revision": {
|
|
664
|
+
"type": "integer"
|
|
665
|
+
},
|
|
666
|
+
"threadId": {
|
|
667
|
+
"type": "integer"
|
|
668
|
+
},
|
|
669
|
+
"instanceId": {
|
|
670
|
+
"type": "string"
|
|
671
|
+
},
|
|
672
|
+
"finishedAt": {
|
|
673
|
+
"type": "integer"
|
|
674
|
+
},
|
|
675
|
+
"outcome": {
|
|
676
|
+
"enum": [
|
|
677
|
+
"SUCCEEDED",
|
|
678
|
+
"FAILED",
|
|
679
|
+
"INTERRUPTED",
|
|
680
|
+
"CANCELLED"
|
|
681
|
+
]
|
|
682
|
+
}
|
|
683
|
+
}
|
|
618
684
|
}
|
|
619
685
|
}
|
|
620
686
|
}
|