@printobserver/sdk 0.15.5 → 0.16.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.
@@ -611,8 +611,66 @@ export type ExecutionOutcome = "succeeded" | {
611
611
  reason: string;
612
612
  };
613
613
  };
614
+ /**
615
+ * A print reached one of the changes its G-code plans, and the printer is
616
+ * waiting there for a person: recorded once per planned change of a print.
617
+ *
618
+ * From this event to the change's `filament_change_planned_resumed`, no
619
+ * supervision turn runs for the print, and a pause, a resume or an
620
+ * adjustment
621
+ * is refused `planned_change_waiting` to every actor.
622
+ */
623
+ export interface FilamentChangePlannedReachedPayload {
624
+ /** The change reached. */
625
+ change: PlannedChange;
626
+ /** The filament the stretch after the change feeds, in millimetres. */
627
+ next_segment_filament_mm: number;
628
+ /**
629
+ * The spool the print's manifest names for the stretch after the change;
630
+ * null when it names none.
631
+ */
632
+ next_spool_id: SpoolId | null;
633
+ /** Where the job stood when it was. */
634
+ position: FilePosition;
635
+ /**
636
+ * The colour of the stretch before it, as `#RRGGBB`; null when the file
637
+ * names none.
638
+ */
639
+ previous_color: string | null;
640
+ /**
641
+ * The spool charged up to the change: the one on tool 0; null when none
642
+ * was loaded.
643
+ */
644
+ spool_id: SpoolId | null;
645
+ /** What told the supervisor it was reached. */
646
+ trigger: PlannedChangeTrigger;
647
+ }
648
+ /**
649
+ * A print carried on from a planned change it was waiting at: its file
650
+ * position moved past the change. Recorded once per change reached, and the
651
+ * check it prompts runs at once.
652
+ */
653
+ export interface FilamentChangePlannedResumedPayload {
654
+ /** The change the print carried on from. */
655
+ change: PlannedChange;
656
+ /** Where the job stood when it was found to have carried on. */
657
+ position: FilePosition;
658
+ /**
659
+ * The colour of the stretch before it, as `#RRGGBB`; null when the file
660
+ * names none.
661
+ */
662
+ previous_color: string | null;
663
+ /** How long the print waited at it, in whole seconds. */
664
+ waited_s: number;
665
+ }
614
666
  /** A filament change was signalled during a print. */
615
667
  export interface FilamentChangeSignalledPayload {
668
+ /**
669
+ * The index of the planned change the print stopped at, which the spool
670
+ * was charged up to the offset of; absent when no change was planned at
671
+ * that position, and on a record written before changes were planned.
672
+ */
673
+ planned_change?: number | null;
616
674
  /**
617
675
  * The position the spool was charged up to, and how fresh it is, when one
618
676
  * was known; absent, there is no position and so no claim about one.
@@ -884,6 +942,12 @@ export interface JobManifest {
884
942
  metadata: Record<string, string>;
885
943
  /** The nozzle the job is sliced for, in millimetres. */
886
944
  nozzle_diameter_mm: number;
945
+ /**
946
+ * The spool meant for each later stretch of a file with planned colour
947
+ * changes, which a start checks against that stretch's filament. A
948
+ * manifest naming none is checked as one without changes is.
949
+ */
950
+ segment_spools?: Array<SegmentSpool>;
887
951
  /**
888
952
  * The build sheet the job goes down on, as one of the sheet ids the
889
953
  * server's sheet table names, such as `smooth-pei` or `textured-pei`.
@@ -1220,6 +1284,67 @@ export type PlanFact = "layer" | "final_z" | "types" | "minutes_left" | "flow_fa
1220
1284
  * being laid.
1221
1285
  */
1222
1286
  export type PlanMismatch = "fan_off_over_bridges" | "flow_low_over_walls";
1287
+ /**
1288
+ * One stop the print's own G-code plans: an `M600` colour change or an
1289
+ * `M601` pause, where the firmware waits for a person.
1290
+ */
1291
+ export interface PlannedChange {
1292
+ /**
1293
+ * The colour loaded at it, as `#RRGGBB` in upper case, from the
1294
+ * `;COLOR_CHANGE,T<n>,#RRGGBB` line just before its `M600`; null for an
1295
+ * `M601`, and for an `M600` with no such line.
1296
+ */
1297
+ color: string | null;
1298
+ /** Its place among the file's changes, counting from 0 in file order. */
1299
+ index: number;
1300
+ /** What it stops the print for. */
1301
+ kind: PlannedChangeKind;
1302
+ /**
1303
+ * The first layer printed after it, counting the first as 1: the layer
1304
+ * whose `;Z:` is the change's height.
1305
+ */
1306
+ layer: number;
1307
+ /** The byte offset of the first byte of its `M600` or `M601` line. */
1308
+ offset_bytes: number;
1309
+ /** That layer's height, in millimetres. */
1310
+ z_mm: number;
1311
+ }
1312
+ /** What a planned change stops the print for. */
1313
+ export type PlannedChangeKind = "color_change" | "pause";
1314
+ /** What told the supervisor a print had reached one of its planned changes. */
1315
+ export type PlannedChangeTrigger = "signal" | "position";
1316
+ /** A print's planned changes as the status read answers them. */
1317
+ export interface PlannedChanges {
1318
+ /** Every change the file plans, in file order. */
1319
+ changes: Array<PlannedChange>;
1320
+ /**
1321
+ * The colour expected at the job's current position, as `#RRGGBB`; null
1322
+ * when the file names none there or the position is unknown.
1323
+ */
1324
+ expected_color: string | null;
1325
+ /** The stretches between them, in file order. */
1326
+ segments: Array<PlannedSegment>;
1327
+ /**
1328
+ * The index of the change the printer is waiting at now; null when it is
1329
+ * waiting at none.
1330
+ */
1331
+ waiting: number | null;
1332
+ }
1333
+ /** One stretch of the print between its planned changes. */
1334
+ export interface PlannedSegment {
1335
+ /**
1336
+ * Its colour as `#RRGGBB`: segment 0's the file's `filament_colour`, every
1337
+ * later one its change's; null where the file names none.
1338
+ */
1339
+ color: string | null;
1340
+ /** The filament it feeds, in millimetres: the net of its extrusion moves. */
1341
+ filament_mm: number;
1342
+ /**
1343
+ * Its number: segment 0 runs from the file's start to change 0, and
1344
+ * segment n from change n-1 to change n, or to the file's end.
1345
+ */
1346
+ segment: number;
1347
+ }
1223
1348
  /** The decision policy took on one request. */
1224
1349
  export type PolicyDecision = "accepted" | {
1225
1350
  rejected: RejectionReason;
@@ -1269,6 +1394,13 @@ export interface Preflight {
1269
1394
  * Absent from a check recorded before this check existed.
1270
1395
  */
1271
1396
  material?: MaterialResult | null;
1397
+ /**
1398
+ * Each stretch of a file with planned colour changes, the filament it
1399
+ * feeds and the spool meant for it: tool 0's result is checked against
1400
+ * segment 0 alone, and each later segment against the spool a start's
1401
+ * manifest names for it. Absent for a file that plans no change.
1402
+ */
1403
+ segments?: Array<PreflightSegment>;
1272
1404
  /**
1273
1405
  * Whether the declared build sheet suits that spool's material. Absent
1274
1406
  * from a check recorded before this check existed, and from a read that
@@ -1329,6 +1461,28 @@ export type PreflightObjection = {
1329
1461
  remaining_g: number;
1330
1462
  spool: PreflightSpool;
1331
1463
  };
1464
+ /**
1465
+ * One stretch of a file with planned colour changes, as a filament check
1466
+ * reads it.
1467
+ */
1468
+ export interface PreflightSegment {
1469
+ /** Its colour as `#RRGGBB`; null when the file names none. */
1470
+ color: string | null;
1471
+ /** The filament it feeds, in millimetres. */
1472
+ filament_mm: number;
1473
+ /**
1474
+ * What it needs from the spool meant for it, in grams, by that spool's
1475
+ * diameter and density; null when no spool is there to convert with.
1476
+ */
1477
+ required_g: number | null;
1478
+ /** Its number: segment 0 runs from the file's start to the first change. */
1479
+ segment: number;
1480
+ /**
1481
+ * The spool meant for it: the one on tool 0 for segment 0, and the one
1482
+ * the manifest names for a later segment; null when none is.
1483
+ */
1484
+ spool_id: SpoolId | null;
1485
+ }
1332
1486
  /**
1333
1487
  * The spool a check judged, named beside its identifier so a reader need
1334
1488
  * not look it up.
@@ -1877,6 +2031,7 @@ export type RejectionReason = {
1877
2031
  buffer_g: number;
1878
2032
  remaining_g: number;
1879
2033
  required_g: number;
2034
+ segment?: number | null;
1880
2035
  spool_id: SpoolId;
1881
2036
  spool_name: string;
1882
2037
  tool: number;
@@ -1885,6 +2040,7 @@ export type RejectionReason = {
1885
2040
  } | {
1886
2041
  unverified_spool: {
1887
2042
  reason: UnverifiedReason;
2043
+ segment?: number | null;
1888
2044
  spool_id: SpoolId;
1889
2045
  spool_name: string;
1890
2046
  tool: number;
@@ -1914,6 +2070,13 @@ export type RejectionReason = {
1914
2070
  print_not_resumable: {
1915
2071
  recovery_event_id: EventId;
1916
2072
  };
2073
+ } | {
2074
+ planned_change_waiting: {
2075
+ change_index: number;
2076
+ color: string | null;
2077
+ layer: number;
2078
+ z_mm: number;
2079
+ };
1917
2080
  } | {
1918
2081
  spool_refused: {
1919
2082
  cause: SpoolRefusalCause;
@@ -1951,6 +2114,16 @@ export interface Rise {
1951
2114
  */
1952
2115
  since: Timestamp;
1953
2116
  }
2117
+ /** The spool meant for one stretch after a planned change. */
2118
+ export interface SegmentSpool {
2119
+ /**
2120
+ * The stretch, counting the one after the first change as 1: segment 0
2121
+ * is the spool loaded on tool 0 at the start, so it is never named here.
2122
+ */
2123
+ segment: number;
2124
+ /** The spool meant for it. */
2125
+ spool_id: SpoolId;
2126
+ }
1954
2127
  /**
1955
2128
  * One adjustable as the print's file set it at the current position, and as
1956
2129
  * a change made through this program since then left it.
@@ -2029,6 +2202,17 @@ export interface SignalPosition {
2029
2202
  export interface SlicerPlan {
2030
2203
  /** Each setting in force the plan at this height says is wrong. */
2031
2204
  at_odds?: Array<PlanMismatch>;
2205
+ /**
2206
+ * The planned change the printer is waiting at now, for a person to
2207
+ * finish; absent when it is waiting at none.
2208
+ */
2209
+ change_waiting?: PlannedChange | null;
2210
+ /**
2211
+ * The colour the print should be laying at the current position, as
2212
+ * `#RRGGBB`; absent when the file plans no change or names no colour
2213
+ * there.
2214
+ */
2215
+ expected_color?: string | null;
2032
2216
  /** The part-cooling fan speed, in percent. */
2033
2217
  fan_percent?: SetValue | null;
2034
2218
  /** The final layer's height, in millimetres. */
@@ -2042,6 +2226,17 @@ export interface SlicerPlan {
2042
2226
  layer?: number | null;
2043
2227
  /** The slicer's own estimate of the minutes left, at the current position. */
2044
2228
  minutes_left?: number | null;
2229
+ /**
2230
+ * The slicer's own count of the minutes to that change, from the latest
2231
+ * `M73 C` the position has reached; absent when there is no next change
2232
+ * or no count.
2233
+ */
2234
+ minutes_to_next_change?: number | null;
2235
+ /**
2236
+ * The next change the file plans after the current position; absent when
2237
+ * it plans none there.
2238
+ */
2239
+ next_change?: PlannedChange | null;
2045
2240
  /** How many objects the file lays down; absent when it labels none. */
2046
2241
  object_count?: number | null;
2047
2242
  /**
@@ -2383,6 +2578,12 @@ export interface StatusAnswer {
2383
2578
  interventions: Array<Intervention>;
2384
2579
  /** The job, when a snapshot could be taken. */
2385
2580
  job?: JobSnapshot | null;
2581
+ /**
2582
+ * The changes the print's G-code plans, the one the printer waits at and
2583
+ * the colour expected where its job stands; absent when the file plans
2584
+ * none or could not be read.
2585
+ */
2586
+ planned_changes?: PlannedChanges | null;
2386
2587
  /** The print. */
2387
2588
  print: PrintRecord;
2388
2589
  /** The printer, when a snapshot could be taken. */
@@ -2552,6 +2753,8 @@ export interface EventPayloads {
2552
2753
  camera_retry: CameraRetryPayload;
2553
2754
  charge_pended: ChargePendedPayload;
2554
2755
  detector_health_changed: DetectorHealthChangedPayload;
2756
+ filament_change_planned_reached: FilamentChangePlannedReachedPayload;
2757
+ filament_change_planned_resumed: FilamentChangePlannedResumedPayload;
2555
2758
  filament_change_signalled: FilamentChangeSignalledPayload;
2556
2759
  filament_consumed: FilamentConsumedPayload;
2557
2760
  file_tally_rebaselined: FileTallyRebaselinedPayload;
@@ -2586,7 +2789,7 @@ export interface EventPayloads {
2586
2789
  unattended_printer_activity: UnattendedPrinterActivityPayload;
2587
2790
  }
2588
2791
  /** Every kind the server declares a payload type for, in name order. */
2589
- 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"];
2792
+ 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_planned_reached", "filament_change_planned_resumed", "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"];
2590
2793
  /**
2591
2794
  * The payload of one event as the type its kind declares, or `undefined` for
2592
2795
  * an event of any other kind — one this client knows or one it does not. No
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.15.5";
10
+ export const CONTRACT_VERSION = "0.16.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.
@@ -66,6 +66,8 @@ export const EVENT_KINDS = [
66
66
  "camera_retry",
67
67
  "charge_pended",
68
68
  "detector_health_changed",
69
+ "filament_change_planned_reached",
70
+ "filament_change_planned_resumed",
69
71
  "filament_change_signalled",
70
72
  "filament_consumed",
71
73
  "file_tally_rebaselined",
@@ -1460,9 +1462,119 @@ export const SHAPES = JSON.parse(`
1460
1462
  }
1461
1463
  }
1462
1464
  },
1465
+ "FilamentChangePlannedReachedPayload": {
1466
+ "struct": {
1467
+ "fields": {
1468
+ "change": {
1469
+ "paired_with": "",
1470
+ "required": true,
1471
+ "shape": {
1472
+ "ref": "PlannedChange"
1473
+ }
1474
+ },
1475
+ "next_segment_filament_mm": {
1476
+ "paired_with": "",
1477
+ "required": true,
1478
+ "shape": {
1479
+ "scalar": "number"
1480
+ }
1481
+ },
1482
+ "next_spool_id": {
1483
+ "paired_with": "",
1484
+ "required": true,
1485
+ "shape": {
1486
+ "nullable": {
1487
+ "ref": "SpoolId"
1488
+ }
1489
+ }
1490
+ },
1491
+ "position": {
1492
+ "paired_with": "",
1493
+ "required": true,
1494
+ "shape": {
1495
+ "ref": "FilePosition"
1496
+ }
1497
+ },
1498
+ "previous_color": {
1499
+ "paired_with": "",
1500
+ "required": true,
1501
+ "shape": {
1502
+ "nullable": {
1503
+ "scalar": "string"
1504
+ }
1505
+ }
1506
+ },
1507
+ "spool_id": {
1508
+ "paired_with": "",
1509
+ "required": true,
1510
+ "shape": {
1511
+ "nullable": {
1512
+ "ref": "SpoolId"
1513
+ }
1514
+ }
1515
+ },
1516
+ "trigger": {
1517
+ "paired_with": "",
1518
+ "required": true,
1519
+ "shape": {
1520
+ "ref": "PlannedChangeTrigger"
1521
+ }
1522
+ }
1523
+ },
1524
+ "tag_field": "",
1525
+ "variants": {}
1526
+ }
1527
+ },
1528
+ "FilamentChangePlannedResumedPayload": {
1529
+ "struct": {
1530
+ "fields": {
1531
+ "change": {
1532
+ "paired_with": "",
1533
+ "required": true,
1534
+ "shape": {
1535
+ "ref": "PlannedChange"
1536
+ }
1537
+ },
1538
+ "position": {
1539
+ "paired_with": "",
1540
+ "required": true,
1541
+ "shape": {
1542
+ "ref": "FilePosition"
1543
+ }
1544
+ },
1545
+ "previous_color": {
1546
+ "paired_with": "",
1547
+ "required": true,
1548
+ "shape": {
1549
+ "nullable": {
1550
+ "scalar": "string"
1551
+ }
1552
+ }
1553
+ },
1554
+ "waited_s": {
1555
+ "paired_with": "",
1556
+ "required": true,
1557
+ "shape": {
1558
+ "scalar": "integer"
1559
+ }
1560
+ }
1561
+ },
1562
+ "tag_field": "",
1563
+ "variants": {}
1564
+ }
1565
+ },
1463
1566
  "FilamentChangeSignalledPayload": {
1464
1567
  "struct": {
1465
1568
  "fields": {
1569
+ "planned_change": {
1570
+ "paired_with": "",
1571
+ "required": false,
1572
+ "shape": {
1573
+ "nullable": {
1574
+ "scalar": "integer"
1575
+ }
1576
+ }
1577
+ },
1466
1578
  "position": {
1467
1579
  "paired_with": "",
1468
1580
  "required": false,
@@ -2181,6 +2293,16 @@ export const SHAPES = JSON.parse(`
2181
2293
  "scalar": "number"
2182
2294
  }
2183
2295
  },
2296
+ "segment_spools": {
2297
+ "paired_with": "",
2298
+ "required": false,
2299
+ "shape": {
2300
+ "list": {
2301
+ "ref": "SegmentSpool"
2302
+ },
2303
+ "non_empty": false
2304
+ }
2305
+ },
2184
2306
  "sheet": {
2185
2307
  "paired_with": "",
2186
2308
  "required": false,
@@ -3023,6 +3145,147 @@ export const SHAPES = JSON.parse(`
3023
3145
  "flow_low_over_walls"
3024
3146
  ]
3025
3147
  },
3148
+ "PlannedChange": {
3149
+ "struct": {
3150
+ "fields": {
3151
+ "color": {
3152
+ "paired_with": "",
3153
+ "required": true,
3154
+ "shape": {
3155
+ "nullable": {
3156
+ "scalar": "string"
3157
+ }
3158
+ }
3159
+ },
3160
+ "index": {
3161
+ "paired_with": "",
3162
+ "required": true,
3163
+ "shape": {
3164
+ "scalar": "integer"
3165
+ }
3166
+ },
3167
+ "kind": {
3168
+ "paired_with": "",
3169
+ "required": true,
3170
+ "shape": {
3171
+ "ref": "PlannedChangeKind"
3172
+ }
3173
+ },
3174
+ "layer": {
3175
+ "paired_with": "",
3176
+ "required": true,
3177
+ "shape": {
3178
+ "scalar": "integer"
3179
+ }
3180
+ },
3181
+ "offset_bytes": {
3182
+ "paired_with": "",
3183
+ "required": true,
3184
+ "shape": {
3185
+ "scalar": "integer"
3186
+ }
3187
+ },
3188
+ "z_mm": {
3189
+ "paired_with": "",
3190
+ "required": true,
3191
+ "shape": {
3192
+ "scalar": "number"
3193
+ }
3194
+ }
3195
+ },
3196
+ "tag_field": "",
3197
+ "variants": {}
3198
+ }
3199
+ },
3200
+ "PlannedChangeKind": {
3201
+ "enum": [
3202
+ "color_change",
3203
+ "pause"
3204
+ ]
3205
+ },
3206
+ "PlannedChangeTrigger": {
3207
+ "enum": [
3208
+ "signal",
3209
+ "position"
3210
+ ]
3211
+ },
3212
+ "PlannedChanges": {
3213
+ "struct": {
3214
+ "fields": {
3215
+ "changes": {
3216
+ "paired_with": "",
3217
+ "required": true,
3218
+ "shape": {
3219
+ "list": {
3220
+ "ref": "PlannedChange"
3221
+ },
3222
+ "non_empty": false
3223
+ }
3224
+ },
3225
+ "expected_color": {
3226
+ "paired_with": "",
3227
+ "required": true,
3228
+ "shape": {
3229
+ "nullable": {
3230
+ "scalar": "string"
3231
+ }
3232
+ }
3233
+ },
3234
+ "segments": {
3235
+ "paired_with": "",
3236
+ "required": true,
3237
+ "shape": {
3238
+ "list": {
3239
+ "ref": "PlannedSegment"
3240
+ },
3241
+ "non_empty": false
3242
+ }
3243
+ },
3244
+ "waiting": {
3245
+ "paired_with": "",
3246
+ "required": true,
3247
+ "shape": {
3248
+ "nullable": {
3249
+ "scalar": "integer"
3250
+ }
3251
+ }
3252
+ }
3253
+ },
3254
+ "tag_field": "",
3255
+ "variants": {}
3256
+ }
3257
+ },
3258
+ "PlannedSegment": {
3259
+ "struct": {
3260
+ "fields": {
3261
+ "color": {
3262
+ "paired_with": "",
3263
+ "required": true,
3264
+ "shape": {
3265
+ "nullable": {
3266
+ "scalar": "string"
3267
+ }
3268
+ }
3269
+ },
3270
+ "filament_mm": {
3271
+ "paired_with": "",
3272
+ "required": true,
3273
+ "shape": {
3274
+ "scalar": "number"
3275
+ }
3276
+ },
3277
+ "segment": {
3278
+ "paired_with": "",
3279
+ "required": true,
3280
+ "shape": {
3281
+ "scalar": "integer"
3282
+ }
3283
+ }
3284
+ },
3285
+ "tag_field": "",
3286
+ "variants": {}
3287
+ }
3288
+ },
3026
3289
  "PolicyDecision": {
3027
3290
  "union": {
3028
3291
  "tag_field": "",
@@ -3115,6 +3378,16 @@ export const SHAPES = JSON.parse(`
3115
3378
  }
3116
3379
  }
3117
3380
  },
3381
+ "segments": {
3382
+ "paired_with": "",
3383
+ "required": false,
3384
+ "shape": {
3385
+ "list": {
3386
+ "ref": "PreflightSegment"
3387
+ },
3388
+ "non_empty": false
3389
+ }
3390
+ },
3118
3391
  "sheet": {
3119
3392
  "paired_with": "",
3120
3393
  "required": false,
@@ -3310,6 +3583,55 @@ export const SHAPES = JSON.parse(`
3310
3583
  }
3311
3584
  }
3312
3585
  },
3586
+ "PreflightSegment": {
3587
+ "struct": {
3588
+ "fields": {
3589
+ "color": {
3590
+ "paired_with": "",
3591
+ "required": true,
3592
+ "shape": {
3593
+ "nullable": {
3594
+ "scalar": "string"
3595
+ }
3596
+ }
3597
+ },
3598
+ "filament_mm": {
3599
+ "paired_with": "",
3600
+ "required": true,
3601
+ "shape": {
3602
+ "scalar": "number"
3603
+ }
3604
+ },
3605
+ "required_g": {
3606
+ "paired_with": "",
3607
+ "required": true,
3608
+ "shape": {
3609
+ "nullable": {
3610
+ "scalar": "number"
3611
+ }
3612
+ }
3613
+ },
3614
+ "segment": {
3615
+ "paired_with": "",
3616
+ "required": true,
3617
+ "shape": {
3618
+ "scalar": "integer"
3619
+ }
3620
+ },
3621
+ "spool_id": {
3622
+ "paired_with": "",
3623
+ "required": true,
3624
+ "shape": {
3625
+ "nullable": {
3626
+ "ref": "SpoolId"
3627
+ }
3628
+ }
3629
+ }
3630
+ },
3631
+ "tag_field": "",
3632
+ "variants": {}
3633
+ }
3634
+ },
3313
3635
  "PreflightSpool": {
3314
3636
  "struct": {
3315
3637
  "fields": {
@@ -5029,6 +5351,15 @@ export const SHAPES = JSON.parse(`
5029
5351
  "scalar": "number"
5030
5352
  }
5031
5353
  },
5354
+ "segment": {
5355
+ "paired_with": "",
5356
+ "required": false,
5357
+ "shape": {
5358
+ "nullable": {
5359
+ "scalar": "integer"
5360
+ }
5361
+ }
5362
+ },
5032
5363
  "spool_id": {
5033
5364
  "paired_with": "",
5034
5365
  "required": true,
@@ -5154,6 +5485,42 @@ export const SHAPES = JSON.parse(`
5154
5485
  "payload": null,
5155
5486
  "unit": false
5156
5487
  },
5488
+ "planned_change_waiting": {
5489
+ "fields": {
5490
+ "change_index": {
5491
+ "paired_with": "",
5492
+ "required": true,
5493
+ "shape": {
5494
+ "scalar": "integer"
5495
+ }
5496
+ },
5497
+ "color": {
5498
+ "paired_with": "",
5499
+ "required": true,
5500
+ "shape": {
5501
+ "nullable": {
5502
+ "scalar": "string"
5503
+ }
5504
+ }
5505
+ },
5506
+ "layer": {
5507
+ "paired_with": "",
5508
+ "required": true,
5509
+ "shape": {
5510
+ "scalar": "integer"
5511
+ }
5512
+ },
5513
+ "z_mm": {
5514
+ "paired_with": "",
5515
+ "required": true,
5516
+ "shape": {
5517
+ "scalar": "number"
5518
+ }
5519
+ }
5520
+ },
5521
+ "payload": null,
5522
+ "unit": false
5523
+ },
5157
5524
  "print_already_ended": {
5158
5525
  "fields": {},
5159
5526
  "payload": null,
@@ -5245,6 +5612,15 @@ export const SHAPES = JSON.parse(`
5245
5612
  "ref": "UnverifiedReason"
5246
5613
  }
5247
5614
  },
5615
+ "segment": {
5616
+ "paired_with": "",
5617
+ "required": false,
5618
+ "shape": {
5619
+ "nullable": {
5620
+ "scalar": "integer"
5621
+ }
5622
+ }
5623
+ },
5248
5624
  "spool_id": {
5249
5625
  "paired_with": "",
5250
5626
  "required": true,
@@ -5320,6 +5696,28 @@ export const SHAPES = JSON.parse(`
5320
5696
  "variants": {}
5321
5697
  }
5322
5698
  },
5699
+ "SegmentSpool": {
5700
+ "struct": {
5701
+ "fields": {
5702
+ "segment": {
5703
+ "paired_with": "",
5704
+ "required": true,
5705
+ "shape": {
5706
+ "scalar": "integer"
5707
+ }
5708
+ },
5709
+ "spool_id": {
5710
+ "paired_with": "",
5711
+ "required": true,
5712
+ "shape": {
5713
+ "ref": "SpoolId"
5714
+ }
5715
+ }
5716
+ },
5717
+ "tag_field": "",
5718
+ "variants": {}
5719
+ }
5720
+ },
5323
5721
  "SetValue": {
5324
5722
  "struct": {
5325
5723
  "fields": {
@@ -5559,6 +5957,24 @@ export const SHAPES = JSON.parse(`
5559
5957
  "non_empty": false
5560
5958
  }
5561
5959
  },
5960
+ "change_waiting": {
5961
+ "paired_with": "",
5962
+ "required": false,
5963
+ "shape": {
5964
+ "nullable": {
5965
+ "ref": "PlannedChange"
5966
+ }
5967
+ }
5968
+ },
5969
+ "expected_color": {
5970
+ "paired_with": "",
5971
+ "required": false,
5972
+ "shape": {
5973
+ "nullable": {
5974
+ "scalar": "string"
5975
+ }
5976
+ }
5977
+ },
5562
5978
  "fan_percent": {
5563
5979
  "paired_with": "",
5564
5980
  "required": false,
@@ -5604,6 +6020,24 @@ export const SHAPES = JSON.parse(`
5604
6020
  }
5605
6021
  }
5606
6022
  },
6023
+ "minutes_to_next_change": {
6024
+ "paired_with": "",
6025
+ "required": false,
6026
+ "shape": {
6027
+ "nullable": {
6028
+ "scalar": "integer"
6029
+ }
6030
+ }
6031
+ },
6032
+ "next_change": {
6033
+ "paired_with": "",
6034
+ "required": false,
6035
+ "shape": {
6036
+ "nullable": {
6037
+ "ref": "PlannedChange"
6038
+ }
6039
+ }
6040
+ },
5607
6041
  "object_count": {
5608
6042
  "paired_with": "",
5609
6043
  "required": false,
@@ -6724,6 +7158,15 @@ export const SHAPES = JSON.parse(`
6724
7158
  }
6725
7159
  }
6726
7160
  },
7161
+ "planned_changes": {
7162
+ "paired_with": "",
7163
+ "required": false,
7164
+ "shape": {
7165
+ "nullable": {
7166
+ "ref": "PlannedChanges"
7167
+ }
7168
+ }
7169
+ },
6727
7170
  "print": {
6728
7171
  "paired_with": "",
6729
7172
  "required": true,
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.5",
15
+ "printobserverContractVersion": "0.16.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.15.5"
22
+ "version": "0.16.0"
23
23
  }