@snaptrude/plugin-core 0.2.7 → 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 +6 -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/index.d.ts +5 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/index.cjs +799 -225
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +732 -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/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",
|
|
@@ -763,11 +1203,11 @@ var PluginSpaceGetProperty = z10.enum([
|
|
|
763
1203
|
// Derived from adjacency manager
|
|
764
1204
|
"adjacency"
|
|
765
1205
|
]);
|
|
766
|
-
var PluginSpaceGetArgs =
|
|
767
|
-
spaceId:
|
|
768
|
-
properties:
|
|
1206
|
+
var PluginSpaceGetArgs = z11.object({
|
|
1207
|
+
spaceId: z11.string(),
|
|
1208
|
+
properties: z11.array(PluginSpaceGetProperty)
|
|
769
1209
|
});
|
|
770
|
-
var PluginSpaceType =
|
|
1210
|
+
var PluginSpaceType = z11.enum([
|
|
771
1211
|
"Room",
|
|
772
1212
|
"Program Block",
|
|
773
1213
|
"Balcony",
|
|
@@ -779,44 +1219,44 @@ var PluginSpaceType = z10.enum([
|
|
|
779
1219
|
"Envelope",
|
|
780
1220
|
"Parking"
|
|
781
1221
|
]);
|
|
782
|
-
var PluginSpaceGetResult =
|
|
1222
|
+
var PluginSpaceGetResult = z11.object({
|
|
783
1223
|
// Basic
|
|
784
|
-
id:
|
|
785
|
-
type:
|
|
786
|
-
room_type:
|
|
787
|
-
name:
|
|
1224
|
+
id: z11.string(),
|
|
1225
|
+
type: z11.string(),
|
|
1226
|
+
room_type: z11.string(),
|
|
1227
|
+
name: z11.string(),
|
|
788
1228
|
// Derived from parametric data
|
|
789
|
-
area:
|
|
790
|
-
breadth:
|
|
791
|
-
depth:
|
|
792
|
-
height:
|
|
793
|
-
massType:
|
|
1229
|
+
area: z11.number(),
|
|
1230
|
+
breadth: z11.number(),
|
|
1231
|
+
depth: z11.number(),
|
|
1232
|
+
height: z11.number(),
|
|
1233
|
+
massType: z11.string().nullable(),
|
|
794
1234
|
spaceType: PluginSpaceType.nullable(),
|
|
795
|
-
storey:
|
|
796
|
-
departmentId:
|
|
797
|
-
departmentName:
|
|
798
|
-
departmentColor:
|
|
1235
|
+
storey: z11.number().nullable(),
|
|
1236
|
+
departmentId: z11.string().nullable(),
|
|
1237
|
+
departmentName: z11.string(),
|
|
1238
|
+
departmentColor: z11.string(),
|
|
799
1239
|
// Derived from mesh
|
|
800
1240
|
position: PVec3,
|
|
801
1241
|
absolutePosition: PVec3,
|
|
802
1242
|
rotation: PVec3,
|
|
803
1243
|
rotationQuaternion: PQuat.nullable(),
|
|
804
1244
|
// Derived from brep
|
|
805
|
-
planPoints:
|
|
1245
|
+
planPoints: z11.array(PVec3),
|
|
806
1246
|
profile: PProfile,
|
|
807
1247
|
// Derived from adjacency manager
|
|
808
|
-
adjacency:
|
|
809
|
-
spaceId:
|
|
810
|
-
value:
|
|
1248
|
+
adjacency: z11.array(z11.object({
|
|
1249
|
+
spaceId: z11.string(),
|
|
1250
|
+
value: z11.number()
|
|
811
1251
|
}))
|
|
812
1252
|
}).partial();
|
|
813
|
-
var PluginSpaceGetAllResult =
|
|
814
|
-
spacesIds:
|
|
1253
|
+
var PluginSpaceGetAllResult = z11.object({
|
|
1254
|
+
spacesIds: z11.array(z11.string())
|
|
815
1255
|
});
|
|
816
|
-
var PluginSpaceDeleteArgs =
|
|
817
|
-
spaceId:
|
|
1256
|
+
var PluginSpaceDeleteArgs = z11.object({
|
|
1257
|
+
spaceId: z11.string()
|
|
818
1258
|
});
|
|
819
|
-
var PluginMassType =
|
|
1259
|
+
var PluginMassType = z11.enum([
|
|
820
1260
|
"Plinth",
|
|
821
1261
|
"Void",
|
|
822
1262
|
"Pergola",
|
|
@@ -830,95 +1270,95 @@ var PluginMassType = z10.enum([
|
|
|
830
1270
|
"Mass",
|
|
831
1271
|
"Site"
|
|
832
1272
|
]);
|
|
833
|
-
var PluginWellKnownDepartmentId =
|
|
1273
|
+
var PluginWellKnownDepartmentId = z11.enum([
|
|
834
1274
|
"DEFAULT",
|
|
835
1275
|
"SITE",
|
|
836
1276
|
"ENVELOPE",
|
|
837
1277
|
"CORE"
|
|
838
1278
|
]);
|
|
839
|
-
var PluginDepartmentId =
|
|
1279
|
+
var PluginDepartmentId = z11.union([
|
|
840
1280
|
PluginWellKnownDepartmentId,
|
|
841
|
-
|
|
1281
|
+
z11.uuid()
|
|
842
1282
|
]);
|
|
843
|
-
var PluginSpaceUpdateArgs =
|
|
844
|
-
spaceId:
|
|
845
|
-
properties:
|
|
846
|
-
room_type:
|
|
1283
|
+
var PluginSpaceUpdateArgs = z11.object({
|
|
1284
|
+
spaceId: z11.string(),
|
|
1285
|
+
properties: z11.object({
|
|
1286
|
+
room_type: z11.string().optional(),
|
|
847
1287
|
massType: PluginMassType.optional(),
|
|
848
1288
|
spaceType: PluginSpaceType.optional(),
|
|
849
1289
|
departmentId: PluginDepartmentId.optional()
|
|
850
1290
|
})
|
|
851
1291
|
});
|
|
852
|
-
var PluginSpaceUpdateResult =
|
|
853
|
-
spaceId:
|
|
854
|
-
room_type:
|
|
855
|
-
massType:
|
|
856
|
-
spaceType:
|
|
857
|
-
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()
|
|
858
1298
|
});
|
|
859
|
-
var PluginSpaceBulkCreateItem =
|
|
860
|
-
|
|
861
|
-
kind:
|
|
1299
|
+
var PluginSpaceBulkCreateItem = z11.discriminatedUnion("kind", [
|
|
1300
|
+
z11.object({
|
|
1301
|
+
kind: z11.literal("rectangular"),
|
|
862
1302
|
position: PVec3,
|
|
863
|
-
dimensions:
|
|
864
|
-
width:
|
|
865
|
-
height:
|
|
866
|
-
depth:
|
|
1303
|
+
dimensions: z11.object({
|
|
1304
|
+
width: z11.number(),
|
|
1305
|
+
height: z11.number(),
|
|
1306
|
+
depth: z11.number()
|
|
867
1307
|
}),
|
|
868
|
-
room_type:
|
|
1308
|
+
room_type: z11.string().optional(),
|
|
869
1309
|
spaceType: PluginSpaceType.optional(),
|
|
870
1310
|
massType: PluginMassType.optional(),
|
|
871
1311
|
departmentId: PluginDepartmentId.optional()
|
|
872
1312
|
}),
|
|
873
|
-
|
|
874
|
-
kind:
|
|
1313
|
+
z11.object({
|
|
1314
|
+
kind: z11.literal("profile"),
|
|
875
1315
|
profile: PProfile,
|
|
876
|
-
innerProfiles:
|
|
877
|
-
extrudeHeight:
|
|
1316
|
+
innerProfiles: z11.array(PProfile).optional(),
|
|
1317
|
+
extrudeHeight: z11.number(),
|
|
878
1318
|
position: PVec3,
|
|
879
|
-
room_type:
|
|
1319
|
+
room_type: z11.string().optional(),
|
|
880
1320
|
spaceType: PluginSpaceType.optional(),
|
|
881
1321
|
massType: PluginMassType.optional(),
|
|
882
1322
|
departmentId: PluginDepartmentId.optional()
|
|
883
1323
|
})
|
|
884
1324
|
]);
|
|
885
|
-
var PluginSpaceBulkCreateArgs =
|
|
886
|
-
items:
|
|
1325
|
+
var PluginSpaceBulkCreateArgs = z11.object({
|
|
1326
|
+
items: z11.array(PluginSpaceBulkCreateItem)
|
|
887
1327
|
});
|
|
888
|
-
var PluginSpaceBulkCreateResult =
|
|
889
|
-
spaceIds:
|
|
1328
|
+
var PluginSpaceBulkCreateResult = z11.object({
|
|
1329
|
+
spaceIds: z11.array(z11.string())
|
|
890
1330
|
});
|
|
891
|
-
var PluginSpaceBulkUpdateItem =
|
|
892
|
-
spaceId:
|
|
1331
|
+
var PluginSpaceBulkUpdateItem = z11.object({
|
|
1332
|
+
spaceId: z11.string(),
|
|
893
1333
|
profile: PProfile.optional(),
|
|
894
|
-
extrudeHeight:
|
|
895
|
-
properties:
|
|
896
|
-
room_type:
|
|
1334
|
+
extrudeHeight: z11.number().optional(),
|
|
1335
|
+
properties: z11.object({
|
|
1336
|
+
room_type: z11.string().optional(),
|
|
897
1337
|
massType: PluginMassType.optional(),
|
|
898
1338
|
spaceType: PluginSpaceType.optional(),
|
|
899
1339
|
departmentId: PluginDepartmentId.optional()
|
|
900
1340
|
}).optional()
|
|
901
1341
|
});
|
|
902
|
-
var PluginSpaceBulkUpdateArgs =
|
|
903
|
-
items:
|
|
1342
|
+
var PluginSpaceBulkUpdateArgs = z11.object({
|
|
1343
|
+
items: z11.array(PluginSpaceBulkUpdateItem)
|
|
904
1344
|
});
|
|
905
|
-
var PluginSpaceBulkUpdateResult =
|
|
906
|
-
spaces:
|
|
1345
|
+
var PluginSpaceBulkUpdateResult = z11.object({
|
|
1346
|
+
spaces: z11.array(PluginSpaceUpdateResult)
|
|
907
1347
|
});
|
|
908
|
-
var PluginSpaceBulkDeleteArgs =
|
|
909
|
-
spaceIds:
|
|
1348
|
+
var PluginSpaceBulkDeleteArgs = z11.object({
|
|
1349
|
+
spaceIds: z11.array(z11.string())
|
|
910
1350
|
});
|
|
911
|
-
var PluginSpaceBulkDeleteResult =
|
|
912
|
-
deletedSpaceIds:
|
|
1351
|
+
var PluginSpaceBulkDeleteResult = z11.object({
|
|
1352
|
+
deletedSpaceIds: z11.array(z11.string())
|
|
913
1353
|
});
|
|
914
1354
|
|
|
915
1355
|
// src/api/entity/story.ts
|
|
916
|
-
import * as
|
|
1356
|
+
import * as z12 from "zod";
|
|
917
1357
|
var PluginStoryApi = class {
|
|
918
1358
|
constructor() {
|
|
919
1359
|
}
|
|
920
1360
|
};
|
|
921
|
-
var PluginStoryGetProperty =
|
|
1361
|
+
var PluginStoryGetProperty = z12.enum([
|
|
922
1362
|
"value",
|
|
923
1363
|
"id",
|
|
924
1364
|
"name",
|
|
@@ -928,44 +1368,44 @@ var PluginStoryGetProperty = z11.enum([
|
|
|
928
1368
|
"spacesCount",
|
|
929
1369
|
"totalArea"
|
|
930
1370
|
]);
|
|
931
|
-
var PluginStoryGetArgs =
|
|
932
|
-
storyValue:
|
|
933
|
-
properties:
|
|
1371
|
+
var PluginStoryGetArgs = z12.object({
|
|
1372
|
+
storyValue: z12.number().int(),
|
|
1373
|
+
properties: z12.array(PluginStoryGetProperty)
|
|
934
1374
|
});
|
|
935
|
-
var PluginStoryGetResult =
|
|
936
|
-
value:
|
|
937
|
-
id:
|
|
938
|
-
name:
|
|
939
|
-
height:
|
|
940
|
-
base:
|
|
941
|
-
hidden:
|
|
942
|
-
spacesCount:
|
|
943
|
-
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()
|
|
944
1384
|
}).partial();
|
|
945
|
-
var PluginStoryGetAllResult =
|
|
946
|
-
stories:
|
|
947
|
-
|
|
948
|
-
value:
|
|
949
|
-
id:
|
|
950
|
-
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()
|
|
951
1391
|
})
|
|
952
1392
|
)
|
|
953
1393
|
});
|
|
954
|
-
var PluginStoryCreateArgs =
|
|
955
|
-
storyValue:
|
|
956
|
-
height:
|
|
1394
|
+
var PluginStoryCreateArgs = z12.object({
|
|
1395
|
+
storyValue: z12.number().int(),
|
|
1396
|
+
height: z12.number().optional()
|
|
957
1397
|
});
|
|
958
|
-
var PluginStoryCreateResult =
|
|
959
|
-
storyId:
|
|
960
|
-
storyValue:
|
|
1398
|
+
var PluginStoryCreateResult = z12.object({
|
|
1399
|
+
storyId: z12.string(),
|
|
1400
|
+
storyValue: z12.number()
|
|
961
1401
|
});
|
|
962
|
-
var PluginStoryUpdateArgs =
|
|
963
|
-
storyValue:
|
|
964
|
-
height:
|
|
1402
|
+
var PluginStoryUpdateArgs = z12.object({
|
|
1403
|
+
storyValue: z12.number().int(),
|
|
1404
|
+
height: z12.number()
|
|
965
1405
|
});
|
|
966
|
-
var PluginStoryUpdateResult =
|
|
967
|
-
storyValue:
|
|
968
|
-
height:
|
|
1406
|
+
var PluginStoryUpdateResult = z12.object({
|
|
1407
|
+
storyValue: z12.number(),
|
|
1408
|
+
height: z12.number()
|
|
969
1409
|
});
|
|
970
1410
|
|
|
971
1411
|
// src/api/entity/index.ts
|
|
@@ -975,53 +1415,53 @@ var PluginEntityApi = class {
|
|
|
975
1415
|
};
|
|
976
1416
|
|
|
977
1417
|
// src/api/tools/copy.ts
|
|
978
|
-
import * as
|
|
979
|
-
var PluginCopyMode =
|
|
980
|
-
var PluginCopyArgs =
|
|
981
|
-
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),
|
|
982
1422
|
displacement: PVec3,
|
|
983
|
-
count:
|
|
1423
|
+
count: z13.number().int().positive().optional(),
|
|
984
1424
|
copyMode: PluginCopyMode.optional()
|
|
985
1425
|
});
|
|
986
|
-
var PluginCopyResult =
|
|
987
|
-
copiedIds:
|
|
1426
|
+
var PluginCopyResult = z13.object({
|
|
1427
|
+
copiedIds: z13.array(z13.string())
|
|
988
1428
|
});
|
|
989
1429
|
|
|
990
1430
|
// src/api/tools/offset.ts
|
|
991
|
-
import * as
|
|
992
|
-
var PluginOffsetArgs =
|
|
993
|
-
componentId:
|
|
994
|
-
distance:
|
|
1431
|
+
import * as z14 from "zod";
|
|
1432
|
+
var PluginOffsetArgs = z14.object({
|
|
1433
|
+
componentId: z14.string().min(1),
|
|
1434
|
+
distance: z14.number(),
|
|
995
1435
|
profilePickPoint: PVec3.optional()
|
|
996
1436
|
});
|
|
997
|
-
var PluginOffsetResult =
|
|
998
|
-
createdIds:
|
|
999
|
-
deletedIds:
|
|
1437
|
+
var PluginOffsetResult = z14.object({
|
|
1438
|
+
createdIds: z14.array(z14.string()),
|
|
1439
|
+
deletedIds: z14.array(z14.string())
|
|
1000
1440
|
});
|
|
1001
1441
|
|
|
1002
1442
|
// src/api/tools/selection.ts
|
|
1003
|
-
import * as
|
|
1443
|
+
import * as z15 from "zod";
|
|
1004
1444
|
var PluginSelectionApi = class {
|
|
1005
1445
|
constructor() {
|
|
1006
1446
|
}
|
|
1007
1447
|
};
|
|
1008
|
-
var PluginSelectionGetResult =
|
|
1009
|
-
selected:
|
|
1448
|
+
var PluginSelectionGetResult = z15.object({
|
|
1449
|
+
selected: z15.array(z15.string())
|
|
1010
1450
|
});
|
|
1011
1451
|
|
|
1012
1452
|
// src/api/tools/transform.ts
|
|
1013
|
-
import * as
|
|
1453
|
+
import * as z16 from "zod";
|
|
1014
1454
|
var PluginTransformApi = class {
|
|
1015
1455
|
constructor() {
|
|
1016
1456
|
}
|
|
1017
1457
|
};
|
|
1018
|
-
var PluginMoveArgs =
|
|
1019
|
-
componentIds:
|
|
1458
|
+
var PluginMoveArgs = z16.object({
|
|
1459
|
+
componentIds: z16.array(z16.string()),
|
|
1020
1460
|
displacement: PVec3
|
|
1021
1461
|
});
|
|
1022
|
-
var PluginRotateArgs =
|
|
1023
|
-
componentIds:
|
|
1024
|
-
angle:
|
|
1462
|
+
var PluginRotateArgs = z16.object({
|
|
1463
|
+
componentIds: z16.array(z16.string()),
|
|
1464
|
+
angle: z16.number(),
|
|
1025
1465
|
axis: PVec3,
|
|
1026
1466
|
pivot: PVec3
|
|
1027
1467
|
});
|
|
@@ -1033,12 +1473,12 @@ var PluginToolsApi = class {
|
|
|
1033
1473
|
};
|
|
1034
1474
|
|
|
1035
1475
|
// src/api/units/index.ts
|
|
1036
|
-
import * as
|
|
1476
|
+
import * as z17 from "zod";
|
|
1037
1477
|
var PluginUnitsApi = class {
|
|
1038
1478
|
constructor() {
|
|
1039
1479
|
}
|
|
1040
1480
|
};
|
|
1041
|
-
var PUnitType =
|
|
1481
|
+
var PUnitType = z17.enum([
|
|
1042
1482
|
"meters",
|
|
1043
1483
|
"feet-inches",
|
|
1044
1484
|
"inches",
|
|
@@ -1047,21 +1487,21 @@ var PUnitType = z16.enum([
|
|
|
1047
1487
|
"kilometers",
|
|
1048
1488
|
"miles"
|
|
1049
1489
|
]);
|
|
1050
|
-
var PluginUnitsConvertFromArgs =
|
|
1490
|
+
var PluginUnitsConvertFromArgs = z17.object({
|
|
1051
1491
|
unit: PUnitType,
|
|
1052
|
-
value:
|
|
1053
|
-
degree:
|
|
1492
|
+
value: z17.number(),
|
|
1493
|
+
degree: z17.number().int().min(1).max(3).optional()
|
|
1054
1494
|
});
|
|
1055
|
-
var PluginUnitsConvertFromResult =
|
|
1056
|
-
value:
|
|
1495
|
+
var PluginUnitsConvertFromResult = z17.object({
|
|
1496
|
+
value: z17.number()
|
|
1057
1497
|
});
|
|
1058
|
-
var PluginUnitsConvertToArgs =
|
|
1498
|
+
var PluginUnitsConvertToArgs = z17.object({
|
|
1059
1499
|
unit: PUnitType,
|
|
1060
|
-
value:
|
|
1061
|
-
degree:
|
|
1500
|
+
value: z17.number(),
|
|
1501
|
+
degree: z17.number().int().min(1).max(3).optional()
|
|
1062
1502
|
});
|
|
1063
|
-
var PluginUnitsConvertToResult =
|
|
1064
|
-
value:
|
|
1503
|
+
var PluginUnitsConvertToResult = z17.object({
|
|
1504
|
+
value: z17.number()
|
|
1065
1505
|
});
|
|
1066
1506
|
|
|
1067
1507
|
// src/api/index.ts
|
|
@@ -1077,6 +1517,71 @@ export {
|
|
|
1077
1517
|
PQuat,
|
|
1078
1518
|
PUnitType,
|
|
1079
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,
|
|
1080
1585
|
PluginApi,
|
|
1081
1586
|
PluginArcApi,
|
|
1082
1587
|
PluginBuildableEnvelopeApi,
|
|
@@ -1098,6 +1603,8 @@ export {
|
|
|
1098
1603
|
PluginDepartmentEntry,
|
|
1099
1604
|
PluginDepartmentGetAllResult,
|
|
1100
1605
|
PluginDepartmentId,
|
|
1606
|
+
PluginDocumentationAIInspirationApi,
|
|
1607
|
+
PluginDocumentationApi,
|
|
1101
1608
|
PluginEntityApi,
|
|
1102
1609
|
PluginGeomApi,
|
|
1103
1610
|
PluginLineApi,
|