@bitbybit-dev/cad-cloud-sdk 1.4.0 → 1.5.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -114,9 +114,9 @@ export type PhoneNestParams = components["schemas"]["PhoneNestParams"];
114
114
  export type PipelineAnyStep = components["schemas"]["PipelineAnyStep"];
115
115
  /** Execute a chain of Bitbybit CAD operations sequentially. Supports $ref:N step references, $file:N file inputs, map iteration, and choice conditionals. */
116
116
  export type PipelineBody = components["schemas"]["PipelineBody"];
117
- /** 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). */
117
+ /** 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), 'brep' (OpenCascade BREP as text, which OCCT-based tools such as FreeCAD read) and 'brep-binary' (OpenCascade binary BREP, the smallest and fastest exact form, which keeps the numbering of faces and edges; read back with occt.io.loadBrepBinary) - both OCCT only, without triangulation. */
118
118
  export type PipelineOutputFormat = components["schemas"]["PipelineOutputFormat"];
119
- /** Controls which output formats are generated for pipeline results. Supports additional formats (json, csv, stl, 3mf) beyond standard model outputs. */
119
+ /** Controls which output formats are generated for pipeline results. Supports additional formats (json, csv, stl, 3mf, brep, brep-binary) beyond standard model outputs. */
120
120
  export type PipelineOutputOptions = components["schemas"]["PipelineOutputOptions"];
121
121
  /** A single step in a sequential CAD pipeline. Steps can reference outputs of earlier steps via $ref or input files via $file. */
122
122
  export type PipelineStep = components["schemas"]["PipelineStep"];
@@ -699,7 +699,9 @@ export const schemaBundle = {
699
699
  "json",
700
700
  "csv",
701
701
  "stl",
702
- "3mf"
702
+ "3mf",
703
+ "brep",
704
+ "brep-binary"
703
705
  ]
704
706
  },
705
707
  "PipelineOutputOptions": {
@@ -20,11 +20,15 @@ const validators = new Map<string, Validator>();
20
20
 
21
21
  function getValidator(schemaName: string): Validator | undefined {
22
22
  const cached = validators.get(schemaName);
23
- if (cached) return cached;
23
+ if (cached) {
24
+ return cached;
25
+ }
24
26
 
25
27
  const defs: Readonly<Record<string, unknown>> = schemaBundle.$defs;
26
28
  const def = defs[schemaName];
27
- if (!def) return undefined;
29
+ if (!def) {
30
+ return undefined;
31
+ }
28
32
 
29
33
  const rootSchema: Schema = {
30
34
  $schema: "https://json-schema.org/draft/2020-12/schema",