@fleetless/contracts 8.1.0-next.1 → 8.1.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/CHANGELOG.md +2 -0
- package/dist/errors.js +14 -13
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/errors.js
CHANGED
|
@@ -1103,11 +1103,11 @@ export const ERROR_CODES = [
|
|
|
1103
1103
|
'billing_documents_unavailable',
|
|
1104
1104
|
// 2026-10-28 — support sessions (Block D, internal operator impersonation).
|
|
1105
1105
|
/**
|
|
1106
|
-
* `403`: a support session in `read` mode reached a
|
|
1107
|
-
* `
|
|
1108
|
-
*
|
|
1109
|
-
*
|
|
1110
|
-
* `
|
|
1106
|
+
* `403`: a support session in `read` mode reached a route classified as
|
|
1107
|
+
* `administration`, `robot_operation` or `robot_upload`, or sent a realtime
|
|
1108
|
+
* control frame. The route's operation class decides, not its HTTP method:
|
|
1109
|
+
* a read-classified POST may be allowed and a robot-operation GET refused.
|
|
1110
|
+
* Routes classified as `read` remain available in either session mode.
|
|
1111
1111
|
*
|
|
1112
1112
|
* Distinct from `forbidden`, which is silent about existence and about a
|
|
1113
1113
|
* caller's role: this is about the **session's mode**, not about what the
|
|
@@ -1119,18 +1119,19 @@ export const ERROR_CODES = [
|
|
|
1119
1119
|
*/
|
|
1120
1120
|
'support_read_only',
|
|
1121
1121
|
/**
|
|
1122
|
-
* `403`: a route
|
|
1123
|
-
*
|
|
1124
|
-
*
|
|
1125
|
-
*
|
|
1126
|
-
*
|
|
1127
|
-
*
|
|
1122
|
+
* `403`: a route classified as `authentication`, `license_recovery` or
|
|
1123
|
+
* `system_operation`, or an unclassified route, is unavailable to support
|
|
1124
|
+
* sessions in either mode. The explicit exceptions are `GET /api/auth/me`
|
|
1125
|
+
* and `POST /api/auth/support/end`. These operation classes cover the
|
|
1126
|
+
* session's own sign-in/account surface, instance licence recovery and
|
|
1127
|
+
* system endpoints. Edit mode otherwise carries the organisation Owner's
|
|
1128
|
+
* rights, including member administration, credential rotation and billing;
|
|
1129
|
+
* there is no additional per-route deny list.
|
|
1128
1130
|
*
|
|
1129
1131
|
* Distinct from `support_read_only`, which is about a session's mode on a
|
|
1130
1132
|
* route it could otherwise reach: this is a route no support session
|
|
1131
1133
|
* reaches regardless of mode. Produced by the cloud's support-session
|
|
1132
|
-
* policy guard on the developer HTTP surface
|
|
1133
|
-
* for the control frames it refuses the same way.
|
|
1134
|
+
* policy guard on the developer HTTP surface.
|
|
1134
1135
|
*/
|
|
1135
1136
|
'support_forbidden',
|
|
1136
1137
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fleetless/contracts",
|
|
3
|
-
"version": "8.1.0
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "Fleetless wire contracts: the bridge-cloud protocol, the REST API schemas and the error codes, as zod schemas with generated JSON Schema and OpenAPI artifacts.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Dehne Robotik GmbH",
|