@fleetless/contracts 13.1.0 → 13.3.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,49 @@ version.
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [13.3.0] — 2026-11-05
13
+
14
+ ### Added
15
+
16
+ - `configAuthor`: a console team member by display name (the local part of the
17
+ email address when the member has none), never a full email address. The
18
+ config draft carries `updated_by` and each published version `published_by`,
19
+ both `configAuthor` or `null`: `null` when nobody has saved yet, when the
20
+ cloud itself rewrote the draft, when the member has since been removed, or
21
+ for rows older than the field. Both are optional on the wire: a consumer
22
+ reads an absent field as unknown, and the cloud always sends it.
23
+ - `hostedLogoShape` (`square` or `wide`) and `appAuthConfig.hosted_logo_shape`,
24
+ read-only and derived from the stored image: `wide` when the logo is more
25
+ than one and a half times as wide as it is high, otherwise `square`, and
26
+ `null` exactly when `hosted_logo_url` is `null`. The field is optional on the
27
+ wire: a consumer reads an absent field as unknown, and the cloud always sends
28
+ it.
29
+
30
+ ### Changed
31
+
32
+ - `HOSTED_LOGO_MAX_BYTES` rises from 100 KB to 512 KB (`524_288`). The logo
33
+ route's notes state the new limit.
34
+
35
+ ### Removed
36
+
37
+ - The internal route `GET /mcp/welcome` (audience `internal`) is no longer listed: the MCP landing page
38
+ moved to https://fleetless.dev/mcp/.
39
+
40
+ ## [13.2.0] — 2026-11-05
41
+
42
+ ### Changed
43
+
44
+ - Robot and app deletion, bridge-token rotation, server-key minting, rotation
45
+ and revocation, and asset sync and clear no longer need the Owner tier. The
46
+ eight routes (`DELETE /api/robots/:id`, `POST /api/robots/:id/token/rotate`,
47
+ `DELETE /api/apps/:id`, `POST /api/apps/:id/server-keys`,
48
+ `POST /api/apps/:id/server-keys/:keyId/rotate`,
49
+ `DELETE /api/apps/:id/server-keys/:keyId`,
50
+ `POST /api/robots/:id/assets/sync`, `DELETE /api/robots/:id/assets`) carry
51
+ `ownerTier: false` and no longer list `tier_required`, so a developer is
52
+ never answered with it. Statuses, schemas and the remaining errors are
53
+ unchanged.
54
+
12
55
  ## [13.1.0] — 2026-11-03
13
56
 
14
57
  ### Added
@@ -1569,7 +1569,7 @@
1569
1569
  "description": "Success."
1570
1570
  },
1571
1571
  "default": {
1572
- "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `tier_required`, `invalid_uuid`, `not_found`.",
1572
+ "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `invalid_uuid`, `not_found`.",
1573
1573
  "content": {
1574
1574
  "application/json": {
1575
1575
  "schema": {
@@ -1579,7 +1579,7 @@
1579
1579
  }
1580
1580
  }
1581
1581
  },
1582
- "description": "Owner tier, and the gate runs **after** the org-scoped lookup: a developer-tier admin therefore sees the same `404` a stranger would for an app outside their org, rather than a tier refusal that confirms the id exists. A full cascade — its users, roles, server keys, invitations, OIDC provider configuration and mail templates all go, recorded once as `app.deleted` carrying an `appDeletionSummary`. Its robots are untouched: they belong to the org, not to the app. \n\n**No `force` parameter** — see `GET /api/apps/:id/deletion-preview`."
1582
+ "description": "An app outside the caller's org answers `404`, as an unknown id does. A full cascade — its users, roles, server keys, invitations, OIDC provider configuration and mail templates all go, recorded once as `app.deleted` carrying an `appDeletionSummary`. Its robots are untouched: they belong to the org, not to the app. \n\n**No `force` parameter** — see `GET /api/apps/:id/deletion-preview`."
1583
1583
  }
1584
1584
  },
1585
1585
  "/api/apps/{id}/deletion-preview": {
@@ -2063,7 +2063,7 @@
2063
2063
  }
2064
2064
  },
2065
2065
  "default": {
2066
- "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `tier_required`, `invalid_uuid`, `not_found`, `validation_error`.",
2066
+ "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `invalid_uuid`, `not_found`, `validation_error`.",
2067
2067
  "content": {
2068
2068
  "application/json": {
2069
2069
  "schema": {
@@ -2073,7 +2073,7 @@
2073
2073
  }
2074
2074
  }
2075
2075
  },
2076
- "description": "Owner tier only: a server key carries full app rights and outlives its creator's removal. The body is `{ \"name\": string }`, the same trivial shape role creation takes. `key` is the only moment the raw secret exists outside the caller's hands — it is never in a listing, never in an audit event, and cannot be read back."
2076
+ "description": "A server key carries full app rights and outlives its creator's removal. The body is `{ \"name\": string }`, the same trivial shape role creation takes. `key` is the only moment the raw secret exists outside the caller's hands — it is never in a listing, never in an audit event, and cannot be read back."
2077
2077
  },
2078
2078
  "get": {
2079
2079
  "operationId": "get_api_apps_id_server_keys",
@@ -2166,7 +2166,7 @@
2166
2166
  }
2167
2167
  },
2168
2168
  "default": {
2169
- "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `tier_required`, `invalid_uuid`, `not_found`.",
2169
+ "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `invalid_uuid`, `not_found`.",
2170
2170
  "content": {
2171
2171
  "application/json": {
2172
2172
  "schema": {
@@ -2176,7 +2176,7 @@
2176
2176
  }
2177
2177
  }
2178
2178
  },
2179
- "description": "Owner tier, for the reason creation is. The old secret is refused from this call on, and any `/realtime` socket that authenticated with it is closed — rotation is what a developer reaches for when a key has leaked, and the holder of that socket is exactly who they are rotating against."
2179
+ "description": "The old secret is refused from this call on, and any `/realtime` socket that authenticated with it is closed — rotation is what a developer reaches for when a key has leaked, and the holder of that socket is exactly who they are rotating against."
2180
2180
  }
2181
2181
  },
2182
2182
  "/api/apps/{id}/server-keys/{keyId}": {
@@ -2216,7 +2216,7 @@
2216
2216
  "description": "Success."
2217
2217
  },
2218
2218
  "default": {
2219
- "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `tier_required`, `invalid_uuid`, `not_found`.",
2219
+ "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `invalid_uuid`, `not_found`.",
2220
2220
  "content": {
2221
2221
  "application/json": {
2222
2222
  "schema": {
@@ -2226,7 +2226,7 @@
2226
2226
  }
2227
2227
  }
2228
2228
  },
2229
- "description": "Owner tier, like minting and rotating: all three decide who may speak for the whole app."
2229
+ "description": "The key stops working at once. Minting, rotating and revoking all decide who may speak for the whole app."
2230
2230
  }
2231
2231
  },
2232
2232
  "/api/apps/{id}/users": {
@@ -3594,7 +3594,7 @@
3594
3594
  }
3595
3595
  }
3596
3596
  },
3597
- "description": "The body is the **raw image**, not JSON, so it has no request schema: `Content-Type` is one of `HOSTED_LOGO_TYPES` (`image/png`, `image/svg+xml`) and anything else is `415 unsupported_media_type`. At most `HOSTED_LOGO_MAX_BYTES` (100 KB); a larger body, or one that is not the image its type names, is `400 validation_error`. A new logo replaces the stored one. The hosted pages load it from `hosted_logo_url` as an image only, and the cloud serves an SVG sandboxed, so a script inside one never runs."
3597
+ "description": "The body is the **raw image**, not JSON, so it has no request schema: `Content-Type` is one of `HOSTED_LOGO_TYPES` (`image/png`, `image/svg+xml`) and anything else is `415 unsupported_media_type`. At most `HOSTED_LOGO_MAX_BYTES` (512 KB); a larger body, or one that is not the image its type names, is `400 validation_error`. A new logo replaces the stored one. The hosted pages load it from `hosted_logo_url` as an image only, and the cloud serves an SVG sandboxed, so a script inside one never runs."
3598
3598
  },
3599
3599
  "delete": {
3600
3600
  "operationId": "delete_api_apps_id_auth_config_logo",
@@ -4812,7 +4812,7 @@
4812
4812
  }
4813
4813
  }
4814
4814
  },
4815
- "description": "JSON-RPC over MCP's Streamable HTTP, so neither the request nor the response is a shape contracts describes; the tool arguments and results are the schemas in each tool definition. **Fleetless users only** — an app's users reach their own app endpoint instead. **The bearer is verified inside the handler**, not by a route guard: the identity comes from the token and the path names none, and the refusal has to carry a `WWW-Authenticate` challenge that a guard shared with the REST surface does not send. `Origin` is checked against the cloud's own, and a foreign one is the `403 forbidden` above. **Both catalogs, unconditionally**: every caller admitted here is a Fleetless user, so the tool list has nothing left to vary with and the admin-ness check on `tools/call` is gone — a console tool that is still narrower than the catalog refuses for itself (`console_robots_write.delete` answers `tier_required` to a non-Owner). `403 forbidden` is also what an `mcp_session` token whose subject is an **app user** gets: this endpoint serves the team only, and such a token belongs to its own app's endpoint. The code is `forbidden` rather than `mcp_disabled` because nothing is switched off — the caller is at the wrong server — and per-app sign-in mints exactly such tokens, so the two states must not share a word. `mcp_access_denied` is gone with the per-user override and the group flag it read: every Fleetless user has MCP access here. Stateless: a fresh transport per request, no session id, nothing survives the call."
4815
+ "description": "JSON-RPC over MCP's Streamable HTTP, so neither the request nor the response is a shape contracts describes; the tool arguments and results are the schemas in each tool definition. **Fleetless users only** — an app's users reach their own app endpoint instead. **The bearer is verified inside the handler**, not by a route guard: the identity comes from the token and the path names none, and the refusal has to carry a `WWW-Authenticate` challenge that a guard shared with the REST surface does not send. `Origin` is checked against the cloud's own, and a foreign one is the `403 forbidden` above. **Both catalogs, unconditionally**: every caller admitted here is a Fleetless user, so the tool list has nothing left to vary with and the admin-ness check on `tools/call` is gone — a console tool that is still narrower than the catalog refuses for itself (`console_team_write.delete` refuses to remove an owner). `403 forbidden` is also what an `mcp_session` token whose subject is an **app user** gets: this endpoint serves the team only, and such a token belongs to its own app's endpoint. The code is `forbidden` rather than `mcp_disabled` because nothing is switched off — the caller is at the wrong server — and per-app sign-in mints exactly such tokens, so the two states must not share a word. `mcp_access_denied` is gone with the per-user override and the group flag it read: every Fleetless user has MCP access here. Stateless: a fresh transport per request, no session id, nothing survives the call."
4816
4816
  }
4817
4817
  },
4818
4818
  "/mcp/{appIdentifier}": {
@@ -6576,7 +6576,7 @@
6576
6576
  }
6577
6577
  },
6578
6578
  "default": {
6579
- "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `tier_required`, `invalid_uuid`, `not_found`.",
6579
+ "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `invalid_uuid`, `not_found`.",
6580
6580
  "content": {
6581
6581
  "application/json": {
6582
6582
  "schema": {
@@ -6586,7 +6586,7 @@
6586
6586
  }
6587
6587
  }
6588
6588
  },
6589
- "description": "Owner tier, behind the org-scoped lookup, so a developer-tier admin sees the `404` a stranger would for a robot outside their org rather than a tier refusal that confirms the id exists. `token` is the only moment the new secret exists outside the caller's hands — the cloud stores a hash — so a caller who loses it rotates again. Audited as `robot.token_rotated`, with no `details`: the one interesting value here is the token. \n\n**It stops the bridge that is connected right now.** The old secret is gone the instant the hash is replaced, so the cloud closes that socket with `CLOSE_TOKEN_ROTATED` rather than leaving a bridge speaking on a credential nothing would accept again. A bridge that does not know the code reconnects and is refused at hello as `invalid_token`, which is the honest answer and ends the same way. **The robot is offline until somebody puts the new token on it** — this is a deliberate interruption, not a background rekey, and a fleet cannot be rotated without a visit to each robot."
6589
+ "description": "A robot outside the caller's org answers `404`, as an unknown id does. `token` is the only moment the new secret exists outside the caller's hands — the cloud stores a hash — so a caller who loses it rotates again. Audited as `robot.token_rotated`, with no `details`: the one interesting value here is the token. \n\n**It stops the bridge that is connected right now.** The old secret is gone the instant the hash is replaced, so the cloud closes that socket with `CLOSE_TOKEN_ROTATED` rather than leaving a bridge speaking on a credential nothing would accept again. A bridge that does not know the code reconnects and is refused at hello as `invalid_token`, which is the honest answer and ends the same way. **The robot is offline until somebody puts the new token on it** — this is a deliberate interruption, not a background rekey, and a fleet cannot be rotated without a visit to each robot."
6590
6590
  }
6591
6591
  },
6592
6592
  "/api/robots/{id}/urdf/joint-state": {
@@ -6787,7 +6787,7 @@
6787
6787
  "description": "Success."
6788
6788
  },
6789
6789
  "default": {
6790
- "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `tier_required`, `invalid_uuid`, `not_found`, `robot_in_use`, `robot_deletion_partial`.",
6790
+ "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `invalid_uuid`, `not_found`, `robot_in_use`, `robot_deletion_partial`.",
6791
6791
  "content": {
6792
6792
  "application/json": {
6793
6793
  "schema": {
@@ -6797,7 +6797,7 @@
6797
6797
  }
6798
6798
  }
6799
6799
  },
6800
- "description": "Owner tier, and the gate runs **after** the org-scoped lookup: a developer-tier admin therefore sees the same `404` a stranger would for a robot outside their org, rather than a tier refusal that confirms the id exists. A full cascade — everything the robot produced goes, except the audit trail, which is a record of what happened and must survive the thing it happened to. An open live session is `409 robot_in_use` unless `?force=true` is passed, matched as the bare string so the caller has to actually say it. A cascade that fails partway is `500 robot_deletion_partial` with the progress, never a bare `internal_error` that would read as \"nothing happened\"."
6800
+ "description": "A robot outside the caller's org answers `404`, as an unknown id does. A full cascade — everything the robot produced goes, except the audit trail, which is a record of what happened and must survive the thing it happened to. An open live session is `409 robot_in_use` unless `?force=true` is passed, matched as the bare string so the caller has to actually say it. A cascade that fails partway is `500 robot_deletion_partial` with the progress, never a bare `internal_error` that would read as \"nothing happened\"."
6801
6801
  }
6802
6802
  },
6803
6803
  "/api/robots/{id}/deletion-preview": {
@@ -7214,7 +7214,7 @@
7214
7214
  }
7215
7215
  }
7216
7216
  },
7217
- "description": "Issues are recomputed on every read and every write, so an editor never has to guess whether it may publish. `doc` is `null` for a draft that is valid YAML but not a Fleetless configuration — a state the format admits and the publish route refuses."
7217
+ "description": "Issues are recomputed on every read and every write, so an editor never has to guess whether it may publish. `doc` is `null` for a draft that is valid YAML but not a Fleetless configuration — a state the format admits and the publish route refuses. `updated_by` names the team member who saved it last, and is `null` when nobody has, or when the cloud itself rewrote the draft."
7218
7218
  },
7219
7219
  "put": {
7220
7220
  "operationId": "put_api_robots_id_config_draft",
@@ -7365,7 +7365,8 @@
7365
7365
  }
7366
7366
  }
7367
7367
  }
7368
- }
7368
+ },
7369
+ "description": "Each version carries `published_by`, the team member who published it, or `null` for a version published before the cloud recorded authors or by a member who has since been removed."
7369
7370
  }
7370
7371
  },
7371
7372
  "/api/robots/{id}/config/versions/{v}": {
@@ -9016,7 +9017,7 @@
9016
9017
  }
9017
9018
  },
9018
9019
  "default": {
9019
- "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `forbidden`, `tier_required`, `invalid_uuid`, `not_found`, `busy`.",
9020
+ "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `forbidden`, `invalid_uuid`, `not_found`, `busy`.",
9020
9021
  "content": {
9021
9022
  "application/json": {
9022
9023
  "schema": {
@@ -9026,7 +9027,7 @@
9026
9027
  }
9027
9028
  }
9028
9029
  },
9029
- "description": "The store's escape hatch: a full store is never a dead end, and this is the blunt third of the three answers to it — the URDF upload is exempt from the gate, reconcile after a sync already frees what the new URDF stopped referencing, and this route lets an Owner clear the robot outright. Owner tier, unconditionally, like starting a sync. Removes every asset of the robot and resets its store to `0`; the next sync fills it again. It does not touch the bridge's availability report — `urdf_available` still answers from the connected robot, unrelated to what this cloud happens to have stored. A clear while a sync is running is `409 busy` naming that sync's details, the same refusal starting a second sync gets, because deleting under a running upload would leave the store counter wrong."
9030
+ "description": "The store's escape hatch: a full store is never a dead end, and this is the blunt third of the three answers to it — the URDF upload is exempt from the gate, reconcile after a sync already frees what the new URDF stopped referencing, and this route lets a developer clear the robot outright. Developer sessions only, like starting a sync. Removes every asset of the robot and resets its store to `0`; the next sync fills it again. It does not touch the bridge's availability report — `urdf_available` still answers from the connected robot, unrelated to what this cloud happens to have stored. A clear while a sync is running is `409 busy` naming that sync's details, the same refusal starting a second sync gets, because deleting under a running upload would leave the store counter wrong."
9030
9031
  }
9031
9032
  },
9032
9033
  "/api/robots/{id}/assets/{assetId}": {
@@ -9317,7 +9318,7 @@
9317
9318
  }
9318
9319
  },
9319
9320
  "default": {
9320
- "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `forbidden`, `tier_required`, `invalid_uuid`, `validation_error`, `not_found`, `robot_offline`, `busy`.",
9321
+ "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `forbidden`, `invalid_uuid`, `validation_error`, `not_found`, `robot_offline`, `busy`.",
9321
9322
  "content": {
9322
9323
  "application/json": {
9323
9324
  "schema": {
@@ -9327,7 +9328,7 @@
9327
9328
  }
9328
9329
  }
9329
9330
  },
9330
- "description": "Owner tier, unconditionally. The guard admits an end user or a server key, but only a developer session gets past the handler — and the body is parsed **before** that `401`, because this route has always answered a malformed body first and the order has to survive. The request is strict: a caller naming a source that does not exist learns so, instead of silently getting a bridge sync they did not ask for. A robot that has reported nothing available to sync is `404`. A second sync is `409 busy` naming the `sync_id` that is actually running, so the caller who pressed the button twice can pick it straight up.",
9331
+ "description": "Developer sessions only. The guard admits an end user or a server key, but only a developer session gets past the handler — and the body is parsed **before** that `401`, because this route has always answered a malformed body first and the order has to survive. The request is strict: a caller naming a source that does not exist learns so, instead of silently getting a bridge sync they did not ask for. A robot that has reported nothing available to sync is `404`. A second sync is `409 busy` naming the `sync_id` that is actually running, so the caller who pressed the button twice can pick it straight up.",
9331
9332
  "requestBody": {
9332
9333
  "required": true,
9333
9334
  "content": {
@@ -11509,6 +11510,21 @@
11509
11510
  ],
11510
11511
  "description": "Where the hosted pages load the app's logo from, `<portal>/app/<identifier>/logo`, or `null` when no logo is stored. **Read-only** — the logo is written through `PUT /api/apps/:id/auth-config/logo`."
11511
11512
  },
11513
+ "hosted_logo_shape": {
11514
+ "description": "How the hosted pages lay the logo out: `square` beside the app's name, `wide` in place of it. **Read-only** — derived from the stored image, and `null` exactly when `hosted_logo_url` is `null`. An image whose size cannot be read is `square`. Absent when the server predates this field: read an absent field as unknown, not as `square`. The cloud always sends it.",
11515
+ "anyOf": [
11516
+ {
11517
+ "type": "string",
11518
+ "enum": [
11519
+ "square",
11520
+ "wide"
11521
+ ]
11522
+ },
11523
+ {
11524
+ "type": "null"
11525
+ }
11526
+ ]
11527
+ },
11512
11528
  "hosted_accent": {
11513
11529
  "anyOf": [
11514
11530
  {
@@ -23806,6 +23822,36 @@
23806
23822
  }
23807
23823
  ]
23808
23824
  },
23825
+ "updated_by": {
23826
+ "description": "Who saved the draft last. `null` when nobody has saved it yet, when the cloud itself rewrote it (a slug rename), when the member has since been removed, or when the draft is older than this field. Absent when the server predates this field: read an absent field as unknown, the same as `null`. The cloud always sends it.",
23827
+ "anyOf": [
23828
+ {
23829
+ "type": "object",
23830
+ "properties": {
23831
+ "id": {
23832
+ "type": "string",
23833
+ "format": "uuid",
23834
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
23835
+ "description": "The team member's id."
23836
+ },
23837
+ "name": {
23838
+ "type": "string",
23839
+ "minLength": 1,
23840
+ "maxLength": 200,
23841
+ "description": "The member's display name, or the local part of the email address when the member has none. Never a full email address."
23842
+ }
23843
+ },
23844
+ "required": [
23845
+ "id",
23846
+ "name"
23847
+ ],
23848
+ "additionalProperties": false
23849
+ },
23850
+ {
23851
+ "type": "null"
23852
+ }
23853
+ ]
23854
+ },
23809
23855
  "issues": {
23810
23856
  "type": "array",
23811
23857
  "items": {
@@ -23873,6 +23919,36 @@
23873
23919
  "format": "date-time",
23874
23920
  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
23875
23921
  },
23922
+ "published_by": {
23923
+ "description": "Who published the version. `null` when the member has since been removed, or when the version is older than this field. Absent when the server predates this field: read an absent field as unknown, the same as `null`. The cloud always sends it.",
23924
+ "anyOf": [
23925
+ {
23926
+ "type": "object",
23927
+ "properties": {
23928
+ "id": {
23929
+ "type": "string",
23930
+ "format": "uuid",
23931
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
23932
+ "description": "The team member's id."
23933
+ },
23934
+ "name": {
23935
+ "type": "string",
23936
+ "minLength": 1,
23937
+ "maxLength": 200,
23938
+ "description": "The member's display name, or the local part of the email address when the member has none. Never a full email address."
23939
+ }
23940
+ },
23941
+ "required": [
23942
+ "id",
23943
+ "name"
23944
+ ],
23945
+ "additionalProperties": false
23946
+ },
23947
+ {
23948
+ "type": "null"
23949
+ }
23950
+ ]
23951
+ },
23876
23952
  "doc": {
23877
23953
  "type": "object",
23878
23954
  "properties": {
@@ -24977,6 +25053,36 @@
24977
25053
  "type": "string",
24978
25054
  "format": "date-time",
24979
25055
  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
25056
+ },
25057
+ "published_by": {
25058
+ "description": "Who published the version. `null` when the member has since been removed, or when the version is older than this field. Absent when the server predates this field: read an absent field as unknown, the same as `null`. The cloud always sends it.",
25059
+ "anyOf": [
25060
+ {
25061
+ "type": "object",
25062
+ "properties": {
25063
+ "id": {
25064
+ "type": "string",
25065
+ "format": "uuid",
25066
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
25067
+ "description": "The team member's id."
25068
+ },
25069
+ "name": {
25070
+ "type": "string",
25071
+ "minLength": 1,
25072
+ "maxLength": 200,
25073
+ "description": "The member's display name, or the local part of the email address when the member has none. Never a full email address."
25074
+ }
25075
+ },
25076
+ "required": [
25077
+ "id",
25078
+ "name"
25079
+ ],
25080
+ "additionalProperties": false
25081
+ },
25082
+ {
25083
+ "type": "null"
25084
+ }
25085
+ ]
24980
25086
  }
24981
25087
  },
24982
25088
  "required": [
@@ -416,7 +416,7 @@
416
416
  "method": "GET",
417
417
  "path": "/favicon.svg",
418
418
  "section": "client-auth",
419
- "summary": "Serves the Fleetless icon for the auth portal's and the MCP welcome page's browser tab.",
419
+ "summary": "Serves the Fleetless icon for the auth portal's browser tab.",
420
420
  "audience": "internal",
421
421
  "auth": "none",
422
422
  "rateLimited": false,
@@ -835,7 +835,7 @@
835
835
  "audience": "developer",
836
836
  "auth": "developer",
837
837
  "rateLimited": false,
838
- "ownerTier": true,
838
+ "ownerTier": false,
839
839
  "status": 204,
840
840
  "params": [
841
841
  {
@@ -850,12 +850,11 @@
850
850
  "unauthorized",
851
851
  "token_expired",
852
852
  "token_revoked",
853
- "tier_required",
854
853
  "invalid_uuid",
855
854
  "not_found"
856
855
  ],
857
856
  "transport": "http",
858
- "notes": "Owner tier, and the gate runs **after** the org-scoped lookup: a developer-tier admin therefore sees the same `404` a stranger would for an app outside their org, rather than a tier refusal that confirms the id exists. A full cascade — its users, roles, server keys, invitations, OIDC provider configuration and mail templates all go, recorded once as `app.deleted` carrying an `appDeletionSummary`. Its robots are untouched: they belong to the org, not to the app. \n\n**No `force` parameter** — see `GET /api/apps/:id/deletion-preview`."
857
+ "notes": "An app outside the caller's org answers `404`, as an unknown id does. A full cascade — its users, roles, server keys, invitations, OIDC provider configuration and mail templates all go, recorded once as `app.deleted` carrying an `appDeletionSummary`. Its robots are untouched: they belong to the org, not to the app. \n\n**No `force` parameter** — see `GET /api/apps/:id/deletion-preview`."
859
858
  },
860
859
  {
861
860
  "method": "POST",
@@ -1094,7 +1093,7 @@
1094
1093
  "audience": "developer",
1095
1094
  "auth": "developer",
1096
1095
  "rateLimited": false,
1097
- "ownerTier": true,
1096
+ "ownerTier": false,
1098
1097
  "status": 201,
1099
1098
  "params": [
1100
1099
  {
@@ -1109,13 +1108,12 @@
1109
1108
  "unauthorized",
1110
1109
  "token_expired",
1111
1110
  "token_revoked",
1112
- "tier_required",
1113
1111
  "invalid_uuid",
1114
1112
  "not_found",
1115
1113
  "validation_error"
1116
1114
  ],
1117
1115
  "transport": "http",
1118
- "notes": "Owner tier only: a server key carries full app rights and outlives its creator's removal. The body is `{ \"name\": string }`, the same trivial shape role creation takes. `key` is the only moment the raw secret exists outside the caller's hands — it is never in a listing, never in an audit event, and cannot be read back."
1116
+ "notes": "A server key carries full app rights and outlives its creator's removal. The body is `{ \"name\": string }`, the same trivial shape role creation takes. `key` is the only moment the raw secret exists outside the caller's hands — it is never in a listing, never in an audit event, and cannot be read back."
1119
1117
  },
1120
1118
  {
1121
1119
  "method": "GET",
@@ -1154,7 +1152,7 @@
1154
1152
  "audience": "developer",
1155
1153
  "auth": "developer",
1156
1154
  "rateLimited": false,
1157
- "ownerTier": true,
1155
+ "ownerTier": false,
1158
1156
  "status": 200,
1159
1157
  "params": [
1160
1158
  {
@@ -1173,12 +1171,11 @@
1173
1171
  "unauthorized",
1174
1172
  "token_expired",
1175
1173
  "token_revoked",
1176
- "tier_required",
1177
1174
  "invalid_uuid",
1178
1175
  "not_found"
1179
1176
  ],
1180
1177
  "transport": "http",
1181
- "notes": "Owner tier, for the reason creation is. The old secret is refused from this call on, and any `/realtime` socket that authenticated with it is closed — rotation is what a developer reaches for when a key has leaked, and the holder of that socket is exactly who they are rotating against."
1178
+ "notes": "The old secret is refused from this call on, and any `/realtime` socket that authenticated with it is closed — rotation is what a developer reaches for when a key has leaked, and the holder of that socket is exactly who they are rotating against."
1182
1179
  },
1183
1180
  {
1184
1181
  "method": "DELETE",
@@ -1188,7 +1185,7 @@
1188
1185
  "audience": "developer",
1189
1186
  "auth": "developer",
1190
1187
  "rateLimited": false,
1191
- "ownerTier": true,
1188
+ "ownerTier": false,
1192
1189
  "status": 204,
1193
1190
  "params": [
1194
1191
  {
@@ -1207,12 +1204,11 @@
1207
1204
  "unauthorized",
1208
1205
  "token_expired",
1209
1206
  "token_revoked",
1210
- "tier_required",
1211
1207
  "invalid_uuid",
1212
1208
  "not_found"
1213
1209
  ],
1214
1210
  "transport": "http",
1215
- "notes": "Owner tier, like minting and rotating: all three decide who may speak for the whole app."
1211
+ "notes": "The key stops working at once. Minting, rotating and revoking all decide who may speak for the whole app."
1216
1212
  },
1217
1213
  {
1218
1214
  "method": "GET",
@@ -2016,7 +2012,7 @@
2016
2012
  "unsupported_media_type"
2017
2013
  ],
2018
2014
  "transport": "http",
2019
- "notes": "The body is the **raw image**, not JSON, so it has no request schema: `Content-Type` is one of `HOSTED_LOGO_TYPES` (`image/png`, `image/svg+xml`) and anything else is `415 unsupported_media_type`. At most `HOSTED_LOGO_MAX_BYTES` (100 KB); a larger body, or one that is not the image its type names, is `400 validation_error`. A new logo replaces the stored one. The hosted pages load it from `hosted_logo_url` as an image only, and the cloud serves an SVG sandboxed, so a script inside one never runs."
2015
+ "notes": "The body is the **raw image**, not JSON, so it has no request schema: `Content-Type` is one of `HOSTED_LOGO_TYPES` (`image/png`, `image/svg+xml`) and anything else is `415 unsupported_media_type`. At most `HOSTED_LOGO_MAX_BYTES` (512 KB); a larger body, or one that is not the image its type names, is `400 validation_error`. A new logo replaces the stored one. The hosted pages load it from `hosted_logo_url` as an image only, and the cloud serves an SVG sandboxed, so a script inside one never runs."
2020
2016
  },
2021
2017
  {
2022
2018
  "method": "DELETE",
@@ -4079,24 +4075,6 @@
4079
4075
  "transport": "http",
4080
4076
  "notes": "HTML: the next page on success, the same page with the problem named on a refusal. Spends the token as `POST /api/client/verify-email` does; the two-factor setup follows when the app requires it, then the done page."
4081
4077
  },
4082
- {
4083
- "method": "GET",
4084
- "path": "/mcp/welcome",
4085
- "section": "mcp",
4086
- "summary": "Serves the page that tells a person which URL to paste into their MCP client.",
4087
- "audience": "internal",
4088
- "auth": "none",
4089
- "rateLimited": false,
4090
- "ownerTier": false,
4091
- "status": 200,
4092
- "params": [],
4093
- "query": null,
4094
- "request": null,
4095
- "response": null,
4096
- "errors": [],
4097
- "transport": "http",
4098
- "notes": "HTML, one fixed document rendered once at startup — its inputs are process configuration, not request state. Cached for five minutes rather than a day, because the URLs it names can change with a deployment. Its content security policy admits the page's own inline style and script by SHA-256 rather than by `unsafe-inline`, and forbids every external fetch outright. A configured friendly URL that is not a usable absolute http(s) URL is ignored rather than rendered: a typo in a deployment variable must not put a broken URL in front of every end user."
4099
- },
4100
4078
  {
4101
4079
  "method": "POST",
4102
4080
  "path": "/mcp",
@@ -4116,7 +4094,7 @@
4116
4094
  "forbidden"
4117
4095
  ],
4118
4096
  "transport": "http",
4119
- "notes": "JSON-RPC over MCP's Streamable HTTP, so neither the request nor the response is a shape contracts describes; the tool arguments and results are the schemas in each tool definition. **Fleetless users only** — an app's users reach their own app endpoint instead. **The bearer is verified inside the handler**, not by a route guard: the identity comes from the token and the path names none, and the refusal has to carry a `WWW-Authenticate` challenge that a guard shared with the REST surface does not send. `Origin` is checked against the cloud's own, and a foreign one is the `403 forbidden` above. **Both catalogs, unconditionally**: every caller admitted here is a Fleetless user, so the tool list has nothing left to vary with and the admin-ness check on `tools/call` is gone — a console tool that is still narrower than the catalog refuses for itself (`console_robots_write.delete` answers `tier_required` to a non-Owner). `403 forbidden` is also what an `mcp_session` token whose subject is an **app user** gets: this endpoint serves the team only, and such a token belongs to its own app's endpoint. The code is `forbidden` rather than `mcp_disabled` because nothing is switched off — the caller is at the wrong server — and per-app sign-in mints exactly such tokens, so the two states must not share a word. `mcp_access_denied` is gone with the per-user override and the group flag it read: every Fleetless user has MCP access here. Stateless: a fresh transport per request, no session id, nothing survives the call."
4097
+ "notes": "JSON-RPC over MCP's Streamable HTTP, so neither the request nor the response is a shape contracts describes; the tool arguments and results are the schemas in each tool definition. **Fleetless users only** — an app's users reach their own app endpoint instead. **The bearer is verified inside the handler**, not by a route guard: the identity comes from the token and the path names none, and the refusal has to carry a `WWW-Authenticate` challenge that a guard shared with the REST surface does not send. `Origin` is checked against the cloud's own, and a foreign one is the `403 forbidden` above. **Both catalogs, unconditionally**: every caller admitted here is a Fleetless user, so the tool list has nothing left to vary with and the admin-ness check on `tools/call` is gone — a console tool that is still narrower than the catalog refuses for itself (`console_team_write.delete` refuses to remove an owner). `403 forbidden` is also what an `mcp_session` token whose subject is an **app user** gets: this endpoint serves the team only, and such a token belongs to its own app's endpoint. The code is `forbidden` rather than `mcp_disabled` because nothing is switched off — the caller is at the wrong server — and per-app sign-in mints exactly such tokens, so the two states must not share a word. `mcp_access_denied` is gone with the per-user override and the group flag it read: every Fleetless user has MCP access here. Stateless: a fresh transport per request, no session id, nothing survives the call."
4120
4098
  },
4121
4099
  {
4122
4100
  "method": "POST",
@@ -4991,7 +4969,7 @@
4991
4969
  "audience": "developer",
4992
4970
  "auth": "developer",
4993
4971
  "rateLimited": false,
4994
- "ownerTier": true,
4972
+ "ownerTier": false,
4995
4973
  "status": 201,
4996
4974
  "params": [
4997
4975
  {
@@ -5006,12 +4984,11 @@
5006
4984
  "unauthorized",
5007
4985
  "token_expired",
5008
4986
  "token_revoked",
5009
- "tier_required",
5010
4987
  "invalid_uuid",
5011
4988
  "not_found"
5012
4989
  ],
5013
4990
  "transport": "http",
5014
- "notes": "Owner tier, behind the org-scoped lookup, so a developer-tier admin sees the `404` a stranger would for a robot outside their org rather than a tier refusal that confirms the id exists. `token` is the only moment the new secret exists outside the caller's hands — the cloud stores a hash — so a caller who loses it rotates again. Audited as `robot.token_rotated`, with no `details`: the one interesting value here is the token. \n\n**It stops the bridge that is connected right now.** The old secret is gone the instant the hash is replaced, so the cloud closes that socket with `CLOSE_TOKEN_ROTATED` rather than leaving a bridge speaking on a credential nothing would accept again. A bridge that does not know the code reconnects and is refused at hello as `invalid_token`, which is the honest answer and ends the same way. **The robot is offline until somebody puts the new token on it** — this is a deliberate interruption, not a background rekey, and a fleet cannot be rotated without a visit to each robot."
4991
+ "notes": "A robot outside the caller's org answers `404`, as an unknown id does. `token` is the only moment the new secret exists outside the caller's hands — the cloud stores a hash — so a caller who loses it rotates again. Audited as `robot.token_rotated`, with no `details`: the one interesting value here is the token. \n\n**It stops the bridge that is connected right now.** The old secret is gone the instant the hash is replaced, so the cloud closes that socket with `CLOSE_TOKEN_ROTATED` rather than leaving a bridge speaking on a credential nothing would accept again. A bridge that does not know the code reconnects and is refused at hello as `invalid_token`, which is the honest answer and ends the same way. **The robot is offline until somebody puts the new token on it** — this is a deliberate interruption, not a background rekey, and a fleet cannot be rotated without a visit to each robot."
5015
4992
  },
5016
4993
  {
5017
4994
  "method": "PUT",
@@ -5160,7 +5137,7 @@
5160
5137
  "audience": "developer",
5161
5138
  "auth": "developer",
5162
5139
  "rateLimited": false,
5163
- "ownerTier": true,
5140
+ "ownerTier": false,
5164
5141
  "status": 204,
5165
5142
  "params": [
5166
5143
  {
@@ -5175,14 +5152,13 @@
5175
5152
  "unauthorized",
5176
5153
  "token_expired",
5177
5154
  "token_revoked",
5178
- "tier_required",
5179
5155
  "invalid_uuid",
5180
5156
  "not_found",
5181
5157
  "robot_in_use",
5182
5158
  "robot_deletion_partial"
5183
5159
  ],
5184
5160
  "transport": "http",
5185
- "notes": "Owner tier, and the gate runs **after** the org-scoped lookup: a developer-tier admin therefore sees the same `404` a stranger would for a robot outside their org, rather than a tier refusal that confirms the id exists. A full cascade — everything the robot produced goes, except the audit trail, which is a record of what happened and must survive the thing it happened to. An open live session is `409 robot_in_use` unless `?force=true` is passed, matched as the bare string so the caller has to actually say it. A cascade that fails partway is `500 robot_deletion_partial` with the progress, never a bare `internal_error` that would read as \"nothing happened\"."
5161
+ "notes": "A robot outside the caller's org answers `404`, as an unknown id does. A full cascade — everything the robot produced goes, except the audit trail, which is a record of what happened and must survive the thing it happened to. An open live session is `409 robot_in_use` unless `?force=true` is passed, matched as the bare string so the caller has to actually say it. A cascade that fails partway is `500 robot_deletion_partial` with the progress, never a bare `internal_error` that would read as \"nothing happened\"."
5186
5162
  },
5187
5163
  {
5188
5164
  "method": "PUT",
@@ -5389,7 +5365,7 @@
5389
5365
  "not_found"
5390
5366
  ],
5391
5367
  "transport": "http",
5392
- "notes": "Issues are recomputed on every read and every write, so an editor never has to guess whether it may publish. `doc` is `null` for a draft that is valid YAML but not a Fleetless configuration — a state the format admits and the publish route refuses."
5368
+ "notes": "Issues are recomputed on every read and every write, so an editor never has to guess whether it may publish. `doc` is `null` for a draft that is valid YAML but not a Fleetless configuration — a state the format admits and the publish route refuses. `updated_by` names the team member who saved it last, and is `null` when nobody has, or when the cloud itself rewrote the draft."
5393
5369
  },
5394
5370
  {
5395
5371
  "method": "PUT",
@@ -5480,7 +5456,8 @@
5480
5456
  "invalid_uuid",
5481
5457
  "not_found"
5482
5458
  ],
5483
- "transport": "http"
5459
+ "transport": "http",
5460
+ "notes": "Each version carries `published_by`, the team member who published it, or `null` for a version published before the cloud recorded authors or by a member who has since been removed."
5484
5461
  },
5485
5462
  {
5486
5463
  "method": "GET",
@@ -6442,7 +6419,7 @@
6442
6419
  "audience": "client",
6443
6420
  "auth": "developer_or_client",
6444
6421
  "rateLimited": false,
6445
- "ownerTier": true,
6422
+ "ownerTier": false,
6446
6423
  "status": 202,
6447
6424
  "params": [
6448
6425
  {
@@ -6458,7 +6435,6 @@
6458
6435
  "token_expired",
6459
6436
  "token_revoked",
6460
6437
  "forbidden",
6461
- "tier_required",
6462
6438
  "invalid_uuid",
6463
6439
  "validation_error",
6464
6440
  "not_found",
@@ -6466,7 +6442,7 @@
6466
6442
  "busy"
6467
6443
  ],
6468
6444
  "transport": "http",
6469
- "notes": "Owner tier, unconditionally. The guard admits an end user or a server key, but only a developer session gets past the handler — and the body is parsed **before** that `401`, because this route has always answered a malformed body first and the order has to survive. The request is strict: a caller naming a source that does not exist learns so, instead of silently getting a bridge sync they did not ask for. A robot that has reported nothing available to sync is `404`. A second sync is `409 busy` naming the `sync_id` that is actually running, so the caller who pressed the button twice can pick it straight up."
6445
+ "notes": "Developer sessions only. The guard admits an end user or a server key, but only a developer session gets past the handler — and the body is parsed **before** that `401`, because this route has always answered a malformed body first and the order has to survive. The request is strict: a caller naming a source that does not exist learns so, instead of silently getting a bridge sync they did not ask for. A robot that has reported nothing available to sync is `404`. A second sync is `409 busy` naming the `sync_id` that is actually running, so the caller who pressed the button twice can pick it straight up."
6470
6446
  },
6471
6447
  {
6472
6448
  "method": "GET",
@@ -6510,7 +6486,7 @@
6510
6486
  "audience": "client",
6511
6487
  "auth": "developer_or_client",
6512
6488
  "rateLimited": false,
6513
- "ownerTier": true,
6489
+ "ownerTier": false,
6514
6490
  "status": 200,
6515
6491
  "params": [
6516
6492
  {
@@ -6526,13 +6502,12 @@
6526
6502
  "token_expired",
6527
6503
  "token_revoked",
6528
6504
  "forbidden",
6529
- "tier_required",
6530
6505
  "invalid_uuid",
6531
6506
  "not_found",
6532
6507
  "busy"
6533
6508
  ],
6534
6509
  "transport": "http",
6535
- "notes": "The store's escape hatch: a full store is never a dead end, and this is the blunt third of the three answers to it — the URDF upload is exempt from the gate, reconcile after a sync already frees what the new URDF stopped referencing, and this route lets an Owner clear the robot outright. Owner tier, unconditionally, like starting a sync. Removes every asset of the robot and resets its store to `0`; the next sync fills it again. It does not touch the bridge's availability report — `urdf_available` still answers from the connected robot, unrelated to what this cloud happens to have stored. A clear while a sync is running is `409 busy` naming that sync's details, the same refusal starting a second sync gets, because deleting under a running upload would leave the store counter wrong."
6510
+ "notes": "The store's escape hatch: a full store is never a dead end, and this is the blunt third of the three answers to it — the URDF upload is exempt from the gate, reconcile after a sync already frees what the new URDF stopped referencing, and this route lets a developer clear the robot outright. Developer sessions only, like starting a sync. Removes every asset of the robot and resets its store to `0`; the next sync fills it again. It does not touch the bridge's availability report — `urdf_available` still answers from the connected robot, unrelated to what this cloud happens to have stored. A clear while a sync is running is `409 busy` naming that sync's details, the same refusal starting a second sync gets, because deleting under a running upload would leave the store counter wrong."
6536
6511
  },
6537
6512
  {
6538
6513
  "method": "GET",