@snaptrude/plugin-core 0.9.0 → 0.9.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 +19 -0
- package/api-manifest.json +312 -0
- package/dist/api/core/io/terrain/index.d.ts +132 -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 +829 -553
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +797 -553
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/core/io/terrain/index.ts +143 -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.cjs
CHANGED
|
@@ -182,6 +182,7 @@ __export(index_exports, {
|
|
|
182
182
|
PluginCameraSetModeArgs: () => PluginCameraSetModeArgs,
|
|
183
183
|
PluginCameraSetProjectionArgs: () => PluginCameraSetProjectionArgs,
|
|
184
184
|
PluginCameraSetStandardViewArgs: () => PluginCameraSetStandardViewArgs,
|
|
185
|
+
PluginCanvasShapeOrigin: () => PluginCanvasShapeOrigin,
|
|
185
186
|
PluginClassificationOption: () => PluginClassificationOption,
|
|
186
187
|
PluginCommentApi: () => PluginCommentApi,
|
|
187
188
|
PluginCommentCreateArgs: () => PluginCommentCreateArgs,
|
|
@@ -661,6 +662,17 @@ __export(index_exports, {
|
|
|
661
662
|
PluginPermissionError: () => PluginPermissionError,
|
|
662
663
|
PluginPlacedView: () => PluginPlacedView,
|
|
663
664
|
PluginPlacedViewCrop: () => PluginPlacedViewCrop,
|
|
665
|
+
PluginPlacedViewFontStylesPatch: () => PluginPlacedViewFontStylesPatch,
|
|
666
|
+
PluginPlacedViewStylePatch: () => PluginPlacedViewStylePatch,
|
|
667
|
+
PluginPlacedViewsDeleteShapesArgs: () => PluginPlacedViewsDeleteShapesArgs,
|
|
668
|
+
PluginPlacedViewsMoveLabelArgs: () => PluginPlacedViewsMoveLabelArgs,
|
|
669
|
+
PluginPlacedViewsMoveShapeArgs: () => PluginPlacedViewsMoveShapeArgs,
|
|
670
|
+
PluginPlacedViewsResizeShapeArgs: () => PluginPlacedViewsResizeShapeArgs,
|
|
671
|
+
PluginPlacedViewsSetLabelHiddenArgs: () => PluginPlacedViewsSetLabelHiddenArgs,
|
|
672
|
+
PluginPlacedViewsSetMaskArgs: () => PluginPlacedViewsSetMaskArgs,
|
|
673
|
+
PluginPlacedViewsSetOpacityArgs: () => PluginPlacedViewsSetOpacityArgs,
|
|
674
|
+
PluginPlacedViewsUpdateFontStylesArgs: () => PluginPlacedViewsUpdateFontStylesArgs,
|
|
675
|
+
PluginPlacedViewsUpdateStylesArgs: () => PluginPlacedViewsUpdateStylesArgs,
|
|
664
676
|
PluginPresentationAIInspirationApi: () => PluginPresentationAIInspirationApi,
|
|
665
677
|
PluginPresentationAnnotateApi: () => PluginPresentationAnnotateApi,
|
|
666
678
|
PluginPresentationAnnotateArrowArgs: () => PluginPresentationAnnotateArrowArgs,
|
|
@@ -672,6 +684,7 @@ __export(index_exports, {
|
|
|
672
684
|
PluginPresentationApi: () => PluginPresentationApi,
|
|
673
685
|
PluginPresentationDiagramsApi: () => PluginPresentationDiagramsApi,
|
|
674
686
|
PluginPresentationDiagramsGenerateResult: () => PluginPresentationDiagramsGenerateResult,
|
|
687
|
+
PluginPresentationDiagramsGenerateSiteArgs: () => PluginPresentationDiagramsGenerateSiteArgs,
|
|
675
688
|
PluginPresentationDiagramsPlaceArgs: () => PluginPresentationDiagramsPlaceArgs,
|
|
676
689
|
PluginPresentationDiagramsPlaceResult: () => PluginPresentationDiagramsPlaceResult,
|
|
677
690
|
PluginPresentationExportArgs: () => PluginPresentationExportArgs,
|
|
@@ -688,8 +701,10 @@ __export(index_exports, {
|
|
|
688
701
|
PluginPresentationPlacedViewsListArgs: () => PluginPresentationPlacedViewsListArgs,
|
|
689
702
|
PluginPresentationPlacedViewsListResult: () => PluginPresentationPlacedViewsListResult,
|
|
690
703
|
PluginPresentationPlacedViewsMoveArgs: () => PluginPresentationPlacedViewsMoveArgs,
|
|
704
|
+
PluginPresentationPlacedViewsRotateShapeArgs: () => PluginPresentationPlacedViewsRotateShapeArgs,
|
|
691
705
|
PluginPresentationPlacedViewsScaleArgs: () => PluginPresentationPlacedViewsScaleArgs,
|
|
692
706
|
PluginPresentationPlacedViewsSetCropArgs: () => PluginPresentationPlacedViewsSetCropArgs,
|
|
707
|
+
PluginPresentationPlacedViewsSetRotationArgs: () => PluginPresentationPlacedViewsSetRotationArgs,
|
|
693
708
|
PluginPresentationPlacedViewsSetScaleArgs: () => PluginPresentationPlacedViewsSetScaleArgs,
|
|
694
709
|
PluginPresentationShapeSpec: () => PluginPresentationShapeSpec,
|
|
695
710
|
PluginPresentationShapeType: () => PluginPresentationShapeType,
|
|
@@ -711,9 +726,16 @@ __export(index_exports, {
|
|
|
711
726
|
PluginPresentationSheetsRenameArgs: () => PluginPresentationSheetsRenameArgs,
|
|
712
727
|
PluginPresentationSheetsReorderArgs: () => PluginPresentationSheetsReorderArgs,
|
|
713
728
|
PluginPresentationSheetsSetActiveArgs: () => PluginPresentationSheetsSetActiveArgs,
|
|
729
|
+
PluginPresentationSheetsSetMarginArgs: () => PluginPresentationSheetsSetMarginArgs,
|
|
714
730
|
PluginPresentationSheetsSetSizeArgs: () => PluginPresentationSheetsSetSizeArgs,
|
|
715
731
|
PluginPresentationSheetsUpdatePlacedViewArgs: () => PluginPresentationSheetsUpdatePlacedViewArgs,
|
|
716
732
|
PluginPresentationSheetsUpdatePlacedViewResult: () => PluginPresentationSheetsUpdatePlacedViewResult,
|
|
733
|
+
PluginPresentationSiteDiagramType: () => PluginPresentationSiteDiagramType,
|
|
734
|
+
PluginPresentationSlideshowApi: () => PluginPresentationSlideshowApi,
|
|
735
|
+
PluginPresentationSlideshowStartArgs: () => PluginPresentationSlideshowStartArgs,
|
|
736
|
+
PluginPresentationSlideshowState: () => PluginPresentationSlideshowState,
|
|
737
|
+
PluginPresentationTablesApi: () => PluginPresentationTablesApi,
|
|
738
|
+
PluginPresentationTablesPlaceArgs: () => PluginPresentationTablesPlaceArgs,
|
|
717
739
|
PluginPresentationView: () => PluginPresentationView,
|
|
718
740
|
PluginPresentationViewColorMode: () => PluginPresentationViewColorMode,
|
|
719
741
|
PluginPresentationViewLabel: () => PluginPresentationViewLabel,
|
|
@@ -799,6 +821,10 @@ __export(index_exports, {
|
|
|
799
821
|
PluginProgramSiteAreaResult: () => PluginProgramSiteAreaResult,
|
|
800
822
|
PluginProgramSiteContext: () => PluginProgramSiteContext,
|
|
801
823
|
PluginProgramSiteContextResult: () => PluginProgramSiteContextResult,
|
|
824
|
+
PluginProgramSiteEdge: () => PluginProgramSiteEdge,
|
|
825
|
+
PluginProgramSiteEdgeRole: () => PluginProgramSiteEdgeRole,
|
|
826
|
+
PluginProgramSiteEdgesEntry: () => PluginProgramSiteEdgesEntry,
|
|
827
|
+
PluginProgramSiteListEdgesResult: () => PluginProgramSiteListEdgesResult,
|
|
802
828
|
PluginProgramSiteListGeoPolygonsResult: () => PluginProgramSiteListGeoPolygonsResult,
|
|
803
829
|
PluginProgramSiteListPolygonsResult: () => PluginProgramSiteListPolygonsResult,
|
|
804
830
|
PluginProgramSiteLocation: () => PluginProgramSiteLocation,
|
|
@@ -880,6 +906,7 @@ __export(index_exports, {
|
|
|
880
906
|
PluginReferenceLineStyle: () => PluginReferenceLineStyle,
|
|
881
907
|
PluginSelectionEntityType: () => PluginSelectionEntityType,
|
|
882
908
|
PluginSelectionFilter: () => PluginSelectionFilter,
|
|
909
|
+
PluginSheetMargin: () => PluginSheetMargin,
|
|
883
910
|
PluginSheetOrientation: () => PluginSheetOrientation,
|
|
884
911
|
PluginSheetPosition: () => PluginSheetPosition,
|
|
885
912
|
PluginSheetSize: () => PluginSheetSize,
|
|
@@ -981,6 +1008,8 @@ __export(index_exports, {
|
|
|
981
1008
|
PluginStoryUpdateResult: () => PluginStoryUpdateResult,
|
|
982
1009
|
PluginTeamMemberRef: () => PluginTeamMemberRef,
|
|
983
1010
|
PluginTeamRef: () => PluginTeamRef,
|
|
1011
|
+
PluginTerrainReplaceMeshArgs: () => PluginTerrainReplaceMeshArgs,
|
|
1012
|
+
PluginTerrainReplaceMeshOptions: () => PluginTerrainReplaceMeshOptions,
|
|
984
1013
|
PluginTerrainSetDatumArgs: () => PluginTerrainSetDatumArgs,
|
|
985
1014
|
PluginTerrainSetOpacityArgs: () => PluginTerrainSetOpacityArgs,
|
|
986
1015
|
PluginTimeoutError: () => PluginTimeoutError,
|
|
@@ -1003,6 +1032,9 @@ __export(index_exports, {
|
|
|
1003
1032
|
PluginUserLocale: () => PluginUserLocale,
|
|
1004
1033
|
PluginValidationError: () => PluginValidationError,
|
|
1005
1034
|
PluginVec3Api: () => PluginVec3Api,
|
|
1035
|
+
PluginViewLabelType: () => PluginViewLabelType,
|
|
1036
|
+
PluginViewLineStyle: () => PluginViewLineStyle,
|
|
1037
|
+
PluginViewSettingCategory: () => PluginViewSettingCategory,
|
|
1006
1038
|
PluginWallUpdates: () => PluginWallUpdates,
|
|
1007
1039
|
PluginWeatherGetSeriesArgs: () => PluginWeatherGetSeriesArgs,
|
|
1008
1040
|
PluginWeatherRow: () => PluginWeatherRow,
|
|
@@ -2416,6 +2448,29 @@ var TerrainReport = z33.object({
|
|
|
2416
2448
|
fillVolume: z33.number(),
|
|
2417
2449
|
netVolume: z33.number()
|
|
2418
2450
|
});
|
|
2451
|
+
var PluginTerrainReplaceMeshOptions = z33.object({
|
|
2452
|
+
coordinateSpace: z33.literal("world").optional(),
|
|
2453
|
+
expectedTerrain: z33.string().min(1).optional(),
|
|
2454
|
+
expectedModelRevision: z33.number().int().nonnegative().optional(),
|
|
2455
|
+
baseline: z33.literal("make-replacement-original").optional(),
|
|
2456
|
+
preserve: z33.object({
|
|
2457
|
+
datum: z33.boolean().optional(),
|
|
2458
|
+
geolocation: z33.boolean().optional(),
|
|
2459
|
+
satellite: z33.boolean().optional(),
|
|
2460
|
+
material: z33.boolean().optional()
|
|
2461
|
+
}).strict().optional(),
|
|
2462
|
+
clientMutationId: z33.string().min(1).max(128).optional()
|
|
2463
|
+
}).strict();
|
|
2464
|
+
var PluginTerrainReplaceMeshArgs = z33.object({
|
|
2465
|
+
positions: z33.array(z33.number().finite()).min(9).max(15e5).refine((a) => a.length % 3 === 0, {
|
|
2466
|
+
message: "positions must be a flat [x, y, z, \u2026] array (length a multiple of 3)"
|
|
2467
|
+
}),
|
|
2468
|
+
indices: z33.array(z33.number().int().nonnegative()).min(3).max(15e5).refine((a) => a.length % 3 === 0, {
|
|
2469
|
+
message: "indices must be a flat triangle list (length a multiple of 3)"
|
|
2470
|
+
}),
|
|
2471
|
+
units: z33.enum(["world", "meters"]).optional(),
|
|
2472
|
+
options: PluginTerrainReplaceMeshOptions.optional()
|
|
2473
|
+
});
|
|
2419
2474
|
var PluginTerrainSetDatumArgs = z33.object({ offset: z33.number().finite() });
|
|
2420
2475
|
var PluginTerrainSetOpacityArgs = z33.object({ opacity: z33.number().min(0).max(1) });
|
|
2421
2476
|
|
|
@@ -4418,6 +4473,27 @@ var PluginProgramSiteWeather = z65.object({
|
|
|
4418
4473
|
])
|
|
4419
4474
|
});
|
|
4420
4475
|
var PluginProgramSiteWeatherResult = PluginProgramSiteWeather.nullable();
|
|
4476
|
+
var PluginProgramSiteEdgeRole = z65.enum(["front", "side", "rear"]);
|
|
4477
|
+
var PluginProgramSiteEdge = z65.object({
|
|
4478
|
+
edgeIndex: z65.number().int().nonnegative(),
|
|
4479
|
+
start: z65.object({ x: z65.number(), z: z65.number() }),
|
|
4480
|
+
end: z65.object({ x: z65.number(), z: z65.number() }),
|
|
4481
|
+
lengthMeters: z65.number(),
|
|
4482
|
+
role: PluginProgramSiteEdgeRole,
|
|
4483
|
+
roleSource: z65.enum(["override", "heuristic"]),
|
|
4484
|
+
setbackMeters: z65.number().nullable()
|
|
4485
|
+
});
|
|
4486
|
+
var PluginProgramSiteEdgesEntry = z65.object({
|
|
4487
|
+
siteId: z65.string(),
|
|
4488
|
+
buildableEnvelopeId: z65.string().nullable(),
|
|
4489
|
+
usingLiveSiteBoundary: z65.boolean(),
|
|
4490
|
+
staleOverridesDropped: z65.boolean(),
|
|
4491
|
+
edges: z65.array(PluginProgramSiteEdge)
|
|
4492
|
+
});
|
|
4493
|
+
var PluginProgramSiteListEdgesResult = z65.object({
|
|
4494
|
+
lengthUnit: z65.literal("m"),
|
|
4495
|
+
sites: z65.array(PluginProgramSiteEdgesEntry)
|
|
4496
|
+
});
|
|
4421
4497
|
|
|
4422
4498
|
// src/api/program/cores.ts
|
|
4423
4499
|
var z66 = __toESM(require("zod"), 1);
|
|
@@ -4665,11 +4741,19 @@ var PluginSheetSize = z70.enum([
|
|
|
4665
4741
|
"ISO_A0"
|
|
4666
4742
|
]);
|
|
4667
4743
|
var PluginSheetOrientation = z70.enum(["landscape", "portrait"]);
|
|
4744
|
+
var PluginSheetMargin = z70.union([
|
|
4745
|
+
z70.literal(0),
|
|
4746
|
+
z70.literal(0.25),
|
|
4747
|
+
z70.literal(0.5),
|
|
4748
|
+
z70.literal(0.75),
|
|
4749
|
+
z70.literal(1)
|
|
4750
|
+
]);
|
|
4668
4751
|
var PluginPresentationSheet = z70.object({
|
|
4669
4752
|
id: z70.string(),
|
|
4670
4753
|
name: z70.string(),
|
|
4671
4754
|
size: PluginSheetSize.nullable(),
|
|
4672
|
-
orientation: PluginSheetOrientation.nullable()
|
|
4755
|
+
orientation: PluginSheetOrientation.nullable(),
|
|
4756
|
+
margin: PluginSheetMargin.nullable()
|
|
4673
4757
|
});
|
|
4674
4758
|
var PluginSheetPosition = z70.object({
|
|
4675
4759
|
x: z70.number(),
|
|
@@ -4692,6 +4776,10 @@ var PluginPresentationSheetsSetSizeArgs = z70.object({
|
|
|
4692
4776
|
size: PluginSheetSize,
|
|
4693
4777
|
orientation: PluginSheetOrientation.optional()
|
|
4694
4778
|
});
|
|
4779
|
+
var PluginPresentationSheetsSetMarginArgs = z70.object({
|
|
4780
|
+
sheetId: z70.string(),
|
|
4781
|
+
margin: PluginSheetMargin
|
|
4782
|
+
});
|
|
4695
4783
|
var PluginPresentationSheetsPlaceArgs = z70.object({
|
|
4696
4784
|
sheetId: z70.string(),
|
|
4697
4785
|
viewId: z70.string(),
|
|
@@ -4781,6 +4869,119 @@ var PluginPresentationPlacedViewsSetCropArgs = z71.object({
|
|
|
4781
4869
|
shapeId: z71.string(),
|
|
4782
4870
|
crop: PluginPlacedViewCrop.nullable()
|
|
4783
4871
|
});
|
|
4872
|
+
var PluginPresentationPlacedViewsSetRotationArgs = z71.object({
|
|
4873
|
+
shapeId: z71.string().min(1),
|
|
4874
|
+
rotation: z71.number().finite()
|
|
4875
|
+
});
|
|
4876
|
+
var PluginViewSettingCategory = z71.enum([
|
|
4877
|
+
"Site",
|
|
4878
|
+
"Topography",
|
|
4879
|
+
"Space",
|
|
4880
|
+
"Department",
|
|
4881
|
+
"Envelope",
|
|
4882
|
+
"Facade/Mass",
|
|
4883
|
+
"Dimension",
|
|
4884
|
+
"Reference Line",
|
|
4885
|
+
"Adjacency Line",
|
|
4886
|
+
"Landscape elements"
|
|
4887
|
+
]);
|
|
4888
|
+
var PluginViewLineStyle = z71.enum([
|
|
4889
|
+
"solid",
|
|
4890
|
+
"dashed",
|
|
4891
|
+
"dashdot",
|
|
4892
|
+
"hidden",
|
|
4893
|
+
"center",
|
|
4894
|
+
"phantom",
|
|
4895
|
+
"propertyLine"
|
|
4896
|
+
]);
|
|
4897
|
+
var PluginPlacedViewStylePatch = z71.object({
|
|
4898
|
+
hide: z71.boolean().optional(),
|
|
4899
|
+
lineStyle: PluginViewLineStyle.optional(),
|
|
4900
|
+
lineColor: z71.string().regex(/^#?[0-9a-fA-F]{6}$/, "lineColor must be a 6-digit hex color").optional(),
|
|
4901
|
+
dashLength: z71.number().finite().positive().optional(),
|
|
4902
|
+
lineWidth: z71.number().finite().min(0).optional(),
|
|
4903
|
+
cutWidth: z71.number().finite().min(0).optional(),
|
|
4904
|
+
projectionWidth: z71.number().finite().min(0).optional(),
|
|
4905
|
+
treeLineWidth: z71.number().finite().min(0).optional(),
|
|
4906
|
+
parkingLineWidth: z71.number().finite().min(0).optional(),
|
|
4907
|
+
colorMode: z71.string().refine(
|
|
4908
|
+
(v) => ["department", "texture", "monochrome"].includes(v) || v.startsWith("tag:"),
|
|
4909
|
+
{ message: "colorMode must be department, texture, monochrome, or tag:<tagCategoryId>" }
|
|
4910
|
+
).optional(),
|
|
4911
|
+
opacity: z71.number().finite().min(0).max(100).optional(),
|
|
4912
|
+
mapOpacity: z71.number().finite().min(0).max(100).optional(),
|
|
4913
|
+
buildingOpacity: z71.number().finite().min(0).max(100).optional(),
|
|
4914
|
+
mapHide: z71.boolean().optional(),
|
|
4915
|
+
buildingHide: z71.boolean().optional(),
|
|
4916
|
+
noBuilding: z71.boolean().optional(),
|
|
4917
|
+
viewStyle: z71.enum(["NONE", "FILLET", "BUBBLE"]).optional(),
|
|
4918
|
+
radius: z71.number().finite().min(0).optional(),
|
|
4919
|
+
inset: z71.number().finite().min(0).optional()
|
|
4920
|
+
}).strict().refine((p) => Object.keys(p).length > 0, { message: "patch must set at least one setting" });
|
|
4921
|
+
var PluginViewLabelType = z71.enum(["objectLabels", "department", "areas"]);
|
|
4922
|
+
var PluginViewFontVariantPatch = z71.object({
|
|
4923
|
+
fontFamily: z71.string().min(1).optional(),
|
|
4924
|
+
fontWeight: z71.string().regex(/^\d{3}$/, 'fontWeight must be a numeric string like "400" or "700"').optional(),
|
|
4925
|
+
fontStyle: z71.enum(["normal", "italic"]).optional(),
|
|
4926
|
+
fontSize: z71.number().finite().positive().max(200).optional()
|
|
4927
|
+
}).strict();
|
|
4928
|
+
var PluginPlacedViewFontStylesPatch = z71.object({
|
|
4929
|
+
visibleTypes: z71.array(PluginViewLabelType).optional(),
|
|
4930
|
+
objectLabels: PluginViewFontVariantPatch.optional(),
|
|
4931
|
+
department: PluginViewFontVariantPatch.optional(),
|
|
4932
|
+
areas: PluginViewFontVariantPatch.optional()
|
|
4933
|
+
}).strict().refine((p) => Object.keys(p).length > 0, { message: "patch must set at least one field" });
|
|
4934
|
+
var PluginPlacedViewsUpdateStylesArgs = z71.object({
|
|
4935
|
+
shapeId: z71.string().min(1),
|
|
4936
|
+
category: PluginViewSettingCategory,
|
|
4937
|
+
patch: PluginPlacedViewStylePatch
|
|
4938
|
+
});
|
|
4939
|
+
var PluginPlacedViewsUpdateFontStylesArgs = z71.object({
|
|
4940
|
+
shapeId: z71.string().min(1),
|
|
4941
|
+
category: PluginViewSettingCategory,
|
|
4942
|
+
patch: PluginPlacedViewFontStylesPatch
|
|
4943
|
+
});
|
|
4944
|
+
var PluginPlacedViewsMoveLabelArgs = z71.object({
|
|
4945
|
+
labelId: z71.string().min(1),
|
|
4946
|
+
position: PluginSheetPosition
|
|
4947
|
+
});
|
|
4948
|
+
var PluginPlacedViewsSetLabelHiddenArgs = z71.object({
|
|
4949
|
+
labelId: z71.string().min(1),
|
|
4950
|
+
hidden: z71.boolean()
|
|
4951
|
+
});
|
|
4952
|
+
var PluginCanvasShapeOrigin = z71.enum([
|
|
4953
|
+
"view",
|
|
4954
|
+
"aiOutput",
|
|
4955
|
+
"diagram",
|
|
4956
|
+
"pluginShape",
|
|
4957
|
+
"annotation",
|
|
4958
|
+
"image",
|
|
4959
|
+
"other"
|
|
4960
|
+
]);
|
|
4961
|
+
var PluginPlacedViewsMoveShapeArgs = z71.object({
|
|
4962
|
+
shapeId: z71.string().min(1),
|
|
4963
|
+
position: PluginSheetPosition,
|
|
4964
|
+
sheetId: z71.string().optional()
|
|
4965
|
+
});
|
|
4966
|
+
var PluginPlacedViewsResizeShapeArgs = z71.object({
|
|
4967
|
+
shapeId: z71.string().min(1),
|
|
4968
|
+
factor: z71.number().finite().min(0.01).max(100)
|
|
4969
|
+
});
|
|
4970
|
+
var PluginPresentationPlacedViewsRotateShapeArgs = z71.object({
|
|
4971
|
+
shapeId: z71.string().min(1),
|
|
4972
|
+
rotation: z71.number().finite()
|
|
4973
|
+
});
|
|
4974
|
+
var PluginPlacedViewsDeleteShapesArgs = z71.object({
|
|
4975
|
+
shapeIds: z71.array(z71.string().min(1)).min(1).max(500)
|
|
4976
|
+
});
|
|
4977
|
+
var PluginPlacedViewsSetOpacityArgs = z71.object({
|
|
4978
|
+
shapeId: z71.string().min(1),
|
|
4979
|
+
opacity: z71.number().finite().min(0).max(1)
|
|
4980
|
+
});
|
|
4981
|
+
var PluginPlacedViewsSetMaskArgs = z71.object({
|
|
4982
|
+
shapeId: z71.string().min(1),
|
|
4983
|
+
enabled: z71.boolean()
|
|
4984
|
+
});
|
|
4784
4985
|
|
|
4785
4986
|
// src/api/presentation/diagrams.ts
|
|
4786
4987
|
var z72 = __toESM(require("zod"), 1);
|
|
@@ -4796,6 +4997,14 @@ var PluginPresentationDiagramsPlaceArgs = z72.object({
|
|
|
4796
4997
|
var PluginPresentationDiagramsPlaceResult = z72.object({
|
|
4797
4998
|
shapeIds: z72.array(z72.string())
|
|
4798
4999
|
});
|
|
5000
|
+
var PluginPresentationSiteDiagramType = z72.enum([
|
|
5001
|
+
"location",
|
|
5002
|
+
"streetview",
|
|
5003
|
+
"climate"
|
|
5004
|
+
]);
|
|
5005
|
+
var PluginPresentationDiagramsGenerateSiteArgs = z72.object({
|
|
5006
|
+
types: z72.array(PluginPresentationSiteDiagramType).min(1).optional()
|
|
5007
|
+
});
|
|
4799
5008
|
var PluginPresentationDiagramsGenerateResult = z72.object({
|
|
4800
5009
|
sheetIds: z72.array(z72.string())
|
|
4801
5010
|
});
|
|
@@ -4827,7 +5036,13 @@ var PluginPresentationAnnotateTextArgs = z73.object({
|
|
|
4827
5036
|
text: z73.string(),
|
|
4828
5037
|
position: z73.object({ x: z73.number(), y: z73.number() }).optional(),
|
|
4829
5038
|
size: PluginAnnotateTextSize.optional(),
|
|
4830
|
-
color: PluginAnnotateTextColor.optional()
|
|
5039
|
+
color: PluginAnnotateTextColor.optional(),
|
|
5040
|
+
fontFamily: z73.string().min(1).optional(),
|
|
5041
|
+
fontWeight: z73.string().regex(
|
|
5042
|
+
/^\d{3}(-italic)?$/,
|
|
5043
|
+
'fontWeight must be a numeric string like "400" or "700", optionally with the "-italic" suffix'
|
|
5044
|
+
).optional(),
|
|
5045
|
+
fontSizePx: z73.number().finite().positive().optional()
|
|
4831
5046
|
});
|
|
4832
5047
|
var PluginPresentationAnnotateTextResult = z73.object({
|
|
4833
5048
|
shapeId: z73.string()
|
|
@@ -4950,229 +5165,258 @@ var PluginPresentationShapesListResult = z74.object({
|
|
|
4950
5165
|
)
|
|
4951
5166
|
});
|
|
4952
5167
|
|
|
4953
|
-
// src/api/presentation/
|
|
5168
|
+
// src/api/presentation/tables.ts
|
|
4954
5169
|
var z75 = __toESM(require("zod"), 1);
|
|
4955
|
-
var
|
|
5170
|
+
var PluginPresentationTablesApi = class {
|
|
4956
5171
|
constructor() {
|
|
4957
5172
|
}
|
|
4958
5173
|
};
|
|
4959
|
-
var
|
|
4960
|
-
|
|
4961
|
-
|
|
5174
|
+
var PluginPresentationTablesPlaceArgs = z75.object({
|
|
5175
|
+
sheetId: z75.string().min(1),
|
|
5176
|
+
rows: z75.array(z75.array(z75.string()).min(1)).min(1).refine((rows) => rows.reduce((n, r) => n + r.length, 0) <= 1e4, {
|
|
5177
|
+
message: "table exceeds the 10000-cell cap"
|
|
5178
|
+
}),
|
|
4962
5179
|
position: z75.object({ x: z75.number(), y: z75.number() }).optional()
|
|
5180
|
+
});
|
|
5181
|
+
|
|
5182
|
+
// src/api/presentation/slideshow.ts
|
|
5183
|
+
var z76 = __toESM(require("zod"), 1);
|
|
5184
|
+
var PluginPresentationSlideshowApi = class {
|
|
5185
|
+
constructor() {
|
|
5186
|
+
}
|
|
5187
|
+
};
|
|
5188
|
+
var PluginPresentationSlideshowStartArgs = z76.object({
|
|
5189
|
+
sheetIds: z76.array(z76.string().min(1)).optional(),
|
|
5190
|
+
startIndex: z76.number().int().min(0).optional()
|
|
5191
|
+
});
|
|
5192
|
+
var PluginPresentationSlideshowState = z76.object({
|
|
5193
|
+
running: z76.boolean(),
|
|
5194
|
+
index: z76.number().int().nullable()
|
|
5195
|
+
});
|
|
5196
|
+
|
|
5197
|
+
// src/api/presentation/import.ts
|
|
5198
|
+
var z77 = __toESM(require("zod"), 1);
|
|
5199
|
+
var PluginPresentationImportApi = class {
|
|
5200
|
+
constructor() {
|
|
5201
|
+
}
|
|
5202
|
+
};
|
|
5203
|
+
var PluginPresentationImportArgs = z77.object({
|
|
5204
|
+
url: z77.string().optional(),
|
|
5205
|
+
dataUrl: z77.string().optional(),
|
|
5206
|
+
position: z77.object({ x: z77.number(), y: z77.number() }).optional()
|
|
4963
5207
|
}).refine((a) => Boolean(a.url) || Boolean(a.dataUrl), {
|
|
4964
5208
|
message: "Provide a url or a dataUrl"
|
|
4965
5209
|
});
|
|
4966
|
-
var PluginPresentationImportResult =
|
|
4967
|
-
shapeIds:
|
|
5210
|
+
var PluginPresentationImportResult = z77.object({
|
|
5211
|
+
shapeIds: z77.array(z77.string())
|
|
4968
5212
|
});
|
|
4969
5213
|
|
|
4970
5214
|
// src/api/presentation/aiInspiration.ts
|
|
4971
|
-
var
|
|
4972
|
-
var JsonPrimitive =
|
|
4973
|
-
var JsonValue =
|
|
4974
|
-
() =>
|
|
5215
|
+
var z78 = __toESM(require("zod"), 1);
|
|
5216
|
+
var JsonPrimitive = z78.union([z78.string(), z78.number(), z78.boolean(), z78.null()]);
|
|
5217
|
+
var JsonValue = z78.lazy(
|
|
5218
|
+
() => z78.union([JsonPrimitive, z78.array(JsonValue), z78.record(z78.string(), JsonValue)])
|
|
4975
5219
|
);
|
|
4976
|
-
var PluginAIInspirationRunMode =
|
|
4977
|
-
var PluginAIInspirationOutputKind =
|
|
5220
|
+
var PluginAIInspirationRunMode = z78.enum(["blocking", "job"]);
|
|
5221
|
+
var PluginAIInspirationOutputKind = z78.enum([
|
|
4978
5222
|
"source",
|
|
4979
5223
|
"image",
|
|
4980
5224
|
"video"
|
|
4981
5225
|
]);
|
|
4982
|
-
var PluginAIInspirationModelOutput =
|
|
4983
|
-
var PluginAIInspirationRuntimeProvider =
|
|
4984
|
-
var PluginAIInspirationPromptStrategy =
|
|
5226
|
+
var PluginAIInspirationModelOutput = z78.enum(["image", "video"]);
|
|
5227
|
+
var PluginAIInspirationRuntimeProvider = z78.enum(["gpt", "fal"]);
|
|
5228
|
+
var PluginAIInspirationPromptStrategy = z78.enum([
|
|
4985
5229
|
"gpt-image",
|
|
4986
5230
|
"fal-image",
|
|
4987
5231
|
"fal-video"
|
|
4988
5232
|
]);
|
|
4989
|
-
var PluginAIInspirationShapeKind =
|
|
4990
|
-
var PluginAIInspirationVideoMode =
|
|
5233
|
+
var PluginAIInspirationShapeKind = z78.enum(["image", "view", "video"]);
|
|
5234
|
+
var PluginAIInspirationVideoMode = z78.enum([
|
|
4991
5235
|
"animate",
|
|
4992
5236
|
"references",
|
|
4993
5237
|
"keyframes"
|
|
4994
5238
|
]);
|
|
4995
|
-
var PluginAIInspirationVideoMotion =
|
|
5239
|
+
var PluginAIInspirationVideoMotion = z78.enum([
|
|
4996
5240
|
"auto",
|
|
4997
5241
|
"slow-dolly",
|
|
4998
5242
|
"subtle-orbit",
|
|
4999
5243
|
"reveal"
|
|
5000
5244
|
]);
|
|
5001
|
-
var PluginAIInspirationVideoDuration =
|
|
5002
|
-
var PluginAIInspirationJobStatus =
|
|
5245
|
+
var PluginAIInspirationVideoDuration = z78.enum(["4s", "6s", "8s"]);
|
|
5246
|
+
var PluginAIInspirationJobStatus = z78.enum([
|
|
5003
5247
|
"queued",
|
|
5004
5248
|
"running",
|
|
5005
5249
|
"completed",
|
|
5006
5250
|
"failed",
|
|
5007
5251
|
"cancelled"
|
|
5008
5252
|
]);
|
|
5009
|
-
var PluginAIInspirationWorkflowRunState =
|
|
5253
|
+
var PluginAIInspirationWorkflowRunState = z78.enum([
|
|
5010
5254
|
"current",
|
|
5011
5255
|
"stale",
|
|
5012
5256
|
"running",
|
|
5013
5257
|
"failed",
|
|
5014
5258
|
"superseded"
|
|
5015
5259
|
]);
|
|
5016
|
-
var PluginAIInspirationRegionHint =
|
|
5017
|
-
x:
|
|
5018
|
-
y:
|
|
5019
|
-
w:
|
|
5020
|
-
h:
|
|
5021
|
-
});
|
|
5022
|
-
var PluginAIInspirationPoint =
|
|
5023
|
-
x:
|
|
5024
|
-
y:
|
|
5025
|
-
});
|
|
5026
|
-
var PluginAIInspirationTextAnnotation =
|
|
5027
|
-
text:
|
|
5028
|
-
x:
|
|
5029
|
-
y:
|
|
5030
|
-
});
|
|
5031
|
-
var PluginAIInspirationSketchGuidance =
|
|
5032
|
-
visualShapeIds:
|
|
5033
|
-
textAnnotations:
|
|
5034
|
-
});
|
|
5035
|
-
var PluginAIInspirationSiteOptions =
|
|
5036
|
-
includeSatellite:
|
|
5037
|
-
includeStreetView:
|
|
5038
|
-
includeAerial:
|
|
5039
|
-
aerialBearing:
|
|
5040
|
-
aerialPitch:
|
|
5041
|
-
selectedDiagramIds:
|
|
5042
|
-
location:
|
|
5043
|
-
lat:
|
|
5044
|
-
lng:
|
|
5260
|
+
var PluginAIInspirationRegionHint = z78.object({
|
|
5261
|
+
x: z78.number().finite(),
|
|
5262
|
+
y: z78.number().finite(),
|
|
5263
|
+
w: z78.number().finite().positive(),
|
|
5264
|
+
h: z78.number().finite().positive()
|
|
5265
|
+
});
|
|
5266
|
+
var PluginAIInspirationPoint = z78.object({
|
|
5267
|
+
x: z78.number().finite(),
|
|
5268
|
+
y: z78.number().finite()
|
|
5269
|
+
});
|
|
5270
|
+
var PluginAIInspirationTextAnnotation = z78.object({
|
|
5271
|
+
text: z78.string().min(1),
|
|
5272
|
+
x: z78.number().finite().optional(),
|
|
5273
|
+
y: z78.number().finite().optional()
|
|
5274
|
+
});
|
|
5275
|
+
var PluginAIInspirationSketchGuidance = z78.object({
|
|
5276
|
+
visualShapeIds: z78.array(z78.string()).optional(),
|
|
5277
|
+
textAnnotations: z78.array(PluginAIInspirationTextAnnotation).optional()
|
|
5278
|
+
});
|
|
5279
|
+
var PluginAIInspirationSiteOptions = z78.object({
|
|
5280
|
+
includeSatellite: z78.boolean().optional(),
|
|
5281
|
+
includeStreetView: z78.boolean().optional(),
|
|
5282
|
+
includeAerial: z78.boolean().optional(),
|
|
5283
|
+
aerialBearing: z78.number().finite().optional(),
|
|
5284
|
+
aerialPitch: z78.number().finite().optional(),
|
|
5285
|
+
selectedDiagramIds: z78.array(z78.string()).optional(),
|
|
5286
|
+
location: z78.object({
|
|
5287
|
+
lat: z78.number().finite(),
|
|
5288
|
+
lng: z78.number().finite()
|
|
5045
5289
|
}).optional()
|
|
5046
5290
|
});
|
|
5047
|
-
var PluginAIInspirationAppliedPreset =
|
|
5048
|
-
source:
|
|
5049
|
-
presetId:
|
|
5050
|
-
name:
|
|
5051
|
-
savedPresetKind:
|
|
5052
|
-
stylePrompt:
|
|
5053
|
-
modelId:
|
|
5054
|
-
referenceImages:
|
|
5055
|
-
|
|
5056
|
-
url:
|
|
5057
|
-
label:
|
|
5058
|
-
weight:
|
|
5291
|
+
var PluginAIInspirationAppliedPreset = z78.object({
|
|
5292
|
+
source: z78.enum(["curated", "user"]),
|
|
5293
|
+
presetId: z78.string().min(1),
|
|
5294
|
+
name: z78.string().min(1),
|
|
5295
|
+
savedPresetKind: z78.enum(["prompt", "style"]).optional(),
|
|
5296
|
+
stylePrompt: z78.string().optional(),
|
|
5297
|
+
modelId: z78.string().optional(),
|
|
5298
|
+
referenceImages: z78.array(
|
|
5299
|
+
z78.object({
|
|
5300
|
+
url: z78.string().min(1),
|
|
5301
|
+
label: z78.string().optional(),
|
|
5302
|
+
weight: z78.number().finite().optional()
|
|
5059
5303
|
})
|
|
5060
5304
|
).optional(),
|
|
5061
|
-
siteDefaults:
|
|
5062
|
-
includeSatellite:
|
|
5063
|
-
includeStreetView:
|
|
5064
|
-
includeAerial:
|
|
5305
|
+
siteDefaults: z78.object({
|
|
5306
|
+
includeSatellite: z78.boolean().optional(),
|
|
5307
|
+
includeStreetView: z78.boolean().optional(),
|
|
5308
|
+
includeAerial: z78.boolean().optional()
|
|
5065
5309
|
}).optional()
|
|
5066
5310
|
});
|
|
5067
|
-
var PluginAIInspirationVideoOptions =
|
|
5311
|
+
var PluginAIInspirationVideoOptions = z78.object({
|
|
5068
5312
|
mode: PluginAIInspirationVideoMode.optional(),
|
|
5069
|
-
endFrameShapeId:
|
|
5313
|
+
endFrameShapeId: z78.string().optional(),
|
|
5070
5314
|
motion: PluginAIInspirationVideoMotion.optional(),
|
|
5071
5315
|
duration: PluginAIInspirationVideoDuration.optional()
|
|
5072
5316
|
});
|
|
5073
|
-
var PluginAIInspirationModel =
|
|
5074
|
-
id:
|
|
5075
|
-
label:
|
|
5076
|
-
supportsMultiImage:
|
|
5317
|
+
var PluginAIInspirationModel = z78.object({
|
|
5318
|
+
id: z78.string(),
|
|
5319
|
+
label: z78.string(),
|
|
5320
|
+
supportsMultiImage: z78.boolean(),
|
|
5077
5321
|
output: PluginAIInspirationModelOutput,
|
|
5078
|
-
isDefault:
|
|
5322
|
+
isDefault: z78.boolean().optional()
|
|
5079
5323
|
});
|
|
5080
|
-
var PluginAIInspirationModelCapability =
|
|
5081
|
-
id:
|
|
5324
|
+
var PluginAIInspirationModelCapability = z78.object({
|
|
5325
|
+
id: z78.string(),
|
|
5082
5326
|
output: PluginAIInspirationModelOutput,
|
|
5083
5327
|
provider: PluginAIInspirationRuntimeProvider,
|
|
5084
|
-
supportsRegionEdit:
|
|
5085
|
-
supportsReferenceImages:
|
|
5086
|
-
supportsStylePresets:
|
|
5087
|
-
supportsSiteContext:
|
|
5088
|
-
supportsSketchGuidance:
|
|
5089
|
-
supportsKeyframes:
|
|
5090
|
-
maxExtraImages:
|
|
5328
|
+
supportsRegionEdit: z78.boolean(),
|
|
5329
|
+
supportsReferenceImages: z78.boolean(),
|
|
5330
|
+
supportsStylePresets: z78.boolean(),
|
|
5331
|
+
supportsSiteContext: z78.boolean(),
|
|
5332
|
+
supportsSketchGuidance: z78.boolean(),
|
|
5333
|
+
supportsKeyframes: z78.boolean(),
|
|
5334
|
+
maxExtraImages: z78.number().int().nonnegative(),
|
|
5091
5335
|
promptStrategy: PluginAIInspirationPromptStrategy
|
|
5092
5336
|
});
|
|
5093
|
-
var PluginAIInspirationListModelsResult =
|
|
5094
|
-
defaultModelId:
|
|
5095
|
-
models:
|
|
5337
|
+
var PluginAIInspirationListModelsResult = z78.object({
|
|
5338
|
+
defaultModelId: z78.string(),
|
|
5339
|
+
models: z78.array(PluginAIInspirationModel)
|
|
5096
5340
|
});
|
|
5097
|
-
var PluginAIInspirationGetModelCapabilitiesArgs =
|
|
5098
|
-
modelId:
|
|
5341
|
+
var PluginAIInspirationGetModelCapabilitiesArgs = z78.object({
|
|
5342
|
+
modelId: z78.string().min(1)
|
|
5099
5343
|
});
|
|
5100
|
-
var PluginAIInspirationGetModelCapabilitiesResult =
|
|
5344
|
+
var PluginAIInspirationGetModelCapabilitiesResult = z78.object({
|
|
5101
5345
|
capability: PluginAIInspirationModelCapability
|
|
5102
5346
|
});
|
|
5103
|
-
var PluginAIInspirationShapeRef =
|
|
5104
|
-
shapeId:
|
|
5105
|
-
assetId:
|
|
5347
|
+
var PluginAIInspirationShapeRef = z78.object({
|
|
5348
|
+
shapeId: z78.string(),
|
|
5349
|
+
assetId: z78.string().optional(),
|
|
5106
5350
|
kind: PluginAIInspirationShapeKind,
|
|
5107
|
-
name:
|
|
5108
|
-
width:
|
|
5109
|
-
height:
|
|
5351
|
+
name: z78.string().optional(),
|
|
5352
|
+
width: z78.number().finite().optional(),
|
|
5353
|
+
height: z78.number().finite().optional(),
|
|
5110
5354
|
outputType: PluginAIInspirationOutputKind.optional(),
|
|
5111
|
-
sourceUrl:
|
|
5112
|
-
});
|
|
5113
|
-
var PluginAIInspirationListSourcesArgs =
|
|
5114
|
-
includeGenerated:
|
|
5115
|
-
includeSourceUrl:
|
|
5116
|
-
});
|
|
5117
|
-
var PluginAIInspirationListSourcesResult =
|
|
5118
|
-
sources:
|
|
5119
|
-
});
|
|
5120
|
-
var PluginAIInspirationGetSelectionResult =
|
|
5121
|
-
selectedShapeIds:
|
|
5122
|
-
sources:
|
|
5123
|
-
});
|
|
5124
|
-
var PluginAIInspirationPresetReferenceImage =
|
|
5125
|
-
url:
|
|
5126
|
-
label:
|
|
5127
|
-
weight:
|
|
5128
|
-
});
|
|
5129
|
-
var PluginAIInspirationPreset =
|
|
5130
|
-
id:
|
|
5131
|
-
name:
|
|
5132
|
-
source:
|
|
5133
|
-
modelId:
|
|
5134
|
-
categoryId:
|
|
5135
|
-
categoryLabel:
|
|
5136
|
-
description:
|
|
5137
|
-
previewImageUrl:
|
|
5138
|
-
prompt:
|
|
5139
|
-
stylePrompt:
|
|
5140
|
-
tags:
|
|
5141
|
-
referenceImages:
|
|
5355
|
+
sourceUrl: z78.string().optional()
|
|
5356
|
+
});
|
|
5357
|
+
var PluginAIInspirationListSourcesArgs = z78.object({
|
|
5358
|
+
includeGenerated: z78.boolean().optional(),
|
|
5359
|
+
includeSourceUrl: z78.boolean().optional()
|
|
5360
|
+
});
|
|
5361
|
+
var PluginAIInspirationListSourcesResult = z78.object({
|
|
5362
|
+
sources: z78.array(PluginAIInspirationShapeRef)
|
|
5363
|
+
});
|
|
5364
|
+
var PluginAIInspirationGetSelectionResult = z78.object({
|
|
5365
|
+
selectedShapeIds: z78.array(z78.string()),
|
|
5366
|
+
sources: z78.array(PluginAIInspirationShapeRef)
|
|
5367
|
+
});
|
|
5368
|
+
var PluginAIInspirationPresetReferenceImage = z78.object({
|
|
5369
|
+
url: z78.string(),
|
|
5370
|
+
label: z78.string().optional(),
|
|
5371
|
+
weight: z78.number().finite().optional()
|
|
5372
|
+
});
|
|
5373
|
+
var PluginAIInspirationPreset = z78.object({
|
|
5374
|
+
id: z78.string(),
|
|
5375
|
+
name: z78.string(),
|
|
5376
|
+
source: z78.enum(["curated", "user"]),
|
|
5377
|
+
modelId: z78.string(),
|
|
5378
|
+
categoryId: z78.string().optional(),
|
|
5379
|
+
categoryLabel: z78.string().optional(),
|
|
5380
|
+
description: z78.string().optional(),
|
|
5381
|
+
previewImageUrl: z78.string().optional(),
|
|
5382
|
+
prompt: z78.string().optional(),
|
|
5383
|
+
stylePrompt: z78.string().optional(),
|
|
5384
|
+
tags: z78.array(z78.string()).optional(),
|
|
5385
|
+
referenceImages: z78.array(PluginAIInspirationPresetReferenceImage).optional(),
|
|
5142
5386
|
siteDefaults: PluginAIInspirationAppliedPreset.shape.siteDefaults.optional()
|
|
5143
5387
|
});
|
|
5144
|
-
var PluginAIInspirationPresetCategory =
|
|
5145
|
-
id:
|
|
5146
|
-
label:
|
|
5147
|
-
description:
|
|
5388
|
+
var PluginAIInspirationPresetCategory = z78.object({
|
|
5389
|
+
id: z78.string(),
|
|
5390
|
+
label: z78.string(),
|
|
5391
|
+
description: z78.string().optional()
|
|
5148
5392
|
});
|
|
5149
|
-
var PluginAIInspirationGetPresetCatalogResult =
|
|
5150
|
-
categories:
|
|
5151
|
-
presets:
|
|
5393
|
+
var PluginAIInspirationGetPresetCatalogResult = z78.object({
|
|
5394
|
+
categories: z78.array(PluginAIInspirationPresetCategory),
|
|
5395
|
+
presets: z78.array(PluginAIInspirationPreset)
|
|
5152
5396
|
});
|
|
5153
|
-
var PluginAIInspirationOutput =
|
|
5154
|
-
outputType:
|
|
5155
|
-
shapeId:
|
|
5156
|
-
assetId:
|
|
5157
|
-
outputUrl:
|
|
5397
|
+
var PluginAIInspirationOutput = z78.object({
|
|
5398
|
+
outputType: z78.enum(["image", "video"]),
|
|
5399
|
+
shapeId: z78.string(),
|
|
5400
|
+
assetId: z78.string(),
|
|
5401
|
+
outputUrl: z78.string().optional(),
|
|
5158
5402
|
position: PluginAIInspirationPoint.optional()
|
|
5159
5403
|
});
|
|
5160
|
-
var PluginAIInspirationDebugSummary =
|
|
5161
|
-
var PluginAIInspirationRunMetadata =
|
|
5162
|
-
geometryFidelity:
|
|
5404
|
+
var PluginAIInspirationDebugSummary = z78.record(z78.string(), JsonValue);
|
|
5405
|
+
var PluginAIInspirationRunMetadata = z78.object({
|
|
5406
|
+
geometryFidelity: z78.string().optional(),
|
|
5163
5407
|
debugSummary: PluginAIInspirationDebugSummary.optional(),
|
|
5164
|
-
streetViewComposite:
|
|
5165
|
-
used:
|
|
5166
|
-
renderMode:
|
|
5167
|
-
backgroundLabel:
|
|
5408
|
+
streetViewComposite: z78.object({
|
|
5409
|
+
used: z78.boolean(),
|
|
5410
|
+
renderMode: z78.enum(["prompt_refs_default", "masked_composite_pilot"]),
|
|
5411
|
+
backgroundLabel: z78.string().optional()
|
|
5168
5412
|
}).optional()
|
|
5169
5413
|
});
|
|
5170
|
-
var PluginAIInspirationGenerateArgs =
|
|
5171
|
-
sourceShapeId:
|
|
5172
|
-
prompt:
|
|
5173
|
-
modelId:
|
|
5174
|
-
referenceShapeIds:
|
|
5175
|
-
referenceStrength:
|
|
5414
|
+
var PluginAIInspirationGenerateArgs = z78.object({
|
|
5415
|
+
sourceShapeId: z78.string().min(1),
|
|
5416
|
+
prompt: z78.string().min(1).max(8e3),
|
|
5417
|
+
modelId: z78.string().optional(),
|
|
5418
|
+
referenceShapeIds: z78.array(z78.string()).max(12).optional(),
|
|
5419
|
+
referenceStrength: z78.enum(["low", "medium", "high"]).optional(),
|
|
5176
5420
|
appliedPreset: PluginAIInspirationAppliedPreset.optional(),
|
|
5177
5421
|
site: PluginAIInspirationSiteOptions.optional(),
|
|
5178
5422
|
regionHint: PluginAIInspirationRegionHint.optional(),
|
|
@@ -5180,129 +5424,129 @@ var PluginAIInspirationGenerateArgs = z76.object({
|
|
|
5180
5424
|
video: PluginAIInspirationVideoOptions.optional(),
|
|
5181
5425
|
runMode: PluginAIInspirationRunMode.optional()
|
|
5182
5426
|
});
|
|
5183
|
-
var PluginAIInspirationRunResult =
|
|
5184
|
-
jobId:
|
|
5427
|
+
var PluginAIInspirationRunResult = z78.object({
|
|
5428
|
+
jobId: z78.string().optional(),
|
|
5185
5429
|
output: PluginAIInspirationOutput.optional(),
|
|
5186
|
-
outputs:
|
|
5430
|
+
outputs: z78.array(PluginAIInspirationOutput).optional(),
|
|
5187
5431
|
metadata: PluginAIInspirationRunMetadata.optional()
|
|
5188
5432
|
});
|
|
5189
|
-
var PluginAIInspirationRefineArgs =
|
|
5190
|
-
sourceShapeId:
|
|
5191
|
-
upscaleFactor:
|
|
5433
|
+
var PluginAIInspirationRefineArgs = z78.object({
|
|
5434
|
+
sourceShapeId: z78.string().min(1),
|
|
5435
|
+
upscaleFactor: z78.union([z78.literal(1.5), z78.literal(2), z78.literal(4)]).optional(),
|
|
5192
5436
|
runMode: PluginAIInspirationRunMode.optional()
|
|
5193
5437
|
});
|
|
5194
|
-
var PluginAIInspirationJobProgress =
|
|
5195
|
-
currentStep:
|
|
5196
|
-
totalSteps:
|
|
5197
|
-
message:
|
|
5438
|
+
var PluginAIInspirationJobProgress = z78.object({
|
|
5439
|
+
currentStep: z78.number().int().nonnegative().optional(),
|
|
5440
|
+
totalSteps: z78.number().int().nonnegative().optional(),
|
|
5441
|
+
message: z78.string().optional()
|
|
5198
5442
|
});
|
|
5199
|
-
var PluginAIInspirationJob =
|
|
5200
|
-
jobId:
|
|
5443
|
+
var PluginAIInspirationJob = z78.object({
|
|
5444
|
+
jobId: z78.string(),
|
|
5201
5445
|
status: PluginAIInspirationJobStatus,
|
|
5202
|
-
createdAt:
|
|
5203
|
-
updatedAt:
|
|
5204
|
-
completedAt:
|
|
5205
|
-
method:
|
|
5446
|
+
createdAt: z78.number(),
|
|
5447
|
+
updatedAt: z78.number(),
|
|
5448
|
+
completedAt: z78.number().optional(),
|
|
5449
|
+
method: z78.string(),
|
|
5206
5450
|
progress: PluginAIInspirationJobProgress.optional(),
|
|
5207
5451
|
result: PluginAIInspirationRunResult.optional(),
|
|
5208
|
-
error:
|
|
5452
|
+
error: z78.string().optional()
|
|
5209
5453
|
});
|
|
5210
|
-
var PluginAIInspirationJobArgs =
|
|
5211
|
-
jobId:
|
|
5454
|
+
var PluginAIInspirationJobArgs = z78.object({
|
|
5455
|
+
jobId: z78.string().min(1)
|
|
5212
5456
|
});
|
|
5213
|
-
var PluginAIInspirationGetJobResult =
|
|
5457
|
+
var PluginAIInspirationGetJobResult = z78.object({
|
|
5214
5458
|
job: PluginAIInspirationJob
|
|
5215
5459
|
});
|
|
5216
|
-
var PluginAIInspirationCancelJobResult =
|
|
5460
|
+
var PluginAIInspirationCancelJobResult = z78.object({
|
|
5217
5461
|
job: PluginAIInspirationJob
|
|
5218
5462
|
});
|
|
5219
|
-
var PluginAIInspirationListJobsResult =
|
|
5220
|
-
jobs:
|
|
5463
|
+
var PluginAIInspirationListJobsResult = z78.object({
|
|
5464
|
+
jobs: z78.array(PluginAIInspirationJob)
|
|
5221
5465
|
});
|
|
5222
|
-
var PluginAIInspirationWorkflowVideoConfig =
|
|
5223
|
-
mode:
|
|
5224
|
-
motion:
|
|
5225
|
-
duration:
|
|
5226
|
-
endFrameShapeId:
|
|
5466
|
+
var PluginAIInspirationWorkflowVideoConfig = z78.object({
|
|
5467
|
+
mode: z78.string().optional(),
|
|
5468
|
+
motion: z78.string().optional(),
|
|
5469
|
+
duration: z78.string().optional(),
|
|
5470
|
+
endFrameShapeId: z78.string().optional()
|
|
5227
5471
|
});
|
|
5228
|
-
var PluginAIInspirationGenerationInputSnapshot =
|
|
5229
|
-
version:
|
|
5230
|
-
meta:
|
|
5472
|
+
var PluginAIInspirationGenerationInputSnapshot = z78.object({
|
|
5473
|
+
version: z78.literal(1),
|
|
5474
|
+
meta: z78.record(z78.string(), JsonValue),
|
|
5231
5475
|
regionHint: PluginAIInspirationRegionHint.optional(),
|
|
5232
|
-
sketchGuidance:
|
|
5233
|
-
sourceCameraHeading:
|
|
5234
|
-
});
|
|
5235
|
-
var PluginAIInspirationWorkflowOperation =
|
|
5236
|
-
type:
|
|
5237
|
-
label:
|
|
5238
|
-
prompt:
|
|
5239
|
-
modelId:
|
|
5240
|
-
presetId:
|
|
5241
|
-
presetName:
|
|
5242
|
-
refineFactor:
|
|
5243
|
-
sourceRole:
|
|
5476
|
+
sketchGuidance: z78.record(z78.string(), JsonValue).optional(),
|
|
5477
|
+
sourceCameraHeading: z78.number().finite().optional()
|
|
5478
|
+
});
|
|
5479
|
+
var PluginAIInspirationWorkflowOperation = z78.object({
|
|
5480
|
+
type: z78.enum(["generate-image", "refine", "generate-video"]),
|
|
5481
|
+
label: z78.string(),
|
|
5482
|
+
prompt: z78.string().optional(),
|
|
5483
|
+
modelId: z78.string().optional(),
|
|
5484
|
+
presetId: z78.string().optional(),
|
|
5485
|
+
presetName: z78.string().optional(),
|
|
5486
|
+
refineFactor: z78.number().finite().optional(),
|
|
5487
|
+
sourceRole: z78.enum(["primary", "end-frame"]).optional(),
|
|
5244
5488
|
video: PluginAIInspirationWorkflowVideoConfig.optional(),
|
|
5245
5489
|
generationInput: PluginAIInspirationGenerationInputSnapshot.optional()
|
|
5246
5490
|
});
|
|
5247
|
-
var PluginAIInspirationWorkflowNode =
|
|
5248
|
-
id:
|
|
5249
|
-
shapeId:
|
|
5250
|
-
assetId:
|
|
5491
|
+
var PluginAIInspirationWorkflowNode = z78.object({
|
|
5492
|
+
id: z78.string(),
|
|
5493
|
+
shapeId: z78.string(),
|
|
5494
|
+
assetId: z78.string().optional(),
|
|
5251
5495
|
kind: PluginAIInspirationOutputKind,
|
|
5252
|
-
state:
|
|
5496
|
+
state: z78.string(),
|
|
5253
5497
|
runState: PluginAIInspirationWorkflowRunState.optional(),
|
|
5254
|
-
staleReason:
|
|
5255
|
-
incomingEdgeIds:
|
|
5256
|
-
outgoingEdgeIds:
|
|
5257
|
-
createdAt:
|
|
5258
|
-
updatedAt:
|
|
5259
|
-
});
|
|
5260
|
-
var PluginAIInspirationWorkflowEdge =
|
|
5261
|
-
id:
|
|
5262
|
-
sourceNodeId:
|
|
5263
|
-
targetNodeId:
|
|
5264
|
-
arrowShapeId:
|
|
5498
|
+
staleReason: z78.string().optional(),
|
|
5499
|
+
incomingEdgeIds: z78.array(z78.string()),
|
|
5500
|
+
outgoingEdgeIds: z78.array(z78.string()),
|
|
5501
|
+
createdAt: z78.number(),
|
|
5502
|
+
updatedAt: z78.number()
|
|
5503
|
+
});
|
|
5504
|
+
var PluginAIInspirationWorkflowEdge = z78.object({
|
|
5505
|
+
id: z78.string(),
|
|
5506
|
+
sourceNodeId: z78.string(),
|
|
5507
|
+
targetNodeId: z78.string(),
|
|
5508
|
+
arrowShapeId: z78.string().optional(),
|
|
5265
5509
|
operation: PluginAIInspirationWorkflowOperation,
|
|
5266
|
-
state:
|
|
5510
|
+
state: z78.string(),
|
|
5267
5511
|
runState: PluginAIInspirationWorkflowRunState.optional(),
|
|
5268
|
-
staleReason:
|
|
5269
|
-
supersededByEdgeId:
|
|
5270
|
-
createdAt:
|
|
5271
|
-
updatedAt:
|
|
5272
|
-
});
|
|
5273
|
-
var PluginAIInspirationWorkflow =
|
|
5274
|
-
id:
|
|
5275
|
-
rootNodeIds:
|
|
5276
|
-
nodeIds:
|
|
5277
|
-
edgeIds:
|
|
5278
|
-
nodes:
|
|
5279
|
-
edges:
|
|
5280
|
-
createdAt:
|
|
5281
|
-
updatedAt:
|
|
5282
|
-
});
|
|
5283
|
-
var PluginAIInspirationGetWorkflowForShapeArgs =
|
|
5284
|
-
shapeId:
|
|
5285
|
-
});
|
|
5286
|
-
var PluginAIInspirationGetWorkflowForShapeResult =
|
|
5512
|
+
staleReason: z78.string().optional(),
|
|
5513
|
+
supersededByEdgeId: z78.string().optional(),
|
|
5514
|
+
createdAt: z78.number(),
|
|
5515
|
+
updatedAt: z78.number()
|
|
5516
|
+
});
|
|
5517
|
+
var PluginAIInspirationWorkflow = z78.object({
|
|
5518
|
+
id: z78.string(),
|
|
5519
|
+
rootNodeIds: z78.array(z78.string()),
|
|
5520
|
+
nodeIds: z78.array(z78.string()),
|
|
5521
|
+
edgeIds: z78.array(z78.string()),
|
|
5522
|
+
nodes: z78.record(z78.string(), PluginAIInspirationWorkflowNode),
|
|
5523
|
+
edges: z78.record(z78.string(), PluginAIInspirationWorkflowEdge),
|
|
5524
|
+
createdAt: z78.number(),
|
|
5525
|
+
updatedAt: z78.number()
|
|
5526
|
+
});
|
|
5527
|
+
var PluginAIInspirationGetWorkflowForShapeArgs = z78.object({
|
|
5528
|
+
shapeId: z78.string().min(1)
|
|
5529
|
+
});
|
|
5530
|
+
var PluginAIInspirationGetWorkflowForShapeResult = z78.object({
|
|
5287
5531
|
workflow: PluginAIInspirationWorkflow.nullable(),
|
|
5288
5532
|
node: PluginAIInspirationWorkflowNode.nullable()
|
|
5289
5533
|
});
|
|
5290
|
-
var PluginAIInspirationRerunPlanResult =
|
|
5534
|
+
var PluginAIInspirationRerunPlanResult = z78.discriminatedUnion(
|
|
5291
5535
|
"status",
|
|
5292
5536
|
[
|
|
5293
|
-
|
|
5294
|
-
status:
|
|
5295
|
-
workflowId:
|
|
5537
|
+
z78.object({
|
|
5538
|
+
status: z78.literal("ready"),
|
|
5539
|
+
workflowId: z78.string(),
|
|
5296
5540
|
sourceNode: PluginAIInspirationWorkflowNode,
|
|
5297
|
-
edgeIds:
|
|
5298
|
-
edges:
|
|
5299
|
-
recipe:
|
|
5300
|
-
needsEndFrame:
|
|
5301
|
-
defaultEndFrameShapeId:
|
|
5541
|
+
edgeIds: z78.array(z78.string()),
|
|
5542
|
+
edges: z78.array(PluginAIInspirationWorkflowEdge),
|
|
5543
|
+
recipe: z78.lazy(() => PluginAIInspirationRecipe),
|
|
5544
|
+
needsEndFrame: z78.boolean(),
|
|
5545
|
+
defaultEndFrameShapeId: z78.string().nullable()
|
|
5302
5546
|
}),
|
|
5303
|
-
|
|
5304
|
-
status:
|
|
5305
|
-
reason:
|
|
5547
|
+
z78.object({
|
|
5548
|
+
status: z78.literal("unavailable"),
|
|
5549
|
+
reason: z78.enum([
|
|
5306
5550
|
"not-in-workflow",
|
|
5307
5551
|
"source-only",
|
|
5308
5552
|
"running",
|
|
@@ -5311,47 +5555,47 @@ var PluginAIInspirationRerunPlanResult = z76.discriminatedUnion(
|
|
|
5311
5555
|
})
|
|
5312
5556
|
]
|
|
5313
5557
|
);
|
|
5314
|
-
var PluginAIInspirationRerunSelectedBranchArgs =
|
|
5315
|
-
shapeId:
|
|
5316
|
-
endFrameShapeId:
|
|
5558
|
+
var PluginAIInspirationRerunSelectedBranchArgs = z78.object({
|
|
5559
|
+
shapeId: z78.string().min(1),
|
|
5560
|
+
endFrameShapeId: z78.string().optional(),
|
|
5317
5561
|
runMode: PluginAIInspirationRunMode.optional()
|
|
5318
5562
|
});
|
|
5319
|
-
var PluginAIInspirationRecipeSlot =
|
|
5320
|
-
id:
|
|
5321
|
-
type:
|
|
5322
|
-
label:
|
|
5323
|
-
required:
|
|
5563
|
+
var PluginAIInspirationRecipeSlot = z78.object({
|
|
5564
|
+
id: z78.string(),
|
|
5565
|
+
type: z78.enum(["source-image", "end-frame"]),
|
|
5566
|
+
label: z78.string(),
|
|
5567
|
+
required: z78.boolean()
|
|
5324
5568
|
});
|
|
5325
|
-
var PluginAIInspirationRecipeStep =
|
|
5326
|
-
id:
|
|
5569
|
+
var PluginAIInspirationRecipeStep = z78.object({
|
|
5570
|
+
id: z78.string(),
|
|
5327
5571
|
operation: PluginAIInspirationWorkflowOperation,
|
|
5328
|
-
outputKind:
|
|
5572
|
+
outputKind: z78.enum(["image", "video"])
|
|
5329
5573
|
});
|
|
5330
|
-
var PluginAIInspirationRecipeDraft =
|
|
5331
|
-
name:
|
|
5332
|
-
summary:
|
|
5333
|
-
slots:
|
|
5334
|
-
steps:
|
|
5335
|
-
outputKind:
|
|
5336
|
-
thumbnailUrl:
|
|
5574
|
+
var PluginAIInspirationRecipeDraft = z78.object({
|
|
5575
|
+
name: z78.string(),
|
|
5576
|
+
summary: z78.string(),
|
|
5577
|
+
slots: z78.array(PluginAIInspirationRecipeSlot),
|
|
5578
|
+
steps: z78.array(PluginAIInspirationRecipeStep).min(1).max(20),
|
|
5579
|
+
outputKind: z78.enum(["image", "video"]),
|
|
5580
|
+
thumbnailUrl: z78.string().optional()
|
|
5337
5581
|
});
|
|
5338
5582
|
var PluginAIInspirationRecipe = PluginAIInspirationRecipeDraft.extend({
|
|
5339
|
-
version:
|
|
5340
|
-
id:
|
|
5341
|
-
fingerprint:
|
|
5342
|
-
createdAt:
|
|
5343
|
-
updatedAt:
|
|
5583
|
+
version: z78.literal(1),
|
|
5584
|
+
id: z78.string(),
|
|
5585
|
+
fingerprint: z78.string().optional(),
|
|
5586
|
+
createdAt: z78.number(),
|
|
5587
|
+
updatedAt: z78.number()
|
|
5344
5588
|
});
|
|
5345
|
-
var PluginAIInspirationExtractionResult =
|
|
5589
|
+
var PluginAIInspirationExtractionResult = z78.discriminatedUnion(
|
|
5346
5590
|
"status",
|
|
5347
5591
|
[
|
|
5348
|
-
|
|
5349
|
-
status:
|
|
5592
|
+
z78.object({
|
|
5593
|
+
status: z78.literal("ready"),
|
|
5350
5594
|
draft: PluginAIInspirationRecipeDraft
|
|
5351
5595
|
}),
|
|
5352
|
-
|
|
5353
|
-
status:
|
|
5354
|
-
reason:
|
|
5596
|
+
z78.object({
|
|
5597
|
+
status: z78.literal("unavailable"),
|
|
5598
|
+
reason: z78.enum([
|
|
5355
5599
|
"not-in-workflow",
|
|
5356
5600
|
"source-only",
|
|
5357
5601
|
"missing-workflow",
|
|
@@ -5362,38 +5606,38 @@ var PluginAIInspirationExtractionResult = z76.discriminatedUnion(
|
|
|
5362
5606
|
})
|
|
5363
5607
|
]
|
|
5364
5608
|
);
|
|
5365
|
-
var PluginAIInspirationListRecipesResult =
|
|
5366
|
-
recipes:
|
|
5609
|
+
var PluginAIInspirationListRecipesResult = z78.object({
|
|
5610
|
+
recipes: z78.array(PluginAIInspirationRecipe)
|
|
5367
5611
|
});
|
|
5368
|
-
var PluginAIInspirationSaveRecipeArgs =
|
|
5612
|
+
var PluginAIInspirationSaveRecipeArgs = z78.object({
|
|
5369
5613
|
draft: PluginAIInspirationRecipeDraft,
|
|
5370
|
-
name:
|
|
5614
|
+
name: z78.string().min(1)
|
|
5371
5615
|
});
|
|
5372
|
-
var PluginAIInspirationSaveRecipeResult =
|
|
5616
|
+
var PluginAIInspirationSaveRecipeResult = z78.discriminatedUnion(
|
|
5373
5617
|
"status",
|
|
5374
5618
|
[
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
status:
|
|
5619
|
+
z78.object({ status: z78.literal("saved"), recipe: PluginAIInspirationRecipe }),
|
|
5620
|
+
z78.object({
|
|
5621
|
+
status: z78.literal("duplicate"),
|
|
5378
5622
|
recipe: PluginAIInspirationRecipe
|
|
5379
5623
|
}),
|
|
5380
|
-
|
|
5381
|
-
|
|
5624
|
+
z78.object({ status: z78.literal("invalid-name"), recipe: z78.null() }),
|
|
5625
|
+
z78.object({ status: z78.literal("failed"), recipe: z78.null() })
|
|
5382
5626
|
]
|
|
5383
5627
|
);
|
|
5384
|
-
var PluginAIInspirationDeleteRecipeArgs =
|
|
5385
|
-
recipeId:
|
|
5628
|
+
var PluginAIInspirationDeleteRecipeArgs = z78.object({
|
|
5629
|
+
recipeId: z78.string().min(1)
|
|
5386
5630
|
});
|
|
5387
|
-
var PluginAIInspirationDeleteRecipeResult =
|
|
5388
|
-
deleted:
|
|
5631
|
+
var PluginAIInspirationDeleteRecipeResult = z78.object({
|
|
5632
|
+
deleted: z78.boolean()
|
|
5389
5633
|
});
|
|
5390
|
-
var PluginAIInspirationExtractRecipeFromShapeArgs =
|
|
5391
|
-
shapeId:
|
|
5634
|
+
var PluginAIInspirationExtractRecipeFromShapeArgs = z78.object({
|
|
5635
|
+
shapeId: z78.string().min(1)
|
|
5392
5636
|
});
|
|
5393
|
-
var PluginAIInspirationRunRecipeArgs =
|
|
5394
|
-
recipeId:
|
|
5637
|
+
var PluginAIInspirationRunRecipeArgs = z78.object({
|
|
5638
|
+
recipeId: z78.string().optional(),
|
|
5395
5639
|
recipe: PluginAIInspirationRecipe.optional(),
|
|
5396
|
-
slotShapeIds:
|
|
5640
|
+
slotShapeIds: z78.record(z78.string(), z78.string()),
|
|
5397
5641
|
runMode: PluginAIInspirationRunMode.optional()
|
|
5398
5642
|
});
|
|
5399
5643
|
var PluginPresentationAIInspirationApi = class {
|
|
@@ -5402,26 +5646,26 @@ var PluginPresentationAIInspirationApi = class {
|
|
|
5402
5646
|
};
|
|
5403
5647
|
|
|
5404
5648
|
// src/api/presentation/export.ts
|
|
5405
|
-
var
|
|
5406
|
-
var PluginPresentationExportFormat =
|
|
5407
|
-
var PluginPresentationExportResolution =
|
|
5408
|
-
width:
|
|
5409
|
-
height:
|
|
5649
|
+
var z79 = __toESM(require("zod"), 1);
|
|
5650
|
+
var PluginPresentationExportFormat = z79.enum(["pdf", "png", "jpg"]);
|
|
5651
|
+
var PluginPresentationExportResolution = z79.object({
|
|
5652
|
+
width: z79.number().positive(),
|
|
5653
|
+
height: z79.number().positive()
|
|
5410
5654
|
});
|
|
5411
|
-
var PluginPresentationExportArgs =
|
|
5655
|
+
var PluginPresentationExportArgs = z79.object({
|
|
5412
5656
|
format: PluginPresentationExportFormat,
|
|
5413
|
-
sheetIds:
|
|
5414
|
-
combine:
|
|
5657
|
+
sheetIds: z79.array(z79.string()).optional(),
|
|
5658
|
+
combine: z79.boolean().optional(),
|
|
5415
5659
|
resolution: PluginPresentationExportResolution.optional(),
|
|
5416
|
-
fileName:
|
|
5660
|
+
fileName: z79.string().optional()
|
|
5417
5661
|
});
|
|
5418
|
-
var PluginPresentationExportFile =
|
|
5419
|
-
fileName:
|
|
5420
|
-
mimeType:
|
|
5421
|
-
dataBase64:
|
|
5662
|
+
var PluginPresentationExportFile = z79.object({
|
|
5663
|
+
fileName: z79.string(),
|
|
5664
|
+
mimeType: z79.string(),
|
|
5665
|
+
dataBase64: z79.string()
|
|
5422
5666
|
});
|
|
5423
|
-
var PluginPresentationExportResult =
|
|
5424
|
-
files:
|
|
5667
|
+
var PluginPresentationExportResult = z79.object({
|
|
5668
|
+
files: z79.array(PluginPresentationExportFile)
|
|
5425
5669
|
});
|
|
5426
5670
|
|
|
5427
5671
|
// src/api/presentation/index.ts
|
|
@@ -5437,38 +5681,38 @@ var PluginAnalysisSunpathApi = class {
|
|
|
5437
5681
|
};
|
|
5438
5682
|
|
|
5439
5683
|
// src/api/analysis/shadows.ts
|
|
5440
|
-
var
|
|
5684
|
+
var z80 = __toESM(require("zod"), 1);
|
|
5441
5685
|
var PluginAnalysisShadowsApi = class {
|
|
5442
5686
|
constructor() {
|
|
5443
5687
|
}
|
|
5444
5688
|
};
|
|
5445
|
-
var PluginAnalysisShadowsEnableOptions =
|
|
5446
|
-
dateTime:
|
|
5689
|
+
var PluginAnalysisShadowsEnableOptions = z80.object({
|
|
5690
|
+
dateTime: z80.string().optional()
|
|
5447
5691
|
});
|
|
5448
|
-
var PluginAnalysisShadowsSetDateTimeArgs =
|
|
5449
|
-
dateTime:
|
|
5692
|
+
var PluginAnalysisShadowsSetDateTimeArgs = z80.object({
|
|
5693
|
+
dateTime: z80.string()
|
|
5450
5694
|
});
|
|
5451
|
-
var PluginAnalysisShadowsDateTimeResult =
|
|
5695
|
+
var PluginAnalysisShadowsDateTimeResult = z80.string();
|
|
5452
5696
|
|
|
5453
5697
|
// src/api/analysis/sunlightHours.ts
|
|
5454
|
-
var
|
|
5698
|
+
var z81 = __toESM(require("zod"), 1);
|
|
5455
5699
|
var PluginAnalysisSunlightHoursApi = class {
|
|
5456
5700
|
constructor() {
|
|
5457
5701
|
}
|
|
5458
5702
|
};
|
|
5459
|
-
var PluginAnalysisComputeResult =
|
|
5460
|
-
success:
|
|
5461
|
-
error:
|
|
5703
|
+
var PluginAnalysisComputeResult = z81.object({
|
|
5704
|
+
success: z81.boolean(),
|
|
5705
|
+
error: z81.string().optional()
|
|
5462
5706
|
});
|
|
5463
|
-
var PluginAnalysisJobStatus =
|
|
5707
|
+
var PluginAnalysisJobStatus = z81.enum([
|
|
5464
5708
|
"running",
|
|
5465
5709
|
"active",
|
|
5466
5710
|
"inactive"
|
|
5467
5711
|
]);
|
|
5468
|
-
var PluginAnalysisJobState =
|
|
5712
|
+
var PluginAnalysisJobState = z81.object({
|
|
5469
5713
|
status: PluginAnalysisJobStatus,
|
|
5470
|
-
startDate:
|
|
5471
|
-
endDate:
|
|
5714
|
+
startDate: z81.string(),
|
|
5715
|
+
endDate: z81.string()
|
|
5472
5716
|
});
|
|
5473
5717
|
var PluginAnalysisJobStateResult = PluginAnalysisJobState.nullable();
|
|
5474
5718
|
|
|
@@ -5479,7 +5723,7 @@ var PluginAnalysisIlluminanceApi = class {
|
|
|
5479
5723
|
};
|
|
5480
5724
|
|
|
5481
5725
|
// src/api/analysis/heatmaps.ts
|
|
5482
|
-
var
|
|
5726
|
+
var z82 = __toESM(require("zod"), 1);
|
|
5483
5727
|
var PluginAnalysisHeatmapsApi = class {
|
|
5484
5728
|
constructor() {
|
|
5485
5729
|
}
|
|
@@ -5488,149 +5732,149 @@ var PluginAnalysisHeatmapOverlaysApi = class {
|
|
|
5488
5732
|
constructor() {
|
|
5489
5733
|
}
|
|
5490
5734
|
};
|
|
5491
|
-
var PluginAnalysisHeatmapSpaceEntry =
|
|
5735
|
+
var PluginAnalysisHeatmapSpaceEntry = z82.object({
|
|
5492
5736
|
space: ComponentHandle,
|
|
5493
|
-
value:
|
|
5737
|
+
value: z82.number().finite()
|
|
5494
5738
|
});
|
|
5495
|
-
var PluginAnalysisHeatmapGridCell =
|
|
5739
|
+
var PluginAnalysisHeatmapGridCell = z82.object({
|
|
5496
5740
|
position: Vec3Components,
|
|
5497
|
-
value:
|
|
5498
|
-
meta:
|
|
5499
|
-
});
|
|
5500
|
-
var HexColor =
|
|
5501
|
-
var PluginAnalysisHeatmapFieldCell =
|
|
5502
|
-
|
|
5503
|
-
polygon:
|
|
5504
|
-
value:
|
|
5505
|
-
meta:
|
|
5741
|
+
value: z82.number().finite(),
|
|
5742
|
+
meta: z82.unknown().optional()
|
|
5743
|
+
});
|
|
5744
|
+
var HexColor = z82.string().regex(/^#?[0-9a-fA-F]{6}$/, 'expected a 6-digit hex colour like "#0000ff"');
|
|
5745
|
+
var PluginAnalysisHeatmapFieldCell = z82.union([
|
|
5746
|
+
z82.object({
|
|
5747
|
+
polygon: z82.array(Vec3Components).min(3),
|
|
5748
|
+
value: z82.number().finite(),
|
|
5749
|
+
meta: z82.unknown().optional()
|
|
5506
5750
|
}),
|
|
5507
|
-
|
|
5508
|
-
vertices:
|
|
5509
|
-
indices:
|
|
5510
|
-
value:
|
|
5511
|
-
meta:
|
|
5751
|
+
z82.object({
|
|
5752
|
+
vertices: z82.array(Vec3Components).min(3),
|
|
5753
|
+
indices: z82.array(z82.number().int().nonnegative()).min(3),
|
|
5754
|
+
value: z82.number().finite(),
|
|
5755
|
+
meta: z82.unknown().optional()
|
|
5512
5756
|
})
|
|
5513
5757
|
]);
|
|
5514
|
-
var PluginAnalysisHeatmapScale =
|
|
5515
|
-
|
|
5516
|
-
type:
|
|
5517
|
-
count:
|
|
5758
|
+
var PluginAnalysisHeatmapScale = z82.discriminatedUnion("type", [
|
|
5759
|
+
z82.object({
|
|
5760
|
+
type: z82.literal("bands"),
|
|
5761
|
+
count: z82.number().int().min(2).max(64).optional()
|
|
5518
5762
|
}),
|
|
5519
|
-
|
|
5520
|
-
type:
|
|
5521
|
-
threshold:
|
|
5763
|
+
z82.object({
|
|
5764
|
+
type: z82.literal("threshold"),
|
|
5765
|
+
threshold: z82.number().finite(),
|
|
5522
5766
|
passColor: HexColor.optional(),
|
|
5523
5767
|
failColor: HexColor.optional(),
|
|
5524
|
-
passLabel:
|
|
5525
|
-
failLabel:
|
|
5768
|
+
passLabel: z82.string().optional(),
|
|
5769
|
+
failLabel: z82.string().optional()
|
|
5526
5770
|
}),
|
|
5527
|
-
|
|
5528
|
-
type:
|
|
5529
|
-
classes:
|
|
5530
|
-
|
|
5531
|
-
value:
|
|
5532
|
-
label:
|
|
5771
|
+
z82.object({
|
|
5772
|
+
type: z82.literal("categorical"),
|
|
5773
|
+
classes: z82.array(
|
|
5774
|
+
z82.object({
|
|
5775
|
+
value: z82.number().finite(),
|
|
5776
|
+
label: z82.string(),
|
|
5533
5777
|
color: HexColor
|
|
5534
5778
|
})
|
|
5535
5779
|
).min(1)
|
|
5536
5780
|
})
|
|
5537
5781
|
]);
|
|
5538
|
-
var PluginAnalysisHeatmapOptions =
|
|
5539
|
-
name:
|
|
5540
|
-
title:
|
|
5541
|
-
unit:
|
|
5542
|
-
min:
|
|
5543
|
-
max:
|
|
5544
|
-
colors:
|
|
5782
|
+
var PluginAnalysisHeatmapOptions = z82.object({
|
|
5783
|
+
name: z82.string().min(1).max(64).optional(),
|
|
5784
|
+
title: z82.string().optional(),
|
|
5785
|
+
unit: z82.string().optional(),
|
|
5786
|
+
min: z82.number().finite().optional(),
|
|
5787
|
+
max: z82.number().finite().optional(),
|
|
5788
|
+
colors: z82.array(HexColor).min(1).optional(),
|
|
5545
5789
|
scale: PluginAnalysisHeatmapScale.optional(),
|
|
5546
|
-
hover:
|
|
5790
|
+
hover: z82.boolean().optional()
|
|
5547
5791
|
});
|
|
5548
|
-
var PluginAnalysisHeatmapsRenderResult =
|
|
5549
|
-
success:
|
|
5792
|
+
var PluginAnalysisHeatmapsRenderResult = z82.object({
|
|
5793
|
+
success: z82.literal(true)
|
|
5550
5794
|
});
|
|
5551
|
-
var PluginAnalysisHeatmapOverlayInfo =
|
|
5552
|
-
name:
|
|
5553
|
-
visible:
|
|
5554
|
-
kind:
|
|
5795
|
+
var PluginAnalysisHeatmapOverlayInfo = z82.object({
|
|
5796
|
+
name: z82.string(),
|
|
5797
|
+
visible: z82.boolean(),
|
|
5798
|
+
kind: z82.enum(["spaces", "grid", "surfaceGrid", "field"])
|
|
5555
5799
|
});
|
|
5556
|
-
var PluginAnalysisHeatmapOverlaysListResult =
|
|
5557
|
-
overlays:
|
|
5800
|
+
var PluginAnalysisHeatmapOverlaysListResult = z82.object({
|
|
5801
|
+
overlays: z82.array(PluginAnalysisHeatmapOverlayInfo)
|
|
5558
5802
|
});
|
|
5559
5803
|
|
|
5560
5804
|
// src/api/analysis/weather.ts
|
|
5561
|
-
var
|
|
5805
|
+
var z83 = __toESM(require("zod"), 1);
|
|
5562
5806
|
var PluginAnalysisWeatherApi = class {
|
|
5563
5807
|
constructor() {
|
|
5564
5808
|
}
|
|
5565
5809
|
};
|
|
5566
|
-
var PluginWeatherSelectionMethod =
|
|
5810
|
+
var PluginWeatherSelectionMethod = z83.enum([
|
|
5567
5811
|
"nearest-station",
|
|
5568
5812
|
"user-upload",
|
|
5569
5813
|
"project-override"
|
|
5570
5814
|
]);
|
|
5571
|
-
var PluginWeatherSourceMeta =
|
|
5572
|
-
weatherFileId:
|
|
5573
|
-
station:
|
|
5574
|
-
sourceId:
|
|
5575
|
-
distanceKm:
|
|
5815
|
+
var PluginWeatherSourceMeta = z83.object({
|
|
5816
|
+
weatherFileId: z83.string(),
|
|
5817
|
+
station: z83.string(),
|
|
5818
|
+
sourceId: z83.string(),
|
|
5819
|
+
distanceKm: z83.number().nullable(),
|
|
5576
5820
|
selectionMethod: PluginWeatherSelectionMethod,
|
|
5577
|
-
checksum:
|
|
5578
|
-
windReferenceHeightM:
|
|
5579
|
-
});
|
|
5580
|
-
var PluginWeatherRow =
|
|
5581
|
-
timestamp:
|
|
5582
|
-
utcOffsetMinutes:
|
|
5583
|
-
dryBulbC:
|
|
5584
|
-
relativeHumidityPercent:
|
|
5585
|
-
windSpeedMps:
|
|
5586
|
-
ghiWm2:
|
|
5587
|
-
dniWm2:
|
|
5588
|
-
dhiWm2:
|
|
5589
|
-
flags:
|
|
5590
|
-
});
|
|
5591
|
-
var PluginWeatherGetSeriesArgs =
|
|
5592
|
-
startDate:
|
|
5593
|
-
endDate:
|
|
5594
|
-
interval:
|
|
5595
|
-
cursor:
|
|
5821
|
+
checksum: z83.string(),
|
|
5822
|
+
windReferenceHeightM: z83.number()
|
|
5823
|
+
});
|
|
5824
|
+
var PluginWeatherRow = z83.object({
|
|
5825
|
+
timestamp: z83.string(),
|
|
5826
|
+
utcOffsetMinutes: z83.number(),
|
|
5827
|
+
dryBulbC: z83.number(),
|
|
5828
|
+
relativeHumidityPercent: z83.number(),
|
|
5829
|
+
windSpeedMps: z83.number(),
|
|
5830
|
+
ghiWm2: z83.number(),
|
|
5831
|
+
dniWm2: z83.number(),
|
|
5832
|
+
dhiWm2: z83.number(),
|
|
5833
|
+
flags: z83.array(z83.string())
|
|
5834
|
+
});
|
|
5835
|
+
var PluginWeatherGetSeriesArgs = z83.object({
|
|
5836
|
+
startDate: z83.string(),
|
|
5837
|
+
endDate: z83.string(),
|
|
5838
|
+
interval: z83.enum(["hourly"]).optional(),
|
|
5839
|
+
cursor: z83.string().optional()
|
|
5596
5840
|
});
|
|
5597
|
-
var PluginWeatherSeriesResult =
|
|
5841
|
+
var PluginWeatherSeriesResult = z83.object({
|
|
5598
5842
|
source: PluginWeatherSourceMeta,
|
|
5599
|
-
rows:
|
|
5600
|
-
nextCursor:
|
|
5601
|
-
warnings:
|
|
5843
|
+
rows: z83.array(PluginWeatherRow),
|
|
5844
|
+
nextCursor: z83.string().nullable(),
|
|
5845
|
+
warnings: z83.array(z83.string()).optional()
|
|
5602
5846
|
});
|
|
5603
5847
|
|
|
5604
5848
|
// src/api/analysis/solar.ts
|
|
5605
|
-
var
|
|
5849
|
+
var z84 = __toESM(require("zod"), 1);
|
|
5606
5850
|
var PluginAnalysisSolarApi = class {
|
|
5607
5851
|
constructor() {
|
|
5608
5852
|
}
|
|
5609
5853
|
};
|
|
5610
|
-
var PluginSolarRunStatus =
|
|
5854
|
+
var PluginSolarRunStatus = z84.enum([
|
|
5611
5855
|
"running",
|
|
5612
5856
|
"complete",
|
|
5613
5857
|
"cancelled",
|
|
5614
5858
|
"failed"
|
|
5615
5859
|
]);
|
|
5616
|
-
var PluginSolarSampleMode =
|
|
5617
|
-
var PluginSolarUnits =
|
|
5618
|
-
var PluginSolarHourlyArtifact =
|
|
5619
|
-
url:
|
|
5620
|
-
format:
|
|
5621
|
-
expiresAt:
|
|
5622
|
-
});
|
|
5623
|
-
var PluginSolarSamplePoint =
|
|
5624
|
-
id:
|
|
5625
|
-
position:
|
|
5626
|
-
normal:
|
|
5627
|
-
});
|
|
5628
|
-
var PluginSolarSampleGridArgs =
|
|
5629
|
-
points:
|
|
5630
|
-
dateTime:
|
|
5631
|
-
startDate:
|
|
5632
|
-
endDate:
|
|
5633
|
-
includeHourlyArtifact:
|
|
5860
|
+
var PluginSolarSampleMode = z84.enum(["instant", "range"]);
|
|
5861
|
+
var PluginSolarUnits = z84.enum(["W/m2", "kWh/m2"]);
|
|
5862
|
+
var PluginSolarHourlyArtifact = z84.object({
|
|
5863
|
+
url: z84.string(),
|
|
5864
|
+
format: z84.enum(["parquet", "csv-gz"]),
|
|
5865
|
+
expiresAt: z84.string()
|
|
5866
|
+
});
|
|
5867
|
+
var PluginSolarSamplePoint = z84.object({
|
|
5868
|
+
id: z84.string(),
|
|
5869
|
+
position: z84.tuple([z84.number(), z84.number(), z84.number()]),
|
|
5870
|
+
normal: z84.tuple([z84.number(), z84.number(), z84.number()]).optional()
|
|
5871
|
+
});
|
|
5872
|
+
var PluginSolarSampleGridArgs = z84.object({
|
|
5873
|
+
points: z84.array(PluginSolarSamplePoint),
|
|
5874
|
+
dateTime: z84.string().optional(),
|
|
5875
|
+
startDate: z84.string().optional(),
|
|
5876
|
+
endDate: z84.string().optional(),
|
|
5877
|
+
includeHourlyArtifact: z84.boolean().optional()
|
|
5634
5878
|
}).superRefine((a, ctx) => {
|
|
5635
5879
|
const hasInstant = a.dateTime !== void 0;
|
|
5636
5880
|
const hasStart = a.startDate !== void 0;
|
|
@@ -5638,73 +5882,73 @@ var PluginSolarSampleGridArgs = z82.object({
|
|
|
5638
5882
|
const hasRange = hasStart || hasEnd;
|
|
5639
5883
|
if (hasInstant === hasRange) {
|
|
5640
5884
|
ctx.addIssue({
|
|
5641
|
-
code:
|
|
5885
|
+
code: z84.ZodIssueCode.custom,
|
|
5642
5886
|
message: "provide exactly one timing mode: dateTime (instant), or startDate+endDate (range)"
|
|
5643
5887
|
});
|
|
5644
5888
|
}
|
|
5645
5889
|
if (hasRange && !(hasStart && hasEnd)) {
|
|
5646
5890
|
ctx.addIssue({
|
|
5647
|
-
code:
|
|
5891
|
+
code: z84.ZodIssueCode.custom,
|
|
5648
5892
|
message: "range mode requires both startDate and endDate"
|
|
5649
5893
|
});
|
|
5650
5894
|
}
|
|
5651
5895
|
});
|
|
5652
|
-
var PluginSolarSampleResult =
|
|
5653
|
-
id:
|
|
5654
|
-
directSunVisible:
|
|
5655
|
-
shadeFraction:
|
|
5656
|
-
directIrradiance:
|
|
5657
|
-
diffuseIrradiance:
|
|
5658
|
-
totalIrradiance:
|
|
5896
|
+
var PluginSolarSampleResult = z84.object({
|
|
5897
|
+
id: z84.string(),
|
|
5898
|
+
directSunVisible: z84.boolean(),
|
|
5899
|
+
shadeFraction: z84.number(),
|
|
5900
|
+
directIrradiance: z84.number().optional(),
|
|
5901
|
+
diffuseIrradiance: z84.number().optional(),
|
|
5902
|
+
totalIrradiance: z84.number().optional()
|
|
5659
5903
|
});
|
|
5660
|
-
var PluginSolarSampleGridResult =
|
|
5904
|
+
var PluginSolarSampleGridResult = z84.object({
|
|
5661
5905
|
status: PluginSolarRunStatus,
|
|
5662
5906
|
mode: PluginSolarSampleMode,
|
|
5663
|
-
coordinateSystem:
|
|
5664
|
-
modelRevision:
|
|
5665
|
-
inputHash:
|
|
5907
|
+
coordinateSystem: z84.literal("world-plan-space"),
|
|
5908
|
+
modelRevision: z84.string(),
|
|
5909
|
+
inputHash: z84.string(),
|
|
5666
5910
|
units: PluginSolarUnits,
|
|
5667
|
-
sunUpHours:
|
|
5911
|
+
sunUpHours: z84.number(),
|
|
5668
5912
|
weather: PluginWeatherSourceMeta.nullable(),
|
|
5669
|
-
weatherQuality:
|
|
5670
|
-
results:
|
|
5913
|
+
weatherQuality: z84.array(z84.string()),
|
|
5914
|
+
results: z84.array(PluginSolarSampleResult),
|
|
5671
5915
|
hourlyArtifact: PluginSolarHourlyArtifact.nullable(),
|
|
5672
|
-
nextCursor:
|
|
5916
|
+
nextCursor: z84.string().nullable()
|
|
5673
5917
|
});
|
|
5674
5918
|
|
|
5675
5919
|
// src/api/analysis/daylight.ts
|
|
5676
|
-
var
|
|
5920
|
+
var z85 = __toESM(require("zod"), 1);
|
|
5677
5921
|
var PluginAnalysisDaylightApi = class {
|
|
5678
5922
|
constructor() {
|
|
5679
5923
|
}
|
|
5680
5924
|
};
|
|
5681
|
-
var PluginDaylightMetric =
|
|
5682
|
-
var PluginDaylightRunStatus =
|
|
5925
|
+
var PluginDaylightMetric = z85.enum(["ASE", "sDA"]);
|
|
5926
|
+
var PluginDaylightRunStatus = z85.enum([
|
|
5683
5927
|
"running",
|
|
5684
5928
|
"complete",
|
|
5685
5929
|
"cancelled",
|
|
5686
5930
|
"failed"
|
|
5687
5931
|
]);
|
|
5688
|
-
var PluginDaylightGrid =
|
|
5689
|
-
spacingM:
|
|
5690
|
-
workplaneHeightM:
|
|
5691
|
-
boundaryOffsetM:
|
|
5932
|
+
var PluginDaylightGrid = z85.object({
|
|
5933
|
+
spacingM: z85.number(),
|
|
5934
|
+
workplaneHeightM: z85.number(),
|
|
5935
|
+
boundaryOffsetM: z85.number()
|
|
5692
5936
|
});
|
|
5693
|
-
var PluginDaylightSchedule =
|
|
5694
|
-
startHour:
|
|
5695
|
-
endHour:
|
|
5937
|
+
var PluginDaylightSchedule = z85.object({
|
|
5938
|
+
startHour: z85.number(),
|
|
5939
|
+
endHour: z85.number()
|
|
5696
5940
|
});
|
|
5697
|
-
var PluginDaylightOpaqueOptics =
|
|
5698
|
-
reflectance:
|
|
5941
|
+
var PluginDaylightOpaqueOptics = z85.object({
|
|
5942
|
+
reflectance: z85.number().min(0).max(1)
|
|
5699
5943
|
});
|
|
5700
|
-
var PluginDaylightGlazingOptics =
|
|
5701
|
-
transmittance:
|
|
5944
|
+
var PluginDaylightGlazingOptics = z85.object({
|
|
5945
|
+
transmittance: z85.number().min(0).max(1)
|
|
5702
5946
|
});
|
|
5703
|
-
var PluginDaylightMaterialOptics =
|
|
5947
|
+
var PluginDaylightMaterialOptics = z85.union([
|
|
5704
5948
|
PluginDaylightOpaqueOptics,
|
|
5705
5949
|
PluginDaylightGlazingOptics
|
|
5706
5950
|
]);
|
|
5707
|
-
var PluginDaylightCategoryDefaults =
|
|
5951
|
+
var PluginDaylightCategoryDefaults = z85.object({
|
|
5708
5952
|
wall: PluginDaylightOpaqueOptics.optional(),
|
|
5709
5953
|
ceiling: PluginDaylightOpaqueOptics.optional(),
|
|
5710
5954
|
floor: PluginDaylightOpaqueOptics.optional(),
|
|
@@ -5712,81 +5956,81 @@ var PluginDaylightCategoryDefaults = z83.object({
|
|
|
5712
5956
|
glazing: PluginDaylightGlazingOptics.optional(),
|
|
5713
5957
|
context: PluginDaylightOpaqueOptics.optional()
|
|
5714
5958
|
});
|
|
5715
|
-
var PluginDaylightBlindsOptics =
|
|
5716
|
-
transmittance:
|
|
5959
|
+
var PluginDaylightBlindsOptics = z85.object({
|
|
5960
|
+
transmittance: z85.number().min(0).max(1)
|
|
5717
5961
|
});
|
|
5718
|
-
var PluginDaylightOptics =
|
|
5719
|
-
materials:
|
|
5962
|
+
var PluginDaylightOptics = z85.object({
|
|
5963
|
+
materials: z85.record(z85.string(), PluginDaylightMaterialOptics).optional(),
|
|
5720
5964
|
categories: PluginDaylightCategoryDefaults.optional(),
|
|
5721
5965
|
blinds: PluginDaylightBlindsOptics.optional()
|
|
5722
5966
|
});
|
|
5723
|
-
var PluginDaylightComputeArgs =
|
|
5724
|
-
standard:
|
|
5725
|
-
metrics:
|
|
5967
|
+
var PluginDaylightComputeArgs = z85.object({
|
|
5968
|
+
standard: z85.literal("IES-LM-83-23"),
|
|
5969
|
+
metrics: z85.array(PluginDaylightMetric).min(1),
|
|
5726
5970
|
schedule: PluginDaylightSchedule.optional(),
|
|
5727
5971
|
grid: PluginDaylightGrid,
|
|
5728
5972
|
optics: PluginDaylightOptics.optional()
|
|
5729
5973
|
});
|
|
5730
|
-
var PluginDaylightPollArgs =
|
|
5731
|
-
runId:
|
|
5732
|
-
cursor:
|
|
5733
|
-
});
|
|
5734
|
-
var PluginDaylightSensorRecord =
|
|
5735
|
-
sensorId:
|
|
5736
|
-
position:
|
|
5737
|
-
spaceId:
|
|
5738
|
-
storeyId:
|
|
5739
|
-
areaWeightM2:
|
|
5740
|
-
occupiedHours:
|
|
5741
|
-
directSunHoursAtOrAbove1000Lux:
|
|
5742
|
-
aseFail:
|
|
5743
|
-
da300Percent:
|
|
5744
|
-
sdaPass:
|
|
5745
|
-
});
|
|
5746
|
-
var PluginDaylightAggregateScope =
|
|
5974
|
+
var PluginDaylightPollArgs = z85.object({
|
|
5975
|
+
runId: z85.string(),
|
|
5976
|
+
cursor: z85.string().optional()
|
|
5977
|
+
});
|
|
5978
|
+
var PluginDaylightSensorRecord = z85.object({
|
|
5979
|
+
sensorId: z85.string(),
|
|
5980
|
+
position: z85.tuple([z85.number(), z85.number(), z85.number()]),
|
|
5981
|
+
spaceId: z85.string(),
|
|
5982
|
+
storeyId: z85.string(),
|
|
5983
|
+
areaWeightM2: z85.number(),
|
|
5984
|
+
occupiedHours: z85.number(),
|
|
5985
|
+
directSunHoursAtOrAbove1000Lux: z85.number().optional(),
|
|
5986
|
+
aseFail: z85.boolean().optional(),
|
|
5987
|
+
da300Percent: z85.number().optional(),
|
|
5988
|
+
sdaPass: z85.boolean().optional()
|
|
5989
|
+
});
|
|
5990
|
+
var PluginDaylightAggregateScope = z85.enum([
|
|
5747
5991
|
"project",
|
|
5748
5992
|
"storey",
|
|
5749
5993
|
"space"
|
|
5750
5994
|
]);
|
|
5751
|
-
var PluginDaylightAggregate =
|
|
5995
|
+
var PluginDaylightAggregate = z85.object({
|
|
5752
5996
|
scope: PluginDaylightAggregateScope,
|
|
5753
|
-
id:
|
|
5754
|
-
analysisAreaM2:
|
|
5755
|
-
asePercent:
|
|
5756
|
-
sdaPercent:
|
|
5757
|
-
});
|
|
5758
|
-
var PluginDaylightProvenance =
|
|
5759
|
-
engine:
|
|
5760
|
-
engineVersion:
|
|
5761
|
-
standardProfile:
|
|
5762
|
-
thresholds:
|
|
5997
|
+
id: z85.string().nullable(),
|
|
5998
|
+
analysisAreaM2: z85.number(),
|
|
5999
|
+
asePercent: z85.number().optional(),
|
|
6000
|
+
sdaPercent: z85.number().optional()
|
|
6001
|
+
});
|
|
6002
|
+
var PluginDaylightProvenance = z85.object({
|
|
6003
|
+
engine: z85.string(),
|
|
6004
|
+
engineVersion: z85.string(),
|
|
6005
|
+
standardProfile: z85.string(),
|
|
6006
|
+
thresholds: z85.object({ aseLux: z85.number(), aseHours: z85.number() }).passthrough(),
|
|
5763
6007
|
weather: PluginWeatherSourceMeta.nullable(),
|
|
5764
|
-
occupancySchedule:
|
|
6008
|
+
occupancySchedule: z85.object({ id: z85.string(), hoursPerYear: z85.number() }).passthrough(),
|
|
5765
6009
|
grid: PluginDaylightGrid,
|
|
5766
|
-
location:
|
|
5767
|
-
latitude:
|
|
5768
|
-
longitude:
|
|
5769
|
-
timezone:
|
|
5770
|
-
trueNorthDeg:
|
|
6010
|
+
location: z85.object({
|
|
6011
|
+
latitude: z85.number(),
|
|
6012
|
+
longitude: z85.number(),
|
|
6013
|
+
timezone: z85.string(),
|
|
6014
|
+
trueNorthDeg: z85.number()
|
|
5771
6015
|
}).passthrough(),
|
|
5772
|
-
surfaceReflectances:
|
|
5773
|
-
modelRevision:
|
|
5774
|
-
inputHash:
|
|
5775
|
-
warnings:
|
|
5776
|
-
excludedSpaces:
|
|
5777
|
-
|
|
6016
|
+
surfaceReflectances: z85.record(z85.string(), z85.number()),
|
|
6017
|
+
modelRevision: z85.string(),
|
|
6018
|
+
inputHash: z85.string(),
|
|
6019
|
+
warnings: z85.array(z85.string()),
|
|
6020
|
+
excludedSpaces: z85.array(
|
|
6021
|
+
z85.object({ spaceId: z85.string(), reason: z85.string() })
|
|
5778
6022
|
),
|
|
5779
|
-
failedGeometry:
|
|
5780
|
-
|
|
6023
|
+
failedGeometry: z85.array(
|
|
6024
|
+
z85.object({ componentId: z85.string(), reason: z85.string() })
|
|
5781
6025
|
)
|
|
5782
6026
|
}).partial().passthrough();
|
|
5783
|
-
var PluginDaylightResults =
|
|
6027
|
+
var PluginDaylightResults = z85.object({
|
|
5784
6028
|
status: PluginDaylightRunStatus,
|
|
5785
|
-
runId:
|
|
5786
|
-
sensors:
|
|
5787
|
-
aggregates:
|
|
6029
|
+
runId: z85.string().optional(),
|
|
6030
|
+
sensors: z85.array(PluginDaylightSensorRecord),
|
|
6031
|
+
aggregates: z85.array(PluginDaylightAggregate),
|
|
5788
6032
|
provenance: PluginDaylightProvenance,
|
|
5789
|
-
nextCursor:
|
|
6033
|
+
nextCursor: z85.string().nullable()
|
|
5790
6034
|
});
|
|
5791
6035
|
|
|
5792
6036
|
// src/api/analysis/index.ts
|
|
@@ -5796,7 +6040,7 @@ var PluginAnalysisApi = class {
|
|
|
5796
6040
|
};
|
|
5797
6041
|
|
|
5798
6042
|
// src/api/workspace/index.ts
|
|
5799
|
-
var
|
|
6043
|
+
var z86 = __toESM(require("zod"), 1);
|
|
5800
6044
|
var PluginWorkspaceApi = class {
|
|
5801
6045
|
constructor() {
|
|
5802
6046
|
}
|
|
@@ -5809,68 +6053,68 @@ var PluginWorkspaceTeamsApi = class {
|
|
|
5809
6053
|
constructor() {
|
|
5810
6054
|
}
|
|
5811
6055
|
};
|
|
5812
|
-
var PluginProjectRef =
|
|
5813
|
-
id:
|
|
5814
|
-
name:
|
|
5815
|
-
teamId:
|
|
5816
|
-
createdAt:
|
|
5817
|
-
modifiedAt:
|
|
6056
|
+
var PluginProjectRef = z86.object({
|
|
6057
|
+
id: z86.string(),
|
|
6058
|
+
name: z86.string(),
|
|
6059
|
+
teamId: z86.string().optional(),
|
|
6060
|
+
createdAt: z86.string().optional(),
|
|
6061
|
+
modifiedAt: z86.string().optional()
|
|
5818
6062
|
});
|
|
5819
|
-
var PluginTeamRef =
|
|
5820
|
-
id:
|
|
5821
|
-
name:
|
|
5822
|
-
role:
|
|
6063
|
+
var PluginTeamRef = z86.object({
|
|
6064
|
+
id: z86.string(),
|
|
6065
|
+
name: z86.string(),
|
|
6066
|
+
role: z86.string().optional()
|
|
5823
6067
|
});
|
|
5824
|
-
var PluginTeamMemberRef =
|
|
5825
|
-
id:
|
|
5826
|
-
name:
|
|
5827
|
-
email:
|
|
5828
|
-
role:
|
|
6068
|
+
var PluginTeamMemberRef = z86.object({
|
|
6069
|
+
id: z86.string(),
|
|
6070
|
+
name: z86.string(),
|
|
6071
|
+
email: z86.string().optional(),
|
|
6072
|
+
role: z86.string().optional()
|
|
5829
6073
|
});
|
|
5830
|
-
var PluginWorkspaceProjectsCreateArgs =
|
|
5831
|
-
name:
|
|
5832
|
-
unit:
|
|
5833
|
-
teamId:
|
|
6074
|
+
var PluginWorkspaceProjectsCreateArgs = z86.object({
|
|
6075
|
+
name: z86.string(),
|
|
6076
|
+
unit: z86.string().optional(),
|
|
6077
|
+
teamId: z86.string().optional()
|
|
5834
6078
|
});
|
|
5835
|
-
var PluginWorkspaceProjectsCreateResult =
|
|
5836
|
-
projectId:
|
|
6079
|
+
var PluginWorkspaceProjectsCreateResult = z86.object({
|
|
6080
|
+
projectId: z86.string()
|
|
5837
6081
|
});
|
|
5838
|
-
var PluginWorkspaceProjectsCopyArgs =
|
|
5839
|
-
name:
|
|
5840
|
-
teamId:
|
|
6082
|
+
var PluginWorkspaceProjectsCopyArgs = z86.object({
|
|
6083
|
+
name: z86.string(),
|
|
6084
|
+
teamId: z86.string().optional()
|
|
5841
6085
|
});
|
|
5842
|
-
var PluginWorkspaceProjectsCopyResult =
|
|
5843
|
-
projectId:
|
|
6086
|
+
var PluginWorkspaceProjectsCopyResult = z86.object({
|
|
6087
|
+
projectId: z86.string()
|
|
5844
6088
|
});
|
|
5845
|
-
var PluginWorkspaceProjectsListArgs =
|
|
5846
|
-
teamId:
|
|
6089
|
+
var PluginWorkspaceProjectsListArgs = z86.object({
|
|
6090
|
+
teamId: z86.string().optional()
|
|
5847
6091
|
});
|
|
5848
|
-
var PluginWorkspaceProjectsListResult =
|
|
5849
|
-
projects:
|
|
6092
|
+
var PluginWorkspaceProjectsListResult = z86.object({
|
|
6093
|
+
projects: z86.array(PluginProjectRef)
|
|
5850
6094
|
});
|
|
5851
|
-
var PluginWorkspaceProjectsGetArgs =
|
|
5852
|
-
projectId:
|
|
6095
|
+
var PluginWorkspaceProjectsGetArgs = z86.object({
|
|
6096
|
+
projectId: z86.string()
|
|
5853
6097
|
});
|
|
5854
6098
|
var PluginWorkspaceProjectsGetResult = PluginProjectRef.nullable();
|
|
5855
|
-
var PluginWorkspaceProjectsRenameArgs =
|
|
5856
|
-
projectId:
|
|
5857
|
-
name:
|
|
6099
|
+
var PluginWorkspaceProjectsRenameArgs = z86.object({
|
|
6100
|
+
projectId: z86.string(),
|
|
6101
|
+
name: z86.string()
|
|
5858
6102
|
});
|
|
5859
|
-
var PluginWorkspaceProjectsRenameResult =
|
|
5860
|
-
projectId:
|
|
6103
|
+
var PluginWorkspaceProjectsRenameResult = z86.object({
|
|
6104
|
+
projectId: z86.string()
|
|
5861
6105
|
});
|
|
5862
|
-
var PluginWorkspaceTeamsListResult =
|
|
5863
|
-
teams:
|
|
6106
|
+
var PluginWorkspaceTeamsListResult = z86.object({
|
|
6107
|
+
teams: z86.array(PluginTeamRef)
|
|
5864
6108
|
});
|
|
5865
|
-
var PluginWorkspaceTeamsGetArgs =
|
|
5866
|
-
teamId:
|
|
6109
|
+
var PluginWorkspaceTeamsGetArgs = z86.object({
|
|
6110
|
+
teamId: z86.string()
|
|
5867
6111
|
});
|
|
5868
6112
|
var PluginWorkspaceTeamsGetResult = PluginTeamRef.nullable();
|
|
5869
|
-
var PluginWorkspaceTeamsListMembersArgs =
|
|
5870
|
-
teamId:
|
|
6113
|
+
var PluginWorkspaceTeamsListMembersArgs = z86.object({
|
|
6114
|
+
teamId: z86.string()
|
|
5871
6115
|
});
|
|
5872
|
-
var PluginWorkspaceTeamsListMembersResult =
|
|
5873
|
-
members:
|
|
6116
|
+
var PluginWorkspaceTeamsListMembersResult = z86.object({
|
|
6117
|
+
members: z86.array(PluginTeamMemberRef)
|
|
5874
6118
|
});
|
|
5875
6119
|
|
|
5876
6120
|
// src/api/index.ts
|
|
@@ -6212,6 +6456,7 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
6212
6456
|
PluginCameraSetModeArgs,
|
|
6213
6457
|
PluginCameraSetProjectionArgs,
|
|
6214
6458
|
PluginCameraSetStandardViewArgs,
|
|
6459
|
+
PluginCanvasShapeOrigin,
|
|
6215
6460
|
PluginClassificationOption,
|
|
6216
6461
|
PluginCommentApi,
|
|
6217
6462
|
PluginCommentCreateArgs,
|
|
@@ -6691,6 +6936,17 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
6691
6936
|
PluginPermissionError,
|
|
6692
6937
|
PluginPlacedView,
|
|
6693
6938
|
PluginPlacedViewCrop,
|
|
6939
|
+
PluginPlacedViewFontStylesPatch,
|
|
6940
|
+
PluginPlacedViewStylePatch,
|
|
6941
|
+
PluginPlacedViewsDeleteShapesArgs,
|
|
6942
|
+
PluginPlacedViewsMoveLabelArgs,
|
|
6943
|
+
PluginPlacedViewsMoveShapeArgs,
|
|
6944
|
+
PluginPlacedViewsResizeShapeArgs,
|
|
6945
|
+
PluginPlacedViewsSetLabelHiddenArgs,
|
|
6946
|
+
PluginPlacedViewsSetMaskArgs,
|
|
6947
|
+
PluginPlacedViewsSetOpacityArgs,
|
|
6948
|
+
PluginPlacedViewsUpdateFontStylesArgs,
|
|
6949
|
+
PluginPlacedViewsUpdateStylesArgs,
|
|
6694
6950
|
PluginPresentationAIInspirationApi,
|
|
6695
6951
|
PluginPresentationAnnotateApi,
|
|
6696
6952
|
PluginPresentationAnnotateArrowArgs,
|
|
@@ -6702,6 +6958,7 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
6702
6958
|
PluginPresentationApi,
|
|
6703
6959
|
PluginPresentationDiagramsApi,
|
|
6704
6960
|
PluginPresentationDiagramsGenerateResult,
|
|
6961
|
+
PluginPresentationDiagramsGenerateSiteArgs,
|
|
6705
6962
|
PluginPresentationDiagramsPlaceArgs,
|
|
6706
6963
|
PluginPresentationDiagramsPlaceResult,
|
|
6707
6964
|
PluginPresentationExportArgs,
|
|
@@ -6718,8 +6975,10 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
6718
6975
|
PluginPresentationPlacedViewsListArgs,
|
|
6719
6976
|
PluginPresentationPlacedViewsListResult,
|
|
6720
6977
|
PluginPresentationPlacedViewsMoveArgs,
|
|
6978
|
+
PluginPresentationPlacedViewsRotateShapeArgs,
|
|
6721
6979
|
PluginPresentationPlacedViewsScaleArgs,
|
|
6722
6980
|
PluginPresentationPlacedViewsSetCropArgs,
|
|
6981
|
+
PluginPresentationPlacedViewsSetRotationArgs,
|
|
6723
6982
|
PluginPresentationPlacedViewsSetScaleArgs,
|
|
6724
6983
|
PluginPresentationShapeSpec,
|
|
6725
6984
|
PluginPresentationShapeType,
|
|
@@ -6741,9 +7000,16 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
6741
7000
|
PluginPresentationSheetsRenameArgs,
|
|
6742
7001
|
PluginPresentationSheetsReorderArgs,
|
|
6743
7002
|
PluginPresentationSheetsSetActiveArgs,
|
|
7003
|
+
PluginPresentationSheetsSetMarginArgs,
|
|
6744
7004
|
PluginPresentationSheetsSetSizeArgs,
|
|
6745
7005
|
PluginPresentationSheetsUpdatePlacedViewArgs,
|
|
6746
7006
|
PluginPresentationSheetsUpdatePlacedViewResult,
|
|
7007
|
+
PluginPresentationSiteDiagramType,
|
|
7008
|
+
PluginPresentationSlideshowApi,
|
|
7009
|
+
PluginPresentationSlideshowStartArgs,
|
|
7010
|
+
PluginPresentationSlideshowState,
|
|
7011
|
+
PluginPresentationTablesApi,
|
|
7012
|
+
PluginPresentationTablesPlaceArgs,
|
|
6747
7013
|
PluginPresentationView,
|
|
6748
7014
|
PluginPresentationViewColorMode,
|
|
6749
7015
|
PluginPresentationViewLabel,
|
|
@@ -6829,6 +7095,10 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
6829
7095
|
PluginProgramSiteAreaResult,
|
|
6830
7096
|
PluginProgramSiteContext,
|
|
6831
7097
|
PluginProgramSiteContextResult,
|
|
7098
|
+
PluginProgramSiteEdge,
|
|
7099
|
+
PluginProgramSiteEdgeRole,
|
|
7100
|
+
PluginProgramSiteEdgesEntry,
|
|
7101
|
+
PluginProgramSiteListEdgesResult,
|
|
6832
7102
|
PluginProgramSiteListGeoPolygonsResult,
|
|
6833
7103
|
PluginProgramSiteListPolygonsResult,
|
|
6834
7104
|
PluginProgramSiteLocation,
|
|
@@ -6910,6 +7180,7 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
6910
7180
|
PluginReferenceLineStyle,
|
|
6911
7181
|
PluginSelectionEntityType,
|
|
6912
7182
|
PluginSelectionFilter,
|
|
7183
|
+
PluginSheetMargin,
|
|
6913
7184
|
PluginSheetOrientation,
|
|
6914
7185
|
PluginSheetPosition,
|
|
6915
7186
|
PluginSheetSize,
|
|
@@ -7011,6 +7282,8 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
7011
7282
|
PluginStoryUpdateResult,
|
|
7012
7283
|
PluginTeamMemberRef,
|
|
7013
7284
|
PluginTeamRef,
|
|
7285
|
+
PluginTerrainReplaceMeshArgs,
|
|
7286
|
+
PluginTerrainReplaceMeshOptions,
|
|
7014
7287
|
PluginTerrainSetDatumArgs,
|
|
7015
7288
|
PluginTerrainSetOpacityArgs,
|
|
7016
7289
|
PluginTimeoutError,
|
|
@@ -7033,6 +7306,9 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
7033
7306
|
PluginUserLocale,
|
|
7034
7307
|
PluginValidationError,
|
|
7035
7308
|
PluginVec3Api,
|
|
7309
|
+
PluginViewLabelType,
|
|
7310
|
+
PluginViewLineStyle,
|
|
7311
|
+
PluginViewSettingCategory,
|
|
7036
7312
|
PluginWallUpdates,
|
|
7037
7313
|
PluginWeatherGetSeriesArgs,
|
|
7038
7314
|
PluginWeatherRow,
|