@mhome/app-facade-protocol 1.127.1 → 1.129.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 +9 -6
- package/contract/card-skins-v1.md +7 -2
- package/contract/dashboard-composition-v1.md +59 -0
- package/contract/space-presentation-v1.md +39 -4
- package/fixtures/card-skins/space.json +1 -1
- package/fixtures/dashboard/composition-packing.json +7137 -0
- package/fixtures/presentation/cases.json +536 -33
- package/manifest/app-facade.v1.json +18 -1
- package/manifest/authorization.v1.json +5 -2
- package/manifest/host-provision-targets.v1.json +1 -1
- package/manifest/hub-targets.v1.json +2 -3
- package/manifest/pod-targets.v1.json +1 -1
- package/manifest/routing.v1.json +1 -2
- package/manifest/targets.v1.json +1 -1
- package/package.json +1 -1
- package/protocol.json +5 -1
- package/schema/canvas-layout.v1.schema.json +155 -0
- package/schema/card-skin-package.v1.schema.json +2 -2
- package/schema/dashboard-composition.v1.schema.json +431 -0
- package/schema/space-member-changes.v1.schema.json +190 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest": "mhome.app-facade.v1",
|
|
3
|
-
"contractVersion": "1.
|
|
3
|
+
"contractVersion": "1.129.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",
|
|
@@ -334,6 +334,13 @@
|
|
|
334
334
|
"/app/presentation/space/location/list"
|
|
335
335
|
]
|
|
336
336
|
},
|
|
337
|
+
"spaceMemberChanges": {
|
|
338
|
+
"contract": "contract/space-presentation-v1.md",
|
|
339
|
+
"schema": "schema/space-member-changes.v1.schema.json",
|
|
340
|
+
"requestTargets": [
|
|
341
|
+
"/app/space/member/update"
|
|
342
|
+
]
|
|
343
|
+
},
|
|
337
344
|
"spaceManagement": {
|
|
338
345
|
"contract": "contract/space-presentation-v1.md",
|
|
339
346
|
"requestTargets": [
|
|
@@ -484,6 +491,16 @@
|
|
|
484
491
|
"/app/wave/list",
|
|
485
492
|
"/app/wave/refresh"
|
|
486
493
|
]
|
|
494
|
+
},
|
|
495
|
+
"dashboardComposition": {
|
|
496
|
+
"layoutSchema": "schema/canvas-layout.v1.schema.json",
|
|
497
|
+
"commandSchema": "schema/dashboard-composition.v1.schema.json",
|
|
498
|
+
"contract": "contract/dashboard-composition-v1.md",
|
|
499
|
+
"requestTargets": [
|
|
500
|
+
"/app/dashboard/canvas/composition/create",
|
|
501
|
+
"/app/dashboard/canvas/composition/ungroup",
|
|
502
|
+
"/app/dashboard/canvas/composition/layout/update"
|
|
503
|
+
]
|
|
487
504
|
}
|
|
488
505
|
},
|
|
489
506
|
"authorization": "manifest/authorization.v1.json",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contractVersion": "1.
|
|
2
|
+
"contractVersion": "1.129.1",
|
|
3
3
|
"operations": {
|
|
4
4
|
"/app/agent/context/get": "spaceRead",
|
|
5
5
|
"/app/agent/credit/usage": "spaceRead",
|
|
@@ -62,6 +62,9 @@
|
|
|
62
62
|
"/app/client/page/report": "spaceRead",
|
|
63
63
|
"/app/client/screenshot/report": "spaceRead",
|
|
64
64
|
"/app/client/space/focus": "clientConnection",
|
|
65
|
+
"/app/dashboard/canvas/composition/create": "spaceWrite",
|
|
66
|
+
"/app/dashboard/canvas/composition/layout/update": "spaceWrite",
|
|
67
|
+
"/app/dashboard/canvas/composition/ungroup": "spaceWrite",
|
|
65
68
|
"/app/dashboard/canvas/content/get": "spaceRead",
|
|
66
69
|
"/app/dashboard/canvas/create": "spaceWrite",
|
|
67
70
|
"/app/dashboard/canvas/delete": "spaceWrite",
|
|
@@ -118,7 +121,6 @@
|
|
|
118
121
|
"/app/host/permissions/get": "userRead",
|
|
119
122
|
"/app/host/service/install": "userWrite",
|
|
120
123
|
"/app/host/service/restart": "userWrite",
|
|
121
|
-
"/app/hub/cache/clear": "spaceManage",
|
|
122
124
|
"/app/hub/get": "spaceRead",
|
|
123
125
|
"/app/hub/remove": "spaceManage",
|
|
124
126
|
"/app/hub/restart": "spaceManage",
|
|
@@ -280,6 +282,7 @@
|
|
|
280
282
|
"/app/space/member/invite": "spaceManage",
|
|
281
283
|
"/app/space/member/list": "spaceManage",
|
|
282
284
|
"/app/space/member/remove": "spaceManage",
|
|
285
|
+
"/app/space/member/update": "spaceManage",
|
|
283
286
|
"/app/space/preference/get": "spaceRead",
|
|
284
287
|
"/app/space/preference/update": "userWrite",
|
|
285
288
|
"/app/space/rename": "spaceManage",
|
package/manifest/routing.v1.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest": "mhome.app-facade.routing.v1",
|
|
3
|
-
"contractVersion": "1.
|
|
3
|
+
"contractVersion": "1.129.1",
|
|
4
4
|
"targetPrefix": "/app/",
|
|
5
5
|
"default": {
|
|
6
6
|
"execution": "spaceMode"
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"cloudTargets": [
|
|
17
17
|
"/app/agent/context/get",
|
|
18
18
|
"/app/agent/credit/usage",
|
|
19
|
-
"/app/hub/cache/clear",
|
|
20
19
|
"/app/hub/get",
|
|
21
20
|
"/app/hub/remove",
|
|
22
21
|
"/app/plugin/catalog/list",
|
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"protocol": "mhome.app-facade",
|
|
3
|
-
"contractVersion": "1.
|
|
3
|
+
"contractVersion": "1.129.1",
|
|
4
4
|
"manifest": "manifest/app-facade.v1.json",
|
|
5
5
|
"schemas": {
|
|
6
6
|
"storage": "schema/storage.v1.schema.json",
|
|
@@ -12,9 +12,12 @@
|
|
|
12
12
|
"hostAuthorization": "schema/host-authorization.v1.schema.json",
|
|
13
13
|
"hostAccess": "schema/host-access.v1.schema.json",
|
|
14
14
|
"agentLlm": "schema/agent-llm.v1.schema.json",
|
|
15
|
+
"spaceMemberChanges": "schema/space-member-changes.v1.schema.json",
|
|
15
16
|
"entityPresentation": "schema/entity-presentation.v1.schema.json",
|
|
16
17
|
"integrationPresentation": "schema/integration-presentation.v1.schema.json",
|
|
17
18
|
"capabilityDescriptor": "schema/capability-descriptor.v1.schema.json",
|
|
19
|
+
"canvasLayout": "schema/canvas-layout.v1.schema.json",
|
|
20
|
+
"dashboardComposition": "schema/dashboard-composition.v1.schema.json",
|
|
18
21
|
"cardSkinPackage": "schema/card-skin-package.v1.schema.json",
|
|
19
22
|
"cardSkins": "schema/card-skins.v1.schema.json",
|
|
20
23
|
"call": "schema/facade-call.v1.schema.json",
|
|
@@ -36,6 +39,7 @@
|
|
|
36
39
|
"person": "schema/person.v1.schema.json"
|
|
37
40
|
},
|
|
38
41
|
"fixtures": {
|
|
42
|
+
"dashboardPacking": "fixtures/dashboard/composition-packing.json",
|
|
39
43
|
"attention": "fixtures/attention/conformance.json",
|
|
40
44
|
"agentLlm": "fixtures/agent-llm.conformance.json",
|
|
41
45
|
"billing": "fixtures/billing.conformance.json",
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://schemas.meowlink.app/canvas-layout.v1.json",
|
|
4
|
+
"title": "Canvas layout document",
|
|
5
|
+
"description": "Canonical saved placement. Root coordinates are global; member coordinates are local. Runtime additionally validates uniqueness, bounds, overlap and UTF-8 document size <= 256 KiB.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"items"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"schemaVersion": {
|
|
14
|
+
"const": 1
|
|
15
|
+
},
|
|
16
|
+
"items": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"items": {
|
|
19
|
+
"oneOf": [
|
|
20
|
+
{
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"required": [
|
|
24
|
+
"kind",
|
|
25
|
+
"cardId",
|
|
26
|
+
"layouts"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"kind": {
|
|
30
|
+
"const": "card"
|
|
31
|
+
},
|
|
32
|
+
"cardId": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"minLength": 1,
|
|
35
|
+
"maxLength": 512,
|
|
36
|
+
"pattern": "^\\S(?:.*\\S)?$"
|
|
37
|
+
},
|
|
38
|
+
"layouts": {
|
|
39
|
+
"$ref": "#/definitions/profiles"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "object",
|
|
45
|
+
"additionalProperties": false,
|
|
46
|
+
"required": [
|
|
47
|
+
"kind",
|
|
48
|
+
"id",
|
|
49
|
+
"layouts",
|
|
50
|
+
"members"
|
|
51
|
+
],
|
|
52
|
+
"properties": {
|
|
53
|
+
"kind": {
|
|
54
|
+
"const": "composition"
|
|
55
|
+
},
|
|
56
|
+
"id": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"minLength": 1,
|
|
59
|
+
"maxLength": 512,
|
|
60
|
+
"pattern": "^\\S(?:.*\\S)?$"
|
|
61
|
+
},
|
|
62
|
+
"title": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"maxLength": 512
|
|
65
|
+
},
|
|
66
|
+
"layouts": {
|
|
67
|
+
"$ref": "#/definitions/profiles"
|
|
68
|
+
},
|
|
69
|
+
"members": {
|
|
70
|
+
"type": "array",
|
|
71
|
+
"minItems": 2,
|
|
72
|
+
"items": {
|
|
73
|
+
"$ref": "#/definitions/member"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"definitions": {
|
|
83
|
+
"rect": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"additionalProperties": false,
|
|
86
|
+
"required": [
|
|
87
|
+
"x",
|
|
88
|
+
"y",
|
|
89
|
+
"w",
|
|
90
|
+
"h"
|
|
91
|
+
],
|
|
92
|
+
"properties": {
|
|
93
|
+
"x": {
|
|
94
|
+
"type": "integer",
|
|
95
|
+
"minimum": 0,
|
|
96
|
+
"maximum": 2147483647
|
|
97
|
+
},
|
|
98
|
+
"y": {
|
|
99
|
+
"type": "integer",
|
|
100
|
+
"minimum": 0,
|
|
101
|
+
"maximum": 2147483647
|
|
102
|
+
},
|
|
103
|
+
"w": {
|
|
104
|
+
"type": "integer",
|
|
105
|
+
"minimum": 1,
|
|
106
|
+
"maximum": 6
|
|
107
|
+
},
|
|
108
|
+
"h": {
|
|
109
|
+
"type": "integer",
|
|
110
|
+
"minimum": 1,
|
|
111
|
+
"maximum": 2147483647
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"profiles": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"required": [
|
|
119
|
+
"sm",
|
|
120
|
+
"md",
|
|
121
|
+
"lg"
|
|
122
|
+
],
|
|
123
|
+
"properties": {
|
|
124
|
+
"sm": {
|
|
125
|
+
"$ref": "#/definitions/rect"
|
|
126
|
+
},
|
|
127
|
+
"md": {
|
|
128
|
+
"$ref": "#/definitions/rect"
|
|
129
|
+
},
|
|
130
|
+
"lg": {
|
|
131
|
+
"$ref": "#/definitions/rect"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"member": {
|
|
136
|
+
"type": "object",
|
|
137
|
+
"additionalProperties": false,
|
|
138
|
+
"required": [
|
|
139
|
+
"cardId",
|
|
140
|
+
"layouts"
|
|
141
|
+
],
|
|
142
|
+
"properties": {
|
|
143
|
+
"cardId": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"minLength": 1,
|
|
146
|
+
"maxLength": 512,
|
|
147
|
+
"pattern": "^\\S(?:.*\\S)?$"
|
|
148
|
+
},
|
|
149
|
+
"layouts": {
|
|
150
|
+
"$ref": "#/definitions/profiles"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"maxLength": 2000
|
|
41
41
|
},
|
|
42
42
|
"apiVersion": {
|
|
43
|
-
"const":
|
|
43
|
+
"const": 2
|
|
44
44
|
},
|
|
45
45
|
"renderers": {
|
|
46
46
|
"type": "array",
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
"maxLength": 2000
|
|
226
226
|
},
|
|
227
227
|
"apiVersion": {
|
|
228
|
-
"const":
|
|
228
|
+
"const": 2
|
|
229
229
|
},
|
|
230
230
|
"renderers": {
|
|
231
231
|
"type": "array",
|