@mhome/app-facade-protocol 1.166.0 → 1.169.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/README.md +12 -0
- package/contract/automation-v1.md +15 -22
- package/contract/device-presentation-v1.md +1 -1
- package/contract/entity-v1.md +1 -1
- package/contract/history-v1.md +34 -0
- package/fixtures/history-ranges.json +98 -0
- package/fixtures/presentation/cases.json +164 -47
- package/manifest/app-facade.v1.json +7 -2
- package/manifest/authorization.v1.json +29 -29
- 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 +5 -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/README.md
CHANGED
|
@@ -351,3 +351,15 @@ before terminal TTL records are produced. Upgrade both the public AWS service an
|
|
|
351
351
|
cloud instances together. An old writer that accepts expired IDs would invalidate the
|
|
352
352
|
retention guarantee after collection; rolling back to that creation behavior is unsupported.
|
|
353
353
|
Enabling database TTL alone does not expire rows that have no `expireAt` attribute.
|
|
354
|
+
|
|
355
|
+
## Plugin operation continuation
|
|
356
|
+
|
|
357
|
+
`/app/plugin/operation/status` returns `status` (`notFound`, `accepted`, or
|
|
358
|
+
`completed`), the completed `result` when present, and a `receipt` containing only
|
|
359
|
+
`invocationId`, `nodeId`, `nodeType`, `sourceManifestSha256`, `bindingRevision`,
|
|
360
|
+
`contractId`, and `operationId`. This App Facade receipt is separate from the
|
|
361
|
+
strict Node `FlowSubmissionResponse`; Node messages retain their existing shape.
|
|
362
|
+
The caller keeps the original business arguments separately for a status request.
|
|
363
|
+
Neither arguments nor form values/credentials are copied into the receipt.
|
|
364
|
+
A successful status query does not imply business completion. Accepted input must
|
|
365
|
+
be inspected with the original invocation; never replay a write to obtain a result.
|
|
@@ -60,28 +60,21 @@ An already absent and cleaned definition is a completed delete target.
|
|
|
60
60
|
completed before the stop request keeps its actual outcome; ordinary success
|
|
61
61
|
may already have discarded its details. Already performed effects are not undone.
|
|
62
62
|
A started external call without a result is uncertain, not a confirmed failure.
|
|
63
|
-
- `/app/automation/diagnostic/get` takes `{automationId
|
|
64
|
-
`{diagnostics
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
Active and pending-publication bytes are protected until settlement/acknowledgement.
|
|
79
|
-
- `/app/automation/diagnostic/read` takes the execution identity and optional
|
|
80
|
-
`cursor`, and returns `{logs, nextCursor}`. Follow the opaque cursor for older
|
|
81
|
-
events. Pages contain up to 100 events with a target size of 256 KiB; a single
|
|
82
|
-
larger event is returned intact. Pagination never removes stored content.
|
|
83
|
-
Missing or damaged bodies produce an error; they are never represented as an
|
|
84
|
-
empty successful page.
|
|
63
|
+
- `/app/automation/diagnostic/get` takes only `{automationId}` and returns
|
|
64
|
+
`{diagnostics}`. Every retained execution record includes its complete `logs`
|
|
65
|
+
array. Records and logs are newest first; there is no public cursor, limit,
|
|
66
|
+
separate metadata listing or per-instance log request. The backend consumes
|
|
67
|
+
internal journal pages without removing events or truncating their contents.
|
|
68
|
+
Each thread exposes its latest 10 retained terminal instances across revisions.
|
|
69
|
+
Failed/interrupted, DEBUG and explicitly stopped/captured executions share this
|
|
70
|
+
quota; ordinary successful runs retain no completed execution detail. Active
|
|
71
|
+
captures are additional. Retention has no age expiry and is unchanged by reads.
|
|
72
|
+
Internal storage may buffer about 20 records before trimming to 10; buffered
|
|
73
|
+
older records remain unavailable. Deleting the Automation removes its evidence.
|
|
74
|
+
Missing or damaged log bodies set that record's `logsMissing` to true and yield
|
|
75
|
+
a `partial` Facade outcome with `DIAGNOSTIC_LOGS_UNAVAILABLE` warnings. Metadata,
|
|
76
|
+
other instances and all successfully read log events remain available. An empty
|
|
77
|
+
retained record list is a successful `{diagnostics: []}` response.
|
|
85
78
|
|
|
86
79
|
Events contain `sequence`, `timestamp`, `kind`, `operationId`, `level`, `message`
|
|
87
80
|
and `details`. Ordinary events describe actual action/read requests, their results,
|
|
@@ -14,7 +14,7 @@ They have no native Agent, external CLI Skill, MCP or CLI entrypoint. Shared
|
|
|
14
14
|
- `/app/presentation/device/history/series/get`, `{deviceId, capabilityIds?: []}`:
|
|
15
15
|
`{deviceId, series}` with per-capability decoded `states`, `events`, `logs`. Empty
|
|
16
16
|
capability selection reads all series. This preserves chart structure; the shared
|
|
17
|
-
Device history Facade
|
|
17
|
+
Device history Facade returns the complete retained matching business timeline; see history-v1.md.
|
|
18
18
|
- `/app/presentation/device/online/list`, `{entityIds?: []}`:
|
|
19
19
|
`{devices:[{entityId,online,updatedAtSec}]}`. Normalizes and deduplicates selected
|
|
20
20
|
IDs, preserves request order and returns only IDs with stored online records.
|
package/contract/entity-v1.md
CHANGED
|
@@ -18,7 +18,7 @@ built-in Entity types; other types are Integration-defined.
|
|
|
18
18
|
online status. Groups read their own observations without expanding members.
|
|
19
19
|
Existing Location/AppClient endpoints return `latest: []`; missing resources use
|
|
20
20
|
`found: false, reason: "not_found"` and omit resource. No observations is not missing.
|
|
21
|
-
- `/app/entity/history/list` remains independent and returns
|
|
21
|
+
- `/app/entity/history/list` remains independent and returns all retained matching records, with optional explicit time bounds.
|
|
22
22
|
|
|
23
23
|
Metadata contains id, name, entityType, integration?, connectId?, active, capabilities, data,
|
|
24
24
|
tags (Blueprint IDs), availabilityStatus?, issue, group and entityIds (Group members).
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Retained history reads
|
|
2
|
+
|
|
3
|
+
Device, general Entity (including Location weather), Widget and Automation activity
|
|
4
|
+
history support optional `startAt` and `endAt`, RFC3339 instants with explicit UTC
|
|
5
|
+
offsets. The range is inclusive at the start and exclusive at the end. An omitted
|
|
6
|
+
bound is unbounded. Invalid timestamps and reversed/equal bounds are BAD_REQUEST.
|
|
7
|
+
Range precision is never rounded downward to include an earlier stored second.
|
|
8
|
+
|
|
9
|
+
These reads return all matching, currently retained records without a public
|
|
10
|
+
cursor, quantity limit or an additional latest-100 projection. Storage batching
|
|
11
|
+
remains internal. Source-owned write, retention, compaction and expiry policies
|
|
12
|
+
are unchanged; erased observations cannot be recovered by a read. Historic reads
|
|
13
|
+
never refresh providers or trigger storage compaction/repair. Current state remains
|
|
14
|
+
a separate read. Device/Entity timelines preserve trace references and outcomes;
|
|
15
|
+
Widget values retain their original types, including false and null.
|
|
16
|
+
|
|
17
|
+
Automation activity also accepts the existing `since` duration as a convenient
|
|
18
|
+
relative window (up to seven days), mutually exclusive with explicit bounds. Both
|
|
19
|
+
forms use the same half-open filtering rule. Without `since`, activity defaults
|
|
20
|
+
its start to the Unix epoch and its end to the query time when those bounds are
|
|
21
|
+
omitted, returning retained past activity. Activity contains management events,
|
|
22
|
+
not proof of ordinary successful execution. Existing response fields remain;
|
|
23
|
+
`truncated` is false because this read no longer clips the overview.
|
|
24
|
+
|
|
25
|
+
`/app/behavior/history/list` requires both `startAt` and `endAt`, returning
|
|
26
|
+
`{records: BehaviorRecord[]}` in chronological order. Tenant and Space come from
|
|
27
|
+
authorized context, never caller-supplied partition keys. The backend consumes
|
|
28
|
+
all storage pages; raw immutable business records are returned without a second
|
|
29
|
+
excerpt/truncation policy. No new record is written by this read.
|
|
30
|
+
|
|
31
|
+
Existing per-domain Full/Essential output units and projections remain. Full
|
|
32
|
+
Device/Entity timeline and behavior timestamps are milliseconds; Full Widget
|
|
33
|
+
history timestamps remain seconds. Essential displays explicit time fields in
|
|
34
|
+
the authorized Space Home timezone. Numeric business values are not timestamps.
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "unbounded",
|
|
4
|
+
"input": {},
|
|
5
|
+
"start": null,
|
|
6
|
+
"end": null
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"name": "offsets-and-fraction",
|
|
10
|
+
"input": {
|
|
11
|
+
"startAt": "1970-01-01T08:00:00.500+08:00",
|
|
12
|
+
"endAt": "1970-01-01T00:00:02.001Z"
|
|
13
|
+
},
|
|
14
|
+
"start": 500,
|
|
15
|
+
"end": 2001
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "nano-bounds-empty-ms-window",
|
|
19
|
+
"input": {
|
|
20
|
+
"startAt": "1970-01-01T00:00:00.0001Z",
|
|
21
|
+
"endAt": "1970-01-01T00:00:00.0002Z"
|
|
22
|
+
},
|
|
23
|
+
"start": 1,
|
|
24
|
+
"end": 1
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "open-start",
|
|
28
|
+
"input": {
|
|
29
|
+
"endAt": "1970-01-01T00:00:01Z"
|
|
30
|
+
},
|
|
31
|
+
"start": null,
|
|
32
|
+
"end": 1000
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "open-end",
|
|
36
|
+
"input": {
|
|
37
|
+
"startAt": "1970-01-01T00:00:01Z"
|
|
38
|
+
},
|
|
39
|
+
"start": 1000,
|
|
40
|
+
"end": null
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "no-offset",
|
|
44
|
+
"input": {
|
|
45
|
+
"startAt": "2026-11-30T08:00:00",
|
|
46
|
+
"endAt": "2026-11-30T10:00:00Z"
|
|
47
|
+
},
|
|
48
|
+
"error": true
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "equal",
|
|
52
|
+
"input": {
|
|
53
|
+
"startAt": "2026-11-30T10:00:00Z",
|
|
54
|
+
"endAt": "2026-11-30T10:00:00Z"
|
|
55
|
+
},
|
|
56
|
+
"error": true
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "reversed",
|
|
60
|
+
"input": {
|
|
61
|
+
"startAt": "2026-11-30T11:00:00Z",
|
|
62
|
+
"endAt": "2026-11-30T10:00:00Z"
|
|
63
|
+
},
|
|
64
|
+
"error": true
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "before-epoch",
|
|
68
|
+
"input": {
|
|
69
|
+
"startAt": "1969-12-31T23:59:59.999999999Z",
|
|
70
|
+
"endAt": "2026-11-30T10:00:00Z"
|
|
71
|
+
},
|
|
72
|
+
"error": true
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "invalid",
|
|
76
|
+
"input": {
|
|
77
|
+
"startAt": "not-a-time",
|
|
78
|
+
"endAt": "2026-11-30T10:00:00Z"
|
|
79
|
+
},
|
|
80
|
+
"error": true
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "too-much-precision",
|
|
84
|
+
"input": {
|
|
85
|
+
"startAt": "2026-11-30T00:00:00.1234567891Z",
|
|
86
|
+
"endAt": "2026-11-30T10:00:00Z"
|
|
87
|
+
},
|
|
88
|
+
"error": true
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "leap-second",
|
|
92
|
+
"input": {
|
|
93
|
+
"startAt": "2016-12-31T23:59:60Z",
|
|
94
|
+
"endAt": "2017-01-01T01:00:00Z"
|
|
95
|
+
},
|
|
96
|
+
"error": true
|
|
97
|
+
}
|
|
98
|
+
]
|
|
@@ -344,7 +344,7 @@
|
|
|
344
344
|
"timestamp": 100,
|
|
345
345
|
"status": "FAILED",
|
|
346
346
|
"reportMode": "STD",
|
|
347
|
-
"logCount":
|
|
347
|
+
"logCount": 1,
|
|
348
348
|
"logsMissing": false,
|
|
349
349
|
"failure": {
|
|
350
350
|
"message": "device unavailable",
|
|
@@ -354,10 +354,23 @@
|
|
|
354
354
|
"startedAt": 90,
|
|
355
355
|
"finishedAt": 100,
|
|
356
356
|
"captured": false,
|
|
357
|
-
"availableAt": 100
|
|
357
|
+
"availableAt": 100,
|
|
358
|
+
"logs": [
|
|
359
|
+
{
|
|
360
|
+
"sequence": 1,
|
|
361
|
+
"kind": "wait.started",
|
|
362
|
+
"operationId": "visit-1",
|
|
363
|
+
"level": "INFO",
|
|
364
|
+
"message": "Waiting",
|
|
365
|
+
"timestamp": 100,
|
|
366
|
+
"details": {
|
|
367
|
+
"dueAt": 1200100,
|
|
368
|
+
"taskId": 3
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
]
|
|
358
372
|
}
|
|
359
|
-
]
|
|
360
|
-
"nextCursor": null
|
|
373
|
+
]
|
|
361
374
|
},
|
|
362
375
|
"essential": {
|
|
363
376
|
"diagnostics": [
|
|
@@ -369,7 +382,7 @@
|
|
|
369
382
|
"timestamp": "1970-01-01 00:00:00.100 +00:00 (UTC)",
|
|
370
383
|
"status": "FAILED",
|
|
371
384
|
"reportMode": "STD",
|
|
372
|
-
"logCount":
|
|
385
|
+
"logCount": 1,
|
|
373
386
|
"logsMissing": false,
|
|
374
387
|
"failure": {
|
|
375
388
|
"message": "device unavailable",
|
|
@@ -379,10 +392,23 @@
|
|
|
379
392
|
"startedAt": "1970-01-01 00:00:00.090 +00:00 (UTC)",
|
|
380
393
|
"finishedAt": "1970-01-01 00:00:00.100 +00:00 (UTC)",
|
|
381
394
|
"captured": false,
|
|
382
|
-
"availableAt": "1970-01-01 00:00:00.100 +00:00 (UTC)"
|
|
395
|
+
"availableAt": "1970-01-01 00:00:00.100 +00:00 (UTC)",
|
|
396
|
+
"logs": [
|
|
397
|
+
{
|
|
398
|
+
"sequence": 1,
|
|
399
|
+
"kind": "wait.started",
|
|
400
|
+
"operationId": "visit-1",
|
|
401
|
+
"level": "INFO",
|
|
402
|
+
"message": "Waiting",
|
|
403
|
+
"timestamp": "1970-01-01 00:00:00.100 +00:00 (UTC)",
|
|
404
|
+
"details": {
|
|
405
|
+
"dueAt": "1970-01-01 00:20:00.100 +00:00 (UTC)",
|
|
406
|
+
"taskId": 3
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
]
|
|
383
410
|
}
|
|
384
|
-
]
|
|
385
|
-
"nextCursor": null
|
|
411
|
+
]
|
|
386
412
|
}
|
|
387
413
|
},
|
|
388
414
|
{
|
|
@@ -5021,69 +5047,160 @@
|
|
|
5021
5047
|
"code": "OPERATION_FAILED"
|
|
5022
5048
|
},
|
|
5023
5049
|
{
|
|
5024
|
-
"name": "automation-
|
|
5025
|
-
"target": "/app/automation/
|
|
5050
|
+
"name": "automation-instance-list",
|
|
5051
|
+
"target": "/app/automation/instance/list",
|
|
5026
5052
|
"timezone": "Asia/Shanghai",
|
|
5027
5053
|
"status": "success",
|
|
5028
5054
|
"data": {
|
|
5029
|
-
"
|
|
5055
|
+
"instances": [
|
|
5030
5056
|
{
|
|
5031
|
-
"
|
|
5032
|
-
"
|
|
5033
|
-
"
|
|
5034
|
-
"
|
|
5035
|
-
"
|
|
5036
|
-
"timestamp": 100,
|
|
5037
|
-
"details": {
|
|
5038
|
-
"dueAt": 1200100,
|
|
5039
|
-
"taskId": 3
|
|
5040
|
-
}
|
|
5057
|
+
"threadId": 0,
|
|
5058
|
+
"instanceId": "run",
|
|
5059
|
+
"revision": 3,
|
|
5060
|
+
"phase": "STOPPING",
|
|
5061
|
+
"startedAt": 100
|
|
5041
5062
|
}
|
|
5042
|
-
]
|
|
5043
|
-
"nextCursor": "opaque"
|
|
5063
|
+
]
|
|
5044
5064
|
},
|
|
5045
5065
|
"essential": {
|
|
5046
|
-
"
|
|
5047
|
-
{
|
|
5048
|
-
"
|
|
5049
|
-
"
|
|
5050
|
-
"
|
|
5051
|
-
"
|
|
5052
|
-
"
|
|
5053
|
-
"timestamp": "1970-01-01 08:00:00.100 +08:00 (Asia/Shanghai)",
|
|
5054
|
-
"details": {
|
|
5055
|
-
"dueAt": "1970-01-01 08:20:00.100 +08:00 (Asia/Shanghai)",
|
|
5056
|
-
"taskId": 3
|
|
5057
|
-
}
|
|
5066
|
+
"instances": [
|
|
5067
|
+
{
|
|
5068
|
+
"threadId": 0,
|
|
5069
|
+
"instanceId": "run",
|
|
5070
|
+
"revision": 3,
|
|
5071
|
+
"phase": "STOPPING",
|
|
5072
|
+
"startedAt": "1970-01-01 08:00:00.100 +08:00 (Asia/Shanghai)"
|
|
5058
5073
|
}
|
|
5059
|
-
]
|
|
5060
|
-
"nextCursor": "opaque"
|
|
5074
|
+
]
|
|
5061
5075
|
}
|
|
5062
5076
|
},
|
|
5063
5077
|
{
|
|
5064
|
-
"name": "automation-
|
|
5065
|
-
"target": "/app/automation/
|
|
5066
|
-
"
|
|
5067
|
-
"status": "success",
|
|
5078
|
+
"name": "automation-diagnostic-get-missing-logs",
|
|
5079
|
+
"target": "/app/automation/diagnostic/get",
|
|
5080
|
+
"status": "partial",
|
|
5068
5081
|
"data": {
|
|
5069
|
-
"
|
|
5082
|
+
"diagnostics": [
|
|
5070
5083
|
{
|
|
5084
|
+
"automationId": "a1",
|
|
5085
|
+
"name": "Morning",
|
|
5071
5086
|
"threadId": 0,
|
|
5072
5087
|
"instanceId": "run",
|
|
5088
|
+
"timestamp": 100,
|
|
5089
|
+
"status": "FAILED",
|
|
5090
|
+
"reportMode": "STD",
|
|
5091
|
+
"logCount": 1,
|
|
5092
|
+
"logsMissing": true,
|
|
5093
|
+
"failure": {
|
|
5094
|
+
"message": "device unavailable",
|
|
5095
|
+
"code": "TIMEOUT"
|
|
5096
|
+
},
|
|
5073
5097
|
"revision": 3,
|
|
5074
|
-
"
|
|
5075
|
-
"
|
|
5098
|
+
"startedAt": 90,
|
|
5099
|
+
"finishedAt": 100,
|
|
5100
|
+
"captured": false,
|
|
5101
|
+
"availableAt": 100,
|
|
5102
|
+
"logs": [
|
|
5103
|
+
{
|
|
5104
|
+
"sequence": 1,
|
|
5105
|
+
"kind": "wait.started",
|
|
5106
|
+
"operationId": "visit-1",
|
|
5107
|
+
"level": "INFO",
|
|
5108
|
+
"message": "Waiting",
|
|
5109
|
+
"timestamp": 100,
|
|
5110
|
+
"details": {
|
|
5111
|
+
"dueAt": 1200100,
|
|
5112
|
+
"taskId": 3
|
|
5113
|
+
}
|
|
5114
|
+
}
|
|
5115
|
+
]
|
|
5076
5116
|
}
|
|
5077
5117
|
]
|
|
5078
5118
|
},
|
|
5079
5119
|
"essential": {
|
|
5080
|
-
"
|
|
5120
|
+
"diagnostics": [
|
|
5081
5121
|
{
|
|
5122
|
+
"automationId": "a1",
|
|
5123
|
+
"name": "Morning",
|
|
5082
5124
|
"threadId": 0,
|
|
5083
5125
|
"instanceId": "run",
|
|
5126
|
+
"timestamp": "1970-01-01 00:00:00.100 +00:00 (UTC)",
|
|
5127
|
+
"status": "FAILED",
|
|
5128
|
+
"reportMode": "STD",
|
|
5129
|
+
"logCount": 1,
|
|
5130
|
+
"logsMissing": true,
|
|
5131
|
+
"failure": {
|
|
5132
|
+
"message": "device unavailable",
|
|
5133
|
+
"code": "TIMEOUT"
|
|
5134
|
+
},
|
|
5084
5135
|
"revision": 3,
|
|
5085
|
-
"
|
|
5086
|
-
"
|
|
5136
|
+
"startedAt": "1970-01-01 00:00:00.090 +00:00 (UTC)",
|
|
5137
|
+
"finishedAt": "1970-01-01 00:00:00.100 +00:00 (UTC)",
|
|
5138
|
+
"captured": false,
|
|
5139
|
+
"availableAt": "1970-01-01 00:00:00.100 +00:00 (UTC)",
|
|
5140
|
+
"logs": [
|
|
5141
|
+
{
|
|
5142
|
+
"sequence": 1,
|
|
5143
|
+
"kind": "wait.started",
|
|
5144
|
+
"operationId": "visit-1",
|
|
5145
|
+
"level": "INFO",
|
|
5146
|
+
"message": "Waiting",
|
|
5147
|
+
"timestamp": "1970-01-01 00:00:00.100 +00:00 (UTC)",
|
|
5148
|
+
"details": {
|
|
5149
|
+
"dueAt": "1970-01-01 00:20:00.100 +00:00 (UTC)",
|
|
5150
|
+
"taskId": 3
|
|
5151
|
+
}
|
|
5152
|
+
}
|
|
5153
|
+
]
|
|
5154
|
+
}
|
|
5155
|
+
]
|
|
5156
|
+
}
|
|
5157
|
+
},
|
|
5158
|
+
{
|
|
5159
|
+
"name": "household-behavior-complete-history",
|
|
5160
|
+
"target": "/app/behavior/history/list",
|
|
5161
|
+
"timezone": "UTC",
|
|
5162
|
+
"status": "success",
|
|
5163
|
+
"data": {
|
|
5164
|
+
"records": [
|
|
5165
|
+
{
|
|
5166
|
+
"id": "b1",
|
|
5167
|
+
"occurredAtMs": 500,
|
|
5168
|
+
"finishedAtMs": 1001,
|
|
5169
|
+
"actor": {
|
|
5170
|
+
"type": "USER",
|
|
5171
|
+
"userId": "u"
|
|
5172
|
+
},
|
|
5173
|
+
"source": {
|
|
5174
|
+
"type": "APP"
|
|
5175
|
+
},
|
|
5176
|
+
"data": {
|
|
5177
|
+
"event": "value.set",
|
|
5178
|
+
"typedValue": false,
|
|
5179
|
+
"number": 0,
|
|
5180
|
+
"value": null
|
|
5181
|
+
}
|
|
5182
|
+
}
|
|
5183
|
+
]
|
|
5184
|
+
},
|
|
5185
|
+
"essential": {
|
|
5186
|
+
"records": [
|
|
5187
|
+
{
|
|
5188
|
+
"id": "b1",
|
|
5189
|
+
"occurredAtMs": "1970-01-01 00:00:00.500 +00:00 (UTC)",
|
|
5190
|
+
"finishedAtMs": "1970-01-01 00:00:01.001 +00:00 (UTC)",
|
|
5191
|
+
"actor": {
|
|
5192
|
+
"type": "USER",
|
|
5193
|
+
"userId": "u"
|
|
5194
|
+
},
|
|
5195
|
+
"source": {
|
|
5196
|
+
"type": "APP"
|
|
5197
|
+
},
|
|
5198
|
+
"data": {
|
|
5199
|
+
"event": "value.set",
|
|
5200
|
+
"typedValue": false,
|
|
5201
|
+
"number": 0,
|
|
5202
|
+
"value": null
|
|
5203
|
+
}
|
|
5087
5204
|
}
|
|
5088
5205
|
]
|
|
5089
5206
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest": "mhome.app-facade.v1",
|
|
3
|
-
"contractVersion": "1.
|
|
3
|
+
"contractVersion": "1.169.1",
|
|
4
4
|
"callSchema": "schema/facade-call.v1.schema.json",
|
|
5
5
|
"routing": "manifest/routing.v1.json",
|
|
6
6
|
"routingSchema": "schema/routing.v1.schema.json",
|
|
@@ -398,7 +398,6 @@
|
|
|
398
398
|
"/app/automation/instance/stop",
|
|
399
399
|
"/app/automation/instance/list",
|
|
400
400
|
"/app/automation/diagnostic/get",
|
|
401
|
-
"/app/automation/diagnostic/read",
|
|
402
401
|
"/app/automation/rename",
|
|
403
402
|
"/app/automation/description/update"
|
|
404
403
|
]
|
|
@@ -552,6 +551,12 @@
|
|
|
552
551
|
"requestTargets": [
|
|
553
552
|
"/app/onboard/lan/attach"
|
|
554
553
|
]
|
|
554
|
+
},
|
|
555
|
+
"behavior": {
|
|
556
|
+
"contract": "contract/history-v1.md",
|
|
557
|
+
"requestTargets": [
|
|
558
|
+
"/app/behavior/history/list"
|
|
559
|
+
]
|
|
555
560
|
}
|
|
556
561
|
},
|
|
557
562
|
"authorization": "manifest/authorization.v1.json",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contractVersion": "1.
|
|
2
|
+
"contractVersion": "1.169.1",
|
|
3
3
|
"operations": {
|
|
4
4
|
"/app/agent/context/get": "spaceRead",
|
|
5
5
|
"/app/agent/conversation/get": "spaceRead",
|
|
@@ -39,9 +39,8 @@
|
|
|
39
39
|
"/app/automation/description/update": "spaceWrite",
|
|
40
40
|
"/app/automation/detail/get": "spaceRead",
|
|
41
41
|
"/app/automation/diagnostic/get": "spaceRead",
|
|
42
|
-
"/app/automation/diagnostic/read": "spaceRead",
|
|
43
|
-
"/app/automation/instance/stop": "spaceWrite",
|
|
44
42
|
"/app/automation/instance/list": "spaceRead",
|
|
43
|
+
"/app/automation/instance/stop": "spaceWrite",
|
|
45
44
|
"/app/automation/list": "spaceRead",
|
|
46
45
|
"/app/automation/rename": "spaceWrite",
|
|
47
46
|
"/app/automation/save": "spaceWrite",
|
|
@@ -51,6 +50,7 @@
|
|
|
51
50
|
"/app/automation/status": "spaceRead",
|
|
52
51
|
"/app/automation/stop": "spaceWrite",
|
|
53
52
|
"/app/automation/verify": "spaceWrite",
|
|
53
|
+
"/app/behavior/history/list": "spaceRead",
|
|
54
54
|
"/app/billing/credit/usage": "userRead",
|
|
55
55
|
"/app/billing/payment/list": "userRead",
|
|
56
56
|
"/app/billing/subscription/cancel": "userWrite",
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
"/app/dashboard/canvas/rename": "spaceWrite",
|
|
80
80
|
"/app/dashboard/canvas/reorder": "spaceWrite",
|
|
81
81
|
"/app/dashboard/card/add": "spaceWrite",
|
|
82
|
+
"/app/dashboard/card/authoring/get": "spaceRead",
|
|
82
83
|
"/app/dashboard/card/copy": "spaceWrite",
|
|
83
84
|
"/app/dashboard/card/delete": "spaceWrite",
|
|
84
85
|
"/app/dashboard/card/detail/get": "spaceRead",
|
|
85
|
-
"/app/dashboard/card/authoring/get": "spaceRead",
|
|
86
86
|
"/app/dashboard/card/list": "spaceRead",
|
|
87
87
|
"/app/dashboard/card/main-view/update": "spaceWrite",
|
|
88
88
|
"/app/dashboard/card/move": "spaceWrite",
|
|
@@ -94,19 +94,17 @@
|
|
|
94
94
|
"/app/device/disable": "spaceWrite",
|
|
95
95
|
"/app/device/enable": "spaceWrite",
|
|
96
96
|
"/app/device/history/list": "spaceRead",
|
|
97
|
-
"/app/presentation/device/history/series/get": "spaceRead",
|
|
98
97
|
"/app/device/list": "spaceRead",
|
|
99
|
-
"/app/device/source/resolve": "spaceRead",
|
|
100
|
-
"/app/presentation/device/online/list": "spaceRead",
|
|
101
98
|
"/app/device/refresh": "spaceWrite",
|
|
99
|
+
"/app/device/source/resolve": "spaceRead",
|
|
102
100
|
"/app/device/state/get": "spaceRead",
|
|
103
|
-
"/app/presentation/device/view/get": "spaceRead",
|
|
104
101
|
"/app/dialog/get": "spaceRead",
|
|
105
102
|
"/app/dialog/list": "spaceRead",
|
|
106
103
|
"/app/dialog/reply": "spaceWrite",
|
|
107
104
|
"/app/entity/detail/get": "spaceRead",
|
|
108
105
|
"/app/entity/history/list": "spaceRead",
|
|
109
106
|
"/app/entity/list": "spaceRead",
|
|
107
|
+
"/app/entity/state/get": "spaceRead",
|
|
110
108
|
"/app/graph/relations/get": "spaceRead",
|
|
111
109
|
"/app/group/create": "spaceWrite",
|
|
112
110
|
"/app/group/delete": "spaceWrite",
|
|
@@ -195,6 +193,7 @@
|
|
|
195
193
|
"/app/object-storage/folders/set-limit": "spaceWrite",
|
|
196
194
|
"/app/object-storage/overview": "spaceRead",
|
|
197
195
|
"/app/object-storage/session/acquire": "spaceWrite",
|
|
196
|
+
"/app/onboard/lan/attach": "spaceManage",
|
|
198
197
|
"/app/person/backup/close": "spaceWrite",
|
|
199
198
|
"/app/person/backup/export": "spaceWrite",
|
|
200
199
|
"/app/person/backup/import/commit": "spaceWrite",
|
|
@@ -212,12 +211,8 @@
|
|
|
212
211
|
"/app/person/summary-images/batch-get": "spaceRead",
|
|
213
212
|
"/app/plugin/candidate/list": "spaceRead",
|
|
214
213
|
"/app/plugin/catalog/list": "spaceRead",
|
|
215
|
-
"/app/plugin/detail/get": "spaceRead",
|
|
216
214
|
"/app/plugin/contribution/read": "spaceRead",
|
|
217
|
-
"/app/plugin/
|
|
218
|
-
"/app/plugin/operation/invoke": "spaceRead",
|
|
219
|
-
"/app/plugin/operation/submit": "spaceRead",
|
|
220
|
-
"/app/plugin/operation/status": "spaceRead",
|
|
215
|
+
"/app/plugin/detail/get": "spaceRead",
|
|
221
216
|
"/app/plugin/disable": "spaceManage",
|
|
222
217
|
"/app/plugin/enable/start": "spaceManage",
|
|
223
218
|
"/app/plugin/enable/status": "spaceManage",
|
|
@@ -225,6 +220,10 @@
|
|
|
225
220
|
"/app/plugin/install/prepare": "spaceManage",
|
|
226
221
|
"/app/plugin/install/start": "spaceManage",
|
|
227
222
|
"/app/plugin/install/status": "spaceManage",
|
|
223
|
+
"/app/plugin/operation/invoke": "spaceRead",
|
|
224
|
+
"/app/plugin/operation/status": "spaceRead",
|
|
225
|
+
"/app/plugin/operation/submit": "spaceRead",
|
|
226
|
+
"/app/plugin/operations/list": "spaceRead",
|
|
228
227
|
"/app/plugin/preview/check": "spaceManage",
|
|
229
228
|
"/app/plugin/profile/update": "spaceManage",
|
|
230
229
|
"/app/pod/enrollment/get": "userRead",
|
|
@@ -248,6 +247,9 @@
|
|
|
248
247
|
"/app/presentation/automation/placements/get": "spaceRead",
|
|
249
248
|
"/app/presentation/automation/share": "spaceWrite",
|
|
250
249
|
"/app/presentation/automation/summaries/get": "spaceRead",
|
|
250
|
+
"/app/presentation/device/history/series/get": "spaceRead",
|
|
251
|
+
"/app/presentation/device/online/list": "spaceRead",
|
|
252
|
+
"/app/presentation/device/view/get": "spaceRead",
|
|
251
253
|
"/app/presentation/entity/get": "spaceRead",
|
|
252
254
|
"/app/presentation/entity/meta/get": "spaceRead",
|
|
253
255
|
"/app/presentation/integration/get": "spaceRead",
|
|
@@ -255,6 +257,7 @@
|
|
|
255
257
|
"/app/presentation/reference/type/list": "spaceRead",
|
|
256
258
|
"/app/presentation/space/get": "spaceRead",
|
|
257
259
|
"/app/presentation/space/list": "userRead",
|
|
260
|
+
"/app/presentation/space/location/list": "spaceRead",
|
|
258
261
|
"/app/presentation/widget/defaults/get": "spaceRead",
|
|
259
262
|
"/app/presentation/widget/list": "spaceRead",
|
|
260
263
|
"/app/presentation/widget/names/get": "spaceRead",
|
|
@@ -284,7 +287,6 @@
|
|
|
284
287
|
"/app/space/list": "userRead",
|
|
285
288
|
"/app/space/location/create": "spaceManage",
|
|
286
289
|
"/app/space/location/delete": "spaceManage",
|
|
287
|
-
"/app/presentation/space/location/list": "spaceRead",
|
|
288
290
|
"/app/space/location/search": "userRead",
|
|
289
291
|
"/app/space/location/update": "spaceManage",
|
|
290
292
|
"/app/space/member/invite": "spaceManage",
|
|
@@ -294,6 +296,14 @@
|
|
|
294
296
|
"/app/space/preference/get": "spaceRead",
|
|
295
297
|
"/app/space/preference/update": "userWrite",
|
|
296
298
|
"/app/space/rename": "spaceManage",
|
|
299
|
+
"/app/suggestion/detail/get": "spaceRead",
|
|
300
|
+
"/app/suggestion/feedback": "spaceWrite",
|
|
301
|
+
"/app/suggestion/generate": "spaceWrite",
|
|
302
|
+
"/app/suggestion/generation/get": "spaceRead",
|
|
303
|
+
"/app/suggestion/handle": "spaceWrite",
|
|
304
|
+
"/app/suggestion/list": "spaceRead",
|
|
305
|
+
"/app/suggestion/settings/get": "spaceRead",
|
|
306
|
+
"/app/suggestion/settings/save": "spaceWrite",
|
|
297
307
|
"/app/system/clients/get": "spaceRead",
|
|
298
308
|
"/app/system/feedback/submit": "userWrite",
|
|
299
309
|
"/app/system/hosts/get": "userRead",
|
|
@@ -322,6 +332,10 @@
|
|
|
322
332
|
"/app/user/profile/avatar/prepare": "userWrite",
|
|
323
333
|
"/app/user/profile/get": "userRead",
|
|
324
334
|
"/app/user/profile/update": "userWrite",
|
|
335
|
+
"/app/wave/discover": "spaceManage",
|
|
336
|
+
"/app/wave/list": "spaceManage",
|
|
337
|
+
"/app/wave/refresh": "spaceManage",
|
|
338
|
+
"/app/wave/remove": "spaceManage",
|
|
325
339
|
"/app/widget/button/config/update": "spaceWrite",
|
|
326
340
|
"/app/widget/button/create": "spaceWrite",
|
|
327
341
|
"/app/widget/button/trigger": "spaceWrite",
|
|
@@ -378,21 +392,7 @@
|
|
|
378
392
|
"/pod/talk/request/get": "spaceRead",
|
|
379
393
|
"/pod/talk/speech/prepare": "spaceWrite",
|
|
380
394
|
"/pod/talk/turn/submit": "spaceWrite",
|
|
381
|
-
"/pod/talk/view/get": "spaceRead"
|
|
382
|
-
"/app/entity/state/get": "spaceRead",
|
|
383
|
-
"/app/wave/discover": "spaceManage",
|
|
384
|
-
"/app/wave/list": "spaceManage",
|
|
385
|
-
"/app/wave/refresh": "spaceManage",
|
|
386
|
-
"/app/wave/remove": "spaceManage",
|
|
387
|
-
"/app/suggestion/detail/get": "spaceRead",
|
|
388
|
-
"/app/suggestion/feedback": "spaceWrite",
|
|
389
|
-
"/app/suggestion/generate": "spaceWrite",
|
|
390
|
-
"/app/suggestion/generation/get": "spaceRead",
|
|
391
|
-
"/app/suggestion/handle": "spaceWrite",
|
|
392
|
-
"/app/suggestion/list": "spaceRead",
|
|
393
|
-
"/app/suggestion/settings/get": "spaceRead",
|
|
394
|
-
"/app/suggestion/settings/save": "spaceWrite",
|
|
395
|
-
"/app/onboard/lan/attach": "spaceManage"
|
|
395
|
+
"/pod/talk/view/get": "spaceRead"
|
|
396
396
|
},
|
|
397
397
|
"nodePrefix": "/app/plugin/",
|
|
398
398
|
"serviceOperations": [
|
|
@@ -47,13 +47,14 @@
|
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
"/app/automation/instance/list": { "ms": ["instances.*.startedAt"] },
|
|
50
|
-
"/app/automation/diagnostic/read": { "ms": ["logs.*.timestamp", "logs.*.details.dueAt"] },
|
|
51
50
|
"/app/automation/diagnostic/get": {
|
|
52
51
|
"ms": [
|
|
53
52
|
"diagnostics.*.timestamp",
|
|
54
53
|
"diagnostics.*.startedAt",
|
|
55
54
|
"diagnostics.*.finishedAt",
|
|
56
|
-
"diagnostics.*.availableAt"
|
|
55
|
+
"diagnostics.*.availableAt",
|
|
56
|
+
"diagnostics.*.logs.*.timestamp",
|
|
57
|
+
"diagnostics.*.logs.*.details.dueAt"
|
|
57
58
|
]
|
|
58
59
|
},
|
|
59
60
|
"/app/group/list": {
|
|
@@ -565,5 +566,6 @@
|
|
|
565
566
|
"ms": [
|
|
566
567
|
"status.updatedAtMs"
|
|
567
568
|
]
|
|
568
|
-
}
|
|
569
|
+
},
|
|
570
|
+
"/app/behavior/history/list": { "ms": ["records.*.occurredAtMs", "records.*.finishedAtMs"] }
|
|
569
571
|
}
|
package/manifest/routing.v1.json
CHANGED
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED