@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 CHANGED
@@ -9,6 +9,8 @@ version.
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [8.1.0] — 2026-10-28
13
+
12
14
  ### Added
13
15
 
14
16
  - Internal, additive shapes for Block D support sessions: `supportSessionInfo`,
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 writing route — any
1107
- * `POST`, `PUT`, `PATCH` or `DELETE` on the developer surface — or sent a
1108
- * realtime control frame that would write. Reading stays open throughout:
1109
- * only the write is refused, so a session an operator has not switched to
1110
- * `edit` can diagnose without being able to change anything.
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 a support session never reaches, in either mode — signing
1123
- * in again, account recovery, and system operations such as deleting the
1124
- * org or rotating another developer's credentials. A support session is a
1125
- * narrow, time-boxed stand-in for diagnosing and fixing one org's
1126
- * configuration; it is never a path to the account layer underneath it,
1127
- * `edit` mode included.
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 and by the realtime socket,
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-next.1",
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",