@mhome/app-facade-protocol 1.183.1 → 1.187.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 +24 -12
- package/contract/automation-v1.md +2 -1
- package/contract/chat-reference-v1.md +150 -0
- package/contract/entity-extensions-v1.md +125 -32
- package/contract/reference-presentation-v1.md +3 -2
- package/contract/resource-read-v1.md +21 -9
- package/contract/suggestion-v1.md +22 -5
- package/fixtures/automation-failure-codes.json +215 -0
- package/fixtures/chat-reference-projection.conformance.json +305 -0
- package/fixtures/suggestion.conformance.json +165 -0
- package/fixtures/suggestion.migration.json +9 -0
- package/manifest/app-facade.v1.json +5 -3
- package/manifest/authorization.v1.json +4 -2
- 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 +1 -1
- package/schema/suggestion.v1.schema.json +68 -0
|
@@ -80,6 +80,9 @@
|
|
|
80
80
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
81
81
|
}
|
|
82
82
|
],
|
|
83
|
+
"audience": {
|
|
84
|
+
"kind": "space"
|
|
85
|
+
},
|
|
83
86
|
"id": "pending",
|
|
84
87
|
"spaceId": "space",
|
|
85
88
|
"runId": "run",
|
|
@@ -109,6 +112,12 @@
|
|
|
109
112
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
110
113
|
}
|
|
111
114
|
],
|
|
115
|
+
"audience": {
|
|
116
|
+
"kind": "users",
|
|
117
|
+
"userIds": [
|
|
118
|
+
"fixture-user"
|
|
119
|
+
]
|
|
120
|
+
},
|
|
112
121
|
"id": "resolved",
|
|
113
122
|
"spaceId": "space",
|
|
114
123
|
"runId": "run",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest": "mhome.app-facade.v1",
|
|
3
|
-
"contractVersion": "1.
|
|
3
|
+
"contractVersion": "1.187.0",
|
|
4
4
|
"callSchema": "schema/facade-call.v1.schema.json",
|
|
5
5
|
"routing": "manifest/routing.v1.json",
|
|
6
6
|
"routingSchema": "schema/routing.v1.schema.json",
|
|
@@ -561,8 +561,10 @@
|
|
|
561
561
|
"contract": "contract/entity-extensions-v1.md",
|
|
562
562
|
"requestTargets": [
|
|
563
563
|
"/app/entity/extension/get",
|
|
564
|
-
"/app/entity/extension/
|
|
565
|
-
"/app/entity/extension/
|
|
564
|
+
"/app/entity/extension/candidates",
|
|
565
|
+
"/app/entity/extension/list",
|
|
566
|
+
"/app/entity/extension/associate",
|
|
567
|
+
"/app/entity/extension/change"
|
|
566
568
|
]
|
|
567
569
|
}
|
|
568
570
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contractVersion": "1.
|
|
2
|
+
"contractVersion": "1.187.0",
|
|
3
3
|
"operations": {
|
|
4
4
|
"/app/agent/context/get": "spaceRead",
|
|
5
5
|
"/app/agent/conversation/get": "spaceRead",
|
|
@@ -103,7 +103,9 @@
|
|
|
103
103
|
"/app/dialog/reply": "spaceWrite",
|
|
104
104
|
"/app/entity/detail/get": "spaceRead",
|
|
105
105
|
"/app/entity/extension/change": "spaceManage",
|
|
106
|
-
"/app/entity/extension/
|
|
106
|
+
"/app/entity/extension/associate": "spaceManage",
|
|
107
|
+
"/app/entity/extension/candidates": "spaceRead",
|
|
108
|
+
"/app/entity/extension/list": "spaceRead",
|
|
107
109
|
"/app/entity/extension/get": "spaceRead",
|
|
108
110
|
"/app/entity/history/list": "spaceRead",
|
|
109
111
|
"/app/entity/list": "spaceRead",
|
package/manifest/routing.v1.json
CHANGED
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -684,7 +684,7 @@
|
|
|
684
684
|
"string",
|
|
685
685
|
"null"
|
|
686
686
|
],
|
|
687
|
-
"description": "
|
|
687
|
+
"description": "Optional known reason for FAILED. SUPPRESSED is whole admission/resume; STEP_SUPPRESSED is an unhandled action. Unknown reasons are omitted."
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
690
|
}
|
|
@@ -3,6 +3,44 @@
|
|
|
3
3
|
"$id": "https://mhome.ai/schema/suggestion.v1.schema.json",
|
|
4
4
|
"$comment": "Generic envelopes validate common fields only. Writers must also validate a registered type; AUTOMATION is the first production type. Timestamps and version are safe JSON integers. Cross-field time and authorization checks remain required.",
|
|
5
5
|
"$defs": {
|
|
6
|
+
"SuggestionAudience": {
|
|
7
|
+
"oneOf": [
|
|
8
|
+
{
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"kind": {
|
|
12
|
+
"const": "space"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": [
|
|
16
|
+
"kind"
|
|
17
|
+
],
|
|
18
|
+
"additionalProperties": false
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {
|
|
23
|
+
"kind": {
|
|
24
|
+
"const": "users"
|
|
25
|
+
},
|
|
26
|
+
"userIds": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"items": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"pattern": "[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000]"
|
|
31
|
+
},
|
|
32
|
+
"minItems": 1,
|
|
33
|
+
"uniqueItems": true
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": [
|
|
37
|
+
"kind",
|
|
38
|
+
"userIds"
|
|
39
|
+
],
|
|
40
|
+
"additionalProperties": false
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
6
44
|
"Evidence": {
|
|
7
45
|
"type": "object",
|
|
8
46
|
"properties": {
|
|
@@ -213,6 +251,12 @@
|
|
|
213
251
|
},
|
|
214
252
|
"minItems": 1
|
|
215
253
|
},
|
|
254
|
+
"audience": {
|
|
255
|
+
"$ref": "#/$defs/SuggestionAudience",
|
|
256
|
+
"default": {
|
|
257
|
+
"kind": "space"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
216
260
|
"expiresAt": {
|
|
217
261
|
"anyOf": [
|
|
218
262
|
{
|
|
@@ -265,6 +309,12 @@
|
|
|
265
309
|
},
|
|
266
310
|
"minItems": 1
|
|
267
311
|
},
|
|
312
|
+
"audience": {
|
|
313
|
+
"$ref": "#/$defs/SuggestionAudience",
|
|
314
|
+
"default": {
|
|
315
|
+
"kind": "space"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
268
318
|
"expiresAt": {
|
|
269
319
|
"anyOf": [
|
|
270
320
|
{
|
|
@@ -434,6 +484,12 @@
|
|
|
434
484
|
},
|
|
435
485
|
"minItems": 1
|
|
436
486
|
},
|
|
487
|
+
"audience": {
|
|
488
|
+
"$ref": "#/$defs/SuggestionAudience",
|
|
489
|
+
"default": {
|
|
490
|
+
"kind": "space"
|
|
491
|
+
}
|
|
492
|
+
},
|
|
437
493
|
"expiresAt": {
|
|
438
494
|
"anyOf": [
|
|
439
495
|
{
|
|
@@ -550,6 +606,12 @@
|
|
|
550
606
|
},
|
|
551
607
|
"minItems": 1
|
|
552
608
|
},
|
|
609
|
+
"audience": {
|
|
610
|
+
"$ref": "#/$defs/SuggestionAudience",
|
|
611
|
+
"default": {
|
|
612
|
+
"kind": "space"
|
|
613
|
+
}
|
|
614
|
+
},
|
|
553
615
|
"expiresAt": {
|
|
554
616
|
"anyOf": [
|
|
555
617
|
{
|
|
@@ -909,6 +971,12 @@
|
|
|
909
971
|
"type": "string",
|
|
910
972
|
"pattern": "[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000]"
|
|
911
973
|
},
|
|
974
|
+
"audience": {
|
|
975
|
+
"$ref": "#/$defs/SuggestionAudience",
|
|
976
|
+
"default": {
|
|
977
|
+
"kind": "space"
|
|
978
|
+
}
|
|
979
|
+
},
|
|
912
980
|
"status": {
|
|
913
981
|
"enum": [
|
|
914
982
|
"PENDING",
|