@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.js
CHANGED
|
@@ -2999,35 +2999,6 @@ var NetworkCreateArgs = NetworkValidateArgs.extend({
|
|
|
2999
2999
|
requestId: z45.string().uuid()
|
|
3000
3000
|
});
|
|
3001
3001
|
var NetworkGetArgs = z45.object({ graphId: z45.string().uuid() }).strict();
|
|
3002
|
-
var NetworkMoveEdgeArgs = NetworkGetArgs.extend({
|
|
3003
|
-
expectedRevision: z45.number().int().positive(),
|
|
3004
|
-
edgeId: id,
|
|
3005
|
-
displacement: Vec3Handle,
|
|
3006
|
-
requestId: z45.string().uuid()
|
|
3007
|
-
}).strict();
|
|
3008
|
-
var NetworkMoveEdgeResult = z45.object({
|
|
3009
|
-
graphId: z45.string().uuid(),
|
|
3010
|
-
revision: z45.number().int().positive(),
|
|
3011
|
-
affectedComponentIds: z45.array(z45.string().min(1)),
|
|
3012
|
-
alreadyApplied: z45.boolean(),
|
|
3013
|
-
/** Queue acceptance does not acknowledge durable storage. */
|
|
3014
|
-
saveStatus: z45.enum(["queued", "existing"])
|
|
3015
|
-
}).strict();
|
|
3016
|
-
var NetworkEditReceipt = z45.object({
|
|
3017
|
-
requestId: z45.string().uuid(),
|
|
3018
|
-
fingerprint: z45.string().max(1e3),
|
|
3019
|
-
revision: z45.number().int().positive(),
|
|
3020
|
-
affectedComponentIds: z45.array(z45.string().min(1)).max(1e3)
|
|
3021
|
-
}).strict();
|
|
3022
|
-
var NetworkTransition = z45.object({
|
|
3023
|
-
id: z45.string().uuid(),
|
|
3024
|
-
expectedRevision: z45.number().int().positive(),
|
|
3025
|
-
forward: z45.boolean()
|
|
3026
|
-
}).strict();
|
|
3027
|
-
var NetworkTransitionReceipt = NetworkTransition.extend({
|
|
3028
|
-
requestId: z45.string().uuid(),
|
|
3029
|
-
revision: z45.number().int().positive()
|
|
3030
|
-
}).strict();
|
|
3031
3002
|
var NetworkContextArgs = z45.object({
|
|
3032
3003
|
offset: z45.number().int().nonnegative().default(0),
|
|
3033
3004
|
limit: z45.number().int().min(1).max(100).default(30),
|
|
@@ -4015,148 +3986,161 @@ var PluginDesignDoorGetCatalogItemArgs = z56.object({
|
|
|
4015
3986
|
var PluginDesignDoorExistsArgs = PluginDesignDoorGetCatalogItemArgs;
|
|
4016
3987
|
|
|
4017
3988
|
// src/api/design/windows/index.ts
|
|
3989
|
+
import * as z58 from "zod";
|
|
3990
|
+
|
|
3991
|
+
// src/api/design/materials/index.ts
|
|
4018
3992
|
import * as z57 from "zod";
|
|
4019
|
-
var
|
|
3993
|
+
var PluginDesignMaterialsApi = class {
|
|
4020
3994
|
constructor() {
|
|
4021
3995
|
}
|
|
4022
3996
|
};
|
|
4023
|
-
var
|
|
4024
|
-
|
|
3997
|
+
var PluginMaterialInfo = z57.object({
|
|
3998
|
+
name: z57.string(),
|
|
3999
|
+
id: z57.string(),
|
|
4000
|
+
colorHex: z57.string(),
|
|
4001
|
+
alpha: z57.number(),
|
|
4002
|
+
materialType: z57.string().optional(),
|
|
4003
|
+
textureUrl: z57.string().optional(),
|
|
4004
|
+
transmission: z57.number().optional()
|
|
4005
|
+
});
|
|
4006
|
+
var PluginMaterialSpec = z57.object({
|
|
4007
|
+
name: z57.string().optional(),
|
|
4008
|
+
color: z57.string().optional(),
|
|
4009
|
+
textureUrl: z57.string().optional(),
|
|
4010
|
+
alpha: z57.number().optional(),
|
|
4011
|
+
materialType: z57.string().optional(),
|
|
4012
|
+
transmission: z57.number().min(0).max(1).optional()
|
|
4013
|
+
});
|
|
4014
|
+
var PluginMaterialResult = z57.object({ count: z57.number() });
|
|
4015
|
+
var PluginFaceMaterial = z57.object({
|
|
4016
|
+
faceIndex: z57.number().int().nonnegative(),
|
|
4017
|
+
material: MaterialHandle.nullable()
|
|
4025
4018
|
});
|
|
4026
|
-
var
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4019
|
+
var PluginComponentMaterial = z57.object({
|
|
4020
|
+
material: MaterialHandle,
|
|
4021
|
+
id: z57.string(),
|
|
4022
|
+
name: z57.string(),
|
|
4023
|
+
source: z57.enum(["default", "applied"])
|
|
4030
4024
|
});
|
|
4031
|
-
var
|
|
4032
|
-
|
|
4033
|
-
|
|
4025
|
+
var PluginPresetMaterial = z57.object({
|
|
4026
|
+
name: z57.string(),
|
|
4027
|
+
category: z57.string(),
|
|
4028
|
+
textureUrl: z57.string()
|
|
4034
4029
|
});
|
|
4035
|
-
var
|
|
4036
|
-
|
|
4037
|
-
height: z57.number()
|
|
4030
|
+
var PluginDesignMaterialsGetInfoArgs = z57.object({
|
|
4031
|
+
material: MaterialHandle
|
|
4038
4032
|
});
|
|
4039
|
-
var
|
|
4040
|
-
|
|
4033
|
+
var PluginDesignMaterialsComponentArgs = z57.object({
|
|
4034
|
+
component: ComponentHandle
|
|
4041
4035
|
});
|
|
4042
|
-
var
|
|
4043
|
-
|
|
4036
|
+
var PluginDesignMaterialsApplyArgs = z57.object({
|
|
4037
|
+
targets: z57.array(ComponentHandle),
|
|
4038
|
+
material: z57.union([MaterialHandle, PluginMaterialSpec]),
|
|
4039
|
+
save: z57.boolean().optional()
|
|
4044
4040
|
});
|
|
4045
|
-
var
|
|
4041
|
+
var PluginDesignMaterialsApplyToSlotArgs = z57.object({
|
|
4042
|
+
components: z57.array(ComponentHandle),
|
|
4043
|
+
slot: z57.enum(["glazing", "frame"]),
|
|
4044
|
+
material: z57.union([MaterialHandle, PluginMaterialSpec])
|
|
4045
|
+
});
|
|
4046
|
+
var PluginDesignMaterialsResetArgs = z57.object({
|
|
4047
|
+
components: z57.array(ComponentHandle),
|
|
4048
|
+
save: z57.boolean().optional()
|
|
4049
|
+
});
|
|
4050
|
+
var PluginDesignMaterialsCreateArgs = z57.object({
|
|
4051
|
+
spec: PluginMaterialSpec
|
|
4052
|
+
});
|
|
4053
|
+
var PluginDesignMaterialsApplyToFacesArgs = z57.object({
|
|
4054
|
+
component: ComponentHandle,
|
|
4055
|
+
faces: z57.array(z57.number().int().nonnegative()),
|
|
4056
|
+
material: z57.union([MaterialHandle, PluginMaterialSpec]),
|
|
4057
|
+
save: z57.boolean().optional()
|
|
4058
|
+
});
|
|
4059
|
+
var PluginDesignMaterialsResetFacesArgs = z57.object({
|
|
4060
|
+
component: ComponentHandle,
|
|
4061
|
+
faces: z57.array(z57.number().int().nonnegative()),
|
|
4062
|
+
save: z57.boolean().optional()
|
|
4063
|
+
});
|
|
4064
|
+
var PluginDesignMaterialsGetByFaceArgs = z57.object({
|
|
4065
|
+
component: ComponentHandle,
|
|
4066
|
+
face: z57.number().int().nonnegative()
|
|
4067
|
+
});
|
|
4068
|
+
var PluginDesignMaterialsListByFaceArgs = PluginDesignMaterialsComponentArgs;
|
|
4046
4069
|
|
|
4047
|
-
// src/api/design/
|
|
4048
|
-
|
|
4049
|
-
var PluginDesignFurnitureApi = class {
|
|
4070
|
+
// src/api/design/windows/index.ts
|
|
4071
|
+
var PluginDesignWindowsApi = class {
|
|
4050
4072
|
constructor() {
|
|
4051
4073
|
}
|
|
4052
4074
|
};
|
|
4053
|
-
var
|
|
4054
|
-
|
|
4055
|
-
name: z58.string(),
|
|
4056
|
-
source: z58.enum(["team", "general"]),
|
|
4057
|
-
subType: z58.string().optional(),
|
|
4058
|
-
category: z58.string().optional(),
|
|
4059
|
-
thumbnailUrl: z58.string().optional(),
|
|
4060
|
-
cost: z58.number().optional(),
|
|
4061
|
-
familyName: z58.string().optional()
|
|
4075
|
+
var PluginDesignWindowArgs = z58.object({
|
|
4076
|
+
window: ComponentHandle
|
|
4062
4077
|
});
|
|
4063
|
-
var
|
|
4064
|
-
|
|
4065
|
-
|
|
4078
|
+
var PluginWindowDimensions = z58.object({
|
|
4079
|
+
width: z58.number(),
|
|
4080
|
+
height: z58.number(),
|
|
4081
|
+
thickness: z58.number()
|
|
4066
4082
|
});
|
|
4067
|
-
var
|
|
4068
|
-
|
|
4083
|
+
var PluginDesignWindowSetWidthArgs = z58.object({
|
|
4084
|
+
window: ComponentHandle,
|
|
4085
|
+
width: z58.number()
|
|
4069
4086
|
});
|
|
4070
|
-
var
|
|
4071
|
-
|
|
4072
|
-
length: z58.number(),
|
|
4073
|
-
width: z58.number(),
|
|
4087
|
+
var PluginDesignWindowSetHeightArgs = z58.object({
|
|
4088
|
+
window: ComponentHandle,
|
|
4074
4089
|
height: z58.number()
|
|
4075
4090
|
});
|
|
4076
|
-
var
|
|
4077
|
-
|
|
4091
|
+
var PluginDesignWindowSetSlotArgs = z58.object({
|
|
4092
|
+
window: ComponentHandle,
|
|
4093
|
+
material: z58.union([MaterialHandle, PluginMaterialSpec])
|
|
4078
4094
|
});
|
|
4079
|
-
var
|
|
4080
|
-
|
|
4081
|
-
width: z58.number().positive().optional(),
|
|
4082
|
-
height: z58.number().positive().optional()
|
|
4095
|
+
var PluginDesignWindowListCatalogArgs = z58.object({
|
|
4096
|
+
group: z58.string().optional()
|
|
4083
4097
|
});
|
|
4084
|
-
var
|
|
4085
|
-
|
|
4086
|
-
dimensions: PluginFurnitureDimensionUpdates
|
|
4098
|
+
var PluginDesignWindowGetCatalogItemArgs = z58.object({
|
|
4099
|
+
id: z58.string()
|
|
4087
4100
|
});
|
|
4101
|
+
var PluginDesignWindowExistsArgs = PluginDesignWindowGetCatalogItemArgs;
|
|
4088
4102
|
|
|
4089
|
-
// src/api/design/
|
|
4103
|
+
// src/api/design/furniture/index.ts
|
|
4090
4104
|
import * as z59 from "zod";
|
|
4091
|
-
var
|
|
4105
|
+
var PluginDesignFurnitureApi = class {
|
|
4092
4106
|
constructor() {
|
|
4093
4107
|
}
|
|
4094
4108
|
};
|
|
4095
|
-
var
|
|
4096
|
-
name: z59.string(),
|
|
4109
|
+
var PluginFurnitureCatalogItem = z59.object({
|
|
4097
4110
|
id: z59.string(),
|
|
4098
|
-
colorHex: z59.string(),
|
|
4099
|
-
alpha: z59.number(),
|
|
4100
|
-
materialType: z59.string().optional(),
|
|
4101
|
-
textureUrl: z59.string().optional()
|
|
4102
|
-
});
|
|
4103
|
-
var PluginMaterialSpec = z59.object({
|
|
4104
|
-
name: z59.string().optional(),
|
|
4105
|
-
color: z59.string().optional(),
|
|
4106
|
-
textureUrl: z59.string().optional(),
|
|
4107
|
-
alpha: z59.number().optional(),
|
|
4108
|
-
materialType: z59.string().optional()
|
|
4109
|
-
});
|
|
4110
|
-
var PluginMaterialResult = z59.object({ count: z59.number() });
|
|
4111
|
-
var PluginFaceMaterial = z59.object({
|
|
4112
|
-
faceIndex: z59.number().int().nonnegative(),
|
|
4113
|
-
material: MaterialHandle.nullable()
|
|
4114
|
-
});
|
|
4115
|
-
var PluginComponentMaterial = z59.object({
|
|
4116
|
-
material: MaterialHandle,
|
|
4117
|
-
id: z59.string(),
|
|
4118
|
-
name: z59.string(),
|
|
4119
|
-
source: z59.enum(["default", "applied"])
|
|
4120
|
-
});
|
|
4121
|
-
var PluginPresetMaterial = z59.object({
|
|
4122
4111
|
name: z59.string(),
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
var PluginDesignMaterialsComponentArgs = z59.object({
|
|
4130
|
-
component: ComponentHandle
|
|
4112
|
+
source: z59.enum(["team", "general"]),
|
|
4113
|
+
subType: z59.string().optional(),
|
|
4114
|
+
category: z59.string().optional(),
|
|
4115
|
+
thumbnailUrl: z59.string().optional(),
|
|
4116
|
+
cost: z59.number().optional(),
|
|
4117
|
+
familyName: z59.string().optional()
|
|
4131
4118
|
});
|
|
4132
|
-
var
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
save: z59.boolean().optional()
|
|
4119
|
+
var PluginDesignFurnitureListCatalogArgs = z59.object({
|
|
4120
|
+
source: z59.enum(["team", "general"]).optional(),
|
|
4121
|
+
category: z59.string().optional()
|
|
4136
4122
|
});
|
|
4137
|
-
var
|
|
4138
|
-
|
|
4139
|
-
save: z59.boolean().optional()
|
|
4123
|
+
var PluginDesignFurnitureGetCatalogItemArgs = z59.object({
|
|
4124
|
+
id: z59.string()
|
|
4140
4125
|
});
|
|
4141
|
-
var
|
|
4142
|
-
|
|
4126
|
+
var PluginDesignFurnitureExistsArgs = PluginDesignFurnitureGetCatalogItemArgs;
|
|
4127
|
+
var PluginFurnitureDimensions = z59.object({
|
|
4128
|
+
length: z59.number(),
|
|
4129
|
+
width: z59.number(),
|
|
4130
|
+
height: z59.number()
|
|
4143
4131
|
});
|
|
4144
|
-
var
|
|
4145
|
-
|
|
4146
|
-
faces: z59.array(z59.number().int().nonnegative()),
|
|
4147
|
-
material: z59.union([MaterialHandle, PluginMaterialSpec]),
|
|
4148
|
-
save: z59.boolean().optional()
|
|
4132
|
+
var PluginDesignFurnitureItemArgs = z59.object({
|
|
4133
|
+
item: ComponentHandle
|
|
4149
4134
|
});
|
|
4150
|
-
var
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4135
|
+
var PluginFurnitureDimensionUpdates = z59.object({
|
|
4136
|
+
length: z59.number().positive().optional(),
|
|
4137
|
+
width: z59.number().positive().optional(),
|
|
4138
|
+
height: z59.number().positive().optional()
|
|
4154
4139
|
});
|
|
4155
|
-
var
|
|
4156
|
-
|
|
4157
|
-
|
|
4140
|
+
var PluginDesignFurnitureSetDimensionsArgs = z59.object({
|
|
4141
|
+
item: ComponentHandle,
|
|
4142
|
+
dimensions: PluginFurnitureDimensionUpdates
|
|
4158
4143
|
});
|
|
4159
|
-
var PluginDesignMaterialsListByFaceArgs = PluginDesignMaterialsComponentArgs;
|
|
4160
4144
|
|
|
4161
4145
|
// src/api/design/lock.ts
|
|
4162
4146
|
import * as z60 from "zod";
|
|
@@ -8524,19 +8508,14 @@ export {
|
|
|
8524
8508
|
NetworkComponentBinding,
|
|
8525
8509
|
NetworkContextArgs,
|
|
8526
8510
|
NetworkCreateArgs,
|
|
8527
|
-
NetworkEditReceipt,
|
|
8528
8511
|
NetworkFamilyContract,
|
|
8529
8512
|
NetworkGeometry,
|
|
8530
8513
|
NetworkGetArgs,
|
|
8531
8514
|
NetworkGraphDocument,
|
|
8532
|
-
NetworkMoveEdgeArgs,
|
|
8533
|
-
NetworkMoveEdgeResult,
|
|
8534
8515
|
NetworkPort,
|
|
8535
8516
|
NetworkQuery,
|
|
8536
8517
|
NetworkQueryArgs,
|
|
8537
8518
|
NetworkTopologyDocument,
|
|
8538
|
-
NetworkTransition,
|
|
8539
|
-
NetworkTransitionReceipt,
|
|
8540
8519
|
NetworkValidateArgs,
|
|
8541
8520
|
OffsetSplitOutcome,
|
|
8542
8521
|
OperationRecord,
|
|
@@ -8982,6 +8961,7 @@ export {
|
|
|
8982
8961
|
PluginDesignMaterialsApi,
|
|
8983
8962
|
PluginDesignMaterialsApplyArgs,
|
|
8984
8963
|
PluginDesignMaterialsApplyToFacesArgs,
|
|
8964
|
+
PluginDesignMaterialsApplyToSlotArgs,
|
|
8985
8965
|
PluginDesignMaterialsComponentArgs,
|
|
8986
8966
|
PluginDesignMaterialsCreateArgs,
|
|
8987
8967
|
PluginDesignMaterialsGetByFaceArgs,
|
|
@@ -9046,6 +9026,7 @@ export {
|
|
|
9046
9026
|
PluginDesignWindowGetCatalogItemArgs,
|
|
9047
9027
|
PluginDesignWindowListCatalogArgs,
|
|
9048
9028
|
PluginDesignWindowSetHeightArgs,
|
|
9029
|
+
PluginDesignWindowSetSlotArgs,
|
|
9049
9030
|
PluginDesignWindowSetWidthArgs,
|
|
9050
9031
|
PluginDesignWindowsApi,
|
|
9051
9032
|
PluginDimensionLine,
|