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