@bitbybit-dev/cad-cloud-sdk 1.4.0 → 1.4.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.
@@ -1,6 +1,6 @@
1
1
  // ---------------------------------------------------------------------------
2
2
  // AUTO-GENERATED by generate-pipeline-types.ts — do not edit manually.
3
- // Generated from operation-catalog.json v1.4.0
3
+ // Generated from operation-catalog.json v1.4.1
4
4
  // ---------------------------------------------------------------------------
5
5
  /**
6
6
  * Create a type-safe pipeline step with autocomplete for operation paths and params.
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline-operations.js","sourceRoot":"","sources":["../../src/types/pipeline-operations.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,uEAAuE;AACvE,+CAA+C;AAC/C,8EAA8E;AA+oiB9E;;;;;;GAMG;AACH,MAAM,UAAU,IAAI,CAChB,SAAY,EACZ,MAA0B,EAC1B,IAA2B;IAE3B,MAAM,CAAC,GAA4B,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC;IACzD,IAAI,IAAI,EAAE,MAAM;QAAE,CAAC,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;IACrC,OAAO,CAAiB,CAAC;AAC7B,CAAC"}
1
+ {"version":3,"file":"pipeline-operations.js","sourceRoot":"","sources":["../../src/types/pipeline-operations.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,uEAAuE;AACvE,+CAA+C;AAC/C,8EAA8E;AA47iB9E;;;;;;GAMG;AACH,MAAM,UAAU,IAAI,CAChB,SAAY,EACZ,MAA0B,EAC1B,IAA2B;IAE3B,MAAM,CAAC,GAA4B,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC;IACzD,IAAI,IAAI,EAAE,MAAM;QAAE,CAAC,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;IACrC,OAAO,CAAiB,CAAC;AAC7B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitbybit-dev/cad-cloud-sdk",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Type-safe SDK for the Bitbybit CAD Cloud API \u2014 parametric models, CAD operations, file conversion, and task management",
5
5
  "author": "Bit By Bit Developers",
6
6
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  // ---------------------------------------------------------------------------
2
2
  // AUTO-GENERATED by generate-pipeline-types.ts — do not edit manually.
3
- // Generated from operation-catalog.json v1.4.0
3
+ // Generated from operation-catalog.json v1.4.1
4
4
  // ---------------------------------------------------------------------------
5
5
 
6
6
  /* eslint-disable @typescript-eslint/no-empty-object-type */
@@ -886,6 +886,24 @@ export type OperationPath =
886
886
  | "occt.shapesToMeshes"
887
887
  | "occt.shapeToManifoldMesh"
888
888
  | "occt.shapeToMesh"
889
+ | "occt.sketch.commands.bulgeArc"
890
+ | "occt.sketch.commands.chamferCorner"
891
+ | "occt.sketch.commands.close"
892
+ | "occt.sketch.commands.cubic"
893
+ | "occt.sketch.commands.filletCorner"
894
+ | "occt.sketch.commands.hLine"
895
+ | "occt.sketch.commands.line"
896
+ | "occt.sketch.commands.polarLine"
897
+ | "occt.sketch.commands.quadratic"
898
+ | "occt.sketch.commands.sagittaArc"
899
+ | "occt.sketch.commands.tangentArc"
900
+ | "occt.sketch.commands.tangentLine"
901
+ | "occt.sketch.commands.threePointArc"
902
+ | "occt.sketch.commands.vLine"
903
+ | "occt.sketch.hull"
904
+ | "occt.sketch.pen"
905
+ | "occt.sketch.penWithSegments"
906
+ | "occt.sketch.stroke"
889
907
  | "occt.svg.loadSVG"
890
908
  | "occt.svg.loadSVGStructured"
891
909
  | "occt.transforms.align"
@@ -15186,6 +15204,289 @@ export interface OperationParams {
15186
15204
  /** The pull direction the draft angles are measured against; read only by `draftAngle`. */
15187
15205
  draftDirection?: [number, number, number] | PipelineRef;
15188
15206
  };
15207
+ /**
15208
+ * Makes a command that draws a circular arc to a point, given by its bulge as DXF files write
15209
+ * arcs.
15210
+ *
15211
+ * `bulge` is the tangent of a quarter of the angle swept: positive turns counterclockwise, 1
15212
+ * draws a half circle and 0 is refused, being a straight line.
15213
+ */
15214
+ "occt.sketch.commands.bulgeArc": {
15215
+ /** Where the arc ends, in the sketch's x and y. */
15216
+ to?: [number, number] | PipelineRef;
15217
+ /**
15218
+ * The tangent of a quarter of the angle the arc sweeps: positive turns counterclockwise, 1 is a
15219
+ * half circle, and 0 would be a straight line.
15220
+ */
15221
+ bulge?: number | PipelineRef;
15222
+ /** When true, `to` is an offset from where the pen is rather than a point of the sketch. */
15223
+ relative?: boolean | PipelineRef;
15224
+ /** A name for the command, reported with the edges it draws; leave it out to be named by position. */
15225
+ id?: string | PipelineRef;
15226
+ };
15227
+ /**
15228
+ * Makes a command that bevels the corner between the segment before it and the segment after it,
15229
+ * cutting the same distance off each.
15230
+ *
15231
+ * `distance` is measured along each segment. Placed after `close`, it bevels the corner at the
15232
+ * start point; only lines and circular arcs take a corner.
15233
+ */
15234
+ "occt.sketch.commands.chamferCorner": {
15235
+ /** How much the bevel cuts off each segment, in model units, measured along the segment. */
15236
+ distance?: number | PipelineRef;
15237
+ /** A name for the command, reported with the segment it draws; leave it out to be named by position. */
15238
+ id?: string | PipelineRef;
15239
+ };
15240
+ /**
15241
+ * Makes a command that closes the outline with a straight segment back to the start point.
15242
+ *
15243
+ * Only corner commands may follow it. When the pen is already at the start point it draws
15244
+ * nothing and only closes the outline.
15245
+ */
15246
+ "occt.sketch.commands.close": {
15247
+ /** A name for the command, reported with the edge it draws; leave it out to be named by position. */
15248
+ id?: string | PipelineRef;
15249
+ };
15250
+ /**
15251
+ * Makes a command that draws a cubic Bezier curve to a point, shaped by two control points.
15252
+ *
15253
+ * The curve leaves toward `control1` and arrives from `control2`; with `relative` true all three
15254
+ * points are offsets from where the pen is.
15255
+ */
15256
+ "occt.sketch.commands.cubic": {
15257
+ /** The point the curve leaves toward, in the sketch's x and y. */
15258
+ control1?: [number, number] | PipelineRef;
15259
+ /** The point the curve arrives from, in the sketch's x and y. */
15260
+ control2?: [number, number] | PipelineRef;
15261
+ /** Where the curve ends, in the sketch's x and y. */
15262
+ to?: [number, number] | PipelineRef;
15263
+ /**
15264
+ * When true, the control points and `to` are offsets from where the pen is rather than points of
15265
+ * the sketch.
15266
+ */
15267
+ relative?: boolean | PipelineRef;
15268
+ /** A name for the command, reported with the edges it draws; leave it out to be named by position. */
15269
+ id?: string | PipelineRef;
15270
+ };
15271
+ /**
15272
+ * Makes a command that rounds the corner between the segment before it and the segment after
15273
+ * it with an arc of a given radius.
15274
+ *
15275
+ * Placed after `close`, it rounds the corner at the start point. Only lines and circular arcs
15276
+ * take a corner, and a radius too large for them is refused.
15277
+ */
15278
+ "occt.sketch.commands.filletCorner": {
15279
+ /** The radius of the rounding arc, in model units. */
15280
+ radius?: number | PipelineRef;
15281
+ /** A name for the command, reported with the arc it draws; leave it out to be named by position. */
15282
+ id?: string | PipelineRef;
15283
+ };
15284
+ /**
15285
+ * Makes a command that draws a straight segment along the sketch's x axis.
15286
+ *
15287
+ * A negative `length` draws in the negative x direction.
15288
+ */
15289
+ "occt.sketch.commands.hLine": {
15290
+ /** How far to draw along the sketch's x axis, in model units; negative draws the other way. */
15291
+ length?: number | PipelineRef;
15292
+ /** A name for the command, reported with the edges it draws; leave it out to be named by position. */
15293
+ id?: string | PipelineRef;
15294
+ };
15295
+ /**
15296
+ * Makes a command that draws a straight segment to a point.
15297
+ *
15298
+ * `to` is a point in the sketch's x and y, or an offset from where the pen is when `relative`
15299
+ * is true.
15300
+ */
15301
+ "occt.sketch.commands.line": {
15302
+ /** Where the segment ends, in the sketch's x and y. */
15303
+ to?: [number, number] | PipelineRef;
15304
+ /** When true, `to` is an offset from where the pen is rather than a point of the sketch. */
15305
+ relative?: boolean | PipelineRef;
15306
+ /** A name for the command, reported with the edges it draws; leave it out to be named by position. */
15307
+ id?: string | PipelineRef;
15308
+ };
15309
+ /**
15310
+ * Makes a command that draws a straight segment of a given length at an angle.
15311
+ *
15312
+ * `angle` is in degrees from the sketch's x axis, counterclockwise; a negative `length` draws
15313
+ * the opposite way.
15314
+ */
15315
+ "occt.sketch.commands.polarLine": {
15316
+ /** How far to draw, in model units; negative draws the opposite way. */
15317
+ length?: number | PipelineRef;
15318
+ /** The direction to draw in, in degrees from the sketch's x axis, counterclockwise. */
15319
+ angle?: number | PipelineRef;
15320
+ /** A name for the command, reported with the edges it draws; leave it out to be named by position. */
15321
+ id?: string | PipelineRef;
15322
+ };
15323
+ /**
15324
+ * Makes a command that draws a quadratic Bezier curve to a point, pulled toward a control point.
15325
+ *
15326
+ * With `relative` true, `control` and `to` are offsets from where the pen is.
15327
+ */
15328
+ "occt.sketch.commands.quadratic": {
15329
+ /** The point the curve is pulled toward, in the sketch's x and y. */
15330
+ control?: [number, number] | PipelineRef;
15331
+ /** Where the curve ends, in the sketch's x and y. */
15332
+ to?: [number, number] | PipelineRef;
15333
+ /** When true, `control` and `to` are offsets from where the pen is rather than points of the sketch. */
15334
+ relative?: boolean | PipelineRef;
15335
+ /** A name for the command, reported with the edges it draws; leave it out to be named by position. */
15336
+ id?: string | PipelineRef;
15337
+ };
15338
+ /**
15339
+ * Makes a command that draws a circular arc to a point, bowed out by a given distance.
15340
+ *
15341
+ * `sagitta` is how far the middle of the arc stands off the straight line to `to`: positive to
15342
+ * the left of the direction of travel, negative to the right.
15343
+ */
15344
+ "occt.sketch.commands.sagittaArc": {
15345
+ /** Where the arc ends, in the sketch's x and y. */
15346
+ to?: [number, number] | PipelineRef;
15347
+ /**
15348
+ * How far the arc's middle stands off the straight line between its ends, in model units:
15349
+ * positive to the left of travel, negative to the right.
15350
+ */
15351
+ sagitta?: number | PipelineRef;
15352
+ /** When true, `to` is an offset from where the pen is rather than a point of the sketch. */
15353
+ relative?: boolean | PipelineRef;
15354
+ /** A name for the command, reported with the edges it draws; leave it out to be named by position. */
15355
+ id?: string | PipelineRef;
15356
+ };
15357
+ /**
15358
+ * Makes a command that draws a circular arc to a point, leaving in the direction the previous
15359
+ * segment ended in.
15360
+ *
15361
+ * It needs a segment before it. The arc's radius follows from where it ends; an end straight
15362
+ * ahead is refused, as `tangentLine` draws that.
15363
+ */
15364
+ "occt.sketch.commands.tangentArc": {
15365
+ /** Where the arc ends, in the sketch's x and y. */
15366
+ to?: [number, number] | PipelineRef;
15367
+ /** When true, `to` is an offset from where the pen is rather than a point of the sketch. */
15368
+ relative?: boolean | PipelineRef;
15369
+ /** A name for the command, reported with the edges it draws; leave it out to be named by position. */
15370
+ id?: string | PipelineRef;
15371
+ };
15372
+ /**
15373
+ * Makes a command that draws straight on in the direction the previous segment ended in.
15374
+ *
15375
+ * It needs a segment before it, and is how a straight run leaves an arc smoothly.
15376
+ */
15377
+ "occt.sketch.commands.tangentLine": {
15378
+ /** How far to carry on, in model units. */
15379
+ length?: number | PipelineRef;
15380
+ /** A name for the command, reported with the edges it draws; leave it out to be named by position. */
15381
+ id?: string | PipelineRef;
15382
+ };
15383
+ /**
15384
+ * Makes a command that draws a circular arc through one point to another.
15385
+ *
15386
+ * The arc turns whichever way takes it from where the pen is through `through` to `to`; the
15387
+ * three points must not lie on one line.
15388
+ */
15389
+ "occt.sketch.commands.threePointArc": {
15390
+ /** A point the arc passes through between its ends, in the sketch's x and y. */
15391
+ through?: [number, number] | PipelineRef;
15392
+ /** Where the arc ends, in the sketch's x and y. */
15393
+ to?: [number, number] | PipelineRef;
15394
+ /** When true, `through` and `to` are offsets from where the pen is rather than points of the sketch. */
15395
+ relative?: boolean | PipelineRef;
15396
+ /** A name for the command, reported with the edges it draws; leave it out to be named by position. */
15397
+ id?: string | PipelineRef;
15398
+ };
15399
+ /**
15400
+ * Makes a command that draws a straight segment along the sketch's y axis.
15401
+ *
15402
+ * A negative `length` draws in the negative y direction.
15403
+ */
15404
+ "occt.sketch.commands.vLine": {
15405
+ /** How far to draw along the sketch's y axis, in model units; negative draws the other way. */
15406
+ length?: number | PipelineRef;
15407
+ /** A name for the command, reported with the edges it draws; leave it out to be named by position. */
15408
+ id?: string | PipelineRef;
15409
+ };
15410
+ /**
15411
+ * Wraps vertices, straight edges and circular edges lying in a frame's plane in the tightest
15412
+ * convex outline around them.
15413
+ *
15414
+ * The outline is exact: straight where it spans between shapes, following a circle where a circle
15415
+ * or an arc bulges out. Other curves are refused, as are shapes off the frame's plane or circles
15416
+ * tilted out of it.
15417
+ */
15418
+ "occt.sketch.hull": {
15419
+ /** The vertices, edges and wires to wrap; their edges must be straight or circular. */
15420
+ shapes: unknown[] | PipelineRef;
15421
+ /** The frame whose plane the shapes lie in. Leave it out for the ground plane. */
15422
+ frame?: unknown | PipelineRef;
15423
+ /** When true, the hull becomes a face whose normal is the frame's normal. */
15424
+ makeFace?: boolean | PipelineRef;
15425
+ };
15426
+ /**
15427
+ * Draws an outline with a pen, from a start point through a list of moves, in a frame's plane.
15428
+ *
15429
+ * Each command draws on from where the previous one ended, and lines and arcs come out as exact
15430
+ * lines and circles. `makeFace` turns a closed outline into a face facing along the frame's
15431
+ * normal; one that crosses itself is refused.
15432
+ */
15433
+ "occt.sketch.pen": {
15434
+ /** The moves of the pen, drawn one after another from `start`. */
15435
+ commands: unknown[] | PipelineRef;
15436
+ /** Where the pen starts, in the sketch's x and y. */
15437
+ start?: [number, number] | PipelineRef;
15438
+ /**
15439
+ * The frame the sketch lies in, its direction the sketch's x axis and its normal out of the face.
15440
+ * Left out, the ground, with the sketch's y axis along -Z.
15441
+ */
15442
+ frame?: unknown | PipelineRef;
15443
+ /** When true, the closed outline becomes a face whose normal is the frame's normal. */
15444
+ makeFace?: boolean | PipelineRef;
15445
+ };
15446
+ /**
15447
+ * Draws an outline as `pen` does and reports which edges each command drew, so later steps can
15448
+ * find the edges and faces a command made by its `id`.
15449
+ *
15450
+ * Edges are numbered as `shapes.edge.getEdges` numbers them on the result. A command without an
15451
+ * `id` is named by its position, and a command that drew nothing is left out.
15452
+ */
15453
+ "occt.sketch.penWithSegments": {
15454
+ /** The moves of the pen, drawn one after another from `start`. */
15455
+ commands: unknown[] | PipelineRef;
15456
+ /** Where the pen starts, in the sketch's x and y. */
15457
+ start?: [number, number] | PipelineRef;
15458
+ /**
15459
+ * The frame the sketch lies in, its direction the sketch's x axis and its normal out of the face.
15460
+ * Left out, the ground, with the sketch's y axis along -Z.
15461
+ */
15462
+ frame?: unknown | PipelineRef;
15463
+ /** When true, the closed outline becomes a face whose normal is the frame's normal. */
15464
+ makeFace?: boolean | PipelineRef;
15465
+ };
15466
+ /**
15467
+ * Outlines a wire as if it were drawn with a pen of a given width, in a frame's plane.
15468
+ *
15469
+ * Half of `width` lies to each side; `cap` finishes an open wire's ends and `join` its corners.
15470
+ * A closed wire gives a ring: a face with one hole, or its two wires in a compound without
15471
+ * `makeFace`.
15472
+ */
15473
+ "occt.sketch.stroke": {
15474
+ /** The wire or edge to outline, lying in the frame's plane. */
15475
+ shape: unknown | PipelineRef;
15476
+ /** How wide the stroke is, in model units; it reaches half the width to each side. */
15477
+ width?: number | PipelineRef;
15478
+ /** How the two ends of an open wire are finished; a closed wire has no ends. */
15479
+ cap?: "flat" | "round" | "square" | PipelineRef;
15480
+ /**
15481
+ * How the outline goes around the wire's corners: `arc` rounds them, `intersection` keeps them
15482
+ * sharp, `tangent` continues each side tangentially.
15483
+ */
15484
+ join?: "arc" | "intersection" | "tangent" | PipelineRef;
15485
+ /** The frame whose plane the wire lies in. Leave it out for the ground plane. */
15486
+ frame?: unknown | PipelineRef;
15487
+ /** When true, the outline becomes a face; a closed wire gives a ring, a face with one hole. */
15488
+ makeFace?: boolean | PipelineRef;
15489
+ };
15189
15490
  /**
15190
15491
  * Parses an SVG document and builds every drawable element into one compound shape on the
15191
15492
  * ground plane, ready to draw, extrude or transform as a whole.