@printobserver/sdk 0.8.1 → 0.10.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.
@@ -18,9 +18,21 @@ export declare const CONTRACT_VERSION: string;
18
18
  * Every operation this client exposes a method for, which is every operation
19
19
  * the server declares and no other.
20
20
  */
21
- export declare const OPERATION_NAMES: readonly ["prints", "status", "context", "image", "history", "events", "manifest_get", "look", "manifest_set", "spools", "spool", "printer_history", "preflight", "pause", "resume", "cancel", "start_print", "set_feedrate_factor", "set_flowrate_factor", "set_tool_target_c", "set_bed_target_c", "set_fan_percent", "acknowledge_failure", "close_print", "register_spool", "load_spool", "unload_spool", "adjust_spool", "retire_spool"];
21
+ export declare const OPERATION_NAMES: readonly ["prints", "status", "context", "image", "history", "events", "manifest_get", "look", "manifest_set", "spools", "spool", "printer_history", "preflight", "pause", "resume", "cancel", "start_print", "set_feedrate_factor", "set_flowrate_factor", "set_tool_target_c", "set_bed_target_c", "set_fan_percent", "acknowledge_failure", "close_print", "register_spool", "load_spool", "unload_spool", "adjust_spool", "retire_spool", "recover_status", "recover_lift", "recover_cool", "recover_fan", "recover_heat", "recover_park", "recover_home_xy", "recover_home_z"];
22
22
  /** What an operator's acknowledgement of a failure event asks for next. */
23
23
  export type AcknowledgementDisposition = "continue" | "watch" | "stop";
24
+ /**
25
+ * Whether one recovery action is allowed now: `allowed`, and the refusal it
26
+ * would meet, present exactly when it is not.
27
+ */
28
+ export interface ActionAllowance {
29
+ /** One shape of the contracts, which say nothing more about it. */
30
+ action: RecoveryActionKind;
31
+ /** Whether it is allowed now. */
32
+ allowed: boolean;
33
+ /** One shape of the contracts, which say nothing more about it. */
34
+ refusal?: RecoveryRejection;
35
+ }
24
36
  /** What one mutating request left behind it. */
25
37
  export interface ActionAnswer {
26
38
  /** The bounded intervention it opened, when it opened one. */
@@ -134,6 +146,31 @@ export interface AgentAssessmentPayload {
134
146
  /** The session the turn ran in. */
135
147
  session_name: string;
136
148
  }
149
+ /** The bed heater, as a recovery read reports it. */
150
+ export interface BedTemperature {
151
+ /** What it reads, in degrees Celsius, `null` when not reported. */
152
+ actual_c: number | null;
153
+ /**
154
+ * What it is driving towards, in degrees Celsius, `null` when not
155
+ * reported.
156
+ */
157
+ target_c: number | null;
158
+ }
159
+ /**
160
+ * The camera gave no usable frame for a look or a periodic observation,
161
+ * however many times it was asked.
162
+ *
163
+ * Written in place of the look or the observation it was for, so that no
164
+ * frame the camera could not give is handed to the agent as one it did.
165
+ */
166
+ export interface CameraDegradedPayload {
167
+ /** How many frames were fetched, every one of them bad. */
168
+ attempts: number;
169
+ /** Why the last of them was bad. */
170
+ cause: FrameCause;
171
+ /** What was wrong with each, in words. */
172
+ detail: string;
173
+ }
137
174
  /**
138
175
  * Somebody took a fresh look at the print.
139
176
  *
@@ -231,6 +268,33 @@ export interface ContextAnswer {
231
268
  /** Where the latest image's bytes are, absolute on this host. */
232
269
  image_path?: string | null;
233
270
  }
271
+ /**
272
+ * The failure detector's health, and since when it has been so: `since` is
273
+ * `null` exactly while the status is `unchecked`.
274
+ */
275
+ export type DetectorHealth = {
276
+ status: "unchecked";
277
+ since: null;
278
+ } | {
279
+ status: "available";
280
+ since: Timestamp;
281
+ } | {
282
+ status: "unavailable";
283
+ since: Timestamp;
284
+ };
285
+ /**
286
+ * The failure detector's own health changed.
287
+ *
288
+ * The printer's rather than any print's, so it is written with no print.
289
+ */
290
+ export interface DetectorHealthChangedPayload {
291
+ /** What it was answered, in words. */
292
+ detail: string;
293
+ /** What the check found. */
294
+ status: DetectorStatus;
295
+ }
296
+ /** What a check of the failure detector's own health found. */
297
+ export type DetectorStatus = "available" | "unavailable";
234
298
  /**
235
299
  * The envelope intersected with the print's manifest.
236
300
  *
@@ -248,6 +312,8 @@ export interface ErrorAnswer {
248
312
  /** One line saying why, in the words of whatever refused it. */
249
313
  error: string;
250
314
  }
315
+ /** Whose error a job's error is. */
316
+ export type ErrorSource = "printer" | "host";
251
317
  /** A lowercase hyphenated version 7 UUID identifying one event. */
252
318
  export type EventId = string;
253
319
  /**
@@ -399,6 +465,29 @@ export interface FileTallyRebaselinedPayload {
399
465
  /** Where it lives, in the printer's own vocabulary. */
400
466
  origin: string;
401
467
  }
468
+ /**
469
+ * The XY rectangle every extruding move of a file lies inside, in
470
+ * millimetres.
471
+ */
472
+ export interface Footprint {
473
+ /** The largest X. */
474
+ max_x: number;
475
+ /** The largest Y. */
476
+ max_y: number;
477
+ /** The smallest X. */
478
+ min_x: number;
479
+ /** The smallest Y. */
480
+ min_y: number;
481
+ }
482
+ /** Why a camera frame was not one to hand the agent. */
483
+ export type FrameCause = "blank" | "undecodable";
484
+ /** One tool heater whose target was above zero. */
485
+ export interface HeatedTool {
486
+ /** Its target, in degrees Celsius. */
487
+ target_c: number;
488
+ /** The tool's number. */
489
+ tool: number;
490
+ }
402
491
  /**
403
492
  * One heater, as a source reported it.
404
493
  *
@@ -523,6 +612,13 @@ export type InterventionOutcome = "still_active" | "restored" | "restore_unavail
523
612
  by: InterventionId;
524
613
  };
525
614
  };
615
+ /** A job's error, and whose it is. */
616
+ export interface JobError {
617
+ /** Whose it is. */
618
+ source: ErrorSource;
619
+ /** The error, as the source reported it. */
620
+ text: string;
621
+ }
526
622
  /**
527
623
  * What a sliced job declares about itself and about what may be adjusted.
528
624
  *
@@ -558,8 +654,8 @@ export interface JobSnapshot {
558
654
  * Normalized to a fraction here regardless of how the source expresses it.
559
655
  */
560
656
  completion?: Reported | null;
561
- /** The error the source reports, when it reports one. */
562
- error?: string | null;
657
+ /** The error the source reports, when it reports one, and whose it is. */
658
+ error?: JobError | null;
563
659
  /** The whole print's estimated duration, in whole seconds. */
564
660
  estimated_print_time_s?: number | null;
565
661
  /**
@@ -585,6 +681,18 @@ export interface JobSnapshot {
585
681
  /** The state the source reports the job to be in. */
586
682
  state: PrinterState;
587
683
  }
684
+ /**
685
+ * What the last print laid down, read from its own G-code up to the last
686
+ * file position recorded for it.
687
+ */
688
+ export interface LastPrint {
689
+ /** Where in X and Y it laid material. */
690
+ footprint: Footprint;
691
+ /** The print. */
692
+ print_id: PrintId;
693
+ /** The tallest part it laid down, in millimetres. */
694
+ tallest_mm: number;
695
+ }
588
696
  /** One spool loaded on one tool, as a print started. */
589
697
  export interface LoadedSpool {
590
698
  /** The spool loaded on it. */
@@ -711,6 +819,19 @@ export interface OperatorAcknowledgementPayload {
711
819
  /** What the operator asked for next. */
712
820
  disposition: AcknowledgementDisposition;
713
821
  }
822
+ /**
823
+ * The print paused under the printer, and whether resuming it is still safe.
824
+ *
825
+ * A recovery action executed while it was paused moved the head, and
826
+ * `OctoPrint` restores no position on resume, so the rest of the layer would
827
+ * print at the wrong height: such a print is not resumable.
828
+ */
829
+ export interface PausedPrint {
830
+ /** The print. */
831
+ print_id: PrintId;
832
+ /** Whether it may be resumed. */
833
+ resumable: boolean;
834
+ }
714
835
  /**
715
836
  * Filament a tool fed after a filament change nobody has confirmed, held
716
837
  * until
@@ -991,6 +1112,8 @@ export type PrintAction = {
991
1112
  export interface PrintContext {
992
1113
  /** The limits in force, so that the agent can see them before it asks. */
993
1114
  bounds: EffectiveBounds;
1115
+ /** The failure detector's health, and since when it has been so. */
1116
+ detector?: DetectorHealth;
994
1117
  /** The interventions still active. */
995
1118
  interventions: Array<Intervention>;
996
1119
  /** The job, when a snapshot could be taken. */
@@ -1118,6 +1241,34 @@ export interface PrintUntrackedPayload {
1118
1241
  /** Why the print carries no charge. */
1119
1242
  reason: string;
1120
1243
  }
1244
+ /**
1245
+ * The printer's connection changed into or out of `offline` or `error`: a
1246
+ * serial disconnect, a reconnect, a printer error.
1247
+ *
1248
+ * The printer's rather than any print's, so it is written with no print.
1249
+ */
1250
+ export interface PrinterConnectionChangedPayload {
1251
+ /** What the watch read, in words. */
1252
+ detail: string;
1253
+ /** The state the previous read found. */
1254
+ from: PrinterState;
1255
+ /** The state this read found. */
1256
+ to: PrinterState;
1257
+ }
1258
+ /**
1259
+ * The printer reset: its firmware restarted, and whatever it held is gone.
1260
+ *
1261
+ * Recorded on each reset the printer pushed, one while idle included, which
1262
+ * changes nothing a read of its state reports. The printer's rather than any
1263
+ * print's, so it is written with no print; `during_print` names the print it
1264
+ * happened during, when one was running.
1265
+ */
1266
+ export interface PrinterResetPayload {
1267
+ /** What the watch knew of it, in words. */
1268
+ detail: string;
1269
+ /** The print that was running when it reset, `null` when none was. */
1270
+ during_print?: PrintId | null;
1271
+ }
1121
1272
  /** A printer, as a source reported it at one instant. */
1122
1273
  export interface PrinterSnapshot {
1123
1274
  /** The bed heater, when the printer reports one. */
@@ -1175,6 +1326,192 @@ export interface Range {
1175
1326
  export type RawBytes = string;
1176
1327
  /** What became of the prints a file's new tally generation counts. */
1177
1328
  export type RebaselineDisposition = "accounted" | "unverified";
1329
+ /**
1330
+ * The whole recovery vocabulary, and there is no other.
1331
+ *
1332
+ * The two assertions are the operator's word for what printobserver cannot
1333
+ * see: `clearance_asserted` that the nozzle is clear of the part, and
1334
+ * `bed_clear_asserted` that homing Z will meet nothing on the bed. Each is
1335
+ * false when left out.
1336
+ */
1337
+ export type RecoveryAction = {
1338
+ action: "recover_lift";
1339
+ mm: number;
1340
+ } | {
1341
+ action: "recover_cool";
1342
+ } | {
1343
+ action: "recover_fan";
1344
+ percent: number;
1345
+ } | {
1346
+ action: "recover_heat";
1347
+ clearance_asserted?: boolean;
1348
+ target_c: number;
1349
+ tool: number;
1350
+ } | {
1351
+ action: "recover_park";
1352
+ clearance_asserted?: boolean;
1353
+ } | {
1354
+ action: "recover_home_xy";
1355
+ clearance_asserted?: boolean;
1356
+ } | {
1357
+ action: "recover_home_z";
1358
+ bed_clear_asserted?: boolean;
1359
+ };
1360
+ /**
1361
+ * One recovery action, named without its fields: what a grant names and what
1362
+ * a refusal of an ungranted request names.
1363
+ */
1364
+ export type RecoveryActionKind = "recover_lift" | "recover_cool" | "recover_fan" | "recover_heat" | "recover_park" | "recover_home_xy" | "recover_home_z";
1365
+ /**
1366
+ * What a recovery action answers, carried out or refused.
1367
+ *
1368
+ * A refusal is the same shape and deliberately so: `decision` is either
1369
+ * `executed`, carrying what the printer made of it, or `rejected`, carrying
1370
+ * the reason, and the two events are what the request wrote.
1371
+ */
1372
+ export interface RecoveryAnswer {
1373
+ /** What was asked for. */
1374
+ action: RecoveryAction;
1375
+ /** What became of it. */
1376
+ decision: RecoveryDecision;
1377
+ /**
1378
+ * What became of it, in a sentence for a person: why it was refused and
1379
+ * what would let it go ahead, or what it did.
1380
+ */
1381
+ detail: string;
1382
+ /**
1383
+ * The `recovery_requested` event, and the `recovery_executed` or
1384
+ * `recovery_rejected` beside it.
1385
+ */
1386
+ events: Array<EventRecord>;
1387
+ }
1388
+ /**
1389
+ * What became of a recovery request: carried out with the printer's outcome,
1390
+ * or refused — one or the other, never both and never neither.
1391
+ */
1392
+ export type RecoveryDecision = {
1393
+ executed: ExecutionOutcome;
1394
+ } | {
1395
+ rejected: RecoveryRejection;
1396
+ };
1397
+ /** A recovery action reached the printer, and what the printer made of it. */
1398
+ export interface RecoveryExecutedPayload {
1399
+ /** What was asked for. */
1400
+ action: RecoveryAction;
1401
+ /** Who asked. */
1402
+ actor: Actor;
1403
+ /** What the printer made of it. */
1404
+ outcome: ExecutionOutcome;
1405
+ /** Why. */
1406
+ reason: string;
1407
+ }
1408
+ /** One field of a recovery action a bound is held to. */
1409
+ export type RecoveryField = "mm" | "percent" | "tool" | "target_c" | "clearance_asserted" | "bed_clear_asserted";
1410
+ /** Where the print head is, in millimetres, as the printer reported it. */
1411
+ export interface RecoveryPosition {
1412
+ /** X. */
1413
+ x: number;
1414
+ /** Y. */
1415
+ y: number;
1416
+ /** Z. */
1417
+ z: number;
1418
+ }
1419
+ /** A recovery action was refused, and reached nothing. */
1420
+ export interface RecoveryRejectedPayload {
1421
+ /** What was asked for. */
1422
+ action: RecoveryAction;
1423
+ /** Who asked. */
1424
+ actor: Actor;
1425
+ /** Why. */
1426
+ reason: string;
1427
+ /** Why it was refused. */
1428
+ rejection: RecoveryRejection;
1429
+ }
1430
+ /**
1431
+ * Why a recovery request was refused, each a variant of its own so a
1432
+ * consumer tells them apart by matching rather than by reading words.
1433
+ */
1434
+ export type RecoveryRejection = {
1435
+ actor_may_not_request: {
1436
+ action: RecoveryActionKind;
1437
+ };
1438
+ } | {
1439
+ print_running: {
1440
+ state: PrinterState;
1441
+ };
1442
+ } | "printer_unreachable" | "z_untrusted" | {
1443
+ insufficient_clearance: {
1444
+ margin_mm: number;
1445
+ nozzle_z_mm: number;
1446
+ tallest_mm: number;
1447
+ };
1448
+ } | {
1449
+ out_of_bounds: {
1450
+ allowed: Range;
1451
+ field: RecoveryField;
1452
+ requested: number;
1453
+ };
1454
+ } | {
1455
+ assertion_required: {
1456
+ field: RecoveryField;
1457
+ };
1458
+ } | "recovery_not_configured" | {
1459
+ printer_cannot: {
1460
+ action: RecoveryActionKind;
1461
+ detail: string;
1462
+ };
1463
+ };
1464
+ /**
1465
+ * A recovery action was asked for.
1466
+ *
1467
+ * The printer's rather than any print's, so it is written with no print.
1468
+ */
1469
+ export interface RecoveryRequestedPayload {
1470
+ /** What was asked for. */
1471
+ action: RecoveryAction;
1472
+ /** Who asked. */
1473
+ actor: Actor;
1474
+ /** Why. */
1475
+ reason: string;
1476
+ }
1477
+ /**
1478
+ * What a recovery read answers: everything a recovery is checked against,
1479
+ * and what each action would meet now.
1480
+ */
1481
+ export interface RecoveryStatus {
1482
+ /** Each action, and whether it is allowed now. */
1483
+ actions: Array<ActionAllowance>;
1484
+ /**
1485
+ * What the last print laid down, `null` when there is no print with a
1486
+ * file to read or its file could not be read.
1487
+ */
1488
+ last_print: LastPrint | null;
1489
+ /** The print paused under the printer, `null` when none is. */
1490
+ paused_print: PausedPrint | null;
1491
+ /**
1492
+ * Where the head is, read only while Z is trusted; `null` otherwise or
1493
+ * when it could not be read.
1494
+ */
1495
+ position: RecoveryPosition | null;
1496
+ /** The state the printer reports; `offline` when it could not be read. */
1497
+ state: PrinterState;
1498
+ /** Every heater. */
1499
+ temperatures: RecoveryTemperatures;
1500
+ /**
1501
+ * Where Z is homed and whether that sweeps the bed, `null` when
1502
+ * recovery is not configured.
1503
+ */
1504
+ z_home: ZHome | null;
1505
+ /** Whether Z is trusted. */
1506
+ z_trust: ZTrust;
1507
+ }
1508
+ /** Every heater, as a recovery read reports it. */
1509
+ export interface RecoveryTemperatures {
1510
+ /** The bed, `null` when the printer reports none. */
1511
+ bed: BedTemperature | null;
1512
+ /** Each tool. */
1513
+ tools: Array<ToolTemperature>;
1514
+ }
1178
1515
  /**
1179
1516
  * Why a request was refused.
1180
1517
  *
@@ -1235,6 +1572,10 @@ export type RejectionReason = {
1235
1572
  intervention_still_active: {
1236
1573
  intervention_id: InterventionId;
1237
1574
  };
1575
+ } | {
1576
+ print_not_resumable: {
1577
+ recovery_event_id: EventId;
1578
+ };
1238
1579
  } | {
1239
1580
  spool_refused: {
1240
1581
  cause: SpoolRefusalCause;
@@ -1570,6 +1911,8 @@ export interface StartupReconciliationPayload {
1570
1911
  }
1571
1912
  /** What a status read answers. */
1572
1913
  export interface StatusAnswer {
1914
+ /** The failure detector's health, and since when it has been so. */
1915
+ detector: DetectorHealth;
1573
1916
  /** The bounded interventions still in force. */
1574
1917
  interventions: Array<Intervention>;
1575
1918
  /** The job, when a snapshot could be taken. */
@@ -1636,6 +1979,18 @@ export interface ToolFilament {
1636
1979
  */
1637
1980
  volume_cm3?: number | null;
1638
1981
  }
1982
+ /** One tool heater, as a recovery read reports it. */
1983
+ export interface ToolTemperature {
1984
+ /** What it reads, in degrees Celsius, `null` when not reported. */
1985
+ actual_c: number | null;
1986
+ /**
1987
+ * What it is driving towards, in degrees Celsius, `null` when not
1988
+ * reported.
1989
+ */
1990
+ target_c: number | null;
1991
+ /** The tool, in the printer's own numbering. */
1992
+ tool: number;
1993
+ }
1639
1994
  /** A print this system never saw was found in the printer's own tally. */
1640
1995
  export interface UnaccountedPrintPayload {
1641
1996
  /** Whether it was charged against a spool. */
@@ -1647,6 +2002,32 @@ export interface UnaccountedPrintPayload {
1647
2002
  /** Whether it completed. */
1648
2003
  success: boolean;
1649
2004
  }
2005
+ /**
2006
+ * The printer heated or moved with no job running, soon after a print ended
2007
+ * `interrupted` or `failed`.
2008
+ *
2009
+ * A transition rather than a reading: written once when such activity
2010
+ * begins,
2011
+ * and again only when what it reports changes. The printer's rather than any
2012
+ * print's, so it is written with no print; `last_print_id` names the print
2013
+ * it
2014
+ * came after.
2015
+ */
2016
+ export interface UnattendedPrinterActivityPayload {
2017
+ /** The bed's target, when it is above zero; `null` otherwise. */
2018
+ bed_target_c?: number | null;
2019
+ /** What the watch read, in words. */
2020
+ detail: string;
2021
+ /** The print that ended before it. */
2022
+ last_print_id: PrintId;
2023
+ /**
2024
+ * Whether the print head moved since the last position read, `null` when
2025
+ * no position could be read.
2026
+ */
2027
+ moved?: boolean | null;
2028
+ /** Every tool whose target is above zero. */
2029
+ tools: Array<HeatedTool>;
2030
+ }
1650
2031
  /** One reason a spool's figure is in doubt, and since when. */
1651
2032
  export interface UnverifiedMark {
1652
2033
  /** Why the figure is in doubt. */
@@ -1673,6 +2054,21 @@ export type UnverifiedReason = {
1673
2054
  file_name: string;
1674
2055
  origin: string;
1675
2056
  };
2057
+ /** Where the machine homes Z, and whether doing so sweeps the bed. */
2058
+ export interface ZHome {
2059
+ /** Whether homing Z brings a gantry down over the whole bed. */
2060
+ sweeps_bed: boolean;
2061
+ /** Where in X Z is homed, in millimetres. */
2062
+ x: number;
2063
+ /** Where in Y Z is homed, in millimetres. */
2064
+ y: number;
2065
+ }
2066
+ /** Whether Z is trusted, and since when or why not. */
2067
+ export type ZTrust = {
2068
+ trusted_since: Timestamp;
2069
+ } | {
2070
+ untrusted: string;
2071
+ };
1676
2072
  /**
1677
2073
  * Every kind the server declares a payload type for, keyed by the kind's
1678
2074
  * name, and the type each payload has. A kind this client does not know
@@ -1683,8 +2079,10 @@ export interface EventPayloads {
1683
2079
  action_rejected: ActionRejectedPayload;
1684
2080
  action_requested: ActionRequestedPayload;
1685
2081
  agent_assessment: AgentAssessmentPayload;
2082
+ camera_degraded: CameraDegradedPayload;
1686
2083
  camera_look: CameraLookPayload;
1687
2084
  charge_pended: ChargePendedPayload;
2085
+ detector_health_changed: DetectorHealthChangedPayload;
1688
2086
  filament_change_signalled: FilamentChangeSignalledPayload;
1689
2087
  filament_consumed: FilamentConsumedPayload;
1690
2088
  file_tally_rebaselined: FileTallyRebaselinedPayload;
@@ -1699,6 +2097,11 @@ export interface EventPayloads {
1699
2097
  print_ended: PrintEndedPayload;
1700
2098
  print_started: PrintStartedPayload;
1701
2099
  print_untracked: PrintUntrackedPayload;
2100
+ printer_connection_changed: PrinterConnectionChangedPayload;
2101
+ printer_reset: PrinterResetPayload;
2102
+ recovery_executed: RecoveryExecutedPayload;
2103
+ recovery_rejected: RecoveryRejectedPayload;
2104
+ recovery_requested: RecoveryRequestedPayload;
1702
2105
  spool_adjusted: SpoolAdjustedPayload;
1703
2106
  spool_command_rejected: SpoolCommandRejectedPayload;
1704
2107
  spool_loaded: SpoolLoadedPayload;
@@ -1710,9 +2113,10 @@ export interface EventPayloads {
1710
2113
  supervision_session_closed: SupervisionSessionClosedPayload;
1711
2114
  supervision_session_opened: SupervisionSessionOpenedPayload;
1712
2115
  unaccounted_print: UnaccountedPrintPayload;
2116
+ unattended_printer_activity: UnattendedPrinterActivityPayload;
1713
2117
  }
1714
2118
  /** Every kind the server declares a payload type for, in name order. */
1715
- export declare const EVENT_KINDS: readonly ["action_executed", "action_rejected", "action_requested", "agent_assessment", "camera_look", "charge_pended", "filament_change_signalled", "filament_consumed", "file_tally_rebaselined", "intervention_expired", "malformed_external_event", "obico_failure_alert", "obico_printer_notification", "operator_acknowledgement", "periodic_observation", "port_failure", "preflight_checked", "print_ended", "print_started", "print_untracked", "spool_adjusted", "spool_command_rejected", "spool_loaded", "spool_registered", "spool_retired", "spool_unloaded", "spool_unverified", "startup_reconciliation", "supervision_session_closed", "supervision_session_opened", "unaccounted_print"];
2119
+ export declare const EVENT_KINDS: readonly ["action_executed", "action_rejected", "action_requested", "agent_assessment", "camera_degraded", "camera_look", "charge_pended", "detector_health_changed", "filament_change_signalled", "filament_consumed", "file_tally_rebaselined", "intervention_expired", "malformed_external_event", "obico_failure_alert", "obico_printer_notification", "operator_acknowledgement", "periodic_observation", "port_failure", "preflight_checked", "print_ended", "print_started", "print_untracked", "printer_connection_changed", "printer_reset", "recovery_executed", "recovery_rejected", "recovery_requested", "spool_adjusted", "spool_command_rejected", "spool_loaded", "spool_registered", "spool_retired", "spool_unloaded", "spool_unverified", "startup_reconciliation", "supervision_session_closed", "supervision_session_opened", "unaccounted_print", "unattended_printer_activity"];
1716
2120
  /**
1717
2121
  * The payload of one event as the type its kind declares, or `undefined` for
1718
2122
  * an event of any other kind — one this client knows or one it does not. No
@@ -1720,6 +2124,12 @@ export declare const EVENT_KINDS: readonly ["action_executed", "action_rejected"
1720
2124
  * sent, handed on as the type the table says it is.
1721
2125
  */
1722
2126
  export declare function payloadOf<K extends keyof EventPayloads>(event: EventRecord, kind: K): EventPayloads[K] | undefined;
2127
+ /**
2128
+ * Every declaration of the contracts, as the client checks a document
2129
+ * against its declared type: generated from the same declarations as every
2130
+ * type above.
2131
+ */
2132
+ export declare const SHAPES: Readonly<Record<string, unknown>>;
1723
2133
  /**
1724
2134
  * One method per operation the server declares.
1725
2135
  *
@@ -1994,4 +2404,82 @@ export declare class GeneratedClient extends GeneratedSurface {
1994
2404
  * the reason, the value asked for and the range allowed.
1995
2405
  */
1996
2406
  retireSpool(spoolId: string, reason: string): Promise<SpoolCommandAnswer>;
2407
+ /**
2408
+ * Call `recover_status` on the configured supervisor.
2409
+ *
2410
+ * Rejects with `Unreachable` when nothing answered, with `Unreadable` when
2411
+ * the answer could not be read, and with `Refused` when the supervisor
2412
+ * said no.
2413
+ */
2414
+ recoverStatus(): Promise<RecoveryStatus>;
2415
+ /**
2416
+ * Call `recover_lift` on the configured supervisor.
2417
+ *
2418
+ * Rejects with `Unreachable` when nothing answered, with `Unreadable` when
2419
+ * the answer could not be read, and with `Refused` when the supervisor
2420
+ * said no. A call whose reason is empty is refused here, before a request
2421
+ * is made, and the policy's own refusal arrives as `Rejected`, carrying
2422
+ * the reason, the value asked for and the range allowed.
2423
+ */
2424
+ recoverLift(mm: number, reason: string): Promise<RecoveryAnswer>;
2425
+ /**
2426
+ * Call `recover_cool` on the configured supervisor.
2427
+ *
2428
+ * Rejects with `Unreachable` when nothing answered, with `Unreadable` when
2429
+ * the answer could not be read, and with `Refused` when the supervisor
2430
+ * said no. A call whose reason is empty is refused here, before a request
2431
+ * is made, and the policy's own refusal arrives as `Rejected`, carrying
2432
+ * the reason, the value asked for and the range allowed.
2433
+ */
2434
+ recoverCool(reason: string): Promise<RecoveryAnswer>;
2435
+ /**
2436
+ * Call `recover_fan` on the configured supervisor.
2437
+ *
2438
+ * Rejects with `Unreachable` when nothing answered, with `Unreadable` when
2439
+ * the answer could not be read, and with `Refused` when the supervisor
2440
+ * said no. A call whose reason is empty is refused here, before a request
2441
+ * is made, and the policy's own refusal arrives as `Rejected`, carrying
2442
+ * the reason, the value asked for and the range allowed.
2443
+ */
2444
+ recoverFan(percent: number, reason: string): Promise<RecoveryAnswer>;
2445
+ /**
2446
+ * Call `recover_heat` on the configured supervisor.
2447
+ *
2448
+ * Rejects with `Unreachable` when nothing answered, with `Unreadable` when
2449
+ * the answer could not be read, and with `Refused` when the supervisor
2450
+ * said no. A call whose reason is empty is refused here, before a request
2451
+ * is made, and the policy's own refusal arrives as `Rejected`, carrying
2452
+ * the reason, the value asked for and the range allowed.
2453
+ */
2454
+ recoverHeat(reason: string, targetC: number, tool: number, clearanceAsserted?: boolean): Promise<RecoveryAnswer>;
2455
+ /**
2456
+ * Call `recover_park` on the configured supervisor.
2457
+ *
2458
+ * Rejects with `Unreachable` when nothing answered, with `Unreadable` when
2459
+ * the answer could not be read, and with `Refused` when the supervisor
2460
+ * said no. A call whose reason is empty is refused here, before a request
2461
+ * is made, and the policy's own refusal arrives as `Rejected`, carrying
2462
+ * the reason, the value asked for and the range allowed.
2463
+ */
2464
+ recoverPark(reason: string, clearanceAsserted?: boolean): Promise<RecoveryAnswer>;
2465
+ /**
2466
+ * Call `recover_home_xy` on the configured supervisor.
2467
+ *
2468
+ * Rejects with `Unreachable` when nothing answered, with `Unreadable` when
2469
+ * the answer could not be read, and with `Refused` when the supervisor
2470
+ * said no. A call whose reason is empty is refused here, before a request
2471
+ * is made, and the policy's own refusal arrives as `Rejected`, carrying
2472
+ * the reason, the value asked for and the range allowed.
2473
+ */
2474
+ recoverHomeXy(reason: string, clearanceAsserted?: boolean): Promise<RecoveryAnswer>;
2475
+ /**
2476
+ * Call `recover_home_z` on the configured supervisor.
2477
+ *
2478
+ * Rejects with `Unreachable` when nothing answered, with `Unreadable` when
2479
+ * the answer could not be read, and with `Refused` when the supervisor
2480
+ * said no. A call whose reason is empty is refused here, before a request
2481
+ * is made, and the policy's own refusal arrives as `Rejected`, carrying
2482
+ * the reason, the value asked for and the range allowed.
2483
+ */
2484
+ recoverHomeZ(reason: string, bedClearAsserted?: boolean): Promise<RecoveryAnswer>;
1997
2485
  }