@fleetless/contracts 10.1.0 → 11.1.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/artifacts/openapi.json +288 -24
  3. package/artifacts/routes.json +7 -6
  4. package/artifacts/schema/asset-list-response.schema.json +83 -3
  5. package/artifacts/schema/asset-sync-status.schema.json +83 -3
  6. package/artifacts/schema/billing-change-response.schema.json +42 -3
  7. package/artifacts/schema/billing-invoice-pdf-query.schema.json +15 -0
  8. package/artifacts/schema/billing-invoice.schema.json +14 -1
  9. package/artifacts/schema/billing-view.schema.json +14 -1
  10. package/artifacts/schema/bridge-asset-progress.schema.json +81 -2
  11. package/artifacts/schema/busy-details.schema.json +1 -1
  12. package/artifacts/schema/command-result.schema.json +1 -1
  13. package/artifacts/schema/invoke-or-service-response.schema.json +1 -1
  14. package/artifacts/schema/invoke-response.schema.json +1 -1
  15. package/artifacts/schema/job-event.schema.json +1 -1
  16. package/artifacts/schema/job-response.schema.json +1 -1
  17. package/artifacts/schema/job-run-list-response.schema.json +1 -1
  18. package/artifacts/schema/job-run.schema.json +1 -1
  19. package/artifacts/schema/job.schema.json +1 -1
  20. package/artifacts/schema/purchase-intent-response.schema.json +42 -3
  21. package/artifacts/schema/recover-held-job-response.schema.json +1 -1
  22. package/artifacts/schema/robot-jobs-response.schema.json +1 -1
  23. package/artifacts/schema-outgoing/bridge-asset-progress.schema.json +83 -3
  24. package/dist/assets.d.ts +20 -10
  25. package/dist/assets.js +38 -18
  26. package/dist/billing.d.ts +32 -7
  27. package/dist/billing.js +9 -2
  28. package/dist/errors.d.ts +7 -19
  29. package/dist/errors.js +6 -22
  30. package/dist/file-too-large-details.d.ts +18 -0
  31. package/dist/file-too-large-details.js +21 -0
  32. package/dist/index.d.ts +2 -2
  33. package/dist/index.js +1 -1
  34. package/dist/jobs.js +2 -2
  35. package/dist/protocol.d.ts +6 -2
  36. package/dist/protocol.js +2 -2
  37. package/dist/routes.js +10 -9
  38. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -9,6 +9,32 @@ version.
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ### Added
13
+
14
+ - `file_limit` on a `refused` asset sync failure carries the enforced per-file
15
+ limit and known file size through Bridge progress and Cloud sync status.
16
+ Store-full `details` stays separate; failure kinds are unchanged.
17
+
18
+ ### Fixed
19
+
20
+ - Corrected the exported `Job.state` and `JobRun.state` descriptions of final
21
+ `lost` causes, including terminal status without a recoverable result, and
22
+ the `job_lost` fallback for a bridge loss frame without an explicit error.
23
+ Wire shapes and error codes are unchanged.
24
+
25
+ ## [11.0.0] — 2026-11-02
26
+
27
+ ### Added
28
+
29
+ - `cancelled` invoice status, required nullable `cancellation_document_url` for
30
+ historical Cloud invoices, and optional `kind=invoice|cancellation` on the
31
+ owner-only invoice PDF route. Omitting `kind` still returns the original PDF.
32
+
33
+ ### Fixed
34
+
35
+ - Corrected billing error and route notes for interrupted Mollie charges,
36
+ `charge_in_progress`, and first-checkout reuse or `checkout_open` refusal.
37
+
12
38
  ## [10.1.0] — 2026-11-01
13
39
 
14
40
  ### Added
@@ -9960,7 +9960,7 @@
9960
9960
  }
9961
9961
  }
9962
9962
  },
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; same key/input recovers the intent, changed input conflicts. 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.",
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.",
9964
9964
  "requestBody": {
9965
9965
  "required": true,
9966
9966
  "content": {
@@ -10153,7 +10153,7 @@
10153
10153
  }
10154
10154
  }
10155
10155
  },
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. 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.",
10157
10157
  "requestBody": {
10158
10158
  "required": true,
10159
10159
  "content": {
@@ -10345,7 +10345,7 @@
10345
10345
  }
10346
10346
  }
10347
10347
  },
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.",
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.",
10349
10349
  "requestBody": {
10350
10350
  "required": true,
10351
10351
  "content": {
@@ -10488,7 +10488,7 @@
10488
10488
  "/api/billing/invoices/{id}/pdf": {
10489
10489
  "get": {
10490
10490
  "operationId": "get_api_billing_invoices_id_pdf",
10491
- "summary": "Downloads one invoice's rendered PDF.",
10491
+ "summary": "Downloads an invoice's original or cancellation PDF.",
10492
10492
  "tags": [
10493
10493
  "billing"
10494
10494
  ],
@@ -10506,6 +10506,19 @@
10506
10506
  "schema": {
10507
10507
  "type": "string"
10508
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
+ }
10509
10522
  }
10510
10523
  ],
10511
10524
  "responses": {
@@ -10521,7 +10534,7 @@
10521
10534
  }
10522
10535
  },
10523
10536
  "default": {
10524
- "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`.",
10525
10538
  "content": {
10526
10539
  "application/json": {
10527
10540
  "schema": {
@@ -10531,7 +10544,7 @@
10531
10544
  }
10532
10545
  }
10533
10546
  },
10534
- "description": "Rendered once, with `pdfkit`, when the invoice is issued, and stored as bytes — an issued invoice never changes, so this always answers the same PDF for the same id. `404 not_found` for an unknown id or one from another org. 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`."
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`."
10535
10548
  }
10536
10549
  },
10537
10550
  "/api/billing/documents": {
@@ -12293,10 +12306,10 @@
12293
12306
  "upload_failed",
12294
12307
  "refused"
12295
12308
  ],
12296
- "description": "Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed, and `refused` means it was never attempted, either because the robot's asset store had no room — then `details` carries the three numbers — or because a producer-side ceiling was hit."
12309
+ "description": "Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed. `refused` means the store or per-file limit refused the upload, or the producer did not examine the reference; it remains transient for reconciliation."
12297
12310
  },
12298
12311
  "details": {
12299
- "description": "The three numbers behind a `refused` entry the robot's store had no room for, and absent for every other kind — a forced `null` on every `unresolvable` entry buys nothing. A `refused` entry may also carry no details: the producer's own ceiling is the other half of that kind, and no store number describes it.",
12312
+ "description": "The three numbers behind a `refused` entry the robot's store had no room for. Absent for every other kind and exclusive with `file_limit`; a forced `null` on every other entry buys nothing.",
12300
12313
  "anyOf": [
12301
12314
  {
12302
12315
  "type": "object",
@@ -12331,13 +12344,93 @@
12331
12344
  "type": "null"
12332
12345
  }
12333
12346
  ]
12347
+ },
12348
+ "file_limit": {
12349
+ "description": "The enforced per-file limit and refused file size, if known, for a `refused` upload that received `413 file_too_large`. Exclusive with store-full `details`; absent on bare refusals and every other kind.",
12350
+ "anyOf": [
12351
+ {
12352
+ "type": "object",
12353
+ "properties": {
12354
+ "max_bytes": {
12355
+ "type": "integer",
12356
+ "exclusiveMinimum": 0,
12357
+ "maximum": 9007199254740991,
12358
+ "description": "The most one asset file can be, in bytes: `ASSET_FILE_MAX_BYTES`, the same on every plan."
12359
+ },
12360
+ "size_bytes": {
12361
+ "anyOf": [
12362
+ {
12363
+ "type": "integer",
12364
+ "exclusiveMinimum": 0,
12365
+ "maximum": 9007199254740991
12366
+ },
12367
+ {
12368
+ "type": "null"
12369
+ }
12370
+ ],
12371
+ "description": "The refused file's size, in bytes: the announced size, or the bytes that arrived when none (or a false one) was announced; `null` only when the body limit stopped the upload and nobody counted the bytes."
12372
+ }
12373
+ },
12374
+ "required": [
12375
+ "max_bytes",
12376
+ "size_bytes"
12377
+ ],
12378
+ "additionalProperties": false
12379
+ },
12380
+ {
12381
+ "type": "null"
12382
+ }
12383
+ ]
12334
12384
  }
12335
12385
  },
12336
12386
  "required": [
12337
12387
  "reference",
12338
12388
  "kind"
12339
12389
  ],
12340
- "additionalProperties": false
12390
+ "additionalProperties": false,
12391
+ "allOf": [
12392
+ {
12393
+ "if": {
12394
+ "properties": {
12395
+ "details": {
12396
+ "type": "object"
12397
+ }
12398
+ },
12399
+ "required": [
12400
+ "details"
12401
+ ]
12402
+ },
12403
+ "then": {
12404
+ "properties": {
12405
+ "kind": {
12406
+ "const": "refused"
12407
+ }
12408
+ }
12409
+ }
12410
+ },
12411
+ {
12412
+ "if": {
12413
+ "properties": {
12414
+ "file_limit": {
12415
+ "type": "object"
12416
+ }
12417
+ },
12418
+ "required": [
12419
+ "file_limit"
12420
+ ]
12421
+ },
12422
+ "then": {
12423
+ "properties": {
12424
+ "kind": {
12425
+ "const": "refused"
12426
+ },
12427
+ "details": {
12428
+ "type": "null"
12429
+ }
12430
+ }
12431
+ }
12432
+ }
12433
+ ]
12341
12434
  },
12342
12435
  "description": "What could not be provided, one entry per reference, each saying why. Required rather than optional: a sync that quietly drops three meshes and reports success moves the failure into somebody's renderer, where it shows up as a robot with missing limbs and no cause. At most `1000` entries — a producer at its own ceiling reports one entry saying so rather than growing the list."
12343
12436
  },
@@ -12601,10 +12694,10 @@
12601
12694
  "upload_failed",
12602
12695
  "refused"
12603
12696
  ],
12604
- "description": "Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed, and `refused` means it was never attempted, either because the robot's asset store had no room — then `details` carries the three numbers — or because a producer-side ceiling was hit."
12697
+ "description": "Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed. `refused` means the store or per-file limit refused the upload, or the producer did not examine the reference; it remains transient for reconciliation."
12605
12698
  },
12606
12699
  "details": {
12607
- "description": "The three numbers behind a `refused` entry the robot's store had no room for, and absent for every other kind — a forced `null` on every `unresolvable` entry buys nothing. A `refused` entry may also carry no details: the producer's own ceiling is the other half of that kind, and no store number describes it.",
12700
+ "description": "The three numbers behind a `refused` entry the robot's store had no room for. Absent for every other kind and exclusive with `file_limit`; a forced `null` on every other entry buys nothing.",
12608
12701
  "anyOf": [
12609
12702
  {
12610
12703
  "type": "object",
@@ -12639,13 +12732,93 @@
12639
12732
  "type": "null"
12640
12733
  }
12641
12734
  ]
12735
+ },
12736
+ "file_limit": {
12737
+ "description": "The enforced per-file limit and refused file size, if known, for a `refused` upload that received `413 file_too_large`. Exclusive with store-full `details`; absent on bare refusals and every other kind.",
12738
+ "anyOf": [
12739
+ {
12740
+ "type": "object",
12741
+ "properties": {
12742
+ "max_bytes": {
12743
+ "type": "integer",
12744
+ "exclusiveMinimum": 0,
12745
+ "maximum": 9007199254740991,
12746
+ "description": "The most one asset file can be, in bytes: `ASSET_FILE_MAX_BYTES`, the same on every plan."
12747
+ },
12748
+ "size_bytes": {
12749
+ "anyOf": [
12750
+ {
12751
+ "type": "integer",
12752
+ "exclusiveMinimum": 0,
12753
+ "maximum": 9007199254740991
12754
+ },
12755
+ {
12756
+ "type": "null"
12757
+ }
12758
+ ],
12759
+ "description": "The refused file's size, in bytes: the announced size, or the bytes that arrived when none (or a false one) was announced; `null` only when the body limit stopped the upload and nobody counted the bytes."
12760
+ }
12761
+ },
12762
+ "required": [
12763
+ "max_bytes",
12764
+ "size_bytes"
12765
+ ],
12766
+ "additionalProperties": false
12767
+ },
12768
+ {
12769
+ "type": "null"
12770
+ }
12771
+ ]
12642
12772
  }
12643
12773
  },
12644
12774
  "required": [
12645
12775
  "reference",
12646
12776
  "kind"
12647
12777
  ],
12648
- "additionalProperties": false
12778
+ "additionalProperties": false,
12779
+ "allOf": [
12780
+ {
12781
+ "if": {
12782
+ "properties": {
12783
+ "details": {
12784
+ "type": "object"
12785
+ }
12786
+ },
12787
+ "required": [
12788
+ "details"
12789
+ ]
12790
+ },
12791
+ "then": {
12792
+ "properties": {
12793
+ "kind": {
12794
+ "const": "refused"
12795
+ }
12796
+ }
12797
+ }
12798
+ },
12799
+ {
12800
+ "if": {
12801
+ "properties": {
12802
+ "file_limit": {
12803
+ "type": "object"
12804
+ }
12805
+ },
12806
+ "required": [
12807
+ "file_limit"
12808
+ ]
12809
+ },
12810
+ "then": {
12811
+ "properties": {
12812
+ "kind": {
12813
+ "const": "refused"
12814
+ },
12815
+ "details": {
12816
+ "type": "null"
12817
+ }
12818
+ }
12819
+ }
12820
+ }
12821
+ ]
12649
12822
  },
12650
12823
  "description": "What could not be provided, one entry per reference, each saying why. Required rather than optional: a sync that quietly drops three meshes and reports success moves the failure into somebody's renderer, where it shows up as a robot with missing limbs and no cause. At most `1000` entries — a producer at its own ceiling reports one entry saying so rather than growing the list."
12651
12824
  },
@@ -14275,10 +14448,22 @@
14275
14448
  "enum": [
14276
14449
  "open",
14277
14450
  "paid",
14278
- "uncollectible"
14451
+ "uncollectible",
14452
+ "cancelled"
14279
14453
  ],
14280
14454
  "description": "This invoice's own status."
14281
14455
  },
14456
+ "cancellation_document_url": {
14457
+ "anyOf": [
14458
+ {
14459
+ "type": "string"
14460
+ },
14461
+ {
14462
+ "type": "null"
14463
+ }
14464
+ ],
14465
+ "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."
14466
+ },
14282
14467
  "currency": {
14283
14468
  "type": "string",
14284
14469
  "enum": [
@@ -14317,6 +14502,7 @@
14317
14502
  "number",
14318
14503
  "issued_at",
14319
14504
  "status",
14505
+ "cancellation_document_url",
14320
14506
  "currency",
14321
14507
  "net_cents",
14322
14508
  "vat_rate_percent",
@@ -14586,10 +14772,22 @@
14586
14772
  "enum": [
14587
14773
  "open",
14588
14774
  "paid",
14589
- "uncollectible"
14775
+ "uncollectible",
14776
+ "cancelled"
14590
14777
  ],
14591
14778
  "description": "This invoice's own status."
14592
14779
  },
14780
+ "cancellation_document_url": {
14781
+ "anyOf": [
14782
+ {
14783
+ "type": "string"
14784
+ },
14785
+ {
14786
+ "type": "null"
14787
+ }
14788
+ ],
14789
+ "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."
14790
+ },
14593
14791
  "currency": {
14594
14792
  "type": "string",
14595
14793
  "enum": [
@@ -14628,6 +14826,7 @@
14628
14826
  "number",
14629
14827
  "issued_at",
14630
14828
  "status",
14829
+ "cancellation_document_url",
14631
14830
  "currency",
14632
14831
  "net_cents",
14633
14832
  "vat_rate_percent",
@@ -15421,10 +15620,22 @@
15421
15620
  "enum": [
15422
15621
  "open",
15423
15622
  "paid",
15424
- "uncollectible"
15623
+ "uncollectible",
15624
+ "cancelled"
15425
15625
  ],
15426
15626
  "description": "This invoice's own status."
15427
15627
  },
15628
+ "cancellation_document_url": {
15629
+ "anyOf": [
15630
+ {
15631
+ "type": "string"
15632
+ },
15633
+ {
15634
+ "type": "null"
15635
+ }
15636
+ ],
15637
+ "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."
15638
+ },
15428
15639
  "currency": {
15429
15640
  "type": "string",
15430
15641
  "enum": [
@@ -15463,6 +15674,7 @@
15463
15674
  "number",
15464
15675
  "issued_at",
15465
15676
  "status",
15677
+ "cancellation_document_url",
15466
15678
  "currency",
15467
15679
  "net_cents",
15468
15680
  "vat_rate_percent",
@@ -19980,10 +20192,22 @@
19980
20192
  "enum": [
19981
20193
  "open",
19982
20194
  "paid",
19983
- "uncollectible"
20195
+ "uncollectible",
20196
+ "cancelled"
19984
20197
  ],
19985
20198
  "description": "This invoice's own status."
19986
20199
  },
20200
+ "cancellation_document_url": {
20201
+ "anyOf": [
20202
+ {
20203
+ "type": "string"
20204
+ },
20205
+ {
20206
+ "type": "null"
20207
+ }
20208
+ ],
20209
+ "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."
20210
+ },
19987
20211
  "currency": {
19988
20212
  "type": "string",
19989
20213
  "enum": [
@@ -20022,6 +20246,7 @@
20022
20246
  "number",
20023
20247
  "issued_at",
20024
20248
  "status",
20249
+ "cancellation_document_url",
20025
20250
  "currency",
20026
20251
  "net_cents",
20027
20252
  "vat_rate_percent",
@@ -26262,7 +26487,7 @@
26262
26487
  "cancelled",
26263
26488
  "lost"
26264
26489
  ],
26265
- "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."
26490
+ "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."
26266
26491
  },
26267
26492
  "origin": {
26268
26493
  "type": "string",
@@ -26434,7 +26659,7 @@
26434
26659
  "cancelled",
26435
26660
  "lost"
26436
26661
  ],
26437
- "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."
26662
+ "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."
26438
26663
  },
26439
26664
  "origin": {
26440
26665
  "type": "string",
@@ -26574,7 +26799,7 @@
26574
26799
  "cancelled",
26575
26800
  "lost"
26576
26801
  ],
26577
- "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: the bridge did not know the run and nothing else ran on its action, so the outcome is unknowable rather than unknown."
26802
+ "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."
26578
26803
  },
26579
26804
  "started_at": {
26580
26805
  "type": "string",
@@ -34325,10 +34550,22 @@
34325
34550
  "enum": [
34326
34551
  "open",
34327
34552
  "paid",
34328
- "uncollectible"
34553
+ "uncollectible",
34554
+ "cancelled"
34329
34555
  ],
34330
34556
  "description": "This invoice's own status."
34331
34557
  },
34558
+ "cancellation_document_url": {
34559
+ "anyOf": [
34560
+ {
34561
+ "type": "string"
34562
+ },
34563
+ {
34564
+ "type": "null"
34565
+ }
34566
+ ],
34567
+ "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."
34568
+ },
34332
34569
  "currency": {
34333
34570
  "type": "string",
34334
34571
  "enum": [
@@ -34367,6 +34604,7 @@
34367
34604
  "number",
34368
34605
  "issued_at",
34369
34606
  "status",
34607
+ "cancellation_document_url",
34370
34608
  "currency",
34371
34609
  "net_cents",
34372
34610
  "vat_rate_percent",
@@ -34636,10 +34874,22 @@
34636
34874
  "enum": [
34637
34875
  "open",
34638
34876
  "paid",
34639
- "uncollectible"
34877
+ "uncollectible",
34878
+ "cancelled"
34640
34879
  ],
34641
34880
  "description": "This invoice's own status."
34642
34881
  },
34882
+ "cancellation_document_url": {
34883
+ "anyOf": [
34884
+ {
34885
+ "type": "string"
34886
+ },
34887
+ {
34888
+ "type": "null"
34889
+ }
34890
+ ],
34891
+ "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."
34892
+ },
34643
34893
  "currency": {
34644
34894
  "type": "string",
34645
34895
  "enum": [
@@ -34678,6 +34928,7 @@
34678
34928
  "number",
34679
34929
  "issued_at",
34680
34930
  "status",
34931
+ "cancellation_document_url",
34681
34932
  "currency",
34682
34933
  "net_cents",
34683
34934
  "vat_rate_percent",
@@ -35471,10 +35722,22 @@
35471
35722
  "enum": [
35472
35723
  "open",
35473
35724
  "paid",
35474
- "uncollectible"
35725
+ "uncollectible",
35726
+ "cancelled"
35475
35727
  ],
35476
35728
  "description": "This invoice's own status."
35477
35729
  },
35730
+ "cancellation_document_url": {
35731
+ "anyOf": [
35732
+ {
35733
+ "type": "string"
35734
+ },
35735
+ {
35736
+ "type": "null"
35737
+ }
35738
+ ],
35739
+ "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."
35740
+ },
35478
35741
  "currency": {
35479
35742
  "type": "string",
35480
35743
  "enum": [
@@ -35513,6 +35776,7 @@
35513
35776
  "number",
35514
35777
  "issued_at",
35515
35778
  "status",
35779
+ "cancellation_document_url",
35516
35780
  "currency",
35517
35781
  "net_cents",
35518
35782
  "vat_rate_percent",
@@ -36263,7 +36527,7 @@
36263
36527
  "cancelled",
36264
36528
  "lost"
36265
36529
  ],
36266
- "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."
36530
+ "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."
36267
36531
  },
36268
36532
  "origin": {
36269
36533
  "type": "string",
@@ -36958,7 +37222,7 @@
36958
37222
  "cancelled",
36959
37223
  "lost"
36960
37224
  ],
36961
- "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."
37225
+ "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."
36962
37226
  },
36963
37227
  "origin": {
36964
37228
  "type": "string",