@snaptrude/plugin-core 0.9.0 → 0.9.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.
- package/CHANGELOG.md +25 -0
- package/api-manifest.full.json +411 -2
- package/api-manifest.json +411 -2
- package/dist/api/core/geom/create/index.d.ts +406 -11
- package/dist/api/core/geom/create/index.d.ts.map +1 -1
- package/dist/api/core/geom/query/brep.d.ts +44 -0
- package/dist/api/core/geom/query/brep.d.ts.map +1 -1
- package/dist/api/core/io/terrain/index.d.ts +135 -0
- package/dist/api/core/io/terrain/index.d.ts.map +1 -1
- package/dist/api/presentation/annotate.d.ts +23 -4
- package/dist/api/presentation/annotate.d.ts.map +1 -1
- package/dist/api/presentation/diagrams.d.ts +64 -2
- package/dist/api/presentation/diagrams.d.ts.map +1 -1
- package/dist/api/presentation/index.d.ts +11 -1
- package/dist/api/presentation/index.d.ts.map +1 -1
- package/dist/api/presentation/placedViews.d.ts +772 -3
- package/dist/api/presentation/placedViews.d.ts.map +1 -1
- package/dist/api/presentation/shapes.d.ts +2 -2
- package/dist/api/presentation/sheets.d.ts +42 -0
- package/dist/api/presentation/sheets.d.ts.map +1 -1
- package/dist/api/presentation/slideshow.d.ts +125 -0
- package/dist/api/presentation/slideshow.d.ts.map +1 -0
- package/dist/api/presentation/tables.d.ts +81 -0
- package/dist/api/presentation/tables.d.ts.map +1 -0
- package/dist/api/program/site.d.ts +166 -2
- package/dist/api/program/site.d.ts.map +1 -1
- package/dist/api/workspace/index.d.ts +46 -1
- package/dist/api/workspace/index.d.ts.map +1 -1
- package/dist/index.cjs +890 -554
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +850 -554
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/core/geom/create/index.ts +445 -10
- package/src/api/core/geom/query/brep.ts +45 -0
- package/src/api/core/io/terrain/index.ts +146 -0
- package/src/api/presentation/annotate.ts +27 -2
- package/src/api/presentation/diagrams.ts +67 -2
- package/src/api/presentation/index.ts +11 -1
- package/src/api/presentation/placedViews.ts +760 -3
- package/src/api/presentation/sheets.ts +54 -0
- package/src/api/presentation/slideshow.ts +134 -0
- package/src/api/presentation/tables.ts +84 -0
- package/src/api/program/site.ts +110 -2
- package/src/api/workspace/index.ts +48 -1
package/dist/index.js
CHANGED
|
@@ -133,7 +133,8 @@ var PluginGeomCreateBrepFromExtrusionArgs = z2.object({
|
|
|
133
133
|
});
|
|
134
134
|
var PluginGeomCreateBrepFromLoftArgs = z2.object({
|
|
135
135
|
bottomContour: ContourHandle,
|
|
136
|
-
topContour: ContourHandle
|
|
136
|
+
topContour: ContourHandle,
|
|
137
|
+
intermediateContours: z2.array(ContourHandle).optional()
|
|
137
138
|
});
|
|
138
139
|
var PluginGeomCreateBrepFromMeshArgs = z2.object({
|
|
139
140
|
positions: z2.array(Vec3Components).min(4),
|
|
@@ -143,6 +144,45 @@ var PluginGeomCreateBrepBooleanArgs = z2.object({
|
|
|
143
144
|
a: BrepHandle,
|
|
144
145
|
b: BrepHandle
|
|
145
146
|
});
|
|
147
|
+
var FiniteVec3Components = z2.object({
|
|
148
|
+
x: z2.number().finite(),
|
|
149
|
+
y: z2.number().finite(),
|
|
150
|
+
z: z2.number().finite()
|
|
151
|
+
});
|
|
152
|
+
var PluginGeomCreateBrepFromFilletArgs = z2.object({
|
|
153
|
+
brep: BrepHandle,
|
|
154
|
+
edges: z2.array(EdgeHandle).min(1),
|
|
155
|
+
radius: z2.number().finite().positive()
|
|
156
|
+
});
|
|
157
|
+
var PluginGeomCreateBrepFromOffsetArgs = z2.object({
|
|
158
|
+
brep: BrepHandle,
|
|
159
|
+
distance: z2.number().finite().refine((value) => value !== 0, { message: "distance must be non-zero" })
|
|
160
|
+
});
|
|
161
|
+
var PluginGeomCreateBrepFromShellArgs = z2.object({
|
|
162
|
+
brep: BrepHandle,
|
|
163
|
+
openFaces: z2.array(FaceHandle).min(1),
|
|
164
|
+
thickness: z2.number().finite().positive()
|
|
165
|
+
});
|
|
166
|
+
var PluginGeomCreateBrepsFromSplitArgs = z2.object({
|
|
167
|
+
brep: BrepHandle,
|
|
168
|
+
planeOrigin: FiniteVec3Components,
|
|
169
|
+
planeNormal: FiniteVec3Components
|
|
170
|
+
});
|
|
171
|
+
var PluginGeomCreateBrepFromChamferArgs = z2.object({
|
|
172
|
+
brep: BrepHandle,
|
|
173
|
+
edges: z2.array(EdgeHandle).min(1),
|
|
174
|
+
distance: z2.number().finite().positive()
|
|
175
|
+
});
|
|
176
|
+
var PluginGeomCreateBrepFromSweepArgs = z2.object({
|
|
177
|
+
profile: ContourHandle,
|
|
178
|
+
path: z2.array(FiniteVec3Components).min(2)
|
|
179
|
+
});
|
|
180
|
+
var PluginGeomCreateBrepFromRevolutionArgs = z2.object({
|
|
181
|
+
profile: ContourHandle,
|
|
182
|
+
axisOrigin: FiniteVec3Components,
|
|
183
|
+
axisDirection: FiniteVec3Components,
|
|
184
|
+
angleInDegrees: z2.number().finite().positive().max(360).optional()
|
|
185
|
+
});
|
|
146
186
|
|
|
147
187
|
// src/api/core/geom/query/curve.ts
|
|
148
188
|
import * as z3 from "zod";
|
|
@@ -470,6 +510,10 @@ var PluginGeomQueryBrepIsEqualArgs = z8.object({
|
|
|
470
510
|
brepA: BrepHandle,
|
|
471
511
|
brepB: BrepHandle
|
|
472
512
|
});
|
|
513
|
+
var PluginGeomQueryBrepGetDistanceArgs = z8.object({
|
|
514
|
+
brepA: BrepHandle,
|
|
515
|
+
brepB: BrepHandle
|
|
516
|
+
});
|
|
473
517
|
|
|
474
518
|
// src/api/core/geom/query/face.ts
|
|
475
519
|
import * as z9 from "zod";
|
|
@@ -1365,6 +1409,29 @@ var TerrainReport = z33.object({
|
|
|
1365
1409
|
fillVolume: z33.number(),
|
|
1366
1410
|
netVolume: z33.number()
|
|
1367
1411
|
});
|
|
1412
|
+
var PluginTerrainReplaceMeshOptions = z33.object({
|
|
1413
|
+
coordinateSpace: z33.literal("world").optional(),
|
|
1414
|
+
expectedTerrain: z33.string().min(1).optional(),
|
|
1415
|
+
expectedModelRevision: z33.number().int().nonnegative().optional(),
|
|
1416
|
+
baseline: z33.literal("make-replacement-original").optional(),
|
|
1417
|
+
preserve: z33.object({
|
|
1418
|
+
datum: z33.boolean().optional(),
|
|
1419
|
+
geolocation: z33.boolean().optional(),
|
|
1420
|
+
satellite: z33.boolean().optional(),
|
|
1421
|
+
material: z33.boolean().optional()
|
|
1422
|
+
}).strict().optional(),
|
|
1423
|
+
clientMutationId: z33.string().min(1).max(128).optional()
|
|
1424
|
+
}).strict();
|
|
1425
|
+
var PluginTerrainReplaceMeshArgs = z33.object({
|
|
1426
|
+
positions: z33.array(z33.number().finite()).min(9).max(15e5).refine((a) => a.length % 3 === 0, {
|
|
1427
|
+
message: "positions must be a flat [x, y, z, \u2026] array (length a multiple of 3)"
|
|
1428
|
+
}),
|
|
1429
|
+
indices: z33.array(z33.number().int().nonnegative()).min(3).max(15e5).refine((a) => a.length % 3 === 0, {
|
|
1430
|
+
message: "indices must be a flat triangle list (length a multiple of 3)"
|
|
1431
|
+
}),
|
|
1432
|
+
units: z33.enum(["world", "meters"]).optional(),
|
|
1433
|
+
options: PluginTerrainReplaceMeshOptions.optional()
|
|
1434
|
+
});
|
|
1368
1435
|
var PluginTerrainSetDatumArgs = z33.object({ offset: z33.number().finite() });
|
|
1369
1436
|
var PluginTerrainSetOpacityArgs = z33.object({ opacity: z33.number().min(0).max(1) });
|
|
1370
1437
|
|
|
@@ -3367,6 +3434,27 @@ var PluginProgramSiteWeather = z65.object({
|
|
|
3367
3434
|
])
|
|
3368
3435
|
});
|
|
3369
3436
|
var PluginProgramSiteWeatherResult = PluginProgramSiteWeather.nullable();
|
|
3437
|
+
var PluginProgramSiteEdgeRole = z65.enum(["front", "side", "rear"]);
|
|
3438
|
+
var PluginProgramSiteEdge = z65.object({
|
|
3439
|
+
edgeIndex: z65.number().int().nonnegative(),
|
|
3440
|
+
start: z65.object({ x: z65.number(), z: z65.number() }),
|
|
3441
|
+
end: z65.object({ x: z65.number(), z: z65.number() }),
|
|
3442
|
+
lengthMeters: z65.number(),
|
|
3443
|
+
role: PluginProgramSiteEdgeRole,
|
|
3444
|
+
roleSource: z65.enum(["override", "heuristic"]),
|
|
3445
|
+
setbackMeters: z65.number().nullable()
|
|
3446
|
+
});
|
|
3447
|
+
var PluginProgramSiteEdgesEntry = z65.object({
|
|
3448
|
+
siteId: z65.string(),
|
|
3449
|
+
buildableEnvelopeId: z65.string().nullable(),
|
|
3450
|
+
usingLiveSiteBoundary: z65.boolean(),
|
|
3451
|
+
staleOverridesDropped: z65.boolean(),
|
|
3452
|
+
edges: z65.array(PluginProgramSiteEdge)
|
|
3453
|
+
});
|
|
3454
|
+
var PluginProgramSiteListEdgesResult = z65.object({
|
|
3455
|
+
lengthUnit: z65.literal("m"),
|
|
3456
|
+
sites: z65.array(PluginProgramSiteEdgesEntry)
|
|
3457
|
+
});
|
|
3370
3458
|
|
|
3371
3459
|
// src/api/program/cores.ts
|
|
3372
3460
|
import * as z66 from "zod";
|
|
@@ -3614,11 +3702,19 @@ var PluginSheetSize = z70.enum([
|
|
|
3614
3702
|
"ISO_A0"
|
|
3615
3703
|
]);
|
|
3616
3704
|
var PluginSheetOrientation = z70.enum(["landscape", "portrait"]);
|
|
3705
|
+
var PluginSheetMargin = z70.union([
|
|
3706
|
+
z70.literal(0),
|
|
3707
|
+
z70.literal(0.25),
|
|
3708
|
+
z70.literal(0.5),
|
|
3709
|
+
z70.literal(0.75),
|
|
3710
|
+
z70.literal(1)
|
|
3711
|
+
]);
|
|
3617
3712
|
var PluginPresentationSheet = z70.object({
|
|
3618
3713
|
id: z70.string(),
|
|
3619
3714
|
name: z70.string(),
|
|
3620
3715
|
size: PluginSheetSize.nullable(),
|
|
3621
|
-
orientation: PluginSheetOrientation.nullable()
|
|
3716
|
+
orientation: PluginSheetOrientation.nullable(),
|
|
3717
|
+
margin: PluginSheetMargin.nullable()
|
|
3622
3718
|
});
|
|
3623
3719
|
var PluginSheetPosition = z70.object({
|
|
3624
3720
|
x: z70.number(),
|
|
@@ -3641,6 +3737,10 @@ var PluginPresentationSheetsSetSizeArgs = z70.object({
|
|
|
3641
3737
|
size: PluginSheetSize,
|
|
3642
3738
|
orientation: PluginSheetOrientation.optional()
|
|
3643
3739
|
});
|
|
3740
|
+
var PluginPresentationSheetsSetMarginArgs = z70.object({
|
|
3741
|
+
sheetId: z70.string(),
|
|
3742
|
+
margin: PluginSheetMargin
|
|
3743
|
+
});
|
|
3644
3744
|
var PluginPresentationSheetsPlaceArgs = z70.object({
|
|
3645
3745
|
sheetId: z70.string(),
|
|
3646
3746
|
viewId: z70.string(),
|
|
@@ -3730,6 +3830,119 @@ var PluginPresentationPlacedViewsSetCropArgs = z71.object({
|
|
|
3730
3830
|
shapeId: z71.string(),
|
|
3731
3831
|
crop: PluginPlacedViewCrop.nullable()
|
|
3732
3832
|
});
|
|
3833
|
+
var PluginPresentationPlacedViewsSetRotationArgs = z71.object({
|
|
3834
|
+
shapeId: z71.string().min(1),
|
|
3835
|
+
rotation: z71.number().finite()
|
|
3836
|
+
});
|
|
3837
|
+
var PluginViewSettingCategory = z71.enum([
|
|
3838
|
+
"Site",
|
|
3839
|
+
"Topography",
|
|
3840
|
+
"Space",
|
|
3841
|
+
"Department",
|
|
3842
|
+
"Envelope",
|
|
3843
|
+
"Facade/Mass",
|
|
3844
|
+
"Dimension",
|
|
3845
|
+
"Reference Line",
|
|
3846
|
+
"Adjacency Line",
|
|
3847
|
+
"Landscape elements"
|
|
3848
|
+
]);
|
|
3849
|
+
var PluginViewLineStyle = z71.enum([
|
|
3850
|
+
"solid",
|
|
3851
|
+
"dashed",
|
|
3852
|
+
"dashdot",
|
|
3853
|
+
"hidden",
|
|
3854
|
+
"center",
|
|
3855
|
+
"phantom",
|
|
3856
|
+
"propertyLine"
|
|
3857
|
+
]);
|
|
3858
|
+
var PluginPlacedViewStylePatch = z71.object({
|
|
3859
|
+
hide: z71.boolean().optional(),
|
|
3860
|
+
lineStyle: PluginViewLineStyle.optional(),
|
|
3861
|
+
lineColor: z71.string().regex(/^#?[0-9a-fA-F]{6}$/, "lineColor must be a 6-digit hex color").optional(),
|
|
3862
|
+
dashLength: z71.number().finite().positive().optional(),
|
|
3863
|
+
lineWidth: z71.number().finite().min(0).optional(),
|
|
3864
|
+
cutWidth: z71.number().finite().min(0).optional(),
|
|
3865
|
+
projectionWidth: z71.number().finite().min(0).optional(),
|
|
3866
|
+
treeLineWidth: z71.number().finite().min(0).optional(),
|
|
3867
|
+
parkingLineWidth: z71.number().finite().min(0).optional(),
|
|
3868
|
+
colorMode: z71.string().refine(
|
|
3869
|
+
(v) => ["department", "texture", "monochrome"].includes(v) || v.startsWith("tag:"),
|
|
3870
|
+
{ message: "colorMode must be department, texture, monochrome, or tag:<tagCategoryId>" }
|
|
3871
|
+
).optional(),
|
|
3872
|
+
opacity: z71.number().finite().min(0).max(100).optional(),
|
|
3873
|
+
mapOpacity: z71.number().finite().min(0).max(100).optional(),
|
|
3874
|
+
buildingOpacity: z71.number().finite().min(0).max(100).optional(),
|
|
3875
|
+
mapHide: z71.boolean().optional(),
|
|
3876
|
+
buildingHide: z71.boolean().optional(),
|
|
3877
|
+
noBuilding: z71.boolean().optional(),
|
|
3878
|
+
viewStyle: z71.enum(["NONE", "FILLET", "BUBBLE"]).optional(),
|
|
3879
|
+
radius: z71.number().finite().min(0).optional(),
|
|
3880
|
+
inset: z71.number().finite().min(0).optional()
|
|
3881
|
+
}).strict().refine((p) => Object.keys(p).length > 0, { message: "patch must set at least one setting" });
|
|
3882
|
+
var PluginViewLabelType = z71.enum(["objectLabels", "department", "areas"]);
|
|
3883
|
+
var PluginViewFontVariantPatch = z71.object({
|
|
3884
|
+
fontFamily: z71.string().min(1).optional(),
|
|
3885
|
+
fontWeight: z71.string().regex(/^\d{3}$/, 'fontWeight must be a numeric string like "400" or "700"').optional(),
|
|
3886
|
+
fontStyle: z71.enum(["normal", "italic"]).optional(),
|
|
3887
|
+
fontSize: z71.number().finite().positive().max(200).optional()
|
|
3888
|
+
}).strict();
|
|
3889
|
+
var PluginPlacedViewFontStylesPatch = z71.object({
|
|
3890
|
+
visibleTypes: z71.array(PluginViewLabelType).optional(),
|
|
3891
|
+
objectLabels: PluginViewFontVariantPatch.optional(),
|
|
3892
|
+
department: PluginViewFontVariantPatch.optional(),
|
|
3893
|
+
areas: PluginViewFontVariantPatch.optional()
|
|
3894
|
+
}).strict().refine((p) => Object.keys(p).length > 0, { message: "patch must set at least one field" });
|
|
3895
|
+
var PluginPlacedViewsUpdateStylesArgs = z71.object({
|
|
3896
|
+
shapeId: z71.string().min(1),
|
|
3897
|
+
category: PluginViewSettingCategory,
|
|
3898
|
+
patch: PluginPlacedViewStylePatch
|
|
3899
|
+
});
|
|
3900
|
+
var PluginPlacedViewsUpdateFontStylesArgs = z71.object({
|
|
3901
|
+
shapeId: z71.string().min(1),
|
|
3902
|
+
category: PluginViewSettingCategory,
|
|
3903
|
+
patch: PluginPlacedViewFontStylesPatch
|
|
3904
|
+
});
|
|
3905
|
+
var PluginPlacedViewsMoveLabelArgs = z71.object({
|
|
3906
|
+
labelId: z71.string().min(1),
|
|
3907
|
+
position: PluginSheetPosition
|
|
3908
|
+
});
|
|
3909
|
+
var PluginPlacedViewsSetLabelHiddenArgs = z71.object({
|
|
3910
|
+
labelId: z71.string().min(1),
|
|
3911
|
+
hidden: z71.boolean()
|
|
3912
|
+
});
|
|
3913
|
+
var PluginCanvasShapeOrigin = z71.enum([
|
|
3914
|
+
"view",
|
|
3915
|
+
"aiOutput",
|
|
3916
|
+
"diagram",
|
|
3917
|
+
"pluginShape",
|
|
3918
|
+
"annotation",
|
|
3919
|
+
"image",
|
|
3920
|
+
"other"
|
|
3921
|
+
]);
|
|
3922
|
+
var PluginPlacedViewsMoveShapeArgs = z71.object({
|
|
3923
|
+
shapeId: z71.string().min(1),
|
|
3924
|
+
position: PluginSheetPosition,
|
|
3925
|
+
sheetId: z71.string().optional()
|
|
3926
|
+
});
|
|
3927
|
+
var PluginPlacedViewsResizeShapeArgs = z71.object({
|
|
3928
|
+
shapeId: z71.string().min(1),
|
|
3929
|
+
factor: z71.number().finite().min(0.01).max(100)
|
|
3930
|
+
});
|
|
3931
|
+
var PluginPresentationPlacedViewsRotateShapeArgs = z71.object({
|
|
3932
|
+
shapeId: z71.string().min(1),
|
|
3933
|
+
rotation: z71.number().finite()
|
|
3934
|
+
});
|
|
3935
|
+
var PluginPlacedViewsDeleteShapesArgs = z71.object({
|
|
3936
|
+
shapeIds: z71.array(z71.string().min(1)).min(1).max(500)
|
|
3937
|
+
});
|
|
3938
|
+
var PluginPlacedViewsSetOpacityArgs = z71.object({
|
|
3939
|
+
shapeId: z71.string().min(1),
|
|
3940
|
+
opacity: z71.number().finite().min(0).max(1)
|
|
3941
|
+
});
|
|
3942
|
+
var PluginPlacedViewsSetMaskArgs = z71.object({
|
|
3943
|
+
shapeId: z71.string().min(1),
|
|
3944
|
+
enabled: z71.boolean()
|
|
3945
|
+
});
|
|
3733
3946
|
|
|
3734
3947
|
// src/api/presentation/diagrams.ts
|
|
3735
3948
|
import * as z72 from "zod";
|
|
@@ -3745,6 +3958,14 @@ var PluginPresentationDiagramsPlaceArgs = z72.object({
|
|
|
3745
3958
|
var PluginPresentationDiagramsPlaceResult = z72.object({
|
|
3746
3959
|
shapeIds: z72.array(z72.string())
|
|
3747
3960
|
});
|
|
3961
|
+
var PluginPresentationSiteDiagramType = z72.enum([
|
|
3962
|
+
"location",
|
|
3963
|
+
"streetview",
|
|
3964
|
+
"climate"
|
|
3965
|
+
]);
|
|
3966
|
+
var PluginPresentationDiagramsGenerateSiteArgs = z72.object({
|
|
3967
|
+
types: z72.array(PluginPresentationSiteDiagramType).min(1).optional()
|
|
3968
|
+
});
|
|
3748
3969
|
var PluginPresentationDiagramsGenerateResult = z72.object({
|
|
3749
3970
|
sheetIds: z72.array(z72.string())
|
|
3750
3971
|
});
|
|
@@ -3776,7 +3997,13 @@ var PluginPresentationAnnotateTextArgs = z73.object({
|
|
|
3776
3997
|
text: z73.string(),
|
|
3777
3998
|
position: z73.object({ x: z73.number(), y: z73.number() }).optional(),
|
|
3778
3999
|
size: PluginAnnotateTextSize.optional(),
|
|
3779
|
-
color: PluginAnnotateTextColor.optional()
|
|
4000
|
+
color: PluginAnnotateTextColor.optional(),
|
|
4001
|
+
fontFamily: z73.string().min(1).optional(),
|
|
4002
|
+
fontWeight: z73.string().regex(
|
|
4003
|
+
/^\d{3}(-italic)?$/,
|
|
4004
|
+
'fontWeight must be a numeric string like "400" or "700", optionally with the "-italic" suffix'
|
|
4005
|
+
).optional(),
|
|
4006
|
+
fontSizePx: z73.number().finite().positive().optional()
|
|
3780
4007
|
});
|
|
3781
4008
|
var PluginPresentationAnnotateTextResult = z73.object({
|
|
3782
4009
|
shapeId: z73.string()
|
|
@@ -3899,229 +4126,258 @@ var PluginPresentationShapesListResult = z74.object({
|
|
|
3899
4126
|
)
|
|
3900
4127
|
});
|
|
3901
4128
|
|
|
3902
|
-
// src/api/presentation/
|
|
4129
|
+
// src/api/presentation/tables.ts
|
|
3903
4130
|
import * as z75 from "zod";
|
|
3904
|
-
var
|
|
4131
|
+
var PluginPresentationTablesApi = class {
|
|
3905
4132
|
constructor() {
|
|
3906
4133
|
}
|
|
3907
4134
|
};
|
|
3908
|
-
var
|
|
3909
|
-
|
|
3910
|
-
|
|
4135
|
+
var PluginPresentationTablesPlaceArgs = z75.object({
|
|
4136
|
+
sheetId: z75.string().min(1),
|
|
4137
|
+
rows: z75.array(z75.array(z75.string()).min(1)).min(1).refine((rows) => rows.reduce((n, r) => n + r.length, 0) <= 1e4, {
|
|
4138
|
+
message: "table exceeds the 10000-cell cap"
|
|
4139
|
+
}),
|
|
3911
4140
|
position: z75.object({ x: z75.number(), y: z75.number() }).optional()
|
|
4141
|
+
});
|
|
4142
|
+
|
|
4143
|
+
// src/api/presentation/slideshow.ts
|
|
4144
|
+
import * as z76 from "zod";
|
|
4145
|
+
var PluginPresentationSlideshowApi = class {
|
|
4146
|
+
constructor() {
|
|
4147
|
+
}
|
|
4148
|
+
};
|
|
4149
|
+
var PluginPresentationSlideshowStartArgs = z76.object({
|
|
4150
|
+
sheetIds: z76.array(z76.string().min(1)).optional(),
|
|
4151
|
+
startIndex: z76.number().int().min(0).optional()
|
|
4152
|
+
});
|
|
4153
|
+
var PluginPresentationSlideshowState = z76.object({
|
|
4154
|
+
running: z76.boolean(),
|
|
4155
|
+
index: z76.number().int().nullable()
|
|
4156
|
+
});
|
|
4157
|
+
|
|
4158
|
+
// src/api/presentation/import.ts
|
|
4159
|
+
import * as z77 from "zod";
|
|
4160
|
+
var PluginPresentationImportApi = class {
|
|
4161
|
+
constructor() {
|
|
4162
|
+
}
|
|
4163
|
+
};
|
|
4164
|
+
var PluginPresentationImportArgs = z77.object({
|
|
4165
|
+
url: z77.string().optional(),
|
|
4166
|
+
dataUrl: z77.string().optional(),
|
|
4167
|
+
position: z77.object({ x: z77.number(), y: z77.number() }).optional()
|
|
3912
4168
|
}).refine((a) => Boolean(a.url) || Boolean(a.dataUrl), {
|
|
3913
4169
|
message: "Provide a url or a dataUrl"
|
|
3914
4170
|
});
|
|
3915
|
-
var PluginPresentationImportResult =
|
|
3916
|
-
shapeIds:
|
|
4171
|
+
var PluginPresentationImportResult = z77.object({
|
|
4172
|
+
shapeIds: z77.array(z77.string())
|
|
3917
4173
|
});
|
|
3918
4174
|
|
|
3919
4175
|
// src/api/presentation/aiInspiration.ts
|
|
3920
|
-
import * as
|
|
3921
|
-
var JsonPrimitive =
|
|
3922
|
-
var JsonValue =
|
|
3923
|
-
() =>
|
|
4176
|
+
import * as z78 from "zod";
|
|
4177
|
+
var JsonPrimitive = z78.union([z78.string(), z78.number(), z78.boolean(), z78.null()]);
|
|
4178
|
+
var JsonValue = z78.lazy(
|
|
4179
|
+
() => z78.union([JsonPrimitive, z78.array(JsonValue), z78.record(z78.string(), JsonValue)])
|
|
3924
4180
|
);
|
|
3925
|
-
var PluginAIInspirationRunMode =
|
|
3926
|
-
var PluginAIInspirationOutputKind =
|
|
4181
|
+
var PluginAIInspirationRunMode = z78.enum(["blocking", "job"]);
|
|
4182
|
+
var PluginAIInspirationOutputKind = z78.enum([
|
|
3927
4183
|
"source",
|
|
3928
4184
|
"image",
|
|
3929
4185
|
"video"
|
|
3930
4186
|
]);
|
|
3931
|
-
var PluginAIInspirationModelOutput =
|
|
3932
|
-
var PluginAIInspirationRuntimeProvider =
|
|
3933
|
-
var PluginAIInspirationPromptStrategy =
|
|
4187
|
+
var PluginAIInspirationModelOutput = z78.enum(["image", "video"]);
|
|
4188
|
+
var PluginAIInspirationRuntimeProvider = z78.enum(["gpt", "fal"]);
|
|
4189
|
+
var PluginAIInspirationPromptStrategy = z78.enum([
|
|
3934
4190
|
"gpt-image",
|
|
3935
4191
|
"fal-image",
|
|
3936
4192
|
"fal-video"
|
|
3937
4193
|
]);
|
|
3938
|
-
var PluginAIInspirationShapeKind =
|
|
3939
|
-
var PluginAIInspirationVideoMode =
|
|
4194
|
+
var PluginAIInspirationShapeKind = z78.enum(["image", "view", "video"]);
|
|
4195
|
+
var PluginAIInspirationVideoMode = z78.enum([
|
|
3940
4196
|
"animate",
|
|
3941
4197
|
"references",
|
|
3942
4198
|
"keyframes"
|
|
3943
4199
|
]);
|
|
3944
|
-
var PluginAIInspirationVideoMotion =
|
|
4200
|
+
var PluginAIInspirationVideoMotion = z78.enum([
|
|
3945
4201
|
"auto",
|
|
3946
4202
|
"slow-dolly",
|
|
3947
4203
|
"subtle-orbit",
|
|
3948
4204
|
"reveal"
|
|
3949
4205
|
]);
|
|
3950
|
-
var PluginAIInspirationVideoDuration =
|
|
3951
|
-
var PluginAIInspirationJobStatus =
|
|
4206
|
+
var PluginAIInspirationVideoDuration = z78.enum(["4s", "6s", "8s"]);
|
|
4207
|
+
var PluginAIInspirationJobStatus = z78.enum([
|
|
3952
4208
|
"queued",
|
|
3953
4209
|
"running",
|
|
3954
4210
|
"completed",
|
|
3955
4211
|
"failed",
|
|
3956
4212
|
"cancelled"
|
|
3957
4213
|
]);
|
|
3958
|
-
var PluginAIInspirationWorkflowRunState =
|
|
4214
|
+
var PluginAIInspirationWorkflowRunState = z78.enum([
|
|
3959
4215
|
"current",
|
|
3960
4216
|
"stale",
|
|
3961
4217
|
"running",
|
|
3962
4218
|
"failed",
|
|
3963
4219
|
"superseded"
|
|
3964
4220
|
]);
|
|
3965
|
-
var PluginAIInspirationRegionHint =
|
|
3966
|
-
x:
|
|
3967
|
-
y:
|
|
3968
|
-
w:
|
|
3969
|
-
h:
|
|
3970
|
-
});
|
|
3971
|
-
var PluginAIInspirationPoint =
|
|
3972
|
-
x:
|
|
3973
|
-
y:
|
|
3974
|
-
});
|
|
3975
|
-
var PluginAIInspirationTextAnnotation =
|
|
3976
|
-
text:
|
|
3977
|
-
x:
|
|
3978
|
-
y:
|
|
3979
|
-
});
|
|
3980
|
-
var PluginAIInspirationSketchGuidance =
|
|
3981
|
-
visualShapeIds:
|
|
3982
|
-
textAnnotations:
|
|
3983
|
-
});
|
|
3984
|
-
var PluginAIInspirationSiteOptions =
|
|
3985
|
-
includeSatellite:
|
|
3986
|
-
includeStreetView:
|
|
3987
|
-
includeAerial:
|
|
3988
|
-
aerialBearing:
|
|
3989
|
-
aerialPitch:
|
|
3990
|
-
selectedDiagramIds:
|
|
3991
|
-
location:
|
|
3992
|
-
lat:
|
|
3993
|
-
lng:
|
|
4221
|
+
var PluginAIInspirationRegionHint = z78.object({
|
|
4222
|
+
x: z78.number().finite(),
|
|
4223
|
+
y: z78.number().finite(),
|
|
4224
|
+
w: z78.number().finite().positive(),
|
|
4225
|
+
h: z78.number().finite().positive()
|
|
4226
|
+
});
|
|
4227
|
+
var PluginAIInspirationPoint = z78.object({
|
|
4228
|
+
x: z78.number().finite(),
|
|
4229
|
+
y: z78.number().finite()
|
|
4230
|
+
});
|
|
4231
|
+
var PluginAIInspirationTextAnnotation = z78.object({
|
|
4232
|
+
text: z78.string().min(1),
|
|
4233
|
+
x: z78.number().finite().optional(),
|
|
4234
|
+
y: z78.number().finite().optional()
|
|
4235
|
+
});
|
|
4236
|
+
var PluginAIInspirationSketchGuidance = z78.object({
|
|
4237
|
+
visualShapeIds: z78.array(z78.string()).optional(),
|
|
4238
|
+
textAnnotations: z78.array(PluginAIInspirationTextAnnotation).optional()
|
|
4239
|
+
});
|
|
4240
|
+
var PluginAIInspirationSiteOptions = z78.object({
|
|
4241
|
+
includeSatellite: z78.boolean().optional(),
|
|
4242
|
+
includeStreetView: z78.boolean().optional(),
|
|
4243
|
+
includeAerial: z78.boolean().optional(),
|
|
4244
|
+
aerialBearing: z78.number().finite().optional(),
|
|
4245
|
+
aerialPitch: z78.number().finite().optional(),
|
|
4246
|
+
selectedDiagramIds: z78.array(z78.string()).optional(),
|
|
4247
|
+
location: z78.object({
|
|
4248
|
+
lat: z78.number().finite(),
|
|
4249
|
+
lng: z78.number().finite()
|
|
3994
4250
|
}).optional()
|
|
3995
4251
|
});
|
|
3996
|
-
var PluginAIInspirationAppliedPreset =
|
|
3997
|
-
source:
|
|
3998
|
-
presetId:
|
|
3999
|
-
name:
|
|
4000
|
-
savedPresetKind:
|
|
4001
|
-
stylePrompt:
|
|
4002
|
-
modelId:
|
|
4003
|
-
referenceImages:
|
|
4004
|
-
|
|
4005
|
-
url:
|
|
4006
|
-
label:
|
|
4007
|
-
weight:
|
|
4252
|
+
var PluginAIInspirationAppliedPreset = z78.object({
|
|
4253
|
+
source: z78.enum(["curated", "user"]),
|
|
4254
|
+
presetId: z78.string().min(1),
|
|
4255
|
+
name: z78.string().min(1),
|
|
4256
|
+
savedPresetKind: z78.enum(["prompt", "style"]).optional(),
|
|
4257
|
+
stylePrompt: z78.string().optional(),
|
|
4258
|
+
modelId: z78.string().optional(),
|
|
4259
|
+
referenceImages: z78.array(
|
|
4260
|
+
z78.object({
|
|
4261
|
+
url: z78.string().min(1),
|
|
4262
|
+
label: z78.string().optional(),
|
|
4263
|
+
weight: z78.number().finite().optional()
|
|
4008
4264
|
})
|
|
4009
4265
|
).optional(),
|
|
4010
|
-
siteDefaults:
|
|
4011
|
-
includeSatellite:
|
|
4012
|
-
includeStreetView:
|
|
4013
|
-
includeAerial:
|
|
4266
|
+
siteDefaults: z78.object({
|
|
4267
|
+
includeSatellite: z78.boolean().optional(),
|
|
4268
|
+
includeStreetView: z78.boolean().optional(),
|
|
4269
|
+
includeAerial: z78.boolean().optional()
|
|
4014
4270
|
}).optional()
|
|
4015
4271
|
});
|
|
4016
|
-
var PluginAIInspirationVideoOptions =
|
|
4272
|
+
var PluginAIInspirationVideoOptions = z78.object({
|
|
4017
4273
|
mode: PluginAIInspirationVideoMode.optional(),
|
|
4018
|
-
endFrameShapeId:
|
|
4274
|
+
endFrameShapeId: z78.string().optional(),
|
|
4019
4275
|
motion: PluginAIInspirationVideoMotion.optional(),
|
|
4020
4276
|
duration: PluginAIInspirationVideoDuration.optional()
|
|
4021
4277
|
});
|
|
4022
|
-
var PluginAIInspirationModel =
|
|
4023
|
-
id:
|
|
4024
|
-
label:
|
|
4025
|
-
supportsMultiImage:
|
|
4278
|
+
var PluginAIInspirationModel = z78.object({
|
|
4279
|
+
id: z78.string(),
|
|
4280
|
+
label: z78.string(),
|
|
4281
|
+
supportsMultiImage: z78.boolean(),
|
|
4026
4282
|
output: PluginAIInspirationModelOutput,
|
|
4027
|
-
isDefault:
|
|
4283
|
+
isDefault: z78.boolean().optional()
|
|
4028
4284
|
});
|
|
4029
|
-
var PluginAIInspirationModelCapability =
|
|
4030
|
-
id:
|
|
4285
|
+
var PluginAIInspirationModelCapability = z78.object({
|
|
4286
|
+
id: z78.string(),
|
|
4031
4287
|
output: PluginAIInspirationModelOutput,
|
|
4032
4288
|
provider: PluginAIInspirationRuntimeProvider,
|
|
4033
|
-
supportsRegionEdit:
|
|
4034
|
-
supportsReferenceImages:
|
|
4035
|
-
supportsStylePresets:
|
|
4036
|
-
supportsSiteContext:
|
|
4037
|
-
supportsSketchGuidance:
|
|
4038
|
-
supportsKeyframes:
|
|
4039
|
-
maxExtraImages:
|
|
4289
|
+
supportsRegionEdit: z78.boolean(),
|
|
4290
|
+
supportsReferenceImages: z78.boolean(),
|
|
4291
|
+
supportsStylePresets: z78.boolean(),
|
|
4292
|
+
supportsSiteContext: z78.boolean(),
|
|
4293
|
+
supportsSketchGuidance: z78.boolean(),
|
|
4294
|
+
supportsKeyframes: z78.boolean(),
|
|
4295
|
+
maxExtraImages: z78.number().int().nonnegative(),
|
|
4040
4296
|
promptStrategy: PluginAIInspirationPromptStrategy
|
|
4041
4297
|
});
|
|
4042
|
-
var PluginAIInspirationListModelsResult =
|
|
4043
|
-
defaultModelId:
|
|
4044
|
-
models:
|
|
4298
|
+
var PluginAIInspirationListModelsResult = z78.object({
|
|
4299
|
+
defaultModelId: z78.string(),
|
|
4300
|
+
models: z78.array(PluginAIInspirationModel)
|
|
4045
4301
|
});
|
|
4046
|
-
var PluginAIInspirationGetModelCapabilitiesArgs =
|
|
4047
|
-
modelId:
|
|
4302
|
+
var PluginAIInspirationGetModelCapabilitiesArgs = z78.object({
|
|
4303
|
+
modelId: z78.string().min(1)
|
|
4048
4304
|
});
|
|
4049
|
-
var PluginAIInspirationGetModelCapabilitiesResult =
|
|
4305
|
+
var PluginAIInspirationGetModelCapabilitiesResult = z78.object({
|
|
4050
4306
|
capability: PluginAIInspirationModelCapability
|
|
4051
4307
|
});
|
|
4052
|
-
var PluginAIInspirationShapeRef =
|
|
4053
|
-
shapeId:
|
|
4054
|
-
assetId:
|
|
4308
|
+
var PluginAIInspirationShapeRef = z78.object({
|
|
4309
|
+
shapeId: z78.string(),
|
|
4310
|
+
assetId: z78.string().optional(),
|
|
4055
4311
|
kind: PluginAIInspirationShapeKind,
|
|
4056
|
-
name:
|
|
4057
|
-
width:
|
|
4058
|
-
height:
|
|
4312
|
+
name: z78.string().optional(),
|
|
4313
|
+
width: z78.number().finite().optional(),
|
|
4314
|
+
height: z78.number().finite().optional(),
|
|
4059
4315
|
outputType: PluginAIInspirationOutputKind.optional(),
|
|
4060
|
-
sourceUrl:
|
|
4061
|
-
});
|
|
4062
|
-
var PluginAIInspirationListSourcesArgs =
|
|
4063
|
-
includeGenerated:
|
|
4064
|
-
includeSourceUrl:
|
|
4065
|
-
});
|
|
4066
|
-
var PluginAIInspirationListSourcesResult =
|
|
4067
|
-
sources:
|
|
4068
|
-
});
|
|
4069
|
-
var PluginAIInspirationGetSelectionResult =
|
|
4070
|
-
selectedShapeIds:
|
|
4071
|
-
sources:
|
|
4072
|
-
});
|
|
4073
|
-
var PluginAIInspirationPresetReferenceImage =
|
|
4074
|
-
url:
|
|
4075
|
-
label:
|
|
4076
|
-
weight:
|
|
4077
|
-
});
|
|
4078
|
-
var PluginAIInspirationPreset =
|
|
4079
|
-
id:
|
|
4080
|
-
name:
|
|
4081
|
-
source:
|
|
4082
|
-
modelId:
|
|
4083
|
-
categoryId:
|
|
4084
|
-
categoryLabel:
|
|
4085
|
-
description:
|
|
4086
|
-
previewImageUrl:
|
|
4087
|
-
prompt:
|
|
4088
|
-
stylePrompt:
|
|
4089
|
-
tags:
|
|
4090
|
-
referenceImages:
|
|
4316
|
+
sourceUrl: z78.string().optional()
|
|
4317
|
+
});
|
|
4318
|
+
var PluginAIInspirationListSourcesArgs = z78.object({
|
|
4319
|
+
includeGenerated: z78.boolean().optional(),
|
|
4320
|
+
includeSourceUrl: z78.boolean().optional()
|
|
4321
|
+
});
|
|
4322
|
+
var PluginAIInspirationListSourcesResult = z78.object({
|
|
4323
|
+
sources: z78.array(PluginAIInspirationShapeRef)
|
|
4324
|
+
});
|
|
4325
|
+
var PluginAIInspirationGetSelectionResult = z78.object({
|
|
4326
|
+
selectedShapeIds: z78.array(z78.string()),
|
|
4327
|
+
sources: z78.array(PluginAIInspirationShapeRef)
|
|
4328
|
+
});
|
|
4329
|
+
var PluginAIInspirationPresetReferenceImage = z78.object({
|
|
4330
|
+
url: z78.string(),
|
|
4331
|
+
label: z78.string().optional(),
|
|
4332
|
+
weight: z78.number().finite().optional()
|
|
4333
|
+
});
|
|
4334
|
+
var PluginAIInspirationPreset = z78.object({
|
|
4335
|
+
id: z78.string(),
|
|
4336
|
+
name: z78.string(),
|
|
4337
|
+
source: z78.enum(["curated", "user"]),
|
|
4338
|
+
modelId: z78.string(),
|
|
4339
|
+
categoryId: z78.string().optional(),
|
|
4340
|
+
categoryLabel: z78.string().optional(),
|
|
4341
|
+
description: z78.string().optional(),
|
|
4342
|
+
previewImageUrl: z78.string().optional(),
|
|
4343
|
+
prompt: z78.string().optional(),
|
|
4344
|
+
stylePrompt: z78.string().optional(),
|
|
4345
|
+
tags: z78.array(z78.string()).optional(),
|
|
4346
|
+
referenceImages: z78.array(PluginAIInspirationPresetReferenceImage).optional(),
|
|
4091
4347
|
siteDefaults: PluginAIInspirationAppliedPreset.shape.siteDefaults.optional()
|
|
4092
4348
|
});
|
|
4093
|
-
var PluginAIInspirationPresetCategory =
|
|
4094
|
-
id:
|
|
4095
|
-
label:
|
|
4096
|
-
description:
|
|
4349
|
+
var PluginAIInspirationPresetCategory = z78.object({
|
|
4350
|
+
id: z78.string(),
|
|
4351
|
+
label: z78.string(),
|
|
4352
|
+
description: z78.string().optional()
|
|
4097
4353
|
});
|
|
4098
|
-
var PluginAIInspirationGetPresetCatalogResult =
|
|
4099
|
-
categories:
|
|
4100
|
-
presets:
|
|
4354
|
+
var PluginAIInspirationGetPresetCatalogResult = z78.object({
|
|
4355
|
+
categories: z78.array(PluginAIInspirationPresetCategory),
|
|
4356
|
+
presets: z78.array(PluginAIInspirationPreset)
|
|
4101
4357
|
});
|
|
4102
|
-
var PluginAIInspirationOutput =
|
|
4103
|
-
outputType:
|
|
4104
|
-
shapeId:
|
|
4105
|
-
assetId:
|
|
4106
|
-
outputUrl:
|
|
4358
|
+
var PluginAIInspirationOutput = z78.object({
|
|
4359
|
+
outputType: z78.enum(["image", "video"]),
|
|
4360
|
+
shapeId: z78.string(),
|
|
4361
|
+
assetId: z78.string(),
|
|
4362
|
+
outputUrl: z78.string().optional(),
|
|
4107
4363
|
position: PluginAIInspirationPoint.optional()
|
|
4108
4364
|
});
|
|
4109
|
-
var PluginAIInspirationDebugSummary =
|
|
4110
|
-
var PluginAIInspirationRunMetadata =
|
|
4111
|
-
geometryFidelity:
|
|
4365
|
+
var PluginAIInspirationDebugSummary = z78.record(z78.string(), JsonValue);
|
|
4366
|
+
var PluginAIInspirationRunMetadata = z78.object({
|
|
4367
|
+
geometryFidelity: z78.string().optional(),
|
|
4112
4368
|
debugSummary: PluginAIInspirationDebugSummary.optional(),
|
|
4113
|
-
streetViewComposite:
|
|
4114
|
-
used:
|
|
4115
|
-
renderMode:
|
|
4116
|
-
backgroundLabel:
|
|
4369
|
+
streetViewComposite: z78.object({
|
|
4370
|
+
used: z78.boolean(),
|
|
4371
|
+
renderMode: z78.enum(["prompt_refs_default", "masked_composite_pilot"]),
|
|
4372
|
+
backgroundLabel: z78.string().optional()
|
|
4117
4373
|
}).optional()
|
|
4118
4374
|
});
|
|
4119
|
-
var PluginAIInspirationGenerateArgs =
|
|
4120
|
-
sourceShapeId:
|
|
4121
|
-
prompt:
|
|
4122
|
-
modelId:
|
|
4123
|
-
referenceShapeIds:
|
|
4124
|
-
referenceStrength:
|
|
4375
|
+
var PluginAIInspirationGenerateArgs = z78.object({
|
|
4376
|
+
sourceShapeId: z78.string().min(1),
|
|
4377
|
+
prompt: z78.string().min(1).max(8e3),
|
|
4378
|
+
modelId: z78.string().optional(),
|
|
4379
|
+
referenceShapeIds: z78.array(z78.string()).max(12).optional(),
|
|
4380
|
+
referenceStrength: z78.enum(["low", "medium", "high"]).optional(),
|
|
4125
4381
|
appliedPreset: PluginAIInspirationAppliedPreset.optional(),
|
|
4126
4382
|
site: PluginAIInspirationSiteOptions.optional(),
|
|
4127
4383
|
regionHint: PluginAIInspirationRegionHint.optional(),
|
|
@@ -4129,129 +4385,129 @@ var PluginAIInspirationGenerateArgs = z76.object({
|
|
|
4129
4385
|
video: PluginAIInspirationVideoOptions.optional(),
|
|
4130
4386
|
runMode: PluginAIInspirationRunMode.optional()
|
|
4131
4387
|
});
|
|
4132
|
-
var PluginAIInspirationRunResult =
|
|
4133
|
-
jobId:
|
|
4388
|
+
var PluginAIInspirationRunResult = z78.object({
|
|
4389
|
+
jobId: z78.string().optional(),
|
|
4134
4390
|
output: PluginAIInspirationOutput.optional(),
|
|
4135
|
-
outputs:
|
|
4391
|
+
outputs: z78.array(PluginAIInspirationOutput).optional(),
|
|
4136
4392
|
metadata: PluginAIInspirationRunMetadata.optional()
|
|
4137
4393
|
});
|
|
4138
|
-
var PluginAIInspirationRefineArgs =
|
|
4139
|
-
sourceShapeId:
|
|
4140
|
-
upscaleFactor:
|
|
4394
|
+
var PluginAIInspirationRefineArgs = z78.object({
|
|
4395
|
+
sourceShapeId: z78.string().min(1),
|
|
4396
|
+
upscaleFactor: z78.union([z78.literal(1.5), z78.literal(2), z78.literal(4)]).optional(),
|
|
4141
4397
|
runMode: PluginAIInspirationRunMode.optional()
|
|
4142
4398
|
});
|
|
4143
|
-
var PluginAIInspirationJobProgress =
|
|
4144
|
-
currentStep:
|
|
4145
|
-
totalSteps:
|
|
4146
|
-
message:
|
|
4399
|
+
var PluginAIInspirationJobProgress = z78.object({
|
|
4400
|
+
currentStep: z78.number().int().nonnegative().optional(),
|
|
4401
|
+
totalSteps: z78.number().int().nonnegative().optional(),
|
|
4402
|
+
message: z78.string().optional()
|
|
4147
4403
|
});
|
|
4148
|
-
var PluginAIInspirationJob =
|
|
4149
|
-
jobId:
|
|
4404
|
+
var PluginAIInspirationJob = z78.object({
|
|
4405
|
+
jobId: z78.string(),
|
|
4150
4406
|
status: PluginAIInspirationJobStatus,
|
|
4151
|
-
createdAt:
|
|
4152
|
-
updatedAt:
|
|
4153
|
-
completedAt:
|
|
4154
|
-
method:
|
|
4407
|
+
createdAt: z78.number(),
|
|
4408
|
+
updatedAt: z78.number(),
|
|
4409
|
+
completedAt: z78.number().optional(),
|
|
4410
|
+
method: z78.string(),
|
|
4155
4411
|
progress: PluginAIInspirationJobProgress.optional(),
|
|
4156
4412
|
result: PluginAIInspirationRunResult.optional(),
|
|
4157
|
-
error:
|
|
4413
|
+
error: z78.string().optional()
|
|
4158
4414
|
});
|
|
4159
|
-
var PluginAIInspirationJobArgs =
|
|
4160
|
-
jobId:
|
|
4415
|
+
var PluginAIInspirationJobArgs = z78.object({
|
|
4416
|
+
jobId: z78.string().min(1)
|
|
4161
4417
|
});
|
|
4162
|
-
var PluginAIInspirationGetJobResult =
|
|
4418
|
+
var PluginAIInspirationGetJobResult = z78.object({
|
|
4163
4419
|
job: PluginAIInspirationJob
|
|
4164
4420
|
});
|
|
4165
|
-
var PluginAIInspirationCancelJobResult =
|
|
4421
|
+
var PluginAIInspirationCancelJobResult = z78.object({
|
|
4166
4422
|
job: PluginAIInspirationJob
|
|
4167
4423
|
});
|
|
4168
|
-
var PluginAIInspirationListJobsResult =
|
|
4169
|
-
jobs:
|
|
4424
|
+
var PluginAIInspirationListJobsResult = z78.object({
|
|
4425
|
+
jobs: z78.array(PluginAIInspirationJob)
|
|
4170
4426
|
});
|
|
4171
|
-
var PluginAIInspirationWorkflowVideoConfig =
|
|
4172
|
-
mode:
|
|
4173
|
-
motion:
|
|
4174
|
-
duration:
|
|
4175
|
-
endFrameShapeId:
|
|
4427
|
+
var PluginAIInspirationWorkflowVideoConfig = z78.object({
|
|
4428
|
+
mode: z78.string().optional(),
|
|
4429
|
+
motion: z78.string().optional(),
|
|
4430
|
+
duration: z78.string().optional(),
|
|
4431
|
+
endFrameShapeId: z78.string().optional()
|
|
4176
4432
|
});
|
|
4177
|
-
var PluginAIInspirationGenerationInputSnapshot =
|
|
4178
|
-
version:
|
|
4179
|
-
meta:
|
|
4433
|
+
var PluginAIInspirationGenerationInputSnapshot = z78.object({
|
|
4434
|
+
version: z78.literal(1),
|
|
4435
|
+
meta: z78.record(z78.string(), JsonValue),
|
|
4180
4436
|
regionHint: PluginAIInspirationRegionHint.optional(),
|
|
4181
|
-
sketchGuidance:
|
|
4182
|
-
sourceCameraHeading:
|
|
4183
|
-
});
|
|
4184
|
-
var PluginAIInspirationWorkflowOperation =
|
|
4185
|
-
type:
|
|
4186
|
-
label:
|
|
4187
|
-
prompt:
|
|
4188
|
-
modelId:
|
|
4189
|
-
presetId:
|
|
4190
|
-
presetName:
|
|
4191
|
-
refineFactor:
|
|
4192
|
-
sourceRole:
|
|
4437
|
+
sketchGuidance: z78.record(z78.string(), JsonValue).optional(),
|
|
4438
|
+
sourceCameraHeading: z78.number().finite().optional()
|
|
4439
|
+
});
|
|
4440
|
+
var PluginAIInspirationWorkflowOperation = z78.object({
|
|
4441
|
+
type: z78.enum(["generate-image", "refine", "generate-video"]),
|
|
4442
|
+
label: z78.string(),
|
|
4443
|
+
prompt: z78.string().optional(),
|
|
4444
|
+
modelId: z78.string().optional(),
|
|
4445
|
+
presetId: z78.string().optional(),
|
|
4446
|
+
presetName: z78.string().optional(),
|
|
4447
|
+
refineFactor: z78.number().finite().optional(),
|
|
4448
|
+
sourceRole: z78.enum(["primary", "end-frame"]).optional(),
|
|
4193
4449
|
video: PluginAIInspirationWorkflowVideoConfig.optional(),
|
|
4194
4450
|
generationInput: PluginAIInspirationGenerationInputSnapshot.optional()
|
|
4195
4451
|
});
|
|
4196
|
-
var PluginAIInspirationWorkflowNode =
|
|
4197
|
-
id:
|
|
4198
|
-
shapeId:
|
|
4199
|
-
assetId:
|
|
4452
|
+
var PluginAIInspirationWorkflowNode = z78.object({
|
|
4453
|
+
id: z78.string(),
|
|
4454
|
+
shapeId: z78.string(),
|
|
4455
|
+
assetId: z78.string().optional(),
|
|
4200
4456
|
kind: PluginAIInspirationOutputKind,
|
|
4201
|
-
state:
|
|
4457
|
+
state: z78.string(),
|
|
4202
4458
|
runState: PluginAIInspirationWorkflowRunState.optional(),
|
|
4203
|
-
staleReason:
|
|
4204
|
-
incomingEdgeIds:
|
|
4205
|
-
outgoingEdgeIds:
|
|
4206
|
-
createdAt:
|
|
4207
|
-
updatedAt:
|
|
4208
|
-
});
|
|
4209
|
-
var PluginAIInspirationWorkflowEdge =
|
|
4210
|
-
id:
|
|
4211
|
-
sourceNodeId:
|
|
4212
|
-
targetNodeId:
|
|
4213
|
-
arrowShapeId:
|
|
4459
|
+
staleReason: z78.string().optional(),
|
|
4460
|
+
incomingEdgeIds: z78.array(z78.string()),
|
|
4461
|
+
outgoingEdgeIds: z78.array(z78.string()),
|
|
4462
|
+
createdAt: z78.number(),
|
|
4463
|
+
updatedAt: z78.number()
|
|
4464
|
+
});
|
|
4465
|
+
var PluginAIInspirationWorkflowEdge = z78.object({
|
|
4466
|
+
id: z78.string(),
|
|
4467
|
+
sourceNodeId: z78.string(),
|
|
4468
|
+
targetNodeId: z78.string(),
|
|
4469
|
+
arrowShapeId: z78.string().optional(),
|
|
4214
4470
|
operation: PluginAIInspirationWorkflowOperation,
|
|
4215
|
-
state:
|
|
4471
|
+
state: z78.string(),
|
|
4216
4472
|
runState: PluginAIInspirationWorkflowRunState.optional(),
|
|
4217
|
-
staleReason:
|
|
4218
|
-
supersededByEdgeId:
|
|
4219
|
-
createdAt:
|
|
4220
|
-
updatedAt:
|
|
4221
|
-
});
|
|
4222
|
-
var PluginAIInspirationWorkflow =
|
|
4223
|
-
id:
|
|
4224
|
-
rootNodeIds:
|
|
4225
|
-
nodeIds:
|
|
4226
|
-
edgeIds:
|
|
4227
|
-
nodes:
|
|
4228
|
-
edges:
|
|
4229
|
-
createdAt:
|
|
4230
|
-
updatedAt:
|
|
4231
|
-
});
|
|
4232
|
-
var PluginAIInspirationGetWorkflowForShapeArgs =
|
|
4233
|
-
shapeId:
|
|
4234
|
-
});
|
|
4235
|
-
var PluginAIInspirationGetWorkflowForShapeResult =
|
|
4473
|
+
staleReason: z78.string().optional(),
|
|
4474
|
+
supersededByEdgeId: z78.string().optional(),
|
|
4475
|
+
createdAt: z78.number(),
|
|
4476
|
+
updatedAt: z78.number()
|
|
4477
|
+
});
|
|
4478
|
+
var PluginAIInspirationWorkflow = z78.object({
|
|
4479
|
+
id: z78.string(),
|
|
4480
|
+
rootNodeIds: z78.array(z78.string()),
|
|
4481
|
+
nodeIds: z78.array(z78.string()),
|
|
4482
|
+
edgeIds: z78.array(z78.string()),
|
|
4483
|
+
nodes: z78.record(z78.string(), PluginAIInspirationWorkflowNode),
|
|
4484
|
+
edges: z78.record(z78.string(), PluginAIInspirationWorkflowEdge),
|
|
4485
|
+
createdAt: z78.number(),
|
|
4486
|
+
updatedAt: z78.number()
|
|
4487
|
+
});
|
|
4488
|
+
var PluginAIInspirationGetWorkflowForShapeArgs = z78.object({
|
|
4489
|
+
shapeId: z78.string().min(1)
|
|
4490
|
+
});
|
|
4491
|
+
var PluginAIInspirationGetWorkflowForShapeResult = z78.object({
|
|
4236
4492
|
workflow: PluginAIInspirationWorkflow.nullable(),
|
|
4237
4493
|
node: PluginAIInspirationWorkflowNode.nullable()
|
|
4238
4494
|
});
|
|
4239
|
-
var PluginAIInspirationRerunPlanResult =
|
|
4495
|
+
var PluginAIInspirationRerunPlanResult = z78.discriminatedUnion(
|
|
4240
4496
|
"status",
|
|
4241
4497
|
[
|
|
4242
|
-
|
|
4243
|
-
status:
|
|
4244
|
-
workflowId:
|
|
4498
|
+
z78.object({
|
|
4499
|
+
status: z78.literal("ready"),
|
|
4500
|
+
workflowId: z78.string(),
|
|
4245
4501
|
sourceNode: PluginAIInspirationWorkflowNode,
|
|
4246
|
-
edgeIds:
|
|
4247
|
-
edges:
|
|
4248
|
-
recipe:
|
|
4249
|
-
needsEndFrame:
|
|
4250
|
-
defaultEndFrameShapeId:
|
|
4502
|
+
edgeIds: z78.array(z78.string()),
|
|
4503
|
+
edges: z78.array(PluginAIInspirationWorkflowEdge),
|
|
4504
|
+
recipe: z78.lazy(() => PluginAIInspirationRecipe),
|
|
4505
|
+
needsEndFrame: z78.boolean(),
|
|
4506
|
+
defaultEndFrameShapeId: z78.string().nullable()
|
|
4251
4507
|
}),
|
|
4252
|
-
|
|
4253
|
-
status:
|
|
4254
|
-
reason:
|
|
4508
|
+
z78.object({
|
|
4509
|
+
status: z78.literal("unavailable"),
|
|
4510
|
+
reason: z78.enum([
|
|
4255
4511
|
"not-in-workflow",
|
|
4256
4512
|
"source-only",
|
|
4257
4513
|
"running",
|
|
@@ -4260,47 +4516,47 @@ var PluginAIInspirationRerunPlanResult = z76.discriminatedUnion(
|
|
|
4260
4516
|
})
|
|
4261
4517
|
]
|
|
4262
4518
|
);
|
|
4263
|
-
var PluginAIInspirationRerunSelectedBranchArgs =
|
|
4264
|
-
shapeId:
|
|
4265
|
-
endFrameShapeId:
|
|
4519
|
+
var PluginAIInspirationRerunSelectedBranchArgs = z78.object({
|
|
4520
|
+
shapeId: z78.string().min(1),
|
|
4521
|
+
endFrameShapeId: z78.string().optional(),
|
|
4266
4522
|
runMode: PluginAIInspirationRunMode.optional()
|
|
4267
4523
|
});
|
|
4268
|
-
var PluginAIInspirationRecipeSlot =
|
|
4269
|
-
id:
|
|
4270
|
-
type:
|
|
4271
|
-
label:
|
|
4272
|
-
required:
|
|
4524
|
+
var PluginAIInspirationRecipeSlot = z78.object({
|
|
4525
|
+
id: z78.string(),
|
|
4526
|
+
type: z78.enum(["source-image", "end-frame"]),
|
|
4527
|
+
label: z78.string(),
|
|
4528
|
+
required: z78.boolean()
|
|
4273
4529
|
});
|
|
4274
|
-
var PluginAIInspirationRecipeStep =
|
|
4275
|
-
id:
|
|
4530
|
+
var PluginAIInspirationRecipeStep = z78.object({
|
|
4531
|
+
id: z78.string(),
|
|
4276
4532
|
operation: PluginAIInspirationWorkflowOperation,
|
|
4277
|
-
outputKind:
|
|
4533
|
+
outputKind: z78.enum(["image", "video"])
|
|
4278
4534
|
});
|
|
4279
|
-
var PluginAIInspirationRecipeDraft =
|
|
4280
|
-
name:
|
|
4281
|
-
summary:
|
|
4282
|
-
slots:
|
|
4283
|
-
steps:
|
|
4284
|
-
outputKind:
|
|
4285
|
-
thumbnailUrl:
|
|
4535
|
+
var PluginAIInspirationRecipeDraft = z78.object({
|
|
4536
|
+
name: z78.string(),
|
|
4537
|
+
summary: z78.string(),
|
|
4538
|
+
slots: z78.array(PluginAIInspirationRecipeSlot),
|
|
4539
|
+
steps: z78.array(PluginAIInspirationRecipeStep).min(1).max(20),
|
|
4540
|
+
outputKind: z78.enum(["image", "video"]),
|
|
4541
|
+
thumbnailUrl: z78.string().optional()
|
|
4286
4542
|
});
|
|
4287
4543
|
var PluginAIInspirationRecipe = PluginAIInspirationRecipeDraft.extend({
|
|
4288
|
-
version:
|
|
4289
|
-
id:
|
|
4290
|
-
fingerprint:
|
|
4291
|
-
createdAt:
|
|
4292
|
-
updatedAt:
|
|
4544
|
+
version: z78.literal(1),
|
|
4545
|
+
id: z78.string(),
|
|
4546
|
+
fingerprint: z78.string().optional(),
|
|
4547
|
+
createdAt: z78.number(),
|
|
4548
|
+
updatedAt: z78.number()
|
|
4293
4549
|
});
|
|
4294
|
-
var PluginAIInspirationExtractionResult =
|
|
4550
|
+
var PluginAIInspirationExtractionResult = z78.discriminatedUnion(
|
|
4295
4551
|
"status",
|
|
4296
4552
|
[
|
|
4297
|
-
|
|
4298
|
-
status:
|
|
4553
|
+
z78.object({
|
|
4554
|
+
status: z78.literal("ready"),
|
|
4299
4555
|
draft: PluginAIInspirationRecipeDraft
|
|
4300
4556
|
}),
|
|
4301
|
-
|
|
4302
|
-
status:
|
|
4303
|
-
reason:
|
|
4557
|
+
z78.object({
|
|
4558
|
+
status: z78.literal("unavailable"),
|
|
4559
|
+
reason: z78.enum([
|
|
4304
4560
|
"not-in-workflow",
|
|
4305
4561
|
"source-only",
|
|
4306
4562
|
"missing-workflow",
|
|
@@ -4311,38 +4567,38 @@ var PluginAIInspirationExtractionResult = z76.discriminatedUnion(
|
|
|
4311
4567
|
})
|
|
4312
4568
|
]
|
|
4313
4569
|
);
|
|
4314
|
-
var PluginAIInspirationListRecipesResult =
|
|
4315
|
-
recipes:
|
|
4570
|
+
var PluginAIInspirationListRecipesResult = z78.object({
|
|
4571
|
+
recipes: z78.array(PluginAIInspirationRecipe)
|
|
4316
4572
|
});
|
|
4317
|
-
var PluginAIInspirationSaveRecipeArgs =
|
|
4573
|
+
var PluginAIInspirationSaveRecipeArgs = z78.object({
|
|
4318
4574
|
draft: PluginAIInspirationRecipeDraft,
|
|
4319
|
-
name:
|
|
4575
|
+
name: z78.string().min(1)
|
|
4320
4576
|
});
|
|
4321
|
-
var PluginAIInspirationSaveRecipeResult =
|
|
4577
|
+
var PluginAIInspirationSaveRecipeResult = z78.discriminatedUnion(
|
|
4322
4578
|
"status",
|
|
4323
4579
|
[
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
status:
|
|
4580
|
+
z78.object({ status: z78.literal("saved"), recipe: PluginAIInspirationRecipe }),
|
|
4581
|
+
z78.object({
|
|
4582
|
+
status: z78.literal("duplicate"),
|
|
4327
4583
|
recipe: PluginAIInspirationRecipe
|
|
4328
4584
|
}),
|
|
4329
|
-
|
|
4330
|
-
|
|
4585
|
+
z78.object({ status: z78.literal("invalid-name"), recipe: z78.null() }),
|
|
4586
|
+
z78.object({ status: z78.literal("failed"), recipe: z78.null() })
|
|
4331
4587
|
]
|
|
4332
4588
|
);
|
|
4333
|
-
var PluginAIInspirationDeleteRecipeArgs =
|
|
4334
|
-
recipeId:
|
|
4589
|
+
var PluginAIInspirationDeleteRecipeArgs = z78.object({
|
|
4590
|
+
recipeId: z78.string().min(1)
|
|
4335
4591
|
});
|
|
4336
|
-
var PluginAIInspirationDeleteRecipeResult =
|
|
4337
|
-
deleted:
|
|
4592
|
+
var PluginAIInspirationDeleteRecipeResult = z78.object({
|
|
4593
|
+
deleted: z78.boolean()
|
|
4338
4594
|
});
|
|
4339
|
-
var PluginAIInspirationExtractRecipeFromShapeArgs =
|
|
4340
|
-
shapeId:
|
|
4595
|
+
var PluginAIInspirationExtractRecipeFromShapeArgs = z78.object({
|
|
4596
|
+
shapeId: z78.string().min(1)
|
|
4341
4597
|
});
|
|
4342
|
-
var PluginAIInspirationRunRecipeArgs =
|
|
4343
|
-
recipeId:
|
|
4598
|
+
var PluginAIInspirationRunRecipeArgs = z78.object({
|
|
4599
|
+
recipeId: z78.string().optional(),
|
|
4344
4600
|
recipe: PluginAIInspirationRecipe.optional(),
|
|
4345
|
-
slotShapeIds:
|
|
4601
|
+
slotShapeIds: z78.record(z78.string(), z78.string()),
|
|
4346
4602
|
runMode: PluginAIInspirationRunMode.optional()
|
|
4347
4603
|
});
|
|
4348
4604
|
var PluginPresentationAIInspirationApi = class {
|
|
@@ -4351,26 +4607,26 @@ var PluginPresentationAIInspirationApi = class {
|
|
|
4351
4607
|
};
|
|
4352
4608
|
|
|
4353
4609
|
// src/api/presentation/export.ts
|
|
4354
|
-
import * as
|
|
4355
|
-
var PluginPresentationExportFormat =
|
|
4356
|
-
var PluginPresentationExportResolution =
|
|
4357
|
-
width:
|
|
4358
|
-
height:
|
|
4610
|
+
import * as z79 from "zod";
|
|
4611
|
+
var PluginPresentationExportFormat = z79.enum(["pdf", "png", "jpg"]);
|
|
4612
|
+
var PluginPresentationExportResolution = z79.object({
|
|
4613
|
+
width: z79.number().positive(),
|
|
4614
|
+
height: z79.number().positive()
|
|
4359
4615
|
});
|
|
4360
|
-
var PluginPresentationExportArgs =
|
|
4616
|
+
var PluginPresentationExportArgs = z79.object({
|
|
4361
4617
|
format: PluginPresentationExportFormat,
|
|
4362
|
-
sheetIds:
|
|
4363
|
-
combine:
|
|
4618
|
+
sheetIds: z79.array(z79.string()).optional(),
|
|
4619
|
+
combine: z79.boolean().optional(),
|
|
4364
4620
|
resolution: PluginPresentationExportResolution.optional(),
|
|
4365
|
-
fileName:
|
|
4621
|
+
fileName: z79.string().optional()
|
|
4366
4622
|
});
|
|
4367
|
-
var PluginPresentationExportFile =
|
|
4368
|
-
fileName:
|
|
4369
|
-
mimeType:
|
|
4370
|
-
dataBase64:
|
|
4623
|
+
var PluginPresentationExportFile = z79.object({
|
|
4624
|
+
fileName: z79.string(),
|
|
4625
|
+
mimeType: z79.string(),
|
|
4626
|
+
dataBase64: z79.string()
|
|
4371
4627
|
});
|
|
4372
|
-
var PluginPresentationExportResult =
|
|
4373
|
-
files:
|
|
4628
|
+
var PluginPresentationExportResult = z79.object({
|
|
4629
|
+
files: z79.array(PluginPresentationExportFile)
|
|
4374
4630
|
});
|
|
4375
4631
|
|
|
4376
4632
|
// src/api/presentation/index.ts
|
|
@@ -4386,38 +4642,38 @@ var PluginAnalysisSunpathApi = class {
|
|
|
4386
4642
|
};
|
|
4387
4643
|
|
|
4388
4644
|
// src/api/analysis/shadows.ts
|
|
4389
|
-
import * as
|
|
4645
|
+
import * as z80 from "zod";
|
|
4390
4646
|
var PluginAnalysisShadowsApi = class {
|
|
4391
4647
|
constructor() {
|
|
4392
4648
|
}
|
|
4393
4649
|
};
|
|
4394
|
-
var PluginAnalysisShadowsEnableOptions =
|
|
4395
|
-
dateTime:
|
|
4650
|
+
var PluginAnalysisShadowsEnableOptions = z80.object({
|
|
4651
|
+
dateTime: z80.string().optional()
|
|
4396
4652
|
});
|
|
4397
|
-
var PluginAnalysisShadowsSetDateTimeArgs =
|
|
4398
|
-
dateTime:
|
|
4653
|
+
var PluginAnalysisShadowsSetDateTimeArgs = z80.object({
|
|
4654
|
+
dateTime: z80.string()
|
|
4399
4655
|
});
|
|
4400
|
-
var PluginAnalysisShadowsDateTimeResult =
|
|
4656
|
+
var PluginAnalysisShadowsDateTimeResult = z80.string();
|
|
4401
4657
|
|
|
4402
4658
|
// src/api/analysis/sunlightHours.ts
|
|
4403
|
-
import * as
|
|
4659
|
+
import * as z81 from "zod";
|
|
4404
4660
|
var PluginAnalysisSunlightHoursApi = class {
|
|
4405
4661
|
constructor() {
|
|
4406
4662
|
}
|
|
4407
4663
|
};
|
|
4408
|
-
var PluginAnalysisComputeResult =
|
|
4409
|
-
success:
|
|
4410
|
-
error:
|
|
4664
|
+
var PluginAnalysisComputeResult = z81.object({
|
|
4665
|
+
success: z81.boolean(),
|
|
4666
|
+
error: z81.string().optional()
|
|
4411
4667
|
});
|
|
4412
|
-
var PluginAnalysisJobStatus =
|
|
4668
|
+
var PluginAnalysisJobStatus = z81.enum([
|
|
4413
4669
|
"running",
|
|
4414
4670
|
"active",
|
|
4415
4671
|
"inactive"
|
|
4416
4672
|
]);
|
|
4417
|
-
var PluginAnalysisJobState =
|
|
4673
|
+
var PluginAnalysisJobState = z81.object({
|
|
4418
4674
|
status: PluginAnalysisJobStatus,
|
|
4419
|
-
startDate:
|
|
4420
|
-
endDate:
|
|
4675
|
+
startDate: z81.string(),
|
|
4676
|
+
endDate: z81.string()
|
|
4421
4677
|
});
|
|
4422
4678
|
var PluginAnalysisJobStateResult = PluginAnalysisJobState.nullable();
|
|
4423
4679
|
|
|
@@ -4428,7 +4684,7 @@ var PluginAnalysisIlluminanceApi = class {
|
|
|
4428
4684
|
};
|
|
4429
4685
|
|
|
4430
4686
|
// src/api/analysis/heatmaps.ts
|
|
4431
|
-
import * as
|
|
4687
|
+
import * as z82 from "zod";
|
|
4432
4688
|
var PluginAnalysisHeatmapsApi = class {
|
|
4433
4689
|
constructor() {
|
|
4434
4690
|
}
|
|
@@ -4437,149 +4693,149 @@ var PluginAnalysisHeatmapOverlaysApi = class {
|
|
|
4437
4693
|
constructor() {
|
|
4438
4694
|
}
|
|
4439
4695
|
};
|
|
4440
|
-
var PluginAnalysisHeatmapSpaceEntry =
|
|
4696
|
+
var PluginAnalysisHeatmapSpaceEntry = z82.object({
|
|
4441
4697
|
space: ComponentHandle,
|
|
4442
|
-
value:
|
|
4698
|
+
value: z82.number().finite()
|
|
4443
4699
|
});
|
|
4444
|
-
var PluginAnalysisHeatmapGridCell =
|
|
4700
|
+
var PluginAnalysisHeatmapGridCell = z82.object({
|
|
4445
4701
|
position: Vec3Components,
|
|
4446
|
-
value:
|
|
4447
|
-
meta:
|
|
4448
|
-
});
|
|
4449
|
-
var HexColor =
|
|
4450
|
-
var PluginAnalysisHeatmapFieldCell =
|
|
4451
|
-
|
|
4452
|
-
polygon:
|
|
4453
|
-
value:
|
|
4454
|
-
meta:
|
|
4702
|
+
value: z82.number().finite(),
|
|
4703
|
+
meta: z82.unknown().optional()
|
|
4704
|
+
});
|
|
4705
|
+
var HexColor = z82.string().regex(/^#?[0-9a-fA-F]{6}$/, 'expected a 6-digit hex colour like "#0000ff"');
|
|
4706
|
+
var PluginAnalysisHeatmapFieldCell = z82.union([
|
|
4707
|
+
z82.object({
|
|
4708
|
+
polygon: z82.array(Vec3Components).min(3),
|
|
4709
|
+
value: z82.number().finite(),
|
|
4710
|
+
meta: z82.unknown().optional()
|
|
4455
4711
|
}),
|
|
4456
|
-
|
|
4457
|
-
vertices:
|
|
4458
|
-
indices:
|
|
4459
|
-
value:
|
|
4460
|
-
meta:
|
|
4712
|
+
z82.object({
|
|
4713
|
+
vertices: z82.array(Vec3Components).min(3),
|
|
4714
|
+
indices: z82.array(z82.number().int().nonnegative()).min(3),
|
|
4715
|
+
value: z82.number().finite(),
|
|
4716
|
+
meta: z82.unknown().optional()
|
|
4461
4717
|
})
|
|
4462
4718
|
]);
|
|
4463
|
-
var PluginAnalysisHeatmapScale =
|
|
4464
|
-
|
|
4465
|
-
type:
|
|
4466
|
-
count:
|
|
4719
|
+
var PluginAnalysisHeatmapScale = z82.discriminatedUnion("type", [
|
|
4720
|
+
z82.object({
|
|
4721
|
+
type: z82.literal("bands"),
|
|
4722
|
+
count: z82.number().int().min(2).max(64).optional()
|
|
4467
4723
|
}),
|
|
4468
|
-
|
|
4469
|
-
type:
|
|
4470
|
-
threshold:
|
|
4724
|
+
z82.object({
|
|
4725
|
+
type: z82.literal("threshold"),
|
|
4726
|
+
threshold: z82.number().finite(),
|
|
4471
4727
|
passColor: HexColor.optional(),
|
|
4472
4728
|
failColor: HexColor.optional(),
|
|
4473
|
-
passLabel:
|
|
4474
|
-
failLabel:
|
|
4729
|
+
passLabel: z82.string().optional(),
|
|
4730
|
+
failLabel: z82.string().optional()
|
|
4475
4731
|
}),
|
|
4476
|
-
|
|
4477
|
-
type:
|
|
4478
|
-
classes:
|
|
4479
|
-
|
|
4480
|
-
value:
|
|
4481
|
-
label:
|
|
4732
|
+
z82.object({
|
|
4733
|
+
type: z82.literal("categorical"),
|
|
4734
|
+
classes: z82.array(
|
|
4735
|
+
z82.object({
|
|
4736
|
+
value: z82.number().finite(),
|
|
4737
|
+
label: z82.string(),
|
|
4482
4738
|
color: HexColor
|
|
4483
4739
|
})
|
|
4484
4740
|
).min(1)
|
|
4485
4741
|
})
|
|
4486
4742
|
]);
|
|
4487
|
-
var PluginAnalysisHeatmapOptions =
|
|
4488
|
-
name:
|
|
4489
|
-
title:
|
|
4490
|
-
unit:
|
|
4491
|
-
min:
|
|
4492
|
-
max:
|
|
4493
|
-
colors:
|
|
4743
|
+
var PluginAnalysisHeatmapOptions = z82.object({
|
|
4744
|
+
name: z82.string().min(1).max(64).optional(),
|
|
4745
|
+
title: z82.string().optional(),
|
|
4746
|
+
unit: z82.string().optional(),
|
|
4747
|
+
min: z82.number().finite().optional(),
|
|
4748
|
+
max: z82.number().finite().optional(),
|
|
4749
|
+
colors: z82.array(HexColor).min(1).optional(),
|
|
4494
4750
|
scale: PluginAnalysisHeatmapScale.optional(),
|
|
4495
|
-
hover:
|
|
4751
|
+
hover: z82.boolean().optional()
|
|
4496
4752
|
});
|
|
4497
|
-
var PluginAnalysisHeatmapsRenderResult =
|
|
4498
|
-
success:
|
|
4753
|
+
var PluginAnalysisHeatmapsRenderResult = z82.object({
|
|
4754
|
+
success: z82.literal(true)
|
|
4499
4755
|
});
|
|
4500
|
-
var PluginAnalysisHeatmapOverlayInfo =
|
|
4501
|
-
name:
|
|
4502
|
-
visible:
|
|
4503
|
-
kind:
|
|
4756
|
+
var PluginAnalysisHeatmapOverlayInfo = z82.object({
|
|
4757
|
+
name: z82.string(),
|
|
4758
|
+
visible: z82.boolean(),
|
|
4759
|
+
kind: z82.enum(["spaces", "grid", "surfaceGrid", "field"])
|
|
4504
4760
|
});
|
|
4505
|
-
var PluginAnalysisHeatmapOverlaysListResult =
|
|
4506
|
-
overlays:
|
|
4761
|
+
var PluginAnalysisHeatmapOverlaysListResult = z82.object({
|
|
4762
|
+
overlays: z82.array(PluginAnalysisHeatmapOverlayInfo)
|
|
4507
4763
|
});
|
|
4508
4764
|
|
|
4509
4765
|
// src/api/analysis/weather.ts
|
|
4510
|
-
import * as
|
|
4766
|
+
import * as z83 from "zod";
|
|
4511
4767
|
var PluginAnalysisWeatherApi = class {
|
|
4512
4768
|
constructor() {
|
|
4513
4769
|
}
|
|
4514
4770
|
};
|
|
4515
|
-
var PluginWeatherSelectionMethod =
|
|
4771
|
+
var PluginWeatherSelectionMethod = z83.enum([
|
|
4516
4772
|
"nearest-station",
|
|
4517
4773
|
"user-upload",
|
|
4518
4774
|
"project-override"
|
|
4519
4775
|
]);
|
|
4520
|
-
var PluginWeatherSourceMeta =
|
|
4521
|
-
weatherFileId:
|
|
4522
|
-
station:
|
|
4523
|
-
sourceId:
|
|
4524
|
-
distanceKm:
|
|
4776
|
+
var PluginWeatherSourceMeta = z83.object({
|
|
4777
|
+
weatherFileId: z83.string(),
|
|
4778
|
+
station: z83.string(),
|
|
4779
|
+
sourceId: z83.string(),
|
|
4780
|
+
distanceKm: z83.number().nullable(),
|
|
4525
4781
|
selectionMethod: PluginWeatherSelectionMethod,
|
|
4526
|
-
checksum:
|
|
4527
|
-
windReferenceHeightM:
|
|
4528
|
-
});
|
|
4529
|
-
var PluginWeatherRow =
|
|
4530
|
-
timestamp:
|
|
4531
|
-
utcOffsetMinutes:
|
|
4532
|
-
dryBulbC:
|
|
4533
|
-
relativeHumidityPercent:
|
|
4534
|
-
windSpeedMps:
|
|
4535
|
-
ghiWm2:
|
|
4536
|
-
dniWm2:
|
|
4537
|
-
dhiWm2:
|
|
4538
|
-
flags:
|
|
4539
|
-
});
|
|
4540
|
-
var PluginWeatherGetSeriesArgs =
|
|
4541
|
-
startDate:
|
|
4542
|
-
endDate:
|
|
4543
|
-
interval:
|
|
4544
|
-
cursor:
|
|
4782
|
+
checksum: z83.string(),
|
|
4783
|
+
windReferenceHeightM: z83.number()
|
|
4784
|
+
});
|
|
4785
|
+
var PluginWeatherRow = z83.object({
|
|
4786
|
+
timestamp: z83.string(),
|
|
4787
|
+
utcOffsetMinutes: z83.number(),
|
|
4788
|
+
dryBulbC: z83.number(),
|
|
4789
|
+
relativeHumidityPercent: z83.number(),
|
|
4790
|
+
windSpeedMps: z83.number(),
|
|
4791
|
+
ghiWm2: z83.number(),
|
|
4792
|
+
dniWm2: z83.number(),
|
|
4793
|
+
dhiWm2: z83.number(),
|
|
4794
|
+
flags: z83.array(z83.string())
|
|
4795
|
+
});
|
|
4796
|
+
var PluginWeatherGetSeriesArgs = z83.object({
|
|
4797
|
+
startDate: z83.string(),
|
|
4798
|
+
endDate: z83.string(),
|
|
4799
|
+
interval: z83.enum(["hourly"]).optional(),
|
|
4800
|
+
cursor: z83.string().optional()
|
|
4545
4801
|
});
|
|
4546
|
-
var PluginWeatherSeriesResult =
|
|
4802
|
+
var PluginWeatherSeriesResult = z83.object({
|
|
4547
4803
|
source: PluginWeatherSourceMeta,
|
|
4548
|
-
rows:
|
|
4549
|
-
nextCursor:
|
|
4550
|
-
warnings:
|
|
4804
|
+
rows: z83.array(PluginWeatherRow),
|
|
4805
|
+
nextCursor: z83.string().nullable(),
|
|
4806
|
+
warnings: z83.array(z83.string()).optional()
|
|
4551
4807
|
});
|
|
4552
4808
|
|
|
4553
4809
|
// src/api/analysis/solar.ts
|
|
4554
|
-
import * as
|
|
4810
|
+
import * as z84 from "zod";
|
|
4555
4811
|
var PluginAnalysisSolarApi = class {
|
|
4556
4812
|
constructor() {
|
|
4557
4813
|
}
|
|
4558
4814
|
};
|
|
4559
|
-
var PluginSolarRunStatus =
|
|
4815
|
+
var PluginSolarRunStatus = z84.enum([
|
|
4560
4816
|
"running",
|
|
4561
4817
|
"complete",
|
|
4562
4818
|
"cancelled",
|
|
4563
4819
|
"failed"
|
|
4564
4820
|
]);
|
|
4565
|
-
var PluginSolarSampleMode =
|
|
4566
|
-
var PluginSolarUnits =
|
|
4567
|
-
var PluginSolarHourlyArtifact =
|
|
4568
|
-
url:
|
|
4569
|
-
format:
|
|
4570
|
-
expiresAt:
|
|
4571
|
-
});
|
|
4572
|
-
var PluginSolarSamplePoint =
|
|
4573
|
-
id:
|
|
4574
|
-
position:
|
|
4575
|
-
normal:
|
|
4576
|
-
});
|
|
4577
|
-
var PluginSolarSampleGridArgs =
|
|
4578
|
-
points:
|
|
4579
|
-
dateTime:
|
|
4580
|
-
startDate:
|
|
4581
|
-
endDate:
|
|
4582
|
-
includeHourlyArtifact:
|
|
4821
|
+
var PluginSolarSampleMode = z84.enum(["instant", "range"]);
|
|
4822
|
+
var PluginSolarUnits = z84.enum(["W/m2", "kWh/m2"]);
|
|
4823
|
+
var PluginSolarHourlyArtifact = z84.object({
|
|
4824
|
+
url: z84.string(),
|
|
4825
|
+
format: z84.enum(["parquet", "csv-gz"]),
|
|
4826
|
+
expiresAt: z84.string()
|
|
4827
|
+
});
|
|
4828
|
+
var PluginSolarSamplePoint = z84.object({
|
|
4829
|
+
id: z84.string(),
|
|
4830
|
+
position: z84.tuple([z84.number(), z84.number(), z84.number()]),
|
|
4831
|
+
normal: z84.tuple([z84.number(), z84.number(), z84.number()]).optional()
|
|
4832
|
+
});
|
|
4833
|
+
var PluginSolarSampleGridArgs = z84.object({
|
|
4834
|
+
points: z84.array(PluginSolarSamplePoint),
|
|
4835
|
+
dateTime: z84.string().optional(),
|
|
4836
|
+
startDate: z84.string().optional(),
|
|
4837
|
+
endDate: z84.string().optional(),
|
|
4838
|
+
includeHourlyArtifact: z84.boolean().optional()
|
|
4583
4839
|
}).superRefine((a, ctx) => {
|
|
4584
4840
|
const hasInstant = a.dateTime !== void 0;
|
|
4585
4841
|
const hasStart = a.startDate !== void 0;
|
|
@@ -4587,73 +4843,73 @@ var PluginSolarSampleGridArgs = z82.object({
|
|
|
4587
4843
|
const hasRange = hasStart || hasEnd;
|
|
4588
4844
|
if (hasInstant === hasRange) {
|
|
4589
4845
|
ctx.addIssue({
|
|
4590
|
-
code:
|
|
4846
|
+
code: z84.ZodIssueCode.custom,
|
|
4591
4847
|
message: "provide exactly one timing mode: dateTime (instant), or startDate+endDate (range)"
|
|
4592
4848
|
});
|
|
4593
4849
|
}
|
|
4594
4850
|
if (hasRange && !(hasStart && hasEnd)) {
|
|
4595
4851
|
ctx.addIssue({
|
|
4596
|
-
code:
|
|
4852
|
+
code: z84.ZodIssueCode.custom,
|
|
4597
4853
|
message: "range mode requires both startDate and endDate"
|
|
4598
4854
|
});
|
|
4599
4855
|
}
|
|
4600
4856
|
});
|
|
4601
|
-
var PluginSolarSampleResult =
|
|
4602
|
-
id:
|
|
4603
|
-
directSunVisible:
|
|
4604
|
-
shadeFraction:
|
|
4605
|
-
directIrradiance:
|
|
4606
|
-
diffuseIrradiance:
|
|
4607
|
-
totalIrradiance:
|
|
4857
|
+
var PluginSolarSampleResult = z84.object({
|
|
4858
|
+
id: z84.string(),
|
|
4859
|
+
directSunVisible: z84.boolean(),
|
|
4860
|
+
shadeFraction: z84.number(),
|
|
4861
|
+
directIrradiance: z84.number().optional(),
|
|
4862
|
+
diffuseIrradiance: z84.number().optional(),
|
|
4863
|
+
totalIrradiance: z84.number().optional()
|
|
4608
4864
|
});
|
|
4609
|
-
var PluginSolarSampleGridResult =
|
|
4865
|
+
var PluginSolarSampleGridResult = z84.object({
|
|
4610
4866
|
status: PluginSolarRunStatus,
|
|
4611
4867
|
mode: PluginSolarSampleMode,
|
|
4612
|
-
coordinateSystem:
|
|
4613
|
-
modelRevision:
|
|
4614
|
-
inputHash:
|
|
4868
|
+
coordinateSystem: z84.literal("world-plan-space"),
|
|
4869
|
+
modelRevision: z84.string(),
|
|
4870
|
+
inputHash: z84.string(),
|
|
4615
4871
|
units: PluginSolarUnits,
|
|
4616
|
-
sunUpHours:
|
|
4872
|
+
sunUpHours: z84.number(),
|
|
4617
4873
|
weather: PluginWeatherSourceMeta.nullable(),
|
|
4618
|
-
weatherQuality:
|
|
4619
|
-
results:
|
|
4874
|
+
weatherQuality: z84.array(z84.string()),
|
|
4875
|
+
results: z84.array(PluginSolarSampleResult),
|
|
4620
4876
|
hourlyArtifact: PluginSolarHourlyArtifact.nullable(),
|
|
4621
|
-
nextCursor:
|
|
4877
|
+
nextCursor: z84.string().nullable()
|
|
4622
4878
|
});
|
|
4623
4879
|
|
|
4624
4880
|
// src/api/analysis/daylight.ts
|
|
4625
|
-
import * as
|
|
4881
|
+
import * as z85 from "zod";
|
|
4626
4882
|
var PluginAnalysisDaylightApi = class {
|
|
4627
4883
|
constructor() {
|
|
4628
4884
|
}
|
|
4629
4885
|
};
|
|
4630
|
-
var PluginDaylightMetric =
|
|
4631
|
-
var PluginDaylightRunStatus =
|
|
4886
|
+
var PluginDaylightMetric = z85.enum(["ASE", "sDA"]);
|
|
4887
|
+
var PluginDaylightRunStatus = z85.enum([
|
|
4632
4888
|
"running",
|
|
4633
4889
|
"complete",
|
|
4634
4890
|
"cancelled",
|
|
4635
4891
|
"failed"
|
|
4636
4892
|
]);
|
|
4637
|
-
var PluginDaylightGrid =
|
|
4638
|
-
spacingM:
|
|
4639
|
-
workplaneHeightM:
|
|
4640
|
-
boundaryOffsetM:
|
|
4893
|
+
var PluginDaylightGrid = z85.object({
|
|
4894
|
+
spacingM: z85.number(),
|
|
4895
|
+
workplaneHeightM: z85.number(),
|
|
4896
|
+
boundaryOffsetM: z85.number()
|
|
4641
4897
|
});
|
|
4642
|
-
var PluginDaylightSchedule =
|
|
4643
|
-
startHour:
|
|
4644
|
-
endHour:
|
|
4898
|
+
var PluginDaylightSchedule = z85.object({
|
|
4899
|
+
startHour: z85.number(),
|
|
4900
|
+
endHour: z85.number()
|
|
4645
4901
|
});
|
|
4646
|
-
var PluginDaylightOpaqueOptics =
|
|
4647
|
-
reflectance:
|
|
4902
|
+
var PluginDaylightOpaqueOptics = z85.object({
|
|
4903
|
+
reflectance: z85.number().min(0).max(1)
|
|
4648
4904
|
});
|
|
4649
|
-
var PluginDaylightGlazingOptics =
|
|
4650
|
-
transmittance:
|
|
4905
|
+
var PluginDaylightGlazingOptics = z85.object({
|
|
4906
|
+
transmittance: z85.number().min(0).max(1)
|
|
4651
4907
|
});
|
|
4652
|
-
var PluginDaylightMaterialOptics =
|
|
4908
|
+
var PluginDaylightMaterialOptics = z85.union([
|
|
4653
4909
|
PluginDaylightOpaqueOptics,
|
|
4654
4910
|
PluginDaylightGlazingOptics
|
|
4655
4911
|
]);
|
|
4656
|
-
var PluginDaylightCategoryDefaults =
|
|
4912
|
+
var PluginDaylightCategoryDefaults = z85.object({
|
|
4657
4913
|
wall: PluginDaylightOpaqueOptics.optional(),
|
|
4658
4914
|
ceiling: PluginDaylightOpaqueOptics.optional(),
|
|
4659
4915
|
floor: PluginDaylightOpaqueOptics.optional(),
|
|
@@ -4661,81 +4917,81 @@ var PluginDaylightCategoryDefaults = z83.object({
|
|
|
4661
4917
|
glazing: PluginDaylightGlazingOptics.optional(),
|
|
4662
4918
|
context: PluginDaylightOpaqueOptics.optional()
|
|
4663
4919
|
});
|
|
4664
|
-
var PluginDaylightBlindsOptics =
|
|
4665
|
-
transmittance:
|
|
4920
|
+
var PluginDaylightBlindsOptics = z85.object({
|
|
4921
|
+
transmittance: z85.number().min(0).max(1)
|
|
4666
4922
|
});
|
|
4667
|
-
var PluginDaylightOptics =
|
|
4668
|
-
materials:
|
|
4923
|
+
var PluginDaylightOptics = z85.object({
|
|
4924
|
+
materials: z85.record(z85.string(), PluginDaylightMaterialOptics).optional(),
|
|
4669
4925
|
categories: PluginDaylightCategoryDefaults.optional(),
|
|
4670
4926
|
blinds: PluginDaylightBlindsOptics.optional()
|
|
4671
4927
|
});
|
|
4672
|
-
var PluginDaylightComputeArgs =
|
|
4673
|
-
standard:
|
|
4674
|
-
metrics:
|
|
4928
|
+
var PluginDaylightComputeArgs = z85.object({
|
|
4929
|
+
standard: z85.literal("IES-LM-83-23"),
|
|
4930
|
+
metrics: z85.array(PluginDaylightMetric).min(1),
|
|
4675
4931
|
schedule: PluginDaylightSchedule.optional(),
|
|
4676
4932
|
grid: PluginDaylightGrid,
|
|
4677
4933
|
optics: PluginDaylightOptics.optional()
|
|
4678
4934
|
});
|
|
4679
|
-
var PluginDaylightPollArgs =
|
|
4680
|
-
runId:
|
|
4681
|
-
cursor:
|
|
4682
|
-
});
|
|
4683
|
-
var PluginDaylightSensorRecord =
|
|
4684
|
-
sensorId:
|
|
4685
|
-
position:
|
|
4686
|
-
spaceId:
|
|
4687
|
-
storeyId:
|
|
4688
|
-
areaWeightM2:
|
|
4689
|
-
occupiedHours:
|
|
4690
|
-
directSunHoursAtOrAbove1000Lux:
|
|
4691
|
-
aseFail:
|
|
4692
|
-
da300Percent:
|
|
4693
|
-
sdaPass:
|
|
4694
|
-
});
|
|
4695
|
-
var PluginDaylightAggregateScope =
|
|
4935
|
+
var PluginDaylightPollArgs = z85.object({
|
|
4936
|
+
runId: z85.string(),
|
|
4937
|
+
cursor: z85.string().optional()
|
|
4938
|
+
});
|
|
4939
|
+
var PluginDaylightSensorRecord = z85.object({
|
|
4940
|
+
sensorId: z85.string(),
|
|
4941
|
+
position: z85.tuple([z85.number(), z85.number(), z85.number()]),
|
|
4942
|
+
spaceId: z85.string(),
|
|
4943
|
+
storeyId: z85.string(),
|
|
4944
|
+
areaWeightM2: z85.number(),
|
|
4945
|
+
occupiedHours: z85.number(),
|
|
4946
|
+
directSunHoursAtOrAbove1000Lux: z85.number().optional(),
|
|
4947
|
+
aseFail: z85.boolean().optional(),
|
|
4948
|
+
da300Percent: z85.number().optional(),
|
|
4949
|
+
sdaPass: z85.boolean().optional()
|
|
4950
|
+
});
|
|
4951
|
+
var PluginDaylightAggregateScope = z85.enum([
|
|
4696
4952
|
"project",
|
|
4697
4953
|
"storey",
|
|
4698
4954
|
"space"
|
|
4699
4955
|
]);
|
|
4700
|
-
var PluginDaylightAggregate =
|
|
4956
|
+
var PluginDaylightAggregate = z85.object({
|
|
4701
4957
|
scope: PluginDaylightAggregateScope,
|
|
4702
|
-
id:
|
|
4703
|
-
analysisAreaM2:
|
|
4704
|
-
asePercent:
|
|
4705
|
-
sdaPercent:
|
|
4706
|
-
});
|
|
4707
|
-
var PluginDaylightProvenance =
|
|
4708
|
-
engine:
|
|
4709
|
-
engineVersion:
|
|
4710
|
-
standardProfile:
|
|
4711
|
-
thresholds:
|
|
4958
|
+
id: z85.string().nullable(),
|
|
4959
|
+
analysisAreaM2: z85.number(),
|
|
4960
|
+
asePercent: z85.number().optional(),
|
|
4961
|
+
sdaPercent: z85.number().optional()
|
|
4962
|
+
});
|
|
4963
|
+
var PluginDaylightProvenance = z85.object({
|
|
4964
|
+
engine: z85.string(),
|
|
4965
|
+
engineVersion: z85.string(),
|
|
4966
|
+
standardProfile: z85.string(),
|
|
4967
|
+
thresholds: z85.object({ aseLux: z85.number(), aseHours: z85.number() }).passthrough(),
|
|
4712
4968
|
weather: PluginWeatherSourceMeta.nullable(),
|
|
4713
|
-
occupancySchedule:
|
|
4969
|
+
occupancySchedule: z85.object({ id: z85.string(), hoursPerYear: z85.number() }).passthrough(),
|
|
4714
4970
|
grid: PluginDaylightGrid,
|
|
4715
|
-
location:
|
|
4716
|
-
latitude:
|
|
4717
|
-
longitude:
|
|
4718
|
-
timezone:
|
|
4719
|
-
trueNorthDeg:
|
|
4971
|
+
location: z85.object({
|
|
4972
|
+
latitude: z85.number(),
|
|
4973
|
+
longitude: z85.number(),
|
|
4974
|
+
timezone: z85.string(),
|
|
4975
|
+
trueNorthDeg: z85.number()
|
|
4720
4976
|
}).passthrough(),
|
|
4721
|
-
surfaceReflectances:
|
|
4722
|
-
modelRevision:
|
|
4723
|
-
inputHash:
|
|
4724
|
-
warnings:
|
|
4725
|
-
excludedSpaces:
|
|
4726
|
-
|
|
4977
|
+
surfaceReflectances: z85.record(z85.string(), z85.number()),
|
|
4978
|
+
modelRevision: z85.string(),
|
|
4979
|
+
inputHash: z85.string(),
|
|
4980
|
+
warnings: z85.array(z85.string()),
|
|
4981
|
+
excludedSpaces: z85.array(
|
|
4982
|
+
z85.object({ spaceId: z85.string(), reason: z85.string() })
|
|
4727
4983
|
),
|
|
4728
|
-
failedGeometry:
|
|
4729
|
-
|
|
4984
|
+
failedGeometry: z85.array(
|
|
4985
|
+
z85.object({ componentId: z85.string(), reason: z85.string() })
|
|
4730
4986
|
)
|
|
4731
4987
|
}).partial().passthrough();
|
|
4732
|
-
var PluginDaylightResults =
|
|
4988
|
+
var PluginDaylightResults = z85.object({
|
|
4733
4989
|
status: PluginDaylightRunStatus,
|
|
4734
|
-
runId:
|
|
4735
|
-
sensors:
|
|
4736
|
-
aggregates:
|
|
4990
|
+
runId: z85.string().optional(),
|
|
4991
|
+
sensors: z85.array(PluginDaylightSensorRecord),
|
|
4992
|
+
aggregates: z85.array(PluginDaylightAggregate),
|
|
4737
4993
|
provenance: PluginDaylightProvenance,
|
|
4738
|
-
nextCursor:
|
|
4994
|
+
nextCursor: z85.string().nullable()
|
|
4739
4995
|
});
|
|
4740
4996
|
|
|
4741
4997
|
// src/api/analysis/index.ts
|
|
@@ -4745,7 +5001,7 @@ var PluginAnalysisApi = class {
|
|
|
4745
5001
|
};
|
|
4746
5002
|
|
|
4747
5003
|
// src/api/workspace/index.ts
|
|
4748
|
-
import * as
|
|
5004
|
+
import * as z86 from "zod";
|
|
4749
5005
|
var PluginWorkspaceApi = class {
|
|
4750
5006
|
constructor() {
|
|
4751
5007
|
}
|
|
@@ -4758,68 +5014,68 @@ var PluginWorkspaceTeamsApi = class {
|
|
|
4758
5014
|
constructor() {
|
|
4759
5015
|
}
|
|
4760
5016
|
};
|
|
4761
|
-
var PluginProjectRef =
|
|
4762
|
-
id:
|
|
4763
|
-
name:
|
|
4764
|
-
teamId:
|
|
4765
|
-
createdAt:
|
|
4766
|
-
modifiedAt:
|
|
5017
|
+
var PluginProjectRef = z86.object({
|
|
5018
|
+
id: z86.string(),
|
|
5019
|
+
name: z86.string(),
|
|
5020
|
+
teamId: z86.string().optional(),
|
|
5021
|
+
createdAt: z86.string().optional(),
|
|
5022
|
+
modifiedAt: z86.string().optional()
|
|
4767
5023
|
});
|
|
4768
|
-
var PluginTeamRef =
|
|
4769
|
-
id:
|
|
4770
|
-
name:
|
|
4771
|
-
role:
|
|
5024
|
+
var PluginTeamRef = z86.object({
|
|
5025
|
+
id: z86.string(),
|
|
5026
|
+
name: z86.string(),
|
|
5027
|
+
role: z86.string().optional()
|
|
4772
5028
|
});
|
|
4773
|
-
var PluginTeamMemberRef =
|
|
4774
|
-
id:
|
|
4775
|
-
name:
|
|
4776
|
-
email:
|
|
4777
|
-
role:
|
|
5029
|
+
var PluginTeamMemberRef = z86.object({
|
|
5030
|
+
id: z86.string(),
|
|
5031
|
+
name: z86.string(),
|
|
5032
|
+
email: z86.string().optional(),
|
|
5033
|
+
role: z86.string().optional()
|
|
4778
5034
|
});
|
|
4779
|
-
var PluginWorkspaceProjectsCreateArgs =
|
|
4780
|
-
name:
|
|
4781
|
-
unit:
|
|
4782
|
-
teamId:
|
|
5035
|
+
var PluginWorkspaceProjectsCreateArgs = z86.object({
|
|
5036
|
+
name: z86.string(),
|
|
5037
|
+
unit: z86.string().optional(),
|
|
5038
|
+
teamId: z86.string().optional()
|
|
4783
5039
|
});
|
|
4784
|
-
var PluginWorkspaceProjectsCreateResult =
|
|
4785
|
-
projectId:
|
|
5040
|
+
var PluginWorkspaceProjectsCreateResult = z86.object({
|
|
5041
|
+
projectId: z86.string()
|
|
4786
5042
|
});
|
|
4787
|
-
var PluginWorkspaceProjectsCopyArgs =
|
|
4788
|
-
name:
|
|
4789
|
-
teamId:
|
|
5043
|
+
var PluginWorkspaceProjectsCopyArgs = z86.object({
|
|
5044
|
+
name: z86.string(),
|
|
5045
|
+
teamId: z86.string().optional()
|
|
4790
5046
|
});
|
|
4791
|
-
var PluginWorkspaceProjectsCopyResult =
|
|
4792
|
-
projectId:
|
|
5047
|
+
var PluginWorkspaceProjectsCopyResult = z86.object({
|
|
5048
|
+
projectId: z86.string()
|
|
4793
5049
|
});
|
|
4794
|
-
var PluginWorkspaceProjectsListArgs =
|
|
4795
|
-
teamId:
|
|
5050
|
+
var PluginWorkspaceProjectsListArgs = z86.object({
|
|
5051
|
+
teamId: z86.string().optional()
|
|
4796
5052
|
});
|
|
4797
|
-
var PluginWorkspaceProjectsListResult =
|
|
4798
|
-
projects:
|
|
5053
|
+
var PluginWorkspaceProjectsListResult = z86.object({
|
|
5054
|
+
projects: z86.array(PluginProjectRef)
|
|
4799
5055
|
});
|
|
4800
|
-
var PluginWorkspaceProjectsGetArgs =
|
|
4801
|
-
projectId:
|
|
5056
|
+
var PluginWorkspaceProjectsGetArgs = z86.object({
|
|
5057
|
+
projectId: z86.string()
|
|
4802
5058
|
});
|
|
4803
5059
|
var PluginWorkspaceProjectsGetResult = PluginProjectRef.nullable();
|
|
4804
|
-
var PluginWorkspaceProjectsRenameArgs =
|
|
4805
|
-
projectId:
|
|
4806
|
-
name:
|
|
5060
|
+
var PluginWorkspaceProjectsRenameArgs = z86.object({
|
|
5061
|
+
projectId: z86.string(),
|
|
5062
|
+
name: z86.string()
|
|
4807
5063
|
});
|
|
4808
|
-
var PluginWorkspaceProjectsRenameResult =
|
|
4809
|
-
projectId:
|
|
5064
|
+
var PluginWorkspaceProjectsRenameResult = z86.object({
|
|
5065
|
+
projectId: z86.string()
|
|
4810
5066
|
});
|
|
4811
|
-
var PluginWorkspaceTeamsListResult =
|
|
4812
|
-
teams:
|
|
5067
|
+
var PluginWorkspaceTeamsListResult = z86.object({
|
|
5068
|
+
teams: z86.array(PluginTeamRef)
|
|
4813
5069
|
});
|
|
4814
|
-
var PluginWorkspaceTeamsGetArgs =
|
|
4815
|
-
teamId:
|
|
5070
|
+
var PluginWorkspaceTeamsGetArgs = z86.object({
|
|
5071
|
+
teamId: z86.string()
|
|
4816
5072
|
});
|
|
4817
5073
|
var PluginWorkspaceTeamsGetResult = PluginTeamRef.nullable();
|
|
4818
|
-
var PluginWorkspaceTeamsListMembersArgs =
|
|
4819
|
-
teamId:
|
|
5074
|
+
var PluginWorkspaceTeamsListMembersArgs = z86.object({
|
|
5075
|
+
teamId: z86.string()
|
|
4820
5076
|
});
|
|
4821
|
-
var PluginWorkspaceTeamsListMembersResult =
|
|
4822
|
-
members:
|
|
5077
|
+
var PluginWorkspaceTeamsListMembersResult = z86.object({
|
|
5078
|
+
members: z86.array(PluginTeamMemberRef)
|
|
4823
5079
|
});
|
|
4824
5080
|
|
|
4825
5081
|
// src/api/index.ts
|
|
@@ -5160,6 +5416,7 @@ export {
|
|
|
5160
5416
|
PluginCameraSetModeArgs,
|
|
5161
5417
|
PluginCameraSetProjectionArgs,
|
|
5162
5418
|
PluginCameraSetStandardViewArgs,
|
|
5419
|
+
PluginCanvasShapeOrigin,
|
|
5163
5420
|
PluginClassificationOption,
|
|
5164
5421
|
PluginCommentApi,
|
|
5165
5422
|
PluginCommentCreateArgs,
|
|
@@ -5431,10 +5688,17 @@ export {
|
|
|
5431
5688
|
PluginGeomCreateApi,
|
|
5432
5689
|
PluginGeomCreateArcArgs,
|
|
5433
5690
|
PluginGeomCreateBrepBooleanArgs,
|
|
5691
|
+
PluginGeomCreateBrepFromChamferArgs,
|
|
5434
5692
|
PluginGeomCreateBrepFromExtrusionArgs,
|
|
5435
5693
|
PluginGeomCreateBrepFromFacesArgs,
|
|
5694
|
+
PluginGeomCreateBrepFromFilletArgs,
|
|
5436
5695
|
PluginGeomCreateBrepFromLoftArgs,
|
|
5437
5696
|
PluginGeomCreateBrepFromMeshArgs,
|
|
5697
|
+
PluginGeomCreateBrepFromOffsetArgs,
|
|
5698
|
+
PluginGeomCreateBrepFromRevolutionArgs,
|
|
5699
|
+
PluginGeomCreateBrepFromShellArgs,
|
|
5700
|
+
PluginGeomCreateBrepFromSweepArgs,
|
|
5701
|
+
PluginGeomCreateBrepsFromSplitArgs,
|
|
5438
5702
|
PluginGeomCreateCircleArgs,
|
|
5439
5703
|
PluginGeomCreateContourFromProfileArgs,
|
|
5440
5704
|
PluginGeomCreateContourFromProfilesArgs,
|
|
@@ -5454,6 +5718,7 @@ export {
|
|
|
5454
5718
|
PluginGeomQueryBrepApi,
|
|
5455
5719
|
PluginGeomQueryBrepGetBoundingBoxArgs,
|
|
5456
5720
|
PluginGeomQueryBrepGetCentroidArgs,
|
|
5721
|
+
PluginGeomQueryBrepGetDistanceArgs,
|
|
5457
5722
|
PluginGeomQueryBrepGetEdgeArgs,
|
|
5458
5723
|
PluginGeomQueryBrepGetEdgeCountArgs,
|
|
5459
5724
|
PluginGeomQueryBrepGetFaceCountArgs,
|
|
@@ -5639,6 +5904,17 @@ export {
|
|
|
5639
5904
|
PluginPermissionError,
|
|
5640
5905
|
PluginPlacedView,
|
|
5641
5906
|
PluginPlacedViewCrop,
|
|
5907
|
+
PluginPlacedViewFontStylesPatch,
|
|
5908
|
+
PluginPlacedViewStylePatch,
|
|
5909
|
+
PluginPlacedViewsDeleteShapesArgs,
|
|
5910
|
+
PluginPlacedViewsMoveLabelArgs,
|
|
5911
|
+
PluginPlacedViewsMoveShapeArgs,
|
|
5912
|
+
PluginPlacedViewsResizeShapeArgs,
|
|
5913
|
+
PluginPlacedViewsSetLabelHiddenArgs,
|
|
5914
|
+
PluginPlacedViewsSetMaskArgs,
|
|
5915
|
+
PluginPlacedViewsSetOpacityArgs,
|
|
5916
|
+
PluginPlacedViewsUpdateFontStylesArgs,
|
|
5917
|
+
PluginPlacedViewsUpdateStylesArgs,
|
|
5642
5918
|
PluginPresentationAIInspirationApi,
|
|
5643
5919
|
PluginPresentationAnnotateApi,
|
|
5644
5920
|
PluginPresentationAnnotateArrowArgs,
|
|
@@ -5650,6 +5926,7 @@ export {
|
|
|
5650
5926
|
PluginPresentationApi,
|
|
5651
5927
|
PluginPresentationDiagramsApi,
|
|
5652
5928
|
PluginPresentationDiagramsGenerateResult,
|
|
5929
|
+
PluginPresentationDiagramsGenerateSiteArgs,
|
|
5653
5930
|
PluginPresentationDiagramsPlaceArgs,
|
|
5654
5931
|
PluginPresentationDiagramsPlaceResult,
|
|
5655
5932
|
PluginPresentationExportArgs,
|
|
@@ -5666,8 +5943,10 @@ export {
|
|
|
5666
5943
|
PluginPresentationPlacedViewsListArgs,
|
|
5667
5944
|
PluginPresentationPlacedViewsListResult,
|
|
5668
5945
|
PluginPresentationPlacedViewsMoveArgs,
|
|
5946
|
+
PluginPresentationPlacedViewsRotateShapeArgs,
|
|
5669
5947
|
PluginPresentationPlacedViewsScaleArgs,
|
|
5670
5948
|
PluginPresentationPlacedViewsSetCropArgs,
|
|
5949
|
+
PluginPresentationPlacedViewsSetRotationArgs,
|
|
5671
5950
|
PluginPresentationPlacedViewsSetScaleArgs,
|
|
5672
5951
|
PluginPresentationShapeSpec,
|
|
5673
5952
|
PluginPresentationShapeType,
|
|
@@ -5689,9 +5968,16 @@ export {
|
|
|
5689
5968
|
PluginPresentationSheetsRenameArgs,
|
|
5690
5969
|
PluginPresentationSheetsReorderArgs,
|
|
5691
5970
|
PluginPresentationSheetsSetActiveArgs,
|
|
5971
|
+
PluginPresentationSheetsSetMarginArgs,
|
|
5692
5972
|
PluginPresentationSheetsSetSizeArgs,
|
|
5693
5973
|
PluginPresentationSheetsUpdatePlacedViewArgs,
|
|
5694
5974
|
PluginPresentationSheetsUpdatePlacedViewResult,
|
|
5975
|
+
PluginPresentationSiteDiagramType,
|
|
5976
|
+
PluginPresentationSlideshowApi,
|
|
5977
|
+
PluginPresentationSlideshowStartArgs,
|
|
5978
|
+
PluginPresentationSlideshowState,
|
|
5979
|
+
PluginPresentationTablesApi,
|
|
5980
|
+
PluginPresentationTablesPlaceArgs,
|
|
5695
5981
|
PluginPresentationView,
|
|
5696
5982
|
PluginPresentationViewColorMode,
|
|
5697
5983
|
PluginPresentationViewLabel,
|
|
@@ -5777,6 +6063,10 @@ export {
|
|
|
5777
6063
|
PluginProgramSiteAreaResult,
|
|
5778
6064
|
PluginProgramSiteContext,
|
|
5779
6065
|
PluginProgramSiteContextResult,
|
|
6066
|
+
PluginProgramSiteEdge,
|
|
6067
|
+
PluginProgramSiteEdgeRole,
|
|
6068
|
+
PluginProgramSiteEdgesEntry,
|
|
6069
|
+
PluginProgramSiteListEdgesResult,
|
|
5780
6070
|
PluginProgramSiteListGeoPolygonsResult,
|
|
5781
6071
|
PluginProgramSiteListPolygonsResult,
|
|
5782
6072
|
PluginProgramSiteLocation,
|
|
@@ -5858,6 +6148,7 @@ export {
|
|
|
5858
6148
|
PluginReferenceLineStyle,
|
|
5859
6149
|
PluginSelectionEntityType,
|
|
5860
6150
|
PluginSelectionFilter,
|
|
6151
|
+
PluginSheetMargin,
|
|
5861
6152
|
PluginSheetOrientation,
|
|
5862
6153
|
PluginSheetPosition,
|
|
5863
6154
|
PluginSheetSize,
|
|
@@ -5959,6 +6250,8 @@ export {
|
|
|
5959
6250
|
PluginStoryUpdateResult,
|
|
5960
6251
|
PluginTeamMemberRef,
|
|
5961
6252
|
PluginTeamRef,
|
|
6253
|
+
PluginTerrainReplaceMeshArgs,
|
|
6254
|
+
PluginTerrainReplaceMeshOptions,
|
|
5962
6255
|
PluginTerrainSetDatumArgs,
|
|
5963
6256
|
PluginTerrainSetOpacityArgs,
|
|
5964
6257
|
PluginTimeoutError,
|
|
@@ -5981,6 +6274,9 @@ export {
|
|
|
5981
6274
|
PluginUserLocale,
|
|
5982
6275
|
PluginValidationError,
|
|
5983
6276
|
PluginVec3Api,
|
|
6277
|
+
PluginViewLabelType,
|
|
6278
|
+
PluginViewLineStyle,
|
|
6279
|
+
PluginViewSettingCategory,
|
|
5984
6280
|
PluginWallUpdates,
|
|
5985
6281
|
PluginWeatherGetSeriesArgs,
|
|
5986
6282
|
PluginWeatherRow,
|