@fleetless/contracts 10.0.0 → 11.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 +22 -0
- package/artifacts/openapi.json +378 -13
- package/artifacts/routes.json +45 -6
- package/artifacts/schema/billing-change-response.schema.json +42 -3
- package/artifacts/schema/billing-invoice-pdf-query.schema.json +15 -0
- package/artifacts/schema/billing-invoice.schema.json +14 -1
- package/artifacts/schema/billing-view.schema.json +14 -1
- 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/purchase-intent-response.schema.json +42 -3
- 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-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/dist/billing.d.ts +32 -7
- package/dist/billing.js +9 -2
- package/dist/client-robots.d.ts +6 -0
- package/dist/errors.d.ts +6 -4
- package/dist/errors.js +17 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- 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 +24 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,28 @@ version.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [11.0.0] — 2026-11-02
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- `cancelled` invoice status, required nullable `cancellation_document_url` for
|
|
17
|
+
historical Cloud invoices, and optional `kind=invoice|cancellation` on the
|
|
18
|
+
owner-only invoice PDF route. Omitting `kind` still returns the original PDF.
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- Corrected billing error and route notes for interrupted Mollie charges,
|
|
23
|
+
`charge_in_progress`, and first-checkout reuse or `checkout_open` refusal.
|
|
24
|
+
|
|
25
|
+
## [10.1.0] — 2026-11-01
|
|
26
|
+
|
|
27
|
+
### Added
|
|
28
|
+
|
|
29
|
+
- Owner-only held-job recovery request and response for an audited physical-stop
|
|
30
|
+
assertion (`operator_verified_stopped`), and optional cloud-observed
|
|
31
|
+
`bridge_state.health_reason` for unanswered job queries. No bridge frame
|
|
32
|
+
changes.
|
|
33
|
+
|
|
12
34
|
## [10.0.0] — 2026-11-01
|
|
13
35
|
|
|
14
36
|
### Added
|
package/artifacts/openapi.json
CHANGED
|
@@ -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",
|
|
@@ -9893,7 +9960,7 @@
|
|
|
9893
9960
|
}
|
|
9894
9961
|
}
|
|
9895
9962
|
},
|
|
9896
|
-
"description": "Basic stays free for every payer. This start creates only a nonbinding draft; accept_terms is deprecated and cannot confirm an order. Current company, buyer, VIES and EUR quote checks still apply. Persist operation_key before POST; same key
|
|
9963
|
+
"description": "Basic stays free for every payer. This start creates only a nonbinding draft; accept_terms is deprecated and cannot confirm an order. Current company, buyer, VIES and EUR quote checks still apply. Persist operation_key before POST; the same key and input return 200 with the existing intent (and its hosted checkout when payment_started), without another Mollie payment; changed input conflicts. A different operation_key while a first payment is open returns 409 target_state_conflict with rule checkout_open and details expires_at: null. An eligible Owner obtains a no-store C.4 display, then explicitly confirms with its proof. No payment or acceptance occurs at start. Hosted payment later offers card, PayPal or Apple Pay; its return is <console>/settings/billing?checkout=<checkout_id>. An active/past_due account uses billing/change.",
|
|
9897
9964
|
"requestBody": {
|
|
9898
9965
|
"required": true,
|
|
9899
9966
|
"content": {
|
|
@@ -10086,7 +10153,7 @@
|
|
|
10086
10153
|
}
|
|
10087
10154
|
}
|
|
10088
10155
|
},
|
|
10089
|
-
"description": "Checkout and paid-change decisions require confirmation_proof along with the operation key, quote revision and buyer fingerprint shown in the persisted C.4 display. Cloud rechecks buyer, quote, selection, legal references, period and current state under the org lock; stale or spent proof conflicts without effect. One decision and one legal acceptance commit together. An exact same-key replay returns the original result without another payment or acceptance. Foreign ownership answers 404 without disclosure; pending or held cannot charge.",
|
|
10156
|
+
"description": "Checkout and paid-change decisions require confirmation_proof along with the operation key, quote revision and buyer fingerprint shown in the persisted C.4 display. Cloud rechecks buyer, quote, selection, legal references, period and current state under the org lock; stale or spent proof conflicts without effect. One decision and one legal acceptance commit together. An exact same-key replay returns the original result without another payment or acceptance. A paid change can return 409 target_state_conflict with field billing and rule charge_in_progress while an earlier charge is unresolved; it does not start another charge. Foreign ownership answers 404 without disclosure; pending or held cannot charge.",
|
|
10090
10157
|
"requestBody": {
|
|
10091
10158
|
"required": true,
|
|
10092
10159
|
"content": {
|
|
@@ -10278,7 +10345,7 @@
|
|
|
10278
10345
|
}
|
|
10279
10346
|
}
|
|
10280
10347
|
},
|
|
10281
|
-
"description": "The request names an absolute plan/cycle/add-on target and a stable operation_key. Start is nonbinding for every change, including zero-charge, scheduled and formerly immediate decreases: it neither changes the plan nor writes legal acceptance. An eligible Owner obtains a C.4 display and explicitly confirms with its proof. Confirmation may return accepted_no_payment with charged: null and no provider payment or redirect, or payment_started for a charged change. Exact-key lookup recovers the accepted result. Existing no_account, past_due, no_valid_mandate and plan_limit conflicts remain.",
|
|
10348
|
+
"description": "The request names an absolute plan/cycle/add-on target and a stable operation_key. Start is nonbinding for every change, including zero-charge, scheduled and formerly immediate decreases: it neither changes the plan nor writes legal acceptance. An eligible Owner obtains a C.4 display and explicitly confirms with its proof. Confirmation may return accepted_no_payment with charged: null and no provider payment or redirect, or payment_started for a charged change. Exact-key lookup recovers the accepted result. Existing no_account, past_due, no_valid_mandate and plan_limit conflicts remain. A later paid-change confirmation can return 409 target_state_conflict with field billing and rule charge_in_progress while an earlier charge is unresolved; no second charge starts.",
|
|
10282
10349
|
"requestBody": {
|
|
10283
10350
|
"required": true,
|
|
10284
10351
|
"content": {
|
|
@@ -10421,7 +10488,7 @@
|
|
|
10421
10488
|
"/api/billing/invoices/{id}/pdf": {
|
|
10422
10489
|
"get": {
|
|
10423
10490
|
"operationId": "get_api_billing_invoices_id_pdf",
|
|
10424
|
-
"summary": "Downloads
|
|
10491
|
+
"summary": "Downloads an invoice's original or cancellation PDF.",
|
|
10425
10492
|
"tags": [
|
|
10426
10493
|
"billing"
|
|
10427
10494
|
],
|
|
@@ -10439,6 +10506,19 @@
|
|
|
10439
10506
|
"schema": {
|
|
10440
10507
|
"type": "string"
|
|
10441
10508
|
}
|
|
10509
|
+
},
|
|
10510
|
+
{
|
|
10511
|
+
"name": "kind",
|
|
10512
|
+
"in": "query",
|
|
10513
|
+
"required": false,
|
|
10514
|
+
"schema": {
|
|
10515
|
+
"description": "The original invoice or its stored cancellation PDF; omitted means `invoice`.",
|
|
10516
|
+
"type": "string",
|
|
10517
|
+
"enum": [
|
|
10518
|
+
"invoice",
|
|
10519
|
+
"cancellation"
|
|
10520
|
+
]
|
|
10521
|
+
}
|
|
10442
10522
|
}
|
|
10443
10523
|
],
|
|
10444
10524
|
"responses": {
|
|
@@ -10454,7 +10534,7 @@
|
|
|
10454
10534
|
}
|
|
10455
10535
|
},
|
|
10456
10536
|
"default": {
|
|
10457
|
-
"description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `tier_required`, `not_found`.",
|
|
10537
|
+
"description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `tier_required`, `validation_error`, `not_found`.",
|
|
10458
10538
|
"content": {
|
|
10459
10539
|
"application/json": {
|
|
10460
10540
|
"schema": {
|
|
@@ -10464,7 +10544,7 @@
|
|
|
10464
10544
|
}
|
|
10465
10545
|
}
|
|
10466
10546
|
},
|
|
10467
|
-
"description": "
|
|
10547
|
+
"description": "Owner-only. Omitted `kind` or `kind=invoice` returns the original PDF, rendered once with `pdfkit` when issued and stored as bytes. `kind=cancellation` returns the stored cancellation PDF for this same invoice id; no read renders a new PDF. `404 not_found` for an unknown id, one from another org, or a missing cancellation number or PDF. This reads historical Cloud invoices only: a due charge has no PDF of its own here — its eventual Lexware invoice is a document, read through `GET /api/billing/documents/:id/file`."
|
|
10468
10548
|
}
|
|
10469
10549
|
},
|
|
10470
10550
|
"/api/billing/documents": {
|
|
@@ -14208,10 +14288,22 @@
|
|
|
14208
14288
|
"enum": [
|
|
14209
14289
|
"open",
|
|
14210
14290
|
"paid",
|
|
14211
|
-
"uncollectible"
|
|
14291
|
+
"uncollectible",
|
|
14292
|
+
"cancelled"
|
|
14212
14293
|
],
|
|
14213
14294
|
"description": "This invoice's own status."
|
|
14214
14295
|
},
|
|
14296
|
+
"cancellation_document_url": {
|
|
14297
|
+
"anyOf": [
|
|
14298
|
+
{
|
|
14299
|
+
"type": "string"
|
|
14300
|
+
},
|
|
14301
|
+
{
|
|
14302
|
+
"type": "null"
|
|
14303
|
+
}
|
|
14304
|
+
],
|
|
14305
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
14306
|
+
},
|
|
14215
14307
|
"currency": {
|
|
14216
14308
|
"type": "string",
|
|
14217
14309
|
"enum": [
|
|
@@ -14250,6 +14342,7 @@
|
|
|
14250
14342
|
"number",
|
|
14251
14343
|
"issued_at",
|
|
14252
14344
|
"status",
|
|
14345
|
+
"cancellation_document_url",
|
|
14253
14346
|
"currency",
|
|
14254
14347
|
"net_cents",
|
|
14255
14348
|
"vat_rate_percent",
|
|
@@ -14519,10 +14612,22 @@
|
|
|
14519
14612
|
"enum": [
|
|
14520
14613
|
"open",
|
|
14521
14614
|
"paid",
|
|
14522
|
-
"uncollectible"
|
|
14615
|
+
"uncollectible",
|
|
14616
|
+
"cancelled"
|
|
14523
14617
|
],
|
|
14524
14618
|
"description": "This invoice's own status."
|
|
14525
14619
|
},
|
|
14620
|
+
"cancellation_document_url": {
|
|
14621
|
+
"anyOf": [
|
|
14622
|
+
{
|
|
14623
|
+
"type": "string"
|
|
14624
|
+
},
|
|
14625
|
+
{
|
|
14626
|
+
"type": "null"
|
|
14627
|
+
}
|
|
14628
|
+
],
|
|
14629
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
14630
|
+
},
|
|
14526
14631
|
"currency": {
|
|
14527
14632
|
"type": "string",
|
|
14528
14633
|
"enum": [
|
|
@@ -14561,6 +14666,7 @@
|
|
|
14561
14666
|
"number",
|
|
14562
14667
|
"issued_at",
|
|
14563
14668
|
"status",
|
|
14669
|
+
"cancellation_document_url",
|
|
14564
14670
|
"currency",
|
|
14565
14671
|
"net_cents",
|
|
14566
14672
|
"vat_rate_percent",
|
|
@@ -15354,10 +15460,22 @@
|
|
|
15354
15460
|
"enum": [
|
|
15355
15461
|
"open",
|
|
15356
15462
|
"paid",
|
|
15357
|
-
"uncollectible"
|
|
15463
|
+
"uncollectible",
|
|
15464
|
+
"cancelled"
|
|
15358
15465
|
],
|
|
15359
15466
|
"description": "This invoice's own status."
|
|
15360
15467
|
},
|
|
15468
|
+
"cancellation_document_url": {
|
|
15469
|
+
"anyOf": [
|
|
15470
|
+
{
|
|
15471
|
+
"type": "string"
|
|
15472
|
+
},
|
|
15473
|
+
{
|
|
15474
|
+
"type": "null"
|
|
15475
|
+
}
|
|
15476
|
+
],
|
|
15477
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
15478
|
+
},
|
|
15361
15479
|
"currency": {
|
|
15362
15480
|
"type": "string",
|
|
15363
15481
|
"enum": [
|
|
@@ -15396,6 +15514,7 @@
|
|
|
15396
15514
|
"number",
|
|
15397
15515
|
"issued_at",
|
|
15398
15516
|
"status",
|
|
15517
|
+
"cancellation_document_url",
|
|
15399
15518
|
"currency",
|
|
15400
15519
|
"net_cents",
|
|
15401
15520
|
"vat_rate_percent",
|
|
@@ -19913,10 +20032,22 @@
|
|
|
19913
20032
|
"enum": [
|
|
19914
20033
|
"open",
|
|
19915
20034
|
"paid",
|
|
19916
|
-
"uncollectible"
|
|
20035
|
+
"uncollectible",
|
|
20036
|
+
"cancelled"
|
|
19917
20037
|
],
|
|
19918
20038
|
"description": "This invoice's own status."
|
|
19919
20039
|
},
|
|
20040
|
+
"cancellation_document_url": {
|
|
20041
|
+
"anyOf": [
|
|
20042
|
+
{
|
|
20043
|
+
"type": "string"
|
|
20044
|
+
},
|
|
20045
|
+
{
|
|
20046
|
+
"type": "null"
|
|
20047
|
+
}
|
|
20048
|
+
],
|
|
20049
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
20050
|
+
},
|
|
19920
20051
|
"currency": {
|
|
19921
20052
|
"type": "string",
|
|
19922
20053
|
"enum": [
|
|
@@ -19955,6 +20086,7 @@
|
|
|
19955
20086
|
"number",
|
|
19956
20087
|
"issued_at",
|
|
19957
20088
|
"status",
|
|
20089
|
+
"cancellation_document_url",
|
|
19958
20090
|
"currency",
|
|
19959
20091
|
"net_cents",
|
|
19960
20092
|
"vat_rate_percent",
|
|
@@ -21688,6 +21820,20 @@
|
|
|
21688
21820
|
"low_bandwidth": {
|
|
21689
21821
|
"type": "boolean",
|
|
21690
21822
|
"description": "Whether the bridge is in its low-bandwidth mode: datapoints capped, cameras reduced or stopped. Bridge-reported."
|
|
21823
|
+
},
|
|
21824
|
+
"health_reason": {
|
|
21825
|
+
"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.",
|
|
21826
|
+
"anyOf": [
|
|
21827
|
+
{
|
|
21828
|
+
"type": "string",
|
|
21829
|
+
"enum": [
|
|
21830
|
+
"job_query_unanswered"
|
|
21831
|
+
]
|
|
21832
|
+
},
|
|
21833
|
+
{
|
|
21834
|
+
"type": "null"
|
|
21835
|
+
}
|
|
21836
|
+
]
|
|
21691
21837
|
}
|
|
21692
21838
|
},
|
|
21693
21839
|
"required": [
|
|
@@ -34244,10 +34390,22 @@
|
|
|
34244
34390
|
"enum": [
|
|
34245
34391
|
"open",
|
|
34246
34392
|
"paid",
|
|
34247
|
-
"uncollectible"
|
|
34393
|
+
"uncollectible",
|
|
34394
|
+
"cancelled"
|
|
34248
34395
|
],
|
|
34249
34396
|
"description": "This invoice's own status."
|
|
34250
34397
|
},
|
|
34398
|
+
"cancellation_document_url": {
|
|
34399
|
+
"anyOf": [
|
|
34400
|
+
{
|
|
34401
|
+
"type": "string"
|
|
34402
|
+
},
|
|
34403
|
+
{
|
|
34404
|
+
"type": "null"
|
|
34405
|
+
}
|
|
34406
|
+
],
|
|
34407
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
34408
|
+
},
|
|
34251
34409
|
"currency": {
|
|
34252
34410
|
"type": "string",
|
|
34253
34411
|
"enum": [
|
|
@@ -34286,6 +34444,7 @@
|
|
|
34286
34444
|
"number",
|
|
34287
34445
|
"issued_at",
|
|
34288
34446
|
"status",
|
|
34447
|
+
"cancellation_document_url",
|
|
34289
34448
|
"currency",
|
|
34290
34449
|
"net_cents",
|
|
34291
34450
|
"vat_rate_percent",
|
|
@@ -34555,10 +34714,22 @@
|
|
|
34555
34714
|
"enum": [
|
|
34556
34715
|
"open",
|
|
34557
34716
|
"paid",
|
|
34558
|
-
"uncollectible"
|
|
34717
|
+
"uncollectible",
|
|
34718
|
+
"cancelled"
|
|
34559
34719
|
],
|
|
34560
34720
|
"description": "This invoice's own status."
|
|
34561
34721
|
},
|
|
34722
|
+
"cancellation_document_url": {
|
|
34723
|
+
"anyOf": [
|
|
34724
|
+
{
|
|
34725
|
+
"type": "string"
|
|
34726
|
+
},
|
|
34727
|
+
{
|
|
34728
|
+
"type": "null"
|
|
34729
|
+
}
|
|
34730
|
+
],
|
|
34731
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
34732
|
+
},
|
|
34562
34733
|
"currency": {
|
|
34563
34734
|
"type": "string",
|
|
34564
34735
|
"enum": [
|
|
@@ -34597,6 +34768,7 @@
|
|
|
34597
34768
|
"number",
|
|
34598
34769
|
"issued_at",
|
|
34599
34770
|
"status",
|
|
34771
|
+
"cancellation_document_url",
|
|
34600
34772
|
"currency",
|
|
34601
34773
|
"net_cents",
|
|
34602
34774
|
"vat_rate_percent",
|
|
@@ -35390,10 +35562,22 @@
|
|
|
35390
35562
|
"enum": [
|
|
35391
35563
|
"open",
|
|
35392
35564
|
"paid",
|
|
35393
|
-
"uncollectible"
|
|
35565
|
+
"uncollectible",
|
|
35566
|
+
"cancelled"
|
|
35394
35567
|
],
|
|
35395
35568
|
"description": "This invoice's own status."
|
|
35396
35569
|
},
|
|
35570
|
+
"cancellation_document_url": {
|
|
35571
|
+
"anyOf": [
|
|
35572
|
+
{
|
|
35573
|
+
"type": "string"
|
|
35574
|
+
},
|
|
35575
|
+
{
|
|
35576
|
+
"type": "null"
|
|
35577
|
+
}
|
|
35578
|
+
],
|
|
35579
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
35580
|
+
},
|
|
35397
35581
|
"currency": {
|
|
35398
35582
|
"type": "string",
|
|
35399
35583
|
"enum": [
|
|
@@ -35432,6 +35616,7 @@
|
|
|
35432
35616
|
"number",
|
|
35433
35617
|
"issued_at",
|
|
35434
35618
|
"status",
|
|
35619
|
+
"cancellation_document_url",
|
|
35435
35620
|
"currency",
|
|
35436
35621
|
"net_cents",
|
|
35437
35622
|
"vat_rate_percent",
|
|
@@ -36119,6 +36304,158 @@
|
|
|
36119
36304
|
],
|
|
36120
36305
|
"additionalProperties": false
|
|
36121
36306
|
},
|
|
36307
|
+
"recover-held-job-request": {
|
|
36308
|
+
"type": "object",
|
|
36309
|
+
"properties": {
|
|
36310
|
+
"job_id": {
|
|
36311
|
+
"type": "string",
|
|
36312
|
+
"format": "uuid",
|
|
36313
|
+
"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)$",
|
|
36314
|
+
"description": "The exact held job id read from the robot job state; another job must never be released by a stale request."
|
|
36315
|
+
},
|
|
36316
|
+
"verified_stopped": {
|
|
36317
|
+
"type": "boolean",
|
|
36318
|
+
"const": true,
|
|
36319
|
+
"description": "The Owner confirms a physical stop and safety check; this is not a cloud sensor reading."
|
|
36320
|
+
},
|
|
36321
|
+
"reason": {
|
|
36322
|
+
"type": "string",
|
|
36323
|
+
"minLength": 10,
|
|
36324
|
+
"maxLength": 500,
|
|
36325
|
+
"description": "The Owner's reason and safety-check record, 10–500 characters after trimming; retained in the audit trail."
|
|
36326
|
+
}
|
|
36327
|
+
},
|
|
36328
|
+
"required": [
|
|
36329
|
+
"job_id",
|
|
36330
|
+
"verified_stopped",
|
|
36331
|
+
"reason"
|
|
36332
|
+
],
|
|
36333
|
+
"additionalProperties": false
|
|
36334
|
+
},
|
|
36335
|
+
"recover-held-job-response": {
|
|
36336
|
+
"type": "object",
|
|
36337
|
+
"properties": {
|
|
36338
|
+
"job": {
|
|
36339
|
+
"type": "object",
|
|
36340
|
+
"properties": {
|
|
36341
|
+
"id": {
|
|
36342
|
+
"type": "string",
|
|
36343
|
+
"format": "uuid",
|
|
36344
|
+
"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)$",
|
|
36345
|
+
"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."
|
|
36346
|
+
},
|
|
36347
|
+
"robot_id": {
|
|
36348
|
+
"type": "string",
|
|
36349
|
+
"format": "uuid",
|
|
36350
|
+
"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)$",
|
|
36351
|
+
"description": "The robot this job is running on."
|
|
36352
|
+
},
|
|
36353
|
+
"slug": {
|
|
36354
|
+
"type": "string",
|
|
36355
|
+
"minLength": 2,
|
|
36356
|
+
"maxLength": 63,
|
|
36357
|
+
"pattern": "^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$",
|
|
36358
|
+
"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."
|
|
36359
|
+
},
|
|
36360
|
+
"state": {
|
|
36361
|
+
"type": "string",
|
|
36362
|
+
"enum": [
|
|
36363
|
+
"running",
|
|
36364
|
+
"unknown",
|
|
36365
|
+
"succeeded",
|
|
36366
|
+
"failed",
|
|
36367
|
+
"cancelled",
|
|
36368
|
+
"lost"
|
|
36369
|
+
],
|
|
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: the bridge stated it does not know the job and nothing else runs on its action, or the action server vanished mid-goal."
|
|
36371
|
+
},
|
|
36372
|
+
"origin": {
|
|
36373
|
+
"type": "string",
|
|
36374
|
+
"enum": [
|
|
36375
|
+
"fleetless",
|
|
36376
|
+
"external"
|
|
36377
|
+
],
|
|
36378
|
+
"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`."
|
|
36379
|
+
},
|
|
36380
|
+
"started_at": {
|
|
36381
|
+
"type": "string",
|
|
36382
|
+
"format": "date-time",
|
|
36383
|
+
"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))$",
|
|
36384
|
+
"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."
|
|
36385
|
+
},
|
|
36386
|
+
"updated_at": {
|
|
36387
|
+
"type": "string",
|
|
36388
|
+
"format": "date-time",
|
|
36389
|
+
"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))$",
|
|
36390
|
+
"description": "When this job last changed, as an ISO 8601 timestamp."
|
|
36391
|
+
},
|
|
36392
|
+
"seq": {
|
|
36393
|
+
"type": "integer",
|
|
36394
|
+
"exclusiveMinimum": 0,
|
|
36395
|
+
"maximum": 9007199254740991,
|
|
36396
|
+
"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."
|
|
36397
|
+
},
|
|
36398
|
+
"result": {
|
|
36399
|
+
"anyOf": [
|
|
36400
|
+
{},
|
|
36401
|
+
{
|
|
36402
|
+
"type": "null"
|
|
36403
|
+
}
|
|
36404
|
+
],
|
|
36405
|
+
"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."
|
|
36406
|
+
},
|
|
36407
|
+
"error": {
|
|
36408
|
+
"anyOf": [
|
|
36409
|
+
{
|
|
36410
|
+
"type": "object",
|
|
36411
|
+
"properties": {
|
|
36412
|
+
"code": {
|
|
36413
|
+
"type": "string",
|
|
36414
|
+
"minLength": 1,
|
|
36415
|
+
"description": "A machine-readable code for the failure, such as `job_queue_full`, where one exists for it."
|
|
36416
|
+
},
|
|
36417
|
+
"message": {
|
|
36418
|
+
"type": "string",
|
|
36419
|
+
"minLength": 1,
|
|
36420
|
+
"description": "A human-readable sentence saying what went wrong."
|
|
36421
|
+
},
|
|
36422
|
+
"details": {
|
|
36423
|
+
"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."
|
|
36424
|
+
}
|
|
36425
|
+
},
|
|
36426
|
+
"required": [
|
|
36427
|
+
"code",
|
|
36428
|
+
"message"
|
|
36429
|
+
],
|
|
36430
|
+
"additionalProperties": false
|
|
36431
|
+
},
|
|
36432
|
+
{
|
|
36433
|
+
"type": "null"
|
|
36434
|
+
}
|
|
36435
|
+
],
|
|
36436
|
+
"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."
|
|
36437
|
+
}
|
|
36438
|
+
},
|
|
36439
|
+
"required": [
|
|
36440
|
+
"id",
|
|
36441
|
+
"robot_id",
|
|
36442
|
+
"slug",
|
|
36443
|
+
"state",
|
|
36444
|
+
"origin",
|
|
36445
|
+
"started_at",
|
|
36446
|
+
"updated_at",
|
|
36447
|
+
"seq",
|
|
36448
|
+
"result",
|
|
36449
|
+
"error"
|
|
36450
|
+
],
|
|
36451
|
+
"additionalProperties": false
|
|
36452
|
+
}
|
|
36453
|
+
},
|
|
36454
|
+
"required": [
|
|
36455
|
+
"job"
|
|
36456
|
+
],
|
|
36457
|
+
"additionalProperties": false
|
|
36458
|
+
},
|
|
36122
36459
|
"recovery-codes-response": {
|
|
36123
36460
|
"type": "object",
|
|
36124
36461
|
"properties": {
|
|
@@ -36393,6 +36730,20 @@
|
|
|
36393
36730
|
"low_bandwidth": {
|
|
36394
36731
|
"type": "boolean",
|
|
36395
36732
|
"description": "Whether the bridge is in its low-bandwidth mode: datapoints capped, cameras reduced or stopped. Bridge-reported."
|
|
36733
|
+
},
|
|
36734
|
+
"health_reason": {
|
|
36735
|
+
"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.",
|
|
36736
|
+
"anyOf": [
|
|
36737
|
+
{
|
|
36738
|
+
"type": "string",
|
|
36739
|
+
"enum": [
|
|
36740
|
+
"job_query_unanswered"
|
|
36741
|
+
]
|
|
36742
|
+
},
|
|
36743
|
+
{
|
|
36744
|
+
"type": "null"
|
|
36745
|
+
}
|
|
36746
|
+
]
|
|
36396
36747
|
}
|
|
36397
36748
|
},
|
|
36398
36749
|
"required": [
|
|
@@ -36848,6 +37199,20 @@
|
|
|
36848
37199
|
"low_bandwidth": {
|
|
36849
37200
|
"type": "boolean",
|
|
36850
37201
|
"description": "Whether the bridge is in its low-bandwidth mode: datapoints capped, cameras reduced or stopped. Bridge-reported."
|
|
37202
|
+
},
|
|
37203
|
+
"health_reason": {
|
|
37204
|
+
"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.",
|
|
37205
|
+
"anyOf": [
|
|
37206
|
+
{
|
|
37207
|
+
"type": "string",
|
|
37208
|
+
"enum": [
|
|
37209
|
+
"job_query_unanswered"
|
|
37210
|
+
]
|
|
37211
|
+
},
|
|
37212
|
+
{
|
|
37213
|
+
"type": "null"
|
|
37214
|
+
}
|
|
37215
|
+
]
|
|
36851
37216
|
}
|
|
36852
37217
|
},
|
|
36853
37218
|
"required": [
|