@fleetless/contracts 11.0.0 → 12.0.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 +16 -0
- package/artifacts/openapi.json +16 -6
- package/artifacts/schema/busy-details.schema.json +1 -1
- package/artifacts/schema/client-provider-list-response.schema.json +11 -1
- package/artifacts/schema/command-result.schema.json +1 -1
- package/artifacts/schema/invoke-or-service-response.schema.json +1 -1
- package/artifacts/schema/invoke-response.schema.json +1 -1
- package/artifacts/schema/job-event.schema.json +1 -1
- package/artifacts/schema/job-response.schema.json +1 -1
- package/artifacts/schema/job-run-list-response.schema.json +1 -1
- package/artifacts/schema/job-run.schema.json +1 -1
- package/artifacts/schema/job.schema.json +1 -1
- package/artifacts/schema/recover-held-job-response.schema.json +1 -1
- package/artifacts/schema/robot-jobs-response.schema.json +1 -1
- package/dist/client-auth.d.ts +10 -4
- package/dist/client-auth.js +9 -5
- package/dist/jobs.js +2 -2
- package/dist/protocol.d.ts +2 -2
- package/dist/protocol.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,22 @@ version.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [12.0.0] — 2026-11-02
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- **Breaking (major):** The public `GET /api/client/providers` response now
|
|
17
|
+
requires `two_factor: off | optional | required`, the app's two-factor
|
|
18
|
+
policy. It does not describe a person's enrollment state. Older responses
|
|
19
|
+
without this field no longer satisfy the contract.
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- Corrected the exported `Job.state` and `JobRun.state` descriptions of final
|
|
24
|
+
`lost` causes, including terminal status without a recoverable result, and
|
|
25
|
+
the `job_lost` fallback for a bridge loss frame without an explicit error.
|
|
26
|
+
Wire shapes and error codes are unchanged.
|
|
27
|
+
|
|
12
28
|
## [11.0.0] — 2026-11-02
|
|
13
29
|
|
|
14
30
|
### Added
|
package/artifacts/openapi.json
CHANGED
|
@@ -21688,11 +21688,21 @@
|
|
|
21688
21688
|
],
|
|
21689
21689
|
"additionalProperties": false,
|
|
21690
21690
|
"description": "Which of password and emailed code the app accepts, so its sign-in page draws the right fields without guessing. The same value the developer set; public, like the provider buttons."
|
|
21691
|
+
},
|
|
21692
|
+
"two_factor": {
|
|
21693
|
+
"type": "string",
|
|
21694
|
+
"enum": [
|
|
21695
|
+
"off",
|
|
21696
|
+
"optional",
|
|
21697
|
+
"required"
|
|
21698
|
+
],
|
|
21699
|
+
"description": "The app's off, optional or required two-factor policy; not the caller's enrollment state."
|
|
21691
21700
|
}
|
|
21692
21701
|
},
|
|
21693
21702
|
"required": [
|
|
21694
21703
|
"providers",
|
|
21695
|
-
"sign_in_methods"
|
|
21704
|
+
"sign_in_methods",
|
|
21705
|
+
"two_factor"
|
|
21696
21706
|
],
|
|
21697
21707
|
"additionalProperties": false
|
|
21698
21708
|
},
|
|
@@ -26327,7 +26337,7 @@
|
|
|
26327
26337
|
"cancelled",
|
|
26328
26338
|
"lost"
|
|
26329
26339
|
],
|
|
26330
|
-
"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
|
|
26340
|
+
"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 after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded job or a deleted robot's job as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final."
|
|
26331
26341
|
},
|
|
26332
26342
|
"origin": {
|
|
26333
26343
|
"type": "string",
|
|
@@ -26499,7 +26509,7 @@
|
|
|
26499
26509
|
"cancelled",
|
|
26500
26510
|
"lost"
|
|
26501
26511
|
],
|
|
26502
|
-
"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
|
|
26512
|
+
"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 after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded job or a deleted robot's job as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final."
|
|
26503
26513
|
},
|
|
26504
26514
|
"origin": {
|
|
26505
26515
|
"type": "string",
|
|
@@ -26639,7 +26649,7 @@
|
|
|
26639
26649
|
"cancelled",
|
|
26640
26650
|
"lost"
|
|
26641
26651
|
],
|
|
26642
|
-
"description": "How the run ended, or `running` while it is still going. `unknown` while the robot has not accounted for it — offline or silent — and updated once the bridge says how it stands. `lost` is final
|
|
26652
|
+
"description": "How the run ended, or `running` while it is still going. `unknown` while the robot has not accounted for it — offline or silent — and updated once the bridge says how it stands. `lost` is final after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded run or a deleted robot's run as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final."
|
|
26643
26653
|
},
|
|
26644
26654
|
"started_at": {
|
|
26645
26655
|
"type": "string",
|
|
@@ -36367,7 +36377,7 @@
|
|
|
36367
36377
|
"cancelled",
|
|
36368
36378
|
"lost"
|
|
36369
36379
|
],
|
|
36370
|
-
"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
|
|
36380
|
+
"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 after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded job or a deleted robot's job as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final."
|
|
36371
36381
|
},
|
|
36372
36382
|
"origin": {
|
|
36373
36383
|
"type": "string",
|
|
@@ -37062,7 +37072,7 @@
|
|
|
37062
37072
|
"cancelled",
|
|
37063
37073
|
"lost"
|
|
37064
37074
|
],
|
|
37065
|
-
"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
|
|
37075
|
+
"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 after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded job or a deleted robot's job as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final."
|
|
37066
37076
|
},
|
|
37067
37077
|
"origin": {
|
|
37068
37078
|
"type": "string",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"cancelled",
|
|
35
35
|
"lost"
|
|
36
36
|
],
|
|
37
|
-
"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
|
|
37
|
+
"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 after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded job or a deleted robot's job as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final."
|
|
38
38
|
},
|
|
39
39
|
"origin": {
|
|
40
40
|
"type": "string",
|
|
@@ -44,11 +44,21 @@
|
|
|
44
44
|
],
|
|
45
45
|
"additionalProperties": false,
|
|
46
46
|
"description": "Which of password and emailed code the app accepts, so its sign-in page draws the right fields without guessing. The same value the developer set; public, like the provider buttons."
|
|
47
|
+
},
|
|
48
|
+
"two_factor": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"enum": [
|
|
51
|
+
"off",
|
|
52
|
+
"optional",
|
|
53
|
+
"required"
|
|
54
|
+
],
|
|
55
|
+
"description": "The app's off, optional or required two-factor policy; not the caller's enrollment state."
|
|
47
56
|
}
|
|
48
57
|
},
|
|
49
58
|
"required": [
|
|
50
59
|
"providers",
|
|
51
|
-
"sign_in_methods"
|
|
60
|
+
"sign_in_methods",
|
|
61
|
+
"two_factor"
|
|
52
62
|
],
|
|
53
63
|
"additionalProperties": false
|
|
54
64
|
}
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"cancelled",
|
|
49
49
|
"lost"
|
|
50
50
|
],
|
|
51
|
-
"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
|
|
51
|
+
"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 after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded job or a deleted robot's job as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final."
|
|
52
52
|
},
|
|
53
53
|
"origin": {
|
|
54
54
|
"type": "string",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"cancelled",
|
|
37
37
|
"lost"
|
|
38
38
|
],
|
|
39
|
-
"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
|
|
39
|
+
"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 after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded job or a deleted robot's job as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final."
|
|
40
40
|
},
|
|
41
41
|
"origin": {
|
|
42
42
|
"type": "string",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"cancelled",
|
|
35
35
|
"lost"
|
|
36
36
|
],
|
|
37
|
-
"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
|
|
37
|
+
"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 after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded job or a deleted robot's job as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final."
|
|
38
38
|
},
|
|
39
39
|
"origin": {
|
|
40
40
|
"type": "string",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"cancelled",
|
|
50
50
|
"lost"
|
|
51
51
|
],
|
|
52
|
-
"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
|
|
52
|
+
"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 after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded job or a deleted robot's job as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final."
|
|
53
53
|
},
|
|
54
54
|
"origin": {
|
|
55
55
|
"type": "string",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"cancelled",
|
|
37
37
|
"lost"
|
|
38
38
|
],
|
|
39
|
-
"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
|
|
39
|
+
"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 after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded job or a deleted robot's job as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final."
|
|
40
40
|
},
|
|
41
41
|
"origin": {
|
|
42
42
|
"type": "string",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"cancelled",
|
|
45
45
|
"lost"
|
|
46
46
|
],
|
|
47
|
-
"description": "How the run ended, or `running` while it is still going. `unknown` while the robot has not accounted for it — offline or silent — and updated once the bridge says how it stands. `lost` is final
|
|
47
|
+
"description": "How the run ended, or `running` while it is still going. `unknown` while the robot has not accounted for it — offline or silent — and updated once the bridge says how it stands. `lost` is final after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded run or a deleted robot's run as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final."
|
|
48
48
|
},
|
|
49
49
|
"started_at": {
|
|
50
50
|
"type": "string",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"cancelled",
|
|
40
40
|
"lost"
|
|
41
41
|
],
|
|
42
|
-
"description": "How the run ended, or `running` while it is still going. `unknown` while the robot has not accounted for it — offline or silent — and updated once the bridge says how it stands. `lost` is final
|
|
42
|
+
"description": "How the run ended, or `running` while it is still going. `unknown` while the robot has not accounted for it — offline or silent — and updated once the bridge says how it stands. `lost` is final after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded run or a deleted robot's run as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final."
|
|
43
43
|
},
|
|
44
44
|
"started_at": {
|
|
45
45
|
"type": "string",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"cancelled",
|
|
32
32
|
"lost"
|
|
33
33
|
],
|
|
34
|
-
"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
|
|
34
|
+
"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 after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded job or a deleted robot's job as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final."
|
|
35
35
|
},
|
|
36
36
|
"origin": {
|
|
37
37
|
"type": "string",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"cancelled",
|
|
35
35
|
"lost"
|
|
36
36
|
],
|
|
37
|
-
"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
|
|
37
|
+
"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 after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded job or a deleted robot's job as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final."
|
|
38
38
|
},
|
|
39
39
|
"origin": {
|
|
40
40
|
"type": "string",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"cancelled",
|
|
37
37
|
"lost"
|
|
38
38
|
],
|
|
39
|
-
"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
|
|
39
|
+
"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 after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded job or a deleted robot's job as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final."
|
|
40
40
|
},
|
|
41
41
|
"origin": {
|
|
42
42
|
"type": "string",
|
package/dist/client-auth.d.ts
CHANGED
|
@@ -271,10 +271,11 @@ export declare const clientProviderListQuery: z.ZodObject<{
|
|
|
271
271
|
}, z.core.$strip>;
|
|
272
272
|
export type ClientProviderListQuery = z.infer<typeof clientProviderListQuery>;
|
|
273
273
|
/**
|
|
274
|
-
* What the developer's login page needs to draw its provider buttons
|
|
275
|
-
* password or code fields, and
|
|
276
|
-
* client id, the scopes and the linking
|
|
277
|
-
* that would tell a stranger how the
|
|
274
|
+
* What the developer's login page needs to draw its provider buttons,
|
|
275
|
+
* password or code fields, and two-factor policy. This route is public and
|
|
276
|
+
* unauthenticated: the issuer, the client id, the scopes and the linking
|
|
277
|
+
* policy are all management-side facts that would tell a stranger how the
|
|
278
|
+
* app's federation is configured. The policy says nothing about a person.
|
|
278
279
|
*
|
|
279
280
|
* Only **enabled** providers appear. A disabled one is not a button that
|
|
280
281
|
* refuses; it is a button that is not there.
|
|
@@ -288,6 +289,11 @@ export declare const clientProviderListResponse: z.ZodObject<{
|
|
|
288
289
|
password: z.ZodBoolean;
|
|
289
290
|
email_code: z.ZodBoolean;
|
|
290
291
|
}, z.core.$strict>;
|
|
292
|
+
two_factor: z.ZodEnum<{
|
|
293
|
+
optional: "optional";
|
|
294
|
+
required: "required";
|
|
295
|
+
off: "off";
|
|
296
|
+
}>;
|
|
291
297
|
}, z.core.$strip>;
|
|
292
298
|
export type ClientProviderListResponse = z.infer<typeof clientProviderListResponse>;
|
|
293
299
|
/**
|
package/dist/client-auth.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { appIdentifier } from './apps.js';
|
|
4
|
-
import { APP_USER_DISPLAY_NAME_MAX, appSignInMethods, providerSlug } from './app-users.js';
|
|
4
|
+
import { APP_USER_DISPLAY_NAME_MAX, appSignInMethods, appTwoFactorPolicy, providerSlug } from './app-users.js';
|
|
5
5
|
import { loginCode, password, recoveryCode, recoveryCodesList, sessionTokens, totpCode } from './identity.js';
|
|
6
6
|
/**
|
|
7
7
|
* **The client auth API: the whole of what an app user's browser talks to.**
|
|
@@ -314,10 +314,11 @@ export const clientProviderListQuery = z
|
|
|
314
314
|
})
|
|
315
315
|
.meta({ description: 'The one parameter of the public provider listing.' });
|
|
316
316
|
/**
|
|
317
|
-
* What the developer's login page needs to draw its provider buttons
|
|
318
|
-
* password or code fields, and
|
|
319
|
-
* client id, the scopes and the linking
|
|
320
|
-
* that would tell a stranger how the
|
|
317
|
+
* What the developer's login page needs to draw its provider buttons,
|
|
318
|
+
* password or code fields, and two-factor policy. This route is public and
|
|
319
|
+
* unauthenticated: the issuer, the client id, the scopes and the linking
|
|
320
|
+
* policy are all management-side facts that would tell a stranger how the
|
|
321
|
+
* app's federation is configured. The policy says nothing about a person.
|
|
321
322
|
*
|
|
322
323
|
* Only **enabled** providers appear. A disabled one is not a button that
|
|
323
324
|
* refuses; it is a button that is not there.
|
|
@@ -334,6 +335,9 @@ export const clientProviderListResponse = z.object({
|
|
|
334
335
|
sign_in_methods: appSignInMethods.meta({
|
|
335
336
|
description: 'Which of password and emailed code the app accepts, so its sign-in page draws the right fields without guessing. The same value the developer set; public, like the provider buttons.',
|
|
336
337
|
}),
|
|
338
|
+
two_factor: appTwoFactorPolicy.meta({
|
|
339
|
+
description: "The app's off, optional or required two-factor policy; not the caller's enrollment state.",
|
|
340
|
+
}),
|
|
337
341
|
});
|
|
338
342
|
/**
|
|
339
343
|
* The query of `GET /api/client/oidc/:slug/start`.
|
package/dist/jobs.js
CHANGED
|
@@ -57,7 +57,7 @@ export const job = z.object({
|
|
|
57
57
|
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.',
|
|
58
58
|
}),
|
|
59
59
|
state: jobState.meta({
|
|
60
|
-
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
|
|
60
|
+
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 after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded job or a deleted robot\'s job as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final.',
|
|
61
61
|
}),
|
|
62
62
|
origin: jobOrigin.meta({
|
|
63
63
|
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`.",
|
|
@@ -263,7 +263,7 @@ export const jobRun = z.object({
|
|
|
263
263
|
description: 'Whether the slug was an `action` or a `service`.',
|
|
264
264
|
}),
|
|
265
265
|
state: jobState.meta({
|
|
266
|
-
description: 'How the run ended, or `running` while it is still going. `unknown` while the robot has not accounted for it — offline or silent — and updated once the bridge says how it stands. `lost` is final
|
|
266
|
+
description: 'How the run ended, or `running` while it is still going. `unknown` while the robot has not accounted for it — offline or silent — and updated once the bridge says how it stands. `lost` is final after an action server disappears before terminal status (`action_server_lost`), a later query confirms the bridge does not know the job and no active goal accounts for it (`job_unknown_to_bridge`), or a terminal goal status is observed but its result cannot be recovered within the bounded wait (`job_lost`). An unqualified bridge loss report also uses `job_lost`, with a message distinguishing it from terminal-result loss. Cloud cleanup may settle a superseded run or a deleted robot\'s run as `lost` without an error code. A reconnect or omission from `hello.active_jobs` alone is not final.',
|
|
267
267
|
}),
|
|
268
268
|
started_at: z.iso.datetime().meta({
|
|
269
269
|
description: 'When the run started, as an ISO 8601 timestamp. Runs are listed and filtered by this instant.',
|
package/dist/protocol.d.ts
CHANGED
|
@@ -778,8 +778,8 @@ export type BridgeJobUpdate = z.infer<typeof bridgeJobUpdate>;
|
|
|
778
778
|
* **`error` is optional and, when present, applies to every job named in
|
|
779
779
|
* `job_ids`.** A vanished action server is discovered once, by the bridge's
|
|
780
780
|
* own liveness check on that one action, so a frame naming several jobs at
|
|
781
|
-
* once always shares the same cause.
|
|
782
|
-
* `lost` with
|
|
781
|
+
* once always shares the same cause. Without `error`, the cloud settles each
|
|
782
|
+
* job `lost` with the generic `job_lost` error code; explicit causes are kept.
|
|
783
783
|
*/
|
|
784
784
|
export declare const bridgeJobLost: z.ZodObject<{
|
|
785
785
|
type: z.ZodLiteral<"job_lost">;
|
package/dist/protocol.js
CHANGED
|
@@ -605,8 +605,8 @@ export const bridgeJobUpdate = z.object({
|
|
|
605
605
|
* **`error` is optional and, when present, applies to every job named in
|
|
606
606
|
* `job_ids`.** A vanished action server is discovered once, by the bridge's
|
|
607
607
|
* own liveness check on that one action, so a frame naming several jobs at
|
|
608
|
-
* once always shares the same cause.
|
|
609
|
-
* `lost` with
|
|
608
|
+
* once always shares the same cause. Without `error`, the cloud settles each
|
|
609
|
+
* job `lost` with the generic `job_lost` error code; explicit causes are kept.
|
|
610
610
|
*/
|
|
611
611
|
export const bridgeJobLost = z.object({
|
|
612
612
|
type: z.literal('job_lost'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fleetless/contracts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "Fleetless wire contracts: the bridge-cloud protocol, the REST API schemas and the error codes, as zod schemas with generated JSON Schema and OpenAPI artifacts.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Dehne Robotik GmbH",
|