@mhome/app-facade-protocol 1.45.0 → 1.47.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.
Files changed (67) hide show
  1. package/README.md +12 -7
  2. package/contract/card-skins-v1.md +138 -0
  3. package/fixtures/actor-link-code-create.request.json +2 -5
  4. package/fixtures/actor-link-code-create.response.json +1 -1
  5. package/fixtures/actor-link-delete.request.json +7 -1
  6. package/fixtures/actor-link-delete.response.json +7 -1
  7. package/fixtures/actor-link-list.request.json +5 -1
  8. package/fixtures/actor-link-list.response.json +18 -1
  9. package/fixtures/authorization/decisions.json +36 -0
  10. package/fixtures/bind-code-create.request.json +5 -0
  11. package/fixtures/{surface-bind-code-create.response.json → bind-code-create.response.json} +1 -1
  12. package/fixtures/binding-list.request.json +5 -0
  13. package/fixtures/binding-list.response.json +18 -0
  14. package/fixtures/card-skins/space.json +79 -0
  15. package/fixtures/identity-code-failed.response.json +1 -2
  16. package/fixtures/identity-code-status.request.json +7 -1
  17. package/fixtures/identity-code-status.response.json +1 -2
  18. package/fixtures/interaction-flow.conformance.json +15 -5
  19. package/fixtures/provider-account-delete.response.json +3 -1
  20. package/fixtures/provider-account-list.request.json +4 -1
  21. package/fixtures/provider-account-status.request.json +4 -1
  22. package/fixtures/provider-account-status.response.json +4 -2
  23. package/fixtures/provider-account-test.request.json +7 -1
  24. package/fixtures/provider-account-test.response.json +5 -1
  25. package/fixtures/provider-account-update.request.json +3 -1
  26. package/fixtures/provider-list.request.json +4 -1
  27. package/fixtures/provider-list.response.json +20 -5
  28. package/fixtures/route-delete.request.json +5 -1
  29. package/fixtures/route-delete.response.json +3 -1
  30. package/fixtures/route-list.request.json +5 -1
  31. package/fixtures/route-list.response.json +4 -3
  32. package/fixtures/route-update.request.json +4 -2
  33. package/fixtures/route-update.response.json +4 -2
  34. package/fixtures/routing/cases.json +450 -0
  35. package/fixtures/setup-options.request.json +4 -1
  36. package/fixtures/setup-options.response.json +5 -1
  37. package/fixtures/setup-start.request.json +3 -1
  38. package/fixtures/setup-start.response.json +3 -1
  39. package/fixtures/setup-status.request.json +5 -1
  40. package/fixtures/shared-account-grant-create.request.json +5 -1
  41. package/fixtures/shared-account-grant-create.response.json +3 -1
  42. package/fixtures/shared-account-grant-delete.request.json +5 -1
  43. package/fixtures/shared-account-grant-delete.response.json +3 -1
  44. package/fixtures/shared-account-grant-list.request.json +5 -1
  45. package/fixtures/shared-account-grant-list.response.json +10 -1
  46. package/fixtures/shared-code-bind-create.request.json +2 -6
  47. package/fixtures/shared-code-link-create.request.json +2 -5
  48. package/fixtures/unbind.request.json +7 -0
  49. package/fixtures/unbind.response.json +7 -0
  50. package/manifest/app-facade.v1.json +55 -2
  51. package/manifest/host-provision-targets.v1.json +1 -1
  52. package/manifest/hub-targets.v1.json +1 -1
  53. package/manifest/pod-targets.v1.json +1 -1
  54. package/manifest/routing.v1.json +19 -37
  55. package/manifest/targets.v1.json +16 -18
  56. package/package.json +1 -1
  57. package/protocol.json +3 -1
  58. package/schema/card-skin-package.v1.schema.json +238 -0
  59. package/schema/card-skins.v1.schema.json +537 -0
  60. package/schema/messaging-frame.v3.schema.json +233 -373
  61. package/schema/routing.v1.schema.json +37 -14
  62. package/fixtures/identity-code-event.response.json +0 -33
  63. package/fixtures/surface-bind-code-create.request.json +0 -9
  64. package/fixtures/surface-dismiss.request.json +0 -1
  65. package/fixtures/surface-dismiss.response.json +0 -1
  66. package/fixtures/surface-list.request.json +0 -1
  67. package/fixtures/surface-list.response.json +0 -1
@@ -14,23 +14,34 @@
14
14
  "rules"
15
15
  ],
16
16
  "properties": {
17
- "manifest": { "const": "mhome.app-facade.routing.v1" },
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": { "const": "/app/" },
24
+ "targetPrefix": {
25
+ "const": "/app/"
26
+ },
23
27
  "default": {
24
28
  "type": "object",
25
29
  "additionalProperties": false,
26
- "required": ["execution", "relay"],
30
+ "required": [
31
+ "execution"
32
+ ],
27
33
  "properties": {
28
- "execution": { "const": "scopeMode" },
29
- "relay": { "const": "directOnly" }
34
+ "execution": {
35
+ "const": "scopeMode"
36
+ }
30
37
  }
31
38
  },
32
- "matching": { "const": "exactBeforePrefix" },
33
- "placementJsonPointer": { "const": "/input/placement" },
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
- "cloudRelayTargets"
54
+ "hubTargets"
44
55
  ],
45
56
  "properties": {
46
- "cloudPrefixes": { "$ref": "#/$defs/targetList" },
47
- "cloudTargets": { "$ref": "#/$defs/targetList" },
48
- "scopeModeTargets": { "$ref": "#/$defs/targetList" },
49
- "hubPrefixes": { "$ref": "#/$defs/targetList" },
50
- "requestPlacementPrefixes": { "$ref": "#/$defs/targetList" },
51
- "cloudRelayTargets": { "$ref": "#/$defs/targetList" }
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,9 +0,0 @@
1
- {
2
- "target": "/app/messaging/surface/bind-code/create",
3
- "direction": "request",
4
- "body": {
5
- "provider": "feishu",
6
- "placement": "local",
7
- "scopeId": "scope_a"
8
- }
9
- }
@@ -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}]}}