@mhome/app-facade-protocol 1.146.1 → 1.147.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/README.md +3 -0
- package/contract/messaging-route-updates.md +28 -0
- package/fixtures/route-update-partial.response.json +35 -0
- package/manifest/app-facade.v1.json +1 -1
- package/manifest/authorization.v1.json +1 -1
- 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/messaging-frame.v3.schema.json +17 -0
package/README.md
CHANGED
|
@@ -31,6 +31,9 @@ independent saved configuration and Provider Operation boundaries.
|
|
|
31
31
|
See [Group operation state](contract/groups-v1.md) for incomplete application,
|
|
32
32
|
manual reapplication, deletion and name-update outcomes.
|
|
33
33
|
|
|
34
|
+
See [Messaging route update outcomes](contract/messaging-route-updates.md) for
|
|
35
|
+
committed-route receipts and best-effort cleanup without a persisted pending state.
|
|
36
|
+
|
|
34
37
|
## Business DTO ownership
|
|
35
38
|
|
|
36
39
|
A Facade owns the public business DTO for an operation. Native Agent tools, MCP,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Messaging route update outcomes
|
|
2
|
+
|
|
3
|
+
The route is authoritative. Save the new Space/settings before changing derived
|
|
4
|
+
delivery registrations. A rejected save leaves the old registrations and actions
|
|
5
|
+
untouched. Local route changes and old action invalidation share the existing
|
|
6
|
+
SQLite transaction; construct the receipt before committing it.
|
|
7
|
+
|
|
8
|
+
After commit, attempt the current registration and best-effort old-Space cleanup
|
|
9
|
+
independently. Old cleanup failure may leave disposable records; it does not fail
|
|
10
|
+
the update or prevent a later update. Cleanup must not invalidate new-Space action
|
|
11
|
+
sessions. Action handlers still check the current route and authorization; provider
|
|
12
|
+
message/button editing is not a prerequisite for saving settings.
|
|
13
|
+
|
|
14
|
+
If the current delivery registration fails after commit, `/app/messaging/route/update`
|
|
15
|
+
returns `partial` with the committed `route` and optional `applicationProblem`
|
|
16
|
+
(`MESSAGING_ROUTE_REGISTRATION_FAILED`). Full and Essential retain this outcome and
|
|
17
|
+
warning. Private-chat `/switch` likewise says the Space was selected and explains
|
|
18
|
+
that delivery registration failed. A user may apply settings or switch again.
|
|
19
|
+
|
|
20
|
+
This receipt is transient. It introduces no persisted route state, cleanup task,
|
|
21
|
+
automatic write retry or pending-operation gate. Reads do not retain the failure
|
|
22
|
+
after refresh, and a later update need not clean every historical registration.
|
|
23
|
+
|
|
24
|
+
Clients preserve a known committed receipt even if a subsequent read fails. On an
|
|
25
|
+
unconfirmed/transport failure, reread the actual route without replaying the write.
|
|
26
|
+
Directory indexes discover route IDs; resolve those IDs from the authoritative
|
|
27
|
+
primary rows before displaying their current Space. A response from an abandoned
|
|
28
|
+
UI session must not change the new session or display its mutation result.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"target": "/app/messaging/route/update",
|
|
3
|
+
"direction": "response",
|
|
4
|
+
"body": {
|
|
5
|
+
"route": {
|
|
6
|
+
"provider": "telegram",
|
|
7
|
+
"placement": "cloud",
|
|
8
|
+
"routeId": "route-1",
|
|
9
|
+
"accountId": "official-bot",
|
|
10
|
+
"conversationId": "chat-1",
|
|
11
|
+
"audience": "personal",
|
|
12
|
+
"externalActorId": "user-1",
|
|
13
|
+
"tenantId": "tenant-1",
|
|
14
|
+
"userId": "mhome-user-1",
|
|
15
|
+
"spaceId": "scope-1",
|
|
16
|
+
"projections": {
|
|
17
|
+
"notification": {
|
|
18
|
+
"enabled": true,
|
|
19
|
+
"levels": [
|
|
20
|
+
"alert",
|
|
21
|
+
"notify"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"dialog": {
|
|
25
|
+
"enabled": true
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"providerData": {}
|
|
29
|
+
},
|
|
30
|
+
"applicationProblem": {
|
|
31
|
+
"code": "MESSAGING_ROUTE_REGISTRATION_FAILED",
|
|
32
|
+
"message": "Chat route saved, but delivery registration failed. Apply the settings again."
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
package/manifest/routing.v1.json
CHANGED
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -1483,6 +1483,23 @@
|
|
|
1483
1483
|
"properties": {
|
|
1484
1484
|
"route": {
|
|
1485
1485
|
"$ref": "#/$defs/messagingRoute"
|
|
1486
|
+
},
|
|
1487
|
+
"applicationProblem": {
|
|
1488
|
+
"type": "object",
|
|
1489
|
+
"additionalProperties": false,
|
|
1490
|
+
"required": [
|
|
1491
|
+
"code",
|
|
1492
|
+
"message"
|
|
1493
|
+
],
|
|
1494
|
+
"properties": {
|
|
1495
|
+
"code": {
|
|
1496
|
+
"type": "string"
|
|
1497
|
+
},
|
|
1498
|
+
"message": {
|
|
1499
|
+
"type": "string"
|
|
1500
|
+
},
|
|
1501
|
+
"details": {}
|
|
1502
|
+
}
|
|
1486
1503
|
}
|
|
1487
1504
|
}
|
|
1488
1505
|
}
|