@mhome/app-facade-protocol 1.151.2 → 1.152.2
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/dashboard-card-authoring-v1.md +17 -0
- package/manifest/app-facade.v1.json +12 -1
- package/manifest/authorization.v1.json +2 -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 +2 -1
- package/schema/dashboard-card-authoring.v1.schema.json +97 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Dashboard Card authoring read
|
|
2
|
+
|
|
3
|
+
`/app/dashboard/card/authoring/get` accepts `{cardId}` in the selected Space.
|
|
4
|
+
It requires Space read access and follows the normal Space execution mode.
|
|
5
|
+
A missing, internal, ambiguous or unplaced Card returns `NOT_FOUND`.
|
|
6
|
+
|
|
7
|
+
The Facade owns the complete response: `spaceId`, `cardId`, `canvasId`, `title`,
|
|
8
|
+
`primaryViewId` and `views: [{id, name, patternId}]`. Nullable fields are explicit.
|
|
9
|
+
Views preserve order and identity. Weather views use `default.basic.weather`;
|
|
10
|
+
automation-only Cards expose a synthetic `automation` pattern without a view ID.
|
|
11
|
+
Unknown patterns remain null; consumers must not infer them from device names.
|
|
12
|
+
Device values, resource references, layouts and renderer implementation data are
|
|
13
|
+
excluded. Full and Essential preserve the same business fields.
|
|
14
|
+
|
|
15
|
+
This read does not install a skin, change the selected view or save a Preview.
|
|
16
|
+
The public developer entrypoint is `meow make ui card preview inspect`.
|
|
17
|
+
The CLI forwards this DTO without reconstructing Card semantics.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest": "mhome.app-facade.v1",
|
|
3
|
-
"contractVersion": "1.
|
|
3
|
+
"contractVersion": "1.152.2",
|
|
4
4
|
"callSchema": "schema/facade-call.v1.schema.json",
|
|
5
5
|
"routing": "manifest/routing.v1.json",
|
|
6
6
|
"routingSchema": "schema/routing.v1.schema.json",
|
|
@@ -517,6 +517,17 @@
|
|
|
517
517
|
"eventTargets": [
|
|
518
518
|
"/app/agent/conversation/changed"
|
|
519
519
|
]
|
|
520
|
+
},
|
|
521
|
+
"dashboardCardAuthoring": {
|
|
522
|
+
"contract": "contract/dashboard-card-authoring-v1.md",
|
|
523
|
+
"requestSchema": "schema/dashboard-card-authoring.v1.schema.json",
|
|
524
|
+
"responseSchema": "schema/dashboard-card-authoring.v1.schema.json",
|
|
525
|
+
"requests": {
|
|
526
|
+
"/app/dashboard/card/authoring/get": "#/definitions/input"
|
|
527
|
+
},
|
|
528
|
+
"responses": {
|
|
529
|
+
"/app/dashboard/card/authoring/get": "#/definitions/output"
|
|
530
|
+
}
|
|
520
531
|
}
|
|
521
532
|
},
|
|
522
533
|
"authorization": "manifest/authorization.v1.json",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contractVersion": "1.
|
|
2
|
+
"contractVersion": "1.152.2",
|
|
3
3
|
"operations": {
|
|
4
4
|
"/app/agent/context/get": "spaceRead",
|
|
5
5
|
"/app/agent/conversation/get": "spaceRead",
|
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
"/app/dashboard/card/copy": "spaceWrite",
|
|
80
80
|
"/app/dashboard/card/delete": "spaceWrite",
|
|
81
81
|
"/app/dashboard/card/detail/get": "spaceRead",
|
|
82
|
+
"/app/dashboard/card/authoring/get": "spaceRead",
|
|
82
83
|
"/app/dashboard/card/list": "spaceRead",
|
|
83
84
|
"/app/dashboard/card/main-view/update": "spaceWrite",
|
|
84
85
|
"/app/dashboard/card/move": "spaceWrite",
|
package/manifest/routing.v1.json
CHANGED
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"protocol": "mhome.app-facade",
|
|
3
|
-
"contractVersion": "1.
|
|
3
|
+
"contractVersion": "1.152.2",
|
|
4
4
|
"manifest": "manifest/app-facade.v1.json",
|
|
5
5
|
"schemas": {
|
|
6
|
+
"dashboardCardAuthoring": "schema/dashboard-card-authoring.v1.schema.json",
|
|
6
7
|
"storage": "schema/storage.v1.schema.json",
|
|
7
8
|
"householdRecording": "schema/household-recording.v1.schema.json",
|
|
8
9
|
"nowAttention": "schema/now-attention.v1.schema.json",
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://schemas.meowlink.app/dashboard-card-authoring.v1.json",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"input": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"cardId": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"maxLength": 256,
|
|
13
|
+
"pattern": "\\S"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": [
|
|
17
|
+
"cardId"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"view": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"properties": {
|
|
24
|
+
"id": {
|
|
25
|
+
"type": [
|
|
26
|
+
"string",
|
|
27
|
+
"null"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"name": {
|
|
31
|
+
"type": [
|
|
32
|
+
"string",
|
|
33
|
+
"null"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"patternId": {
|
|
37
|
+
"type": [
|
|
38
|
+
"string",
|
|
39
|
+
"null"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": [
|
|
44
|
+
"id",
|
|
45
|
+
"name",
|
|
46
|
+
"patternId"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"output": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"properties": {
|
|
53
|
+
"spaceId": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"minLength": 1,
|
|
56
|
+
"maxLength": 256,
|
|
57
|
+
"pattern": "\\S"
|
|
58
|
+
},
|
|
59
|
+
"cardId": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"minLength": 1,
|
|
62
|
+
"maxLength": 256,
|
|
63
|
+
"pattern": "\\S"
|
|
64
|
+
},
|
|
65
|
+
"canvasId": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"minLength": 1,
|
|
68
|
+
"maxLength": 256,
|
|
69
|
+
"pattern": "\\S"
|
|
70
|
+
},
|
|
71
|
+
"title": {
|
|
72
|
+
"type": "string"
|
|
73
|
+
},
|
|
74
|
+
"primaryViewId": {
|
|
75
|
+
"type": [
|
|
76
|
+
"string",
|
|
77
|
+
"null"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"views": {
|
|
81
|
+
"type": "array",
|
|
82
|
+
"items": {
|
|
83
|
+
"$ref": "#/definitions/view"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"required": [
|
|
88
|
+
"spaceId",
|
|
89
|
+
"cardId",
|
|
90
|
+
"canvasId",
|
|
91
|
+
"title",
|
|
92
|
+
"primaryViewId",
|
|
93
|
+
"views"
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|