@fleetless/contracts 8.2.0 → 9.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/artifacts/openapi.json +284 -22
  3. package/artifacts/routes.json +52 -4
  4. package/artifacts/schema/action-config.schema.json +2 -2
  5. package/artifacts/schema/app-auth-config.schema.json +30 -0
  6. package/artifacts/schema/cloud-config.schema.json +8 -8
  7. package/artifacts/schema/config-draft-response.schema.json +8 -8
  8. package/artifacts/schema/config-version-response.schema.json +8 -8
  9. package/artifacts/schema/datapoint-config.schema.json +3 -3
  10. package/artifacts/schema/legal-acceptance-list-query.schema.json +26 -0
  11. package/artifacts/schema/legal-acceptance-list-response.schema.json +127 -0
  12. package/artifacts/schema/legal-acceptance-version-row.schema.json +101 -0
  13. package/artifacts/schema/legal-document-reference.schema.json +28 -0
  14. package/artifacts/schema/legal-text-references.schema.json +72 -0
  15. package/artifacts/schema/parameter-spec.schema.json +1 -1
  16. package/artifacts/schema/publisher-config.schema.json +1 -1
  17. package/artifacts/schema/put-app-auth-urls-request.schema.json +31 -1
  18. package/artifacts/schema/robot-config-doc.schema.json +8 -8
  19. package/artifacts/schema/service-config.schema.json +1 -1
  20. package/artifacts/schema/support-renew-fail-refusal.schema.json +141 -0
  21. package/artifacts/schema/support-renew-fail-request.schema.json +28 -0
  22. package/artifacts/schema/waitlist-request.schema.json +9 -1
  23. package/dist/app-users.d.ts +12 -5
  24. package/dist/app-users.js +29 -6
  25. package/dist/client-robots.d.ts +1 -1
  26. package/dist/client-robots.js +1 -1
  27. package/dist/config.d.ts +1 -1
  28. package/dist/config.js +7 -7
  29. package/dist/errors.js +19 -15
  30. package/dist/identity.d.ts +5 -2
  31. package/dist/identity.js +10 -3
  32. package/dist/index.d.ts +7 -3
  33. package/dist/index.js +4 -2
  34. package/dist/legal-acceptances.d.ts +54 -0
  35. package/dist/legal-acceptances.js +22 -0
  36. package/dist/legal.d.ts +31 -0
  37. package/dist/legal.js +29 -0
  38. package/dist/mcp.d.ts +13 -10
  39. package/dist/mcp.js +13 -10
  40. package/dist/routes.js +44 -6
  41. package/dist/support.d.ts +42 -0
  42. package/dist/support.js +15 -0
  43. package/package.json +1 -1
@@ -451,6 +451,31 @@
451
451
  "transport": "http",
452
452
  "notes": "Answers `202` whether or not the address was already listed: the landing page's form must not be an oracle for who signed up. The operator notification is detached from the response — awaiting it made latency answer the question the status code refuses to — and is capped by its own global ceiling, above which the row is still written and the mail is skipped."
453
453
  },
454
+ {
455
+ "method": "GET",
456
+ "path": "/api/org/legal/acceptances",
457
+ "section": "org",
458
+ "summary": "Lists the calling organization's accepted legal document versions, newest first.",
459
+ "audience": "developer",
460
+ "auth": "developer",
461
+ "rateLimited": false,
462
+ "ownerTier": true,
463
+ "status": 200,
464
+ "params": [],
465
+ "query": "legal-acceptance-list-query",
466
+ "request": null,
467
+ "response": "legal-acceptance-list-response",
468
+ "errors": [
469
+ "unauthorized",
470
+ "token_expired",
471
+ "token_revoked",
472
+ "tier_required",
473
+ "support_forbidden",
474
+ "validation_error"
475
+ ],
476
+ "transport": "http",
477
+ "notes": "A real Owner reads only the authenticated organization; Developer and support sessions cannot read it. Rows carry stored Terms and applicable DPA references, never the current versions substituted for history. The default page limit is 50, maximum 100. The opaque cursor is unpadded base64url of UTF-8 JSON `[accepted_at,id]`, with a six-digit UTC timestamp and lowercase UUID; Cloud rejects noncanonical tokens. Follow `next_cursor` until null. Equal timestamps sort by id descending; a new acceptance cannot displace older rows."
478
+ },
454
479
  {
455
480
  "method": "GET",
456
481
  "path": "/api/org/controller-register",
@@ -866,7 +891,7 @@
866
891
  "not_found"
867
892
  ],
868
893
  "transport": "http",
869
- "notes": "Built by the same builder the MCP server's own `robot_describe` uses, so the two cannot drift. It answers what the role *would* be offered and consults nothing about any user's actual MCP entitlement. A robot the role grants nothing on still appears, with an empty `exposures` — dropping it would read as \"not attached\", which is a different fact."
894
+ "notes": "Built by the same builder the MCP server's own `robots.describe` uses, so the two cannot drift. It answers what the role *would* be offered and consults nothing about any user's actual MCP entitlement. A robot the role grants nothing on still appears, with an empty `exposures` — dropping it would read as \"not attached\", which is a different fact."
870
895
  },
871
896
  {
872
897
  "method": "PATCH",
@@ -3416,6 +3441,29 @@
3416
3441
  "transport": "http",
3417
3442
  "notes": "Called by the console's own server, never by a browser — server to server only, exactly like `/console/oauth/token` beside it, but rate-limited where that one is not: the grant this exchanges is short-lived and worth guessing at, which a replay of the code exchange is not. `rate_limited` is the one code in this reference it can still answer, from the limiter itself, before the route's own dialect applies. Every other refusal uses the same RFC 6749 §5.2 flat `oauthError` shape, so this emits no other code in this reference: `invalid_grant` for a grant that is unknown, already used or expired, or for a verifier that does not match. Proof of possession is checked before the replay check, and the single-use consume is atomic, so exactly one caller ever mints from a given grant. The minted access token carries `kind: 'support'` and `aud: 'console'`, lives at most sixty minutes with no extension, and carries **no refresh token**: a support session that outlives its ceiling is a new grant and a new exchange, not a renewal. The session starts in `read` mode; switching one to `edit` is the operator side's `support_session_edit` command, not anything this route does."
3418
3443
  },
3444
+ {
3445
+ "method": "POST",
3446
+ "path": "/console/support/renew/fail",
3447
+ "section": "developer-auth",
3448
+ "summary": "Ends a current-generation support session after Console proves renewal authority failed.",
3449
+ "audience": "internal",
3450
+ "auth": "in_handler",
3451
+ "rateLimited": false,
3452
+ "ownerTier": false,
3453
+ "status": 204,
3454
+ "params": [],
3455
+ "query": null,
3456
+ "request": "support-renew-fail-request",
3457
+ "response": null,
3458
+ "errors": [
3459
+ "validation_error",
3460
+ "unauthorized",
3461
+ "not_found",
3462
+ "target_state_conflict"
3463
+ ],
3464
+ "transport": "http",
3465
+ "notes": "Internal Console-to-Cloud POST only, no CORS. Console must first verify and consume signed Operator failure evidence bound to its original browser flow, or let Cloud timeout/sweep close an uncompleted flow; browser flow_id or error alone must never trigger this call. The evidence stays at Console: this strict Cloud request has no Operator or browser field. Authorization: Bearer <original fl_support>; a valid old bearer must reach the transaction even after another flow wins its generation, so a current-generation pre-handler must not intercept it. Cloud checks signature, audience, original expiry, exact stored bearer hash, S256 verifier, and bound session, org, mode and immutable creator subject. Lock session and flow in redemption order. After proof and before mutation, compare the saved credential generation: stale_generation takes precedence and cannot touch the winner. Only a live, pending, unauthorised current-generation flow before min(flow_created_at + 120 seconds, old credential expiry) atomically records failedAt, endedAt and audit/event. Success is 204 with no body. Missing callback closes an unauthorised expired flow at the next session check or sweep under the same generation fence. No failure extends a lease or compensates a committed redemption. Every refusal is Cache-Control: no-store with supportRenewFailRefusal body: 400 validation_error/invalid_flow for malformed JSON; 401 unauthorized/invalid_authority for missing or invalid bearer or proof; 404 not_found/invalid_flow for unknown or foreign flow, or /identity_mismatch for bound identity mismatch; 409 target_state_conflict/expired, /replayed, /session_inactive or /stale_generation. No failure response sets or clears fl_support. Network ambiguity is never a 204 and does not trigger an unconditional support_session.end."
3466
+ },
3419
3467
  {
3420
3468
  "method": "GET",
3421
3469
  "path": "/app/:appIdentifier/logo",
@@ -3946,7 +3994,7 @@
3946
3994
  "forbidden"
3947
3995
  ],
3948
3996
  "transport": "http",
3949
- "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_robot_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."
3997
+ "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."
3950
3998
  },
3951
3999
  {
3952
4000
  "method": "POST",
@@ -5160,7 +5208,7 @@
5160
5208
  "forbidden"
5161
5209
  ],
5162
5210
  "transport": "http",
5163
- "notes": "**The REST twin of the MCP tool `robots_list`**, and the one robot question no robot-scoped route can answer: which robots may I name at all. An app user sees the robots their app attaches on which their role grants at least one slug or capability; a server key sees every robot its app attaches; a developer bearer sees the organisation's robots. Name order, id as the tiebreak. A robot on which the role grants nothing is absent rather than listed empty — the same answer `robots_list` gives, for the same reason: reach is a grant, not an attachment. Under `/api/client/` because it names no robot; every robot-scoped read stays under `/api/robots/:id/…`."
5211
+ "notes": "**The REST twin of the MCP action `robots.list`**, and the one robot question no robot-scoped route can answer: which robots may I name at all. An app user sees the robots their app attaches on which their role grants at least one slug or capability; a server key sees every robot its app attaches; a developer bearer sees the organisation's robots. Name order, id as the tiebreak. A robot on which the role grants nothing is absent rather than listed empty — the same answer `robots.list` gives, for the same reason: reach is a grant, not an attachment. Under `/api/client/` because it names no robot; every robot-scoped read stays under `/api/robots/:id/…`."
5164
5212
  },
5165
5213
  {
5166
5214
  "method": "GET",
@@ -5190,7 +5238,7 @@
5190
5238
  "not_found"
5191
5239
  ],
5192
5240
  "transport": "http",
5193
- "notes": "**The REST twin of the MCP tool `robot_describe`**: one answer per robot — every datapoint, action, service, publisher and camera the role grants, each with its `input_schema` where it takes parameters, plus the two capabilities that gate whole features, `action_history` and `assets`. A robot with nothing published answers an empty `exposures` list, never a refusal. A robot the caller does not reach — not attached to their app, or attached with a role that grants nothing on it — answers `404` exactly as one that does not exist. The app-user datapoint and camera listings under this prefix stay; this is the one read that also names actions, services, publishers and capabilities, which is what an app needs before it can draw a screen."
5241
+ "notes": "**The REST twin of the MCP action `robots.describe`**: one answer per robot — every datapoint, action, service, publisher and camera the role grants, each with its `input_schema` where it takes parameters, plus the two capabilities that gate whole features, `action_history` and `assets`. A robot with nothing published answers an empty `exposures` list, never a refusal. A robot the caller does not reach — not attached to their app, or attached with a role that grants nothing on it — answers `404` exactly as one that does not exist. The app-user datapoint and camera listings under this prefix stay; this is the one read that also names actions, services, publishers and capabilities, which is what an app needs before it can draw a screen."
5194
5242
  },
5195
5243
  {
5196
5244
  "method": "GET",
@@ -127,7 +127,7 @@
127
127
  ]
128
128
  },
129
129
  "description": {
130
- "description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robot_describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
130
+ "description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robots.describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
131
131
  "examples": [
132
132
  "What a caller is choosing when they set this."
133
133
  ],
@@ -170,7 +170,7 @@
170
170
  ]
171
171
  },
172
172
  "description": {
173
- "description": "What this action does, in the developer's own words — documentation for the console and for MCP clients, which is all it is: the robot does nothing with it. It is carried verbatim into `robot_describe` and read by a model that has never seen this robot. The action is offered whenever the role grants it; without one it is offered with `description: null`, and the model has nothing but the slug.",
173
+ "description": "What this action does, in the developer's own words — documentation for the console and for MCP clients, which is all it is: the robot does nothing with it. It is carried verbatim into `robots.describe` and read by a model that has never seen this robot. The action is offered whenever the role grants it; without one it is offered with `description: null`, and the model has nothing but the slug.",
174
174
  "examples": [
175
175
  "Drives to a target pose on the map."
176
176
  ],
@@ -91,6 +91,34 @@
91
91
  ],
92
92
  "description": "The app's own home page, linked as `Open <app>` when a hosted flow is done. `null` makes the hosted done page say `You can close this tab`."
93
93
  },
94
+ "operator_info_url": {
95
+ "anyOf": [
96
+ {
97
+ "type": "string",
98
+ "maxLength": 2048,
99
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
100
+ "format": "uri"
101
+ },
102
+ {
103
+ "type": "null"
104
+ }
105
+ ],
106
+ "description": "Operator information / legal notice URL for this customer app. `null` means unset; cloud checks reachability and public addresses before allowing new app-user access flows."
107
+ },
108
+ "privacy_policy_url": {
109
+ "anyOf": [
110
+ {
111
+ "type": "string",
112
+ "maxLength": 2048,
113
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
114
+ "format": "uri"
115
+ },
116
+ {
117
+ "type": "null"
118
+ }
119
+ ],
120
+ "description": "Privacy policy URL for this customer app. `null` means unset; cloud checks reachability and public addresses before allowing new app-user access flows."
121
+ },
94
122
  "sign_in_methods": {
95
123
  "type": "object",
96
124
  "properties": {
@@ -198,6 +226,8 @@
198
226
  "reset_url",
199
227
  "mcp_login_url",
200
228
  "app_url",
229
+ "operator_info_url",
230
+ "privacy_policy_url",
201
231
  "sign_in_methods",
202
232
  "two_factor",
203
233
  "hosted_logo_url",
@@ -123,7 +123,7 @@
123
123
  "const": "keep"
124
124
  },
125
125
  "description": {
126
- "description": "Prose about what this value is, for whoever meets it in the console. It changes nothing the robot does, so a publish that touches only it pushes no configuration at all — but it is carried verbatim into `robot_describe`, where a model that has never seen this robot reads it. The datapoint is offered whenever the role grants it; without one it is offered with `description: null` and the model has less to go on, as for actions, services, publishers and cameras. Omission is the only way to say nothing; an empty string is refused, here and on all five.",
126
+ "description": "Prose about what this value is, for whoever meets it in the console. It changes nothing the robot does, so a publish that touches only it pushes no configuration at all — but it is carried verbatim into `robots.describe`, where a model that has never seen this robot reads it. The datapoint is offered whenever the role grants it; without one it is offered with `description: null` and the model has less to go on, as for actions, services, publishers and cameras. Omission is the only way to say nothing; an empty string is refused, here and on all five.",
127
127
  "examples": [
128
128
  "What this value is, for whoever meets it in the console."
129
129
  ],
@@ -151,7 +151,7 @@
151
151
  "unit": {
152
152
  "type": "string",
153
153
  "maxLength": 32,
154
- "description": "The unit of the value **after** `scale` and `offset`, not the robot's own. It is shown beside the value and carried by `robot_describe` as its own field, so a model does not have to guess whether 15 means percent, volts or minutes.",
154
+ "description": "The unit of the value **after** `scale` and `offset`, not the robot's own. It is shown beside the value and carried by `robots.describe` as its own field, so a model does not have to guess whether 15 means percent, volts or minutes.",
155
155
  "examples": [
156
156
  "%"
157
157
  ]
@@ -160,7 +160,7 @@
160
160
  "type": "integer",
161
161
  "minimum": 0,
162
162
  "maximum": 6,
163
- "description": "How many fraction digits the console shows the value with — value tile, chart axis and tooltip, and the datapoint detail page — and the number `robot_describe` reports as its own field, so a model formats the value the way the console does. Presentation only: the stored value keeps the precision it arrived with, and absent means the console's own default rather than zero.",
163
+ "description": "How many fraction digits the console shows the value with — value tile, chart axis and tooltip, and the datapoint detail page — and the number `robots.describe` reports as its own field, so a model formats the value the way the console does. Presentation only: the stored value keeps the precision it arrived with, and absent means the console's own default rather than zero.",
164
164
  "examples": [
165
165
  1
166
166
  ]
@@ -621,7 +621,7 @@
621
621
  ]
622
622
  },
623
623
  "description": {
624
- "description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robot_describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
624
+ "description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robots.describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
625
625
  "examples": [
626
626
  "What a caller is choosing when they set this."
627
627
  ],
@@ -664,7 +664,7 @@
664
664
  ]
665
665
  },
666
666
  "description": {
667
- "description": "What this action does, in the developer's own words — documentation for the console and for MCP clients, which is all it is: the robot does nothing with it. It is carried verbatim into `robot_describe` and read by a model that has never seen this robot. The action is offered whenever the role grants it; without one it is offered with `description: null`, and the model has nothing but the slug.",
667
+ "description": "What this action does, in the developer's own words — documentation for the console and for MCP clients, which is all it is: the robot does nothing with it. It is carried verbatim into `robots.describe` and read by a model that has never seen this robot. The action is offered whenever the role grants it; without one it is offered with `description: null`, and the model has nothing but the slug.",
668
668
  "examples": [
669
669
  "Drives to a target pose on the map."
670
670
  ],
@@ -842,7 +842,7 @@
842
842
  ]
843
843
  },
844
844
  "description": {
845
- "description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robot_describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
845
+ "description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robots.describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
846
846
  "examples": [
847
847
  "What a caller is choosing when they set this."
848
848
  ],
@@ -1063,7 +1063,7 @@
1063
1063
  ]
1064
1064
  },
1065
1065
  "description": {
1066
- "description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robot_describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
1066
+ "description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robots.describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
1067
1067
  "examples": [
1068
1068
  "What a caller is choosing when they set this."
1069
1069
  ],
@@ -1566,7 +1566,7 @@
1566
1566
  ]
1567
1567
  },
1568
1568
  "description": {
1569
- "description": "What this camera shows, in the developer's own words — documentation for whoever reads the configuration, for the console and for MCP clients; the robot does nothing with it. A camera without one is still offered, with `description: null`, as for actions, services and publishers. What `camera_snapshot` serves is the latest snapshot with its age; a live session is never a tool.",
1569
+ "description": "What this camera shows, in the developer's own words — documentation for whoever reads the configuration, for the console and for MCP clients; the robot does nothing with it. A camera without one is still offered, with `description: null`, as for actions, services and publishers. What `camera.snapshot` serves is the latest snapshot with its age; a live session is never a tool.",
1570
1570
  "examples": [
1571
1571
  "Forward-facing camera on the mast."
1572
1572
  ],
@@ -116,7 +116,7 @@
116
116
  "const": "keep"
117
117
  },
118
118
  "description": {
119
- "description": "Prose about what this value is, for whoever meets it in the console. It changes nothing the robot does, so a publish that touches only it pushes no configuration at all — but it is carried verbatim into `robot_describe`, where a model that has never seen this robot reads it. The datapoint is offered whenever the role grants it; without one it is offered with `description: null` and the model has less to go on, as for actions, services, publishers and cameras. Omission is the only way to say nothing; an empty string is refused, here and on all five.",
119
+ "description": "Prose about what this value is, for whoever meets it in the console. It changes nothing the robot does, so a publish that touches only it pushes no configuration at all — but it is carried verbatim into `robots.describe`, where a model that has never seen this robot reads it. The datapoint is offered whenever the role grants it; without one it is offered with `description: null` and the model has less to go on, as for actions, services, publishers and cameras. Omission is the only way to say nothing; an empty string is refused, here and on all five.",
120
120
  "examples": [
121
121
  "What this value is, for whoever meets it in the console."
122
122
  ],
@@ -144,7 +144,7 @@
144
144
  "unit": {
145
145
  "type": "string",
146
146
  "maxLength": 32,
147
- "description": "The unit of the value **after** `scale` and `offset`, not the robot's own. It is shown beside the value and carried by `robot_describe` as its own field, so a model does not have to guess whether 15 means percent, volts or minutes.",
147
+ "description": "The unit of the value **after** `scale` and `offset`, not the robot's own. It is shown beside the value and carried by `robots.describe` as its own field, so a model does not have to guess whether 15 means percent, volts or minutes.",
148
148
  "examples": [
149
149
  "%"
150
150
  ]
@@ -153,7 +153,7 @@
153
153
  "type": "integer",
154
154
  "minimum": 0,
155
155
  "maximum": 6,
156
- "description": "How many fraction digits the console shows the value with — value tile, chart axis and tooltip, and the datapoint detail page — and the number `robot_describe` reports as its own field, so a model formats the value the way the console does. Presentation only: the stored value keeps the precision it arrived with, and absent means the console's own default rather than zero.",
156
+ "description": "How many fraction digits the console shows the value with — value tile, chart axis and tooltip, and the datapoint detail page — and the number `robots.describe` reports as its own field, so a model formats the value the way the console does. Presentation only: the stored value keeps the precision it arrived with, and absent means the console's own default rather than zero.",
157
157
  "examples": [
158
158
  1
159
159
  ]
@@ -614,7 +614,7 @@
614
614
  ]
615
615
  },
616
616
  "description": {
617
- "description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robot_describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
617
+ "description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robots.describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
618
618
  "examples": [
619
619
  "What a caller is choosing when they set this."
620
620
  ],
@@ -657,7 +657,7 @@
657
657
  ]
658
658
  },
659
659
  "description": {
660
- "description": "What this action does, in the developer's own words — documentation for the console and for MCP clients, which is all it is: the robot does nothing with it. It is carried verbatim into `robot_describe` and read by a model that has never seen this robot. The action is offered whenever the role grants it; without one it is offered with `description: null`, and the model has nothing but the slug.",
660
+ "description": "What this action does, in the developer's own words — documentation for the console and for MCP clients, which is all it is: the robot does nothing with it. It is carried verbatim into `robots.describe` and read by a model that has never seen this robot. The action is offered whenever the role grants it; without one it is offered with `description: null`, and the model has nothing but the slug.",
661
661
  "examples": [
662
662
  "Drives to a target pose on the map."
663
663
  ],
@@ -835,7 +835,7 @@
835
835
  ]
836
836
  },
837
837
  "description": {
838
- "description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robot_describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
838
+ "description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robots.describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
839
839
  "examples": [
840
840
  "What a caller is choosing when they set this."
841
841
  ],
@@ -1056,7 +1056,7 @@
1056
1056
  ]
1057
1057
  },
1058
1058
  "description": {
1059
- "description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robot_describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
1059
+ "description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robots.describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
1060
1060
  "examples": [
1061
1061
  "What a caller is choosing when they set this."
1062
1062
  ],
@@ -1559,7 +1559,7 @@
1559
1559
  ]
1560
1560
  },
1561
1561
  "description": {
1562
- "description": "What this camera shows, in the developer's own words — documentation for whoever reads the configuration, for the console and for MCP clients; the robot does nothing with it. A camera without one is still offered, with `description: null`, as for actions, services and publishers. What `camera_snapshot` serves is the latest snapshot with its age; a live session is never a tool.",
1562
+ "description": "What this camera shows, in the developer's own words — documentation for whoever reads the configuration, for the console and for MCP clients; the robot does nothing with it. A camera without one is still offered, with `description: null`, as for actions, services and publishers. What `camera.snapshot` serves is the latest snapshot with its age; a live session is never a tool.",
1563
1563
  "examples": [
1564
1564
  "Forward-facing camera on the mast."
1565
1565
  ],
@@ -124,7 +124,7 @@
124
124
  "const": "keep"
125
125
  },
126
126
  "description": {
127
- "description": "Prose about what this value is, for whoever meets it in the console. It changes nothing the robot does, so a publish that touches only it pushes no configuration at all — but it is carried verbatim into `robot_describe`, where a model that has never seen this robot reads it. The datapoint is offered whenever the role grants it; without one it is offered with `description: null` and the model has less to go on, as for actions, services, publishers and cameras. Omission is the only way to say nothing; an empty string is refused, here and on all five.",
127
+ "description": "Prose about what this value is, for whoever meets it in the console. It changes nothing the robot does, so a publish that touches only it pushes no configuration at all — but it is carried verbatim into `robots.describe`, where a model that has never seen this robot reads it. The datapoint is offered whenever the role grants it; without one it is offered with `description: null` and the model has less to go on, as for actions, services, publishers and cameras. Omission is the only way to say nothing; an empty string is refused, here and on all five.",
128
128
  "examples": [
129
129
  "What this value is, for whoever meets it in the console."
130
130
  ],
@@ -152,7 +152,7 @@
152
152
  "unit": {
153
153
  "type": "string",
154
154
  "maxLength": 32,
155
- "description": "The unit of the value **after** `scale` and `offset`, not the robot's own. It is shown beside the value and carried by `robot_describe` as its own field, so a model does not have to guess whether 15 means percent, volts or minutes.",
155
+ "description": "The unit of the value **after** `scale` and `offset`, not the robot's own. It is shown beside the value and carried by `robots.describe` as its own field, so a model does not have to guess whether 15 means percent, volts or minutes.",
156
156
  "examples": [
157
157
  "%"
158
158
  ]
@@ -161,7 +161,7 @@
161
161
  "type": "integer",
162
162
  "minimum": 0,
163
163
  "maximum": 6,
164
- "description": "How many fraction digits the console shows the value with — value tile, chart axis and tooltip, and the datapoint detail page — and the number `robot_describe` reports as its own field, so a model formats the value the way the console does. Presentation only: the stored value keeps the precision it arrived with, and absent means the console's own default rather than zero.",
164
+ "description": "How many fraction digits the console shows the value with — value tile, chart axis and tooltip, and the datapoint detail page — and the number `robots.describe` reports as its own field, so a model formats the value the way the console does. Presentation only: the stored value keeps the precision it arrived with, and absent means the console's own default rather than zero.",
165
165
  "examples": [
166
166
  1
167
167
  ]
@@ -622,7 +622,7 @@
622
622
  ]
623
623
  },
624
624
  "description": {
625
- "description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robot_describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
625
+ "description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robots.describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
626
626
  "examples": [
627
627
  "What a caller is choosing when they set this."
628
628
  ],
@@ -665,7 +665,7 @@
665
665
  ]
666
666
  },
667
667
  "description": {
668
- "description": "What this action does, in the developer's own words — documentation for the console and for MCP clients, which is all it is: the robot does nothing with it. It is carried verbatim into `robot_describe` and read by a model that has never seen this robot. The action is offered whenever the role grants it; without one it is offered with `description: null`, and the model has nothing but the slug.",
668
+ "description": "What this action does, in the developer's own words — documentation for the console and for MCP clients, which is all it is: the robot does nothing with it. It is carried verbatim into `robots.describe` and read by a model that has never seen this robot. The action is offered whenever the role grants it; without one it is offered with `description: null`, and the model has nothing but the slug.",
669
669
  "examples": [
670
670
  "Drives to a target pose on the map."
671
671
  ],
@@ -843,7 +843,7 @@
843
843
  ]
844
844
  },
845
845
  "description": {
846
- "description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robot_describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
846
+ "description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robots.describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
847
847
  "examples": [
848
848
  "What a caller is choosing when they set this."
849
849
  ],
@@ -1064,7 +1064,7 @@
1064
1064
  ]
1065
1065
  },
1066
1066
  "description": {
1067
- "description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robot_describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
1067
+ "description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robots.describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
1068
1068
  "examples": [
1069
1069
  "What a caller is choosing when they set this."
1070
1070
  ],
@@ -1567,7 +1567,7 @@
1567
1567
  ]
1568
1568
  },
1569
1569
  "description": {
1570
- "description": "What this camera shows, in the developer's own words — documentation for whoever reads the configuration, for the console and for MCP clients; the robot does nothing with it. A camera without one is still offered, with `description: null`, as for actions, services and publishers. What `camera_snapshot` serves is the latest snapshot with its age; a live session is never a tool.",
1570
+ "description": "What this camera shows, in the developer's own words — documentation for whoever reads the configuration, for the console and for MCP clients; the robot does nothing with it. A camera without one is still offered, with `description: null`, as for actions, services and publishers. What `camera.snapshot` serves is the latest snapshot with its age; a live session is never a tool.",
1571
1571
  "examples": [
1572
1572
  "Forward-facing camera on the mast."
1573
1573
  ],
@@ -50,7 +50,7 @@
50
50
  "const": "keep"
51
51
  },
52
52
  "description": {
53
- "description": "Prose about what this value is, for whoever meets it in the console. It changes nothing the robot does, so a publish that touches only it pushes no configuration at all — but it is carried verbatim into `robot_describe`, where a model that has never seen this robot reads it. The datapoint is offered whenever the role grants it; without one it is offered with `description: null` and the model has less to go on, as for actions, services, publishers and cameras. Omission is the only way to say nothing; an empty string is refused, here and on all five.",
53
+ "description": "Prose about what this value is, for whoever meets it in the console. It changes nothing the robot does, so a publish that touches only it pushes no configuration at all — but it is carried verbatim into `robots.describe`, where a model that has never seen this robot reads it. The datapoint is offered whenever the role grants it; without one it is offered with `description: null` and the model has less to go on, as for actions, services, publishers and cameras. Omission is the only way to say nothing; an empty string is refused, here and on all five.",
54
54
  "examples": [
55
55
  "What this value is, for whoever meets it in the console."
56
56
  ],
@@ -78,7 +78,7 @@
78
78
  "unit": {
79
79
  "type": "string",
80
80
  "maxLength": 32,
81
- "description": "The unit of the value **after** `scale` and `offset`, not the robot's own. It is shown beside the value and carried by `robot_describe` as its own field, so a model does not have to guess whether 15 means percent, volts or minutes.",
81
+ "description": "The unit of the value **after** `scale` and `offset`, not the robot's own. It is shown beside the value and carried by `robots.describe` as its own field, so a model does not have to guess whether 15 means percent, volts or minutes.",
82
82
  "examples": [
83
83
  "%"
84
84
  ]
@@ -87,7 +87,7 @@
87
87
  "type": "integer",
88
88
  "minimum": 0,
89
89
  "maximum": 6,
90
- "description": "How many fraction digits the console shows the value with — value tile, chart axis and tooltip, and the datapoint detail page — and the number `robot_describe` reports as its own field, so a model formats the value the way the console does. Presentation only: the stored value keeps the precision it arrived with, and absent means the console's own default rather than zero.",
90
+ "description": "How many fraction digits the console shows the value with — value tile, chart axis and tooltip, and the datapoint detail page — and the number `robots.describe` reports as its own field, so a model formats the value the way the console does. Presentation only: the stored value keeps the precision it arrived with, and absent means the console's own default rather than zero.",
91
91
  "examples": [
92
92
  1
93
93
  ]
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "limit": {
6
+ "anyOf": [
7
+ {
8
+ "type": "string",
9
+ "pattern": "^(?:0{0,2}[1-9]|0?[1-9][0-9]|100)$"
10
+ },
11
+ {
12
+ "type": "integer",
13
+ "minimum": 1,
14
+ "maximum": 100
15
+ }
16
+ ]
17
+ },
18
+ "cursor": {
19
+ "type": "string",
20
+ "minLength": 1,
21
+ "maxLength": 512,
22
+ "pattern": "^[A-Za-z0-9_-]+$"
23
+ }
24
+ },
25
+ "additionalProperties": false
26
+ }
@@ -0,0 +1,127 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "acceptances": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "object",
9
+ "properties": {
10
+ "id": {
11
+ "type": "string",
12
+ "format": "uuid",
13
+ "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)$"
14
+ },
15
+ "context": {
16
+ "type": "string",
17
+ "enum": [
18
+ "registration",
19
+ "invitation",
20
+ "order",
21
+ "existing_org"
22
+ ]
23
+ },
24
+ "accepted_at": {
25
+ "type": "string",
26
+ "format": "date-time",
27
+ "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{6}(?:Z))$"
28
+ },
29
+ "text_id": {
30
+ "type": "string",
31
+ "minLength": 1,
32
+ "maxLength": 80,
33
+ "pattern": "\\S"
34
+ },
35
+ "terms": {
36
+ "type": "object",
37
+ "properties": {
38
+ "version": {
39
+ "type": "string",
40
+ "minLength": 1,
41
+ "maxLength": 80
42
+ },
43
+ "version_date": {
44
+ "type": "string",
45
+ "format": "date",
46
+ "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])))$"
47
+ },
48
+ "url": {
49
+ "type": "string",
50
+ "maxLength": 2048,
51
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
52
+ "format": "uri"
53
+ }
54
+ },
55
+ "required": [
56
+ "version",
57
+ "version_date",
58
+ "url"
59
+ ],
60
+ "additionalProperties": false
61
+ },
62
+ "dpa": {
63
+ "anyOf": [
64
+ {
65
+ "type": "object",
66
+ "properties": {
67
+ "version": {
68
+ "type": "string",
69
+ "minLength": 1,
70
+ "maxLength": 80
71
+ },
72
+ "version_date": {
73
+ "type": "string",
74
+ "format": "date",
75
+ "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])))$"
76
+ },
77
+ "url": {
78
+ "type": "string",
79
+ "maxLength": 2048,
80
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
81
+ "format": "uri"
82
+ }
83
+ },
84
+ "required": [
85
+ "version",
86
+ "version_date",
87
+ "url"
88
+ ],
89
+ "additionalProperties": false
90
+ },
91
+ {
92
+ "type": "null"
93
+ }
94
+ ]
95
+ }
96
+ },
97
+ "required": [
98
+ "id",
99
+ "context",
100
+ "accepted_at",
101
+ "text_id",
102
+ "terms",
103
+ "dpa"
104
+ ],
105
+ "additionalProperties": false
106
+ }
107
+ },
108
+ "next_cursor": {
109
+ "anyOf": [
110
+ {
111
+ "type": "string",
112
+ "minLength": 1,
113
+ "maxLength": 512,
114
+ "pattern": "^[A-Za-z0-9_-]+$"
115
+ },
116
+ {
117
+ "type": "null"
118
+ }
119
+ ]
120
+ }
121
+ },
122
+ "required": [
123
+ "acceptances",
124
+ "next_cursor"
125
+ ],
126
+ "additionalProperties": false
127
+ }