@bitbybit-dev/cad-cloud-sdk 1.6.2 → 1.7.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.
@@ -104,6 +104,76 @@ export type ModelParamApiType = components["schemas"]["ModelParamApiType"];
104
104
  export type ModelParamDefinition = components["schemas"]["ModelParamDefinition"];
105
105
  /** Submit a parametric model for generation with specified parameters and output formats */
106
106
  export type ModelSubmissionBody = components["schemas"]["ModelSubmissionBody"];
107
+ /** Read the parts of uploaded STEP files as nesting would, without nesting them: each part's file, kind, outline size, area and cut length, or why it cannot be nested. */
108
+ export type NestingInspectBody = components["schemas"]["NestingInspectBody"];
109
+ /** The settings that change how parts are read (tolerance, xDirection); no stock is needed. Every length is in the parts' units: millimetres on the nesting routes, which read their STEP files in millimetres, and the unit a pipeline models its shapes in for an occtPro.nesting step. */
110
+ export type NestingInspectOptions = components["schemas"]["NestingInspectOptions"];
111
+ /** Each part as nesting reads it, without nesting. Every length is in the parts' units, millimetres for parts read from STEP files. A report delivered as a result always has ok true: when the kernel refuses a run, the task fails with the kernel's reason instead. */
112
+ export type NestingInspection = components["schemas"]["NestingInspection"];
113
+ /** Copies of a part that were not placed, and why. */
114
+ export type NestingLeft = components["schemas"]["NestingLeft"];
115
+ /** Copies of a part that were not placed, and why. */
116
+ export type NestingLeftOutput = components["schemas"]["NestingLeftOutput"];
117
+ /** Nest the flat parts of uploaded STEP files onto sheets or a strip. A part is a planar face, coplanar faces such as an unfolded sheet-metal part, a plate solid, or a drawing of closed wires; 'stepFileIds' says how parts are read from a file. */
118
+ export type NestingNestBody = components["schemas"]["NestingNestBody"];
119
+ /** The stock, the per-part options and the settings of a nesting run. Every length is in the parts' units: millimetres on the nesting routes, which read their STEP files in millimetres, and the unit a pipeline models its shapes in for an occtPro.nesting step. */
120
+ export type NestingOptions = components["schemas"]["NestingOptions"];
121
+ /** A full circle. */
122
+ export type NestingOutlineCircle = components["schemas"]["NestingOutlineCircle"];
123
+ /** A full circle. */
124
+ export type NestingOutlineCircleOutput = components["schemas"]["NestingOutlineCircleOutput"];
125
+ /** An ellipse or an arc of one. */
126
+ export type NestingOutlineEllipse = components["schemas"]["NestingOutlineEllipse"];
127
+ /** An ellipse or an arc of one. */
128
+ export type NestingOutlineEllipseOutput = components["schemas"]["NestingOutlineEllipseOutput"];
129
+ /** Lines and arcs from vertex to vertex. */
130
+ export type NestingOutlinePolyline = components["schemas"]["NestingOutlinePolyline"];
131
+ /** Lines and arcs from vertex to vertex. */
132
+ export type NestingOutlinePolylineOutput = components["schemas"]["NestingOutlinePolylineOutput"];
133
+ /** A B-spline or NURBS curve. */
134
+ export type NestingOutlineSpline = components["schemas"]["NestingOutlineSpline"];
135
+ /** A B-spline or NURBS curve. */
136
+ export type NestingOutlineSplineOutput = components["schemas"]["NestingOutlineSplineOutput"];
137
+ /** The cut paths of every placed copy in the frame of its sheet: x along the sheet's width and y along its height from the corner, as the report's placement boxes are; the 'outlines' result of a nest. */
138
+ export type NestingOutlines = components["schemas"]["NestingOutlines"];
139
+ /** The formats of the nested sheets: 'step' or 'stpz' (each sheet one part, holding its placed parts and its outline), 'gltf', 'decomposed-mesh' (the placed parts, triangulated), 'dxf' (an AutoCAD 2000 drawing in millimetres: the sheets' outlines on layer SHEETS and the parts' cut paths on layer PARTS, every arc, ellipse and spline exact), 'svg' (the same drawing as an SVG file in millimetres, each layer a group), or 'outlines' (the same cut paths as JSON, each copy in the frame of its sheet and named by its placement, for drawing the layout). A 'dxf' or 'svg' too large to write is left out while every other format is still written, and the task's metadata says why under 'outputsLeftOut' (format to reason); a caveat about a cut file that was written, such as a part whose faces could not be joined into one outline, is given under 'outputNotes' (format to note). */
140
+ export type NestingOutputFormat = components["schemas"]["NestingOutputFormat"];
141
+ /** Which formats the nested sheets are written in, and their mesh quality. */
142
+ export type NestingOutputOptions = components["schemas"]["NestingOutputOptions"];
143
+ /** How one part was read, and how many of its copies were placed. */
144
+ export type NestingPartEntry = components["schemas"]["NestingPartEntry"];
145
+ /** How one part was read, and how many of its copies were placed. */
146
+ export type NestingPartEntryOutput = components["schemas"]["NestingPartEntryOutput"];
147
+ /** The options of one part, paired with the part of the same index. */
148
+ export type NestingPartOptions = components["schemas"]["NestingPartOptions"];
149
+ /** Where one copy of a part was placed. */
150
+ export type NestingPlacement = components["schemas"]["NestingPlacement"];
151
+ /** Where one copy of a part was placed. */
152
+ export type NestingPlacementOutput = components["schemas"]["NestingPlacementOutput"];
153
+ /** The layout of a nesting run: the used sheets, every placement with its transform, each part as read, what was left and why, and the totals. Every length is in the parts' units, millimetres for parts read from STEP files. Positions are in the working space, right-handed with Y up; a STEP output turns that space to Z up, a quarter turn about X. A report delivered as a result always has ok true: when the kernel refuses a run, the task fails with the kernel's reason instead. */
154
+ export type NestingReport = components["schemas"]["NestingReport"];
155
+ /** The nesting kernel's own answer when it refuses the options or is stopped before any part was nested. No result carries it: the API fails the task with its error instead. */
156
+ export type NestingReportError = components["schemas"]["NestingReportError"];
157
+ /** The nesting kernel's own answer when it refuses the options or is stopped before any part was nested. No result carries it: the API fails the task with its error instead. */
158
+ export type NestingReportErrorOutput = components["schemas"]["NestingReportErrorOutput"];
159
+ /** How a part may turn on the sheet: a fixed list of angles, steps that divide a full turn, or any angle. Without it a part turns in steps of 90 degrees. */
160
+ export type NestingRotations = components["schemas"]["NestingRotations"];
161
+ /** How the search ran: whether the same seed gives the same layout again, and whether it was stopped or ran out of time. */
162
+ export type NestingRun = components["schemas"]["NestingRun"];
163
+ /** How the search ran: whether the same seed gives the same layout again, and whether it was stopped or ran out of time. */
164
+ export type NestingRunOutput = components["schemas"]["NestingRunOutput"];
165
+ /** One kind of rectangular stock. */
166
+ export type NestingSheet = components["schemas"]["NestingSheet"];
167
+ /** One used sheet: its stock, where it lies in the working space, and how much of it the parts fill. */
168
+ export type NestingSheetEntry = components["schemas"]["NestingSheetEntry"];
169
+ /** One used sheet: its stock, where it lies in the working space, and how much of it the parts fill. */
170
+ export type NestingSheetEntryOutput = components["schemas"]["NestingSheetEntryOutput"];
171
+ /** One strip of open length; it stands alone, never beside other stock. */
172
+ export type NestingStrip = components["schemas"]["NestingStrip"];
173
+ /** Totals over every used sheet. */
174
+ export type NestingTotals = components["schemas"]["NestingTotals"];
175
+ /** Totals over every used sheet. */
176
+ export type NestingTotalsOutput = components["schemas"]["NestingTotalsOutput"];
107
177
  /** 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. */
108
178
  export type OutputFormat = components["schemas"]["OutputFormat"];
109
179
  /** Controls which output formats are generated and their quality settings */
@@ -116,7 +186,7 @@ export type PhoneNestParams = components["schemas"]["PhoneNestParams"];
116
186
  export type PipelineAnyStep = components["schemas"]["PipelineAnyStep"];
117
187
  /** Execute a chain of Bitbybit CAD operations sequentially. Supports $ref:N step references, $file:N file inputs, map iteration, and choice conditionals. */
118
188
  export type PipelineBody = components["schemas"]["PipelineBody"];
119
- /** 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. */
189
+ /** 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) and 'brep-binary' (OpenCascade binary BREP, the smallest and fastest exact form, which keeps the numbering of faces and edges) - both OCCT only, without triangulation, and both in the frame the pipeline modelled the shape in (Y up), so occt.io.loadBrep and occt.io.loadBrepBinary read them back exactly as they were; a Z-up tool such as FreeCAD shows them lying on their backs, where a 'step' output stands upright. */
120
190
  export type PipelineOutputFormat = components["schemas"]["PipelineOutputFormat"];
121
191
  /** Controls which output formats are generated for pipeline results. Supports additional formats (json, csv, stl, 3mf, brep, brep-binary) beyond standard model outputs. */
122
192
  export type PipelineOutputOptions = components["schemas"]["PipelineOutputOptions"];
@@ -164,6 +234,10 @@ export type TaskResultsDownload = components["schemas"]["TaskResultsDownload"];
164
234
  export type TaskResultsResponse = components["schemas"]["TaskResultsResponse"];
165
235
  /** 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) */
166
236
  export type TaskStatus = components["schemas"]["TaskStatus"];
237
+ /** Flatten every constant-thickness sheet-metal solid in an uploaded STEP file and nest the flat patterns on sheets in the same call: the per-solid unfold report, the nesting report and the nested sheets, without writing the flats to a file and reading them back. */
238
+ export type UnfoldAndNestBody = components["schemas"]["UnfoldAndNestBody"];
239
+ /** Which formats the nested sheets and the flat patterns are written in, and their mesh quality. */
240
+ export type UnfoldAndNestOutputOptions = components["schemas"]["UnfoldAndNestOutputOptions"];
167
241
  /** One bend: line, angle, radii (inner/outer/neutral and per-end for cones), and developed lengths. */
168
242
  export type UnfoldBend = components["schemas"]["UnfoldBend"];
169
243
  /** One bend: line, angle, radii (inner/outer/neutral and per-end for cones), and developed lengths. */
@@ -178,6 +252,8 @@ export type UnfoldFaceReport = components["schemas"]["UnfoldFaceReport"];
178
252
  export type UnfoldFaceReportBody = components["schemas"]["UnfoldFaceReportBody"];
179
253
  /** Unfold a single developable face of an uploaded STEP shape to a flat face. */
180
254
  export type UnfoldFaceToFlatBody = components["schemas"]["UnfoldFaceToFlatBody"];
255
+ /** How the flat patterns of an unfold are nested: the stock, the copies, how each flat may turn, and the search settings. Every length is in millimetres. */
256
+ export type UnfoldNestingOptions = components["schemas"]["UnfoldNestingOptions"];
181
257
  /** A sub-shape laid into the flat compound, mapped back to its source face (compound order). */
182
258
  export type UnfoldPlaced = components["schemas"]["UnfoldPlaced"];
183
259
  /** A sub-shape laid into the flat compound, mapped back to its source face (compound order). */