@bitbybit-dev/cad-cloud-sdk 1.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +83 -0
- package/dist/client.d.ts +66 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +124 -0
- package/dist/client.js.map +1 -0
- package/dist/endpoints/cad.d.ts +29 -0
- package/dist/endpoints/cad.d.ts.map +1 -0
- package/dist/endpoints/cad.js +43 -0
- package/dist/endpoints/cad.js.map +1 -0
- package/dist/endpoints/convert.d.ts +27 -0
- package/dist/endpoints/convert.d.ts.map +1 -0
- package/dist/endpoints/convert.js +39 -0
- package/dist/endpoints/convert.js.map +1 -0
- package/dist/endpoints/files.d.ts +30 -0
- package/dist/endpoints/files.d.ts.map +1 -0
- package/dist/endpoints/files.js +69 -0
- package/dist/endpoints/files.js.map +1 -0
- package/dist/endpoints/index.d.ts +6 -0
- package/dist/endpoints/index.d.ts.map +1 -0
- package/dist/endpoints/index.js +6 -0
- package/dist/endpoints/index.js.map +1 -0
- package/dist/endpoints/models.d.ts +50 -0
- package/dist/endpoints/models.d.ts.map +1 -0
- package/dist/endpoints/models.js +76 -0
- package/dist/endpoints/models.js.map +1 -0
- package/dist/endpoints/tasks.d.ts +37 -0
- package/dist/endpoints/tasks.d.ts.map +1 -0
- package/dist/endpoints/tasks.js +70 -0
- package/dist/endpoints/tasks.js.map +1 -0
- package/dist/errors.d.ts +14 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +18 -0
- package/dist/errors.js.map +1 -0
- package/dist/fetch-downloads.d.ts +9 -0
- package/dist/fetch-downloads.d.ts.map +1 -0
- package/dist/fetch-downloads.js +15 -0
- package/dist/fetch-downloads.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -0
- package/dist/polling.d.ts +18 -0
- package/dist/polling.d.ts.map +1 -0
- package/dist/polling.js +58 -0
- package/dist/polling.js.map +1 -0
- package/dist/types/custom.d.ts +37 -0
- package/dist/types/custom.d.ts.map +1 -0
- package/dist/types/custom.js +7 -0
- package/dist/types/custom.js.map +1 -0
- package/dist/types/generated.d.ts +2168 -0
- package/dist/types/generated.d.ts.map +1 -0
- package/dist/types/generated.js +6 -0
- package/dist/types/generated.js.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +8 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/schema-exports.d.ts +155 -0
- package/dist/types/schema-exports.d.ts.map +1 -0
- package/dist/types/schema-exports.js +5 -0
- package/dist/types/schema-exports.js.map +1 -0
- package/dist/unwrap.d.ts +6 -0
- package/dist/unwrap.d.ts.map +1 -0
- package/dist/unwrap.js +22 -0
- package/dist/unwrap.js.map +1 -0
- package/dist/validation/index.d.ts +2 -0
- package/dist/validation/index.d.ts.map +1 -0
- package/dist/validation/index.js +2 -0
- package/dist/validation/index.js.map +1 -0
- package/dist/validation/request-schemas.d.ts +570 -0
- package/dist/validation/request-schemas.d.ts.map +1 -0
- package/dist/validation/request-schemas.js +628 -0
- package/dist/validation/request-schemas.js.map +1 -0
- package/dist/validation/validator.d.ts +17 -0
- package/dist/validation/validator.d.ts.map +1 -0
- package/dist/validation/validator.js +61 -0
- package/dist/validation/validator.js.map +1 -0
- package/package.json +88 -0
|
@@ -0,0 +1,2168 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
export interface paths {
|
|
6
|
+
"/health": {
|
|
7
|
+
parameters: {
|
|
8
|
+
query?: never;
|
|
9
|
+
header?: never;
|
|
10
|
+
path?: never;
|
|
11
|
+
cookie?: never;
|
|
12
|
+
};
|
|
13
|
+
/** Health check */
|
|
14
|
+
get: {
|
|
15
|
+
parameters: {
|
|
16
|
+
query?: never;
|
|
17
|
+
header?: never;
|
|
18
|
+
path?: never;
|
|
19
|
+
cookie?: never;
|
|
20
|
+
};
|
|
21
|
+
requestBody?: never;
|
|
22
|
+
responses: {
|
|
23
|
+
/** @description Health status */
|
|
24
|
+
200: {
|
|
25
|
+
headers: {
|
|
26
|
+
[name: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
content: {
|
|
29
|
+
"application/json": components["schemas"]["HealthResponse"];
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
put?: never;
|
|
35
|
+
post?: never;
|
|
36
|
+
delete?: never;
|
|
37
|
+
options?: never;
|
|
38
|
+
head?: never;
|
|
39
|
+
patch?: never;
|
|
40
|
+
trace?: never;
|
|
41
|
+
};
|
|
42
|
+
"/api/v1/cad/execute": {
|
|
43
|
+
parameters: {
|
|
44
|
+
query?: never;
|
|
45
|
+
header?: never;
|
|
46
|
+
path?: never;
|
|
47
|
+
cookie?: never;
|
|
48
|
+
};
|
|
49
|
+
get?: never;
|
|
50
|
+
put?: never;
|
|
51
|
+
/**
|
|
52
|
+
* Execute a single CAD operation
|
|
53
|
+
* @description Runs a single CAD operation by its fully-qualified identifier.
|
|
54
|
+
*/
|
|
55
|
+
post: {
|
|
56
|
+
parameters: {
|
|
57
|
+
query?: never;
|
|
58
|
+
header?: never;
|
|
59
|
+
path?: never;
|
|
60
|
+
cookie?: never;
|
|
61
|
+
};
|
|
62
|
+
requestBody: {
|
|
63
|
+
content: {
|
|
64
|
+
"application/json": components["schemas"]["ExecuteBody"];
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
responses: {
|
|
68
|
+
/** @description Operation result */
|
|
69
|
+
200: {
|
|
70
|
+
headers: {
|
|
71
|
+
[name: string]: unknown;
|
|
72
|
+
};
|
|
73
|
+
content: {
|
|
74
|
+
"application/json": components["schemas"]["CadOperationResponse"];
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
/** @description Validation error */
|
|
78
|
+
400: {
|
|
79
|
+
headers: {
|
|
80
|
+
[name: string]: unknown;
|
|
81
|
+
};
|
|
82
|
+
content: {
|
|
83
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
/** @description Server error */
|
|
87
|
+
500: {
|
|
88
|
+
headers: {
|
|
89
|
+
[name: string]: unknown;
|
|
90
|
+
};
|
|
91
|
+
content: {
|
|
92
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
delete?: never;
|
|
98
|
+
options?: never;
|
|
99
|
+
head?: never;
|
|
100
|
+
patch?: never;
|
|
101
|
+
trace?: never;
|
|
102
|
+
};
|
|
103
|
+
"/api/v1/cad/pipeline": {
|
|
104
|
+
parameters: {
|
|
105
|
+
query?: never;
|
|
106
|
+
header?: never;
|
|
107
|
+
path?: never;
|
|
108
|
+
cookie?: never;
|
|
109
|
+
};
|
|
110
|
+
get?: never;
|
|
111
|
+
put?: never;
|
|
112
|
+
/**
|
|
113
|
+
* Execute a chained pipeline of CAD operations
|
|
114
|
+
* @description Runs multiple operations sequentially. Use '$ref:N' in params to reference step N's result.
|
|
115
|
+
*/
|
|
116
|
+
post: {
|
|
117
|
+
parameters: {
|
|
118
|
+
query?: never;
|
|
119
|
+
header?: never;
|
|
120
|
+
path?: never;
|
|
121
|
+
cookie?: never;
|
|
122
|
+
};
|
|
123
|
+
requestBody: {
|
|
124
|
+
content: {
|
|
125
|
+
"application/json": components["schemas"]["PipelineBody"];
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
responses: {
|
|
129
|
+
/** @description Pipeline result (last step) */
|
|
130
|
+
200: {
|
|
131
|
+
headers: {
|
|
132
|
+
[name: string]: unknown;
|
|
133
|
+
};
|
|
134
|
+
content: {
|
|
135
|
+
"application/json": components["schemas"]["CadOperationResponse"];
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
/** @description Validation error */
|
|
139
|
+
400: {
|
|
140
|
+
headers: {
|
|
141
|
+
[name: string]: unknown;
|
|
142
|
+
};
|
|
143
|
+
content: {
|
|
144
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
/** @description Server error */
|
|
148
|
+
500: {
|
|
149
|
+
headers: {
|
|
150
|
+
[name: string]: unknown;
|
|
151
|
+
};
|
|
152
|
+
content: {
|
|
153
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
delete?: never;
|
|
159
|
+
options?: never;
|
|
160
|
+
head?: never;
|
|
161
|
+
patch?: never;
|
|
162
|
+
trace?: never;
|
|
163
|
+
};
|
|
164
|
+
"/api/v1/cad/compound": {
|
|
165
|
+
parameters: {
|
|
166
|
+
query?: never;
|
|
167
|
+
header?: never;
|
|
168
|
+
path?: never;
|
|
169
|
+
cookie?: never;
|
|
170
|
+
};
|
|
171
|
+
get?: never;
|
|
172
|
+
put?: never;
|
|
173
|
+
/**
|
|
174
|
+
* Execute compound (parallel) CAD operations
|
|
175
|
+
* @description Runs multiple independent operations in parallel.
|
|
176
|
+
*/
|
|
177
|
+
post: {
|
|
178
|
+
parameters: {
|
|
179
|
+
query?: never;
|
|
180
|
+
header?: never;
|
|
181
|
+
path?: never;
|
|
182
|
+
cookie?: never;
|
|
183
|
+
};
|
|
184
|
+
requestBody: {
|
|
185
|
+
content: {
|
|
186
|
+
"application/json": components["schemas"]["CompoundExecuteBody"];
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
responses: {
|
|
190
|
+
/** @description Compound result */
|
|
191
|
+
200: {
|
|
192
|
+
headers: {
|
|
193
|
+
[name: string]: unknown;
|
|
194
|
+
};
|
|
195
|
+
content: {
|
|
196
|
+
"application/json": components["schemas"]["CadOperationResponse"];
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
/** @description Validation error */
|
|
200
|
+
400: {
|
|
201
|
+
headers: {
|
|
202
|
+
[name: string]: unknown;
|
|
203
|
+
};
|
|
204
|
+
content: {
|
|
205
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
/** @description Server error */
|
|
209
|
+
500: {
|
|
210
|
+
headers: {
|
|
211
|
+
[name: string]: unknown;
|
|
212
|
+
};
|
|
213
|
+
content: {
|
|
214
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
delete?: never;
|
|
220
|
+
options?: never;
|
|
221
|
+
head?: never;
|
|
222
|
+
patch?: never;
|
|
223
|
+
trace?: never;
|
|
224
|
+
};
|
|
225
|
+
"/api/v1/models": {
|
|
226
|
+
parameters: {
|
|
227
|
+
query?: never;
|
|
228
|
+
header?: never;
|
|
229
|
+
path?: never;
|
|
230
|
+
cookie?: never;
|
|
231
|
+
};
|
|
232
|
+
/** List available parametric models */
|
|
233
|
+
get: {
|
|
234
|
+
parameters: {
|
|
235
|
+
query?: never;
|
|
236
|
+
header?: never;
|
|
237
|
+
path?: never;
|
|
238
|
+
cookie?: never;
|
|
239
|
+
};
|
|
240
|
+
requestBody?: never;
|
|
241
|
+
responses: {
|
|
242
|
+
/** @description Model name list */
|
|
243
|
+
200: {
|
|
244
|
+
headers: {
|
|
245
|
+
[name: string]: unknown;
|
|
246
|
+
};
|
|
247
|
+
content: {
|
|
248
|
+
"application/json": components["schemas"]["ModelListResponse"];
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
put?: never;
|
|
254
|
+
post?: never;
|
|
255
|
+
delete?: never;
|
|
256
|
+
options?: never;
|
|
257
|
+
head?: never;
|
|
258
|
+
patch?: never;
|
|
259
|
+
trace?: never;
|
|
260
|
+
};
|
|
261
|
+
"/api/v1/models/definitions": {
|
|
262
|
+
parameters: {
|
|
263
|
+
query?: never;
|
|
264
|
+
header?: never;
|
|
265
|
+
path?: never;
|
|
266
|
+
cookie?: never;
|
|
267
|
+
};
|
|
268
|
+
get?: never;
|
|
269
|
+
put?: never;
|
|
270
|
+
/**
|
|
271
|
+
* Batch-fetch model definitions
|
|
272
|
+
* @description Returns parameter schemas and defaults for the requested model names.
|
|
273
|
+
*/
|
|
274
|
+
post: {
|
|
275
|
+
parameters: {
|
|
276
|
+
query?: never;
|
|
277
|
+
header?: never;
|
|
278
|
+
path?: never;
|
|
279
|
+
cookie?: never;
|
|
280
|
+
};
|
|
281
|
+
requestBody: {
|
|
282
|
+
content: {
|
|
283
|
+
"application/json": components["schemas"]["DefinitionsBody"];
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
responses: {
|
|
287
|
+
/** @description Model definitions */
|
|
288
|
+
200: {
|
|
289
|
+
headers: {
|
|
290
|
+
[name: string]: unknown;
|
|
291
|
+
};
|
|
292
|
+
content: {
|
|
293
|
+
"application/json": components["schemas"]["ModelBatchDefinitionsResponse"];
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
/** @description Validation error */
|
|
297
|
+
400: {
|
|
298
|
+
headers: {
|
|
299
|
+
[name: string]: unknown;
|
|
300
|
+
};
|
|
301
|
+
content: {
|
|
302
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
delete?: never;
|
|
308
|
+
options?: never;
|
|
309
|
+
head?: never;
|
|
310
|
+
patch?: never;
|
|
311
|
+
trace?: never;
|
|
312
|
+
};
|
|
313
|
+
"/api/v1/models/{modelName}": {
|
|
314
|
+
parameters: {
|
|
315
|
+
query?: never;
|
|
316
|
+
header?: never;
|
|
317
|
+
path?: never;
|
|
318
|
+
cookie?: never;
|
|
319
|
+
};
|
|
320
|
+
get?: never;
|
|
321
|
+
put?: never;
|
|
322
|
+
/**
|
|
323
|
+
* Execute a parametric CAD model
|
|
324
|
+
* @description Generic endpoint — works for any registered model. See model-specific endpoints for fully typed parameters. Always returns 202 with a task ID for polling.
|
|
325
|
+
*/
|
|
326
|
+
post: {
|
|
327
|
+
parameters: {
|
|
328
|
+
query?: never;
|
|
329
|
+
header?: never;
|
|
330
|
+
path: {
|
|
331
|
+
/** @description Model slug (e.g. dragon-cup, phone-nest) */
|
|
332
|
+
modelName: string;
|
|
333
|
+
};
|
|
334
|
+
cookie?: never;
|
|
335
|
+
};
|
|
336
|
+
requestBody: {
|
|
337
|
+
content: {
|
|
338
|
+
"application/json": components["schemas"]["ModelSubmissionBody"];
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
responses: {
|
|
342
|
+
/** @description Task accepted */
|
|
343
|
+
202: {
|
|
344
|
+
headers: {
|
|
345
|
+
[name: string]: unknown;
|
|
346
|
+
};
|
|
347
|
+
content: {
|
|
348
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
/** @description Validation error */
|
|
352
|
+
400: {
|
|
353
|
+
headers: {
|
|
354
|
+
[name: string]: unknown;
|
|
355
|
+
};
|
|
356
|
+
content: {
|
|
357
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
/** @description Not found */
|
|
361
|
+
404: {
|
|
362
|
+
headers: {
|
|
363
|
+
[name: string]: unknown;
|
|
364
|
+
};
|
|
365
|
+
content: {
|
|
366
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
/** @description Server error */
|
|
370
|
+
500: {
|
|
371
|
+
headers: {
|
|
372
|
+
[name: string]: unknown;
|
|
373
|
+
};
|
|
374
|
+
content: {
|
|
375
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
delete?: never;
|
|
381
|
+
options?: never;
|
|
382
|
+
head?: never;
|
|
383
|
+
patch?: never;
|
|
384
|
+
trace?: never;
|
|
385
|
+
};
|
|
386
|
+
"/api/v1/models/{modelName}/batch": {
|
|
387
|
+
parameters: {
|
|
388
|
+
query?: never;
|
|
389
|
+
header?: never;
|
|
390
|
+
path?: never;
|
|
391
|
+
cookie?: never;
|
|
392
|
+
};
|
|
393
|
+
get?: never;
|
|
394
|
+
put?: never;
|
|
395
|
+
/**
|
|
396
|
+
* Generate a batch of parametric models
|
|
397
|
+
* @description Creates a compound task with one sub-task per item. Each item can have different parameters but shares the same output config.
|
|
398
|
+
*/
|
|
399
|
+
post: {
|
|
400
|
+
parameters: {
|
|
401
|
+
query?: never;
|
|
402
|
+
header?: never;
|
|
403
|
+
path: {
|
|
404
|
+
/** @description Model slug (e.g. dragon-cup, phone-nest) */
|
|
405
|
+
modelName: string;
|
|
406
|
+
};
|
|
407
|
+
cookie?: never;
|
|
408
|
+
};
|
|
409
|
+
requestBody: {
|
|
410
|
+
content: {
|
|
411
|
+
"application/json": components["schemas"]["BatchModelSubmissionBody"];
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
responses: {
|
|
415
|
+
/** @description Compound task accepted */
|
|
416
|
+
202: {
|
|
417
|
+
headers: {
|
|
418
|
+
[name: string]: unknown;
|
|
419
|
+
};
|
|
420
|
+
content: {
|
|
421
|
+
"application/json": components["schemas"]["CompoundTaskAcceptedResponse"];
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
/** @description Validation error */
|
|
425
|
+
400: {
|
|
426
|
+
headers: {
|
|
427
|
+
[name: string]: unknown;
|
|
428
|
+
};
|
|
429
|
+
content: {
|
|
430
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
/** @description Not found */
|
|
434
|
+
404: {
|
|
435
|
+
headers: {
|
|
436
|
+
[name: string]: unknown;
|
|
437
|
+
};
|
|
438
|
+
content: {
|
|
439
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
/** @description Server error */
|
|
443
|
+
500: {
|
|
444
|
+
headers: {
|
|
445
|
+
[name: string]: unknown;
|
|
446
|
+
};
|
|
447
|
+
content: {
|
|
448
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
delete?: never;
|
|
454
|
+
options?: never;
|
|
455
|
+
head?: never;
|
|
456
|
+
patch?: never;
|
|
457
|
+
trace?: never;
|
|
458
|
+
};
|
|
459
|
+
"/api/v1/models/{modelName}/params": {
|
|
460
|
+
parameters: {
|
|
461
|
+
query?: never;
|
|
462
|
+
header?: never;
|
|
463
|
+
path?: never;
|
|
464
|
+
cookie?: never;
|
|
465
|
+
};
|
|
466
|
+
/**
|
|
467
|
+
* Get model parameter definitions
|
|
468
|
+
* @description Returns parameter schema, types, defaults, and limits for the specified model.
|
|
469
|
+
*/
|
|
470
|
+
get: {
|
|
471
|
+
parameters: {
|
|
472
|
+
query?: never;
|
|
473
|
+
header?: never;
|
|
474
|
+
path: {
|
|
475
|
+
/** @description Model slug (e.g. dragon-cup, phone-nest) */
|
|
476
|
+
modelName: string;
|
|
477
|
+
};
|
|
478
|
+
cookie?: never;
|
|
479
|
+
};
|
|
480
|
+
requestBody?: never;
|
|
481
|
+
responses: {
|
|
482
|
+
/** @description Model definition */
|
|
483
|
+
200: {
|
|
484
|
+
headers: {
|
|
485
|
+
[name: string]: unknown;
|
|
486
|
+
};
|
|
487
|
+
content: {
|
|
488
|
+
"application/json": components["schemas"]["ModelDefinitionResponse"];
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
/** @description Not found */
|
|
492
|
+
404: {
|
|
493
|
+
headers: {
|
|
494
|
+
[name: string]: unknown;
|
|
495
|
+
};
|
|
496
|
+
content: {
|
|
497
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
put?: never;
|
|
503
|
+
post?: never;
|
|
504
|
+
delete?: never;
|
|
505
|
+
options?: never;
|
|
506
|
+
head?: never;
|
|
507
|
+
patch?: never;
|
|
508
|
+
trace?: never;
|
|
509
|
+
};
|
|
510
|
+
"/api/v1/models/dragon-cup": {
|
|
511
|
+
parameters: {
|
|
512
|
+
query?: never;
|
|
513
|
+
header?: never;
|
|
514
|
+
path?: never;
|
|
515
|
+
cookie?: never;
|
|
516
|
+
};
|
|
517
|
+
get?: never;
|
|
518
|
+
put?: never;
|
|
519
|
+
/**
|
|
520
|
+
* Build a Dragon Cup
|
|
521
|
+
* @description Parametric dragon-scale textured cup with twisted lofted body, voronoi-like skin cells, and configurable shell thickness. All parameters are optional — defaults produce a ready-to-print model.
|
|
522
|
+
*/
|
|
523
|
+
post: {
|
|
524
|
+
parameters: {
|
|
525
|
+
query?: never;
|
|
526
|
+
header?: never;
|
|
527
|
+
path?: never;
|
|
528
|
+
cookie?: never;
|
|
529
|
+
};
|
|
530
|
+
requestBody: {
|
|
531
|
+
content: {
|
|
532
|
+
/**
|
|
533
|
+
* @example {
|
|
534
|
+
* "params": {
|
|
535
|
+
* "height": 8,
|
|
536
|
+
* "radiusBottom": 4,
|
|
537
|
+
* "radiusTopOffset": 2,
|
|
538
|
+
* "radiusMidOffset": 2,
|
|
539
|
+
* "rotationTopAngle": 20,
|
|
540
|
+
* "rotationMidAngle": 20,
|
|
541
|
+
* "nrSkinCellsVertical": 5,
|
|
542
|
+
* "nrSkinCellsHorizontal": 10,
|
|
543
|
+
* "nrSkinCellDivisionsTop": 1,
|
|
544
|
+
* "nrSkinCellDivisionsBottom": 3,
|
|
545
|
+
* "skinCellOuterHeight": 0.4,
|
|
546
|
+
* "skinCellInnerHeight": 0.3,
|
|
547
|
+
* "skinCellBottomHeight": 0.4,
|
|
548
|
+
* "skinCellTopHeight": 0.4,
|
|
549
|
+
* "thickness": 0.6,
|
|
550
|
+
* "bottomThickness": 1,
|
|
551
|
+
* "precision": 0.01,
|
|
552
|
+
* "rotation": 0,
|
|
553
|
+
* "scale": 1,
|
|
554
|
+
* "origin": [
|
|
555
|
+
* 0,
|
|
556
|
+
* 0,
|
|
557
|
+
* 0
|
|
558
|
+
* ],
|
|
559
|
+
* "direction": [
|
|
560
|
+
* 0,
|
|
561
|
+
* 1,
|
|
562
|
+
* 0
|
|
563
|
+
* ]
|
|
564
|
+
* },
|
|
565
|
+
* "outputs": {
|
|
566
|
+
* "formats": [
|
|
567
|
+
* "step",
|
|
568
|
+
* "gltf"
|
|
569
|
+
* ]
|
|
570
|
+
* }
|
|
571
|
+
* }
|
|
572
|
+
*/
|
|
573
|
+
"application/json": components["schemas"]["DragonCupBody"];
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
responses: {
|
|
577
|
+
/** @description Task accepted */
|
|
578
|
+
202: {
|
|
579
|
+
headers: {
|
|
580
|
+
[name: string]: unknown;
|
|
581
|
+
};
|
|
582
|
+
content: {
|
|
583
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
/** @description Validation error */
|
|
587
|
+
400: {
|
|
588
|
+
headers: {
|
|
589
|
+
[name: string]: unknown;
|
|
590
|
+
};
|
|
591
|
+
content: {
|
|
592
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
593
|
+
};
|
|
594
|
+
};
|
|
595
|
+
/** @description Server error */
|
|
596
|
+
500: {
|
|
597
|
+
headers: {
|
|
598
|
+
[name: string]: unknown;
|
|
599
|
+
};
|
|
600
|
+
content: {
|
|
601
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
delete?: never;
|
|
607
|
+
options?: never;
|
|
608
|
+
head?: never;
|
|
609
|
+
patch?: never;
|
|
610
|
+
trace?: never;
|
|
611
|
+
};
|
|
612
|
+
"/api/v1/models/phone-nest": {
|
|
613
|
+
parameters: {
|
|
614
|
+
query?: never;
|
|
615
|
+
header?: never;
|
|
616
|
+
path?: never;
|
|
617
|
+
cookie?: never;
|
|
618
|
+
};
|
|
619
|
+
get?: never;
|
|
620
|
+
put?: never;
|
|
621
|
+
/**
|
|
622
|
+
* Build a Phone Nest
|
|
623
|
+
* @description Parametric 3D-printable desktop phone holder/stand with a lofted cradle surface, optional ornamental perforations, and a phone mock-up shape. All parameters are optional — defaults produce a ready-to-print model.
|
|
624
|
+
*/
|
|
625
|
+
post: {
|
|
626
|
+
parameters: {
|
|
627
|
+
query?: never;
|
|
628
|
+
header?: never;
|
|
629
|
+
path?: never;
|
|
630
|
+
cookie?: never;
|
|
631
|
+
};
|
|
632
|
+
requestBody: {
|
|
633
|
+
content: {
|
|
634
|
+
/**
|
|
635
|
+
* @example {
|
|
636
|
+
* "params": {
|
|
637
|
+
* "heightBottom": 5,
|
|
638
|
+
* "heightTop": 16,
|
|
639
|
+
* "widthBack": 25,
|
|
640
|
+
* "widthFront": 10,
|
|
641
|
+
* "length": 16,
|
|
642
|
+
* "backOffset": 6,
|
|
643
|
+
* "thickness": 0.4,
|
|
644
|
+
* "applyOrnaments": false,
|
|
645
|
+
* "filletRadius": 2,
|
|
646
|
+
* "phoneHeight": 16.8,
|
|
647
|
+
* "phoneWidth": 7.8,
|
|
648
|
+
* "phoneThickness": 0.7,
|
|
649
|
+
* "precision": 0.01,
|
|
650
|
+
* "rotation": 0,
|
|
651
|
+
* "scale": 1,
|
|
652
|
+
* "origin": [
|
|
653
|
+
* 0,
|
|
654
|
+
* 0,
|
|
655
|
+
* 0
|
|
656
|
+
* ],
|
|
657
|
+
* "direction": [
|
|
658
|
+
* 0,
|
|
659
|
+
* 1,
|
|
660
|
+
* 0
|
|
661
|
+
* ]
|
|
662
|
+
* },
|
|
663
|
+
* "outputs": {
|
|
664
|
+
* "formats": [
|
|
665
|
+
* "step",
|
|
666
|
+
* "gltf"
|
|
667
|
+
* ]
|
|
668
|
+
* }
|
|
669
|
+
* }
|
|
670
|
+
*/
|
|
671
|
+
"application/json": components["schemas"]["PhoneNestBody"];
|
|
672
|
+
};
|
|
673
|
+
};
|
|
674
|
+
responses: {
|
|
675
|
+
/** @description Task accepted */
|
|
676
|
+
202: {
|
|
677
|
+
headers: {
|
|
678
|
+
[name: string]: unknown;
|
|
679
|
+
};
|
|
680
|
+
content: {
|
|
681
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
/** @description Validation error */
|
|
685
|
+
400: {
|
|
686
|
+
headers: {
|
|
687
|
+
[name: string]: unknown;
|
|
688
|
+
};
|
|
689
|
+
content: {
|
|
690
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
691
|
+
};
|
|
692
|
+
};
|
|
693
|
+
/** @description Server error */
|
|
694
|
+
500: {
|
|
695
|
+
headers: {
|
|
696
|
+
[name: string]: unknown;
|
|
697
|
+
};
|
|
698
|
+
content: {
|
|
699
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
700
|
+
};
|
|
701
|
+
};
|
|
702
|
+
};
|
|
703
|
+
};
|
|
704
|
+
delete?: never;
|
|
705
|
+
options?: never;
|
|
706
|
+
head?: never;
|
|
707
|
+
patch?: never;
|
|
708
|
+
trace?: never;
|
|
709
|
+
};
|
|
710
|
+
"/api/v1/convert/step-to-gltf": {
|
|
711
|
+
parameters: {
|
|
712
|
+
query?: never;
|
|
713
|
+
header?: never;
|
|
714
|
+
path?: never;
|
|
715
|
+
cookie?: never;
|
|
716
|
+
};
|
|
717
|
+
get?: never;
|
|
718
|
+
put?: never;
|
|
719
|
+
/**
|
|
720
|
+
* Convert a STEP file to GLTF (.glb)
|
|
721
|
+
* @description Simple STEP → glTF conversion using a previously uploaded file. Requires the 'convert' API key scope. Returns 202 with a task ID.
|
|
722
|
+
*/
|
|
723
|
+
post: {
|
|
724
|
+
parameters: {
|
|
725
|
+
query?: never;
|
|
726
|
+
header?: never;
|
|
727
|
+
path?: never;
|
|
728
|
+
cookie?: never;
|
|
729
|
+
};
|
|
730
|
+
requestBody: {
|
|
731
|
+
content: {
|
|
732
|
+
"application/json": components["schemas"]["StepToGltfBody"];
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
responses: {
|
|
736
|
+
/** @description Task accepted */
|
|
737
|
+
202: {
|
|
738
|
+
headers: {
|
|
739
|
+
[name: string]: unknown;
|
|
740
|
+
};
|
|
741
|
+
content: {
|
|
742
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
743
|
+
};
|
|
744
|
+
};
|
|
745
|
+
/** @description Validation error */
|
|
746
|
+
400: {
|
|
747
|
+
headers: {
|
|
748
|
+
[name: string]: unknown;
|
|
749
|
+
};
|
|
750
|
+
content: {
|
|
751
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
752
|
+
};
|
|
753
|
+
};
|
|
754
|
+
/** @description Insufficient scope */
|
|
755
|
+
403: {
|
|
756
|
+
headers: {
|
|
757
|
+
[name: string]: unknown;
|
|
758
|
+
};
|
|
759
|
+
content: {
|
|
760
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
761
|
+
};
|
|
762
|
+
};
|
|
763
|
+
/** @description Server error */
|
|
764
|
+
500: {
|
|
765
|
+
headers: {
|
|
766
|
+
[name: string]: unknown;
|
|
767
|
+
};
|
|
768
|
+
content: {
|
|
769
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
770
|
+
};
|
|
771
|
+
};
|
|
772
|
+
};
|
|
773
|
+
};
|
|
774
|
+
delete?: never;
|
|
775
|
+
options?: never;
|
|
776
|
+
head?: never;
|
|
777
|
+
patch?: never;
|
|
778
|
+
trace?: never;
|
|
779
|
+
};
|
|
780
|
+
"/api/v1/convert/step-to-gltf-advanced": {
|
|
781
|
+
parameters: {
|
|
782
|
+
query?: never;
|
|
783
|
+
header?: never;
|
|
784
|
+
path?: never;
|
|
785
|
+
cookie?: never;
|
|
786
|
+
};
|
|
787
|
+
get?: never;
|
|
788
|
+
put?: never;
|
|
789
|
+
/**
|
|
790
|
+
* Convert a STEP file to GLTF (.glb) - advanced options
|
|
791
|
+
* @description Full-control STEP → glTF conversion with fine-grained mesh, export, and coordinate options. Requires the 'convert' API key scope. Returns 202 with a task ID.
|
|
792
|
+
*/
|
|
793
|
+
post: {
|
|
794
|
+
parameters: {
|
|
795
|
+
query?: never;
|
|
796
|
+
header?: never;
|
|
797
|
+
path?: never;
|
|
798
|
+
cookie?: never;
|
|
799
|
+
};
|
|
800
|
+
requestBody: {
|
|
801
|
+
content: {
|
|
802
|
+
"application/json": components["schemas"]["StepToGltfAdvancedBody"];
|
|
803
|
+
};
|
|
804
|
+
};
|
|
805
|
+
responses: {
|
|
806
|
+
/** @description Task accepted */
|
|
807
|
+
202: {
|
|
808
|
+
headers: {
|
|
809
|
+
[name: string]: unknown;
|
|
810
|
+
};
|
|
811
|
+
content: {
|
|
812
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
813
|
+
};
|
|
814
|
+
};
|
|
815
|
+
/** @description Validation error */
|
|
816
|
+
400: {
|
|
817
|
+
headers: {
|
|
818
|
+
[name: string]: unknown;
|
|
819
|
+
};
|
|
820
|
+
content: {
|
|
821
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
822
|
+
};
|
|
823
|
+
};
|
|
824
|
+
/** @description Insufficient scope */
|
|
825
|
+
403: {
|
|
826
|
+
headers: {
|
|
827
|
+
[name: string]: unknown;
|
|
828
|
+
};
|
|
829
|
+
content: {
|
|
830
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
831
|
+
};
|
|
832
|
+
};
|
|
833
|
+
/** @description Server error */
|
|
834
|
+
500: {
|
|
835
|
+
headers: {
|
|
836
|
+
[name: string]: unknown;
|
|
837
|
+
};
|
|
838
|
+
content: {
|
|
839
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
840
|
+
};
|
|
841
|
+
};
|
|
842
|
+
};
|
|
843
|
+
};
|
|
844
|
+
delete?: never;
|
|
845
|
+
options?: never;
|
|
846
|
+
head?: never;
|
|
847
|
+
patch?: never;
|
|
848
|
+
trace?: never;
|
|
849
|
+
};
|
|
850
|
+
"/api/v1/files/upload": {
|
|
851
|
+
parameters: {
|
|
852
|
+
query?: never;
|
|
853
|
+
header?: never;
|
|
854
|
+
path?: never;
|
|
855
|
+
cookie?: never;
|
|
856
|
+
};
|
|
857
|
+
get?: never;
|
|
858
|
+
put?: never;
|
|
859
|
+
/**
|
|
860
|
+
* Request a file upload URL
|
|
861
|
+
* @description Returns a pre-signed URL for uploading a file via PUT.
|
|
862
|
+
*/
|
|
863
|
+
post: {
|
|
864
|
+
parameters: {
|
|
865
|
+
query?: never;
|
|
866
|
+
header?: never;
|
|
867
|
+
path?: never;
|
|
868
|
+
cookie?: never;
|
|
869
|
+
};
|
|
870
|
+
requestBody: {
|
|
871
|
+
content: {
|
|
872
|
+
"application/json": components["schemas"]["FileUploadBody"];
|
|
873
|
+
};
|
|
874
|
+
};
|
|
875
|
+
responses: {
|
|
876
|
+
/** @description Upload URL and file ID */
|
|
877
|
+
201: {
|
|
878
|
+
headers: {
|
|
879
|
+
[name: string]: unknown;
|
|
880
|
+
};
|
|
881
|
+
content: {
|
|
882
|
+
"application/json": components["schemas"]["UploadResponse"];
|
|
883
|
+
};
|
|
884
|
+
};
|
|
885
|
+
/** @description Validation error */
|
|
886
|
+
400: {
|
|
887
|
+
headers: {
|
|
888
|
+
[name: string]: unknown;
|
|
889
|
+
};
|
|
890
|
+
content: {
|
|
891
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
892
|
+
};
|
|
893
|
+
};
|
|
894
|
+
/** @description Server error */
|
|
895
|
+
500: {
|
|
896
|
+
headers: {
|
|
897
|
+
[name: string]: unknown;
|
|
898
|
+
};
|
|
899
|
+
content: {
|
|
900
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
901
|
+
};
|
|
902
|
+
};
|
|
903
|
+
};
|
|
904
|
+
};
|
|
905
|
+
delete?: never;
|
|
906
|
+
options?: never;
|
|
907
|
+
head?: never;
|
|
908
|
+
patch?: never;
|
|
909
|
+
trace?: never;
|
|
910
|
+
};
|
|
911
|
+
"/api/v1/files": {
|
|
912
|
+
parameters: {
|
|
913
|
+
query?: never;
|
|
914
|
+
header?: never;
|
|
915
|
+
path?: never;
|
|
916
|
+
cookie?: never;
|
|
917
|
+
};
|
|
918
|
+
/**
|
|
919
|
+
* List uploaded files
|
|
920
|
+
* @description Returns paginated list of uploaded files.
|
|
921
|
+
*/
|
|
922
|
+
get: {
|
|
923
|
+
parameters: {
|
|
924
|
+
query?: {
|
|
925
|
+
page?: number;
|
|
926
|
+
limit?: number;
|
|
927
|
+
status?: "pending" | "confirmed" | "expired";
|
|
928
|
+
};
|
|
929
|
+
header?: never;
|
|
930
|
+
path?: never;
|
|
931
|
+
cookie?: never;
|
|
932
|
+
};
|
|
933
|
+
requestBody?: never;
|
|
934
|
+
responses: {
|
|
935
|
+
/** @description File list */
|
|
936
|
+
200: {
|
|
937
|
+
headers: {
|
|
938
|
+
[name: string]: unknown;
|
|
939
|
+
};
|
|
940
|
+
content: {
|
|
941
|
+
"application/json": components["schemas"]["FileListResponse"];
|
|
942
|
+
};
|
|
943
|
+
};
|
|
944
|
+
};
|
|
945
|
+
};
|
|
946
|
+
put?: never;
|
|
947
|
+
post?: never;
|
|
948
|
+
delete?: never;
|
|
949
|
+
options?: never;
|
|
950
|
+
head?: never;
|
|
951
|
+
patch?: never;
|
|
952
|
+
trace?: never;
|
|
953
|
+
};
|
|
954
|
+
"/api/v1/files/{fileId}": {
|
|
955
|
+
parameters: {
|
|
956
|
+
query?: never;
|
|
957
|
+
header?: never;
|
|
958
|
+
path?: never;
|
|
959
|
+
cookie?: never;
|
|
960
|
+
};
|
|
961
|
+
/**
|
|
962
|
+
* Get file details
|
|
963
|
+
* @description Returns metadata and download URL for a single file.
|
|
964
|
+
*/
|
|
965
|
+
get: {
|
|
966
|
+
parameters: {
|
|
967
|
+
query?: never;
|
|
968
|
+
header?: never;
|
|
969
|
+
path: {
|
|
970
|
+
/** @description File ID */
|
|
971
|
+
fileId: string;
|
|
972
|
+
};
|
|
973
|
+
cookie?: never;
|
|
974
|
+
};
|
|
975
|
+
requestBody?: never;
|
|
976
|
+
responses: {
|
|
977
|
+
/** @description File details */
|
|
978
|
+
200: {
|
|
979
|
+
headers: {
|
|
980
|
+
[name: string]: unknown;
|
|
981
|
+
};
|
|
982
|
+
content: {
|
|
983
|
+
"application/json": components["schemas"]["FileDetailResponse"];
|
|
984
|
+
};
|
|
985
|
+
};
|
|
986
|
+
/** @description Not found */
|
|
987
|
+
404: {
|
|
988
|
+
headers: {
|
|
989
|
+
[name: string]: unknown;
|
|
990
|
+
};
|
|
991
|
+
content: {
|
|
992
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
993
|
+
};
|
|
994
|
+
};
|
|
995
|
+
};
|
|
996
|
+
};
|
|
997
|
+
put?: never;
|
|
998
|
+
post?: never;
|
|
999
|
+
/**
|
|
1000
|
+
* Delete a file
|
|
1001
|
+
* @description Permanently removes a file and its stored blob.
|
|
1002
|
+
*/
|
|
1003
|
+
delete: {
|
|
1004
|
+
parameters: {
|
|
1005
|
+
query?: never;
|
|
1006
|
+
header?: never;
|
|
1007
|
+
path: {
|
|
1008
|
+
/** @description File ID */
|
|
1009
|
+
fileId: string;
|
|
1010
|
+
};
|
|
1011
|
+
cookie?: never;
|
|
1012
|
+
};
|
|
1013
|
+
requestBody?: never;
|
|
1014
|
+
responses: {
|
|
1015
|
+
/** @description File deleted */
|
|
1016
|
+
200: {
|
|
1017
|
+
headers: {
|
|
1018
|
+
[name: string]: unknown;
|
|
1019
|
+
};
|
|
1020
|
+
content: {
|
|
1021
|
+
"application/json": components["schemas"]["DeleteFileResponse"];
|
|
1022
|
+
};
|
|
1023
|
+
};
|
|
1024
|
+
/** @description Not found */
|
|
1025
|
+
404: {
|
|
1026
|
+
headers: {
|
|
1027
|
+
[name: string]: unknown;
|
|
1028
|
+
};
|
|
1029
|
+
content: {
|
|
1030
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1031
|
+
};
|
|
1032
|
+
};
|
|
1033
|
+
};
|
|
1034
|
+
};
|
|
1035
|
+
options?: never;
|
|
1036
|
+
head?: never;
|
|
1037
|
+
patch?: never;
|
|
1038
|
+
trace?: never;
|
|
1039
|
+
};
|
|
1040
|
+
"/api/v1/files/{fileId}/confirm": {
|
|
1041
|
+
parameters: {
|
|
1042
|
+
query?: never;
|
|
1043
|
+
header?: never;
|
|
1044
|
+
path?: never;
|
|
1045
|
+
cookie?: never;
|
|
1046
|
+
};
|
|
1047
|
+
get?: never;
|
|
1048
|
+
put?: never;
|
|
1049
|
+
/**
|
|
1050
|
+
* Confirm file upload
|
|
1051
|
+
* @description Confirms that the file was successfully uploaded to the pre-signed URL.
|
|
1052
|
+
*/
|
|
1053
|
+
post: {
|
|
1054
|
+
parameters: {
|
|
1055
|
+
query?: never;
|
|
1056
|
+
header?: never;
|
|
1057
|
+
path: {
|
|
1058
|
+
/** @description File ID */
|
|
1059
|
+
fileId: string;
|
|
1060
|
+
};
|
|
1061
|
+
cookie?: never;
|
|
1062
|
+
};
|
|
1063
|
+
requestBody?: never;
|
|
1064
|
+
responses: {
|
|
1065
|
+
/** @description File confirmed */
|
|
1066
|
+
200: {
|
|
1067
|
+
headers: {
|
|
1068
|
+
[name: string]: unknown;
|
|
1069
|
+
};
|
|
1070
|
+
content: {
|
|
1071
|
+
"application/json": components["schemas"]["ConfirmResponse"];
|
|
1072
|
+
};
|
|
1073
|
+
};
|
|
1074
|
+
/** @description Not found */
|
|
1075
|
+
404: {
|
|
1076
|
+
headers: {
|
|
1077
|
+
[name: string]: unknown;
|
|
1078
|
+
};
|
|
1079
|
+
content: {
|
|
1080
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1081
|
+
};
|
|
1082
|
+
};
|
|
1083
|
+
};
|
|
1084
|
+
};
|
|
1085
|
+
delete?: never;
|
|
1086
|
+
options?: never;
|
|
1087
|
+
head?: never;
|
|
1088
|
+
patch?: never;
|
|
1089
|
+
trace?: never;
|
|
1090
|
+
};
|
|
1091
|
+
"/api/v1/tasks": {
|
|
1092
|
+
parameters: {
|
|
1093
|
+
query?: never;
|
|
1094
|
+
header?: never;
|
|
1095
|
+
path?: never;
|
|
1096
|
+
cookie?: never;
|
|
1097
|
+
};
|
|
1098
|
+
/**
|
|
1099
|
+
* List tasks
|
|
1100
|
+
* @description Returns paginated list of tasks.
|
|
1101
|
+
*/
|
|
1102
|
+
get: {
|
|
1103
|
+
parameters: {
|
|
1104
|
+
query?: {
|
|
1105
|
+
page?: number;
|
|
1106
|
+
limit?: number;
|
|
1107
|
+
status?: "waiting" | "queued" | "processing" | "completed" | "failed" | "cancelled" | "expired";
|
|
1108
|
+
kind?: "cad" | "model" | "convert-simple" | "convert-advanced" | "pipeline" | "compound";
|
|
1109
|
+
};
|
|
1110
|
+
header?: never;
|
|
1111
|
+
path?: never;
|
|
1112
|
+
cookie?: never;
|
|
1113
|
+
};
|
|
1114
|
+
requestBody?: never;
|
|
1115
|
+
responses: {
|
|
1116
|
+
/** @description Task list */
|
|
1117
|
+
200: {
|
|
1118
|
+
headers: {
|
|
1119
|
+
[name: string]: unknown;
|
|
1120
|
+
};
|
|
1121
|
+
content: {
|
|
1122
|
+
"application/json": components["schemas"]["TaskListResponse"];
|
|
1123
|
+
};
|
|
1124
|
+
};
|
|
1125
|
+
};
|
|
1126
|
+
};
|
|
1127
|
+
put?: never;
|
|
1128
|
+
post?: never;
|
|
1129
|
+
delete?: never;
|
|
1130
|
+
options?: never;
|
|
1131
|
+
head?: never;
|
|
1132
|
+
patch?: never;
|
|
1133
|
+
trace?: never;
|
|
1134
|
+
};
|
|
1135
|
+
"/api/v1/tasks/{taskId}": {
|
|
1136
|
+
parameters: {
|
|
1137
|
+
query?: never;
|
|
1138
|
+
header?: never;
|
|
1139
|
+
path?: never;
|
|
1140
|
+
cookie?: never;
|
|
1141
|
+
};
|
|
1142
|
+
/**
|
|
1143
|
+
* Get task status
|
|
1144
|
+
* @description Returns the current status and metadata of a task.
|
|
1145
|
+
*/
|
|
1146
|
+
get: {
|
|
1147
|
+
parameters: {
|
|
1148
|
+
query?: never;
|
|
1149
|
+
header?: never;
|
|
1150
|
+
path: {
|
|
1151
|
+
/** @description Task ID */
|
|
1152
|
+
taskId: string;
|
|
1153
|
+
};
|
|
1154
|
+
cookie?: never;
|
|
1155
|
+
};
|
|
1156
|
+
requestBody?: never;
|
|
1157
|
+
responses: {
|
|
1158
|
+
/** @description Task status */
|
|
1159
|
+
200: {
|
|
1160
|
+
headers: {
|
|
1161
|
+
[name: string]: unknown;
|
|
1162
|
+
};
|
|
1163
|
+
content: {
|
|
1164
|
+
"application/json": components["schemas"]["TaskDetailResponse"];
|
|
1165
|
+
};
|
|
1166
|
+
};
|
|
1167
|
+
/** @description Not found */
|
|
1168
|
+
404: {
|
|
1169
|
+
headers: {
|
|
1170
|
+
[name: string]: unknown;
|
|
1171
|
+
};
|
|
1172
|
+
content: {
|
|
1173
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1174
|
+
};
|
|
1175
|
+
};
|
|
1176
|
+
};
|
|
1177
|
+
};
|
|
1178
|
+
put?: never;
|
|
1179
|
+
post?: never;
|
|
1180
|
+
/**
|
|
1181
|
+
* Cancel a task
|
|
1182
|
+
* @description Cancels a waiting or queued task. Has no effect on completed/failed tasks.
|
|
1183
|
+
*/
|
|
1184
|
+
delete: {
|
|
1185
|
+
parameters: {
|
|
1186
|
+
query?: never;
|
|
1187
|
+
header?: never;
|
|
1188
|
+
path: {
|
|
1189
|
+
/** @description Task ID */
|
|
1190
|
+
taskId: string;
|
|
1191
|
+
};
|
|
1192
|
+
cookie?: never;
|
|
1193
|
+
};
|
|
1194
|
+
requestBody?: never;
|
|
1195
|
+
responses: {
|
|
1196
|
+
/** @description Task cancelled */
|
|
1197
|
+
200: {
|
|
1198
|
+
headers: {
|
|
1199
|
+
[name: string]: unknown;
|
|
1200
|
+
};
|
|
1201
|
+
content: {
|
|
1202
|
+
"application/json": components["schemas"]["CancelTaskResponse"];
|
|
1203
|
+
};
|
|
1204
|
+
};
|
|
1205
|
+
/** @description Not found */
|
|
1206
|
+
404: {
|
|
1207
|
+
headers: {
|
|
1208
|
+
[name: string]: unknown;
|
|
1209
|
+
};
|
|
1210
|
+
content: {
|
|
1211
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1212
|
+
};
|
|
1213
|
+
};
|
|
1214
|
+
};
|
|
1215
|
+
};
|
|
1216
|
+
options?: never;
|
|
1217
|
+
head?: never;
|
|
1218
|
+
patch?: never;
|
|
1219
|
+
trace?: never;
|
|
1220
|
+
};
|
|
1221
|
+
"/api/v1/tasks/{taskId}/result": {
|
|
1222
|
+
parameters: {
|
|
1223
|
+
query?: never;
|
|
1224
|
+
header?: never;
|
|
1225
|
+
path?: never;
|
|
1226
|
+
cookie?: never;
|
|
1227
|
+
};
|
|
1228
|
+
/**
|
|
1229
|
+
* Get task result (default format)
|
|
1230
|
+
* @description Returns a download URL for the task's primary result. For compound tasks, returns a manifest with per-sub-task download links.
|
|
1231
|
+
*/
|
|
1232
|
+
get: {
|
|
1233
|
+
parameters: {
|
|
1234
|
+
query?: never;
|
|
1235
|
+
header?: never;
|
|
1236
|
+
path: {
|
|
1237
|
+
/** @description Task ID */
|
|
1238
|
+
taskId: string;
|
|
1239
|
+
};
|
|
1240
|
+
cookie?: never;
|
|
1241
|
+
};
|
|
1242
|
+
requestBody?: never;
|
|
1243
|
+
responses: {
|
|
1244
|
+
/** @description Result download link (standard) or compound manifest */
|
|
1245
|
+
200: {
|
|
1246
|
+
headers: {
|
|
1247
|
+
[name: string]: unknown;
|
|
1248
|
+
};
|
|
1249
|
+
content: {
|
|
1250
|
+
"application/json": components["schemas"]["TaskOrCompoundResultResponse"];
|
|
1251
|
+
};
|
|
1252
|
+
};
|
|
1253
|
+
/** @description Not found */
|
|
1254
|
+
404: {
|
|
1255
|
+
headers: {
|
|
1256
|
+
[name: string]: unknown;
|
|
1257
|
+
};
|
|
1258
|
+
content: {
|
|
1259
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1260
|
+
};
|
|
1261
|
+
};
|
|
1262
|
+
/** @description Task is not yet completed */
|
|
1263
|
+
409: {
|
|
1264
|
+
headers: {
|
|
1265
|
+
[name: string]: unknown;
|
|
1266
|
+
};
|
|
1267
|
+
content: {
|
|
1268
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1269
|
+
};
|
|
1270
|
+
};
|
|
1271
|
+
};
|
|
1272
|
+
};
|
|
1273
|
+
put?: never;
|
|
1274
|
+
post?: never;
|
|
1275
|
+
delete?: never;
|
|
1276
|
+
options?: never;
|
|
1277
|
+
head?: never;
|
|
1278
|
+
patch?: never;
|
|
1279
|
+
trace?: never;
|
|
1280
|
+
};
|
|
1281
|
+
"/api/v1/tasks/{taskId}/result/{format}": {
|
|
1282
|
+
parameters: {
|
|
1283
|
+
query?: never;
|
|
1284
|
+
header?: never;
|
|
1285
|
+
path?: never;
|
|
1286
|
+
cookie?: never;
|
|
1287
|
+
};
|
|
1288
|
+
/**
|
|
1289
|
+
* Get task result in a specific format
|
|
1290
|
+
* @description Returns a download URL for the requested output format (e.g. glb, step, stpz).
|
|
1291
|
+
*/
|
|
1292
|
+
get: {
|
|
1293
|
+
parameters: {
|
|
1294
|
+
query?: never;
|
|
1295
|
+
header?: never;
|
|
1296
|
+
path: {
|
|
1297
|
+
/** @description Task ID */
|
|
1298
|
+
taskId: string;
|
|
1299
|
+
/** @description Result format (e.g. glb, step, stpz, metadata, decomposed-mesh) */
|
|
1300
|
+
format: string;
|
|
1301
|
+
};
|
|
1302
|
+
cookie?: never;
|
|
1303
|
+
};
|
|
1304
|
+
requestBody?: never;
|
|
1305
|
+
responses: {
|
|
1306
|
+
/** @description Result download link */
|
|
1307
|
+
200: {
|
|
1308
|
+
headers: {
|
|
1309
|
+
[name: string]: unknown;
|
|
1310
|
+
};
|
|
1311
|
+
content: {
|
|
1312
|
+
"application/json": components["schemas"]["TaskResultResponse"];
|
|
1313
|
+
};
|
|
1314
|
+
};
|
|
1315
|
+
/** @description Not found */
|
|
1316
|
+
404: {
|
|
1317
|
+
headers: {
|
|
1318
|
+
[name: string]: unknown;
|
|
1319
|
+
};
|
|
1320
|
+
content: {
|
|
1321
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1322
|
+
};
|
|
1323
|
+
};
|
|
1324
|
+
/** @description Task is not yet completed */
|
|
1325
|
+
409: {
|
|
1326
|
+
headers: {
|
|
1327
|
+
[name: string]: unknown;
|
|
1328
|
+
};
|
|
1329
|
+
content: {
|
|
1330
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1331
|
+
};
|
|
1332
|
+
};
|
|
1333
|
+
};
|
|
1334
|
+
};
|
|
1335
|
+
put?: never;
|
|
1336
|
+
post?: never;
|
|
1337
|
+
delete?: never;
|
|
1338
|
+
options?: never;
|
|
1339
|
+
head?: never;
|
|
1340
|
+
patch?: never;
|
|
1341
|
+
trace?: never;
|
|
1342
|
+
};
|
|
1343
|
+
"/api/v1/tasks/{taskId}/results": {
|
|
1344
|
+
parameters: {
|
|
1345
|
+
query?: never;
|
|
1346
|
+
header?: never;
|
|
1347
|
+
path?: never;
|
|
1348
|
+
cookie?: never;
|
|
1349
|
+
};
|
|
1350
|
+
/**
|
|
1351
|
+
* Get all task results
|
|
1352
|
+
* @description Returns download URLs for every available result format in a single call. Use this instead of making multiple requests to /result/{format}.
|
|
1353
|
+
*/
|
|
1354
|
+
get: {
|
|
1355
|
+
parameters: {
|
|
1356
|
+
query?: never;
|
|
1357
|
+
header?: never;
|
|
1358
|
+
path: {
|
|
1359
|
+
/** @description Task ID */
|
|
1360
|
+
taskId: string;
|
|
1361
|
+
};
|
|
1362
|
+
cookie?: never;
|
|
1363
|
+
};
|
|
1364
|
+
requestBody?: never;
|
|
1365
|
+
responses: {
|
|
1366
|
+
/** @description Download links for all available formats */
|
|
1367
|
+
200: {
|
|
1368
|
+
headers: {
|
|
1369
|
+
[name: string]: unknown;
|
|
1370
|
+
};
|
|
1371
|
+
content: {
|
|
1372
|
+
"application/json": components["schemas"]["TaskResultsResponse"];
|
|
1373
|
+
};
|
|
1374
|
+
};
|
|
1375
|
+
/** @description Not found */
|
|
1376
|
+
404: {
|
|
1377
|
+
headers: {
|
|
1378
|
+
[name: string]: unknown;
|
|
1379
|
+
};
|
|
1380
|
+
content: {
|
|
1381
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1382
|
+
};
|
|
1383
|
+
};
|
|
1384
|
+
/** @description Task is not yet completed */
|
|
1385
|
+
409: {
|
|
1386
|
+
headers: {
|
|
1387
|
+
[name: string]: unknown;
|
|
1388
|
+
};
|
|
1389
|
+
content: {
|
|
1390
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1391
|
+
};
|
|
1392
|
+
};
|
|
1393
|
+
};
|
|
1394
|
+
};
|
|
1395
|
+
put?: never;
|
|
1396
|
+
post?: never;
|
|
1397
|
+
delete?: never;
|
|
1398
|
+
options?: never;
|
|
1399
|
+
head?: never;
|
|
1400
|
+
patch?: never;
|
|
1401
|
+
trace?: never;
|
|
1402
|
+
};
|
|
1403
|
+
"/api/v1/tasks/{taskId}/retry": {
|
|
1404
|
+
parameters: {
|
|
1405
|
+
query?: never;
|
|
1406
|
+
header?: never;
|
|
1407
|
+
path?: never;
|
|
1408
|
+
cookie?: never;
|
|
1409
|
+
};
|
|
1410
|
+
get?: never;
|
|
1411
|
+
put?: never;
|
|
1412
|
+
/**
|
|
1413
|
+
* Retry a failed or cancelled task
|
|
1414
|
+
* @description Re-queues a failed or cancelled task with the same parameters.
|
|
1415
|
+
*/
|
|
1416
|
+
post: {
|
|
1417
|
+
parameters: {
|
|
1418
|
+
query?: never;
|
|
1419
|
+
header?: never;
|
|
1420
|
+
path: {
|
|
1421
|
+
/** @description Task ID */
|
|
1422
|
+
taskId: string;
|
|
1423
|
+
};
|
|
1424
|
+
cookie?: never;
|
|
1425
|
+
};
|
|
1426
|
+
requestBody?: never;
|
|
1427
|
+
responses: {
|
|
1428
|
+
/** @description Task re-queued */
|
|
1429
|
+
202: {
|
|
1430
|
+
headers: {
|
|
1431
|
+
[name: string]: unknown;
|
|
1432
|
+
};
|
|
1433
|
+
content: {
|
|
1434
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
1435
|
+
};
|
|
1436
|
+
};
|
|
1437
|
+
/** @description Not found */
|
|
1438
|
+
404: {
|
|
1439
|
+
headers: {
|
|
1440
|
+
[name: string]: unknown;
|
|
1441
|
+
};
|
|
1442
|
+
content: {
|
|
1443
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1444
|
+
};
|
|
1445
|
+
};
|
|
1446
|
+
/** @description Task is not in a retryable state */
|
|
1447
|
+
409: {
|
|
1448
|
+
headers: {
|
|
1449
|
+
[name: string]: unknown;
|
|
1450
|
+
};
|
|
1451
|
+
content: {
|
|
1452
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1453
|
+
};
|
|
1454
|
+
};
|
|
1455
|
+
};
|
|
1456
|
+
};
|
|
1457
|
+
delete?: never;
|
|
1458
|
+
options?: never;
|
|
1459
|
+
head?: never;
|
|
1460
|
+
patch?: never;
|
|
1461
|
+
trace?: never;
|
|
1462
|
+
};
|
|
1463
|
+
}
|
|
1464
|
+
export type webhooks = Record<string, never>;
|
|
1465
|
+
export interface components {
|
|
1466
|
+
schemas: {
|
|
1467
|
+
/** @description Execute a single Bitbybit CAD operation. The operation runs asynchronously and returns a task ID for polling. */
|
|
1468
|
+
ExecuteBody: {
|
|
1469
|
+
/** @description Fully-qualified CAD operation identifier (e.g. 'occt.shapes.solid.createBox', 'manifold.primitives.cube', 'jscad.booleans.union'). Supports OCCT, Manifold, JSCAD, and vector/math operations. */
|
|
1470
|
+
operation: string;
|
|
1471
|
+
/** @description Operation-specific parameters — varies by operation. See model definitions for available parameters. */
|
|
1472
|
+
params?: unknown;
|
|
1473
|
+
};
|
|
1474
|
+
/** @description Execute a chain of Bitbybit CAD operations sequentially. Each step can reference earlier step outputs via '$ref:N'. The final step's output is stored as the task result. */
|
|
1475
|
+
PipelineBody: {
|
|
1476
|
+
/** @description Ordered list of CAD operations executed sequentially. Later steps can reference earlier results using '$ref:N' syntax. */
|
|
1477
|
+
steps: components["schemas"]["PipelineStep"][];
|
|
1478
|
+
/** @description Output format options applied to the final pipeline result. If omitted, raw result data is stored. */
|
|
1479
|
+
outputs?: components["schemas"]["OutputOptions"];
|
|
1480
|
+
};
|
|
1481
|
+
/** @description A single step in a sequential CAD pipeline. Steps can reference outputs of earlier steps via $ref. */
|
|
1482
|
+
PipelineStep: {
|
|
1483
|
+
/** @description Fully-qualified CAD operation identifier (e.g. 'occt.shapes.solid.createSphere'). Supports OCCT, Manifold, JSCAD, and vector/math operations. */
|
|
1484
|
+
operation: string;
|
|
1485
|
+
/** @description Operation parameters. Use '$ref:N' (e.g. '$ref:0') to reference the output of a previous step by its zero-based index. */
|
|
1486
|
+
params: unknown;
|
|
1487
|
+
};
|
|
1488
|
+
/** @description Controls which output formats are generated and their quality settings */
|
|
1489
|
+
OutputOptions: {
|
|
1490
|
+
/** @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. */
|
|
1491
|
+
formats: components["schemas"]["OutputFormat"][];
|
|
1492
|
+
/** @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. */
|
|
1493
|
+
meshPrecision?: components["schemas"]["MeshPrecision"];
|
|
1494
|
+
/** @description Override tessellation precision specifically for glTF output. When set, takes precedence over meshPrecision for glTF only. */
|
|
1495
|
+
gltfMeshPrecision?: components["schemas"]["MeshPrecision"];
|
|
1496
|
+
/** @description Convert from Y-up to Z-up coordinate system in the output. Useful for software that expects Z-up. */
|
|
1497
|
+
adjustYtoZ?: boolean;
|
|
1498
|
+
};
|
|
1499
|
+
/**
|
|
1500
|
+
* @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.
|
|
1501
|
+
* @enum {string}
|
|
1502
|
+
*/
|
|
1503
|
+
OutputFormat: "step" | "stpz" | "decomposed-mesh" | "gltf";
|
|
1504
|
+
/** @description Mesh tessellation precision (lower = finer). Range: [0.005, 10] */
|
|
1505
|
+
MeshPrecision: number;
|
|
1506
|
+
/** @description Execute multiple independent Bitbybit CAD operations in parallel. Each item runs as a separate sub-task and can be polled individually. */
|
|
1507
|
+
CompoundExecuteBody: {
|
|
1508
|
+
/**
|
|
1509
|
+
* @description Must be true — signals that items should be processed concurrently
|
|
1510
|
+
* @constant
|
|
1511
|
+
*/
|
|
1512
|
+
parallel: true;
|
|
1513
|
+
/** @description List of independent CAD operations to execute in parallel. Each item becomes a sub-task. */
|
|
1514
|
+
items: components["schemas"]["CompoundItem"][];
|
|
1515
|
+
};
|
|
1516
|
+
/** @description A single operation within a compound (parallel) task. Each item runs independently. */
|
|
1517
|
+
CompoundItem: {
|
|
1518
|
+
/** @description Fully-qualified CAD operation identifier. Supports OCCT, Manifold, JSCAD, and vector/math operations. */
|
|
1519
|
+
operation: string;
|
|
1520
|
+
/** @description Operation-specific parameters for this sub-task */
|
|
1521
|
+
params?: unknown;
|
|
1522
|
+
/** @description References to previously uploaded files to be used as inputs for this operation */
|
|
1523
|
+
inputFiles?: {
|
|
1524
|
+
/** @description ID of a previously uploaded file (from POST /files/upload) */
|
|
1525
|
+
fileId: string;
|
|
1526
|
+
/** @description Role identifier for the file (e.g. 'step-input'). Determines how the file is used during processing. */
|
|
1527
|
+
role: string;
|
|
1528
|
+
}[];
|
|
1529
|
+
/** @description Per-item output format overrides. If omitted, the task produces raw result data. */
|
|
1530
|
+
outputFormats?: string[];
|
|
1531
|
+
};
|
|
1532
|
+
/** @description Fetch parameter definitions for one or more parametric models. Returns available parameters, types, defaults, and constraints. */
|
|
1533
|
+
DefinitionsBody: {
|
|
1534
|
+
/** @description Array of model slugs to fetch definitions for (e.g. ['dragon-cup', 'phone-nest']) */
|
|
1535
|
+
names: string[];
|
|
1536
|
+
};
|
|
1537
|
+
/** @description Submit a parametric model for generation with specified parameters and output formats */
|
|
1538
|
+
ModelSubmissionBody: {
|
|
1539
|
+
/** @description Model-specific parameters. Omitted params use their defaults. See model definition for available options. */
|
|
1540
|
+
params?: {
|
|
1541
|
+
[key: string]: unknown;
|
|
1542
|
+
};
|
|
1543
|
+
outputs: components["schemas"]["OutputOptions"];
|
|
1544
|
+
};
|
|
1545
|
+
/** @description Submit multiple parameter variations of the same model for parallel generation */
|
|
1546
|
+
BatchModelSubmissionBody: {
|
|
1547
|
+
/** @description Array of parameter variations. Each item produces a separate output with the same model. */
|
|
1548
|
+
items: {
|
|
1549
|
+
params?: {
|
|
1550
|
+
[key: string]: unknown;
|
|
1551
|
+
};
|
|
1552
|
+
}[];
|
|
1553
|
+
/** @description Output format configuration applied to every item in the batch */
|
|
1554
|
+
outputs: components["schemas"]["OutputOptions"];
|
|
1555
|
+
};
|
|
1556
|
+
/** @description Request body for the Dragon Cup model */
|
|
1557
|
+
DragonCupBody: {
|
|
1558
|
+
params?: components["schemas"]["DragonCupParams"];
|
|
1559
|
+
outputs: components["schemas"]["OutputOptions"];
|
|
1560
|
+
};
|
|
1561
|
+
/** @description Dragon Cup model parameters — all optional, sane defaults apply */
|
|
1562
|
+
DragonCupParams: {
|
|
1563
|
+
/** @description Total cup height (cm) */
|
|
1564
|
+
height?: number;
|
|
1565
|
+
/** @description Radius at the base (cm) */
|
|
1566
|
+
radiusBottom?: number;
|
|
1567
|
+
/** @description How much the top radius differs from bottom */
|
|
1568
|
+
radiusTopOffset?: number;
|
|
1569
|
+
/** @description Mid-section radius offset */
|
|
1570
|
+
radiusMidOffset?: number;
|
|
1571
|
+
/** @description Top twist angle (degrees) */
|
|
1572
|
+
rotationTopAngle?: number;
|
|
1573
|
+
/** @description Mid twist angle (degrees) */
|
|
1574
|
+
rotationMidAngle?: number;
|
|
1575
|
+
/** @description Vertical skin cell count */
|
|
1576
|
+
nrSkinCellsVertical?: number;
|
|
1577
|
+
/** @description Horizontal skin cell count */
|
|
1578
|
+
nrSkinCellsHorizontal?: number;
|
|
1579
|
+
/** @description Subdivisions at top of each cell */
|
|
1580
|
+
nrSkinCellDivisionsTop?: number;
|
|
1581
|
+
/** @description Subdivisions at bottom of each cell */
|
|
1582
|
+
nrSkinCellDivisionsBottom?: number;
|
|
1583
|
+
/** @description Outer cell extrusion height */
|
|
1584
|
+
skinCellOuterHeight?: number;
|
|
1585
|
+
/** @description Inner cell extrusion height */
|
|
1586
|
+
skinCellInnerHeight?: number;
|
|
1587
|
+
/** @description Bottom cell height */
|
|
1588
|
+
skinCellBottomHeight?: number;
|
|
1589
|
+
/** @description Top cell height */
|
|
1590
|
+
skinCellTopHeight?: number;
|
|
1591
|
+
/** @description Shell wall thickness */
|
|
1592
|
+
thickness?: number;
|
|
1593
|
+
/** @description Bottom plate thickness */
|
|
1594
|
+
bottomThickness?: number;
|
|
1595
|
+
/** @description Geometry precision (lower = finer) */
|
|
1596
|
+
precision?: components["schemas"]["MeshPrecision"];
|
|
1597
|
+
/** @description Final rotation angle (degrees) */
|
|
1598
|
+
rotation?: number;
|
|
1599
|
+
/** @description Uniform scale factor */
|
|
1600
|
+
scale?: components["schemas"]["PositiveScale"];
|
|
1601
|
+
/** @description [x, y, z] placement origin */
|
|
1602
|
+
origin?: components["schemas"]["Point3"];
|
|
1603
|
+
/** @description [x, y, z] up direction */
|
|
1604
|
+
direction?: components["schemas"]["Point3"];
|
|
1605
|
+
};
|
|
1606
|
+
/** @description Uniform scale factor. Range: [1e-6, 1000] */
|
|
1607
|
+
PositiveScale: number;
|
|
1608
|
+
/** @description 3D point as [x, y, z] tuple, each coordinate in [-1000, 1000] */
|
|
1609
|
+
Point3: [
|
|
1610
|
+
number,
|
|
1611
|
+
number,
|
|
1612
|
+
number
|
|
1613
|
+
];
|
|
1614
|
+
/** @description Request body for the Phone Nest model */
|
|
1615
|
+
PhoneNestBody: {
|
|
1616
|
+
params?: components["schemas"]["PhoneNestParams"];
|
|
1617
|
+
outputs: components["schemas"]["OutputOptions"];
|
|
1618
|
+
};
|
|
1619
|
+
/** @description Phone Nest model parameters — all optional, sane defaults apply */
|
|
1620
|
+
PhoneNestParams: {
|
|
1621
|
+
/** @description Height of the bottom section (cm) */
|
|
1622
|
+
heightBottom?: number;
|
|
1623
|
+
/** @description Height of the top section (cm) */
|
|
1624
|
+
heightTop?: number;
|
|
1625
|
+
/** @description Width at the back (cm) */
|
|
1626
|
+
widthBack?: number;
|
|
1627
|
+
/** @description Width at the front (cm) */
|
|
1628
|
+
widthFront?: number;
|
|
1629
|
+
/** @description Depth / length (cm) */
|
|
1630
|
+
length?: number;
|
|
1631
|
+
/** @description Back curve offset (cm) */
|
|
1632
|
+
backOffset?: number;
|
|
1633
|
+
/** @description Shell wall thickness */
|
|
1634
|
+
thickness?: number;
|
|
1635
|
+
/** @description Add decorative perforations to the surface */
|
|
1636
|
+
applyOrnaments?: boolean;
|
|
1637
|
+
/** @description Fillet radius on loft edges */
|
|
1638
|
+
filletRadius?: number;
|
|
1639
|
+
/** @description Phone mock-up height (cm) */
|
|
1640
|
+
phoneHeight?: number;
|
|
1641
|
+
/** @description Phone mock-up width (cm) */
|
|
1642
|
+
phoneWidth?: number;
|
|
1643
|
+
/** @description Phone mock-up thickness (cm) */
|
|
1644
|
+
phoneThickness?: number;
|
|
1645
|
+
/** @description Geometry precision (lower = finer) */
|
|
1646
|
+
precision?: components["schemas"]["MeshPrecision"];
|
|
1647
|
+
/** @description Final rotation angle (degrees) */
|
|
1648
|
+
rotation?: number;
|
|
1649
|
+
/** @description Uniform scale factor */
|
|
1650
|
+
scale?: components["schemas"]["PositiveScale"];
|
|
1651
|
+
/** @description [x, y, z] placement origin */
|
|
1652
|
+
origin?: components["schemas"]["Point3"];
|
|
1653
|
+
/** @description [x, y, z] up direction */
|
|
1654
|
+
direction?: components["schemas"]["Point3"];
|
|
1655
|
+
};
|
|
1656
|
+
/** @description Convert a STEP file to glTF format with default settings. Upload the STEP file first, then pass its ID here. */
|
|
1657
|
+
StepToGltfBody: {
|
|
1658
|
+
/** @description ID of the previously uploaded STEP file (returned by the file upload endpoint) */
|
|
1659
|
+
stepFileId: string;
|
|
1660
|
+
/** @description Tessellation precision controlling mesh density. Lower values produce finer meshes with more triangles. */
|
|
1661
|
+
meshPrecision?: components["schemas"]["MeshPrecision"];
|
|
1662
|
+
};
|
|
1663
|
+
/** @description Convert a STEP file to glTF with full control over tessellation, naming, coordinate systems, and output format. */
|
|
1664
|
+
StepToGltfAdvancedBody: {
|
|
1665
|
+
/** @description ID of the previously uploaded STEP file (returned by the file upload endpoint) */
|
|
1666
|
+
stepFileId: string;
|
|
1667
|
+
/** @description Advanced conversion settings. If omitted, sensible defaults are used. */
|
|
1668
|
+
options?: components["schemas"]["ConvertAdvancedOptions"];
|
|
1669
|
+
};
|
|
1670
|
+
/** @description Fine-grained options controlling STEP → glTF conversion: tessellation quality, attribute extraction, coordinate systems, and output format. */
|
|
1671
|
+
ConvertAdvancedOptions: {
|
|
1672
|
+
/** @description Extract color attributes from the STEP file and apply to glTF materials */
|
|
1673
|
+
readColors?: boolean;
|
|
1674
|
+
/** @description Extract product/instance names from the STEP file and apply to glTF node names */
|
|
1675
|
+
readNames?: boolean;
|
|
1676
|
+
/** @description Extract material definitions from the STEP file */
|
|
1677
|
+
readMaterials?: boolean;
|
|
1678
|
+
/** @description Extract layer/group structure from the STEP file */
|
|
1679
|
+
readLayers?: boolean;
|
|
1680
|
+
/** @description Extract custom properties (e.g. part numbers, metadata) from the STEP file */
|
|
1681
|
+
readProps?: boolean;
|
|
1682
|
+
/** @description Linear deflection for mesh tessellation — maximum allowed distance between the mesh and the true surface */
|
|
1683
|
+
meshDeflection?: components["schemas"]["MeshPrecision"];
|
|
1684
|
+
/** @description Angular deflection for mesh tessellation (radians) — controls curvature approximation */
|
|
1685
|
+
meshAngle?: components["schemas"]["MeshAngle"];
|
|
1686
|
+
/** @description Enable parallel tessellation for faster processing */
|
|
1687
|
+
meshParallel?: boolean;
|
|
1688
|
+
/** @description Maximum triangle count before LOD reduction kicks in. Set -1 to disable the limit entirely. */
|
|
1689
|
+
faceCountThreshold?: number;
|
|
1690
|
+
/** @description Merge co-planar adjacent faces to reduce mesh complexity */
|
|
1691
|
+
mergeFaces?: boolean;
|
|
1692
|
+
/** @description Split meshes so each uses 16-bit index buffers (max 65535 vertices per mesh). Improves compatibility with some renderers. */
|
|
1693
|
+
splitIndices16?: boolean;
|
|
1694
|
+
/** @description Write glTF output in parallel for faster file generation */
|
|
1695
|
+
parallelWrite?: boolean;
|
|
1696
|
+
/** @description Embed texture data directly in the .glb file instead of referencing external URIs */
|
|
1697
|
+
embedTextures?: boolean;
|
|
1698
|
+
/** @description Generate UV coordinates even when no textures are present (useful for post-processing) */
|
|
1699
|
+
forceUVExport?: boolean;
|
|
1700
|
+
/** @description Strategy for naming glTF nodes from STEP product/instance labels */
|
|
1701
|
+
nodeNameFormat?: components["schemas"]["GltfNameFormat"];
|
|
1702
|
+
/** @description Strategy for naming glTF meshes from STEP product/instance labels */
|
|
1703
|
+
meshNameFormat?: components["schemas"]["GltfNameFormat"];
|
|
1704
|
+
/** @description Transform representation in glTF: 'compact' (default), 'mat4' (4x4 matrix), or 'trs' (translation/rotation/scale) */
|
|
1705
|
+
transformFormat?: components["schemas"]["GltfTransformFormat"];
|
|
1706
|
+
/** @description Convert from Z-up (CAD convention) to Y-up (glTF/WebGL convention) coordinate system */
|
|
1707
|
+
adjustZtoY?: boolean;
|
|
1708
|
+
/** @description Uniform scale factor applied to the entire model (e.g. 0.001 to convert mm to meters) */
|
|
1709
|
+
scale?: components["schemas"]["PositiveScale"];
|
|
1710
|
+
};
|
|
1711
|
+
/** @description Mesh angular deflection in radians. Range: [0.01, π] */
|
|
1712
|
+
MeshAngle: number;
|
|
1713
|
+
/**
|
|
1714
|
+
* @description How node/mesh names are derived from STEP product/instance labels
|
|
1715
|
+
* @enum {string}
|
|
1716
|
+
*/
|
|
1717
|
+
GltfNameFormat: "empty" | "product" | "instance" | "instanceOrProduct" | "productOrInstance" | "productAndInstance" | "productAndInstanceAndOcaf";
|
|
1718
|
+
/**
|
|
1719
|
+
* @description Transform representation in glTF output
|
|
1720
|
+
* @enum {string}
|
|
1721
|
+
*/
|
|
1722
|
+
GltfTransformFormat: "compact" | "mat4" | "trs";
|
|
1723
|
+
/** @description Request a pre-signed upload URL. After receiving the URL, PUT the raw file bytes to it within the expiration window. */
|
|
1724
|
+
FileUploadBody: {
|
|
1725
|
+
/** @description Original filename including extension (e.g. 'part.step', 'model.obj'). Used for display and format detection. */
|
|
1726
|
+
filename: string;
|
|
1727
|
+
/** @description MIME type of the file (e.g. 'application/step', 'model/gltf-binary'). Must match the actual file content. */
|
|
1728
|
+
contentType: string;
|
|
1729
|
+
/** @description Exact file size in bytes. Must match the Content-Length of the subsequent PUT to the upload URL. Maximum: 1 GB. */
|
|
1730
|
+
bytes: number;
|
|
1731
|
+
/** @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. */
|
|
1732
|
+
sha256?: string;
|
|
1733
|
+
};
|
|
1734
|
+
/** @description Success envelope for health check */
|
|
1735
|
+
HealthResponse: {
|
|
1736
|
+
/** @constant */
|
|
1737
|
+
ok: true;
|
|
1738
|
+
data: components["schemas"]["HealthStatus"];
|
|
1739
|
+
};
|
|
1740
|
+
/** @description API health check result indicating overall system status */
|
|
1741
|
+
HealthStatus: {
|
|
1742
|
+
/**
|
|
1743
|
+
* @description Overall health status
|
|
1744
|
+
* @enum {string}
|
|
1745
|
+
*/
|
|
1746
|
+
status: "ok" | "degraded";
|
|
1747
|
+
/** @description ISO 8601 timestamp */
|
|
1748
|
+
timestamp: string;
|
|
1749
|
+
};
|
|
1750
|
+
/** @description Success envelope wrapping a Bitbybit CAD operation result */
|
|
1751
|
+
CadOperationResponse: {
|
|
1752
|
+
/** @constant */
|
|
1753
|
+
ok: true;
|
|
1754
|
+
data: components["schemas"]["CadResultData"];
|
|
1755
|
+
};
|
|
1756
|
+
/** @description Operation-specific result data. Shape varies by the CAD algorithm executed (OCCT, Manifold, JSCAD, or vector/math operations). */
|
|
1757
|
+
CadResultData: unknown;
|
|
1758
|
+
/** @description Standard error envelope */
|
|
1759
|
+
ErrorResponse: {
|
|
1760
|
+
/** @constant */
|
|
1761
|
+
ok: false;
|
|
1762
|
+
error: components["schemas"]["ErrorDetail"];
|
|
1763
|
+
};
|
|
1764
|
+
/** @description Structured error information with machine-readable code and optional debugging context */
|
|
1765
|
+
ErrorDetail: {
|
|
1766
|
+
/**
|
|
1767
|
+
* @description Machine-readable error code
|
|
1768
|
+
* @example VALIDATION_ERROR
|
|
1769
|
+
*/
|
|
1770
|
+
code: string;
|
|
1771
|
+
/** @description Human-readable error message */
|
|
1772
|
+
message: string;
|
|
1773
|
+
/** @description Optional structured error context */
|
|
1774
|
+
details?: unknown;
|
|
1775
|
+
/** @description Request ID for tracing */
|
|
1776
|
+
requestId?: string;
|
|
1777
|
+
};
|
|
1778
|
+
/** @description Success envelope containing the list of available models */
|
|
1779
|
+
ModelListResponse: {
|
|
1780
|
+
/** @constant */
|
|
1781
|
+
ok: true;
|
|
1782
|
+
data: components["schemas"]["ModelList"];
|
|
1783
|
+
};
|
|
1784
|
+
/** @description List of all available parametric models */
|
|
1785
|
+
ModelList: {
|
|
1786
|
+
/** @description Available model slugs that can be used with the /models/{name} endpoints */
|
|
1787
|
+
models: string[];
|
|
1788
|
+
};
|
|
1789
|
+
/** @description Success envelope containing multiple model definitions */
|
|
1790
|
+
ModelBatchDefinitionsResponse: {
|
|
1791
|
+
/** @constant */
|
|
1792
|
+
ok: true;
|
|
1793
|
+
data: components["schemas"]["ModelBatchDefinitions"];
|
|
1794
|
+
};
|
|
1795
|
+
/** @description Definitions for multiple models in a single response */
|
|
1796
|
+
ModelBatchDefinitions: {
|
|
1797
|
+
/** @description Model definitions keyed by slug. Each contains parameter schemas and defaults. */
|
|
1798
|
+
definitions: {
|
|
1799
|
+
[key: string]: components["schemas"]["ModelDefinition"];
|
|
1800
|
+
};
|
|
1801
|
+
};
|
|
1802
|
+
/** @description Full definition of a parametric model including all parameters and their constraints */
|
|
1803
|
+
ModelDefinition: {
|
|
1804
|
+
/** @description Model slug used in API paths (e.g. 'dragon-cup') */
|
|
1805
|
+
name: string;
|
|
1806
|
+
/** @description Human-friendly model name for UI display */
|
|
1807
|
+
displayName: string;
|
|
1808
|
+
/** @description What this model creates and its key characteristics */
|
|
1809
|
+
description: string;
|
|
1810
|
+
/** @description All accepted parameters with types, descriptions, and defaults */
|
|
1811
|
+
params: components["schemas"]["ModelParamDefinition"][];
|
|
1812
|
+
/** @description Complete default parameter values map */
|
|
1813
|
+
defaults: {
|
|
1814
|
+
[key: string]: unknown;
|
|
1815
|
+
};
|
|
1816
|
+
};
|
|
1817
|
+
/** @description Schema definition for a single model parameter */
|
|
1818
|
+
ModelParamDefinition: {
|
|
1819
|
+
/** @description Parameter name as used in the request body */
|
|
1820
|
+
name: string;
|
|
1821
|
+
/** @description Expected data type for this parameter */
|
|
1822
|
+
type: components["schemas"]["ModelParamApiType"];
|
|
1823
|
+
/** @description Human-readable explanation of what this parameter controls */
|
|
1824
|
+
description: string;
|
|
1825
|
+
/** @description Default value used when the parameter is omitted */
|
|
1826
|
+
default: unknown;
|
|
1827
|
+
/** @description Element type descriptor (only present for array parameters) */
|
|
1828
|
+
items?: {
|
|
1829
|
+
type: string;
|
|
1830
|
+
};
|
|
1831
|
+
};
|
|
1832
|
+
/**
|
|
1833
|
+
* @description Data type of a model parameter: 'number' (float), 'integer' (whole number), 'boolean' (true/false), 'array' (list of values)
|
|
1834
|
+
* @enum {string}
|
|
1835
|
+
*/
|
|
1836
|
+
ModelParamApiType: "number" | "integer" | "boolean" | "array";
|
|
1837
|
+
/** @description HTTP 202 response when a task is accepted for async processing */
|
|
1838
|
+
TaskAcceptedResponse: {
|
|
1839
|
+
/** @constant */
|
|
1840
|
+
ok: true;
|
|
1841
|
+
data: components["schemas"]["TaskCreatedResult"];
|
|
1842
|
+
};
|
|
1843
|
+
/** @description Returned when a CAD task is accepted. Poll the statusUrl to track progress. */
|
|
1844
|
+
TaskCreatedResult: {
|
|
1845
|
+
/**
|
|
1846
|
+
* Format: uuid
|
|
1847
|
+
* @description Unique task identifier — use this to poll for status and retrieve results
|
|
1848
|
+
*/
|
|
1849
|
+
taskId: string;
|
|
1850
|
+
/**
|
|
1851
|
+
* @description Initial task status (always 'queued' upon creation)
|
|
1852
|
+
* @constant
|
|
1853
|
+
*/
|
|
1854
|
+
status: "queued";
|
|
1855
|
+
/**
|
|
1856
|
+
* @description Relative URL to poll for task status updates
|
|
1857
|
+
* @example /api/v1/tasks/{taskId}
|
|
1858
|
+
*/
|
|
1859
|
+
statusUrl: string;
|
|
1860
|
+
};
|
|
1861
|
+
/** @description HTTP 202 response when a compound (parallel) task is accepted */
|
|
1862
|
+
CompoundTaskAcceptedResponse: {
|
|
1863
|
+
/** @constant */
|
|
1864
|
+
ok: true;
|
|
1865
|
+
data: components["schemas"]["CompoundTaskCreatedResult"];
|
|
1866
|
+
};
|
|
1867
|
+
/** @description Returned when a compound (parallel) task is accepted. Contains initial status for all sub-tasks. */
|
|
1868
|
+
CompoundTaskCreatedResult: {
|
|
1869
|
+
/** @description Parent compound task ID for tracking overall progress */
|
|
1870
|
+
taskId: string;
|
|
1871
|
+
/** @constant */
|
|
1872
|
+
kind: "compound";
|
|
1873
|
+
/** @description Total number of sub-tasks created (one per item in the request) */
|
|
1874
|
+
subTaskCount: number;
|
|
1875
|
+
/**
|
|
1876
|
+
* @description Relative URL to poll the parent task status
|
|
1877
|
+
* @example /api/v1/tasks/{taskId}
|
|
1878
|
+
*/
|
|
1879
|
+
statusUrl: string;
|
|
1880
|
+
subTasks: components["schemas"]["SubTaskSummary"][];
|
|
1881
|
+
};
|
|
1882
|
+
/** @description Status summary for one sub-task within a compound (parallel) task */
|
|
1883
|
+
SubTaskSummary: {
|
|
1884
|
+
/** @description Unique identifier for this sub-task (can be polled individually) */
|
|
1885
|
+
taskId: string;
|
|
1886
|
+
/** @description Zero-based position of this sub-task within the compound */
|
|
1887
|
+
index: number;
|
|
1888
|
+
status: components["schemas"]["TaskStatus"];
|
|
1889
|
+
/** @description Completion percentage (0–100) or null if not yet started */
|
|
1890
|
+
progress: number | null;
|
|
1891
|
+
/** @description Actual compute time in milliseconds (null until completed) */
|
|
1892
|
+
computeMs: number | null;
|
|
1893
|
+
/** @description Error message if sub-task failed, null otherwise */
|
|
1894
|
+
error: string | null;
|
|
1895
|
+
/** @description Available output format keys (e.g. ['glb', 'stpz']) for downloading results */
|
|
1896
|
+
downloadFormats: string[];
|
|
1897
|
+
};
|
|
1898
|
+
/**
|
|
1899
|
+
* @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)
|
|
1900
|
+
* @enum {string}
|
|
1901
|
+
*/
|
|
1902
|
+
TaskStatus: "waiting" | "queued" | "processing" | "completed" | "failed" | "cancelled" | "expired";
|
|
1903
|
+
/** @description Success envelope containing a single model's definition */
|
|
1904
|
+
ModelDefinitionResponse: {
|
|
1905
|
+
/** @constant */
|
|
1906
|
+
ok: true;
|
|
1907
|
+
data: components["schemas"]["ModelDefinition"];
|
|
1908
|
+
};
|
|
1909
|
+
/** @description Success envelope containing the pre-signed upload URL and file metadata */
|
|
1910
|
+
UploadResponse: {
|
|
1911
|
+
/** @constant */
|
|
1912
|
+
ok: true;
|
|
1913
|
+
data: components["schemas"]["UploadResult"];
|
|
1914
|
+
};
|
|
1915
|
+
/** @description Response after requesting a file upload. Contains the pre-signed URL to PUT your file to. */
|
|
1916
|
+
UploadResult: {
|
|
1917
|
+
/**
|
|
1918
|
+
* Format: uuid
|
|
1919
|
+
* @description Assigned file identifier — use this to reference the file in subsequent API calls
|
|
1920
|
+
*/
|
|
1921
|
+
fileId: string;
|
|
1922
|
+
/**
|
|
1923
|
+
* Format: uri
|
|
1924
|
+
* @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.
|
|
1925
|
+
*/
|
|
1926
|
+
uploadUrl: string;
|
|
1927
|
+
/** @description Seconds until the upload URL expires. You must complete the PUT within this window. */
|
|
1928
|
+
expiresIn: number;
|
|
1929
|
+
/** @description Maximum allowed file size in bytes for this upload. Determined by your plan tier. */
|
|
1930
|
+
maxBytes: number;
|
|
1931
|
+
/** @constant */
|
|
1932
|
+
status: "pending";
|
|
1933
|
+
};
|
|
1934
|
+
/** @description Success envelope containing a paginated file list */
|
|
1935
|
+
FileListResponse: {
|
|
1936
|
+
/** @constant */
|
|
1937
|
+
ok: true;
|
|
1938
|
+
data: components["schemas"]["FileList"];
|
|
1939
|
+
};
|
|
1940
|
+
/** @description Paginated list of uploaded files with total count */
|
|
1941
|
+
FileList: {
|
|
1942
|
+
files: components["schemas"]["FileDetail"][];
|
|
1943
|
+
page: number;
|
|
1944
|
+
limit: number;
|
|
1945
|
+
total: number;
|
|
1946
|
+
};
|
|
1947
|
+
/** @description Full metadata for an uploaded file */
|
|
1948
|
+
FileDetail: {
|
|
1949
|
+
/**
|
|
1950
|
+
* Format: uuid
|
|
1951
|
+
* @description Unique file identifier used to reference this file in CAD operations
|
|
1952
|
+
*/
|
|
1953
|
+
fileId: string;
|
|
1954
|
+
/** @description Original filename as provided during upload request */
|
|
1955
|
+
filename: string;
|
|
1956
|
+
/** @description MIME type of the file content */
|
|
1957
|
+
contentType: string;
|
|
1958
|
+
/** @description File size in bytes. Null while status is 'pending' (not yet uploaded). */
|
|
1959
|
+
bytes: number | null;
|
|
1960
|
+
/** @description SHA-256 hex digest of the file content. Null if not provided during upload. Used for deduplication. */
|
|
1961
|
+
sha256: string | null;
|
|
1962
|
+
status: components["schemas"]["FileStatus"];
|
|
1963
|
+
/** @description ISO 8601 timestamp when the upload was initiated */
|
|
1964
|
+
createdAt: string;
|
|
1965
|
+
/** @description ISO 8601 timestamp when the upload was confirmed. Null if not yet confirmed. */
|
|
1966
|
+
confirmedAt: string | null;
|
|
1967
|
+
/** @description Pre-signed download URL. Only present for confirmed files. Expires after 1 hour. */
|
|
1968
|
+
downloadUrl?: string;
|
|
1969
|
+
};
|
|
1970
|
+
/**
|
|
1971
|
+
* @description File lifecycle state: 'pending' (upload URL issued, awaiting PUT), 'confirmed' (upload verified and file is usable), 'expired' (upload URL expired before completion)
|
|
1972
|
+
* @enum {string}
|
|
1973
|
+
*/
|
|
1974
|
+
FileStatus: "pending" | "confirmed" | "expired";
|
|
1975
|
+
/** @description Success envelope containing a single file's metadata */
|
|
1976
|
+
FileDetailResponse: {
|
|
1977
|
+
/** @constant */
|
|
1978
|
+
ok: true;
|
|
1979
|
+
data: components["schemas"]["FileDetail"];
|
|
1980
|
+
};
|
|
1981
|
+
/** @description Success response for file deletion */
|
|
1982
|
+
DeleteFileResponse: {
|
|
1983
|
+
/** @constant */
|
|
1984
|
+
ok: true;
|
|
1985
|
+
data: components["schemas"]["DeleteResult"];
|
|
1986
|
+
};
|
|
1987
|
+
/** @description Confirmation that a resource was successfully deleted */
|
|
1988
|
+
DeleteResult: {
|
|
1989
|
+
/** @constant */
|
|
1990
|
+
deleted: true;
|
|
1991
|
+
};
|
|
1992
|
+
/** @description Success envelope confirming a file upload was verified */
|
|
1993
|
+
ConfirmResponse: {
|
|
1994
|
+
/** @constant */
|
|
1995
|
+
ok: true;
|
|
1996
|
+
data: components["schemas"]["ConfirmResult"];
|
|
1997
|
+
};
|
|
1998
|
+
/** @description Returned after a file upload is verified. The file is now ready to be used in CAD operations. */
|
|
1999
|
+
ConfirmResult: {
|
|
2000
|
+
/**
|
|
2001
|
+
* Format: uuid
|
|
2002
|
+
* @description File identifier that was confirmed
|
|
2003
|
+
*/
|
|
2004
|
+
fileId: string;
|
|
2005
|
+
/** @constant */
|
|
2006
|
+
status: "confirmed";
|
|
2007
|
+
/** @description Actual file size in bytes as stored on the server */
|
|
2008
|
+
bytes: number;
|
|
2009
|
+
/** @description MIME type of the confirmed file */
|
|
2010
|
+
contentType: string;
|
|
2011
|
+
};
|
|
2012
|
+
/** @description Success envelope containing a paginated task list */
|
|
2013
|
+
TaskListResponse: {
|
|
2014
|
+
/** @constant */
|
|
2015
|
+
ok: true;
|
|
2016
|
+
data: components["schemas"]["TaskList"];
|
|
2017
|
+
};
|
|
2018
|
+
/** @description Paginated list of tasks with total count */
|
|
2019
|
+
TaskList: {
|
|
2020
|
+
tasks: components["schemas"]["TaskDetail"][];
|
|
2021
|
+
page: number;
|
|
2022
|
+
limit: number;
|
|
2023
|
+
total: number;
|
|
2024
|
+
};
|
|
2025
|
+
/** @description Complete task status including lifecycle timestamps, progress, and result metadata */
|
|
2026
|
+
TaskDetail: {
|
|
2027
|
+
/**
|
|
2028
|
+
* Format: uuid
|
|
2029
|
+
* @description Unique task identifier for polling and result retrieval
|
|
2030
|
+
*/
|
|
2031
|
+
taskId: string;
|
|
2032
|
+
kind: components["schemas"]["TaskKind"];
|
|
2033
|
+
/**
|
|
2034
|
+
* @description Human-readable task label
|
|
2035
|
+
* @example Model: dragon-cup
|
|
2036
|
+
*/
|
|
2037
|
+
label: string;
|
|
2038
|
+
status: components["schemas"]["TaskStatus"];
|
|
2039
|
+
/** @description Completion percentage (0–100) or null if progress is not tracked for this task kind */
|
|
2040
|
+
progress: number | null;
|
|
2041
|
+
/** @description Error message when status is 'failed'. Null for all other statuses. */
|
|
2042
|
+
error: string | null;
|
|
2043
|
+
/** @description Available result files keyed by format (e.g. 'glb', 'step'). Null until task completes. */
|
|
2044
|
+
resultParts: {
|
|
2045
|
+
[key: string]: components["schemas"]["ResultPartMeta"];
|
|
2046
|
+
} | null;
|
|
2047
|
+
/** @description Additional task metadata (e.g. resolved parameters, model name). Shape varies by task kind. */
|
|
2048
|
+
metadata: {
|
|
2049
|
+
[key: string]: unknown;
|
|
2050
|
+
} | null;
|
|
2051
|
+
/** @description ISO 8601 timestamp when the task was created */
|
|
2052
|
+
createdAt: string;
|
|
2053
|
+
/** @description ISO 8601 timestamp when processing began. Null if still queued. */
|
|
2054
|
+
startedAt: string | null;
|
|
2055
|
+
/** @description ISO 8601 timestamp when the task completed (success or failure). Null if still running. */
|
|
2056
|
+
finishedAt: string | null;
|
|
2057
|
+
/** @description ISO 8601 timestamp when task results will be automatically deleted */
|
|
2058
|
+
expiresAt: string;
|
|
2059
|
+
};
|
|
2060
|
+
/**
|
|
2061
|
+
* @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)
|
|
2062
|
+
* @enum {string}
|
|
2063
|
+
*/
|
|
2064
|
+
TaskKind: "cad" | "model" | "convert-simple" | "convert-advanced" | "pipeline" | "compound" | "tenant";
|
|
2065
|
+
/** @description Metadata about a single downloadable result part */
|
|
2066
|
+
ResultPartMeta: {
|
|
2067
|
+
/** @description MIME type of the result file (e.g. 'model/gltf-binary', 'application/step') */
|
|
2068
|
+
mime: string;
|
|
2069
|
+
/** @description Size of the result file in bytes */
|
|
2070
|
+
bytes: number;
|
|
2071
|
+
};
|
|
2072
|
+
/** @description Success envelope containing a single task's full details */
|
|
2073
|
+
TaskDetailResponse: {
|
|
2074
|
+
/** @constant */
|
|
2075
|
+
ok: true;
|
|
2076
|
+
data: components["schemas"]["TaskDetail"];
|
|
2077
|
+
};
|
|
2078
|
+
/** @description Success response for task cancellation */
|
|
2079
|
+
CancelTaskResponse: {
|
|
2080
|
+
/** @constant */
|
|
2081
|
+
ok: true;
|
|
2082
|
+
data: components["schemas"]["CancelResult"];
|
|
2083
|
+
};
|
|
2084
|
+
/** @description Confirmation that a task was successfully cancelled */
|
|
2085
|
+
CancelResult: {
|
|
2086
|
+
/** @constant */
|
|
2087
|
+
cancelled: true;
|
|
2088
|
+
/** @description Status before cancellation */
|
|
2089
|
+
previousStatus: string;
|
|
2090
|
+
};
|
|
2091
|
+
/** @description Result download link for standard tasks, or a compound manifest with per-sub-task download links */
|
|
2092
|
+
TaskOrCompoundResultResponse: components["schemas"]["TaskResultResponse"] | components["schemas"]["CompoundResultManifestResponse"];
|
|
2093
|
+
/** @description Success envelope containing a download link for a task result */
|
|
2094
|
+
TaskResultResponse: {
|
|
2095
|
+
/** @constant */
|
|
2096
|
+
ok: true;
|
|
2097
|
+
data: components["schemas"]["TaskResultDownload"];
|
|
2098
|
+
};
|
|
2099
|
+
/** @description Download information for a completed task result */
|
|
2100
|
+
TaskResultDownload: {
|
|
2101
|
+
/**
|
|
2102
|
+
* Format: uri
|
|
2103
|
+
* @description Pre-signed URL to download the result file. Expires after 1 hour.
|
|
2104
|
+
*/
|
|
2105
|
+
downloadUrl: string;
|
|
2106
|
+
/**
|
|
2107
|
+
* @description Suggested filename for the download
|
|
2108
|
+
* @example result.glb
|
|
2109
|
+
*/
|
|
2110
|
+
filename: string;
|
|
2111
|
+
};
|
|
2112
|
+
/** @description Success envelope containing the compound task result manifest with per-sub-task download links */
|
|
2113
|
+
CompoundResultManifestResponse: {
|
|
2114
|
+
/** @constant */
|
|
2115
|
+
ok: true;
|
|
2116
|
+
data: components["schemas"]["CompoundResultManifest"];
|
|
2117
|
+
};
|
|
2118
|
+
/** @description Result manifest for a completed compound task */
|
|
2119
|
+
CompoundResultManifest: {
|
|
2120
|
+
/** @description Per-sub-task status and download links */
|
|
2121
|
+
manifest: components["schemas"]["CompoundResultEntry"][];
|
|
2122
|
+
};
|
|
2123
|
+
/** @description Status/result info for one sub-task in a compound manifest */
|
|
2124
|
+
CompoundResultEntry: {
|
|
2125
|
+
/** @description Sub-task ID */
|
|
2126
|
+
taskId: string;
|
|
2127
|
+
/** @description Position in the compound task */
|
|
2128
|
+
index: number;
|
|
2129
|
+
status: components["schemas"]["TaskStatus"];
|
|
2130
|
+
/** @description Download URLs keyed by format (only if completed) */
|
|
2131
|
+
downloadUrls?: {
|
|
2132
|
+
[key: string]: string;
|
|
2133
|
+
};
|
|
2134
|
+
};
|
|
2135
|
+
/** @description Success envelope containing download links for all result formats */
|
|
2136
|
+
TaskResultsResponse: {
|
|
2137
|
+
/** @constant */
|
|
2138
|
+
ok: true;
|
|
2139
|
+
data: components["schemas"]["TaskResultsDownload"];
|
|
2140
|
+
};
|
|
2141
|
+
/** @description Download information for all available result formats of a completed task */
|
|
2142
|
+
TaskResultsDownload: {
|
|
2143
|
+
/** @description Download links for all available result formats */
|
|
2144
|
+
downloads: {
|
|
2145
|
+
/** @description Result format key (e.g. 'glb', 'step', 'metadata') */
|
|
2146
|
+
format: string;
|
|
2147
|
+
/**
|
|
2148
|
+
* Format: uri
|
|
2149
|
+
* @description Pre-signed URL to download the result file. Expires after 1 hour.
|
|
2150
|
+
*/
|
|
2151
|
+
downloadUrl: string;
|
|
2152
|
+
/**
|
|
2153
|
+
* @description Suggested filename for the download
|
|
2154
|
+
* @example result.glb
|
|
2155
|
+
*/
|
|
2156
|
+
filename: string;
|
|
2157
|
+
}[];
|
|
2158
|
+
};
|
|
2159
|
+
};
|
|
2160
|
+
responses: never;
|
|
2161
|
+
parameters: never;
|
|
2162
|
+
requestBodies: never;
|
|
2163
|
+
headers: never;
|
|
2164
|
+
pathItems: never;
|
|
2165
|
+
}
|
|
2166
|
+
export type $defs = Record<string, never>;
|
|
2167
|
+
export type operations = Record<string, never>;
|
|
2168
|
+
//# sourceMappingURL=generated.d.ts.map
|