@snaptrude/plugin-core 1.0.1 → 1.0.2-plainpoint-20261026.2

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.
Files changed (84) hide show
  1. package/CHANGELOG.md +0 -6
  2. package/api-manifest.json +1581 -94
  3. package/dist/api/core/camera/index.d.ts +12 -4
  4. package/dist/api/core/camera/index.d.ts.map +1 -1
  5. package/dist/api/core/comment/index.d.ts +7 -3
  6. package/dist/api/core/comment/index.d.ts.map +1 -1
  7. package/dist/api/core/geom/create/index.d.ts +69 -21
  8. package/dist/api/core/geom/create/index.d.ts.map +1 -1
  9. package/dist/api/core/geom/query/circle.d.ts +31 -11
  10. package/dist/api/core/geom/query/circle.d.ts.map +1 -1
  11. package/dist/api/core/geom/query/contour.d.ts +19 -7
  12. package/dist/api/core/geom/query/contour.d.ts.map +1 -1
  13. package/dist/api/core/geom/query/curve.d.ts +72 -24
  14. package/dist/api/core/geom/query/curve.d.ts.map +1 -1
  15. package/dist/api/core/geom/query/profile.d.ts +19 -7
  16. package/dist/api/core/geom/query/profile.d.ts.map +1 -1
  17. package/dist/api/core/geom/update/contour.d.ts +36 -12
  18. package/dist/api/core/geom/update/contour.d.ts.map +1 -1
  19. package/dist/api/core/geom/update/curve.d.ts +13 -5
  20. package/dist/api/core/geom/update/curve.d.ts.map +1 -1
  21. package/dist/api/core/geom/update/profile.d.ts +36 -12
  22. package/dist/api/core/geom/update/profile.d.ts.map +1 -1
  23. package/dist/api/core/io/import/index.d.ts +7 -3
  24. package/dist/api/core/io/import/index.d.ts.map +1 -1
  25. package/dist/api/core/math/quat.d.ts +2 -2
  26. package/dist/api/core/math/quat.d.ts.map +1 -1
  27. package/dist/api/core/math/vec3.d.ts +15 -15
  28. package/dist/api/core/math/vec3.d.ts.map +1 -1
  29. package/dist/api/design/boolean/index.d.ts +20 -4
  30. package/dist/api/design/boolean/index.d.ts.map +1 -1
  31. package/dist/api/design/create/bulk-items.d.ts +20 -4
  32. package/dist/api/design/create/bulk-items.d.ts.map +1 -1
  33. package/dist/api/design/create/index.d.ts +67 -27
  34. package/dist/api/design/create/index.d.ts.map +1 -1
  35. package/dist/api/design/delete/index.d.ts +14 -7
  36. package/dist/api/design/delete/index.d.ts.map +1 -1
  37. package/dist/api/design/dimensions.d.ts +12 -4
  38. package/dist/api/design/dimensions.d.ts.map +1 -1
  39. package/dist/api/design/edit/index.d.ts +7 -3
  40. package/dist/api/design/edit/index.d.ts.map +1 -1
  41. package/dist/api/design/erase/index.d.ts +10 -2
  42. package/dist/api/design/erase/index.d.ts.map +1 -1
  43. package/dist/api/design/family.d.ts +5 -1
  44. package/dist/api/design/family.d.ts.map +1 -1
  45. package/dist/api/design/lock.d.ts +3 -0
  46. package/dist/api/design/lock.d.ts.map +1 -1
  47. package/dist/api/design/transform/index.d.ts +28 -8
  48. package/dist/api/design/transform/index.d.ts.map +1 -1
  49. package/dist/api/entity/space.d.ts +30 -6
  50. package/dist/api/entity/space.d.ts.map +1 -1
  51. package/dist/api/presentation/drawings.d.ts +1 -1
  52. package/dist/handles.d.ts +8 -0
  53. package/dist/handles.d.ts.map +1 -1
  54. package/dist/index.cjs +91 -79
  55. package/dist/index.cjs.map +1 -1
  56. package/dist/index.js +90 -79
  57. package/dist/index.js.map +1 -1
  58. package/package.json +13 -13
  59. package/src/api/core/camera/index.ts +5 -5
  60. package/src/api/core/comment/index.ts +3 -3
  61. package/src/api/core/geom/create/index.ts +25 -25
  62. package/src/api/core/geom/query/circle.ts +11 -11
  63. package/src/api/core/geom/query/contour.ts +7 -6
  64. package/src/api/core/geom/query/curve.ts +25 -25
  65. package/src/api/core/geom/query/profile.ts +7 -6
  66. package/src/api/core/geom/update/contour.ts +12 -11
  67. package/src/api/core/geom/update/curve.ts +5 -5
  68. package/src/api/core/geom/update/profile.ts +12 -11
  69. package/src/api/core/io/import/index.ts +3 -2
  70. package/src/api/core/math/quat.ts +2 -2
  71. package/src/api/core/math/vec3.ts +16 -16
  72. package/src/api/design/boolean/index.ts +2 -2
  73. package/src/api/design/create/bulk-items.ts +3 -2
  74. package/src/api/design/create/index.ts +27 -26
  75. package/src/api/design/delete/index.ts +14 -7
  76. package/src/api/design/dimensions.ts +5 -4
  77. package/src/api/design/edit/index.ts +3 -3
  78. package/src/api/design/erase/index.ts +2 -2
  79. package/src/api/design/family.ts +2 -1
  80. package/src/api/design/lock.ts +6 -0
  81. package/src/api/design/transform/index.ts +15 -7
  82. package/src/api/entity/space.ts +5 -4
  83. package/src/handles.ts +11 -0
  84. package/test/handles.test.mjs +36 -0
package/dist/index.js CHANGED
@@ -337,6 +337,10 @@ var EdgeHandle = handleSchema("edge");
337
337
  var HalfEdgeHandle = handleSchema("halfedge");
338
338
  var VertexHandle = handleSchema("vertex");
339
339
  var Vec3Components = z3.object({ x: z3.number(), y: z3.number(), z: z3.number() });
340
+ var Vec3Input = z3.union(
341
+ [Vec3Handle, Vec3Components],
342
+ { error: 'expected a "vec3" handle or a plain { x, y, z } point' }
343
+ );
340
344
  var QuatComponents = z3.object({
341
345
  x: z3.number(),
342
346
  y: z3.number(),
@@ -353,35 +357,35 @@ var PluginGeomCreateApi = class {
353
357
  }
354
358
  };
355
359
  var PluginGeomCreateLineArgs = z4.object({
356
- startPoint: Vec3Handle,
357
- endPoint: Vec3Handle
360
+ startPoint: Vec3Input,
361
+ endPoint: Vec3Input
358
362
  });
359
363
  var PluginGeomCreateArcArgs = z4.object({
360
- startPoint: Vec3Handle,
361
- endPoint: Vec3Handle,
362
- centrePoint: Vec3Handle,
363
- axis: Vec3Handle
364
+ startPoint: Vec3Input,
365
+ endPoint: Vec3Input,
366
+ centrePoint: Vec3Input,
367
+ axis: Vec3Input
364
368
  });
365
369
  var PluginGeomCreateCircleArgs = z4.object({
366
- centrePoint: Vec3Handle,
367
- axis: Vec3Handle,
370
+ centrePoint: Vec3Input,
371
+ axis: Vec3Input,
368
372
  radius: z4.number()
369
373
  });
370
374
  var PluginGeomCreateSplineFromPointsArgs = z4.object({
371
- points: z4.array(Vec3Handle).min(3).max(MAX_SPLINE_THROUGH_POINTS)
375
+ points: z4.array(Vec3Input).min(3).max(MAX_SPLINE_THROUGH_POINTS)
372
376
  });
373
377
  var PluginGeomCreateSplineFromControlPointsArgs = z4.object({
374
- controlPoints: z4.array(Vec3Handle).min(3).max(MAX_SPLINE_POLES),
378
+ controlPoints: z4.array(Vec3Input).min(3).max(MAX_SPLINE_POLES),
375
379
  options: z4.object({ degree: z4.number().int().min(2).max(3).optional() }).optional()
376
380
  });
377
381
  var PluginGeomCreateProfileFromLinePointsArgs = z4.object({
378
- points: z4.array(Vec3Handle)
382
+ points: z4.array(Vec3Input)
379
383
  });
380
384
  var PluginGeomCreateProfileFromCurvesArgs = z4.object({
381
385
  curves: z4.array(CurveHandle)
382
386
  });
383
387
  var PluginGeomCreateProfileFromSplinePointsArgs = z4.object({
384
- points: z4.array(Vec3Handle).min(3).max(MAX_SPLINE_THROUGH_POINTS)
388
+ points: z4.array(Vec3Input).min(3).max(MAX_SPLINE_THROUGH_POINTS)
385
389
  });
386
390
  var PluginGeomCreateContourFromProfileArgs = z4.object({
387
391
  outer: ProfileHandle
@@ -605,42 +609,42 @@ var PluginGeomQueryCurveGetChordLengthArgs = z5.object({
605
609
  });
606
610
  var PluginGeomQueryCurveGetTangentArgs = z5.object({
607
611
  curve: CurveHandle,
608
- point: Vec3Handle
612
+ point: Vec3Input
609
613
  });
610
614
  var PluginGeomQueryCurveGetNormalArgs = z5.object({
611
615
  curve: CurveHandle,
612
- point: Vec3Handle
616
+ point: Vec3Input
613
617
  });
614
618
  var PluginGeomQueryCurveGetNearestPointArgs = z5.object({
615
619
  curve: CurveHandle,
616
- point: Vec3Handle
620
+ point: Vec3Input
617
621
  });
618
622
  var PluginGeomQueryCurveGetProjectionArgs = z5.object({
619
623
  curve: CurveHandle,
620
- point: Vec3Handle
624
+ point: Vec3Input
621
625
  });
622
626
  var PluginGeomQueryCurveGetPointAtDistanceArgs = z5.object({
623
627
  curve: CurveHandle,
624
- referencePoint: Vec3Handle,
628
+ referencePoint: Vec3Input,
625
629
  distance: z5.number(),
626
630
  forward: z5.boolean().optional()
627
631
  });
628
632
  var PluginGeomQueryCurveGetParameterAtPointArgs = z5.object({
629
633
  curve: CurveHandle,
630
- point: Vec3Handle
634
+ point: Vec3Input
631
635
  });
632
636
  var PluginGeomQueryCurveGetCurvatureArgs = z5.object({
633
637
  curve: CurveHandle,
634
- point: Vec3Handle
638
+ point: Vec3Input
635
639
  });
636
640
  var PluginGeomQueryCurveGetDistanceToPointArgs = z5.object({
637
641
  curve: CurveHandle,
638
- point: Vec3Handle
642
+ point: Vec3Input
639
643
  });
640
644
  var PluginGeomQueryCurveGetDistanceAlongArgs = z5.object({
641
645
  curve: CurveHandle,
642
- pointA: Vec3Handle,
643
- pointB: Vec3Handle
646
+ pointA: Vec3Input,
647
+ pointB: Vec3Input
644
648
  });
645
649
  var PluginGeomQueryCurveListPointsArgs = z5.object({
646
650
  curve: CurveHandle,
@@ -655,12 +659,12 @@ var PluginGeomQueryCurveIsLinearArgs = z5.object({
655
659
  });
656
660
  var PluginGeomQueryCurveIsOnCurveArgs = z5.object({
657
661
  curve: CurveHandle,
658
- point: Vec3Handle,
662
+ point: Vec3Input,
659
663
  threshold: z5.number().optional()
660
664
  });
661
665
  var PluginGeomQueryCurveHasPointArgs = z5.object({
662
666
  curve: CurveHandle,
663
- point: Vec3Handle,
667
+ point: Vec3Input,
664
668
  includeEndPoints: z5.boolean().optional()
665
669
  });
666
670
  var PluginGeomQueryCurveIsEqualArgs = z5.object({
@@ -730,23 +734,23 @@ var PluginGeomQueryCircleGetLengthArgs = z7.object({ circle: CircleHandle });
730
734
  var PluginGeomQueryCircleIsValidArgs = z7.object({ circle: CircleHandle });
731
735
  var PluginGeomQueryCircleGetNearestPointArgs = z7.object({
732
736
  circle: CircleHandle,
733
- point: Vec3Handle
737
+ point: Vec3Input
734
738
  });
735
739
  var PluginGeomQueryCircleHasPointArgs = z7.object({
736
740
  circle: CircleHandle,
737
- point: Vec3Handle
741
+ point: Vec3Input
738
742
  });
739
743
  var PluginGeomQueryCircleGetTangentArgs = z7.object({
740
744
  circle: CircleHandle,
741
- point: Vec3Handle
745
+ point: Vec3Input
742
746
  });
743
747
  var PluginGeomQueryCircleGetNormalArgs = z7.object({
744
748
  circle: CircleHandle,
745
- point: Vec3Handle
749
+ point: Vec3Input
746
750
  });
747
751
  var PluginGeomQueryCircleGetPointAtDistanceArgs = z7.object({
748
752
  circle: CircleHandle,
749
- referencePoint: Vec3Handle,
753
+ referencePoint: Vec3Input,
750
754
  distance: z7.number(),
751
755
  forward: z7.boolean().optional()
752
756
  });
@@ -785,15 +789,15 @@ var PluginGeomQueryProfileGetNormalArgs = z8.object({
785
789
  });
786
790
  var PluginGeomQueryProfileGetNearestPointArgs = z8.object({
787
791
  profile: ProfileHandle,
788
- point: Vec3Handle
792
+ point: Vec3Input
789
793
  });
790
794
  var PluginGeomQueryProfileHasPointArgs = z8.object({
791
795
  profile: ProfileHandle,
792
- point: Vec3Handle
796
+ point: Vec3Input
793
797
  });
794
798
  var PluginGeomQueryProfileIsOnBoundaryArgs = z8.object({
795
799
  profile: ProfileHandle,
796
- point: Vec3Handle
800
+ point: Vec3Input
797
801
  });
798
802
  var PluginGeomQueryProfileIsClosedArgs = z8.object({
799
803
  profile: ProfileHandle
@@ -844,15 +848,15 @@ var PluginGeomQueryContourGetNormalArgs = z9.object({
844
848
  });
845
849
  var PluginGeomQueryContourGetNearestPointArgs = z9.object({
846
850
  contour: ContourHandle,
847
- point: Vec3Handle
851
+ point: Vec3Input
848
852
  });
849
853
  var PluginGeomQueryContourHasPointArgs = z9.object({
850
854
  contour: ContourHandle,
851
- point: Vec3Handle
855
+ point: Vec3Input
852
856
  });
853
857
  var PluginGeomQueryContourIsOnBoundaryArgs = z9.object({
854
858
  contour: ContourHandle,
855
- point: Vec3Handle
859
+ point: Vec3Input
856
860
  });
857
861
  var PluginGeomQueryContourIsClockwiseArgs = z9.object({
858
862
  contour: ContourHandle
@@ -1016,7 +1020,7 @@ var PluginGeomUpdateCurveExtendArgs = z15.object({
1016
1020
  });
1017
1021
  var PluginGeomUpdateCurveSplitArgs = z15.object({
1018
1022
  curve: CurveHandle,
1019
- point: Vec3Handle
1023
+ point: Vec3Input
1020
1024
  });
1021
1025
  var PluginGeomUpdateCurveTrimArgs = z15.object({
1022
1026
  curve: CurveHandle,
@@ -1025,7 +1029,7 @@ var PluginGeomUpdateCurveTrimArgs = z15.object({
1025
1029
  });
1026
1030
  var PluginGeomUpdateCurveOffsetArgs = z15.object({
1027
1031
  curve: CurveHandle,
1028
- vector: Vec3Handle
1032
+ vector: Vec3Input
1029
1033
  });
1030
1034
  var PluginGeomUpdateCurveReverseArgs = z15.object({
1031
1035
  curve: CurveHandle
@@ -1043,24 +1047,24 @@ var PluginGeomUpdateProfileOffsetArgs = z16.object({
1043
1047
  });
1044
1048
  var PluginGeomUpdateProfileMoveArgs = z16.object({
1045
1049
  profile: ProfileHandle,
1046
- translation: Vec3Handle
1050
+ translation: Vec3Input
1047
1051
  });
1048
1052
  var PluginGeomUpdateProfileRotateArgs = z16.object({
1049
1053
  profile: ProfileHandle,
1050
- axis: Vec3Handle,
1054
+ axis: Vec3Input,
1051
1055
  angle: z16.number(),
1052
- pivot: Vec3Handle.optional()
1056
+ pivot: Vec3Input.optional()
1053
1057
  });
1054
1058
  var PluginGeomUpdateProfileScaleArgs = z16.object({
1055
1059
  profile: ProfileHandle,
1056
1060
  factor: z16.union([z16.number(), Vec3Components]),
1057
- pivot: Vec3Handle.optional()
1061
+ pivot: Vec3Input.optional()
1058
1062
  });
1059
1063
  var PluginGeomUpdateProfileMirrorArgs = z16.object({
1060
1064
  profile: ProfileHandle,
1061
1065
  plane: z16.object({
1062
- point: Vec3Handle,
1063
- normal: Vec3Handle
1066
+ point: Vec3Input,
1067
+ normal: Vec3Input
1064
1068
  })
1065
1069
  });
1066
1070
  var PluginGeomUpdateProfileAddArgs = z16.object({
@@ -1091,24 +1095,24 @@ var PluginGeomUpdateContourOffsetArgs = z17.object({
1091
1095
  });
1092
1096
  var PluginGeomUpdateContourMoveArgs = z17.object({
1093
1097
  contour: ContourHandle,
1094
- translation: Vec3Handle
1098
+ translation: Vec3Input
1095
1099
  });
1096
1100
  var PluginGeomUpdateContourRotateArgs = z17.object({
1097
1101
  contour: ContourHandle,
1098
- axis: Vec3Handle,
1102
+ axis: Vec3Input,
1099
1103
  angle: z17.number(),
1100
- pivot: Vec3Handle.optional()
1104
+ pivot: Vec3Input.optional()
1101
1105
  });
1102
1106
  var PluginGeomUpdateContourScaleArgs = z17.object({
1103
1107
  contour: ContourHandle,
1104
1108
  factor: z17.union([z17.number(), Vec3Components]),
1105
- pivot: Vec3Handle.optional()
1109
+ pivot: Vec3Input.optional()
1106
1110
  });
1107
1111
  var PluginGeomUpdateContourMirrorArgs = z17.object({
1108
1112
  contour: ContourHandle,
1109
1113
  plane: z17.object({
1110
- point: Vec3Handle,
1111
- normal: Vec3Handle
1114
+ point: Vec3Input,
1115
+ normal: Vec3Input
1112
1116
  })
1113
1117
  });
1114
1118
  var PluginGeomUpdateContourAddHoleArgs = z17.object({
@@ -1207,8 +1211,8 @@ var PluginStandardView = z21.enum([
1207
1211
  var PluginCameraMode = z21.enum(["2d", "3d"]);
1208
1212
  var PluginCameraProjection = z21.enum(["perspective", "orthographic"]);
1209
1213
  var PluginCameraLookFromArgs = z21.object({
1210
- eye: Vec3Handle,
1211
- target: Vec3Handle
1214
+ eye: Vec3Input,
1215
+ target: Vec3Input
1212
1216
  });
1213
1217
  var PluginCameraSetStandardViewArgs = z21.object({
1214
1218
  view: PluginStandardView
@@ -1344,7 +1348,7 @@ var PluginCommentApi = class {
1344
1348
  var CommentHandle = z24.string().min(1).transform((s) => s);
1345
1349
  var PluginCommentCreateArgs = z24.object({
1346
1350
  component: ComponentHandle.optional(),
1347
- position: Vec3Handle.optional(),
1351
+ position: Vec3Input.optional(),
1348
1352
  message: z24.string(),
1349
1353
  mentions: z24.array(z24.string()).optional()
1350
1354
  });
@@ -1896,7 +1900,7 @@ var PluginImportModelArgs = z33.object({
1896
1900
  source: ImportSource,
1897
1901
  storey: z33.number().int().optional(),
1898
1902
  format: ModelFormat.optional(),
1899
- position: Vec3Handle.optional(),
1903
+ position: Vec3Input.optional(),
1900
1904
  label: z33.string().optional()
1901
1905
  });
1902
1906
  var PluginImportTerrainArgs = z33.object({
@@ -2427,7 +2431,7 @@ var PluginPresentationGraphicsApi = class {
2427
2431
  // src/api/entity/space.ts
2428
2432
  import * as z42 from "zod";
2429
2433
  var PluginSpaceCreateRectangularArgs = z42.object({
2430
- position: Vec3Handle,
2434
+ position: Vec3Input,
2431
2435
  dimensions: z42.object({
2432
2436
  width: z42.number(),
2433
2437
  height: z42.number(),
@@ -2441,7 +2445,7 @@ var PluginSpaceCreateFromProfileArgs = z42.object({
2441
2445
  profile: ProfileHandle,
2442
2446
  innerProfiles: z42.array(ProfileHandle).optional(),
2443
2447
  extrudeHeight: z42.number(),
2444
- position: Vec3Handle
2448
+ position: Vec3Input
2445
2449
  });
2446
2450
  var PluginSpaceCreateFromProfileResult = z42.object({
2447
2451
  spaceId: z42.string()
@@ -2590,7 +2594,7 @@ var PluginSpaceUpdateResult = z42.object({
2590
2594
  var PluginSpaceBulkCreateItem = z42.discriminatedUnion("kind", [
2591
2595
  z42.object({
2592
2596
  kind: z42.literal("rectangular"),
2593
- position: Vec3Handle,
2597
+ position: Vec3Input,
2594
2598
  dimensions: z42.object({
2595
2599
  width: z42.number(),
2596
2600
  height: z42.number(),
@@ -2606,7 +2610,7 @@ var PluginSpaceBulkCreateItem = z42.discriminatedUnion("kind", [
2606
2610
  profile: ProfileHandle,
2607
2611
  innerProfiles: z42.array(ProfileHandle).optional(),
2608
2612
  extrudeHeight: z42.number(),
2609
- position: Vec3Handle,
2613
+ position: Vec3Input,
2610
2614
  room_type: z42.string().optional(),
2611
2615
  spaceType: PluginSpaceType.optional(),
2612
2616
  massType: PluginMassType.optional(),
@@ -3169,7 +3173,7 @@ var PluginDesignFamilyDeleteArgs = z46.object({
3169
3173
  var PluginDesignFamilyPlaceArgs = z46.object({
3170
3174
  id: z46.string().optional(),
3171
3175
  version: z46.number().int().positive().optional(),
3172
- position: z46.union([Vec3Handle, Vec3Components]).optional(),
3176
+ position: z46.union([Vec3Input, Vec3Components]).optional(),
3173
3177
  rotation: z46.number().optional(),
3174
3178
  values: z46.record(z46.string(), z46.union([z46.number(), z46.string()])).optional(),
3175
3179
  storey: z46.number().int().optional(),
@@ -3377,7 +3381,7 @@ var PluginCreateWallRunItems = z48.array(PluginCreateWallRunItem).min(1).max(PLU
3377
3381
  var PluginCreateFloorItem = z48.object({
3378
3382
  contour: ContourHandle,
3379
3383
  thickness: z48.number(),
3380
- position: Vec3Handle.optional()
3384
+ position: Vec3Input.optional()
3381
3385
  });
3382
3386
  var PluginCreateFloorItems = z48.array(PluginCreateFloorItem).min(1).max(PLUGIN_CREATE_BATCH_LIMIT);
3383
3387
  var PluginCreateDoorItem = z48.object({ ...PluginOpeningBaseOptions }).strict();
@@ -3389,7 +3393,7 @@ var PluginCreateWindowItem = z48.object({
3389
3393
  var PluginCreateWindowItems = z48.array(PluginCreateWindowItem).min(1).max(PLUGIN_CREATE_BATCH_LIMIT);
3390
3394
  var PluginCreateFurnitureItem = z48.object({
3391
3395
  catalogId: z48.string().min(1),
3392
- position: Vec3Handle,
3396
+ position: Vec3Input,
3393
3397
  label: z48.string().optional(),
3394
3398
  angleInDegrees: z48.number().optional()
3395
3399
  });
@@ -3474,7 +3478,7 @@ var PluginDesignCreateSpaceArgs = z50.object({
3474
3478
  contour: ContourHandle,
3475
3479
  height: z50.number(),
3476
3480
  label: z50.string().optional(),
3477
- position: Vec3Handle.optional(),
3481
+ position: Vec3Input.optional(),
3478
3482
  spaceType: PluginSpaceType.optional(),
3479
3483
  massType: PluginMassType.optional(),
3480
3484
  departmentId: PluginDepartmentId.optional(),
@@ -3484,7 +3488,7 @@ var PluginDesignCreateMassArgs = z50.object({
3484
3488
  contour: ContourHandle,
3485
3489
  height: z50.number(),
3486
3490
  label: z50.string().optional(),
3487
- position: Vec3Handle.optional(),
3491
+ position: Vec3Input.optional(),
3488
3492
  massType: PluginMassType.optional()
3489
3493
  });
3490
3494
  var PluginDesignCreateMassFromBrepArgs = z50.object({
@@ -3500,7 +3504,7 @@ var PluginDesignCreateSlabArgs = z50.object({
3500
3504
  var PluginDesignCreateFloorArgs = z50.object({
3501
3505
  contour: ContourHandle,
3502
3506
  thickness: z50.number(),
3503
- position: Vec3Handle.optional()
3507
+ position: Vec3Input.optional()
3504
3508
  });
3505
3509
  var PluginDesignCreateRoofArgs = z50.object({
3506
3510
  contour: ContourHandle,
@@ -3512,15 +3516,15 @@ var PluginDesignCreateCeilingArgs = z50.object({
3512
3516
  heightFromFloor: z50.number().optional()
3513
3517
  });
3514
3518
  var PluginDesignCreateColumnArgs = z50.object({
3515
- position: Vec3Handle,
3519
+ position: Vec3Input,
3516
3520
  crossSection: ContourHandle,
3517
3521
  height: z50.number(),
3518
- directionUp: Vec3Handle.optional()
3522
+ directionUp: Vec3Input.optional()
3519
3523
  });
3520
3524
  var PluginDesignCreateBeamArgs = z50.object({
3521
3525
  section: ContourHandle,
3522
3526
  length: z50.number(),
3523
- direction: Vec3Handle.optional()
3527
+ direction: Vec3Input.optional()
3524
3528
  });
3525
3529
  var PluginDesignCreateWallsArgs = z50.object({
3526
3530
  profile: ProfileHandle,
@@ -3533,7 +3537,7 @@ var PluginDesignCreateWallsArgs = z50.object({
3533
3537
  });
3534
3538
  var PluginDesignCreateStaircaseArgs = z50.object({
3535
3539
  preset: PluginStaircasePreset,
3536
- position: Vec3Handle,
3540
+ position: Vec3Input,
3537
3541
  label: z50.string().optional(),
3538
3542
  structureId: z50.string().optional(),
3539
3543
  level: z50.string().optional(),
@@ -3541,7 +3545,7 @@ var PluginDesignCreateStaircaseArgs = z50.object({
3541
3545
  });
3542
3546
  var PluginDesignCreateFurnitureArgs = z50.object({
3543
3547
  catalogId: z50.string().min(1),
3544
- position: Vec3Handle,
3548
+ position: Vec3Input,
3545
3549
  label: z50.string().optional(),
3546
3550
  createNewSourceMesh: z50.boolean().optional(),
3547
3551
  angleInDegrees: z50.number().optional()
@@ -3617,7 +3621,7 @@ var PluginDesignCreateReferenceLinesArgs = z50.object({
3617
3621
  var PluginCopyMode = z50.enum(["instance", "unique"]);
3618
3622
  var PluginDesignCreateCopyArgs = z50.object({
3619
3623
  components: z50.array(ComponentHandle).min(1),
3620
- displacement: Vec3Handle,
3624
+ displacement: Vec3Input,
3621
3625
  count: z50.number().int().positive().optional(),
3622
3626
  mode: PluginCopyMode.optional()
3623
3627
  });
@@ -3625,7 +3629,7 @@ var PluginCreateSpaceItem = z50.object({
3625
3629
  contour: ContourHandle,
3626
3630
  height: z50.number(),
3627
3631
  label: z50.string().optional(),
3628
- position: Vec3Handle.optional(),
3632
+ position: Vec3Input.optional(),
3629
3633
  spaceType: PluginSpaceType.optional(),
3630
3634
  massType: PluginMassType.optional(),
3631
3635
  departmentId: PluginDepartmentId.optional(),
@@ -4132,7 +4136,13 @@ var PluginDesignMaterialsListByFaceArgs = PluginDesignMaterialsComponentArgs;
4132
4136
  // src/api/design/lock.ts
4133
4137
  import * as z60 from "zod";
4134
4138
  var PluginDesignChangeResult = z60.object({
4135
- affected: z60.array(ComponentHandle)
4139
+ affected: z60.array(ComponentHandle),
4140
+ /** Derived BIM (walls/floors/slabs) the parametric engine removed with its host. Delete only. */
4141
+ cascaded: z60.array(ComponentHandle).optional(),
4142
+ /** Handles that no longer resolved when the call ran and were skipped. Delete only. */
4143
+ missing: z60.array(ComponentHandle).optional(),
4144
+ /** Handles the engine accepted but left standing; delete them again or report them. Delete only. */
4145
+ rejected: z60.array(ComponentHandle).optional()
4136
4146
  });
4137
4147
  var PluginDesignLockArgs = z60.object({
4138
4148
  components: z60.array(ComponentHandle)
@@ -4164,7 +4174,7 @@ var ErasableEdgeRef = z61.object({
4164
4174
  /** The components this edge is incident to — one for external (DirectDelete); two or more for internal (DirectUnion; 3+ at T-junctions where several masses share the edge). */
4165
4175
  components: z61.array(ComponentHandle),
4166
4176
  /** A representative point on the edge (its head endpoint). Diagnostic only. */
4167
- snapPoint: Vec3Handle
4177
+ snapPoint: Vec3Input
4168
4178
  });
4169
4179
  var PluginDesignListErasableEdgesArgs = z61.object({
4170
4180
  components: z61.array(ComponentHandle).optional(),
@@ -4208,7 +4218,7 @@ var PluginDesignBooleanApi = class {
4208
4218
  }
4209
4219
  };
4210
4220
  var BooleanOptions = z64.object({
4211
- offset: Vec3Handle.optional()
4221
+ offset: Vec3Input.optional()
4212
4222
  });
4213
4223
  var PluginDesignBooleanUnionArgs = z64.object({
4214
4224
  components: z64.array(ComponentHandle).min(2),
@@ -4241,16 +4251,16 @@ var PluginAlignEdge = z65.enum([
4241
4251
  ]);
4242
4252
  var PluginDesignMoveArgs = z65.object({
4243
4253
  components: z65.array(ComponentHandle).min(1),
4244
- displacement: Vec3Handle,
4254
+ displacement: Vec3Input,
4245
4255
  is2D: z65.boolean().optional(),
4246
4256
  trackParentChange: z65.boolean().optional()
4247
4257
  });
4248
4258
  var PluginDesignRotateArgs = z65.object({
4249
4259
  components: z65.array(ComponentHandle).min(1),
4250
4260
  angleInDegrees: z65.number(),
4251
- axis: Vec3Handle.optional(),
4261
+ axis: Vec3Input.optional(),
4252
4262
  is2D: z65.boolean().optional(),
4253
- pivot: Vec3Handle.optional()
4263
+ pivot: Vec3Input.optional()
4254
4264
  });
4255
4265
  var PluginDesignAlignArgs = z65.object({
4256
4266
  components: z65.array(ComponentHandle).min(1),
@@ -4271,7 +4281,7 @@ var PluginDesignEditApi = class {
4271
4281
  var PluginDesignOffsetSplitArgs = z66.object({
4272
4282
  component: ComponentHandle,
4273
4283
  offsetDistance: z66.number(),
4274
- profilePickPoint: Vec3Handle.optional()
4284
+ profilePickPoint: Vec3Input.optional()
4275
4285
  });
4276
4286
 
4277
4287
  // src/api/design/update/index.ts
@@ -4441,8 +4451,8 @@ var PluginDimensionsChangeResult = z69.object({
4441
4451
  affected: z69.array(DimensionHandle)
4442
4452
  });
4443
4453
  var PluginDesignDimensionsCreateArgs = z69.object({
4444
- from: Vec3Handle,
4445
- to: Vec3Handle,
4454
+ from: Vec3Input,
4455
+ to: Vec3Input,
4446
4456
  anchor: ComponentHandle,
4447
4457
  anchorTo: ComponentHandle.optional(),
4448
4458
  offset: z69.number().finite().optional()
@@ -9925,6 +9935,7 @@ export {
9925
9935
  UnderlayHandle,
9926
9936
  Vec3Components,
9927
9937
  Vec3Handle,
9938
+ Vec3Input,
9928
9939
  VertexHandle,
9929
9940
  XYZ,
9930
9941
  fromEnvelope,