@printobserver/sdk 0.13.0 → 0.14.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/dist/contract.d.ts +125 -8
- package/dist/contract.js +221 -2
- package/package.json +2 -2
package/dist/contract.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ 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", "printer_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"];
|
|
21
|
+
export declare const OPERATION_NAMES: readonly ["prints", "status", "context", "image", "history", "events", "manifest_get", "look", "printer_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", "bed_clear"];
|
|
22
22
|
/** What an operator's acknowledgement of a failure event asks for next. */
|
|
23
23
|
export type AcknowledgementDisposition = "continue" | "watch" | "stop";
|
|
24
24
|
/**
|
|
@@ -136,6 +136,11 @@ export interface AgentAssessment {
|
|
|
136
136
|
confidence: Confidence;
|
|
137
137
|
/** What the agent did. */
|
|
138
138
|
did: string;
|
|
139
|
+
/**
|
|
140
|
+
* What the turn's event is acknowledged with, when the turn acknowledged
|
|
141
|
+
* nothing by command.
|
|
142
|
+
*/
|
|
143
|
+
disposition: Disposition;
|
|
139
144
|
/** Whether the agent is escalating to a person. */
|
|
140
145
|
escalating: boolean;
|
|
141
146
|
/** Whether the print should carry on. */
|
|
@@ -167,7 +172,8 @@ export interface AgentAssessmentPayload {
|
|
|
167
172
|
* time
|
|
168
173
|
* and position (the plan states where the print is); the manifest (its
|
|
169
174
|
* limits
|
|
170
|
-
* are the bounds); and the detector's health
|
|
175
|
+
* are the bounds); and the detector's health beyond its status — since when,
|
|
176
|
+
* and why — which only the status read carries.
|
|
171
177
|
*
|
|
172
178
|
* The printer and the job are stated here and nowhere in the events; each
|
|
173
179
|
* event is what happened, when, and what it changed; and asked `since` an
|
|
@@ -178,6 +184,11 @@ export interface AgentAssessmentPayload {
|
|
|
178
184
|
export interface AgentContext {
|
|
179
185
|
/** The limits in force, so that the agent can see them before it asks. */
|
|
180
186
|
bounds: EffectiveBounds;
|
|
187
|
+
/**
|
|
188
|
+
* What the failure detector's status is for this print: whether it is
|
|
189
|
+
* scoring the print and has flagged it, or what it is otherwise.
|
|
190
|
+
*/
|
|
191
|
+
detector: DetectorHealthStatus;
|
|
181
192
|
/** The interventions still active. */
|
|
182
193
|
interventions: Array<Intervention>;
|
|
183
194
|
/** The error the job stopped on, when it stopped on one. */
|
|
@@ -248,6 +259,60 @@ export interface AgentPrinter {
|
|
|
248
259
|
/** Each tool's heater, in order. */
|
|
249
260
|
tools?: Array<AgentHeater>;
|
|
250
261
|
}
|
|
262
|
+
/**
|
|
263
|
+
* The agent answered that a running print should stop, and asked for no
|
|
264
|
+
* pause or cancel — not even when asked again — so nothing stopped it.
|
|
265
|
+
*
|
|
266
|
+
* An answer records a judgement and does not act: acting is a request that
|
|
267
|
+
* policy rules on. Written to the print's history, where a refused pause is,
|
|
268
|
+
* so the person reading it is told the print the agent judged should stop is
|
|
269
|
+
* still running.
|
|
270
|
+
*/
|
|
271
|
+
export interface AgentStopUnactedPayload {
|
|
272
|
+
/** The event the turn was about. */
|
|
273
|
+
event_id: EventId;
|
|
274
|
+
/** The session the turn ran in. */
|
|
275
|
+
session_name: string;
|
|
276
|
+
/** What the agent said it saw, as its answer's summary put it. */
|
|
277
|
+
summary: string;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Who may say the bed is clear: the operator, and no other actor.
|
|
281
|
+
*
|
|
282
|
+
* Its own type rather than `Actor`, so that a record of the agent's or the
|
|
283
|
+
* system's word that the bed is clear is one no value can spell. On the wire
|
|
284
|
+
* it is `"operator"`, as `Actor::Operator` is.
|
|
285
|
+
*/
|
|
286
|
+
export type BedClearActor = "operator";
|
|
287
|
+
/**
|
|
288
|
+
* What recording the operator's word that the bed is clear answers: the
|
|
289
|
+
* event
|
|
290
|
+
* it was recorded as, which every recovery decided on it names.
|
|
291
|
+
*/
|
|
292
|
+
export interface BedClearAnswer {
|
|
293
|
+
/** What it means from now on, in a sentence for a person. */
|
|
294
|
+
detail: string;
|
|
295
|
+
/** The `bed_clear_asserted` event. */
|
|
296
|
+
event: EventRecord;
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* The operator's word that the bed is clear: nothing is on it that homing Z
|
|
300
|
+
* could crush or a move over the part could strike.
|
|
301
|
+
*
|
|
302
|
+
* The printer's rather than any print's, so it is written with no print. It
|
|
303
|
+
* stands until the next `print_started`, whichever way that print started,
|
|
304
|
+
* and while it stands a recovery that needs the bed or the nozzle clear is
|
|
305
|
+
* decided as though it carried the operator's assertion — read back out of
|
|
306
|
+
* the event log, so a server started again holds it as the one before did.
|
|
307
|
+
* Only the operator records one: an assertion is a person's word for what
|
|
308
|
+
* they can see.
|
|
309
|
+
*/
|
|
310
|
+
export interface BedClearAssertedPayload {
|
|
311
|
+
/** Who said so: the operator, the one actor whose word this records. */
|
|
312
|
+
actor: BedClearActor;
|
|
313
|
+
/** Why they say so. */
|
|
314
|
+
reason: string;
|
|
315
|
+
}
|
|
251
316
|
/** The bed heater, as a recovery read reports it. */
|
|
252
317
|
export interface BedTemperature {
|
|
253
318
|
/** What it reads, in degrees Celsius, `null` when not reported. */
|
|
@@ -410,18 +475,30 @@ export interface ContextAnswer {
|
|
|
410
475
|
image_path?: string | null;
|
|
411
476
|
}
|
|
412
477
|
/**
|
|
413
|
-
* The failure detector's
|
|
414
|
-
* `null` exactly while the status is `unchecked`.
|
|
478
|
+
* The failure detector's status, and since when it has been so: `since` is
|
|
479
|
+
* `null` exactly while the status is `unchecked`. Evidence that the detector
|
|
480
|
+
* is scoring the print comes before its health check.
|
|
415
481
|
*/
|
|
416
482
|
export type DetectorHealth = {
|
|
417
|
-
status: "
|
|
418
|
-
|
|
483
|
+
status: "scoring_nothing_flagged";
|
|
484
|
+
probe_failure?: string;
|
|
485
|
+
since: Timestamp;
|
|
486
|
+
} | {
|
|
487
|
+
status: "scoring_flagged";
|
|
488
|
+
probe_failure?: string;
|
|
489
|
+
since: Timestamp;
|
|
419
490
|
} | {
|
|
420
491
|
status: "available";
|
|
492
|
+
scoring_unread?: string;
|
|
421
493
|
since: Timestamp;
|
|
422
494
|
} | {
|
|
423
495
|
status: "unavailable";
|
|
496
|
+
scoring_unread?: string;
|
|
424
497
|
since: Timestamp;
|
|
498
|
+
} | {
|
|
499
|
+
status: "unchecked";
|
|
500
|
+
scoring_unread?: string;
|
|
501
|
+
since: null;
|
|
425
502
|
};
|
|
426
503
|
/**
|
|
427
504
|
* The failure detector's own health changed.
|
|
@@ -434,8 +511,19 @@ export interface DetectorHealthChangedPayload {
|
|
|
434
511
|
/** What the check found. */
|
|
435
512
|
status: DetectorStatus;
|
|
436
513
|
}
|
|
514
|
+
/** The failure detector's status, as the status and context reads answer it. */
|
|
515
|
+
export type DetectorHealthStatus = "scoring_nothing_flagged" | "scoring_flagged" | "available" | "unavailable" | "unchecked";
|
|
437
516
|
/** What a check of the failure detector's own health found. */
|
|
438
517
|
export type DetectorStatus = "available" | "unavailable";
|
|
518
|
+
/**
|
|
519
|
+
* What the agent's answer asks for next, in the vocabulary an
|
|
520
|
+
* acknowledgement's disposition is spelled in.
|
|
521
|
+
*
|
|
522
|
+
* A turn that acknowledged nothing by command is acknowledged from its
|
|
523
|
+
* answer with this, so a quiet check records its judgement without a command
|
|
524
|
+
* of its own.
|
|
525
|
+
*/
|
|
526
|
+
export type Disposition = "continue" | "watch" | "stop";
|
|
439
527
|
/**
|
|
440
528
|
* The envelope intersected with the print's manifest.
|
|
441
529
|
*
|
|
@@ -897,6 +985,11 @@ export interface Look {
|
|
|
897
985
|
* gave none — which the history records as a port failure.
|
|
898
986
|
*/
|
|
899
987
|
frame?: ImageRef | null;
|
|
988
|
+
/**
|
|
989
|
+
* What the image at `image_path` is, and why it is that one, in one line;
|
|
990
|
+
* absent with no image, or when what made it says nothing.
|
|
991
|
+
*/
|
|
992
|
+
image_note?: string | null;
|
|
900
993
|
/** The absolute path the frame's bytes are at, on the supervisor's host. */
|
|
901
994
|
image_path?: string | null;
|
|
902
995
|
/** The job the printer reports now, absent when it could not be read. */
|
|
@@ -1162,7 +1255,7 @@ export interface PortFailurePayload {
|
|
|
1162
1255
|
* be
|
|
1163
1256
|
* a second version of one fact.
|
|
1164
1257
|
*/
|
|
1165
|
-
export type PortFailureSite = "printer_snapshot" | "printer_job" | "image_write" | "supervision_turn" | "camera_look" | "detector_acknowledgement";
|
|
1258
|
+
export type PortFailureSite = "printer_snapshot" | "printer_job" | "image_write" | "supervision_turn" | "camera_look" | "detector_acknowledgement" | "detector_health_check" | "detector_scoring_read";
|
|
1166
1259
|
/** How fresh the position a filament change charged up to is. */
|
|
1167
1260
|
export type PositionFreshness = "read_at_signal" | "last_recorded";
|
|
1168
1261
|
/** What a filament check found for one print. */
|
|
@@ -1625,6 +1718,12 @@ export interface RecoveryExecutedPayload {
|
|
|
1625
1718
|
action: RecoveryAction;
|
|
1626
1719
|
/** Who asked. */
|
|
1627
1720
|
actor: Actor;
|
|
1721
|
+
/**
|
|
1722
|
+
* The operator's standing word that the bed is clear this action was
|
|
1723
|
+
* carried out on in place of an assertion of its own, when it was: the
|
|
1724
|
+
* `bed_clear_asserted` event recording it. Absent otherwise.
|
|
1725
|
+
*/
|
|
1726
|
+
bed_clear?: EventId | null;
|
|
1628
1727
|
/** What the printer made of it. */
|
|
1629
1728
|
outcome: ExecutionOutcome;
|
|
1630
1729
|
/** Why. */
|
|
@@ -1696,6 +1795,12 @@ export interface RecoveryRequestedPayload {
|
|
|
1696
1795
|
action: RecoveryAction;
|
|
1697
1796
|
/** Who asked. */
|
|
1698
1797
|
actor: Actor;
|
|
1798
|
+
/**
|
|
1799
|
+
* The operator's standing word that the bed is clear this request is
|
|
1800
|
+
* decided on in place of an assertion of its own, when it is: the
|
|
1801
|
+
* `bed_clear_asserted` event recording it. Absent otherwise.
|
|
1802
|
+
*/
|
|
1803
|
+
bed_clear?: EventId | null;
|
|
1699
1804
|
/** Why. */
|
|
1700
1805
|
reason: string;
|
|
1701
1806
|
}
|
|
@@ -2439,6 +2544,8 @@ export interface EventPayloads {
|
|
|
2439
2544
|
action_rejected: ActionRejectedPayload;
|
|
2440
2545
|
action_requested: ActionRequestedPayload;
|
|
2441
2546
|
agent_assessment: AgentAssessmentPayload;
|
|
2547
|
+
agent_stop_unacted: AgentStopUnactedPayload;
|
|
2548
|
+
bed_clear_asserted: BedClearAssertedPayload;
|
|
2442
2549
|
camera_degraded: CameraDegradedPayload;
|
|
2443
2550
|
camera_look: CameraLookPayload;
|
|
2444
2551
|
camera_retry: CameraRetryPayload;
|
|
@@ -2478,7 +2585,7 @@ export interface EventPayloads {
|
|
|
2478
2585
|
unattended_printer_activity: UnattendedPrinterActivityPayload;
|
|
2479
2586
|
}
|
|
2480
2587
|
/** Every kind the server declares a payload type for, in name order. */
|
|
2481
|
-
export declare const EVENT_KINDS: readonly ["action_executed", "action_rejected", "action_requested", "agent_assessment", "camera_degraded", "camera_look", "camera_retry", "charge_pended", "detector_health_changed", "filament_change_signalled", "filament_consumed", "file_tally_rebaselined", "gcode_indexed", "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"];
|
|
2588
|
+
export declare const EVENT_KINDS: readonly ["action_executed", "action_rejected", "action_requested", "agent_assessment", "agent_stop_unacted", "bed_clear_asserted", "camera_degraded", "camera_look", "camera_retry", "charge_pended", "detector_health_changed", "filament_change_signalled", "filament_consumed", "file_tally_rebaselined", "gcode_indexed", "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"];
|
|
2482
2589
|
/**
|
|
2483
2590
|
* The payload of one event as the type its kind declares, or `undefined` for
|
|
2484
2591
|
* an event of any other kind — one this client knows or one it does not. No
|
|
@@ -2852,4 +2959,14 @@ export declare class GeneratedClient extends GeneratedSurface {
|
|
|
2852
2959
|
* the reason, the value asked for and the range allowed.
|
|
2853
2960
|
*/
|
|
2854
2961
|
recoverHomeZ(reason: string, bedClearAsserted?: boolean): Promise<RecoveryAnswer>;
|
|
2962
|
+
/**
|
|
2963
|
+
* Call `bed_clear` on the configured supervisor.
|
|
2964
|
+
*
|
|
2965
|
+
* Rejects with `Unreachable` when nothing answered, with `Unreadable` when
|
|
2966
|
+
* the answer could not be read, and with `Refused` when the supervisor
|
|
2967
|
+
* said no. A call whose reason is empty is refused here, before a request
|
|
2968
|
+
* is made, and the policy's own refusal arrives as `Rejected`, carrying
|
|
2969
|
+
* the reason, the value asked for and the range allowed.
|
|
2970
|
+
*/
|
|
2971
|
+
bedClear(reason: string): Promise<BedClearAnswer>;
|
|
2855
2972
|
}
|
package/dist/contract.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* generate-clients`, and commit what that writes.
|
|
8
8
|
*/
|
|
9
9
|
import { GeneratedSurface, reasonGiven } from "./surface.js";
|
|
10
|
-
export const CONTRACT_VERSION = "0.
|
|
10
|
+
export const CONTRACT_VERSION = "0.14.0";
|
|
11
11
|
/**
|
|
12
12
|
* Every operation this client exposes a method for, which is every operation
|
|
13
13
|
* the server declares and no other.
|
|
@@ -51,6 +51,7 @@ export const OPERATION_NAMES = [
|
|
|
51
51
|
"recover_park",
|
|
52
52
|
"recover_home_xy",
|
|
53
53
|
"recover_home_z",
|
|
54
|
+
"bed_clear",
|
|
54
55
|
];
|
|
55
56
|
/** Every kind the server declares a payload type for, in name order. */
|
|
56
57
|
export const EVENT_KINDS = [
|
|
@@ -58,6 +59,8 @@ export const EVENT_KINDS = [
|
|
|
58
59
|
"action_rejected",
|
|
59
60
|
"action_requested",
|
|
60
61
|
"agent_assessment",
|
|
62
|
+
"agent_stop_unacted",
|
|
63
|
+
"bed_clear_asserted",
|
|
61
64
|
"camera_degraded",
|
|
62
65
|
"camera_look",
|
|
63
66
|
"camera_retry",
|
|
@@ -435,6 +438,13 @@ export const SHAPES = JSON.parse(`
|
|
|
435
438
|
"scalar": "string"
|
|
436
439
|
}
|
|
437
440
|
},
|
|
441
|
+
"disposition": {
|
|
442
|
+
"paired_with": "",
|
|
443
|
+
"required": true,
|
|
444
|
+
"shape": {
|
|
445
|
+
"ref": "Disposition"
|
|
446
|
+
}
|
|
447
|
+
},
|
|
438
448
|
"escalating": {
|
|
439
449
|
"paired_with": "",
|
|
440
450
|
"required": true,
|
|
@@ -500,6 +510,13 @@ export const SHAPES = JSON.parse(`
|
|
|
500
510
|
"ref": "EffectiveBounds"
|
|
501
511
|
}
|
|
502
512
|
},
|
|
513
|
+
"detector": {
|
|
514
|
+
"paired_with": "",
|
|
515
|
+
"required": true,
|
|
516
|
+
"shape": {
|
|
517
|
+
"ref": "DetectorHealthStatus"
|
|
518
|
+
}
|
|
519
|
+
},
|
|
503
520
|
"interventions": {
|
|
504
521
|
"paired_with": "",
|
|
505
522
|
"required": true,
|
|
@@ -697,6 +714,84 @@ export const SHAPES = JSON.parse(`
|
|
|
697
714
|
"variants": {}
|
|
698
715
|
}
|
|
699
716
|
},
|
|
717
|
+
"AgentStopUnactedPayload": {
|
|
718
|
+
"struct": {
|
|
719
|
+
"fields": {
|
|
720
|
+
"event_id": {
|
|
721
|
+
"paired_with": "",
|
|
722
|
+
"required": true,
|
|
723
|
+
"shape": {
|
|
724
|
+
"ref": "EventId"
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
"session_name": {
|
|
728
|
+
"paired_with": "",
|
|
729
|
+
"required": true,
|
|
730
|
+
"shape": {
|
|
731
|
+
"scalar": "string"
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
"summary": {
|
|
735
|
+
"paired_with": "",
|
|
736
|
+
"required": true,
|
|
737
|
+
"shape": {
|
|
738
|
+
"scalar": "string"
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
},
|
|
742
|
+
"tag_field": "",
|
|
743
|
+
"variants": {}
|
|
744
|
+
}
|
|
745
|
+
},
|
|
746
|
+
"BedClearActor": {
|
|
747
|
+
"enum": [
|
|
748
|
+
"operator"
|
|
749
|
+
]
|
|
750
|
+
},
|
|
751
|
+
"BedClearAnswer": {
|
|
752
|
+
"struct": {
|
|
753
|
+
"fields": {
|
|
754
|
+
"detail": {
|
|
755
|
+
"paired_with": "",
|
|
756
|
+
"required": true,
|
|
757
|
+
"shape": {
|
|
758
|
+
"scalar": "string"
|
|
759
|
+
}
|
|
760
|
+
},
|
|
761
|
+
"event": {
|
|
762
|
+
"paired_with": "",
|
|
763
|
+
"required": true,
|
|
764
|
+
"shape": {
|
|
765
|
+
"ref": "EventRecord"
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
"tag_field": "",
|
|
770
|
+
"variants": {}
|
|
771
|
+
}
|
|
772
|
+
},
|
|
773
|
+
"BedClearAssertedPayload": {
|
|
774
|
+
"struct": {
|
|
775
|
+
"fields": {
|
|
776
|
+
"actor": {
|
|
777
|
+
"paired_with": "",
|
|
778
|
+
"required": true,
|
|
779
|
+
"shape": {
|
|
780
|
+
"ref": "BedClearActor"
|
|
781
|
+
}
|
|
782
|
+
},
|
|
783
|
+
"reason": {
|
|
784
|
+
"paired_with": "",
|
|
785
|
+
"required": true,
|
|
786
|
+
"shape": {
|
|
787
|
+
"scalar": "string"
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
"tag_field": "",
|
|
792
|
+
"variants": {}
|
|
793
|
+
}
|
|
794
|
+
},
|
|
700
795
|
"BedTemperature": {
|
|
701
796
|
"struct": {
|
|
702
797
|
"fields": {
|
|
@@ -1036,6 +1131,53 @@ export const SHAPES = JSON.parse(`
|
|
|
1036
1131
|
"variants": {
|
|
1037
1132
|
"available": {
|
|
1038
1133
|
"fields": {
|
|
1134
|
+
"scoring_unread": {
|
|
1135
|
+
"paired_with": "",
|
|
1136
|
+
"required": false,
|
|
1137
|
+
"shape": {
|
|
1138
|
+
"scalar": "string"
|
|
1139
|
+
}
|
|
1140
|
+
},
|
|
1141
|
+
"since": {
|
|
1142
|
+
"paired_with": "",
|
|
1143
|
+
"required": true,
|
|
1144
|
+
"shape": {
|
|
1145
|
+
"ref": "Timestamp"
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
},
|
|
1149
|
+
"payload": null,
|
|
1150
|
+
"unit": false
|
|
1151
|
+
},
|
|
1152
|
+
"scoring_flagged": {
|
|
1153
|
+
"fields": {
|
|
1154
|
+
"probe_failure": {
|
|
1155
|
+
"paired_with": "",
|
|
1156
|
+
"required": false,
|
|
1157
|
+
"shape": {
|
|
1158
|
+
"scalar": "string"
|
|
1159
|
+
}
|
|
1160
|
+
},
|
|
1161
|
+
"since": {
|
|
1162
|
+
"paired_with": "",
|
|
1163
|
+
"required": true,
|
|
1164
|
+
"shape": {
|
|
1165
|
+
"ref": "Timestamp"
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
},
|
|
1169
|
+
"payload": null,
|
|
1170
|
+
"unit": false
|
|
1171
|
+
},
|
|
1172
|
+
"scoring_nothing_flagged": {
|
|
1173
|
+
"fields": {
|
|
1174
|
+
"probe_failure": {
|
|
1175
|
+
"paired_with": "",
|
|
1176
|
+
"required": false,
|
|
1177
|
+
"shape": {
|
|
1178
|
+
"scalar": "string"
|
|
1179
|
+
}
|
|
1180
|
+
},
|
|
1039
1181
|
"since": {
|
|
1040
1182
|
"paired_with": "",
|
|
1041
1183
|
"required": true,
|
|
@@ -1049,6 +1191,13 @@ export const SHAPES = JSON.parse(`
|
|
|
1049
1191
|
},
|
|
1050
1192
|
"unavailable": {
|
|
1051
1193
|
"fields": {
|
|
1194
|
+
"scoring_unread": {
|
|
1195
|
+
"paired_with": "",
|
|
1196
|
+
"required": false,
|
|
1197
|
+
"shape": {
|
|
1198
|
+
"scalar": "string"
|
|
1199
|
+
}
|
|
1200
|
+
},
|
|
1052
1201
|
"since": {
|
|
1053
1202
|
"paired_with": "",
|
|
1054
1203
|
"required": true,
|
|
@@ -1062,6 +1211,13 @@ export const SHAPES = JSON.parse(`
|
|
|
1062
1211
|
},
|
|
1063
1212
|
"unchecked": {
|
|
1064
1213
|
"fields": {
|
|
1214
|
+
"scoring_unread": {
|
|
1215
|
+
"paired_with": "",
|
|
1216
|
+
"required": false,
|
|
1217
|
+
"shape": {
|
|
1218
|
+
"scalar": "string"
|
|
1219
|
+
}
|
|
1220
|
+
},
|
|
1065
1221
|
"since": {
|
|
1066
1222
|
"paired_with": "",
|
|
1067
1223
|
"required": true,
|
|
@@ -1098,12 +1254,28 @@ export const SHAPES = JSON.parse(`
|
|
|
1098
1254
|
"variants": {}
|
|
1099
1255
|
}
|
|
1100
1256
|
},
|
|
1257
|
+
"DetectorHealthStatus": {
|
|
1258
|
+
"enum": [
|
|
1259
|
+
"scoring_nothing_flagged",
|
|
1260
|
+
"scoring_flagged",
|
|
1261
|
+
"available",
|
|
1262
|
+
"unavailable",
|
|
1263
|
+
"unchecked"
|
|
1264
|
+
]
|
|
1265
|
+
},
|
|
1101
1266
|
"DetectorStatus": {
|
|
1102
1267
|
"enum": [
|
|
1103
1268
|
"available",
|
|
1104
1269
|
"unavailable"
|
|
1105
1270
|
]
|
|
1106
1271
|
},
|
|
1272
|
+
"Disposition": {
|
|
1273
|
+
"enum": [
|
|
1274
|
+
"continue",
|
|
1275
|
+
"watch",
|
|
1276
|
+
"stop"
|
|
1277
|
+
]
|
|
1278
|
+
},
|
|
1107
1279
|
"EffectiveBounds": {
|
|
1108
1280
|
"struct": {
|
|
1109
1281
|
"fields": {
|
|
@@ -2223,6 +2395,15 @@ export const SHAPES = JSON.parse(`
|
|
|
2223
2395
|
}
|
|
2224
2396
|
}
|
|
2225
2397
|
},
|
|
2398
|
+
"image_note": {
|
|
2399
|
+
"paired_with": "",
|
|
2400
|
+
"required": false,
|
|
2401
|
+
"shape": {
|
|
2402
|
+
"nullable": {
|
|
2403
|
+
"scalar": "string"
|
|
2404
|
+
}
|
|
2405
|
+
}
|
|
2406
|
+
},
|
|
2226
2407
|
"image_path": {
|
|
2227
2408
|
"paired_with": "",
|
|
2228
2409
|
"required": false,
|
|
@@ -2897,7 +3078,9 @@ export const SHAPES = JSON.parse(`
|
|
|
2897
3078
|
"image_write",
|
|
2898
3079
|
"supervision_turn",
|
|
2899
3080
|
"camera_look",
|
|
2900
|
-
"detector_acknowledgement"
|
|
3081
|
+
"detector_acknowledgement",
|
|
3082
|
+
"detector_health_check",
|
|
3083
|
+
"detector_scoring_read"
|
|
2901
3084
|
]
|
|
2902
3085
|
},
|
|
2903
3086
|
"PositionFreshness": {
|
|
@@ -4401,6 +4584,15 @@ export const SHAPES = JSON.parse(`
|
|
|
4401
4584
|
"ref": "Actor"
|
|
4402
4585
|
}
|
|
4403
4586
|
},
|
|
4587
|
+
"bed_clear": {
|
|
4588
|
+
"paired_with": "",
|
|
4589
|
+
"required": false,
|
|
4590
|
+
"shape": {
|
|
4591
|
+
"nullable": {
|
|
4592
|
+
"ref": "EventId"
|
|
4593
|
+
}
|
|
4594
|
+
}
|
|
4595
|
+
},
|
|
4404
4596
|
"outcome": {
|
|
4405
4597
|
"paired_with": "",
|
|
4406
4598
|
"required": true,
|
|
@@ -4647,6 +4839,15 @@ export const SHAPES = JSON.parse(`
|
|
|
4647
4839
|
"ref": "Actor"
|
|
4648
4840
|
}
|
|
4649
4841
|
},
|
|
4842
|
+
"bed_clear": {
|
|
4843
|
+
"paired_with": "",
|
|
4844
|
+
"required": false,
|
|
4845
|
+
"shape": {
|
|
4846
|
+
"nullable": {
|
|
4847
|
+
"ref": "EventId"
|
|
4848
|
+
}
|
|
4849
|
+
}
|
|
4850
|
+
},
|
|
4650
4851
|
"reason": {
|
|
4651
4852
|
"paired_with": "",
|
|
4652
4853
|
"required": true,
|
|
@@ -7764,4 +7965,22 @@ export class GeneratedClient extends GeneratedSurface {
|
|
|
7764
7965
|
sending.reason = reason;
|
|
7765
7966
|
return await this.call("POST", target, asked, sending, "RecoveryAnswer");
|
|
7766
7967
|
}
|
|
7968
|
+
/**
|
|
7969
|
+
* Call `bed_clear` on the configured supervisor.
|
|
7970
|
+
*
|
|
7971
|
+
* Rejects with `Unreachable` when nothing answered, with `Unreadable` when
|
|
7972
|
+
* the answer could not be read, and with `Refused` when the supervisor
|
|
7973
|
+
* said no. A call whose reason is empty is refused here, before a request
|
|
7974
|
+
* is made, and the policy's own refusal arrives as `Rejected`, carrying
|
|
7975
|
+
* the reason, the value asked for and the range allowed.
|
|
7976
|
+
*/
|
|
7977
|
+
async bedClear(reason) {
|
|
7978
|
+
reasonGiven(reason);
|
|
7979
|
+
const target = `/v1/printer/bed_clear`;
|
|
7980
|
+
const asked = [];
|
|
7981
|
+
const sending = {};
|
|
7982
|
+
sending.actor = this.actor;
|
|
7983
|
+
sending.reason = reason;
|
|
7984
|
+
return await this.call("POST", target, asked, sending, "BedClearAnswer");
|
|
7985
|
+
}
|
|
7767
7986
|
}
|
package/package.json
CHANGED
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"name": "@printobserver/sdk",
|
|
15
|
-
"printobserverContractVersion": "0.
|
|
15
|
+
"printobserverContractVersion": "0.14.0",
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
18
|
"url": "https://github.com/nickderobertis/printobserver"
|
|
19
19
|
},
|
|
20
20
|
"type": "module",
|
|
21
21
|
"types": "dist/index.d.ts",
|
|
22
|
-
"version": "0.
|
|
22
|
+
"version": "0.14.0"
|
|
23
23
|
}
|