@bitbybit-dev/cad-cloud-sdk 1.1.1 → 1.2.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +5 -15
- package/dist/client.js.map +1 -1
- package/dist/endpoints/cad.d.ts.map +1 -1
- package/dist/endpoints/cad.js +0 -3
- package/dist/endpoints/cad.js.map +1 -1
- package/dist/endpoints/convert.d.ts.map +1 -1
- package/dist/endpoints/convert.js +0 -3
- package/dist/endpoints/convert.js.map +1 -1
- package/dist/endpoints/files.d.ts.map +1 -1
- package/dist/endpoints/files.js +0 -3
- package/dist/endpoints/files.js.map +1 -1
- package/dist/endpoints/models.d.ts.map +1 -1
- package/dist/endpoints/models.js +0 -3
- package/dist/endpoints/models.js.map +1 -1
- package/dist/endpoints/tasks.d.ts.map +1 -1
- package/dist/endpoints/tasks.js +0 -3
- package/dist/endpoints/tasks.js.map +1 -1
- package/dist/errors.d.ts +4 -4
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +0 -3
- package/dist/errors.js.map +1 -1
- package/dist/fetch-downloads.d.ts.map +1 -1
- package/dist/fetch-downloads.js +0 -3
- package/dist/fetch-downloads.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -8
- package/dist/index.js.map +1 -1
- package/dist/polling.d.ts.map +1 -1
- package/dist/polling.js +0 -3
- package/dist/polling.js.map +1 -1
- package/dist/types/custom.d.ts.map +1 -1
- package/dist/types/custom.js +0 -5
- package/dist/types/custom.js.map +1 -1
- package/dist/types/generated.d.ts +19 -6
- package/dist/types/generated.d.ts.map +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +0 -7
- package/dist/types/index.js.map +1 -1
- package/dist/types/pipeline-operations.d.ts +54 -46
- 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/unwrap.d.ts.map +1 -1
- package/dist/unwrap.js +0 -3
- package/dist/unwrap.js.map +1 -1
- package/dist/validation/validator.d.ts.map +1 -1
- package/dist/validation/validator.js +0 -8
- package/dist/validation/validator.js.map +1 -1
- package/package.json +6 -3
- package/src/__test__/helpers.ts +71 -0
- package/src/__test__/index.ts +1 -0
- package/src/client.test.ts +206 -0
- package/src/client.ts +153 -0
- package/src/endpoints/cad.test.ts +101 -0
- package/src/endpoints/cad.ts +53 -0
- package/src/endpoints/convert.test.ts +154 -0
- package/src/endpoints/convert.ts +83 -0
- package/src/endpoints/files.test.ts +170 -0
- package/src/endpoints/files.ts +89 -0
- package/src/endpoints/index.ts +5 -0
- package/src/endpoints/models.test.ts +228 -0
- package/src/endpoints/models.ts +131 -0
- package/src/endpoints/tasks.test.ts +193 -0
- package/src/endpoints/tasks.ts +93 -0
- package/src/errors.test.ts +57 -0
- package/src/errors.ts +21 -0
- package/src/fetch-downloads.test.ts +67 -0
- package/src/fetch-downloads.ts +18 -0
- package/src/index.ts +19 -0
- package/src/polling.test.ts +194 -0
- package/src/polling.ts +81 -0
- package/src/types/custom.ts +45 -0
- package/src/types/generated.ts +3136 -0
- package/src/types/index.ts +3 -0
- package/src/types/pipeline-operations.ts +9008 -0
- package/src/types/schema-exports.ts +228 -0
- package/src/unwrap.test.ts +75 -0
- package/src/unwrap.ts +20 -0
- package/src/validation/index.ts +1 -0
- package/src/validation/request-schemas.ts +1001 -0
- package/src/validation/validator.test.ts +218 -0
- package/src/validation/validator.ts +60 -0
|
@@ -0,0 +1,3136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export interface paths {
|
|
7
|
+
"/health": {
|
|
8
|
+
parameters: {
|
|
9
|
+
query?: never;
|
|
10
|
+
header?: never;
|
|
11
|
+
path?: never;
|
|
12
|
+
cookie?: never;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Health - status check
|
|
16
|
+
* @description Returns the operational status of the Bitbybit CAD Cloud API, including service health and readiness. Requires no authentication, so it is suitable for uptime monitoring, load balancer probes and deployment smoke tests.
|
|
17
|
+
*/
|
|
18
|
+
get: {
|
|
19
|
+
parameters: {
|
|
20
|
+
query?: never;
|
|
21
|
+
header?: never;
|
|
22
|
+
path?: never;
|
|
23
|
+
cookie?: never;
|
|
24
|
+
};
|
|
25
|
+
requestBody?: never;
|
|
26
|
+
responses: {
|
|
27
|
+
/** @description Health status */
|
|
28
|
+
200: {
|
|
29
|
+
headers: {
|
|
30
|
+
[name: string]: unknown;
|
|
31
|
+
};
|
|
32
|
+
content: {
|
|
33
|
+
"application/json": components["schemas"]["HealthResponse"];
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
put?: never;
|
|
39
|
+
post?: never;
|
|
40
|
+
delete?: never;
|
|
41
|
+
options?: never;
|
|
42
|
+
head?: never;
|
|
43
|
+
patch?: never;
|
|
44
|
+
trace?: never;
|
|
45
|
+
};
|
|
46
|
+
"/api/v1/cad/execute": {
|
|
47
|
+
parameters: {
|
|
48
|
+
query?: never;
|
|
49
|
+
header?: never;
|
|
50
|
+
path?: never;
|
|
51
|
+
cookie?: never;
|
|
52
|
+
};
|
|
53
|
+
get?: never;
|
|
54
|
+
put?: never;
|
|
55
|
+
/**
|
|
56
|
+
* CAD - execute a single operation
|
|
57
|
+
* @description Runs a single CAD operation by its fully-qualified identifier.
|
|
58
|
+
*/
|
|
59
|
+
post: {
|
|
60
|
+
parameters: {
|
|
61
|
+
query?: never;
|
|
62
|
+
header?: never;
|
|
63
|
+
path?: never;
|
|
64
|
+
cookie?: never;
|
|
65
|
+
};
|
|
66
|
+
requestBody: {
|
|
67
|
+
content: {
|
|
68
|
+
"application/json": components["schemas"]["ExecuteBody"];
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
responses: {
|
|
72
|
+
/** @description Task accepted */
|
|
73
|
+
202: {
|
|
74
|
+
headers: {
|
|
75
|
+
[name: string]: unknown;
|
|
76
|
+
};
|
|
77
|
+
content: {
|
|
78
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
/** @description Validation error */
|
|
82
|
+
400: {
|
|
83
|
+
headers: {
|
|
84
|
+
[name: string]: unknown;
|
|
85
|
+
};
|
|
86
|
+
content: {
|
|
87
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
/** @description Server error */
|
|
91
|
+
500: {
|
|
92
|
+
headers: {
|
|
93
|
+
[name: string]: unknown;
|
|
94
|
+
};
|
|
95
|
+
content: {
|
|
96
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
delete?: never;
|
|
102
|
+
options?: never;
|
|
103
|
+
head?: never;
|
|
104
|
+
patch?: never;
|
|
105
|
+
trace?: never;
|
|
106
|
+
};
|
|
107
|
+
"/api/v1/cad/pipeline": {
|
|
108
|
+
parameters: {
|
|
109
|
+
query?: never;
|
|
110
|
+
header?: never;
|
|
111
|
+
path?: never;
|
|
112
|
+
cookie?: never;
|
|
113
|
+
};
|
|
114
|
+
get?: never;
|
|
115
|
+
put?: never;
|
|
116
|
+
/**
|
|
117
|
+
* CAD - execute a chained pipeline
|
|
118
|
+
* @description Runs multiple operations sequentially. Use '$ref:N' in params to reference step N's result.
|
|
119
|
+
*/
|
|
120
|
+
post: {
|
|
121
|
+
parameters: {
|
|
122
|
+
query?: never;
|
|
123
|
+
header?: never;
|
|
124
|
+
path?: never;
|
|
125
|
+
cookie?: never;
|
|
126
|
+
};
|
|
127
|
+
requestBody: {
|
|
128
|
+
content: {
|
|
129
|
+
"application/json": components["schemas"]["PipelineBody"];
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
responses: {
|
|
133
|
+
/** @description Task accepted */
|
|
134
|
+
202: {
|
|
135
|
+
headers: {
|
|
136
|
+
[name: string]: unknown;
|
|
137
|
+
};
|
|
138
|
+
content: {
|
|
139
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
/** @description Validation error */
|
|
143
|
+
400: {
|
|
144
|
+
headers: {
|
|
145
|
+
[name: string]: unknown;
|
|
146
|
+
};
|
|
147
|
+
content: {
|
|
148
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
/** @description Server error */
|
|
152
|
+
500: {
|
|
153
|
+
headers: {
|
|
154
|
+
[name: string]: unknown;
|
|
155
|
+
};
|
|
156
|
+
content: {
|
|
157
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
delete?: never;
|
|
163
|
+
options?: never;
|
|
164
|
+
head?: never;
|
|
165
|
+
patch?: never;
|
|
166
|
+
trace?: never;
|
|
167
|
+
};
|
|
168
|
+
"/api/v1/cad/compound": {
|
|
169
|
+
parameters: {
|
|
170
|
+
query?: never;
|
|
171
|
+
header?: never;
|
|
172
|
+
path?: never;
|
|
173
|
+
cookie?: never;
|
|
174
|
+
};
|
|
175
|
+
get?: never;
|
|
176
|
+
put?: never;
|
|
177
|
+
/**
|
|
178
|
+
* CAD - execute compound (parallel) operations
|
|
179
|
+
* @description Runs several independent CAD operations in parallel as one compound task. Each sub-operation is executed on its own and produces its own downloadable result, so use this when the operations do not depend on each other - for a sequence where each step consumes the previous one's output, use the chained pipeline endpoint instead. Returns 202 with a compound task id; poll it and download the per-sub-task manifest when it completes.
|
|
180
|
+
*/
|
|
181
|
+
post: {
|
|
182
|
+
parameters: {
|
|
183
|
+
query?: never;
|
|
184
|
+
header?: never;
|
|
185
|
+
path?: never;
|
|
186
|
+
cookie?: never;
|
|
187
|
+
};
|
|
188
|
+
requestBody: {
|
|
189
|
+
content: {
|
|
190
|
+
"application/json": components["schemas"]["CompoundExecuteBody"];
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
responses: {
|
|
194
|
+
/** @description Compound task accepted */
|
|
195
|
+
202: {
|
|
196
|
+
headers: {
|
|
197
|
+
[name: string]: unknown;
|
|
198
|
+
};
|
|
199
|
+
content: {
|
|
200
|
+
"application/json": components["schemas"]["CompoundTaskAcceptedResponse"];
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
/** @description Validation error */
|
|
204
|
+
400: {
|
|
205
|
+
headers: {
|
|
206
|
+
[name: string]: unknown;
|
|
207
|
+
};
|
|
208
|
+
content: {
|
|
209
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
/** @description Server error */
|
|
213
|
+
500: {
|
|
214
|
+
headers: {
|
|
215
|
+
[name: string]: unknown;
|
|
216
|
+
};
|
|
217
|
+
content: {
|
|
218
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
delete?: never;
|
|
224
|
+
options?: never;
|
|
225
|
+
head?: never;
|
|
226
|
+
patch?: never;
|
|
227
|
+
trace?: never;
|
|
228
|
+
};
|
|
229
|
+
"/api/v1/models": {
|
|
230
|
+
parameters: {
|
|
231
|
+
query?: never;
|
|
232
|
+
header?: never;
|
|
233
|
+
path?: never;
|
|
234
|
+
cookie?: never;
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* Models - list available models
|
|
238
|
+
* @description Lists every parametric model available for generation, by name. Use the returned names with the definitions and generation endpoints to discover each model's parameter schema and defaults before submitting a job.
|
|
239
|
+
*/
|
|
240
|
+
get: {
|
|
241
|
+
parameters: {
|
|
242
|
+
query?: never;
|
|
243
|
+
header?: never;
|
|
244
|
+
path?: never;
|
|
245
|
+
cookie?: never;
|
|
246
|
+
};
|
|
247
|
+
requestBody?: never;
|
|
248
|
+
responses: {
|
|
249
|
+
/** @description Model name list */
|
|
250
|
+
200: {
|
|
251
|
+
headers: {
|
|
252
|
+
[name: string]: unknown;
|
|
253
|
+
};
|
|
254
|
+
content: {
|
|
255
|
+
"application/json": components["schemas"]["ModelListResponse"];
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
put?: never;
|
|
261
|
+
post?: never;
|
|
262
|
+
delete?: never;
|
|
263
|
+
options?: never;
|
|
264
|
+
head?: never;
|
|
265
|
+
patch?: never;
|
|
266
|
+
trace?: never;
|
|
267
|
+
};
|
|
268
|
+
"/api/v1/models/definitions": {
|
|
269
|
+
parameters: {
|
|
270
|
+
query?: never;
|
|
271
|
+
header?: never;
|
|
272
|
+
path?: never;
|
|
273
|
+
cookie?: never;
|
|
274
|
+
};
|
|
275
|
+
get?: never;
|
|
276
|
+
put?: never;
|
|
277
|
+
/**
|
|
278
|
+
* Models - batch-fetch definitions
|
|
279
|
+
* @description Returns parameter schemas and defaults for the requested model names.
|
|
280
|
+
*/
|
|
281
|
+
post: {
|
|
282
|
+
parameters: {
|
|
283
|
+
query?: never;
|
|
284
|
+
header?: never;
|
|
285
|
+
path?: never;
|
|
286
|
+
cookie?: never;
|
|
287
|
+
};
|
|
288
|
+
requestBody: {
|
|
289
|
+
content: {
|
|
290
|
+
"application/json": components["schemas"]["DefinitionsBody"];
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
responses: {
|
|
294
|
+
/** @description Model definitions */
|
|
295
|
+
200: {
|
|
296
|
+
headers: {
|
|
297
|
+
[name: string]: unknown;
|
|
298
|
+
};
|
|
299
|
+
content: {
|
|
300
|
+
"application/json": components["schemas"]["ModelBatchDefinitionsResponse"];
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
/** @description Validation error */
|
|
304
|
+
400: {
|
|
305
|
+
headers: {
|
|
306
|
+
[name: string]: unknown;
|
|
307
|
+
};
|
|
308
|
+
content: {
|
|
309
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
delete?: never;
|
|
315
|
+
options?: never;
|
|
316
|
+
head?: never;
|
|
317
|
+
patch?: never;
|
|
318
|
+
trace?: never;
|
|
319
|
+
};
|
|
320
|
+
"/api/v1/models/{modelName}": {
|
|
321
|
+
parameters: {
|
|
322
|
+
query?: never;
|
|
323
|
+
header?: never;
|
|
324
|
+
path?: never;
|
|
325
|
+
cookie?: never;
|
|
326
|
+
};
|
|
327
|
+
get?: never;
|
|
328
|
+
put?: never;
|
|
329
|
+
/**
|
|
330
|
+
* Models - execute a parametric model
|
|
331
|
+
* @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.
|
|
332
|
+
*/
|
|
333
|
+
post: {
|
|
334
|
+
parameters: {
|
|
335
|
+
query?: never;
|
|
336
|
+
header?: never;
|
|
337
|
+
path: {
|
|
338
|
+
/** @description Model slug (e.g. dragon-cup, phone-nest) */
|
|
339
|
+
modelName: string;
|
|
340
|
+
};
|
|
341
|
+
cookie?: never;
|
|
342
|
+
};
|
|
343
|
+
requestBody: {
|
|
344
|
+
content: {
|
|
345
|
+
"application/json": components["schemas"]["ModelSubmissionBody"];
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
responses: {
|
|
349
|
+
/** @description Task accepted */
|
|
350
|
+
202: {
|
|
351
|
+
headers: {
|
|
352
|
+
[name: string]: unknown;
|
|
353
|
+
};
|
|
354
|
+
content: {
|
|
355
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
/** @description Validation error */
|
|
359
|
+
400: {
|
|
360
|
+
headers: {
|
|
361
|
+
[name: string]: unknown;
|
|
362
|
+
};
|
|
363
|
+
content: {
|
|
364
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
/** @description Not found */
|
|
368
|
+
404: {
|
|
369
|
+
headers: {
|
|
370
|
+
[name: string]: unknown;
|
|
371
|
+
};
|
|
372
|
+
content: {
|
|
373
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
/** @description Server error */
|
|
377
|
+
500: {
|
|
378
|
+
headers: {
|
|
379
|
+
[name: string]: unknown;
|
|
380
|
+
};
|
|
381
|
+
content: {
|
|
382
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
delete?: never;
|
|
388
|
+
options?: never;
|
|
389
|
+
head?: never;
|
|
390
|
+
patch?: never;
|
|
391
|
+
trace?: never;
|
|
392
|
+
};
|
|
393
|
+
"/api/v1/models/{modelName}/batch": {
|
|
394
|
+
parameters: {
|
|
395
|
+
query?: never;
|
|
396
|
+
header?: never;
|
|
397
|
+
path?: never;
|
|
398
|
+
cookie?: never;
|
|
399
|
+
};
|
|
400
|
+
get?: never;
|
|
401
|
+
put?: never;
|
|
402
|
+
/**
|
|
403
|
+
* Models - generate a batch
|
|
404
|
+
* @description Creates a compound task with one sub-task per item. Each item can have different parameters but shares the same output config.
|
|
405
|
+
*/
|
|
406
|
+
post: {
|
|
407
|
+
parameters: {
|
|
408
|
+
query?: never;
|
|
409
|
+
header?: never;
|
|
410
|
+
path: {
|
|
411
|
+
/** @description Model slug (e.g. dragon-cup, phone-nest) */
|
|
412
|
+
modelName: string;
|
|
413
|
+
};
|
|
414
|
+
cookie?: never;
|
|
415
|
+
};
|
|
416
|
+
requestBody: {
|
|
417
|
+
content: {
|
|
418
|
+
"application/json": components["schemas"]["BatchModelSubmissionBody"];
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
responses: {
|
|
422
|
+
/** @description Compound task accepted */
|
|
423
|
+
202: {
|
|
424
|
+
headers: {
|
|
425
|
+
[name: string]: unknown;
|
|
426
|
+
};
|
|
427
|
+
content: {
|
|
428
|
+
"application/json": components["schemas"]["CompoundTaskAcceptedResponse"];
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
/** @description Validation error */
|
|
432
|
+
400: {
|
|
433
|
+
headers: {
|
|
434
|
+
[name: string]: unknown;
|
|
435
|
+
};
|
|
436
|
+
content: {
|
|
437
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
/** @description Not found */
|
|
441
|
+
404: {
|
|
442
|
+
headers: {
|
|
443
|
+
[name: string]: unknown;
|
|
444
|
+
};
|
|
445
|
+
content: {
|
|
446
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
/** @description Server error */
|
|
450
|
+
500: {
|
|
451
|
+
headers: {
|
|
452
|
+
[name: string]: unknown;
|
|
453
|
+
};
|
|
454
|
+
content: {
|
|
455
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
delete?: never;
|
|
461
|
+
options?: never;
|
|
462
|
+
head?: never;
|
|
463
|
+
patch?: never;
|
|
464
|
+
trace?: never;
|
|
465
|
+
};
|
|
466
|
+
"/api/v1/models/{modelName}/params": {
|
|
467
|
+
parameters: {
|
|
468
|
+
query?: never;
|
|
469
|
+
header?: never;
|
|
470
|
+
path?: never;
|
|
471
|
+
cookie?: never;
|
|
472
|
+
};
|
|
473
|
+
/**
|
|
474
|
+
* Models - get parameter definitions
|
|
475
|
+
* @description Returns parameter schema, types, defaults, and limits for the specified model.
|
|
476
|
+
*/
|
|
477
|
+
get: {
|
|
478
|
+
parameters: {
|
|
479
|
+
query?: never;
|
|
480
|
+
header?: never;
|
|
481
|
+
path: {
|
|
482
|
+
/** @description Model slug (e.g. dragon-cup, phone-nest) */
|
|
483
|
+
modelName: string;
|
|
484
|
+
};
|
|
485
|
+
cookie?: never;
|
|
486
|
+
};
|
|
487
|
+
requestBody?: never;
|
|
488
|
+
responses: {
|
|
489
|
+
/** @description Model definition */
|
|
490
|
+
200: {
|
|
491
|
+
headers: {
|
|
492
|
+
[name: string]: unknown;
|
|
493
|
+
};
|
|
494
|
+
content: {
|
|
495
|
+
"application/json": components["schemas"]["ModelDefinitionResponse"];
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
/** @description Not found */
|
|
499
|
+
404: {
|
|
500
|
+
headers: {
|
|
501
|
+
[name: string]: unknown;
|
|
502
|
+
};
|
|
503
|
+
content: {
|
|
504
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
505
|
+
};
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
put?: never;
|
|
510
|
+
post?: never;
|
|
511
|
+
delete?: never;
|
|
512
|
+
options?: never;
|
|
513
|
+
head?: never;
|
|
514
|
+
patch?: never;
|
|
515
|
+
trace?: never;
|
|
516
|
+
};
|
|
517
|
+
"/api/v1/models/dragon-cup": {
|
|
518
|
+
parameters: {
|
|
519
|
+
query?: never;
|
|
520
|
+
header?: never;
|
|
521
|
+
path?: never;
|
|
522
|
+
cookie?: never;
|
|
523
|
+
};
|
|
524
|
+
get?: never;
|
|
525
|
+
put?: never;
|
|
526
|
+
/**
|
|
527
|
+
* Models - build a Dragon Cup
|
|
528
|
+
* @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.
|
|
529
|
+
*/
|
|
530
|
+
post: {
|
|
531
|
+
parameters: {
|
|
532
|
+
query?: never;
|
|
533
|
+
header?: never;
|
|
534
|
+
path?: never;
|
|
535
|
+
cookie?: never;
|
|
536
|
+
};
|
|
537
|
+
requestBody: {
|
|
538
|
+
content: {
|
|
539
|
+
/**
|
|
540
|
+
* @example {
|
|
541
|
+
* "params": {
|
|
542
|
+
* "height": 8,
|
|
543
|
+
* "radiusBottom": 4,
|
|
544
|
+
* "radiusTopOffset": 2,
|
|
545
|
+
* "radiusMidOffset": 2,
|
|
546
|
+
* "rotationTopAngle": 20,
|
|
547
|
+
* "rotationMidAngle": 20,
|
|
548
|
+
* "nrSkinCellsVertical": 5,
|
|
549
|
+
* "nrSkinCellsHorizontal": 10,
|
|
550
|
+
* "nrSkinCellDivisionsTop": 1,
|
|
551
|
+
* "nrSkinCellDivisionsBottom": 3,
|
|
552
|
+
* "skinCellOuterHeight": 0.4,
|
|
553
|
+
* "skinCellInnerHeight": 0.3,
|
|
554
|
+
* "skinCellBottomHeight": 0.4,
|
|
555
|
+
* "skinCellTopHeight": 0.4,
|
|
556
|
+
* "thickness": 0.6,
|
|
557
|
+
* "bottomThickness": 1,
|
|
558
|
+
* "precision": 0.01,
|
|
559
|
+
* "rotation": 0,
|
|
560
|
+
* "scale": 1,
|
|
561
|
+
* "origin": [
|
|
562
|
+
* 0,
|
|
563
|
+
* 0,
|
|
564
|
+
* 0
|
|
565
|
+
* ],
|
|
566
|
+
* "direction": [
|
|
567
|
+
* 0,
|
|
568
|
+
* 1,
|
|
569
|
+
* 0
|
|
570
|
+
* ]
|
|
571
|
+
* },
|
|
572
|
+
* "outputs": {
|
|
573
|
+
* "formats": [
|
|
574
|
+
* "step",
|
|
575
|
+
* "gltf"
|
|
576
|
+
* ]
|
|
577
|
+
* }
|
|
578
|
+
* }
|
|
579
|
+
*/
|
|
580
|
+
"application/json": components["schemas"]["DragonCupBody"];
|
|
581
|
+
};
|
|
582
|
+
};
|
|
583
|
+
responses: {
|
|
584
|
+
/** @description Task accepted */
|
|
585
|
+
202: {
|
|
586
|
+
headers: {
|
|
587
|
+
[name: string]: unknown;
|
|
588
|
+
};
|
|
589
|
+
content: {
|
|
590
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
/** @description Validation error */
|
|
594
|
+
400: {
|
|
595
|
+
headers: {
|
|
596
|
+
[name: string]: unknown;
|
|
597
|
+
};
|
|
598
|
+
content: {
|
|
599
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
600
|
+
};
|
|
601
|
+
};
|
|
602
|
+
/** @description Server error */
|
|
603
|
+
500: {
|
|
604
|
+
headers: {
|
|
605
|
+
[name: string]: unknown;
|
|
606
|
+
};
|
|
607
|
+
content: {
|
|
608
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
609
|
+
};
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
};
|
|
613
|
+
delete?: never;
|
|
614
|
+
options?: never;
|
|
615
|
+
head?: never;
|
|
616
|
+
patch?: never;
|
|
617
|
+
trace?: never;
|
|
618
|
+
};
|
|
619
|
+
"/api/v1/models/phone-nest": {
|
|
620
|
+
parameters: {
|
|
621
|
+
query?: never;
|
|
622
|
+
header?: never;
|
|
623
|
+
path?: never;
|
|
624
|
+
cookie?: never;
|
|
625
|
+
};
|
|
626
|
+
get?: never;
|
|
627
|
+
put?: never;
|
|
628
|
+
/**
|
|
629
|
+
* Models - build a Phone Nest
|
|
630
|
+
* @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.
|
|
631
|
+
*/
|
|
632
|
+
post: {
|
|
633
|
+
parameters: {
|
|
634
|
+
query?: never;
|
|
635
|
+
header?: never;
|
|
636
|
+
path?: never;
|
|
637
|
+
cookie?: never;
|
|
638
|
+
};
|
|
639
|
+
requestBody: {
|
|
640
|
+
content: {
|
|
641
|
+
/**
|
|
642
|
+
* @example {
|
|
643
|
+
* "params": {
|
|
644
|
+
* "heightBottom": 5,
|
|
645
|
+
* "heightTop": 16,
|
|
646
|
+
* "widthBack": 25,
|
|
647
|
+
* "widthFront": 10,
|
|
648
|
+
* "length": 16,
|
|
649
|
+
* "backOffset": 6,
|
|
650
|
+
* "thickness": 0.4,
|
|
651
|
+
* "applyOrnaments": false,
|
|
652
|
+
* "filletRadius": 2,
|
|
653
|
+
* "phoneHeight": 16.8,
|
|
654
|
+
* "phoneWidth": 7.8,
|
|
655
|
+
* "phoneThickness": 0.7,
|
|
656
|
+
* "precision": 0.01,
|
|
657
|
+
* "rotation": 0,
|
|
658
|
+
* "scale": 1,
|
|
659
|
+
* "origin": [
|
|
660
|
+
* 0,
|
|
661
|
+
* 0,
|
|
662
|
+
* 0
|
|
663
|
+
* ],
|
|
664
|
+
* "direction": [
|
|
665
|
+
* 0,
|
|
666
|
+
* 1,
|
|
667
|
+
* 0
|
|
668
|
+
* ]
|
|
669
|
+
* },
|
|
670
|
+
* "outputs": {
|
|
671
|
+
* "formats": [
|
|
672
|
+
* "step",
|
|
673
|
+
* "gltf"
|
|
674
|
+
* ]
|
|
675
|
+
* }
|
|
676
|
+
* }
|
|
677
|
+
*/
|
|
678
|
+
"application/json": components["schemas"]["PhoneNestBody"];
|
|
679
|
+
};
|
|
680
|
+
};
|
|
681
|
+
responses: {
|
|
682
|
+
/** @description Task accepted */
|
|
683
|
+
202: {
|
|
684
|
+
headers: {
|
|
685
|
+
[name: string]: unknown;
|
|
686
|
+
};
|
|
687
|
+
content: {
|
|
688
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
689
|
+
};
|
|
690
|
+
};
|
|
691
|
+
/** @description Validation error */
|
|
692
|
+
400: {
|
|
693
|
+
headers: {
|
|
694
|
+
[name: string]: unknown;
|
|
695
|
+
};
|
|
696
|
+
content: {
|
|
697
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
698
|
+
};
|
|
699
|
+
};
|
|
700
|
+
/** @description Server error */
|
|
701
|
+
500: {
|
|
702
|
+
headers: {
|
|
703
|
+
[name: string]: unknown;
|
|
704
|
+
};
|
|
705
|
+
content: {
|
|
706
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
707
|
+
};
|
|
708
|
+
};
|
|
709
|
+
};
|
|
710
|
+
};
|
|
711
|
+
delete?: never;
|
|
712
|
+
options?: never;
|
|
713
|
+
head?: never;
|
|
714
|
+
patch?: never;
|
|
715
|
+
trace?: never;
|
|
716
|
+
};
|
|
717
|
+
"/api/v1/convert/step-to-gltf": {
|
|
718
|
+
parameters: {
|
|
719
|
+
query?: never;
|
|
720
|
+
header?: never;
|
|
721
|
+
path?: never;
|
|
722
|
+
cookie?: never;
|
|
723
|
+
};
|
|
724
|
+
get?: never;
|
|
725
|
+
put?: never;
|
|
726
|
+
/**
|
|
727
|
+
* Convert - STEP to glTF (.glb)
|
|
728
|
+
* @description Simple STEP → glTF conversion using a previously uploaded file. Requires the 'convert' API key scope. Returns 202 with a task ID.
|
|
729
|
+
*/
|
|
730
|
+
post: {
|
|
731
|
+
parameters: {
|
|
732
|
+
query?: never;
|
|
733
|
+
header?: never;
|
|
734
|
+
path?: never;
|
|
735
|
+
cookie?: never;
|
|
736
|
+
};
|
|
737
|
+
requestBody: {
|
|
738
|
+
content: {
|
|
739
|
+
"application/json": components["schemas"]["StepToGltfBody"];
|
|
740
|
+
};
|
|
741
|
+
};
|
|
742
|
+
responses: {
|
|
743
|
+
/** @description Task accepted */
|
|
744
|
+
202: {
|
|
745
|
+
headers: {
|
|
746
|
+
[name: string]: unknown;
|
|
747
|
+
};
|
|
748
|
+
content: {
|
|
749
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
750
|
+
};
|
|
751
|
+
};
|
|
752
|
+
/** @description Validation error */
|
|
753
|
+
400: {
|
|
754
|
+
headers: {
|
|
755
|
+
[name: string]: unknown;
|
|
756
|
+
};
|
|
757
|
+
content: {
|
|
758
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
759
|
+
};
|
|
760
|
+
};
|
|
761
|
+
/** @description Insufficient scope */
|
|
762
|
+
403: {
|
|
763
|
+
headers: {
|
|
764
|
+
[name: string]: unknown;
|
|
765
|
+
};
|
|
766
|
+
content: {
|
|
767
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
/** @description Server error */
|
|
771
|
+
500: {
|
|
772
|
+
headers: {
|
|
773
|
+
[name: string]: unknown;
|
|
774
|
+
};
|
|
775
|
+
content: {
|
|
776
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
};
|
|
780
|
+
};
|
|
781
|
+
delete?: never;
|
|
782
|
+
options?: never;
|
|
783
|
+
head?: never;
|
|
784
|
+
patch?: never;
|
|
785
|
+
trace?: never;
|
|
786
|
+
};
|
|
787
|
+
"/api/v1/convert/step-to-gltf-advanced": {
|
|
788
|
+
parameters: {
|
|
789
|
+
query?: never;
|
|
790
|
+
header?: never;
|
|
791
|
+
path?: never;
|
|
792
|
+
cookie?: never;
|
|
793
|
+
};
|
|
794
|
+
get?: never;
|
|
795
|
+
put?: never;
|
|
796
|
+
/**
|
|
797
|
+
* Convert - STEP to glTF (.glb), advanced options
|
|
798
|
+
* @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.
|
|
799
|
+
*/
|
|
800
|
+
post: {
|
|
801
|
+
parameters: {
|
|
802
|
+
query?: never;
|
|
803
|
+
header?: never;
|
|
804
|
+
path?: never;
|
|
805
|
+
cookie?: never;
|
|
806
|
+
};
|
|
807
|
+
requestBody: {
|
|
808
|
+
content: {
|
|
809
|
+
"application/json": components["schemas"]["StepToGltfAdvancedBody"];
|
|
810
|
+
};
|
|
811
|
+
};
|
|
812
|
+
responses: {
|
|
813
|
+
/** @description Task accepted */
|
|
814
|
+
202: {
|
|
815
|
+
headers: {
|
|
816
|
+
[name: string]: unknown;
|
|
817
|
+
};
|
|
818
|
+
content: {
|
|
819
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
820
|
+
};
|
|
821
|
+
};
|
|
822
|
+
/** @description Validation error */
|
|
823
|
+
400: {
|
|
824
|
+
headers: {
|
|
825
|
+
[name: string]: unknown;
|
|
826
|
+
};
|
|
827
|
+
content: {
|
|
828
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
829
|
+
};
|
|
830
|
+
};
|
|
831
|
+
/** @description Insufficient scope */
|
|
832
|
+
403: {
|
|
833
|
+
headers: {
|
|
834
|
+
[name: string]: unknown;
|
|
835
|
+
};
|
|
836
|
+
content: {
|
|
837
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
838
|
+
};
|
|
839
|
+
};
|
|
840
|
+
/** @description Server error */
|
|
841
|
+
500: {
|
|
842
|
+
headers: {
|
|
843
|
+
[name: string]: unknown;
|
|
844
|
+
};
|
|
845
|
+
content: {
|
|
846
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
847
|
+
};
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
};
|
|
851
|
+
delete?: never;
|
|
852
|
+
options?: never;
|
|
853
|
+
head?: never;
|
|
854
|
+
patch?: never;
|
|
855
|
+
trace?: never;
|
|
856
|
+
};
|
|
857
|
+
"/api/v1/convert/step-to-gltf-with-draco": {
|
|
858
|
+
parameters: {
|
|
859
|
+
query?: never;
|
|
860
|
+
header?: never;
|
|
861
|
+
path?: never;
|
|
862
|
+
cookie?: never;
|
|
863
|
+
};
|
|
864
|
+
get?: never;
|
|
865
|
+
put?: never;
|
|
866
|
+
/**
|
|
867
|
+
* Convert - STEP to Draco-compressed glTF (.glb)
|
|
868
|
+
* @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.
|
|
869
|
+
*/
|
|
870
|
+
post: {
|
|
871
|
+
parameters: {
|
|
872
|
+
query?: never;
|
|
873
|
+
header?: never;
|
|
874
|
+
path?: never;
|
|
875
|
+
cookie?: never;
|
|
876
|
+
};
|
|
877
|
+
requestBody: {
|
|
878
|
+
content: {
|
|
879
|
+
"application/json": components["schemas"]["StepToGltfWithDracoBody"];
|
|
880
|
+
};
|
|
881
|
+
};
|
|
882
|
+
responses: {
|
|
883
|
+
/** @description Task accepted */
|
|
884
|
+
202: {
|
|
885
|
+
headers: {
|
|
886
|
+
[name: string]: unknown;
|
|
887
|
+
};
|
|
888
|
+
content: {
|
|
889
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
890
|
+
};
|
|
891
|
+
};
|
|
892
|
+
/** @description Validation error */
|
|
893
|
+
400: {
|
|
894
|
+
headers: {
|
|
895
|
+
[name: string]: unknown;
|
|
896
|
+
};
|
|
897
|
+
content: {
|
|
898
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
899
|
+
};
|
|
900
|
+
};
|
|
901
|
+
/** @description Insufficient scope */
|
|
902
|
+
403: {
|
|
903
|
+
headers: {
|
|
904
|
+
[name: string]: unknown;
|
|
905
|
+
};
|
|
906
|
+
content: {
|
|
907
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
908
|
+
};
|
|
909
|
+
};
|
|
910
|
+
/** @description Server error */
|
|
911
|
+
500: {
|
|
912
|
+
headers: {
|
|
913
|
+
[name: string]: unknown;
|
|
914
|
+
};
|
|
915
|
+
content: {
|
|
916
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
917
|
+
};
|
|
918
|
+
};
|
|
919
|
+
};
|
|
920
|
+
};
|
|
921
|
+
delete?: never;
|
|
922
|
+
options?: never;
|
|
923
|
+
head?: never;
|
|
924
|
+
patch?: never;
|
|
925
|
+
trace?: never;
|
|
926
|
+
};
|
|
927
|
+
"/api/v1/convert/step-to-gltf-advanced-with-draco": {
|
|
928
|
+
parameters: {
|
|
929
|
+
query?: never;
|
|
930
|
+
header?: never;
|
|
931
|
+
path?: never;
|
|
932
|
+
cookie?: never;
|
|
933
|
+
};
|
|
934
|
+
get?: never;
|
|
935
|
+
put?: never;
|
|
936
|
+
/**
|
|
937
|
+
* Convert - STEP to Draco-compressed glTF (.glb), advanced options
|
|
938
|
+
* @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.
|
|
939
|
+
*/
|
|
940
|
+
post: {
|
|
941
|
+
parameters: {
|
|
942
|
+
query?: never;
|
|
943
|
+
header?: never;
|
|
944
|
+
path?: never;
|
|
945
|
+
cookie?: never;
|
|
946
|
+
};
|
|
947
|
+
requestBody: {
|
|
948
|
+
content: {
|
|
949
|
+
"application/json": components["schemas"]["StepToGltfAdvancedWithDracoBody"];
|
|
950
|
+
};
|
|
951
|
+
};
|
|
952
|
+
responses: {
|
|
953
|
+
/** @description Task accepted */
|
|
954
|
+
202: {
|
|
955
|
+
headers: {
|
|
956
|
+
[name: string]: unknown;
|
|
957
|
+
};
|
|
958
|
+
content: {
|
|
959
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
960
|
+
};
|
|
961
|
+
};
|
|
962
|
+
/** @description Validation error */
|
|
963
|
+
400: {
|
|
964
|
+
headers: {
|
|
965
|
+
[name: string]: unknown;
|
|
966
|
+
};
|
|
967
|
+
content: {
|
|
968
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
969
|
+
};
|
|
970
|
+
};
|
|
971
|
+
/** @description Insufficient scope */
|
|
972
|
+
403: {
|
|
973
|
+
headers: {
|
|
974
|
+
[name: string]: unknown;
|
|
975
|
+
};
|
|
976
|
+
content: {
|
|
977
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
978
|
+
};
|
|
979
|
+
};
|
|
980
|
+
/** @description Server error */
|
|
981
|
+
500: {
|
|
982
|
+
headers: {
|
|
983
|
+
[name: string]: unknown;
|
|
984
|
+
};
|
|
985
|
+
content: {
|
|
986
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
987
|
+
};
|
|
988
|
+
};
|
|
989
|
+
};
|
|
990
|
+
};
|
|
991
|
+
delete?: never;
|
|
992
|
+
options?: never;
|
|
993
|
+
head?: never;
|
|
994
|
+
patch?: never;
|
|
995
|
+
trace?: never;
|
|
996
|
+
};
|
|
997
|
+
"/api/v1/cad/pro/unfold/face-to-flat": {
|
|
998
|
+
parameters: {
|
|
999
|
+
query?: never;
|
|
1000
|
+
header?: never;
|
|
1001
|
+
path?: never;
|
|
1002
|
+
cookie?: never;
|
|
1003
|
+
};
|
|
1004
|
+
get?: never;
|
|
1005
|
+
put?: never;
|
|
1006
|
+
/**
|
|
1007
|
+
* Sheet metal - unfold a face to flat geometry
|
|
1008
|
+
* @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.
|
|
1009
|
+
*/
|
|
1010
|
+
post: {
|
|
1011
|
+
parameters: {
|
|
1012
|
+
query?: never;
|
|
1013
|
+
header?: never;
|
|
1014
|
+
path?: never;
|
|
1015
|
+
cookie?: never;
|
|
1016
|
+
};
|
|
1017
|
+
requestBody: {
|
|
1018
|
+
content: {
|
|
1019
|
+
"application/json": components["schemas"]["UnfoldFaceToFlatBody"];
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
1022
|
+
responses: {
|
|
1023
|
+
/** @description Task accepted */
|
|
1024
|
+
202: {
|
|
1025
|
+
headers: {
|
|
1026
|
+
[name: string]: unknown;
|
|
1027
|
+
};
|
|
1028
|
+
content: {
|
|
1029
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
1030
|
+
};
|
|
1031
|
+
};
|
|
1032
|
+
/** @description Validation error */
|
|
1033
|
+
400: {
|
|
1034
|
+
headers: {
|
|
1035
|
+
[name: string]: unknown;
|
|
1036
|
+
};
|
|
1037
|
+
content: {
|
|
1038
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1039
|
+
};
|
|
1040
|
+
};
|
|
1041
|
+
/** @description Insufficient scope */
|
|
1042
|
+
403: {
|
|
1043
|
+
headers: {
|
|
1044
|
+
[name: string]: unknown;
|
|
1045
|
+
};
|
|
1046
|
+
content: {
|
|
1047
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1048
|
+
};
|
|
1049
|
+
};
|
|
1050
|
+
/** @description Server error */
|
|
1051
|
+
500: {
|
|
1052
|
+
headers: {
|
|
1053
|
+
[name: string]: unknown;
|
|
1054
|
+
};
|
|
1055
|
+
content: {
|
|
1056
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1057
|
+
};
|
|
1058
|
+
};
|
|
1059
|
+
};
|
|
1060
|
+
};
|
|
1061
|
+
delete?: never;
|
|
1062
|
+
options?: never;
|
|
1063
|
+
head?: never;
|
|
1064
|
+
patch?: never;
|
|
1065
|
+
trace?: never;
|
|
1066
|
+
};
|
|
1067
|
+
"/api/v1/cad/pro/unfold/face-report": {
|
|
1068
|
+
parameters: {
|
|
1069
|
+
query?: never;
|
|
1070
|
+
header?: never;
|
|
1071
|
+
path?: never;
|
|
1072
|
+
cookie?: never;
|
|
1073
|
+
};
|
|
1074
|
+
get?: never;
|
|
1075
|
+
put?: never;
|
|
1076
|
+
/**
|
|
1077
|
+
* Sheet metal - unfold a face, metrics report
|
|
1078
|
+
* @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.
|
|
1079
|
+
*/
|
|
1080
|
+
post: {
|
|
1081
|
+
parameters: {
|
|
1082
|
+
query?: never;
|
|
1083
|
+
header?: never;
|
|
1084
|
+
path?: never;
|
|
1085
|
+
cookie?: never;
|
|
1086
|
+
};
|
|
1087
|
+
requestBody: {
|
|
1088
|
+
content: {
|
|
1089
|
+
"application/json": components["schemas"]["UnfoldFaceReportBody"];
|
|
1090
|
+
};
|
|
1091
|
+
};
|
|
1092
|
+
responses: {
|
|
1093
|
+
/** @description Task accepted */
|
|
1094
|
+
202: {
|
|
1095
|
+
headers: {
|
|
1096
|
+
[name: string]: unknown;
|
|
1097
|
+
};
|
|
1098
|
+
content: {
|
|
1099
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
1100
|
+
};
|
|
1101
|
+
};
|
|
1102
|
+
/** @description Validation error */
|
|
1103
|
+
400: {
|
|
1104
|
+
headers: {
|
|
1105
|
+
[name: string]: unknown;
|
|
1106
|
+
};
|
|
1107
|
+
content: {
|
|
1108
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1109
|
+
};
|
|
1110
|
+
};
|
|
1111
|
+
/** @description Insufficient scope */
|
|
1112
|
+
403: {
|
|
1113
|
+
headers: {
|
|
1114
|
+
[name: string]: unknown;
|
|
1115
|
+
};
|
|
1116
|
+
content: {
|
|
1117
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1118
|
+
};
|
|
1119
|
+
};
|
|
1120
|
+
/** @description Server error */
|
|
1121
|
+
500: {
|
|
1122
|
+
headers: {
|
|
1123
|
+
[name: string]: unknown;
|
|
1124
|
+
};
|
|
1125
|
+
content: {
|
|
1126
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1127
|
+
};
|
|
1128
|
+
};
|
|
1129
|
+
};
|
|
1130
|
+
};
|
|
1131
|
+
delete?: never;
|
|
1132
|
+
options?: never;
|
|
1133
|
+
head?: never;
|
|
1134
|
+
patch?: never;
|
|
1135
|
+
trace?: never;
|
|
1136
|
+
};
|
|
1137
|
+
"/api/v1/cad/pro/unfold/solid-to-flat": {
|
|
1138
|
+
parameters: {
|
|
1139
|
+
query?: never;
|
|
1140
|
+
header?: never;
|
|
1141
|
+
path?: never;
|
|
1142
|
+
cookie?: never;
|
|
1143
|
+
};
|
|
1144
|
+
get?: never;
|
|
1145
|
+
put?: never;
|
|
1146
|
+
/**
|
|
1147
|
+
* Sheet metal - unfold all solids to flat geometry
|
|
1148
|
+
* @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.
|
|
1149
|
+
*/
|
|
1150
|
+
post: {
|
|
1151
|
+
parameters: {
|
|
1152
|
+
query?: never;
|
|
1153
|
+
header?: never;
|
|
1154
|
+
path?: never;
|
|
1155
|
+
cookie?: never;
|
|
1156
|
+
};
|
|
1157
|
+
requestBody: {
|
|
1158
|
+
content: {
|
|
1159
|
+
"application/json": components["schemas"]["UnfoldSolidToFlatBody"];
|
|
1160
|
+
};
|
|
1161
|
+
};
|
|
1162
|
+
responses: {
|
|
1163
|
+
/** @description Task accepted */
|
|
1164
|
+
202: {
|
|
1165
|
+
headers: {
|
|
1166
|
+
[name: string]: unknown;
|
|
1167
|
+
};
|
|
1168
|
+
content: {
|
|
1169
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
1170
|
+
};
|
|
1171
|
+
};
|
|
1172
|
+
/** @description Validation error */
|
|
1173
|
+
400: {
|
|
1174
|
+
headers: {
|
|
1175
|
+
[name: string]: unknown;
|
|
1176
|
+
};
|
|
1177
|
+
content: {
|
|
1178
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1179
|
+
};
|
|
1180
|
+
};
|
|
1181
|
+
/** @description Insufficient scope */
|
|
1182
|
+
403: {
|
|
1183
|
+
headers: {
|
|
1184
|
+
[name: string]: unknown;
|
|
1185
|
+
};
|
|
1186
|
+
content: {
|
|
1187
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1188
|
+
};
|
|
1189
|
+
};
|
|
1190
|
+
/** @description Server error */
|
|
1191
|
+
500: {
|
|
1192
|
+
headers: {
|
|
1193
|
+
[name: string]: unknown;
|
|
1194
|
+
};
|
|
1195
|
+
content: {
|
|
1196
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1197
|
+
};
|
|
1198
|
+
};
|
|
1199
|
+
};
|
|
1200
|
+
};
|
|
1201
|
+
delete?: never;
|
|
1202
|
+
options?: never;
|
|
1203
|
+
head?: never;
|
|
1204
|
+
patch?: never;
|
|
1205
|
+
trace?: never;
|
|
1206
|
+
};
|
|
1207
|
+
"/api/v1/cad/pro/unfold/solid-report": {
|
|
1208
|
+
parameters: {
|
|
1209
|
+
query?: never;
|
|
1210
|
+
header?: never;
|
|
1211
|
+
path?: never;
|
|
1212
|
+
cookie?: never;
|
|
1213
|
+
};
|
|
1214
|
+
get?: never;
|
|
1215
|
+
put?: never;
|
|
1216
|
+
/**
|
|
1217
|
+
* Sheet metal - unfold all solids, metrics report
|
|
1218
|
+
* @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.
|
|
1219
|
+
*/
|
|
1220
|
+
post: {
|
|
1221
|
+
parameters: {
|
|
1222
|
+
query?: never;
|
|
1223
|
+
header?: never;
|
|
1224
|
+
path?: never;
|
|
1225
|
+
cookie?: never;
|
|
1226
|
+
};
|
|
1227
|
+
requestBody: {
|
|
1228
|
+
content: {
|
|
1229
|
+
"application/json": components["schemas"]["UnfoldSolidReportBody"];
|
|
1230
|
+
};
|
|
1231
|
+
};
|
|
1232
|
+
responses: {
|
|
1233
|
+
/** @description Task accepted */
|
|
1234
|
+
202: {
|
|
1235
|
+
headers: {
|
|
1236
|
+
[name: string]: unknown;
|
|
1237
|
+
};
|
|
1238
|
+
content: {
|
|
1239
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
1240
|
+
};
|
|
1241
|
+
};
|
|
1242
|
+
/** @description Validation error */
|
|
1243
|
+
400: {
|
|
1244
|
+
headers: {
|
|
1245
|
+
[name: string]: unknown;
|
|
1246
|
+
};
|
|
1247
|
+
content: {
|
|
1248
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1249
|
+
};
|
|
1250
|
+
};
|
|
1251
|
+
/** @description Insufficient scope */
|
|
1252
|
+
403: {
|
|
1253
|
+
headers: {
|
|
1254
|
+
[name: string]: unknown;
|
|
1255
|
+
};
|
|
1256
|
+
content: {
|
|
1257
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1258
|
+
};
|
|
1259
|
+
};
|
|
1260
|
+
/** @description Server error */
|
|
1261
|
+
500: {
|
|
1262
|
+
headers: {
|
|
1263
|
+
[name: string]: unknown;
|
|
1264
|
+
};
|
|
1265
|
+
content: {
|
|
1266
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1267
|
+
};
|
|
1268
|
+
};
|
|
1269
|
+
};
|
|
1270
|
+
};
|
|
1271
|
+
delete?: never;
|
|
1272
|
+
options?: never;
|
|
1273
|
+
head?: never;
|
|
1274
|
+
patch?: never;
|
|
1275
|
+
trace?: never;
|
|
1276
|
+
};
|
|
1277
|
+
"/api/v1/cad/pro/unfold/solid": {
|
|
1278
|
+
parameters: {
|
|
1279
|
+
query?: never;
|
|
1280
|
+
header?: never;
|
|
1281
|
+
path?: never;
|
|
1282
|
+
cookie?: never;
|
|
1283
|
+
};
|
|
1284
|
+
get?: never;
|
|
1285
|
+
put?: never;
|
|
1286
|
+
/**
|
|
1287
|
+
* Sheet metal - unfold all solids, geometry + report
|
|
1288
|
+
* @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.
|
|
1289
|
+
*/
|
|
1290
|
+
post: {
|
|
1291
|
+
parameters: {
|
|
1292
|
+
query?: never;
|
|
1293
|
+
header?: never;
|
|
1294
|
+
path?: never;
|
|
1295
|
+
cookie?: never;
|
|
1296
|
+
};
|
|
1297
|
+
requestBody: {
|
|
1298
|
+
content: {
|
|
1299
|
+
"application/json": components["schemas"]["UnfoldSolidBody"];
|
|
1300
|
+
};
|
|
1301
|
+
};
|
|
1302
|
+
responses: {
|
|
1303
|
+
/** @description Task accepted */
|
|
1304
|
+
202: {
|
|
1305
|
+
headers: {
|
|
1306
|
+
[name: string]: unknown;
|
|
1307
|
+
};
|
|
1308
|
+
content: {
|
|
1309
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
1310
|
+
};
|
|
1311
|
+
};
|
|
1312
|
+
/** @description Validation error */
|
|
1313
|
+
400: {
|
|
1314
|
+
headers: {
|
|
1315
|
+
[name: string]: unknown;
|
|
1316
|
+
};
|
|
1317
|
+
content: {
|
|
1318
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1319
|
+
};
|
|
1320
|
+
};
|
|
1321
|
+
/** @description Insufficient scope */
|
|
1322
|
+
403: {
|
|
1323
|
+
headers: {
|
|
1324
|
+
[name: string]: unknown;
|
|
1325
|
+
};
|
|
1326
|
+
content: {
|
|
1327
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1328
|
+
};
|
|
1329
|
+
};
|
|
1330
|
+
/** @description Server error */
|
|
1331
|
+
500: {
|
|
1332
|
+
headers: {
|
|
1333
|
+
[name: string]: unknown;
|
|
1334
|
+
};
|
|
1335
|
+
content: {
|
|
1336
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1337
|
+
};
|
|
1338
|
+
};
|
|
1339
|
+
};
|
|
1340
|
+
};
|
|
1341
|
+
delete?: never;
|
|
1342
|
+
options?: never;
|
|
1343
|
+
head?: never;
|
|
1344
|
+
patch?: never;
|
|
1345
|
+
trace?: never;
|
|
1346
|
+
};
|
|
1347
|
+
"/api/v1/files/upload": {
|
|
1348
|
+
parameters: {
|
|
1349
|
+
query?: never;
|
|
1350
|
+
header?: never;
|
|
1351
|
+
path?: never;
|
|
1352
|
+
cookie?: never;
|
|
1353
|
+
};
|
|
1354
|
+
get?: never;
|
|
1355
|
+
put?: never;
|
|
1356
|
+
/**
|
|
1357
|
+
* Files - request an upload URL
|
|
1358
|
+
* @description Returns a pre-signed URL for uploading a file via PUT.
|
|
1359
|
+
*/
|
|
1360
|
+
post: {
|
|
1361
|
+
parameters: {
|
|
1362
|
+
query?: never;
|
|
1363
|
+
header?: never;
|
|
1364
|
+
path?: never;
|
|
1365
|
+
cookie?: never;
|
|
1366
|
+
};
|
|
1367
|
+
requestBody: {
|
|
1368
|
+
content: {
|
|
1369
|
+
"application/json": components["schemas"]["FileUploadBody"];
|
|
1370
|
+
};
|
|
1371
|
+
};
|
|
1372
|
+
responses: {
|
|
1373
|
+
/** @description Upload URL and file ID */
|
|
1374
|
+
201: {
|
|
1375
|
+
headers: {
|
|
1376
|
+
[name: string]: unknown;
|
|
1377
|
+
};
|
|
1378
|
+
content: {
|
|
1379
|
+
"application/json": components["schemas"]["UploadResponse"];
|
|
1380
|
+
};
|
|
1381
|
+
};
|
|
1382
|
+
/** @description Validation error */
|
|
1383
|
+
400: {
|
|
1384
|
+
headers: {
|
|
1385
|
+
[name: string]: unknown;
|
|
1386
|
+
};
|
|
1387
|
+
content: {
|
|
1388
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1389
|
+
};
|
|
1390
|
+
};
|
|
1391
|
+
/** @description Server error */
|
|
1392
|
+
500: {
|
|
1393
|
+
headers: {
|
|
1394
|
+
[name: string]: unknown;
|
|
1395
|
+
};
|
|
1396
|
+
content: {
|
|
1397
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1398
|
+
};
|
|
1399
|
+
};
|
|
1400
|
+
};
|
|
1401
|
+
};
|
|
1402
|
+
delete?: never;
|
|
1403
|
+
options?: never;
|
|
1404
|
+
head?: never;
|
|
1405
|
+
patch?: never;
|
|
1406
|
+
trace?: never;
|
|
1407
|
+
};
|
|
1408
|
+
"/api/v1/files": {
|
|
1409
|
+
parameters: {
|
|
1410
|
+
query?: never;
|
|
1411
|
+
header?: never;
|
|
1412
|
+
path?: never;
|
|
1413
|
+
cookie?: never;
|
|
1414
|
+
};
|
|
1415
|
+
/**
|
|
1416
|
+
* Files - list uploaded files
|
|
1417
|
+
* @description Returns a paginated list of the files uploaded under your API key, newest first, with each file's id, original name, size, upload status and expiry. Use it to find the file id to pass to a conversion endpoint, and to check that an upload through a pre-signed URL actually completed before you reference it.
|
|
1418
|
+
*/
|
|
1419
|
+
get: {
|
|
1420
|
+
parameters: {
|
|
1421
|
+
query?: {
|
|
1422
|
+
/** @description 1-based page number. Defaults to the first page. */
|
|
1423
|
+
page?: number;
|
|
1424
|
+
/** @description How many files to return per page. */
|
|
1425
|
+
limit?: number;
|
|
1426
|
+
/** @description Return only files in this upload state: pending (a pre-signed URL was issued but the upload has not been confirmed), confirmed (the blob is stored and usable), or expired. */
|
|
1427
|
+
status?: "pending" | "confirmed" | "expired";
|
|
1428
|
+
};
|
|
1429
|
+
header?: never;
|
|
1430
|
+
path?: never;
|
|
1431
|
+
cookie?: never;
|
|
1432
|
+
};
|
|
1433
|
+
requestBody?: never;
|
|
1434
|
+
responses: {
|
|
1435
|
+
/** @description File list */
|
|
1436
|
+
200: {
|
|
1437
|
+
headers: {
|
|
1438
|
+
[name: string]: unknown;
|
|
1439
|
+
};
|
|
1440
|
+
content: {
|
|
1441
|
+
"application/json": components["schemas"]["FileListResponse"];
|
|
1442
|
+
};
|
|
1443
|
+
};
|
|
1444
|
+
};
|
|
1445
|
+
};
|
|
1446
|
+
put?: never;
|
|
1447
|
+
post?: never;
|
|
1448
|
+
delete?: never;
|
|
1449
|
+
options?: never;
|
|
1450
|
+
head?: never;
|
|
1451
|
+
patch?: never;
|
|
1452
|
+
trace?: never;
|
|
1453
|
+
};
|
|
1454
|
+
"/api/v1/files/{fileId}": {
|
|
1455
|
+
parameters: {
|
|
1456
|
+
query?: never;
|
|
1457
|
+
header?: never;
|
|
1458
|
+
path?: never;
|
|
1459
|
+
cookie?: never;
|
|
1460
|
+
};
|
|
1461
|
+
/**
|
|
1462
|
+
* Files - get file details
|
|
1463
|
+
* @description Returns metadata and download URL for a single file.
|
|
1464
|
+
*/
|
|
1465
|
+
get: {
|
|
1466
|
+
parameters: {
|
|
1467
|
+
query?: never;
|
|
1468
|
+
header?: never;
|
|
1469
|
+
path: {
|
|
1470
|
+
/** @description File ID */
|
|
1471
|
+
fileId: string;
|
|
1472
|
+
};
|
|
1473
|
+
cookie?: never;
|
|
1474
|
+
};
|
|
1475
|
+
requestBody?: never;
|
|
1476
|
+
responses: {
|
|
1477
|
+
/** @description File details */
|
|
1478
|
+
200: {
|
|
1479
|
+
headers: {
|
|
1480
|
+
[name: string]: unknown;
|
|
1481
|
+
};
|
|
1482
|
+
content: {
|
|
1483
|
+
"application/json": components["schemas"]["FileDetailResponse"];
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
/** @description Not found */
|
|
1487
|
+
404: {
|
|
1488
|
+
headers: {
|
|
1489
|
+
[name: string]: unknown;
|
|
1490
|
+
};
|
|
1491
|
+
content: {
|
|
1492
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1493
|
+
};
|
|
1494
|
+
};
|
|
1495
|
+
};
|
|
1496
|
+
};
|
|
1497
|
+
put?: never;
|
|
1498
|
+
post?: never;
|
|
1499
|
+
/**
|
|
1500
|
+
* Files - delete a file
|
|
1501
|
+
* @description Permanently deletes an uploaded file and the stored blob behind it. This cannot be undone, and any task result that still points at the blob stops resolving. Files also expire on their own, so call this only when you need the storage released sooner than that.
|
|
1502
|
+
*/
|
|
1503
|
+
delete: {
|
|
1504
|
+
parameters: {
|
|
1505
|
+
query?: never;
|
|
1506
|
+
header?: never;
|
|
1507
|
+
path: {
|
|
1508
|
+
/** @description File ID */
|
|
1509
|
+
fileId: string;
|
|
1510
|
+
};
|
|
1511
|
+
cookie?: never;
|
|
1512
|
+
};
|
|
1513
|
+
requestBody?: never;
|
|
1514
|
+
responses: {
|
|
1515
|
+
/** @description File deleted */
|
|
1516
|
+
200: {
|
|
1517
|
+
headers: {
|
|
1518
|
+
[name: string]: unknown;
|
|
1519
|
+
};
|
|
1520
|
+
content: {
|
|
1521
|
+
"application/json": components["schemas"]["DeleteFileResponse"];
|
|
1522
|
+
};
|
|
1523
|
+
};
|
|
1524
|
+
/** @description Not found */
|
|
1525
|
+
404: {
|
|
1526
|
+
headers: {
|
|
1527
|
+
[name: string]: unknown;
|
|
1528
|
+
};
|
|
1529
|
+
content: {
|
|
1530
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1531
|
+
};
|
|
1532
|
+
};
|
|
1533
|
+
};
|
|
1534
|
+
};
|
|
1535
|
+
options?: never;
|
|
1536
|
+
head?: never;
|
|
1537
|
+
patch?: never;
|
|
1538
|
+
trace?: never;
|
|
1539
|
+
};
|
|
1540
|
+
"/api/v1/files/{fileId}/confirm": {
|
|
1541
|
+
parameters: {
|
|
1542
|
+
query?: never;
|
|
1543
|
+
header?: never;
|
|
1544
|
+
path?: never;
|
|
1545
|
+
cookie?: never;
|
|
1546
|
+
};
|
|
1547
|
+
get?: never;
|
|
1548
|
+
put?: never;
|
|
1549
|
+
/**
|
|
1550
|
+
* Files - confirm upload
|
|
1551
|
+
* @description Confirms that the file was successfully uploaded to the pre-signed URL.
|
|
1552
|
+
*/
|
|
1553
|
+
post: {
|
|
1554
|
+
parameters: {
|
|
1555
|
+
query?: never;
|
|
1556
|
+
header?: never;
|
|
1557
|
+
path: {
|
|
1558
|
+
/** @description File ID */
|
|
1559
|
+
fileId: string;
|
|
1560
|
+
};
|
|
1561
|
+
cookie?: never;
|
|
1562
|
+
};
|
|
1563
|
+
requestBody?: never;
|
|
1564
|
+
responses: {
|
|
1565
|
+
/** @description File confirmed */
|
|
1566
|
+
200: {
|
|
1567
|
+
headers: {
|
|
1568
|
+
[name: string]: unknown;
|
|
1569
|
+
};
|
|
1570
|
+
content: {
|
|
1571
|
+
"application/json": components["schemas"]["ConfirmResponse"];
|
|
1572
|
+
};
|
|
1573
|
+
};
|
|
1574
|
+
/** @description Not found */
|
|
1575
|
+
404: {
|
|
1576
|
+
headers: {
|
|
1577
|
+
[name: string]: unknown;
|
|
1578
|
+
};
|
|
1579
|
+
content: {
|
|
1580
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1581
|
+
};
|
|
1582
|
+
};
|
|
1583
|
+
};
|
|
1584
|
+
};
|
|
1585
|
+
delete?: never;
|
|
1586
|
+
options?: never;
|
|
1587
|
+
head?: never;
|
|
1588
|
+
patch?: never;
|
|
1589
|
+
trace?: never;
|
|
1590
|
+
};
|
|
1591
|
+
"/api/v1/tasks": {
|
|
1592
|
+
parameters: {
|
|
1593
|
+
query?: never;
|
|
1594
|
+
header?: never;
|
|
1595
|
+
path?: never;
|
|
1596
|
+
cookie?: never;
|
|
1597
|
+
};
|
|
1598
|
+
/**
|
|
1599
|
+
* Tasks - list tasks
|
|
1600
|
+
* @description Returns a paginated list of your tasks, newest first, each with its id, kind, status, creation time and result link when finished. Filter by status to poll only what is still running, or by kind to separate model generation, STEP conversion, pipelines and compound runs. This is the endpoint to build a job dashboard on rather than polling every task id individually.
|
|
1601
|
+
*/
|
|
1602
|
+
get: {
|
|
1603
|
+
parameters: {
|
|
1604
|
+
query?: {
|
|
1605
|
+
/** @description 1-based page number. Defaults to the first page. */
|
|
1606
|
+
page?: number;
|
|
1607
|
+
/** @description How many tasks to return per page. */
|
|
1608
|
+
limit?: number;
|
|
1609
|
+
/** @description Return only tasks in this state. waiting and queued are not started yet, processing is running, completed has a downloadable result, failed carries an error, cancelled was stopped by you, and expired means the result has been cleaned up. */
|
|
1610
|
+
status?: "waiting" | "queued" | "processing" | "completed" | "failed" | "cancelled" | "expired";
|
|
1611
|
+
/** @description Return only tasks of this kind: cad for a single operation, model for a registered parametric model, convert-simple and convert-advanced for STEP conversions, pipeline for a chained run, compound for a parallel run. */
|
|
1612
|
+
kind?: "cad" | "model" | "convert-simple" | "convert-advanced" | "pipeline" | "compound";
|
|
1613
|
+
};
|
|
1614
|
+
header?: never;
|
|
1615
|
+
path?: never;
|
|
1616
|
+
cookie?: never;
|
|
1617
|
+
};
|
|
1618
|
+
requestBody?: never;
|
|
1619
|
+
responses: {
|
|
1620
|
+
/** @description Task list */
|
|
1621
|
+
200: {
|
|
1622
|
+
headers: {
|
|
1623
|
+
[name: string]: unknown;
|
|
1624
|
+
};
|
|
1625
|
+
content: {
|
|
1626
|
+
"application/json": components["schemas"]["TaskListResponse"];
|
|
1627
|
+
};
|
|
1628
|
+
};
|
|
1629
|
+
};
|
|
1630
|
+
};
|
|
1631
|
+
put?: never;
|
|
1632
|
+
post?: never;
|
|
1633
|
+
delete?: never;
|
|
1634
|
+
options?: never;
|
|
1635
|
+
head?: never;
|
|
1636
|
+
patch?: never;
|
|
1637
|
+
trace?: never;
|
|
1638
|
+
};
|
|
1639
|
+
"/api/v1/tasks/{taskId}": {
|
|
1640
|
+
parameters: {
|
|
1641
|
+
query?: never;
|
|
1642
|
+
header?: never;
|
|
1643
|
+
path?: never;
|
|
1644
|
+
cookie?: never;
|
|
1645
|
+
};
|
|
1646
|
+
/**
|
|
1647
|
+
* Tasks - get task status
|
|
1648
|
+
* @description Returns the current status and metadata of a task.
|
|
1649
|
+
*/
|
|
1650
|
+
get: {
|
|
1651
|
+
parameters: {
|
|
1652
|
+
query?: never;
|
|
1653
|
+
header?: never;
|
|
1654
|
+
path: {
|
|
1655
|
+
/** @description Task ID */
|
|
1656
|
+
taskId: string;
|
|
1657
|
+
};
|
|
1658
|
+
cookie?: never;
|
|
1659
|
+
};
|
|
1660
|
+
requestBody?: never;
|
|
1661
|
+
responses: {
|
|
1662
|
+
/** @description Task status */
|
|
1663
|
+
200: {
|
|
1664
|
+
headers: {
|
|
1665
|
+
[name: string]: unknown;
|
|
1666
|
+
};
|
|
1667
|
+
content: {
|
|
1668
|
+
"application/json": components["schemas"]["TaskDetailResponse"];
|
|
1669
|
+
};
|
|
1670
|
+
};
|
|
1671
|
+
/** @description Not found */
|
|
1672
|
+
404: {
|
|
1673
|
+
headers: {
|
|
1674
|
+
[name: string]: unknown;
|
|
1675
|
+
};
|
|
1676
|
+
content: {
|
|
1677
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1678
|
+
};
|
|
1679
|
+
};
|
|
1680
|
+
};
|
|
1681
|
+
};
|
|
1682
|
+
put?: never;
|
|
1683
|
+
post?: never;
|
|
1684
|
+
/**
|
|
1685
|
+
* Tasks - cancel a task
|
|
1686
|
+
* @description Cancels a waiting or queued task. Has no effect on completed/failed tasks.
|
|
1687
|
+
*/
|
|
1688
|
+
delete: {
|
|
1689
|
+
parameters: {
|
|
1690
|
+
query?: never;
|
|
1691
|
+
header?: never;
|
|
1692
|
+
path: {
|
|
1693
|
+
/** @description Task ID */
|
|
1694
|
+
taskId: string;
|
|
1695
|
+
};
|
|
1696
|
+
cookie?: never;
|
|
1697
|
+
};
|
|
1698
|
+
requestBody?: never;
|
|
1699
|
+
responses: {
|
|
1700
|
+
/** @description Task cancelled */
|
|
1701
|
+
200: {
|
|
1702
|
+
headers: {
|
|
1703
|
+
[name: string]: unknown;
|
|
1704
|
+
};
|
|
1705
|
+
content: {
|
|
1706
|
+
"application/json": components["schemas"]["CancelTaskResponse"];
|
|
1707
|
+
};
|
|
1708
|
+
};
|
|
1709
|
+
/** @description Not found */
|
|
1710
|
+
404: {
|
|
1711
|
+
headers: {
|
|
1712
|
+
[name: string]: unknown;
|
|
1713
|
+
};
|
|
1714
|
+
content: {
|
|
1715
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1716
|
+
};
|
|
1717
|
+
};
|
|
1718
|
+
};
|
|
1719
|
+
};
|
|
1720
|
+
options?: never;
|
|
1721
|
+
head?: never;
|
|
1722
|
+
patch?: never;
|
|
1723
|
+
trace?: never;
|
|
1724
|
+
};
|
|
1725
|
+
"/api/v1/tasks/{taskId}/result": {
|
|
1726
|
+
parameters: {
|
|
1727
|
+
query?: never;
|
|
1728
|
+
header?: never;
|
|
1729
|
+
path?: never;
|
|
1730
|
+
cookie?: never;
|
|
1731
|
+
};
|
|
1732
|
+
/**
|
|
1733
|
+
* Tasks - get result (default format)
|
|
1734
|
+
* @description Returns a download URL for the task's primary result. For compound tasks, returns a manifest with per-sub-task download links.
|
|
1735
|
+
*/
|
|
1736
|
+
get: {
|
|
1737
|
+
parameters: {
|
|
1738
|
+
query?: never;
|
|
1739
|
+
header?: never;
|
|
1740
|
+
path: {
|
|
1741
|
+
/** @description Task ID */
|
|
1742
|
+
taskId: string;
|
|
1743
|
+
};
|
|
1744
|
+
cookie?: never;
|
|
1745
|
+
};
|
|
1746
|
+
requestBody?: never;
|
|
1747
|
+
responses: {
|
|
1748
|
+
/** @description Result download link (standard) or compound manifest */
|
|
1749
|
+
200: {
|
|
1750
|
+
headers: {
|
|
1751
|
+
[name: string]: unknown;
|
|
1752
|
+
};
|
|
1753
|
+
content: {
|
|
1754
|
+
"application/json": components["schemas"]["TaskOrCompoundResultResponse"];
|
|
1755
|
+
};
|
|
1756
|
+
};
|
|
1757
|
+
/** @description Not found */
|
|
1758
|
+
404: {
|
|
1759
|
+
headers: {
|
|
1760
|
+
[name: string]: unknown;
|
|
1761
|
+
};
|
|
1762
|
+
content: {
|
|
1763
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1764
|
+
};
|
|
1765
|
+
};
|
|
1766
|
+
/** @description Task is not yet completed */
|
|
1767
|
+
409: {
|
|
1768
|
+
headers: {
|
|
1769
|
+
[name: string]: unknown;
|
|
1770
|
+
};
|
|
1771
|
+
content: {
|
|
1772
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1773
|
+
};
|
|
1774
|
+
};
|
|
1775
|
+
};
|
|
1776
|
+
};
|
|
1777
|
+
put?: never;
|
|
1778
|
+
post?: never;
|
|
1779
|
+
delete?: never;
|
|
1780
|
+
options?: never;
|
|
1781
|
+
head?: never;
|
|
1782
|
+
patch?: never;
|
|
1783
|
+
trace?: never;
|
|
1784
|
+
};
|
|
1785
|
+
"/api/v1/tasks/{taskId}/result/{format}": {
|
|
1786
|
+
parameters: {
|
|
1787
|
+
query?: never;
|
|
1788
|
+
header?: never;
|
|
1789
|
+
path?: never;
|
|
1790
|
+
cookie?: never;
|
|
1791
|
+
};
|
|
1792
|
+
/**
|
|
1793
|
+
* Tasks - get result in a specific format
|
|
1794
|
+
* @description Returns a download URL for the requested output format (e.g. glb, step, stpz).
|
|
1795
|
+
*/
|
|
1796
|
+
get: {
|
|
1797
|
+
parameters: {
|
|
1798
|
+
query?: never;
|
|
1799
|
+
header?: never;
|
|
1800
|
+
path: {
|
|
1801
|
+
/** @description Task ID */
|
|
1802
|
+
taskId: string;
|
|
1803
|
+
/** @description Result format (e.g. glb, step, stpz, metadata, decomposed-mesh) */
|
|
1804
|
+
format: string;
|
|
1805
|
+
};
|
|
1806
|
+
cookie?: never;
|
|
1807
|
+
};
|
|
1808
|
+
requestBody?: never;
|
|
1809
|
+
responses: {
|
|
1810
|
+
/** @description Result download link */
|
|
1811
|
+
200: {
|
|
1812
|
+
headers: {
|
|
1813
|
+
[name: string]: unknown;
|
|
1814
|
+
};
|
|
1815
|
+
content: {
|
|
1816
|
+
"application/json": components["schemas"]["TaskResultResponse"];
|
|
1817
|
+
};
|
|
1818
|
+
};
|
|
1819
|
+
/** @description Not found */
|
|
1820
|
+
404: {
|
|
1821
|
+
headers: {
|
|
1822
|
+
[name: string]: unknown;
|
|
1823
|
+
};
|
|
1824
|
+
content: {
|
|
1825
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1826
|
+
};
|
|
1827
|
+
};
|
|
1828
|
+
/** @description Task is not yet completed */
|
|
1829
|
+
409: {
|
|
1830
|
+
headers: {
|
|
1831
|
+
[name: string]: unknown;
|
|
1832
|
+
};
|
|
1833
|
+
content: {
|
|
1834
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1835
|
+
};
|
|
1836
|
+
};
|
|
1837
|
+
};
|
|
1838
|
+
};
|
|
1839
|
+
put?: never;
|
|
1840
|
+
post?: never;
|
|
1841
|
+
delete?: never;
|
|
1842
|
+
options?: never;
|
|
1843
|
+
head?: never;
|
|
1844
|
+
patch?: never;
|
|
1845
|
+
trace?: never;
|
|
1846
|
+
};
|
|
1847
|
+
"/api/v1/tasks/{taskId}/results": {
|
|
1848
|
+
parameters: {
|
|
1849
|
+
query?: never;
|
|
1850
|
+
header?: never;
|
|
1851
|
+
path?: never;
|
|
1852
|
+
cookie?: never;
|
|
1853
|
+
};
|
|
1854
|
+
/**
|
|
1855
|
+
* Tasks - get all results
|
|
1856
|
+
* @description Returns download URLs for every available result format in a single call. Use this instead of making multiple requests to /result/{format}.
|
|
1857
|
+
*/
|
|
1858
|
+
get: {
|
|
1859
|
+
parameters: {
|
|
1860
|
+
query?: never;
|
|
1861
|
+
header?: never;
|
|
1862
|
+
path: {
|
|
1863
|
+
/** @description Task ID */
|
|
1864
|
+
taskId: string;
|
|
1865
|
+
};
|
|
1866
|
+
cookie?: never;
|
|
1867
|
+
};
|
|
1868
|
+
requestBody?: never;
|
|
1869
|
+
responses: {
|
|
1870
|
+
/** @description Download links for all available formats */
|
|
1871
|
+
200: {
|
|
1872
|
+
headers: {
|
|
1873
|
+
[name: string]: unknown;
|
|
1874
|
+
};
|
|
1875
|
+
content: {
|
|
1876
|
+
"application/json": components["schemas"]["TaskResultsResponse"];
|
|
1877
|
+
};
|
|
1878
|
+
};
|
|
1879
|
+
/** @description Not found */
|
|
1880
|
+
404: {
|
|
1881
|
+
headers: {
|
|
1882
|
+
[name: string]: unknown;
|
|
1883
|
+
};
|
|
1884
|
+
content: {
|
|
1885
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1886
|
+
};
|
|
1887
|
+
};
|
|
1888
|
+
/** @description Task is not yet completed */
|
|
1889
|
+
409: {
|
|
1890
|
+
headers: {
|
|
1891
|
+
[name: string]: unknown;
|
|
1892
|
+
};
|
|
1893
|
+
content: {
|
|
1894
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1895
|
+
};
|
|
1896
|
+
};
|
|
1897
|
+
};
|
|
1898
|
+
};
|
|
1899
|
+
put?: never;
|
|
1900
|
+
post?: never;
|
|
1901
|
+
delete?: never;
|
|
1902
|
+
options?: never;
|
|
1903
|
+
head?: never;
|
|
1904
|
+
patch?: never;
|
|
1905
|
+
trace?: never;
|
|
1906
|
+
};
|
|
1907
|
+
"/api/v1/tasks/{taskId}/retry": {
|
|
1908
|
+
parameters: {
|
|
1909
|
+
query?: never;
|
|
1910
|
+
header?: never;
|
|
1911
|
+
path?: never;
|
|
1912
|
+
cookie?: never;
|
|
1913
|
+
};
|
|
1914
|
+
get?: never;
|
|
1915
|
+
put?: never;
|
|
1916
|
+
/**
|
|
1917
|
+
* Tasks - retry a failed or cancelled task
|
|
1918
|
+
* @description Re-queues a failed or cancelled task with the same parameters.
|
|
1919
|
+
*/
|
|
1920
|
+
post: {
|
|
1921
|
+
parameters: {
|
|
1922
|
+
query?: never;
|
|
1923
|
+
header?: never;
|
|
1924
|
+
path: {
|
|
1925
|
+
/** @description Task ID */
|
|
1926
|
+
taskId: string;
|
|
1927
|
+
};
|
|
1928
|
+
cookie?: never;
|
|
1929
|
+
};
|
|
1930
|
+
requestBody?: never;
|
|
1931
|
+
responses: {
|
|
1932
|
+
/** @description Task re-queued */
|
|
1933
|
+
202: {
|
|
1934
|
+
headers: {
|
|
1935
|
+
[name: string]: unknown;
|
|
1936
|
+
};
|
|
1937
|
+
content: {
|
|
1938
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
1939
|
+
};
|
|
1940
|
+
};
|
|
1941
|
+
/** @description Not found */
|
|
1942
|
+
404: {
|
|
1943
|
+
headers: {
|
|
1944
|
+
[name: string]: unknown;
|
|
1945
|
+
};
|
|
1946
|
+
content: {
|
|
1947
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1948
|
+
};
|
|
1949
|
+
};
|
|
1950
|
+
/** @description Task is not in a retryable state */
|
|
1951
|
+
409: {
|
|
1952
|
+
headers: {
|
|
1953
|
+
[name: string]: unknown;
|
|
1954
|
+
};
|
|
1955
|
+
content: {
|
|
1956
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1957
|
+
};
|
|
1958
|
+
};
|
|
1959
|
+
};
|
|
1960
|
+
};
|
|
1961
|
+
delete?: never;
|
|
1962
|
+
options?: never;
|
|
1963
|
+
head?: never;
|
|
1964
|
+
patch?: never;
|
|
1965
|
+
trace?: never;
|
|
1966
|
+
};
|
|
1967
|
+
}
|
|
1968
|
+
export type webhooks = Record<string, never>;
|
|
1969
|
+
export interface components {
|
|
1970
|
+
schemas: {
|
|
1971
|
+
/** @description Execute a single Bitbybit CAD operation. The operation runs asynchronously and returns a task ID for polling. */
|
|
1972
|
+
ExecuteBody: {
|
|
1973
|
+
/** @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. */
|
|
1974
|
+
operation: string;
|
|
1975
|
+
/** @description Operation-specific parameters - varies by operation. See model definitions for available parameters. */
|
|
1976
|
+
params?: unknown;
|
|
1977
|
+
};
|
|
1978
|
+
/** @description Execute a chain of Bitbybit CAD operations sequentially. Supports $ref:N step references, $file:N file inputs, map iteration, and choice conditionals. */
|
|
1979
|
+
PipelineBody: {
|
|
1980
|
+
/** @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. */
|
|
1981
|
+
steps: components["schemas"]["PipelineAnyStep"][];
|
|
1982
|
+
/** @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). */
|
|
1983
|
+
inputFiles?: components["schemas"]["InputFileItem"][];
|
|
1984
|
+
/** @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. */
|
|
1985
|
+
outputs?: components["schemas"]["PipelineOutputOptions"];
|
|
1986
|
+
};
|
|
1987
|
+
/** @description A pipeline step - either a plain operation, a map (iteration), or a choice (conditional). */
|
|
1988
|
+
PipelineAnyStep: components["schemas"]["MapStep"] | components["schemas"]["ChoiceStep"] | components["schemas"]["PipelineStep"];
|
|
1989
|
+
/** @description Iterate over an array, executing sub-steps for each element. Produces an array of results (or a reduced value). */
|
|
1990
|
+
MapStep: {
|
|
1991
|
+
/**
|
|
1992
|
+
* @description Declares this step as a map (iteration) step
|
|
1993
|
+
* @constant
|
|
1994
|
+
*/
|
|
1995
|
+
type: "map";
|
|
1996
|
+
/** @description Source array to iterate over. Typically a '$ref:N' reference to a previous step that produced an array. */
|
|
1997
|
+
items: unknown;
|
|
1998
|
+
/** @description Sub-steps to execute for each item. Use '$item' for the current element, '$index' for the iteration number. */
|
|
1999
|
+
steps: components["schemas"]["PipelineStep"][];
|
|
2000
|
+
/** @description Optional sub-steps to combine map results. Use '$mapResult' to reference the collected array of iteration outputs. */
|
|
2001
|
+
reduce?: components["schemas"]["PipelineStep"][];
|
|
2002
|
+
};
|
|
2003
|
+
/** @description A single step in a sequential CAD pipeline. Steps can reference outputs of earlier steps via $ref or input files via $file. */
|
|
2004
|
+
PipelineStep: {
|
|
2005
|
+
/** @description Fully-qualified CAD operation identifier (e.g. 'occt.shapes.solid.createSphere'). Supports OCCT, Manifold, JSCAD, and vector/math operations. */
|
|
2006
|
+
operation: string;
|
|
2007
|
+
/** @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). */
|
|
2008
|
+
params: unknown;
|
|
2009
|
+
/** @description When true, this step's result is included in a separate result.json output alongside any shape files. */
|
|
2010
|
+
output?: boolean;
|
|
2011
|
+
};
|
|
2012
|
+
/** @description Conditional execution - evaluate a condition and run the matching branch. */
|
|
2013
|
+
ChoiceStep: {
|
|
2014
|
+
/**
|
|
2015
|
+
* @description Declares this step as a choice (conditional) step
|
|
2016
|
+
* @constant
|
|
2017
|
+
*/
|
|
2018
|
+
type: "choice";
|
|
2019
|
+
/** @description Value to compare. Typically a '$ref:N' reference to a previous step result. */
|
|
2020
|
+
value: unknown;
|
|
2021
|
+
/** @description Comparison operator to apply between value and compareTo */
|
|
2022
|
+
operator: components["schemas"]["ComparisonOperator"];
|
|
2023
|
+
/** @description Value to compare against. Not required for 'exists' operator. */
|
|
2024
|
+
compareTo?: unknown;
|
|
2025
|
+
/** @description Sub-steps to execute when condition is true */
|
|
2026
|
+
then: components["schemas"]["PipelineStep"][];
|
|
2027
|
+
/** @description Sub-steps to execute when condition is false. If omitted, produces null. */
|
|
2028
|
+
else?: components["schemas"]["PipelineStep"][];
|
|
2029
|
+
};
|
|
2030
|
+
/**
|
|
2031
|
+
* @description Comparison operator: 'eq' (equal), 'neq' (not equal), 'gt' (greater than), 'gte' (greater or equal), 'lt' (less than), 'lte' (less or equal), 'exists' (value is not null/undefined).
|
|
2032
|
+
* @enum {string}
|
|
2033
|
+
*/
|
|
2034
|
+
ComparisonOperator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "exists";
|
|
2035
|
+
/** @description Reference to an uploaded file to be used as input */
|
|
2036
|
+
InputFileItem: {
|
|
2037
|
+
/** @description ID of a previously uploaded file (from POST /files/upload) */
|
|
2038
|
+
fileId: string;
|
|
2039
|
+
/** @description Role identifier for the file (e.g. 'step-model', 'coordinates-csv') */
|
|
2040
|
+
role: string;
|
|
2041
|
+
};
|
|
2042
|
+
/** @description Controls which output formats are generated for pipeline results. Supports additional formats (json, csv, stl, 3mf) beyond standard model outputs. */
|
|
2043
|
+
PipelineOutputOptions: {
|
|
2044
|
+
/** @description Output formats to generate. Supports standard CAD formats (step, stpz, gltf, decomposed-mesh) plus pipeline-specific formats (json, csv, stl, 3mf). */
|
|
2045
|
+
formats: components["schemas"]["PipelineOutputFormat"][];
|
|
2046
|
+
/** @description Tessellation precision for mesh-based outputs (decomposed-mesh and gltf). Lower values produce denser meshes. */
|
|
2047
|
+
meshPrecision?: components["schemas"]["MeshPrecision"];
|
|
2048
|
+
/** @description Override tessellation precision specifically for glTF output. When set, takes precedence over meshPrecision for glTF only. */
|
|
2049
|
+
gltfMeshPrecision?: components["schemas"]["MeshPrecision"];
|
|
2050
|
+
/** @description Convert from Y-up to Z-up coordinate system in the output. Useful for software that expects Z-up. */
|
|
2051
|
+
adjustYtoZ?: boolean;
|
|
2052
|
+
/** @description Include the full pipeline definition in metadata.json. Defaults to true. Set to false to exclude it for smaller metadata. */
|
|
2053
|
+
includePipelineInMetadata?: boolean;
|
|
2054
|
+
};
|
|
2055
|
+
/**
|
|
2056
|
+
* @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).
|
|
2057
|
+
* @enum {string}
|
|
2058
|
+
*/
|
|
2059
|
+
PipelineOutputFormat: "step" | "stpz" | "decomposed-mesh" | "gltf" | "json" | "csv" | "stl" | "3mf";
|
|
2060
|
+
/**
|
|
2061
|
+
* @description Mesh tessellation precision (lower = finer). Range: [0.0001, 10]
|
|
2062
|
+
* @example 0.1
|
|
2063
|
+
*/
|
|
2064
|
+
MeshPrecision: number;
|
|
2065
|
+
/** @description Execute multiple independent Bitbybit CAD operations in parallel. Each item runs as a separate sub-task and can be polled individually. */
|
|
2066
|
+
CompoundExecuteBody: {
|
|
2067
|
+
/**
|
|
2068
|
+
* @description Must be true - signals that items should be processed concurrently
|
|
2069
|
+
* @constant
|
|
2070
|
+
*/
|
|
2071
|
+
parallel: true;
|
|
2072
|
+
/** @description List of independent CAD operations to execute in parallel. Each item becomes a sub-task. */
|
|
2073
|
+
items: components["schemas"]["CompoundItem"][];
|
|
2074
|
+
};
|
|
2075
|
+
/** @description A single operation within a compound (parallel) task. Each item runs independently. */
|
|
2076
|
+
CompoundItem: {
|
|
2077
|
+
/** @description Fully-qualified CAD operation identifier. Supports OCCT, Manifold, JSCAD, and vector/math operations. */
|
|
2078
|
+
operation: string;
|
|
2079
|
+
/** @description Operation-specific parameters for this sub-task */
|
|
2080
|
+
params?: unknown;
|
|
2081
|
+
/** @description References to previously uploaded files to be used as inputs for this operation */
|
|
2082
|
+
inputFiles?: components["schemas"]["InputFileItem"][];
|
|
2083
|
+
/** @description Per-item output format overrides. If omitted, the task produces raw result data. */
|
|
2084
|
+
outputFormats?: string[];
|
|
2085
|
+
};
|
|
2086
|
+
/** @description Fetch parameter definitions for one or more parametric models. Returns available parameters, types, defaults, and constraints. */
|
|
2087
|
+
DefinitionsBody: {
|
|
2088
|
+
/** @description Array of model slugs to fetch definitions for (e.g. ['dragon-cup', 'phone-nest']) */
|
|
2089
|
+
names: string[];
|
|
2090
|
+
};
|
|
2091
|
+
/** @description Submit a parametric model for generation with specified parameters and output formats */
|
|
2092
|
+
ModelSubmissionBody: {
|
|
2093
|
+
/** @description Model-specific parameters. Omitted params use their defaults. See model definition for available options. */
|
|
2094
|
+
params?: {
|
|
2095
|
+
[key: string]: unknown;
|
|
2096
|
+
};
|
|
2097
|
+
outputs: components["schemas"]["OutputOptions"];
|
|
2098
|
+
};
|
|
2099
|
+
/** @description Controls which output formats are generated and their quality settings */
|
|
2100
|
+
OutputOptions: {
|
|
2101
|
+
/** @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. */
|
|
2102
|
+
formats: components["schemas"]["OutputFormat"][];
|
|
2103
|
+
/** @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. */
|
|
2104
|
+
meshPrecision?: components["schemas"]["MeshPrecision"];
|
|
2105
|
+
/** @description Override tessellation precision specifically for glTF output. When set, takes precedence over meshPrecision for glTF only. */
|
|
2106
|
+
gltfMeshPrecision?: components["schemas"]["MeshPrecision"];
|
|
2107
|
+
/** @description Convert from Y-up to Z-up coordinate system in the output. Useful for software that expects Z-up. */
|
|
2108
|
+
adjustYtoZ?: boolean;
|
|
2109
|
+
};
|
|
2110
|
+
/**
|
|
2111
|
+
* @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.
|
|
2112
|
+
* @enum {string}
|
|
2113
|
+
*/
|
|
2114
|
+
OutputFormat: "step" | "stpz" | "decomposed-mesh" | "gltf";
|
|
2115
|
+
/** @description Submit multiple parameter variations of the same model for parallel generation */
|
|
2116
|
+
BatchModelSubmissionBody: {
|
|
2117
|
+
/** @description Array of parameter variations. Each item produces a separate output with the same model. */
|
|
2118
|
+
items: {
|
|
2119
|
+
params?: {
|
|
2120
|
+
[key: string]: unknown;
|
|
2121
|
+
};
|
|
2122
|
+
}[];
|
|
2123
|
+
/** @description Output format configuration applied to every item in the batch */
|
|
2124
|
+
outputs: components["schemas"]["OutputOptions"];
|
|
2125
|
+
};
|
|
2126
|
+
/** @description Request body for the Dragon Cup model */
|
|
2127
|
+
DragonCupBody: {
|
|
2128
|
+
params?: components["schemas"]["DragonCupParams"];
|
|
2129
|
+
outputs: components["schemas"]["OutputOptions"];
|
|
2130
|
+
};
|
|
2131
|
+
/** @description Dragon Cup model parameters - all optional, sane defaults apply */
|
|
2132
|
+
DragonCupParams: {
|
|
2133
|
+
/** @description Total cup height (cm) */
|
|
2134
|
+
height?: number;
|
|
2135
|
+
/** @description Radius at the base (cm) */
|
|
2136
|
+
radiusBottom?: number;
|
|
2137
|
+
/** @description How much the top radius differs from bottom */
|
|
2138
|
+
radiusTopOffset?: number;
|
|
2139
|
+
/** @description Mid-section radius offset */
|
|
2140
|
+
radiusMidOffset?: number;
|
|
2141
|
+
/** @description Top twist angle (degrees) */
|
|
2142
|
+
rotationTopAngle?: number;
|
|
2143
|
+
/** @description Mid twist angle (degrees) */
|
|
2144
|
+
rotationMidAngle?: number;
|
|
2145
|
+
/** @description Vertical skin cell count */
|
|
2146
|
+
nrSkinCellsVertical?: number;
|
|
2147
|
+
/** @description Horizontal skin cell count */
|
|
2148
|
+
nrSkinCellsHorizontal?: number;
|
|
2149
|
+
/** @description Subdivisions at top of each cell */
|
|
2150
|
+
nrSkinCellDivisionsTop?: number;
|
|
2151
|
+
/** @description Subdivisions at bottom of each cell */
|
|
2152
|
+
nrSkinCellDivisionsBottom?: number;
|
|
2153
|
+
/** @description Outer cell extrusion height */
|
|
2154
|
+
skinCellOuterHeight?: number;
|
|
2155
|
+
/** @description Inner cell extrusion height */
|
|
2156
|
+
skinCellInnerHeight?: number;
|
|
2157
|
+
/** @description Bottom cell height */
|
|
2158
|
+
skinCellBottomHeight?: number;
|
|
2159
|
+
/** @description Top cell height */
|
|
2160
|
+
skinCellTopHeight?: number;
|
|
2161
|
+
/** @description Shell wall thickness */
|
|
2162
|
+
thickness?: number;
|
|
2163
|
+
/** @description Bottom plate thickness */
|
|
2164
|
+
bottomThickness?: number;
|
|
2165
|
+
/** @description Geometry precision (lower = finer) */
|
|
2166
|
+
precision?: components["schemas"]["MeshPrecision"];
|
|
2167
|
+
/** @description Final rotation angle (degrees) */
|
|
2168
|
+
rotation?: number;
|
|
2169
|
+
/** @description Uniform scale factor */
|
|
2170
|
+
scale?: components["schemas"]["PositiveScale"];
|
|
2171
|
+
/** @description [x, y, z] placement origin */
|
|
2172
|
+
origin?: components["schemas"]["Point3"];
|
|
2173
|
+
/** @description [x, y, z] up direction */
|
|
2174
|
+
direction?: components["schemas"]["Point3"];
|
|
2175
|
+
};
|
|
2176
|
+
/** @description Uniform scale factor. Range: [1e-6, 1000] */
|
|
2177
|
+
PositiveScale: number;
|
|
2178
|
+
/** @description 3D point as [x, y, z] tuple, each coordinate in [-1000, 1000] */
|
|
2179
|
+
Point3: [
|
|
2180
|
+
number,
|
|
2181
|
+
number,
|
|
2182
|
+
number
|
|
2183
|
+
];
|
|
2184
|
+
/** @description Request body for the Phone Nest model */
|
|
2185
|
+
PhoneNestBody: {
|
|
2186
|
+
params?: components["schemas"]["PhoneNestParams"];
|
|
2187
|
+
outputs: components["schemas"]["OutputOptions"];
|
|
2188
|
+
};
|
|
2189
|
+
/** @description Phone Nest model parameters - all optional, sane defaults apply */
|
|
2190
|
+
PhoneNestParams: {
|
|
2191
|
+
/** @description Height of the bottom section (cm) */
|
|
2192
|
+
heightBottom?: number;
|
|
2193
|
+
/** @description Height of the top section (cm) */
|
|
2194
|
+
heightTop?: number;
|
|
2195
|
+
/** @description Width at the back (cm) */
|
|
2196
|
+
widthBack?: number;
|
|
2197
|
+
/** @description Width at the front (cm) */
|
|
2198
|
+
widthFront?: number;
|
|
2199
|
+
/** @description Depth / length (cm) */
|
|
2200
|
+
length?: number;
|
|
2201
|
+
/** @description Back curve offset (cm) */
|
|
2202
|
+
backOffset?: number;
|
|
2203
|
+
/** @description Shell wall thickness */
|
|
2204
|
+
thickness?: number;
|
|
2205
|
+
/** @description Add decorative perforations to the surface */
|
|
2206
|
+
applyOrnaments?: boolean;
|
|
2207
|
+
/** @description Fillet radius on loft edges */
|
|
2208
|
+
filletRadius?: number;
|
|
2209
|
+
/** @description Phone mock-up height (cm) */
|
|
2210
|
+
phoneHeight?: number;
|
|
2211
|
+
/** @description Phone mock-up width (cm) */
|
|
2212
|
+
phoneWidth?: number;
|
|
2213
|
+
/** @description Phone mock-up thickness (cm) */
|
|
2214
|
+
phoneThickness?: number;
|
|
2215
|
+
/** @description Geometry precision (lower = finer) */
|
|
2216
|
+
precision?: components["schemas"]["MeshPrecision"];
|
|
2217
|
+
/** @description Final rotation angle (degrees) */
|
|
2218
|
+
rotation?: number;
|
|
2219
|
+
/** @description Uniform scale factor */
|
|
2220
|
+
scale?: components["schemas"]["PositiveScale"];
|
|
2221
|
+
/** @description [x, y, z] placement origin */
|
|
2222
|
+
origin?: components["schemas"]["Point3"];
|
|
2223
|
+
/** @description [x, y, z] up direction */
|
|
2224
|
+
direction?: components["schemas"]["Point3"];
|
|
2225
|
+
};
|
|
2226
|
+
/** @description Convert a STEP file to glTF format with default settings. Upload the STEP file first, then pass its ID here. */
|
|
2227
|
+
StepToGltfBody: {
|
|
2228
|
+
/** @description ID of the previously uploaded STEP file (returned by the file upload endpoint) */
|
|
2229
|
+
stepFileId: string;
|
|
2230
|
+
/** @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). */
|
|
2231
|
+
meshPrecision?: components["schemas"]["MeshPrecision"];
|
|
2232
|
+
/** @description Angular deflection in radians for mesh tessellation - controls curvature approximation. Smaller values produce smoother curved surfaces. */
|
|
2233
|
+
meshAngle?: components["schemas"]["MeshAngle"];
|
|
2234
|
+
/** @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. */
|
|
2235
|
+
meshRelative?: boolean;
|
|
2236
|
+
/** @description Add interior vertices for better curved face fidelity (slower, set false for speed). */
|
|
2237
|
+
internalVerticesMode?: boolean;
|
|
2238
|
+
/** @description Extra post-pass refining triangles that bulge beyond the deflection (slower, set false for speed). */
|
|
2239
|
+
controlSurfaceDeflection?: boolean;
|
|
2240
|
+
};
|
|
2241
|
+
/** @description Mesh angular deflection in radians. Range: [0.01, π] */
|
|
2242
|
+
MeshAngle: number;
|
|
2243
|
+
/** @description Convert a STEP file to glTF with full control over tessellation, naming, coordinate systems, and output format. */
|
|
2244
|
+
StepToGltfAdvancedBody: {
|
|
2245
|
+
/** @description ID of the previously uploaded STEP file (returned by the file upload endpoint) */
|
|
2246
|
+
stepFileId: string;
|
|
2247
|
+
/** @description Advanced conversion settings. If omitted, sensible defaults are used. */
|
|
2248
|
+
options?: components["schemas"]["ConvertAdvancedOptions"];
|
|
2249
|
+
};
|
|
2250
|
+
/** @description Fine-grained options controlling STEP → glTF conversion: tessellation quality, attribute extraction, coordinate systems, and output format. */
|
|
2251
|
+
ConvertAdvancedOptions: {
|
|
2252
|
+
/** @description Extract color attributes from the STEP file and apply to glTF materials */
|
|
2253
|
+
readColors?: boolean;
|
|
2254
|
+
/** @description Extract product/instance names from the STEP file and apply to glTF node names */
|
|
2255
|
+
readNames?: boolean;
|
|
2256
|
+
/** @description Extract material definitions from the STEP file */
|
|
2257
|
+
readMaterials?: boolean;
|
|
2258
|
+
/** @description Extract layer/group structure from the STEP file */
|
|
2259
|
+
readLayers?: boolean;
|
|
2260
|
+
/** @description Extract custom properties (e.g. part numbers, metadata) from the STEP file */
|
|
2261
|
+
readProps?: boolean;
|
|
2262
|
+
/** @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). */
|
|
2263
|
+
meshDeflection?: components["schemas"]["MeshPrecision"];
|
|
2264
|
+
/** @description Angular deflection for mesh tessellation (radians) - controls curvature approximation */
|
|
2265
|
+
meshAngle?: components["schemas"]["MeshAngle"];
|
|
2266
|
+
/** @description Enable parallel tessellation for faster processing */
|
|
2267
|
+
meshParallel?: boolean;
|
|
2268
|
+
/** @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. */
|
|
2269
|
+
meshRelative?: boolean;
|
|
2270
|
+
/** @description Add interior vertices for better curved face fidelity (slower, set false for speed). */
|
|
2271
|
+
internalVerticesMode?: boolean;
|
|
2272
|
+
/** @description Extra post-pass refining triangles that bulge beyond the deflection (slower, set false for speed). */
|
|
2273
|
+
controlSurfaceDeflection?: boolean;
|
|
2274
|
+
/** @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. */
|
|
2275
|
+
faceCountThreshold?: number;
|
|
2276
|
+
/** @description Merge co-planar adjacent faces to reduce mesh complexity */
|
|
2277
|
+
mergeFaces?: boolean;
|
|
2278
|
+
/** @description Split meshes so each uses 16-bit index buffers (max 65535 vertices per mesh). Improves compatibility with some renderers. */
|
|
2279
|
+
splitIndices16?: boolean;
|
|
2280
|
+
/** @description Write glTF output in parallel for faster file generation */
|
|
2281
|
+
parallelWrite?: boolean;
|
|
2282
|
+
/** @description Embed texture data directly in the .glb file instead of referencing external URIs */
|
|
2283
|
+
embedTextures?: boolean;
|
|
2284
|
+
/** @description Generate UV coordinates even when no textures are present (useful for post-processing) */
|
|
2285
|
+
forceUVExport?: boolean;
|
|
2286
|
+
/** @description Strategy for naming glTF nodes from STEP product/instance labels */
|
|
2287
|
+
nodeNameFormat?: components["schemas"]["GltfNameFormat"];
|
|
2288
|
+
/** @description Strategy for naming glTF meshes from STEP product/instance labels */
|
|
2289
|
+
meshNameFormat?: components["schemas"]["GltfNameFormat"];
|
|
2290
|
+
/** @description Transform representation in glTF: 'compact' (default), 'mat4' (4x4 matrix), or 'trs' (translation/rotation/scale) */
|
|
2291
|
+
transformFormat?: components["schemas"]["GltfTransformFormat"];
|
|
2292
|
+
/** @description Convert from Z-up (CAD convention) to Y-up (glTF/WebGL convention) coordinate system */
|
|
2293
|
+
adjustZtoY?: boolean;
|
|
2294
|
+
/** @description Uniform scale factor applied to the entire model (e.g. 0.001 to convert mm to meters) */
|
|
2295
|
+
scale?: components["schemas"]["PositiveScale"];
|
|
2296
|
+
};
|
|
2297
|
+
/**
|
|
2298
|
+
* @description How node/mesh names are derived from STEP product/instance labels
|
|
2299
|
+
* @enum {string}
|
|
2300
|
+
*/
|
|
2301
|
+
GltfNameFormat: "empty" | "product" | "instance" | "instanceOrProduct" | "productOrInstance" | "productAndInstance" | "productAndInstanceAndOcaf";
|
|
2302
|
+
/**
|
|
2303
|
+
* @description Transform representation in glTF output
|
|
2304
|
+
* @enum {string}
|
|
2305
|
+
*/
|
|
2306
|
+
GltfTransformFormat: "compact" | "mat4" | "trs";
|
|
2307
|
+
/** @description Convert a STEP file to Draco-compressed glTF with default settings. Upload the STEP file first, then pass its ID here. */
|
|
2308
|
+
StepToGltfWithDracoBody: {
|
|
2309
|
+
/** @description ID of the previously uploaded STEP file (returned by the file upload endpoint) */
|
|
2310
|
+
stepFileId: string;
|
|
2311
|
+
/** @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). */
|
|
2312
|
+
meshPrecision?: components["schemas"]["MeshPrecision"];
|
|
2313
|
+
/** @description Angular deflection in radians for mesh tessellation - controls curvature approximation. Smaller values produce smoother curved surfaces. */
|
|
2314
|
+
meshAngle?: components["schemas"]["MeshAngle"];
|
|
2315
|
+
/** @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. */
|
|
2316
|
+
meshRelative?: boolean;
|
|
2317
|
+
/** @description Add interior vertices for better curved face fidelity (slower, set false for speed). */
|
|
2318
|
+
internalVerticesMode?: boolean;
|
|
2319
|
+
/** @description Extra post-pass refining triangles that bulge beyond the deflection (slower, set false for speed). */
|
|
2320
|
+
controlSurfaceDeflection?: boolean;
|
|
2321
|
+
/** @description Draco compression options. If omitted, sensible defaults are used (level 7, 14/10/12/8/12 bits). */
|
|
2322
|
+
draco?: components["schemas"]["DracoCompressionOptions"];
|
|
2323
|
+
};
|
|
2324
|
+
/** @description Draco geometry compression options applied during glTF export. */
|
|
2325
|
+
DracoCompressionOptions: {
|
|
2326
|
+
/** @description Apply Draco geometry compression to the glTF output. Defaults to true for the *-with-draco endpoints. */
|
|
2327
|
+
useDraco?: boolean;
|
|
2328
|
+
/** @description Draco compression level (0 = fastest/largest, 10 = slowest/smallest). Typical good default is 7. */
|
|
2329
|
+
dracoCompressionLevel?: number;
|
|
2330
|
+
/** @description Quantization bits for vertex positions (higher = more precise, larger file). Typical: 14. */
|
|
2331
|
+
dracoQuantizePositionBits?: number;
|
|
2332
|
+
/** @description Quantization bits for normal vectors. Typical: 10. */
|
|
2333
|
+
dracoQuantizeNormalBits?: number;
|
|
2334
|
+
/** @description Quantization bits for texture coordinates. Typical: 12. */
|
|
2335
|
+
dracoQuantizeTexcoordBits?: number;
|
|
2336
|
+
/** @description Quantization bits for vertex colors. Typical: 8. */
|
|
2337
|
+
dracoQuantizeColorBits?: number;
|
|
2338
|
+
/** @description Quantization bits for generic vertex attributes. Typical: 12. */
|
|
2339
|
+
dracoQuantizeGenericBits?: number;
|
|
2340
|
+
/** @description Use unified quantization across all meshes (better when meshes share a coordinate frame). */
|
|
2341
|
+
dracoUnifiedQuantization?: boolean;
|
|
2342
|
+
};
|
|
2343
|
+
/** @description Convert a STEP file to Draco-compressed glTF with full control over tessellation, naming, coordinate systems, output format, and Draco quantization. */
|
|
2344
|
+
StepToGltfAdvancedWithDracoBody: {
|
|
2345
|
+
/** @description ID of the previously uploaded STEP file (returned by the file upload endpoint) */
|
|
2346
|
+
stepFileId: string;
|
|
2347
|
+
/** @description Advanced conversion settings. If omitted, sensible defaults are used. */
|
|
2348
|
+
options?: components["schemas"]["ConvertAdvancedOptions"];
|
|
2349
|
+
/** @description Draco compression options. If omitted, sensible defaults are used (level 7, 14/10/12/8/12 bits). */
|
|
2350
|
+
draco?: components["schemas"]["DracoCompressionOptions"];
|
|
2351
|
+
};
|
|
2352
|
+
/** @description Unfold a single developable face of an uploaded STEP shape to a flat face. */
|
|
2353
|
+
UnfoldFaceToFlatBody: {
|
|
2354
|
+
/** @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. */
|
|
2355
|
+
stepFileId: string;
|
|
2356
|
+
/**
|
|
2357
|
+
* @description 0-based index of the developable face (in the shape's BRepGraph face array) to unfold.
|
|
2358
|
+
* @default 0
|
|
2359
|
+
*/
|
|
2360
|
+
faceIndex: number;
|
|
2361
|
+
/** @description Output formats for the flattened face geometry. Defaults to glTF. */
|
|
2362
|
+
outputs?: components["schemas"]["OutputOptions"];
|
|
2363
|
+
};
|
|
2364
|
+
/** @description Compute the sheet-metal unfold metrics report for a single face of an uploaded STEP shape. */
|
|
2365
|
+
UnfoldFaceReportBody: {
|
|
2366
|
+
/** @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. */
|
|
2367
|
+
stepFileId: string;
|
|
2368
|
+
/**
|
|
2369
|
+
* @description 0-based index of the face to analyze.
|
|
2370
|
+
* @default 0
|
|
2371
|
+
*/
|
|
2372
|
+
faceIndex: number;
|
|
2373
|
+
};
|
|
2374
|
+
/** @description Flatten every constant-thickness sheet-metal solid in an uploaded STEP file to flat patterns. */
|
|
2375
|
+
UnfoldSolidToFlatBody: {
|
|
2376
|
+
/** @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. */
|
|
2377
|
+
stepFileId: string;
|
|
2378
|
+
/**
|
|
2379
|
+
* @description Sheet-metal K-factor (neutral-axis position), typically ~0.5.
|
|
2380
|
+
* @default 0.5
|
|
2381
|
+
*/
|
|
2382
|
+
kFactor: number;
|
|
2383
|
+
/**
|
|
2384
|
+
* @description Sheet thickness override in model units; 0 auto-detects thickness from face pairs.
|
|
2385
|
+
* @default 0
|
|
2386
|
+
*/
|
|
2387
|
+
thicknessOverride: number;
|
|
2388
|
+
/** @description Output formats for the flattened patterns. Every solid's flat is combined into one compound output per format. Defaults to glTF. */
|
|
2389
|
+
outputs?: components["schemas"]["OutputOptions"];
|
|
2390
|
+
};
|
|
2391
|
+
/** @description Compute per-solid sheet-metal unfold metrics for every solid in an uploaded STEP file. */
|
|
2392
|
+
UnfoldSolidReportBody: {
|
|
2393
|
+
/** @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. */
|
|
2394
|
+
stepFileId: string;
|
|
2395
|
+
/**
|
|
2396
|
+
* @description Sheet-metal K-factor (neutral-axis position), typically ~0.5.
|
|
2397
|
+
* @default 0.5
|
|
2398
|
+
*/
|
|
2399
|
+
kFactor: number;
|
|
2400
|
+
/**
|
|
2401
|
+
* @description Sheet thickness override in model units; 0 auto-detects thickness from face pairs.
|
|
2402
|
+
* @default 0
|
|
2403
|
+
*/
|
|
2404
|
+
thicknessOverride: number;
|
|
2405
|
+
};
|
|
2406
|
+
/** @description Flatten every constant-thickness sheet-metal solid in an uploaded STEP file AND return the per-solid metrics report - both in one call. */
|
|
2407
|
+
UnfoldSolidBody: {
|
|
2408
|
+
/** @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. */
|
|
2409
|
+
stepFileId: string;
|
|
2410
|
+
/**
|
|
2411
|
+
* @description Sheet-metal K-factor (neutral-axis position), typically ~0.5.
|
|
2412
|
+
* @default 0.5
|
|
2413
|
+
*/
|
|
2414
|
+
kFactor: number;
|
|
2415
|
+
/**
|
|
2416
|
+
* @description Sheet thickness override in model units; 0 auto-detects thickness from face pairs.
|
|
2417
|
+
* @default 0
|
|
2418
|
+
*/
|
|
2419
|
+
thicknessOverride: number;
|
|
2420
|
+
/** @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. */
|
|
2421
|
+
outputs?: components["schemas"]["OutputOptions"];
|
|
2422
|
+
};
|
|
2423
|
+
/** @description Request a pre-signed upload URL. After receiving the URL, PUT the raw file bytes to it within the expiration window. */
|
|
2424
|
+
FileUploadBody: {
|
|
2425
|
+
/** @description Original filename including extension (e.g. 'part.step', 'model.obj'). Used for display and format detection. */
|
|
2426
|
+
filename: string;
|
|
2427
|
+
/** @description MIME type of the file (e.g. 'application/step', 'model/gltf-binary'). Must match the actual file content. */
|
|
2428
|
+
contentType: string;
|
|
2429
|
+
/** @description Exact file size in bytes. Must match the Content-Length of the subsequent PUT to the upload URL. Maximum: 1 GB. */
|
|
2430
|
+
bytes: number;
|
|
2431
|
+
/** @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. */
|
|
2432
|
+
sha256?: string;
|
|
2433
|
+
};
|
|
2434
|
+
/** @description Returned when a shape/face cannot be processed by the unfold. */
|
|
2435
|
+
UnfoldReportError: {
|
|
2436
|
+
/** @constant */
|
|
2437
|
+
ok: false;
|
|
2438
|
+
error: string;
|
|
2439
|
+
};
|
|
2440
|
+
/** @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. */
|
|
2441
|
+
UnfoldSolidReportItem: {
|
|
2442
|
+
/** @constant */
|
|
2443
|
+
ok: true;
|
|
2444
|
+
thickness: number;
|
|
2445
|
+
kFactor: number;
|
|
2446
|
+
warning: string;
|
|
2447
|
+
bends: components["schemas"]["UnfoldBend"][];
|
|
2448
|
+
flatBBox: [
|
|
2449
|
+
number,
|
|
2450
|
+
number,
|
|
2451
|
+
number,
|
|
2452
|
+
number
|
|
2453
|
+
];
|
|
2454
|
+
flatArea: number;
|
|
2455
|
+
referenceArea: number;
|
|
2456
|
+
totalArea: number;
|
|
2457
|
+
faces: components["schemas"]["UnfoldFaceEntry"][];
|
|
2458
|
+
placed: components["schemas"]["UnfoldPlaced"][];
|
|
2459
|
+
} | components["schemas"]["UnfoldSolidReportError"];
|
|
2460
|
+
/** @description One bend: line, angle, radii (inner/outer/neutral and per-end for cones), and developed lengths. */
|
|
2461
|
+
UnfoldBend: {
|
|
2462
|
+
faceIndex: number;
|
|
2463
|
+
flatA: number;
|
|
2464
|
+
flatB: number;
|
|
2465
|
+
lineStart: [
|
|
2466
|
+
number,
|
|
2467
|
+
number,
|
|
2468
|
+
number
|
|
2469
|
+
];
|
|
2470
|
+
lineEnd: [
|
|
2471
|
+
number,
|
|
2472
|
+
number,
|
|
2473
|
+
number
|
|
2474
|
+
];
|
|
2475
|
+
lineMid: [
|
|
2476
|
+
number,
|
|
2477
|
+
number,
|
|
2478
|
+
number
|
|
2479
|
+
];
|
|
2480
|
+
bendLineLength: number;
|
|
2481
|
+
angleDeg: number;
|
|
2482
|
+
innerRadius: number;
|
|
2483
|
+
outerRadius: number;
|
|
2484
|
+
neutralRadius: number;
|
|
2485
|
+
innerRadiusStart: number;
|
|
2486
|
+
innerRadiusEnd: number;
|
|
2487
|
+
outerRadiusStart: number;
|
|
2488
|
+
outerRadiusEnd: number;
|
|
2489
|
+
T: number;
|
|
2490
|
+
K: number;
|
|
2491
|
+
allowance: number;
|
|
2492
|
+
bendDeduction: number;
|
|
2493
|
+
outsideSetback: number;
|
|
2494
|
+
innerArcLength: number;
|
|
2495
|
+
outerArcLength: number;
|
|
2496
|
+
/** @enum {string} */
|
|
2497
|
+
direction: "up" | "down";
|
|
2498
|
+
/** @enum {string} */
|
|
2499
|
+
kind: "cyl" | "cone";
|
|
2500
|
+
layoutApprox: boolean;
|
|
2501
|
+
};
|
|
2502
|
+
/** @description A classified source face: stable key (index + BRepGraph uid), role, and label anchors. */
|
|
2503
|
+
UnfoldFaceEntry: {
|
|
2504
|
+
index: number;
|
|
2505
|
+
uid: number;
|
|
2506
|
+
/** @enum {string} */
|
|
2507
|
+
surfaceType: "Plane" | "Cylinder" | "Cone" | "Sphere" | "Torus" | "Other";
|
|
2508
|
+
/** @enum {string} */
|
|
2509
|
+
role: "referenceFlat" | "otherSideFlat" | "rim" | "flat" | "bend" | "coneBend" | "cutout" | "ignored";
|
|
2510
|
+
reference: boolean;
|
|
2511
|
+
opposite: number;
|
|
2512
|
+
area: number;
|
|
2513
|
+
centroid: [
|
|
2514
|
+
number,
|
|
2515
|
+
number,
|
|
2516
|
+
number
|
|
2517
|
+
];
|
|
2518
|
+
labelPoint: [
|
|
2519
|
+
number,
|
|
2520
|
+
number,
|
|
2521
|
+
number
|
|
2522
|
+
];
|
|
2523
|
+
/** @description Bend candidates (cylinder/cone) only: best |flange normal · cylinder radial| over the flanges. ~1 = tangent fold, ~0 = cutout/hole wall. */
|
|
2524
|
+
tangentDot?: number;
|
|
2525
|
+
/**
|
|
2526
|
+
* @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).
|
|
2527
|
+
* @enum {string}
|
|
2528
|
+
*/
|
|
2529
|
+
bendOutcome?: "fold" | "cutout" | "duplicate" | "";
|
|
2530
|
+
};
|
|
2531
|
+
/** @description A sub-shape laid into the flat compound, mapped back to its source face (compound order). */
|
|
2532
|
+
UnfoldPlaced: {
|
|
2533
|
+
/** @enum {string} */
|
|
2534
|
+
kind: "flat" | "bendStrip";
|
|
2535
|
+
sourceFaceIndex: number;
|
|
2536
|
+
role: ("referenceFlat" | "otherSideFlat" | "rim" | "flat" | "bend" | "coneBend" | "cutout" | "ignored") | "unknown";
|
|
2537
|
+
flatCentroid: [
|
|
2538
|
+
number,
|
|
2539
|
+
number,
|
|
2540
|
+
number
|
|
2541
|
+
];
|
|
2542
|
+
};
|
|
2543
|
+
/** @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. */
|
|
2544
|
+
UnfoldSolidReportError: {
|
|
2545
|
+
/** @constant */
|
|
2546
|
+
ok: false;
|
|
2547
|
+
error: string;
|
|
2548
|
+
thickness?: number;
|
|
2549
|
+
kFactor?: number;
|
|
2550
|
+
warning?: string;
|
|
2551
|
+
bends?: components["schemas"]["UnfoldBend"][];
|
|
2552
|
+
flatBBox?: [
|
|
2553
|
+
number,
|
|
2554
|
+
number,
|
|
2555
|
+
number,
|
|
2556
|
+
number
|
|
2557
|
+
];
|
|
2558
|
+
flatArea?: number;
|
|
2559
|
+
referenceArea?: number;
|
|
2560
|
+
totalArea?: number;
|
|
2561
|
+
faces?: components["schemas"]["UnfoldFaceEntry"][];
|
|
2562
|
+
placed?: components["schemas"]["UnfoldPlaced"][];
|
|
2563
|
+
};
|
|
2564
|
+
/** @description Success envelope for health check */
|
|
2565
|
+
HealthResponse: {
|
|
2566
|
+
/** @constant */
|
|
2567
|
+
ok: true;
|
|
2568
|
+
data: components["schemas"]["HealthStatus"];
|
|
2569
|
+
};
|
|
2570
|
+
/** @description API health check result indicating overall system status */
|
|
2571
|
+
HealthStatus: {
|
|
2572
|
+
/**
|
|
2573
|
+
* @description Overall health status
|
|
2574
|
+
* @enum {string}
|
|
2575
|
+
*/
|
|
2576
|
+
status: "ok" | "degraded";
|
|
2577
|
+
/** @description ISO 8601 timestamp */
|
|
2578
|
+
timestamp: string;
|
|
2579
|
+
};
|
|
2580
|
+
/** @description HTTP 202 response when a task is accepted for async processing */
|
|
2581
|
+
TaskAcceptedResponse: {
|
|
2582
|
+
/** @constant */
|
|
2583
|
+
ok: true;
|
|
2584
|
+
data: components["schemas"]["TaskCreatedResult"];
|
|
2585
|
+
};
|
|
2586
|
+
/** @description Returned when a CAD task is accepted. Poll the statusUrl to track progress. */
|
|
2587
|
+
TaskCreatedResult: {
|
|
2588
|
+
/**
|
|
2589
|
+
* Format: uuid
|
|
2590
|
+
* @description Unique task identifier - use this to poll for status and retrieve results
|
|
2591
|
+
*/
|
|
2592
|
+
taskId: string;
|
|
2593
|
+
/**
|
|
2594
|
+
* @description Initial task status (always 'queued' upon creation)
|
|
2595
|
+
* @constant
|
|
2596
|
+
*/
|
|
2597
|
+
status: "queued";
|
|
2598
|
+
/**
|
|
2599
|
+
* @description Relative URL to poll for task status updates
|
|
2600
|
+
* @example /api/v1/tasks/{taskId}
|
|
2601
|
+
*/
|
|
2602
|
+
statusUrl: string;
|
|
2603
|
+
};
|
|
2604
|
+
/** @description Standard error envelope */
|
|
2605
|
+
ErrorResponse: {
|
|
2606
|
+
/** @constant */
|
|
2607
|
+
ok: false;
|
|
2608
|
+
error: components["schemas"]["ErrorDetail"];
|
|
2609
|
+
};
|
|
2610
|
+
/** @description Structured error information with machine-readable code and optional debugging context */
|
|
2611
|
+
ErrorDetail: {
|
|
2612
|
+
/**
|
|
2613
|
+
* @description Machine-readable error code
|
|
2614
|
+
* @example VALIDATION_ERROR
|
|
2615
|
+
*/
|
|
2616
|
+
code: string;
|
|
2617
|
+
/** @description Human-readable error message */
|
|
2618
|
+
message: string;
|
|
2619
|
+
/** @description Optional structured error context */
|
|
2620
|
+
details?: unknown;
|
|
2621
|
+
/** @description Request ID for tracing */
|
|
2622
|
+
requestId?: string;
|
|
2623
|
+
};
|
|
2624
|
+
/** @description HTTP 202 response when a compound (parallel) task is accepted */
|
|
2625
|
+
CompoundTaskAcceptedResponse: {
|
|
2626
|
+
/** @constant */
|
|
2627
|
+
ok: true;
|
|
2628
|
+
data: components["schemas"]["CompoundTaskCreatedResult"];
|
|
2629
|
+
};
|
|
2630
|
+
/** @description Returned when a compound (parallel) task is accepted. Contains initial status for all sub-tasks. */
|
|
2631
|
+
CompoundTaskCreatedResult: {
|
|
2632
|
+
/** @description Parent compound task ID for tracking overall progress */
|
|
2633
|
+
taskId: string;
|
|
2634
|
+
/** @constant */
|
|
2635
|
+
kind: "compound";
|
|
2636
|
+
/** @description Total number of sub-tasks created (one per item in the request) */
|
|
2637
|
+
subTaskCount: number;
|
|
2638
|
+
/**
|
|
2639
|
+
* @description Relative URL to poll the parent task status
|
|
2640
|
+
* @example /api/v1/tasks/{taskId}
|
|
2641
|
+
*/
|
|
2642
|
+
statusUrl: string;
|
|
2643
|
+
subTasks: components["schemas"]["SubTaskSummary"][];
|
|
2644
|
+
};
|
|
2645
|
+
/** @description Status summary for one sub-task within a compound (parallel) task */
|
|
2646
|
+
SubTaskSummary: {
|
|
2647
|
+
/** @description Unique identifier for this sub-task (can be polled individually) */
|
|
2648
|
+
taskId: string;
|
|
2649
|
+
/** @description Zero-based position of this sub-task within the compound */
|
|
2650
|
+
index: number;
|
|
2651
|
+
status: components["schemas"]["TaskStatus"];
|
|
2652
|
+
/** @description Completion percentage (0–100) or null if not yet started */
|
|
2653
|
+
progress: number | null;
|
|
2654
|
+
/** @description Actual compute time in milliseconds (null until completed) */
|
|
2655
|
+
computeMs: number | null;
|
|
2656
|
+
/** @description Error message if sub-task failed, null otherwise */
|
|
2657
|
+
error: string | null;
|
|
2658
|
+
/** @description Available output format keys (e.g. ['glb', 'stpz']) for downloading results */
|
|
2659
|
+
downloadFormats: string[];
|
|
2660
|
+
};
|
|
2661
|
+
/**
|
|
2662
|
+
* @description Task lifecycle state: waiting (pending dependencies), queued (in queue), processing (actively computing), completed (result available), failed (error occurred), cancelled (user-cancelled), expired (result TTL exceeded)
|
|
2663
|
+
* @enum {string}
|
|
2664
|
+
*/
|
|
2665
|
+
TaskStatus: "waiting" | "queued" | "processing" | "completed" | "failed" | "cancelled" | "expired";
|
|
2666
|
+
/** @description Success envelope containing the list of available models */
|
|
2667
|
+
ModelListResponse: {
|
|
2668
|
+
/** @constant */
|
|
2669
|
+
ok: true;
|
|
2670
|
+
data: components["schemas"]["ModelList"];
|
|
2671
|
+
};
|
|
2672
|
+
/** @description List of all available parametric models */
|
|
2673
|
+
ModelList: {
|
|
2674
|
+
/** @description Available model slugs that can be used with the /models/{name} endpoints */
|
|
2675
|
+
models: string[];
|
|
2676
|
+
};
|
|
2677
|
+
/** @description Success envelope containing multiple model definitions */
|
|
2678
|
+
ModelBatchDefinitionsResponse: {
|
|
2679
|
+
/** @constant */
|
|
2680
|
+
ok: true;
|
|
2681
|
+
data: components["schemas"]["ModelBatchDefinitions"];
|
|
2682
|
+
};
|
|
2683
|
+
/** @description Definitions for multiple models in a single response */
|
|
2684
|
+
ModelBatchDefinitions: {
|
|
2685
|
+
/** @description Model definitions keyed by slug. Each contains parameter schemas and defaults. */
|
|
2686
|
+
definitions: {
|
|
2687
|
+
[key: string]: components["schemas"]["ModelDefinition"];
|
|
2688
|
+
};
|
|
2689
|
+
};
|
|
2690
|
+
/** @description Full definition of a parametric model including all parameters and their constraints */
|
|
2691
|
+
ModelDefinition: {
|
|
2692
|
+
/** @description Model slug used in API paths (e.g. 'dragon-cup') */
|
|
2693
|
+
name: string;
|
|
2694
|
+
/** @description Human-friendly model name for UI display */
|
|
2695
|
+
displayName: string;
|
|
2696
|
+
/** @description What this model creates and its key characteristics */
|
|
2697
|
+
description: string;
|
|
2698
|
+
/** @description All accepted parameters with types, descriptions, and defaults */
|
|
2699
|
+
params: components["schemas"]["ModelParamDefinition"][];
|
|
2700
|
+
/** @description Complete default parameter values map */
|
|
2701
|
+
defaults: {
|
|
2702
|
+
[key: string]: unknown;
|
|
2703
|
+
};
|
|
2704
|
+
};
|
|
2705
|
+
/** @description Schema definition for a single model parameter */
|
|
2706
|
+
ModelParamDefinition: {
|
|
2707
|
+
/** @description Parameter name as used in the request body */
|
|
2708
|
+
name: string;
|
|
2709
|
+
/** @description Expected data type for this parameter */
|
|
2710
|
+
type: components["schemas"]["ModelParamApiType"];
|
|
2711
|
+
/** @description Human-readable explanation of what this parameter controls */
|
|
2712
|
+
description: string;
|
|
2713
|
+
/** @description Default value used when the parameter is omitted */
|
|
2714
|
+
default: unknown;
|
|
2715
|
+
/** @description Element type descriptor (only present for array parameters) */
|
|
2716
|
+
items?: {
|
|
2717
|
+
type: string;
|
|
2718
|
+
};
|
|
2719
|
+
};
|
|
2720
|
+
/**
|
|
2721
|
+
* @description Data type of a model parameter: 'number' (float), 'integer' (whole number), 'boolean' (true/false), 'array' (list of values)
|
|
2722
|
+
* @enum {string}
|
|
2723
|
+
*/
|
|
2724
|
+
ModelParamApiType: "number" | "integer" | "boolean" | "array";
|
|
2725
|
+
/** @description Success envelope containing a single model's definition */
|
|
2726
|
+
ModelDefinitionResponse: {
|
|
2727
|
+
/** @constant */
|
|
2728
|
+
ok: true;
|
|
2729
|
+
data: components["schemas"]["ModelDefinition"];
|
|
2730
|
+
};
|
|
2731
|
+
/** @description Success envelope containing the pre-signed upload URL and file metadata */
|
|
2732
|
+
UploadResponse: {
|
|
2733
|
+
/** @constant */
|
|
2734
|
+
ok: true;
|
|
2735
|
+
data: components["schemas"]["UploadResult"];
|
|
2736
|
+
};
|
|
2737
|
+
/** @description Response after requesting a file upload. Contains the pre-signed URL to PUT your file to. */
|
|
2738
|
+
UploadResult: {
|
|
2739
|
+
/**
|
|
2740
|
+
* Format: uuid
|
|
2741
|
+
* @description Assigned file identifier - use this to reference the file in subsequent API calls
|
|
2742
|
+
*/
|
|
2743
|
+
fileId: string;
|
|
2744
|
+
/**
|
|
2745
|
+
* Format: uri
|
|
2746
|
+
* @description Pre-signed URL to PUT the raw file bytes to. Send the file content with Content-Type and Content-Length headers matching the request.
|
|
2747
|
+
*/
|
|
2748
|
+
uploadUrl: string;
|
|
2749
|
+
/** @description Seconds until the upload URL expires. You must complete the PUT within this window. */
|
|
2750
|
+
expiresIn: number;
|
|
2751
|
+
/** @description Maximum allowed file size in bytes for this upload. Determined by your plan tier. */
|
|
2752
|
+
maxBytes: number;
|
|
2753
|
+
/** @constant */
|
|
2754
|
+
status: "pending";
|
|
2755
|
+
};
|
|
2756
|
+
/** @description Success envelope containing a paginated file list */
|
|
2757
|
+
FileListResponse: {
|
|
2758
|
+
/** @constant */
|
|
2759
|
+
ok: true;
|
|
2760
|
+
data: components["schemas"]["FileList"];
|
|
2761
|
+
};
|
|
2762
|
+
/** @description Paginated list of uploaded files with total count */
|
|
2763
|
+
FileList: {
|
|
2764
|
+
files: components["schemas"]["FileDetail"][];
|
|
2765
|
+
page: number;
|
|
2766
|
+
limit: number;
|
|
2767
|
+
total: number;
|
|
2768
|
+
};
|
|
2769
|
+
/** @description Full metadata for an uploaded file */
|
|
2770
|
+
FileDetail: {
|
|
2771
|
+
/**
|
|
2772
|
+
* Format: uuid
|
|
2773
|
+
* @description Unique file identifier used to reference this file in CAD operations
|
|
2774
|
+
*/
|
|
2775
|
+
fileId: string;
|
|
2776
|
+
/** @description Original filename as provided during upload request */
|
|
2777
|
+
filename: string;
|
|
2778
|
+
/** @description MIME type of the file content */
|
|
2779
|
+
contentType: string;
|
|
2780
|
+
/** @description File size in bytes. Null while status is 'pending' (not yet uploaded). */
|
|
2781
|
+
bytes: number | null;
|
|
2782
|
+
/** @description SHA-256 hex digest of the file content. Null if not provided during upload. Used for deduplication. */
|
|
2783
|
+
sha256: string | null;
|
|
2784
|
+
status: components["schemas"]["FileStatus"];
|
|
2785
|
+
/** @description ISO 8601 timestamp when the upload was initiated */
|
|
2786
|
+
createdAt: string;
|
|
2787
|
+
/** @description ISO 8601 timestamp when the upload was confirmed. Null if not yet confirmed. */
|
|
2788
|
+
confirmedAt: string | null;
|
|
2789
|
+
/** @description Pre-signed download URL. Only present for confirmed files. Expires after 1 hour. */
|
|
2790
|
+
downloadUrl?: string;
|
|
2791
|
+
};
|
|
2792
|
+
/**
|
|
2793
|
+
* @description File lifecycle state: 'pending' (upload URL issued, awaiting PUT), 'confirmed' (upload verified and file is usable), 'expired' (upload URL expired before completion)
|
|
2794
|
+
* @enum {string}
|
|
2795
|
+
*/
|
|
2796
|
+
FileStatus: "pending" | "confirmed" | "expired";
|
|
2797
|
+
/** @description Success envelope containing a single file's metadata */
|
|
2798
|
+
FileDetailResponse: {
|
|
2799
|
+
/** @constant */
|
|
2800
|
+
ok: true;
|
|
2801
|
+
data: components["schemas"]["FileDetail"];
|
|
2802
|
+
};
|
|
2803
|
+
/** @description Success response for file deletion */
|
|
2804
|
+
DeleteFileResponse: {
|
|
2805
|
+
/** @constant */
|
|
2806
|
+
ok: true;
|
|
2807
|
+
data: components["schemas"]["DeleteResult"];
|
|
2808
|
+
};
|
|
2809
|
+
/** @description Confirmation that a resource was successfully deleted */
|
|
2810
|
+
DeleteResult: {
|
|
2811
|
+
/** @constant */
|
|
2812
|
+
deleted: true;
|
|
2813
|
+
};
|
|
2814
|
+
/** @description Success envelope confirming a file upload was verified */
|
|
2815
|
+
ConfirmResponse: {
|
|
2816
|
+
/** @constant */
|
|
2817
|
+
ok: true;
|
|
2818
|
+
data: components["schemas"]["ConfirmResult"];
|
|
2819
|
+
};
|
|
2820
|
+
/** @description Returned after a file upload is verified. The file is now ready to be used in CAD operations. */
|
|
2821
|
+
ConfirmResult: {
|
|
2822
|
+
/**
|
|
2823
|
+
* Format: uuid
|
|
2824
|
+
* @description File identifier that was confirmed
|
|
2825
|
+
*/
|
|
2826
|
+
fileId: string;
|
|
2827
|
+
/** @constant */
|
|
2828
|
+
status: "confirmed";
|
|
2829
|
+
/** @description Actual file size in bytes as stored on the server */
|
|
2830
|
+
bytes: number;
|
|
2831
|
+
/** @description MIME type of the confirmed file */
|
|
2832
|
+
contentType: string;
|
|
2833
|
+
};
|
|
2834
|
+
/** @description Success envelope containing a paginated task list */
|
|
2835
|
+
TaskListResponse: {
|
|
2836
|
+
/** @constant */
|
|
2837
|
+
ok: true;
|
|
2838
|
+
data: components["schemas"]["TaskList"];
|
|
2839
|
+
};
|
|
2840
|
+
/** @description Paginated list of tasks with total count */
|
|
2841
|
+
TaskList: {
|
|
2842
|
+
tasks: components["schemas"]["TaskDetail"][];
|
|
2843
|
+
page: number;
|
|
2844
|
+
limit: number;
|
|
2845
|
+
total: number;
|
|
2846
|
+
};
|
|
2847
|
+
/** @description Complete task status including lifecycle timestamps, progress, and result metadata */
|
|
2848
|
+
TaskDetail: {
|
|
2849
|
+
/**
|
|
2850
|
+
* Format: uuid
|
|
2851
|
+
* @description Unique task identifier for polling and result retrieval
|
|
2852
|
+
*/
|
|
2853
|
+
taskId: string;
|
|
2854
|
+
kind: components["schemas"]["TaskKind"];
|
|
2855
|
+
/**
|
|
2856
|
+
* @description Human-readable task label
|
|
2857
|
+
* @example Model: dragon-cup
|
|
2858
|
+
*/
|
|
2859
|
+
label: string;
|
|
2860
|
+
status: components["schemas"]["TaskStatus"];
|
|
2861
|
+
/** @description Completion percentage (0–100) or null if progress is not tracked for this task kind */
|
|
2862
|
+
progress: number | null;
|
|
2863
|
+
/** @description Error message when status is 'failed'. Null for all other statuses. */
|
|
2864
|
+
error: string | null;
|
|
2865
|
+
/** @description Available result files keyed by format (e.g. 'glb', 'step'). Null until task completes. */
|
|
2866
|
+
resultParts: {
|
|
2867
|
+
[key: string]: components["schemas"]["ResultPartMeta"];
|
|
2868
|
+
} | null;
|
|
2869
|
+
/** @description Additional task metadata (e.g. resolved parameters, model name). Shape varies by task kind. */
|
|
2870
|
+
metadata: {
|
|
2871
|
+
[key: string]: unknown;
|
|
2872
|
+
} | null;
|
|
2873
|
+
/** @description ISO 8601 timestamp when the task was created */
|
|
2874
|
+
createdAt: string;
|
|
2875
|
+
/** @description ISO 8601 timestamp when processing began. Null if still queued. */
|
|
2876
|
+
startedAt: string | null;
|
|
2877
|
+
/** @description ISO 8601 timestamp when the task completed (success or failure). Null if still running. */
|
|
2878
|
+
finishedAt: string | null;
|
|
2879
|
+
/** @description ISO 8601 timestamp when task results will be automatically deleted */
|
|
2880
|
+
expiresAt: string;
|
|
2881
|
+
};
|
|
2882
|
+
/**
|
|
2883
|
+
* @description Type of work: 'cad' (single operation), 'model' (parametric model), 'convert-simple'/'convert-advanced' (file conversion), 'pipeline' (sequential chain), 'compound' (parallel batch), 'tenant' (tenant-scoped)
|
|
2884
|
+
* @enum {string}
|
|
2885
|
+
*/
|
|
2886
|
+
TaskKind: "cad" | "model" | "convert-simple" | "convert-advanced" | "pipeline" | "compound" | "tenant";
|
|
2887
|
+
/** @description Metadata about a single downloadable result part */
|
|
2888
|
+
ResultPartMeta: {
|
|
2889
|
+
/** @description MIME type of the result file (e.g. 'model/gltf-binary', 'application/step') */
|
|
2890
|
+
mime: string;
|
|
2891
|
+
/** @description Size of the result file in bytes */
|
|
2892
|
+
bytes: number;
|
|
2893
|
+
};
|
|
2894
|
+
/** @description Success envelope containing a single task's full details */
|
|
2895
|
+
TaskDetailResponse: {
|
|
2896
|
+
/** @constant */
|
|
2897
|
+
ok: true;
|
|
2898
|
+
data: components["schemas"]["TaskDetail"];
|
|
2899
|
+
};
|
|
2900
|
+
/** @description Success response for task cancellation */
|
|
2901
|
+
CancelTaskResponse: {
|
|
2902
|
+
/** @constant */
|
|
2903
|
+
ok: true;
|
|
2904
|
+
data: components["schemas"]["CancelResult"];
|
|
2905
|
+
};
|
|
2906
|
+
/** @description Confirmation that a task was successfully cancelled */
|
|
2907
|
+
CancelResult: {
|
|
2908
|
+
/** @constant */
|
|
2909
|
+
cancelled: true;
|
|
2910
|
+
/** @description Status before cancellation */
|
|
2911
|
+
previousStatus: string;
|
|
2912
|
+
};
|
|
2913
|
+
/** @description Result download link for standard tasks, or a compound manifest with per-sub-task download links */
|
|
2914
|
+
TaskOrCompoundResultResponse: components["schemas"]["TaskResultResponse"] | components["schemas"]["CompoundResultManifestResponse"];
|
|
2915
|
+
/** @description Success envelope containing a download link for a task result */
|
|
2916
|
+
TaskResultResponse: {
|
|
2917
|
+
/** @constant */
|
|
2918
|
+
ok: true;
|
|
2919
|
+
data: components["schemas"]["TaskResultDownload"];
|
|
2920
|
+
};
|
|
2921
|
+
/** @description Download information for a completed task result */
|
|
2922
|
+
TaskResultDownload: {
|
|
2923
|
+
/**
|
|
2924
|
+
* Format: uri
|
|
2925
|
+
* @description Pre-signed URL to download the result file. Expires after 1 hour.
|
|
2926
|
+
*/
|
|
2927
|
+
downloadUrl: string;
|
|
2928
|
+
/**
|
|
2929
|
+
* @description Suggested filename for the download
|
|
2930
|
+
* @example result.glb
|
|
2931
|
+
*/
|
|
2932
|
+
filename: string;
|
|
2933
|
+
};
|
|
2934
|
+
/** @description Success envelope containing the compound task result manifest with per-sub-task download links */
|
|
2935
|
+
CompoundResultManifestResponse: {
|
|
2936
|
+
/** @constant */
|
|
2937
|
+
ok: true;
|
|
2938
|
+
data: components["schemas"]["CompoundResultManifest"];
|
|
2939
|
+
};
|
|
2940
|
+
/** @description Result manifest for a completed compound task */
|
|
2941
|
+
CompoundResultManifest: {
|
|
2942
|
+
/** @description Per-sub-task status and download links */
|
|
2943
|
+
manifest: components["schemas"]["CompoundResultEntry"][];
|
|
2944
|
+
};
|
|
2945
|
+
/** @description Status/result info for one sub-task in a compound manifest */
|
|
2946
|
+
CompoundResultEntry: {
|
|
2947
|
+
/** @description Sub-task ID */
|
|
2948
|
+
taskId: string;
|
|
2949
|
+
/** @description Position in the compound task */
|
|
2950
|
+
index: number;
|
|
2951
|
+
status: components["schemas"]["TaskStatus"];
|
|
2952
|
+
/** @description Download URLs keyed by format (only if completed) */
|
|
2953
|
+
downloadUrls?: {
|
|
2954
|
+
[key: string]: string;
|
|
2955
|
+
};
|
|
2956
|
+
};
|
|
2957
|
+
/** @description Success envelope containing download links for all result formats */
|
|
2958
|
+
TaskResultsResponse: {
|
|
2959
|
+
/** @constant */
|
|
2960
|
+
ok: true;
|
|
2961
|
+
data: components["schemas"]["TaskResultsDownload"];
|
|
2962
|
+
};
|
|
2963
|
+
/** @description Download information for all available result formats of a completed task */
|
|
2964
|
+
TaskResultsDownload: {
|
|
2965
|
+
/** @description Download links for all available result formats */
|
|
2966
|
+
downloads: {
|
|
2967
|
+
/** @description Result format key (e.g. 'glb', 'step', 'metadata') */
|
|
2968
|
+
format: string;
|
|
2969
|
+
/**
|
|
2970
|
+
* Format: uri
|
|
2971
|
+
* @description Pre-signed URL to download the result file. Expires after 1 hour.
|
|
2972
|
+
*/
|
|
2973
|
+
downloadUrl: string;
|
|
2974
|
+
/**
|
|
2975
|
+
* @description Suggested filename for the download
|
|
2976
|
+
* @example result.glb
|
|
2977
|
+
*/
|
|
2978
|
+
filename: string;
|
|
2979
|
+
}[];
|
|
2980
|
+
};
|
|
2981
|
+
/** @description Returned when a shape/face cannot be processed by the unfold. */
|
|
2982
|
+
UnfoldReportErrorOutput: {
|
|
2983
|
+
/** @constant */
|
|
2984
|
+
ok: false;
|
|
2985
|
+
error: string;
|
|
2986
|
+
};
|
|
2987
|
+
/** @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. */
|
|
2988
|
+
UnfoldSolidReportItemOutput: {
|
|
2989
|
+
/** @constant */
|
|
2990
|
+
ok: true;
|
|
2991
|
+
thickness: number;
|
|
2992
|
+
kFactor: number;
|
|
2993
|
+
warning: string;
|
|
2994
|
+
bends: components["schemas"]["UnfoldBendOutput"][];
|
|
2995
|
+
flatBBox: [
|
|
2996
|
+
number,
|
|
2997
|
+
number,
|
|
2998
|
+
number,
|
|
2999
|
+
number
|
|
3000
|
+
];
|
|
3001
|
+
flatArea: number;
|
|
3002
|
+
referenceArea: number;
|
|
3003
|
+
totalArea: number;
|
|
3004
|
+
faces: components["schemas"]["UnfoldFaceEntryOutput"][];
|
|
3005
|
+
placed: components["schemas"]["UnfoldPlacedOutput"][];
|
|
3006
|
+
} | components["schemas"]["UnfoldSolidReportErrorOutput"];
|
|
3007
|
+
/** @description One bend: line, angle, radii (inner/outer/neutral and per-end for cones), and developed lengths. */
|
|
3008
|
+
UnfoldBendOutput: {
|
|
3009
|
+
faceIndex: number;
|
|
3010
|
+
flatA: number;
|
|
3011
|
+
flatB: number;
|
|
3012
|
+
lineStart: [
|
|
3013
|
+
number,
|
|
3014
|
+
number,
|
|
3015
|
+
number
|
|
3016
|
+
];
|
|
3017
|
+
lineEnd: [
|
|
3018
|
+
number,
|
|
3019
|
+
number,
|
|
3020
|
+
number
|
|
3021
|
+
];
|
|
3022
|
+
lineMid: [
|
|
3023
|
+
number,
|
|
3024
|
+
number,
|
|
3025
|
+
number
|
|
3026
|
+
];
|
|
3027
|
+
bendLineLength: number;
|
|
3028
|
+
angleDeg: number;
|
|
3029
|
+
innerRadius: number;
|
|
3030
|
+
outerRadius: number;
|
|
3031
|
+
neutralRadius: number;
|
|
3032
|
+
innerRadiusStart: number;
|
|
3033
|
+
innerRadiusEnd: number;
|
|
3034
|
+
outerRadiusStart: number;
|
|
3035
|
+
outerRadiusEnd: number;
|
|
3036
|
+
T: number;
|
|
3037
|
+
K: number;
|
|
3038
|
+
allowance: number;
|
|
3039
|
+
bendDeduction: number;
|
|
3040
|
+
outsideSetback: number;
|
|
3041
|
+
innerArcLength: number;
|
|
3042
|
+
outerArcLength: number;
|
|
3043
|
+
/** @enum {string} */
|
|
3044
|
+
direction: "up" | "down";
|
|
3045
|
+
/** @enum {string} */
|
|
3046
|
+
kind: "cyl" | "cone";
|
|
3047
|
+
layoutApprox: boolean;
|
|
3048
|
+
};
|
|
3049
|
+
/** @description A classified source face: stable key (index + BRepGraph uid), role, and label anchors. */
|
|
3050
|
+
UnfoldFaceEntryOutput: {
|
|
3051
|
+
index: number;
|
|
3052
|
+
uid: number;
|
|
3053
|
+
/** @enum {string} */
|
|
3054
|
+
surfaceType: "Plane" | "Cylinder" | "Cone" | "Sphere" | "Torus" | "Other";
|
|
3055
|
+
/** @enum {string} */
|
|
3056
|
+
role: "referenceFlat" | "otherSideFlat" | "rim" | "flat" | "bend" | "coneBend" | "cutout" | "ignored";
|
|
3057
|
+
reference: boolean;
|
|
3058
|
+
opposite: number;
|
|
3059
|
+
area: number;
|
|
3060
|
+
centroid: [
|
|
3061
|
+
number,
|
|
3062
|
+
number,
|
|
3063
|
+
number
|
|
3064
|
+
];
|
|
3065
|
+
labelPoint: [
|
|
3066
|
+
number,
|
|
3067
|
+
number,
|
|
3068
|
+
number
|
|
3069
|
+
];
|
|
3070
|
+
/** @description Bend candidates (cylinder/cone) only: best |flange normal · cylinder radial| over the flanges. ~1 = tangent fold, ~0 = cutout/hole wall. */
|
|
3071
|
+
tangentDot?: number;
|
|
3072
|
+
/**
|
|
3073
|
+
* @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).
|
|
3074
|
+
* @enum {string}
|
|
3075
|
+
*/
|
|
3076
|
+
bendOutcome?: "fold" | "cutout" | "duplicate" | "";
|
|
3077
|
+
};
|
|
3078
|
+
/** @description A sub-shape laid into the flat compound, mapped back to its source face (compound order). */
|
|
3079
|
+
UnfoldPlacedOutput: {
|
|
3080
|
+
/** @enum {string} */
|
|
3081
|
+
kind: "flat" | "bendStrip";
|
|
3082
|
+
sourceFaceIndex: number;
|
|
3083
|
+
role: ("referenceFlat" | "otherSideFlat" | "rim" | "flat" | "bend" | "coneBend" | "cutout" | "ignored") | "unknown";
|
|
3084
|
+
flatCentroid: [
|
|
3085
|
+
number,
|
|
3086
|
+
number,
|
|
3087
|
+
number
|
|
3088
|
+
];
|
|
3089
|
+
};
|
|
3090
|
+
/** @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. */
|
|
3091
|
+
UnfoldSolidReportErrorOutput: {
|
|
3092
|
+
/** @constant */
|
|
3093
|
+
ok: false;
|
|
3094
|
+
error: string;
|
|
3095
|
+
thickness?: number;
|
|
3096
|
+
kFactor?: number;
|
|
3097
|
+
warning?: string;
|
|
3098
|
+
bends?: components["schemas"]["UnfoldBendOutput"][];
|
|
3099
|
+
flatBBox?: [
|
|
3100
|
+
number,
|
|
3101
|
+
number,
|
|
3102
|
+
number,
|
|
3103
|
+
number
|
|
3104
|
+
];
|
|
3105
|
+
flatArea?: number;
|
|
3106
|
+
referenceArea?: number;
|
|
3107
|
+
totalArea?: number;
|
|
3108
|
+
faces?: components["schemas"]["UnfoldFaceEntryOutput"][];
|
|
3109
|
+
placed?: components["schemas"]["UnfoldPlacedOutput"][];
|
|
3110
|
+
};
|
|
3111
|
+
/** @description Sheet-metal unfold metrics for a single face (surface type, developability, area before/after). */
|
|
3112
|
+
UnfoldFaceReport: {
|
|
3113
|
+
/** @constant */
|
|
3114
|
+
ok: true;
|
|
3115
|
+
faceIndex: number;
|
|
3116
|
+
/** @enum {string} */
|
|
3117
|
+
surfaceType: "Plane" | "Cylinder" | "Cone" | "Sphere" | "Torus" | "Other";
|
|
3118
|
+
developable: boolean;
|
|
3119
|
+
unfolded: boolean;
|
|
3120
|
+
area: number;
|
|
3121
|
+
flatArea: number;
|
|
3122
|
+
areaError: number;
|
|
3123
|
+
} | components["schemas"]["UnfoldReportErrorOutput"];
|
|
3124
|
+
/** @description Per-solid sheet-metal unfold metrics - one entry per solid in the STEP file (each carries its solidIndex). */
|
|
3125
|
+
UnfoldSolidReport: (components["schemas"]["UnfoldSolidReportItemOutput"] & {
|
|
3126
|
+
solidIndex: number;
|
|
3127
|
+
})[];
|
|
3128
|
+
};
|
|
3129
|
+
responses: never;
|
|
3130
|
+
parameters: never;
|
|
3131
|
+
requestBodies: never;
|
|
3132
|
+
headers: never;
|
|
3133
|
+
pathItems: never;
|
|
3134
|
+
}
|
|
3135
|
+
export type $defs = Record<string, never>;
|
|
3136
|
+
export type operations = Record<string, never>;
|