@printobserver/sdk 0.11.1 → 0.13.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 +357 -28
- package/dist/contract.js +1062 -223
- package/package.json +2 -2
package/dist/contract.d.ts
CHANGED
|
@@ -50,6 +50,12 @@ export interface ActionAnswer {
|
|
|
50
50
|
export interface ActionExecutedPayload {
|
|
51
51
|
/** The action's identifier. */
|
|
52
52
|
action_id: ActionId;
|
|
53
|
+
/**
|
|
54
|
+
* How far into its file the print had last been read to have got when
|
|
55
|
+
* the action was taken, in bytes, when that was known: what places a
|
|
56
|
+
* change against the commands the file sets the same thing with.
|
|
57
|
+
*/
|
|
58
|
+
file_position_bytes?: number | null;
|
|
53
59
|
/** The bounded intervention it opened, when it opened one. */
|
|
54
60
|
intervention_id?: InterventionId | null;
|
|
55
61
|
}
|
|
@@ -146,6 +152,102 @@ export interface AgentAssessmentPayload {
|
|
|
146
152
|
/** The session the turn ran in. */
|
|
147
153
|
session_name: string;
|
|
148
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* What a supervision turn reads about one print: `PrintContext` with each
|
|
157
|
+
* fact stated once, as it is now, and nothing no supervision decision reads.
|
|
158
|
+
*
|
|
159
|
+
* Left out of it, each because no step of the skill, no check and no
|
|
160
|
+
* recorded
|
|
161
|
+
* case decides anything by it: the print's file, provider and times; the
|
|
162
|
+
* printer's and the job's own states (the print states it once); every
|
|
163
|
+
* heater's
|
|
164
|
+
* offset, the chamber and the time they were read; the printer's reported
|
|
165
|
+
* feedrate, flowrate and fan (the slicer's plan states the flow and fan in
|
|
166
|
+
* force, and no step reads the feedrate); the job's file, size, progress,
|
|
167
|
+
* time
|
|
168
|
+
* and position (the plan states where the print is); the manifest (its
|
|
169
|
+
* limits
|
|
170
|
+
* are the bounds); and the detector's health.
|
|
171
|
+
*
|
|
172
|
+
* The printer and the job are stated here and nowhere in the events; each
|
|
173
|
+
* event is what happened, when, and what it changed; and asked `since` an
|
|
174
|
+
* event, only the events newer than it are carried, so a turn that has read
|
|
175
|
+
* the rest is not handed them again. `newest_event` is what the next read
|
|
176
|
+
* asks `since`.
|
|
177
|
+
*/
|
|
178
|
+
export interface AgentContext {
|
|
179
|
+
/** The limits in force, so that the agent can see them before it asks. */
|
|
180
|
+
bounds: EffectiveBounds;
|
|
181
|
+
/** The interventions still active. */
|
|
182
|
+
interventions: Array<Intervention>;
|
|
183
|
+
/** The error the job stopped on, when it stopped on one. */
|
|
184
|
+
job_error?: JobError | null;
|
|
185
|
+
/**
|
|
186
|
+
* The most recent image, whose path is answered beside the context and
|
|
187
|
+
* whose record states its digest.
|
|
188
|
+
*/
|
|
189
|
+
latest_image?: ImageRef | null;
|
|
190
|
+
/**
|
|
191
|
+
* The newest event of this print's, which a later read asks `since`:
|
|
192
|
+
* absent only when the print has none.
|
|
193
|
+
*/
|
|
194
|
+
newest_event?: EventId | null;
|
|
195
|
+
/** The print. */
|
|
196
|
+
print: AgentPrint;
|
|
197
|
+
/** The printer's heaters now, when they could be read. */
|
|
198
|
+
printer?: AgentPrinter | null;
|
|
199
|
+
/**
|
|
200
|
+
* This print's events newer than the one asked `since`, or its recent
|
|
201
|
+
* ones when none was named, newest first.
|
|
202
|
+
*/
|
|
203
|
+
recent_events: Array<AgentEvent>;
|
|
204
|
+
/** What the slicer planned at the job's current file position. */
|
|
205
|
+
slicer?: SlicerPlan | null;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* One event of the print's, as a turn reads it: what happened, when, and the
|
|
209
|
+
* facts it changed.
|
|
210
|
+
*/
|
|
211
|
+
export interface AgentEvent {
|
|
212
|
+
/** Its identifier, which a later read asks `since`. */
|
|
213
|
+
id: EventId;
|
|
214
|
+
/** What kind of event it is. */
|
|
215
|
+
kind: EventKind;
|
|
216
|
+
/**
|
|
217
|
+
* What it carried, less the snapshots the context states once, the
|
|
218
|
+
* agent's own assessment and the bookkeeping no decision reads.
|
|
219
|
+
*/
|
|
220
|
+
payload?: unknown;
|
|
221
|
+
/** When it was received. */
|
|
222
|
+
received_at: Timestamp;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* One heater, in degrees Celsius: each reading absent when the printer did
|
|
226
|
+
* not
|
|
227
|
+
* report it, or reported one outside what a heater can read.
|
|
228
|
+
*/
|
|
229
|
+
export interface AgentHeater {
|
|
230
|
+
/** The temperature it is at. */
|
|
231
|
+
actual_c?: number | null;
|
|
232
|
+
/** The temperature it is driving towards. */
|
|
233
|
+
target_c?: number | null;
|
|
234
|
+
}
|
|
235
|
+
/** The print a context is about. */
|
|
236
|
+
export interface AgentPrint {
|
|
237
|
+
/** Why it ended, once it has. */
|
|
238
|
+
end_reason?: string | null;
|
|
239
|
+
/** Its identifier. */
|
|
240
|
+
id: PrintId;
|
|
241
|
+
/** What the printer was last found doing with it, or the state it ended in. */
|
|
242
|
+
state: PrinterState;
|
|
243
|
+
}
|
|
244
|
+
/** The printer's heaters as they are now. */
|
|
245
|
+
export interface AgentPrinter {
|
|
246
|
+
/** The bed's heater, when it has one. */
|
|
247
|
+
bed?: AgentHeater | null;
|
|
248
|
+
/** Each tool's heater, in order. */
|
|
249
|
+
tools?: Array<AgentHeater>;
|
|
250
|
+
}
|
|
149
251
|
/** The bed heater, as a recovery read reports it. */
|
|
150
252
|
export interface BedTemperature {
|
|
151
253
|
/** What it reads, in degrees Celsius, `null` when not reported. */
|
|
@@ -188,6 +290,13 @@ export interface CameraLookPayload {
|
|
|
188
290
|
* handed to whoever looked, oldest first.
|
|
189
291
|
*/
|
|
190
292
|
delivered?: Array<EventId>;
|
|
293
|
+
/**
|
|
294
|
+
* When the frame this look answered was captured, which its source says or
|
|
295
|
+
* the moment it answered; absent when there is no frame. Two looks naming
|
|
296
|
+
* one
|
|
297
|
+
* instant saw one frame: no newer one had been taken.
|
|
298
|
+
*/
|
|
299
|
+
frame_captured_at?: Timestamp | null;
|
|
191
300
|
/**
|
|
192
301
|
* How long the look waited for something to happen before it was taken,
|
|
193
302
|
* in whole seconds.
|
|
@@ -283,8 +392,12 @@ export type Confidence = "low" | "medium" | "high";
|
|
|
283
392
|
/**
|
|
284
393
|
* What a context read answers.
|
|
285
394
|
*
|
|
395
|
+
* The context is the agent's view of it (`AgentContext`): each fact once,
|
|
396
|
+
* as it is now, and the events newer than the one asked `since`.
|
|
397
|
+
*
|
|
286
398
|
* The latest image is **materialized** here rather than left as the handle
|
|
287
|
-
* `PrintContext` carries: the one thing a supervision
|
|
399
|
+
* `printobserver_core::PrintContext` carries: the one thing a supervision
|
|
400
|
+
* turn does with an
|
|
288
401
|
* image is look at it, and a handle is not something anything can open. The
|
|
289
402
|
* path is absolute on this server's own filesystem, exactly as
|
|
290
403
|
* `ImageAnswer`'s is, and is absent when there is no image or when the
|
|
@@ -292,7 +405,7 @@ export type Confidence = "low" | "medium" | "high";
|
|
|
292
405
|
*/
|
|
293
406
|
export interface ContextAnswer {
|
|
294
407
|
/** Everything a supervision turn is given about the print. */
|
|
295
|
-
context:
|
|
408
|
+
context: AgentContext;
|
|
296
409
|
/** Where the latest image's bytes are, absolute on this host. */
|
|
297
410
|
image_path?: string | null;
|
|
298
411
|
}
|
|
@@ -509,6 +622,21 @@ export interface Footprint {
|
|
|
509
622
|
}
|
|
510
623
|
/** Why a camera frame was not one to hand the agent. */
|
|
511
624
|
export type FrameCause = "blank" | "undecodable";
|
|
625
|
+
/**
|
|
626
|
+
* A print's G-code was read and indexed: what the slicer planned at each
|
|
627
|
+
* file position is now known for it, without reading the file again.
|
|
628
|
+
*
|
|
629
|
+
* Written once per index built, which is once per print for as long as the
|
|
630
|
+
* server runs.
|
|
631
|
+
*/
|
|
632
|
+
export interface GcodeIndexedPayload {
|
|
633
|
+
/** How many bytes of it were read. */
|
|
634
|
+
bytes: number;
|
|
635
|
+
/** The file that was indexed. */
|
|
636
|
+
file_name: FileName;
|
|
637
|
+
/** How many layers it plans. */
|
|
638
|
+
layers: number;
|
|
639
|
+
}
|
|
512
640
|
/** One tool heater whose target was above zero. */
|
|
513
641
|
export interface HeatedTool {
|
|
514
642
|
/** Its target, in degrees Celsius. */
|
|
@@ -668,6 +796,15 @@ export interface JobManifest {
|
|
|
668
796
|
metadata: Record<string, string>;
|
|
669
797
|
/** The nozzle the job is sliced for, in millimetres. */
|
|
670
798
|
nozzle_diameter_mm: number;
|
|
799
|
+
/**
|
|
800
|
+
* The build sheet the job goes down on, as one of the sheet ids the
|
|
801
|
+
* server's sheet table names, such as `smooth-pei` or `textured-pei`.
|
|
802
|
+
*
|
|
803
|
+
* Every start must declare one: a start whose manifest names none is
|
|
804
|
+
* refused, and no override lets it through. Optional here only so that a
|
|
805
|
+
* manifest stored before the field existed still loads.
|
|
806
|
+
*/
|
|
807
|
+
sheet?: string | null;
|
|
671
808
|
/** The slicer profile the job was sliced with. */
|
|
672
809
|
slicer_profile: string;
|
|
673
810
|
}
|
|
@@ -797,6 +934,55 @@ export interface ManifestNarrowing {
|
|
|
797
934
|
/** The range the manifest asked for. */
|
|
798
935
|
requested: Range;
|
|
799
936
|
}
|
|
937
|
+
/**
|
|
938
|
+
* A filament material as a spool's registration or a slicer's settings name
|
|
939
|
+
* it, such as `PLA`: never blank, and trimmed of surrounding space as it is
|
|
940
|
+
* read.
|
|
941
|
+
*/
|
|
942
|
+
export type MaterialName = string;
|
|
943
|
+
/** Why the material check objects to a start, with what it compared. */
|
|
944
|
+
export type MaterialObjection = {
|
|
945
|
+
cause: "mismatch";
|
|
946
|
+
loaded: MaterialName;
|
|
947
|
+
sliced_for: MaterialName;
|
|
948
|
+
spool: PreflightSpool;
|
|
949
|
+
tool: number;
|
|
950
|
+
} | {
|
|
951
|
+
cause: "undeclared";
|
|
952
|
+
file_name: FileName;
|
|
953
|
+
loaded: MaterialName;
|
|
954
|
+
spool: PreflightSpool;
|
|
955
|
+
tool: number;
|
|
956
|
+
} | {
|
|
957
|
+
cause: "unread";
|
|
958
|
+
detail: string;
|
|
959
|
+
file_name: FileName;
|
|
960
|
+
loaded: MaterialName;
|
|
961
|
+
spool: PreflightSpool;
|
|
962
|
+
tool: number;
|
|
963
|
+
};
|
|
964
|
+
/**
|
|
965
|
+
* Whether a file was sliced for the material of the spool loaded on tool 0,
|
|
966
|
+
* tagged by its verdict.
|
|
967
|
+
*/
|
|
968
|
+
export type MaterialResult = {
|
|
969
|
+
verdict: "passed";
|
|
970
|
+
loaded: MaterialName;
|
|
971
|
+
sliced_for: MaterialName;
|
|
972
|
+
spool: PreflightSpool;
|
|
973
|
+
tool: number;
|
|
974
|
+
} | {
|
|
975
|
+
verdict: "unchecked";
|
|
976
|
+
} | {
|
|
977
|
+
verdict: "refused";
|
|
978
|
+
objection: MaterialObjection;
|
|
979
|
+
} | {
|
|
980
|
+
verdict: "overridden";
|
|
981
|
+
objection: MaterialObjection;
|
|
982
|
+
} | {
|
|
983
|
+
verdict: "warned";
|
|
984
|
+
objection: MaterialObjection;
|
|
985
|
+
};
|
|
800
986
|
/**
|
|
801
987
|
* Obico reported a print failure.
|
|
802
988
|
*
|
|
@@ -916,6 +1102,11 @@ export interface PendingTaken {
|
|
|
916
1102
|
* at the same moment, untagged by any detector, is this event's image.
|
|
917
1103
|
*/
|
|
918
1104
|
export interface PeriodicObservationPayload {
|
|
1105
|
+
/**
|
|
1106
|
+
* When the observation's frame was captured, which its source says or the
|
|
1107
|
+
* moment it answered; absent when there is no frame.
|
|
1108
|
+
*/
|
|
1109
|
+
frame_captured_at?: Timestamp | null;
|
|
919
1110
|
/** How often these are taken, in whole seconds. */
|
|
920
1111
|
interval_s: number;
|
|
921
1112
|
/**
|
|
@@ -929,6 +1120,13 @@ export interface PeriodicObservationPayload {
|
|
|
929
1120
|
*/
|
|
930
1121
|
printer?: PrinterSnapshot | null;
|
|
931
1122
|
}
|
|
1123
|
+
/** A fact of the plan the print's file does not state. */
|
|
1124
|
+
export type PlanFact = "layer" | "final_z" | "types" | "minutes_left" | "flow_factor" | "fan_percent" | "objects" | "rise";
|
|
1125
|
+
/**
|
|
1126
|
+
* A setting in force that the plan at this height says is wrong for what is
|
|
1127
|
+
* being laid.
|
|
1128
|
+
*/
|
|
1129
|
+
export type PlanMismatch = "fan_off_over_bridges" | "flow_low_over_walls";
|
|
932
1130
|
/** The decision policy took on one request. */
|
|
933
1131
|
export type PolicyDecision = "accepted" | {
|
|
934
1132
|
rejected: RejectionReason;
|
|
@@ -973,11 +1171,25 @@ export interface Preflight {
|
|
|
973
1171
|
checked_at: Timestamp;
|
|
974
1172
|
/** The file the print is of. */
|
|
975
1173
|
file_name: string;
|
|
1174
|
+
/**
|
|
1175
|
+
* Whether the file was sliced for the material of the spool on tool 0.
|
|
1176
|
+
* Absent from a check recorded before this check existed.
|
|
1177
|
+
*/
|
|
1178
|
+
material?: MaterialResult | null;
|
|
1179
|
+
/**
|
|
1180
|
+
* Whether the declared build sheet suits that spool's material. Absent
|
|
1181
|
+
* from a check recorded before this check existed, and from a read that
|
|
1182
|
+
* was given no sheet.
|
|
1183
|
+
*/
|
|
1184
|
+
sheet?: SheetResult | null;
|
|
976
1185
|
/** What it found for each tool. */
|
|
977
1186
|
tools: Array<PreflightTool>;
|
|
978
1187
|
/**
|
|
979
1188
|
* The worst of the tools' verdicts, in the order insufficient,
|
|
980
1189
|
* unverified spool, no analysis, warned, overridden, unchecked, passed.
|
|
1190
|
+
*
|
|
1191
|
+
* The filament weight's alone: the material and sheet checks carry
|
|
1192
|
+
* verdicts of their own, in `material` and `sheet`.
|
|
981
1193
|
*/
|
|
982
1194
|
verdict: PreflightVerdict;
|
|
983
1195
|
}
|
|
@@ -1096,6 +1308,8 @@ export type PrintAction = {
|
|
|
1096
1308
|
file_name: FileName;
|
|
1097
1309
|
manifest: JobManifest;
|
|
1098
1310
|
override_filament_check?: boolean;
|
|
1311
|
+
override_material_check?: boolean;
|
|
1312
|
+
override_sheet_check?: boolean;
|
|
1099
1313
|
reason: string;
|
|
1100
1314
|
} | {
|
|
1101
1315
|
action: "set_feedrate_factor";
|
|
@@ -1140,27 +1354,6 @@ export type PrintAction = {
|
|
|
1140
1354
|
outcome: PrintOutcome;
|
|
1141
1355
|
reason: string;
|
|
1142
1356
|
};
|
|
1143
|
-
/** Everything a supervision turn is given about one print. */
|
|
1144
|
-
export interface PrintContext {
|
|
1145
|
-
/** The limits in force, so that the agent can see them before it asks. */
|
|
1146
|
-
bounds: EffectiveBounds;
|
|
1147
|
-
/** The failure detector's health, and since when it has been so. */
|
|
1148
|
-
detector?: DetectorHealth;
|
|
1149
|
-
/** The interventions still active. */
|
|
1150
|
-
interventions: Array<Intervention>;
|
|
1151
|
-
/** The job, when a snapshot could be taken. */
|
|
1152
|
-
job?: JobSnapshot | null;
|
|
1153
|
-
/** The most recent image, when there is one. */
|
|
1154
|
-
latest_image?: ImageRef | null;
|
|
1155
|
-
/** The manifest, when the print has one. */
|
|
1156
|
-
manifest?: JobManifest | null;
|
|
1157
|
-
/** The print itself. */
|
|
1158
|
-
print: PrintRecord;
|
|
1159
|
-
/** The printer, when a snapshot could be taken. */
|
|
1160
|
-
printer?: PrinterSnapshot | null;
|
|
1161
|
-
/** A bounded list of this print's events, newest first. */
|
|
1162
|
-
recent_events: Array<EventRecord>;
|
|
1163
|
-
}
|
|
1164
1357
|
/** One print's end, as its `print_ended` event stored it. */
|
|
1165
1358
|
export interface PrintEnded {
|
|
1166
1359
|
/** The `print_ended` event. */
|
|
@@ -1596,7 +1789,15 @@ export type RejectionReason = {
|
|
|
1596
1789
|
file_name: string;
|
|
1597
1790
|
waited_s: number;
|
|
1598
1791
|
};
|
|
1599
|
-
} |
|
|
1792
|
+
} | {
|
|
1793
|
+
material_refused: {
|
|
1794
|
+
objection: MaterialObjection;
|
|
1795
|
+
};
|
|
1796
|
+
} | {
|
|
1797
|
+
sheet_refused: {
|
|
1798
|
+
objection: SheetObjection;
|
|
1799
|
+
};
|
|
1800
|
+
} | "sheet_not_declared" | "print_already_ended" | {
|
|
1600
1801
|
print_still_active: {
|
|
1601
1802
|
state: PrinterState;
|
|
1602
1803
|
};
|
|
@@ -1624,6 +1825,83 @@ export interface Reported {
|
|
|
1624
1825
|
/** One shape of the contracts, which say nothing more about it. */
|
|
1625
1826
|
value: number;
|
|
1626
1827
|
}
|
|
1828
|
+
/**
|
|
1829
|
+
* How far the plan has risen since one earlier frame of this print that was
|
|
1830
|
+
* seen: the height a camera should show the parts to have gained since then.
|
|
1831
|
+
*/
|
|
1832
|
+
export interface Rise {
|
|
1833
|
+
/**
|
|
1834
|
+
* Two heights of the print's highest point, in millimetres: the first
|
|
1835
|
+
* is where the plan had it when that frame was captured, the second how
|
|
1836
|
+
* far it should have risen since — the rise of every layer since that
|
|
1837
|
+
* lays anything but supports. They are the plate's, not every part's: a
|
|
1838
|
+
* part the plan has finished does not grow with it.
|
|
1839
|
+
*/
|
|
1840
|
+
mm: Array<number>;
|
|
1841
|
+
/**
|
|
1842
|
+
* When that earlier frame was captured: the newest frame at least half
|
|
1843
|
+
* an hour old that a periodic observation or a look at this print was
|
|
1844
|
+
* given, as that observation or look states its capture time.
|
|
1845
|
+
*/
|
|
1846
|
+
since: Timestamp;
|
|
1847
|
+
}
|
|
1848
|
+
/**
|
|
1849
|
+
* One adjustable as the print's file set it at the current position, and as
|
|
1850
|
+
* a change made through this program since then left it.
|
|
1851
|
+
*/
|
|
1852
|
+
export interface SetValue {
|
|
1853
|
+
/**
|
|
1854
|
+
* What the latest change made through this program set it to, when one
|
|
1855
|
+
* was made after the file last set it.
|
|
1856
|
+
*/
|
|
1857
|
+
changed?: number | null;
|
|
1858
|
+
/** What the file's own commands set it to, by the current position. */
|
|
1859
|
+
file?: number | null;
|
|
1860
|
+
}
|
|
1861
|
+
/**
|
|
1862
|
+
* A build sheet's identifier as the sheet table names it, such as
|
|
1863
|
+
* `smooth-pei`: never blank, and trimmed of surrounding space as it is read.
|
|
1864
|
+
*/
|
|
1865
|
+
export type SheetId = string;
|
|
1866
|
+
/** Why the sheet check objects to a start, with what it compared. */
|
|
1867
|
+
export type SheetObjection = {
|
|
1868
|
+
cause: "not_allowed";
|
|
1869
|
+
allowed: Array<SheetId>;
|
|
1870
|
+
material: MaterialName;
|
|
1871
|
+
sheet: SheetId;
|
|
1872
|
+
} | {
|
|
1873
|
+
cause: "unlisted_material";
|
|
1874
|
+
material: MaterialName;
|
|
1875
|
+
sheet: SheetId;
|
|
1876
|
+
} | {
|
|
1877
|
+
cause: "unknown_sheet";
|
|
1878
|
+
known: Array<SheetId>;
|
|
1879
|
+
material: MaterialName;
|
|
1880
|
+
sheet: SheetId;
|
|
1881
|
+
};
|
|
1882
|
+
/**
|
|
1883
|
+
* Whether the declared build sheet suits the loaded spool's material, tagged
|
|
1884
|
+
* by its verdict.
|
|
1885
|
+
*/
|
|
1886
|
+
export type SheetResult = {
|
|
1887
|
+
verdict: "passed";
|
|
1888
|
+
allowed: Array<SheetId>;
|
|
1889
|
+
material: MaterialName;
|
|
1890
|
+
sheet: SheetId;
|
|
1891
|
+
} | {
|
|
1892
|
+
verdict: "unchecked";
|
|
1893
|
+
} | {
|
|
1894
|
+
verdict: "undeclared";
|
|
1895
|
+
} | {
|
|
1896
|
+
verdict: "refused";
|
|
1897
|
+
objection: SheetObjection;
|
|
1898
|
+
} | {
|
|
1899
|
+
verdict: "overridden";
|
|
1900
|
+
objection: SheetObjection;
|
|
1901
|
+
} | {
|
|
1902
|
+
verdict: "warned";
|
|
1903
|
+
objection: SheetObjection;
|
|
1904
|
+
};
|
|
1627
1905
|
/** The position a filament change charged up to, and how fresh it is. */
|
|
1628
1906
|
export interface SignalPosition {
|
|
1629
1907
|
/**
|
|
@@ -1634,6 +1912,56 @@ export interface SignalPosition {
|
|
|
1634
1912
|
/** The position. */
|
|
1635
1913
|
position: FilePosition;
|
|
1636
1914
|
}
|
|
1915
|
+
/**
|
|
1916
|
+
* What the slicer planned at the print's current file position: the shape
|
|
1917
|
+
* and place of what should be printing, read from the print's own G-code.
|
|
1918
|
+
*
|
|
1919
|
+
* These are the slicer's plan rather than an observation: a feature named
|
|
1920
|
+
* here is part of the design at this height, and nothing here says how well
|
|
1921
|
+
* it printed.
|
|
1922
|
+
*/
|
|
1923
|
+
export interface SlicerPlan {
|
|
1924
|
+
/** Each setting in force the plan at this height says is wrong. */
|
|
1925
|
+
at_odds?: Array<PlanMismatch>;
|
|
1926
|
+
/** The part-cooling fan speed, in percent. */
|
|
1927
|
+
fan_percent?: SetValue | null;
|
|
1928
|
+
/** The final layer's height, in millimetres. */
|
|
1929
|
+
final_z_mm?: number | null;
|
|
1930
|
+
/** The flow factor, one meaning one hundred percent. */
|
|
1931
|
+
flow_factor?: SetValue | null;
|
|
1932
|
+
/**
|
|
1933
|
+
* The layer the print is in, counting the first as 1; absent before the
|
|
1934
|
+
* first.
|
|
1935
|
+
*/
|
|
1936
|
+
layer?: number | null;
|
|
1937
|
+
/** The slicer's own estimate of the minutes left, at the current position. */
|
|
1938
|
+
minutes_left?: number | null;
|
|
1939
|
+
/** How many objects the file lays down; absent when it labels none. */
|
|
1940
|
+
object_count?: number | null;
|
|
1941
|
+
/**
|
|
1942
|
+
* The bed area each object the file lays down covers, unnamed, as
|
|
1943
|
+
* `[x_min, y_min, x_max, y_max]` in whole millimetres, in the order of
|
|
1944
|
+
* the file's object numbers.
|
|
1945
|
+
*/
|
|
1946
|
+
objects?: Array<Array<number>>;
|
|
1947
|
+
/**
|
|
1948
|
+
* How far the plan has risen since an earlier frame; absent before any
|
|
1949
|
+
* frame is half an hour old.
|
|
1950
|
+
*/
|
|
1951
|
+
rise?: Rise | null;
|
|
1952
|
+
/**
|
|
1953
|
+
* What the current layer lays material as, in the order the file first
|
|
1954
|
+
* names each: `Perimeter`, `Support material`, `Bridge infill`.
|
|
1955
|
+
*/
|
|
1956
|
+
types?: Array<string>;
|
|
1957
|
+
/**
|
|
1958
|
+
* The facts the file does not state, which are therefore unknown rather
|
|
1959
|
+
* than absent.
|
|
1960
|
+
*/
|
|
1961
|
+
unknown?: Array<PlanFact>;
|
|
1962
|
+
/** The current layer's height, in millimetres. */
|
|
1963
|
+
z_mm?: number | null;
|
|
1964
|
+
}
|
|
1637
1965
|
/** A spool's remaining figure was corrected. */
|
|
1638
1966
|
export interface SpoolAdjustedPayload {
|
|
1639
1967
|
/** Who corrected it. */
|
|
@@ -2119,6 +2447,7 @@ export interface EventPayloads {
|
|
|
2119
2447
|
filament_change_signalled: FilamentChangeSignalledPayload;
|
|
2120
2448
|
filament_consumed: FilamentConsumedPayload;
|
|
2121
2449
|
file_tally_rebaselined: FileTallyRebaselinedPayload;
|
|
2450
|
+
gcode_indexed: GcodeIndexedPayload;
|
|
2122
2451
|
intervention_expired: InterventionExpiredPayload;
|
|
2123
2452
|
malformed_external_event: MalformedExternalEventPayload;
|
|
2124
2453
|
obico_failure_alert: ObicoFailureAlertPayload;
|
|
@@ -2149,7 +2478,7 @@ export interface EventPayloads {
|
|
|
2149
2478
|
unattended_printer_activity: UnattendedPrinterActivityPayload;
|
|
2150
2479
|
}
|
|
2151
2480
|
/** Every kind the server declares a payload type for, in name order. */
|
|
2152
|
-
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", "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"];
|
|
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"];
|
|
2153
2482
|
/**
|
|
2154
2483
|
* The payload of one event as the type its kind declares, or `undefined` for
|
|
2155
2484
|
* an event of any other kind — one this client knows or one it does not. No
|
|
@@ -2194,7 +2523,7 @@ export declare class GeneratedClient extends GeneratedSurface {
|
|
|
2194
2523
|
* the answer could not be read, and with `Refused` when the supervisor
|
|
2195
2524
|
* said no.
|
|
2196
2525
|
*/
|
|
2197
|
-
context(printId: string): Promise<ContextAnswer>;
|
|
2526
|
+
context(printId: string, since?: EventId): Promise<ContextAnswer>;
|
|
2198
2527
|
/**
|
|
2199
2528
|
* Call `image` on the configured supervisor.
|
|
2200
2529
|
*
|
|
@@ -2284,7 +2613,7 @@ export declare class GeneratedClient extends GeneratedSurface {
|
|
|
2284
2613
|
* the answer could not be read, and with `Refused` when the supervisor
|
|
2285
2614
|
* said no.
|
|
2286
2615
|
*/
|
|
2287
|
-
preflight(fileName: string): Promise<PreflightAnswer>;
|
|
2616
|
+
preflight(fileName: string, sheet?: SheetId): Promise<PreflightAnswer>;
|
|
2288
2617
|
/**
|
|
2289
2618
|
* Call `pause` on the configured supervisor.
|
|
2290
2619
|
*
|
|
@@ -2324,7 +2653,7 @@ export declare class GeneratedClient extends GeneratedSurface {
|
|
|
2324
2653
|
* is made, and the policy's own refusal arrives as `Rejected`, carrying
|
|
2325
2654
|
* the reason, the value asked for and the range allowed.
|
|
2326
2655
|
*/
|
|
2327
|
-
startPrint(printId: string, fileName: FileName, manifest: JobManifest, reason: string, overrideFilamentCheck?: boolean): Promise<ActionAnswer>;
|
|
2656
|
+
startPrint(printId: string, fileName: FileName, manifest: JobManifest, reason: string, overrideFilamentCheck?: boolean, overrideMaterialCheck?: boolean, overrideSheetCheck?: boolean): Promise<ActionAnswer>;
|
|
2328
2657
|
/**
|
|
2329
2658
|
* Call `set_feedrate_factor` on the configured supervisor.
|
|
2330
2659
|
*
|