@snaptrude/plugin-core 0.9.8 → 0.9.10
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/AGENTS.md +4 -0
- package/CHANGELOG.md +12 -4
- package/api-manifest.json +242 -1
- package/dist/api/core/mode/index.d.ts +19 -7
- package/dist/api/core/mode/index.d.ts.map +1 -1
- package/dist/api/core/tags.d.ts +81 -0
- package/dist/api/core/tags.d.ts.map +1 -1
- package/dist/api/program/departments.d.ts +58 -2
- package/dist/api/program/departments.d.ts.map +1 -1
- package/dist/api/program/index.d.ts +16 -6
- package/dist/api/program/index.d.ts.map +1 -1
- package/dist/api/program/labels.d.ts +355 -0
- package/dist/api/program/labels.d.ts.map +1 -0
- package/dist/api/program/metadata.d.ts +328 -0
- package/dist/api/program/metadata.d.ts.map +1 -0
- package/dist/api/program/spreadsheet.d.ts +263 -0
- package/dist/api/program/spreadsheet.d.ts.map +1 -1
- package/dist/api/workspace/index.d.ts +49 -2
- package/dist/api/workspace/index.d.ts.map +1 -1
- package/dist/index.cjs +1079 -831
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1034 -831
- package/dist/index.js.map +1 -1
- package/package.json +13 -13
- package/src/api/core/mode/index.ts +19 -7
- package/src/api/core/tags.ts +76 -0
- package/src/api/program/departments.ts +54 -2
- package/src/api/program/index.ts +16 -6
- package/src/api/program/labels.ts +332 -0
- package/src/api/program/metadata.ts +364 -0
- package/src/api/program/spreadsheet.ts +282 -0
- package/src/api/workspace/index.ts +51 -2
- package/api-manifest.full.json +0 -8443
package/dist/index.cjs
CHANGED
|
@@ -64,6 +64,8 @@ __export(index_exports, {
|
|
|
64
64
|
OffsetSplitOutcome: () => OffsetSplitOutcome,
|
|
65
65
|
PLUGIN_CREATE_BATCH_LIMIT: () => PLUGIN_CREATE_BATCH_LIMIT,
|
|
66
66
|
PLUGIN_ERROR_CODES: () => PLUGIN_ERROR_CODES,
|
|
67
|
+
PLUGIN_PROGRAM_LABELS_BATCH_LIMIT: () => PLUGIN_PROGRAM_LABELS_BATCH_LIMIT,
|
|
68
|
+
PLUGIN_PROGRAM_METADATA_BATCH_LIMIT: () => PLUGIN_PROGRAM_METADATA_BATCH_LIMIT,
|
|
67
69
|
PUnitType: () => PUnitType,
|
|
68
70
|
PluginAIInspirationAppliedPreset: () => PluginAIInspirationAppliedPreset,
|
|
69
71
|
PluginAIInspirationCancelJobResult: () => PluginAIInspirationCancelJobResult,
|
|
@@ -231,6 +233,7 @@ __export(index_exports, {
|
|
|
231
233
|
PluginCoreBuildingsUpdateArgs: () => PluginCoreBuildingsUpdateArgs,
|
|
232
234
|
PluginCoreBuildingsUpdateResult: () => PluginCoreBuildingsUpdateResult,
|
|
233
235
|
PluginCoreComponentTag: () => PluginCoreComponentTag,
|
|
236
|
+
PluginCoreComponentTags: () => PluginCoreComponentTags,
|
|
234
237
|
PluginCoreGroupMember: () => PluginCoreGroupMember,
|
|
235
238
|
PluginCoreGroupRef: () => PluginCoreGroupRef,
|
|
236
239
|
PluginCoreGroupsApi: () => PluginCoreGroupsApi,
|
|
@@ -316,6 +319,8 @@ __export(index_exports, {
|
|
|
316
319
|
PluginCoreTagsListCategoriesResult: () => PluginCoreTagsListCategoriesResult,
|
|
317
320
|
PluginCoreTagsListComponentsArgs: () => PluginCoreTagsListComponentsArgs,
|
|
318
321
|
PluginCoreTagsListComponentsResult: () => PluginCoreTagsListComponentsResult,
|
|
322
|
+
PluginCoreTagsListForComponentsArgs: () => PluginCoreTagsListForComponentsArgs,
|
|
323
|
+
PluginCoreTagsListForComponentsResult: () => PluginCoreTagsListForComponentsResult,
|
|
319
324
|
PluginCoreTagsListResult: () => PluginCoreTagsListResult,
|
|
320
325
|
PluginCoreTagsUnassignArgs: () => PluginCoreTagsUnassignArgs,
|
|
321
326
|
PluginCoreTagsUnassignResult: () => PluginCoreTagsUnassignResult,
|
|
@@ -854,10 +859,25 @@ __export(index_exports, {
|
|
|
854
859
|
PluginProgramDepartmentsListResult: () => PluginProgramDepartmentsListResult,
|
|
855
860
|
PluginProgramDepartmentsSetTargetAreaArgs: () => PluginProgramDepartmentsSetTargetAreaArgs,
|
|
856
861
|
PluginProgramDepartmentsSetTargetAreaResult: () => PluginProgramDepartmentsSetTargetAreaResult,
|
|
862
|
+
PluginProgramDepartmentsSetTargetCountArgs: () => PluginProgramDepartmentsSetTargetCountArgs,
|
|
863
|
+
PluginProgramDepartmentsSetTargetCountResult: () => PluginProgramDepartmentsSetTargetCountResult,
|
|
857
864
|
PluginProgramDepartmentsUnassignArgs: () => PluginProgramDepartmentsUnassignArgs,
|
|
858
865
|
PluginProgramDepartmentsUnassignResult: () => PluginProgramDepartmentsUnassignResult,
|
|
859
866
|
PluginProgramDepartmentsUpdateArgs: () => PluginProgramDepartmentsUpdateArgs,
|
|
860
867
|
PluginProgramDepartmentsUpdateResult: () => PluginProgramDepartmentsUpdateResult,
|
|
868
|
+
PluginProgramLabel: () => PluginProgramLabel,
|
|
869
|
+
PluginProgramLabelCreateItem: () => PluginProgramLabelCreateItem,
|
|
870
|
+
PluginProgramLabelRecord: () => PluginProgramLabelRecord,
|
|
871
|
+
PluginProgramLabelsApi: () => PluginProgramLabelsApi,
|
|
872
|
+
PluginProgramLabelsCreateArgs: () => PluginProgramLabelsCreateArgs,
|
|
873
|
+
PluginProgramLabelsCreateResult: () => PluginProgramLabelsCreateResult,
|
|
874
|
+
PluginProgramLabelsGetArgs: () => PluginProgramLabelsGetArgs,
|
|
875
|
+
PluginProgramLabelsGetResult: () => PluginProgramLabelsGetResult,
|
|
876
|
+
PluginProgramLabelsListResult: () => PluginProgramLabelsListResult,
|
|
877
|
+
PluginProgramLabelsSetTargetAreaArgs: () => PluginProgramLabelsSetTargetAreaArgs,
|
|
878
|
+
PluginProgramLabelsSetTargetAreaResult: () => PluginProgramLabelsSetTargetAreaResult,
|
|
879
|
+
PluginProgramLabelsSetTargetCountArgs: () => PluginProgramLabelsSetTargetCountArgs,
|
|
880
|
+
PluginProgramLabelsSetTargetCountResult: () => PluginProgramLabelsSetTargetCountResult,
|
|
861
881
|
PluginProgramLayoutApi: () => PluginProgramLayoutApi,
|
|
862
882
|
PluginProgramLayoutApplyResult: () => PluginProgramLayoutApplyResult,
|
|
863
883
|
PluginProgramLayoutApplySolutionArgs: () => PluginProgramLayoutApplySolutionArgs,
|
|
@@ -867,6 +887,21 @@ __export(index_exports, {
|
|
|
867
887
|
PluginProgramLayoutRunResult: () => PluginProgramLayoutRunResult,
|
|
868
888
|
PluginProgramLayoutStackResult: () => PluginProgramLayoutStackResult,
|
|
869
889
|
PluginProgramLayoutStateResult: () => PluginProgramLayoutStateResult,
|
|
890
|
+
PluginProgramMetadataApi: () => PluginProgramMetadataApi,
|
|
891
|
+
PluginProgramMetadataCreateHeaderArgs: () => PluginProgramMetadataCreateHeaderArgs,
|
|
892
|
+
PluginProgramMetadataCreateHeaderResult: () => PluginProgramMetadataCreateHeaderResult,
|
|
893
|
+
PluginProgramMetadataGetArgs: () => PluginProgramMetadataGetArgs,
|
|
894
|
+
PluginProgramMetadataGetResult: () => PluginProgramMetadataGetResult,
|
|
895
|
+
PluginProgramMetadataHeader: () => PluginProgramMetadataHeader,
|
|
896
|
+
PluginProgramMetadataListArgs: () => PluginProgramMetadataListArgs,
|
|
897
|
+
PluginProgramMetadataListHeadersResult: () => PluginProgramMetadataListHeadersResult,
|
|
898
|
+
PluginProgramMetadataListResult: () => PluginProgramMetadataListResult,
|
|
899
|
+
PluginProgramMetadataRecord: () => PluginProgramMetadataRecord,
|
|
900
|
+
PluginProgramMetadataUpdateArgs: () => PluginProgramMetadataUpdateArgs,
|
|
901
|
+
PluginProgramMetadataUpdateItem: () => PluginProgramMetadataUpdateItem,
|
|
902
|
+
PluginProgramMetadataUpdateManyArgs: () => PluginProgramMetadataUpdateManyArgs,
|
|
903
|
+
PluginProgramMetadataUpdateManyResult: () => PluginProgramMetadataUpdateManyResult,
|
|
904
|
+
PluginProgramMetadataUpdateResult: () => PluginProgramMetadataUpdateResult,
|
|
870
905
|
PluginProgramMetricsApi: () => PluginProgramMetricsApi,
|
|
871
906
|
PluginProgramMetricsSummary: () => PluginProgramMetricsSummary,
|
|
872
907
|
PluginProgramSiteAnalysisResult: () => PluginProgramSiteAnalysisResult,
|
|
@@ -901,8 +936,10 @@ __export(index_exports, {
|
|
|
901
936
|
PluginProgramSpreadsheetBindingsListResult: () => PluginProgramSpreadsheetBindingsListResult,
|
|
902
937
|
PluginProgramSpreadsheetBindingsRefreshArgs: () => PluginProgramSpreadsheetBindingsRefreshArgs,
|
|
903
938
|
PluginProgramSpreadsheetBindingsRefreshResult: () => PluginProgramSpreadsheetBindingsRefreshResult,
|
|
939
|
+
PluginProgramSpreadsheetCreateCustomSheetArgs: () => PluginProgramSpreadsheetCreateCustomSheetArgs,
|
|
904
940
|
PluginProgramSpreadsheetCreateSheetArgs: () => PluginProgramSpreadsheetCreateSheetArgs,
|
|
905
941
|
PluginProgramSpreadsheetCreateSheetResult: () => PluginProgramSpreadsheetCreateSheetResult,
|
|
942
|
+
PluginProgramSpreadsheetCustomSheetResult: () => PluginProgramSpreadsheetCustomSheetResult,
|
|
906
943
|
PluginProgramSpreadsheetDatasetsApi: () => PluginProgramSpreadsheetDatasetsApi,
|
|
907
944
|
PluginProgramSpreadsheetDatasetsListResult: () => PluginProgramSpreadsheetDatasetsListResult,
|
|
908
945
|
PluginProgramSpreadsheetDatasetsSetArgs: () => PluginProgramSpreadsheetDatasetsSetArgs,
|
|
@@ -911,6 +948,8 @@ __export(index_exports, {
|
|
|
911
948
|
PluginProgramSpreadsheetExportResult: () => PluginProgramSpreadsheetExportResult,
|
|
912
949
|
PluginProgramSpreadsheetGetAuditLogArgs: () => PluginProgramSpreadsheetGetAuditLogArgs,
|
|
913
950
|
PluginProgramSpreadsheetGetAuditLogResult: () => PluginProgramSpreadsheetGetAuditLogResult,
|
|
951
|
+
PluginProgramSpreadsheetGetCustomSheetArgs: () => PluginProgramSpreadsheetGetCustomSheetArgs,
|
|
952
|
+
PluginProgramSpreadsheetGetCustomSheetResult: () => PluginProgramSpreadsheetGetCustomSheetResult,
|
|
914
953
|
PluginProgramSpreadsheetGetMaterialTakeoffResult: () => PluginProgramSpreadsheetGetMaterialTakeoffResult,
|
|
915
954
|
PluginProgramSpreadsheetGetProgramResult: () => PluginProgramSpreadsheetGetProgramResult,
|
|
916
955
|
PluginProgramSpreadsheetGetSheetDataArgs: () => PluginProgramSpreadsheetGetSheetDataArgs,
|
|
@@ -918,6 +957,8 @@ __export(index_exports, {
|
|
|
918
957
|
PluginProgramSpreadsheetGetTakeoffResult: () => PluginProgramSpreadsheetGetTakeoffResult,
|
|
919
958
|
PluginProgramSpreadsheetHighlightCellsArgs: () => PluginProgramSpreadsheetHighlightCellsArgs,
|
|
920
959
|
PluginProgramSpreadsheetHighlightCellsResult: () => PluginProgramSpreadsheetHighlightCellsResult,
|
|
960
|
+
PluginProgramSpreadsheetListCustomSheetPropertiesResult: () => PluginProgramSpreadsheetListCustomSheetPropertiesResult,
|
|
961
|
+
PluginProgramSpreadsheetListCustomSheetsResult: () => PluginProgramSpreadsheetListCustomSheetsResult,
|
|
921
962
|
PluginProgramSpreadsheetListSheetsResult: () => PluginProgramSpreadsheetListSheetsResult,
|
|
922
963
|
PluginProgramSpreadsheetMergeCellsArgs: () => PluginProgramSpreadsheetMergeCellsArgs,
|
|
923
964
|
PluginProgramSpreadsheetMergeCellsResult: () => PluginProgramSpreadsheetMergeCellsResult,
|
|
@@ -942,6 +983,7 @@ __export(index_exports, {
|
|
|
942
983
|
PluginProgramSpreadsheetTemplatesCreateResult: () => PluginProgramSpreadsheetTemplatesCreateResult,
|
|
943
984
|
PluginProgramSpreadsheetTransactionArgs: () => PluginProgramSpreadsheetTransactionArgs,
|
|
944
985
|
PluginProgramSpreadsheetTransactionResult: () => PluginProgramSpreadsheetTransactionResult,
|
|
986
|
+
PluginProgramSpreadsheetUpdateCustomSheetArgs: () => PluginProgramSpreadsheetUpdateCustomSheetArgs,
|
|
945
987
|
PluginProjectApi: () => PluginProjectApi,
|
|
946
988
|
PluginProjectInfo: () => PluginProjectInfo,
|
|
947
989
|
PluginProjectRef: () => PluginProjectRef,
|
|
@@ -1027,6 +1069,9 @@ __export(index_exports, {
|
|
|
1027
1069
|
PluginSpreadsheetColumn: () => PluginSpreadsheetColumn,
|
|
1028
1070
|
PluginSpreadsheetConditionalRule: () => PluginSpreadsheetConditionalRule,
|
|
1029
1071
|
PluginSpreadsheetConditionalRuleType: () => PluginSpreadsheetConditionalRuleType,
|
|
1072
|
+
PluginSpreadsheetCustomSheet: () => PluginSpreadsheetCustomSheet,
|
|
1073
|
+
PluginSpreadsheetCustomSheetConfig: () => PluginSpreadsheetCustomSheetConfig,
|
|
1074
|
+
PluginSpreadsheetCustomSheetProperty: () => PluginSpreadsheetCustomSheetProperty,
|
|
1030
1075
|
PluginSpreadsheetDataset: () => PluginSpreadsheetDataset,
|
|
1031
1076
|
PluginSpreadsheetExportFormat: () => PluginSpreadsheetExportFormat,
|
|
1032
1077
|
PluginSpreadsheetFontStyle: () => PluginSpreadsheetFontStyle,
|
|
@@ -2421,6 +2466,16 @@ var PluginCoreTagsGetTagsForComponentArgs = z29.object({
|
|
|
2421
2466
|
var PluginCoreTagsGetTagsForComponentResult = z29.object({
|
|
2422
2467
|
tags: z29.array(PluginCoreComponentTag)
|
|
2423
2468
|
});
|
|
2469
|
+
var PluginCoreTagsListForComponentsArgs = z29.object({
|
|
2470
|
+
componentIds: z29.array(ComponentHandle).optional()
|
|
2471
|
+
});
|
|
2472
|
+
var PluginCoreComponentTags = z29.object({
|
|
2473
|
+
componentId: ComponentHandle,
|
|
2474
|
+
tags: z29.array(PluginCoreComponentTag)
|
|
2475
|
+
});
|
|
2476
|
+
var PluginCoreTagsListForComponentsResult = z29.object({
|
|
2477
|
+
components: z29.array(PluginCoreComponentTags)
|
|
2478
|
+
});
|
|
2424
2479
|
var PluginCoreTagsListComponentsArgs = z29.object({
|
|
2425
2480
|
tagId: z29.string().optional(),
|
|
2426
2481
|
categoryId: z29.string().optional(),
|
|
@@ -4291,7 +4346,8 @@ var PluginProgramDepartment = z64.object({
|
|
|
4291
4346
|
id: z64.string(),
|
|
4292
4347
|
name: z64.string(),
|
|
4293
4348
|
color: z64.string(),
|
|
4294
|
-
targetArea: z64.number().nullable()
|
|
4349
|
+
targetArea: z64.number().nullable(),
|
|
4350
|
+
targetCount: z64.number()
|
|
4295
4351
|
});
|
|
4296
4352
|
var PluginProgramDepartmentsListResult = z64.object({
|
|
4297
4353
|
units: PluginAreaUnit,
|
|
@@ -4341,6 +4397,11 @@ var PluginProgramDepartmentsSetTargetAreaArgs = z64.object({
|
|
|
4341
4397
|
units: PluginAreaUnit.optional()
|
|
4342
4398
|
});
|
|
4343
4399
|
var PluginProgramDepartmentsSetTargetAreaResult = PluginProgramDepartmentRecord;
|
|
4400
|
+
var PluginProgramDepartmentsSetTargetCountArgs = z64.object({
|
|
4401
|
+
departmentId: z64.string(),
|
|
4402
|
+
targetCount: z64.number().int().nonnegative()
|
|
4403
|
+
});
|
|
4404
|
+
var PluginProgramDepartmentsSetTargetCountResult = PluginProgramDepartmentRecord;
|
|
4344
4405
|
var PluginProgramDepartmentsDeleteArgs = z64.object({
|
|
4345
4406
|
departmentId: z64.string()
|
|
4346
4407
|
});
|
|
@@ -4819,6 +4880,41 @@ var PluginProgramSpreadsheetAddImageResult = z67.object({
|
|
|
4819
4880
|
sheetName: z67.string(),
|
|
4820
4881
|
name: z67.string()
|
|
4821
4882
|
});
|
|
4883
|
+
var PluginSpreadsheetCustomSheet = z67.object({
|
|
4884
|
+
sheetName: z67.string(),
|
|
4885
|
+
groupBy: z67.array(z67.string()),
|
|
4886
|
+
properties: z67.array(z67.string()),
|
|
4887
|
+
groupColors: z67.record(z67.string(), z67.string()),
|
|
4888
|
+
proposalId: z67.string().nullable()
|
|
4889
|
+
});
|
|
4890
|
+
var PluginSpreadsheetCustomSheetConfig = z67.object({
|
|
4891
|
+
groupBy: z67.array(z67.string().trim().min(1)).max(10).optional(),
|
|
4892
|
+
properties: z67.array(z67.string()).max(50).optional(),
|
|
4893
|
+
groupColors: z67.record(z67.string(), z67.string()).optional()
|
|
4894
|
+
});
|
|
4895
|
+
var PluginProgramSpreadsheetCreateCustomSheetArgs = PluginSpreadsheetCustomSheetConfig.extend({
|
|
4896
|
+
name: z67.string().trim().min(1)
|
|
4897
|
+
});
|
|
4898
|
+
var PluginProgramSpreadsheetUpdateCustomSheetArgs = PluginSpreadsheetCustomSheetConfig.extend({
|
|
4899
|
+
sheetName: z67.string().trim().min(1)
|
|
4900
|
+
});
|
|
4901
|
+
var PluginProgramSpreadsheetCustomSheetResult = PluginSpreadsheetCustomSheet;
|
|
4902
|
+
var PluginProgramSpreadsheetGetCustomSheetArgs = z67.object({
|
|
4903
|
+
sheetName: z67.string().trim().min(1)
|
|
4904
|
+
});
|
|
4905
|
+
var PluginProgramSpreadsheetGetCustomSheetResult = PluginSpreadsheetCustomSheet.nullable();
|
|
4906
|
+
var PluginProgramSpreadsheetListCustomSheetsResult = z67.object({
|
|
4907
|
+
sheets: z67.array(PluginSpreadsheetCustomSheet)
|
|
4908
|
+
});
|
|
4909
|
+
var PluginSpreadsheetCustomSheetProperty = z67.object({
|
|
4910
|
+
id: z67.string(),
|
|
4911
|
+
name: z67.string(),
|
|
4912
|
+
groupable: z67.boolean(),
|
|
4913
|
+
custom: z67.boolean()
|
|
4914
|
+
});
|
|
4915
|
+
var PluginProgramSpreadsheetListCustomSheetPropertiesResult = z67.object({
|
|
4916
|
+
properties: z67.array(PluginSpreadsheetCustomSheetProperty)
|
|
4917
|
+
});
|
|
4822
4918
|
|
|
4823
4919
|
// src/api/program/site.ts
|
|
4824
4920
|
var z68 = __toESM(require("zod"), 1);
|
|
@@ -5066,6 +5162,113 @@ var PluginProgramAreasUpdateArgs = z71.object({
|
|
|
5066
5162
|
var PluginProgramAreasUpdateResult = PluginProgramAreaSummary;
|
|
5067
5163
|
var PluginProgramAreasRefreshResult = PluginProgramAreaSummary;
|
|
5068
5164
|
|
|
5165
|
+
// src/api/program/metadata.ts
|
|
5166
|
+
var z72 = __toESM(require("zod"), 1);
|
|
5167
|
+
var PluginProgramMetadataApi = class {
|
|
5168
|
+
constructor() {
|
|
5169
|
+
}
|
|
5170
|
+
};
|
|
5171
|
+
var PluginProgramMetadataHeader = z72.object({
|
|
5172
|
+
headerId: z72.string(),
|
|
5173
|
+
name: z72.string(),
|
|
5174
|
+
description: z72.string(),
|
|
5175
|
+
columnIndex: z72.number()
|
|
5176
|
+
});
|
|
5177
|
+
var PluginProgramMetadataListHeadersResult = z72.object({
|
|
5178
|
+
headers: z72.array(PluginProgramMetadataHeader)
|
|
5179
|
+
});
|
|
5180
|
+
var PluginProgramMetadataCreateHeaderArgs = z72.object({
|
|
5181
|
+
name: z72.string().trim().min(1),
|
|
5182
|
+
description: z72.string().optional()
|
|
5183
|
+
});
|
|
5184
|
+
var PluginProgramMetadataCreateHeaderResult = PluginProgramMetadataHeader;
|
|
5185
|
+
var PluginProgramMetadataRecord = z72.object({
|
|
5186
|
+
spaceId: ComponentHandle,
|
|
5187
|
+
values: z72.record(z72.string(), PluginSpreadsheetCell)
|
|
5188
|
+
});
|
|
5189
|
+
var PluginProgramMetadataGetArgs = z72.object({
|
|
5190
|
+
spaceId: ComponentHandle
|
|
5191
|
+
});
|
|
5192
|
+
var PluginProgramMetadataGetResult = PluginProgramMetadataRecord.nullable();
|
|
5193
|
+
var PluginProgramMetadataListArgs = z72.object({
|
|
5194
|
+
spaceIds: z72.array(ComponentHandle).optional()
|
|
5195
|
+
});
|
|
5196
|
+
var PluginProgramMetadataListResult = z72.object({
|
|
5197
|
+
records: z72.array(PluginProgramMetadataRecord)
|
|
5198
|
+
});
|
|
5199
|
+
var PluginProgramMetadataUpdateArgs = z72.object({
|
|
5200
|
+
spaceId: ComponentHandle,
|
|
5201
|
+
values: z72.record(z72.string(), PluginSpreadsheetCell).refine((v) => Object.keys(v).length > 0, "values must not be empty")
|
|
5202
|
+
});
|
|
5203
|
+
var PluginProgramMetadataUpdateResult = PluginProgramMetadataRecord;
|
|
5204
|
+
var PluginProgramMetadataUpdateItem = PluginProgramMetadataUpdateArgs;
|
|
5205
|
+
var PLUGIN_PROGRAM_METADATA_BATCH_LIMIT = 1e3;
|
|
5206
|
+
var PluginProgramMetadataUpdateManyArgs = z72.object({
|
|
5207
|
+
items: z72.array(PluginProgramMetadataUpdateItem).min(1).max(PLUGIN_PROGRAM_METADATA_BATCH_LIMIT)
|
|
5208
|
+
});
|
|
5209
|
+
var PluginProgramMetadataUpdateManyResult = z72.object({
|
|
5210
|
+
records: z72.array(PluginProgramMetadataRecord)
|
|
5211
|
+
});
|
|
5212
|
+
|
|
5213
|
+
// src/api/program/labels.ts
|
|
5214
|
+
var z73 = __toESM(require("zod"), 1);
|
|
5215
|
+
var PluginProgramLabelsApi = class {
|
|
5216
|
+
constructor() {
|
|
5217
|
+
}
|
|
5218
|
+
};
|
|
5219
|
+
var PluginProgramLabel = z73.object({
|
|
5220
|
+
id: z73.string(),
|
|
5221
|
+
name: z73.string(),
|
|
5222
|
+
color: z73.string(),
|
|
5223
|
+
departmentId: z73.string(),
|
|
5224
|
+
targetArea: z73.number().nullable(),
|
|
5225
|
+
targetCount: z73.number(),
|
|
5226
|
+
storey: z73.number().nullable()
|
|
5227
|
+
});
|
|
5228
|
+
var PluginProgramLabelRecord = PluginProgramLabel.extend({
|
|
5229
|
+
units: PluginAreaUnit
|
|
5230
|
+
});
|
|
5231
|
+
var PluginProgramLabelsListResult = z73.object({
|
|
5232
|
+
units: PluginAreaUnit,
|
|
5233
|
+
labels: z73.array(PluginProgramLabel)
|
|
5234
|
+
});
|
|
5235
|
+
var PluginProgramLabelsGetArgs = z73.object({
|
|
5236
|
+
labelId: z73.string()
|
|
5237
|
+
});
|
|
5238
|
+
var PluginProgramLabelsGetResult = PluginProgramLabelRecord.nullable();
|
|
5239
|
+
var PluginProgramLabelCreateItem = z73.object({
|
|
5240
|
+
name: z73.string().trim().min(1),
|
|
5241
|
+
targetArea: z73.number().finite().nonnegative().optional(),
|
|
5242
|
+
targetCount: z73.number().int().nonnegative().optional(),
|
|
5243
|
+
departmentId: z73.string().optional(),
|
|
5244
|
+
departmentName: z73.string().optional(),
|
|
5245
|
+
color: z73.string().optional(),
|
|
5246
|
+
storey: z73.number().int().optional(),
|
|
5247
|
+
height: z73.number().finite().positive().optional(),
|
|
5248
|
+
width: z73.number().finite().positive().optional()
|
|
5249
|
+
});
|
|
5250
|
+
var PLUGIN_PROGRAM_LABELS_BATCH_LIMIT = 500;
|
|
5251
|
+
var PluginProgramLabelsCreateArgs = z73.object({
|
|
5252
|
+
items: z73.array(PluginProgramLabelCreateItem).min(1).max(PLUGIN_PROGRAM_LABELS_BATCH_LIMIT),
|
|
5253
|
+
units: PluginAreaUnit.optional(),
|
|
5254
|
+
createSpaces: z73.boolean().optional()
|
|
5255
|
+
});
|
|
5256
|
+
var PluginProgramLabelsCreateResult = z73.object({
|
|
5257
|
+
labelIds: z73.array(z73.string()),
|
|
5258
|
+
createdSpaces: z73.boolean()
|
|
5259
|
+
});
|
|
5260
|
+
var PluginProgramLabelsSetTargetAreaArgs = z73.object({
|
|
5261
|
+
labelId: z73.string(),
|
|
5262
|
+
targetArea: z73.number().finite().nonnegative(),
|
|
5263
|
+
units: PluginAreaUnit.optional()
|
|
5264
|
+
});
|
|
5265
|
+
var PluginProgramLabelsSetTargetAreaResult = PluginProgramLabelRecord;
|
|
5266
|
+
var PluginProgramLabelsSetTargetCountArgs = z73.object({
|
|
5267
|
+
labelId: z73.string(),
|
|
5268
|
+
targetCount: z73.number().int().nonnegative()
|
|
5269
|
+
});
|
|
5270
|
+
var PluginProgramLabelsSetTargetCountResult = PluginProgramLabelRecord;
|
|
5271
|
+
|
|
5069
5272
|
// src/api/program/index.ts
|
|
5070
5273
|
var PluginProgramApi = class {
|
|
5071
5274
|
constructor() {
|
|
@@ -5073,72 +5276,72 @@ var PluginProgramApi = class {
|
|
|
5073
5276
|
};
|
|
5074
5277
|
|
|
5075
5278
|
// src/api/presentation/views.ts
|
|
5076
|
-
var
|
|
5279
|
+
var z74 = __toESM(require("zod"), 1);
|
|
5077
5280
|
var PluginPresentationViewsApi = class {
|
|
5078
5281
|
constructor() {
|
|
5079
5282
|
}
|
|
5080
5283
|
};
|
|
5081
|
-
var PluginPresentationViewType =
|
|
5082
|
-
var PluginPresentationView =
|
|
5083
|
-
id:
|
|
5084
|
-
name:
|
|
5284
|
+
var PluginPresentationViewType = z74.enum(["2d", "3d"]);
|
|
5285
|
+
var PluginPresentationView = z74.object({
|
|
5286
|
+
id: z74.string(),
|
|
5287
|
+
name: z74.string(),
|
|
5085
5288
|
type: PluginPresentationViewType,
|
|
5086
|
-
isActive:
|
|
5087
|
-
storey:
|
|
5289
|
+
isActive: z74.boolean(),
|
|
5290
|
+
storey: z74.number().nullable()
|
|
5088
5291
|
});
|
|
5089
|
-
var PluginPresentationViewsListResult =
|
|
5090
|
-
views:
|
|
5292
|
+
var PluginPresentationViewsListResult = z74.object({
|
|
5293
|
+
views: z74.array(PluginPresentationView)
|
|
5091
5294
|
});
|
|
5092
|
-
var PluginPresentationViewsGetArgs =
|
|
5093
|
-
id:
|
|
5295
|
+
var PluginPresentationViewsGetArgs = z74.object({
|
|
5296
|
+
id: z74.string()
|
|
5094
5297
|
});
|
|
5095
5298
|
var PluginPresentationViewsGetResult = PluginPresentationView.nullable();
|
|
5096
|
-
var PluginPresentationImageFormat =
|
|
5097
|
-
var PluginPresentationViewsCaptureArgs =
|
|
5098
|
-
viewId:
|
|
5299
|
+
var PluginPresentationImageFormat = z74.enum(["png", "jpeg"]);
|
|
5300
|
+
var PluginPresentationViewsCaptureArgs = z74.object({
|
|
5301
|
+
viewId: z74.string().optional(),
|
|
5099
5302
|
format: PluginPresentationImageFormat.optional(),
|
|
5100
|
-
resolution:
|
|
5303
|
+
resolution: z74.string().optional()
|
|
5101
5304
|
});
|
|
5102
|
-
var PluginPresentationViewsCaptureResult =
|
|
5103
|
-
image:
|
|
5305
|
+
var PluginPresentationViewsCaptureResult = z74.object({
|
|
5306
|
+
image: z74.string()
|
|
5104
5307
|
});
|
|
5105
|
-
var PluginPresentationViewsSetActiveArgs =
|
|
5106
|
-
id:
|
|
5308
|
+
var PluginPresentationViewsSetActiveArgs = z74.object({
|
|
5309
|
+
id: z74.string()
|
|
5107
5310
|
});
|
|
5108
|
-
var PluginPresentationViewsSetActiveResult =
|
|
5109
|
-
id:
|
|
5311
|
+
var PluginPresentationViewsSetActiveResult = z74.object({
|
|
5312
|
+
id: z74.string()
|
|
5110
5313
|
});
|
|
5111
|
-
var PluginPresentationViewsCreateArgs =
|
|
5112
|
-
name:
|
|
5113
|
-
kind:
|
|
5114
|
-
storey:
|
|
5314
|
+
var PluginPresentationViewsCreateArgs = z74.object({
|
|
5315
|
+
name: z74.string().optional(),
|
|
5316
|
+
kind: z74.enum(["view", "sitePlan"]).optional(),
|
|
5317
|
+
storey: z74.number().optional()
|
|
5115
5318
|
});
|
|
5116
5319
|
var PluginPresentationViewsCreateResult = PluginPresentationView;
|
|
5117
|
-
var PluginPresentationViewColorMode =
|
|
5118
|
-
|
|
5119
|
-
|
|
5320
|
+
var PluginPresentationViewColorMode = z74.union([
|
|
5321
|
+
z74.enum(["monochrome", "texture", "department"]),
|
|
5322
|
+
z74.templateLiteral(["tag:", z74.string()])
|
|
5120
5323
|
]);
|
|
5121
|
-
var PluginPresentationViewLabel =
|
|
5324
|
+
var PluginPresentationViewLabel = z74.enum([
|
|
5122
5325
|
"objectLabels",
|
|
5123
5326
|
"areas",
|
|
5124
5327
|
"department"
|
|
5125
5328
|
]);
|
|
5126
|
-
var PluginPresentationViewMode =
|
|
5127
|
-
var PluginPresentationViewSettings =
|
|
5128
|
-
backgroundColor:
|
|
5329
|
+
var PluginPresentationViewMode = z74.enum(["perspective", "isometric"]);
|
|
5330
|
+
var PluginPresentationViewSettings = z74.object({
|
|
5331
|
+
backgroundColor: z74.string(),
|
|
5129
5332
|
colorMode: PluginPresentationViewColorMode,
|
|
5130
5333
|
viewMode: PluginPresentationViewMode,
|
|
5131
|
-
showAxis:
|
|
5132
|
-
showEdges:
|
|
5133
|
-
showLabels:
|
|
5134
|
-
labels:
|
|
5334
|
+
showAxis: z74.boolean(),
|
|
5335
|
+
showEdges: z74.boolean(),
|
|
5336
|
+
showLabels: z74.boolean(),
|
|
5337
|
+
labels: z74.array(PluginPresentationViewLabel)
|
|
5135
5338
|
});
|
|
5136
|
-
var PluginPresentationViewsGetSettingsArgs =
|
|
5137
|
-
id:
|
|
5339
|
+
var PluginPresentationViewsGetSettingsArgs = z74.object({
|
|
5340
|
+
id: z74.string()
|
|
5138
5341
|
});
|
|
5139
5342
|
var PluginPresentationViewsGetSettingsResult = PluginPresentationViewSettings.nullable();
|
|
5140
|
-
var PluginPresentationViewsUpdateSettingsArgs =
|
|
5141
|
-
id:
|
|
5343
|
+
var PluginPresentationViewsUpdateSettingsArgs = z74.object({
|
|
5344
|
+
id: z74.string(),
|
|
5142
5345
|
settings: PluginPresentationViewSettings.partial()
|
|
5143
5346
|
}).refine(
|
|
5144
5347
|
(v) => !(v.settings.showLabels === false && (v.settings.labels?.length ?? 0) > 0),
|
|
@@ -5151,28 +5354,28 @@ var PluginPresentationViewsUpdateSettingsArgs = z72.object({
|
|
|
5151
5354
|
message: "Contradictory patch: showLabels cannot be true with an explicitly empty labels list \u2014 pass a non-empty list, or omit labels to apply the defaults"
|
|
5152
5355
|
}
|
|
5153
5356
|
);
|
|
5154
|
-
var PluginPresentationViewsUpdateSettingsResult =
|
|
5155
|
-
id:
|
|
5357
|
+
var PluginPresentationViewsUpdateSettingsResult = z74.object({
|
|
5358
|
+
id: z74.string()
|
|
5156
5359
|
});
|
|
5157
|
-
var PluginPresentationViewsRenameArgs =
|
|
5158
|
-
id:
|
|
5159
|
-
name:
|
|
5360
|
+
var PluginPresentationViewsRenameArgs = z74.object({
|
|
5361
|
+
id: z74.string(),
|
|
5362
|
+
name: z74.string().trim().min(1)
|
|
5160
5363
|
});
|
|
5161
5364
|
var PluginPresentationViewsRenameResult = PluginPresentationView;
|
|
5162
|
-
var PluginPresentationViewsDeleteArgs =
|
|
5163
|
-
id:
|
|
5365
|
+
var PluginPresentationViewsDeleteArgs = z74.object({
|
|
5366
|
+
id: z74.string()
|
|
5164
5367
|
});
|
|
5165
|
-
var PluginPresentationViewsDeleteResult =
|
|
5166
|
-
id:
|
|
5368
|
+
var PluginPresentationViewsDeleteResult = z74.object({
|
|
5369
|
+
id: z74.string()
|
|
5167
5370
|
});
|
|
5168
5371
|
|
|
5169
5372
|
// src/api/presentation/sheets.ts
|
|
5170
|
-
var
|
|
5373
|
+
var z75 = __toESM(require("zod"), 1);
|
|
5171
5374
|
var PluginPresentationSheetsApi = class {
|
|
5172
5375
|
constructor() {
|
|
5173
5376
|
}
|
|
5174
5377
|
};
|
|
5175
|
-
var PluginSheetSize =
|
|
5378
|
+
var PluginSheetSize = z75.enum([
|
|
5176
5379
|
"ANSI_A",
|
|
5177
5380
|
"ANSI_B",
|
|
5178
5381
|
"ANSI_C",
|
|
@@ -5190,140 +5393,140 @@ var PluginSheetSize = z73.enum([
|
|
|
5190
5393
|
"ISO_A1",
|
|
5191
5394
|
"ISO_A0"
|
|
5192
5395
|
]);
|
|
5193
|
-
var PluginSheetOrientation =
|
|
5194
|
-
var PluginSheetMargin =
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5396
|
+
var PluginSheetOrientation = z75.enum(["landscape", "portrait"]);
|
|
5397
|
+
var PluginSheetMargin = z75.union([
|
|
5398
|
+
z75.literal(0),
|
|
5399
|
+
z75.literal(0.25),
|
|
5400
|
+
z75.literal(0.5),
|
|
5401
|
+
z75.literal(0.75),
|
|
5402
|
+
z75.literal(1)
|
|
5200
5403
|
]);
|
|
5201
|
-
var PluginPresentationSheet =
|
|
5202
|
-
id:
|
|
5203
|
-
name:
|
|
5404
|
+
var PluginPresentationSheet = z75.object({
|
|
5405
|
+
id: z75.string(),
|
|
5406
|
+
name: z75.string(),
|
|
5204
5407
|
size: PluginSheetSize.nullable(),
|
|
5205
5408
|
orientation: PluginSheetOrientation.nullable(),
|
|
5206
5409
|
margin: PluginSheetMargin.nullable()
|
|
5207
5410
|
});
|
|
5208
|
-
var PluginSheetPosition =
|
|
5209
|
-
x:
|
|
5210
|
-
y:
|
|
5411
|
+
var PluginSheetPosition = z75.object({
|
|
5412
|
+
x: z75.number(),
|
|
5413
|
+
y: z75.number()
|
|
5211
5414
|
});
|
|
5212
|
-
var PluginPresentationSheetsListResult =
|
|
5213
|
-
sheets:
|
|
5415
|
+
var PluginPresentationSheetsListResult = z75.object({
|
|
5416
|
+
sheets: z75.array(PluginPresentationSheet)
|
|
5214
5417
|
});
|
|
5215
|
-
var PluginPresentationSheetsGetArgs =
|
|
5216
|
-
id:
|
|
5418
|
+
var PluginPresentationSheetsGetArgs = z75.object({
|
|
5419
|
+
id: z75.string()
|
|
5217
5420
|
});
|
|
5218
5421
|
var PluginPresentationSheetsGetResult = PluginPresentationSheet.nullable();
|
|
5219
|
-
var PluginPresentationSheetsCreateArgs =
|
|
5220
|
-
name:
|
|
5422
|
+
var PluginPresentationSheetsCreateArgs = z75.object({
|
|
5423
|
+
name: z75.string().optional(),
|
|
5221
5424
|
size: PluginSheetSize.optional(),
|
|
5222
5425
|
orientation: PluginSheetOrientation.optional()
|
|
5223
5426
|
});
|
|
5224
|
-
var PluginPresentationSheetsSetSizeArgs =
|
|
5225
|
-
sheetId:
|
|
5427
|
+
var PluginPresentationSheetsSetSizeArgs = z75.object({
|
|
5428
|
+
sheetId: z75.string(),
|
|
5226
5429
|
size: PluginSheetSize,
|
|
5227
5430
|
orientation: PluginSheetOrientation.optional()
|
|
5228
5431
|
});
|
|
5229
|
-
var PluginPresentationSheetsSetMarginArgs =
|
|
5230
|
-
sheetId:
|
|
5432
|
+
var PluginPresentationSheetsSetMarginArgs = z75.object({
|
|
5433
|
+
sheetId: z75.string(),
|
|
5231
5434
|
margin: PluginSheetMargin
|
|
5232
5435
|
});
|
|
5233
|
-
var PluginPresentationSheetsPlaceArgs =
|
|
5234
|
-
sheetId:
|
|
5235
|
-
viewId:
|
|
5436
|
+
var PluginPresentationSheetsPlaceArgs = z75.object({
|
|
5437
|
+
sheetId: z75.string(),
|
|
5438
|
+
viewId: z75.string(),
|
|
5236
5439
|
position: PluginSheetPosition.optional(),
|
|
5237
|
-
scale:
|
|
5440
|
+
scale: z75.number().positive().optional()
|
|
5238
5441
|
});
|
|
5239
|
-
var PluginPresentationSheetsPlaceResult =
|
|
5240
|
-
shapeId:
|
|
5442
|
+
var PluginPresentationSheetsPlaceResult = z75.object({
|
|
5443
|
+
shapeId: z75.string()
|
|
5241
5444
|
});
|
|
5242
|
-
var PluginPresentationSheetsRenameArgs =
|
|
5243
|
-
sheetId:
|
|
5244
|
-
name:
|
|
5445
|
+
var PluginPresentationSheetsRenameArgs = z75.object({
|
|
5446
|
+
sheetId: z75.string(),
|
|
5447
|
+
name: z75.string().trim().min(1)
|
|
5245
5448
|
});
|
|
5246
|
-
var PluginPresentationSheetsDeleteArgs =
|
|
5247
|
-
sheetId:
|
|
5449
|
+
var PluginPresentationSheetsDeleteArgs = z75.object({
|
|
5450
|
+
sheetId: z75.string()
|
|
5248
5451
|
});
|
|
5249
|
-
var PluginPresentationSheetsDeleteResult =
|
|
5250
|
-
id:
|
|
5452
|
+
var PluginPresentationSheetsDeleteResult = z75.object({
|
|
5453
|
+
id: z75.string()
|
|
5251
5454
|
});
|
|
5252
|
-
var PluginPresentationSheetsReorderArgs =
|
|
5253
|
-
sheetId:
|
|
5254
|
-
index:
|
|
5455
|
+
var PluginPresentationSheetsReorderArgs = z75.object({
|
|
5456
|
+
sheetId: z75.string(),
|
|
5457
|
+
index: z75.number().int().min(0)
|
|
5255
5458
|
});
|
|
5256
|
-
var PluginPresentationSheetsSetActiveArgs =
|
|
5257
|
-
sheetId:
|
|
5459
|
+
var PluginPresentationSheetsSetActiveArgs = z75.object({
|
|
5460
|
+
sheetId: z75.string()
|
|
5258
5461
|
});
|
|
5259
|
-
var PluginPresentationSheetsUpdatePlacedViewArgs =
|
|
5260
|
-
sheetId:
|
|
5462
|
+
var PluginPresentationSheetsUpdatePlacedViewArgs = z75.object({
|
|
5463
|
+
sheetId: z75.string().optional()
|
|
5261
5464
|
});
|
|
5262
|
-
var PluginPresentationSheetsUpdatePlacedViewResult =
|
|
5263
|
-
shapeIds:
|
|
5465
|
+
var PluginPresentationSheetsUpdatePlacedViewResult = z75.object({
|
|
5466
|
+
shapeIds: z75.array(z75.string())
|
|
5264
5467
|
});
|
|
5265
5468
|
|
|
5266
5469
|
// src/api/presentation/placedViews.ts
|
|
5267
|
-
var
|
|
5470
|
+
var z76 = __toESM(require("zod"), 1);
|
|
5268
5471
|
var PluginPresentationPlacedViewsApi = class {
|
|
5269
5472
|
constructor() {
|
|
5270
5473
|
}
|
|
5271
5474
|
};
|
|
5272
|
-
var PluginPlacedViewCropPoint =
|
|
5273
|
-
x:
|
|
5274
|
-
y:
|
|
5475
|
+
var PluginPlacedViewCropPoint = z76.object({
|
|
5476
|
+
x: z76.number().min(0).max(1),
|
|
5477
|
+
y: z76.number().min(0).max(1)
|
|
5275
5478
|
});
|
|
5276
|
-
var PluginPlacedViewCrop =
|
|
5479
|
+
var PluginPlacedViewCrop = z76.object({
|
|
5277
5480
|
topLeft: PluginPlacedViewCropPoint,
|
|
5278
5481
|
bottomRight: PluginPlacedViewCropPoint
|
|
5279
5482
|
}).refine(
|
|
5280
5483
|
(c) => c.topLeft.x < c.bottomRight.x && c.topLeft.y < c.bottomRight.y,
|
|
5281
5484
|
{ message: "topLeft must be strictly less than bottomRight on both axes" }
|
|
5282
5485
|
);
|
|
5283
|
-
var PluginPlacedView =
|
|
5284
|
-
shapeId:
|
|
5285
|
-
sheetId:
|
|
5286
|
-
title:
|
|
5287
|
-
viewId:
|
|
5486
|
+
var PluginPlacedView = z76.object({
|
|
5487
|
+
shapeId: z76.string(),
|
|
5488
|
+
sheetId: z76.string().nullable(),
|
|
5489
|
+
title: z76.string(),
|
|
5490
|
+
viewId: z76.string(),
|
|
5288
5491
|
position: PluginSheetPosition,
|
|
5289
|
-
size:
|
|
5290
|
-
scale:
|
|
5291
|
-
is3d:
|
|
5292
|
-
rotation:
|
|
5492
|
+
size: z76.object({ width: z76.number(), height: z76.number() }),
|
|
5493
|
+
scale: z76.number().nullable(),
|
|
5494
|
+
is3d: z76.boolean(),
|
|
5495
|
+
rotation: z76.number(),
|
|
5293
5496
|
crop: PluginPlacedViewCrop.nullable(),
|
|
5294
|
-
isUnlinked:
|
|
5497
|
+
isUnlinked: z76.boolean()
|
|
5295
5498
|
});
|
|
5296
|
-
var PluginPresentationPlacedViewsListArgs =
|
|
5297
|
-
sheetId:
|
|
5499
|
+
var PluginPresentationPlacedViewsListArgs = z76.object({
|
|
5500
|
+
sheetId: z76.string().optional()
|
|
5298
5501
|
});
|
|
5299
|
-
var PluginPresentationPlacedViewsListResult =
|
|
5300
|
-
placedViews:
|
|
5502
|
+
var PluginPresentationPlacedViewsListResult = z76.object({
|
|
5503
|
+
placedViews: z76.array(PluginPlacedView)
|
|
5301
5504
|
});
|
|
5302
|
-
var PluginPresentationPlacedViewsGetArgs =
|
|
5303
|
-
shapeId:
|
|
5505
|
+
var PluginPresentationPlacedViewsGetArgs = z76.object({
|
|
5506
|
+
shapeId: z76.string()
|
|
5304
5507
|
});
|
|
5305
|
-
var PluginPresentationPlacedViewsMoveArgs =
|
|
5306
|
-
shapeId:
|
|
5508
|
+
var PluginPresentationPlacedViewsMoveArgs = z76.object({
|
|
5509
|
+
shapeId: z76.string(),
|
|
5307
5510
|
position: PluginSheetPosition,
|
|
5308
|
-
sheetId:
|
|
5511
|
+
sheetId: z76.string().optional()
|
|
5309
5512
|
});
|
|
5310
|
-
var PluginPresentationPlacedViewsScaleArgs =
|
|
5311
|
-
shapeId:
|
|
5312
|
-
factor:
|
|
5513
|
+
var PluginPresentationPlacedViewsScaleArgs = z76.object({
|
|
5514
|
+
shapeId: z76.string(),
|
|
5515
|
+
factor: z76.number().finite().min(0.01).max(100)
|
|
5313
5516
|
});
|
|
5314
|
-
var PluginPresentationPlacedViewsSetScaleArgs =
|
|
5315
|
-
shapeId:
|
|
5316
|
-
scale:
|
|
5517
|
+
var PluginPresentationPlacedViewsSetScaleArgs = z76.object({
|
|
5518
|
+
shapeId: z76.string(),
|
|
5519
|
+
scale: z76.number().positive()
|
|
5317
5520
|
});
|
|
5318
|
-
var PluginPresentationPlacedViewsSetCropArgs =
|
|
5319
|
-
shapeId:
|
|
5521
|
+
var PluginPresentationPlacedViewsSetCropArgs = z76.object({
|
|
5522
|
+
shapeId: z76.string(),
|
|
5320
5523
|
crop: PluginPlacedViewCrop.nullable()
|
|
5321
5524
|
});
|
|
5322
|
-
var PluginPresentationPlacedViewsSetRotationArgs =
|
|
5323
|
-
shapeId:
|
|
5324
|
-
rotation:
|
|
5525
|
+
var PluginPresentationPlacedViewsSetRotationArgs = z76.object({
|
|
5526
|
+
shapeId: z76.string().min(1),
|
|
5527
|
+
rotation: z76.number().finite()
|
|
5325
5528
|
});
|
|
5326
|
-
var PluginViewSettingCategory =
|
|
5529
|
+
var PluginViewSettingCategory = z76.enum([
|
|
5327
5530
|
"Site",
|
|
5328
5531
|
"Topography",
|
|
5329
5532
|
"Space",
|
|
@@ -5335,7 +5538,7 @@ var PluginViewSettingCategory = z74.enum([
|
|
|
5335
5538
|
"Adjacency Line",
|
|
5336
5539
|
"Landscape elements"
|
|
5337
5540
|
]);
|
|
5338
|
-
var PluginViewLineStyle =
|
|
5541
|
+
var PluginViewLineStyle = z76.enum([
|
|
5339
5542
|
"solid",
|
|
5340
5543
|
"dashed",
|
|
5341
5544
|
"dashdot",
|
|
@@ -5344,62 +5547,62 @@ var PluginViewLineStyle = z74.enum([
|
|
|
5344
5547
|
"phantom",
|
|
5345
5548
|
"propertyLine"
|
|
5346
5549
|
]);
|
|
5347
|
-
var PluginPlacedViewStylePatch =
|
|
5348
|
-
hide:
|
|
5550
|
+
var PluginPlacedViewStylePatch = z76.object({
|
|
5551
|
+
hide: z76.boolean().optional(),
|
|
5349
5552
|
lineStyle: PluginViewLineStyle.optional(),
|
|
5350
|
-
lineColor:
|
|
5351
|
-
dashLength:
|
|
5352
|
-
lineWidth:
|
|
5353
|
-
cutWidth:
|
|
5354
|
-
projectionWidth:
|
|
5355
|
-
treeLineWidth:
|
|
5356
|
-
parkingLineWidth:
|
|
5357
|
-
colorMode:
|
|
5553
|
+
lineColor: z76.string().regex(/^#?[0-9a-fA-F]{6}$/, "lineColor must be a 6-digit hex color").optional(),
|
|
5554
|
+
dashLength: z76.number().finite().positive().optional(),
|
|
5555
|
+
lineWidth: z76.number().finite().min(0).optional(),
|
|
5556
|
+
cutWidth: z76.number().finite().min(0).optional(),
|
|
5557
|
+
projectionWidth: z76.number().finite().min(0).optional(),
|
|
5558
|
+
treeLineWidth: z76.number().finite().min(0).optional(),
|
|
5559
|
+
parkingLineWidth: z76.number().finite().min(0).optional(),
|
|
5560
|
+
colorMode: z76.string().refine(
|
|
5358
5561
|
(v) => ["department", "texture", "monochrome"].includes(v) || v.startsWith("tag:"),
|
|
5359
5562
|
{ message: "colorMode must be department, texture, monochrome, or tag:<tagCategoryId>" }
|
|
5360
5563
|
).optional(),
|
|
5361
|
-
opacity:
|
|
5362
|
-
mapOpacity:
|
|
5363
|
-
buildingOpacity:
|
|
5364
|
-
mapHide:
|
|
5365
|
-
buildingHide:
|
|
5366
|
-
noBuilding:
|
|
5367
|
-
viewStyle:
|
|
5368
|
-
radius:
|
|
5369
|
-
inset:
|
|
5564
|
+
opacity: z76.number().finite().min(0).max(100).optional(),
|
|
5565
|
+
mapOpacity: z76.number().finite().min(0).max(100).optional(),
|
|
5566
|
+
buildingOpacity: z76.number().finite().min(0).max(100).optional(),
|
|
5567
|
+
mapHide: z76.boolean().optional(),
|
|
5568
|
+
buildingHide: z76.boolean().optional(),
|
|
5569
|
+
noBuilding: z76.boolean().optional(),
|
|
5570
|
+
viewStyle: z76.enum(["NONE", "FILLET", "BUBBLE"]).optional(),
|
|
5571
|
+
radius: z76.number().finite().min(0).optional(),
|
|
5572
|
+
inset: z76.number().finite().min(0).optional()
|
|
5370
5573
|
}).strict().refine((p) => Object.keys(p).length > 0, { message: "patch must set at least one setting" });
|
|
5371
|
-
var PluginViewLabelType =
|
|
5372
|
-
var PluginViewFontVariantPatch =
|
|
5373
|
-
fontFamily:
|
|
5374
|
-
fontWeight:
|
|
5375
|
-
fontStyle:
|
|
5376
|
-
fontSize:
|
|
5574
|
+
var PluginViewLabelType = z76.enum(["objectLabels", "department", "areas"]);
|
|
5575
|
+
var PluginViewFontVariantPatch = z76.object({
|
|
5576
|
+
fontFamily: z76.string().min(1).optional(),
|
|
5577
|
+
fontWeight: z76.string().regex(/^\d{3}$/, 'fontWeight must be a numeric string like "400" or "700"').optional(),
|
|
5578
|
+
fontStyle: z76.enum(["normal", "italic"]).optional(),
|
|
5579
|
+
fontSize: z76.number().finite().positive().max(200).optional()
|
|
5377
5580
|
}).strict();
|
|
5378
|
-
var PluginPlacedViewFontStylesPatch =
|
|
5379
|
-
visibleTypes:
|
|
5581
|
+
var PluginPlacedViewFontStylesPatch = z76.object({
|
|
5582
|
+
visibleTypes: z76.array(PluginViewLabelType).optional(),
|
|
5380
5583
|
objectLabels: PluginViewFontVariantPatch.optional(),
|
|
5381
5584
|
department: PluginViewFontVariantPatch.optional(),
|
|
5382
5585
|
areas: PluginViewFontVariantPatch.optional()
|
|
5383
5586
|
}).strict().refine((p) => Object.keys(p).length > 0, { message: "patch must set at least one field" });
|
|
5384
|
-
var PluginPlacedViewsUpdateStylesArgs =
|
|
5385
|
-
shapeId:
|
|
5587
|
+
var PluginPlacedViewsUpdateStylesArgs = z76.object({
|
|
5588
|
+
shapeId: z76.string().min(1),
|
|
5386
5589
|
category: PluginViewSettingCategory,
|
|
5387
5590
|
patch: PluginPlacedViewStylePatch
|
|
5388
5591
|
});
|
|
5389
|
-
var PluginPlacedViewsUpdateFontStylesArgs =
|
|
5390
|
-
shapeId:
|
|
5592
|
+
var PluginPlacedViewsUpdateFontStylesArgs = z76.object({
|
|
5593
|
+
shapeId: z76.string().min(1),
|
|
5391
5594
|
category: PluginViewSettingCategory,
|
|
5392
5595
|
patch: PluginPlacedViewFontStylesPatch
|
|
5393
5596
|
});
|
|
5394
|
-
var PluginPlacedViewsMoveLabelArgs =
|
|
5395
|
-
labelId:
|
|
5597
|
+
var PluginPlacedViewsMoveLabelArgs = z76.object({
|
|
5598
|
+
labelId: z76.string().min(1),
|
|
5396
5599
|
position: PluginSheetPosition
|
|
5397
5600
|
});
|
|
5398
|
-
var PluginPlacedViewsSetLabelHiddenArgs =
|
|
5399
|
-
labelId:
|
|
5400
|
-
hidden:
|
|
5601
|
+
var PluginPlacedViewsSetLabelHiddenArgs = z76.object({
|
|
5602
|
+
labelId: z76.string().min(1),
|
|
5603
|
+
hidden: z76.boolean()
|
|
5401
5604
|
});
|
|
5402
|
-
var PluginCanvasShapeOrigin =
|
|
5605
|
+
var PluginCanvasShapeOrigin = z76.enum([
|
|
5403
5606
|
"view",
|
|
5404
5607
|
"aiOutput",
|
|
5405
5608
|
"diagram",
|
|
@@ -5408,65 +5611,65 @@ var PluginCanvasShapeOrigin = z74.enum([
|
|
|
5408
5611
|
"image",
|
|
5409
5612
|
"other"
|
|
5410
5613
|
]);
|
|
5411
|
-
var PluginPlacedViewsMoveShapeArgs =
|
|
5412
|
-
shapeId:
|
|
5614
|
+
var PluginPlacedViewsMoveShapeArgs = z76.object({
|
|
5615
|
+
shapeId: z76.string().min(1),
|
|
5413
5616
|
position: PluginSheetPosition,
|
|
5414
|
-
sheetId:
|
|
5617
|
+
sheetId: z76.string().optional()
|
|
5415
5618
|
});
|
|
5416
|
-
var PluginPlacedViewsResizeShapeArgs =
|
|
5417
|
-
shapeId:
|
|
5418
|
-
factor:
|
|
5619
|
+
var PluginPlacedViewsResizeShapeArgs = z76.object({
|
|
5620
|
+
shapeId: z76.string().min(1),
|
|
5621
|
+
factor: z76.number().finite().min(0.01).max(100)
|
|
5419
5622
|
});
|
|
5420
|
-
var PluginPresentationPlacedViewsRotateShapeArgs =
|
|
5421
|
-
shapeId:
|
|
5422
|
-
rotation:
|
|
5623
|
+
var PluginPresentationPlacedViewsRotateShapeArgs = z76.object({
|
|
5624
|
+
shapeId: z76.string().min(1),
|
|
5625
|
+
rotation: z76.number().finite()
|
|
5423
5626
|
});
|
|
5424
|
-
var PluginPlacedViewsDeleteShapesArgs =
|
|
5425
|
-
shapeIds:
|
|
5627
|
+
var PluginPlacedViewsDeleteShapesArgs = z76.object({
|
|
5628
|
+
shapeIds: z76.array(z76.string().min(1)).min(1).max(500)
|
|
5426
5629
|
});
|
|
5427
|
-
var PluginPlacedViewsSetOpacityArgs =
|
|
5428
|
-
shapeId:
|
|
5429
|
-
opacity:
|
|
5630
|
+
var PluginPlacedViewsSetOpacityArgs = z76.object({
|
|
5631
|
+
shapeId: z76.string().min(1),
|
|
5632
|
+
opacity: z76.number().finite().min(0).max(1)
|
|
5430
5633
|
});
|
|
5431
|
-
var PluginPlacedViewsSetMaskArgs =
|
|
5432
|
-
shapeId:
|
|
5433
|
-
enabled:
|
|
5634
|
+
var PluginPlacedViewsSetMaskArgs = z76.object({
|
|
5635
|
+
shapeId: z76.string().min(1),
|
|
5636
|
+
enabled: z76.boolean()
|
|
5434
5637
|
});
|
|
5435
5638
|
|
|
5436
5639
|
// src/api/presentation/diagrams.ts
|
|
5437
|
-
var
|
|
5640
|
+
var z77 = __toESM(require("zod"), 1);
|
|
5438
5641
|
var PluginPresentationDiagramsApi = class {
|
|
5439
5642
|
constructor() {
|
|
5440
5643
|
}
|
|
5441
5644
|
};
|
|
5442
|
-
var PluginPresentationDiagramsPlaceArgs =
|
|
5443
|
-
sheetId:
|
|
5444
|
-
urls:
|
|
5445
|
-
position:
|
|
5645
|
+
var PluginPresentationDiagramsPlaceArgs = z77.object({
|
|
5646
|
+
sheetId: z77.string(),
|
|
5647
|
+
urls: z77.array(z77.string()),
|
|
5648
|
+
position: z77.object({ x: z77.number(), y: z77.number() }).optional()
|
|
5446
5649
|
});
|
|
5447
|
-
var PluginPresentationDiagramsPlaceResult =
|
|
5448
|
-
shapeIds:
|
|
5650
|
+
var PluginPresentationDiagramsPlaceResult = z77.object({
|
|
5651
|
+
shapeIds: z77.array(z77.string())
|
|
5449
5652
|
});
|
|
5450
|
-
var PluginPresentationSiteDiagramType =
|
|
5653
|
+
var PluginPresentationSiteDiagramType = z77.enum([
|
|
5451
5654
|
"location",
|
|
5452
5655
|
"streetview",
|
|
5453
5656
|
"climate"
|
|
5454
5657
|
]);
|
|
5455
|
-
var PluginPresentationDiagramsGenerateSiteArgs =
|
|
5456
|
-
types:
|
|
5658
|
+
var PluginPresentationDiagramsGenerateSiteArgs = z77.object({
|
|
5659
|
+
types: z77.array(PluginPresentationSiteDiagramType).min(1).optional()
|
|
5457
5660
|
});
|
|
5458
|
-
var PluginPresentationDiagramsGenerateResult =
|
|
5459
|
-
sheetIds:
|
|
5661
|
+
var PluginPresentationDiagramsGenerateResult = z77.object({
|
|
5662
|
+
sheetIds: z77.array(z77.string())
|
|
5460
5663
|
});
|
|
5461
5664
|
|
|
5462
5665
|
// src/api/presentation/annotate.ts
|
|
5463
|
-
var
|
|
5666
|
+
var z78 = __toESM(require("zod"), 1);
|
|
5464
5667
|
var PluginPresentationAnnotateApi = class {
|
|
5465
5668
|
constructor() {
|
|
5466
5669
|
}
|
|
5467
5670
|
};
|
|
5468
|
-
var PluginAnnotateTextSize =
|
|
5469
|
-
var PluginAnnotateTextColor =
|
|
5671
|
+
var PluginAnnotateTextSize = z78.enum(["s", "m", "l", "xl"]);
|
|
5672
|
+
var PluginAnnotateTextColor = z78.enum([
|
|
5470
5673
|
"black",
|
|
5471
5674
|
"grey",
|
|
5472
5675
|
"light-violet",
|
|
@@ -5481,23 +5684,23 @@ var PluginAnnotateTextColor = z76.enum([
|
|
|
5481
5684
|
"red",
|
|
5482
5685
|
"white"
|
|
5483
5686
|
]);
|
|
5484
|
-
var PluginPresentationAnnotateTextArgs =
|
|
5485
|
-
sheetId:
|
|
5486
|
-
text:
|
|
5487
|
-
position:
|
|
5687
|
+
var PluginPresentationAnnotateTextArgs = z78.object({
|
|
5688
|
+
sheetId: z78.string(),
|
|
5689
|
+
text: z78.string(),
|
|
5690
|
+
position: z78.object({ x: z78.number(), y: z78.number() }).optional(),
|
|
5488
5691
|
size: PluginAnnotateTextSize.optional(),
|
|
5489
5692
|
color: PluginAnnotateTextColor.optional(),
|
|
5490
|
-
fontFamily:
|
|
5491
|
-
fontWeight:
|
|
5693
|
+
fontFamily: z78.string().min(1).optional(),
|
|
5694
|
+
fontWeight: z78.string().regex(
|
|
5492
5695
|
/^\d{3}(-italic)?$/,
|
|
5493
5696
|
'fontWeight must be a numeric string like "400" or "700", optionally with the "-italic" suffix'
|
|
5494
5697
|
).optional(),
|
|
5495
|
-
fontSizePx:
|
|
5698
|
+
fontSizePx: z78.number().finite().positive().optional()
|
|
5496
5699
|
});
|
|
5497
|
-
var PluginPresentationAnnotateTextResult =
|
|
5498
|
-
shapeId:
|
|
5700
|
+
var PluginPresentationAnnotateTextResult = z78.object({
|
|
5701
|
+
shapeId: z78.string()
|
|
5499
5702
|
});
|
|
5500
|
-
var PluginAnnotateGeoKind =
|
|
5703
|
+
var PluginAnnotateGeoKind = z78.enum([
|
|
5501
5704
|
"rectangle",
|
|
5502
5705
|
"ellipse",
|
|
5503
5706
|
"triangle",
|
|
@@ -5515,358 +5718,358 @@ var PluginAnnotateGeoKind = z76.enum([
|
|
|
5515
5718
|
"arrow-right",
|
|
5516
5719
|
"arrow-down"
|
|
5517
5720
|
]);
|
|
5518
|
-
var PluginAnnotateFill =
|
|
5519
|
-
var PluginPresentationAnnotateArrowArgs =
|
|
5520
|
-
sheetId:
|
|
5521
|
-
start:
|
|
5522
|
-
end:
|
|
5721
|
+
var PluginAnnotateFill = z78.enum(["none", "semi", "solid", "pattern"]);
|
|
5722
|
+
var PluginPresentationAnnotateArrowArgs = z78.object({
|
|
5723
|
+
sheetId: z78.string(),
|
|
5724
|
+
start: z78.object({ x: z78.number(), y: z78.number() }),
|
|
5725
|
+
end: z78.object({ x: z78.number(), y: z78.number() }),
|
|
5523
5726
|
color: PluginAnnotateTextColor.optional(),
|
|
5524
5727
|
size: PluginAnnotateTextSize.optional()
|
|
5525
5728
|
});
|
|
5526
|
-
var PluginPresentationAnnotateNoteArgs =
|
|
5527
|
-
sheetId:
|
|
5528
|
-
text:
|
|
5529
|
-
position:
|
|
5729
|
+
var PluginPresentationAnnotateNoteArgs = z78.object({
|
|
5730
|
+
sheetId: z78.string(),
|
|
5731
|
+
text: z78.string(),
|
|
5732
|
+
position: z78.object({ x: z78.number(), y: z78.number() }).optional(),
|
|
5530
5733
|
color: PluginAnnotateTextColor.optional(),
|
|
5531
5734
|
size: PluginAnnotateTextSize.optional()
|
|
5532
5735
|
});
|
|
5533
|
-
var PluginPresentationAnnotateShapeArgs =
|
|
5534
|
-
sheetId:
|
|
5736
|
+
var PluginPresentationAnnotateShapeArgs = z78.object({
|
|
5737
|
+
sheetId: z78.string(),
|
|
5535
5738
|
kind: PluginAnnotateGeoKind,
|
|
5536
|
-
bounds:
|
|
5537
|
-
x:
|
|
5538
|
-
y:
|
|
5539
|
-
w:
|
|
5540
|
-
h:
|
|
5739
|
+
bounds: z78.object({
|
|
5740
|
+
x: z78.number(),
|
|
5741
|
+
y: z78.number(),
|
|
5742
|
+
w: z78.number().positive(),
|
|
5743
|
+
h: z78.number().positive()
|
|
5541
5744
|
}),
|
|
5542
5745
|
color: PluginAnnotateTextColor.optional(),
|
|
5543
5746
|
fill: PluginAnnotateFill.optional()
|
|
5544
5747
|
});
|
|
5545
|
-
var PluginPresentationAnnotateResult =
|
|
5546
|
-
shapeId:
|
|
5748
|
+
var PluginPresentationAnnotateResult = z78.object({
|
|
5749
|
+
shapeId: z78.string()
|
|
5547
5750
|
});
|
|
5548
5751
|
|
|
5549
5752
|
// src/api/presentation/shapes.ts
|
|
5550
|
-
var
|
|
5753
|
+
var z79 = __toESM(require("zod"), 1);
|
|
5551
5754
|
var PluginPresentationShapesApi = class {
|
|
5552
5755
|
constructor() {
|
|
5553
5756
|
}
|
|
5554
5757
|
};
|
|
5555
|
-
var PluginPresentationShapeSpec =
|
|
5556
|
-
|
|
5557
|
-
type:
|
|
5558
|
-
text:
|
|
5559
|
-
position:
|
|
5758
|
+
var PluginPresentationShapeSpec = z79.discriminatedUnion("type", [
|
|
5759
|
+
z79.object({
|
|
5760
|
+
type: z79.literal("text"),
|
|
5761
|
+
text: z79.string(),
|
|
5762
|
+
position: z79.object({ x: z79.number(), y: z79.number() }).optional(),
|
|
5560
5763
|
size: PluginAnnotateTextSize.optional(),
|
|
5561
5764
|
color: PluginAnnotateTextColor.optional()
|
|
5562
5765
|
}),
|
|
5563
|
-
|
|
5564
|
-
type:
|
|
5565
|
-
text:
|
|
5566
|
-
position:
|
|
5766
|
+
z79.object({
|
|
5767
|
+
type: z79.literal("note"),
|
|
5768
|
+
text: z79.string(),
|
|
5769
|
+
position: z79.object({ x: z79.number(), y: z79.number() }).optional(),
|
|
5567
5770
|
color: PluginAnnotateTextColor.optional(),
|
|
5568
5771
|
size: PluginAnnotateTextSize.optional()
|
|
5569
5772
|
}),
|
|
5570
|
-
|
|
5571
|
-
type:
|
|
5572
|
-
start:
|
|
5573
|
-
end:
|
|
5773
|
+
z79.object({
|
|
5774
|
+
type: z79.literal("arrow"),
|
|
5775
|
+
start: z79.object({ x: z79.number(), y: z79.number() }),
|
|
5776
|
+
end: z79.object({ x: z79.number(), y: z79.number() }),
|
|
5574
5777
|
color: PluginAnnotateTextColor.optional(),
|
|
5575
5778
|
size: PluginAnnotateTextSize.optional()
|
|
5576
5779
|
}),
|
|
5577
|
-
|
|
5578
|
-
type:
|
|
5780
|
+
z79.object({
|
|
5781
|
+
type: z79.literal("geo"),
|
|
5579
5782
|
kind: PluginAnnotateGeoKind,
|
|
5580
|
-
bounds:
|
|
5581
|
-
x:
|
|
5582
|
-
y:
|
|
5583
|
-
w:
|
|
5584
|
-
h:
|
|
5783
|
+
bounds: z79.object({
|
|
5784
|
+
x: z79.number(),
|
|
5785
|
+
y: z79.number(),
|
|
5786
|
+
w: z79.number().positive(),
|
|
5787
|
+
h: z79.number().positive()
|
|
5585
5788
|
}),
|
|
5586
5789
|
color: PluginAnnotateTextColor.optional(),
|
|
5587
5790
|
fill: PluginAnnotateFill.optional()
|
|
5588
5791
|
})
|
|
5589
5792
|
]);
|
|
5590
|
-
var PluginPresentationShapeType =
|
|
5793
|
+
var PluginPresentationShapeType = z79.enum([
|
|
5591
5794
|
"text",
|
|
5592
5795
|
"note",
|
|
5593
5796
|
"arrow",
|
|
5594
5797
|
"geo"
|
|
5595
5798
|
]);
|
|
5596
|
-
var PluginPresentationShapesUpsertArgs =
|
|
5597
|
-
key:
|
|
5799
|
+
var PluginPresentationShapesUpsertArgs = z79.object({
|
|
5800
|
+
key: z79.string().min(1),
|
|
5598
5801
|
shape: PluginPresentationShapeSpec,
|
|
5599
|
-
sheetId:
|
|
5802
|
+
sheetId: z79.string().optional()
|
|
5600
5803
|
});
|
|
5601
|
-
var PluginPresentationShapesUpsertResult =
|
|
5602
|
-
shapeId:
|
|
5603
|
-
created:
|
|
5804
|
+
var PluginPresentationShapesUpsertResult = z79.object({
|
|
5805
|
+
shapeId: z79.string(),
|
|
5806
|
+
created: z79.boolean()
|
|
5604
5807
|
});
|
|
5605
|
-
var PluginPresentationShapesRemoveArgs =
|
|
5606
|
-
key:
|
|
5808
|
+
var PluginPresentationShapesRemoveArgs = z79.object({
|
|
5809
|
+
key: z79.string().min(1)
|
|
5607
5810
|
});
|
|
5608
|
-
var PluginPresentationShapesListResult =
|
|
5609
|
-
shapes:
|
|
5610
|
-
|
|
5611
|
-
key:
|
|
5612
|
-
shapeId:
|
|
5811
|
+
var PluginPresentationShapesListResult = z79.object({
|
|
5812
|
+
shapes: z79.array(
|
|
5813
|
+
z79.object({
|
|
5814
|
+
key: z79.string(),
|
|
5815
|
+
shapeId: z79.string(),
|
|
5613
5816
|
type: PluginPresentationShapeType
|
|
5614
5817
|
})
|
|
5615
5818
|
)
|
|
5616
5819
|
});
|
|
5617
5820
|
|
|
5618
5821
|
// src/api/presentation/tables.ts
|
|
5619
|
-
var
|
|
5822
|
+
var z80 = __toESM(require("zod"), 1);
|
|
5620
5823
|
var PluginPresentationTablesApi = class {
|
|
5621
5824
|
constructor() {
|
|
5622
5825
|
}
|
|
5623
5826
|
};
|
|
5624
|
-
var PluginPresentationTablesPlaceArgs =
|
|
5625
|
-
sheetId:
|
|
5626
|
-
rows:
|
|
5827
|
+
var PluginPresentationTablesPlaceArgs = z80.object({
|
|
5828
|
+
sheetId: z80.string().min(1),
|
|
5829
|
+
rows: z80.array(z80.array(z80.string()).min(1)).min(1).refine((rows) => rows.reduce((n, r) => n + r.length, 0) <= 1e4, {
|
|
5627
5830
|
message: "table exceeds the 10000-cell cap"
|
|
5628
5831
|
}),
|
|
5629
|
-
position:
|
|
5832
|
+
position: z80.object({ x: z80.number(), y: z80.number() }).optional()
|
|
5630
5833
|
});
|
|
5631
5834
|
|
|
5632
5835
|
// src/api/presentation/slideshow.ts
|
|
5633
|
-
var
|
|
5836
|
+
var z81 = __toESM(require("zod"), 1);
|
|
5634
5837
|
var PluginPresentationSlideshowApi = class {
|
|
5635
5838
|
constructor() {
|
|
5636
5839
|
}
|
|
5637
5840
|
};
|
|
5638
|
-
var PluginPresentationSlideshowStartArgs =
|
|
5639
|
-
sheetIds:
|
|
5640
|
-
startIndex:
|
|
5841
|
+
var PluginPresentationSlideshowStartArgs = z81.object({
|
|
5842
|
+
sheetIds: z81.array(z81.string().min(1)).optional(),
|
|
5843
|
+
startIndex: z81.number().int().min(0).optional()
|
|
5641
5844
|
});
|
|
5642
|
-
var PluginPresentationSlideshowState =
|
|
5643
|
-
running:
|
|
5644
|
-
index:
|
|
5845
|
+
var PluginPresentationSlideshowState = z81.object({
|
|
5846
|
+
running: z81.boolean(),
|
|
5847
|
+
index: z81.number().int().nullable()
|
|
5645
5848
|
});
|
|
5646
5849
|
|
|
5647
5850
|
// src/api/presentation/import.ts
|
|
5648
|
-
var
|
|
5851
|
+
var z82 = __toESM(require("zod"), 1);
|
|
5649
5852
|
var PluginPresentationImportApi = class {
|
|
5650
5853
|
constructor() {
|
|
5651
5854
|
}
|
|
5652
5855
|
};
|
|
5653
|
-
var PluginPresentationImportArgs =
|
|
5654
|
-
url:
|
|
5655
|
-
dataUrl:
|
|
5656
|
-
position:
|
|
5856
|
+
var PluginPresentationImportArgs = z82.object({
|
|
5857
|
+
url: z82.string().optional(),
|
|
5858
|
+
dataUrl: z82.string().optional(),
|
|
5859
|
+
position: z82.object({ x: z82.number(), y: z82.number() }).optional()
|
|
5657
5860
|
}).refine((a) => Boolean(a.url) || Boolean(a.dataUrl), {
|
|
5658
5861
|
message: "Provide a url or a dataUrl"
|
|
5659
5862
|
});
|
|
5660
|
-
var PluginPresentationImportResult =
|
|
5661
|
-
shapeIds:
|
|
5863
|
+
var PluginPresentationImportResult = z82.object({
|
|
5864
|
+
shapeIds: z82.array(z82.string())
|
|
5662
5865
|
});
|
|
5663
5866
|
|
|
5664
5867
|
// src/api/presentation/aiInspiration.ts
|
|
5665
|
-
var
|
|
5666
|
-
var JsonPrimitive =
|
|
5667
|
-
var JsonValue =
|
|
5668
|
-
() =>
|
|
5868
|
+
var z83 = __toESM(require("zod"), 1);
|
|
5869
|
+
var JsonPrimitive = z83.union([z83.string(), z83.number(), z83.boolean(), z83.null()]);
|
|
5870
|
+
var JsonValue = z83.lazy(
|
|
5871
|
+
() => z83.union([JsonPrimitive, z83.array(JsonValue), z83.record(z83.string(), JsonValue)])
|
|
5669
5872
|
);
|
|
5670
|
-
var PluginAIInspirationRunMode =
|
|
5671
|
-
var PluginAIInspirationOutputKind =
|
|
5873
|
+
var PluginAIInspirationRunMode = z83.enum(["blocking", "job"]);
|
|
5874
|
+
var PluginAIInspirationOutputKind = z83.enum([
|
|
5672
5875
|
"source",
|
|
5673
5876
|
"image",
|
|
5674
5877
|
"video"
|
|
5675
5878
|
]);
|
|
5676
|
-
var PluginAIInspirationModelOutput =
|
|
5677
|
-
var PluginAIInspirationRuntimeProvider =
|
|
5678
|
-
var PluginAIInspirationPromptStrategy =
|
|
5879
|
+
var PluginAIInspirationModelOutput = z83.enum(["image", "video"]);
|
|
5880
|
+
var PluginAIInspirationRuntimeProvider = z83.enum(["gpt", "fal"]);
|
|
5881
|
+
var PluginAIInspirationPromptStrategy = z83.enum([
|
|
5679
5882
|
"gpt-image",
|
|
5680
5883
|
"fal-image",
|
|
5681
5884
|
"fal-video"
|
|
5682
5885
|
]);
|
|
5683
|
-
var PluginAIInspirationShapeKind =
|
|
5684
|
-
var PluginAIInspirationVideoMode =
|
|
5886
|
+
var PluginAIInspirationShapeKind = z83.enum(["image", "view", "video"]);
|
|
5887
|
+
var PluginAIInspirationVideoMode = z83.enum([
|
|
5685
5888
|
"animate",
|
|
5686
5889
|
"references",
|
|
5687
5890
|
"keyframes"
|
|
5688
5891
|
]);
|
|
5689
|
-
var PluginAIInspirationVideoMotion =
|
|
5892
|
+
var PluginAIInspirationVideoMotion = z83.enum([
|
|
5690
5893
|
"auto",
|
|
5691
5894
|
"slow-dolly",
|
|
5692
5895
|
"subtle-orbit",
|
|
5693
5896
|
"reveal"
|
|
5694
5897
|
]);
|
|
5695
|
-
var PluginAIInspirationVideoDuration =
|
|
5696
|
-
var PluginAIInspirationJobStatus =
|
|
5898
|
+
var PluginAIInspirationVideoDuration = z83.enum(["4s", "6s", "8s"]);
|
|
5899
|
+
var PluginAIInspirationJobStatus = z83.enum([
|
|
5697
5900
|
"queued",
|
|
5698
5901
|
"running",
|
|
5699
5902
|
"completed",
|
|
5700
5903
|
"failed",
|
|
5701
5904
|
"cancelled"
|
|
5702
5905
|
]);
|
|
5703
|
-
var PluginAIInspirationWorkflowRunState =
|
|
5906
|
+
var PluginAIInspirationWorkflowRunState = z83.enum([
|
|
5704
5907
|
"current",
|
|
5705
5908
|
"stale",
|
|
5706
5909
|
"running",
|
|
5707
5910
|
"failed",
|
|
5708
5911
|
"superseded"
|
|
5709
5912
|
]);
|
|
5710
|
-
var PluginAIInspirationRegionHint =
|
|
5711
|
-
x:
|
|
5712
|
-
y:
|
|
5713
|
-
w:
|
|
5714
|
-
h:
|
|
5715
|
-
});
|
|
5716
|
-
var PluginAIInspirationPoint =
|
|
5717
|
-
x:
|
|
5718
|
-
y:
|
|
5719
|
-
});
|
|
5720
|
-
var PluginAIInspirationTextAnnotation =
|
|
5721
|
-
text:
|
|
5722
|
-
x:
|
|
5723
|
-
y:
|
|
5724
|
-
});
|
|
5725
|
-
var PluginAIInspirationSketchGuidance =
|
|
5726
|
-
visualShapeIds:
|
|
5727
|
-
textAnnotations:
|
|
5728
|
-
});
|
|
5729
|
-
var PluginAIInspirationSiteOptions =
|
|
5730
|
-
includeSatellite:
|
|
5731
|
-
includeStreetView:
|
|
5732
|
-
includeAerial:
|
|
5733
|
-
aerialBearing:
|
|
5734
|
-
aerialPitch:
|
|
5735
|
-
selectedDiagramIds:
|
|
5736
|
-
location:
|
|
5737
|
-
lat:
|
|
5738
|
-
lng:
|
|
5913
|
+
var PluginAIInspirationRegionHint = z83.object({
|
|
5914
|
+
x: z83.number().finite(),
|
|
5915
|
+
y: z83.number().finite(),
|
|
5916
|
+
w: z83.number().finite().positive(),
|
|
5917
|
+
h: z83.number().finite().positive()
|
|
5918
|
+
});
|
|
5919
|
+
var PluginAIInspirationPoint = z83.object({
|
|
5920
|
+
x: z83.number().finite(),
|
|
5921
|
+
y: z83.number().finite()
|
|
5922
|
+
});
|
|
5923
|
+
var PluginAIInspirationTextAnnotation = z83.object({
|
|
5924
|
+
text: z83.string().min(1),
|
|
5925
|
+
x: z83.number().finite().optional(),
|
|
5926
|
+
y: z83.number().finite().optional()
|
|
5927
|
+
});
|
|
5928
|
+
var PluginAIInspirationSketchGuidance = z83.object({
|
|
5929
|
+
visualShapeIds: z83.array(z83.string()).optional(),
|
|
5930
|
+
textAnnotations: z83.array(PluginAIInspirationTextAnnotation).optional()
|
|
5931
|
+
});
|
|
5932
|
+
var PluginAIInspirationSiteOptions = z83.object({
|
|
5933
|
+
includeSatellite: z83.boolean().optional(),
|
|
5934
|
+
includeStreetView: z83.boolean().optional(),
|
|
5935
|
+
includeAerial: z83.boolean().optional(),
|
|
5936
|
+
aerialBearing: z83.number().finite().optional(),
|
|
5937
|
+
aerialPitch: z83.number().finite().optional(),
|
|
5938
|
+
selectedDiagramIds: z83.array(z83.string()).optional(),
|
|
5939
|
+
location: z83.object({
|
|
5940
|
+
lat: z83.number().finite(),
|
|
5941
|
+
lng: z83.number().finite()
|
|
5739
5942
|
}).optional()
|
|
5740
5943
|
});
|
|
5741
|
-
var PluginAIInspirationAppliedPreset =
|
|
5742
|
-
source:
|
|
5743
|
-
presetId:
|
|
5744
|
-
name:
|
|
5745
|
-
savedPresetKind:
|
|
5746
|
-
stylePrompt:
|
|
5747
|
-
modelId:
|
|
5748
|
-
referenceImages:
|
|
5749
|
-
|
|
5750
|
-
url:
|
|
5751
|
-
label:
|
|
5752
|
-
weight:
|
|
5944
|
+
var PluginAIInspirationAppliedPreset = z83.object({
|
|
5945
|
+
source: z83.enum(["curated", "user"]),
|
|
5946
|
+
presetId: z83.string().min(1),
|
|
5947
|
+
name: z83.string().min(1),
|
|
5948
|
+
savedPresetKind: z83.enum(["prompt", "style"]).optional(),
|
|
5949
|
+
stylePrompt: z83.string().optional(),
|
|
5950
|
+
modelId: z83.string().optional(),
|
|
5951
|
+
referenceImages: z83.array(
|
|
5952
|
+
z83.object({
|
|
5953
|
+
url: z83.string().min(1),
|
|
5954
|
+
label: z83.string().optional(),
|
|
5955
|
+
weight: z83.number().finite().optional()
|
|
5753
5956
|
})
|
|
5754
5957
|
).optional(),
|
|
5755
|
-
siteDefaults:
|
|
5756
|
-
includeSatellite:
|
|
5757
|
-
includeStreetView:
|
|
5758
|
-
includeAerial:
|
|
5958
|
+
siteDefaults: z83.object({
|
|
5959
|
+
includeSatellite: z83.boolean().optional(),
|
|
5960
|
+
includeStreetView: z83.boolean().optional(),
|
|
5961
|
+
includeAerial: z83.boolean().optional()
|
|
5759
5962
|
}).optional()
|
|
5760
5963
|
});
|
|
5761
|
-
var PluginAIInspirationVideoOptions =
|
|
5964
|
+
var PluginAIInspirationVideoOptions = z83.object({
|
|
5762
5965
|
mode: PluginAIInspirationVideoMode.optional(),
|
|
5763
|
-
endFrameShapeId:
|
|
5966
|
+
endFrameShapeId: z83.string().optional(),
|
|
5764
5967
|
motion: PluginAIInspirationVideoMotion.optional(),
|
|
5765
5968
|
duration: PluginAIInspirationVideoDuration.optional()
|
|
5766
5969
|
});
|
|
5767
|
-
var PluginAIInspirationModel =
|
|
5768
|
-
id:
|
|
5769
|
-
label:
|
|
5770
|
-
supportsMultiImage:
|
|
5970
|
+
var PluginAIInspirationModel = z83.object({
|
|
5971
|
+
id: z83.string(),
|
|
5972
|
+
label: z83.string(),
|
|
5973
|
+
supportsMultiImage: z83.boolean(),
|
|
5771
5974
|
output: PluginAIInspirationModelOutput,
|
|
5772
|
-
isDefault:
|
|
5975
|
+
isDefault: z83.boolean().optional()
|
|
5773
5976
|
});
|
|
5774
|
-
var PluginAIInspirationModelCapability =
|
|
5775
|
-
id:
|
|
5977
|
+
var PluginAIInspirationModelCapability = z83.object({
|
|
5978
|
+
id: z83.string(),
|
|
5776
5979
|
output: PluginAIInspirationModelOutput,
|
|
5777
5980
|
provider: PluginAIInspirationRuntimeProvider,
|
|
5778
|
-
supportsRegionEdit:
|
|
5779
|
-
supportsReferenceImages:
|
|
5780
|
-
supportsStylePresets:
|
|
5781
|
-
supportsSiteContext:
|
|
5782
|
-
supportsSketchGuidance:
|
|
5783
|
-
supportsKeyframes:
|
|
5784
|
-
maxExtraImages:
|
|
5981
|
+
supportsRegionEdit: z83.boolean(),
|
|
5982
|
+
supportsReferenceImages: z83.boolean(),
|
|
5983
|
+
supportsStylePresets: z83.boolean(),
|
|
5984
|
+
supportsSiteContext: z83.boolean(),
|
|
5985
|
+
supportsSketchGuidance: z83.boolean(),
|
|
5986
|
+
supportsKeyframes: z83.boolean(),
|
|
5987
|
+
maxExtraImages: z83.number().int().nonnegative(),
|
|
5785
5988
|
promptStrategy: PluginAIInspirationPromptStrategy
|
|
5786
5989
|
});
|
|
5787
|
-
var PluginAIInspirationListModelsResult =
|
|
5788
|
-
defaultModelId:
|
|
5789
|
-
models:
|
|
5990
|
+
var PluginAIInspirationListModelsResult = z83.object({
|
|
5991
|
+
defaultModelId: z83.string(),
|
|
5992
|
+
models: z83.array(PluginAIInspirationModel)
|
|
5790
5993
|
});
|
|
5791
|
-
var PluginAIInspirationGetModelCapabilitiesArgs =
|
|
5792
|
-
modelId:
|
|
5994
|
+
var PluginAIInspirationGetModelCapabilitiesArgs = z83.object({
|
|
5995
|
+
modelId: z83.string().min(1)
|
|
5793
5996
|
});
|
|
5794
|
-
var PluginAIInspirationGetModelCapabilitiesResult =
|
|
5997
|
+
var PluginAIInspirationGetModelCapabilitiesResult = z83.object({
|
|
5795
5998
|
capability: PluginAIInspirationModelCapability
|
|
5796
5999
|
});
|
|
5797
|
-
var PluginAIInspirationShapeRef =
|
|
5798
|
-
shapeId:
|
|
5799
|
-
assetId:
|
|
6000
|
+
var PluginAIInspirationShapeRef = z83.object({
|
|
6001
|
+
shapeId: z83.string(),
|
|
6002
|
+
assetId: z83.string().optional(),
|
|
5800
6003
|
kind: PluginAIInspirationShapeKind,
|
|
5801
|
-
name:
|
|
5802
|
-
width:
|
|
5803
|
-
height:
|
|
6004
|
+
name: z83.string().optional(),
|
|
6005
|
+
width: z83.number().finite().optional(),
|
|
6006
|
+
height: z83.number().finite().optional(),
|
|
5804
6007
|
outputType: PluginAIInspirationOutputKind.optional(),
|
|
5805
|
-
sourceUrl:
|
|
5806
|
-
});
|
|
5807
|
-
var PluginAIInspirationListSourcesArgs =
|
|
5808
|
-
includeGenerated:
|
|
5809
|
-
includeSourceUrl:
|
|
5810
|
-
});
|
|
5811
|
-
var PluginAIInspirationListSourcesResult =
|
|
5812
|
-
sources:
|
|
5813
|
-
});
|
|
5814
|
-
var PluginAIInspirationGetSelectionResult =
|
|
5815
|
-
selectedShapeIds:
|
|
5816
|
-
sources:
|
|
5817
|
-
});
|
|
5818
|
-
var PluginAIInspirationPresetReferenceImage =
|
|
5819
|
-
url:
|
|
5820
|
-
label:
|
|
5821
|
-
weight:
|
|
5822
|
-
});
|
|
5823
|
-
var PluginAIInspirationPreset =
|
|
5824
|
-
id:
|
|
5825
|
-
name:
|
|
5826
|
-
source:
|
|
5827
|
-
modelId:
|
|
5828
|
-
categoryId:
|
|
5829
|
-
categoryLabel:
|
|
5830
|
-
description:
|
|
5831
|
-
previewImageUrl:
|
|
5832
|
-
prompt:
|
|
5833
|
-
stylePrompt:
|
|
5834
|
-
tags:
|
|
5835
|
-
referenceImages:
|
|
6008
|
+
sourceUrl: z83.string().optional()
|
|
6009
|
+
});
|
|
6010
|
+
var PluginAIInspirationListSourcesArgs = z83.object({
|
|
6011
|
+
includeGenerated: z83.boolean().optional(),
|
|
6012
|
+
includeSourceUrl: z83.boolean().optional()
|
|
6013
|
+
});
|
|
6014
|
+
var PluginAIInspirationListSourcesResult = z83.object({
|
|
6015
|
+
sources: z83.array(PluginAIInspirationShapeRef)
|
|
6016
|
+
});
|
|
6017
|
+
var PluginAIInspirationGetSelectionResult = z83.object({
|
|
6018
|
+
selectedShapeIds: z83.array(z83.string()),
|
|
6019
|
+
sources: z83.array(PluginAIInspirationShapeRef)
|
|
6020
|
+
});
|
|
6021
|
+
var PluginAIInspirationPresetReferenceImage = z83.object({
|
|
6022
|
+
url: z83.string(),
|
|
6023
|
+
label: z83.string().optional(),
|
|
6024
|
+
weight: z83.number().finite().optional()
|
|
6025
|
+
});
|
|
6026
|
+
var PluginAIInspirationPreset = z83.object({
|
|
6027
|
+
id: z83.string(),
|
|
6028
|
+
name: z83.string(),
|
|
6029
|
+
source: z83.enum(["curated", "user"]),
|
|
6030
|
+
modelId: z83.string(),
|
|
6031
|
+
categoryId: z83.string().optional(),
|
|
6032
|
+
categoryLabel: z83.string().optional(),
|
|
6033
|
+
description: z83.string().optional(),
|
|
6034
|
+
previewImageUrl: z83.string().optional(),
|
|
6035
|
+
prompt: z83.string().optional(),
|
|
6036
|
+
stylePrompt: z83.string().optional(),
|
|
6037
|
+
tags: z83.array(z83.string()).optional(),
|
|
6038
|
+
referenceImages: z83.array(PluginAIInspirationPresetReferenceImage).optional(),
|
|
5836
6039
|
siteDefaults: PluginAIInspirationAppliedPreset.shape.siteDefaults.optional()
|
|
5837
6040
|
});
|
|
5838
|
-
var PluginAIInspirationPresetCategory =
|
|
5839
|
-
id:
|
|
5840
|
-
label:
|
|
5841
|
-
description:
|
|
6041
|
+
var PluginAIInspirationPresetCategory = z83.object({
|
|
6042
|
+
id: z83.string(),
|
|
6043
|
+
label: z83.string(),
|
|
6044
|
+
description: z83.string().optional()
|
|
5842
6045
|
});
|
|
5843
|
-
var PluginAIInspirationGetPresetCatalogResult =
|
|
5844
|
-
categories:
|
|
5845
|
-
presets:
|
|
6046
|
+
var PluginAIInspirationGetPresetCatalogResult = z83.object({
|
|
6047
|
+
categories: z83.array(PluginAIInspirationPresetCategory),
|
|
6048
|
+
presets: z83.array(PluginAIInspirationPreset)
|
|
5846
6049
|
});
|
|
5847
|
-
var PluginAIInspirationOutput =
|
|
5848
|
-
outputType:
|
|
5849
|
-
shapeId:
|
|
5850
|
-
assetId:
|
|
5851
|
-
outputUrl:
|
|
6050
|
+
var PluginAIInspirationOutput = z83.object({
|
|
6051
|
+
outputType: z83.enum(["image", "video"]),
|
|
6052
|
+
shapeId: z83.string(),
|
|
6053
|
+
assetId: z83.string(),
|
|
6054
|
+
outputUrl: z83.string().optional(),
|
|
5852
6055
|
position: PluginAIInspirationPoint.optional()
|
|
5853
6056
|
});
|
|
5854
|
-
var PluginAIInspirationDebugSummary =
|
|
5855
|
-
var PluginAIInspirationRunMetadata =
|
|
5856
|
-
geometryFidelity:
|
|
6057
|
+
var PluginAIInspirationDebugSummary = z83.record(z83.string(), JsonValue);
|
|
6058
|
+
var PluginAIInspirationRunMetadata = z83.object({
|
|
6059
|
+
geometryFidelity: z83.string().optional(),
|
|
5857
6060
|
debugSummary: PluginAIInspirationDebugSummary.optional(),
|
|
5858
|
-
streetViewComposite:
|
|
5859
|
-
used:
|
|
5860
|
-
renderMode:
|
|
5861
|
-
backgroundLabel:
|
|
6061
|
+
streetViewComposite: z83.object({
|
|
6062
|
+
used: z83.boolean(),
|
|
6063
|
+
renderMode: z83.enum(["prompt_refs_default", "masked_composite_pilot"]),
|
|
6064
|
+
backgroundLabel: z83.string().optional()
|
|
5862
6065
|
}).optional()
|
|
5863
6066
|
});
|
|
5864
|
-
var PluginAIInspirationGenerateArgs =
|
|
5865
|
-
sourceShapeId:
|
|
5866
|
-
prompt:
|
|
5867
|
-
modelId:
|
|
5868
|
-
referenceShapeIds:
|
|
5869
|
-
referenceStrength:
|
|
6067
|
+
var PluginAIInspirationGenerateArgs = z83.object({
|
|
6068
|
+
sourceShapeId: z83.string().min(1),
|
|
6069
|
+
prompt: z83.string().min(1).max(8e3),
|
|
6070
|
+
modelId: z83.string().optional(),
|
|
6071
|
+
referenceShapeIds: z83.array(z83.string()).max(12).optional(),
|
|
6072
|
+
referenceStrength: z83.enum(["low", "medium", "high"]).optional(),
|
|
5870
6073
|
appliedPreset: PluginAIInspirationAppliedPreset.optional(),
|
|
5871
6074
|
site: PluginAIInspirationSiteOptions.optional(),
|
|
5872
6075
|
regionHint: PluginAIInspirationRegionHint.optional(),
|
|
@@ -5874,129 +6077,129 @@ var PluginAIInspirationGenerateArgs = z81.object({
|
|
|
5874
6077
|
video: PluginAIInspirationVideoOptions.optional(),
|
|
5875
6078
|
runMode: PluginAIInspirationRunMode.optional()
|
|
5876
6079
|
});
|
|
5877
|
-
var PluginAIInspirationRunResult =
|
|
5878
|
-
jobId:
|
|
6080
|
+
var PluginAIInspirationRunResult = z83.object({
|
|
6081
|
+
jobId: z83.string().optional(),
|
|
5879
6082
|
output: PluginAIInspirationOutput.optional(),
|
|
5880
|
-
outputs:
|
|
6083
|
+
outputs: z83.array(PluginAIInspirationOutput).optional(),
|
|
5881
6084
|
metadata: PluginAIInspirationRunMetadata.optional()
|
|
5882
6085
|
});
|
|
5883
|
-
var PluginAIInspirationRefineArgs =
|
|
5884
|
-
sourceShapeId:
|
|
5885
|
-
upscaleFactor:
|
|
6086
|
+
var PluginAIInspirationRefineArgs = z83.object({
|
|
6087
|
+
sourceShapeId: z83.string().min(1),
|
|
6088
|
+
upscaleFactor: z83.union([z83.literal(1.5), z83.literal(2), z83.literal(4)]).optional(),
|
|
5886
6089
|
runMode: PluginAIInspirationRunMode.optional()
|
|
5887
6090
|
});
|
|
5888
|
-
var PluginAIInspirationJobProgress =
|
|
5889
|
-
currentStep:
|
|
5890
|
-
totalSteps:
|
|
5891
|
-
message:
|
|
6091
|
+
var PluginAIInspirationJobProgress = z83.object({
|
|
6092
|
+
currentStep: z83.number().int().nonnegative().optional(),
|
|
6093
|
+
totalSteps: z83.number().int().nonnegative().optional(),
|
|
6094
|
+
message: z83.string().optional()
|
|
5892
6095
|
});
|
|
5893
|
-
var PluginAIInspirationJob =
|
|
5894
|
-
jobId:
|
|
6096
|
+
var PluginAIInspirationJob = z83.object({
|
|
6097
|
+
jobId: z83.string(),
|
|
5895
6098
|
status: PluginAIInspirationJobStatus,
|
|
5896
|
-
createdAt:
|
|
5897
|
-
updatedAt:
|
|
5898
|
-
completedAt:
|
|
5899
|
-
method:
|
|
6099
|
+
createdAt: z83.number(),
|
|
6100
|
+
updatedAt: z83.number(),
|
|
6101
|
+
completedAt: z83.number().optional(),
|
|
6102
|
+
method: z83.string(),
|
|
5900
6103
|
progress: PluginAIInspirationJobProgress.optional(),
|
|
5901
6104
|
result: PluginAIInspirationRunResult.optional(),
|
|
5902
|
-
error:
|
|
6105
|
+
error: z83.string().optional()
|
|
5903
6106
|
});
|
|
5904
|
-
var PluginAIInspirationJobArgs =
|
|
5905
|
-
jobId:
|
|
6107
|
+
var PluginAIInspirationJobArgs = z83.object({
|
|
6108
|
+
jobId: z83.string().min(1)
|
|
5906
6109
|
});
|
|
5907
|
-
var PluginAIInspirationGetJobResult =
|
|
6110
|
+
var PluginAIInspirationGetJobResult = z83.object({
|
|
5908
6111
|
job: PluginAIInspirationJob
|
|
5909
6112
|
});
|
|
5910
|
-
var PluginAIInspirationCancelJobResult =
|
|
6113
|
+
var PluginAIInspirationCancelJobResult = z83.object({
|
|
5911
6114
|
job: PluginAIInspirationJob
|
|
5912
6115
|
});
|
|
5913
|
-
var PluginAIInspirationListJobsResult =
|
|
5914
|
-
jobs:
|
|
6116
|
+
var PluginAIInspirationListJobsResult = z83.object({
|
|
6117
|
+
jobs: z83.array(PluginAIInspirationJob)
|
|
5915
6118
|
});
|
|
5916
|
-
var PluginAIInspirationWorkflowVideoConfig =
|
|
5917
|
-
mode:
|
|
5918
|
-
motion:
|
|
5919
|
-
duration:
|
|
5920
|
-
endFrameShapeId:
|
|
6119
|
+
var PluginAIInspirationWorkflowVideoConfig = z83.object({
|
|
6120
|
+
mode: z83.string().optional(),
|
|
6121
|
+
motion: z83.string().optional(),
|
|
6122
|
+
duration: z83.string().optional(),
|
|
6123
|
+
endFrameShapeId: z83.string().optional()
|
|
5921
6124
|
});
|
|
5922
|
-
var PluginAIInspirationGenerationInputSnapshot =
|
|
5923
|
-
version:
|
|
5924
|
-
meta:
|
|
6125
|
+
var PluginAIInspirationGenerationInputSnapshot = z83.object({
|
|
6126
|
+
version: z83.literal(1),
|
|
6127
|
+
meta: z83.record(z83.string(), JsonValue),
|
|
5925
6128
|
regionHint: PluginAIInspirationRegionHint.optional(),
|
|
5926
|
-
sketchGuidance:
|
|
5927
|
-
sourceCameraHeading:
|
|
5928
|
-
});
|
|
5929
|
-
var PluginAIInspirationWorkflowOperation =
|
|
5930
|
-
type:
|
|
5931
|
-
label:
|
|
5932
|
-
prompt:
|
|
5933
|
-
modelId:
|
|
5934
|
-
presetId:
|
|
5935
|
-
presetName:
|
|
5936
|
-
refineFactor:
|
|
5937
|
-
sourceRole:
|
|
6129
|
+
sketchGuidance: z83.record(z83.string(), JsonValue).optional(),
|
|
6130
|
+
sourceCameraHeading: z83.number().finite().optional()
|
|
6131
|
+
});
|
|
6132
|
+
var PluginAIInspirationWorkflowOperation = z83.object({
|
|
6133
|
+
type: z83.enum(["generate-image", "refine", "generate-video"]),
|
|
6134
|
+
label: z83.string(),
|
|
6135
|
+
prompt: z83.string().optional(),
|
|
6136
|
+
modelId: z83.string().optional(),
|
|
6137
|
+
presetId: z83.string().optional(),
|
|
6138
|
+
presetName: z83.string().optional(),
|
|
6139
|
+
refineFactor: z83.number().finite().optional(),
|
|
6140
|
+
sourceRole: z83.enum(["primary", "end-frame"]).optional(),
|
|
5938
6141
|
video: PluginAIInspirationWorkflowVideoConfig.optional(),
|
|
5939
6142
|
generationInput: PluginAIInspirationGenerationInputSnapshot.optional()
|
|
5940
6143
|
});
|
|
5941
|
-
var PluginAIInspirationWorkflowNode =
|
|
5942
|
-
id:
|
|
5943
|
-
shapeId:
|
|
5944
|
-
assetId:
|
|
6144
|
+
var PluginAIInspirationWorkflowNode = z83.object({
|
|
6145
|
+
id: z83.string(),
|
|
6146
|
+
shapeId: z83.string(),
|
|
6147
|
+
assetId: z83.string().optional(),
|
|
5945
6148
|
kind: PluginAIInspirationOutputKind,
|
|
5946
|
-
state:
|
|
6149
|
+
state: z83.string(),
|
|
5947
6150
|
runState: PluginAIInspirationWorkflowRunState.optional(),
|
|
5948
|
-
staleReason:
|
|
5949
|
-
incomingEdgeIds:
|
|
5950
|
-
outgoingEdgeIds:
|
|
5951
|
-
createdAt:
|
|
5952
|
-
updatedAt:
|
|
5953
|
-
});
|
|
5954
|
-
var PluginAIInspirationWorkflowEdge =
|
|
5955
|
-
id:
|
|
5956
|
-
sourceNodeId:
|
|
5957
|
-
targetNodeId:
|
|
5958
|
-
arrowShapeId:
|
|
6151
|
+
staleReason: z83.string().optional(),
|
|
6152
|
+
incomingEdgeIds: z83.array(z83.string()),
|
|
6153
|
+
outgoingEdgeIds: z83.array(z83.string()),
|
|
6154
|
+
createdAt: z83.number(),
|
|
6155
|
+
updatedAt: z83.number()
|
|
6156
|
+
});
|
|
6157
|
+
var PluginAIInspirationWorkflowEdge = z83.object({
|
|
6158
|
+
id: z83.string(),
|
|
6159
|
+
sourceNodeId: z83.string(),
|
|
6160
|
+
targetNodeId: z83.string(),
|
|
6161
|
+
arrowShapeId: z83.string().optional(),
|
|
5959
6162
|
operation: PluginAIInspirationWorkflowOperation,
|
|
5960
|
-
state:
|
|
6163
|
+
state: z83.string(),
|
|
5961
6164
|
runState: PluginAIInspirationWorkflowRunState.optional(),
|
|
5962
|
-
staleReason:
|
|
5963
|
-
supersededByEdgeId:
|
|
5964
|
-
createdAt:
|
|
5965
|
-
updatedAt:
|
|
5966
|
-
});
|
|
5967
|
-
var PluginAIInspirationWorkflow =
|
|
5968
|
-
id:
|
|
5969
|
-
rootNodeIds:
|
|
5970
|
-
nodeIds:
|
|
5971
|
-
edgeIds:
|
|
5972
|
-
nodes:
|
|
5973
|
-
edges:
|
|
5974
|
-
createdAt:
|
|
5975
|
-
updatedAt:
|
|
5976
|
-
});
|
|
5977
|
-
var PluginAIInspirationGetWorkflowForShapeArgs =
|
|
5978
|
-
shapeId:
|
|
5979
|
-
});
|
|
5980
|
-
var PluginAIInspirationGetWorkflowForShapeResult =
|
|
6165
|
+
staleReason: z83.string().optional(),
|
|
6166
|
+
supersededByEdgeId: z83.string().optional(),
|
|
6167
|
+
createdAt: z83.number(),
|
|
6168
|
+
updatedAt: z83.number()
|
|
6169
|
+
});
|
|
6170
|
+
var PluginAIInspirationWorkflow = z83.object({
|
|
6171
|
+
id: z83.string(),
|
|
6172
|
+
rootNodeIds: z83.array(z83.string()),
|
|
6173
|
+
nodeIds: z83.array(z83.string()),
|
|
6174
|
+
edgeIds: z83.array(z83.string()),
|
|
6175
|
+
nodes: z83.record(z83.string(), PluginAIInspirationWorkflowNode),
|
|
6176
|
+
edges: z83.record(z83.string(), PluginAIInspirationWorkflowEdge),
|
|
6177
|
+
createdAt: z83.number(),
|
|
6178
|
+
updatedAt: z83.number()
|
|
6179
|
+
});
|
|
6180
|
+
var PluginAIInspirationGetWorkflowForShapeArgs = z83.object({
|
|
6181
|
+
shapeId: z83.string().min(1)
|
|
6182
|
+
});
|
|
6183
|
+
var PluginAIInspirationGetWorkflowForShapeResult = z83.object({
|
|
5981
6184
|
workflow: PluginAIInspirationWorkflow.nullable(),
|
|
5982
6185
|
node: PluginAIInspirationWorkflowNode.nullable()
|
|
5983
6186
|
});
|
|
5984
|
-
var PluginAIInspirationRerunPlanResult =
|
|
6187
|
+
var PluginAIInspirationRerunPlanResult = z83.discriminatedUnion(
|
|
5985
6188
|
"status",
|
|
5986
6189
|
[
|
|
5987
|
-
|
|
5988
|
-
status:
|
|
5989
|
-
workflowId:
|
|
6190
|
+
z83.object({
|
|
6191
|
+
status: z83.literal("ready"),
|
|
6192
|
+
workflowId: z83.string(),
|
|
5990
6193
|
sourceNode: PluginAIInspirationWorkflowNode,
|
|
5991
|
-
edgeIds:
|
|
5992
|
-
edges:
|
|
5993
|
-
recipe:
|
|
5994
|
-
needsEndFrame:
|
|
5995
|
-
defaultEndFrameShapeId:
|
|
6194
|
+
edgeIds: z83.array(z83.string()),
|
|
6195
|
+
edges: z83.array(PluginAIInspirationWorkflowEdge),
|
|
6196
|
+
recipe: z83.lazy(() => PluginAIInspirationRecipe),
|
|
6197
|
+
needsEndFrame: z83.boolean(),
|
|
6198
|
+
defaultEndFrameShapeId: z83.string().nullable()
|
|
5996
6199
|
}),
|
|
5997
|
-
|
|
5998
|
-
status:
|
|
5999
|
-
reason:
|
|
6200
|
+
z83.object({
|
|
6201
|
+
status: z83.literal("unavailable"),
|
|
6202
|
+
reason: z83.enum([
|
|
6000
6203
|
"not-in-workflow",
|
|
6001
6204
|
"source-only",
|
|
6002
6205
|
"running",
|
|
@@ -6005,47 +6208,47 @@ var PluginAIInspirationRerunPlanResult = z81.discriminatedUnion(
|
|
|
6005
6208
|
})
|
|
6006
6209
|
]
|
|
6007
6210
|
);
|
|
6008
|
-
var PluginAIInspirationRerunSelectedBranchArgs =
|
|
6009
|
-
shapeId:
|
|
6010
|
-
endFrameShapeId:
|
|
6211
|
+
var PluginAIInspirationRerunSelectedBranchArgs = z83.object({
|
|
6212
|
+
shapeId: z83.string().min(1),
|
|
6213
|
+
endFrameShapeId: z83.string().optional(),
|
|
6011
6214
|
runMode: PluginAIInspirationRunMode.optional()
|
|
6012
6215
|
});
|
|
6013
|
-
var PluginAIInspirationRecipeSlot =
|
|
6014
|
-
id:
|
|
6015
|
-
type:
|
|
6016
|
-
label:
|
|
6017
|
-
required:
|
|
6216
|
+
var PluginAIInspirationRecipeSlot = z83.object({
|
|
6217
|
+
id: z83.string(),
|
|
6218
|
+
type: z83.enum(["source-image", "end-frame"]),
|
|
6219
|
+
label: z83.string(),
|
|
6220
|
+
required: z83.boolean()
|
|
6018
6221
|
});
|
|
6019
|
-
var PluginAIInspirationRecipeStep =
|
|
6020
|
-
id:
|
|
6222
|
+
var PluginAIInspirationRecipeStep = z83.object({
|
|
6223
|
+
id: z83.string(),
|
|
6021
6224
|
operation: PluginAIInspirationWorkflowOperation,
|
|
6022
|
-
outputKind:
|
|
6225
|
+
outputKind: z83.enum(["image", "video"])
|
|
6023
6226
|
});
|
|
6024
|
-
var PluginAIInspirationRecipeDraft =
|
|
6025
|
-
name:
|
|
6026
|
-
summary:
|
|
6027
|
-
slots:
|
|
6028
|
-
steps:
|
|
6029
|
-
outputKind:
|
|
6030
|
-
thumbnailUrl:
|
|
6227
|
+
var PluginAIInspirationRecipeDraft = z83.object({
|
|
6228
|
+
name: z83.string(),
|
|
6229
|
+
summary: z83.string(),
|
|
6230
|
+
slots: z83.array(PluginAIInspirationRecipeSlot),
|
|
6231
|
+
steps: z83.array(PluginAIInspirationRecipeStep).min(1).max(20),
|
|
6232
|
+
outputKind: z83.enum(["image", "video"]),
|
|
6233
|
+
thumbnailUrl: z83.string().optional()
|
|
6031
6234
|
});
|
|
6032
6235
|
var PluginAIInspirationRecipe = PluginAIInspirationRecipeDraft.extend({
|
|
6033
|
-
version:
|
|
6034
|
-
id:
|
|
6035
|
-
fingerprint:
|
|
6036
|
-
createdAt:
|
|
6037
|
-
updatedAt:
|
|
6236
|
+
version: z83.literal(1),
|
|
6237
|
+
id: z83.string(),
|
|
6238
|
+
fingerprint: z83.string().optional(),
|
|
6239
|
+
createdAt: z83.number(),
|
|
6240
|
+
updatedAt: z83.number()
|
|
6038
6241
|
});
|
|
6039
|
-
var PluginAIInspirationExtractionResult =
|
|
6242
|
+
var PluginAIInspirationExtractionResult = z83.discriminatedUnion(
|
|
6040
6243
|
"status",
|
|
6041
6244
|
[
|
|
6042
|
-
|
|
6043
|
-
status:
|
|
6245
|
+
z83.object({
|
|
6246
|
+
status: z83.literal("ready"),
|
|
6044
6247
|
draft: PluginAIInspirationRecipeDraft
|
|
6045
6248
|
}),
|
|
6046
|
-
|
|
6047
|
-
status:
|
|
6048
|
-
reason:
|
|
6249
|
+
z83.object({
|
|
6250
|
+
status: z83.literal("unavailable"),
|
|
6251
|
+
reason: z83.enum([
|
|
6049
6252
|
"not-in-workflow",
|
|
6050
6253
|
"source-only",
|
|
6051
6254
|
"missing-workflow",
|
|
@@ -6056,38 +6259,38 @@ var PluginAIInspirationExtractionResult = z81.discriminatedUnion(
|
|
|
6056
6259
|
})
|
|
6057
6260
|
]
|
|
6058
6261
|
);
|
|
6059
|
-
var PluginAIInspirationListRecipesResult =
|
|
6060
|
-
recipes:
|
|
6262
|
+
var PluginAIInspirationListRecipesResult = z83.object({
|
|
6263
|
+
recipes: z83.array(PluginAIInspirationRecipe)
|
|
6061
6264
|
});
|
|
6062
|
-
var PluginAIInspirationSaveRecipeArgs =
|
|
6265
|
+
var PluginAIInspirationSaveRecipeArgs = z83.object({
|
|
6063
6266
|
draft: PluginAIInspirationRecipeDraft,
|
|
6064
|
-
name:
|
|
6267
|
+
name: z83.string().min(1)
|
|
6065
6268
|
});
|
|
6066
|
-
var PluginAIInspirationSaveRecipeResult =
|
|
6269
|
+
var PluginAIInspirationSaveRecipeResult = z83.discriminatedUnion(
|
|
6067
6270
|
"status",
|
|
6068
6271
|
[
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
status:
|
|
6272
|
+
z83.object({ status: z83.literal("saved"), recipe: PluginAIInspirationRecipe }),
|
|
6273
|
+
z83.object({
|
|
6274
|
+
status: z83.literal("duplicate"),
|
|
6072
6275
|
recipe: PluginAIInspirationRecipe
|
|
6073
6276
|
}),
|
|
6074
|
-
|
|
6075
|
-
|
|
6277
|
+
z83.object({ status: z83.literal("invalid-name"), recipe: z83.null() }),
|
|
6278
|
+
z83.object({ status: z83.literal("failed"), recipe: z83.null() })
|
|
6076
6279
|
]
|
|
6077
6280
|
);
|
|
6078
|
-
var PluginAIInspirationDeleteRecipeArgs =
|
|
6079
|
-
recipeId:
|
|
6281
|
+
var PluginAIInspirationDeleteRecipeArgs = z83.object({
|
|
6282
|
+
recipeId: z83.string().min(1)
|
|
6080
6283
|
});
|
|
6081
|
-
var PluginAIInspirationDeleteRecipeResult =
|
|
6082
|
-
deleted:
|
|
6284
|
+
var PluginAIInspirationDeleteRecipeResult = z83.object({
|
|
6285
|
+
deleted: z83.boolean()
|
|
6083
6286
|
});
|
|
6084
|
-
var PluginAIInspirationExtractRecipeFromShapeArgs =
|
|
6085
|
-
shapeId:
|
|
6287
|
+
var PluginAIInspirationExtractRecipeFromShapeArgs = z83.object({
|
|
6288
|
+
shapeId: z83.string().min(1)
|
|
6086
6289
|
});
|
|
6087
|
-
var PluginAIInspirationRunRecipeArgs =
|
|
6088
|
-
recipeId:
|
|
6290
|
+
var PluginAIInspirationRunRecipeArgs = z83.object({
|
|
6291
|
+
recipeId: z83.string().optional(),
|
|
6089
6292
|
recipe: PluginAIInspirationRecipe.optional(),
|
|
6090
|
-
slotShapeIds:
|
|
6293
|
+
slotShapeIds: z83.record(z83.string(), z83.string()),
|
|
6091
6294
|
runMode: PluginAIInspirationRunMode.optional()
|
|
6092
6295
|
});
|
|
6093
6296
|
var PluginPresentationAIInspirationApi = class {
|
|
@@ -6096,26 +6299,26 @@ var PluginPresentationAIInspirationApi = class {
|
|
|
6096
6299
|
};
|
|
6097
6300
|
|
|
6098
6301
|
// src/api/presentation/export.ts
|
|
6099
|
-
var
|
|
6100
|
-
var PluginPresentationExportFormat =
|
|
6101
|
-
var PluginPresentationExportResolution =
|
|
6102
|
-
width:
|
|
6103
|
-
height:
|
|
6302
|
+
var z84 = __toESM(require("zod"), 1);
|
|
6303
|
+
var PluginPresentationExportFormat = z84.enum(["pdf", "png", "jpg"]);
|
|
6304
|
+
var PluginPresentationExportResolution = z84.object({
|
|
6305
|
+
width: z84.number().positive(),
|
|
6306
|
+
height: z84.number().positive()
|
|
6104
6307
|
});
|
|
6105
|
-
var PluginPresentationExportArgs =
|
|
6308
|
+
var PluginPresentationExportArgs = z84.object({
|
|
6106
6309
|
format: PluginPresentationExportFormat,
|
|
6107
|
-
sheetIds:
|
|
6108
|
-
combine:
|
|
6310
|
+
sheetIds: z84.array(z84.string()).optional(),
|
|
6311
|
+
combine: z84.boolean().optional(),
|
|
6109
6312
|
resolution: PluginPresentationExportResolution.optional(),
|
|
6110
|
-
fileName:
|
|
6313
|
+
fileName: z84.string().optional()
|
|
6111
6314
|
});
|
|
6112
|
-
var PluginPresentationExportFile =
|
|
6113
|
-
fileName:
|
|
6114
|
-
mimeType:
|
|
6115
|
-
dataBase64:
|
|
6315
|
+
var PluginPresentationExportFile = z84.object({
|
|
6316
|
+
fileName: z84.string(),
|
|
6317
|
+
mimeType: z84.string(),
|
|
6318
|
+
dataBase64: z84.string()
|
|
6116
6319
|
});
|
|
6117
|
-
var PluginPresentationExportResult =
|
|
6118
|
-
files:
|
|
6320
|
+
var PluginPresentationExportResult = z84.object({
|
|
6321
|
+
files: z84.array(PluginPresentationExportFile)
|
|
6119
6322
|
});
|
|
6120
6323
|
|
|
6121
6324
|
// src/api/presentation/index.ts
|
|
@@ -6131,38 +6334,38 @@ var PluginAnalysisSunpathApi = class {
|
|
|
6131
6334
|
};
|
|
6132
6335
|
|
|
6133
6336
|
// src/api/analysis/shadows.ts
|
|
6134
|
-
var
|
|
6337
|
+
var z85 = __toESM(require("zod"), 1);
|
|
6135
6338
|
var PluginAnalysisShadowsApi = class {
|
|
6136
6339
|
constructor() {
|
|
6137
6340
|
}
|
|
6138
6341
|
};
|
|
6139
|
-
var PluginAnalysisShadowsEnableOptions =
|
|
6140
|
-
dateTime:
|
|
6342
|
+
var PluginAnalysisShadowsEnableOptions = z85.object({
|
|
6343
|
+
dateTime: z85.string().optional()
|
|
6141
6344
|
});
|
|
6142
|
-
var PluginAnalysisShadowsSetDateTimeArgs =
|
|
6143
|
-
dateTime:
|
|
6345
|
+
var PluginAnalysisShadowsSetDateTimeArgs = z85.object({
|
|
6346
|
+
dateTime: z85.string()
|
|
6144
6347
|
});
|
|
6145
|
-
var PluginAnalysisShadowsDateTimeResult =
|
|
6348
|
+
var PluginAnalysisShadowsDateTimeResult = z85.string();
|
|
6146
6349
|
|
|
6147
6350
|
// src/api/analysis/sunlightHours.ts
|
|
6148
|
-
var
|
|
6351
|
+
var z86 = __toESM(require("zod"), 1);
|
|
6149
6352
|
var PluginAnalysisSunlightHoursApi = class {
|
|
6150
6353
|
constructor() {
|
|
6151
6354
|
}
|
|
6152
6355
|
};
|
|
6153
|
-
var PluginAnalysisComputeResult =
|
|
6154
|
-
success:
|
|
6155
|
-
error:
|
|
6356
|
+
var PluginAnalysisComputeResult = z86.object({
|
|
6357
|
+
success: z86.boolean(),
|
|
6358
|
+
error: z86.string().optional()
|
|
6156
6359
|
});
|
|
6157
|
-
var PluginAnalysisJobStatus =
|
|
6360
|
+
var PluginAnalysisJobStatus = z86.enum([
|
|
6158
6361
|
"running",
|
|
6159
6362
|
"active",
|
|
6160
6363
|
"inactive"
|
|
6161
6364
|
]);
|
|
6162
|
-
var PluginAnalysisJobState =
|
|
6365
|
+
var PluginAnalysisJobState = z86.object({
|
|
6163
6366
|
status: PluginAnalysisJobStatus,
|
|
6164
|
-
startDate:
|
|
6165
|
-
endDate:
|
|
6367
|
+
startDate: z86.string(),
|
|
6368
|
+
endDate: z86.string()
|
|
6166
6369
|
});
|
|
6167
6370
|
var PluginAnalysisJobStateResult = PluginAnalysisJobState.nullable();
|
|
6168
6371
|
|
|
@@ -6173,7 +6376,7 @@ var PluginAnalysisIlluminanceApi = class {
|
|
|
6173
6376
|
};
|
|
6174
6377
|
|
|
6175
6378
|
// src/api/analysis/heatmaps.ts
|
|
6176
|
-
var
|
|
6379
|
+
var z87 = __toESM(require("zod"), 1);
|
|
6177
6380
|
var PluginAnalysisHeatmapsApi = class {
|
|
6178
6381
|
constructor() {
|
|
6179
6382
|
}
|
|
@@ -6182,149 +6385,149 @@ var PluginAnalysisHeatmapOverlaysApi = class {
|
|
|
6182
6385
|
constructor() {
|
|
6183
6386
|
}
|
|
6184
6387
|
};
|
|
6185
|
-
var PluginAnalysisHeatmapSpaceEntry =
|
|
6388
|
+
var PluginAnalysisHeatmapSpaceEntry = z87.object({
|
|
6186
6389
|
space: ComponentHandle,
|
|
6187
|
-
value:
|
|
6390
|
+
value: z87.number().finite()
|
|
6188
6391
|
});
|
|
6189
|
-
var PluginAnalysisHeatmapGridCell =
|
|
6392
|
+
var PluginAnalysisHeatmapGridCell = z87.object({
|
|
6190
6393
|
position: Vec3Components,
|
|
6191
|
-
value:
|
|
6192
|
-
meta:
|
|
6193
|
-
});
|
|
6194
|
-
var HexColor =
|
|
6195
|
-
var PluginAnalysisHeatmapFieldCell =
|
|
6196
|
-
|
|
6197
|
-
polygon:
|
|
6198
|
-
value:
|
|
6199
|
-
meta:
|
|
6394
|
+
value: z87.number().finite(),
|
|
6395
|
+
meta: z87.unknown().optional()
|
|
6396
|
+
});
|
|
6397
|
+
var HexColor = z87.string().regex(/^#?[0-9a-fA-F]{6}$/, 'expected a 6-digit hex colour like "#0000ff"');
|
|
6398
|
+
var PluginAnalysisHeatmapFieldCell = z87.union([
|
|
6399
|
+
z87.object({
|
|
6400
|
+
polygon: z87.array(Vec3Components).min(3),
|
|
6401
|
+
value: z87.number().finite(),
|
|
6402
|
+
meta: z87.unknown().optional()
|
|
6200
6403
|
}),
|
|
6201
|
-
|
|
6202
|
-
vertices:
|
|
6203
|
-
indices:
|
|
6204
|
-
value:
|
|
6205
|
-
meta:
|
|
6404
|
+
z87.object({
|
|
6405
|
+
vertices: z87.array(Vec3Components).min(3),
|
|
6406
|
+
indices: z87.array(z87.number().int().nonnegative()).min(3),
|
|
6407
|
+
value: z87.number().finite(),
|
|
6408
|
+
meta: z87.unknown().optional()
|
|
6206
6409
|
})
|
|
6207
6410
|
]);
|
|
6208
|
-
var PluginAnalysisHeatmapScale =
|
|
6209
|
-
|
|
6210
|
-
type:
|
|
6211
|
-
count:
|
|
6411
|
+
var PluginAnalysisHeatmapScale = z87.discriminatedUnion("type", [
|
|
6412
|
+
z87.object({
|
|
6413
|
+
type: z87.literal("bands"),
|
|
6414
|
+
count: z87.number().int().min(2).max(64).optional()
|
|
6212
6415
|
}),
|
|
6213
|
-
|
|
6214
|
-
type:
|
|
6215
|
-
threshold:
|
|
6416
|
+
z87.object({
|
|
6417
|
+
type: z87.literal("threshold"),
|
|
6418
|
+
threshold: z87.number().finite(),
|
|
6216
6419
|
passColor: HexColor.optional(),
|
|
6217
6420
|
failColor: HexColor.optional(),
|
|
6218
|
-
passLabel:
|
|
6219
|
-
failLabel:
|
|
6421
|
+
passLabel: z87.string().optional(),
|
|
6422
|
+
failLabel: z87.string().optional()
|
|
6220
6423
|
}),
|
|
6221
|
-
|
|
6222
|
-
type:
|
|
6223
|
-
classes:
|
|
6224
|
-
|
|
6225
|
-
value:
|
|
6226
|
-
label:
|
|
6424
|
+
z87.object({
|
|
6425
|
+
type: z87.literal("categorical"),
|
|
6426
|
+
classes: z87.array(
|
|
6427
|
+
z87.object({
|
|
6428
|
+
value: z87.number().finite(),
|
|
6429
|
+
label: z87.string(),
|
|
6227
6430
|
color: HexColor
|
|
6228
6431
|
})
|
|
6229
6432
|
).min(1)
|
|
6230
6433
|
})
|
|
6231
6434
|
]);
|
|
6232
|
-
var PluginAnalysisHeatmapOptions =
|
|
6233
|
-
name:
|
|
6234
|
-
title:
|
|
6235
|
-
unit:
|
|
6236
|
-
min:
|
|
6237
|
-
max:
|
|
6238
|
-
colors:
|
|
6435
|
+
var PluginAnalysisHeatmapOptions = z87.object({
|
|
6436
|
+
name: z87.string().min(1).max(64).optional(),
|
|
6437
|
+
title: z87.string().optional(),
|
|
6438
|
+
unit: z87.string().optional(),
|
|
6439
|
+
min: z87.number().finite().optional(),
|
|
6440
|
+
max: z87.number().finite().optional(),
|
|
6441
|
+
colors: z87.array(HexColor).min(1).optional(),
|
|
6239
6442
|
scale: PluginAnalysisHeatmapScale.optional(),
|
|
6240
|
-
hover:
|
|
6443
|
+
hover: z87.boolean().optional()
|
|
6241
6444
|
});
|
|
6242
|
-
var PluginAnalysisHeatmapsRenderResult =
|
|
6243
|
-
success:
|
|
6445
|
+
var PluginAnalysisHeatmapsRenderResult = z87.object({
|
|
6446
|
+
success: z87.literal(true)
|
|
6244
6447
|
});
|
|
6245
|
-
var PluginAnalysisHeatmapOverlayInfo =
|
|
6246
|
-
name:
|
|
6247
|
-
visible:
|
|
6248
|
-
kind:
|
|
6448
|
+
var PluginAnalysisHeatmapOverlayInfo = z87.object({
|
|
6449
|
+
name: z87.string(),
|
|
6450
|
+
visible: z87.boolean(),
|
|
6451
|
+
kind: z87.enum(["spaces", "grid", "surfaceGrid", "field"])
|
|
6249
6452
|
});
|
|
6250
|
-
var PluginAnalysisHeatmapOverlaysListResult =
|
|
6251
|
-
overlays:
|
|
6453
|
+
var PluginAnalysisHeatmapOverlaysListResult = z87.object({
|
|
6454
|
+
overlays: z87.array(PluginAnalysisHeatmapOverlayInfo)
|
|
6252
6455
|
});
|
|
6253
6456
|
|
|
6254
6457
|
// src/api/analysis/weather.ts
|
|
6255
|
-
var
|
|
6458
|
+
var z88 = __toESM(require("zod"), 1);
|
|
6256
6459
|
var PluginAnalysisWeatherApi = class {
|
|
6257
6460
|
constructor() {
|
|
6258
6461
|
}
|
|
6259
6462
|
};
|
|
6260
|
-
var PluginWeatherSelectionMethod =
|
|
6463
|
+
var PluginWeatherSelectionMethod = z88.enum([
|
|
6261
6464
|
"nearest-station",
|
|
6262
6465
|
"user-upload",
|
|
6263
6466
|
"project-override"
|
|
6264
6467
|
]);
|
|
6265
|
-
var PluginWeatherSourceMeta =
|
|
6266
|
-
weatherFileId:
|
|
6267
|
-
station:
|
|
6268
|
-
sourceId:
|
|
6269
|
-
distanceKm:
|
|
6468
|
+
var PluginWeatherSourceMeta = z88.object({
|
|
6469
|
+
weatherFileId: z88.string(),
|
|
6470
|
+
station: z88.string(),
|
|
6471
|
+
sourceId: z88.string(),
|
|
6472
|
+
distanceKm: z88.number().nullable(),
|
|
6270
6473
|
selectionMethod: PluginWeatherSelectionMethod,
|
|
6271
|
-
checksum:
|
|
6272
|
-
windReferenceHeightM:
|
|
6273
|
-
});
|
|
6274
|
-
var PluginWeatherRow =
|
|
6275
|
-
timestamp:
|
|
6276
|
-
utcOffsetMinutes:
|
|
6277
|
-
dryBulbC:
|
|
6278
|
-
relativeHumidityPercent:
|
|
6279
|
-
windSpeedMps:
|
|
6280
|
-
ghiWm2:
|
|
6281
|
-
dniWm2:
|
|
6282
|
-
dhiWm2:
|
|
6283
|
-
flags:
|
|
6284
|
-
});
|
|
6285
|
-
var PluginWeatherGetSeriesArgs =
|
|
6286
|
-
startDate:
|
|
6287
|
-
endDate:
|
|
6288
|
-
interval:
|
|
6289
|
-
cursor:
|
|
6474
|
+
checksum: z88.string(),
|
|
6475
|
+
windReferenceHeightM: z88.number()
|
|
6476
|
+
});
|
|
6477
|
+
var PluginWeatherRow = z88.object({
|
|
6478
|
+
timestamp: z88.string(),
|
|
6479
|
+
utcOffsetMinutes: z88.number(),
|
|
6480
|
+
dryBulbC: z88.number(),
|
|
6481
|
+
relativeHumidityPercent: z88.number(),
|
|
6482
|
+
windSpeedMps: z88.number(),
|
|
6483
|
+
ghiWm2: z88.number(),
|
|
6484
|
+
dniWm2: z88.number(),
|
|
6485
|
+
dhiWm2: z88.number(),
|
|
6486
|
+
flags: z88.array(z88.string())
|
|
6487
|
+
});
|
|
6488
|
+
var PluginWeatherGetSeriesArgs = z88.object({
|
|
6489
|
+
startDate: z88.string(),
|
|
6490
|
+
endDate: z88.string(),
|
|
6491
|
+
interval: z88.enum(["hourly"]).optional(),
|
|
6492
|
+
cursor: z88.string().optional()
|
|
6290
6493
|
});
|
|
6291
|
-
var PluginWeatherSeriesResult =
|
|
6494
|
+
var PluginWeatherSeriesResult = z88.object({
|
|
6292
6495
|
source: PluginWeatherSourceMeta,
|
|
6293
|
-
rows:
|
|
6294
|
-
nextCursor:
|
|
6295
|
-
warnings:
|
|
6496
|
+
rows: z88.array(PluginWeatherRow),
|
|
6497
|
+
nextCursor: z88.string().nullable(),
|
|
6498
|
+
warnings: z88.array(z88.string()).optional()
|
|
6296
6499
|
});
|
|
6297
6500
|
|
|
6298
6501
|
// src/api/analysis/solar.ts
|
|
6299
|
-
var
|
|
6502
|
+
var z89 = __toESM(require("zod"), 1);
|
|
6300
6503
|
var PluginAnalysisSolarApi = class {
|
|
6301
6504
|
constructor() {
|
|
6302
6505
|
}
|
|
6303
6506
|
};
|
|
6304
|
-
var PluginSolarRunStatus =
|
|
6507
|
+
var PluginSolarRunStatus = z89.enum([
|
|
6305
6508
|
"running",
|
|
6306
6509
|
"complete",
|
|
6307
6510
|
"cancelled",
|
|
6308
6511
|
"failed"
|
|
6309
6512
|
]);
|
|
6310
|
-
var PluginSolarSampleMode =
|
|
6311
|
-
var PluginSolarUnits =
|
|
6312
|
-
var PluginSolarHourlyArtifact =
|
|
6313
|
-
url:
|
|
6314
|
-
format:
|
|
6315
|
-
expiresAt:
|
|
6316
|
-
});
|
|
6317
|
-
var PluginSolarSamplePoint =
|
|
6318
|
-
id:
|
|
6319
|
-
position:
|
|
6320
|
-
normal:
|
|
6321
|
-
});
|
|
6322
|
-
var PluginSolarSampleGridArgs =
|
|
6323
|
-
points:
|
|
6324
|
-
dateTime:
|
|
6325
|
-
startDate:
|
|
6326
|
-
endDate:
|
|
6327
|
-
includeHourlyArtifact:
|
|
6513
|
+
var PluginSolarSampleMode = z89.enum(["instant", "range"]);
|
|
6514
|
+
var PluginSolarUnits = z89.enum(["W/m2", "kWh/m2"]);
|
|
6515
|
+
var PluginSolarHourlyArtifact = z89.object({
|
|
6516
|
+
url: z89.string(),
|
|
6517
|
+
format: z89.enum(["parquet", "csv-gz"]),
|
|
6518
|
+
expiresAt: z89.string()
|
|
6519
|
+
});
|
|
6520
|
+
var PluginSolarSamplePoint = z89.object({
|
|
6521
|
+
id: z89.string(),
|
|
6522
|
+
position: z89.tuple([z89.number(), z89.number(), z89.number()]),
|
|
6523
|
+
normal: z89.tuple([z89.number(), z89.number(), z89.number()]).optional()
|
|
6524
|
+
});
|
|
6525
|
+
var PluginSolarSampleGridArgs = z89.object({
|
|
6526
|
+
points: z89.array(PluginSolarSamplePoint),
|
|
6527
|
+
dateTime: z89.string().optional(),
|
|
6528
|
+
startDate: z89.string().optional(),
|
|
6529
|
+
endDate: z89.string().optional(),
|
|
6530
|
+
includeHourlyArtifact: z89.boolean().optional()
|
|
6328
6531
|
}).superRefine((a, ctx) => {
|
|
6329
6532
|
const hasInstant = a.dateTime !== void 0;
|
|
6330
6533
|
const hasStart = a.startDate !== void 0;
|
|
@@ -6332,73 +6535,73 @@ var PluginSolarSampleGridArgs = z87.object({
|
|
|
6332
6535
|
const hasRange = hasStart || hasEnd;
|
|
6333
6536
|
if (hasInstant === hasRange) {
|
|
6334
6537
|
ctx.addIssue({
|
|
6335
|
-
code:
|
|
6538
|
+
code: z89.ZodIssueCode.custom,
|
|
6336
6539
|
message: "provide exactly one timing mode: dateTime (instant), or startDate+endDate (range)"
|
|
6337
6540
|
});
|
|
6338
6541
|
}
|
|
6339
6542
|
if (hasRange && !(hasStart && hasEnd)) {
|
|
6340
6543
|
ctx.addIssue({
|
|
6341
|
-
code:
|
|
6544
|
+
code: z89.ZodIssueCode.custom,
|
|
6342
6545
|
message: "range mode requires both startDate and endDate"
|
|
6343
6546
|
});
|
|
6344
6547
|
}
|
|
6345
6548
|
});
|
|
6346
|
-
var PluginSolarSampleResult =
|
|
6347
|
-
id:
|
|
6348
|
-
directSunVisible:
|
|
6349
|
-
shadeFraction:
|
|
6350
|
-
directIrradiance:
|
|
6351
|
-
diffuseIrradiance:
|
|
6352
|
-
totalIrradiance:
|
|
6549
|
+
var PluginSolarSampleResult = z89.object({
|
|
6550
|
+
id: z89.string(),
|
|
6551
|
+
directSunVisible: z89.boolean(),
|
|
6552
|
+
shadeFraction: z89.number(),
|
|
6553
|
+
directIrradiance: z89.number().optional(),
|
|
6554
|
+
diffuseIrradiance: z89.number().optional(),
|
|
6555
|
+
totalIrradiance: z89.number().optional()
|
|
6353
6556
|
});
|
|
6354
|
-
var PluginSolarSampleGridResult =
|
|
6557
|
+
var PluginSolarSampleGridResult = z89.object({
|
|
6355
6558
|
status: PluginSolarRunStatus,
|
|
6356
6559
|
mode: PluginSolarSampleMode,
|
|
6357
|
-
coordinateSystem:
|
|
6358
|
-
modelRevision:
|
|
6359
|
-
inputHash:
|
|
6560
|
+
coordinateSystem: z89.literal("world-plan-space"),
|
|
6561
|
+
modelRevision: z89.string(),
|
|
6562
|
+
inputHash: z89.string(),
|
|
6360
6563
|
units: PluginSolarUnits,
|
|
6361
|
-
sunUpHours:
|
|
6564
|
+
sunUpHours: z89.number(),
|
|
6362
6565
|
weather: PluginWeatherSourceMeta.nullable(),
|
|
6363
|
-
weatherQuality:
|
|
6364
|
-
results:
|
|
6566
|
+
weatherQuality: z89.array(z89.string()),
|
|
6567
|
+
results: z89.array(PluginSolarSampleResult),
|
|
6365
6568
|
hourlyArtifact: PluginSolarHourlyArtifact.nullable(),
|
|
6366
|
-
nextCursor:
|
|
6569
|
+
nextCursor: z89.string().nullable()
|
|
6367
6570
|
});
|
|
6368
6571
|
|
|
6369
6572
|
// src/api/analysis/daylight.ts
|
|
6370
|
-
var
|
|
6573
|
+
var z90 = __toESM(require("zod"), 1);
|
|
6371
6574
|
var PluginAnalysisDaylightApi = class {
|
|
6372
6575
|
constructor() {
|
|
6373
6576
|
}
|
|
6374
6577
|
};
|
|
6375
|
-
var PluginDaylightMetric =
|
|
6376
|
-
var PluginDaylightRunStatus =
|
|
6578
|
+
var PluginDaylightMetric = z90.enum(["ASE", "sDA"]);
|
|
6579
|
+
var PluginDaylightRunStatus = z90.enum([
|
|
6377
6580
|
"running",
|
|
6378
6581
|
"complete",
|
|
6379
6582
|
"cancelled",
|
|
6380
6583
|
"failed"
|
|
6381
6584
|
]);
|
|
6382
|
-
var PluginDaylightGrid =
|
|
6383
|
-
spacingM:
|
|
6384
|
-
workplaneHeightM:
|
|
6385
|
-
boundaryOffsetM:
|
|
6585
|
+
var PluginDaylightGrid = z90.object({
|
|
6586
|
+
spacingM: z90.number(),
|
|
6587
|
+
workplaneHeightM: z90.number(),
|
|
6588
|
+
boundaryOffsetM: z90.number()
|
|
6386
6589
|
});
|
|
6387
|
-
var PluginDaylightSchedule =
|
|
6388
|
-
startHour:
|
|
6389
|
-
endHour:
|
|
6590
|
+
var PluginDaylightSchedule = z90.object({
|
|
6591
|
+
startHour: z90.number(),
|
|
6592
|
+
endHour: z90.number()
|
|
6390
6593
|
});
|
|
6391
|
-
var PluginDaylightOpaqueOptics =
|
|
6392
|
-
reflectance:
|
|
6594
|
+
var PluginDaylightOpaqueOptics = z90.object({
|
|
6595
|
+
reflectance: z90.number().min(0).max(1)
|
|
6393
6596
|
});
|
|
6394
|
-
var PluginDaylightGlazingOptics =
|
|
6395
|
-
transmittance:
|
|
6597
|
+
var PluginDaylightGlazingOptics = z90.object({
|
|
6598
|
+
transmittance: z90.number().min(0).max(1)
|
|
6396
6599
|
});
|
|
6397
|
-
var PluginDaylightMaterialOptics =
|
|
6600
|
+
var PluginDaylightMaterialOptics = z90.union([
|
|
6398
6601
|
PluginDaylightOpaqueOptics,
|
|
6399
6602
|
PluginDaylightGlazingOptics
|
|
6400
6603
|
]);
|
|
6401
|
-
var PluginDaylightCategoryDefaults =
|
|
6604
|
+
var PluginDaylightCategoryDefaults = z90.object({
|
|
6402
6605
|
wall: PluginDaylightOpaqueOptics.optional(),
|
|
6403
6606
|
ceiling: PluginDaylightOpaqueOptics.optional(),
|
|
6404
6607
|
floor: PluginDaylightOpaqueOptics.optional(),
|
|
@@ -6406,81 +6609,81 @@ var PluginDaylightCategoryDefaults = z88.object({
|
|
|
6406
6609
|
glazing: PluginDaylightGlazingOptics.optional(),
|
|
6407
6610
|
context: PluginDaylightOpaqueOptics.optional()
|
|
6408
6611
|
});
|
|
6409
|
-
var PluginDaylightBlindsOptics =
|
|
6410
|
-
transmittance:
|
|
6612
|
+
var PluginDaylightBlindsOptics = z90.object({
|
|
6613
|
+
transmittance: z90.number().min(0).max(1)
|
|
6411
6614
|
});
|
|
6412
|
-
var PluginDaylightOptics =
|
|
6413
|
-
materials:
|
|
6615
|
+
var PluginDaylightOptics = z90.object({
|
|
6616
|
+
materials: z90.record(z90.string(), PluginDaylightMaterialOptics).optional(),
|
|
6414
6617
|
categories: PluginDaylightCategoryDefaults.optional(),
|
|
6415
6618
|
blinds: PluginDaylightBlindsOptics.optional()
|
|
6416
6619
|
});
|
|
6417
|
-
var PluginDaylightComputeArgs =
|
|
6418
|
-
standard:
|
|
6419
|
-
metrics:
|
|
6620
|
+
var PluginDaylightComputeArgs = z90.object({
|
|
6621
|
+
standard: z90.literal("IES-LM-83-23"),
|
|
6622
|
+
metrics: z90.array(PluginDaylightMetric).min(1),
|
|
6420
6623
|
schedule: PluginDaylightSchedule.optional(),
|
|
6421
6624
|
grid: PluginDaylightGrid,
|
|
6422
6625
|
optics: PluginDaylightOptics.optional()
|
|
6423
6626
|
});
|
|
6424
|
-
var PluginDaylightPollArgs =
|
|
6425
|
-
runId:
|
|
6426
|
-
cursor:
|
|
6427
|
-
});
|
|
6428
|
-
var PluginDaylightSensorRecord =
|
|
6429
|
-
sensorId:
|
|
6430
|
-
position:
|
|
6431
|
-
spaceId:
|
|
6432
|
-
storeyId:
|
|
6433
|
-
areaWeightM2:
|
|
6434
|
-
occupiedHours:
|
|
6435
|
-
directSunHoursAtOrAbove1000Lux:
|
|
6436
|
-
aseFail:
|
|
6437
|
-
da300Percent:
|
|
6438
|
-
sdaPass:
|
|
6439
|
-
});
|
|
6440
|
-
var PluginDaylightAggregateScope =
|
|
6627
|
+
var PluginDaylightPollArgs = z90.object({
|
|
6628
|
+
runId: z90.string(),
|
|
6629
|
+
cursor: z90.string().optional()
|
|
6630
|
+
});
|
|
6631
|
+
var PluginDaylightSensorRecord = z90.object({
|
|
6632
|
+
sensorId: z90.string(),
|
|
6633
|
+
position: z90.tuple([z90.number(), z90.number(), z90.number()]),
|
|
6634
|
+
spaceId: z90.string(),
|
|
6635
|
+
storeyId: z90.string(),
|
|
6636
|
+
areaWeightM2: z90.number(),
|
|
6637
|
+
occupiedHours: z90.number(),
|
|
6638
|
+
directSunHoursAtOrAbove1000Lux: z90.number().optional(),
|
|
6639
|
+
aseFail: z90.boolean().optional(),
|
|
6640
|
+
da300Percent: z90.number().optional(),
|
|
6641
|
+
sdaPass: z90.boolean().optional()
|
|
6642
|
+
});
|
|
6643
|
+
var PluginDaylightAggregateScope = z90.enum([
|
|
6441
6644
|
"project",
|
|
6442
6645
|
"storey",
|
|
6443
6646
|
"space"
|
|
6444
6647
|
]);
|
|
6445
|
-
var PluginDaylightAggregate =
|
|
6648
|
+
var PluginDaylightAggregate = z90.object({
|
|
6446
6649
|
scope: PluginDaylightAggregateScope,
|
|
6447
|
-
id:
|
|
6448
|
-
analysisAreaM2:
|
|
6449
|
-
asePercent:
|
|
6450
|
-
sdaPercent:
|
|
6451
|
-
});
|
|
6452
|
-
var PluginDaylightProvenance =
|
|
6453
|
-
engine:
|
|
6454
|
-
engineVersion:
|
|
6455
|
-
standardProfile:
|
|
6456
|
-
thresholds:
|
|
6650
|
+
id: z90.string().nullable(),
|
|
6651
|
+
analysisAreaM2: z90.number(),
|
|
6652
|
+
asePercent: z90.number().optional(),
|
|
6653
|
+
sdaPercent: z90.number().optional()
|
|
6654
|
+
});
|
|
6655
|
+
var PluginDaylightProvenance = z90.object({
|
|
6656
|
+
engine: z90.string(),
|
|
6657
|
+
engineVersion: z90.string(),
|
|
6658
|
+
standardProfile: z90.string(),
|
|
6659
|
+
thresholds: z90.object({ aseLux: z90.number(), aseHours: z90.number() }).passthrough(),
|
|
6457
6660
|
weather: PluginWeatherSourceMeta.nullable(),
|
|
6458
|
-
occupancySchedule:
|
|
6661
|
+
occupancySchedule: z90.object({ id: z90.string(), hoursPerYear: z90.number() }).passthrough(),
|
|
6459
6662
|
grid: PluginDaylightGrid,
|
|
6460
|
-
location:
|
|
6461
|
-
latitude:
|
|
6462
|
-
longitude:
|
|
6463
|
-
timezone:
|
|
6464
|
-
trueNorthDeg:
|
|
6663
|
+
location: z90.object({
|
|
6664
|
+
latitude: z90.number(),
|
|
6665
|
+
longitude: z90.number(),
|
|
6666
|
+
timezone: z90.string(),
|
|
6667
|
+
trueNorthDeg: z90.number()
|
|
6465
6668
|
}).passthrough(),
|
|
6466
|
-
surfaceReflectances:
|
|
6467
|
-
modelRevision:
|
|
6468
|
-
inputHash:
|
|
6469
|
-
warnings:
|
|
6470
|
-
excludedSpaces:
|
|
6471
|
-
|
|
6669
|
+
surfaceReflectances: z90.record(z90.string(), z90.number()),
|
|
6670
|
+
modelRevision: z90.string(),
|
|
6671
|
+
inputHash: z90.string(),
|
|
6672
|
+
warnings: z90.array(z90.string()),
|
|
6673
|
+
excludedSpaces: z90.array(
|
|
6674
|
+
z90.object({ spaceId: z90.string(), reason: z90.string() })
|
|
6472
6675
|
),
|
|
6473
|
-
failedGeometry:
|
|
6474
|
-
|
|
6676
|
+
failedGeometry: z90.array(
|
|
6677
|
+
z90.object({ componentId: z90.string(), reason: z90.string() })
|
|
6475
6678
|
)
|
|
6476
6679
|
}).partial().passthrough();
|
|
6477
|
-
var PluginDaylightResults =
|
|
6680
|
+
var PluginDaylightResults = z90.object({
|
|
6478
6681
|
status: PluginDaylightRunStatus,
|
|
6479
|
-
runId:
|
|
6480
|
-
sensors:
|
|
6481
|
-
aggregates:
|
|
6682
|
+
runId: z90.string().optional(),
|
|
6683
|
+
sensors: z90.array(PluginDaylightSensorRecord),
|
|
6684
|
+
aggregates: z90.array(PluginDaylightAggregate),
|
|
6482
6685
|
provenance: PluginDaylightProvenance,
|
|
6483
|
-
nextCursor:
|
|
6686
|
+
nextCursor: z90.string().nullable()
|
|
6484
6687
|
});
|
|
6485
6688
|
|
|
6486
6689
|
// src/api/analysis/index.ts
|
|
@@ -6490,7 +6693,7 @@ var PluginAnalysisApi = class {
|
|
|
6490
6693
|
};
|
|
6491
6694
|
|
|
6492
6695
|
// src/api/workspace/index.ts
|
|
6493
|
-
var
|
|
6696
|
+
var z91 = __toESM(require("zod"), 1);
|
|
6494
6697
|
var PluginWorkspaceApi = class {
|
|
6495
6698
|
constructor() {
|
|
6496
6699
|
}
|
|
@@ -6503,68 +6706,68 @@ var PluginWorkspaceTeamsApi = class {
|
|
|
6503
6706
|
constructor() {
|
|
6504
6707
|
}
|
|
6505
6708
|
};
|
|
6506
|
-
var PluginProjectRef =
|
|
6507
|
-
id:
|
|
6508
|
-
name:
|
|
6509
|
-
teamId:
|
|
6510
|
-
createdAt:
|
|
6511
|
-
modifiedAt:
|
|
6709
|
+
var PluginProjectRef = z91.object({
|
|
6710
|
+
id: z91.string(),
|
|
6711
|
+
name: z91.string(),
|
|
6712
|
+
teamId: z91.string().optional(),
|
|
6713
|
+
createdAt: z91.string().optional(),
|
|
6714
|
+
modifiedAt: z91.string().optional()
|
|
6512
6715
|
});
|
|
6513
|
-
var PluginTeamRef =
|
|
6514
|
-
id:
|
|
6515
|
-
name:
|
|
6516
|
-
role:
|
|
6716
|
+
var PluginTeamRef = z91.object({
|
|
6717
|
+
id: z91.string(),
|
|
6718
|
+
name: z91.string(),
|
|
6719
|
+
role: z91.string().optional()
|
|
6517
6720
|
});
|
|
6518
|
-
var PluginTeamMemberRef =
|
|
6519
|
-
id:
|
|
6520
|
-
name:
|
|
6521
|
-
email:
|
|
6522
|
-
role:
|
|
6721
|
+
var PluginTeamMemberRef = z91.object({
|
|
6722
|
+
id: z91.string(),
|
|
6723
|
+
name: z91.string(),
|
|
6724
|
+
email: z91.string().optional(),
|
|
6725
|
+
role: z91.string().optional()
|
|
6523
6726
|
});
|
|
6524
|
-
var PluginWorkspaceProjectsCreateArgs =
|
|
6525
|
-
name:
|
|
6526
|
-
unit:
|
|
6527
|
-
teamId:
|
|
6727
|
+
var PluginWorkspaceProjectsCreateArgs = z91.object({
|
|
6728
|
+
name: z91.string(),
|
|
6729
|
+
unit: z91.string().optional(),
|
|
6730
|
+
teamId: z91.string().optional()
|
|
6528
6731
|
});
|
|
6529
|
-
var PluginWorkspaceProjectsCreateResult =
|
|
6530
|
-
projectId:
|
|
6732
|
+
var PluginWorkspaceProjectsCreateResult = z91.object({
|
|
6733
|
+
projectId: z91.string()
|
|
6531
6734
|
});
|
|
6532
|
-
var PluginWorkspaceProjectsCopyArgs =
|
|
6533
|
-
name:
|
|
6534
|
-
teamId:
|
|
6735
|
+
var PluginWorkspaceProjectsCopyArgs = z91.object({
|
|
6736
|
+
name: z91.string(),
|
|
6737
|
+
teamId: z91.string().optional()
|
|
6535
6738
|
});
|
|
6536
|
-
var PluginWorkspaceProjectsCopyResult =
|
|
6537
|
-
projectId:
|
|
6739
|
+
var PluginWorkspaceProjectsCopyResult = z91.object({
|
|
6740
|
+
projectId: z91.string()
|
|
6538
6741
|
});
|
|
6539
|
-
var PluginWorkspaceProjectsListArgs =
|
|
6540
|
-
teamId:
|
|
6742
|
+
var PluginWorkspaceProjectsListArgs = z91.object({
|
|
6743
|
+
teamId: z91.string().optional()
|
|
6541
6744
|
});
|
|
6542
|
-
var PluginWorkspaceProjectsListResult =
|
|
6543
|
-
projects:
|
|
6745
|
+
var PluginWorkspaceProjectsListResult = z91.object({
|
|
6746
|
+
projects: z91.array(PluginProjectRef)
|
|
6544
6747
|
});
|
|
6545
|
-
var PluginWorkspaceProjectsGetArgs =
|
|
6546
|
-
projectId:
|
|
6748
|
+
var PluginWorkspaceProjectsGetArgs = z91.object({
|
|
6749
|
+
projectId: z91.string()
|
|
6547
6750
|
});
|
|
6548
6751
|
var PluginWorkspaceProjectsGetResult = PluginProjectRef.nullable();
|
|
6549
|
-
var PluginWorkspaceProjectsRenameArgs =
|
|
6550
|
-
projectId:
|
|
6551
|
-
name:
|
|
6752
|
+
var PluginWorkspaceProjectsRenameArgs = z91.object({
|
|
6753
|
+
projectId: z91.string(),
|
|
6754
|
+
name: z91.string()
|
|
6552
6755
|
});
|
|
6553
|
-
var PluginWorkspaceProjectsRenameResult =
|
|
6554
|
-
projectId:
|
|
6756
|
+
var PluginWorkspaceProjectsRenameResult = z91.object({
|
|
6757
|
+
projectId: z91.string()
|
|
6555
6758
|
});
|
|
6556
|
-
var PluginWorkspaceTeamsListResult =
|
|
6557
|
-
teams:
|
|
6759
|
+
var PluginWorkspaceTeamsListResult = z91.object({
|
|
6760
|
+
teams: z91.array(PluginTeamRef)
|
|
6558
6761
|
});
|
|
6559
|
-
var PluginWorkspaceTeamsGetArgs =
|
|
6560
|
-
teamId:
|
|
6762
|
+
var PluginWorkspaceTeamsGetArgs = z91.object({
|
|
6763
|
+
teamId: z91.string()
|
|
6561
6764
|
});
|
|
6562
6765
|
var PluginWorkspaceTeamsGetResult = PluginTeamRef.nullable();
|
|
6563
|
-
var PluginWorkspaceTeamsListMembersArgs =
|
|
6564
|
-
teamId:
|
|
6766
|
+
var PluginWorkspaceTeamsListMembersArgs = z91.object({
|
|
6767
|
+
teamId: z91.string()
|
|
6565
6768
|
});
|
|
6566
|
-
var PluginWorkspaceTeamsListMembersResult =
|
|
6567
|
-
members:
|
|
6769
|
+
var PluginWorkspaceTeamsListMembersResult = z91.object({
|
|
6770
|
+
members: z91.array(PluginTeamMemberRef)
|
|
6568
6771
|
});
|
|
6569
6772
|
|
|
6570
6773
|
// src/api/index.ts
|
|
@@ -6669,8 +6872,8 @@ function isPluginErrorCode(value) {
|
|
|
6669
6872
|
var ERROR_ENVELOPE_VERSION = 1;
|
|
6670
6873
|
function isErrorEnvelope(value) {
|
|
6671
6874
|
if (typeof value !== "object" || value === null) return false;
|
|
6672
|
-
const
|
|
6673
|
-
return
|
|
6875
|
+
const record7 = value;
|
|
6876
|
+
return record7.envelopeVersion === ERROR_ENVELOPE_VERSION && typeof record7.code === "string" && typeof record7.message === "string" && typeof record7.errorId === "string";
|
|
6674
6877
|
}
|
|
6675
6878
|
var idCounter = 0;
|
|
6676
6879
|
function newErrorId(prefix = "") {
|
|
@@ -6788,6 +6991,8 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
6788
6991
|
OffsetSplitOutcome,
|
|
6789
6992
|
PLUGIN_CREATE_BATCH_LIMIT,
|
|
6790
6993
|
PLUGIN_ERROR_CODES,
|
|
6994
|
+
PLUGIN_PROGRAM_LABELS_BATCH_LIMIT,
|
|
6995
|
+
PLUGIN_PROGRAM_METADATA_BATCH_LIMIT,
|
|
6791
6996
|
PUnitType,
|
|
6792
6997
|
PluginAIInspirationAppliedPreset,
|
|
6793
6998
|
PluginAIInspirationCancelJobResult,
|
|
@@ -6955,6 +7160,7 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
6955
7160
|
PluginCoreBuildingsUpdateArgs,
|
|
6956
7161
|
PluginCoreBuildingsUpdateResult,
|
|
6957
7162
|
PluginCoreComponentTag,
|
|
7163
|
+
PluginCoreComponentTags,
|
|
6958
7164
|
PluginCoreGroupMember,
|
|
6959
7165
|
PluginCoreGroupRef,
|
|
6960
7166
|
PluginCoreGroupsApi,
|
|
@@ -7040,6 +7246,8 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
7040
7246
|
PluginCoreTagsListCategoriesResult,
|
|
7041
7247
|
PluginCoreTagsListComponentsArgs,
|
|
7042
7248
|
PluginCoreTagsListComponentsResult,
|
|
7249
|
+
PluginCoreTagsListForComponentsArgs,
|
|
7250
|
+
PluginCoreTagsListForComponentsResult,
|
|
7043
7251
|
PluginCoreTagsListResult,
|
|
7044
7252
|
PluginCoreTagsUnassignArgs,
|
|
7045
7253
|
PluginCoreTagsUnassignResult,
|
|
@@ -7578,10 +7786,25 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
7578
7786
|
PluginProgramDepartmentsListResult,
|
|
7579
7787
|
PluginProgramDepartmentsSetTargetAreaArgs,
|
|
7580
7788
|
PluginProgramDepartmentsSetTargetAreaResult,
|
|
7789
|
+
PluginProgramDepartmentsSetTargetCountArgs,
|
|
7790
|
+
PluginProgramDepartmentsSetTargetCountResult,
|
|
7581
7791
|
PluginProgramDepartmentsUnassignArgs,
|
|
7582
7792
|
PluginProgramDepartmentsUnassignResult,
|
|
7583
7793
|
PluginProgramDepartmentsUpdateArgs,
|
|
7584
7794
|
PluginProgramDepartmentsUpdateResult,
|
|
7795
|
+
PluginProgramLabel,
|
|
7796
|
+
PluginProgramLabelCreateItem,
|
|
7797
|
+
PluginProgramLabelRecord,
|
|
7798
|
+
PluginProgramLabelsApi,
|
|
7799
|
+
PluginProgramLabelsCreateArgs,
|
|
7800
|
+
PluginProgramLabelsCreateResult,
|
|
7801
|
+
PluginProgramLabelsGetArgs,
|
|
7802
|
+
PluginProgramLabelsGetResult,
|
|
7803
|
+
PluginProgramLabelsListResult,
|
|
7804
|
+
PluginProgramLabelsSetTargetAreaArgs,
|
|
7805
|
+
PluginProgramLabelsSetTargetAreaResult,
|
|
7806
|
+
PluginProgramLabelsSetTargetCountArgs,
|
|
7807
|
+
PluginProgramLabelsSetTargetCountResult,
|
|
7585
7808
|
PluginProgramLayoutApi,
|
|
7586
7809
|
PluginProgramLayoutApplyResult,
|
|
7587
7810
|
PluginProgramLayoutApplySolutionArgs,
|
|
@@ -7591,6 +7814,21 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
7591
7814
|
PluginProgramLayoutRunResult,
|
|
7592
7815
|
PluginProgramLayoutStackResult,
|
|
7593
7816
|
PluginProgramLayoutStateResult,
|
|
7817
|
+
PluginProgramMetadataApi,
|
|
7818
|
+
PluginProgramMetadataCreateHeaderArgs,
|
|
7819
|
+
PluginProgramMetadataCreateHeaderResult,
|
|
7820
|
+
PluginProgramMetadataGetArgs,
|
|
7821
|
+
PluginProgramMetadataGetResult,
|
|
7822
|
+
PluginProgramMetadataHeader,
|
|
7823
|
+
PluginProgramMetadataListArgs,
|
|
7824
|
+
PluginProgramMetadataListHeadersResult,
|
|
7825
|
+
PluginProgramMetadataListResult,
|
|
7826
|
+
PluginProgramMetadataRecord,
|
|
7827
|
+
PluginProgramMetadataUpdateArgs,
|
|
7828
|
+
PluginProgramMetadataUpdateItem,
|
|
7829
|
+
PluginProgramMetadataUpdateManyArgs,
|
|
7830
|
+
PluginProgramMetadataUpdateManyResult,
|
|
7831
|
+
PluginProgramMetadataUpdateResult,
|
|
7594
7832
|
PluginProgramMetricsApi,
|
|
7595
7833
|
PluginProgramMetricsSummary,
|
|
7596
7834
|
PluginProgramSiteAnalysisResult,
|
|
@@ -7625,8 +7863,10 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
7625
7863
|
PluginProgramSpreadsheetBindingsListResult,
|
|
7626
7864
|
PluginProgramSpreadsheetBindingsRefreshArgs,
|
|
7627
7865
|
PluginProgramSpreadsheetBindingsRefreshResult,
|
|
7866
|
+
PluginProgramSpreadsheetCreateCustomSheetArgs,
|
|
7628
7867
|
PluginProgramSpreadsheetCreateSheetArgs,
|
|
7629
7868
|
PluginProgramSpreadsheetCreateSheetResult,
|
|
7869
|
+
PluginProgramSpreadsheetCustomSheetResult,
|
|
7630
7870
|
PluginProgramSpreadsheetDatasetsApi,
|
|
7631
7871
|
PluginProgramSpreadsheetDatasetsListResult,
|
|
7632
7872
|
PluginProgramSpreadsheetDatasetsSetArgs,
|
|
@@ -7635,6 +7875,8 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
7635
7875
|
PluginProgramSpreadsheetExportResult,
|
|
7636
7876
|
PluginProgramSpreadsheetGetAuditLogArgs,
|
|
7637
7877
|
PluginProgramSpreadsheetGetAuditLogResult,
|
|
7878
|
+
PluginProgramSpreadsheetGetCustomSheetArgs,
|
|
7879
|
+
PluginProgramSpreadsheetGetCustomSheetResult,
|
|
7638
7880
|
PluginProgramSpreadsheetGetMaterialTakeoffResult,
|
|
7639
7881
|
PluginProgramSpreadsheetGetProgramResult,
|
|
7640
7882
|
PluginProgramSpreadsheetGetSheetDataArgs,
|
|
@@ -7642,6 +7884,8 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
7642
7884
|
PluginProgramSpreadsheetGetTakeoffResult,
|
|
7643
7885
|
PluginProgramSpreadsheetHighlightCellsArgs,
|
|
7644
7886
|
PluginProgramSpreadsheetHighlightCellsResult,
|
|
7887
|
+
PluginProgramSpreadsheetListCustomSheetPropertiesResult,
|
|
7888
|
+
PluginProgramSpreadsheetListCustomSheetsResult,
|
|
7645
7889
|
PluginProgramSpreadsheetListSheetsResult,
|
|
7646
7890
|
PluginProgramSpreadsheetMergeCellsArgs,
|
|
7647
7891
|
PluginProgramSpreadsheetMergeCellsResult,
|
|
@@ -7666,6 +7910,7 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
7666
7910
|
PluginProgramSpreadsheetTemplatesCreateResult,
|
|
7667
7911
|
PluginProgramSpreadsheetTransactionArgs,
|
|
7668
7912
|
PluginProgramSpreadsheetTransactionResult,
|
|
7913
|
+
PluginProgramSpreadsheetUpdateCustomSheetArgs,
|
|
7669
7914
|
PluginProjectApi,
|
|
7670
7915
|
PluginProjectInfo,
|
|
7671
7916
|
PluginProjectRef,
|
|
@@ -7751,6 +7996,9 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
7751
7996
|
PluginSpreadsheetColumn,
|
|
7752
7997
|
PluginSpreadsheetConditionalRule,
|
|
7753
7998
|
PluginSpreadsheetConditionalRuleType,
|
|
7999
|
+
PluginSpreadsheetCustomSheet,
|
|
8000
|
+
PluginSpreadsheetCustomSheetConfig,
|
|
8001
|
+
PluginSpreadsheetCustomSheetProperty,
|
|
7754
8002
|
PluginSpreadsheetDataset,
|
|
7755
8003
|
PluginSpreadsheetExportFormat,
|
|
7756
8004
|
PluginSpreadsheetFontStyle,
|