@gethopp/figma-mcp-bridge 0.0.16 → 0.0.18
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/README.md +7 -0
- package/dist/bridge.js +5 -2
- package/dist/bridge.js.map +1 -1
- package/dist/follower.js +1 -1
- package/dist/follower.js.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/leader.js +18 -9
- package/dist/leader.js.map +1 -1
- package/dist/schema.d.ts +330 -81
- package/dist/schema.js +128 -13
- package/dist/schema.js.map +1 -1
- package/dist/tools.js +56 -4
- package/dist/tools.js.map +1 -1
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -81,24 +81,79 @@ export declare const setNodePropertiesInput: z.ZodObject<{
|
|
|
81
81
|
visible?: boolean | undefined;
|
|
82
82
|
cornerRadius?: number | undefined;
|
|
83
83
|
}>;
|
|
84
|
-
|
|
84
|
+
/**
|
|
85
|
+
* Advertised shape. `fillHex`/`fillOpacity` are declared so the MCP SDK keeps
|
|
86
|
+
* them instead of stripping them as unknown keys; `setSolidFillInput`
|
|
87
|
+
* normalises them onto `hex`/`opacity` before the request reaches the plugin.
|
|
88
|
+
*/
|
|
89
|
+
export declare const setSolidFillShape: z.ZodObject<{
|
|
85
90
|
nodeId: z.ZodString;
|
|
86
|
-
hex: z.ZodString
|
|
91
|
+
hex: z.ZodOptional<z.ZodString>;
|
|
92
|
+
fillHex: z.ZodOptional<z.ZodString>;
|
|
87
93
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
88
95
|
target: z.ZodOptional<z.ZodEnum<["fill", "stroke"]>>;
|
|
89
96
|
fileKey: z.ZodOptional<z.ZodString>;
|
|
90
97
|
}, "strip", z.ZodTypeAny, {
|
|
91
|
-
hex: string;
|
|
92
98
|
nodeId: string;
|
|
93
99
|
fileKey?: string | undefined;
|
|
100
|
+
hex?: string | undefined;
|
|
94
101
|
opacity?: number | undefined;
|
|
95
102
|
target?: "fill" | "stroke" | undefined;
|
|
103
|
+
fillHex?: string | undefined;
|
|
104
|
+
fillOpacity?: number | undefined;
|
|
96
105
|
}, {
|
|
106
|
+
nodeId: string;
|
|
107
|
+
fileKey?: string | undefined;
|
|
108
|
+
hex?: string | undefined;
|
|
109
|
+
opacity?: number | undefined;
|
|
110
|
+
target?: "fill" | "stroke" | undefined;
|
|
111
|
+
fillHex?: string | undefined;
|
|
112
|
+
fillOpacity?: number | undefined;
|
|
113
|
+
}>;
|
|
114
|
+
/**
|
|
115
|
+
* Normalises the create_* spellings onto the canonical fields. Derived from the
|
|
116
|
+
* advertised shape so the two cannot drift; the canonical name wins when both
|
|
117
|
+
* spellings are supplied.
|
|
118
|
+
*/
|
|
119
|
+
export declare const setSolidFillInput: z.ZodEffects<z.ZodObject<{
|
|
120
|
+
nodeId: z.ZodString;
|
|
121
|
+
hex: z.ZodOptional<z.ZodString>;
|
|
122
|
+
fillHex: z.ZodOptional<z.ZodString>;
|
|
123
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
124
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
125
|
+
target: z.ZodOptional<z.ZodEnum<["fill", "stroke"]>>;
|
|
126
|
+
fileKey: z.ZodOptional<z.ZodString>;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
nodeId: string;
|
|
129
|
+
fileKey?: string | undefined;
|
|
130
|
+
hex?: string | undefined;
|
|
131
|
+
opacity?: number | undefined;
|
|
132
|
+
target?: "fill" | "stroke" | undefined;
|
|
133
|
+
fillHex?: string | undefined;
|
|
134
|
+
fillOpacity?: number | undefined;
|
|
135
|
+
}, {
|
|
136
|
+
nodeId: string;
|
|
137
|
+
fileKey?: string | undefined;
|
|
138
|
+
hex?: string | undefined;
|
|
139
|
+
opacity?: number | undefined;
|
|
140
|
+
target?: "fill" | "stroke" | undefined;
|
|
141
|
+
fillHex?: string | undefined;
|
|
142
|
+
fillOpacity?: number | undefined;
|
|
143
|
+
}>, {
|
|
97
144
|
hex: string;
|
|
145
|
+
opacity: number | undefined;
|
|
146
|
+
nodeId: string;
|
|
147
|
+
fileKey?: string | undefined;
|
|
148
|
+
target?: "fill" | "stroke" | undefined;
|
|
149
|
+
}, {
|
|
98
150
|
nodeId: string;
|
|
99
151
|
fileKey?: string | undefined;
|
|
152
|
+
hex?: string | undefined;
|
|
100
153
|
opacity?: number | undefined;
|
|
101
154
|
target?: "fill" | "stroke" | undefined;
|
|
155
|
+
fillHex?: string | undefined;
|
|
156
|
+
fillOpacity?: number | undefined;
|
|
102
157
|
}>;
|
|
103
158
|
export declare const setSelectionInput: z.ZodObject<{
|
|
104
159
|
nodeIds: z.ZodArray<z.ZodString, "many">;
|
|
@@ -424,9 +479,9 @@ export declare const createFrameInput: z.ZodObject<{
|
|
|
424
479
|
y?: number | undefined;
|
|
425
480
|
width?: number | undefined;
|
|
426
481
|
height?: number | undefined;
|
|
427
|
-
parentId?: string | undefined;
|
|
428
482
|
fillHex?: string | undefined;
|
|
429
483
|
fillOpacity?: number | undefined;
|
|
484
|
+
parentId?: string | undefined;
|
|
430
485
|
}, {
|
|
431
486
|
fileKey?: string | undefined;
|
|
432
487
|
name?: string | undefined;
|
|
@@ -434,9 +489,59 @@ export declare const createFrameInput: z.ZodObject<{
|
|
|
434
489
|
y?: number | undefined;
|
|
435
490
|
width?: number | undefined;
|
|
436
491
|
height?: number | undefined;
|
|
437
|
-
parentId?: string | undefined;
|
|
438
492
|
fillHex?: string | undefined;
|
|
439
493
|
fillOpacity?: number | undefined;
|
|
494
|
+
parentId?: string | undefined;
|
|
495
|
+
}>;
|
|
496
|
+
/**
|
|
497
|
+
* Advertised shape. `characters` is declared so the MCP SDK keeps it instead of
|
|
498
|
+
* stripping it as an unknown key; `setTextContentInput` normalises it onto
|
|
499
|
+
* `text` before the request reaches the plugin.
|
|
500
|
+
*/
|
|
501
|
+
export declare const setTextContentShape: z.ZodObject<{
|
|
502
|
+
nodeId: z.ZodString;
|
|
503
|
+
text: z.ZodOptional<z.ZodString>;
|
|
504
|
+
characters: z.ZodOptional<z.ZodString>;
|
|
505
|
+
fileKey: z.ZodOptional<z.ZodString>;
|
|
506
|
+
}, "strip", z.ZodTypeAny, {
|
|
507
|
+
nodeId: string;
|
|
508
|
+
fileKey?: string | undefined;
|
|
509
|
+
text?: string | undefined;
|
|
510
|
+
characters?: string | undefined;
|
|
511
|
+
}, {
|
|
512
|
+
nodeId: string;
|
|
513
|
+
fileKey?: string | undefined;
|
|
514
|
+
text?: string | undefined;
|
|
515
|
+
characters?: string | undefined;
|
|
516
|
+
}>;
|
|
517
|
+
/**
|
|
518
|
+
* Normalises `characters` onto `text`. Derived from the advertised shape so the
|
|
519
|
+
* two cannot drift; `text` wins when both spellings are supplied.
|
|
520
|
+
*/
|
|
521
|
+
export declare const setTextContentInput: z.ZodEffects<z.ZodObject<{
|
|
522
|
+
nodeId: z.ZodString;
|
|
523
|
+
text: z.ZodOptional<z.ZodString>;
|
|
524
|
+
characters: z.ZodOptional<z.ZodString>;
|
|
525
|
+
fileKey: z.ZodOptional<z.ZodString>;
|
|
526
|
+
}, "strip", z.ZodTypeAny, {
|
|
527
|
+
nodeId: string;
|
|
528
|
+
fileKey?: string | undefined;
|
|
529
|
+
text?: string | undefined;
|
|
530
|
+
characters?: string | undefined;
|
|
531
|
+
}, {
|
|
532
|
+
nodeId: string;
|
|
533
|
+
fileKey?: string | undefined;
|
|
534
|
+
text?: string | undefined;
|
|
535
|
+
characters?: string | undefined;
|
|
536
|
+
}>, {
|
|
537
|
+
text: string;
|
|
538
|
+
nodeId: string;
|
|
539
|
+
fileKey?: string | undefined;
|
|
540
|
+
}, {
|
|
541
|
+
nodeId: string;
|
|
542
|
+
fileKey?: string | undefined;
|
|
543
|
+
text?: string | undefined;
|
|
544
|
+
characters?: string | undefined;
|
|
440
545
|
}>;
|
|
441
546
|
export declare const setTextPropertiesShape: z.ZodObject<{
|
|
442
547
|
nodeId: z.ZodString;
|
|
@@ -633,15 +738,15 @@ export declare const createTextShape: z.ZodObject<{
|
|
|
633
738
|
y?: number | undefined;
|
|
634
739
|
width?: number | undefined;
|
|
635
740
|
height?: number | undefined;
|
|
636
|
-
parentId?: string | undefined;
|
|
637
741
|
fillHex?: string | undefined;
|
|
638
742
|
fillOpacity?: number | undefined;
|
|
743
|
+
parentId?: string | undefined;
|
|
744
|
+
characters?: string | undefined;
|
|
639
745
|
fontFamily?: string | undefined;
|
|
640
746
|
fontStyle?: string | undefined;
|
|
641
747
|
fontSize?: number | undefined;
|
|
642
748
|
textAlignHorizontal?: "LEFT" | "CENTER" | "RIGHT" | "JUSTIFIED" | undefined;
|
|
643
749
|
textAutoResize?: "NONE" | "WIDTH_AND_HEIGHT" | "HEIGHT" | "TRUNCATE" | undefined;
|
|
644
|
-
characters?: string | undefined;
|
|
645
750
|
}, {
|
|
646
751
|
fileKey?: string | undefined;
|
|
647
752
|
name?: string | undefined;
|
|
@@ -649,15 +754,15 @@ export declare const createTextShape: z.ZodObject<{
|
|
|
649
754
|
y?: number | undefined;
|
|
650
755
|
width?: number | undefined;
|
|
651
756
|
height?: number | undefined;
|
|
652
|
-
parentId?: string | undefined;
|
|
653
757
|
fillHex?: string | undefined;
|
|
654
758
|
fillOpacity?: number | undefined;
|
|
759
|
+
parentId?: string | undefined;
|
|
760
|
+
characters?: string | undefined;
|
|
655
761
|
fontFamily?: string | undefined;
|
|
656
762
|
fontStyle?: string | undefined;
|
|
657
763
|
fontSize?: number | undefined;
|
|
658
764
|
textAlignHorizontal?: "LEFT" | "CENTER" | "RIGHT" | "JUSTIFIED" | undefined;
|
|
659
765
|
textAutoResize?: "NONE" | "WIDTH_AND_HEIGHT" | "HEIGHT" | "TRUNCATE" | undefined;
|
|
660
|
-
characters?: string | undefined;
|
|
661
766
|
}>;
|
|
662
767
|
export declare const createTextInput: z.ZodEffects<z.ZodObject<{
|
|
663
768
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -682,15 +787,15 @@ export declare const createTextInput: z.ZodEffects<z.ZodObject<{
|
|
|
682
787
|
y?: number | undefined;
|
|
683
788
|
width?: number | undefined;
|
|
684
789
|
height?: number | undefined;
|
|
685
|
-
parentId?: string | undefined;
|
|
686
790
|
fillHex?: string | undefined;
|
|
687
791
|
fillOpacity?: number | undefined;
|
|
792
|
+
parentId?: string | undefined;
|
|
793
|
+
characters?: string | undefined;
|
|
688
794
|
fontFamily?: string | undefined;
|
|
689
795
|
fontStyle?: string | undefined;
|
|
690
796
|
fontSize?: number | undefined;
|
|
691
797
|
textAlignHorizontal?: "LEFT" | "CENTER" | "RIGHT" | "JUSTIFIED" | undefined;
|
|
692
798
|
textAutoResize?: "NONE" | "WIDTH_AND_HEIGHT" | "HEIGHT" | "TRUNCATE" | undefined;
|
|
693
|
-
characters?: string | undefined;
|
|
694
799
|
}, {
|
|
695
800
|
fileKey?: string | undefined;
|
|
696
801
|
name?: string | undefined;
|
|
@@ -698,15 +803,15 @@ export declare const createTextInput: z.ZodEffects<z.ZodObject<{
|
|
|
698
803
|
y?: number | undefined;
|
|
699
804
|
width?: number | undefined;
|
|
700
805
|
height?: number | undefined;
|
|
701
|
-
parentId?: string | undefined;
|
|
702
806
|
fillHex?: string | undefined;
|
|
703
807
|
fillOpacity?: number | undefined;
|
|
808
|
+
parentId?: string | undefined;
|
|
809
|
+
characters?: string | undefined;
|
|
704
810
|
fontFamily?: string | undefined;
|
|
705
811
|
fontStyle?: string | undefined;
|
|
706
812
|
fontSize?: number | undefined;
|
|
707
813
|
textAlignHorizontal?: "LEFT" | "CENTER" | "RIGHT" | "JUSTIFIED" | undefined;
|
|
708
814
|
textAutoResize?: "NONE" | "WIDTH_AND_HEIGHT" | "HEIGHT" | "TRUNCATE" | undefined;
|
|
709
|
-
characters?: string | undefined;
|
|
710
815
|
}>, {
|
|
711
816
|
fileKey?: string | undefined;
|
|
712
817
|
name?: string | undefined;
|
|
@@ -714,15 +819,15 @@ export declare const createTextInput: z.ZodEffects<z.ZodObject<{
|
|
|
714
819
|
y?: number | undefined;
|
|
715
820
|
width?: number | undefined;
|
|
716
821
|
height?: number | undefined;
|
|
717
|
-
parentId?: string | undefined;
|
|
718
822
|
fillHex?: string | undefined;
|
|
719
823
|
fillOpacity?: number | undefined;
|
|
824
|
+
parentId?: string | undefined;
|
|
825
|
+
characters?: string | undefined;
|
|
720
826
|
fontFamily?: string | undefined;
|
|
721
827
|
fontStyle?: string | undefined;
|
|
722
828
|
fontSize?: number | undefined;
|
|
723
829
|
textAlignHorizontal?: "LEFT" | "CENTER" | "RIGHT" | "JUSTIFIED" | undefined;
|
|
724
830
|
textAutoResize?: "NONE" | "WIDTH_AND_HEIGHT" | "HEIGHT" | "TRUNCATE" | undefined;
|
|
725
|
-
characters?: string | undefined;
|
|
726
831
|
}, {
|
|
727
832
|
fileKey?: string | undefined;
|
|
728
833
|
name?: string | undefined;
|
|
@@ -730,15 +835,15 @@ export declare const createTextInput: z.ZodEffects<z.ZodObject<{
|
|
|
730
835
|
y?: number | undefined;
|
|
731
836
|
width?: number | undefined;
|
|
732
837
|
height?: number | undefined;
|
|
733
|
-
parentId?: string | undefined;
|
|
734
838
|
fillHex?: string | undefined;
|
|
735
839
|
fillOpacity?: number | undefined;
|
|
840
|
+
parentId?: string | undefined;
|
|
841
|
+
characters?: string | undefined;
|
|
736
842
|
fontFamily?: string | undefined;
|
|
737
843
|
fontStyle?: string | undefined;
|
|
738
844
|
fontSize?: number | undefined;
|
|
739
845
|
textAlignHorizontal?: "LEFT" | "CENTER" | "RIGHT" | "JUSTIFIED" | undefined;
|
|
740
846
|
textAutoResize?: "NONE" | "WIDTH_AND_HEIGHT" | "HEIGHT" | "TRUNCATE" | undefined;
|
|
741
|
-
characters?: string | undefined;
|
|
742
847
|
}>;
|
|
743
848
|
export declare const createShapeShape: z.ZodObject<{
|
|
744
849
|
shapeType: z.ZodEnum<["RECTANGLE", "ELLIPSE", "LINE"]>;
|
|
@@ -766,10 +871,10 @@ export declare const createShapeShape: z.ZodObject<{
|
|
|
766
871
|
height?: number | undefined;
|
|
767
872
|
rotation?: number | undefined;
|
|
768
873
|
cornerRadius?: number | undefined;
|
|
769
|
-
parentId?: string | undefined;
|
|
770
|
-
strokeWeight?: number | undefined;
|
|
771
874
|
fillHex?: string | undefined;
|
|
772
875
|
fillOpacity?: number | undefined;
|
|
876
|
+
parentId?: string | undefined;
|
|
877
|
+
strokeWeight?: number | undefined;
|
|
773
878
|
strokeHex?: string | undefined;
|
|
774
879
|
strokeOpacity?: number | undefined;
|
|
775
880
|
}, {
|
|
@@ -782,10 +887,10 @@ export declare const createShapeShape: z.ZodObject<{
|
|
|
782
887
|
height?: number | undefined;
|
|
783
888
|
rotation?: number | undefined;
|
|
784
889
|
cornerRadius?: number | undefined;
|
|
785
|
-
parentId?: string | undefined;
|
|
786
|
-
strokeWeight?: number | undefined;
|
|
787
890
|
fillHex?: string | undefined;
|
|
788
891
|
fillOpacity?: number | undefined;
|
|
892
|
+
parentId?: string | undefined;
|
|
893
|
+
strokeWeight?: number | undefined;
|
|
789
894
|
strokeHex?: string | undefined;
|
|
790
895
|
strokeOpacity?: number | undefined;
|
|
791
896
|
}>;
|
|
@@ -815,10 +920,10 @@ export declare const createShapeInput: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.
|
|
|
815
920
|
height?: number | undefined;
|
|
816
921
|
rotation?: number | undefined;
|
|
817
922
|
cornerRadius?: number | undefined;
|
|
818
|
-
parentId?: string | undefined;
|
|
819
|
-
strokeWeight?: number | undefined;
|
|
820
923
|
fillHex?: string | undefined;
|
|
821
924
|
fillOpacity?: number | undefined;
|
|
925
|
+
parentId?: string | undefined;
|
|
926
|
+
strokeWeight?: number | undefined;
|
|
822
927
|
strokeHex?: string | undefined;
|
|
823
928
|
strokeOpacity?: number | undefined;
|
|
824
929
|
}, {
|
|
@@ -831,10 +936,10 @@ export declare const createShapeInput: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.
|
|
|
831
936
|
height?: number | undefined;
|
|
832
937
|
rotation?: number | undefined;
|
|
833
938
|
cornerRadius?: number | undefined;
|
|
834
|
-
parentId?: string | undefined;
|
|
835
|
-
strokeWeight?: number | undefined;
|
|
836
939
|
fillHex?: string | undefined;
|
|
837
940
|
fillOpacity?: number | undefined;
|
|
941
|
+
parentId?: string | undefined;
|
|
942
|
+
strokeWeight?: number | undefined;
|
|
838
943
|
strokeHex?: string | undefined;
|
|
839
944
|
strokeOpacity?: number | undefined;
|
|
840
945
|
}>, {
|
|
@@ -847,10 +952,10 @@ export declare const createShapeInput: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.
|
|
|
847
952
|
height?: number | undefined;
|
|
848
953
|
rotation?: number | undefined;
|
|
849
954
|
cornerRadius?: number | undefined;
|
|
850
|
-
parentId?: string | undefined;
|
|
851
|
-
strokeWeight?: number | undefined;
|
|
852
955
|
fillHex?: string | undefined;
|
|
853
956
|
fillOpacity?: number | undefined;
|
|
957
|
+
parentId?: string | undefined;
|
|
958
|
+
strokeWeight?: number | undefined;
|
|
854
959
|
strokeHex?: string | undefined;
|
|
855
960
|
strokeOpacity?: number | undefined;
|
|
856
961
|
}, {
|
|
@@ -863,10 +968,10 @@ export declare const createShapeInput: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.
|
|
|
863
968
|
height?: number | undefined;
|
|
864
969
|
rotation?: number | undefined;
|
|
865
970
|
cornerRadius?: number | undefined;
|
|
866
|
-
parentId?: string | undefined;
|
|
867
|
-
strokeWeight?: number | undefined;
|
|
868
971
|
fillHex?: string | undefined;
|
|
869
972
|
fillOpacity?: number | undefined;
|
|
973
|
+
parentId?: string | undefined;
|
|
974
|
+
strokeWeight?: number | undefined;
|
|
870
975
|
strokeHex?: string | undefined;
|
|
871
976
|
strokeOpacity?: number | undefined;
|
|
872
977
|
}>, {
|
|
@@ -879,10 +984,10 @@ export declare const createShapeInput: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.
|
|
|
879
984
|
height?: number | undefined;
|
|
880
985
|
rotation?: number | undefined;
|
|
881
986
|
cornerRadius?: number | undefined;
|
|
882
|
-
parentId?: string | undefined;
|
|
883
|
-
strokeWeight?: number | undefined;
|
|
884
987
|
fillHex?: string | undefined;
|
|
885
988
|
fillOpacity?: number | undefined;
|
|
989
|
+
parentId?: string | undefined;
|
|
990
|
+
strokeWeight?: number | undefined;
|
|
886
991
|
strokeHex?: string | undefined;
|
|
887
992
|
strokeOpacity?: number | undefined;
|
|
888
993
|
}, {
|
|
@@ -895,10 +1000,10 @@ export declare const createShapeInput: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.
|
|
|
895
1000
|
height?: number | undefined;
|
|
896
1001
|
rotation?: number | undefined;
|
|
897
1002
|
cornerRadius?: number | undefined;
|
|
898
|
-
parentId?: string | undefined;
|
|
899
|
-
strokeWeight?: number | undefined;
|
|
900
1003
|
fillHex?: string | undefined;
|
|
901
1004
|
fillOpacity?: number | undefined;
|
|
1005
|
+
parentId?: string | undefined;
|
|
1006
|
+
strokeWeight?: number | undefined;
|
|
902
1007
|
strokeHex?: string | undefined;
|
|
903
1008
|
strokeOpacity?: number | undefined;
|
|
904
1009
|
}>, {
|
|
@@ -911,10 +1016,10 @@ export declare const createShapeInput: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.
|
|
|
911
1016
|
height?: number | undefined;
|
|
912
1017
|
rotation?: number | undefined;
|
|
913
1018
|
cornerRadius?: number | undefined;
|
|
914
|
-
parentId?: string | undefined;
|
|
915
|
-
strokeWeight?: number | undefined;
|
|
916
1019
|
fillHex?: string | undefined;
|
|
917
1020
|
fillOpacity?: number | undefined;
|
|
1021
|
+
parentId?: string | undefined;
|
|
1022
|
+
strokeWeight?: number | undefined;
|
|
918
1023
|
strokeHex?: string | undefined;
|
|
919
1024
|
strokeOpacity?: number | undefined;
|
|
920
1025
|
}, {
|
|
@@ -927,10 +1032,10 @@ export declare const createShapeInput: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.
|
|
|
927
1032
|
height?: number | undefined;
|
|
928
1033
|
rotation?: number | undefined;
|
|
929
1034
|
cornerRadius?: number | undefined;
|
|
930
|
-
parentId?: string | undefined;
|
|
931
|
-
strokeWeight?: number | undefined;
|
|
932
1035
|
fillHex?: string | undefined;
|
|
933
1036
|
fillOpacity?: number | undefined;
|
|
1037
|
+
parentId?: string | undefined;
|
|
1038
|
+
strokeWeight?: number | undefined;
|
|
934
1039
|
strokeHex?: string | undefined;
|
|
935
1040
|
strokeOpacity?: number | undefined;
|
|
936
1041
|
}>, {
|
|
@@ -943,10 +1048,10 @@ export declare const createShapeInput: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.
|
|
|
943
1048
|
height?: number | undefined;
|
|
944
1049
|
rotation?: number | undefined;
|
|
945
1050
|
cornerRadius?: number | undefined;
|
|
946
|
-
parentId?: string | undefined;
|
|
947
|
-
strokeWeight?: number | undefined;
|
|
948
1051
|
fillHex?: string | undefined;
|
|
949
1052
|
fillOpacity?: number | undefined;
|
|
1053
|
+
parentId?: string | undefined;
|
|
1054
|
+
strokeWeight?: number | undefined;
|
|
950
1055
|
strokeHex?: string | undefined;
|
|
951
1056
|
strokeOpacity?: number | undefined;
|
|
952
1057
|
}, {
|
|
@@ -959,10 +1064,10 @@ export declare const createShapeInput: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.
|
|
|
959
1064
|
height?: number | undefined;
|
|
960
1065
|
rotation?: number | undefined;
|
|
961
1066
|
cornerRadius?: number | undefined;
|
|
962
|
-
parentId?: string | undefined;
|
|
963
|
-
strokeWeight?: number | undefined;
|
|
964
1067
|
fillHex?: string | undefined;
|
|
965
1068
|
fillOpacity?: number | undefined;
|
|
1069
|
+
parentId?: string | undefined;
|
|
1070
|
+
strokeWeight?: number | undefined;
|
|
966
1071
|
strokeHex?: string | undefined;
|
|
967
1072
|
strokeOpacity?: number | undefined;
|
|
968
1073
|
}>;
|
|
@@ -1100,18 +1205,30 @@ export declare const toolInputSchemas: {
|
|
|
1100
1205
|
}[];
|
|
1101
1206
|
fileKey?: string | undefined;
|
|
1102
1207
|
}>;
|
|
1103
|
-
readonly set_text_content: z.ZodObject<{
|
|
1208
|
+
readonly set_text_content: z.ZodEffects<z.ZodObject<{
|
|
1104
1209
|
nodeId: z.ZodString;
|
|
1105
|
-
text: z.ZodString
|
|
1210
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1211
|
+
characters: z.ZodOptional<z.ZodString>;
|
|
1106
1212
|
fileKey: z.ZodOptional<z.ZodString>;
|
|
1107
1213
|
}, "strip", z.ZodTypeAny, {
|
|
1108
1214
|
nodeId: string;
|
|
1109
|
-
text: string;
|
|
1110
1215
|
fileKey?: string | undefined;
|
|
1216
|
+
text?: string | undefined;
|
|
1217
|
+
characters?: string | undefined;
|
|
1111
1218
|
}, {
|
|
1112
1219
|
nodeId: string;
|
|
1220
|
+
fileKey?: string | undefined;
|
|
1221
|
+
text?: string | undefined;
|
|
1222
|
+
characters?: string | undefined;
|
|
1223
|
+
}>, {
|
|
1113
1224
|
text: string;
|
|
1225
|
+
nodeId: string;
|
|
1114
1226
|
fileKey?: string | undefined;
|
|
1227
|
+
}, {
|
|
1228
|
+
nodeId: string;
|
|
1229
|
+
fileKey?: string | undefined;
|
|
1230
|
+
text?: string | undefined;
|
|
1231
|
+
characters?: string | undefined;
|
|
1115
1232
|
}>;
|
|
1116
1233
|
readonly set_text_properties: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
1117
1234
|
nodeId: z.ZodString;
|
|
@@ -1278,24 +1395,44 @@ export declare const toolInputSchemas: {
|
|
|
1278
1395
|
gradientTransform?: number[][] | undefined;
|
|
1279
1396
|
target?: "fill" | "stroke" | undefined;
|
|
1280
1397
|
}>;
|
|
1281
|
-
readonly set_solid_fill: z.ZodObject<{
|
|
1398
|
+
readonly set_solid_fill: z.ZodEffects<z.ZodObject<{
|
|
1282
1399
|
nodeId: z.ZodString;
|
|
1283
|
-
hex: z.ZodString
|
|
1400
|
+
hex: z.ZodOptional<z.ZodString>;
|
|
1401
|
+
fillHex: z.ZodOptional<z.ZodString>;
|
|
1284
1402
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
1403
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
1285
1404
|
target: z.ZodOptional<z.ZodEnum<["fill", "stroke"]>>;
|
|
1286
1405
|
fileKey: z.ZodOptional<z.ZodString>;
|
|
1287
1406
|
}, "strip", z.ZodTypeAny, {
|
|
1288
|
-
hex: string;
|
|
1289
1407
|
nodeId: string;
|
|
1290
1408
|
fileKey?: string | undefined;
|
|
1409
|
+
hex?: string | undefined;
|
|
1291
1410
|
opacity?: number | undefined;
|
|
1292
1411
|
target?: "fill" | "stroke" | undefined;
|
|
1412
|
+
fillHex?: string | undefined;
|
|
1413
|
+
fillOpacity?: number | undefined;
|
|
1293
1414
|
}, {
|
|
1415
|
+
nodeId: string;
|
|
1416
|
+
fileKey?: string | undefined;
|
|
1417
|
+
hex?: string | undefined;
|
|
1418
|
+
opacity?: number | undefined;
|
|
1419
|
+
target?: "fill" | "stroke" | undefined;
|
|
1420
|
+
fillHex?: string | undefined;
|
|
1421
|
+
fillOpacity?: number | undefined;
|
|
1422
|
+
}>, {
|
|
1294
1423
|
hex: string;
|
|
1424
|
+
opacity: number | undefined;
|
|
1425
|
+
nodeId: string;
|
|
1426
|
+
fileKey?: string | undefined;
|
|
1427
|
+
target?: "fill" | "stroke" | undefined;
|
|
1428
|
+
}, {
|
|
1295
1429
|
nodeId: string;
|
|
1296
1430
|
fileKey?: string | undefined;
|
|
1431
|
+
hex?: string | undefined;
|
|
1297
1432
|
opacity?: number | undefined;
|
|
1298
1433
|
target?: "fill" | "stroke" | undefined;
|
|
1434
|
+
fillHex?: string | undefined;
|
|
1435
|
+
fillOpacity?: number | undefined;
|
|
1299
1436
|
}>;
|
|
1300
1437
|
readonly set_effects: z.ZodEffects<z.ZodObject<{
|
|
1301
1438
|
nodeId: z.ZodString;
|
|
@@ -1603,9 +1740,9 @@ export declare const toolInputSchemas: {
|
|
|
1603
1740
|
y?: number | undefined;
|
|
1604
1741
|
width?: number | undefined;
|
|
1605
1742
|
height?: number | undefined;
|
|
1606
|
-
parentId?: string | undefined;
|
|
1607
1743
|
fillHex?: string | undefined;
|
|
1608
1744
|
fillOpacity?: number | undefined;
|
|
1745
|
+
parentId?: string | undefined;
|
|
1609
1746
|
}, {
|
|
1610
1747
|
fileKey?: string | undefined;
|
|
1611
1748
|
name?: string | undefined;
|
|
@@ -1613,9 +1750,9 @@ export declare const toolInputSchemas: {
|
|
|
1613
1750
|
y?: number | undefined;
|
|
1614
1751
|
width?: number | undefined;
|
|
1615
1752
|
height?: number | undefined;
|
|
1616
|
-
parentId?: string | undefined;
|
|
1617
1753
|
fillHex?: string | undefined;
|
|
1618
1754
|
fillOpacity?: number | undefined;
|
|
1755
|
+
parentId?: string | undefined;
|
|
1619
1756
|
}>, {
|
|
1620
1757
|
fileKey?: string | undefined;
|
|
1621
1758
|
name?: string | undefined;
|
|
@@ -1623,9 +1760,9 @@ export declare const toolInputSchemas: {
|
|
|
1623
1760
|
y?: number | undefined;
|
|
1624
1761
|
width?: number | undefined;
|
|
1625
1762
|
height?: number | undefined;
|
|
1626
|
-
parentId?: string | undefined;
|
|
1627
1763
|
fillHex?: string | undefined;
|
|
1628
1764
|
fillOpacity?: number | undefined;
|
|
1765
|
+
parentId?: string | undefined;
|
|
1629
1766
|
}, {
|
|
1630
1767
|
fileKey?: string | undefined;
|
|
1631
1768
|
name?: string | undefined;
|
|
@@ -1633,9 +1770,9 @@ export declare const toolInputSchemas: {
|
|
|
1633
1770
|
y?: number | undefined;
|
|
1634
1771
|
width?: number | undefined;
|
|
1635
1772
|
height?: number | undefined;
|
|
1636
|
-
parentId?: string | undefined;
|
|
1637
1773
|
fillHex?: string | undefined;
|
|
1638
1774
|
fillOpacity?: number | undefined;
|
|
1775
|
+
parentId?: string | undefined;
|
|
1639
1776
|
}>;
|
|
1640
1777
|
readonly create_text: z.ZodEffects<z.ZodObject<{
|
|
1641
1778
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1660,15 +1797,15 @@ export declare const toolInputSchemas: {
|
|
|
1660
1797
|
y?: number | undefined;
|
|
1661
1798
|
width?: number | undefined;
|
|
1662
1799
|
height?: number | undefined;
|
|
1663
|
-
parentId?: string | undefined;
|
|
1664
1800
|
fillHex?: string | undefined;
|
|
1665
1801
|
fillOpacity?: number | undefined;
|
|
1802
|
+
parentId?: string | undefined;
|
|
1803
|
+
characters?: string | undefined;
|
|
1666
1804
|
fontFamily?: string | undefined;
|
|
1667
1805
|
fontStyle?: string | undefined;
|
|
1668
1806
|
fontSize?: number | undefined;
|
|
1669
1807
|
textAlignHorizontal?: "LEFT" | "CENTER" | "RIGHT" | "JUSTIFIED" | undefined;
|
|
1670
1808
|
textAutoResize?: "NONE" | "WIDTH_AND_HEIGHT" | "HEIGHT" | "TRUNCATE" | undefined;
|
|
1671
|
-
characters?: string | undefined;
|
|
1672
1809
|
}, {
|
|
1673
1810
|
fileKey?: string | undefined;
|
|
1674
1811
|
name?: string | undefined;
|
|
@@ -1676,15 +1813,15 @@ export declare const toolInputSchemas: {
|
|
|
1676
1813
|
y?: number | undefined;
|
|
1677
1814
|
width?: number | undefined;
|
|
1678
1815
|
height?: number | undefined;
|
|
1679
|
-
parentId?: string | undefined;
|
|
1680
1816
|
fillHex?: string | undefined;
|
|
1681
1817
|
fillOpacity?: number | undefined;
|
|
1818
|
+
parentId?: string | undefined;
|
|
1819
|
+
characters?: string | undefined;
|
|
1682
1820
|
fontFamily?: string | undefined;
|
|
1683
1821
|
fontStyle?: string | undefined;
|
|
1684
1822
|
fontSize?: number | undefined;
|
|
1685
1823
|
textAlignHorizontal?: "LEFT" | "CENTER" | "RIGHT" | "JUSTIFIED" | undefined;
|
|
1686
1824
|
textAutoResize?: "NONE" | "WIDTH_AND_HEIGHT" | "HEIGHT" | "TRUNCATE" | undefined;
|
|
1687
|
-
characters?: string | undefined;
|
|
1688
1825
|
}>, {
|
|
1689
1826
|
fileKey?: string | undefined;
|
|
1690
1827
|
name?: string | undefined;
|
|
@@ -1692,15 +1829,15 @@ export declare const toolInputSchemas: {
|
|
|
1692
1829
|
y?: number | undefined;
|
|
1693
1830
|
width?: number | undefined;
|
|
1694
1831
|
height?: number | undefined;
|
|
1695
|
-
parentId?: string | undefined;
|
|
1696
1832
|
fillHex?: string | undefined;
|
|
1697
1833
|
fillOpacity?: number | undefined;
|
|
1834
|
+
parentId?: string | undefined;
|
|
1835
|
+
characters?: string | undefined;
|
|
1698
1836
|
fontFamily?: string | undefined;
|
|
1699
1837
|
fontStyle?: string | undefined;
|
|
1700
1838
|
fontSize?: number | undefined;
|
|
1701
1839
|
textAlignHorizontal?: "LEFT" | "CENTER" | "RIGHT" | "JUSTIFIED" | undefined;
|
|
1702
1840
|
textAutoResize?: "NONE" | "WIDTH_AND_HEIGHT" | "HEIGHT" | "TRUNCATE" | undefined;
|
|
1703
|
-
characters?: string | undefined;
|
|
1704
1841
|
}, {
|
|
1705
1842
|
fileKey?: string | undefined;
|
|
1706
1843
|
name?: string | undefined;
|
|
@@ -1708,15 +1845,15 @@ export declare const toolInputSchemas: {
|
|
|
1708
1845
|
y?: number | undefined;
|
|
1709
1846
|
width?: number | undefined;
|
|
1710
1847
|
height?: number | undefined;
|
|
1711
|
-
parentId?: string | undefined;
|
|
1712
1848
|
fillHex?: string | undefined;
|
|
1713
1849
|
fillOpacity?: number | undefined;
|
|
1850
|
+
parentId?: string | undefined;
|
|
1851
|
+
characters?: string | undefined;
|
|
1714
1852
|
fontFamily?: string | undefined;
|
|
1715
1853
|
fontStyle?: string | undefined;
|
|
1716
1854
|
fontSize?: number | undefined;
|
|
1717
1855
|
textAlignHorizontal?: "LEFT" | "CENTER" | "RIGHT" | "JUSTIFIED" | undefined;
|
|
1718
1856
|
textAutoResize?: "NONE" | "WIDTH_AND_HEIGHT" | "HEIGHT" | "TRUNCATE" | undefined;
|
|
1719
|
-
characters?: string | undefined;
|
|
1720
1857
|
}>;
|
|
1721
1858
|
readonly create_shape: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
1722
1859
|
shapeType: z.ZodEnum<["RECTANGLE", "ELLIPSE", "LINE"]>;
|
|
@@ -1744,10 +1881,10 @@ export declare const toolInputSchemas: {
|
|
|
1744
1881
|
height?: number | undefined;
|
|
1745
1882
|
rotation?: number | undefined;
|
|
1746
1883
|
cornerRadius?: number | undefined;
|
|
1747
|
-
parentId?: string | undefined;
|
|
1748
|
-
strokeWeight?: number | undefined;
|
|
1749
1884
|
fillHex?: string | undefined;
|
|
1750
1885
|
fillOpacity?: number | undefined;
|
|
1886
|
+
parentId?: string | undefined;
|
|
1887
|
+
strokeWeight?: number | undefined;
|
|
1751
1888
|
strokeHex?: string | undefined;
|
|
1752
1889
|
strokeOpacity?: number | undefined;
|
|
1753
1890
|
}, {
|
|
@@ -1760,10 +1897,10 @@ export declare const toolInputSchemas: {
|
|
|
1760
1897
|
height?: number | undefined;
|
|
1761
1898
|
rotation?: number | undefined;
|
|
1762
1899
|
cornerRadius?: number | undefined;
|
|
1763
|
-
parentId?: string | undefined;
|
|
1764
|
-
strokeWeight?: number | undefined;
|
|
1765
1900
|
fillHex?: string | undefined;
|
|
1766
1901
|
fillOpacity?: number | undefined;
|
|
1902
|
+
parentId?: string | undefined;
|
|
1903
|
+
strokeWeight?: number | undefined;
|
|
1767
1904
|
strokeHex?: string | undefined;
|
|
1768
1905
|
strokeOpacity?: number | undefined;
|
|
1769
1906
|
}>, {
|
|
@@ -1776,10 +1913,10 @@ export declare const toolInputSchemas: {
|
|
|
1776
1913
|
height?: number | undefined;
|
|
1777
1914
|
rotation?: number | undefined;
|
|
1778
1915
|
cornerRadius?: number | undefined;
|
|
1779
|
-
parentId?: string | undefined;
|
|
1780
|
-
strokeWeight?: number | undefined;
|
|
1781
1916
|
fillHex?: string | undefined;
|
|
1782
1917
|
fillOpacity?: number | undefined;
|
|
1918
|
+
parentId?: string | undefined;
|
|
1919
|
+
strokeWeight?: number | undefined;
|
|
1783
1920
|
strokeHex?: string | undefined;
|
|
1784
1921
|
strokeOpacity?: number | undefined;
|
|
1785
1922
|
}, {
|
|
@@ -1792,10 +1929,10 @@ export declare const toolInputSchemas: {
|
|
|
1792
1929
|
height?: number | undefined;
|
|
1793
1930
|
rotation?: number | undefined;
|
|
1794
1931
|
cornerRadius?: number | undefined;
|
|
1795
|
-
parentId?: string | undefined;
|
|
1796
|
-
strokeWeight?: number | undefined;
|
|
1797
1932
|
fillHex?: string | undefined;
|
|
1798
1933
|
fillOpacity?: number | undefined;
|
|
1934
|
+
parentId?: string | undefined;
|
|
1935
|
+
strokeWeight?: number | undefined;
|
|
1799
1936
|
strokeHex?: string | undefined;
|
|
1800
1937
|
strokeOpacity?: number | undefined;
|
|
1801
1938
|
}>, {
|
|
@@ -1808,10 +1945,10 @@ export declare const toolInputSchemas: {
|
|
|
1808
1945
|
height?: number | undefined;
|
|
1809
1946
|
rotation?: number | undefined;
|
|
1810
1947
|
cornerRadius?: number | undefined;
|
|
1811
|
-
parentId?: string | undefined;
|
|
1812
|
-
strokeWeight?: number | undefined;
|
|
1813
1948
|
fillHex?: string | undefined;
|
|
1814
1949
|
fillOpacity?: number | undefined;
|
|
1950
|
+
parentId?: string | undefined;
|
|
1951
|
+
strokeWeight?: number | undefined;
|
|
1815
1952
|
strokeHex?: string | undefined;
|
|
1816
1953
|
strokeOpacity?: number | undefined;
|
|
1817
1954
|
}, {
|
|
@@ -1824,10 +1961,10 @@ export declare const toolInputSchemas: {
|
|
|
1824
1961
|
height?: number | undefined;
|
|
1825
1962
|
rotation?: number | undefined;
|
|
1826
1963
|
cornerRadius?: number | undefined;
|
|
1827
|
-
parentId?: string | undefined;
|
|
1828
|
-
strokeWeight?: number | undefined;
|
|
1829
1964
|
fillHex?: string | undefined;
|
|
1830
1965
|
fillOpacity?: number | undefined;
|
|
1966
|
+
parentId?: string | undefined;
|
|
1967
|
+
strokeWeight?: number | undefined;
|
|
1831
1968
|
strokeHex?: string | undefined;
|
|
1832
1969
|
strokeOpacity?: number | undefined;
|
|
1833
1970
|
}>, {
|
|
@@ -1840,10 +1977,10 @@ export declare const toolInputSchemas: {
|
|
|
1840
1977
|
height?: number | undefined;
|
|
1841
1978
|
rotation?: number | undefined;
|
|
1842
1979
|
cornerRadius?: number | undefined;
|
|
1843
|
-
parentId?: string | undefined;
|
|
1844
|
-
strokeWeight?: number | undefined;
|
|
1845
1980
|
fillHex?: string | undefined;
|
|
1846
1981
|
fillOpacity?: number | undefined;
|
|
1982
|
+
parentId?: string | undefined;
|
|
1983
|
+
strokeWeight?: number | undefined;
|
|
1847
1984
|
strokeHex?: string | undefined;
|
|
1848
1985
|
strokeOpacity?: number | undefined;
|
|
1849
1986
|
}, {
|
|
@@ -1856,10 +1993,10 @@ export declare const toolInputSchemas: {
|
|
|
1856
1993
|
height?: number | undefined;
|
|
1857
1994
|
rotation?: number | undefined;
|
|
1858
1995
|
cornerRadius?: number | undefined;
|
|
1859
|
-
parentId?: string | undefined;
|
|
1860
|
-
strokeWeight?: number | undefined;
|
|
1861
1996
|
fillHex?: string | undefined;
|
|
1862
1997
|
fillOpacity?: number | undefined;
|
|
1998
|
+
parentId?: string | undefined;
|
|
1999
|
+
strokeWeight?: number | undefined;
|
|
1863
2000
|
strokeHex?: string | undefined;
|
|
1864
2001
|
strokeOpacity?: number | undefined;
|
|
1865
2002
|
}>, {
|
|
@@ -1872,10 +2009,10 @@ export declare const toolInputSchemas: {
|
|
|
1872
2009
|
height?: number | undefined;
|
|
1873
2010
|
rotation?: number | undefined;
|
|
1874
2011
|
cornerRadius?: number | undefined;
|
|
1875
|
-
parentId?: string | undefined;
|
|
1876
|
-
strokeWeight?: number | undefined;
|
|
1877
2012
|
fillHex?: string | undefined;
|
|
1878
2013
|
fillOpacity?: number | undefined;
|
|
2014
|
+
parentId?: string | undefined;
|
|
2015
|
+
strokeWeight?: number | undefined;
|
|
1879
2016
|
strokeHex?: string | undefined;
|
|
1880
2017
|
strokeOpacity?: number | undefined;
|
|
1881
2018
|
}, {
|
|
@@ -1888,10 +2025,10 @@ export declare const toolInputSchemas: {
|
|
|
1888
2025
|
height?: number | undefined;
|
|
1889
2026
|
rotation?: number | undefined;
|
|
1890
2027
|
cornerRadius?: number | undefined;
|
|
1891
|
-
parentId?: string | undefined;
|
|
1892
|
-
strokeWeight?: number | undefined;
|
|
1893
2028
|
fillHex?: string | undefined;
|
|
1894
2029
|
fillOpacity?: number | undefined;
|
|
2030
|
+
parentId?: string | undefined;
|
|
2031
|
+
strokeWeight?: number | undefined;
|
|
1895
2032
|
strokeHex?: string | undefined;
|
|
1896
2033
|
strokeOpacity?: number | undefined;
|
|
1897
2034
|
}>;
|
|
@@ -2060,9 +2197,121 @@ export declare const toolInputSchemas: {
|
|
|
2060
2197
|
scale?: number | undefined;
|
|
2061
2198
|
clip?: boolean | undefined;
|
|
2062
2199
|
}>;
|
|
2200
|
+
readonly get_motion_styles: z.ZodObject<{
|
|
2201
|
+
fileKey: z.ZodOptional<z.ZodString>;
|
|
2202
|
+
}, "strip", z.ZodTypeAny, {
|
|
2203
|
+
fileKey?: string | undefined;
|
|
2204
|
+
}, {
|
|
2205
|
+
fileKey?: string | undefined;
|
|
2206
|
+
}>;
|
|
2207
|
+
readonly get_node_motion: z.ZodObject<{
|
|
2208
|
+
nodeId: z.ZodString;
|
|
2209
|
+
fileKey: z.ZodOptional<z.ZodString>;
|
|
2210
|
+
}, "strip", z.ZodTypeAny, {
|
|
2211
|
+
nodeId: string;
|
|
2212
|
+
fileKey?: string | undefined;
|
|
2213
|
+
}, {
|
|
2214
|
+
nodeId: string;
|
|
2215
|
+
fileKey?: string | undefined;
|
|
2216
|
+
}>;
|
|
2217
|
+
readonly apply_animation_style: z.ZodObject<{
|
|
2218
|
+
nodeId: z.ZodString;
|
|
2219
|
+
styleId: z.ZodString;
|
|
2220
|
+
animationStyleData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2221
|
+
fileKey: z.ZodOptional<z.ZodString>;
|
|
2222
|
+
}, "strip", z.ZodTypeAny, {
|
|
2223
|
+
nodeId: string;
|
|
2224
|
+
styleId: string;
|
|
2225
|
+
fileKey?: string | undefined;
|
|
2226
|
+
animationStyleData?: Record<string, unknown> | undefined;
|
|
2227
|
+
}, {
|
|
2228
|
+
nodeId: string;
|
|
2229
|
+
styleId: string;
|
|
2230
|
+
fileKey?: string | undefined;
|
|
2231
|
+
animationStyleData?: Record<string, unknown> | undefined;
|
|
2232
|
+
}>;
|
|
2233
|
+
readonly remove_animation_style: z.ZodObject<{
|
|
2234
|
+
nodeId: z.ZodString;
|
|
2235
|
+
animationStyleId: z.ZodOptional<z.ZodString>;
|
|
2236
|
+
fileKey: z.ZodOptional<z.ZodString>;
|
|
2237
|
+
}, "strip", z.ZodTypeAny, {
|
|
2238
|
+
nodeId: string;
|
|
2239
|
+
fileKey?: string | undefined;
|
|
2240
|
+
animationStyleId?: string | undefined;
|
|
2241
|
+
}, {
|
|
2242
|
+
nodeId: string;
|
|
2243
|
+
fileKey?: string | undefined;
|
|
2244
|
+
animationStyleId?: string | undefined;
|
|
2245
|
+
}>;
|
|
2246
|
+
readonly apply_manual_keyframe_track: z.ZodObject<{
|
|
2247
|
+
nodeId: z.ZodString;
|
|
2248
|
+
field: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2249
|
+
track: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2250
|
+
fileKey: z.ZodOptional<z.ZodString>;
|
|
2251
|
+
}, "strip", z.ZodTypeAny, {
|
|
2252
|
+
nodeId: string;
|
|
2253
|
+
field: Record<string, unknown>;
|
|
2254
|
+
track: Record<string, unknown>;
|
|
2255
|
+
fileKey?: string | undefined;
|
|
2256
|
+
}, {
|
|
2257
|
+
nodeId: string;
|
|
2258
|
+
field: Record<string, unknown>;
|
|
2259
|
+
track: Record<string, unknown>;
|
|
2260
|
+
fileKey?: string | undefined;
|
|
2261
|
+
}>;
|
|
2262
|
+
readonly remove_manual_keyframe_track: z.ZodObject<{
|
|
2263
|
+
nodeId: z.ZodString;
|
|
2264
|
+
field: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2265
|
+
fileKey: z.ZodOptional<z.ZodString>;
|
|
2266
|
+
}, "strip", z.ZodTypeAny, {
|
|
2267
|
+
nodeId: string;
|
|
2268
|
+
field: Record<string, unknown>;
|
|
2269
|
+
fileKey?: string | undefined;
|
|
2270
|
+
}, {
|
|
2271
|
+
nodeId: string;
|
|
2272
|
+
field: Record<string, unknown>;
|
|
2273
|
+
fileKey?: string | undefined;
|
|
2274
|
+
}>;
|
|
2275
|
+
readonly set_timeline_duration: z.ZodObject<{
|
|
2276
|
+
nodeId: z.ZodString;
|
|
2277
|
+
timelineId: z.ZodString;
|
|
2278
|
+
duration: z.ZodNumber;
|
|
2279
|
+
fileKey: z.ZodOptional<z.ZodString>;
|
|
2280
|
+
}, "strip", z.ZodTypeAny, {
|
|
2281
|
+
nodeId: string;
|
|
2282
|
+
timelineId: string;
|
|
2283
|
+
duration: number;
|
|
2284
|
+
fileKey?: string | undefined;
|
|
2285
|
+
}, {
|
|
2286
|
+
nodeId: string;
|
|
2287
|
+
timelineId: string;
|
|
2288
|
+
duration: number;
|
|
2289
|
+
fileKey?: string | undefined;
|
|
2290
|
+
}>;
|
|
2063
2291
|
};
|
|
2292
|
+
/**
|
|
2293
|
+
* Result of validating an RPC request.
|
|
2294
|
+
*
|
|
2295
|
+
* `params` carries the schema's output so callers forward normalised values
|
|
2296
|
+
* rather than the caller's raw object. Without it a schema that rewrites input
|
|
2297
|
+
* — such as the create_* field aliases on `set_solid_fill` / `set_text_content`
|
|
2298
|
+
* — would pass validation here and then be rejected by the plugin, which only
|
|
2299
|
+
* understands the canonical spelling.
|
|
2300
|
+
*/
|
|
2301
|
+
export interface RpcValidation {
|
|
2302
|
+
/** Human-readable message when validation failed, null when it passed. */
|
|
2303
|
+
error: string | null;
|
|
2304
|
+
/**
|
|
2305
|
+
* Normalised params to forward to the plugin. Undefined when validation
|
|
2306
|
+
* failed, or when the tool has no schema and nothing was normalised — in that
|
|
2307
|
+
* case forward the caller's original params.
|
|
2308
|
+
*/
|
|
2309
|
+
params?: Record<string, unknown>;
|
|
2310
|
+
}
|
|
2064
2311
|
/**
|
|
2065
2312
|
* Validate an RPC request against the corresponding tool's input schema.
|
|
2066
|
-
*
|
|
2313
|
+
*
|
|
2314
|
+
* Tools without a schema are passed through unvalidated, matching the previous
|
|
2315
|
+
* behaviour.
|
|
2067
2316
|
*/
|
|
2068
|
-
export declare function validateRpc(tool: string, nodeIds?: string[], params?: Record<string, unknown>):
|
|
2317
|
+
export declare function validateRpc(tool: string, nodeIds?: string[], params?: Record<string, unknown>): RpcValidation;
|