@mhome/app-facade-protocol 1.118.4 → 1.125.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 (40) hide show
  1. package/README.md +21 -0
  2. package/contract/client-space-focus-v1.md +1 -1
  3. package/contract/device-presentation-v1.md +35 -0
  4. package/contract/entity-v1.md +53 -0
  5. package/contract/pod-commissioning-v1.md +12 -12
  6. package/contract/reference-presentation-v1.md +1 -1
  7. package/contract/resource-read-v1.md +11 -11
  8. package/contract/trace-v1.md +17 -0
  9. package/contract/user-navigation-v1.md +47 -0
  10. package/fixtures/authorization/decisions.json +110 -110
  11. package/fixtures/billing.conformance.json +49 -2
  12. package/fixtures/card-skins/space.json +1 -1
  13. package/fixtures/entity-presentation.conformance.json +2 -2
  14. package/fixtures/integration-presentation.conformance.json +1 -1
  15. package/fixtures/local-hub-state.configured.json +1 -1
  16. package/fixtures/pod-commission.awaiting-authorization.json +3 -3
  17. package/fixtures/presentation/cases.json +666 -35
  18. package/fixtures/recording.conformance.json +15 -8
  19. package/fixtures/routing/cases.json +44 -44
  20. package/fixtures/trace/linear.json +6 -0
  21. package/fixtures/widget-presentation.v1.json +3 -3
  22. package/manifest/app-facade.v1.json +49 -6
  23. package/manifest/authorization.v1.json +17 -8
  24. package/manifest/host-provision-targets.v1.json +1 -1
  25. package/manifest/hub-targets.v1.json +1 -1
  26. package/manifest/navigation-cards.v1.json +29 -0
  27. package/manifest/pod-targets.v1.json +2 -2
  28. package/manifest/presentation-times.v1.json +377 -29
  29. package/manifest/recording.v1.json +18 -15
  30. package/manifest/routing.v1.json +5 -4
  31. package/manifest/targets.v1.json +1 -1
  32. package/package.json +1 -1
  33. package/protocol.json +2 -1
  34. package/schema/delegated-call.v1.schema.json +2 -2
  35. package/schema/local-hub-state.v1.schema.json +2 -2
  36. package/schema/pod-commission.v1.schema.json +6 -6
  37. package/schema/routing.v1.schema.json +3 -3
  38. package/schema/system-hosts.v1.schema.json +2 -2
  39. package/schema/trace.v1.schema.json +278 -0
  40. package/schema/user-navigation.v1.schema.json +133 -0
@@ -63,7 +63,7 @@
63
63
  "userId": "other"
64
64
  },
65
65
  {
66
- "scopeId": "home"
66
+ "spaceId": "home"
67
67
  },
68
68
  {
69
69
  "fromDate": 42
@@ -112,7 +112,7 @@
112
112
  },
113
113
  {
114
114
  "productId": "go",
115
- "scopeId": "home"
115
+ "spaceId": "home"
116
116
  }
117
117
  ]
118
118
  },
@@ -125,5 +125,52 @@
125
125
  "currentPeriodEndTimestamp": 1796083200000,
126
126
  "scheduledTier": "V1",
127
127
  "scheduledTierStartTimestamp": 1796083200000
128
+ },
129
+ "essential": {
130
+ "summary": {
131
+ "userId": "fictional-user",
132
+ "currentTier": "V2",
133
+ "refreshTier": "V2",
134
+ "stripeSubscriptionStatus": "active",
135
+ "totalBalance": 300000,
136
+ "usedAutomation": 100,
137
+ "usedChat": 200,
138
+ "usedIntegration": 300,
139
+ "nextRefreshTimestamp": "2026-12-01 00:00:00 +00:00 (UTC)"
140
+ },
141
+ "payments": {
142
+ "payments": [
143
+ {
144
+ "description": "Fictional refund",
145
+ "amount": -500,
146
+ "currency": "usd",
147
+ "timestamp": "2026-11-07 00:00:00 +00:00 (UTC)"
148
+ }
149
+ ]
150
+ },
151
+ "creditUsage": {
152
+ "audience": "personal",
153
+ "timezone": "UTC",
154
+ "fromDate": "2026-11-01",
155
+ "toDate": "2026-11-07",
156
+ "trackedFrom": "2026-11-01T00:00:00Z",
157
+ "rows": [
158
+ {
159
+ "date": "2026-11-07",
160
+ "source": "agent",
161
+ "credits": 20
162
+ }
163
+ ]
164
+ },
165
+ "subscription": {
166
+ "currentTier": "V2",
167
+ "cancelAtPeriodEnd": false,
168
+ "currentPeriodEndTimestamp": "2026-12-01 00:00:00 +00:00 (UTC)",
169
+ "scheduledTier": "V1",
170
+ "scheduledTierStartTimestamp": "2026-12-01 00:00:00 +00:00 (UTC)"
171
+ },
172
+ "checkout": {
173
+ "url": "https://checkout.stripe.com/c/pay/cs_test_fictional"
174
+ }
128
175
  }
129
176
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "tenantId": "mlink",
3
- "scopeId": "space-a",
3
+ "spaceId": "space-a",
4
4
  "selection": {
5
5
  "installations": [
6
6
  {
@@ -19,7 +19,7 @@
19
19
  {
20
20
  "entityType": "basic.device.Device",
21
21
  "entityId": "device-1",
22
- "scopeId": "other"
22
+ "spaceId": "other"
23
23
  }
24
24
  ]
25
25
  },
@@ -204,7 +204,7 @@
204
204
  "missing",
205
205
  "lamp"
206
206
  ],
207
- "scopeId": "other"
207
+ "spaceId": "other"
208
208
  }
209
209
  ]
210
210
  },
@@ -18,7 +18,7 @@
18
18
  },
19
19
  {
20
20
  "integrationId": "basic.device",
21
- "scopeId": "other"
21
+ "spaceId": "other"
22
22
  },
23
23
  {
24
24
  "integrationId": 7
@@ -1,5 +1,5 @@
1
1
  {
2
- "scopeId": "scope-1",
2
+ "spaceId": "scope-1",
3
3
  "configured": true,
4
4
  "hub": {
5
5
  "id": "hub-1",
@@ -25,14 +25,14 @@
25
25
  "authorization": {
26
26
  "userId": "user-1",
27
27
  "userName": "Ada",
28
- "scopes": [
28
+ "spaces": [
29
29
  {
30
- "scopeId": "scope-1",
30
+ "spaceId": "scope-1",
31
31
  "name": "Home",
32
32
  "local": true,
33
33
  "owner": true
34
34
  }
35
35
  ],
36
- "defaultScopeId": "scope-1"
36
+ "defaultSpaceId": "scope-1"
37
37
  }
38
38
  }