@fleetless/contracts 9.0.0 → 9.2.0-next.1
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 +28 -0
- package/artifacts/openapi.json +281 -20
- package/artifacts/routes.json +65 -4
- package/artifacts/schema/action-config.schema.json +2 -2
- package/artifacts/schema/bridge-state.schema.json +14 -0
- package/artifacts/schema/client-robot-list-item.schema.json +14 -0
- package/artifacts/schema/client-robot-list-response.schema.json +14 -0
- package/artifacts/schema/cloud-config.schema.json +8 -8
- package/artifacts/schema/config-draft-response.schema.json +8 -8
- package/artifacts/schema/config-version-response.schema.json +8 -8
- package/artifacts/schema/datapoint-config.schema.json +3 -3
- package/artifacts/schema/parameter-spec.schema.json +1 -1
- package/artifacts/schema/publisher-config.schema.json +1 -1
- package/artifacts/schema/recover-held-job-request.schema.json +29 -0
- package/artifacts/schema/recover-held-job-response.schema.json +125 -0
- package/artifacts/schema/robot-config-doc.schema.json +8 -8
- package/artifacts/schema/robot-detail-response.schema.json +14 -0
- package/artifacts/schema/robot-list-item.schema.json +14 -0
- package/artifacts/schema/robot-list-response.schema.json +14 -0
- package/artifacts/schema/service-config.schema.json +1 -1
- package/artifacts/schema/support-renew-fail-refusal.schema.json +141 -0
- package/artifacts/schema/support-renew-fail-request.schema.json +28 -0
- package/dist/client-robots.d.ts +7 -1
- package/dist/client-robots.js +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +7 -7
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +31 -15
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/mcp.d.ts +13 -10
- package/dist/mcp.js +13 -10
- package/dist/protocol.d.ts +3 -0
- package/dist/protocol.js +1 -0
- package/dist/rest.d.ts +52 -0
- package/dist/rest.js +15 -0
- package/dist/routes.js +45 -7
- package/dist/support.d.ts +42 -0
- package/dist/support.js +15 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,10 +9,35 @@ version.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Owner-only held-job recovery request and response for an audited physical-stop
|
|
15
|
+
assertion (`operator_verified_stopped`), and optional cloud-observed
|
|
16
|
+
`bridge_state.health_reason` for unanswered job queries. No bridge frame
|
|
17
|
+
changes.
|
|
18
|
+
|
|
19
|
+
## [9.1.0] — 2026-11-01
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- Defined `job_lost` on a final `lost` job for a terminal goal whose result
|
|
24
|
+
remains unavailable after the bounded wait, or for a loss with no more
|
|
25
|
+
specific cause; `error.message` distinguishes them. Pre-terminal action
|
|
26
|
+
server disappearance remains `action_server_lost`, and a confirmed job
|
|
27
|
+
unknown to the bridge remains `job_unknown_to_bridge`. The existing codes,
|
|
28
|
+
public Job shape and wire schemas are unchanged.
|
|
29
|
+
|
|
12
30
|
## [9.0.0] — 2026-11-01
|
|
13
31
|
|
|
14
32
|
### Added
|
|
15
33
|
|
|
34
|
+
- Internal `POST /console/support/renew/fail` contract with a strict
|
|
35
|
+
original-bearer/PKCE request and typed no-store refusal pairs. Cloud ends
|
|
36
|
+
only a pending, current-generation flow within its 120-second proof window;
|
|
37
|
+
a stale tab cannot end the winning support session. Console must first
|
|
38
|
+
verify one-use signed Operator failure evidence bound to its browser flow;
|
|
39
|
+
browser callback parameters alone cannot trigger the Cloud call. This
|
|
40
|
+
prerequisite adds no field to the strict Cloud request.
|
|
16
41
|
- Owner-only `GET /api/org/legal/acceptances` and the additive
|
|
17
42
|
`legalAcceptanceListQuery`, `legalAcceptanceVersionRow`, and
|
|
18
43
|
`legalAcceptanceListResponse` schemas. Pages expose stored Terms and
|
|
@@ -21,6 +46,9 @@ version.
|
|
|
21
46
|
|
|
22
47
|
### Changed
|
|
23
48
|
|
|
49
|
+
- MCP and REST reference descriptions name the bundled tool actions
|
|
50
|
+
(`robots.list`, `robots.describe`, `camera.snapshot`, and others). Exported
|
|
51
|
+
wire shapes and endpoint paths are unchanged.
|
|
24
52
|
- **Breaking:** `waitlistRequest` requires `consent_text_version` for the F.1
|
|
25
53
|
wording shown by the form. `putAppAuthUrlsRequest` requires explicit
|
|
26
54
|
`operator_info_url` and `privacy_policy_url` keys; `null` clears a link.
|
package/artifacts/openapi.json
CHANGED
|
@@ -1667,7 +1667,7 @@
|
|
|
1667
1667
|
}
|
|
1668
1668
|
}
|
|
1669
1669
|
},
|
|
1670
|
-
"description": "Built by the same builder the MCP server's own `
|
|
1670
|
+
"description": "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."
|
|
1671
1671
|
}
|
|
1672
1672
|
},
|
|
1673
1673
|
"/api/apps/{id}/roles/{roleId}": {
|
|
@@ -4580,7 +4580,7 @@
|
|
|
4580
4580
|
}
|
|
4581
4581
|
}
|
|
4582
4582
|
},
|
|
4583
|
-
"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 (`
|
|
4583
|
+
"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."
|
|
4584
4584
|
}
|
|
4585
4585
|
},
|
|
4586
4586
|
"/mcp/{appIdentifier}": {
|
|
@@ -6880,7 +6880,7 @@
|
|
|
6880
6880
|
}
|
|
6881
6881
|
}
|
|
6882
6882
|
},
|
|
6883
|
-
"description": "**The REST twin of the MCP
|
|
6883
|
+
"description": "**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/…`."
|
|
6884
6884
|
}
|
|
6885
6885
|
},
|
|
6886
6886
|
"/api/robots/{id}/datasheet": {
|
|
@@ -6934,7 +6934,7 @@
|
|
|
6934
6934
|
}
|
|
6935
6935
|
}
|
|
6936
6936
|
},
|
|
6937
|
-
"description": "**The REST twin of the MCP
|
|
6937
|
+
"description": "**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."
|
|
6938
6938
|
}
|
|
6939
6939
|
},
|
|
6940
6940
|
"/api/robots/{id}/config/draft": {
|
|
@@ -8108,6 +8108,73 @@
|
|
|
8108
8108
|
}
|
|
8109
8109
|
}
|
|
8110
8110
|
},
|
|
8111
|
+
"/api/robots/{id}/jobs/{slug}/recover": {
|
|
8112
|
+
"post": {
|
|
8113
|
+
"operationId": "post_api_robots_id_jobs_slug_recover",
|
|
8114
|
+
"summary": "Releases one held job after an Owner verifies the robot is stopped.",
|
|
8115
|
+
"tags": [
|
|
8116
|
+
"commands"
|
|
8117
|
+
],
|
|
8118
|
+
"security": [
|
|
8119
|
+
{
|
|
8120
|
+
"developerSession": []
|
|
8121
|
+
}
|
|
8122
|
+
],
|
|
8123
|
+
"parameters": [
|
|
8124
|
+
{
|
|
8125
|
+
"name": "id",
|
|
8126
|
+
"in": "path",
|
|
8127
|
+
"required": true,
|
|
8128
|
+
"description": "The robot uuid in the authenticated Owner's organization.",
|
|
8129
|
+
"schema": {
|
|
8130
|
+
"type": "string"
|
|
8131
|
+
}
|
|
8132
|
+
},
|
|
8133
|
+
{
|
|
8134
|
+
"name": "slug",
|
|
8135
|
+
"in": "path",
|
|
8136
|
+
"required": true,
|
|
8137
|
+
"description": "The action slug holding the exact job named in the body.",
|
|
8138
|
+
"schema": {
|
|
8139
|
+
"type": "string"
|
|
8140
|
+
}
|
|
8141
|
+
}
|
|
8142
|
+
],
|
|
8143
|
+
"responses": {
|
|
8144
|
+
"200": {
|
|
8145
|
+
"description": "Success.",
|
|
8146
|
+
"content": {
|
|
8147
|
+
"application/json": {
|
|
8148
|
+
"schema": {
|
|
8149
|
+
"$ref": "#/components/schemas/recover-held-job-response"
|
|
8150
|
+
}
|
|
8151
|
+
}
|
|
8152
|
+
}
|
|
8153
|
+
},
|
|
8154
|
+
"default": {
|
|
8155
|
+
"description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `tier_required`, `support_forbidden`, `invalid_uuid`, `not_found`, `validation_error`, `job_state_conflict`, `internal_error`.",
|
|
8156
|
+
"content": {
|
|
8157
|
+
"application/json": {
|
|
8158
|
+
"schema": {
|
|
8159
|
+
"$ref": "#/components/schemas/api-error"
|
|
8160
|
+
}
|
|
8161
|
+
}
|
|
8162
|
+
}
|
|
8163
|
+
}
|
|
8164
|
+
},
|
|
8165
|
+
"description": "Use only after physically stopping or isolating the robot and checking that it cannot move. Read the held job id, then submit that exact id with a reason and `verified_stopped: true`. The assertion is a human safety check, not a sensor reading. The cloud records the Owner and reason in the audit trail and returns the job settled to `lost`. App users, server keys, other developers and support sessions cannot use this route. A connected bridge or a changed job returns `409 job_state_conflict`; a normal cancel is not recovery and never releases an uncertain job.",
|
|
8166
|
+
"requestBody": {
|
|
8167
|
+
"required": true,
|
|
8168
|
+
"content": {
|
|
8169
|
+
"application/json": {
|
|
8170
|
+
"schema": {
|
|
8171
|
+
"$ref": "#/components/schemas/recover-held-job-request"
|
|
8172
|
+
}
|
|
8173
|
+
}
|
|
8174
|
+
}
|
|
8175
|
+
}
|
|
8176
|
+
}
|
|
8177
|
+
},
|
|
8111
8178
|
"/api/robots/{id}/publishers/{slug}": {
|
|
8112
8179
|
"post": {
|
|
8113
8180
|
"operationId": "post_api_robots_id_publishers_slug",
|
|
@@ -18498,6 +18565,20 @@
|
|
|
18498
18565
|
"low_bandwidth": {
|
|
18499
18566
|
"type": "boolean",
|
|
18500
18567
|
"description": "Whether the bridge is in its low-bandwidth mode: datapoints capped, cameras reduced or stopped. Bridge-reported."
|
|
18568
|
+
},
|
|
18569
|
+
"health_reason": {
|
|
18570
|
+
"description": "Cloud-observed connection health: `job_query_unanswered` after a bridge ignores held-job queries; `null` on an ordinary connect or disconnect. Optional for older observations.",
|
|
18571
|
+
"anyOf": [
|
|
18572
|
+
{
|
|
18573
|
+
"type": "string",
|
|
18574
|
+
"enum": [
|
|
18575
|
+
"job_query_unanswered"
|
|
18576
|
+
]
|
|
18577
|
+
},
|
|
18578
|
+
{
|
|
18579
|
+
"type": "null"
|
|
18580
|
+
}
|
|
18581
|
+
]
|
|
18501
18582
|
}
|
|
18502
18583
|
},
|
|
18503
18584
|
"required": [
|
|
@@ -18805,7 +18886,7 @@
|
|
|
18805
18886
|
"const": "keep"
|
|
18806
18887
|
},
|
|
18807
18888
|
"description": {
|
|
18808
|
-
"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 `
|
|
18889
|
+
"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.",
|
|
18809
18890
|
"examples": [
|
|
18810
18891
|
"What this value is, for whoever meets it in the console."
|
|
18811
18892
|
],
|
|
@@ -18833,7 +18914,7 @@
|
|
|
18833
18914
|
"unit": {
|
|
18834
18915
|
"type": "string",
|
|
18835
18916
|
"maxLength": 32,
|
|
18836
|
-
"description": "The unit of the value **after** `scale` and `offset`, not the robot's own. It is shown beside the value and carried by `
|
|
18917
|
+
"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.",
|
|
18837
18918
|
"examples": [
|
|
18838
18919
|
"%"
|
|
18839
18920
|
]
|
|
@@ -18842,7 +18923,7 @@
|
|
|
18842
18923
|
"type": "integer",
|
|
18843
18924
|
"minimum": 0,
|
|
18844
18925
|
"maximum": 6,
|
|
18845
|
-
"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 `
|
|
18926
|
+
"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.",
|
|
18846
18927
|
"examples": [
|
|
18847
18928
|
1
|
|
18848
18929
|
]
|
|
@@ -19119,7 +19200,7 @@
|
|
|
19119
19200
|
]
|
|
19120
19201
|
},
|
|
19121
19202
|
"description": {
|
|
19122
|
-
"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 `
|
|
19203
|
+
"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*.",
|
|
19123
19204
|
"examples": [
|
|
19124
19205
|
"What a caller is choosing when they set this."
|
|
19125
19206
|
],
|
|
@@ -19136,7 +19217,7 @@
|
|
|
19136
19217
|
"description": "The holes in this entry's `message` that a caller fills, keyed by **parameter name** rather than by field path — so the name survives the field moving inside the message, and a caller sends something that means what it says. Every declared parameter must appear somewhere in the message and every `${name}` in the message must be declared; either half alone is an error."
|
|
19137
19218
|
},
|
|
19138
19219
|
"description": {
|
|
19139
|
-
"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 `
|
|
19220
|
+
"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.",
|
|
19140
19221
|
"examples": [
|
|
19141
19222
|
"Drives to a target pose on the map."
|
|
19142
19223
|
],
|
|
@@ -19269,7 +19350,7 @@
|
|
|
19269
19350
|
]
|
|
19270
19351
|
},
|
|
19271
19352
|
"description": {
|
|
19272
|
-
"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 `
|
|
19353
|
+
"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*.",
|
|
19273
19354
|
"examples": [
|
|
19274
19355
|
"What a caller is choosing when they set this."
|
|
19275
19356
|
],
|
|
@@ -19419,7 +19500,7 @@
|
|
|
19419
19500
|
]
|
|
19420
19501
|
},
|
|
19421
19502
|
"description": {
|
|
19422
|
-
"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 `
|
|
19503
|
+
"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*.",
|
|
19423
19504
|
"examples": [
|
|
19424
19505
|
"What a caller is choosing when they set this."
|
|
19425
19506
|
],
|
|
@@ -19716,7 +19797,7 @@
|
|
|
19716
19797
|
]
|
|
19717
19798
|
},
|
|
19718
19799
|
"description": {
|
|
19719
|
-
"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 `
|
|
19800
|
+
"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.",
|
|
19720
19801
|
"examples": [
|
|
19721
19802
|
"Forward-facing camera on the mast."
|
|
19722
19803
|
],
|
|
@@ -19967,7 +20048,7 @@
|
|
|
19967
20048
|
"const": "keep"
|
|
19968
20049
|
},
|
|
19969
20050
|
"description": {
|
|
19970
|
-
"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 `
|
|
20051
|
+
"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.",
|
|
19971
20052
|
"examples": [
|
|
19972
20053
|
"What this value is, for whoever meets it in the console."
|
|
19973
20054
|
],
|
|
@@ -19995,7 +20076,7 @@
|
|
|
19995
20076
|
"unit": {
|
|
19996
20077
|
"type": "string",
|
|
19997
20078
|
"maxLength": 32,
|
|
19998
|
-
"description": "The unit of the value **after** `scale` and `offset`, not the robot's own. It is shown beside the value and carried by `
|
|
20079
|
+
"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.",
|
|
19999
20080
|
"examples": [
|
|
20000
20081
|
"%"
|
|
20001
20082
|
]
|
|
@@ -20004,7 +20085,7 @@
|
|
|
20004
20085
|
"type": "integer",
|
|
20005
20086
|
"minimum": 0,
|
|
20006
20087
|
"maximum": 6,
|
|
20007
|
-
"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 `
|
|
20088
|
+
"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.",
|
|
20008
20089
|
"examples": [
|
|
20009
20090
|
1
|
|
20010
20091
|
]
|
|
@@ -20281,7 +20362,7 @@
|
|
|
20281
20362
|
]
|
|
20282
20363
|
},
|
|
20283
20364
|
"description": {
|
|
20284
|
-
"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 `
|
|
20365
|
+
"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*.",
|
|
20285
20366
|
"examples": [
|
|
20286
20367
|
"What a caller is choosing when they set this."
|
|
20287
20368
|
],
|
|
@@ -20298,7 +20379,7 @@
|
|
|
20298
20379
|
"description": "The holes in this entry's `message` that a caller fills, keyed by **parameter name** rather than by field path — so the name survives the field moving inside the message, and a caller sends something that means what it says. Every declared parameter must appear somewhere in the message and every `${name}` in the message must be declared; either half alone is an error."
|
|
20299
20380
|
},
|
|
20300
20381
|
"description": {
|
|
20301
|
-
"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 `
|
|
20382
|
+
"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.",
|
|
20302
20383
|
"examples": [
|
|
20303
20384
|
"Drives to a target pose on the map."
|
|
20304
20385
|
],
|
|
@@ -20431,7 +20512,7 @@
|
|
|
20431
20512
|
]
|
|
20432
20513
|
},
|
|
20433
20514
|
"description": {
|
|
20434
|
-
"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 `
|
|
20515
|
+
"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*.",
|
|
20435
20516
|
"examples": [
|
|
20436
20517
|
"What a caller is choosing when they set this."
|
|
20437
20518
|
],
|
|
@@ -20581,7 +20662,7 @@
|
|
|
20581
20662
|
]
|
|
20582
20663
|
},
|
|
20583
20664
|
"description": {
|
|
20584
|
-
"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 `
|
|
20665
|
+
"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*.",
|
|
20585
20666
|
"examples": [
|
|
20586
20667
|
"What a caller is choosing when they set this."
|
|
20587
20668
|
],
|
|
@@ -20878,7 +20959,7 @@
|
|
|
20878
20959
|
]
|
|
20879
20960
|
},
|
|
20880
20961
|
"description": {
|
|
20881
|
-
"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 `
|
|
20962
|
+
"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.",
|
|
20882
20963
|
"examples": [
|
|
20883
20964
|
"Forward-facing camera on the mast."
|
|
20884
20965
|
],
|
|
@@ -27851,6 +27932,158 @@
|
|
|
27851
27932
|
],
|
|
27852
27933
|
"additionalProperties": false
|
|
27853
27934
|
},
|
|
27935
|
+
"recover-held-job-request": {
|
|
27936
|
+
"type": "object",
|
|
27937
|
+
"properties": {
|
|
27938
|
+
"job_id": {
|
|
27939
|
+
"type": "string",
|
|
27940
|
+
"format": "uuid",
|
|
27941
|
+
"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)$",
|
|
27942
|
+
"description": "The exact held job id read from the robot job state; another job must never be released by a stale request."
|
|
27943
|
+
},
|
|
27944
|
+
"verified_stopped": {
|
|
27945
|
+
"type": "boolean",
|
|
27946
|
+
"const": true,
|
|
27947
|
+
"description": "The Owner confirms a physical stop and safety check; this is not a cloud sensor reading."
|
|
27948
|
+
},
|
|
27949
|
+
"reason": {
|
|
27950
|
+
"type": "string",
|
|
27951
|
+
"minLength": 10,
|
|
27952
|
+
"maxLength": 500,
|
|
27953
|
+
"description": "The Owner's reason and safety-check record, 10–500 characters after trimming; retained in the audit trail."
|
|
27954
|
+
}
|
|
27955
|
+
},
|
|
27956
|
+
"required": [
|
|
27957
|
+
"job_id",
|
|
27958
|
+
"verified_stopped",
|
|
27959
|
+
"reason"
|
|
27960
|
+
],
|
|
27961
|
+
"additionalProperties": false
|
|
27962
|
+
},
|
|
27963
|
+
"recover-held-job-response": {
|
|
27964
|
+
"type": "object",
|
|
27965
|
+
"properties": {
|
|
27966
|
+
"job": {
|
|
27967
|
+
"type": "object",
|
|
27968
|
+
"properties": {
|
|
27969
|
+
"id": {
|
|
27970
|
+
"type": "string",
|
|
27971
|
+
"format": "uuid",
|
|
27972
|
+
"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)$",
|
|
27973
|
+
"description": "The job's id, minted by the cloud when the invocation is accepted. Informative — state is observed by slug; a cancel names this id to stop one specific job rather than whatever is running."
|
|
27974
|
+
},
|
|
27975
|
+
"robot_id": {
|
|
27976
|
+
"type": "string",
|
|
27977
|
+
"format": "uuid",
|
|
27978
|
+
"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)$",
|
|
27979
|
+
"description": "The robot this job is running on."
|
|
27980
|
+
},
|
|
27981
|
+
"slug": {
|
|
27982
|
+
"type": "string",
|
|
27983
|
+
"minLength": 2,
|
|
27984
|
+
"maxLength": 63,
|
|
27985
|
+
"pattern": "^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$",
|
|
27986
|
+
"description": "The action or service this job is running, as the published configuration exposes it. One slug carries one job at a time, so every observer of that slug sees the same one."
|
|
27987
|
+
},
|
|
27988
|
+
"state": {
|
|
27989
|
+
"type": "string",
|
|
27990
|
+
"enum": [
|
|
27991
|
+
"running",
|
|
27992
|
+
"unknown",
|
|
27993
|
+
"succeeded",
|
|
27994
|
+
"failed",
|
|
27995
|
+
"cancelled",
|
|
27996
|
+
"lost"
|
|
27997
|
+
],
|
|
27998
|
+
"description": "Where the job stands: `running`, `unknown`, `succeeded`, `failed`, `cancelled` or `lost`. `unknown` is not an outcome — the robot went offline or silent and the cloud does not know yet; the slug stays occupied and the bridge's next statement resolves it, `error` naming why the cloud lost sight of it. `lost` is final: the bridge stated it does not know the job and nothing else runs on its action, or the action server vanished mid-goal."
|
|
27999
|
+
},
|
|
28000
|
+
"origin": {
|
|
28001
|
+
"type": "string",
|
|
28002
|
+
"enum": [
|
|
28003
|
+
"fleetless",
|
|
28004
|
+
"external"
|
|
28005
|
+
],
|
|
28006
|
+
"description": "Who started this job. `fleetless` for everything minted by the cloud; `external` for a goal the bridge found active on a published action without having sent it — no parameters, no starter, never written to `job_runs`."
|
|
28007
|
+
},
|
|
28008
|
+
"started_at": {
|
|
28009
|
+
"type": "string",
|
|
28010
|
+
"format": "date-time",
|
|
28011
|
+
"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))$",
|
|
28012
|
+
"description": "When the cloud minted this job, as an ISO 8601 timestamp. For a job adopted from a reconnecting bridge, this is **adoption time**, not the real start — the cloud never minted it."
|
|
28013
|
+
},
|
|
28014
|
+
"updated_at": {
|
|
28015
|
+
"type": "string",
|
|
28016
|
+
"format": "date-time",
|
|
28017
|
+
"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))$",
|
|
28018
|
+
"description": "When this job last changed, as an ISO 8601 timestamp."
|
|
28019
|
+
},
|
|
28020
|
+
"seq": {
|
|
28021
|
+
"type": "integer",
|
|
28022
|
+
"exclusiveMinimum": 0,
|
|
28023
|
+
"maximum": 9007199254740991,
|
|
28024
|
+
"description": "A monotonic counter ascending in mint order, and the named tiebreaker for any listing that claims one — `started_at` alone is not a total order. Scoped per cloud process and per run: job state lives in memory, so this restarts with the registry it orders."
|
|
28025
|
+
},
|
|
28026
|
+
"result": {
|
|
28027
|
+
"anyOf": [
|
|
28028
|
+
{},
|
|
28029
|
+
{
|
|
28030
|
+
"type": "null"
|
|
28031
|
+
}
|
|
28032
|
+
],
|
|
28033
|
+
"description": "What the call returned once it succeeded, shaped by the ROS action or service itself. `null` until then, and for a job that did not succeed."
|
|
28034
|
+
},
|
|
28035
|
+
"error": {
|
|
28036
|
+
"anyOf": [
|
|
28037
|
+
{
|
|
28038
|
+
"type": "object",
|
|
28039
|
+
"properties": {
|
|
28040
|
+
"code": {
|
|
28041
|
+
"type": "string",
|
|
28042
|
+
"minLength": 1,
|
|
28043
|
+
"description": "A machine-readable code for the failure, such as `job_queue_full`, where one exists for it."
|
|
28044
|
+
},
|
|
28045
|
+
"message": {
|
|
28046
|
+
"type": "string",
|
|
28047
|
+
"minLength": 1,
|
|
28048
|
+
"description": "A human-readable sentence saying what went wrong."
|
|
28049
|
+
},
|
|
28050
|
+
"details": {
|
|
28051
|
+
"description": "The structured payload belonging to `code`, for the codes that document one — `job_queue_full` carries its `limit` and its `queued` count here. Absent for a failure with nothing structured to add, which is most of them."
|
|
28052
|
+
}
|
|
28053
|
+
},
|
|
28054
|
+
"required": [
|
|
28055
|
+
"code",
|
|
28056
|
+
"message"
|
|
28057
|
+
],
|
|
28058
|
+
"additionalProperties": false
|
|
28059
|
+
},
|
|
28060
|
+
{
|
|
28061
|
+
"type": "null"
|
|
28062
|
+
}
|
|
28063
|
+
],
|
|
28064
|
+
"description": "Why the job failed, or why the cloud does not know how it stands: a human `message`, a `code` where one exists, and `details` for the codes that carry a documented payload. Set on `failed` and `lost`, and on `unknown` — where `code` is `bridge_disconnected` or `bridge_timeout`, the cloud's own reason for not knowing, cleared when the bridge reports the job running again."
|
|
28065
|
+
}
|
|
28066
|
+
},
|
|
28067
|
+
"required": [
|
|
28068
|
+
"id",
|
|
28069
|
+
"robot_id",
|
|
28070
|
+
"slug",
|
|
28071
|
+
"state",
|
|
28072
|
+
"origin",
|
|
28073
|
+
"started_at",
|
|
28074
|
+
"updated_at",
|
|
28075
|
+
"seq",
|
|
28076
|
+
"result",
|
|
28077
|
+
"error"
|
|
28078
|
+
],
|
|
28079
|
+
"additionalProperties": false
|
|
28080
|
+
}
|
|
28081
|
+
},
|
|
28082
|
+
"required": [
|
|
28083
|
+
"job"
|
|
28084
|
+
],
|
|
28085
|
+
"additionalProperties": false
|
|
28086
|
+
},
|
|
27854
28087
|
"recovery-codes-response": {
|
|
27855
28088
|
"type": "object",
|
|
27856
28089
|
"properties": {
|
|
@@ -28125,6 +28358,20 @@
|
|
|
28125
28358
|
"low_bandwidth": {
|
|
28126
28359
|
"type": "boolean",
|
|
28127
28360
|
"description": "Whether the bridge is in its low-bandwidth mode: datapoints capped, cameras reduced or stopped. Bridge-reported."
|
|
28361
|
+
},
|
|
28362
|
+
"health_reason": {
|
|
28363
|
+
"description": "Cloud-observed connection health: `job_query_unanswered` after a bridge ignores held-job queries; `null` on an ordinary connect or disconnect. Optional for older observations.",
|
|
28364
|
+
"anyOf": [
|
|
28365
|
+
{
|
|
28366
|
+
"type": "string",
|
|
28367
|
+
"enum": [
|
|
28368
|
+
"job_query_unanswered"
|
|
28369
|
+
]
|
|
28370
|
+
},
|
|
28371
|
+
{
|
|
28372
|
+
"type": "null"
|
|
28373
|
+
}
|
|
28374
|
+
]
|
|
28128
28375
|
}
|
|
28129
28376
|
},
|
|
28130
28377
|
"required": [
|
|
@@ -28580,6 +28827,20 @@
|
|
|
28580
28827
|
"low_bandwidth": {
|
|
28581
28828
|
"type": "boolean",
|
|
28582
28829
|
"description": "Whether the bridge is in its low-bandwidth mode: datapoints capped, cameras reduced or stopped. Bridge-reported."
|
|
28830
|
+
},
|
|
28831
|
+
"health_reason": {
|
|
28832
|
+
"description": "Cloud-observed connection health: `job_query_unanswered` after a bridge ignores held-job queries; `null` on an ordinary connect or disconnect. Optional for older observations.",
|
|
28833
|
+
"anyOf": [
|
|
28834
|
+
{
|
|
28835
|
+
"type": "string",
|
|
28836
|
+
"enum": [
|
|
28837
|
+
"job_query_unanswered"
|
|
28838
|
+
]
|
|
28839
|
+
},
|
|
28840
|
+
{
|
|
28841
|
+
"type": "null"
|
|
28842
|
+
}
|
|
28843
|
+
]
|
|
28583
28844
|
}
|
|
28584
28845
|
},
|
|
28585
28846
|
"required": [
|