@bitbybit-dev/cad-cloud-sdk 1.0.0-rc.1 → 1.0.0-rc.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +6 -2
- package/dist/client.js.map +1 -1
- package/dist/endpoints/cad.d.ts +3 -2
- package/dist/endpoints/cad.d.ts.map +1 -1
- package/dist/endpoints/cad.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/types/generated.d.ts +158 -100
- package/dist/types/generated.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/pipeline-operations.d.ts +7314 -0
- package/dist/types/pipeline-operations.d.ts.map +1 -0
- package/dist/types/pipeline-operations.js +18 -0
- package/dist/types/pipeline-operations.js.map +1 -0
- package/dist/types/schema-exports.d.ts +17 -7
- package/dist/types/schema-exports.d.ts.map +1 -1
- package/dist/validation/request-schemas.d.ts +125 -16
- package/dist/validation/request-schemas.d.ts.map +1 -1
- package/dist/validation/request-schemas.js +162 -21
- package/dist/validation/request-schemas.js.map +1 -1
- package/package.json +5 -1
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAKrD,MAAM,WAAW,qBAAqB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AE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAKrD,MAAM,WAAW,qBAAqB;IAClC,kDAAkD;IAClD,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,cAAc;IACvB,mCAAmC;IACnC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAEhC,kDAAkD;IAClD,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;IAE9B,wDAAwD;IACxD,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAC;IAE1B,8BAA8B;IAC9B,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAElC,kCAAkC;IAClC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;IAE9B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAU;gBAEvB,IAAI,EAAE,qBAAqB;IAiBvC,wBAAwB;IAClB,MAAM,IAAI,OAAO,CAAC;QAAE,EAAE,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAK7E;;;OAGG;IACG,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC;CA8BjF"}
|
package/dist/client.js
CHANGED
|
@@ -76,12 +76,16 @@ export class BitbybitClient {
|
|
|
76
76
|
const url = `${this.baseUrl}${path}`;
|
|
77
77
|
const headers = {
|
|
78
78
|
"x-api-key": this.apiKey,
|
|
79
|
-
"Content-Type": "application/json",
|
|
80
79
|
};
|
|
80
|
+
let serializedBody;
|
|
81
|
+
if (body != null) {
|
|
82
|
+
headers["Content-Type"] = "application/json";
|
|
83
|
+
serializedBody = JSON.stringify(body);
|
|
84
|
+
}
|
|
81
85
|
const res = await fetch(url, {
|
|
82
86
|
method,
|
|
83
87
|
headers,
|
|
84
|
-
body:
|
|
88
|
+
body: serializedBody,
|
|
85
89
|
});
|
|
86
90
|
return res;
|
|
87
91
|
}
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,gDAAgD;AAChD,8EAA8E;AAE9E,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/E,MAAM,gBAAgB,GAAG,0BAA0B,CAAC;AAkBpD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,OAAO,cAAc;IACvB,mCAAmC;IAC1B,MAAM,CAAiB;IAEhC,kDAAkD;IACzC,KAAK,CAAgB;IAE9B,wDAAwD;IAC/C,GAAG,CAAc;IAE1B,8BAA8B;IACrB,OAAO,CAAkB;IAElC,kCAAkC;IACzB,KAAK,CAAgB;IAEb,OAAO,CAAS;IAChB,MAAM,CAAS;IACf,QAAQ,CAAU;IAEnC,YAAY,IAA2B;QACnC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;QACzD,CAAC;QAED,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI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ACjD,OAAO,eAAe,CAAC;IAC3B,CAAC;IAED,OAAO,SAAS,CAAC;AACrB,CAAC"}
|
package/dist/endpoints/cad.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ExecuteBody, PipelineBody, CompoundExecuteBody, TaskCreatedResult, CompoundTaskCreatedResult, TaskDownload } from "../types/index.js";
|
|
2
|
+
import type { TypedPipelineBody } from "../types/pipeline-operations.js";
|
|
2
3
|
import type { PollOptions } from "../polling.js";
|
|
3
4
|
type Fetcher = (method: string, path: string, body?: unknown) => Promise<Response>;
|
|
4
5
|
export declare class CadEndpoint {
|
|
@@ -7,7 +8,7 @@ export declare class CadEndpoint {
|
|
|
7
8
|
/** Submit a single CAD operation. Returns immediately with task info. */
|
|
8
9
|
execute(body: ExecuteBody): Promise<TaskCreatedResult>;
|
|
9
10
|
/** Submit a CAD pipeline (sequential steps with $ref references). */
|
|
10
|
-
pipeline(body: PipelineBody): Promise<TaskCreatedResult>;
|
|
11
|
+
pipeline(body: PipelineBody | TypedPipelineBody): Promise<TaskCreatedResult>;
|
|
11
12
|
/** Submit a compound (parallel) CAD execution. */
|
|
12
13
|
compound(body: CompoundExecuteBody): Promise<CompoundTaskCreatedResult>;
|
|
13
14
|
/**
|
|
@@ -20,7 +21,7 @@ export declare class CadEndpoint {
|
|
|
20
21
|
/**
|
|
21
22
|
* Submit a pipeline, poll until complete, and return all downloads.
|
|
22
23
|
*/
|
|
23
|
-
pipelineAndPoll(body: PipelineBody, opts?: PollOptions): Promise<{
|
|
24
|
+
pipelineAndPoll(body: PipelineBody | TypedPipelineBody, opts?: PollOptions): Promise<{
|
|
24
25
|
taskId: string;
|
|
25
26
|
downloads: TaskDownload[];
|
|
26
27
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cad.d.ts","sourceRoot":"","sources":["../../src/endpoints/cad.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,mBA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AC,iBAAiB,CAAC;IAIlF,kDAAkD;IAC5C,QAAQ,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAI7E;;OAEG;IACG,cAAc,CAChB,IAAI,EAAE,WAAW,EACjB,IAAI,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC;IAOzD;;OAEG;IACG,eAAe,CACjB,IAAI,EAAE,YAAY,GAAG,iBAAiB,EACtC,IAAI,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC;CAM5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cad.js","sourceRoot":"","sources":["../../src/endpoints/cad.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,qCAAqC;AACrC,8EAA8E;
|
|
1
|
+
{"version":3,"file":"cad.js","sourceRoot":"","sources":["../../src/endpoints/cad.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,qCAAqC;AACrC,8EAA8E;AAK9E,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAIvD,MAAM,OAAO,WAAW;IACS;IAA7B,YAA6B,KAAc;QAAd,UAAK,GAAL,KAAK,CAAS;IAAG,CAAC;IAE/C,yEAAyE;IACzE,KAAK,CAAC,OAAO,CAAC,IAAiB;QAC3B,OAAO,MAAM,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,qBAAqB,EAAE,IAAI,CAAC,CAAC,CAAC;IACzE,CAAC;IAED,qEAAqE;IACrE,KAAK,CAAC,QAAQ,CAAC,IAAsC;QACjD,OAAO,MAAM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point } from "./endpoints/cad.js";
|
|
10
10
|
export { ConvertEndpoint } from "./endpoints/convert.js";
|
|
11
11
|
export { FilesEndpoint } from "./endpoints/files.js";
|
|
12
|
+
export { step } from "./types/pipeline-operations.js";
|
|
12
13
|
export type * from "./types/index.js";
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,YAAY,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAGhE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGrC,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD,mBAAmB,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,YAAY,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAGhE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGrC,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD,OAAO,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAC;AAGtD,mBAAmB,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -14,4 +14,6 @@ export { TasksEndpoint } from "./endpoints/tasks.js";
|
|
|
14
14
|
export { CadEndpoint } from "./endpoints/cad.js";
|
|
15
15
|
export { ConvertEndpoint } from "./endpoints/convert.js";
|
|
16
16
|
export { FilesEndpoint } from "./endpoints/files.js";
|
|
17
|
+
// Pipeline builder helper
|
|
18
|
+
export { step } from "./types/pipeline-operations.js";
|
|
17
19
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,2CAA2C;AAC3C,8EAA8E;AAE9E,SAAS;AACT,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,SAAS;AACT,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,YAAY;AACZ,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAKrC,qDAAqD;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,2CAA2C;AAC3C,8EAA8E;AAE9E,SAAS;AACT,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,SAAS;AACT,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,YAAY;AACZ,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAKrC,qDAAqD;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,0BAA0B;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -65,13 +65,13 @@ export interface paths {
|
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
67
|
responses: {
|
|
68
|
-
/** @description
|
|
69
|
-
|
|
68
|
+
/** @description Task accepted */
|
|
69
|
+
202: {
|
|
70
70
|
headers: {
|
|
71
71
|
[name: string]: unknown;
|
|
72
72
|
};
|
|
73
73
|
content: {
|
|
74
|
-
"application/json": components["schemas"]["
|
|
74
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
77
|
/** @description Validation error */
|
|
@@ -126,13 +126,13 @@ export interface paths {
|
|
|
126
126
|
};
|
|
127
127
|
};
|
|
128
128
|
responses: {
|
|
129
|
-
/** @description
|
|
130
|
-
|
|
129
|
+
/** @description Task accepted */
|
|
130
|
+
202: {
|
|
131
131
|
headers: {
|
|
132
132
|
[name: string]: unknown;
|
|
133
133
|
};
|
|
134
134
|
content: {
|
|
135
|
-
"application/json": components["schemas"]["
|
|
135
|
+
"application/json": components["schemas"]["TaskAcceptedResponse"];
|
|
136
136
|
};
|
|
137
137
|
};
|
|
138
138
|
/** @description Validation error */
|
|
@@ -187,13 +187,13 @@ export interface paths {
|
|
|
187
187
|
};
|
|
188
188
|
};
|
|
189
189
|
responses: {
|
|
190
|
-
/** @description Compound
|
|
191
|
-
|
|
190
|
+
/** @description Compound task accepted */
|
|
191
|
+
202: {
|
|
192
192
|
headers: {
|
|
193
193
|
[name: string]: unknown;
|
|
194
194
|
};
|
|
195
195
|
content: {
|
|
196
|
-
"application/json": components["schemas"]["
|
|
196
|
+
"application/json": components["schemas"]["CompoundTaskAcceptedResponse"];
|
|
197
197
|
};
|
|
198
198
|
};
|
|
199
199
|
/** @description Validation error */
|
|
@@ -1471,37 +1471,92 @@ export interface components {
|
|
|
1471
1471
|
/** @description Operation-specific parameters — varies by operation. See model definitions for available parameters. */
|
|
1472
1472
|
params?: unknown;
|
|
1473
1473
|
};
|
|
1474
|
-
/** @description Execute a chain of Bitbybit CAD operations sequentially.
|
|
1474
|
+
/** @description Execute a chain of Bitbybit CAD operations sequentially. Supports $ref:N step references, $file:N file inputs, map iteration, and choice conditionals. */
|
|
1475
1475
|
PipelineBody: {
|
|
1476
|
-
/** @description Ordered list of CAD operations executed sequentially. Later steps can reference earlier results using '$ref:N' syntax. */
|
|
1476
|
+
/** @description Ordered list of CAD operations executed sequentially. Later steps can reference earlier results using '$ref:N' syntax. Supports map and choice control-flow steps. */
|
|
1477
|
+
steps: components["schemas"]["PipelineAnyStep"][];
|
|
1478
|
+
/** @description References to previously uploaded files. Use '$file:N' in step params to inject file contents. */
|
|
1479
|
+
inputFiles?: components["schemas"]["InputFileItem"][];
|
|
1480
|
+
/** @description Output format options applied to the final pipeline result. Supports json, csv, stl, 3mf in addition to standard formats. If omitted, raw result data is stored. */
|
|
1481
|
+
outputs?: components["schemas"]["PipelineOutputOptions"];
|
|
1482
|
+
};
|
|
1483
|
+
/** @description A pipeline step — either a plain operation, a map (iteration), or a choice (conditional). */
|
|
1484
|
+
PipelineAnyStep: components["schemas"]["MapStep"] | components["schemas"]["ChoiceStep"] | components["schemas"]["PipelineStep"];
|
|
1485
|
+
/** @description Iterate over an array, executing sub-steps for each element. Produces an array of results (or a reduced value). */
|
|
1486
|
+
MapStep: {
|
|
1487
|
+
/**
|
|
1488
|
+
* @description Declares this step as a map (iteration) step
|
|
1489
|
+
* @constant
|
|
1490
|
+
*/
|
|
1491
|
+
type: "map";
|
|
1492
|
+
/** @description Source array to iterate over. Typically a '$ref:N' reference to a previous step that produced an array. */
|
|
1493
|
+
items: unknown;
|
|
1494
|
+
/** @description Sub-steps to execute for each item. Use '$item' for the current element, '$index' for the iteration number. */
|
|
1477
1495
|
steps: components["schemas"]["PipelineStep"][];
|
|
1478
|
-
/** @description
|
|
1479
|
-
|
|
1496
|
+
/** @description Optional sub-steps to combine map results. Use '$mapResult' to reference the collected array of iteration outputs. */
|
|
1497
|
+
reduce?: components["schemas"]["PipelineStep"][];
|
|
1480
1498
|
};
|
|
1481
|
-
/** @description A single step in a sequential CAD pipeline. Steps can reference outputs of earlier steps via $ref. */
|
|
1499
|
+
/** @description A single step in a sequential CAD pipeline. Steps can reference outputs of earlier steps via $ref or input files via $file. */
|
|
1482
1500
|
PipelineStep: {
|
|
1483
1501
|
/** @description Fully-qualified CAD operation identifier (e.g. 'occt.shapes.solid.createSphere'). Supports OCCT, Manifold, JSCAD, and vector/math operations. */
|
|
1484
1502
|
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. */
|
|
1503
|
+
/** @description Operation parameters. Use '$ref:N' (e.g. '$ref:0') to reference the output of a previous step by its zero-based index. Use '$file:N' to reference an input file's contents. */
|
|
1486
1504
|
params: unknown;
|
|
1505
|
+
/** @description When true, this step's result is included in a separate result.json output alongside any shape files. */
|
|
1506
|
+
output?: boolean;
|
|
1487
1507
|
};
|
|
1488
|
-
/** @description
|
|
1489
|
-
|
|
1490
|
-
/**
|
|
1491
|
-
|
|
1492
|
-
|
|
1508
|
+
/** @description Conditional execution — evaluate a condition and run the matching branch. */
|
|
1509
|
+
ChoiceStep: {
|
|
1510
|
+
/**
|
|
1511
|
+
* @description Declares this step as a choice (conditional) step
|
|
1512
|
+
* @constant
|
|
1513
|
+
*/
|
|
1514
|
+
type: "choice";
|
|
1515
|
+
/** @description Value to compare. Typically a '$ref:N' reference to a previous step result. */
|
|
1516
|
+
value: unknown;
|
|
1517
|
+
/** @description Comparison operator to apply between value and compareTo */
|
|
1518
|
+
operator: components["schemas"]["ComparisonOperator"];
|
|
1519
|
+
/** @description Value to compare against. Not required for 'exists' operator. */
|
|
1520
|
+
compareTo?: unknown;
|
|
1521
|
+
/** @description Sub-steps to execute when condition is true */
|
|
1522
|
+
then: components["schemas"]["PipelineStep"][];
|
|
1523
|
+
/** @description Sub-steps to execute when condition is false. If omitted, produces null. */
|
|
1524
|
+
else?: components["schemas"]["PipelineStep"][];
|
|
1525
|
+
};
|
|
1526
|
+
/**
|
|
1527
|
+
* @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).
|
|
1528
|
+
* @enum {string}
|
|
1529
|
+
*/
|
|
1530
|
+
ComparisonOperator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "exists";
|
|
1531
|
+
/** @description Reference to an uploaded file to be used as input */
|
|
1532
|
+
InputFileItem: {
|
|
1533
|
+
/** @description ID of a previously uploaded file (from POST /files/upload) */
|
|
1534
|
+
fileId: string;
|
|
1535
|
+
/** @description Role identifier for the file (e.g. 'step-model', 'coordinates-csv') */
|
|
1536
|
+
role: string;
|
|
1537
|
+
};
|
|
1538
|
+
/** @description Controls which output formats are generated for pipeline results. Supports additional formats (json, csv, stl, 3mf) beyond standard model outputs. */
|
|
1539
|
+
PipelineOutputOptions: {
|
|
1540
|
+
/** @description Output formats to generate. Supports standard CAD formats (step, stpz, gltf, decomposed-mesh) plus pipeline-specific formats (json, csv, stl, 3mf). */
|
|
1541
|
+
formats: components["schemas"]["PipelineOutputFormat"][];
|
|
1542
|
+
/** @description Tessellation precision for mesh-based outputs (decomposed-mesh and gltf). Lower values produce denser meshes. */
|
|
1493
1543
|
meshPrecision?: components["schemas"]["MeshPrecision"];
|
|
1494
1544
|
/** @description Override tessellation precision specifically for glTF output. When set, takes precedence over meshPrecision for glTF only. */
|
|
1495
1545
|
gltfMeshPrecision?: components["schemas"]["MeshPrecision"];
|
|
1496
1546
|
/** @description Convert from Y-up to Z-up coordinate system in the output. Useful for software that expects Z-up. */
|
|
1497
1547
|
adjustYtoZ?: boolean;
|
|
1548
|
+
/** @description Include the full pipeline definition in metadata.json. Defaults to true. Set to false to exclude it for smaller metadata. */
|
|
1549
|
+
includePipelineInMetadata?: boolean;
|
|
1498
1550
|
};
|
|
1499
1551
|
/**
|
|
1500
|
-
* @description
|
|
1552
|
+
* @description Pipeline output file format. Includes all standard formats plus: 'json' (JSON data), 'csv' (CSV text), 'stl' (binary STL mesh — Manifold/JSCAD only), '3mf' (3MF mesh package — Manifold/JSCAD only).
|
|
1501
1553
|
* @enum {string}
|
|
1502
1554
|
*/
|
|
1503
|
-
|
|
1504
|
-
/**
|
|
1555
|
+
PipelineOutputFormat: "step" | "stpz" | "decomposed-mesh" | "gltf" | "json" | "csv" | "stl" | "3mf";
|
|
1556
|
+
/**
|
|
1557
|
+
* @description Mesh tessellation precision (lower = finer). Range: [0.0001, 10]
|
|
1558
|
+
* @example 0.1
|
|
1559
|
+
*/
|
|
1505
1560
|
MeshPrecision: number;
|
|
1506
1561
|
/** @description Execute multiple independent Bitbybit CAD operations in parallel. Each item runs as a separate sub-task and can be polled individually. */
|
|
1507
1562
|
CompoundExecuteBody: {
|
|
@@ -1520,12 +1575,7 @@ export interface components {
|
|
|
1520
1575
|
/** @description Operation-specific parameters for this sub-task */
|
|
1521
1576
|
params?: unknown;
|
|
1522
1577
|
/** @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
|
-
}[];
|
|
1578
|
+
inputFiles?: components["schemas"]["InputFileItem"][];
|
|
1529
1579
|
/** @description Per-item output format overrides. If omitted, the task produces raw result data. */
|
|
1530
1580
|
outputFormats?: string[];
|
|
1531
1581
|
};
|
|
@@ -1542,6 +1592,22 @@ export interface components {
|
|
|
1542
1592
|
};
|
|
1543
1593
|
outputs: components["schemas"]["OutputOptions"];
|
|
1544
1594
|
};
|
|
1595
|
+
/** @description Controls which output formats are generated and their quality settings */
|
|
1596
|
+
OutputOptions: {
|
|
1597
|
+
/** @description Output formats to generate. Multiple formats can be requested (e.g. ['gltf', 'stpz']) — each produces a separate downloadable result. Do not include both 'step' and 'stpz' — only one STEP variant is supported per request. */
|
|
1598
|
+
formats: components["schemas"]["OutputFormat"][];
|
|
1599
|
+
/** @description Tessellation precision for mesh-based outputs (decomposed-mesh and gltf). Lower values produce denser meshes. Only ignored when output is limited to step/stpz formats. */
|
|
1600
|
+
meshPrecision?: components["schemas"]["MeshPrecision"];
|
|
1601
|
+
/** @description Override tessellation precision specifically for glTF output. When set, takes precedence over meshPrecision for glTF only. */
|
|
1602
|
+
gltfMeshPrecision?: components["schemas"]["MeshPrecision"];
|
|
1603
|
+
/** @description Convert from Y-up to Z-up coordinate system in the output. Useful for software that expects Z-up. */
|
|
1604
|
+
adjustYtoZ?: boolean;
|
|
1605
|
+
};
|
|
1606
|
+
/**
|
|
1607
|
+
* @description Output file format: 'step' (raw STEP), 'stpz' (gzip-compressed STEP), 'decomposed-mesh' (triangulated JSON), 'gltf' (glTF 2.0 binary .glb). Note: 'step' and 'stpz' are mutually exclusive — choose one or the other, not both.
|
|
1608
|
+
* @enum {string}
|
|
1609
|
+
*/
|
|
1610
|
+
OutputFormat: "step" | "stpz" | "decomposed-mesh" | "gltf";
|
|
1545
1611
|
/** @description Submit multiple parameter variations of the same model for parallel generation */
|
|
1546
1612
|
BatchModelSubmissionBody: {
|
|
1547
1613
|
/** @description Array of parameter variations. Each item produces a separate output with the same model. */
|
|
@@ -1747,14 +1813,30 @@ export interface components {
|
|
|
1747
1813
|
/** @description ISO 8601 timestamp */
|
|
1748
1814
|
timestamp: string;
|
|
1749
1815
|
};
|
|
1750
|
-
/** @description
|
|
1751
|
-
|
|
1816
|
+
/** @description HTTP 202 response when a task is accepted for async processing */
|
|
1817
|
+
TaskAcceptedResponse: {
|
|
1752
1818
|
/** @constant */
|
|
1753
1819
|
ok: true;
|
|
1754
|
-
data: components["schemas"]["
|
|
1820
|
+
data: components["schemas"]["TaskCreatedResult"];
|
|
1821
|
+
};
|
|
1822
|
+
/** @description Returned when a CAD task is accepted. Poll the statusUrl to track progress. */
|
|
1823
|
+
TaskCreatedResult: {
|
|
1824
|
+
/**
|
|
1825
|
+
* Format: uuid
|
|
1826
|
+
* @description Unique task identifier — use this to poll for status and retrieve results
|
|
1827
|
+
*/
|
|
1828
|
+
taskId: string;
|
|
1829
|
+
/**
|
|
1830
|
+
* @description Initial task status (always 'queued' upon creation)
|
|
1831
|
+
* @constant
|
|
1832
|
+
*/
|
|
1833
|
+
status: "queued";
|
|
1834
|
+
/**
|
|
1835
|
+
* @description Relative URL to poll for task status updates
|
|
1836
|
+
* @example /api/v1/tasks/{taskId}
|
|
1837
|
+
*/
|
|
1838
|
+
statusUrl: string;
|
|
1755
1839
|
};
|
|
1756
|
-
/** @description Operation-specific result data. Shape varies by the CAD algorithm executed (OCCT, Manifold, JSCAD, or vector/math operations). */
|
|
1757
|
-
CadResultData: unknown;
|
|
1758
1840
|
/** @description Standard error envelope */
|
|
1759
1841
|
ErrorResponse: {
|
|
1760
1842
|
/** @constant */
|
|
@@ -1775,6 +1857,48 @@ export interface components {
|
|
|
1775
1857
|
/** @description Request ID for tracing */
|
|
1776
1858
|
requestId?: string;
|
|
1777
1859
|
};
|
|
1860
|
+
/** @description HTTP 202 response when a compound (parallel) task is accepted */
|
|
1861
|
+
CompoundTaskAcceptedResponse: {
|
|
1862
|
+
/** @constant */
|
|
1863
|
+
ok: true;
|
|
1864
|
+
data: components["schemas"]["CompoundTaskCreatedResult"];
|
|
1865
|
+
};
|
|
1866
|
+
/** @description Returned when a compound (parallel) task is accepted. Contains initial status for all sub-tasks. */
|
|
1867
|
+
CompoundTaskCreatedResult: {
|
|
1868
|
+
/** @description Parent compound task ID for tracking overall progress */
|
|
1869
|
+
taskId: string;
|
|
1870
|
+
/** @constant */
|
|
1871
|
+
kind: "compound";
|
|
1872
|
+
/** @description Total number of sub-tasks created (one per item in the request) */
|
|
1873
|
+
subTaskCount: number;
|
|
1874
|
+
/**
|
|
1875
|
+
* @description Relative URL to poll the parent task status
|
|
1876
|
+
* @example /api/v1/tasks/{taskId}
|
|
1877
|
+
*/
|
|
1878
|
+
statusUrl: string;
|
|
1879
|
+
subTasks: components["schemas"]["SubTaskSummary"][];
|
|
1880
|
+
};
|
|
1881
|
+
/** @description Status summary for one sub-task within a compound (parallel) task */
|
|
1882
|
+
SubTaskSummary: {
|
|
1883
|
+
/** @description Unique identifier for this sub-task (can be polled individually) */
|
|
1884
|
+
taskId: string;
|
|
1885
|
+
/** @description Zero-based position of this sub-task within the compound */
|
|
1886
|
+
index: number;
|
|
1887
|
+
status: components["schemas"]["TaskStatus"];
|
|
1888
|
+
/** @description Completion percentage (0–100) or null if not yet started */
|
|
1889
|
+
progress: number | null;
|
|
1890
|
+
/** @description Actual compute time in milliseconds (null until completed) */
|
|
1891
|
+
computeMs: number | null;
|
|
1892
|
+
/** @description Error message if sub-task failed, null otherwise */
|
|
1893
|
+
error: string | null;
|
|
1894
|
+
/** @description Available output format keys (e.g. ['glb', 'stpz']) for downloading results */
|
|
1895
|
+
downloadFormats: string[];
|
|
1896
|
+
};
|
|
1897
|
+
/**
|
|
1898
|
+
* @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)
|
|
1899
|
+
* @enum {string}
|
|
1900
|
+
*/
|
|
1901
|
+
TaskStatus: "waiting" | "queued" | "processing" | "completed" | "failed" | "cancelled" | "expired";
|
|
1778
1902
|
/** @description Success envelope containing the list of available models */
|
|
1779
1903
|
ModelListResponse: {
|
|
1780
1904
|
/** @constant */
|
|
@@ -1834,72 +1958,6 @@ export interface components {
|
|
|
1834
1958
|
* @enum {string}
|
|
1835
1959
|
*/
|
|
1836
1960
|
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
1961
|
/** @description Success envelope containing a single model's definition */
|
|
1904
1962
|
ModelDefinitionResponse: {
|
|
1905
1963
|
/** @constant */
|