@snaptrude/plugin-core 1.1.0-dev.20261025.1 → 1.1.0-pbr-20261028.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.
- package/CHANGELOG.md +6 -0
- package/api-manifest.json +10637 -0
- package/dist/api/design/materials/index.d.ts +49 -7
- package/dist/api/design/materials/index.d.ts.map +1 -1
- package/dist/api/design/networks.d.ts +1 -61
- package/dist/api/design/networks.d.ts.map +1 -1
- package/dist/api/design/windows/index.d.ts +34 -1
- package/dist/api/design/windows/index.d.ts.map +1 -1
- package/dist/index.cjs +123 -145
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +121 -140
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/design/materials/index.ts +44 -7
- package/src/api/design/networks.ts +2 -62
- package/src/api/design/windows/index.ts +38 -1
package/dist/index.cjs
CHANGED
|
@@ -95,19 +95,14 @@ __export(index_exports, {
|
|
|
95
95
|
NetworkComponentBinding: () => NetworkComponentBinding,
|
|
96
96
|
NetworkContextArgs: () => NetworkContextArgs,
|
|
97
97
|
NetworkCreateArgs: () => NetworkCreateArgs,
|
|
98
|
-
NetworkEditReceipt: () => NetworkEditReceipt,
|
|
99
98
|
NetworkFamilyContract: () => NetworkFamilyContract,
|
|
100
99
|
NetworkGeometry: () => NetworkGeometry,
|
|
101
100
|
NetworkGetArgs: () => NetworkGetArgs,
|
|
102
101
|
NetworkGraphDocument: () => NetworkGraphDocument,
|
|
103
|
-
NetworkMoveEdgeArgs: () => NetworkMoveEdgeArgs,
|
|
104
|
-
NetworkMoveEdgeResult: () => NetworkMoveEdgeResult,
|
|
105
102
|
NetworkPort: () => NetworkPort,
|
|
106
103
|
NetworkQuery: () => NetworkQuery,
|
|
107
104
|
NetworkQueryArgs: () => NetworkQueryArgs,
|
|
108
105
|
NetworkTopologyDocument: () => NetworkTopologyDocument,
|
|
109
|
-
NetworkTransition: () => NetworkTransition,
|
|
110
|
-
NetworkTransitionReceipt: () => NetworkTransitionReceipt,
|
|
111
106
|
NetworkValidateArgs: () => NetworkValidateArgs,
|
|
112
107
|
OffsetSplitOutcome: () => OffsetSplitOutcome,
|
|
113
108
|
OperationRecord: () => OperationRecord,
|
|
@@ -553,6 +548,7 @@ __export(index_exports, {
|
|
|
553
548
|
PluginDesignMaterialsApi: () => PluginDesignMaterialsApi,
|
|
554
549
|
PluginDesignMaterialsApplyArgs: () => PluginDesignMaterialsApplyArgs,
|
|
555
550
|
PluginDesignMaterialsApplyToFacesArgs: () => PluginDesignMaterialsApplyToFacesArgs,
|
|
551
|
+
PluginDesignMaterialsApplyToSlotArgs: () => PluginDesignMaterialsApplyToSlotArgs,
|
|
556
552
|
PluginDesignMaterialsComponentArgs: () => PluginDesignMaterialsComponentArgs,
|
|
557
553
|
PluginDesignMaterialsCreateArgs: () => PluginDesignMaterialsCreateArgs,
|
|
558
554
|
PluginDesignMaterialsGetByFaceArgs: () => PluginDesignMaterialsGetByFaceArgs,
|
|
@@ -617,6 +613,7 @@ __export(index_exports, {
|
|
|
617
613
|
PluginDesignWindowGetCatalogItemArgs: () => PluginDesignWindowGetCatalogItemArgs,
|
|
618
614
|
PluginDesignWindowListCatalogArgs: () => PluginDesignWindowListCatalogArgs,
|
|
619
615
|
PluginDesignWindowSetHeightArgs: () => PluginDesignWindowSetHeightArgs,
|
|
616
|
+
PluginDesignWindowSetSlotArgs: () => PluginDesignWindowSetSlotArgs,
|
|
620
617
|
PluginDesignWindowSetWidthArgs: () => PluginDesignWindowSetWidthArgs,
|
|
621
618
|
PluginDesignWindowsApi: () => PluginDesignWindowsApi,
|
|
622
619
|
PluginDimensionLine: () => PluginDimensionLine,
|
|
@@ -4542,35 +4539,6 @@ var NetworkCreateArgs = NetworkValidateArgs.extend({
|
|
|
4542
4539
|
requestId: z45.string().uuid()
|
|
4543
4540
|
});
|
|
4544
4541
|
var NetworkGetArgs = z45.object({ graphId: z45.string().uuid() }).strict();
|
|
4545
|
-
var NetworkMoveEdgeArgs = NetworkGetArgs.extend({
|
|
4546
|
-
expectedRevision: z45.number().int().positive(),
|
|
4547
|
-
edgeId: id,
|
|
4548
|
-
displacement: Vec3Handle,
|
|
4549
|
-
requestId: z45.string().uuid()
|
|
4550
|
-
}).strict();
|
|
4551
|
-
var NetworkMoveEdgeResult = z45.object({
|
|
4552
|
-
graphId: z45.string().uuid(),
|
|
4553
|
-
revision: z45.number().int().positive(),
|
|
4554
|
-
affectedComponentIds: z45.array(z45.string().min(1)),
|
|
4555
|
-
alreadyApplied: z45.boolean(),
|
|
4556
|
-
/** Queue acceptance does not acknowledge durable storage. */
|
|
4557
|
-
saveStatus: z45.enum(["queued", "existing"])
|
|
4558
|
-
}).strict();
|
|
4559
|
-
var NetworkEditReceipt = z45.object({
|
|
4560
|
-
requestId: z45.string().uuid(),
|
|
4561
|
-
fingerprint: z45.string().max(1e3),
|
|
4562
|
-
revision: z45.number().int().positive(),
|
|
4563
|
-
affectedComponentIds: z45.array(z45.string().min(1)).max(1e3)
|
|
4564
|
-
}).strict();
|
|
4565
|
-
var NetworkTransition = z45.object({
|
|
4566
|
-
id: z45.string().uuid(),
|
|
4567
|
-
expectedRevision: z45.number().int().positive(),
|
|
4568
|
-
forward: z45.boolean()
|
|
4569
|
-
}).strict();
|
|
4570
|
-
var NetworkTransitionReceipt = NetworkTransition.extend({
|
|
4571
|
-
requestId: z45.string().uuid(),
|
|
4572
|
-
revision: z45.number().int().positive()
|
|
4573
|
-
}).strict();
|
|
4574
4542
|
var NetworkContextArgs = z45.object({
|
|
4575
4543
|
offset: z45.number().int().nonnegative().default(0),
|
|
4576
4544
|
limit: z45.number().int().min(1).max(100).default(30),
|
|
@@ -5558,148 +5526,161 @@ var PluginDesignDoorGetCatalogItemArgs = z56.object({
|
|
|
5558
5526
|
var PluginDesignDoorExistsArgs = PluginDesignDoorGetCatalogItemArgs;
|
|
5559
5527
|
|
|
5560
5528
|
// src/api/design/windows/index.ts
|
|
5529
|
+
var z58 = __toESM(require("zod"), 1);
|
|
5530
|
+
|
|
5531
|
+
// src/api/design/materials/index.ts
|
|
5561
5532
|
var z57 = __toESM(require("zod"), 1);
|
|
5562
|
-
var
|
|
5533
|
+
var PluginDesignMaterialsApi = class {
|
|
5563
5534
|
constructor() {
|
|
5564
5535
|
}
|
|
5565
5536
|
};
|
|
5566
|
-
var
|
|
5567
|
-
|
|
5537
|
+
var PluginMaterialInfo = z57.object({
|
|
5538
|
+
name: z57.string(),
|
|
5539
|
+
id: z57.string(),
|
|
5540
|
+
colorHex: z57.string(),
|
|
5541
|
+
alpha: z57.number(),
|
|
5542
|
+
materialType: z57.string().optional(),
|
|
5543
|
+
textureUrl: z57.string().optional(),
|
|
5544
|
+
transmission: z57.number().optional()
|
|
5545
|
+
});
|
|
5546
|
+
var PluginMaterialSpec = z57.object({
|
|
5547
|
+
name: z57.string().optional(),
|
|
5548
|
+
color: z57.string().optional(),
|
|
5549
|
+
textureUrl: z57.string().optional(),
|
|
5550
|
+
alpha: z57.number().optional(),
|
|
5551
|
+
materialType: z57.string().optional(),
|
|
5552
|
+
transmission: z57.number().min(0).max(1).optional()
|
|
5553
|
+
});
|
|
5554
|
+
var PluginMaterialResult = z57.object({ count: z57.number() });
|
|
5555
|
+
var PluginFaceMaterial = z57.object({
|
|
5556
|
+
faceIndex: z57.number().int().nonnegative(),
|
|
5557
|
+
material: MaterialHandle.nullable()
|
|
5568
5558
|
});
|
|
5569
|
-
var
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5559
|
+
var PluginComponentMaterial = z57.object({
|
|
5560
|
+
material: MaterialHandle,
|
|
5561
|
+
id: z57.string(),
|
|
5562
|
+
name: z57.string(),
|
|
5563
|
+
source: z57.enum(["default", "applied"])
|
|
5573
5564
|
});
|
|
5574
|
-
var
|
|
5575
|
-
|
|
5576
|
-
|
|
5565
|
+
var PluginPresetMaterial = z57.object({
|
|
5566
|
+
name: z57.string(),
|
|
5567
|
+
category: z57.string(),
|
|
5568
|
+
textureUrl: z57.string()
|
|
5577
5569
|
});
|
|
5578
|
-
var
|
|
5579
|
-
|
|
5580
|
-
height: z57.number()
|
|
5570
|
+
var PluginDesignMaterialsGetInfoArgs = z57.object({
|
|
5571
|
+
material: MaterialHandle
|
|
5581
5572
|
});
|
|
5582
|
-
var
|
|
5583
|
-
|
|
5573
|
+
var PluginDesignMaterialsComponentArgs = z57.object({
|
|
5574
|
+
component: ComponentHandle
|
|
5584
5575
|
});
|
|
5585
|
-
var
|
|
5586
|
-
|
|
5576
|
+
var PluginDesignMaterialsApplyArgs = z57.object({
|
|
5577
|
+
targets: z57.array(ComponentHandle),
|
|
5578
|
+
material: z57.union([MaterialHandle, PluginMaterialSpec]),
|
|
5579
|
+
save: z57.boolean().optional()
|
|
5587
5580
|
});
|
|
5588
|
-
var
|
|
5581
|
+
var PluginDesignMaterialsApplyToSlotArgs = z57.object({
|
|
5582
|
+
components: z57.array(ComponentHandle),
|
|
5583
|
+
slot: z57.enum(["glazing", "frame"]),
|
|
5584
|
+
material: z57.union([MaterialHandle, PluginMaterialSpec])
|
|
5585
|
+
});
|
|
5586
|
+
var PluginDesignMaterialsResetArgs = z57.object({
|
|
5587
|
+
components: z57.array(ComponentHandle),
|
|
5588
|
+
save: z57.boolean().optional()
|
|
5589
|
+
});
|
|
5590
|
+
var PluginDesignMaterialsCreateArgs = z57.object({
|
|
5591
|
+
spec: PluginMaterialSpec
|
|
5592
|
+
});
|
|
5593
|
+
var PluginDesignMaterialsApplyToFacesArgs = z57.object({
|
|
5594
|
+
component: ComponentHandle,
|
|
5595
|
+
faces: z57.array(z57.number().int().nonnegative()),
|
|
5596
|
+
material: z57.union([MaterialHandle, PluginMaterialSpec]),
|
|
5597
|
+
save: z57.boolean().optional()
|
|
5598
|
+
});
|
|
5599
|
+
var PluginDesignMaterialsResetFacesArgs = z57.object({
|
|
5600
|
+
component: ComponentHandle,
|
|
5601
|
+
faces: z57.array(z57.number().int().nonnegative()),
|
|
5602
|
+
save: z57.boolean().optional()
|
|
5603
|
+
});
|
|
5604
|
+
var PluginDesignMaterialsGetByFaceArgs = z57.object({
|
|
5605
|
+
component: ComponentHandle,
|
|
5606
|
+
face: z57.number().int().nonnegative()
|
|
5607
|
+
});
|
|
5608
|
+
var PluginDesignMaterialsListByFaceArgs = PluginDesignMaterialsComponentArgs;
|
|
5589
5609
|
|
|
5590
|
-
// src/api/design/
|
|
5591
|
-
var
|
|
5592
|
-
var PluginDesignFurnitureApi = class {
|
|
5610
|
+
// src/api/design/windows/index.ts
|
|
5611
|
+
var PluginDesignWindowsApi = class {
|
|
5593
5612
|
constructor() {
|
|
5594
5613
|
}
|
|
5595
5614
|
};
|
|
5596
|
-
var
|
|
5597
|
-
|
|
5598
|
-
name: z58.string(),
|
|
5599
|
-
source: z58.enum(["team", "general"]),
|
|
5600
|
-
subType: z58.string().optional(),
|
|
5601
|
-
category: z58.string().optional(),
|
|
5602
|
-
thumbnailUrl: z58.string().optional(),
|
|
5603
|
-
cost: z58.number().optional(),
|
|
5604
|
-
familyName: z58.string().optional()
|
|
5615
|
+
var PluginDesignWindowArgs = z58.object({
|
|
5616
|
+
window: ComponentHandle
|
|
5605
5617
|
});
|
|
5606
|
-
var
|
|
5607
|
-
|
|
5608
|
-
|
|
5618
|
+
var PluginWindowDimensions = z58.object({
|
|
5619
|
+
width: z58.number(),
|
|
5620
|
+
height: z58.number(),
|
|
5621
|
+
thickness: z58.number()
|
|
5609
5622
|
});
|
|
5610
|
-
var
|
|
5611
|
-
|
|
5623
|
+
var PluginDesignWindowSetWidthArgs = z58.object({
|
|
5624
|
+
window: ComponentHandle,
|
|
5625
|
+
width: z58.number()
|
|
5612
5626
|
});
|
|
5613
|
-
var
|
|
5614
|
-
|
|
5615
|
-
length: z58.number(),
|
|
5616
|
-
width: z58.number(),
|
|
5627
|
+
var PluginDesignWindowSetHeightArgs = z58.object({
|
|
5628
|
+
window: ComponentHandle,
|
|
5617
5629
|
height: z58.number()
|
|
5618
5630
|
});
|
|
5619
|
-
var
|
|
5620
|
-
|
|
5631
|
+
var PluginDesignWindowSetSlotArgs = z58.object({
|
|
5632
|
+
window: ComponentHandle,
|
|
5633
|
+
material: z58.union([MaterialHandle, PluginMaterialSpec])
|
|
5621
5634
|
});
|
|
5622
|
-
var
|
|
5623
|
-
|
|
5624
|
-
width: z58.number().positive().optional(),
|
|
5625
|
-
height: z58.number().positive().optional()
|
|
5635
|
+
var PluginDesignWindowListCatalogArgs = z58.object({
|
|
5636
|
+
group: z58.string().optional()
|
|
5626
5637
|
});
|
|
5627
|
-
var
|
|
5628
|
-
|
|
5629
|
-
dimensions: PluginFurnitureDimensionUpdates
|
|
5638
|
+
var PluginDesignWindowGetCatalogItemArgs = z58.object({
|
|
5639
|
+
id: z58.string()
|
|
5630
5640
|
});
|
|
5641
|
+
var PluginDesignWindowExistsArgs = PluginDesignWindowGetCatalogItemArgs;
|
|
5631
5642
|
|
|
5632
|
-
// src/api/design/
|
|
5643
|
+
// src/api/design/furniture/index.ts
|
|
5633
5644
|
var z59 = __toESM(require("zod"), 1);
|
|
5634
|
-
var
|
|
5645
|
+
var PluginDesignFurnitureApi = class {
|
|
5635
5646
|
constructor() {
|
|
5636
5647
|
}
|
|
5637
5648
|
};
|
|
5638
|
-
var
|
|
5639
|
-
name: z59.string(),
|
|
5649
|
+
var PluginFurnitureCatalogItem = z59.object({
|
|
5640
5650
|
id: z59.string(),
|
|
5641
|
-
colorHex: z59.string(),
|
|
5642
|
-
alpha: z59.number(),
|
|
5643
|
-
materialType: z59.string().optional(),
|
|
5644
|
-
textureUrl: z59.string().optional()
|
|
5645
|
-
});
|
|
5646
|
-
var PluginMaterialSpec = z59.object({
|
|
5647
|
-
name: z59.string().optional(),
|
|
5648
|
-
color: z59.string().optional(),
|
|
5649
|
-
textureUrl: z59.string().optional(),
|
|
5650
|
-
alpha: z59.number().optional(),
|
|
5651
|
-
materialType: z59.string().optional()
|
|
5652
|
-
});
|
|
5653
|
-
var PluginMaterialResult = z59.object({ count: z59.number() });
|
|
5654
|
-
var PluginFaceMaterial = z59.object({
|
|
5655
|
-
faceIndex: z59.number().int().nonnegative(),
|
|
5656
|
-
material: MaterialHandle.nullable()
|
|
5657
|
-
});
|
|
5658
|
-
var PluginComponentMaterial = z59.object({
|
|
5659
|
-
material: MaterialHandle,
|
|
5660
|
-
id: z59.string(),
|
|
5661
|
-
name: z59.string(),
|
|
5662
|
-
source: z59.enum(["default", "applied"])
|
|
5663
|
-
});
|
|
5664
|
-
var PluginPresetMaterial = z59.object({
|
|
5665
5651
|
name: z59.string(),
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
var PluginDesignMaterialsComponentArgs = z59.object({
|
|
5673
|
-
component: ComponentHandle
|
|
5652
|
+
source: z59.enum(["team", "general"]),
|
|
5653
|
+
subType: z59.string().optional(),
|
|
5654
|
+
category: z59.string().optional(),
|
|
5655
|
+
thumbnailUrl: z59.string().optional(),
|
|
5656
|
+
cost: z59.number().optional(),
|
|
5657
|
+
familyName: z59.string().optional()
|
|
5674
5658
|
});
|
|
5675
|
-
var
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
save: z59.boolean().optional()
|
|
5659
|
+
var PluginDesignFurnitureListCatalogArgs = z59.object({
|
|
5660
|
+
source: z59.enum(["team", "general"]).optional(),
|
|
5661
|
+
category: z59.string().optional()
|
|
5679
5662
|
});
|
|
5680
|
-
var
|
|
5681
|
-
|
|
5682
|
-
save: z59.boolean().optional()
|
|
5663
|
+
var PluginDesignFurnitureGetCatalogItemArgs = z59.object({
|
|
5664
|
+
id: z59.string()
|
|
5683
5665
|
});
|
|
5684
|
-
var
|
|
5685
|
-
|
|
5666
|
+
var PluginDesignFurnitureExistsArgs = PluginDesignFurnitureGetCatalogItemArgs;
|
|
5667
|
+
var PluginFurnitureDimensions = z59.object({
|
|
5668
|
+
length: z59.number(),
|
|
5669
|
+
width: z59.number(),
|
|
5670
|
+
height: z59.number()
|
|
5686
5671
|
});
|
|
5687
|
-
var
|
|
5688
|
-
|
|
5689
|
-
faces: z59.array(z59.number().int().nonnegative()),
|
|
5690
|
-
material: z59.union([MaterialHandle, PluginMaterialSpec]),
|
|
5691
|
-
save: z59.boolean().optional()
|
|
5672
|
+
var PluginDesignFurnitureItemArgs = z59.object({
|
|
5673
|
+
item: ComponentHandle
|
|
5692
5674
|
});
|
|
5693
|
-
var
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5675
|
+
var PluginFurnitureDimensionUpdates = z59.object({
|
|
5676
|
+
length: z59.number().positive().optional(),
|
|
5677
|
+
width: z59.number().positive().optional(),
|
|
5678
|
+
height: z59.number().positive().optional()
|
|
5697
5679
|
});
|
|
5698
|
-
var
|
|
5699
|
-
|
|
5700
|
-
|
|
5680
|
+
var PluginDesignFurnitureSetDimensionsArgs = z59.object({
|
|
5681
|
+
item: ComponentHandle,
|
|
5682
|
+
dimensions: PluginFurnitureDimensionUpdates
|
|
5701
5683
|
});
|
|
5702
|
-
var PluginDesignMaterialsListByFaceArgs = PluginDesignMaterialsComponentArgs;
|
|
5703
5684
|
|
|
5704
5685
|
// src/api/design/lock.ts
|
|
5705
5686
|
var z60 = __toESM(require("zod"), 1);
|
|
@@ -10068,19 +10049,14 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
10068
10049
|
NetworkComponentBinding,
|
|
10069
10050
|
NetworkContextArgs,
|
|
10070
10051
|
NetworkCreateArgs,
|
|
10071
|
-
NetworkEditReceipt,
|
|
10072
10052
|
NetworkFamilyContract,
|
|
10073
10053
|
NetworkGeometry,
|
|
10074
10054
|
NetworkGetArgs,
|
|
10075
10055
|
NetworkGraphDocument,
|
|
10076
|
-
NetworkMoveEdgeArgs,
|
|
10077
|
-
NetworkMoveEdgeResult,
|
|
10078
10056
|
NetworkPort,
|
|
10079
10057
|
NetworkQuery,
|
|
10080
10058
|
NetworkQueryArgs,
|
|
10081
10059
|
NetworkTopologyDocument,
|
|
10082
|
-
NetworkTransition,
|
|
10083
|
-
NetworkTransitionReceipt,
|
|
10084
10060
|
NetworkValidateArgs,
|
|
10085
10061
|
OffsetSplitOutcome,
|
|
10086
10062
|
OperationRecord,
|
|
@@ -10526,6 +10502,7 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
10526
10502
|
PluginDesignMaterialsApi,
|
|
10527
10503
|
PluginDesignMaterialsApplyArgs,
|
|
10528
10504
|
PluginDesignMaterialsApplyToFacesArgs,
|
|
10505
|
+
PluginDesignMaterialsApplyToSlotArgs,
|
|
10529
10506
|
PluginDesignMaterialsComponentArgs,
|
|
10530
10507
|
PluginDesignMaterialsCreateArgs,
|
|
10531
10508
|
PluginDesignMaterialsGetByFaceArgs,
|
|
@@ -10590,6 +10567,7 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
10590
10567
|
PluginDesignWindowGetCatalogItemArgs,
|
|
10591
10568
|
PluginDesignWindowListCatalogArgs,
|
|
10592
10569
|
PluginDesignWindowSetHeightArgs,
|
|
10570
|
+
PluginDesignWindowSetSlotArgs,
|
|
10593
10571
|
PluginDesignWindowSetWidthArgs,
|
|
10594
10572
|
PluginDesignWindowsApi,
|
|
10595
10573
|
PluginDimensionLine,
|