@mhome/app-facade-protocol 1.45.0 → 1.46.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 -7
- package/contract/card-skins-v1.md +138 -0
- package/fixtures/actor-link-code-create.request.json +2 -5
- package/fixtures/actor-link-code-create.response.json +1 -1
- package/fixtures/actor-link-delete.request.json +7 -1
- package/fixtures/actor-link-delete.response.json +7 -1
- package/fixtures/actor-link-list.request.json +5 -1
- package/fixtures/actor-link-list.response.json +18 -1
- package/fixtures/authorization/decisions.json +36 -0
- package/fixtures/bind-code-create.request.json +5 -0
- package/fixtures/{surface-bind-code-create.response.json → bind-code-create.response.json} +1 -1
- package/fixtures/binding-list.request.json +5 -0
- package/fixtures/binding-list.response.json +18 -0
- package/fixtures/card-skins/space.json +79 -0
- package/fixtures/identity-code-failed.response.json +1 -2
- package/fixtures/identity-code-status.request.json +7 -1
- package/fixtures/identity-code-status.response.json +1 -2
- package/fixtures/interaction-flow.conformance.json +15 -5
- package/fixtures/provider-account-delete.response.json +3 -1
- package/fixtures/provider-account-list.request.json +4 -1
- package/fixtures/provider-account-status.request.json +4 -1
- package/fixtures/provider-account-status.response.json +4 -2
- package/fixtures/provider-account-test.request.json +7 -1
- package/fixtures/provider-account-test.response.json +5 -1
- package/fixtures/provider-account-update.request.json +3 -1
- package/fixtures/provider-list.request.json +4 -1
- package/fixtures/provider-list.response.json +20 -5
- package/fixtures/route-delete.request.json +5 -1
- package/fixtures/route-delete.response.json +3 -1
- package/fixtures/route-list.request.json +5 -1
- package/fixtures/route-list.response.json +4 -3
- package/fixtures/route-update.request.json +4 -2
- package/fixtures/route-update.response.json +4 -2
- package/fixtures/routing/cases.json +450 -0
- package/fixtures/setup-options.request.json +4 -1
- package/fixtures/setup-options.response.json +5 -1
- package/fixtures/setup-start.request.json +3 -1
- package/fixtures/setup-start.response.json +3 -1
- package/fixtures/setup-status.request.json +5 -1
- package/fixtures/shared-account-grant-create.request.json +5 -1
- package/fixtures/shared-account-grant-create.response.json +3 -1
- package/fixtures/shared-account-grant-delete.request.json +5 -1
- package/fixtures/shared-account-grant-delete.response.json +3 -1
- package/fixtures/shared-account-grant-list.request.json +5 -1
- package/fixtures/shared-account-grant-list.response.json +10 -1
- package/fixtures/shared-code-bind-create.request.json +2 -6
- package/fixtures/shared-code-link-create.request.json +2 -5
- package/fixtures/unbind.request.json +7 -0
- package/fixtures/unbind.response.json +7 -0
- package/manifest/app-facade.v1.json +52 -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 +19 -37
- package/manifest/targets.v1.json +16 -18
- package/package.json +1 -1
- package/protocol.json +3 -1
- package/schema/card-skin-package.v1.schema.json +238 -0
- package/schema/card-skins.v1.schema.json +537 -0
- package/schema/messaging-frame.v3.schema.json +233 -373
- package/schema/routing.v1.schema.json +37 -14
- package/fixtures/identity-code-event.response.json +0 -33
- package/fixtures/surface-bind-code-create.request.json +0 -9
- package/fixtures/surface-dismiss.request.json +0 -1
- package/fixtures/surface-dismiss.response.json +0 -1
- package/fixtures/surface-list.request.json +0 -1
- package/fixtures/surface-list.response.json +0 -1
|
@@ -14,23 +14,34 @@
|
|
|
14
14
|
"rules"
|
|
15
15
|
],
|
|
16
16
|
"properties": {
|
|
17
|
-
"manifest": {
|
|
17
|
+
"manifest": {
|
|
18
|
+
"const": "mhome.app-facade.routing.v1"
|
|
19
|
+
},
|
|
18
20
|
"contractVersion": {
|
|
19
21
|
"type": "string",
|
|
20
22
|
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
|
|
21
23
|
},
|
|
22
|
-
"targetPrefix": {
|
|
24
|
+
"targetPrefix": {
|
|
25
|
+
"const": "/app/"
|
|
26
|
+
},
|
|
23
27
|
"default": {
|
|
24
28
|
"type": "object",
|
|
25
29
|
"additionalProperties": false,
|
|
26
|
-
"required": [
|
|
30
|
+
"required": [
|
|
31
|
+
"execution"
|
|
32
|
+
],
|
|
27
33
|
"properties": {
|
|
28
|
-
"execution": {
|
|
29
|
-
|
|
34
|
+
"execution": {
|
|
35
|
+
"const": "scopeMode"
|
|
36
|
+
}
|
|
30
37
|
}
|
|
31
38
|
},
|
|
32
|
-
"matching": {
|
|
33
|
-
|
|
39
|
+
"matching": {
|
|
40
|
+
"const": "exactBeforePrefix"
|
|
41
|
+
},
|
|
42
|
+
"placementJsonPointer": {
|
|
43
|
+
"const": "/input/placement"
|
|
44
|
+
},
|
|
34
45
|
"rules": {
|
|
35
46
|
"type": "object",
|
|
36
47
|
"additionalProperties": false,
|
|
@@ -40,15 +51,27 @@
|
|
|
40
51
|
"scopeModeTargets",
|
|
41
52
|
"hubPrefixes",
|
|
42
53
|
"requestPlacementPrefixes",
|
|
43
|
-
"
|
|
54
|
+
"hubTargets"
|
|
44
55
|
],
|
|
45
56
|
"properties": {
|
|
46
|
-
"cloudPrefixes": {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
57
|
+
"cloudPrefixes": {
|
|
58
|
+
"$ref": "#/$defs/targetList"
|
|
59
|
+
},
|
|
60
|
+
"cloudTargets": {
|
|
61
|
+
"$ref": "#/$defs/targetList"
|
|
62
|
+
},
|
|
63
|
+
"scopeModeTargets": {
|
|
64
|
+
"$ref": "#/$defs/targetList"
|
|
65
|
+
},
|
|
66
|
+
"hubPrefixes": {
|
|
67
|
+
"$ref": "#/$defs/targetList"
|
|
68
|
+
},
|
|
69
|
+
"requestPlacementPrefixes": {
|
|
70
|
+
"$ref": "#/$defs/targetList"
|
|
71
|
+
},
|
|
72
|
+
"hubTargets": {
|
|
73
|
+
"$ref": "#/$defs/targetList"
|
|
74
|
+
}
|
|
52
75
|
}
|
|
53
76
|
}
|
|
54
77
|
},
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"target": "/app/messaging/identity-code/changed",
|
|
3
|
-
"direction": "response",
|
|
4
|
-
"body": {
|
|
5
|
-
"status": {
|
|
6
|
-
"challengeId": "challenge_01",
|
|
7
|
-
"provider": "telegram",
|
|
8
|
-
"placement": "local",
|
|
9
|
-
"accountId": "bot_a",
|
|
10
|
-
"expiresAtMs": 1720000300000,
|
|
11
|
-
"lifecycle": {
|
|
12
|
-
"state": "completed",
|
|
13
|
-
"receipt": {
|
|
14
|
-
"actor": {
|
|
15
|
-
"provider": "telegram",
|
|
16
|
-
"accountId": "bot_a",
|
|
17
|
-
"externalUserId": "tg_42",
|
|
18
|
-
"displayName": "Alice"
|
|
19
|
-
},
|
|
20
|
-
"address": {
|
|
21
|
-
"provider": "telegram",
|
|
22
|
-
"accountId": "bot_a",
|
|
23
|
-
"conversationId": "family",
|
|
24
|
-
"audience": "shared"
|
|
25
|
-
},
|
|
26
|
-
"eventId": "update_99"
|
|
27
|
-
},
|
|
28
|
-
"linkId": "link_42"
|
|
29
|
-
},
|
|
30
|
-
"kind": "link"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"target":"/app/messaging/surface/dismiss","direction":"request","body":{"provider":"feishu","placement":"local","surfaceId":"cs1:mg:feishu:Y2xpX2E:Y2hhdF9h"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"target":"/app/messaging/surface/dismiss","direction":"response","body":{"success":true}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"target":"/app/messaging/surface/list","direction":"request","body":{"provider":"feishu","placement":"local","state":"pending"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"target":"/app/messaging/surface/list","direction":"response","body":{"surfaces":[{"provider":"feishu","placement":"local","accountId":"cli_a","surfaceId":"cs1:mg:feishu:Y2xpX2E:Y2hhdF9h","displayName":"Project room","state":"pending","firstSeenAtMs":1720000000000,"lastSeenAtMs":1720000001000}]}}
|