@shotstack/schemas 1.4.1 → 1.4.2

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.
@@ -31,14 +31,17 @@ exports.uploadRootSchema = zod_1.z.unknown();
31
31
  */
32
32
  exports.captionpropertiesCaptionBackgroundSchema = zod_1.z.object({
33
33
  color: zod_1.z.optional(zod_1.z.string()),
34
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
35
- return undefined; if (typeof v === 'string')
34
+ opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
35
+ return undefined; if (Array.isArray(v))
36
+ return v; if (typeof v === 'string')
36
37
  return Number(v); return v; }), zod_1.z.number())),
37
- padding: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
38
- return undefined; if (typeof v === 'string')
38
+ padding: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
39
+ return undefined; if (Array.isArray(v))
40
+ return v; if (typeof v === 'string')
39
41
  return Number(v); return v; }), zod_1.z.number().int())),
40
- borderRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
41
- return undefined; if (typeof v === 'string')
42
+ borderRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
43
+ return undefined; if (Array.isArray(v))
44
+ return v; if (typeof v === 'string')
42
45
  return Number(v); return v; }), zod_1.z.number().int()))
43
46
  });
44
47
  exports.captionBackgroundSchema = exports.captionpropertiesCaptionBackgroundSchema;
@@ -48,18 +51,22 @@ exports.captionBackgroundSchema = exports.captionpropertiesCaptionBackgroundSche
48
51
  exports.captionpropertiesCaptionFontSchema = zod_1.z.object({
49
52
  family: zod_1.z.optional(zod_1.z.string()),
50
53
  color: zod_1.z.optional(zod_1.z.string()),
51
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
52
- return undefined; if (typeof v === 'string')
54
+ opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
55
+ return undefined; if (Array.isArray(v))
56
+ return v; if (typeof v === 'string')
53
57
  return Number(v); return v; }), zod_1.z.number())),
54
- size: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
55
- return undefined; if (typeof v === 'string')
58
+ size: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
59
+ return undefined; if (Array.isArray(v))
60
+ return v; if (typeof v === 'string')
56
61
  return Number(v); return v; }), zod_1.z.number().int())),
57
- lineHeight: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
58
- return undefined; if (typeof v === 'string')
62
+ lineHeight: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
63
+ return undefined; if (Array.isArray(v))
64
+ return v; if (typeof v === 'string')
59
65
  return Number(v); return v; }), zod_1.z.number())),
60
66
  stroke: zod_1.z.optional(zod_1.z.string()),
61
- strokeWidth: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
62
- return undefined; if (typeof v === 'string')
67
+ strokeWidth: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
68
+ return undefined; if (Array.isArray(v))
69
+ return v; if (typeof v === 'string')
63
70
  return Number(v); return v; }), zod_1.z.number()))
64
71
  });
65
72
  exports.captionFontSchema = exports.captionpropertiesCaptionFontSchema;
@@ -67,14 +74,17 @@ exports.captionFontSchema = exports.captionpropertiesCaptionFontSchema;
67
74
  * The margin properties for captions. Margins are used to position the caption text and background on the screen.
68
75
  */
69
76
  exports.captionpropertiesCaptionMarginSchema = zod_1.z.object({
70
- top: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
71
- return undefined; if (typeof v === 'string')
77
+ top: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
78
+ return undefined; if (Array.isArray(v))
79
+ return v; if (typeof v === 'string')
72
80
  return Number(v); return v; }), zod_1.z.number())),
73
- left: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
74
- return undefined; if (typeof v === 'string')
81
+ left: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
82
+ return undefined; if (Array.isArray(v))
83
+ return v; if (typeof v === 'string')
75
84
  return Number(v); return v; }), zod_1.z.number())),
76
- right: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
77
- return undefined; if (typeof v === 'string')
85
+ right: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
86
+ return undefined; if (Array.isArray(v))
87
+ return v; if (typeof v === 'string')
78
88
  return Number(v); return v; }), zod_1.z.number()))
79
89
  });
80
90
  exports.captionMarginSchema = exports.captionpropertiesCaptionMarginSchema;
@@ -96,11 +106,13 @@ exports.captionassetCaptionAssetSchema = zod_1.z.object({
96
106
  font: zod_1.z.optional(exports.captionpropertiesCaptionFontSchema),
97
107
  background: zod_1.z.optional(exports.captionpropertiesCaptionBackgroundSchema),
98
108
  margin: zod_1.z.optional(exports.captionpropertiesCaptionMarginSchema),
99
- trim: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
100
- return undefined; if (typeof v === 'string')
109
+ trim: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
110
+ return undefined; if (Array.isArray(v))
111
+ return v; if (typeof v === 'string')
101
112
  return Number(v); return v; }), zod_1.z.number())),
102
- speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
103
- return undefined; if (typeof v === 'string')
113
+ speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
114
+ return undefined; if (Array.isArray(v))
115
+ return v; if (typeof v === 'string')
104
116
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(10)))
105
117
  });
106
118
  exports.captionAssetSchema = exports.captionassetCaptionAssetSchema;
@@ -109,11 +121,13 @@ exports.captionAssetSchema = exports.captionassetCaptionAssetSchema;
109
121
  */
110
122
  exports.chromakeyChromaKeySchema = zod_1.z.object({
111
123
  color: zod_1.z.optional(zod_1.z.string()),
112
- threshold: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
113
- return undefined; if (typeof v === 'string')
124
+ threshold: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
125
+ return undefined; if (Array.isArray(v))
126
+ return v; if (typeof v === 'string')
114
127
  return Number(v); return v; }), zod_1.z.number().int().gte(0).lte(250))),
115
- halo: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
116
- return undefined; if (typeof v === 'string')
128
+ halo: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
129
+ return undefined; if (Array.isArray(v))
130
+ return v; if (typeof v === 'string')
117
131
  return Number(v); return v; }), zod_1.z.number().int().gte(0).lte(250)))
118
132
  });
119
133
  exports.chromaKeySchema = exports.chromakeyChromaKeySchema;
@@ -425,11 +439,13 @@ exports.generatedAssetResponseSchema = exports.generatedAssetResponseGeneratedAs
425
439
  exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema = zod_1.z.object({
426
440
  type: zod_1.z.enum(['image-to-video']),
427
441
  imageUrl: zod_1.z.string(),
428
- guidanceScale: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
429
- return undefined; if (typeof v === 'string')
442
+ guidanceScale: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
443
+ return undefined; if (Array.isArray(v))
444
+ return v; if (typeof v === 'string')
430
445
  return Number(v); return v; }), zod_1.z.number())).default(1.8),
431
- motion: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
432
- return undefined; if (typeof v === 'string')
446
+ motion: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
447
+ return undefined; if (Array.isArray(v))
448
+ return v; if (typeof v === 'string')
433
449
  return Number(v); return v; }), zod_1.z.number().int())).default(127)
434
450
  });
435
451
  exports.shotstackImageToVideoOptionsSchema = exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema;
@@ -447,11 +463,13 @@ exports.shotstackTextGeneratorOptionsSchema = exports.shotstackTextGeneratorOpti
447
463
  exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema = zod_1.z.object({
448
464
  type: zod_1.z.enum(['text-to-image']),
449
465
  prompt: zod_1.z.string(),
450
- width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
451
- return undefined; if (typeof v === 'string')
466
+ width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
467
+ return undefined; if (Array.isArray(v))
468
+ return v; if (typeof v === 'string')
452
469
  return Number(v); return v; }), zod_1.z.number().int()),
453
- height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
454
- return undefined; if (typeof v === 'string')
470
+ height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
471
+ return undefined; if (Array.isArray(v))
472
+ return v; if (typeof v === 'string')
455
473
  return Number(v); return v; }), zod_1.z.number().int())
456
474
  });
457
475
  exports.shotstackTextToImageOptionsSchema = exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema;
@@ -593,20 +611,25 @@ exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema = zod_1
593
611
  'stable-diffusion-512-v2-1',
594
612
  'stable-diffusion-xl-beta-v2-2-2'
595
613
  ])),
596
- width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
597
- return undefined; if (typeof v === 'string')
614
+ width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
615
+ return undefined; if (Array.isArray(v))
616
+ return v; if (typeof v === 'string')
598
617
  return Number(v); return v; }), zod_1.z.number().int()),
599
- height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
600
- return undefined; if (typeof v === 'string')
618
+ height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
619
+ return undefined; if (Array.isArray(v))
620
+ return v; if (typeof v === 'string')
601
621
  return Number(v); return v; }), zod_1.z.number().int()),
602
- steps: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
603
- return undefined; if (typeof v === 'string')
622
+ steps: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
623
+ return undefined; if (Array.isArray(v))
624
+ return v; if (typeof v === 'string')
604
625
  return Number(v); return v; }), zod_1.z.number().int())).default(30),
605
- seed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
606
- return undefined; if (typeof v === 'string')
626
+ seed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
627
+ return undefined; if (Array.isArray(v))
628
+ return v; if (typeof v === 'string')
607
629
  return Number(v); return v; }), zod_1.z.number().int())).default(0),
608
- cfgScale: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
609
- return undefined; if (typeof v === 'string')
630
+ cfgScale: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
631
+ return undefined; if (Array.isArray(v))
632
+ return v; if (typeof v === 'string')
610
633
  return Number(v); return v; }), zod_1.z.number())).default(7),
611
634
  stylePreset: zod_1.z.optional(zod_1.z.enum([
612
635
  '3d-model',
@@ -676,17 +699,21 @@ exports.generatedAssetSchema = exports.generatedAssetGeneratedAssetSchema;
676
699
  * Crop the sides of an asset by a relative amount. The size of the crop is specified using a scale between 0 and 1, relative to the screen width - i.e a left crop of 0.5 will crop half of the asset from the left, a top crop of 0.25 will crop the top by quarter of the asset.
677
700
  */
678
701
  exports.cropCropSchema = zod_1.z.object({
679
- top: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
680
- return undefined; if (typeof v === 'string')
702
+ top: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
703
+ return undefined; if (Array.isArray(v))
704
+ return v; if (typeof v === 'string')
681
705
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))),
682
- bottom: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
683
- return undefined; if (typeof v === 'string')
706
+ bottom: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
707
+ return undefined; if (Array.isArray(v))
708
+ return v; if (typeof v === 'string')
684
709
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))),
685
- left: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
686
- return undefined; if (typeof v === 'string')
710
+ left: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
711
+ return undefined; if (Array.isArray(v))
712
+ return v; if (typeof v === 'string')
687
713
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))),
688
- right: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
689
- return undefined; if (typeof v === 'string')
714
+ right: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
715
+ return undefined; if (Array.isArray(v))
716
+ return v; if (typeof v === 'string')
690
717
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))
691
718
  });
692
719
  exports.cropSchema = exports.cropCropSchema;
@@ -886,11 +913,13 @@ exports.htmlassetHtmlAssetSchema = zod_1.z.object({
886
913
  type: zod_1.z.enum(['html']),
887
914
  html: zod_1.z.string(),
888
915
  css: zod_1.z.optional(zod_1.z.string()),
889
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
890
- return undefined; if (typeof v === 'string')
916
+ width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
917
+ return undefined; if (Array.isArray(v))
918
+ return v; if (typeof v === 'string')
891
919
  return Number(v); return v; }), zod_1.z.number().int())),
892
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
893
- return undefined; if (typeof v === 'string')
920
+ height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
921
+ return undefined; if (Array.isArray(v))
922
+ return v; if (typeof v === 'string')
894
923
  return Number(v); return v; }), zod_1.z.number().int())),
895
924
  background: zod_1.z.optional(zod_1.z.string()),
896
925
  position: zod_1.z.optional(zod_1.z.enum([
@@ -931,8 +960,9 @@ exports.imagetovideoassetImageToVideoAssetSchema = zod_1.z.object({
931
960
  '21:9',
932
961
  '9:21'
933
962
  ])),
934
- speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
935
- return undefined; if (typeof v === 'string')
963
+ speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
964
+ return undefined; if (Array.isArray(v))
965
+ return v; if (typeof v === 'string')
936
966
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(10))),
937
967
  crop: zod_1.z.optional(exports.cropCropSchema)
938
968
  });
@@ -1039,8 +1069,9 @@ exports.uploadResponseSchema = exports.uploadresponseUploadResponseSchema;
1039
1069
  * Set the playback speed of a video or audio file. Allows you to preserve the pitch of the audio so that it is sped up without sounding too high pitched or too low.
1040
1070
  */
1041
1071
  exports.speedSpeedSchema = zod_1.z.object({
1042
- speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1043
- return undefined; if (typeof v === 'string')
1072
+ speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1073
+ return undefined; if (Array.isArray(v))
1074
+ return v; if (typeof v === 'string')
1044
1075
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(10))),
1045
1076
  preservePitch: zod_1.z.optional(zod_1.z.boolean())
1046
1077
  });
@@ -1058,8 +1089,9 @@ exports.transcriptionSchema = exports.transcriptionTranscriptionSchema;
1058
1089
  exports.lumaassetLumaAssetSchema = zod_1.z.object({
1059
1090
  type: zod_1.z.enum(['luma']),
1060
1091
  src: zod_1.z.string(),
1061
- trim: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1062
- return undefined; if (typeof v === 'string')
1092
+ trim: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1093
+ return undefined; if (Array.isArray(v))
1094
+ return v; if (typeof v === 'string')
1063
1095
  return Number(v); return v; }), zod_1.z.number()))
1064
1096
  });
1065
1097
  exports.lumaAssetSchema = exports.lumaassetLumaAssetSchema;
@@ -1075,8 +1107,9 @@ exports.mergeFieldSchema = exports.mergefieldMergeFieldSchema;
1075
1107
  * Generate a poster image for the video at a specific point from the timeline. The poster image size will match the size of the output video.
1076
1108
  */
1077
1109
  exports.posterPosterSchema = zod_1.z.object({
1078
- capture: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1079
- return undefined; if (typeof v === 'string')
1110
+ capture: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1111
+ return undefined; if (Array.isArray(v))
1112
+ return v; if (typeof v === 'string')
1080
1113
  return Number(v); return v; }), zod_1.z.number())
1081
1114
  });
1082
1115
  exports.posterSchema = exports.posterPosterSchema;
@@ -1084,11 +1117,13 @@ exports.posterSchema = exports.posterPosterSchema;
1084
1117
  * Specify a time range to render, i.e. to render only a portion of a video or audio file. Omit this setting to export the entire video. Range can also be used to render a frame at a specific time point - setting a range and output format as `jpg` will output a single frame image at the range `start` point.
1085
1118
  */
1086
1119
  exports.rangeRangeSchema = zod_1.z.object({
1087
- start: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1088
- return undefined; if (typeof v === 'string')
1120
+ start: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1121
+ return undefined; if (Array.isArray(v))
1122
+ return v; if (typeof v === 'string')
1089
1123
  return Number(v); return v; }), zod_1.z.number().gte(0))),
1090
- length: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1091
- return undefined; if (typeof v === 'string')
1124
+ length: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1125
+ return undefined; if (Array.isArray(v))
1126
+ return v; if (typeof v === 'string')
1092
1127
  return Number(v); return v; }), zod_1.z.number().gte(0)))
1093
1128
  });
1094
1129
  exports.rangeSchema = exports.rangeRangeSchema;
@@ -1233,11 +1268,13 @@ exports.richtextpropertiesRichTextAnimationSchema = zod_1.z.object({
1233
1268
  'shift',
1234
1269
  'movingLetters'
1235
1270
  ]),
1236
- speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1237
- return undefined; if (typeof v === 'string')
1271
+ speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1272
+ return undefined; if (Array.isArray(v))
1273
+ return v; if (typeof v === 'string')
1238
1274
  return Number(v); return v; }), zod_1.z.number().gte(0.1).lte(10))).default(1),
1239
- duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1240
- return undefined; if (typeof v === 'string')
1275
+ duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1276
+ return undefined; if (Array.isArray(v))
1277
+ return v; if (typeof v === 'string')
1241
1278
  return Number(v); return v; }), zod_1.z.number().gte(0.1).lte(30))),
1242
1279
  style: zod_1.z.optional(zod_1.z.enum(['character', 'word'])),
1243
1280
  direction: zod_1.z.optional(zod_1.z.enum([
@@ -1253,11 +1290,13 @@ exports.richTextAnimationSchema = exports.richtextpropertiesRichTextAnimationSch
1253
1290
  */
1254
1291
  exports.richtextpropertiesRichTextBackgroundSchema = zod_1.z.object({
1255
1292
  color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
1256
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1257
- return undefined; if (typeof v === 'string')
1293
+ opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1294
+ return undefined; if (Array.isArray(v))
1295
+ return v; if (typeof v === 'string')
1258
1296
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1),
1259
- borderRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1260
- return undefined; if (typeof v === 'string')
1297
+ borderRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1298
+ return undefined; if (Array.isArray(v))
1299
+ return v; if (typeof v === 'string')
1261
1300
  return Number(v); return v; }), zod_1.z.number().gte(0))).default(0)
1262
1301
  });
1263
1302
  exports.richTextBackgroundSchema = exports.richtextpropertiesRichTextBackgroundSchema;
@@ -1265,15 +1304,18 @@ exports.richTextBackgroundSchema = exports.richtextpropertiesRichTextBackgroundS
1265
1304
  * Border styling properties for the text bounding box.
1266
1305
  */
1267
1306
  exports.richtextpropertiesRichTextBorderSchema = zod_1.z.object({
1268
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1269
- return undefined; if (typeof v === 'string')
1307
+ width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1308
+ return undefined; if (Array.isArray(v))
1309
+ return v; if (typeof v === 'string')
1270
1310
  return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1271
1311
  color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#000000'),
1272
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1273
- return undefined; if (typeof v === 'string')
1312
+ opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1313
+ return undefined; if (Array.isArray(v))
1314
+ return v; if (typeof v === 'string')
1274
1315
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1),
1275
- radius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1276
- return undefined; if (typeof v === 'string')
1316
+ radius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1317
+ return undefined; if (Array.isArray(v))
1318
+ return v; if (typeof v === 'string')
1277
1319
  return Number(v); return v; }), zod_1.z.number().gte(0))).default(0)
1278
1320
  });
1279
1321
  /**
@@ -1281,12 +1323,14 @@ exports.richtextpropertiesRichTextBorderSchema = zod_1.z.object({
1281
1323
  */
1282
1324
  exports.richtextpropertiesRichTextGradientSchema = zod_1.z.object({
1283
1325
  type: zod_1.z.optional(zod_1.z.enum(['linear', 'radial'])),
1284
- angle: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1285
- return undefined; if (typeof v === 'string')
1326
+ angle: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1327
+ return undefined; if (Array.isArray(v))
1328
+ return v; if (typeof v === 'string')
1286
1329
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(360))).default(0),
1287
1330
  stops: zod_1.z.array(zod_1.z.object({
1288
- offset: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1289
- return undefined; if (typeof v === 'string')
1331
+ offset: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1332
+ return undefined; if (Array.isArray(v))
1333
+ return v; if (typeof v === 'string')
1290
1334
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)),
1291
1335
  color: zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)
1292
1336
  })).min(2)
@@ -1296,35 +1340,43 @@ exports.richTextGradientSchema = exports.richtextpropertiesRichTextGradientSchem
1296
1340
  * Padding properties for individual sides of the text bounding box.
1297
1341
  */
1298
1342
  exports.richtextpropertiesRichTextPaddingSchema = zod_1.z.object({
1299
- top: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1300
- return undefined; if (typeof v === 'string')
1343
+ top: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1344
+ return undefined; if (Array.isArray(v))
1345
+ return v; if (typeof v === 'string')
1301
1346
  return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1302
- right: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1303
- return undefined; if (typeof v === 'string')
1347
+ right: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1348
+ return undefined; if (Array.isArray(v))
1349
+ return v; if (typeof v === 'string')
1304
1350
  return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1305
- bottom: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1306
- return undefined; if (typeof v === 'string')
1351
+ bottom: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1352
+ return undefined; if (Array.isArray(v))
1353
+ return v; if (typeof v === 'string')
1307
1354
  return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1308
- left: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1309
- return undefined; if (typeof v === 'string')
1355
+ left: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1356
+ return undefined; if (Array.isArray(v))
1357
+ return v; if (typeof v === 'string')
1310
1358
  return Number(v); return v; }), zod_1.z.number().gte(0))).default(0)
1311
1359
  });
1312
1360
  /**
1313
1361
  * Text shadow properties.
1314
1362
  */
1315
1363
  exports.richtextpropertiesRichTextShadowSchema = zod_1.z.object({
1316
- offsetX: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1317
- return undefined; if (typeof v === 'string')
1364
+ offsetX: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1365
+ return undefined; if (Array.isArray(v))
1366
+ return v; if (typeof v === 'string')
1318
1367
  return Number(v); return v; }), zod_1.z.number())).default(0),
1319
- offsetY: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1320
- return undefined; if (typeof v === 'string')
1368
+ offsetY: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1369
+ return undefined; if (Array.isArray(v))
1370
+ return v; if (typeof v === 'string')
1321
1371
  return Number(v); return v; }), zod_1.z.number())).default(0),
1322
- blur: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1323
- return undefined; if (typeof v === 'string')
1372
+ blur: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1373
+ return undefined; if (Array.isArray(v))
1374
+ return v; if (typeof v === 'string')
1324
1375
  return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1325
1376
  color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#000000'),
1326
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1327
- return undefined; if (typeof v === 'string')
1377
+ opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1378
+ return undefined; if (Array.isArray(v))
1379
+ return v; if (typeof v === 'string')
1328
1380
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(0.5)
1329
1381
  });
1330
1382
  exports.richTextShadowSchema = exports.richtextpropertiesRichTextShadowSchema;
@@ -1332,12 +1384,14 @@ exports.richTextShadowSchema = exports.richtextpropertiesRichTextShadowSchema;
1332
1384
  * Text stroke (outline) properties.
1333
1385
  */
1334
1386
  exports.richtextpropertiesRichTextStrokeSchema = zod_1.z.object({
1335
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1336
- return undefined; if (typeof v === 'string')
1387
+ width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1388
+ return undefined; if (Array.isArray(v))
1389
+ return v; if (typeof v === 'string')
1337
1390
  return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1338
1391
  color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#000000'),
1339
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1340
- return undefined; if (typeof v === 'string')
1392
+ opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1393
+ return undefined; if (Array.isArray(v))
1394
+ return v; if (typeof v === 'string')
1341
1395
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1)
1342
1396
  });
1343
1397
  exports.richTextStrokeSchema = exports.richtextpropertiesRichTextStrokeSchema;
@@ -1346,13 +1400,15 @@ exports.richTextStrokeSchema = exports.richtextpropertiesRichTextStrokeSchema;
1346
1400
  */
1347
1401
  exports.richtextpropertiesRichTextFontSchema = zod_1.z.object({
1348
1402
  family: zod_1.z.optional(zod_1.z.string()).default('Open Sans'),
1349
- size: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1350
- return undefined; if (typeof v === 'string')
1403
+ size: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1404
+ return undefined; if (Array.isArray(v))
1405
+ return v; if (typeof v === 'string')
1351
1406
  return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(500))).default(24),
1352
1407
  weight: zod_1.z.optional(zod_1.z.unknown()).default('400'),
1353
1408
  color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#ffffff'),
1354
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1355
- return undefined; if (typeof v === 'string')
1409
+ opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1410
+ return undefined; if (Array.isArray(v))
1411
+ return v; if (typeof v === 'string')
1356
1412
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1),
1357
1413
  background: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
1358
1414
  stroke: zod_1.z.optional(exports.richtextpropertiesRichTextStrokeSchema)
@@ -1362,11 +1418,13 @@ exports.richTextFontSchema = exports.richtextpropertiesRichTextFontSchema;
1362
1418
  * Text style properties including spacing, line height, and transformations.
1363
1419
  */
1364
1420
  exports.richtextpropertiesRichTextStyleSchema = zod_1.z.object({
1365
- letterSpacing: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1366
- return undefined; if (typeof v === 'string')
1421
+ letterSpacing: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1422
+ return undefined; if (Array.isArray(v))
1423
+ return v; if (typeof v === 'string')
1367
1424
  return Number(v); return v; }), zod_1.z.number())).default(0),
1368
- lineHeight: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1369
- return undefined; if (typeof v === 'string')
1425
+ lineHeight: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1426
+ return undefined; if (Array.isArray(v))
1427
+ return v; if (typeof v === 'string')
1370
1428
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(10))).default(1.2),
1371
1429
  textTransform: zod_1.z.optional(zod_1.z.enum([
1372
1430
  'none',
@@ -1396,8 +1454,9 @@ exports.richtextassetRichTextAssetSchema = zod_1.z.object({
1396
1454
  background: zod_1.z.optional(exports.richtextpropertiesRichTextBackgroundSchema),
1397
1455
  border: zod_1.z.optional(exports.richtextpropertiesRichTextBorderSchema),
1398
1456
  padding: zod_1.z.optional(zod_1.z.union([
1399
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1400
- return undefined; if (typeof v === 'string')
1457
+ zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1458
+ return undefined; if (Array.isArray(v))
1459
+ return v; if (typeof v === 'string')
1401
1460
  return Number(v); return v; }), zod_1.z.number().gte(0)),
1402
1461
  exports.richtextpropertiesRichTextPaddingSchema
1403
1462
  ])),
@@ -1451,46 +1510,56 @@ exports.shapeassetShapeAssetSchema = zod_1.z.object({
1451
1510
  'circle',
1452
1511
  'line'
1453
1512
  ]),
1454
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1455
- return undefined; if (typeof v === 'string')
1513
+ width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1514
+ return undefined; if (Array.isArray(v))
1515
+ return v; if (typeof v === 'string')
1456
1516
  return Number(v); return v; }), zod_1.z.number().int())),
1457
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1458
- return undefined; if (typeof v === 'string')
1517
+ height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1518
+ return undefined; if (Array.isArray(v))
1519
+ return v; if (typeof v === 'string')
1459
1520
  return Number(v); return v; }), zod_1.z.number().int())),
1460
1521
  fill: zod_1.z.optional(zod_1.z.object({
1461
1522
  color: zod_1.z.optional(zod_1.z.string()),
1462
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1463
- return undefined; if (typeof v === 'string')
1523
+ opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1524
+ return undefined; if (Array.isArray(v))
1525
+ return v; if (typeof v === 'string')
1464
1526
  return Number(v); return v; }), zod_1.z.number()))
1465
1527
  })),
1466
1528
  stroke: zod_1.z.optional(zod_1.z.object({
1467
1529
  color: zod_1.z.optional(zod_1.z.string()),
1468
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1469
- return undefined; if (typeof v === 'string')
1530
+ width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1531
+ return undefined; if (Array.isArray(v))
1532
+ return v; if (typeof v === 'string')
1470
1533
  return Number(v); return v; }), zod_1.z.number()))
1471
1534
  })),
1472
1535
  rectangle: zod_1.z.optional(zod_1.z.object({
1473
- width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1474
- return undefined; if (typeof v === 'string')
1536
+ width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1537
+ return undefined; if (Array.isArray(v))
1538
+ return v; if (typeof v === 'string')
1475
1539
  return Number(v); return v; }), zod_1.z.number().int()),
1476
- height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1477
- return undefined; if (typeof v === 'string')
1540
+ height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1541
+ return undefined; if (Array.isArray(v))
1542
+ return v; if (typeof v === 'string')
1478
1543
  return Number(v); return v; }), zod_1.z.number().int()),
1479
- cornerRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1480
- return undefined; if (typeof v === 'string')
1544
+ cornerRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1545
+ return undefined; if (Array.isArray(v))
1546
+ return v; if (typeof v === 'string')
1481
1547
  return Number(v); return v; }), zod_1.z.number().int()))
1482
1548
  })),
1483
1549
  circle: zod_1.z.optional(zod_1.z.object({
1484
- radius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1485
- return undefined; if (typeof v === 'string')
1550
+ radius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1551
+ return undefined; if (Array.isArray(v))
1552
+ return v; if (typeof v === 'string')
1486
1553
  return Number(v); return v; }), zod_1.z.number().int())
1487
1554
  })),
1488
1555
  line: zod_1.z.optional(zod_1.z.object({
1489
- length: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1490
- return undefined; if (typeof v === 'string')
1556
+ length: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1557
+ return undefined; if (Array.isArray(v))
1558
+ return v; if (typeof v === 'string')
1491
1559
  return Number(v); return v; }), zod_1.z.number().int()),
1492
- thickness: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1493
- return undefined; if (typeof v === 'string')
1560
+ thickness: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1561
+ return undefined; if (Array.isArray(v))
1562
+ return v; if (typeof v === 'string')
1494
1563
  return Number(v); return v; }), zod_1.z.number().int())
1495
1564
  }))
1496
1565
  });
@@ -1499,11 +1568,13 @@ exports.shapeAssetSchema = exports.shapeassetShapeAssetSchema;
1499
1568
  * Set a custom size for a video or image in pixels. When using a custom size omit the `resolution` and `aspectRatio`. Custom sizes must be divisible by 2 based on the encoder specifications.
1500
1569
  */
1501
1570
  exports.sizeSizeSchema = zod_1.z.object({
1502
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1503
- return undefined; if (typeof v === 'string')
1571
+ width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1572
+ return undefined; if (Array.isArray(v))
1573
+ return v; if (typeof v === 'string')
1504
1574
  return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(4096))),
1505
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1506
- return undefined; if (typeof v === 'string')
1575
+ height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1576
+ return undefined; if (Array.isArray(v))
1577
+ return v; if (typeof v === 'string')
1507
1578
  return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(4096)))
1508
1579
  });
1509
1580
  exports.sizeSchema = exports.sizeSizeSchema;
@@ -1541,8 +1612,9 @@ exports.renditionRenditionSchema = zod_1.z.object({
1541
1612
  'hd',
1542
1613
  'fhd'
1543
1614
  ])),
1544
- quality: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1545
- return undefined; if (typeof v === 'string')
1615
+ quality: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1616
+ return undefined; if (Array.isArray(v))
1617
+ return v; if (typeof v === 'string')
1546
1618
  return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(100))),
1547
1619
  fps: zod_1.z.optional(zod_1.z.union([
1548
1620
  zod_1.z.literal(12),
@@ -1558,8 +1630,9 @@ exports.renditionRenditionSchema = zod_1.z.object({
1558
1630
  zod_1.z.literal(60)
1559
1631
  ])),
1560
1632
  speed: zod_1.z.optional(exports.speedSpeedSchema),
1561
- keyframeInterval: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1562
- return undefined; if (typeof v === 'string')
1633
+ keyframeInterval: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1634
+ return undefined; if (Array.isArray(v))
1635
+ return v; if (typeof v === 'string')
1563
1636
  return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(300))),
1564
1637
  fixOffset: zod_1.z.optional(zod_1.z.boolean()),
1565
1638
  fixRotation: zod_1.z.optional(zod_1.z.boolean()),
@@ -1589,21 +1662,26 @@ exports.renditionresponseattributesRenditionResponseAttributesSchema = zod_1.z.o
1589
1662
  'overwritten'
1590
1663
  ])),
1591
1664
  url: zod_1.z.optional(zod_1.z.string()),
1592
- executionTime: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1593
- return undefined; if (typeof v === 'string')
1665
+ executionTime: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1666
+ return undefined; if (Array.isArray(v))
1667
+ return v; if (typeof v === 'string')
1594
1668
  return Number(v); return v; }), zod_1.z.number())),
1595
1669
  transformation: zod_1.z.optional(exports.renditionRenditionSchema),
1596
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1597
- return undefined; if (typeof v === 'string')
1670
+ width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1671
+ return undefined; if (Array.isArray(v))
1672
+ return v; if (typeof v === 'string')
1598
1673
  return Number(v); return v; }), zod_1.z.number().int())),
1599
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1600
- return undefined; if (typeof v === 'string')
1674
+ height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1675
+ return undefined; if (Array.isArray(v))
1676
+ return v; if (typeof v === 'string')
1601
1677
  return Number(v); return v; }), zod_1.z.number().int())),
1602
- duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1603
- return undefined; if (typeof v === 'string')
1678
+ duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1679
+ return undefined; if (Array.isArray(v))
1680
+ return v; if (typeof v === 'string')
1604
1681
  return Number(v); return v; }), zod_1.z.number())),
1605
- fps: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1606
- return undefined; if (typeof v === 'string')
1682
+ fps: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1683
+ return undefined; if (Array.isArray(v))
1684
+ return v; if (typeof v === 'string')
1607
1685
  return Number(v); return v; }), zod_1.z.number()))
1608
1686
  });
1609
1687
  exports.renditionResponseAttributesSchema = exports.renditionresponseattributesRenditionResponseAttributesSchema;
@@ -1631,17 +1709,21 @@ exports.sourceresponseattributesSourceResponseAttributesSchema = zod_1.z.object(
1631
1709
  'overwritten'
1632
1710
  ])),
1633
1711
  outputs: zod_1.z.optional(exports.outputsresponseOutputsResponseSchema),
1634
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1635
- return undefined; if (typeof v === 'string')
1712
+ width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1713
+ return undefined; if (Array.isArray(v))
1714
+ return v; if (typeof v === 'string')
1636
1715
  return Number(v); return v; }), zod_1.z.number().int())),
1637
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1638
- return undefined; if (typeof v === 'string')
1716
+ height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1717
+ return undefined; if (Array.isArray(v))
1718
+ return v; if (typeof v === 'string')
1639
1719
  return Number(v); return v; }), zod_1.z.number().int())),
1640
- duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1641
- return undefined; if (typeof v === 'string')
1720
+ duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1721
+ return undefined; if (Array.isArray(v))
1722
+ return v; if (typeof v === 'string')
1642
1723
  return Number(v); return v; }), zod_1.z.number())),
1643
- fps: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1644
- return undefined; if (typeof v === 'string')
1724
+ fps: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1725
+ return undefined; if (Array.isArray(v))
1726
+ return v; if (typeof v === 'string')
1645
1727
  return Number(v); return v; }), zod_1.z.number())),
1646
1728
  created: zod_1.z.optional(zod_1.z.string()),
1647
1729
  updated: zod_1.z.optional(zod_1.z.string())
@@ -1691,8 +1773,9 @@ exports.soundtrackSoundtrackSchema = zod_1.z.object({
1691
1773
  'fadeOut',
1692
1774
  'fadeInFadeOut'
1693
1775
  ])),
1694
- volume: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1695
- return undefined; if (typeof v === 'string')
1776
+ volume: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1777
+ return undefined; if (Array.isArray(v))
1778
+ return v; if (typeof v === 'string')
1696
1779
  return Number(v); return v; }), zod_1.z.number()))
1697
1780
  });
1698
1781
  exports.soundtrackSchema = exports.soundtrackSoundtrackSchema;
@@ -1702,8 +1785,9 @@ exports.soundtrackSchema = exports.soundtrackSoundtrackSchema;
1702
1785
  *
1703
1786
  */
1704
1787
  exports.svgpropertiesSvgGradientStopSchema = zod_1.z.object({
1705
- offset: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1706
- return undefined; if (typeof v === 'string')
1788
+ offset: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1789
+ return undefined; if (Array.isArray(v))
1790
+ return v; if (typeof v === 'string')
1707
1791
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)),
1708
1792
  color: zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)
1709
1793
  });
@@ -1715,12 +1799,14 @@ exports.svgGradientStopSchema = exports.svgpropertiesSvgGradientStopSchema;
1715
1799
  */
1716
1800
  exports.svgpropertiesSvgLinearGradientFillSchema = zod_1.z.object({
1717
1801
  type: zod_1.z.enum(['linear']),
1718
- angle: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1719
- return undefined; if (typeof v === 'string')
1802
+ angle: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1803
+ return undefined; if (Array.isArray(v))
1804
+ return v; if (typeof v === 'string')
1720
1805
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(360))).default(0),
1721
1806
  stops: zod_1.z.array(exports.svgpropertiesSvgGradientStopSchema).min(2),
1722
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1723
- return undefined; if (typeof v === 'string')
1807
+ opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1808
+ return undefined; if (Array.isArray(v))
1809
+ return v; if (typeof v === 'string')
1724
1810
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1)
1725
1811
  });
1726
1812
  exports.svgLinearGradientFillSchema = exports.svgpropertiesSvgLinearGradientFillSchema;
@@ -1732,8 +1818,9 @@ exports.svgLinearGradientFillSchema = exports.svgpropertiesSvgLinearGradientFill
1732
1818
  exports.svgpropertiesSvgRadialGradientFillSchema = zod_1.z.object({
1733
1819
  type: zod_1.z.enum(['radial']),
1734
1820
  stops: zod_1.z.array(exports.svgpropertiesSvgGradientStopSchema).min(2),
1735
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1736
- return undefined; if (typeof v === 'string')
1821
+ opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1822
+ return undefined; if (Array.isArray(v))
1823
+ return v; if (typeof v === 'string')
1737
1824
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1)
1738
1825
  });
1739
1826
  exports.svgRadialGradientFillSchema = exports.svgpropertiesSvgRadialGradientFillSchema;
@@ -1742,18 +1829,22 @@ exports.svgRadialGradientFillSchema = exports.svgpropertiesSvgRadialGradientFill
1742
1829
  *
1743
1830
  */
1744
1831
  exports.svgpropertiesSvgShadowSchema = zod_1.z.object({
1745
- offsetX: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1746
- return undefined; if (typeof v === 'string')
1832
+ offsetX: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1833
+ return undefined; if (Array.isArray(v))
1834
+ return v; if (typeof v === 'string')
1747
1835
  return Number(v); return v; }), zod_1.z.number())).default(0),
1748
- offsetY: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1749
- return undefined; if (typeof v === 'string')
1836
+ offsetY: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1837
+ return undefined; if (Array.isArray(v))
1838
+ return v; if (typeof v === 'string')
1750
1839
  return Number(v); return v; }), zod_1.z.number())).default(0),
1751
- blur: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1752
- return undefined; if (typeof v === 'string')
1840
+ blur: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1841
+ return undefined; if (Array.isArray(v))
1842
+ return v; if (typeof v === 'string')
1753
1843
  return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1754
1844
  color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#000000'),
1755
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1756
- return undefined; if (typeof v === 'string')
1845
+ opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1846
+ return undefined; if (Array.isArray(v))
1847
+ return v; if (typeof v === 'string')
1757
1848
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(0.5)
1758
1849
  });
1759
1850
  exports.svgShadowSchema = exports.svgpropertiesSvgShadowSchema;
@@ -1763,8 +1854,9 @@ exports.svgShadowSchema = exports.svgpropertiesSvgShadowSchema;
1763
1854
  exports.svgpropertiesSvgSolidFillSchema = zod_1.z.object({
1764
1855
  type: zod_1.z.enum(['solid']),
1765
1856
  color: zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/).default('#000000'),
1766
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1767
- return undefined; if (typeof v === 'string')
1857
+ opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1858
+ return undefined; if (Array.isArray(v))
1859
+ return v; if (typeof v === 'string')
1768
1860
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1)
1769
1861
  });
1770
1862
  exports.svgSolidFillSchema = exports.svgpropertiesSvgSolidFillSchema;
@@ -1786,11 +1878,13 @@ exports.svgFillSchema = exports.svgpropertiesSvgFillSchema;
1786
1878
  */
1787
1879
  exports.svgpropertiesSvgStrokeSchema = zod_1.z.object({
1788
1880
  color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#000000'),
1789
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1790
- return undefined; if (typeof v === 'string')
1881
+ width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1882
+ return undefined; if (Array.isArray(v))
1883
+ return v; if (typeof v === 'string')
1791
1884
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(100))).default(1),
1792
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1793
- return undefined; if (typeof v === 'string')
1885
+ opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1886
+ return undefined; if (Array.isArray(v))
1887
+ return v; if (typeof v === 'string')
1794
1888
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1),
1795
1889
  lineCap: zod_1.z.optional(zod_1.z.enum([
1796
1890
  'butt',
@@ -1802,11 +1896,13 @@ exports.svgpropertiesSvgStrokeSchema = zod_1.z.object({
1802
1896
  'round',
1803
1897
  'bevel'
1804
1898
  ])),
1805
- dashArray: zod_1.z.optional(zod_1.z.array(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1806
- return undefined; if (typeof v === 'string')
1899
+ dashArray: zod_1.z.optional(zod_1.z.array(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1900
+ return undefined; if (Array.isArray(v))
1901
+ return v; if (typeof v === 'string')
1807
1902
  return Number(v); return v; }), zod_1.z.number().gte(0)))),
1808
- dashOffset: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1809
- return undefined; if (typeof v === 'string')
1903
+ dashOffset: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1904
+ return undefined; if (Array.isArray(v))
1905
+ return v; if (typeof v === 'string')
1810
1906
  return Number(v); return v; }), zod_1.z.number())).default(0)
1811
1907
  });
1812
1908
  exports.svgStrokeSchema = exports.svgpropertiesSvgStrokeSchema;
@@ -1815,23 +1911,29 @@ exports.svgStrokeSchema = exports.svgpropertiesSvgStrokeSchema;
1815
1911
  *
1816
1912
  */
1817
1913
  exports.svgpropertiesSvgTransformSchema = zod_1.z.object({
1818
- x: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1819
- return undefined; if (typeof v === 'string')
1914
+ x: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1915
+ return undefined; if (Array.isArray(v))
1916
+ return v; if (typeof v === 'string')
1820
1917
  return Number(v); return v; }), zod_1.z.number())).default(0),
1821
- y: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1822
- return undefined; if (typeof v === 'string')
1918
+ y: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1919
+ return undefined; if (Array.isArray(v))
1920
+ return v; if (typeof v === 'string')
1823
1921
  return Number(v); return v; }), zod_1.z.number())).default(0),
1824
- rotation: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1825
- return undefined; if (typeof v === 'string')
1922
+ rotation: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1923
+ return undefined; if (Array.isArray(v))
1924
+ return v; if (typeof v === 'string')
1826
1925
  return Number(v); return v; }), zod_1.z.number().gte(-360).lte(360))).default(0),
1827
- scale: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1828
- return undefined; if (typeof v === 'string')
1926
+ scale: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1927
+ return undefined; if (Array.isArray(v))
1928
+ return v; if (typeof v === 'string')
1829
1929
  return Number(v); return v; }), zod_1.z.number().gte(0.01).lte(100))).default(1),
1830
- originX: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1831
- return undefined; if (typeof v === 'string')
1930
+ originX: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1931
+ return undefined; if (Array.isArray(v))
1932
+ return v; if (typeof v === 'string')
1832
1933
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(0.5),
1833
- originY: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1834
- return undefined; if (typeof v === 'string')
1934
+ originY: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1935
+ return undefined; if (Array.isArray(v))
1936
+ return v; if (typeof v === 'string')
1835
1937
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(0.5)
1836
1938
  });
1837
1939
  exports.svgTransformSchema = exports.svgpropertiesSvgTransformSchema;
@@ -1842,17 +1944,21 @@ exports.svgTransformSchema = exports.svgpropertiesSvgTransformSchema;
1842
1944
  */
1843
1945
  exports.svgshapesSvgArrowShapeSchema = zod_1.z.object({
1844
1946
  type: zod_1.z.enum(['arrow']),
1845
- length: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1846
- return undefined; if (typeof v === 'string')
1947
+ length: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1948
+ return undefined; if (Array.isArray(v))
1949
+ return v; if (typeof v === 'string')
1847
1950
  return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096)),
1848
- headWidth: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1849
- return undefined; if (typeof v === 'string')
1951
+ headWidth: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1952
+ return undefined; if (Array.isArray(v))
1953
+ return v; if (typeof v === 'string')
1850
1954
  return Number(v); return v; }), zod_1.z.number().gte(1).lte(1000)),
1851
- headLength: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1852
- return undefined; if (typeof v === 'string')
1955
+ headLength: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1956
+ return undefined; if (Array.isArray(v))
1957
+ return v; if (typeof v === 'string')
1853
1958
  return Number(v); return v; }), zod_1.z.number().gte(1).lte(1000)),
1854
- shaftWidth: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1855
- return undefined; if (typeof v === 'string')
1959
+ shaftWidth: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1960
+ return undefined; if (Array.isArray(v))
1961
+ return v; if (typeof v === 'string')
1856
1962
  return Number(v); return v; }), zod_1.z.number().gte(1).lte(1000))
1857
1963
  });
1858
1964
  exports.svgArrowShapeSchema = exports.svgshapesSvgArrowShapeSchema;
@@ -1863,8 +1969,9 @@ exports.svgArrowShapeSchema = exports.svgshapesSvgArrowShapeSchema;
1863
1969
  */
1864
1970
  exports.svgshapesSvgCircleShapeSchema = zod_1.z.object({
1865
1971
  type: zod_1.z.enum(['circle']),
1866
- radius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1867
- return undefined; if (typeof v === 'string')
1972
+ radius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1973
+ return undefined; if (Array.isArray(v))
1974
+ return v; if (typeof v === 'string')
1868
1975
  return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048))
1869
1976
  });
1870
1977
  exports.svgCircleShapeSchema = exports.svgshapesSvgCircleShapeSchema;
@@ -1875,14 +1982,17 @@ exports.svgCircleShapeSchema = exports.svgshapesSvgCircleShapeSchema;
1875
1982
  */
1876
1983
  exports.svgshapesSvgCrossShapeSchema = zod_1.z.object({
1877
1984
  type: zod_1.z.enum(['cross']),
1878
- width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1879
- return undefined; if (typeof v === 'string')
1985
+ width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1986
+ return undefined; if (Array.isArray(v))
1987
+ return v; if (typeof v === 'string')
1880
1988
  return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096)),
1881
- height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1882
- return undefined; if (typeof v === 'string')
1989
+ height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1990
+ return undefined; if (Array.isArray(v))
1991
+ return v; if (typeof v === 'string')
1883
1992
  return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096)),
1884
- thickness: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1885
- return undefined; if (typeof v === 'string')
1993
+ thickness: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1994
+ return undefined; if (Array.isArray(v))
1995
+ return v; if (typeof v === 'string')
1886
1996
  return Number(v); return v; }), zod_1.z.number().gte(1).lte(500))
1887
1997
  });
1888
1998
  exports.svgCrossShapeSchema = exports.svgshapesSvgCrossShapeSchema;
@@ -1893,11 +2003,13 @@ exports.svgCrossShapeSchema = exports.svgshapesSvgCrossShapeSchema;
1893
2003
  */
1894
2004
  exports.svgshapesSvgEllipseShapeSchema = zod_1.z.object({
1895
2005
  type: zod_1.z.enum(['ellipse']),
1896
- radiusX: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1897
- return undefined; if (typeof v === 'string')
2006
+ radiusX: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2007
+ return undefined; if (Array.isArray(v))
2008
+ return v; if (typeof v === 'string')
1898
2009
  return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048)),
1899
- radiusY: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1900
- return undefined; if (typeof v === 'string')
2010
+ radiusY: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2011
+ return undefined; if (Array.isArray(v))
2012
+ return v; if (typeof v === 'string')
1901
2013
  return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048))
1902
2014
  });
1903
2015
  exports.svgEllipseShapeSchema = exports.svgshapesSvgEllipseShapeSchema;
@@ -1908,8 +2020,9 @@ exports.svgEllipseShapeSchema = exports.svgshapesSvgEllipseShapeSchema;
1908
2020
  */
1909
2021
  exports.svgshapesSvgHeartShapeSchema = zod_1.z.object({
1910
2022
  type: zod_1.z.enum(['heart']),
1911
- size: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1912
- return undefined; if (typeof v === 'string')
2023
+ size: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2024
+ return undefined; if (Array.isArray(v))
2025
+ return v; if (typeof v === 'string')
1913
2026
  return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096))
1914
2027
  });
1915
2028
  exports.svgHeartShapeSchema = exports.svgshapesSvgHeartShapeSchema;
@@ -1920,11 +2033,13 @@ exports.svgHeartShapeSchema = exports.svgshapesSvgHeartShapeSchema;
1920
2033
  */
1921
2034
  exports.svgshapesSvgLineShapeSchema = zod_1.z.object({
1922
2035
  type: zod_1.z.enum(['line']),
1923
- length: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1924
- return undefined; if (typeof v === 'string')
2036
+ length: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2037
+ return undefined; if (Array.isArray(v))
2038
+ return v; if (typeof v === 'string')
1925
2039
  return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096)),
1926
- thickness: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1927
- return undefined; if (typeof v === 'string')
2040
+ thickness: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2041
+ return undefined; if (Array.isArray(v))
2042
+ return v; if (typeof v === 'string')
1928
2043
  return Number(v); return v; }), zod_1.z.number().gte(1).lte(500))
1929
2044
  });
1930
2045
  exports.svgLineShapeSchema = exports.svgshapesSvgLineShapeSchema;
@@ -1958,11 +2073,13 @@ exports.svgPathShapeSchema = exports.svgshapesSvgPathShapeSchema;
1958
2073
  */
1959
2074
  exports.svgshapesSvgPolygonShapeSchema = zod_1.z.object({
1960
2075
  type: zod_1.z.enum(['polygon']),
1961
- sides: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1962
- return undefined; if (typeof v === 'string')
2076
+ sides: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2077
+ return undefined; if (Array.isArray(v))
2078
+ return v; if (typeof v === 'string')
1963
2079
  return Number(v); return v; }), zod_1.z.number().int().gte(3).lte(100)),
1964
- radius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1965
- return undefined; if (typeof v === 'string')
2080
+ radius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2081
+ return undefined; if (Array.isArray(v))
2082
+ return v; if (typeof v === 'string')
1966
2083
  return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048))
1967
2084
  });
1968
2085
  exports.svgPolygonShapeSchema = exports.svgshapesSvgPolygonShapeSchema;
@@ -1973,14 +2090,17 @@ exports.svgPolygonShapeSchema = exports.svgshapesSvgPolygonShapeSchema;
1973
2090
  */
1974
2091
  exports.svgshapesSvgRectangleShapeSchema = zod_1.z.object({
1975
2092
  type: zod_1.z.enum(['rectangle']),
1976
- width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1977
- return undefined; if (typeof v === 'string')
2093
+ width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2094
+ return undefined; if (Array.isArray(v))
2095
+ return v; if (typeof v === 'string')
1978
2096
  return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096)),
1979
- height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1980
- return undefined; if (typeof v === 'string')
2097
+ height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2098
+ return undefined; if (Array.isArray(v))
2099
+ return v; if (typeof v === 'string')
1981
2100
  return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096)),
1982
- cornerRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1983
- return undefined; if (typeof v === 'string')
2101
+ cornerRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2102
+ return undefined; if (Array.isArray(v))
2103
+ return v; if (typeof v === 'string')
1984
2104
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(2048))).default(0)
1985
2105
  });
1986
2106
  exports.svgRectangleShapeSchema = exports.svgshapesSvgRectangleShapeSchema;
@@ -1991,11 +2111,13 @@ exports.svgRectangleShapeSchema = exports.svgshapesSvgRectangleShapeSchema;
1991
2111
  */
1992
2112
  exports.svgshapesSvgRingShapeSchema = zod_1.z.object({
1993
2113
  type: zod_1.z.enum(['ring']),
1994
- outerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1995
- return undefined; if (typeof v === 'string')
2114
+ outerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2115
+ return undefined; if (Array.isArray(v))
2116
+ return v; if (typeof v === 'string')
1996
2117
  return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048)),
1997
- innerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1998
- return undefined; if (typeof v === 'string')
2118
+ innerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2119
+ return undefined; if (Array.isArray(v))
2120
+ return v; if (typeof v === 'string')
1999
2121
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(2048))
2000
2122
  });
2001
2123
  exports.svgRingShapeSchema = exports.svgshapesSvgRingShapeSchema;
@@ -2007,14 +2129,17 @@ exports.svgRingShapeSchema = exports.svgshapesSvgRingShapeSchema;
2007
2129
  */
2008
2130
  exports.svgshapesSvgStarShapeSchema = zod_1.z.object({
2009
2131
  type: zod_1.z.enum(['star']),
2010
- points: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2011
- return undefined; if (typeof v === 'string')
2132
+ points: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2133
+ return undefined; if (Array.isArray(v))
2134
+ return v; if (typeof v === 'string')
2012
2135
  return Number(v); return v; }), zod_1.z.number().int().gte(3).lte(100)),
2013
- outerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2014
- return undefined; if (typeof v === 'string')
2136
+ outerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2137
+ return undefined; if (Array.isArray(v))
2138
+ return v; if (typeof v === 'string')
2015
2139
  return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048)),
2016
- innerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2017
- return undefined; if (typeof v === 'string')
2140
+ innerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2141
+ return undefined; if (Array.isArray(v))
2142
+ return v; if (typeof v === 'string')
2018
2143
  return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048))
2019
2144
  });
2020
2145
  exports.svgStarShapeSchema = exports.svgshapesSvgStarShapeSchema;
@@ -2089,20 +2214,26 @@ exports.svgassetSvgAssetSchema = zod_1.z.object({
2089
2214
  stroke: zod_1.z.optional(exports.svgpropertiesSvgStrokeSchema),
2090
2215
  shadow: zod_1.z.optional(exports.svgpropertiesSvgShadowSchema),
2091
2216
  transform: zod_1.z.optional(exports.svgpropertiesSvgTransformSchema),
2092
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2093
- return undefined; if (typeof v === 'string')
2094
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2095
- return undefined; if (typeof v === 'string')
2217
+ opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2218
+ return undefined; if (Array.isArray(v))
2219
+ return v; if (typeof v === 'string')
2220
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2221
+ return undefined; if (Array.isArray(v))
2222
+ return v; if (typeof v === 'string')
2096
2223
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(1),
2097
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2098
- return undefined; if (typeof v === 'string')
2099
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2100
- return undefined; if (typeof v === 'string')
2224
+ width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2225
+ return undefined; if (Array.isArray(v))
2226
+ return v; if (typeof v === 'string')
2227
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2228
+ return undefined; if (Array.isArray(v))
2229
+ return v; if (typeof v === 'string')
2101
2230
  return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(4096)))),
2102
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2103
- return undefined; if (typeof v === 'string')
2104
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2105
- return undefined; if (typeof v === 'string')
2231
+ height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2232
+ return undefined; if (Array.isArray(v))
2233
+ return v; if (typeof v === 'string')
2234
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2235
+ return undefined; if (Array.isArray(v))
2236
+ return v; if (typeof v === 'string')
2106
2237
  return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(4096)))),
2107
2238
  }).superRefine((data, ctx) => {
2108
2239
  const hasShape = data.shape !== undefined;
@@ -2164,8 +2295,9 @@ exports.textAlignmentSchema = exports.textpropertiesTextAlignmentSchema;
2164
2295
  */
2165
2296
  exports.textpropertiesTextAnimationSchema = zod_1.z.object({
2166
2297
  preset: zod_1.z.enum(['typewriter']),
2167
- duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2168
- return undefined; if (typeof v === 'string')
2298
+ duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2299
+ return undefined; if (Array.isArray(v))
2300
+ return v; if (typeof v === 'string')
2169
2301
  return Number(v); return v; }), zod_1.z.number().gte(0.1).lte(30)))
2170
2302
  });
2171
2303
  /**
@@ -2173,14 +2305,17 @@ exports.textpropertiesTextAnimationSchema = zod_1.z.object({
2173
2305
  */
2174
2306
  exports.textpropertiesTextBackgroundSchema = zod_1.z.object({
2175
2307
  color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
2176
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2177
- return undefined; if (typeof v === 'string')
2308
+ opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2309
+ return undefined; if (Array.isArray(v))
2310
+ return v; if (typeof v === 'string')
2178
2311
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))),
2179
- padding: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2180
- return undefined; if (typeof v === 'string')
2312
+ padding: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2313
+ return undefined; if (Array.isArray(v))
2314
+ return v; if (typeof v === 'string')
2181
2315
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(100))),
2182
- borderRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2183
- return undefined; if (typeof v === 'string')
2316
+ borderRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2317
+ return undefined; if (Array.isArray(v))
2318
+ return v; if (typeof v === 'string')
2184
2319
  return Number(v); return v; }), zod_1.z.number().gte(0)))
2185
2320
  });
2186
2321
  exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema;
@@ -2190,17 +2325,21 @@ exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema;
2190
2325
  exports.textpropertiesTextFontSchema = zod_1.z.object({
2191
2326
  family: zod_1.z.optional(zod_1.z.string()),
2192
2327
  color: zod_1.z.optional(zod_1.z.string()),
2193
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2194
- return undefined; if (typeof v === 'string')
2328
+ opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2329
+ return undefined; if (Array.isArray(v))
2330
+ return v; if (typeof v === 'string')
2195
2331
  return Number(v); return v; }), zod_1.z.number())),
2196
- size: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2197
- return undefined; if (typeof v === 'string')
2332
+ size: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2333
+ return undefined; if (Array.isArray(v))
2334
+ return v; if (typeof v === 'string')
2198
2335
  return Number(v); return v; }), zod_1.z.number().int())),
2199
- weight: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2200
- return undefined; if (typeof v === 'string')
2336
+ weight: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2337
+ return undefined; if (Array.isArray(v))
2338
+ return v; if (typeof v === 'string')
2201
2339
  return Number(v); return v; }), zod_1.z.number().int())),
2202
- lineHeight: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2203
- return undefined; if (typeof v === 'string')
2340
+ lineHeight: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2341
+ return undefined; if (Array.isArray(v))
2342
+ return v; if (typeof v === 'string')
2204
2343
  return Number(v); return v; }), zod_1.z.number()))
2205
2344
  });
2206
2345
  exports.textFontSchema = exports.textpropertiesTextFontSchema;
@@ -2208,8 +2347,9 @@ exports.textFontSchema = exports.textpropertiesTextFontSchema;
2208
2347
  * Text stroke (outline) properties.
2209
2348
  */
2210
2349
  exports.textpropertiesTextStrokeSchema = zod_1.z.object({
2211
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2212
- return undefined; if (typeof v === 'string')
2350
+ width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2351
+ return undefined; if (Array.isArray(v))
2352
+ return v; if (typeof v === 'string')
2213
2353
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(10))),
2214
2354
  color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/))
2215
2355
  });
@@ -2221,11 +2361,13 @@ exports.textpropertiesTextStrokeSchema = zod_1.z.object({
2221
2361
  exports.textassetTextAssetSchema = zod_1.z.object({
2222
2362
  type: zod_1.z.enum(['text']),
2223
2363
  text: zod_1.z.string(),
2224
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2225
- return undefined; if (typeof v === 'string')
2364
+ width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2365
+ return undefined; if (Array.isArray(v))
2366
+ return v; if (typeof v === 'string')
2226
2367
  return Number(v); return v; }), zod_1.z.number().int())),
2227
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2228
- return undefined; if (typeof v === 'string')
2368
+ height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2369
+ return undefined; if (Array.isArray(v))
2370
+ return v; if (typeof v === 'string')
2229
2371
  return Number(v); return v; }), zod_1.z.number().int())),
2230
2372
  font: zod_1.z.optional(exports.textpropertiesTextFontSchema),
2231
2373
  background: zod_1.z.optional(exports.textpropertiesTextBackgroundSchema),
@@ -2241,11 +2383,13 @@ exports.textAssetSchema = exports.textassetTextAssetSchema;
2241
2383
  exports.texttoimageassetTextToImageAssetSchema = zod_1.z.object({
2242
2384
  type: zod_1.z.enum(['text-to-image']),
2243
2385
  prompt: zod_1.z.string(),
2244
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2245
- return undefined; if (typeof v === 'string')
2386
+ width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2387
+ return undefined; if (Array.isArray(v))
2388
+ return v; if (typeof v === 'string')
2246
2389
  return Number(v); return v; }), zod_1.z.number().int())),
2247
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2248
- return undefined; if (typeof v === 'string')
2390
+ height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2391
+ return undefined; if (Array.isArray(v))
2392
+ return v; if (typeof v === 'string')
2249
2393
  return Number(v); return v; }), zod_1.z.number().int())),
2250
2394
  crop: zod_1.z.optional(exports.cropCropSchema)
2251
2395
  });
@@ -2254,11 +2398,13 @@ exports.textToImageAssetSchema = exports.texttoimageassetTextToImageAssetSchema;
2254
2398
  * Generate a thumbnail image for the video or image at a specific point from the timeline.
2255
2399
  */
2256
2400
  exports.thumbnailThumbnailSchema = zod_1.z.object({
2257
- capture: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2258
- return undefined; if (typeof v === 'string')
2401
+ capture: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2402
+ return undefined; if (Array.isArray(v))
2403
+ return v; if (typeof v === 'string')
2259
2404
  return Number(v); return v; }), zod_1.z.number()),
2260
- scale: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2261
- return undefined; if (typeof v === 'string')
2405
+ scale: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2406
+ return undefined; if (Array.isArray(v))
2407
+ return v; if (typeof v === 'string')
2262
2408
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))
2263
2409
  });
2264
2410
  exports.thumbnailSchema = exports.thumbnailThumbnailSchema;
@@ -2473,11 +2619,13 @@ exports.transitionSchema = exports.transitionTransitionSchema;
2473
2619
  exports.tweenTweenSchema = zod_1.z.object({
2474
2620
  from: zod_1.z.optional(zod_1.z.unknown()),
2475
2621
  to: zod_1.z.optional(zod_1.z.unknown()),
2476
- start: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2477
- return undefined; if (typeof v === 'string')
2622
+ start: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2623
+ return undefined; if (Array.isArray(v))
2624
+ return v; if (typeof v === 'string')
2478
2625
  return Number(v); return v; }), zod_1.z.number())),
2479
- length: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2480
- return undefined; if (typeof v === 'string')
2626
+ length: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2627
+ return undefined; if (Array.isArray(v))
2628
+ return v; if (typeof v === 'string')
2481
2629
  return Number(v); return v; }), zod_1.z.number())),
2482
2630
  interpolation: zod_1.z.optional(zod_1.z.enum([
2483
2631
  'linear',
@@ -2522,17 +2670,20 @@ exports.tweenSchema = exports.tweenTweenSchema;
2522
2670
  exports.audioassetAudioAssetSchema = zod_1.z.object({
2523
2671
  type: zod_1.z.enum(['audio']),
2524
2672
  src: zod_1.z.string(),
2525
- trim: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2526
- return undefined; if (typeof v === 'string')
2673
+ trim: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2674
+ return undefined; if (Array.isArray(v))
2675
+ return v; if (typeof v === 'string')
2527
2676
  return Number(v); return v; }), zod_1.z.number())),
2528
2677
  volume: zod_1.z.optional(zod_1.z.union([
2529
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2530
- return undefined; if (typeof v === 'string')
2678
+ zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2679
+ return undefined; if (Array.isArray(v))
2680
+ return v; if (typeof v === 'string')
2531
2681
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)),
2532
2682
  zod_1.z.array(exports.tweenTweenSchema)
2533
2683
  ])),
2534
- speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2535
- return undefined; if (typeof v === 'string')
2684
+ speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2685
+ return undefined; if (Array.isArray(v))
2686
+ return v; if (typeof v === 'string')
2536
2687
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(10))),
2537
2688
  effect: zod_1.z.optional(zod_1.z.enum([
2538
2689
  'none',
@@ -2547,14 +2698,16 @@ exports.audioAssetSchema = exports.audioassetAudioAssetSchema;
2547
2698
  */
2548
2699
  exports.offsetOffsetSchema = zod_1.z.object({
2549
2700
  x: zod_1.z.optional(zod_1.z.union([
2550
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2551
- return undefined; if (typeof v === 'string')
2701
+ zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2702
+ return undefined; if (Array.isArray(v))
2703
+ return v; if (typeof v === 'string')
2552
2704
  return Number(v); return v; }), zod_1.z.number().gte(-10).lte(10)),
2553
2705
  zod_1.z.array(exports.tweenTweenSchema)
2554
2706
  ])),
2555
2707
  y: zod_1.z.optional(zod_1.z.union([
2556
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2557
- return undefined; if (typeof v === 'string')
2708
+ zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2709
+ return undefined; if (Array.isArray(v))
2710
+ return v; if (typeof v === 'string')
2558
2711
  return Number(v); return v; }), zod_1.z.number().gte(-10).lte(10)),
2559
2712
  zod_1.z.array(exports.tweenTweenSchema)
2560
2713
  ]))
@@ -2565,8 +2718,9 @@ exports.offsetSchema = exports.offsetOffsetSchema;
2565
2718
  */
2566
2719
  exports.rotatetransformationRotateTransformationSchema = zod_1.z.object({
2567
2720
  angle: zod_1.z.optional(zod_1.z.union([
2568
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2569
- return undefined; if (typeof v === 'string')
2721
+ zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2722
+ return undefined; if (Array.isArray(v))
2723
+ return v; if (typeof v === 'string')
2570
2724
  return Number(v); return v; }), zod_1.z.number().gte(-360).lte(360)),
2571
2725
  zod_1.z.array(exports.tweenTweenSchema)
2572
2726
  ]))
@@ -2577,14 +2731,16 @@ exports.rotateTransformationSchema = exports.rotatetransformationRotateTransform
2577
2731
  */
2578
2732
  exports.skewtransformationSkewTransformationSchema = zod_1.z.object({
2579
2733
  x: zod_1.z.optional(zod_1.z.union([
2580
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2581
- return undefined; if (typeof v === 'string')
2734
+ zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2735
+ return undefined; if (Array.isArray(v))
2736
+ return v; if (typeof v === 'string')
2582
2737
  return Number(v); return v; }), zod_1.z.number().gte(-100).lte(100)),
2583
2738
  zod_1.z.array(exports.tweenTweenSchema)
2584
2739
  ])),
2585
2740
  y: zod_1.z.optional(zod_1.z.union([
2586
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2587
- return undefined; if (typeof v === 'string')
2741
+ zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2742
+ return undefined; if (Array.isArray(v))
2743
+ return v; if (typeof v === 'string')
2588
2744
  return Number(v); return v; }), zod_1.z.number().gte(-100).lte(100)),
2589
2745
  zod_1.z.array(exports.tweenTweenSchema)
2590
2746
  ]))
@@ -2654,12 +2810,14 @@ exports.videoassetVideoAssetSchema = zod_1.z.object({
2654
2810
  type: zod_1.z.enum(['video']),
2655
2811
  src: zod_1.z.string(),
2656
2812
  transcode: zod_1.z.optional(zod_1.z.boolean()),
2657
- trim: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2658
- return undefined; if (typeof v === 'string')
2813
+ trim: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2814
+ return undefined; if (Array.isArray(v))
2815
+ return v; if (typeof v === 'string')
2659
2816
  return Number(v); return v; }), zod_1.z.number())),
2660
2817
  volume: zod_1.z.optional(zod_1.z.union([
2661
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2662
- return undefined; if (typeof v === 'string')
2818
+ zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2819
+ return undefined; if (Array.isArray(v))
2820
+ return v; if (typeof v === 'string')
2663
2821
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)),
2664
2822
  zod_1.z.array(exports.tweenTweenSchema)
2665
2823
  ])),
@@ -2669,8 +2827,9 @@ exports.videoassetVideoAssetSchema = zod_1.z.object({
2669
2827
  'fadeOut',
2670
2828
  'fadeInFadeOut'
2671
2829
  ])),
2672
- speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2673
- return undefined; if (typeof v === 'string')
2830
+ speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2831
+ return undefined; if (Array.isArray(v))
2832
+ return v; if (typeof v === 'string')
2674
2833
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(10))),
2675
2834
  crop: zod_1.z.optional(exports.cropCropSchema),
2676
2835
  chromaKey: zod_1.z.optional(exports.chromakeyChromaKeySchema)
@@ -2701,14 +2860,16 @@ exports.assetSchema = exports.assetAssetSchema;
2701
2860
  exports.clipClipSchema = zod_1.z.object({
2702
2861
  asset: exports.assetAssetSchema,
2703
2862
  start: zod_1.z.union([
2704
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2705
- return undefined; if (typeof v === 'string')
2863
+ zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2864
+ return undefined; if (Array.isArray(v))
2865
+ return v; if (typeof v === 'string')
2706
2866
  return Number(v); return v; }), zod_1.z.number()),
2707
2867
  zod_1.z.enum(['auto'])
2708
2868
  ]),
2709
2869
  length: zod_1.z.union([
2710
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2711
- return undefined; if (typeof v === 'string')
2870
+ zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2871
+ return undefined; if (Array.isArray(v))
2872
+ return v; if (typeof v === 'string')
2712
2873
  return Number(v); return v; }), zod_1.z.number()),
2713
2874
  zod_1.z.literal('auto'),
2714
2875
  zod_1.z.literal('end')
@@ -2719,14 +2880,20 @@ exports.clipClipSchema = zod_1.z.object({
2719
2880
  'crop',
2720
2881
  'none'
2721
2882
  ])),
2722
- scale: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2723
- return undefined; if (typeof v === 'string')
2724
- return Number(v); return v; }), zod_1.z.number())),
2725
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2726
- return undefined; if (typeof v === 'string')
2883
+ scale: zod_1.z.optional(zod_1.z.union([
2884
+ zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2885
+ return undefined; if (Array.isArray(v))
2886
+ return v; if (typeof v === 'string')
2887
+ return Number(v); return v; }), zod_1.z.number()),
2888
+ zod_1.z.array(exports.tweenTweenSchema)
2889
+ ])),
2890
+ width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2891
+ return undefined; if (Array.isArray(v))
2892
+ return v; if (typeof v === 'string')
2727
2893
  return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(3840))),
2728
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2729
- return undefined; if (typeof v === 'string')
2894
+ height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2895
+ return undefined; if (Array.isArray(v))
2896
+ return v; if (typeof v === 'string')
2730
2897
  return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(2160))),
2731
2898
  position: zod_1.z.optional(zod_1.z.enum([
2732
2899
  'top',
@@ -2773,8 +2940,9 @@ exports.clipClipSchema = zod_1.z.object({
2773
2940
  'negative'
2774
2941
  ])),
2775
2942
  opacity: zod_1.z.optional(zod_1.z.union([
2776
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2777
- return undefined; if (typeof v === 'string')
2943
+ zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2944
+ return undefined; if (Array.isArray(v))
2945
+ return v; if (typeof v === 'string')
2778
2946
  return Number(v); return v; }), zod_1.z.number()),
2779
2947
  zod_1.z.array(exports.tweenTweenSchema)
2780
2948
  ])),
@@ -2828,11 +2996,13 @@ exports.renderresponsedataRenderResponseDataSchema = zod_1.z.object({
2828
2996
  'failed'
2829
2997
  ]),
2830
2998
  error: zod_1.z.optional(zod_1.z.string()),
2831
- duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2832
- return undefined; if (typeof v === 'string')
2999
+ duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3000
+ return undefined; if (Array.isArray(v))
3001
+ return v; if (typeof v === 'string')
2833
3002
  return Number(v); return v; }), zod_1.z.number())),
2834
- renderTime: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2835
- return undefined; if (typeof v === 'string')
3003
+ renderTime: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3004
+ return undefined; if (Array.isArray(v))
3005
+ return v; if (typeof v === 'string')
2836
3006
  return Number(v); return v; }), zod_1.z.number())),
2837
3007
  url: zod_1.z.optional(zod_1.z.string()),
2838
3008
  poster: zod_1.z.optional(zod_1.z.union([