@snaptrude/plugin-core 0.2.7 → 0.2.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/CHANGELOG.md +15 -0
- package/dist/api/documentation/aiInspiration.d.ts +2155 -0
- package/dist/api/documentation/aiInspiration.d.ts.map +1 -0
- package/dist/api/documentation/index.d.ts +13 -0
- package/dist/api/documentation/index.d.ts.map +1 -0
- package/dist/api/entity/space.d.ts +103 -1
- package/dist/api/entity/space.d.ts.map +1 -1
- package/dist/api/index.d.ts +5 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/index.cjs +811 -225
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +743 -225
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/documentation/aiInspiration.ts +871 -0
- package/src/api/documentation/index.ts +15 -0
- package/src/api/entity/space.ts +31 -1
- package/src/api/index.ts +5 -0
package/dist/index.js
CHANGED
|
@@ -17,8 +17,8 @@ var PluginVec3Api = class {
|
|
|
17
17
|
* // { x: 1, y: 2, z: 3 }
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
new(x, y,
|
|
21
|
-
return { x, y, z:
|
|
20
|
+
new(x, y, z18) {
|
|
21
|
+
return { x, y, z: z18 };
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Add two vectors component-wise.
|
|
@@ -196,8 +196,8 @@ var PluginQuatApi = class {
|
|
|
196
196
|
* @param w - The W (scalar) component
|
|
197
197
|
* @returns A new {@linkcode PQuat}
|
|
198
198
|
*/
|
|
199
|
-
new(x, y,
|
|
200
|
-
return { x, y, z:
|
|
199
|
+
new(x, y, z18, w) {
|
|
200
|
+
return { x, y, z: z18, w };
|
|
201
201
|
}
|
|
202
202
|
/**
|
|
203
203
|
* Create an identity quaternion representing no rotation.
|
|
@@ -241,13 +241,13 @@ var PluginQuatApi = class {
|
|
|
241
241
|
* @param z - Rotation around Z axis in **radians**
|
|
242
242
|
* @returns A new {@linkcode PQuat}
|
|
243
243
|
*/
|
|
244
|
-
fromEuler(x, y,
|
|
244
|
+
fromEuler(x, y, z18) {
|
|
245
245
|
const cx = Math.cos(x / 2);
|
|
246
246
|
const sx = Math.sin(x / 2);
|
|
247
247
|
const cy = Math.cos(y / 2);
|
|
248
248
|
const sy = Math.sin(y / 2);
|
|
249
|
-
const cz = Math.cos(
|
|
250
|
-
const sz = Math.sin(
|
|
249
|
+
const cz = Math.cos(z18 / 2);
|
|
250
|
+
const sz = Math.sin(z18 / 2);
|
|
251
251
|
return {
|
|
252
252
|
x: sx * cy * cz + cx * sy * sz,
|
|
253
253
|
y: cx * sy * cz - sx * cy * sz,
|
|
@@ -578,38 +578,478 @@ var PluginCoreApi = class {
|
|
|
578
578
|
}
|
|
579
579
|
};
|
|
580
580
|
|
|
581
|
-
// src/api/
|
|
581
|
+
// src/api/documentation/aiInspiration.ts
|
|
582
582
|
import * as z7 from "zod";
|
|
583
|
+
var JsonPrimitive = z7.union([z7.string(), z7.number(), z7.boolean(), z7.null()]);
|
|
584
|
+
var JsonValue = z7.lazy(
|
|
585
|
+
() => z7.union([JsonPrimitive, z7.array(JsonValue), z7.record(z7.string(), JsonValue)])
|
|
586
|
+
);
|
|
587
|
+
var PluginAIInspirationRunMode = z7.enum(["blocking", "job"]);
|
|
588
|
+
var PluginAIInspirationOutputKind = z7.enum([
|
|
589
|
+
"source",
|
|
590
|
+
"image",
|
|
591
|
+
"video"
|
|
592
|
+
]);
|
|
593
|
+
var PluginAIInspirationModelOutput = z7.enum(["image", "video"]);
|
|
594
|
+
var PluginAIInspirationRuntimeProvider = z7.enum(["gpt", "fal"]);
|
|
595
|
+
var PluginAIInspirationPromptStrategy = z7.enum([
|
|
596
|
+
"gpt-image",
|
|
597
|
+
"fal-image",
|
|
598
|
+
"fal-video"
|
|
599
|
+
]);
|
|
600
|
+
var PluginAIInspirationShapeKind = z7.enum(["image", "view", "video"]);
|
|
601
|
+
var PluginAIInspirationVideoMode = z7.enum([
|
|
602
|
+
"animate",
|
|
603
|
+
"references",
|
|
604
|
+
"keyframes"
|
|
605
|
+
]);
|
|
606
|
+
var PluginAIInspirationVideoMotion = z7.enum([
|
|
607
|
+
"auto",
|
|
608
|
+
"slow-dolly",
|
|
609
|
+
"subtle-orbit",
|
|
610
|
+
"reveal"
|
|
611
|
+
]);
|
|
612
|
+
var PluginAIInspirationVideoDuration = z7.enum(["4s", "6s", "8s"]);
|
|
613
|
+
var PluginAIInspirationJobStatus = z7.enum([
|
|
614
|
+
"queued",
|
|
615
|
+
"running",
|
|
616
|
+
"completed",
|
|
617
|
+
"failed",
|
|
618
|
+
"cancelled"
|
|
619
|
+
]);
|
|
620
|
+
var PluginAIInspirationWorkflowRunState = z7.enum([
|
|
621
|
+
"current",
|
|
622
|
+
"stale",
|
|
623
|
+
"running",
|
|
624
|
+
"failed",
|
|
625
|
+
"superseded"
|
|
626
|
+
]);
|
|
627
|
+
var PluginAIInspirationRegionHint = z7.object({
|
|
628
|
+
x: z7.number().finite(),
|
|
629
|
+
y: z7.number().finite(),
|
|
630
|
+
w: z7.number().finite().positive(),
|
|
631
|
+
h: z7.number().finite().positive()
|
|
632
|
+
});
|
|
633
|
+
var PluginAIInspirationPoint = z7.object({
|
|
634
|
+
x: z7.number().finite(),
|
|
635
|
+
y: z7.number().finite()
|
|
636
|
+
});
|
|
637
|
+
var PluginAIInspirationTextAnnotation = z7.object({
|
|
638
|
+
text: z7.string().min(1),
|
|
639
|
+
x: z7.number().finite().optional(),
|
|
640
|
+
y: z7.number().finite().optional()
|
|
641
|
+
});
|
|
642
|
+
var PluginAIInspirationSketchGuidance = z7.object({
|
|
643
|
+
visualShapeIds: z7.array(z7.string()).optional(),
|
|
644
|
+
textAnnotations: z7.array(PluginAIInspirationTextAnnotation).optional()
|
|
645
|
+
});
|
|
646
|
+
var PluginAIInspirationSiteOptions = z7.object({
|
|
647
|
+
includeSatellite: z7.boolean().optional(),
|
|
648
|
+
includeStreetView: z7.boolean().optional(),
|
|
649
|
+
includeAerial: z7.boolean().optional(),
|
|
650
|
+
aerialBearing: z7.number().finite().optional(),
|
|
651
|
+
aerialPitch: z7.number().finite().optional(),
|
|
652
|
+
selectedDiagramIds: z7.array(z7.string()).optional(),
|
|
653
|
+
location: z7.object({
|
|
654
|
+
lat: z7.number().finite(),
|
|
655
|
+
lng: z7.number().finite()
|
|
656
|
+
}).optional()
|
|
657
|
+
});
|
|
658
|
+
var PluginAIInspirationAppliedPreset = z7.object({
|
|
659
|
+
source: z7.enum(["curated", "user"]),
|
|
660
|
+
presetId: z7.string().min(1),
|
|
661
|
+
name: z7.string().min(1),
|
|
662
|
+
savedPresetKind: z7.enum(["prompt", "style"]).optional(),
|
|
663
|
+
stylePrompt: z7.string().optional(),
|
|
664
|
+
modelId: z7.string().optional(),
|
|
665
|
+
referenceImages: z7.array(
|
|
666
|
+
z7.object({
|
|
667
|
+
url: z7.string().min(1),
|
|
668
|
+
label: z7.string().optional(),
|
|
669
|
+
weight: z7.number().finite().optional()
|
|
670
|
+
})
|
|
671
|
+
).optional(),
|
|
672
|
+
siteDefaults: z7.object({
|
|
673
|
+
includeSatellite: z7.boolean().optional(),
|
|
674
|
+
includeStreetView: z7.boolean().optional(),
|
|
675
|
+
includeAerial: z7.boolean().optional()
|
|
676
|
+
}).optional()
|
|
677
|
+
});
|
|
678
|
+
var PluginAIInspirationVideoOptions = z7.object({
|
|
679
|
+
mode: PluginAIInspirationVideoMode.optional(),
|
|
680
|
+
endFrameShapeId: z7.string().optional(),
|
|
681
|
+
motion: PluginAIInspirationVideoMotion.optional(),
|
|
682
|
+
duration: PluginAIInspirationVideoDuration.optional()
|
|
683
|
+
});
|
|
684
|
+
var PluginAIInspirationModel = z7.object({
|
|
685
|
+
id: z7.string(),
|
|
686
|
+
label: z7.string(),
|
|
687
|
+
supportsMultiImage: z7.boolean(),
|
|
688
|
+
output: PluginAIInspirationModelOutput,
|
|
689
|
+
isDefault: z7.boolean().optional()
|
|
690
|
+
});
|
|
691
|
+
var PluginAIInspirationModelCapability = z7.object({
|
|
692
|
+
id: z7.string(),
|
|
693
|
+
output: PluginAIInspirationModelOutput,
|
|
694
|
+
provider: PluginAIInspirationRuntimeProvider,
|
|
695
|
+
supportsRegionEdit: z7.boolean(),
|
|
696
|
+
supportsReferenceImages: z7.boolean(),
|
|
697
|
+
supportsStylePresets: z7.boolean(),
|
|
698
|
+
supportsSiteContext: z7.boolean(),
|
|
699
|
+
supportsSketchGuidance: z7.boolean(),
|
|
700
|
+
supportsKeyframes: z7.boolean(),
|
|
701
|
+
maxExtraImages: z7.number().int().nonnegative(),
|
|
702
|
+
promptStrategy: PluginAIInspirationPromptStrategy
|
|
703
|
+
});
|
|
704
|
+
var PluginAIInspirationListModelsResult = z7.object({
|
|
705
|
+
defaultModelId: z7.string(),
|
|
706
|
+
models: z7.array(PluginAIInspirationModel)
|
|
707
|
+
});
|
|
708
|
+
var PluginAIInspirationGetModelCapabilitiesArgs = z7.object({
|
|
709
|
+
modelId: z7.string().min(1)
|
|
710
|
+
});
|
|
711
|
+
var PluginAIInspirationGetModelCapabilitiesResult = z7.object({
|
|
712
|
+
capability: PluginAIInspirationModelCapability
|
|
713
|
+
});
|
|
714
|
+
var PluginAIInspirationShapeRef = z7.object({
|
|
715
|
+
shapeId: z7.string(),
|
|
716
|
+
assetId: z7.string().optional(),
|
|
717
|
+
kind: PluginAIInspirationShapeKind,
|
|
718
|
+
name: z7.string().optional(),
|
|
719
|
+
width: z7.number().finite().optional(),
|
|
720
|
+
height: z7.number().finite().optional(),
|
|
721
|
+
outputType: PluginAIInspirationOutputKind.optional(),
|
|
722
|
+
sourceUrl: z7.string().optional()
|
|
723
|
+
});
|
|
724
|
+
var PluginAIInspirationListSourcesArgs = z7.object({
|
|
725
|
+
includeGenerated: z7.boolean().optional(),
|
|
726
|
+
includeSourceUrl: z7.boolean().optional()
|
|
727
|
+
});
|
|
728
|
+
var PluginAIInspirationListSourcesResult = z7.object({
|
|
729
|
+
sources: z7.array(PluginAIInspirationShapeRef)
|
|
730
|
+
});
|
|
731
|
+
var PluginAIInspirationGetSelectionResult = z7.object({
|
|
732
|
+
selectedShapeIds: z7.array(z7.string()),
|
|
733
|
+
sources: z7.array(PluginAIInspirationShapeRef)
|
|
734
|
+
});
|
|
735
|
+
var PluginAIInspirationPresetReferenceImage = z7.object({
|
|
736
|
+
url: z7.string(),
|
|
737
|
+
label: z7.string().optional(),
|
|
738
|
+
weight: z7.number().finite().optional()
|
|
739
|
+
});
|
|
740
|
+
var PluginAIInspirationPreset = z7.object({
|
|
741
|
+
id: z7.string(),
|
|
742
|
+
name: z7.string(),
|
|
743
|
+
source: z7.enum(["curated", "user"]),
|
|
744
|
+
modelId: z7.string(),
|
|
745
|
+
categoryId: z7.string().optional(),
|
|
746
|
+
categoryLabel: z7.string().optional(),
|
|
747
|
+
description: z7.string().optional(),
|
|
748
|
+
previewImageUrl: z7.string().optional(),
|
|
749
|
+
prompt: z7.string().optional(),
|
|
750
|
+
stylePrompt: z7.string().optional(),
|
|
751
|
+
tags: z7.array(z7.string()).optional(),
|
|
752
|
+
referenceImages: z7.array(PluginAIInspirationPresetReferenceImage).optional(),
|
|
753
|
+
siteDefaults: PluginAIInspirationAppliedPreset.shape.siteDefaults.optional()
|
|
754
|
+
});
|
|
755
|
+
var PluginAIInspirationPresetCategory = z7.object({
|
|
756
|
+
id: z7.string(),
|
|
757
|
+
label: z7.string(),
|
|
758
|
+
description: z7.string().optional()
|
|
759
|
+
});
|
|
760
|
+
var PluginAIInspirationGetPresetCatalogResult = z7.object({
|
|
761
|
+
categories: z7.array(PluginAIInspirationPresetCategory),
|
|
762
|
+
presets: z7.array(PluginAIInspirationPreset)
|
|
763
|
+
});
|
|
764
|
+
var PluginAIInspirationOutput = z7.object({
|
|
765
|
+
outputType: z7.enum(["image", "video"]),
|
|
766
|
+
shapeId: z7.string(),
|
|
767
|
+
assetId: z7.string(),
|
|
768
|
+
outputUrl: z7.string().optional(),
|
|
769
|
+
position: PluginAIInspirationPoint.optional()
|
|
770
|
+
});
|
|
771
|
+
var PluginAIInspirationDebugSummary = z7.record(z7.string(), JsonValue);
|
|
772
|
+
var PluginAIInspirationRunMetadata = z7.object({
|
|
773
|
+
geometryFidelity: z7.string().optional(),
|
|
774
|
+
debugSummary: PluginAIInspirationDebugSummary.optional(),
|
|
775
|
+
streetViewComposite: z7.object({
|
|
776
|
+
used: z7.boolean(),
|
|
777
|
+
renderMode: z7.enum(["prompt_refs_default", "masked_composite_pilot"]),
|
|
778
|
+
backgroundLabel: z7.string().optional()
|
|
779
|
+
}).optional()
|
|
780
|
+
});
|
|
781
|
+
var PluginAIInspirationGenerateArgs = z7.object({
|
|
782
|
+
sourceShapeId: z7.string().min(1),
|
|
783
|
+
prompt: z7.string().min(1).max(8e3),
|
|
784
|
+
modelId: z7.string().optional(),
|
|
785
|
+
referenceShapeIds: z7.array(z7.string()).max(12).optional(),
|
|
786
|
+
referenceStrength: z7.enum(["low", "medium", "high"]).optional(),
|
|
787
|
+
appliedPreset: PluginAIInspirationAppliedPreset.optional(),
|
|
788
|
+
site: PluginAIInspirationSiteOptions.optional(),
|
|
789
|
+
regionHint: PluginAIInspirationRegionHint.optional(),
|
|
790
|
+
sketchGuidance: PluginAIInspirationSketchGuidance.optional(),
|
|
791
|
+
video: PluginAIInspirationVideoOptions.optional(),
|
|
792
|
+
runMode: PluginAIInspirationRunMode.optional()
|
|
793
|
+
});
|
|
794
|
+
var PluginAIInspirationRunResult = z7.object({
|
|
795
|
+
jobId: z7.string().optional(),
|
|
796
|
+
output: PluginAIInspirationOutput.optional(),
|
|
797
|
+
outputs: z7.array(PluginAIInspirationOutput).optional(),
|
|
798
|
+
metadata: PluginAIInspirationRunMetadata.optional()
|
|
799
|
+
});
|
|
800
|
+
var PluginAIInspirationRefineArgs = z7.object({
|
|
801
|
+
sourceShapeId: z7.string().min(1),
|
|
802
|
+
upscaleFactor: z7.union([z7.literal(1.5), z7.literal(2), z7.literal(4)]).optional(),
|
|
803
|
+
runMode: PluginAIInspirationRunMode.optional()
|
|
804
|
+
});
|
|
805
|
+
var PluginAIInspirationJobProgress = z7.object({
|
|
806
|
+
currentStep: z7.number().int().nonnegative().optional(),
|
|
807
|
+
totalSteps: z7.number().int().nonnegative().optional(),
|
|
808
|
+
message: z7.string().optional()
|
|
809
|
+
});
|
|
810
|
+
var PluginAIInspirationJob = z7.object({
|
|
811
|
+
jobId: z7.string(),
|
|
812
|
+
status: PluginAIInspirationJobStatus,
|
|
813
|
+
createdAt: z7.number(),
|
|
814
|
+
updatedAt: z7.number(),
|
|
815
|
+
completedAt: z7.number().optional(),
|
|
816
|
+
method: z7.string(),
|
|
817
|
+
progress: PluginAIInspirationJobProgress.optional(),
|
|
818
|
+
result: PluginAIInspirationRunResult.optional(),
|
|
819
|
+
error: z7.string().optional()
|
|
820
|
+
});
|
|
821
|
+
var PluginAIInspirationJobArgs = z7.object({
|
|
822
|
+
jobId: z7.string().min(1)
|
|
823
|
+
});
|
|
824
|
+
var PluginAIInspirationGetJobResult = z7.object({
|
|
825
|
+
job: PluginAIInspirationJob
|
|
826
|
+
});
|
|
827
|
+
var PluginAIInspirationCancelJobResult = z7.object({
|
|
828
|
+
job: PluginAIInspirationJob
|
|
829
|
+
});
|
|
830
|
+
var PluginAIInspirationListJobsResult = z7.object({
|
|
831
|
+
jobs: z7.array(PluginAIInspirationJob)
|
|
832
|
+
});
|
|
833
|
+
var PluginAIInspirationWorkflowVideoConfig = z7.object({
|
|
834
|
+
mode: z7.string().optional(),
|
|
835
|
+
motion: z7.string().optional(),
|
|
836
|
+
duration: z7.string().optional(),
|
|
837
|
+
endFrameShapeId: z7.string().optional()
|
|
838
|
+
});
|
|
839
|
+
var PluginAIInspirationGenerationInputSnapshot = z7.object({
|
|
840
|
+
version: z7.literal(1),
|
|
841
|
+
meta: z7.record(z7.string(), JsonValue),
|
|
842
|
+
regionHint: PluginAIInspirationRegionHint.optional(),
|
|
843
|
+
sketchGuidance: z7.record(z7.string(), JsonValue).optional(),
|
|
844
|
+
sourceCameraHeading: z7.number().finite().optional()
|
|
845
|
+
});
|
|
846
|
+
var PluginAIInspirationWorkflowOperation = z7.object({
|
|
847
|
+
type: z7.enum(["generate-image", "refine", "generate-video"]),
|
|
848
|
+
label: z7.string(),
|
|
849
|
+
prompt: z7.string().optional(),
|
|
850
|
+
modelId: z7.string().optional(),
|
|
851
|
+
presetId: z7.string().optional(),
|
|
852
|
+
presetName: z7.string().optional(),
|
|
853
|
+
refineFactor: z7.number().finite().optional(),
|
|
854
|
+
sourceRole: z7.enum(["primary", "end-frame"]).optional(),
|
|
855
|
+
video: PluginAIInspirationWorkflowVideoConfig.optional(),
|
|
856
|
+
generationInput: PluginAIInspirationGenerationInputSnapshot.optional()
|
|
857
|
+
});
|
|
858
|
+
var PluginAIInspirationWorkflowNode = z7.object({
|
|
859
|
+
id: z7.string(),
|
|
860
|
+
shapeId: z7.string(),
|
|
861
|
+
assetId: z7.string().optional(),
|
|
862
|
+
kind: PluginAIInspirationOutputKind,
|
|
863
|
+
state: z7.string(),
|
|
864
|
+
runState: PluginAIInspirationWorkflowRunState.optional(),
|
|
865
|
+
staleReason: z7.string().optional(),
|
|
866
|
+
incomingEdgeIds: z7.array(z7.string()),
|
|
867
|
+
outgoingEdgeIds: z7.array(z7.string()),
|
|
868
|
+
createdAt: z7.number(),
|
|
869
|
+
updatedAt: z7.number()
|
|
870
|
+
});
|
|
871
|
+
var PluginAIInspirationWorkflowEdge = z7.object({
|
|
872
|
+
id: z7.string(),
|
|
873
|
+
sourceNodeId: z7.string(),
|
|
874
|
+
targetNodeId: z7.string(),
|
|
875
|
+
arrowShapeId: z7.string().optional(),
|
|
876
|
+
operation: PluginAIInspirationWorkflowOperation,
|
|
877
|
+
state: z7.string(),
|
|
878
|
+
runState: PluginAIInspirationWorkflowRunState.optional(),
|
|
879
|
+
staleReason: z7.string().optional(),
|
|
880
|
+
supersededByEdgeId: z7.string().optional(),
|
|
881
|
+
createdAt: z7.number(),
|
|
882
|
+
updatedAt: z7.number()
|
|
883
|
+
});
|
|
884
|
+
var PluginAIInspirationWorkflow = z7.object({
|
|
885
|
+
id: z7.string(),
|
|
886
|
+
rootNodeIds: z7.array(z7.string()),
|
|
887
|
+
nodeIds: z7.array(z7.string()),
|
|
888
|
+
edgeIds: z7.array(z7.string()),
|
|
889
|
+
nodes: z7.record(z7.string(), PluginAIInspirationWorkflowNode),
|
|
890
|
+
edges: z7.record(z7.string(), PluginAIInspirationWorkflowEdge),
|
|
891
|
+
createdAt: z7.number(),
|
|
892
|
+
updatedAt: z7.number()
|
|
893
|
+
});
|
|
894
|
+
var PluginAIInspirationGetWorkflowForShapeArgs = z7.object({
|
|
895
|
+
shapeId: z7.string().min(1)
|
|
896
|
+
});
|
|
897
|
+
var PluginAIInspirationGetWorkflowForShapeResult = z7.object({
|
|
898
|
+
workflow: PluginAIInspirationWorkflow.nullable(),
|
|
899
|
+
node: PluginAIInspirationWorkflowNode.nullable()
|
|
900
|
+
});
|
|
901
|
+
var PluginAIInspirationRerunPlanResult = z7.discriminatedUnion(
|
|
902
|
+
"status",
|
|
903
|
+
[
|
|
904
|
+
z7.object({
|
|
905
|
+
status: z7.literal("ready"),
|
|
906
|
+
workflowId: z7.string(),
|
|
907
|
+
sourceNode: PluginAIInspirationWorkflowNode,
|
|
908
|
+
edgeIds: z7.array(z7.string()),
|
|
909
|
+
edges: z7.array(PluginAIInspirationWorkflowEdge),
|
|
910
|
+
recipe: z7.lazy(() => PluginAIInspirationRecipe),
|
|
911
|
+
needsEndFrame: z7.boolean(),
|
|
912
|
+
defaultEndFrameShapeId: z7.string().nullable()
|
|
913
|
+
}),
|
|
914
|
+
z7.object({
|
|
915
|
+
status: z7.literal("unavailable"),
|
|
916
|
+
reason: z7.enum([
|
|
917
|
+
"not-in-workflow",
|
|
918
|
+
"source-only",
|
|
919
|
+
"running",
|
|
920
|
+
"missing-input"
|
|
921
|
+
])
|
|
922
|
+
})
|
|
923
|
+
]
|
|
924
|
+
);
|
|
925
|
+
var PluginAIInspirationRerunSelectedBranchArgs = z7.object({
|
|
926
|
+
shapeId: z7.string().min(1),
|
|
927
|
+
endFrameShapeId: z7.string().optional(),
|
|
928
|
+
runMode: PluginAIInspirationRunMode.optional()
|
|
929
|
+
});
|
|
930
|
+
var PluginAIInspirationRecipeSlot = z7.object({
|
|
931
|
+
id: z7.string(),
|
|
932
|
+
type: z7.enum(["source-image", "end-frame"]),
|
|
933
|
+
label: z7.string(),
|
|
934
|
+
required: z7.boolean()
|
|
935
|
+
});
|
|
936
|
+
var PluginAIInspirationRecipeStep = z7.object({
|
|
937
|
+
id: z7.string(),
|
|
938
|
+
operation: PluginAIInspirationWorkflowOperation,
|
|
939
|
+
outputKind: z7.enum(["image", "video"])
|
|
940
|
+
});
|
|
941
|
+
var PluginAIInspirationRecipeDraft = z7.object({
|
|
942
|
+
name: z7.string(),
|
|
943
|
+
summary: z7.string(),
|
|
944
|
+
slots: z7.array(PluginAIInspirationRecipeSlot),
|
|
945
|
+
steps: z7.array(PluginAIInspirationRecipeStep).min(1).max(20),
|
|
946
|
+
outputKind: z7.enum(["image", "video"]),
|
|
947
|
+
thumbnailUrl: z7.string().optional()
|
|
948
|
+
});
|
|
949
|
+
var PluginAIInspirationRecipe = PluginAIInspirationRecipeDraft.extend({
|
|
950
|
+
version: z7.literal(1),
|
|
951
|
+
id: z7.string(),
|
|
952
|
+
fingerprint: z7.string().optional(),
|
|
953
|
+
createdAt: z7.number(),
|
|
954
|
+
updatedAt: z7.number()
|
|
955
|
+
});
|
|
956
|
+
var PluginAIInspirationExtractionResult = z7.discriminatedUnion(
|
|
957
|
+
"status",
|
|
958
|
+
[
|
|
959
|
+
z7.object({
|
|
960
|
+
status: z7.literal("ready"),
|
|
961
|
+
draft: PluginAIInspirationRecipeDraft
|
|
962
|
+
}),
|
|
963
|
+
z7.object({
|
|
964
|
+
status: z7.literal("unavailable"),
|
|
965
|
+
reason: z7.enum([
|
|
966
|
+
"not-in-workflow",
|
|
967
|
+
"source-only",
|
|
968
|
+
"missing-workflow",
|
|
969
|
+
"missing-node",
|
|
970
|
+
"missing-input",
|
|
971
|
+
"invalid-workflow"
|
|
972
|
+
])
|
|
973
|
+
})
|
|
974
|
+
]
|
|
975
|
+
);
|
|
976
|
+
var PluginAIInspirationListRecipesResult = z7.object({
|
|
977
|
+
recipes: z7.array(PluginAIInspirationRecipe)
|
|
978
|
+
});
|
|
979
|
+
var PluginAIInspirationSaveRecipeArgs = z7.object({
|
|
980
|
+
draft: PluginAIInspirationRecipeDraft,
|
|
981
|
+
name: z7.string().min(1)
|
|
982
|
+
});
|
|
983
|
+
var PluginAIInspirationSaveRecipeResult = z7.discriminatedUnion(
|
|
984
|
+
"status",
|
|
985
|
+
[
|
|
986
|
+
z7.object({ status: z7.literal("saved"), recipe: PluginAIInspirationRecipe }),
|
|
987
|
+
z7.object({
|
|
988
|
+
status: z7.literal("duplicate"),
|
|
989
|
+
recipe: PluginAIInspirationRecipe
|
|
990
|
+
}),
|
|
991
|
+
z7.object({ status: z7.literal("invalid-name"), recipe: z7.null() }),
|
|
992
|
+
z7.object({ status: z7.literal("failed"), recipe: z7.null() })
|
|
993
|
+
]
|
|
994
|
+
);
|
|
995
|
+
var PluginAIInspirationDeleteRecipeArgs = z7.object({
|
|
996
|
+
recipeId: z7.string().min(1)
|
|
997
|
+
});
|
|
998
|
+
var PluginAIInspirationDeleteRecipeResult = z7.object({
|
|
999
|
+
deleted: z7.boolean()
|
|
1000
|
+
});
|
|
1001
|
+
var PluginAIInspirationExtractRecipeFromShapeArgs = z7.object({
|
|
1002
|
+
shapeId: z7.string().min(1)
|
|
1003
|
+
});
|
|
1004
|
+
var PluginAIInspirationRunRecipeArgs = z7.object({
|
|
1005
|
+
recipeId: z7.string().optional(),
|
|
1006
|
+
recipe: PluginAIInspirationRecipe.optional(),
|
|
1007
|
+
slotShapeIds: z7.record(z7.string(), z7.string()),
|
|
1008
|
+
runMode: PluginAIInspirationRunMode.optional()
|
|
1009
|
+
});
|
|
1010
|
+
var PluginDocumentationAIInspirationApi = class {
|
|
1011
|
+
constructor() {
|
|
1012
|
+
}
|
|
1013
|
+
};
|
|
1014
|
+
|
|
1015
|
+
// src/api/documentation/index.ts
|
|
1016
|
+
var PluginDocumentationApi = class {
|
|
1017
|
+
constructor() {
|
|
1018
|
+
}
|
|
1019
|
+
};
|
|
1020
|
+
|
|
1021
|
+
// src/api/entity/buildableEnvelope.ts
|
|
1022
|
+
import * as z8 from "zod";
|
|
583
1023
|
var PluginBuildableEnvelopeApi = class {
|
|
584
1024
|
constructor() {
|
|
585
1025
|
}
|
|
586
1026
|
};
|
|
587
|
-
var PluginBuildableEnvelopePolygonVertex =
|
|
588
|
-
|
|
589
|
-
|
|
1027
|
+
var PluginBuildableEnvelopePolygonVertex = z8.union([
|
|
1028
|
+
z8.object({ x: z8.number().finite(), z: z8.number().finite() }).strict(),
|
|
1029
|
+
z8.tuple([z8.number().finite(), z8.number().finite()])
|
|
590
1030
|
]);
|
|
591
|
-
var PluginBuildableEnvelopeVerticalCap =
|
|
592
|
-
|
|
593
|
-
kind:
|
|
594
|
-
maxHeight:
|
|
1031
|
+
var PluginBuildableEnvelopeVerticalCap = z8.discriminatedUnion("kind", [
|
|
1032
|
+
z8.object({
|
|
1033
|
+
kind: z8.literal("max_height"),
|
|
1034
|
+
maxHeight: z8.number().finite().positive()
|
|
595
1035
|
}).strict(),
|
|
596
|
-
|
|
597
|
-
kind:
|
|
598
|
-
maxFloors:
|
|
1036
|
+
z8.object({
|
|
1037
|
+
kind: z8.literal("max_floors"),
|
|
1038
|
+
maxFloors: z8.number().finite().int().positive()
|
|
599
1039
|
}).strict()
|
|
600
1040
|
]);
|
|
601
|
-
var PluginBuildableEnvelopeSetbackTier =
|
|
602
|
-
aboveHeight:
|
|
603
|
-
front:
|
|
604
|
-
side:
|
|
605
|
-
rear:
|
|
1041
|
+
var PluginBuildableEnvelopeSetbackTier = z8.object({
|
|
1042
|
+
aboveHeight: z8.number().finite().nonnegative(),
|
|
1043
|
+
front: z8.number().finite().nonnegative(),
|
|
1044
|
+
side: z8.number().finite().nonnegative(),
|
|
1045
|
+
rear: z8.number().finite().nonnegative()
|
|
606
1046
|
}).strict();
|
|
607
1047
|
function refineSetbackTiers(args, ctx) {
|
|
608
1048
|
const tiers = args.setbacks;
|
|
609
1049
|
if (tiers.length === 0) return;
|
|
610
1050
|
if (tiers[0].aboveHeight !== 0) {
|
|
611
1051
|
ctx.addIssue({
|
|
612
|
-
code:
|
|
1052
|
+
code: z8.ZodIssueCode.custom,
|
|
613
1053
|
path: ["setbacks", 0, "aboveHeight"],
|
|
614
1054
|
message: "Ground tier required: setbacks[0].aboveHeight must be 0."
|
|
615
1055
|
});
|
|
@@ -617,125 +1057,125 @@ function refineSetbackTiers(args, ctx) {
|
|
|
617
1057
|
for (let i = 1; i < tiers.length; i++) {
|
|
618
1058
|
if (!(tiers[i].aboveHeight > tiers[i - 1].aboveHeight)) {
|
|
619
1059
|
ctx.addIssue({
|
|
620
|
-
code:
|
|
1060
|
+
code: z8.ZodIssueCode.custom,
|
|
621
1061
|
path: ["setbacks", i, "aboveHeight"],
|
|
622
1062
|
message: "Setback tiers must be ordered by strictly increasing aboveHeight."
|
|
623
1063
|
});
|
|
624
1064
|
}
|
|
625
1065
|
}
|
|
626
1066
|
}
|
|
627
|
-
var PluginBuildableEnvelopeCreateArgs =
|
|
628
|
-
sitePolygon:
|
|
629
|
-
lengthUnit:
|
|
630
|
-
setbacks:
|
|
1067
|
+
var PluginBuildableEnvelopeCreateArgs = z8.object({
|
|
1068
|
+
sitePolygon: z8.array(PluginBuildableEnvelopePolygonVertex).min(3),
|
|
1069
|
+
lengthUnit: z8.union([z8.literal("ft"), z8.literal("m")]),
|
|
1070
|
+
setbacks: z8.array(PluginBuildableEnvelopeSetbackTier).min(1),
|
|
631
1071
|
verticalCap: PluginBuildableEnvelopeVerticalCap,
|
|
632
|
-
floorToFloor:
|
|
633
|
-
farRatio:
|
|
634
|
-
lotCoverageMaxPct:
|
|
1072
|
+
floorToFloor: z8.number().finite().positive(),
|
|
1073
|
+
farRatio: z8.number().finite().positive().optional(),
|
|
1074
|
+
lotCoverageMaxPct: z8.number().finite().min(0).max(100).optional()
|
|
635
1075
|
}).strict().superRefine(refineSetbackTiers);
|
|
636
|
-
var PluginBuildableEnvelopeCreateResult =
|
|
637
|
-
buildableEnvelopeId:
|
|
1076
|
+
var PluginBuildableEnvelopeCreateResult = z8.object({
|
|
1077
|
+
buildableEnvelopeId: z8.string().min(1)
|
|
638
1078
|
}).strict();
|
|
639
|
-
var PluginBuildableEnvelopeUpdateArgs =
|
|
640
|
-
buildableEnvelopeId:
|
|
641
|
-
sitePolygon:
|
|
642
|
-
lengthUnit:
|
|
643
|
-
setbacks:
|
|
1079
|
+
var PluginBuildableEnvelopeUpdateArgs = z8.object({
|
|
1080
|
+
buildableEnvelopeId: z8.string().min(1),
|
|
1081
|
+
sitePolygon: z8.array(PluginBuildableEnvelopePolygonVertex).min(3),
|
|
1082
|
+
lengthUnit: z8.union([z8.literal("ft"), z8.literal("m")]),
|
|
1083
|
+
setbacks: z8.array(PluginBuildableEnvelopeSetbackTier).min(1),
|
|
644
1084
|
verticalCap: PluginBuildableEnvelopeVerticalCap,
|
|
645
|
-
floorToFloor:
|
|
646
|
-
farRatio:
|
|
647
|
-
lotCoverageMaxPct:
|
|
1085
|
+
floorToFloor: z8.number().finite().positive(),
|
|
1086
|
+
farRatio: z8.number().finite().positive().optional(),
|
|
1087
|
+
lotCoverageMaxPct: z8.number().finite().min(0).max(100).optional()
|
|
648
1088
|
}).strict().superRefine(refineSetbackTiers);
|
|
649
|
-
var PluginBuildableEnvelopeUpdateResult =
|
|
650
|
-
buildableEnvelopeId:
|
|
1089
|
+
var PluginBuildableEnvelopeUpdateResult = z8.object({
|
|
1090
|
+
buildableEnvelopeId: z8.string().min(1)
|
|
651
1091
|
}).strict();
|
|
652
1092
|
|
|
653
1093
|
// src/api/entity/department.ts
|
|
654
|
-
import * as
|
|
1094
|
+
import * as z9 from "zod";
|
|
655
1095
|
var PluginDepartmentApi = class {
|
|
656
1096
|
constructor() {
|
|
657
1097
|
}
|
|
658
1098
|
};
|
|
659
|
-
var PluginDepartmentCreateArgs =
|
|
660
|
-
name:
|
|
661
|
-
color:
|
|
1099
|
+
var PluginDepartmentCreateArgs = z9.object({
|
|
1100
|
+
name: z9.string(),
|
|
1101
|
+
color: z9.string()
|
|
662
1102
|
});
|
|
663
|
-
var PluginDepartmentCreateResult =
|
|
664
|
-
departmentId:
|
|
1103
|
+
var PluginDepartmentCreateResult = z9.object({
|
|
1104
|
+
departmentId: z9.string()
|
|
665
1105
|
});
|
|
666
|
-
var PluginDepartmentEntry =
|
|
667
|
-
id:
|
|
668
|
-
name:
|
|
669
|
-
color:
|
|
1106
|
+
var PluginDepartmentEntry = z9.object({
|
|
1107
|
+
id: z9.string(),
|
|
1108
|
+
name: z9.string(),
|
|
1109
|
+
color: z9.string()
|
|
670
1110
|
});
|
|
671
|
-
var PluginDepartmentGetAllResult =
|
|
672
|
-
departments:
|
|
1111
|
+
var PluginDepartmentGetAllResult = z9.object({
|
|
1112
|
+
departments: z9.array(PluginDepartmentEntry)
|
|
673
1113
|
});
|
|
674
1114
|
|
|
675
1115
|
// src/api/entity/referenceLine.ts
|
|
676
|
-
import * as
|
|
1116
|
+
import * as z10 from "zod";
|
|
677
1117
|
var PluginReferenceLineApi = class {
|
|
678
1118
|
constructor() {
|
|
679
1119
|
}
|
|
680
1120
|
};
|
|
681
|
-
var PluginReferenceLineCreateMultiArgs =
|
|
1121
|
+
var PluginReferenceLineCreateMultiArgs = z10.object({
|
|
682
1122
|
profile: PProfile
|
|
683
1123
|
});
|
|
684
|
-
var PluginReferenceLineCreateMultiResult =
|
|
685
|
-
referenceLineIds:
|
|
1124
|
+
var PluginReferenceLineCreateMultiResult = z10.object({
|
|
1125
|
+
referenceLineIds: z10.array(z10.string())
|
|
686
1126
|
});
|
|
687
|
-
var PluginReferenceLineGetProperty =
|
|
1127
|
+
var PluginReferenceLineGetProperty = z10.enum([
|
|
688
1128
|
"curve"
|
|
689
1129
|
]);
|
|
690
|
-
var PluginReferenceLineGetArgs =
|
|
691
|
-
referenceLineId:
|
|
692
|
-
properties:
|
|
1130
|
+
var PluginReferenceLineGetArgs = z10.object({
|
|
1131
|
+
referenceLineId: z10.string(),
|
|
1132
|
+
properties: z10.array(PluginReferenceLineGetProperty)
|
|
693
1133
|
});
|
|
694
|
-
var PluginReferenceLineGetResult =
|
|
1134
|
+
var PluginReferenceLineGetResult = z10.object({
|
|
695
1135
|
curve: PCurve
|
|
696
1136
|
}).partial();
|
|
697
|
-
var PluginReferenceLineGetAllResult =
|
|
698
|
-
referenceLineIds:
|
|
1137
|
+
var PluginReferenceLineGetAllResult = z10.object({
|
|
1138
|
+
referenceLineIds: z10.array(z10.string())
|
|
699
1139
|
});
|
|
700
|
-
var PluginReferenceLineDeleteArgs =
|
|
701
|
-
referenceLineId:
|
|
1140
|
+
var PluginReferenceLineDeleteArgs = z10.object({
|
|
1141
|
+
referenceLineId: z10.string()
|
|
702
1142
|
});
|
|
703
1143
|
|
|
704
1144
|
// src/api/entity/space.ts
|
|
705
|
-
import * as
|
|
1145
|
+
import * as z11 from "zod";
|
|
706
1146
|
var PluginSpaceApi = class {
|
|
707
1147
|
constructor() {
|
|
708
1148
|
}
|
|
709
1149
|
};
|
|
710
|
-
var PluginSpaceCreateRectangularArgs =
|
|
1150
|
+
var PluginSpaceCreateRectangularArgs = z11.object({
|
|
711
1151
|
position: PVec3,
|
|
712
|
-
dimensions:
|
|
713
|
-
width:
|
|
714
|
-
height:
|
|
715
|
-
depth:
|
|
1152
|
+
dimensions: z11.object({
|
|
1153
|
+
width: z11.number(),
|
|
1154
|
+
height: z11.number(),
|
|
1155
|
+
depth: z11.number()
|
|
716
1156
|
})
|
|
717
1157
|
});
|
|
718
|
-
var PluginSpaceCreateRectangularResult =
|
|
719
|
-
spaceId:
|
|
1158
|
+
var PluginSpaceCreateRectangularResult = z11.object({
|
|
1159
|
+
spaceId: z11.string()
|
|
720
1160
|
});
|
|
721
|
-
var PluginSpaceCreateFromProfileArgs =
|
|
1161
|
+
var PluginSpaceCreateFromProfileArgs = z11.object({
|
|
722
1162
|
profile: PProfile,
|
|
723
|
-
innerProfiles:
|
|
724
|
-
extrudeHeight:
|
|
1163
|
+
innerProfiles: z11.array(PProfile).optional(),
|
|
1164
|
+
extrudeHeight: z11.number(),
|
|
725
1165
|
position: PVec3
|
|
726
1166
|
});
|
|
727
|
-
var PluginSpaceCreateFromProfileResult =
|
|
728
|
-
spaceId:
|
|
1167
|
+
var PluginSpaceCreateFromProfileResult = z11.object({
|
|
1168
|
+
spaceId: z11.string()
|
|
729
1169
|
});
|
|
730
|
-
var PluginSpaceUpdateGeometryFromProfileArgs =
|
|
731
|
-
spaceId:
|
|
1170
|
+
var PluginSpaceUpdateGeometryFromProfileArgs = z11.object({
|
|
1171
|
+
spaceId: z11.string(),
|
|
732
1172
|
profile: PProfile,
|
|
733
|
-
extrudeHeight:
|
|
1173
|
+
extrudeHeight: z11.number()
|
|
734
1174
|
});
|
|
735
|
-
var PluginSpaceUpdateGeometryFromProfileResult =
|
|
736
|
-
spaceId:
|
|
1175
|
+
var PluginSpaceUpdateGeometryFromProfileResult = z11.object({
|
|
1176
|
+
spaceId: z11.string()
|
|
737
1177
|
});
|
|
738
|
-
var PluginSpaceGetProperty =
|
|
1178
|
+
var PluginSpaceGetProperty = z11.enum([
|
|
739
1179
|
// Basic
|
|
740
1180
|
"id",
|
|
741
1181
|
"type",
|
|
@@ -748,6 +1188,7 @@ var PluginSpaceGetProperty = z10.enum([
|
|
|
748
1188
|
"height",
|
|
749
1189
|
"massType",
|
|
750
1190
|
"spaceType",
|
|
1191
|
+
"areaClass",
|
|
751
1192
|
"storey",
|
|
752
1193
|
"departmentId",
|
|
753
1194
|
"departmentName",
|
|
@@ -760,14 +1201,16 @@ var PluginSpaceGetProperty = z10.enum([
|
|
|
760
1201
|
// Derived from brep
|
|
761
1202
|
"planPoints",
|
|
762
1203
|
"profile",
|
|
1204
|
+
"innerProfiles",
|
|
1205
|
+
"innerPlanPoints",
|
|
763
1206
|
// Derived from adjacency manager
|
|
764
1207
|
"adjacency"
|
|
765
1208
|
]);
|
|
766
|
-
var PluginSpaceGetArgs =
|
|
767
|
-
spaceId:
|
|
768
|
-
properties:
|
|
1209
|
+
var PluginSpaceGetArgs = z11.object({
|
|
1210
|
+
spaceId: z11.string(),
|
|
1211
|
+
properties: z11.array(PluginSpaceGetProperty)
|
|
769
1212
|
});
|
|
770
|
-
var PluginSpaceType =
|
|
1213
|
+
var PluginSpaceType = z11.enum([
|
|
771
1214
|
"Room",
|
|
772
1215
|
"Program Block",
|
|
773
1216
|
"Balcony",
|
|
@@ -779,44 +1222,48 @@ var PluginSpaceType = z10.enum([
|
|
|
779
1222
|
"Envelope",
|
|
780
1223
|
"Parking"
|
|
781
1224
|
]);
|
|
782
|
-
var
|
|
1225
|
+
var PluginAreaClass = z11.enum(["NET", "GROSS", "EXCLUDED"]);
|
|
1226
|
+
var PluginSpaceGetResult = z11.object({
|
|
783
1227
|
// Basic
|
|
784
|
-
id:
|
|
785
|
-
type:
|
|
786
|
-
room_type:
|
|
787
|
-
name:
|
|
1228
|
+
id: z11.string(),
|
|
1229
|
+
type: z11.string(),
|
|
1230
|
+
room_type: z11.string(),
|
|
1231
|
+
name: z11.string(),
|
|
788
1232
|
// Derived from parametric data
|
|
789
|
-
area:
|
|
790
|
-
breadth:
|
|
791
|
-
depth:
|
|
792
|
-
height:
|
|
793
|
-
massType:
|
|
1233
|
+
area: z11.number(),
|
|
1234
|
+
breadth: z11.number(),
|
|
1235
|
+
depth: z11.number(),
|
|
1236
|
+
height: z11.number(),
|
|
1237
|
+
massType: z11.string().nullable(),
|
|
794
1238
|
spaceType: PluginSpaceType.nullable(),
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
1239
|
+
areaClass: PluginAreaClass,
|
|
1240
|
+
storey: z11.number().nullable(),
|
|
1241
|
+
departmentId: z11.string().nullable(),
|
|
1242
|
+
departmentName: z11.string(),
|
|
1243
|
+
departmentColor: z11.string(),
|
|
799
1244
|
// Derived from mesh
|
|
800
1245
|
position: PVec3,
|
|
801
1246
|
absolutePosition: PVec3,
|
|
802
1247
|
rotation: PVec3,
|
|
803
1248
|
rotationQuaternion: PQuat.nullable(),
|
|
804
1249
|
// Derived from brep
|
|
805
|
-
planPoints:
|
|
1250
|
+
planPoints: z11.array(PVec3),
|
|
806
1251
|
profile: PProfile,
|
|
1252
|
+
innerProfiles: z11.array(PProfile),
|
|
1253
|
+
innerPlanPoints: z11.array(z11.array(PVec3)),
|
|
807
1254
|
// Derived from adjacency manager
|
|
808
|
-
adjacency:
|
|
809
|
-
spaceId:
|
|
810
|
-
value:
|
|
1255
|
+
adjacency: z11.array(z11.object({
|
|
1256
|
+
spaceId: z11.string(),
|
|
1257
|
+
value: z11.number()
|
|
811
1258
|
}))
|
|
812
1259
|
}).partial();
|
|
813
|
-
var PluginSpaceGetAllResult =
|
|
814
|
-
spacesIds:
|
|
1260
|
+
var PluginSpaceGetAllResult = z11.object({
|
|
1261
|
+
spacesIds: z11.array(z11.string())
|
|
815
1262
|
});
|
|
816
|
-
var PluginSpaceDeleteArgs =
|
|
817
|
-
spaceId:
|
|
1263
|
+
var PluginSpaceDeleteArgs = z11.object({
|
|
1264
|
+
spaceId: z11.string()
|
|
818
1265
|
});
|
|
819
|
-
var PluginMassType =
|
|
1266
|
+
var PluginMassType = z11.enum([
|
|
820
1267
|
"Plinth",
|
|
821
1268
|
"Void",
|
|
822
1269
|
"Pergola",
|
|
@@ -830,95 +1277,98 @@ var PluginMassType = z10.enum([
|
|
|
830
1277
|
"Mass",
|
|
831
1278
|
"Site"
|
|
832
1279
|
]);
|
|
833
|
-
var PluginWellKnownDepartmentId =
|
|
1280
|
+
var PluginWellKnownDepartmentId = z11.enum([
|
|
834
1281
|
"DEFAULT",
|
|
835
1282
|
"SITE",
|
|
836
1283
|
"ENVELOPE",
|
|
837
1284
|
"CORE"
|
|
838
1285
|
]);
|
|
839
|
-
var PluginDepartmentId =
|
|
1286
|
+
var PluginDepartmentId = z11.union([
|
|
840
1287
|
PluginWellKnownDepartmentId,
|
|
841
|
-
|
|
1288
|
+
z11.uuid()
|
|
842
1289
|
]);
|
|
843
|
-
var PluginSpaceUpdateArgs =
|
|
844
|
-
spaceId:
|
|
845
|
-
properties:
|
|
846
|
-
room_type:
|
|
1290
|
+
var PluginSpaceUpdateArgs = z11.object({
|
|
1291
|
+
spaceId: z11.string(),
|
|
1292
|
+
properties: z11.object({
|
|
1293
|
+
room_type: z11.string().optional(),
|
|
847
1294
|
massType: PluginMassType.optional(),
|
|
848
1295
|
spaceType: PluginSpaceType.optional(),
|
|
1296
|
+
areaClass: PluginAreaClass.optional(),
|
|
849
1297
|
departmentId: PluginDepartmentId.optional()
|
|
850
1298
|
})
|
|
851
1299
|
});
|
|
852
|
-
var PluginSpaceUpdateResult =
|
|
853
|
-
spaceId:
|
|
854
|
-
room_type:
|
|
855
|
-
massType:
|
|
856
|
-
spaceType:
|
|
857
|
-
|
|
1300
|
+
var PluginSpaceUpdateResult = z11.object({
|
|
1301
|
+
spaceId: z11.string(),
|
|
1302
|
+
room_type: z11.string().optional(),
|
|
1303
|
+
massType: z11.string().optional(),
|
|
1304
|
+
spaceType: z11.string().optional(),
|
|
1305
|
+
areaClass: PluginAreaClass.optional(),
|
|
1306
|
+
departmentId: z11.string().nullable().optional()
|
|
858
1307
|
});
|
|
859
|
-
var PluginSpaceBulkCreateItem =
|
|
860
|
-
|
|
861
|
-
kind:
|
|
1308
|
+
var PluginSpaceBulkCreateItem = z11.discriminatedUnion("kind", [
|
|
1309
|
+
z11.object({
|
|
1310
|
+
kind: z11.literal("rectangular"),
|
|
862
1311
|
position: PVec3,
|
|
863
|
-
dimensions:
|
|
864
|
-
width:
|
|
865
|
-
height:
|
|
866
|
-
depth:
|
|
1312
|
+
dimensions: z11.object({
|
|
1313
|
+
width: z11.number(),
|
|
1314
|
+
height: z11.number(),
|
|
1315
|
+
depth: z11.number()
|
|
867
1316
|
}),
|
|
868
|
-
room_type:
|
|
1317
|
+
room_type: z11.string().optional(),
|
|
869
1318
|
spaceType: PluginSpaceType.optional(),
|
|
870
1319
|
massType: PluginMassType.optional(),
|
|
871
1320
|
departmentId: PluginDepartmentId.optional()
|
|
872
1321
|
}),
|
|
873
|
-
|
|
874
|
-
kind:
|
|
1322
|
+
z11.object({
|
|
1323
|
+
kind: z11.literal("profile"),
|
|
875
1324
|
profile: PProfile,
|
|
876
|
-
innerProfiles:
|
|
877
|
-
extrudeHeight:
|
|
1325
|
+
innerProfiles: z11.array(PProfile).optional(),
|
|
1326
|
+
extrudeHeight: z11.number(),
|
|
878
1327
|
position: PVec3,
|
|
879
|
-
room_type:
|
|
1328
|
+
room_type: z11.string().optional(),
|
|
880
1329
|
spaceType: PluginSpaceType.optional(),
|
|
881
1330
|
massType: PluginMassType.optional(),
|
|
882
1331
|
departmentId: PluginDepartmentId.optional()
|
|
883
1332
|
})
|
|
884
1333
|
]);
|
|
885
|
-
var PluginSpaceBulkCreateArgs =
|
|
886
|
-
items:
|
|
1334
|
+
var PluginSpaceBulkCreateArgs = z11.object({
|
|
1335
|
+
items: z11.array(PluginSpaceBulkCreateItem)
|
|
887
1336
|
});
|
|
888
|
-
var PluginSpaceBulkCreateResult =
|
|
889
|
-
spaceIds:
|
|
1337
|
+
var PluginSpaceBulkCreateResult = z11.object({
|
|
1338
|
+
spaceIds: z11.array(z11.string())
|
|
890
1339
|
});
|
|
891
|
-
var PluginSpaceBulkUpdateItem =
|
|
892
|
-
spaceId:
|
|
1340
|
+
var PluginSpaceBulkUpdateItem = z11.object({
|
|
1341
|
+
spaceId: z11.string(),
|
|
893
1342
|
profile: PProfile.optional(),
|
|
894
|
-
extrudeHeight:
|
|
895
|
-
properties:
|
|
896
|
-
room_type:
|
|
1343
|
+
extrudeHeight: z11.number().optional(),
|
|
1344
|
+
properties: z11.object({
|
|
1345
|
+
room_type: z11.string().optional(),
|
|
897
1346
|
massType: PluginMassType.optional(),
|
|
898
1347
|
spaceType: PluginSpaceType.optional(),
|
|
1348
|
+
areaClass: PluginAreaClass.optional(),
|
|
899
1349
|
departmentId: PluginDepartmentId.optional()
|
|
900
1350
|
}).optional()
|
|
901
1351
|
});
|
|
902
|
-
var PluginSpaceBulkUpdateArgs =
|
|
903
|
-
items:
|
|
1352
|
+
var PluginSpaceBulkUpdateArgs = z11.object({
|
|
1353
|
+
items: z11.array(PluginSpaceBulkUpdateItem)
|
|
904
1354
|
});
|
|
905
|
-
var PluginSpaceBulkUpdateResult =
|
|
906
|
-
spaces:
|
|
1355
|
+
var PluginSpaceBulkUpdateResult = z11.object({
|
|
1356
|
+
spaces: z11.array(PluginSpaceUpdateResult)
|
|
907
1357
|
});
|
|
908
|
-
var PluginSpaceBulkDeleteArgs =
|
|
909
|
-
spaceIds:
|
|
1358
|
+
var PluginSpaceBulkDeleteArgs = z11.object({
|
|
1359
|
+
spaceIds: z11.array(z11.string())
|
|
910
1360
|
});
|
|
911
|
-
var PluginSpaceBulkDeleteResult =
|
|
912
|
-
deletedSpaceIds:
|
|
1361
|
+
var PluginSpaceBulkDeleteResult = z11.object({
|
|
1362
|
+
deletedSpaceIds: z11.array(z11.string())
|
|
913
1363
|
});
|
|
914
1364
|
|
|
915
1365
|
// src/api/entity/story.ts
|
|
916
|
-
import * as
|
|
1366
|
+
import * as z12 from "zod";
|
|
917
1367
|
var PluginStoryApi = class {
|
|
918
1368
|
constructor() {
|
|
919
1369
|
}
|
|
920
1370
|
};
|
|
921
|
-
var PluginStoryGetProperty =
|
|
1371
|
+
var PluginStoryGetProperty = z12.enum([
|
|
922
1372
|
"value",
|
|
923
1373
|
"id",
|
|
924
1374
|
"name",
|
|
@@ -928,44 +1378,44 @@ var PluginStoryGetProperty = z11.enum([
|
|
|
928
1378
|
"spacesCount",
|
|
929
1379
|
"totalArea"
|
|
930
1380
|
]);
|
|
931
|
-
var PluginStoryGetArgs =
|
|
932
|
-
storyValue:
|
|
933
|
-
properties:
|
|
1381
|
+
var PluginStoryGetArgs = z12.object({
|
|
1382
|
+
storyValue: z12.number().int(),
|
|
1383
|
+
properties: z12.array(PluginStoryGetProperty)
|
|
934
1384
|
});
|
|
935
|
-
var PluginStoryGetResult =
|
|
936
|
-
value:
|
|
937
|
-
id:
|
|
938
|
-
name:
|
|
939
|
-
height:
|
|
940
|
-
base:
|
|
941
|
-
hidden:
|
|
942
|
-
spacesCount:
|
|
943
|
-
totalArea:
|
|
1385
|
+
var PluginStoryGetResult = z12.object({
|
|
1386
|
+
value: z12.number(),
|
|
1387
|
+
id: z12.string(),
|
|
1388
|
+
name: z12.string(),
|
|
1389
|
+
height: z12.number(),
|
|
1390
|
+
base: z12.number(),
|
|
1391
|
+
hidden: z12.boolean(),
|
|
1392
|
+
spacesCount: z12.number(),
|
|
1393
|
+
totalArea: z12.number()
|
|
944
1394
|
}).partial();
|
|
945
|
-
var PluginStoryGetAllResult =
|
|
946
|
-
stories:
|
|
947
|
-
|
|
948
|
-
value:
|
|
949
|
-
id:
|
|
950
|
-
name:
|
|
1395
|
+
var PluginStoryGetAllResult = z12.object({
|
|
1396
|
+
stories: z12.array(
|
|
1397
|
+
z12.object({
|
|
1398
|
+
value: z12.number(),
|
|
1399
|
+
id: z12.string(),
|
|
1400
|
+
name: z12.string()
|
|
951
1401
|
})
|
|
952
1402
|
)
|
|
953
1403
|
});
|
|
954
|
-
var PluginStoryCreateArgs =
|
|
955
|
-
storyValue:
|
|
956
|
-
height:
|
|
1404
|
+
var PluginStoryCreateArgs = z12.object({
|
|
1405
|
+
storyValue: z12.number().int(),
|
|
1406
|
+
height: z12.number().optional()
|
|
957
1407
|
});
|
|
958
|
-
var PluginStoryCreateResult =
|
|
959
|
-
storyId:
|
|
960
|
-
storyValue:
|
|
1408
|
+
var PluginStoryCreateResult = z12.object({
|
|
1409
|
+
storyId: z12.string(),
|
|
1410
|
+
storyValue: z12.number()
|
|
961
1411
|
});
|
|
962
|
-
var PluginStoryUpdateArgs =
|
|
963
|
-
storyValue:
|
|
964
|
-
height:
|
|
1412
|
+
var PluginStoryUpdateArgs = z12.object({
|
|
1413
|
+
storyValue: z12.number().int(),
|
|
1414
|
+
height: z12.number()
|
|
965
1415
|
});
|
|
966
|
-
var PluginStoryUpdateResult =
|
|
967
|
-
storyValue:
|
|
968
|
-
height:
|
|
1416
|
+
var PluginStoryUpdateResult = z12.object({
|
|
1417
|
+
storyValue: z12.number(),
|
|
1418
|
+
height: z12.number()
|
|
969
1419
|
});
|
|
970
1420
|
|
|
971
1421
|
// src/api/entity/index.ts
|
|
@@ -975,53 +1425,53 @@ var PluginEntityApi = class {
|
|
|
975
1425
|
};
|
|
976
1426
|
|
|
977
1427
|
// src/api/tools/copy.ts
|
|
978
|
-
import * as
|
|
979
|
-
var PluginCopyMode =
|
|
980
|
-
var PluginCopyArgs =
|
|
981
|
-
componentIds:
|
|
1428
|
+
import * as z13 from "zod";
|
|
1429
|
+
var PluginCopyMode = z13.enum(["instance", "unique"]);
|
|
1430
|
+
var PluginCopyArgs = z13.object({
|
|
1431
|
+
componentIds: z13.array(z13.string()).min(1),
|
|
982
1432
|
displacement: PVec3,
|
|
983
|
-
count:
|
|
1433
|
+
count: z13.number().int().positive().optional(),
|
|
984
1434
|
copyMode: PluginCopyMode.optional()
|
|
985
1435
|
});
|
|
986
|
-
var PluginCopyResult =
|
|
987
|
-
copiedIds:
|
|
1436
|
+
var PluginCopyResult = z13.object({
|
|
1437
|
+
copiedIds: z13.array(z13.string())
|
|
988
1438
|
});
|
|
989
1439
|
|
|
990
1440
|
// src/api/tools/offset.ts
|
|
991
|
-
import * as
|
|
992
|
-
var PluginOffsetArgs =
|
|
993
|
-
componentId:
|
|
994
|
-
distance:
|
|
1441
|
+
import * as z14 from "zod";
|
|
1442
|
+
var PluginOffsetArgs = z14.object({
|
|
1443
|
+
componentId: z14.string().min(1),
|
|
1444
|
+
distance: z14.number(),
|
|
995
1445
|
profilePickPoint: PVec3.optional()
|
|
996
1446
|
});
|
|
997
|
-
var PluginOffsetResult =
|
|
998
|
-
createdIds:
|
|
999
|
-
deletedIds:
|
|
1447
|
+
var PluginOffsetResult = z14.object({
|
|
1448
|
+
createdIds: z14.array(z14.string()),
|
|
1449
|
+
deletedIds: z14.array(z14.string())
|
|
1000
1450
|
});
|
|
1001
1451
|
|
|
1002
1452
|
// src/api/tools/selection.ts
|
|
1003
|
-
import * as
|
|
1453
|
+
import * as z15 from "zod";
|
|
1004
1454
|
var PluginSelectionApi = class {
|
|
1005
1455
|
constructor() {
|
|
1006
1456
|
}
|
|
1007
1457
|
};
|
|
1008
|
-
var PluginSelectionGetResult =
|
|
1009
|
-
selected:
|
|
1458
|
+
var PluginSelectionGetResult = z15.object({
|
|
1459
|
+
selected: z15.array(z15.string())
|
|
1010
1460
|
});
|
|
1011
1461
|
|
|
1012
1462
|
// src/api/tools/transform.ts
|
|
1013
|
-
import * as
|
|
1463
|
+
import * as z16 from "zod";
|
|
1014
1464
|
var PluginTransformApi = class {
|
|
1015
1465
|
constructor() {
|
|
1016
1466
|
}
|
|
1017
1467
|
};
|
|
1018
|
-
var PluginMoveArgs =
|
|
1019
|
-
componentIds:
|
|
1468
|
+
var PluginMoveArgs = z16.object({
|
|
1469
|
+
componentIds: z16.array(z16.string()),
|
|
1020
1470
|
displacement: PVec3
|
|
1021
1471
|
});
|
|
1022
|
-
var PluginRotateArgs =
|
|
1023
|
-
componentIds:
|
|
1024
|
-
angle:
|
|
1472
|
+
var PluginRotateArgs = z16.object({
|
|
1473
|
+
componentIds: z16.array(z16.string()),
|
|
1474
|
+
angle: z16.number(),
|
|
1025
1475
|
axis: PVec3,
|
|
1026
1476
|
pivot: PVec3
|
|
1027
1477
|
});
|
|
@@ -1033,12 +1483,12 @@ var PluginToolsApi = class {
|
|
|
1033
1483
|
};
|
|
1034
1484
|
|
|
1035
1485
|
// src/api/units/index.ts
|
|
1036
|
-
import * as
|
|
1486
|
+
import * as z17 from "zod";
|
|
1037
1487
|
var PluginUnitsApi = class {
|
|
1038
1488
|
constructor() {
|
|
1039
1489
|
}
|
|
1040
1490
|
};
|
|
1041
|
-
var PUnitType =
|
|
1491
|
+
var PUnitType = z17.enum([
|
|
1042
1492
|
"meters",
|
|
1043
1493
|
"feet-inches",
|
|
1044
1494
|
"inches",
|
|
@@ -1047,21 +1497,21 @@ var PUnitType = z16.enum([
|
|
|
1047
1497
|
"kilometers",
|
|
1048
1498
|
"miles"
|
|
1049
1499
|
]);
|
|
1050
|
-
var PluginUnitsConvertFromArgs =
|
|
1500
|
+
var PluginUnitsConvertFromArgs = z17.object({
|
|
1051
1501
|
unit: PUnitType,
|
|
1052
|
-
value:
|
|
1053
|
-
degree:
|
|
1502
|
+
value: z17.number(),
|
|
1503
|
+
degree: z17.number().int().min(1).max(3).optional()
|
|
1054
1504
|
});
|
|
1055
|
-
var PluginUnitsConvertFromResult =
|
|
1056
|
-
value:
|
|
1505
|
+
var PluginUnitsConvertFromResult = z17.object({
|
|
1506
|
+
value: z17.number()
|
|
1057
1507
|
});
|
|
1058
|
-
var PluginUnitsConvertToArgs =
|
|
1508
|
+
var PluginUnitsConvertToArgs = z17.object({
|
|
1059
1509
|
unit: PUnitType,
|
|
1060
|
-
value:
|
|
1061
|
-
degree:
|
|
1510
|
+
value: z17.number(),
|
|
1511
|
+
degree: z17.number().int().min(1).max(3).optional()
|
|
1062
1512
|
});
|
|
1063
|
-
var PluginUnitsConvertToResult =
|
|
1064
|
-
value:
|
|
1513
|
+
var PluginUnitsConvertToResult = z17.object({
|
|
1514
|
+
value: z17.number()
|
|
1065
1515
|
});
|
|
1066
1516
|
|
|
1067
1517
|
// src/api/index.ts
|
|
@@ -1077,8 +1527,74 @@ export {
|
|
|
1077
1527
|
PQuat,
|
|
1078
1528
|
PUnitType,
|
|
1079
1529
|
PVec3,
|
|
1530
|
+
PluginAIInspirationAppliedPreset,
|
|
1531
|
+
PluginAIInspirationCancelJobResult,
|
|
1532
|
+
PluginAIInspirationDebugSummary,
|
|
1533
|
+
PluginAIInspirationDeleteRecipeArgs,
|
|
1534
|
+
PluginAIInspirationDeleteRecipeResult,
|
|
1535
|
+
PluginAIInspirationExtractRecipeFromShapeArgs,
|
|
1536
|
+
PluginAIInspirationExtractionResult,
|
|
1537
|
+
PluginAIInspirationGenerateArgs,
|
|
1538
|
+
PluginAIInspirationGenerationInputSnapshot,
|
|
1539
|
+
PluginAIInspirationGetJobResult,
|
|
1540
|
+
PluginAIInspirationGetModelCapabilitiesArgs,
|
|
1541
|
+
PluginAIInspirationGetModelCapabilitiesResult,
|
|
1542
|
+
PluginAIInspirationGetPresetCatalogResult,
|
|
1543
|
+
PluginAIInspirationGetSelectionResult,
|
|
1544
|
+
PluginAIInspirationGetWorkflowForShapeArgs,
|
|
1545
|
+
PluginAIInspirationGetWorkflowForShapeResult,
|
|
1546
|
+
PluginAIInspirationJob,
|
|
1547
|
+
PluginAIInspirationJobArgs,
|
|
1548
|
+
PluginAIInspirationJobProgress,
|
|
1549
|
+
PluginAIInspirationJobStatus,
|
|
1550
|
+
PluginAIInspirationListJobsResult,
|
|
1551
|
+
PluginAIInspirationListModelsResult,
|
|
1552
|
+
PluginAIInspirationListRecipesResult,
|
|
1553
|
+
PluginAIInspirationListSourcesArgs,
|
|
1554
|
+
PluginAIInspirationListSourcesResult,
|
|
1555
|
+
PluginAIInspirationModel,
|
|
1556
|
+
PluginAIInspirationModelCapability,
|
|
1557
|
+
PluginAIInspirationModelOutput,
|
|
1558
|
+
PluginAIInspirationOutput,
|
|
1559
|
+
PluginAIInspirationOutputKind,
|
|
1560
|
+
PluginAIInspirationPoint,
|
|
1561
|
+
PluginAIInspirationPreset,
|
|
1562
|
+
PluginAIInspirationPresetCategory,
|
|
1563
|
+
PluginAIInspirationPresetReferenceImage,
|
|
1564
|
+
PluginAIInspirationPromptStrategy,
|
|
1565
|
+
PluginAIInspirationRecipe,
|
|
1566
|
+
PluginAIInspirationRecipeDraft,
|
|
1567
|
+
PluginAIInspirationRecipeSlot,
|
|
1568
|
+
PluginAIInspirationRecipeStep,
|
|
1569
|
+
PluginAIInspirationRefineArgs,
|
|
1570
|
+
PluginAIInspirationRegionHint,
|
|
1571
|
+
PluginAIInspirationRerunPlanResult,
|
|
1572
|
+
PluginAIInspirationRerunSelectedBranchArgs,
|
|
1573
|
+
PluginAIInspirationRunMetadata,
|
|
1574
|
+
PluginAIInspirationRunMode,
|
|
1575
|
+
PluginAIInspirationRunRecipeArgs,
|
|
1576
|
+
PluginAIInspirationRunResult,
|
|
1577
|
+
PluginAIInspirationRuntimeProvider,
|
|
1578
|
+
PluginAIInspirationSaveRecipeArgs,
|
|
1579
|
+
PluginAIInspirationSaveRecipeResult,
|
|
1580
|
+
PluginAIInspirationShapeKind,
|
|
1581
|
+
PluginAIInspirationShapeRef,
|
|
1582
|
+
PluginAIInspirationSiteOptions,
|
|
1583
|
+
PluginAIInspirationSketchGuidance,
|
|
1584
|
+
PluginAIInspirationTextAnnotation,
|
|
1585
|
+
PluginAIInspirationVideoDuration,
|
|
1586
|
+
PluginAIInspirationVideoMode,
|
|
1587
|
+
PluginAIInspirationVideoMotion,
|
|
1588
|
+
PluginAIInspirationVideoOptions,
|
|
1589
|
+
PluginAIInspirationWorkflow,
|
|
1590
|
+
PluginAIInspirationWorkflowEdge,
|
|
1591
|
+
PluginAIInspirationWorkflowNode,
|
|
1592
|
+
PluginAIInspirationWorkflowOperation,
|
|
1593
|
+
PluginAIInspirationWorkflowRunState,
|
|
1594
|
+
PluginAIInspirationWorkflowVideoConfig,
|
|
1080
1595
|
PluginApi,
|
|
1081
1596
|
PluginArcApi,
|
|
1597
|
+
PluginAreaClass,
|
|
1082
1598
|
PluginBuildableEnvelopeApi,
|
|
1083
1599
|
PluginBuildableEnvelopeCreateArgs,
|
|
1084
1600
|
PluginBuildableEnvelopeCreateResult,
|
|
@@ -1098,6 +1614,8 @@ export {
|
|
|
1098
1614
|
PluginDepartmentEntry,
|
|
1099
1615
|
PluginDepartmentGetAllResult,
|
|
1100
1616
|
PluginDepartmentId,
|
|
1617
|
+
PluginDocumentationAIInspirationApi,
|
|
1618
|
+
PluginDocumentationApi,
|
|
1101
1619
|
PluginEntityApi,
|
|
1102
1620
|
PluginGeomApi,
|
|
1103
1621
|
PluginLineApi,
|