@snaptrude/plugin-core 0.2.6 → 0.2.8
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 +12 -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 +6 -0
- 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 +805 -224
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +738 -224
- 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 +7 -0
- 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",
|
|
@@ -759,13 +1199,15 @@ var PluginSpaceGetProperty = z10.enum([
|
|
|
759
1199
|
"rotationQuaternion",
|
|
760
1200
|
// Derived from brep
|
|
761
1201
|
"planPoints",
|
|
762
|
-
"profile"
|
|
1202
|
+
"profile",
|
|
1203
|
+
// Derived from adjacency manager
|
|
1204
|
+
"adjacency"
|
|
763
1205
|
]);
|
|
764
|
-
var PluginSpaceGetArgs =
|
|
765
|
-
spaceId:
|
|
766
|
-
properties:
|
|
1206
|
+
var PluginSpaceGetArgs = z11.object({
|
|
1207
|
+
spaceId: z11.string(),
|
|
1208
|
+
properties: z11.array(PluginSpaceGetProperty)
|
|
767
1209
|
});
|
|
768
|
-
var PluginSpaceType =
|
|
1210
|
+
var PluginSpaceType = z11.enum([
|
|
769
1211
|
"Room",
|
|
770
1212
|
"Program Block",
|
|
771
1213
|
"Balcony",
|
|
@@ -777,39 +1219,44 @@ var PluginSpaceType = z10.enum([
|
|
|
777
1219
|
"Envelope",
|
|
778
1220
|
"Parking"
|
|
779
1221
|
]);
|
|
780
|
-
var PluginSpaceGetResult =
|
|
1222
|
+
var PluginSpaceGetResult = z11.object({
|
|
781
1223
|
// Basic
|
|
782
|
-
id:
|
|
783
|
-
type:
|
|
784
|
-
room_type:
|
|
785
|
-
name:
|
|
1224
|
+
id: z11.string(),
|
|
1225
|
+
type: z11.string(),
|
|
1226
|
+
room_type: z11.string(),
|
|
1227
|
+
name: z11.string(),
|
|
786
1228
|
// Derived from parametric data
|
|
787
|
-
area:
|
|
788
|
-
breadth:
|
|
789
|
-
depth:
|
|
790
|
-
height:
|
|
791
|
-
massType:
|
|
1229
|
+
area: z11.number(),
|
|
1230
|
+
breadth: z11.number(),
|
|
1231
|
+
depth: z11.number(),
|
|
1232
|
+
height: z11.number(),
|
|
1233
|
+
massType: z11.string().nullable(),
|
|
792
1234
|
spaceType: PluginSpaceType.nullable(),
|
|
793
|
-
storey:
|
|
794
|
-
departmentId:
|
|
795
|
-
departmentName:
|
|
796
|
-
departmentColor:
|
|
1235
|
+
storey: z11.number().nullable(),
|
|
1236
|
+
departmentId: z11.string().nullable(),
|
|
1237
|
+
departmentName: z11.string(),
|
|
1238
|
+
departmentColor: z11.string(),
|
|
797
1239
|
// Derived from mesh
|
|
798
1240
|
position: PVec3,
|
|
799
1241
|
absolutePosition: PVec3,
|
|
800
1242
|
rotation: PVec3,
|
|
801
1243
|
rotationQuaternion: PQuat.nullable(),
|
|
802
1244
|
// Derived from brep
|
|
803
|
-
planPoints:
|
|
804
|
-
profile: PProfile
|
|
1245
|
+
planPoints: z11.array(PVec3),
|
|
1246
|
+
profile: PProfile,
|
|
1247
|
+
// Derived from adjacency manager
|
|
1248
|
+
adjacency: z11.array(z11.object({
|
|
1249
|
+
spaceId: z11.string(),
|
|
1250
|
+
value: z11.number()
|
|
1251
|
+
}))
|
|
805
1252
|
}).partial();
|
|
806
|
-
var PluginSpaceGetAllResult =
|
|
807
|
-
spacesIds:
|
|
1253
|
+
var PluginSpaceGetAllResult = z11.object({
|
|
1254
|
+
spacesIds: z11.array(z11.string())
|
|
808
1255
|
});
|
|
809
|
-
var PluginSpaceDeleteArgs =
|
|
810
|
-
spaceId:
|
|
1256
|
+
var PluginSpaceDeleteArgs = z11.object({
|
|
1257
|
+
spaceId: z11.string()
|
|
811
1258
|
});
|
|
812
|
-
var PluginMassType =
|
|
1259
|
+
var PluginMassType = z11.enum([
|
|
813
1260
|
"Plinth",
|
|
814
1261
|
"Void",
|
|
815
1262
|
"Pergola",
|
|
@@ -823,95 +1270,95 @@ var PluginMassType = z10.enum([
|
|
|
823
1270
|
"Mass",
|
|
824
1271
|
"Site"
|
|
825
1272
|
]);
|
|
826
|
-
var PluginWellKnownDepartmentId =
|
|
1273
|
+
var PluginWellKnownDepartmentId = z11.enum([
|
|
827
1274
|
"DEFAULT",
|
|
828
1275
|
"SITE",
|
|
829
1276
|
"ENVELOPE",
|
|
830
1277
|
"CORE"
|
|
831
1278
|
]);
|
|
832
|
-
var PluginDepartmentId =
|
|
1279
|
+
var PluginDepartmentId = z11.union([
|
|
833
1280
|
PluginWellKnownDepartmentId,
|
|
834
|
-
|
|
1281
|
+
z11.uuid()
|
|
835
1282
|
]);
|
|
836
|
-
var PluginSpaceUpdateArgs =
|
|
837
|
-
spaceId:
|
|
838
|
-
properties:
|
|
839
|
-
room_type:
|
|
1283
|
+
var PluginSpaceUpdateArgs = z11.object({
|
|
1284
|
+
spaceId: z11.string(),
|
|
1285
|
+
properties: z11.object({
|
|
1286
|
+
room_type: z11.string().optional(),
|
|
840
1287
|
massType: PluginMassType.optional(),
|
|
841
1288
|
spaceType: PluginSpaceType.optional(),
|
|
842
1289
|
departmentId: PluginDepartmentId.optional()
|
|
843
1290
|
})
|
|
844
1291
|
});
|
|
845
|
-
var PluginSpaceUpdateResult =
|
|
846
|
-
spaceId:
|
|
847
|
-
room_type:
|
|
848
|
-
massType:
|
|
849
|
-
spaceType:
|
|
850
|
-
departmentId:
|
|
1292
|
+
var PluginSpaceUpdateResult = z11.object({
|
|
1293
|
+
spaceId: z11.string(),
|
|
1294
|
+
room_type: z11.string().optional(),
|
|
1295
|
+
massType: z11.string().optional(),
|
|
1296
|
+
spaceType: z11.string().optional(),
|
|
1297
|
+
departmentId: z11.string().nullable().optional()
|
|
851
1298
|
});
|
|
852
|
-
var PluginSpaceBulkCreateItem =
|
|
853
|
-
|
|
854
|
-
kind:
|
|
1299
|
+
var PluginSpaceBulkCreateItem = z11.discriminatedUnion("kind", [
|
|
1300
|
+
z11.object({
|
|
1301
|
+
kind: z11.literal("rectangular"),
|
|
855
1302
|
position: PVec3,
|
|
856
|
-
dimensions:
|
|
857
|
-
width:
|
|
858
|
-
height:
|
|
859
|
-
depth:
|
|
1303
|
+
dimensions: z11.object({
|
|
1304
|
+
width: z11.number(),
|
|
1305
|
+
height: z11.number(),
|
|
1306
|
+
depth: z11.number()
|
|
860
1307
|
}),
|
|
861
|
-
room_type:
|
|
1308
|
+
room_type: z11.string().optional(),
|
|
862
1309
|
spaceType: PluginSpaceType.optional(),
|
|
863
1310
|
massType: PluginMassType.optional(),
|
|
864
1311
|
departmentId: PluginDepartmentId.optional()
|
|
865
1312
|
}),
|
|
866
|
-
|
|
867
|
-
kind:
|
|
1313
|
+
z11.object({
|
|
1314
|
+
kind: z11.literal("profile"),
|
|
868
1315
|
profile: PProfile,
|
|
869
|
-
innerProfiles:
|
|
870
|
-
extrudeHeight:
|
|
1316
|
+
innerProfiles: z11.array(PProfile).optional(),
|
|
1317
|
+
extrudeHeight: z11.number(),
|
|
871
1318
|
position: PVec3,
|
|
872
|
-
room_type:
|
|
1319
|
+
room_type: z11.string().optional(),
|
|
873
1320
|
spaceType: PluginSpaceType.optional(),
|
|
874
1321
|
massType: PluginMassType.optional(),
|
|
875
1322
|
departmentId: PluginDepartmentId.optional()
|
|
876
1323
|
})
|
|
877
1324
|
]);
|
|
878
|
-
var PluginSpaceBulkCreateArgs =
|
|
879
|
-
items:
|
|
1325
|
+
var PluginSpaceBulkCreateArgs = z11.object({
|
|
1326
|
+
items: z11.array(PluginSpaceBulkCreateItem)
|
|
880
1327
|
});
|
|
881
|
-
var PluginSpaceBulkCreateResult =
|
|
882
|
-
spaceIds:
|
|
1328
|
+
var PluginSpaceBulkCreateResult = z11.object({
|
|
1329
|
+
spaceIds: z11.array(z11.string())
|
|
883
1330
|
});
|
|
884
|
-
var PluginSpaceBulkUpdateItem =
|
|
885
|
-
spaceId:
|
|
1331
|
+
var PluginSpaceBulkUpdateItem = z11.object({
|
|
1332
|
+
spaceId: z11.string(),
|
|
886
1333
|
profile: PProfile.optional(),
|
|
887
|
-
extrudeHeight:
|
|
888
|
-
properties:
|
|
889
|
-
room_type:
|
|
1334
|
+
extrudeHeight: z11.number().optional(),
|
|
1335
|
+
properties: z11.object({
|
|
1336
|
+
room_type: z11.string().optional(),
|
|
890
1337
|
massType: PluginMassType.optional(),
|
|
891
1338
|
spaceType: PluginSpaceType.optional(),
|
|
892
1339
|
departmentId: PluginDepartmentId.optional()
|
|
893
1340
|
}).optional()
|
|
894
1341
|
});
|
|
895
|
-
var PluginSpaceBulkUpdateArgs =
|
|
896
|
-
items:
|
|
1342
|
+
var PluginSpaceBulkUpdateArgs = z11.object({
|
|
1343
|
+
items: z11.array(PluginSpaceBulkUpdateItem)
|
|
897
1344
|
});
|
|
898
|
-
var PluginSpaceBulkUpdateResult =
|
|
899
|
-
spaces:
|
|
1345
|
+
var PluginSpaceBulkUpdateResult = z11.object({
|
|
1346
|
+
spaces: z11.array(PluginSpaceUpdateResult)
|
|
900
1347
|
});
|
|
901
|
-
var PluginSpaceBulkDeleteArgs =
|
|
902
|
-
spaceIds:
|
|
1348
|
+
var PluginSpaceBulkDeleteArgs = z11.object({
|
|
1349
|
+
spaceIds: z11.array(z11.string())
|
|
903
1350
|
});
|
|
904
|
-
var PluginSpaceBulkDeleteResult =
|
|
905
|
-
deletedSpaceIds:
|
|
1351
|
+
var PluginSpaceBulkDeleteResult = z11.object({
|
|
1352
|
+
deletedSpaceIds: z11.array(z11.string())
|
|
906
1353
|
});
|
|
907
1354
|
|
|
908
1355
|
// src/api/entity/story.ts
|
|
909
|
-
import * as
|
|
1356
|
+
import * as z12 from "zod";
|
|
910
1357
|
var PluginStoryApi = class {
|
|
911
1358
|
constructor() {
|
|
912
1359
|
}
|
|
913
1360
|
};
|
|
914
|
-
var PluginStoryGetProperty =
|
|
1361
|
+
var PluginStoryGetProperty = z12.enum([
|
|
915
1362
|
"value",
|
|
916
1363
|
"id",
|
|
917
1364
|
"name",
|
|
@@ -921,44 +1368,44 @@ var PluginStoryGetProperty = z11.enum([
|
|
|
921
1368
|
"spacesCount",
|
|
922
1369
|
"totalArea"
|
|
923
1370
|
]);
|
|
924
|
-
var PluginStoryGetArgs =
|
|
925
|
-
storyValue:
|
|
926
|
-
properties:
|
|
1371
|
+
var PluginStoryGetArgs = z12.object({
|
|
1372
|
+
storyValue: z12.number().int(),
|
|
1373
|
+
properties: z12.array(PluginStoryGetProperty)
|
|
927
1374
|
});
|
|
928
|
-
var PluginStoryGetResult =
|
|
929
|
-
value:
|
|
930
|
-
id:
|
|
931
|
-
name:
|
|
932
|
-
height:
|
|
933
|
-
base:
|
|
934
|
-
hidden:
|
|
935
|
-
spacesCount:
|
|
936
|
-
totalArea:
|
|
1375
|
+
var PluginStoryGetResult = z12.object({
|
|
1376
|
+
value: z12.number(),
|
|
1377
|
+
id: z12.string(),
|
|
1378
|
+
name: z12.string(),
|
|
1379
|
+
height: z12.number(),
|
|
1380
|
+
base: z12.number(),
|
|
1381
|
+
hidden: z12.boolean(),
|
|
1382
|
+
spacesCount: z12.number(),
|
|
1383
|
+
totalArea: z12.number()
|
|
937
1384
|
}).partial();
|
|
938
|
-
var PluginStoryGetAllResult =
|
|
939
|
-
stories:
|
|
940
|
-
|
|
941
|
-
value:
|
|
942
|
-
id:
|
|
943
|
-
name:
|
|
1385
|
+
var PluginStoryGetAllResult = z12.object({
|
|
1386
|
+
stories: z12.array(
|
|
1387
|
+
z12.object({
|
|
1388
|
+
value: z12.number(),
|
|
1389
|
+
id: z12.string(),
|
|
1390
|
+
name: z12.string()
|
|
944
1391
|
})
|
|
945
1392
|
)
|
|
946
1393
|
});
|
|
947
|
-
var PluginStoryCreateArgs =
|
|
948
|
-
storyValue:
|
|
949
|
-
height:
|
|
1394
|
+
var PluginStoryCreateArgs = z12.object({
|
|
1395
|
+
storyValue: z12.number().int(),
|
|
1396
|
+
height: z12.number().optional()
|
|
950
1397
|
});
|
|
951
|
-
var PluginStoryCreateResult =
|
|
952
|
-
storyId:
|
|
953
|
-
storyValue:
|
|
1398
|
+
var PluginStoryCreateResult = z12.object({
|
|
1399
|
+
storyId: z12.string(),
|
|
1400
|
+
storyValue: z12.number()
|
|
954
1401
|
});
|
|
955
|
-
var PluginStoryUpdateArgs =
|
|
956
|
-
storyValue:
|
|
957
|
-
height:
|
|
1402
|
+
var PluginStoryUpdateArgs = z12.object({
|
|
1403
|
+
storyValue: z12.number().int(),
|
|
1404
|
+
height: z12.number()
|
|
958
1405
|
});
|
|
959
|
-
var PluginStoryUpdateResult =
|
|
960
|
-
storyValue:
|
|
961
|
-
height:
|
|
1406
|
+
var PluginStoryUpdateResult = z12.object({
|
|
1407
|
+
storyValue: z12.number(),
|
|
1408
|
+
height: z12.number()
|
|
962
1409
|
});
|
|
963
1410
|
|
|
964
1411
|
// src/api/entity/index.ts
|
|
@@ -968,53 +1415,53 @@ var PluginEntityApi = class {
|
|
|
968
1415
|
};
|
|
969
1416
|
|
|
970
1417
|
// src/api/tools/copy.ts
|
|
971
|
-
import * as
|
|
972
|
-
var PluginCopyMode =
|
|
973
|
-
var PluginCopyArgs =
|
|
974
|
-
componentIds:
|
|
1418
|
+
import * as z13 from "zod";
|
|
1419
|
+
var PluginCopyMode = z13.enum(["instance", "unique"]);
|
|
1420
|
+
var PluginCopyArgs = z13.object({
|
|
1421
|
+
componentIds: z13.array(z13.string()).min(1),
|
|
975
1422
|
displacement: PVec3,
|
|
976
|
-
count:
|
|
1423
|
+
count: z13.number().int().positive().optional(),
|
|
977
1424
|
copyMode: PluginCopyMode.optional()
|
|
978
1425
|
});
|
|
979
|
-
var PluginCopyResult =
|
|
980
|
-
copiedIds:
|
|
1426
|
+
var PluginCopyResult = z13.object({
|
|
1427
|
+
copiedIds: z13.array(z13.string())
|
|
981
1428
|
});
|
|
982
1429
|
|
|
983
1430
|
// src/api/tools/offset.ts
|
|
984
|
-
import * as
|
|
985
|
-
var PluginOffsetArgs =
|
|
986
|
-
componentId:
|
|
987
|
-
distance:
|
|
1431
|
+
import * as z14 from "zod";
|
|
1432
|
+
var PluginOffsetArgs = z14.object({
|
|
1433
|
+
componentId: z14.string().min(1),
|
|
1434
|
+
distance: z14.number(),
|
|
988
1435
|
profilePickPoint: PVec3.optional()
|
|
989
1436
|
});
|
|
990
|
-
var PluginOffsetResult =
|
|
991
|
-
createdIds:
|
|
992
|
-
deletedIds:
|
|
1437
|
+
var PluginOffsetResult = z14.object({
|
|
1438
|
+
createdIds: z14.array(z14.string()),
|
|
1439
|
+
deletedIds: z14.array(z14.string())
|
|
993
1440
|
});
|
|
994
1441
|
|
|
995
1442
|
// src/api/tools/selection.ts
|
|
996
|
-
import * as
|
|
1443
|
+
import * as z15 from "zod";
|
|
997
1444
|
var PluginSelectionApi = class {
|
|
998
1445
|
constructor() {
|
|
999
1446
|
}
|
|
1000
1447
|
};
|
|
1001
|
-
var PluginSelectionGetResult =
|
|
1002
|
-
selected:
|
|
1448
|
+
var PluginSelectionGetResult = z15.object({
|
|
1449
|
+
selected: z15.array(z15.string())
|
|
1003
1450
|
});
|
|
1004
1451
|
|
|
1005
1452
|
// src/api/tools/transform.ts
|
|
1006
|
-
import * as
|
|
1453
|
+
import * as z16 from "zod";
|
|
1007
1454
|
var PluginTransformApi = class {
|
|
1008
1455
|
constructor() {
|
|
1009
1456
|
}
|
|
1010
1457
|
};
|
|
1011
|
-
var PluginMoveArgs =
|
|
1012
|
-
componentIds:
|
|
1458
|
+
var PluginMoveArgs = z16.object({
|
|
1459
|
+
componentIds: z16.array(z16.string()),
|
|
1013
1460
|
displacement: PVec3
|
|
1014
1461
|
});
|
|
1015
|
-
var PluginRotateArgs =
|
|
1016
|
-
componentIds:
|
|
1017
|
-
angle:
|
|
1462
|
+
var PluginRotateArgs = z16.object({
|
|
1463
|
+
componentIds: z16.array(z16.string()),
|
|
1464
|
+
angle: z16.number(),
|
|
1018
1465
|
axis: PVec3,
|
|
1019
1466
|
pivot: PVec3
|
|
1020
1467
|
});
|
|
@@ -1026,12 +1473,12 @@ var PluginToolsApi = class {
|
|
|
1026
1473
|
};
|
|
1027
1474
|
|
|
1028
1475
|
// src/api/units/index.ts
|
|
1029
|
-
import * as
|
|
1476
|
+
import * as z17 from "zod";
|
|
1030
1477
|
var PluginUnitsApi = class {
|
|
1031
1478
|
constructor() {
|
|
1032
1479
|
}
|
|
1033
1480
|
};
|
|
1034
|
-
var PUnitType =
|
|
1481
|
+
var PUnitType = z17.enum([
|
|
1035
1482
|
"meters",
|
|
1036
1483
|
"feet-inches",
|
|
1037
1484
|
"inches",
|
|
@@ -1040,21 +1487,21 @@ var PUnitType = z16.enum([
|
|
|
1040
1487
|
"kilometers",
|
|
1041
1488
|
"miles"
|
|
1042
1489
|
]);
|
|
1043
|
-
var PluginUnitsConvertFromArgs =
|
|
1490
|
+
var PluginUnitsConvertFromArgs = z17.object({
|
|
1044
1491
|
unit: PUnitType,
|
|
1045
|
-
value:
|
|
1046
|
-
degree:
|
|
1492
|
+
value: z17.number(),
|
|
1493
|
+
degree: z17.number().int().min(1).max(3).optional()
|
|
1047
1494
|
});
|
|
1048
|
-
var PluginUnitsConvertFromResult =
|
|
1049
|
-
value:
|
|
1495
|
+
var PluginUnitsConvertFromResult = z17.object({
|
|
1496
|
+
value: z17.number()
|
|
1050
1497
|
});
|
|
1051
|
-
var PluginUnitsConvertToArgs =
|
|
1498
|
+
var PluginUnitsConvertToArgs = z17.object({
|
|
1052
1499
|
unit: PUnitType,
|
|
1053
|
-
value:
|
|
1054
|
-
degree:
|
|
1500
|
+
value: z17.number(),
|
|
1501
|
+
degree: z17.number().int().min(1).max(3).optional()
|
|
1055
1502
|
});
|
|
1056
|
-
var PluginUnitsConvertToResult =
|
|
1057
|
-
value:
|
|
1503
|
+
var PluginUnitsConvertToResult = z17.object({
|
|
1504
|
+
value: z17.number()
|
|
1058
1505
|
});
|
|
1059
1506
|
|
|
1060
1507
|
// src/api/index.ts
|
|
@@ -1070,6 +1517,71 @@ export {
|
|
|
1070
1517
|
PQuat,
|
|
1071
1518
|
PUnitType,
|
|
1072
1519
|
PVec3,
|
|
1520
|
+
PluginAIInspirationAppliedPreset,
|
|
1521
|
+
PluginAIInspirationCancelJobResult,
|
|
1522
|
+
PluginAIInspirationDebugSummary,
|
|
1523
|
+
PluginAIInspirationDeleteRecipeArgs,
|
|
1524
|
+
PluginAIInspirationDeleteRecipeResult,
|
|
1525
|
+
PluginAIInspirationExtractRecipeFromShapeArgs,
|
|
1526
|
+
PluginAIInspirationExtractionResult,
|
|
1527
|
+
PluginAIInspirationGenerateArgs,
|
|
1528
|
+
PluginAIInspirationGenerationInputSnapshot,
|
|
1529
|
+
PluginAIInspirationGetJobResult,
|
|
1530
|
+
PluginAIInspirationGetModelCapabilitiesArgs,
|
|
1531
|
+
PluginAIInspirationGetModelCapabilitiesResult,
|
|
1532
|
+
PluginAIInspirationGetPresetCatalogResult,
|
|
1533
|
+
PluginAIInspirationGetSelectionResult,
|
|
1534
|
+
PluginAIInspirationGetWorkflowForShapeArgs,
|
|
1535
|
+
PluginAIInspirationGetWorkflowForShapeResult,
|
|
1536
|
+
PluginAIInspirationJob,
|
|
1537
|
+
PluginAIInspirationJobArgs,
|
|
1538
|
+
PluginAIInspirationJobProgress,
|
|
1539
|
+
PluginAIInspirationJobStatus,
|
|
1540
|
+
PluginAIInspirationListJobsResult,
|
|
1541
|
+
PluginAIInspirationListModelsResult,
|
|
1542
|
+
PluginAIInspirationListRecipesResult,
|
|
1543
|
+
PluginAIInspirationListSourcesArgs,
|
|
1544
|
+
PluginAIInspirationListSourcesResult,
|
|
1545
|
+
PluginAIInspirationModel,
|
|
1546
|
+
PluginAIInspirationModelCapability,
|
|
1547
|
+
PluginAIInspirationModelOutput,
|
|
1548
|
+
PluginAIInspirationOutput,
|
|
1549
|
+
PluginAIInspirationOutputKind,
|
|
1550
|
+
PluginAIInspirationPoint,
|
|
1551
|
+
PluginAIInspirationPreset,
|
|
1552
|
+
PluginAIInspirationPresetCategory,
|
|
1553
|
+
PluginAIInspirationPresetReferenceImage,
|
|
1554
|
+
PluginAIInspirationPromptStrategy,
|
|
1555
|
+
PluginAIInspirationRecipe,
|
|
1556
|
+
PluginAIInspirationRecipeDraft,
|
|
1557
|
+
PluginAIInspirationRecipeSlot,
|
|
1558
|
+
PluginAIInspirationRecipeStep,
|
|
1559
|
+
PluginAIInspirationRefineArgs,
|
|
1560
|
+
PluginAIInspirationRegionHint,
|
|
1561
|
+
PluginAIInspirationRerunPlanResult,
|
|
1562
|
+
PluginAIInspirationRerunSelectedBranchArgs,
|
|
1563
|
+
PluginAIInspirationRunMetadata,
|
|
1564
|
+
PluginAIInspirationRunMode,
|
|
1565
|
+
PluginAIInspirationRunRecipeArgs,
|
|
1566
|
+
PluginAIInspirationRunResult,
|
|
1567
|
+
PluginAIInspirationRuntimeProvider,
|
|
1568
|
+
PluginAIInspirationSaveRecipeArgs,
|
|
1569
|
+
PluginAIInspirationSaveRecipeResult,
|
|
1570
|
+
PluginAIInspirationShapeKind,
|
|
1571
|
+
PluginAIInspirationShapeRef,
|
|
1572
|
+
PluginAIInspirationSiteOptions,
|
|
1573
|
+
PluginAIInspirationSketchGuidance,
|
|
1574
|
+
PluginAIInspirationTextAnnotation,
|
|
1575
|
+
PluginAIInspirationVideoDuration,
|
|
1576
|
+
PluginAIInspirationVideoMode,
|
|
1577
|
+
PluginAIInspirationVideoMotion,
|
|
1578
|
+
PluginAIInspirationVideoOptions,
|
|
1579
|
+
PluginAIInspirationWorkflow,
|
|
1580
|
+
PluginAIInspirationWorkflowEdge,
|
|
1581
|
+
PluginAIInspirationWorkflowNode,
|
|
1582
|
+
PluginAIInspirationWorkflowOperation,
|
|
1583
|
+
PluginAIInspirationWorkflowRunState,
|
|
1584
|
+
PluginAIInspirationWorkflowVideoConfig,
|
|
1073
1585
|
PluginApi,
|
|
1074
1586
|
PluginArcApi,
|
|
1075
1587
|
PluginBuildableEnvelopeApi,
|
|
@@ -1091,6 +1603,8 @@ export {
|
|
|
1091
1603
|
PluginDepartmentEntry,
|
|
1092
1604
|
PluginDepartmentGetAllResult,
|
|
1093
1605
|
PluginDepartmentId,
|
|
1606
|
+
PluginDocumentationAIInspirationApi,
|
|
1607
|
+
PluginDocumentationApi,
|
|
1094
1608
|
PluginEntityApi,
|
|
1095
1609
|
PluginGeomApi,
|
|
1096
1610
|
PluginLineApi,
|