@gxpl/sdk 0.0.21 → 0.0.22

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.
@@ -1,5 +1,299 @@
1
1
  import { z } from 'zod';
2
2
  import { FontFileTypes } from '../../types/project/Fonts';
3
+ export declare const FixedLayerSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ items: z.ZodArray<z.ZodType<import("../../..").ItemAny, z.ZodTypeDef, import("../../..").ItemAny>, "many">;
6
+ name: z.ZodOptional<z.ZodString>;
7
+ hidden: z.ZodBoolean;
8
+ color: z.ZodNullable<z.ZodString>;
9
+ media: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10
+ url: z.ZodString;
11
+ size: z.ZodString;
12
+ type: z.ZodLiteral<"video">;
13
+ play: z.ZodEnum<["on-click", "auto"]>;
14
+ coverUrl: z.ZodNullable<z.ZodString>;
15
+ position: z.ZodString;
16
+ offsetX: z.ZodNullable<z.ZodNumber>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ play: "on-click" | "auto";
19
+ url: string;
20
+ coverUrl: string | null;
21
+ position: string;
22
+ type: "video";
23
+ size: string;
24
+ offsetX: number | null;
25
+ }, {
26
+ play: "on-click" | "auto";
27
+ url: string;
28
+ coverUrl: string | null;
29
+ position: string;
30
+ type: "video";
31
+ size: string;
32
+ offsetX: number | null;
33
+ }>, z.ZodObject<{
34
+ url: z.ZodString;
35
+ type: z.ZodLiteral<"image">;
36
+ size: z.ZodString;
37
+ position: z.ZodString;
38
+ offsetX: z.ZodNullable<z.ZodNumber>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ url: string;
41
+ position: string;
42
+ type: "image";
43
+ size: string;
44
+ offsetX: number | null;
45
+ }, {
46
+ url: string;
47
+ position: string;
48
+ type: "image";
49
+ size: string;
50
+ offsetX: number | null;
51
+ }>]>>;
52
+ interactions: z.ZodArray<z.ZodObject<{
53
+ id: z.ZodString;
54
+ triggers: z.ZodArray<z.ZodUnion<[z.ZodObject<{
55
+ itemId: z.ZodString;
56
+ type: z.ZodEnum<["hover-in", "hover-out", "click"]>;
57
+ from: z.ZodString;
58
+ to: z.ZodString;
59
+ }, "strip", z.ZodTypeAny, {
60
+ type: "hover-in" | "hover-out" | "click";
61
+ from: string;
62
+ to: string;
63
+ itemId: string;
64
+ }, {
65
+ type: "hover-in" | "hover-out" | "click";
66
+ from: string;
67
+ to: string;
68
+ itemId: string;
69
+ }>, z.ZodObject<{
70
+ position: z.ZodNumber;
71
+ from: z.ZodString;
72
+ to: z.ZodString;
73
+ isReverse: z.ZodBoolean;
74
+ }, "strip", z.ZodTypeAny, {
75
+ position: number;
76
+ from: string;
77
+ to: string;
78
+ isReverse: boolean;
79
+ }, {
80
+ position: number;
81
+ from: string;
82
+ to: string;
83
+ isReverse: boolean;
84
+ }>]>, "many">;
85
+ states: z.ZodArray<z.ZodObject<{
86
+ id: z.ZodString;
87
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
88
+ type: z.ZodEnum<["play", "pause"]>;
89
+ itemId: z.ZodString;
90
+ }, "strip", z.ZodTypeAny, {
91
+ type: "play" | "pause";
92
+ itemId: string;
93
+ }, {
94
+ type: "play" | "pause";
95
+ itemId: string;
96
+ }>, "many">>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ id: string;
99
+ actions?: {
100
+ type: "play" | "pause";
101
+ itemId: string;
102
+ }[] | undefined;
103
+ }, {
104
+ id: string;
105
+ actions?: {
106
+ type: "play" | "pause";
107
+ itemId: string;
108
+ }[] | undefined;
109
+ }>, "many">;
110
+ startStateId: z.ZodString;
111
+ }, "strip", z.ZodTypeAny, {
112
+ id: string;
113
+ triggers: ({
114
+ type: "hover-in" | "hover-out" | "click";
115
+ from: string;
116
+ to: string;
117
+ itemId: string;
118
+ } | {
119
+ position: number;
120
+ from: string;
121
+ to: string;
122
+ isReverse: boolean;
123
+ })[];
124
+ states: {
125
+ id: string;
126
+ actions?: {
127
+ type: "play" | "pause";
128
+ itemId: string;
129
+ }[] | undefined;
130
+ }[];
131
+ startStateId: string;
132
+ }, {
133
+ id: string;
134
+ triggers: ({
135
+ type: "hover-in" | "hover-out" | "click";
136
+ from: string;
137
+ to: string;
138
+ itemId: string;
139
+ } | {
140
+ position: number;
141
+ from: string;
142
+ to: string;
143
+ isReverse: boolean;
144
+ })[];
145
+ states: {
146
+ id: string;
147
+ actions?: {
148
+ type: "play" | "pause";
149
+ itemId: string;
150
+ }[] | undefined;
151
+ }[];
152
+ startStateId: string;
153
+ }>, "many">;
154
+ transitions: z.ZodArray<z.ZodObject<{
155
+ from: z.ZodString;
156
+ to: z.ZodString;
157
+ itemsTransitions: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
158
+ timing: z.ZodString;
159
+ duration: z.ZodNumber;
160
+ delay: z.ZodNumber;
161
+ }, "strip", z.ZodTypeAny, {
162
+ timing: string;
163
+ duration: number;
164
+ delay: number;
165
+ }, {
166
+ timing: string;
167
+ duration: number;
168
+ delay: number;
169
+ }>>>;
170
+ id: z.ZodString;
171
+ }, "strip", z.ZodTypeAny, {
172
+ id: string;
173
+ from: string;
174
+ to: string;
175
+ itemsTransitions: Record<string, Record<string, {
176
+ timing: string;
177
+ duration: number;
178
+ delay: number;
179
+ }>>;
180
+ }, {
181
+ id: string;
182
+ from: string;
183
+ to: string;
184
+ itemsTransitions: Record<string, Record<string, {
185
+ timing: string;
186
+ duration: number;
187
+ delay: number;
188
+ }>>;
189
+ }>, "many">;
190
+ }, "strip", z.ZodTypeAny, {
191
+ color: string | null;
192
+ hidden: boolean;
193
+ id: string;
194
+ items: import("../../..").ItemAny[];
195
+ interactions: {
196
+ id: string;
197
+ triggers: ({
198
+ type: "hover-in" | "hover-out" | "click";
199
+ from: string;
200
+ to: string;
201
+ itemId: string;
202
+ } | {
203
+ position: number;
204
+ from: string;
205
+ to: string;
206
+ isReverse: boolean;
207
+ })[];
208
+ states: {
209
+ id: string;
210
+ actions?: {
211
+ type: "play" | "pause";
212
+ itemId: string;
213
+ }[] | undefined;
214
+ }[];
215
+ startStateId: string;
216
+ }[];
217
+ transitions: {
218
+ id: string;
219
+ from: string;
220
+ to: string;
221
+ itemsTransitions: Record<string, Record<string, {
222
+ timing: string;
223
+ duration: number;
224
+ delay: number;
225
+ }>>;
226
+ }[];
227
+ name?: string | undefined;
228
+ media?: {
229
+ play: "on-click" | "auto";
230
+ url: string;
231
+ coverUrl: string | null;
232
+ position: string;
233
+ type: "video";
234
+ size: string;
235
+ offsetX: number | null;
236
+ } | {
237
+ url: string;
238
+ position: string;
239
+ type: "image";
240
+ size: string;
241
+ offsetX: number | null;
242
+ } | undefined;
243
+ }, {
244
+ color: string | null;
245
+ hidden: boolean;
246
+ id: string;
247
+ items: import("../../..").ItemAny[];
248
+ interactions: {
249
+ id: string;
250
+ triggers: ({
251
+ type: "hover-in" | "hover-out" | "click";
252
+ from: string;
253
+ to: string;
254
+ itemId: string;
255
+ } | {
256
+ position: number;
257
+ from: string;
258
+ to: string;
259
+ isReverse: boolean;
260
+ })[];
261
+ states: {
262
+ id: string;
263
+ actions?: {
264
+ type: "play" | "pause";
265
+ itemId: string;
266
+ }[] | undefined;
267
+ }[];
268
+ startStateId: string;
269
+ }[];
270
+ transitions: {
271
+ id: string;
272
+ from: string;
273
+ to: string;
274
+ itemsTransitions: Record<string, Record<string, {
275
+ timing: string;
276
+ duration: number;
277
+ delay: number;
278
+ }>>;
279
+ }[];
280
+ name?: string | undefined;
281
+ media?: {
282
+ play: "on-click" | "auto";
283
+ url: string;
284
+ coverUrl: string | null;
285
+ position: string;
286
+ type: "video";
287
+ size: string;
288
+ offsetX: number | null;
289
+ } | {
290
+ url: string;
291
+ position: string;
292
+ type: "image";
293
+ size: string;
294
+ offsetX: number | null;
295
+ } | undefined;
296
+ }>;
3
297
  export declare const ProjectSchema: z.ZodObject<{
4
298
  id: z.ZodString;
5
299
  html: z.ZodObject<{
@@ -120,6 +414,594 @@ export declare const ProjectSchema: z.ZodObject<{
120
414
  from: string;
121
415
  to: string;
122
416
  }>, "many">;
417
+ foreground: z.ZodObject<{
418
+ id: z.ZodString;
419
+ items: z.ZodArray<z.ZodType<import("../../..").ItemAny, z.ZodTypeDef, import("../../..").ItemAny>, "many">;
420
+ name: z.ZodOptional<z.ZodString>;
421
+ hidden: z.ZodBoolean;
422
+ color: z.ZodNullable<z.ZodString>;
423
+ media: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
424
+ url: z.ZodString;
425
+ size: z.ZodString;
426
+ type: z.ZodLiteral<"video">;
427
+ play: z.ZodEnum<["on-click", "auto"]>;
428
+ coverUrl: z.ZodNullable<z.ZodString>;
429
+ position: z.ZodString;
430
+ offsetX: z.ZodNullable<z.ZodNumber>;
431
+ }, "strip", z.ZodTypeAny, {
432
+ play: "on-click" | "auto";
433
+ url: string;
434
+ coverUrl: string | null;
435
+ position: string;
436
+ type: "video";
437
+ size: string;
438
+ offsetX: number | null;
439
+ }, {
440
+ play: "on-click" | "auto";
441
+ url: string;
442
+ coverUrl: string | null;
443
+ position: string;
444
+ type: "video";
445
+ size: string;
446
+ offsetX: number | null;
447
+ }>, z.ZodObject<{
448
+ url: z.ZodString;
449
+ type: z.ZodLiteral<"image">;
450
+ size: z.ZodString;
451
+ position: z.ZodString;
452
+ offsetX: z.ZodNullable<z.ZodNumber>;
453
+ }, "strip", z.ZodTypeAny, {
454
+ url: string;
455
+ position: string;
456
+ type: "image";
457
+ size: string;
458
+ offsetX: number | null;
459
+ }, {
460
+ url: string;
461
+ position: string;
462
+ type: "image";
463
+ size: string;
464
+ offsetX: number | null;
465
+ }>]>>;
466
+ interactions: z.ZodArray<z.ZodObject<{
467
+ id: z.ZodString;
468
+ triggers: z.ZodArray<z.ZodUnion<[z.ZodObject<{
469
+ itemId: z.ZodString;
470
+ type: z.ZodEnum<["hover-in", "hover-out", "click"]>;
471
+ from: z.ZodString;
472
+ to: z.ZodString;
473
+ }, "strip", z.ZodTypeAny, {
474
+ type: "hover-in" | "hover-out" | "click";
475
+ from: string;
476
+ to: string;
477
+ itemId: string;
478
+ }, {
479
+ type: "hover-in" | "hover-out" | "click";
480
+ from: string;
481
+ to: string;
482
+ itemId: string;
483
+ }>, z.ZodObject<{
484
+ position: z.ZodNumber;
485
+ from: z.ZodString;
486
+ to: z.ZodString;
487
+ isReverse: z.ZodBoolean;
488
+ }, "strip", z.ZodTypeAny, {
489
+ position: number;
490
+ from: string;
491
+ to: string;
492
+ isReverse: boolean;
493
+ }, {
494
+ position: number;
495
+ from: string;
496
+ to: string;
497
+ isReverse: boolean;
498
+ }>]>, "many">;
499
+ states: z.ZodArray<z.ZodObject<{
500
+ id: z.ZodString;
501
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
502
+ type: z.ZodEnum<["play", "pause"]>;
503
+ itemId: z.ZodString;
504
+ }, "strip", z.ZodTypeAny, {
505
+ type: "play" | "pause";
506
+ itemId: string;
507
+ }, {
508
+ type: "play" | "pause";
509
+ itemId: string;
510
+ }>, "many">>;
511
+ }, "strip", z.ZodTypeAny, {
512
+ id: string;
513
+ actions?: {
514
+ type: "play" | "pause";
515
+ itemId: string;
516
+ }[] | undefined;
517
+ }, {
518
+ id: string;
519
+ actions?: {
520
+ type: "play" | "pause";
521
+ itemId: string;
522
+ }[] | undefined;
523
+ }>, "many">;
524
+ startStateId: z.ZodString;
525
+ }, "strip", z.ZodTypeAny, {
526
+ id: string;
527
+ triggers: ({
528
+ type: "hover-in" | "hover-out" | "click";
529
+ from: string;
530
+ to: string;
531
+ itemId: string;
532
+ } | {
533
+ position: number;
534
+ from: string;
535
+ to: string;
536
+ isReverse: boolean;
537
+ })[];
538
+ states: {
539
+ id: string;
540
+ actions?: {
541
+ type: "play" | "pause";
542
+ itemId: string;
543
+ }[] | undefined;
544
+ }[];
545
+ startStateId: string;
546
+ }, {
547
+ id: string;
548
+ triggers: ({
549
+ type: "hover-in" | "hover-out" | "click";
550
+ from: string;
551
+ to: string;
552
+ itemId: string;
553
+ } | {
554
+ position: number;
555
+ from: string;
556
+ to: string;
557
+ isReverse: boolean;
558
+ })[];
559
+ states: {
560
+ id: string;
561
+ actions?: {
562
+ type: "play" | "pause";
563
+ itemId: string;
564
+ }[] | undefined;
565
+ }[];
566
+ startStateId: string;
567
+ }>, "many">;
568
+ transitions: z.ZodArray<z.ZodObject<{
569
+ from: z.ZodString;
570
+ to: z.ZodString;
571
+ itemsTransitions: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
572
+ timing: z.ZodString;
573
+ duration: z.ZodNumber;
574
+ delay: z.ZodNumber;
575
+ }, "strip", z.ZodTypeAny, {
576
+ timing: string;
577
+ duration: number;
578
+ delay: number;
579
+ }, {
580
+ timing: string;
581
+ duration: number;
582
+ delay: number;
583
+ }>>>;
584
+ id: z.ZodString;
585
+ }, "strip", z.ZodTypeAny, {
586
+ id: string;
587
+ from: string;
588
+ to: string;
589
+ itemsTransitions: Record<string, Record<string, {
590
+ timing: string;
591
+ duration: number;
592
+ delay: number;
593
+ }>>;
594
+ }, {
595
+ id: string;
596
+ from: string;
597
+ to: string;
598
+ itemsTransitions: Record<string, Record<string, {
599
+ timing: string;
600
+ duration: number;
601
+ delay: number;
602
+ }>>;
603
+ }>, "many">;
604
+ }, "strip", z.ZodTypeAny, {
605
+ color: string | null;
606
+ hidden: boolean;
607
+ id: string;
608
+ items: import("../../..").ItemAny[];
609
+ interactions: {
610
+ id: string;
611
+ triggers: ({
612
+ type: "hover-in" | "hover-out" | "click";
613
+ from: string;
614
+ to: string;
615
+ itemId: string;
616
+ } | {
617
+ position: number;
618
+ from: string;
619
+ to: string;
620
+ isReverse: boolean;
621
+ })[];
622
+ states: {
623
+ id: string;
624
+ actions?: {
625
+ type: "play" | "pause";
626
+ itemId: string;
627
+ }[] | undefined;
628
+ }[];
629
+ startStateId: string;
630
+ }[];
631
+ transitions: {
632
+ id: string;
633
+ from: string;
634
+ to: string;
635
+ itemsTransitions: Record<string, Record<string, {
636
+ timing: string;
637
+ duration: number;
638
+ delay: number;
639
+ }>>;
640
+ }[];
641
+ name?: string | undefined;
642
+ media?: {
643
+ play: "on-click" | "auto";
644
+ url: string;
645
+ coverUrl: string | null;
646
+ position: string;
647
+ type: "video";
648
+ size: string;
649
+ offsetX: number | null;
650
+ } | {
651
+ url: string;
652
+ position: string;
653
+ type: "image";
654
+ size: string;
655
+ offsetX: number | null;
656
+ } | undefined;
657
+ }, {
658
+ color: string | null;
659
+ hidden: boolean;
660
+ id: string;
661
+ items: import("../../..").ItemAny[];
662
+ interactions: {
663
+ id: string;
664
+ triggers: ({
665
+ type: "hover-in" | "hover-out" | "click";
666
+ from: string;
667
+ to: string;
668
+ itemId: string;
669
+ } | {
670
+ position: number;
671
+ from: string;
672
+ to: string;
673
+ isReverse: boolean;
674
+ })[];
675
+ states: {
676
+ id: string;
677
+ actions?: {
678
+ type: "play" | "pause";
679
+ itemId: string;
680
+ }[] | undefined;
681
+ }[];
682
+ startStateId: string;
683
+ }[];
684
+ transitions: {
685
+ id: string;
686
+ from: string;
687
+ to: string;
688
+ itemsTransitions: Record<string, Record<string, {
689
+ timing: string;
690
+ duration: number;
691
+ delay: number;
692
+ }>>;
693
+ }[];
694
+ name?: string | undefined;
695
+ media?: {
696
+ play: "on-click" | "auto";
697
+ url: string;
698
+ coverUrl: string | null;
699
+ position: string;
700
+ type: "video";
701
+ size: string;
702
+ offsetX: number | null;
703
+ } | {
704
+ url: string;
705
+ position: string;
706
+ type: "image";
707
+ size: string;
708
+ offsetX: number | null;
709
+ } | undefined;
710
+ }>;
711
+ background: z.ZodObject<{
712
+ id: z.ZodString;
713
+ items: z.ZodArray<z.ZodType<import("../../..").ItemAny, z.ZodTypeDef, import("../../..").ItemAny>, "many">;
714
+ name: z.ZodOptional<z.ZodString>;
715
+ hidden: z.ZodBoolean;
716
+ color: z.ZodNullable<z.ZodString>;
717
+ media: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
718
+ url: z.ZodString;
719
+ size: z.ZodString;
720
+ type: z.ZodLiteral<"video">;
721
+ play: z.ZodEnum<["on-click", "auto"]>;
722
+ coverUrl: z.ZodNullable<z.ZodString>;
723
+ position: z.ZodString;
724
+ offsetX: z.ZodNullable<z.ZodNumber>;
725
+ }, "strip", z.ZodTypeAny, {
726
+ play: "on-click" | "auto";
727
+ url: string;
728
+ coverUrl: string | null;
729
+ position: string;
730
+ type: "video";
731
+ size: string;
732
+ offsetX: number | null;
733
+ }, {
734
+ play: "on-click" | "auto";
735
+ url: string;
736
+ coverUrl: string | null;
737
+ position: string;
738
+ type: "video";
739
+ size: string;
740
+ offsetX: number | null;
741
+ }>, z.ZodObject<{
742
+ url: z.ZodString;
743
+ type: z.ZodLiteral<"image">;
744
+ size: z.ZodString;
745
+ position: z.ZodString;
746
+ offsetX: z.ZodNullable<z.ZodNumber>;
747
+ }, "strip", z.ZodTypeAny, {
748
+ url: string;
749
+ position: string;
750
+ type: "image";
751
+ size: string;
752
+ offsetX: number | null;
753
+ }, {
754
+ url: string;
755
+ position: string;
756
+ type: "image";
757
+ size: string;
758
+ offsetX: number | null;
759
+ }>]>>;
760
+ interactions: z.ZodArray<z.ZodObject<{
761
+ id: z.ZodString;
762
+ triggers: z.ZodArray<z.ZodUnion<[z.ZodObject<{
763
+ itemId: z.ZodString;
764
+ type: z.ZodEnum<["hover-in", "hover-out", "click"]>;
765
+ from: z.ZodString;
766
+ to: z.ZodString;
767
+ }, "strip", z.ZodTypeAny, {
768
+ type: "hover-in" | "hover-out" | "click";
769
+ from: string;
770
+ to: string;
771
+ itemId: string;
772
+ }, {
773
+ type: "hover-in" | "hover-out" | "click";
774
+ from: string;
775
+ to: string;
776
+ itemId: string;
777
+ }>, z.ZodObject<{
778
+ position: z.ZodNumber;
779
+ from: z.ZodString;
780
+ to: z.ZodString;
781
+ isReverse: z.ZodBoolean;
782
+ }, "strip", z.ZodTypeAny, {
783
+ position: number;
784
+ from: string;
785
+ to: string;
786
+ isReverse: boolean;
787
+ }, {
788
+ position: number;
789
+ from: string;
790
+ to: string;
791
+ isReverse: boolean;
792
+ }>]>, "many">;
793
+ states: z.ZodArray<z.ZodObject<{
794
+ id: z.ZodString;
795
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
796
+ type: z.ZodEnum<["play", "pause"]>;
797
+ itemId: z.ZodString;
798
+ }, "strip", z.ZodTypeAny, {
799
+ type: "play" | "pause";
800
+ itemId: string;
801
+ }, {
802
+ type: "play" | "pause";
803
+ itemId: string;
804
+ }>, "many">>;
805
+ }, "strip", z.ZodTypeAny, {
806
+ id: string;
807
+ actions?: {
808
+ type: "play" | "pause";
809
+ itemId: string;
810
+ }[] | undefined;
811
+ }, {
812
+ id: string;
813
+ actions?: {
814
+ type: "play" | "pause";
815
+ itemId: string;
816
+ }[] | undefined;
817
+ }>, "many">;
818
+ startStateId: z.ZodString;
819
+ }, "strip", z.ZodTypeAny, {
820
+ id: string;
821
+ triggers: ({
822
+ type: "hover-in" | "hover-out" | "click";
823
+ from: string;
824
+ to: string;
825
+ itemId: string;
826
+ } | {
827
+ position: number;
828
+ from: string;
829
+ to: string;
830
+ isReverse: boolean;
831
+ })[];
832
+ states: {
833
+ id: string;
834
+ actions?: {
835
+ type: "play" | "pause";
836
+ itemId: string;
837
+ }[] | undefined;
838
+ }[];
839
+ startStateId: string;
840
+ }, {
841
+ id: string;
842
+ triggers: ({
843
+ type: "hover-in" | "hover-out" | "click";
844
+ from: string;
845
+ to: string;
846
+ itemId: string;
847
+ } | {
848
+ position: number;
849
+ from: string;
850
+ to: string;
851
+ isReverse: boolean;
852
+ })[];
853
+ states: {
854
+ id: string;
855
+ actions?: {
856
+ type: "play" | "pause";
857
+ itemId: string;
858
+ }[] | undefined;
859
+ }[];
860
+ startStateId: string;
861
+ }>, "many">;
862
+ transitions: z.ZodArray<z.ZodObject<{
863
+ from: z.ZodString;
864
+ to: z.ZodString;
865
+ itemsTransitions: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
866
+ timing: z.ZodString;
867
+ duration: z.ZodNumber;
868
+ delay: z.ZodNumber;
869
+ }, "strip", z.ZodTypeAny, {
870
+ timing: string;
871
+ duration: number;
872
+ delay: number;
873
+ }, {
874
+ timing: string;
875
+ duration: number;
876
+ delay: number;
877
+ }>>>;
878
+ id: z.ZodString;
879
+ }, "strip", z.ZodTypeAny, {
880
+ id: string;
881
+ from: string;
882
+ to: string;
883
+ itemsTransitions: Record<string, Record<string, {
884
+ timing: string;
885
+ duration: number;
886
+ delay: number;
887
+ }>>;
888
+ }, {
889
+ id: string;
890
+ from: string;
891
+ to: string;
892
+ itemsTransitions: Record<string, Record<string, {
893
+ timing: string;
894
+ duration: number;
895
+ delay: number;
896
+ }>>;
897
+ }>, "many">;
898
+ }, "strip", z.ZodTypeAny, {
899
+ color: string | null;
900
+ hidden: boolean;
901
+ id: string;
902
+ items: import("../../..").ItemAny[];
903
+ interactions: {
904
+ id: string;
905
+ triggers: ({
906
+ type: "hover-in" | "hover-out" | "click";
907
+ from: string;
908
+ to: string;
909
+ itemId: string;
910
+ } | {
911
+ position: number;
912
+ from: string;
913
+ to: string;
914
+ isReverse: boolean;
915
+ })[];
916
+ states: {
917
+ id: string;
918
+ actions?: {
919
+ type: "play" | "pause";
920
+ itemId: string;
921
+ }[] | undefined;
922
+ }[];
923
+ startStateId: string;
924
+ }[];
925
+ transitions: {
926
+ id: string;
927
+ from: string;
928
+ to: string;
929
+ itemsTransitions: Record<string, Record<string, {
930
+ timing: string;
931
+ duration: number;
932
+ delay: number;
933
+ }>>;
934
+ }[];
935
+ name?: string | undefined;
936
+ media?: {
937
+ play: "on-click" | "auto";
938
+ url: string;
939
+ coverUrl: string | null;
940
+ position: string;
941
+ type: "video";
942
+ size: string;
943
+ offsetX: number | null;
944
+ } | {
945
+ url: string;
946
+ position: string;
947
+ type: "image";
948
+ size: string;
949
+ offsetX: number | null;
950
+ } | undefined;
951
+ }, {
952
+ color: string | null;
953
+ hidden: boolean;
954
+ id: string;
955
+ items: import("../../..").ItemAny[];
956
+ interactions: {
957
+ id: string;
958
+ triggers: ({
959
+ type: "hover-in" | "hover-out" | "click";
960
+ from: string;
961
+ to: string;
962
+ itemId: string;
963
+ } | {
964
+ position: number;
965
+ from: string;
966
+ to: string;
967
+ isReverse: boolean;
968
+ })[];
969
+ states: {
970
+ id: string;
971
+ actions?: {
972
+ type: "play" | "pause";
973
+ itemId: string;
974
+ }[] | undefined;
975
+ }[];
976
+ startStateId: string;
977
+ }[];
978
+ transitions: {
979
+ id: string;
980
+ from: string;
981
+ to: string;
982
+ itemsTransitions: Record<string, Record<string, {
983
+ timing: string;
984
+ duration: number;
985
+ delay: number;
986
+ }>>;
987
+ }[];
988
+ name?: string | undefined;
989
+ media?: {
990
+ play: "on-click" | "auto";
991
+ url: string;
992
+ coverUrl: string | null;
993
+ position: string;
994
+ type: "video";
995
+ size: string;
996
+ offsetX: number | null;
997
+ } | {
998
+ url: string;
999
+ position: string;
1000
+ type: "image";
1001
+ size: string;
1002
+ offsetX: number | null;
1003
+ } | undefined;
1004
+ }>;
123
1005
  }, "strip", z.ZodTypeAny, {
124
1006
  html: {
125
1007
  head: string;
@@ -158,6 +1040,114 @@ export declare const ProjectSchema: z.ZodObject<{
158
1040
  from: string;
159
1041
  to: string;
160
1042
  }[];
1043
+ foreground: {
1044
+ color: string | null;
1045
+ hidden: boolean;
1046
+ id: string;
1047
+ items: import("../../..").ItemAny[];
1048
+ interactions: {
1049
+ id: string;
1050
+ triggers: ({
1051
+ type: "hover-in" | "hover-out" | "click";
1052
+ from: string;
1053
+ to: string;
1054
+ itemId: string;
1055
+ } | {
1056
+ position: number;
1057
+ from: string;
1058
+ to: string;
1059
+ isReverse: boolean;
1060
+ })[];
1061
+ states: {
1062
+ id: string;
1063
+ actions?: {
1064
+ type: "play" | "pause";
1065
+ itemId: string;
1066
+ }[] | undefined;
1067
+ }[];
1068
+ startStateId: string;
1069
+ }[];
1070
+ transitions: {
1071
+ id: string;
1072
+ from: string;
1073
+ to: string;
1074
+ itemsTransitions: Record<string, Record<string, {
1075
+ timing: string;
1076
+ duration: number;
1077
+ delay: number;
1078
+ }>>;
1079
+ }[];
1080
+ name?: string | undefined;
1081
+ media?: {
1082
+ play: "on-click" | "auto";
1083
+ url: string;
1084
+ coverUrl: string | null;
1085
+ position: string;
1086
+ type: "video";
1087
+ size: string;
1088
+ offsetX: number | null;
1089
+ } | {
1090
+ url: string;
1091
+ position: string;
1092
+ type: "image";
1093
+ size: string;
1094
+ offsetX: number | null;
1095
+ } | undefined;
1096
+ };
1097
+ background: {
1098
+ color: string | null;
1099
+ hidden: boolean;
1100
+ id: string;
1101
+ items: import("../../..").ItemAny[];
1102
+ interactions: {
1103
+ id: string;
1104
+ triggers: ({
1105
+ type: "hover-in" | "hover-out" | "click";
1106
+ from: string;
1107
+ to: string;
1108
+ itemId: string;
1109
+ } | {
1110
+ position: number;
1111
+ from: string;
1112
+ to: string;
1113
+ isReverse: boolean;
1114
+ })[];
1115
+ states: {
1116
+ id: string;
1117
+ actions?: {
1118
+ type: "play" | "pause";
1119
+ itemId: string;
1120
+ }[] | undefined;
1121
+ }[];
1122
+ startStateId: string;
1123
+ }[];
1124
+ transitions: {
1125
+ id: string;
1126
+ from: string;
1127
+ to: string;
1128
+ itemsTransitions: Record<string, Record<string, {
1129
+ timing: string;
1130
+ duration: number;
1131
+ delay: number;
1132
+ }>>;
1133
+ }[];
1134
+ name?: string | undefined;
1135
+ media?: {
1136
+ play: "on-click" | "auto";
1137
+ url: string;
1138
+ coverUrl: string | null;
1139
+ position: string;
1140
+ type: "video";
1141
+ size: string;
1142
+ offsetX: number | null;
1143
+ } | {
1144
+ url: string;
1145
+ position: string;
1146
+ type: "image";
1147
+ size: string;
1148
+ offsetX: number | null;
1149
+ } | undefined;
1150
+ };
161
1151
  }, {
162
1152
  html: {
163
1153
  head: string;
@@ -196,4 +1186,112 @@ export declare const ProjectSchema: z.ZodObject<{
196
1186
  from: string;
197
1187
  to: string;
198
1188
  }[];
1189
+ foreground: {
1190
+ color: string | null;
1191
+ hidden: boolean;
1192
+ id: string;
1193
+ items: import("../../..").ItemAny[];
1194
+ interactions: {
1195
+ id: string;
1196
+ triggers: ({
1197
+ type: "hover-in" | "hover-out" | "click";
1198
+ from: string;
1199
+ to: string;
1200
+ itemId: string;
1201
+ } | {
1202
+ position: number;
1203
+ from: string;
1204
+ to: string;
1205
+ isReverse: boolean;
1206
+ })[];
1207
+ states: {
1208
+ id: string;
1209
+ actions?: {
1210
+ type: "play" | "pause";
1211
+ itemId: string;
1212
+ }[] | undefined;
1213
+ }[];
1214
+ startStateId: string;
1215
+ }[];
1216
+ transitions: {
1217
+ id: string;
1218
+ from: string;
1219
+ to: string;
1220
+ itemsTransitions: Record<string, Record<string, {
1221
+ timing: string;
1222
+ duration: number;
1223
+ delay: number;
1224
+ }>>;
1225
+ }[];
1226
+ name?: string | undefined;
1227
+ media?: {
1228
+ play: "on-click" | "auto";
1229
+ url: string;
1230
+ coverUrl: string | null;
1231
+ position: string;
1232
+ type: "video";
1233
+ size: string;
1234
+ offsetX: number | null;
1235
+ } | {
1236
+ url: string;
1237
+ position: string;
1238
+ type: "image";
1239
+ size: string;
1240
+ offsetX: number | null;
1241
+ } | undefined;
1242
+ };
1243
+ background: {
1244
+ color: string | null;
1245
+ hidden: boolean;
1246
+ id: string;
1247
+ items: import("../../..").ItemAny[];
1248
+ interactions: {
1249
+ id: string;
1250
+ triggers: ({
1251
+ type: "hover-in" | "hover-out" | "click";
1252
+ from: string;
1253
+ to: string;
1254
+ itemId: string;
1255
+ } | {
1256
+ position: number;
1257
+ from: string;
1258
+ to: string;
1259
+ isReverse: boolean;
1260
+ })[];
1261
+ states: {
1262
+ id: string;
1263
+ actions?: {
1264
+ type: "play" | "pause";
1265
+ itemId: string;
1266
+ }[] | undefined;
1267
+ }[];
1268
+ startStateId: string;
1269
+ }[];
1270
+ transitions: {
1271
+ id: string;
1272
+ from: string;
1273
+ to: string;
1274
+ itemsTransitions: Record<string, Record<string, {
1275
+ timing: string;
1276
+ duration: number;
1277
+ delay: number;
1278
+ }>>;
1279
+ }[];
1280
+ name?: string | undefined;
1281
+ media?: {
1282
+ play: "on-click" | "auto";
1283
+ url: string;
1284
+ coverUrl: string | null;
1285
+ position: string;
1286
+ type: "video";
1287
+ size: string;
1288
+ offsetX: number | null;
1289
+ } | {
1290
+ url: string;
1291
+ position: string;
1292
+ type: "image";
1293
+ size: string;
1294
+ offsetX: number | null;
1295
+ } | undefined;
1296
+ };
199
1297
  }>;