@snaptrude/plugin-core 0.0.0-dev-20260827194031 → 0.0.0-dev-20260908074328

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/index.cjs CHANGED
@@ -367,6 +367,7 @@ __export(index_exports, {
367
367
  PluginDesignCreateWindowArgs: () => PluginDesignCreateWindowArgs,
368
368
  PluginDesignDeleteApi: () => PluginDesignDeleteApi,
369
369
  PluginDesignDeleteEntitiesArgs: () => PluginDesignDeleteEntitiesArgs,
370
+ PluginDesignDeleteResult: () => PluginDesignDeleteResult,
370
371
  PluginDesignDoorArgs: () => PluginDesignDoorArgs,
371
372
  PluginDesignDoorExistsArgs: () => PluginDesignDoorExistsArgs,
372
373
  PluginDesignDoorGetCatalogItemArgs: () => PluginDesignDoorGetCatalogItemArgs,
@@ -428,6 +429,7 @@ __export(index_exports, {
428
429
  PluginDesignQuerySpacesGetEnclosureArgs: () => PluginDesignQuerySpacesGetEnclosureArgs,
429
430
  PluginDesignQuerySpacesGetProperty: () => PluginDesignQuerySpacesGetProperty,
430
431
  PluginDesignQuerySpacesGetResult: () => PluginDesignQuerySpacesGetResult,
432
+ PluginDesignQuerySpacesListGeneratedBimArgs: () => PluginDesignQuerySpacesListGeneratedBimArgs,
431
433
  PluginDesignRotateArgs: () => PluginDesignRotateArgs,
432
434
  PluginDesignSelectionAddArgs: () => PluginDesignSelectionAddArgs,
433
435
  PluginDesignSelectionApi: () => PluginDesignSelectionApi,
@@ -705,6 +707,7 @@ __export(index_exports, {
705
707
  PluginPlacedViewsMoveShapeArgs: () => PluginPlacedViewsMoveShapeArgs,
706
708
  PluginPlacedViewsResizeShapeArgs: () => PluginPlacedViewsResizeShapeArgs,
707
709
  PluginPlacedViewsSetLabelHiddenArgs: () => PluginPlacedViewsSetLabelHiddenArgs,
710
+ PluginPlacedViewsSetLodArgs: () => PluginPlacedViewsSetLodArgs,
708
711
  PluginPlacedViewsSetMaskArgs: () => PluginPlacedViewsSetMaskArgs,
709
712
  PluginPlacedViewsSetOpacityArgs: () => PluginPlacedViewsSetOpacityArgs,
710
713
  PluginPlacedViewsUpdateFontStylesArgs: () => PluginPlacedViewsUpdateFontStylesArgs,
@@ -986,6 +989,7 @@ __export(index_exports, {
986
989
  PluginSpaceCreateRectangularResult: () => PluginSpaceCreateRectangularResult,
987
990
  PluginSpaceDeleteArgs: () => PluginSpaceDeleteArgs,
988
991
  PluginSpaceEnclosure: () => PluginSpaceEnclosure,
992
+ PluginSpaceGeneratedBim: () => PluginSpaceGeneratedBim,
989
993
  PluginSpaceGeometryUpdate: () => PluginSpaceGeometryUpdate,
990
994
  PluginSpaceGetAllResult: () => PluginSpaceGetAllResult,
991
995
  PluginSpaceGetArgs: () => PluginSpaceGetArgs,
@@ -1080,6 +1084,7 @@ __export(index_exports, {
1080
1084
  PluginVec3Api: () => PluginVec3Api,
1081
1085
  PluginViewLabelType: () => PluginViewLabelType,
1082
1086
  PluginViewLineStyle: () => PluginViewLineStyle,
1087
+ PluginViewLod: () => PluginViewLod,
1083
1088
  PluginViewSettingCategory: () => PluginViewSettingCategory,
1084
1089
  PluginWallUpdates: () => PluginWallUpdates,
1085
1090
  PluginWeatherGetSeriesArgs: () => PluginWeatherGetSeriesArgs,
@@ -3057,7 +3062,8 @@ var PluginSpaceUpdateResult = z38.object({
3057
3062
  massType: z38.string().optional(),
3058
3063
  spaceType: z38.string().optional(),
3059
3064
  areaClass: PluginAreaClass.optional(),
3060
- departmentId: z38.string().nullable().optional()
3065
+ departmentId: z38.string().nullable().optional(),
3066
+ rebuilt: z38.boolean().optional()
3061
3067
  });
3062
3068
  var PluginSpaceBulkCreateItem = z38.discriminatedUnion("kind", [
3063
3069
  z38.object({
@@ -3386,6 +3392,14 @@ var PluginSpaceEnclosure = z41.object({
3386
3392
  surfaces: z41.array(PluginEnclosureSurface),
3387
3393
  adjacentSpaces: z41.array(PluginAdjacentSpace)
3388
3394
  });
3395
+ var PluginDesignQuerySpacesListGeneratedBimArgs = z41.object({
3396
+ space: ComponentHandle
3397
+ });
3398
+ var PluginSpaceGeneratedBim = z41.object({
3399
+ walls: z41.array(ComponentHandle),
3400
+ floors: z41.array(ComponentHandle),
3401
+ slabs: z41.array(ComponentHandle)
3402
+ });
3389
3403
 
3390
3404
  // src/api/design/query/referenceLines.ts
3391
3405
  var PluginDesignQueryReferenceLinesApi = class {
@@ -3457,6 +3471,7 @@ var PluginEntityProperties = z42.object({
3457
3471
  isLocked: z42.boolean(),
3458
3472
  isHidden: z42.boolean(),
3459
3473
  isSelected: z42.boolean(),
3474
+ isVisible: z42.boolean(),
3460
3475
  boundingBox: BBoxComponents,
3461
3476
  adjacency: z42.array(z42.object({ spaceId: z42.string(), value: z42.number() }))
3462
3477
  }).partial();
@@ -3806,6 +3821,9 @@ var z50 = __toESM(require("zod"), 1);
3806
3821
  var PluginDesignDeleteEntitiesArgs = z50.object({
3807
3822
  components: z50.array(ComponentHandle).min(1)
3808
3823
  });
3824
+ var PluginDesignDeleteResult = PluginDesignChangeResult.extend({
3825
+ cascaded: z50.array(ComponentHandle).optional()
3826
+ });
3809
3827
  var PluginDesignDeleteApi = class {
3810
3828
  constructor() {
3811
3829
  }
@@ -5136,6 +5154,7 @@ var PluginSheetPosition = z71.object({
5136
5154
  x: z71.number(),
5137
5155
  y: z71.number()
5138
5156
  });
5157
+ var PluginViewLod = z71.enum(["design", "bim"]);
5139
5158
  var PluginPresentationSheetsListResult = z71.object({
5140
5159
  sheets: z71.array(PluginPresentationSheet)
5141
5160
  });
@@ -5161,7 +5180,8 @@ var PluginPresentationSheetsPlaceArgs = z71.object({
5161
5180
  sheetId: z71.string(),
5162
5181
  viewId: z71.string(),
5163
5182
  position: PluginSheetPosition.optional(),
5164
- scale: z71.number().positive().optional()
5183
+ scale: z71.number().positive().optional(),
5184
+ lod: PluginViewLod.optional()
5165
5185
  });
5166
5186
  var PluginPresentationSheetsPlaceResult = z71.object({
5167
5187
  shapeId: z71.string()
@@ -5218,7 +5238,9 @@ var PluginPlacedView = z72.object({
5218
5238
  is3d: z72.boolean(),
5219
5239
  rotation: z72.number(),
5220
5240
  crop: PluginPlacedViewCrop.nullable(),
5221
- isUnlinked: z72.boolean()
5241
+ isUnlinked: z72.boolean(),
5242
+ lod: PluginViewLod.optional(),
5243
+ inactiveBuildingMask: z72.boolean().optional()
5222
5244
  });
5223
5245
  var PluginPresentationPlacedViewsListArgs = z72.object({
5224
5246
  sheetId: z72.string().optional()
@@ -5359,6 +5381,10 @@ var PluginPlacedViewsSetMaskArgs = z72.object({
5359
5381
  shapeId: z72.string().min(1),
5360
5382
  enabled: z72.boolean()
5361
5383
  });
5384
+ var PluginPlacedViewsSetLodArgs = z72.object({
5385
+ shapeId: z72.string().min(1),
5386
+ lod: PluginViewLod
5387
+ });
5362
5388
 
5363
5389
  // src/api/presentation/diagrams.ts
5364
5390
  var z73 = __toESM(require("zod"), 1);
@@ -6525,6 +6551,10 @@ var PLUGIN_ERROR_CODES = [
6525
6551
  "NO_ACTIVE_STRUCTURE",
6526
6552
  "NO_ELIGIBLE_ELEMENTS",
6527
6553
  "PROPOSAL_SWITCH_BLOCKED",
6554
+ "HANDLE_STALE",
6555
+ "KIND_HIDDEN_IN_MODE",
6556
+ "MERGED_INTO_EXISTING",
6557
+ "BLOCKED_IN_BIM",
6528
6558
  "INTERNAL",
6529
6559
  "UNKNOWN"
6530
6560
  ];
@@ -6582,6 +6612,22 @@ var CODE_META = {
6582
6612
  category: "execution",
6583
6613
  hintTemplate: "Wait for the in-canvas agent run to finish, then retry."
6584
6614
  },
6615
+ HANDLE_STALE: {
6616
+ category: "handle",
6617
+ hintTemplate: "The entity was retired by a parametric resolution (merge/split/rebuild); re-query for its successor."
6618
+ },
6619
+ KIND_HIDDEN_IN_MODE: {
6620
+ category: "execution",
6621
+ hintTemplate: "This entity kind has no representation in the current mode/LOD; switch mode or target a visible kind."
6622
+ },
6623
+ MERGED_INTO_EXISTING: {
6624
+ category: "execution",
6625
+ hintTemplate: "The created geometry merged into an existing entity; use the surviving handles from details."
6626
+ },
6627
+ BLOCKED_IN_BIM: {
6628
+ category: "execution",
6629
+ hintTemplate: "This operation is unavailable in BIM mode; switch to Design and retry."
6630
+ },
6585
6631
  INTERNAL: {
6586
6632
  category: "internal",
6587
6633
  hintTemplate: "Host-side fault. Report with errorId."
@@ -7018,6 +7064,7 @@ function makeClientEnvelope(code, message, extra) {
7018
7064
  PluginDesignCreateWindowArgs,
7019
7065
  PluginDesignDeleteApi,
7020
7066
  PluginDesignDeleteEntitiesArgs,
7067
+ PluginDesignDeleteResult,
7021
7068
  PluginDesignDoorArgs,
7022
7069
  PluginDesignDoorExistsArgs,
7023
7070
  PluginDesignDoorGetCatalogItemArgs,
@@ -7079,6 +7126,7 @@ function makeClientEnvelope(code, message, extra) {
7079
7126
  PluginDesignQuerySpacesGetEnclosureArgs,
7080
7127
  PluginDesignQuerySpacesGetProperty,
7081
7128
  PluginDesignQuerySpacesGetResult,
7129
+ PluginDesignQuerySpacesListGeneratedBimArgs,
7082
7130
  PluginDesignRotateArgs,
7083
7131
  PluginDesignSelectionAddArgs,
7084
7132
  PluginDesignSelectionApi,
@@ -7356,6 +7404,7 @@ function makeClientEnvelope(code, message, extra) {
7356
7404
  PluginPlacedViewsMoveShapeArgs,
7357
7405
  PluginPlacedViewsResizeShapeArgs,
7358
7406
  PluginPlacedViewsSetLabelHiddenArgs,
7407
+ PluginPlacedViewsSetLodArgs,
7359
7408
  PluginPlacedViewsSetMaskArgs,
7360
7409
  PluginPlacedViewsSetOpacityArgs,
7361
7410
  PluginPlacedViewsUpdateFontStylesArgs,
@@ -7637,6 +7686,7 @@ function makeClientEnvelope(code, message, extra) {
7637
7686
  PluginSpaceCreateRectangularResult,
7638
7687
  PluginSpaceDeleteArgs,
7639
7688
  PluginSpaceEnclosure,
7689
+ PluginSpaceGeneratedBim,
7640
7690
  PluginSpaceGeometryUpdate,
7641
7691
  PluginSpaceGetAllResult,
7642
7692
  PluginSpaceGetArgs,
@@ -7731,6 +7781,7 @@ function makeClientEnvelope(code, message, extra) {
7731
7781
  PluginVec3Api,
7732
7782
  PluginViewLabelType,
7733
7783
  PluginViewLineStyle,
7784
+ PluginViewLod,
7734
7785
  PluginViewSettingCategory,
7735
7786
  PluginWallUpdates,
7736
7787
  PluginWeatherGetSeriesArgs,