@bitbybit-dev/cad-cloud-sdk 1.0.2 → 1.1.1
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/types/generated.d.ts +745 -47
- package/dist/types/generated.d.ts.map +1 -1
- package/dist/types/pipeline-operations.d.ts +762 -6
- package/dist/types/pipeline-operations.d.ts.map +1 -1
- package/dist/types/pipeline-operations.js +1 -1
- package/dist/types/pipeline-operations.js.map +1 -1
- package/dist/types/schema-exports.d.ts +44 -6
- package/dist/types/schema-exports.d.ts.map +1 -1
- package/dist/validation/request-schemas.d.ts +109 -0
- package/dist/validation/request-schemas.d.ts.map +1 -1
- package/dist/validation/request-schemas.js +119 -0
- package/dist/validation/request-schemas.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
/**
|
|
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
|
-
*
|
|
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
|
-
*
|
|
324
|
-
* @description Generic endpoint
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
521
|
-
* @description Parametric dragon-scale textured cup with twisted lofted body, voronoi-like skin cells, and configurable shell thickness. All parameters are optional
|
|
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
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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: {
|
|
@@ -857,7 +857,7 @@ export interface paths {
|
|
|
857
857
|
get?: never;
|
|
858
858
|
put?: never;
|
|
859
859
|
/**
|
|
860
|
-
* Convert
|
|
860
|
+
* Convert - STEP to Draco-compressed glTF (.glb)
|
|
861
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
862
|
*/
|
|
863
863
|
post: {
|
|
@@ -927,7 +927,7 @@ export interface paths {
|
|
|
927
927
|
get?: never;
|
|
928
928
|
put?: never;
|
|
929
929
|
/**
|
|
930
|
-
* Convert
|
|
930
|
+
* Convert - STEP to Draco-compressed glTF (.glb), advanced options
|
|
931
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
932
|
*/
|
|
933
933
|
post: {
|
|
@@ -987,6 +987,356 @@ export interface paths {
|
|
|
987
987
|
patch?: never;
|
|
988
988
|
trace?: never;
|
|
989
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
|
+
};
|
|
990
1340
|
"/api/v1/files/upload": {
|
|
991
1341
|
parameters: {
|
|
992
1342
|
query?: never;
|
|
@@ -997,7 +1347,7 @@ export interface paths {
|
|
|
997
1347
|
get?: never;
|
|
998
1348
|
put?: never;
|
|
999
1349
|
/**
|
|
1000
|
-
*
|
|
1350
|
+
* Files - request an upload URL
|
|
1001
1351
|
* @description Returns a pre-signed URL for uploading a file via PUT.
|
|
1002
1352
|
*/
|
|
1003
1353
|
post: {
|
|
@@ -1056,7 +1406,7 @@ export interface paths {
|
|
|
1056
1406
|
cookie?: never;
|
|
1057
1407
|
};
|
|
1058
1408
|
/**
|
|
1059
|
-
*
|
|
1409
|
+
* Files - list uploaded files
|
|
1060
1410
|
* @description Returns paginated list of uploaded files.
|
|
1061
1411
|
*/
|
|
1062
1412
|
get: {
|
|
@@ -1099,7 +1449,7 @@ export interface paths {
|
|
|
1099
1449
|
cookie?: never;
|
|
1100
1450
|
};
|
|
1101
1451
|
/**
|
|
1102
|
-
*
|
|
1452
|
+
* Files - get file details
|
|
1103
1453
|
* @description Returns metadata and download URL for a single file.
|
|
1104
1454
|
*/
|
|
1105
1455
|
get: {
|
|
@@ -1137,7 +1487,7 @@ export interface paths {
|
|
|
1137
1487
|
put?: never;
|
|
1138
1488
|
post?: never;
|
|
1139
1489
|
/**
|
|
1140
|
-
*
|
|
1490
|
+
* Files - delete a file
|
|
1141
1491
|
* @description Permanently removes a file and its stored blob.
|
|
1142
1492
|
*/
|
|
1143
1493
|
delete: {
|
|
@@ -1187,7 +1537,7 @@ export interface paths {
|
|
|
1187
1537
|
get?: never;
|
|
1188
1538
|
put?: never;
|
|
1189
1539
|
/**
|
|
1190
|
-
*
|
|
1540
|
+
* Files - confirm upload
|
|
1191
1541
|
* @description Confirms that the file was successfully uploaded to the pre-signed URL.
|
|
1192
1542
|
*/
|
|
1193
1543
|
post: {
|
|
@@ -1236,7 +1586,7 @@ export interface paths {
|
|
|
1236
1586
|
cookie?: never;
|
|
1237
1587
|
};
|
|
1238
1588
|
/**
|
|
1239
|
-
*
|
|
1589
|
+
* Tasks - list tasks
|
|
1240
1590
|
* @description Returns paginated list of tasks.
|
|
1241
1591
|
*/
|
|
1242
1592
|
get: {
|
|
@@ -1280,7 +1630,7 @@ export interface paths {
|
|
|
1280
1630
|
cookie?: never;
|
|
1281
1631
|
};
|
|
1282
1632
|
/**
|
|
1283
|
-
*
|
|
1633
|
+
* Tasks - get task status
|
|
1284
1634
|
* @description Returns the current status and metadata of a task.
|
|
1285
1635
|
*/
|
|
1286
1636
|
get: {
|
|
@@ -1318,7 +1668,7 @@ export interface paths {
|
|
|
1318
1668
|
put?: never;
|
|
1319
1669
|
post?: never;
|
|
1320
1670
|
/**
|
|
1321
|
-
*
|
|
1671
|
+
* Tasks - cancel a task
|
|
1322
1672
|
* @description Cancels a waiting or queued task. Has no effect on completed/failed tasks.
|
|
1323
1673
|
*/
|
|
1324
1674
|
delete: {
|
|
@@ -1366,7 +1716,7 @@ export interface paths {
|
|
|
1366
1716
|
cookie?: never;
|
|
1367
1717
|
};
|
|
1368
1718
|
/**
|
|
1369
|
-
*
|
|
1719
|
+
* Tasks - get result (default format)
|
|
1370
1720
|
* @description Returns a download URL for the task's primary result. For compound tasks, returns a manifest with per-sub-task download links.
|
|
1371
1721
|
*/
|
|
1372
1722
|
get: {
|
|
@@ -1426,7 +1776,7 @@ export interface paths {
|
|
|
1426
1776
|
cookie?: never;
|
|
1427
1777
|
};
|
|
1428
1778
|
/**
|
|
1429
|
-
*
|
|
1779
|
+
* Tasks - get result in a specific format
|
|
1430
1780
|
* @description Returns a download URL for the requested output format (e.g. glb, step, stpz).
|
|
1431
1781
|
*/
|
|
1432
1782
|
get: {
|
|
@@ -1488,7 +1838,7 @@ export interface paths {
|
|
|
1488
1838
|
cookie?: never;
|
|
1489
1839
|
};
|
|
1490
1840
|
/**
|
|
1491
|
-
*
|
|
1841
|
+
* Tasks - get all results
|
|
1492
1842
|
* @description Returns download URLs for every available result format in a single call. Use this instead of making multiple requests to /result/{format}.
|
|
1493
1843
|
*/
|
|
1494
1844
|
get: {
|
|
@@ -1550,7 +1900,7 @@ export interface paths {
|
|
|
1550
1900
|
get?: never;
|
|
1551
1901
|
put?: never;
|
|
1552
1902
|
/**
|
|
1553
|
-
*
|
|
1903
|
+
* Tasks - retry a failed or cancelled task
|
|
1554
1904
|
* @description Re-queues a failed or cancelled task with the same parameters.
|
|
1555
1905
|
*/
|
|
1556
1906
|
post: {
|
|
@@ -1608,19 +1958,19 @@ export interface components {
|
|
|
1608
1958
|
ExecuteBody: {
|
|
1609
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. */
|
|
1610
1960
|
operation: string;
|
|
1611
|
-
/** @description Operation-specific parameters
|
|
1961
|
+
/** @description Operation-specific parameters - varies by operation. See model definitions for available parameters. */
|
|
1612
1962
|
params?: unknown;
|
|
1613
1963
|
};
|
|
1614
1964
|
/** @description Execute a chain of Bitbybit CAD operations sequentially. Supports $ref:N step references, $file:N file inputs, map iteration, and choice conditionals. */
|
|
1615
1965
|
PipelineBody: {
|
|
1616
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. */
|
|
1617
1967
|
steps: components["schemas"]["PipelineAnyStep"][];
|
|
1618
|
-
/** @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). */
|
|
1619
1969
|
inputFiles?: components["schemas"]["InputFileItem"][];
|
|
1620
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. */
|
|
1621
1971
|
outputs?: components["schemas"]["PipelineOutputOptions"];
|
|
1622
1972
|
};
|
|
1623
|
-
/** @description A pipeline step
|
|
1973
|
+
/** @description A pipeline step - either a plain operation, a map (iteration), or a choice (conditional). */
|
|
1624
1974
|
PipelineAnyStep: components["schemas"]["MapStep"] | components["schemas"]["ChoiceStep"] | components["schemas"]["PipelineStep"];
|
|
1625
1975
|
/** @description Iterate over an array, executing sub-steps for each element. Produces an array of results (or a reduced value). */
|
|
1626
1976
|
MapStep: {
|
|
@@ -1640,12 +1990,12 @@ export interface components {
|
|
|
1640
1990
|
PipelineStep: {
|
|
1641
1991
|
/** @description Fully-qualified CAD operation identifier (e.g. 'occt.shapes.solid.createSphere'). Supports OCCT, Manifold, JSCAD, and vector/math operations. */
|
|
1642
1992
|
operation: string;
|
|
1643
|
-
/** @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). */
|
|
1644
1994
|
params: unknown;
|
|
1645
1995
|
/** @description When true, this step's result is included in a separate result.json output alongside any shape files. */
|
|
1646
1996
|
output?: boolean;
|
|
1647
1997
|
};
|
|
1648
|
-
/** @description Conditional execution
|
|
1998
|
+
/** @description Conditional execution - evaluate a condition and run the matching branch. */
|
|
1649
1999
|
ChoiceStep: {
|
|
1650
2000
|
/**
|
|
1651
2001
|
* @description Declares this step as a choice (conditional) step
|
|
@@ -1689,7 +2039,7 @@ export interface components {
|
|
|
1689
2039
|
includePipelineInMetadata?: boolean;
|
|
1690
2040
|
};
|
|
1691
2041
|
/**
|
|
1692
|
-
* @description Pipeline output file format. Includes all standard formats plus: 'json' (JSON data), 'csv' (CSV text), 'stl' (binary STL mesh
|
|
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).
|
|
1693
2043
|
* @enum {string}
|
|
1694
2044
|
*/
|
|
1695
2045
|
PipelineOutputFormat: "step" | "stpz" | "decomposed-mesh" | "gltf" | "json" | "csv" | "stl" | "3mf";
|
|
@@ -1701,7 +2051,7 @@ export interface components {
|
|
|
1701
2051
|
/** @description Execute multiple independent Bitbybit CAD operations in parallel. Each item runs as a separate sub-task and can be polled individually. */
|
|
1702
2052
|
CompoundExecuteBody: {
|
|
1703
2053
|
/**
|
|
1704
|
-
* @description Must be true
|
|
2054
|
+
* @description Must be true - signals that items should be processed concurrently
|
|
1705
2055
|
* @constant
|
|
1706
2056
|
*/
|
|
1707
2057
|
parallel: true;
|
|
@@ -1734,7 +2084,7 @@ export interface components {
|
|
|
1734
2084
|
};
|
|
1735
2085
|
/** @description Controls which output formats are generated and their quality settings */
|
|
1736
2086
|
OutputOptions: {
|
|
1737
|
-
/** @description Output formats to generate. Multiple formats can be requested (e.g. ['gltf', 'stpz'])
|
|
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. */
|
|
1738
2088
|
formats: components["schemas"]["OutputFormat"][];
|
|
1739
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. */
|
|
1740
2090
|
meshPrecision?: components["schemas"]["MeshPrecision"];
|
|
@@ -1744,7 +2094,7 @@ export interface components {
|
|
|
1744
2094
|
adjustYtoZ?: boolean;
|
|
1745
2095
|
};
|
|
1746
2096
|
/**
|
|
1747
|
-
* @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
|
|
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.
|
|
1748
2098
|
* @enum {string}
|
|
1749
2099
|
*/
|
|
1750
2100
|
OutputFormat: "step" | "stpz" | "decomposed-mesh" | "gltf";
|
|
@@ -1764,7 +2114,7 @@ export interface components {
|
|
|
1764
2114
|
params?: components["schemas"]["DragonCupParams"];
|
|
1765
2115
|
outputs: components["schemas"]["OutputOptions"];
|
|
1766
2116
|
};
|
|
1767
|
-
/** @description Dragon Cup model parameters
|
|
2117
|
+
/** @description Dragon Cup model parameters - all optional, sane defaults apply */
|
|
1768
2118
|
DragonCupParams: {
|
|
1769
2119
|
/** @description Total cup height (cm) */
|
|
1770
2120
|
height?: number;
|
|
@@ -1822,7 +2172,7 @@ export interface components {
|
|
|
1822
2172
|
params?: components["schemas"]["PhoneNestParams"];
|
|
1823
2173
|
outputs: components["schemas"]["OutputOptions"];
|
|
1824
2174
|
};
|
|
1825
|
-
/** @description Phone Nest model parameters
|
|
2175
|
+
/** @description Phone Nest model parameters - all optional, sane defaults apply */
|
|
1826
2176
|
PhoneNestParams: {
|
|
1827
2177
|
/** @description Height of the bottom section (cm) */
|
|
1828
2178
|
heightBottom?: number;
|
|
@@ -1865,7 +2215,7 @@ export interface components {
|
|
|
1865
2215
|
stepFileId: string;
|
|
1866
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). */
|
|
1867
2217
|
meshPrecision?: components["schemas"]["MeshPrecision"];
|
|
1868
|
-
/** @description Angular deflection in radians for mesh tessellation
|
|
2218
|
+
/** @description Angular deflection in radians for mesh tessellation - controls curvature approximation. Smaller values produce smoother curved surfaces. */
|
|
1869
2219
|
meshAngle?: components["schemas"]["MeshAngle"];
|
|
1870
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. */
|
|
1871
2221
|
meshRelative?: boolean;
|
|
@@ -1897,7 +2247,7 @@ export interface components {
|
|
|
1897
2247
|
readProps?: boolean;
|
|
1898
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). */
|
|
1899
2249
|
meshDeflection?: components["schemas"]["MeshPrecision"];
|
|
1900
|
-
/** @description Angular deflection for mesh tessellation (radians)
|
|
2250
|
+
/** @description Angular deflection for mesh tessellation (radians) - controls curvature approximation */
|
|
1901
2251
|
meshAngle?: components["schemas"]["MeshAngle"];
|
|
1902
2252
|
/** @description Enable parallel tessellation for faster processing */
|
|
1903
2253
|
meshParallel?: boolean;
|
|
@@ -1946,7 +2296,7 @@ export interface components {
|
|
|
1946
2296
|
stepFileId: string;
|
|
1947
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). */
|
|
1948
2298
|
meshPrecision?: components["schemas"]["MeshPrecision"];
|
|
1949
|
-
/** @description Angular deflection in radians for mesh tessellation
|
|
2299
|
+
/** @description Angular deflection in radians for mesh tessellation - controls curvature approximation. Smaller values produce smoother curved surfaces. */
|
|
1950
2300
|
meshAngle?: components["schemas"]["MeshAngle"];
|
|
1951
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. */
|
|
1952
2302
|
meshRelative?: boolean;
|
|
@@ -1985,6 +2335,77 @@ export interface components {
|
|
|
1985
2335
|
/** @description Draco compression options. If omitted, sensible defaults are used (level 7, 14/10/12/8/12 bits). */
|
|
1986
2336
|
draco?: components["schemas"]["DracoCompressionOptions"];
|
|
1987
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
|
+
};
|
|
1988
2409
|
/** @description Request a pre-signed upload URL. After receiving the URL, PUT the raw file bytes to it within the expiration window. */
|
|
1989
2410
|
FileUploadBody: {
|
|
1990
2411
|
/** @description Original filename including extension (e.g. 'part.step', 'model.obj'). Used for display and format detection. */
|
|
@@ -1993,9 +2414,139 @@ export interface components {
|
|
|
1993
2414
|
contentType: string;
|
|
1994
2415
|
/** @description Exact file size in bytes. Must match the Content-Length of the subsequent PUT to the upload URL. Maximum: 1 GB. */
|
|
1995
2416
|
bytes: number;
|
|
1996
|
-
/** @description SHA-256 hex digest of the file content. When provided, enables server-side deduplication
|
|
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. */
|
|
1997
2418
|
sha256?: string;
|
|
1998
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
|
+
};
|
|
1999
2550
|
/** @description Success envelope for health check */
|
|
2000
2551
|
HealthResponse: {
|
|
2001
2552
|
/** @constant */
|
|
@@ -2022,7 +2573,7 @@ export interface components {
|
|
|
2022
2573
|
TaskCreatedResult: {
|
|
2023
2574
|
/**
|
|
2024
2575
|
* Format: uuid
|
|
2025
|
-
* @description Unique task identifier
|
|
2576
|
+
* @description Unique task identifier - use this to poll for status and retrieve results
|
|
2026
2577
|
*/
|
|
2027
2578
|
taskId: string;
|
|
2028
2579
|
/**
|
|
@@ -2173,7 +2724,7 @@ export interface components {
|
|
|
2173
2724
|
UploadResult: {
|
|
2174
2725
|
/**
|
|
2175
2726
|
* Format: uuid
|
|
2176
|
-
* @description Assigned file identifier
|
|
2727
|
+
* @description Assigned file identifier - use this to reference the file in subsequent API calls
|
|
2177
2728
|
*/
|
|
2178
2729
|
fileId: string;
|
|
2179
2730
|
/**
|
|
@@ -2413,6 +2964,153 @@ export interface components {
|
|
|
2413
2964
|
filename: string;
|
|
2414
2965
|
}[];
|
|
2415
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
|
+
})[];
|
|
2416
3114
|
};
|
|
2417
3115
|
responses: never;
|
|
2418
3116
|
parameters: never;
|