@bitbybit-dev/cad-cloud-sdk 1.0.1 → 1.1.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.
@@ -10,7 +10,7 @@ export interface paths {
10
10
  path?: never;
11
11
  cookie?: never;
12
12
  };
13
- /** Health check */
13
+ /** Health - status check */
14
14
  get: {
15
15
  parameters: {
16
16
  query?: never;
@@ -49,7 +49,7 @@ export interface paths {
49
49
  get?: never;
50
50
  put?: never;
51
51
  /**
52
- * Execute a single CAD operation
52
+ * CAD - execute a single operation
53
53
  * @description Runs a single CAD operation by its fully-qualified identifier.
54
54
  */
55
55
  post: {
@@ -110,7 +110,7 @@ export interface paths {
110
110
  get?: never;
111
111
  put?: never;
112
112
  /**
113
- * Execute a chained pipeline of CAD operations
113
+ * CAD - execute a chained pipeline
114
114
  * @description Runs multiple operations sequentially. Use '$ref:N' in params to reference step N's result.
115
115
  */
116
116
  post: {
@@ -171,7 +171,7 @@ export interface paths {
171
171
  get?: never;
172
172
  put?: never;
173
173
  /**
174
- * Execute compound (parallel) CAD operations
174
+ * CAD - execute compound (parallel) operations
175
175
  * @description Runs multiple independent operations in parallel.
176
176
  */
177
177
  post: {
@@ -229,7 +229,7 @@ export interface paths {
229
229
  path?: never;
230
230
  cookie?: never;
231
231
  };
232
- /** List available parametric models */
232
+ /** Models - list available models */
233
233
  get: {
234
234
  parameters: {
235
235
  query?: never;
@@ -268,7 +268,7 @@ export interface paths {
268
268
  get?: never;
269
269
  put?: never;
270
270
  /**
271
- * Batch-fetch model definitions
271
+ * Models - batch-fetch definitions
272
272
  * @description Returns parameter schemas and defaults for the requested model names.
273
273
  */
274
274
  post: {
@@ -320,8 +320,8 @@ export interface paths {
320
320
  get?: never;
321
321
  put?: never;
322
322
  /**
323
- * Execute a parametric CAD model
324
- * @description Generic endpoint — works for any registered model. See model-specific endpoints for fully typed parameters. Always returns 202 with a task ID for polling.
323
+ * Models - execute a parametric model
324
+ * @description Generic endpoint - works for any registered model. See model-specific endpoints for fully typed parameters. Always returns 202 with a task ID for polling.
325
325
  */
326
326
  post: {
327
327
  parameters: {
@@ -393,7 +393,7 @@ export interface paths {
393
393
  get?: never;
394
394
  put?: never;
395
395
  /**
396
- * Generate a batch of parametric models
396
+ * Models - generate a batch
397
397
  * @description Creates a compound task with one sub-task per item. Each item can have different parameters but shares the same output config.
398
398
  */
399
399
  post: {
@@ -464,7 +464,7 @@ export interface paths {
464
464
  cookie?: never;
465
465
  };
466
466
  /**
467
- * Get model parameter definitions
467
+ * Models - get parameter definitions
468
468
  * @description Returns parameter schema, types, defaults, and limits for the specified model.
469
469
  */
470
470
  get: {
@@ -517,8 +517,8 @@ export interface paths {
517
517
  get?: never;
518
518
  put?: never;
519
519
  /**
520
- * Build a Dragon Cup
521
- * @description Parametric dragon-scale textured cup with twisted lofted body, voronoi-like skin cells, and configurable shell thickness. All parameters are optional — defaults produce a ready-to-print model.
520
+ * Models - build a Dragon Cup
521
+ * @description Parametric dragon-scale textured cup with twisted lofted body, voronoi-like skin cells, and configurable shell thickness. All parameters are optional - defaults produce a ready-to-print model.
522
522
  */
523
523
  post: {
524
524
  parameters: {
@@ -619,8 +619,8 @@ export interface paths {
619
619
  get?: never;
620
620
  put?: never;
621
621
  /**
622
- * Build a Phone Nest
623
- * @description Parametric 3D-printable desktop phone holder/stand with a lofted cradle surface, optional ornamental perforations, and a phone mock-up shape. All parameters are optional — defaults produce a ready-to-print model.
622
+ * Models - build a Phone Nest
623
+ * @description Parametric 3D-printable desktop phone holder/stand with a lofted cradle surface, optional ornamental perforations, and a phone mock-up shape. All parameters are optional - defaults produce a ready-to-print model.
624
624
  */
625
625
  post: {
626
626
  parameters: {
@@ -717,7 +717,7 @@ export interface paths {
717
717
  get?: never;
718
718
  put?: never;
719
719
  /**
720
- * Convert a STEP file to GLTF (.glb)
720
+ * Convert - STEP to glTF (.glb)
721
721
  * @description Simple STEP → glTF conversion using a previously uploaded file. Requires the 'convert' API key scope. Returns 202 with a task ID.
722
722
  */
723
723
  post: {
@@ -787,7 +787,7 @@ export interface paths {
787
787
  get?: never;
788
788
  put?: never;
789
789
  /**
790
- * Convert a STEP file to GLTF (.glb) - advanced options
790
+ * Convert - STEP to glTF (.glb), advanced options
791
791
  * @description Full-control STEP → glTF conversion with fine-grained mesh, export, and coordinate options. Requires the 'convert' API key scope. Returns 202 with a task ID.
792
792
  */
793
793
  post: {
@@ -847,6 +847,496 @@ export interface paths {
847
847
  patch?: never;
848
848
  trace?: never;
849
849
  };
850
+ "/api/v1/convert/step-to-gltf-with-draco": {
851
+ parameters: {
852
+ query?: never;
853
+ header?: never;
854
+ path?: never;
855
+ cookie?: never;
856
+ };
857
+ get?: never;
858
+ put?: never;
859
+ /**
860
+ * Convert - STEP to Draco-compressed glTF (.glb)
861
+ * @description STEP → glTF conversion with Draco geometry compression using a previously uploaded file. Requires the 'convert' API key scope. Returns 202 with a task ID.
862
+ */
863
+ post: {
864
+ parameters: {
865
+ query?: never;
866
+ header?: never;
867
+ path?: never;
868
+ cookie?: never;
869
+ };
870
+ requestBody: {
871
+ content: {
872
+ "application/json": components["schemas"]["StepToGltfWithDracoBody"];
873
+ };
874
+ };
875
+ responses: {
876
+ /** @description Task accepted */
877
+ 202: {
878
+ headers: {
879
+ [name: string]: unknown;
880
+ };
881
+ content: {
882
+ "application/json": components["schemas"]["TaskAcceptedResponse"];
883
+ };
884
+ };
885
+ /** @description Validation error */
886
+ 400: {
887
+ headers: {
888
+ [name: string]: unknown;
889
+ };
890
+ content: {
891
+ "application/json": components["schemas"]["ErrorResponse"];
892
+ };
893
+ };
894
+ /** @description Insufficient scope */
895
+ 403: {
896
+ headers: {
897
+ [name: string]: unknown;
898
+ };
899
+ content: {
900
+ "application/json": components["schemas"]["ErrorResponse"];
901
+ };
902
+ };
903
+ /** @description Server error */
904
+ 500: {
905
+ headers: {
906
+ [name: string]: unknown;
907
+ };
908
+ content: {
909
+ "application/json": components["schemas"]["ErrorResponse"];
910
+ };
911
+ };
912
+ };
913
+ };
914
+ delete?: never;
915
+ options?: never;
916
+ head?: never;
917
+ patch?: never;
918
+ trace?: never;
919
+ };
920
+ "/api/v1/convert/step-to-gltf-advanced-with-draco": {
921
+ parameters: {
922
+ query?: never;
923
+ header?: never;
924
+ path?: never;
925
+ cookie?: never;
926
+ };
927
+ get?: never;
928
+ put?: never;
929
+ /**
930
+ * Convert - STEP to Draco-compressed glTF (.glb), advanced options
931
+ * @description Full-control STEP → glTF conversion with Draco geometry compression. Combines fine-grained mesh, export, and coordinate options with Draco quantization controls. Requires the 'convert' API key scope. Returns 202 with a task ID.
932
+ */
933
+ post: {
934
+ parameters: {
935
+ query?: never;
936
+ header?: never;
937
+ path?: never;
938
+ cookie?: never;
939
+ };
940
+ requestBody: {
941
+ content: {
942
+ "application/json": components["schemas"]["StepToGltfAdvancedWithDracoBody"];
943
+ };
944
+ };
945
+ responses: {
946
+ /** @description Task accepted */
947
+ 202: {
948
+ headers: {
949
+ [name: string]: unknown;
950
+ };
951
+ content: {
952
+ "application/json": components["schemas"]["TaskAcceptedResponse"];
953
+ };
954
+ };
955
+ /** @description Validation error */
956
+ 400: {
957
+ headers: {
958
+ [name: string]: unknown;
959
+ };
960
+ content: {
961
+ "application/json": components["schemas"]["ErrorResponse"];
962
+ };
963
+ };
964
+ /** @description Insufficient scope */
965
+ 403: {
966
+ headers: {
967
+ [name: string]: unknown;
968
+ };
969
+ content: {
970
+ "application/json": components["schemas"]["ErrorResponse"];
971
+ };
972
+ };
973
+ /** @description Server error */
974
+ 500: {
975
+ headers: {
976
+ [name: string]: unknown;
977
+ };
978
+ content: {
979
+ "application/json": components["schemas"]["ErrorResponse"];
980
+ };
981
+ };
982
+ };
983
+ };
984
+ delete?: never;
985
+ options?: never;
986
+ head?: never;
987
+ patch?: never;
988
+ trace?: never;
989
+ };
990
+ "/api/v1/cad/pro/unfold/face-to-flat": {
991
+ parameters: {
992
+ query?: never;
993
+ header?: never;
994
+ path?: never;
995
+ cookie?: never;
996
+ };
997
+ get?: never;
998
+ put?: never;
999
+ /**
1000
+ * Sheet metal - unfold a face to flat geometry
1001
+ * @description Proprietary sheet-metal unfold: flattens a single developable face (by index) of an uploaded STEP shape. Requires the 'cad' API key scope. Returns 202 with a task ID; the flattened geometry is delivered as the task's output files.
1002
+ */
1003
+ post: {
1004
+ parameters: {
1005
+ query?: never;
1006
+ header?: never;
1007
+ path?: never;
1008
+ cookie?: never;
1009
+ };
1010
+ requestBody: {
1011
+ content: {
1012
+ "application/json": components["schemas"]["UnfoldFaceToFlatBody"];
1013
+ };
1014
+ };
1015
+ responses: {
1016
+ /** @description Task accepted */
1017
+ 202: {
1018
+ headers: {
1019
+ [name: string]: unknown;
1020
+ };
1021
+ content: {
1022
+ "application/json": components["schemas"]["TaskAcceptedResponse"];
1023
+ };
1024
+ };
1025
+ /** @description Validation error */
1026
+ 400: {
1027
+ headers: {
1028
+ [name: string]: unknown;
1029
+ };
1030
+ content: {
1031
+ "application/json": components["schemas"]["ErrorResponse"];
1032
+ };
1033
+ };
1034
+ /** @description Insufficient scope */
1035
+ 403: {
1036
+ headers: {
1037
+ [name: string]: unknown;
1038
+ };
1039
+ content: {
1040
+ "application/json": components["schemas"]["ErrorResponse"];
1041
+ };
1042
+ };
1043
+ /** @description Server error */
1044
+ 500: {
1045
+ headers: {
1046
+ [name: string]: unknown;
1047
+ };
1048
+ content: {
1049
+ "application/json": components["schemas"]["ErrorResponse"];
1050
+ };
1051
+ };
1052
+ };
1053
+ };
1054
+ delete?: never;
1055
+ options?: never;
1056
+ head?: never;
1057
+ patch?: never;
1058
+ trace?: never;
1059
+ };
1060
+ "/api/v1/cad/pro/unfold/face-report": {
1061
+ parameters: {
1062
+ query?: never;
1063
+ header?: never;
1064
+ path?: never;
1065
+ cookie?: never;
1066
+ };
1067
+ get?: never;
1068
+ put?: never;
1069
+ /**
1070
+ * Sheet metal - unfold a face, metrics report
1071
+ * @description Proprietary sheet-metal analysis: computes the unfold metrics report (developability, area, ...) for a single face of an uploaded STEP shape. Requires the 'cad' API key scope. Returns 202 with a task ID; the JSON report is delivered in the task metadata.
1072
+ */
1073
+ post: {
1074
+ parameters: {
1075
+ query?: never;
1076
+ header?: never;
1077
+ path?: never;
1078
+ cookie?: never;
1079
+ };
1080
+ requestBody: {
1081
+ content: {
1082
+ "application/json": components["schemas"]["UnfoldFaceReportBody"];
1083
+ };
1084
+ };
1085
+ responses: {
1086
+ /** @description Task accepted */
1087
+ 202: {
1088
+ headers: {
1089
+ [name: string]: unknown;
1090
+ };
1091
+ content: {
1092
+ "application/json": components["schemas"]["TaskAcceptedResponse"];
1093
+ };
1094
+ };
1095
+ /** @description Validation error */
1096
+ 400: {
1097
+ headers: {
1098
+ [name: string]: unknown;
1099
+ };
1100
+ content: {
1101
+ "application/json": components["schemas"]["ErrorResponse"];
1102
+ };
1103
+ };
1104
+ /** @description Insufficient scope */
1105
+ 403: {
1106
+ headers: {
1107
+ [name: string]: unknown;
1108
+ };
1109
+ content: {
1110
+ "application/json": components["schemas"]["ErrorResponse"];
1111
+ };
1112
+ };
1113
+ /** @description Server error */
1114
+ 500: {
1115
+ headers: {
1116
+ [name: string]: unknown;
1117
+ };
1118
+ content: {
1119
+ "application/json": components["schemas"]["ErrorResponse"];
1120
+ };
1121
+ };
1122
+ };
1123
+ };
1124
+ delete?: never;
1125
+ options?: never;
1126
+ head?: never;
1127
+ patch?: never;
1128
+ trace?: never;
1129
+ };
1130
+ "/api/v1/cad/pro/unfold/solid-to-flat": {
1131
+ parameters: {
1132
+ query?: never;
1133
+ header?: never;
1134
+ path?: never;
1135
+ cookie?: never;
1136
+ };
1137
+ get?: never;
1138
+ put?: never;
1139
+ /**
1140
+ * Sheet metal - unfold all solids to flat geometry
1141
+ * @description Proprietary sheet-metal unfold: loads every solid in an uploaded STEP file and flattens each to a flat pattern. Requires the 'cad' API key scope. Returns 202 with a task ID; all flats are combined into one compound output per format.
1142
+ */
1143
+ post: {
1144
+ parameters: {
1145
+ query?: never;
1146
+ header?: never;
1147
+ path?: never;
1148
+ cookie?: never;
1149
+ };
1150
+ requestBody: {
1151
+ content: {
1152
+ "application/json": components["schemas"]["UnfoldSolidToFlatBody"];
1153
+ };
1154
+ };
1155
+ responses: {
1156
+ /** @description Task accepted */
1157
+ 202: {
1158
+ headers: {
1159
+ [name: string]: unknown;
1160
+ };
1161
+ content: {
1162
+ "application/json": components["schemas"]["TaskAcceptedResponse"];
1163
+ };
1164
+ };
1165
+ /** @description Validation error */
1166
+ 400: {
1167
+ headers: {
1168
+ [name: string]: unknown;
1169
+ };
1170
+ content: {
1171
+ "application/json": components["schemas"]["ErrorResponse"];
1172
+ };
1173
+ };
1174
+ /** @description Insufficient scope */
1175
+ 403: {
1176
+ headers: {
1177
+ [name: string]: unknown;
1178
+ };
1179
+ content: {
1180
+ "application/json": components["schemas"]["ErrorResponse"];
1181
+ };
1182
+ };
1183
+ /** @description Server error */
1184
+ 500: {
1185
+ headers: {
1186
+ [name: string]: unknown;
1187
+ };
1188
+ content: {
1189
+ "application/json": components["schemas"]["ErrorResponse"];
1190
+ };
1191
+ };
1192
+ };
1193
+ };
1194
+ delete?: never;
1195
+ options?: never;
1196
+ head?: never;
1197
+ patch?: never;
1198
+ trace?: never;
1199
+ };
1200
+ "/api/v1/cad/pro/unfold/solid-report": {
1201
+ parameters: {
1202
+ query?: never;
1203
+ header?: never;
1204
+ path?: never;
1205
+ cookie?: never;
1206
+ };
1207
+ get?: never;
1208
+ put?: never;
1209
+ /**
1210
+ * Sheet metal - unfold all solids, metrics report
1211
+ * @description Proprietary sheet-metal analysis: computes per-solid unfold metrics for every solid in an uploaded STEP file. Requires the 'cad' API key scope. Returns 202 with a task ID; the JSON report array is delivered in the task metadata.
1212
+ */
1213
+ post: {
1214
+ parameters: {
1215
+ query?: never;
1216
+ header?: never;
1217
+ path?: never;
1218
+ cookie?: never;
1219
+ };
1220
+ requestBody: {
1221
+ content: {
1222
+ "application/json": components["schemas"]["UnfoldSolidReportBody"];
1223
+ };
1224
+ };
1225
+ responses: {
1226
+ /** @description Task accepted */
1227
+ 202: {
1228
+ headers: {
1229
+ [name: string]: unknown;
1230
+ };
1231
+ content: {
1232
+ "application/json": components["schemas"]["TaskAcceptedResponse"];
1233
+ };
1234
+ };
1235
+ /** @description Validation error */
1236
+ 400: {
1237
+ headers: {
1238
+ [name: string]: unknown;
1239
+ };
1240
+ content: {
1241
+ "application/json": components["schemas"]["ErrorResponse"];
1242
+ };
1243
+ };
1244
+ /** @description Insufficient scope */
1245
+ 403: {
1246
+ headers: {
1247
+ [name: string]: unknown;
1248
+ };
1249
+ content: {
1250
+ "application/json": components["schemas"]["ErrorResponse"];
1251
+ };
1252
+ };
1253
+ /** @description Server error */
1254
+ 500: {
1255
+ headers: {
1256
+ [name: string]: unknown;
1257
+ };
1258
+ content: {
1259
+ "application/json": components["schemas"]["ErrorResponse"];
1260
+ };
1261
+ };
1262
+ };
1263
+ };
1264
+ delete?: never;
1265
+ options?: never;
1266
+ head?: never;
1267
+ patch?: never;
1268
+ trace?: never;
1269
+ };
1270
+ "/api/v1/cad/pro/unfold/solid": {
1271
+ parameters: {
1272
+ query?: never;
1273
+ header?: never;
1274
+ path?: never;
1275
+ cookie?: never;
1276
+ };
1277
+ get?: never;
1278
+ put?: never;
1279
+ /**
1280
+ * Sheet metal - unfold all solids, geometry + report
1281
+ * @description Proprietary sheet-metal unfold, full workflow: flattens every solid in an uploaded STEP file AND returns per-solid metrics in one call. Requires the 'cad' API key scope. Returns 202 with a task ID; flats are combined into one compound output per format and the per-solid report array is delivered in the task metadata.
1282
+ */
1283
+ post: {
1284
+ parameters: {
1285
+ query?: never;
1286
+ header?: never;
1287
+ path?: never;
1288
+ cookie?: never;
1289
+ };
1290
+ requestBody: {
1291
+ content: {
1292
+ "application/json": components["schemas"]["UnfoldSolidBody"];
1293
+ };
1294
+ };
1295
+ responses: {
1296
+ /** @description Task accepted */
1297
+ 202: {
1298
+ headers: {
1299
+ [name: string]: unknown;
1300
+ };
1301
+ content: {
1302
+ "application/json": components["schemas"]["TaskAcceptedResponse"];
1303
+ };
1304
+ };
1305
+ /** @description Validation error */
1306
+ 400: {
1307
+ headers: {
1308
+ [name: string]: unknown;
1309
+ };
1310
+ content: {
1311
+ "application/json": components["schemas"]["ErrorResponse"];
1312
+ };
1313
+ };
1314
+ /** @description Insufficient scope */
1315
+ 403: {
1316
+ headers: {
1317
+ [name: string]: unknown;
1318
+ };
1319
+ content: {
1320
+ "application/json": components["schemas"]["ErrorResponse"];
1321
+ };
1322
+ };
1323
+ /** @description Server error */
1324
+ 500: {
1325
+ headers: {
1326
+ [name: string]: unknown;
1327
+ };
1328
+ content: {
1329
+ "application/json": components["schemas"]["ErrorResponse"];
1330
+ };
1331
+ };
1332
+ };
1333
+ };
1334
+ delete?: never;
1335
+ options?: never;
1336
+ head?: never;
1337
+ patch?: never;
1338
+ trace?: never;
1339
+ };
850
1340
  "/api/v1/files/upload": {
851
1341
  parameters: {
852
1342
  query?: never;
@@ -857,7 +1347,7 @@ export interface paths {
857
1347
  get?: never;
858
1348
  put?: never;
859
1349
  /**
860
- * Request a file upload URL
1350
+ * Files - request an upload URL
861
1351
  * @description Returns a pre-signed URL for uploading a file via PUT.
862
1352
  */
863
1353
  post: {
@@ -916,7 +1406,7 @@ export interface paths {
916
1406
  cookie?: never;
917
1407
  };
918
1408
  /**
919
- * List uploaded files
1409
+ * Files - list uploaded files
920
1410
  * @description Returns paginated list of uploaded files.
921
1411
  */
922
1412
  get: {
@@ -959,7 +1449,7 @@ export interface paths {
959
1449
  cookie?: never;
960
1450
  };
961
1451
  /**
962
- * Get file details
1452
+ * Files - get file details
963
1453
  * @description Returns metadata and download URL for a single file.
964
1454
  */
965
1455
  get: {
@@ -997,7 +1487,7 @@ export interface paths {
997
1487
  put?: never;
998
1488
  post?: never;
999
1489
  /**
1000
- * Delete a file
1490
+ * Files - delete a file
1001
1491
  * @description Permanently removes a file and its stored blob.
1002
1492
  */
1003
1493
  delete: {
@@ -1047,7 +1537,7 @@ export interface paths {
1047
1537
  get?: never;
1048
1538
  put?: never;
1049
1539
  /**
1050
- * Confirm file upload
1540
+ * Files - confirm upload
1051
1541
  * @description Confirms that the file was successfully uploaded to the pre-signed URL.
1052
1542
  */
1053
1543
  post: {
@@ -1096,7 +1586,7 @@ export interface paths {
1096
1586
  cookie?: never;
1097
1587
  };
1098
1588
  /**
1099
- * List tasks
1589
+ * Tasks - list tasks
1100
1590
  * @description Returns paginated list of tasks.
1101
1591
  */
1102
1592
  get: {
@@ -1140,7 +1630,7 @@ export interface paths {
1140
1630
  cookie?: never;
1141
1631
  };
1142
1632
  /**
1143
- * Get task status
1633
+ * Tasks - get task status
1144
1634
  * @description Returns the current status and metadata of a task.
1145
1635
  */
1146
1636
  get: {
@@ -1178,7 +1668,7 @@ export interface paths {
1178
1668
  put?: never;
1179
1669
  post?: never;
1180
1670
  /**
1181
- * Cancel a task
1671
+ * Tasks - cancel a task
1182
1672
  * @description Cancels a waiting or queued task. Has no effect on completed/failed tasks.
1183
1673
  */
1184
1674
  delete: {
@@ -1226,7 +1716,7 @@ export interface paths {
1226
1716
  cookie?: never;
1227
1717
  };
1228
1718
  /**
1229
- * Get task result (default format)
1719
+ * Tasks - get result (default format)
1230
1720
  * @description Returns a download URL for the task's primary result. For compound tasks, returns a manifest with per-sub-task download links.
1231
1721
  */
1232
1722
  get: {
@@ -1286,7 +1776,7 @@ export interface paths {
1286
1776
  cookie?: never;
1287
1777
  };
1288
1778
  /**
1289
- * Get task result in a specific format
1779
+ * Tasks - get result in a specific format
1290
1780
  * @description Returns a download URL for the requested output format (e.g. glb, step, stpz).
1291
1781
  */
1292
1782
  get: {
@@ -1348,7 +1838,7 @@ export interface paths {
1348
1838
  cookie?: never;
1349
1839
  };
1350
1840
  /**
1351
- * Get all task results
1841
+ * Tasks - get all results
1352
1842
  * @description Returns download URLs for every available result format in a single call. Use this instead of making multiple requests to /result/{format}.
1353
1843
  */
1354
1844
  get: {
@@ -1410,7 +1900,7 @@ export interface paths {
1410
1900
  get?: never;
1411
1901
  put?: never;
1412
1902
  /**
1413
- * Retry a failed or cancelled task
1903
+ * Tasks - retry a failed or cancelled task
1414
1904
  * @description Re-queues a failed or cancelled task with the same parameters.
1415
1905
  */
1416
1906
  post: {
@@ -1468,19 +1958,19 @@ export interface components {
1468
1958
  ExecuteBody: {
1469
1959
  /** @description Fully-qualified CAD operation identifier (e.g. 'occt.shapes.solid.createBox', 'manifold.primitives.cube', 'jscad.booleans.union'). Supports OCCT, Manifold, JSCAD, and vector/math operations. */
1470
1960
  operation: string;
1471
- /** @description Operation-specific parameters — varies by operation. See model definitions for available parameters. */
1961
+ /** @description Operation-specific parameters - varies by operation. See model definitions for available parameters. */
1472
1962
  params?: unknown;
1473
1963
  };
1474
1964
  /** @description Execute a chain of Bitbybit CAD operations sequentially. Supports $ref:N step references, $file:N file inputs, map iteration, and choice conditionals. */
1475
1965
  PipelineBody: {
1476
1966
  /** @description Ordered list of CAD operations executed sequentially. Later steps can reference earlier results using '$ref:N' syntax. Supports map and choice control-flow steps. */
1477
1967
  steps: components["schemas"]["PipelineAnyStep"][];
1478
- /** @description References to previously uploaded files. Use '$file:N' in step params to inject file contents. */
1968
+ /** @description References to previously uploaded files. Use '$file:N' in step params to inject file contents (optionally '$file:N:<format>:<codec>' to pick a read format and/or decompress - see PipelineStep.params). */
1479
1969
  inputFiles?: components["schemas"]["InputFileItem"][];
1480
1970
  /** @description Output format options applied to the final pipeline result. Supports json, csv, stl, 3mf in addition to standard formats. If omitted, raw result data is stored. */
1481
1971
  outputs?: components["schemas"]["PipelineOutputOptions"];
1482
1972
  };
1483
- /** @description A pipeline step — either a plain operation, a map (iteration), or a choice (conditional). */
1973
+ /** @description A pipeline step - either a plain operation, a map (iteration), or a choice (conditional). */
1484
1974
  PipelineAnyStep: components["schemas"]["MapStep"] | components["schemas"]["ChoiceStep"] | components["schemas"]["PipelineStep"];
1485
1975
  /** @description Iterate over an array, executing sub-steps for each element. Produces an array of results (or a reduced value). */
1486
1976
  MapStep: {
@@ -1500,12 +1990,12 @@ export interface components {
1500
1990
  PipelineStep: {
1501
1991
  /** @description Fully-qualified CAD operation identifier (e.g. 'occt.shapes.solid.createSphere'). Supports OCCT, Manifold, JSCAD, and vector/math operations. */
1502
1992
  operation: string;
1503
- /** @description Operation parameters. Use '$ref:N' (e.g. '$ref:0') to reference the output of a previous step by its zero-based index. Use '$file:N' to reference an input file's contents. */
1993
+ /** @description Operation parameters. Use '$ref:N' (e.g. '$ref:0') to reference the output of a previous step by its zero-based index. Use '$file:N[:<format>][:<codec>]' to reference an input file's contents - <format> is one of text|buffer|uint8|json|base64 (default text), and the optional <codec> is one of raw|gunzip|auto (default raw) to decompress the file first; 'auto' gunzips only when gzip magic bytes are present, so '$file:0:text:auto' reads both plain and gzip-compressed uploads (e.g. .step and .stpz). */
1504
1994
  params: unknown;
1505
1995
  /** @description When true, this step's result is included in a separate result.json output alongside any shape files. */
1506
1996
  output?: boolean;
1507
1997
  };
1508
- /** @description Conditional execution — evaluate a condition and run the matching branch. */
1998
+ /** @description Conditional execution - evaluate a condition and run the matching branch. */
1509
1999
  ChoiceStep: {
1510
2000
  /**
1511
2001
  * @description Declares this step as a choice (conditional) step
@@ -1549,7 +2039,7 @@ export interface components {
1549
2039
  includePipelineInMetadata?: boolean;
1550
2040
  };
1551
2041
  /**
1552
- * @description Pipeline output file format. Includes all standard formats plus: 'json' (JSON data), 'csv' (CSV text), 'stl' (binary STL mesh — Manifold/JSCAD only), '3mf' (3MF mesh package — Manifold/JSCAD only).
2042
+ * @description Pipeline output file format. Includes all standard formats plus: 'json' (JSON data), 'csv' (CSV text), 'stl' (binary STL mesh - Manifold/JSCAD only), '3mf' (3MF mesh package - Manifold/JSCAD only).
1553
2043
  * @enum {string}
1554
2044
  */
1555
2045
  PipelineOutputFormat: "step" | "stpz" | "decomposed-mesh" | "gltf" | "json" | "csv" | "stl" | "3mf";
@@ -1561,7 +2051,7 @@ export interface components {
1561
2051
  /** @description Execute multiple independent Bitbybit CAD operations in parallel. Each item runs as a separate sub-task and can be polled individually. */
1562
2052
  CompoundExecuteBody: {
1563
2053
  /**
1564
- * @description Must be true — signals that items should be processed concurrently
2054
+ * @description Must be true - signals that items should be processed concurrently
1565
2055
  * @constant
1566
2056
  */
1567
2057
  parallel: true;
@@ -1594,7 +2084,7 @@ export interface components {
1594
2084
  };
1595
2085
  /** @description Controls which output formats are generated and their quality settings */
1596
2086
  OutputOptions: {
1597
- /** @description Output formats to generate. Multiple formats can be requested (e.g. ['gltf', 'stpz']) — each produces a separate downloadable result. Do not include both 'step' and 'stpz' — only one STEP variant is supported per request. */
2087
+ /** @description Output formats to generate. Multiple formats can be requested (e.g. ['gltf', 'stpz']) - each produces a separate downloadable result. Do not include both 'step' and 'stpz' - only one STEP variant is supported per request. */
1598
2088
  formats: components["schemas"]["OutputFormat"][];
1599
2089
  /** @description Tessellation precision for mesh-based outputs (decomposed-mesh and gltf). Lower values produce denser meshes. Only ignored when output is limited to step/stpz formats. */
1600
2090
  meshPrecision?: components["schemas"]["MeshPrecision"];
@@ -1604,7 +2094,7 @@ export interface components {
1604
2094
  adjustYtoZ?: boolean;
1605
2095
  };
1606
2096
  /**
1607
- * @description Output file format: 'step' (raw STEP), 'stpz' (gzip-compressed STEP), 'decomposed-mesh' (triangulated JSON), 'gltf' (glTF 2.0 binary .glb). Note: 'step' and 'stpz' are mutually exclusive — choose one or the other, not both.
2097
+ * @description Output file format: 'step' (raw STEP), 'stpz' (gzip-compressed STEP), 'decomposed-mesh' (triangulated JSON), 'gltf' (glTF 2.0 binary .glb). Note: 'step' and 'stpz' are mutually exclusive - choose one or the other, not both.
1608
2098
  * @enum {string}
1609
2099
  */
1610
2100
  OutputFormat: "step" | "stpz" | "decomposed-mesh" | "gltf";
@@ -1624,7 +2114,7 @@ export interface components {
1624
2114
  params?: components["schemas"]["DragonCupParams"];
1625
2115
  outputs: components["schemas"]["OutputOptions"];
1626
2116
  };
1627
- /** @description Dragon Cup model parameters — all optional, sane defaults apply */
2117
+ /** @description Dragon Cup model parameters - all optional, sane defaults apply */
1628
2118
  DragonCupParams: {
1629
2119
  /** @description Total cup height (cm) */
1630
2120
  height?: number;
@@ -1682,7 +2172,7 @@ export interface components {
1682
2172
  params?: components["schemas"]["PhoneNestParams"];
1683
2173
  outputs: components["schemas"]["OutputOptions"];
1684
2174
  };
1685
- /** @description Phone Nest model parameters — all optional, sane defaults apply */
2175
+ /** @description Phone Nest model parameters - all optional, sane defaults apply */
1686
2176
  PhoneNestParams: {
1687
2177
  /** @description Height of the bottom section (cm) */
1688
2178
  heightBottom?: number;
@@ -1725,10 +2215,14 @@ export interface components {
1725
2215
  stepFileId: string;
1726
2216
  /** @description Mesh linear deflection. When meshRelative is true (default), this is a fraction of each edge's length (e.g. 0.005 = 0.5%). When false, it is an absolute value in model units (mm for STEP). */
1727
2217
  meshPrecision?: components["schemas"]["MeshPrecision"];
1728
- /** @description Angular deflection in radians for mesh tessellation — controls curvature approximation. Smaller values produce smoother curved surfaces. */
2218
+ /** @description Angular deflection in radians for mesh tessellation - controls curvature approximation. Smaller values produce smoother curved surfaces. */
1729
2219
  meshAngle?: components["schemas"]["MeshAngle"];
1730
2220
  /** @description Use size-aware relative deflection per face. When true, meshPrecision is a fraction of each edge's length. Set to false for absolute deflection in model units. */
1731
2221
  meshRelative?: boolean;
2222
+ /** @description Add interior vertices for better curved face fidelity (slower, set false for speed). */
2223
+ internalVerticesMode?: boolean;
2224
+ /** @description Extra post-pass refining triangles that bulge beyond the deflection (slower, set false for speed). */
2225
+ controlSurfaceDeflection?: boolean;
1732
2226
  };
1733
2227
  /** @description Mesh angular deflection in radians. Range: [0.01, π] */
1734
2228
  MeshAngle: number;
@@ -1753,15 +2247,15 @@ export interface components {
1753
2247
  readProps?: boolean;
1754
2248
  /** @description Mesh linear deflection. When meshRelative is true (default), this is a fraction of each edge's length (e.g. 0.005 = 0.5%) so deflection auto-scales with feature size. When false, it is absolute in model units (mm for STEP). */
1755
2249
  meshDeflection?: components["schemas"]["MeshPrecision"];
1756
- /** @description Angular deflection for mesh tessellation (radians) — controls curvature approximation */
2250
+ /** @description Angular deflection for mesh tessellation (radians) - controls curvature approximation */
1757
2251
  meshAngle?: components["schemas"]["MeshAngle"];
1758
2252
  /** @description Enable parallel tessellation for faster processing */
1759
2253
  meshParallel?: boolean;
1760
2254
  /** @description Use size-aware relative deflection per face. When true, meshDeflection is a fraction of each edge's length. Set to false for absolute deflection in model units. */
1761
2255
  meshRelative?: boolean;
1762
- /** @description Enable internal vertices mode for more accurate mesh on complex faces */
2256
+ /** @description Add interior vertices for better curved face fidelity (slower, set false for speed). */
1763
2257
  internalVerticesMode?: boolean;
1764
- /** @description Enable control surface deflection for better quality on curved surfaces */
2258
+ /** @description Extra post-pass refining triangles that bulge beyond the deflection (slower, set false for speed). */
1765
2259
  controlSurfaceDeflection?: boolean;
1766
2260
  /** @description Face count threshold for per-sub-shape meshing fallback. Default -1 means single-pass meshing of the whole compound (fastest). Set to a positive value (e.g. 100000) to fall back to per-solid meshing for very large assemblies in memory-constrained environments. */
1767
2261
  faceCountThreshold?: number;
@@ -1796,6 +2290,122 @@ export interface components {
1796
2290
  * @enum {string}
1797
2291
  */
1798
2292
  GltfTransformFormat: "compact" | "mat4" | "trs";
2293
+ /** @description Convert a STEP file to Draco-compressed glTF with default settings. Upload the STEP file first, then pass its ID here. */
2294
+ StepToGltfWithDracoBody: {
2295
+ /** @description ID of the previously uploaded STEP file (returned by the file upload endpoint) */
2296
+ stepFileId: string;
2297
+ /** @description Mesh linear deflection. When meshRelative is true (default), this is a fraction of each edge's length (e.g. 0.005 = 0.5%). When false, it is an absolute value in model units (mm for STEP). */
2298
+ meshPrecision?: components["schemas"]["MeshPrecision"];
2299
+ /** @description Angular deflection in radians for mesh tessellation - controls curvature approximation. Smaller values produce smoother curved surfaces. */
2300
+ meshAngle?: components["schemas"]["MeshAngle"];
2301
+ /** @description Use size-aware relative deflection per face. When true, meshPrecision is a fraction of each edge's length. Set to false for absolute deflection in model units. */
2302
+ meshRelative?: boolean;
2303
+ /** @description Add interior vertices for better curved face fidelity (slower, set false for speed). */
2304
+ internalVerticesMode?: boolean;
2305
+ /** @description Extra post-pass refining triangles that bulge beyond the deflection (slower, set false for speed). */
2306
+ controlSurfaceDeflection?: boolean;
2307
+ /** @description Draco compression options. If omitted, sensible defaults are used (level 7, 14/10/12/8/12 bits). */
2308
+ draco?: components["schemas"]["DracoCompressionOptions"];
2309
+ };
2310
+ /** @description Draco geometry compression options applied during glTF export. */
2311
+ DracoCompressionOptions: {
2312
+ /** @description Apply Draco geometry compression to the glTF output. Defaults to true for the *-with-draco endpoints. */
2313
+ useDraco?: boolean;
2314
+ /** @description Draco compression level (0 = fastest/largest, 10 = slowest/smallest). Typical good default is 7. */
2315
+ dracoCompressionLevel?: number;
2316
+ /** @description Quantization bits for vertex positions (higher = more precise, larger file). Typical: 14. */
2317
+ dracoQuantizePositionBits?: number;
2318
+ /** @description Quantization bits for normal vectors. Typical: 10. */
2319
+ dracoQuantizeNormalBits?: number;
2320
+ /** @description Quantization bits for texture coordinates. Typical: 12. */
2321
+ dracoQuantizeTexcoordBits?: number;
2322
+ /** @description Quantization bits for vertex colors. Typical: 8. */
2323
+ dracoQuantizeColorBits?: number;
2324
+ /** @description Quantization bits for generic vertex attributes. Typical: 12. */
2325
+ dracoQuantizeGenericBits?: number;
2326
+ /** @description Use unified quantization across all meshes (better when meshes share a coordinate frame). */
2327
+ dracoUnifiedQuantization?: boolean;
2328
+ };
2329
+ /** @description Convert a STEP file to Draco-compressed glTF with full control over tessellation, naming, coordinate systems, output format, and Draco quantization. */
2330
+ StepToGltfAdvancedWithDracoBody: {
2331
+ /** @description ID of the previously uploaded STEP file (returned by the file upload endpoint) */
2332
+ stepFileId: string;
2333
+ /** @description Advanced conversion settings. If omitted, sensible defaults are used. */
2334
+ options?: components["schemas"]["ConvertAdvancedOptions"];
2335
+ /** @description Draco compression options. If omitted, sensible defaults are used (level 7, 14/10/12/8/12 bits). */
2336
+ draco?: components["schemas"]["DracoCompressionOptions"];
2337
+ };
2338
+ /** @description Unfold a single developable face of an uploaded STEP shape to a flat face. */
2339
+ UnfoldFaceToFlatBody: {
2340
+ /** @description ID of the previously uploaded STEP file (returned by the file upload endpoint). Both plain STEP (.step/.stp) and gzip-compressed STEP (.stpz) uploads are accepted - compression is detected automatically. */
2341
+ stepFileId: string;
2342
+ /**
2343
+ * @description 0-based index of the developable face (in the shape's BRepGraph face array) to unfold.
2344
+ * @default 0
2345
+ */
2346
+ faceIndex: number;
2347
+ /** @description Output formats for the flattened face geometry. Defaults to glTF. */
2348
+ outputs?: components["schemas"]["OutputOptions"];
2349
+ };
2350
+ /** @description Compute the sheet-metal unfold metrics report for a single face of an uploaded STEP shape. */
2351
+ UnfoldFaceReportBody: {
2352
+ /** @description ID of the previously uploaded STEP file (returned by the file upload endpoint). Both plain STEP (.step/.stp) and gzip-compressed STEP (.stpz) uploads are accepted - compression is detected automatically. */
2353
+ stepFileId: string;
2354
+ /**
2355
+ * @description 0-based index of the face to analyze.
2356
+ * @default 0
2357
+ */
2358
+ faceIndex: number;
2359
+ };
2360
+ /** @description Flatten every constant-thickness sheet-metal solid in an uploaded STEP file to flat patterns. */
2361
+ UnfoldSolidToFlatBody: {
2362
+ /** @description ID of the previously uploaded STEP file (returned by the file upload endpoint). Both plain STEP (.step/.stp) and gzip-compressed STEP (.stpz) uploads are accepted - compression is detected automatically. */
2363
+ stepFileId: string;
2364
+ /**
2365
+ * @description Sheet-metal K-factor (neutral-axis position), typically ~0.5.
2366
+ * @default 0.5
2367
+ */
2368
+ kFactor: number;
2369
+ /**
2370
+ * @description Sheet thickness override in model units; 0 auto-detects thickness from face pairs.
2371
+ * @default 0
2372
+ */
2373
+ thicknessOverride: number;
2374
+ /** @description Output formats for the flattened patterns. Every solid's flat is combined into one compound output per format. Defaults to glTF. */
2375
+ outputs?: components["schemas"]["OutputOptions"];
2376
+ };
2377
+ /** @description Compute per-solid sheet-metal unfold metrics for every solid in an uploaded STEP file. */
2378
+ UnfoldSolidReportBody: {
2379
+ /** @description ID of the previously uploaded STEP file (returned by the file upload endpoint). Both plain STEP (.step/.stp) and gzip-compressed STEP (.stpz) uploads are accepted - compression is detected automatically. */
2380
+ stepFileId: string;
2381
+ /**
2382
+ * @description Sheet-metal K-factor (neutral-axis position), typically ~0.5.
2383
+ * @default 0.5
2384
+ */
2385
+ kFactor: number;
2386
+ /**
2387
+ * @description Sheet thickness override in model units; 0 auto-detects thickness from face pairs.
2388
+ * @default 0
2389
+ */
2390
+ thicknessOverride: number;
2391
+ };
2392
+ /** @description Flatten every constant-thickness sheet-metal solid in an uploaded STEP file AND return the per-solid metrics report - both in one call. */
2393
+ UnfoldSolidBody: {
2394
+ /** @description ID of the previously uploaded STEP file (returned by the file upload endpoint). Both plain STEP (.step/.stp) and gzip-compressed STEP (.stpz) uploads are accepted - compression is detected automatically. */
2395
+ stepFileId: string;
2396
+ /**
2397
+ * @description Sheet-metal K-factor (neutral-axis position), typically ~0.5.
2398
+ * @default 0.5
2399
+ */
2400
+ kFactor: number;
2401
+ /**
2402
+ * @description Sheet thickness override in model units; 0 auto-detects thickness from face pairs.
2403
+ * @default 0
2404
+ */
2405
+ thicknessOverride: number;
2406
+ /** @description Output formats for the flattened patterns. For 'gltf'/'step'/'stpz', every solid's flat is combined into one compound output. The 'decomposed-mesh' format instead returns one mesh per solid (each tagged with its 'solidIndex'). Defaults to glTF. */
2407
+ outputs?: components["schemas"]["OutputOptions"];
2408
+ };
1799
2409
  /** @description Request a pre-signed upload URL. After receiving the URL, PUT the raw file bytes to it within the expiration window. */
1800
2410
  FileUploadBody: {
1801
2411
  /** @description Original filename including extension (e.g. 'part.step', 'model.obj'). Used for display and format detection. */
@@ -1804,9 +2414,139 @@ export interface components {
1804
2414
  contentType: string;
1805
2415
  /** @description Exact file size in bytes. Must match the Content-Length of the subsequent PUT to the upload URL. Maximum: 1 GB. */
1806
2416
  bytes: number;
1807
- /** @description SHA-256 hex digest of the file content. When provided, enables server-side deduplication — if an identical file was previously uploaded under this API key, the existing file is reused and no upload is needed. */
2417
+ /** @description SHA-256 hex digest of the file content. When provided, enables server-side deduplication - if an identical file was previously uploaded under this API key, the existing file is reused and no upload is needed. */
1808
2418
  sha256?: string;
1809
2419
  };
2420
+ /** @description Returned when a shape/face cannot be processed by the unfold. */
2421
+ UnfoldReportError: {
2422
+ /** @constant */
2423
+ ok: false;
2424
+ error: string;
2425
+ };
2426
+ /** @description Sheet-metal unfold metrics for ONE solid (bend table + face roles + original->flat map). On failure, the ok:false branch still carries the partial diagnostics gathered before the failure. */
2427
+ UnfoldSolidReportItem: {
2428
+ /** @constant */
2429
+ ok: true;
2430
+ thickness: number;
2431
+ kFactor: number;
2432
+ warning: string;
2433
+ bends: components["schemas"]["UnfoldBend"][];
2434
+ flatBBox: [
2435
+ number,
2436
+ number,
2437
+ number,
2438
+ number
2439
+ ];
2440
+ flatArea: number;
2441
+ referenceArea: number;
2442
+ totalArea: number;
2443
+ faces: components["schemas"]["UnfoldFaceEntry"][];
2444
+ placed: components["schemas"]["UnfoldPlaced"][];
2445
+ } | components["schemas"]["UnfoldSolidReportError"];
2446
+ /** @description One bend: line, angle, radii (inner/outer/neutral and per-end for cones), and developed lengths. */
2447
+ UnfoldBend: {
2448
+ faceIndex: number;
2449
+ flatA: number;
2450
+ flatB: number;
2451
+ lineStart: [
2452
+ number,
2453
+ number,
2454
+ number
2455
+ ];
2456
+ lineEnd: [
2457
+ number,
2458
+ number,
2459
+ number
2460
+ ];
2461
+ lineMid: [
2462
+ number,
2463
+ number,
2464
+ number
2465
+ ];
2466
+ bendLineLength: number;
2467
+ angleDeg: number;
2468
+ innerRadius: number;
2469
+ outerRadius: number;
2470
+ neutralRadius: number;
2471
+ innerRadiusStart: number;
2472
+ innerRadiusEnd: number;
2473
+ outerRadiusStart: number;
2474
+ outerRadiusEnd: number;
2475
+ T: number;
2476
+ K: number;
2477
+ allowance: number;
2478
+ bendDeduction: number;
2479
+ outsideSetback: number;
2480
+ innerArcLength: number;
2481
+ outerArcLength: number;
2482
+ /** @enum {string} */
2483
+ direction: "up" | "down";
2484
+ /** @enum {string} */
2485
+ kind: "cyl" | "cone";
2486
+ layoutApprox: boolean;
2487
+ };
2488
+ /** @description A classified source face: stable key (index + BRepGraph uid), role, and label anchors. */
2489
+ UnfoldFaceEntry: {
2490
+ index: number;
2491
+ uid: number;
2492
+ /** @enum {string} */
2493
+ surfaceType: "Plane" | "Cylinder" | "Cone" | "Sphere" | "Torus" | "Other";
2494
+ /** @enum {string} */
2495
+ role: "referenceFlat" | "otherSideFlat" | "rim" | "flat" | "bend" | "coneBend" | "cutout" | "ignored";
2496
+ reference: boolean;
2497
+ opposite: number;
2498
+ area: number;
2499
+ centroid: [
2500
+ number,
2501
+ number,
2502
+ number
2503
+ ];
2504
+ labelPoint: [
2505
+ number,
2506
+ number,
2507
+ number
2508
+ ];
2509
+ /** @description Bend candidates (cylinder/cone) only: best |flange normal · cylinder radial| over the flanges. ~1 = tangent fold, ~0 = cutout/hole wall. */
2510
+ tangentDot?: number;
2511
+ /**
2512
+ * @description How the fold filter classified a bend candidate: 'fold' (kept), 'cutout' (rejected - not tangent / <2 flanges), 'duplicate' (dropped - one fold per flat pair), or '' (a bend face not on the reference side, never evaluated by the filter).
2513
+ * @enum {string}
2514
+ */
2515
+ bendOutcome?: "fold" | "cutout" | "duplicate" | "";
2516
+ };
2517
+ /** @description A sub-shape laid into the flat compound, mapped back to its source face (compound order). */
2518
+ UnfoldPlaced: {
2519
+ /** @enum {string} */
2520
+ kind: "flat" | "bendStrip";
2521
+ sourceFaceIndex: number;
2522
+ role: ("referenceFlat" | "otherSideFlat" | "rim" | "flat" | "bend" | "coneBend" | "cutout" | "ignored") | "unknown";
2523
+ flatCentroid: [
2524
+ number,
2525
+ number,
2526
+ number
2527
+ ];
2528
+ };
2529
+ /** @description Returned when a solid cannot be fully unfolded; carries the partial diagnostics gathered before the failure (classified faces with roles, detected thickness, warnings) so the reason can be inspected. */
2530
+ UnfoldSolidReportError: {
2531
+ /** @constant */
2532
+ ok: false;
2533
+ error: string;
2534
+ thickness?: number;
2535
+ kFactor?: number;
2536
+ warning?: string;
2537
+ bends?: components["schemas"]["UnfoldBend"][];
2538
+ flatBBox?: [
2539
+ number,
2540
+ number,
2541
+ number,
2542
+ number
2543
+ ];
2544
+ flatArea?: number;
2545
+ referenceArea?: number;
2546
+ totalArea?: number;
2547
+ faces?: components["schemas"]["UnfoldFaceEntry"][];
2548
+ placed?: components["schemas"]["UnfoldPlaced"][];
2549
+ };
1810
2550
  /** @description Success envelope for health check */
1811
2551
  HealthResponse: {
1812
2552
  /** @constant */
@@ -1833,7 +2573,7 @@ export interface components {
1833
2573
  TaskCreatedResult: {
1834
2574
  /**
1835
2575
  * Format: uuid
1836
- * @description Unique task identifier — use this to poll for status and retrieve results
2576
+ * @description Unique task identifier - use this to poll for status and retrieve results
1837
2577
  */
1838
2578
  taskId: string;
1839
2579
  /**
@@ -1984,7 +2724,7 @@ export interface components {
1984
2724
  UploadResult: {
1985
2725
  /**
1986
2726
  * Format: uuid
1987
- * @description Assigned file identifier — use this to reference the file in subsequent API calls
2727
+ * @description Assigned file identifier - use this to reference the file in subsequent API calls
1988
2728
  */
1989
2729
  fileId: string;
1990
2730
  /**
@@ -2224,6 +2964,153 @@ export interface components {
2224
2964
  filename: string;
2225
2965
  }[];
2226
2966
  };
2967
+ /** @description Returned when a shape/face cannot be processed by the unfold. */
2968
+ UnfoldReportErrorOutput: {
2969
+ /** @constant */
2970
+ ok: false;
2971
+ error: string;
2972
+ };
2973
+ /** @description Sheet-metal unfold metrics for ONE solid (bend table + face roles + original->flat map). On failure, the ok:false branch still carries the partial diagnostics gathered before the failure. */
2974
+ UnfoldSolidReportItemOutput: {
2975
+ /** @constant */
2976
+ ok: true;
2977
+ thickness: number;
2978
+ kFactor: number;
2979
+ warning: string;
2980
+ bends: components["schemas"]["UnfoldBendOutput"][];
2981
+ flatBBox: [
2982
+ number,
2983
+ number,
2984
+ number,
2985
+ number
2986
+ ];
2987
+ flatArea: number;
2988
+ referenceArea: number;
2989
+ totalArea: number;
2990
+ faces: components["schemas"]["UnfoldFaceEntryOutput"][];
2991
+ placed: components["schemas"]["UnfoldPlacedOutput"][];
2992
+ } | components["schemas"]["UnfoldSolidReportErrorOutput"];
2993
+ /** @description One bend: line, angle, radii (inner/outer/neutral and per-end for cones), and developed lengths. */
2994
+ UnfoldBendOutput: {
2995
+ faceIndex: number;
2996
+ flatA: number;
2997
+ flatB: number;
2998
+ lineStart: [
2999
+ number,
3000
+ number,
3001
+ number
3002
+ ];
3003
+ lineEnd: [
3004
+ number,
3005
+ number,
3006
+ number
3007
+ ];
3008
+ lineMid: [
3009
+ number,
3010
+ number,
3011
+ number
3012
+ ];
3013
+ bendLineLength: number;
3014
+ angleDeg: number;
3015
+ innerRadius: number;
3016
+ outerRadius: number;
3017
+ neutralRadius: number;
3018
+ innerRadiusStart: number;
3019
+ innerRadiusEnd: number;
3020
+ outerRadiusStart: number;
3021
+ outerRadiusEnd: number;
3022
+ T: number;
3023
+ K: number;
3024
+ allowance: number;
3025
+ bendDeduction: number;
3026
+ outsideSetback: number;
3027
+ innerArcLength: number;
3028
+ outerArcLength: number;
3029
+ /** @enum {string} */
3030
+ direction: "up" | "down";
3031
+ /** @enum {string} */
3032
+ kind: "cyl" | "cone";
3033
+ layoutApprox: boolean;
3034
+ };
3035
+ /** @description A classified source face: stable key (index + BRepGraph uid), role, and label anchors. */
3036
+ UnfoldFaceEntryOutput: {
3037
+ index: number;
3038
+ uid: number;
3039
+ /** @enum {string} */
3040
+ surfaceType: "Plane" | "Cylinder" | "Cone" | "Sphere" | "Torus" | "Other";
3041
+ /** @enum {string} */
3042
+ role: "referenceFlat" | "otherSideFlat" | "rim" | "flat" | "bend" | "coneBend" | "cutout" | "ignored";
3043
+ reference: boolean;
3044
+ opposite: number;
3045
+ area: number;
3046
+ centroid: [
3047
+ number,
3048
+ number,
3049
+ number
3050
+ ];
3051
+ labelPoint: [
3052
+ number,
3053
+ number,
3054
+ number
3055
+ ];
3056
+ /** @description Bend candidates (cylinder/cone) only: best |flange normal · cylinder radial| over the flanges. ~1 = tangent fold, ~0 = cutout/hole wall. */
3057
+ tangentDot?: number;
3058
+ /**
3059
+ * @description How the fold filter classified a bend candidate: 'fold' (kept), 'cutout' (rejected - not tangent / <2 flanges), 'duplicate' (dropped - one fold per flat pair), or '' (a bend face not on the reference side, never evaluated by the filter).
3060
+ * @enum {string}
3061
+ */
3062
+ bendOutcome?: "fold" | "cutout" | "duplicate" | "";
3063
+ };
3064
+ /** @description A sub-shape laid into the flat compound, mapped back to its source face (compound order). */
3065
+ UnfoldPlacedOutput: {
3066
+ /** @enum {string} */
3067
+ kind: "flat" | "bendStrip";
3068
+ sourceFaceIndex: number;
3069
+ role: ("referenceFlat" | "otherSideFlat" | "rim" | "flat" | "bend" | "coneBend" | "cutout" | "ignored") | "unknown";
3070
+ flatCentroid: [
3071
+ number,
3072
+ number,
3073
+ number
3074
+ ];
3075
+ };
3076
+ /** @description Returned when a solid cannot be fully unfolded; carries the partial diagnostics gathered before the failure (classified faces with roles, detected thickness, warnings) so the reason can be inspected. */
3077
+ UnfoldSolidReportErrorOutput: {
3078
+ /** @constant */
3079
+ ok: false;
3080
+ error: string;
3081
+ thickness?: number;
3082
+ kFactor?: number;
3083
+ warning?: string;
3084
+ bends?: components["schemas"]["UnfoldBendOutput"][];
3085
+ flatBBox?: [
3086
+ number,
3087
+ number,
3088
+ number,
3089
+ number
3090
+ ];
3091
+ flatArea?: number;
3092
+ referenceArea?: number;
3093
+ totalArea?: number;
3094
+ faces?: components["schemas"]["UnfoldFaceEntryOutput"][];
3095
+ placed?: components["schemas"]["UnfoldPlacedOutput"][];
3096
+ };
3097
+ /** @description Sheet-metal unfold metrics for a single face (surface type, developability, area before/after). */
3098
+ UnfoldFaceReport: {
3099
+ /** @constant */
3100
+ ok: true;
3101
+ faceIndex: number;
3102
+ /** @enum {string} */
3103
+ surfaceType: "Plane" | "Cylinder" | "Cone" | "Sphere" | "Torus" | "Other";
3104
+ developable: boolean;
3105
+ unfolded: boolean;
3106
+ area: number;
3107
+ flatArea: number;
3108
+ areaError: number;
3109
+ } | components["schemas"]["UnfoldReportErrorOutput"];
3110
+ /** @description Per-solid sheet-metal unfold metrics - one entry per solid in the STEP file (each carries its solidIndex). */
3111
+ UnfoldSolidReport: (components["schemas"]["UnfoldSolidReportItemOutput"] & {
3112
+ solidIndex: number;
3113
+ })[];
2227
3114
  };
2228
3115
  responses: never;
2229
3116
  parameters: never;