@printobserver/sdk 0.16.3 → 0.18.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 +363 -3
- package/dist/contract.js +915 -5
- package/package.json +2 -2
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.18.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.
|
|
@@ -52,6 +52,9 @@ export const OPERATION_NAMES = [
|
|
|
52
52
|
"recover_home_xy",
|
|
53
53
|
"recover_home_z",
|
|
54
54
|
"bed_clear",
|
|
55
|
+
"recheck_camera",
|
|
56
|
+
"check_camera",
|
|
57
|
+
"check_harness",
|
|
55
58
|
];
|
|
56
59
|
/** Every kind the server declares a payload type for, in name order. */
|
|
57
60
|
export const EVENT_KINDS = [
|
|
@@ -61,16 +64,21 @@ export const EVENT_KINDS = [
|
|
|
61
64
|
"agent_assessment",
|
|
62
65
|
"agent_stop_unacted",
|
|
63
66
|
"bed_clear_asserted",
|
|
67
|
+
"camera_checked",
|
|
64
68
|
"camera_degraded",
|
|
65
69
|
"camera_look",
|
|
66
70
|
"camera_retry",
|
|
71
|
+
"camera_view_judged",
|
|
72
|
+
"camera_view_refit",
|
|
67
73
|
"charge_pended",
|
|
74
|
+
"check_image_changed",
|
|
68
75
|
"detector_health_changed",
|
|
69
76
|
"filament_change_planned_reached",
|
|
70
77
|
"filament_change_planned_resumed",
|
|
71
78
|
"filament_change_signalled",
|
|
72
79
|
"filament_consumed",
|
|
73
80
|
"file_tally_rebaselined",
|
|
81
|
+
"first_layer_alignment_judged",
|
|
74
82
|
"gcode_indexed",
|
|
75
83
|
"intervention_expired",
|
|
76
84
|
"malformed_external_event",
|
|
@@ -745,6 +753,64 @@ export const SHAPES = JSON.parse(`
|
|
|
745
753
|
"variants": {}
|
|
746
754
|
}
|
|
747
755
|
},
|
|
756
|
+
"AlignmentFailure": {
|
|
757
|
+
"union": {
|
|
758
|
+
"tag_field": "failure",
|
|
759
|
+
"variants": {
|
|
760
|
+
"offset": {
|
|
761
|
+
"fields": {
|
|
762
|
+
"offset_px": {
|
|
763
|
+
"paired_with": "",
|
|
764
|
+
"required": true,
|
|
765
|
+
"shape": {
|
|
766
|
+
"scalar": "number"
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
"payload": null,
|
|
771
|
+
"unit": false
|
|
772
|
+
},
|
|
773
|
+
"resolution": {
|
|
774
|
+
"fields": {
|
|
775
|
+
"expected": {
|
|
776
|
+
"paired_with": "",
|
|
777
|
+
"required": true,
|
|
778
|
+
"shape": {
|
|
779
|
+
"list": {
|
|
780
|
+
"scalar": "integer"
|
|
781
|
+
},
|
|
782
|
+
"non_empty": true
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
"got": {
|
|
786
|
+
"paired_with": "",
|
|
787
|
+
"required": true,
|
|
788
|
+
"shape": {
|
|
789
|
+
"list": {
|
|
790
|
+
"scalar": "integer"
|
|
791
|
+
},
|
|
792
|
+
"non_empty": true
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
"payload": null,
|
|
797
|
+
"unit": false
|
|
798
|
+
},
|
|
799
|
+
"stream": {
|
|
800
|
+
"fields": {},
|
|
801
|
+
"payload": null,
|
|
802
|
+
"unit": true
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
},
|
|
807
|
+
"AlignmentJudgedVerdict": {
|
|
808
|
+
"enum": [
|
|
809
|
+
"passed",
|
|
810
|
+
"inconclusive",
|
|
811
|
+
"failed"
|
|
812
|
+
]
|
|
813
|
+
},
|
|
748
814
|
"BedClearActor": {
|
|
749
815
|
"enum": [
|
|
750
816
|
"operator"
|
|
@@ -820,6 +886,214 @@ export const SHAPES = JSON.parse(`
|
|
|
820
886
|
"variants": {}
|
|
821
887
|
}
|
|
822
888
|
},
|
|
889
|
+
"CameraCheck": {
|
|
890
|
+
"struct": {
|
|
891
|
+
"fields": {
|
|
892
|
+
"bed_z_mm": {
|
|
893
|
+
"paired_with": "",
|
|
894
|
+
"required": true,
|
|
895
|
+
"shape": {
|
|
896
|
+
"scalar": "number"
|
|
897
|
+
}
|
|
898
|
+
},
|
|
899
|
+
"checked_at": {
|
|
900
|
+
"paired_with": "",
|
|
901
|
+
"required": true,
|
|
902
|
+
"shape": {
|
|
903
|
+
"ref": "Timestamp"
|
|
904
|
+
}
|
|
905
|
+
},
|
|
906
|
+
"correction": {
|
|
907
|
+
"paired_with": "",
|
|
908
|
+
"required": false,
|
|
909
|
+
"shape": {
|
|
910
|
+
"nullable": {
|
|
911
|
+
"ref": "ViewCorrection"
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
"frame": {
|
|
916
|
+
"paired_with": "",
|
|
917
|
+
"required": false,
|
|
918
|
+
"shape": {
|
|
919
|
+
"nullable": {
|
|
920
|
+
"ref": "ImageRef"
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
},
|
|
924
|
+
"id": {
|
|
925
|
+
"paired_with": "",
|
|
926
|
+
"required": true,
|
|
927
|
+
"shape": {
|
|
928
|
+
"ref": "CameraCheckId"
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
"image_path": {
|
|
932
|
+
"paired_with": "",
|
|
933
|
+
"required": false,
|
|
934
|
+
"shape": {
|
|
935
|
+
"nullable": {
|
|
936
|
+
"scalar": "string"
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
},
|
|
940
|
+
"landmarks_moved": {
|
|
941
|
+
"paired_with": "",
|
|
942
|
+
"required": false,
|
|
943
|
+
"shape": {
|
|
944
|
+
"nullable": {
|
|
945
|
+
"scalar": "integer"
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
},
|
|
949
|
+
"message": {
|
|
950
|
+
"paired_with": "",
|
|
951
|
+
"required": true,
|
|
952
|
+
"shape": {
|
|
953
|
+
"scalar": "string"
|
|
954
|
+
}
|
|
955
|
+
},
|
|
956
|
+
"offset_limit_px": {
|
|
957
|
+
"paired_with": "",
|
|
958
|
+
"required": true,
|
|
959
|
+
"shape": {
|
|
960
|
+
"scalar": "number"
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
"offset_px": {
|
|
964
|
+
"paired_with": "",
|
|
965
|
+
"required": false,
|
|
966
|
+
"shape": {
|
|
967
|
+
"nullable": {
|
|
968
|
+
"scalar": "number"
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
"residual_limit_px": {
|
|
973
|
+
"paired_with": "",
|
|
974
|
+
"required": true,
|
|
975
|
+
"shape": {
|
|
976
|
+
"scalar": "number"
|
|
977
|
+
}
|
|
978
|
+
},
|
|
979
|
+
"residual_px": {
|
|
980
|
+
"paired_with": "",
|
|
981
|
+
"required": false,
|
|
982
|
+
"shape": {
|
|
983
|
+
"nullable": {
|
|
984
|
+
"scalar": "number"
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
},
|
|
988
|
+
"sheet": {
|
|
989
|
+
"paired_with": "",
|
|
990
|
+
"required": true,
|
|
991
|
+
"shape": {
|
|
992
|
+
"ref": "SheetId"
|
|
993
|
+
}
|
|
994
|
+
},
|
|
995
|
+
"unavailable_reason": {
|
|
996
|
+
"paired_with": "",
|
|
997
|
+
"required": false,
|
|
998
|
+
"shape": {
|
|
999
|
+
"nullable": {
|
|
1000
|
+
"ref": "UnavailableReason"
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
"unjudgeable_cause": {
|
|
1005
|
+
"paired_with": "",
|
|
1006
|
+
"required": false,
|
|
1007
|
+
"shape": {
|
|
1008
|
+
"nullable": {
|
|
1009
|
+
"ref": "UnjudgeableCause"
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
},
|
|
1013
|
+
"verdict": {
|
|
1014
|
+
"paired_with": "",
|
|
1015
|
+
"required": true,
|
|
1016
|
+
"shape": {
|
|
1017
|
+
"ref": "CameraCheckVerdict"
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
},
|
|
1021
|
+
"tag_field": "",
|
|
1022
|
+
"variants": {}
|
|
1023
|
+
}
|
|
1024
|
+
},
|
|
1025
|
+
"CameraCheckId": {
|
|
1026
|
+
"alias": {
|
|
1027
|
+
"scalar": "string"
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
"CameraCheckObjection": {
|
|
1031
|
+
"union": {
|
|
1032
|
+
"tag_field": "objection",
|
|
1033
|
+
"variants": {
|
|
1034
|
+
"not_aligned": {
|
|
1035
|
+
"fields": {
|
|
1036
|
+
"verdict": {
|
|
1037
|
+
"paired_with": "",
|
|
1038
|
+
"required": true,
|
|
1039
|
+
"shape": {
|
|
1040
|
+
"ref": "CameraCheckVerdict"
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
},
|
|
1044
|
+
"payload": null,
|
|
1045
|
+
"unit": false
|
|
1046
|
+
},
|
|
1047
|
+
"other_sheet": {
|
|
1048
|
+
"fields": {
|
|
1049
|
+
"checked_on": {
|
|
1050
|
+
"paired_with": "",
|
|
1051
|
+
"required": true,
|
|
1052
|
+
"shape": {
|
|
1053
|
+
"ref": "SheetId"
|
|
1054
|
+
}
|
|
1055
|
+
},
|
|
1056
|
+
"declared": {
|
|
1057
|
+
"paired_with": "",
|
|
1058
|
+
"required": true,
|
|
1059
|
+
"shape": {
|
|
1060
|
+
"ref": "SheetId"
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
},
|
|
1064
|
+
"payload": null,
|
|
1065
|
+
"unit": false
|
|
1066
|
+
},
|
|
1067
|
+
"unknown": {
|
|
1068
|
+
"fields": {},
|
|
1069
|
+
"payload": null,
|
|
1070
|
+
"unit": true
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
},
|
|
1075
|
+
"CameraCheckVerdict": {
|
|
1076
|
+
"enum": [
|
|
1077
|
+
"aligned",
|
|
1078
|
+
"not_aligned",
|
|
1079
|
+
"unavailable"
|
|
1080
|
+
]
|
|
1081
|
+
},
|
|
1082
|
+
"CameraCheckedPayload": {
|
|
1083
|
+
"struct": {
|
|
1084
|
+
"fields": {
|
|
1085
|
+
"camera_check": {
|
|
1086
|
+
"paired_with": "",
|
|
1087
|
+
"required": true,
|
|
1088
|
+
"shape": {
|
|
1089
|
+
"ref": "CameraCheck"
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
},
|
|
1093
|
+
"tag_field": "",
|
|
1094
|
+
"variants": {}
|
|
1095
|
+
}
|
|
1096
|
+
},
|
|
823
1097
|
"CameraDegradedPayload": {
|
|
824
1098
|
"struct": {
|
|
825
1099
|
"fields": {
|
|
@@ -926,6 +1200,68 @@ export const SHAPES = JSON.parse(`
|
|
|
926
1200
|
"variants": {}
|
|
927
1201
|
}
|
|
928
1202
|
},
|
|
1203
|
+
"CameraViewJudgedPayload": {
|
|
1204
|
+
"struct": {
|
|
1205
|
+
"fields": {
|
|
1206
|
+
"frame_sha256": {
|
|
1207
|
+
"paired_with": "",
|
|
1208
|
+
"required": true,
|
|
1209
|
+
"shape": {
|
|
1210
|
+
"scalar": "string"
|
|
1211
|
+
}
|
|
1212
|
+
},
|
|
1213
|
+
"outcome": {
|
|
1214
|
+
"paired_with": "",
|
|
1215
|
+
"required": true,
|
|
1216
|
+
"shape": {
|
|
1217
|
+
"ref": "ViewOutcome"
|
|
1218
|
+
}
|
|
1219
|
+
},
|
|
1220
|
+
"reason": {
|
|
1221
|
+
"paired_with": "",
|
|
1222
|
+
"required": false,
|
|
1223
|
+
"shape": {
|
|
1224
|
+
"nullable": {
|
|
1225
|
+
"scalar": "string"
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
},
|
|
1229
|
+
"view_correction": {
|
|
1230
|
+
"paired_with": "",
|
|
1231
|
+
"required": false,
|
|
1232
|
+
"shape": {
|
|
1233
|
+
"nullable": {
|
|
1234
|
+
"ref": "ViewCorrection"
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
},
|
|
1239
|
+
"tag_field": "",
|
|
1240
|
+
"variants": {}
|
|
1241
|
+
}
|
|
1242
|
+
},
|
|
1243
|
+
"CameraViewRefitPayload": {
|
|
1244
|
+
"struct": {
|
|
1245
|
+
"fields": {
|
|
1246
|
+
"frame_sha256": {
|
|
1247
|
+
"paired_with": "",
|
|
1248
|
+
"required": true,
|
|
1249
|
+
"shape": {
|
|
1250
|
+
"scalar": "string"
|
|
1251
|
+
}
|
|
1252
|
+
},
|
|
1253
|
+
"view_correction": {
|
|
1254
|
+
"paired_with": "",
|
|
1255
|
+
"required": true,
|
|
1256
|
+
"shape": {
|
|
1257
|
+
"ref": "ViewCorrection"
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
},
|
|
1261
|
+
"tag_field": "",
|
|
1262
|
+
"variants": {}
|
|
1263
|
+
}
|
|
1264
|
+
},
|
|
929
1265
|
"ChargeKey": {
|
|
930
1266
|
"union": {
|
|
931
1267
|
"tag_field": "key",
|
|
@@ -1074,6 +1410,37 @@ export const SHAPES = JSON.parse(`
|
|
|
1074
1410
|
"variants": {}
|
|
1075
1411
|
}
|
|
1076
1412
|
},
|
|
1413
|
+
"CheckImageChangedPayload": {
|
|
1414
|
+
"struct": {
|
|
1415
|
+
"fields": {
|
|
1416
|
+
"fallback": {
|
|
1417
|
+
"paired_with": "",
|
|
1418
|
+
"required": false,
|
|
1419
|
+
"shape": {
|
|
1420
|
+
"nullable": {
|
|
1421
|
+
"ref": "ImageFallback"
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
},
|
|
1425
|
+
"frame_sha256": {
|
|
1426
|
+
"paired_with": "",
|
|
1427
|
+
"required": true,
|
|
1428
|
+
"shape": {
|
|
1429
|
+
"scalar": "string"
|
|
1430
|
+
}
|
|
1431
|
+
},
|
|
1432
|
+
"kind": {
|
|
1433
|
+
"paired_with": "",
|
|
1434
|
+
"required": true,
|
|
1435
|
+
"shape": {
|
|
1436
|
+
"ref": "ImageKind"
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
},
|
|
1440
|
+
"tag_field": "",
|
|
1441
|
+
"variants": {}
|
|
1442
|
+
}
|
|
1443
|
+
},
|
|
1077
1444
|
"ClearedMark": {
|
|
1078
1445
|
"struct": {
|
|
1079
1446
|
"fields": {
|
|
@@ -1793,6 +2160,74 @@ export const SHAPES = JSON.parse(`
|
|
|
1793
2160
|
"variants": {}
|
|
1794
2161
|
}
|
|
1795
2162
|
},
|
|
2163
|
+
"FirstLayerAlignmentJudgedPayload": {
|
|
2164
|
+
"struct": {
|
|
2165
|
+
"fields": {
|
|
2166
|
+
"correction_px": {
|
|
2167
|
+
"paired_with": "",
|
|
2168
|
+
"required": false,
|
|
2169
|
+
"shape": {
|
|
2170
|
+
"nullable": {
|
|
2171
|
+
"list": {
|
|
2172
|
+
"scalar": "number"
|
|
2173
|
+
},
|
|
2174
|
+
"non_empty": true
|
|
2175
|
+
}
|
|
2176
|
+
}
|
|
2177
|
+
},
|
|
2178
|
+
"frame_sha256": {
|
|
2179
|
+
"paired_with": "",
|
|
2180
|
+
"required": true,
|
|
2181
|
+
"shape": {
|
|
2182
|
+
"scalar": "string"
|
|
2183
|
+
}
|
|
2184
|
+
},
|
|
2185
|
+
"match_strength": {
|
|
2186
|
+
"paired_with": "",
|
|
2187
|
+
"required": false,
|
|
2188
|
+
"shape": {
|
|
2189
|
+
"nullable": {
|
|
2190
|
+
"scalar": "number"
|
|
2191
|
+
}
|
|
2192
|
+
}
|
|
2193
|
+
},
|
|
2194
|
+
"offset_px": {
|
|
2195
|
+
"paired_with": "",
|
|
2196
|
+
"required": false,
|
|
2197
|
+
"shape": {
|
|
2198
|
+
"nullable": {
|
|
2199
|
+
"scalar": "number"
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
},
|
|
2203
|
+
"reason": {
|
|
2204
|
+
"paired_with": "",
|
|
2205
|
+
"required": true,
|
|
2206
|
+
"shape": {
|
|
2207
|
+
"scalar": "string"
|
|
2208
|
+
}
|
|
2209
|
+
},
|
|
2210
|
+
"verdict": {
|
|
2211
|
+
"paired_with": "",
|
|
2212
|
+
"required": true,
|
|
2213
|
+
"shape": {
|
|
2214
|
+
"ref": "AlignmentJudgedVerdict"
|
|
2215
|
+
}
|
|
2216
|
+
},
|
|
2217
|
+
"view_correction": {
|
|
2218
|
+
"paired_with": "",
|
|
2219
|
+
"required": false,
|
|
2220
|
+
"shape": {
|
|
2221
|
+
"nullable": {
|
|
2222
|
+
"ref": "ViewCorrection"
|
|
2223
|
+
}
|
|
2224
|
+
}
|
|
2225
|
+
}
|
|
2226
|
+
},
|
|
2227
|
+
"tag_field": "",
|
|
2228
|
+
"variants": {}
|
|
2229
|
+
}
|
|
2230
|
+
},
|
|
1796
2231
|
"Footprint": {
|
|
1797
2232
|
"struct": {
|
|
1798
2233
|
"fields": {
|
|
@@ -1864,6 +2299,74 @@ export const SHAPES = JSON.parse(`
|
|
|
1864
2299
|
"variants": {}
|
|
1865
2300
|
}
|
|
1866
2301
|
},
|
|
2302
|
+
"HarnessReadiness": {
|
|
2303
|
+
"struct": {
|
|
2304
|
+
"fields": {
|
|
2305
|
+
"harness": {
|
|
2306
|
+
"paired_with": "",
|
|
2307
|
+
"required": true,
|
|
2308
|
+
"shape": {
|
|
2309
|
+
"scalar": "string"
|
|
2310
|
+
}
|
|
2311
|
+
},
|
|
2312
|
+
"next_step": {
|
|
2313
|
+
"paired_with": "",
|
|
2314
|
+
"required": true,
|
|
2315
|
+
"shape": {
|
|
2316
|
+
"nullable": {
|
|
2317
|
+
"scalar": "string"
|
|
2318
|
+
}
|
|
2319
|
+
}
|
|
2320
|
+
},
|
|
2321
|
+
"ready": {
|
|
2322
|
+
"paired_with": "",
|
|
2323
|
+
"required": true,
|
|
2324
|
+
"shape": {
|
|
2325
|
+
"scalar": "boolean"
|
|
2326
|
+
}
|
|
2327
|
+
},
|
|
2328
|
+
"reason": {
|
|
2329
|
+
"paired_with": "",
|
|
2330
|
+
"required": true,
|
|
2331
|
+
"shape": {
|
|
2332
|
+
"nullable": {
|
|
2333
|
+
"scalar": "string"
|
|
2334
|
+
}
|
|
2335
|
+
}
|
|
2336
|
+
},
|
|
2337
|
+
"signed_in": {
|
|
2338
|
+
"paired_with": "",
|
|
2339
|
+
"required": true,
|
|
2340
|
+
"shape": {
|
|
2341
|
+
"ref": "HarnessSignedIn"
|
|
2342
|
+
}
|
|
2343
|
+
},
|
|
2344
|
+
"turn": {
|
|
2345
|
+
"paired_with": "",
|
|
2346
|
+
"required": true,
|
|
2347
|
+
"shape": {
|
|
2348
|
+
"ref": "HarnessTurn"
|
|
2349
|
+
}
|
|
2350
|
+
}
|
|
2351
|
+
},
|
|
2352
|
+
"tag_field": "",
|
|
2353
|
+
"variants": {}
|
|
2354
|
+
}
|
|
2355
|
+
},
|
|
2356
|
+
"HarnessSignedIn": {
|
|
2357
|
+
"enum": [
|
|
2358
|
+
"yes",
|
|
2359
|
+
"no",
|
|
2360
|
+
"unknown"
|
|
2361
|
+
]
|
|
2362
|
+
},
|
|
2363
|
+
"HarnessTurn": {
|
|
2364
|
+
"enum": [
|
|
2365
|
+
"answered",
|
|
2366
|
+
"failed",
|
|
2367
|
+
"not_tried"
|
|
2368
|
+
]
|
|
2369
|
+
},
|
|
1867
2370
|
"HeatedTool": {
|
|
1868
2371
|
"struct": {
|
|
1869
2372
|
"fields": {
|
|
@@ -1963,11 +2466,39 @@ export const SHAPES = JSON.parse(`
|
|
|
1963
2466
|
"variants": {}
|
|
1964
2467
|
}
|
|
1965
2468
|
},
|
|
2469
|
+
"ImageFallback": {
|
|
2470
|
+
"struct": {
|
|
2471
|
+
"fields": {
|
|
2472
|
+
"code": {
|
|
2473
|
+
"paired_with": "",
|
|
2474
|
+
"required": true,
|
|
2475
|
+
"shape": {
|
|
2476
|
+
"ref": "WholeFrameReasonCode"
|
|
2477
|
+
}
|
|
2478
|
+
},
|
|
2479
|
+
"message": {
|
|
2480
|
+
"paired_with": "",
|
|
2481
|
+
"required": true,
|
|
2482
|
+
"shape": {
|
|
2483
|
+
"scalar": "string"
|
|
2484
|
+
}
|
|
2485
|
+
}
|
|
2486
|
+
},
|
|
2487
|
+
"tag_field": "",
|
|
2488
|
+
"variants": {}
|
|
2489
|
+
}
|
|
2490
|
+
},
|
|
1966
2491
|
"ImageId": {
|
|
1967
2492
|
"alias": {
|
|
1968
2493
|
"scalar": "string"
|
|
1969
2494
|
}
|
|
1970
2495
|
},
|
|
2496
|
+
"ImageKind": {
|
|
2497
|
+
"enum": [
|
|
2498
|
+
"three_panel",
|
|
2499
|
+
"whole_frame"
|
|
2500
|
+
]
|
|
2501
|
+
},
|
|
1971
2502
|
"ImageRecord": {
|
|
1972
2503
|
"struct": {
|
|
1973
2504
|
"fields": {
|
|
@@ -2263,6 +2794,15 @@ export const SHAPES = JSON.parse(`
|
|
|
2263
2794
|
}
|
|
2264
2795
|
}
|
|
2265
2796
|
},
|
|
2797
|
+
"camera_check": {
|
|
2798
|
+
"paired_with": "",
|
|
2799
|
+
"required": false,
|
|
2800
|
+
"shape": {
|
|
2801
|
+
"nullable": {
|
|
2802
|
+
"ref": "CameraCheckId"
|
|
2803
|
+
}
|
|
2804
|
+
}
|
|
2805
|
+
},
|
|
2266
2806
|
"file_name": {
|
|
2267
2807
|
"paired_with": "",
|
|
2268
2808
|
"required": true,
|
|
@@ -2409,20 +2949,51 @@ export const SHAPES = JSON.parse(`
|
|
|
2409
2949
|
}
|
|
2410
2950
|
}
|
|
2411
2951
|
},
|
|
2412
|
-
"size_bytes": {
|
|
2952
|
+
"size_bytes": {
|
|
2953
|
+
"paired_with": "",
|
|
2954
|
+
"required": false,
|
|
2955
|
+
"shape": {
|
|
2956
|
+
"nullable": {
|
|
2957
|
+
"scalar": "integer"
|
|
2958
|
+
}
|
|
2959
|
+
}
|
|
2960
|
+
},
|
|
2961
|
+
"state": {
|
|
2962
|
+
"paired_with": "",
|
|
2963
|
+
"required": true,
|
|
2964
|
+
"shape": {
|
|
2965
|
+
"ref": "PrinterState"
|
|
2966
|
+
}
|
|
2967
|
+
}
|
|
2968
|
+
},
|
|
2969
|
+
"tag_field": "",
|
|
2970
|
+
"variants": {}
|
|
2971
|
+
}
|
|
2972
|
+
},
|
|
2973
|
+
"LastCheckImage": {
|
|
2974
|
+
"struct": {
|
|
2975
|
+
"fields": {
|
|
2976
|
+
"at": {
|
|
2977
|
+
"paired_with": "",
|
|
2978
|
+
"required": true,
|
|
2979
|
+
"shape": {
|
|
2980
|
+
"ref": "Timestamp"
|
|
2981
|
+
}
|
|
2982
|
+
},
|
|
2983
|
+
"fallback": {
|
|
2413
2984
|
"paired_with": "",
|
|
2414
2985
|
"required": false,
|
|
2415
2986
|
"shape": {
|
|
2416
2987
|
"nullable": {
|
|
2417
|
-
"
|
|
2988
|
+
"ref": "ImageFallback"
|
|
2418
2989
|
}
|
|
2419
2990
|
}
|
|
2420
2991
|
},
|
|
2421
|
-
"
|
|
2992
|
+
"kind": {
|
|
2422
2993
|
"paired_with": "",
|
|
2423
2994
|
"required": true,
|
|
2424
2995
|
"shape": {
|
|
2425
|
-
"ref": "
|
|
2996
|
+
"ref": "ImageKind"
|
|
2426
2997
|
}
|
|
2427
2998
|
}
|
|
2428
2999
|
},
|
|
@@ -2517,6 +3088,24 @@ export const SHAPES = JSON.parse(`
|
|
|
2517
3088
|
}
|
|
2518
3089
|
}
|
|
2519
3090
|
},
|
|
3091
|
+
"image_fallback": {
|
|
3092
|
+
"paired_with": "",
|
|
3093
|
+
"required": false,
|
|
3094
|
+
"shape": {
|
|
3095
|
+
"nullable": {
|
|
3096
|
+
"ref": "ImageFallback"
|
|
3097
|
+
}
|
|
3098
|
+
}
|
|
3099
|
+
},
|
|
3100
|
+
"image_kind": {
|
|
3101
|
+
"paired_with": "",
|
|
3102
|
+
"required": false,
|
|
3103
|
+
"shape": {
|
|
3104
|
+
"nullable": {
|
|
3105
|
+
"ref": "ImageKind"
|
|
3106
|
+
}
|
|
3107
|
+
}
|
|
3108
|
+
},
|
|
2520
3109
|
"image_note": {
|
|
2521
3110
|
"paired_with": "",
|
|
2522
3111
|
"required": false,
|
|
@@ -4218,6 +4807,59 @@ export const SHAPES = JSON.parse(`
|
|
|
4218
4807
|
}
|
|
4219
4808
|
}
|
|
4220
4809
|
},
|
|
4810
|
+
"PrintAlignment": {
|
|
4811
|
+
"union": {
|
|
4812
|
+
"tag_field": "verdict",
|
|
4813
|
+
"variants": {
|
|
4814
|
+
"failed": {
|
|
4815
|
+
"fields": {
|
|
4816
|
+
"reason": {
|
|
4817
|
+
"paired_with": "",
|
|
4818
|
+
"required": true,
|
|
4819
|
+
"shape": {
|
|
4820
|
+
"ref": "AlignmentFailure"
|
|
4821
|
+
}
|
|
4822
|
+
}
|
|
4823
|
+
},
|
|
4824
|
+
"payload": null,
|
|
4825
|
+
"unit": false
|
|
4826
|
+
},
|
|
4827
|
+
"passed": {
|
|
4828
|
+
"fields": {
|
|
4829
|
+
"correction_px": {
|
|
4830
|
+
"paired_with": "",
|
|
4831
|
+
"required": false,
|
|
4832
|
+
"shape": {
|
|
4833
|
+
"list": {
|
|
4834
|
+
"scalar": "number"
|
|
4835
|
+
},
|
|
4836
|
+
"non_empty": true
|
|
4837
|
+
}
|
|
4838
|
+
},
|
|
4839
|
+
"offset_px": {
|
|
4840
|
+
"paired_with": "",
|
|
4841
|
+
"required": true,
|
|
4842
|
+
"shape": {
|
|
4843
|
+
"scalar": "number"
|
|
4844
|
+
}
|
|
4845
|
+
}
|
|
4846
|
+
},
|
|
4847
|
+
"payload": null,
|
|
4848
|
+
"unit": false
|
|
4849
|
+
},
|
|
4850
|
+
"pending": {
|
|
4851
|
+
"fields": {},
|
|
4852
|
+
"payload": null,
|
|
4853
|
+
"unit": true
|
|
4854
|
+
},
|
|
4855
|
+
"unavailable": {
|
|
4856
|
+
"fields": {},
|
|
4857
|
+
"payload": null,
|
|
4858
|
+
"unit": true
|
|
4859
|
+
}
|
|
4860
|
+
}
|
|
4861
|
+
}
|
|
4862
|
+
},
|
|
4221
4863
|
"PrintEnded": {
|
|
4222
4864
|
"struct": {
|
|
4223
4865
|
"fields": {
|
|
@@ -4423,6 +5065,15 @@ export const SHAPES = JSON.parse(`
|
|
|
4423
5065
|
"PrintStartedPayload": {
|
|
4424
5066
|
"struct": {
|
|
4425
5067
|
"fields": {
|
|
5068
|
+
"camera_check": {
|
|
5069
|
+
"paired_with": "",
|
|
5070
|
+
"required": false,
|
|
5071
|
+
"shape": {
|
|
5072
|
+
"nullable": {
|
|
5073
|
+
"ref": "CameraCheckId"
|
|
5074
|
+
}
|
|
5075
|
+
}
|
|
5076
|
+
},
|
|
4426
5077
|
"file_name": {
|
|
4427
5078
|
"paired_with": "",
|
|
4428
5079
|
"required": false,
|
|
@@ -4714,6 +5365,53 @@ export const SHAPES = JSON.parse(`
|
|
|
4714
5365
|
"unverified"
|
|
4715
5366
|
]
|
|
4716
5367
|
},
|
|
5368
|
+
"RecheckCameraAnswer": {
|
|
5369
|
+
"struct": {
|
|
5370
|
+
"fields": {
|
|
5371
|
+
"alignment": {
|
|
5372
|
+
"paired_with": "",
|
|
5373
|
+
"required": true,
|
|
5374
|
+
"shape": {
|
|
5375
|
+
"ref": "PrintAlignment"
|
|
5376
|
+
}
|
|
5377
|
+
},
|
|
5378
|
+
"frame_path": {
|
|
5379
|
+
"paired_with": "",
|
|
5380
|
+
"required": false,
|
|
5381
|
+
"shape": {
|
|
5382
|
+
"scalar": "string"
|
|
5383
|
+
}
|
|
5384
|
+
},
|
|
5385
|
+
"image_fallback": {
|
|
5386
|
+
"paired_with": "",
|
|
5387
|
+
"required": false,
|
|
5388
|
+
"shape": {
|
|
5389
|
+
"nullable": {
|
|
5390
|
+
"ref": "ImageFallback"
|
|
5391
|
+
}
|
|
5392
|
+
}
|
|
5393
|
+
},
|
|
5394
|
+
"image_kind": {
|
|
5395
|
+
"paired_with": "",
|
|
5396
|
+
"required": true,
|
|
5397
|
+
"shape": {
|
|
5398
|
+
"ref": "ImageKind"
|
|
5399
|
+
}
|
|
5400
|
+
},
|
|
5401
|
+
"view_correction": {
|
|
5402
|
+
"paired_with": "",
|
|
5403
|
+
"required": false,
|
|
5404
|
+
"shape": {
|
|
5405
|
+
"nullable": {
|
|
5406
|
+
"ref": "ViewCorrection"
|
|
5407
|
+
}
|
|
5408
|
+
}
|
|
5409
|
+
}
|
|
5410
|
+
},
|
|
5411
|
+
"tag_field": "",
|
|
5412
|
+
"variants": {}
|
|
5413
|
+
}
|
|
5414
|
+
},
|
|
4717
5415
|
"RecoveryAction": {
|
|
4718
5416
|
"union": {
|
|
4719
5417
|
"tag_field": "action",
|
|
@@ -5284,6 +5982,38 @@ export const SHAPES = JSON.parse(`
|
|
|
5284
5982
|
"variants": {}
|
|
5285
5983
|
}
|
|
5286
5984
|
},
|
|
5985
|
+
"ReferenceLandmark": {
|
|
5986
|
+
"struct": {
|
|
5987
|
+
"fields": {
|
|
5988
|
+
"name": {
|
|
5989
|
+
"paired_with": "",
|
|
5990
|
+
"required": true,
|
|
5991
|
+
"shape": {
|
|
5992
|
+
"scalar": "string"
|
|
5993
|
+
}
|
|
5994
|
+
},
|
|
5995
|
+
"offset_px": {
|
|
5996
|
+
"paired_with": "",
|
|
5997
|
+
"required": true,
|
|
5998
|
+
"shape": {
|
|
5999
|
+
"list": {
|
|
6000
|
+
"scalar": "number"
|
|
6001
|
+
},
|
|
6002
|
+
"non_empty": true
|
|
6003
|
+
}
|
|
6004
|
+
},
|
|
6005
|
+
"score": {
|
|
6006
|
+
"paired_with": "",
|
|
6007
|
+
"required": true,
|
|
6008
|
+
"shape": {
|
|
6009
|
+
"scalar": "number"
|
|
6010
|
+
}
|
|
6011
|
+
}
|
|
6012
|
+
},
|
|
6013
|
+
"tag_field": "",
|
|
6014
|
+
"variants": {}
|
|
6015
|
+
}
|
|
6016
|
+
},
|
|
5287
6017
|
"RejectionReason": {
|
|
5288
6018
|
"union": {
|
|
5289
6019
|
"tag_field": "",
|
|
@@ -5328,6 +6058,26 @@ export const SHAPES = JSON.parse(`
|
|
|
5328
6058
|
"payload": null,
|
|
5329
6059
|
"unit": false
|
|
5330
6060
|
},
|
|
6061
|
+
"camera_check_refused": {
|
|
6062
|
+
"fields": {
|
|
6063
|
+
"camera_check": {
|
|
6064
|
+
"paired_with": "",
|
|
6065
|
+
"required": true,
|
|
6066
|
+
"shape": {
|
|
6067
|
+
"ref": "CameraCheckId"
|
|
6068
|
+
}
|
|
6069
|
+
},
|
|
6070
|
+
"objection": {
|
|
6071
|
+
"paired_with": "",
|
|
6072
|
+
"required": true,
|
|
6073
|
+
"shape": {
|
|
6074
|
+
"ref": "CameraCheckObjection"
|
|
6075
|
+
}
|
|
6076
|
+
}
|
|
6077
|
+
},
|
|
6078
|
+
"payload": null,
|
|
6079
|
+
"unit": false
|
|
6080
|
+
},
|
|
5331
6081
|
"insufficient_filament": {
|
|
5332
6082
|
"fields": {
|
|
5333
6083
|
"buffer_g": {
|
|
@@ -7158,6 +7908,15 @@ export const SHAPES = JSON.parse(`
|
|
|
7158
7908
|
}
|
|
7159
7909
|
}
|
|
7160
7910
|
},
|
|
7911
|
+
"last_check_image": {
|
|
7912
|
+
"paired_with": "",
|
|
7913
|
+
"required": false,
|
|
7914
|
+
"shape": {
|
|
7915
|
+
"nullable": {
|
|
7916
|
+
"ref": "LastCheckImage"
|
|
7917
|
+
}
|
|
7918
|
+
}
|
|
7919
|
+
},
|
|
7161
7920
|
"planned_changes": {
|
|
7162
7921
|
"paired_with": "",
|
|
7163
7922
|
"required": false,
|
|
@@ -7486,6 +8245,24 @@ export const SHAPES = JSON.parse(`
|
|
|
7486
8245
|
"variants": {}
|
|
7487
8246
|
}
|
|
7488
8247
|
},
|
|
8248
|
+
"UnavailableReason": {
|
|
8249
|
+
"enum": [
|
|
8250
|
+
"no_frame",
|
|
8251
|
+
"look_failed",
|
|
8252
|
+
"frame_mismatch",
|
|
8253
|
+
"no_calibration",
|
|
8254
|
+
"unjudgeable"
|
|
8255
|
+
]
|
|
8256
|
+
},
|
|
8257
|
+
"UnjudgeableCause": {
|
|
8258
|
+
"enum": [
|
|
8259
|
+
"too_little_sheet_in_view",
|
|
8260
|
+
"no_sheet_found",
|
|
8261
|
+
"sheet_occluded",
|
|
8262
|
+
"landmarks_hidden",
|
|
8263
|
+
"fit_inconsistent"
|
|
8264
|
+
]
|
|
8265
|
+
},
|
|
7489
8266
|
"UnverifiedMark": {
|
|
7490
8267
|
"struct": {
|
|
7491
8268
|
"fields": {
|
|
@@ -7594,6 +8371,89 @@ export const SHAPES = JSON.parse(`
|
|
|
7594
8371
|
}
|
|
7595
8372
|
}
|
|
7596
8373
|
},
|
|
8374
|
+
"ViewCorrection": {
|
|
8375
|
+
"struct": {
|
|
8376
|
+
"fields": {
|
|
8377
|
+
"landmarks": {
|
|
8378
|
+
"paired_with": "",
|
|
8379
|
+
"required": true,
|
|
8380
|
+
"shape": {
|
|
8381
|
+
"list": {
|
|
8382
|
+
"ref": "ReferenceLandmark"
|
|
8383
|
+
},
|
|
8384
|
+
"non_empty": false
|
|
8385
|
+
}
|
|
8386
|
+
},
|
|
8387
|
+
"matrix": {
|
|
8388
|
+
"paired_with": "",
|
|
8389
|
+
"required": true,
|
|
8390
|
+
"shape": {
|
|
8391
|
+
"list": {
|
|
8392
|
+
"list": {
|
|
8393
|
+
"scalar": "number"
|
|
8394
|
+
},
|
|
8395
|
+
"non_empty": true
|
|
8396
|
+
},
|
|
8397
|
+
"non_empty": true
|
|
8398
|
+
}
|
|
8399
|
+
},
|
|
8400
|
+
"model": {
|
|
8401
|
+
"paired_with": "",
|
|
8402
|
+
"required": true,
|
|
8403
|
+
"shape": {
|
|
8404
|
+
"ref": "ViewModel"
|
|
8405
|
+
}
|
|
8406
|
+
},
|
|
8407
|
+
"residual_px": {
|
|
8408
|
+
"paired_with": "",
|
|
8409
|
+
"required": true,
|
|
8410
|
+
"shape": {
|
|
8411
|
+
"scalar": "number"
|
|
8412
|
+
}
|
|
8413
|
+
}
|
|
8414
|
+
},
|
|
8415
|
+
"tag_field": "",
|
|
8416
|
+
"variants": {}
|
|
8417
|
+
}
|
|
8418
|
+
},
|
|
8419
|
+
"ViewModel": {
|
|
8420
|
+
"enum": [
|
|
8421
|
+
"translation",
|
|
8422
|
+
"similarity",
|
|
8423
|
+
"affine",
|
|
8424
|
+
"homography"
|
|
8425
|
+
]
|
|
8426
|
+
},
|
|
8427
|
+
"ViewOutcome": {
|
|
8428
|
+
"enum": [
|
|
8429
|
+
"unshifted",
|
|
8430
|
+
"refit",
|
|
8431
|
+
"landmarks_not_found",
|
|
8432
|
+
"view_refit_rejected",
|
|
8433
|
+
"frame_mismatch"
|
|
8434
|
+
]
|
|
8435
|
+
},
|
|
8436
|
+
"WholeFrameReasonCode": {
|
|
8437
|
+
"enum": [
|
|
8438
|
+
"no_print",
|
|
8439
|
+
"no_calibration",
|
|
8440
|
+
"no_stream",
|
|
8441
|
+
"no_position",
|
|
8442
|
+
"no_object",
|
|
8443
|
+
"no_layer",
|
|
8444
|
+
"toolpath_unread",
|
|
8445
|
+
"alignment_pending",
|
|
8446
|
+
"alignment_inconclusive",
|
|
8447
|
+
"alignment_unavailable",
|
|
8448
|
+
"alignment_failed",
|
|
8449
|
+
"landmarks_not_found",
|
|
8450
|
+
"view_refit_rejected",
|
|
8451
|
+
"calibration_stale",
|
|
8452
|
+
"frame_mismatch",
|
|
8453
|
+
"paused",
|
|
8454
|
+
"refused"
|
|
8455
|
+
]
|
|
8456
|
+
},
|
|
7597
8457
|
"ZHome": {
|
|
7598
8458
|
"struct": {
|
|
7599
8459
|
"fields": {
|
|
@@ -8426,4 +9286,54 @@ export class GeneratedClient extends GeneratedSurface {
|
|
|
8426
9286
|
sending.reason = reason;
|
|
8427
9287
|
return await this.call("POST", target, asked, sending, "BedClearAnswer");
|
|
8428
9288
|
}
|
|
9289
|
+
/**
|
|
9290
|
+
* Call `recheck_camera` on the configured supervisor.
|
|
9291
|
+
*
|
|
9292
|
+
* Rejects with `Unreachable` when nothing answered, with `Unreadable` when
|
|
9293
|
+
* the answer could not be read, and with `Refused` when the supervisor
|
|
9294
|
+
* said no. A call whose reason is empty is refused here, before a request
|
|
9295
|
+
* is made, and the policy's own refusal arrives as `Rejected`, carrying
|
|
9296
|
+
* the reason, the value asked for and the range allowed.
|
|
9297
|
+
*/
|
|
9298
|
+
async recheckCamera(printId, reason) {
|
|
9299
|
+
reasonGiven(reason);
|
|
9300
|
+
const target = `/v1/prints/${printId}/camera/recheck`;
|
|
9301
|
+
const asked = [];
|
|
9302
|
+
const sending = {};
|
|
9303
|
+
sending.actor = this.actor;
|
|
9304
|
+
sending.reason = reason;
|
|
9305
|
+
return await this.call("POST", target, asked, sending, "RecheckCameraAnswer");
|
|
9306
|
+
}
|
|
9307
|
+
/**
|
|
9308
|
+
* Call `check_camera` on the configured supervisor.
|
|
9309
|
+
*
|
|
9310
|
+
* Rejects with `Unreachable` when nothing answered, with `Unreadable` when
|
|
9311
|
+
* the answer could not be read, and with `Refused` when the supervisor
|
|
9312
|
+
* said no.
|
|
9313
|
+
*/
|
|
9314
|
+
async checkCamera(sheet, bedZMm) {
|
|
9315
|
+
const target = `/v1/camera/check`;
|
|
9316
|
+
const asked = [];
|
|
9317
|
+
if (sheet !== undefined) {
|
|
9318
|
+
asked.push(["sheet", String(sheet)]);
|
|
9319
|
+
}
|
|
9320
|
+
if (bedZMm !== undefined) {
|
|
9321
|
+
asked.push(["bed_z_mm", String(bedZMm)]);
|
|
9322
|
+
}
|
|
9323
|
+
const sending = undefined;
|
|
9324
|
+
return await this.call("GET", target, asked, sending, "CameraCheck");
|
|
9325
|
+
}
|
|
9326
|
+
/**
|
|
9327
|
+
* Call `check_harness` on the configured supervisor.
|
|
9328
|
+
*
|
|
9329
|
+
* Rejects with `Unreachable` when nothing answered, with `Unreadable` when
|
|
9330
|
+
* the answer could not be read, and with `Refused` when the supervisor
|
|
9331
|
+
* said no.
|
|
9332
|
+
*/
|
|
9333
|
+
async checkHarness() {
|
|
9334
|
+
const target = `/v1/harness/check`;
|
|
9335
|
+
const asked = [];
|
|
9336
|
+
const sending = undefined;
|
|
9337
|
+
return await this.call("GET", target, asked, sending, "HarnessReadiness");
|
|
9338
|
+
}
|
|
8429
9339
|
}
|