@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.
@@ -21,14 +21,17 @@ export const uploadRootSchema = z.unknown();
21
21
  */
22
22
  export const captionpropertiesCaptionBackgroundSchema = z.object({
23
23
  color: z.optional(z.string()),
24
- opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
25
- return undefined; if (typeof v === 'string')
24
+ opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
25
+ return undefined; if (Array.isArray(v))
26
+ return v; if (typeof v === 'string')
26
27
  return Number(v); return v; }), z.number())),
27
- padding: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
28
- return undefined; if (typeof v === 'string')
28
+ padding: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
29
+ return undefined; if (Array.isArray(v))
30
+ return v; if (typeof v === 'string')
29
31
  return Number(v); return v; }), z.number().int())),
30
- borderRadius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
31
- return undefined; if (typeof v === 'string')
32
+ borderRadius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
33
+ return undefined; if (Array.isArray(v))
34
+ return v; if (typeof v === 'string')
32
35
  return Number(v); return v; }), z.number().int()))
33
36
  });
34
37
  export const captionBackgroundSchema = captionpropertiesCaptionBackgroundSchema;
@@ -38,18 +41,22 @@ export const captionBackgroundSchema = captionpropertiesCaptionBackgroundSchema;
38
41
  export const captionpropertiesCaptionFontSchema = z.object({
39
42
  family: z.optional(z.string()),
40
43
  color: z.optional(z.string()),
41
- opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
42
- return undefined; if (typeof v === 'string')
44
+ opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
45
+ return undefined; if (Array.isArray(v))
46
+ return v; if (typeof v === 'string')
43
47
  return Number(v); return v; }), z.number())),
44
- size: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
45
- return undefined; if (typeof v === 'string')
48
+ size: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
49
+ return undefined; if (Array.isArray(v))
50
+ return v; if (typeof v === 'string')
46
51
  return Number(v); return v; }), z.number().int())),
47
- lineHeight: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
48
- return undefined; if (typeof v === 'string')
52
+ lineHeight: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
53
+ return undefined; if (Array.isArray(v))
54
+ return v; if (typeof v === 'string')
49
55
  return Number(v); return v; }), z.number())),
50
56
  stroke: z.optional(z.string()),
51
- strokeWidth: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
52
- return undefined; if (typeof v === 'string')
57
+ strokeWidth: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
58
+ return undefined; if (Array.isArray(v))
59
+ return v; if (typeof v === 'string')
53
60
  return Number(v); return v; }), z.number()))
54
61
  });
55
62
  export const captionFontSchema = captionpropertiesCaptionFontSchema;
@@ -57,14 +64,17 @@ export const captionFontSchema = captionpropertiesCaptionFontSchema;
57
64
  * The margin properties for captions. Margins are used to position the caption text and background on the screen.
58
65
  */
59
66
  export const captionpropertiesCaptionMarginSchema = z.object({
60
- top: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
61
- return undefined; if (typeof v === 'string')
67
+ top: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
68
+ return undefined; if (Array.isArray(v))
69
+ return v; if (typeof v === 'string')
62
70
  return Number(v); return v; }), z.number())),
63
- left: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
64
- return undefined; if (typeof v === 'string')
71
+ left: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
72
+ return undefined; if (Array.isArray(v))
73
+ return v; if (typeof v === 'string')
65
74
  return Number(v); return v; }), z.number())),
66
- right: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
67
- return undefined; if (typeof v === 'string')
75
+ right: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
76
+ return undefined; if (Array.isArray(v))
77
+ return v; if (typeof v === 'string')
68
78
  return Number(v); return v; }), z.number()))
69
79
  });
70
80
  export const captionMarginSchema = captionpropertiesCaptionMarginSchema;
@@ -86,11 +96,13 @@ export const captionassetCaptionAssetSchema = z.object({
86
96
  font: z.optional(captionpropertiesCaptionFontSchema),
87
97
  background: z.optional(captionpropertiesCaptionBackgroundSchema),
88
98
  margin: z.optional(captionpropertiesCaptionMarginSchema),
89
- trim: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
90
- return undefined; if (typeof v === 'string')
99
+ trim: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
100
+ return undefined; if (Array.isArray(v))
101
+ return v; if (typeof v === 'string')
91
102
  return Number(v); return v; }), z.number())),
92
- speed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
93
- return undefined; if (typeof v === 'string')
103
+ speed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
104
+ return undefined; if (Array.isArray(v))
105
+ return v; if (typeof v === 'string')
94
106
  return Number(v); return v; }), z.number().gte(0).lte(10)))
95
107
  });
96
108
  export const captionAssetSchema = captionassetCaptionAssetSchema;
@@ -99,11 +111,13 @@ export const captionAssetSchema = captionassetCaptionAssetSchema;
99
111
  */
100
112
  export const chromakeyChromaKeySchema = z.object({
101
113
  color: z.optional(z.string()),
102
- threshold: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
103
- return undefined; if (typeof v === 'string')
114
+ threshold: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
115
+ return undefined; if (Array.isArray(v))
116
+ return v; if (typeof v === 'string')
104
117
  return Number(v); return v; }), z.number().int().gte(0).lte(250))),
105
- halo: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
106
- return undefined; if (typeof v === 'string')
118
+ halo: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
119
+ return undefined; if (Array.isArray(v))
120
+ return v; if (typeof v === 'string')
107
121
  return Number(v); return v; }), z.number().int().gte(0).lte(250)))
108
122
  });
109
123
  export const chromaKeySchema = chromakeyChromaKeySchema;
@@ -415,11 +429,13 @@ export const generatedAssetResponseSchema = generatedAssetResponseGeneratedAsset
415
429
  export const shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema = z.object({
416
430
  type: z.enum(['image-to-video']),
417
431
  imageUrl: z.string(),
418
- guidanceScale: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
419
- return undefined; if (typeof v === 'string')
432
+ guidanceScale: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
433
+ return undefined; if (Array.isArray(v))
434
+ return v; if (typeof v === 'string')
420
435
  return Number(v); return v; }), z.number())).default(1.8),
421
- motion: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
422
- return undefined; if (typeof v === 'string')
436
+ motion: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
437
+ return undefined; if (Array.isArray(v))
438
+ return v; if (typeof v === 'string')
423
439
  return Number(v); return v; }), z.number().int())).default(127)
424
440
  });
425
441
  export const shotstackImageToVideoOptionsSchema = shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema;
@@ -437,11 +453,13 @@ export const shotstackTextGeneratorOptionsSchema = shotstackTextGeneratorOptions
437
453
  export const shotstackTextToImageOptionsShotstackTextToImageOptionsSchema = z.object({
438
454
  type: z.enum(['text-to-image']),
439
455
  prompt: z.string(),
440
- width: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
441
- return undefined; if (typeof v === 'string')
456
+ width: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
457
+ return undefined; if (Array.isArray(v))
458
+ return v; if (typeof v === 'string')
442
459
  return Number(v); return v; }), z.number().int()),
443
- height: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
444
- return undefined; if (typeof v === 'string')
460
+ height: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
461
+ return undefined; if (Array.isArray(v))
462
+ return v; if (typeof v === 'string')
445
463
  return Number(v); return v; }), z.number().int())
446
464
  });
447
465
  export const shotstackTextToImageOptionsSchema = shotstackTextToImageOptionsShotstackTextToImageOptionsSchema;
@@ -583,20 +601,25 @@ export const stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema =
583
601
  'stable-diffusion-512-v2-1',
584
602
  'stable-diffusion-xl-beta-v2-2-2'
585
603
  ])),
586
- width: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
587
- return undefined; if (typeof v === 'string')
604
+ width: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
605
+ return undefined; if (Array.isArray(v))
606
+ return v; if (typeof v === 'string')
588
607
  return Number(v); return v; }), z.number().int()),
589
- height: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
590
- return undefined; if (typeof v === 'string')
608
+ height: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
609
+ return undefined; if (Array.isArray(v))
610
+ return v; if (typeof v === 'string')
591
611
  return Number(v); return v; }), z.number().int()),
592
- steps: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
593
- return undefined; if (typeof v === 'string')
612
+ steps: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
613
+ return undefined; if (Array.isArray(v))
614
+ return v; if (typeof v === 'string')
594
615
  return Number(v); return v; }), z.number().int())).default(30),
595
- seed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
596
- return undefined; if (typeof v === 'string')
616
+ seed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
617
+ return undefined; if (Array.isArray(v))
618
+ return v; if (typeof v === 'string')
597
619
  return Number(v); return v; }), z.number().int())).default(0),
598
- cfgScale: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
599
- return undefined; if (typeof v === 'string')
620
+ cfgScale: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
621
+ return undefined; if (Array.isArray(v))
622
+ return v; if (typeof v === 'string')
600
623
  return Number(v); return v; }), z.number())).default(7),
601
624
  stylePreset: z.optional(z.enum([
602
625
  '3d-model',
@@ -666,17 +689,21 @@ export const generatedAssetSchema = generatedAssetGeneratedAssetSchema;
666
689
  * 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.
667
690
  */
668
691
  export const cropCropSchema = z.object({
669
- top: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
670
- return undefined; if (typeof v === 'string')
692
+ top: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
693
+ return undefined; if (Array.isArray(v))
694
+ return v; if (typeof v === 'string')
671
695
  return Number(v); return v; }), z.number().gte(0).lte(1))),
672
- bottom: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
673
- return undefined; if (typeof v === 'string')
696
+ bottom: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
697
+ return undefined; if (Array.isArray(v))
698
+ return v; if (typeof v === 'string')
674
699
  return Number(v); return v; }), z.number().gte(0).lte(1))),
675
- left: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
676
- return undefined; if (typeof v === 'string')
700
+ left: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
701
+ return undefined; if (Array.isArray(v))
702
+ return v; if (typeof v === 'string')
677
703
  return Number(v); return v; }), z.number().gte(0).lte(1))),
678
- right: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
679
- return undefined; if (typeof v === 'string')
704
+ right: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
705
+ return undefined; if (Array.isArray(v))
706
+ return v; if (typeof v === 'string')
680
707
  return Number(v); return v; }), z.number().gte(0).lte(1)))
681
708
  });
682
709
  export const cropSchema = cropCropSchema;
@@ -876,11 +903,13 @@ export const htmlassetHtmlAssetSchema = z.object({
876
903
  type: z.enum(['html']),
877
904
  html: z.string(),
878
905
  css: z.optional(z.string()),
879
- width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
880
- return undefined; if (typeof v === 'string')
906
+ width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
907
+ return undefined; if (Array.isArray(v))
908
+ return v; if (typeof v === 'string')
881
909
  return Number(v); return v; }), z.number().int())),
882
- height: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
883
- return undefined; if (typeof v === 'string')
910
+ height: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
911
+ return undefined; if (Array.isArray(v))
912
+ return v; if (typeof v === 'string')
884
913
  return Number(v); return v; }), z.number().int())),
885
914
  background: z.optional(z.string()),
886
915
  position: z.optional(z.enum([
@@ -921,8 +950,9 @@ export const imagetovideoassetImageToVideoAssetSchema = z.object({
921
950
  '21:9',
922
951
  '9:21'
923
952
  ])),
924
- speed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
925
- return undefined; if (typeof v === 'string')
953
+ speed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
954
+ return undefined; if (Array.isArray(v))
955
+ return v; if (typeof v === 'string')
926
956
  return Number(v); return v; }), z.number().gte(0).lte(10))),
927
957
  crop: z.optional(cropCropSchema)
928
958
  });
@@ -1029,8 +1059,9 @@ export const uploadResponseSchema = uploadresponseUploadResponseSchema;
1029
1059
  * 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.
1030
1060
  */
1031
1061
  export const speedSpeedSchema = z.object({
1032
- speed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1033
- return undefined; if (typeof v === 'string')
1062
+ speed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1063
+ return undefined; if (Array.isArray(v))
1064
+ return v; if (typeof v === 'string')
1034
1065
  return Number(v); return v; }), z.number().gte(0).lte(10))),
1035
1066
  preservePitch: z.optional(z.boolean())
1036
1067
  });
@@ -1048,8 +1079,9 @@ export const transcriptionSchema = transcriptionTranscriptionSchema;
1048
1079
  export const lumaassetLumaAssetSchema = z.object({
1049
1080
  type: z.enum(['luma']),
1050
1081
  src: z.string(),
1051
- trim: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1052
- return undefined; if (typeof v === 'string')
1082
+ trim: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1083
+ return undefined; if (Array.isArray(v))
1084
+ return v; if (typeof v === 'string')
1053
1085
  return Number(v); return v; }), z.number()))
1054
1086
  });
1055
1087
  export const lumaAssetSchema = lumaassetLumaAssetSchema;
@@ -1065,8 +1097,9 @@ export const mergeFieldSchema = mergefieldMergeFieldSchema;
1065
1097
  * 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.
1066
1098
  */
1067
1099
  export const posterPosterSchema = z.object({
1068
- capture: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1069
- return undefined; if (typeof v === 'string')
1100
+ capture: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1101
+ return undefined; if (Array.isArray(v))
1102
+ return v; if (typeof v === 'string')
1070
1103
  return Number(v); return v; }), z.number())
1071
1104
  });
1072
1105
  export const posterSchema = posterPosterSchema;
@@ -1074,11 +1107,13 @@ export const posterSchema = posterPosterSchema;
1074
1107
  * 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.
1075
1108
  */
1076
1109
  export const rangeRangeSchema = z.object({
1077
- start: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1078
- return undefined; if (typeof v === 'string')
1110
+ start: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1111
+ return undefined; if (Array.isArray(v))
1112
+ return v; if (typeof v === 'string')
1079
1113
  return Number(v); return v; }), z.number().gte(0))),
1080
- length: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1081
- return undefined; if (typeof v === 'string')
1114
+ length: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1115
+ return undefined; if (Array.isArray(v))
1116
+ return v; if (typeof v === 'string')
1082
1117
  return Number(v); return v; }), z.number().gte(0)))
1083
1118
  });
1084
1119
  export const rangeSchema = rangeRangeSchema;
@@ -1223,11 +1258,13 @@ export const richtextpropertiesRichTextAnimationSchema = z.object({
1223
1258
  'shift',
1224
1259
  'movingLetters'
1225
1260
  ]),
1226
- speed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1227
- return undefined; if (typeof v === 'string')
1261
+ speed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1262
+ return undefined; if (Array.isArray(v))
1263
+ return v; if (typeof v === 'string')
1228
1264
  return Number(v); return v; }), z.number().gte(0.1).lte(10))).default(1),
1229
- duration: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1230
- return undefined; if (typeof v === 'string')
1265
+ duration: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1266
+ return undefined; if (Array.isArray(v))
1267
+ return v; if (typeof v === 'string')
1231
1268
  return Number(v); return v; }), z.number().gte(0.1).lte(30))),
1232
1269
  style: z.optional(z.enum(['character', 'word'])),
1233
1270
  direction: z.optional(z.enum([
@@ -1243,11 +1280,13 @@ export const richTextAnimationSchema = richtextpropertiesRichTextAnimationSchema
1243
1280
  */
1244
1281
  export const richtextpropertiesRichTextBackgroundSchema = z.object({
1245
1282
  color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
1246
- opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1247
- return undefined; if (typeof v === 'string')
1283
+ opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1284
+ return undefined; if (Array.isArray(v))
1285
+ return v; if (typeof v === 'string')
1248
1286
  return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
1249
- borderRadius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1250
- return undefined; if (typeof v === 'string')
1287
+ borderRadius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1288
+ return undefined; if (Array.isArray(v))
1289
+ return v; if (typeof v === 'string')
1251
1290
  return Number(v); return v; }), z.number().gte(0))).default(0)
1252
1291
  });
1253
1292
  export const richTextBackgroundSchema = richtextpropertiesRichTextBackgroundSchema;
@@ -1255,15 +1294,18 @@ export const richTextBackgroundSchema = richtextpropertiesRichTextBackgroundSche
1255
1294
  * Border styling properties for the text bounding box.
1256
1295
  */
1257
1296
  export const richtextpropertiesRichTextBorderSchema = z.object({
1258
- width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1259
- return undefined; if (typeof v === 'string')
1297
+ width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1298
+ return undefined; if (Array.isArray(v))
1299
+ return v; if (typeof v === 'string')
1260
1300
  return Number(v); return v; }), z.number().gte(0))).default(0),
1261
1301
  color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#000000'),
1262
- opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1263
- return undefined; if (typeof v === 'string')
1302
+ opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1303
+ return undefined; if (Array.isArray(v))
1304
+ return v; if (typeof v === 'string')
1264
1305
  return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
1265
- radius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1266
- return undefined; if (typeof v === 'string')
1306
+ radius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1307
+ return undefined; if (Array.isArray(v))
1308
+ return v; if (typeof v === 'string')
1267
1309
  return Number(v); return v; }), z.number().gte(0))).default(0)
1268
1310
  });
1269
1311
  /**
@@ -1271,12 +1313,14 @@ export const richtextpropertiesRichTextBorderSchema = z.object({
1271
1313
  */
1272
1314
  export const richtextpropertiesRichTextGradientSchema = z.object({
1273
1315
  type: z.optional(z.enum(['linear', 'radial'])),
1274
- angle: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1275
- return undefined; if (typeof v === 'string')
1316
+ angle: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1317
+ return undefined; if (Array.isArray(v))
1318
+ return v; if (typeof v === 'string')
1276
1319
  return Number(v); return v; }), z.number().gte(0).lte(360))).default(0),
1277
1320
  stops: z.array(z.object({
1278
- offset: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1279
- return undefined; if (typeof v === 'string')
1321
+ offset: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1322
+ return undefined; if (Array.isArray(v))
1323
+ return v; if (typeof v === 'string')
1280
1324
  return Number(v); return v; }), z.number().gte(0).lte(1)),
1281
1325
  color: z.string().regex(/^#[A-Fa-f0-9]{6}$/)
1282
1326
  })).min(2)
@@ -1286,35 +1330,43 @@ export const richTextGradientSchema = richtextpropertiesRichTextGradientSchema;
1286
1330
  * Padding properties for individual sides of the text bounding box.
1287
1331
  */
1288
1332
  export const richtextpropertiesRichTextPaddingSchema = z.object({
1289
- top: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1290
- return undefined; if (typeof v === 'string')
1333
+ top: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1334
+ return undefined; if (Array.isArray(v))
1335
+ return v; if (typeof v === 'string')
1291
1336
  return Number(v); return v; }), z.number().gte(0))).default(0),
1292
- right: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1293
- return undefined; if (typeof v === 'string')
1337
+ right: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1338
+ return undefined; if (Array.isArray(v))
1339
+ return v; if (typeof v === 'string')
1294
1340
  return Number(v); return v; }), z.number().gte(0))).default(0),
1295
- bottom: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1296
- return undefined; if (typeof v === 'string')
1341
+ bottom: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1342
+ return undefined; if (Array.isArray(v))
1343
+ return v; if (typeof v === 'string')
1297
1344
  return Number(v); return v; }), z.number().gte(0))).default(0),
1298
- left: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1299
- return undefined; if (typeof v === 'string')
1345
+ left: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1346
+ return undefined; if (Array.isArray(v))
1347
+ return v; if (typeof v === 'string')
1300
1348
  return Number(v); return v; }), z.number().gte(0))).default(0)
1301
1349
  });
1302
1350
  /**
1303
1351
  * Text shadow properties.
1304
1352
  */
1305
1353
  export const richtextpropertiesRichTextShadowSchema = z.object({
1306
- offsetX: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1307
- return undefined; if (typeof v === 'string')
1354
+ offsetX: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1355
+ return undefined; if (Array.isArray(v))
1356
+ return v; if (typeof v === 'string')
1308
1357
  return Number(v); return v; }), z.number())).default(0),
1309
- offsetY: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1310
- return undefined; if (typeof v === 'string')
1358
+ offsetY: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1359
+ return undefined; if (Array.isArray(v))
1360
+ return v; if (typeof v === 'string')
1311
1361
  return Number(v); return v; }), z.number())).default(0),
1312
- blur: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1313
- return undefined; if (typeof v === 'string')
1362
+ blur: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1363
+ return undefined; if (Array.isArray(v))
1364
+ return v; if (typeof v === 'string')
1314
1365
  return Number(v); return v; }), z.number().gte(0))).default(0),
1315
1366
  color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#000000'),
1316
- opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1317
- return undefined; if (typeof v === 'string')
1367
+ opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1368
+ return undefined; if (Array.isArray(v))
1369
+ return v; if (typeof v === 'string')
1318
1370
  return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5)
1319
1371
  });
1320
1372
  export const richTextShadowSchema = richtextpropertiesRichTextShadowSchema;
@@ -1322,12 +1374,14 @@ export const richTextShadowSchema = richtextpropertiesRichTextShadowSchema;
1322
1374
  * Text stroke (outline) properties.
1323
1375
  */
1324
1376
  export const richtextpropertiesRichTextStrokeSchema = z.object({
1325
- width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1326
- return undefined; if (typeof v === 'string')
1377
+ width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1378
+ return undefined; if (Array.isArray(v))
1379
+ return v; if (typeof v === 'string')
1327
1380
  return Number(v); return v; }), z.number().gte(0))).default(0),
1328
1381
  color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#000000'),
1329
- opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1330
- return undefined; if (typeof v === 'string')
1382
+ opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1383
+ return undefined; if (Array.isArray(v))
1384
+ return v; if (typeof v === 'string')
1331
1385
  return Number(v); return v; }), z.number().gte(0).lte(1))).default(1)
1332
1386
  });
1333
1387
  export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
@@ -1336,13 +1390,15 @@ export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
1336
1390
  */
1337
1391
  export const richtextpropertiesRichTextFontSchema = z.object({
1338
1392
  family: z.optional(z.string()).default('Open Sans'),
1339
- size: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1340
- return undefined; if (typeof v === 'string')
1393
+ size: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1394
+ return undefined; if (Array.isArray(v))
1395
+ return v; if (typeof v === 'string')
1341
1396
  return Number(v); return v; }), z.number().int().gte(1).lte(500))).default(24),
1342
1397
  weight: z.optional(z.unknown()).default('400'),
1343
1398
  color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#ffffff'),
1344
- opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1345
- return undefined; if (typeof v === 'string')
1399
+ opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1400
+ return undefined; if (Array.isArray(v))
1401
+ return v; if (typeof v === 'string')
1346
1402
  return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
1347
1403
  background: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
1348
1404
  stroke: z.optional(richtextpropertiesRichTextStrokeSchema)
@@ -1352,11 +1408,13 @@ export const richTextFontSchema = richtextpropertiesRichTextFontSchema;
1352
1408
  * Text style properties including spacing, line height, and transformations.
1353
1409
  */
1354
1410
  export const richtextpropertiesRichTextStyleSchema = z.object({
1355
- letterSpacing: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1356
- return undefined; if (typeof v === 'string')
1411
+ letterSpacing: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1412
+ return undefined; if (Array.isArray(v))
1413
+ return v; if (typeof v === 'string')
1357
1414
  return Number(v); return v; }), z.number())).default(0),
1358
- lineHeight: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1359
- return undefined; if (typeof v === 'string')
1415
+ lineHeight: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1416
+ return undefined; if (Array.isArray(v))
1417
+ return v; if (typeof v === 'string')
1360
1418
  return Number(v); return v; }), z.number().gte(0).lte(10))).default(1.2),
1361
1419
  textTransform: z.optional(z.enum([
1362
1420
  'none',
@@ -1386,8 +1444,9 @@ export const richtextassetRichTextAssetSchema = z.object({
1386
1444
  background: z.optional(richtextpropertiesRichTextBackgroundSchema),
1387
1445
  border: z.optional(richtextpropertiesRichTextBorderSchema),
1388
1446
  padding: z.optional(z.union([
1389
- z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1390
- return undefined; if (typeof v === 'string')
1447
+ z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1448
+ return undefined; if (Array.isArray(v))
1449
+ return v; if (typeof v === 'string')
1391
1450
  return Number(v); return v; }), z.number().gte(0)),
1392
1451
  richtextpropertiesRichTextPaddingSchema
1393
1452
  ])),
@@ -1441,46 +1500,56 @@ export const shapeassetShapeAssetSchema = z.object({
1441
1500
  'circle',
1442
1501
  'line'
1443
1502
  ]),
1444
- width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1445
- return undefined; if (typeof v === 'string')
1503
+ width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1504
+ return undefined; if (Array.isArray(v))
1505
+ return v; if (typeof v === 'string')
1446
1506
  return Number(v); return v; }), z.number().int())),
1447
- height: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1448
- return undefined; if (typeof v === 'string')
1507
+ height: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1508
+ return undefined; if (Array.isArray(v))
1509
+ return v; if (typeof v === 'string')
1449
1510
  return Number(v); return v; }), z.number().int())),
1450
1511
  fill: z.optional(z.object({
1451
1512
  color: z.optional(z.string()),
1452
- opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1453
- return undefined; if (typeof v === 'string')
1513
+ opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1514
+ return undefined; if (Array.isArray(v))
1515
+ return v; if (typeof v === 'string')
1454
1516
  return Number(v); return v; }), z.number()))
1455
1517
  })),
1456
1518
  stroke: z.optional(z.object({
1457
1519
  color: z.optional(z.string()),
1458
- width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1459
- return undefined; if (typeof v === 'string')
1520
+ width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1521
+ return undefined; if (Array.isArray(v))
1522
+ return v; if (typeof v === 'string')
1460
1523
  return Number(v); return v; }), z.number()))
1461
1524
  })),
1462
1525
  rectangle: z.optional(z.object({
1463
- width: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1464
- return undefined; if (typeof v === 'string')
1526
+ width: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1527
+ return undefined; if (Array.isArray(v))
1528
+ return v; if (typeof v === 'string')
1465
1529
  return Number(v); return v; }), z.number().int()),
1466
- height: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1467
- return undefined; if (typeof v === 'string')
1530
+ height: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1531
+ return undefined; if (Array.isArray(v))
1532
+ return v; if (typeof v === 'string')
1468
1533
  return Number(v); return v; }), z.number().int()),
1469
- cornerRadius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1470
- return undefined; if (typeof v === 'string')
1534
+ cornerRadius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1535
+ return undefined; if (Array.isArray(v))
1536
+ return v; if (typeof v === 'string')
1471
1537
  return Number(v); return v; }), z.number().int()))
1472
1538
  })),
1473
1539
  circle: z.optional(z.object({
1474
- radius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1475
- return undefined; if (typeof v === 'string')
1540
+ radius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1541
+ return undefined; if (Array.isArray(v))
1542
+ return v; if (typeof v === 'string')
1476
1543
  return Number(v); return v; }), z.number().int())
1477
1544
  })),
1478
1545
  line: z.optional(z.object({
1479
- length: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1480
- return undefined; if (typeof v === 'string')
1546
+ length: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1547
+ return undefined; if (Array.isArray(v))
1548
+ return v; if (typeof v === 'string')
1481
1549
  return Number(v); return v; }), z.number().int()),
1482
- thickness: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1483
- return undefined; if (typeof v === 'string')
1550
+ thickness: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1551
+ return undefined; if (Array.isArray(v))
1552
+ return v; if (typeof v === 'string')
1484
1553
  return Number(v); return v; }), z.number().int())
1485
1554
  }))
1486
1555
  });
@@ -1489,11 +1558,13 @@ export const shapeAssetSchema = shapeassetShapeAssetSchema;
1489
1558
  * 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.
1490
1559
  */
1491
1560
  export const sizeSizeSchema = z.object({
1492
- width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1493
- return undefined; if (typeof v === 'string')
1561
+ width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1562
+ return undefined; if (Array.isArray(v))
1563
+ return v; if (typeof v === 'string')
1494
1564
  return Number(v); return v; }), z.number().int().gte(1).lte(4096))),
1495
- height: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1496
- return undefined; if (typeof v === 'string')
1565
+ height: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1566
+ return undefined; if (Array.isArray(v))
1567
+ return v; if (typeof v === 'string')
1497
1568
  return Number(v); return v; }), z.number().int().gte(1).lte(4096)))
1498
1569
  });
1499
1570
  export const sizeSchema = sizeSizeSchema;
@@ -1531,8 +1602,9 @@ export const renditionRenditionSchema = z.object({
1531
1602
  'hd',
1532
1603
  'fhd'
1533
1604
  ])),
1534
- quality: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1535
- return undefined; if (typeof v === 'string')
1605
+ quality: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1606
+ return undefined; if (Array.isArray(v))
1607
+ return v; if (typeof v === 'string')
1536
1608
  return Number(v); return v; }), z.number().int().gte(1).lte(100))),
1537
1609
  fps: z.optional(z.union([
1538
1610
  z.literal(12),
@@ -1548,8 +1620,9 @@ export const renditionRenditionSchema = z.object({
1548
1620
  z.literal(60)
1549
1621
  ])),
1550
1622
  speed: z.optional(speedSpeedSchema),
1551
- keyframeInterval: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1552
- return undefined; if (typeof v === 'string')
1623
+ keyframeInterval: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1624
+ return undefined; if (Array.isArray(v))
1625
+ return v; if (typeof v === 'string')
1553
1626
  return Number(v); return v; }), z.number().int().gte(1).lte(300))),
1554
1627
  fixOffset: z.optional(z.boolean()),
1555
1628
  fixRotation: z.optional(z.boolean()),
@@ -1579,21 +1652,26 @@ export const renditionresponseattributesRenditionResponseAttributesSchema = z.ob
1579
1652
  'overwritten'
1580
1653
  ])),
1581
1654
  url: z.optional(z.string()),
1582
- executionTime: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1583
- return undefined; if (typeof v === 'string')
1655
+ executionTime: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1656
+ return undefined; if (Array.isArray(v))
1657
+ return v; if (typeof v === 'string')
1584
1658
  return Number(v); return v; }), z.number())),
1585
1659
  transformation: z.optional(renditionRenditionSchema),
1586
- width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1587
- return undefined; if (typeof v === 'string')
1660
+ width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1661
+ return undefined; if (Array.isArray(v))
1662
+ return v; if (typeof v === 'string')
1588
1663
  return Number(v); return v; }), z.number().int())),
1589
- height: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1590
- return undefined; if (typeof v === 'string')
1664
+ height: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1665
+ return undefined; if (Array.isArray(v))
1666
+ return v; if (typeof v === 'string')
1591
1667
  return Number(v); return v; }), z.number().int())),
1592
- duration: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1593
- return undefined; if (typeof v === 'string')
1668
+ duration: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1669
+ return undefined; if (Array.isArray(v))
1670
+ return v; if (typeof v === 'string')
1594
1671
  return Number(v); return v; }), z.number())),
1595
- fps: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1596
- return undefined; if (typeof v === 'string')
1672
+ fps: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1673
+ return undefined; if (Array.isArray(v))
1674
+ return v; if (typeof v === 'string')
1597
1675
  return Number(v); return v; }), z.number()))
1598
1676
  });
1599
1677
  export const renditionResponseAttributesSchema = renditionresponseattributesRenditionResponseAttributesSchema;
@@ -1621,17 +1699,21 @@ export const sourceresponseattributesSourceResponseAttributesSchema = z.object({
1621
1699
  'overwritten'
1622
1700
  ])),
1623
1701
  outputs: z.optional(outputsresponseOutputsResponseSchema),
1624
- width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1625
- return undefined; if (typeof v === 'string')
1702
+ width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1703
+ return undefined; if (Array.isArray(v))
1704
+ return v; if (typeof v === 'string')
1626
1705
  return Number(v); return v; }), z.number().int())),
1627
- height: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1628
- return undefined; if (typeof v === 'string')
1706
+ height: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1707
+ return undefined; if (Array.isArray(v))
1708
+ return v; if (typeof v === 'string')
1629
1709
  return Number(v); return v; }), z.number().int())),
1630
- duration: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1631
- return undefined; if (typeof v === 'string')
1710
+ duration: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1711
+ return undefined; if (Array.isArray(v))
1712
+ return v; if (typeof v === 'string')
1632
1713
  return Number(v); return v; }), z.number())),
1633
- fps: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1634
- return undefined; if (typeof v === 'string')
1714
+ fps: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1715
+ return undefined; if (Array.isArray(v))
1716
+ return v; if (typeof v === 'string')
1635
1717
  return Number(v); return v; }), z.number())),
1636
1718
  created: z.optional(z.string()),
1637
1719
  updated: z.optional(z.string())
@@ -1681,8 +1763,9 @@ export const soundtrackSoundtrackSchema = z.object({
1681
1763
  'fadeOut',
1682
1764
  'fadeInFadeOut'
1683
1765
  ])),
1684
- volume: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1685
- return undefined; if (typeof v === 'string')
1766
+ volume: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1767
+ return undefined; if (Array.isArray(v))
1768
+ return v; if (typeof v === 'string')
1686
1769
  return Number(v); return v; }), z.number()))
1687
1770
  });
1688
1771
  export const soundtrackSchema = soundtrackSoundtrackSchema;
@@ -1692,8 +1775,9 @@ export const soundtrackSchema = soundtrackSoundtrackSchema;
1692
1775
  *
1693
1776
  */
1694
1777
  export const svgpropertiesSvgGradientStopSchema = z.object({
1695
- offset: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1696
- return undefined; if (typeof v === 'string')
1778
+ offset: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1779
+ return undefined; if (Array.isArray(v))
1780
+ return v; if (typeof v === 'string')
1697
1781
  return Number(v); return v; }), z.number().gte(0).lte(1)),
1698
1782
  color: z.string().regex(/^#[A-Fa-f0-9]{6}$/)
1699
1783
  });
@@ -1705,12 +1789,14 @@ export const svgGradientStopSchema = svgpropertiesSvgGradientStopSchema;
1705
1789
  */
1706
1790
  export const svgpropertiesSvgLinearGradientFillSchema = z.object({
1707
1791
  type: z.enum(['linear']),
1708
- angle: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1709
- return undefined; if (typeof v === 'string')
1792
+ angle: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1793
+ return undefined; if (Array.isArray(v))
1794
+ return v; if (typeof v === 'string')
1710
1795
  return Number(v); return v; }), z.number().gte(0).lte(360))).default(0),
1711
1796
  stops: z.array(svgpropertiesSvgGradientStopSchema).min(2),
1712
- opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1713
- return undefined; if (typeof v === 'string')
1797
+ opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1798
+ return undefined; if (Array.isArray(v))
1799
+ return v; if (typeof v === 'string')
1714
1800
  return Number(v); return v; }), z.number().gte(0).lte(1))).default(1)
1715
1801
  });
1716
1802
  export const svgLinearGradientFillSchema = svgpropertiesSvgLinearGradientFillSchema;
@@ -1722,8 +1808,9 @@ export const svgLinearGradientFillSchema = svgpropertiesSvgLinearGradientFillSch
1722
1808
  export const svgpropertiesSvgRadialGradientFillSchema = z.object({
1723
1809
  type: z.enum(['radial']),
1724
1810
  stops: z.array(svgpropertiesSvgGradientStopSchema).min(2),
1725
- opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1726
- return undefined; if (typeof v === 'string')
1811
+ opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1812
+ return undefined; if (Array.isArray(v))
1813
+ return v; if (typeof v === 'string')
1727
1814
  return Number(v); return v; }), z.number().gte(0).lte(1))).default(1)
1728
1815
  });
1729
1816
  export const svgRadialGradientFillSchema = svgpropertiesSvgRadialGradientFillSchema;
@@ -1732,18 +1819,22 @@ export const svgRadialGradientFillSchema = svgpropertiesSvgRadialGradientFillSch
1732
1819
  *
1733
1820
  */
1734
1821
  export const svgpropertiesSvgShadowSchema = z.object({
1735
- offsetX: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1736
- return undefined; if (typeof v === 'string')
1822
+ offsetX: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1823
+ return undefined; if (Array.isArray(v))
1824
+ return v; if (typeof v === 'string')
1737
1825
  return Number(v); return v; }), z.number())).default(0),
1738
- offsetY: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1739
- return undefined; if (typeof v === 'string')
1826
+ offsetY: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1827
+ return undefined; if (Array.isArray(v))
1828
+ return v; if (typeof v === 'string')
1740
1829
  return Number(v); return v; }), z.number())).default(0),
1741
- blur: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1742
- return undefined; if (typeof v === 'string')
1830
+ blur: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1831
+ return undefined; if (Array.isArray(v))
1832
+ return v; if (typeof v === 'string')
1743
1833
  return Number(v); return v; }), z.number().gte(0))).default(0),
1744
1834
  color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#000000'),
1745
- opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1746
- return undefined; if (typeof v === 'string')
1835
+ opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1836
+ return undefined; if (Array.isArray(v))
1837
+ return v; if (typeof v === 'string')
1747
1838
  return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5)
1748
1839
  });
1749
1840
  export const svgShadowSchema = svgpropertiesSvgShadowSchema;
@@ -1753,8 +1844,9 @@ export const svgShadowSchema = svgpropertiesSvgShadowSchema;
1753
1844
  export const svgpropertiesSvgSolidFillSchema = z.object({
1754
1845
  type: z.enum(['solid']),
1755
1846
  color: z.string().regex(/^#[A-Fa-f0-9]{6}$/).default('#000000'),
1756
- opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1757
- return undefined; if (typeof v === 'string')
1847
+ opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1848
+ return undefined; if (Array.isArray(v))
1849
+ return v; if (typeof v === 'string')
1758
1850
  return Number(v); return v; }), z.number().gte(0).lte(1))).default(1)
1759
1851
  });
1760
1852
  export const svgSolidFillSchema = svgpropertiesSvgSolidFillSchema;
@@ -1776,11 +1868,13 @@ export const svgFillSchema = svgpropertiesSvgFillSchema;
1776
1868
  */
1777
1869
  export const svgpropertiesSvgStrokeSchema = z.object({
1778
1870
  color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#000000'),
1779
- width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1780
- return undefined; if (typeof v === 'string')
1871
+ width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1872
+ return undefined; if (Array.isArray(v))
1873
+ return v; if (typeof v === 'string')
1781
1874
  return Number(v); return v; }), z.number().gte(0).lte(100))).default(1),
1782
- opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1783
- return undefined; if (typeof v === 'string')
1875
+ opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1876
+ return undefined; if (Array.isArray(v))
1877
+ return v; if (typeof v === 'string')
1784
1878
  return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
1785
1879
  lineCap: z.optional(z.enum([
1786
1880
  'butt',
@@ -1792,11 +1886,13 @@ export const svgpropertiesSvgStrokeSchema = z.object({
1792
1886
  'round',
1793
1887
  'bevel'
1794
1888
  ])),
1795
- dashArray: z.optional(z.array(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1796
- return undefined; if (typeof v === 'string')
1889
+ dashArray: z.optional(z.array(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1890
+ return undefined; if (Array.isArray(v))
1891
+ return v; if (typeof v === 'string')
1797
1892
  return Number(v); return v; }), z.number().gte(0)))),
1798
- dashOffset: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1799
- return undefined; if (typeof v === 'string')
1893
+ dashOffset: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1894
+ return undefined; if (Array.isArray(v))
1895
+ return v; if (typeof v === 'string')
1800
1896
  return Number(v); return v; }), z.number())).default(0)
1801
1897
  });
1802
1898
  export const svgStrokeSchema = svgpropertiesSvgStrokeSchema;
@@ -1805,23 +1901,29 @@ export const svgStrokeSchema = svgpropertiesSvgStrokeSchema;
1805
1901
  *
1806
1902
  */
1807
1903
  export const svgpropertiesSvgTransformSchema = z.object({
1808
- x: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1809
- return undefined; if (typeof v === 'string')
1904
+ x: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1905
+ return undefined; if (Array.isArray(v))
1906
+ return v; if (typeof v === 'string')
1810
1907
  return Number(v); return v; }), z.number())).default(0),
1811
- y: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1812
- return undefined; if (typeof v === 'string')
1908
+ y: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1909
+ return undefined; if (Array.isArray(v))
1910
+ return v; if (typeof v === 'string')
1813
1911
  return Number(v); return v; }), z.number())).default(0),
1814
- rotation: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1815
- return undefined; if (typeof v === 'string')
1912
+ rotation: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1913
+ return undefined; if (Array.isArray(v))
1914
+ return v; if (typeof v === 'string')
1816
1915
  return Number(v); return v; }), z.number().gte(-360).lte(360))).default(0),
1817
- scale: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1818
- return undefined; if (typeof v === 'string')
1916
+ scale: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1917
+ return undefined; if (Array.isArray(v))
1918
+ return v; if (typeof v === 'string')
1819
1919
  return Number(v); return v; }), z.number().gte(0.01).lte(100))).default(1),
1820
- originX: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1821
- return undefined; if (typeof v === 'string')
1920
+ originX: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1921
+ return undefined; if (Array.isArray(v))
1922
+ return v; if (typeof v === 'string')
1822
1923
  return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5),
1823
- originY: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1824
- return undefined; if (typeof v === 'string')
1924
+ originY: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1925
+ return undefined; if (Array.isArray(v))
1926
+ return v; if (typeof v === 'string')
1825
1927
  return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5)
1826
1928
  });
1827
1929
  export const svgTransformSchema = svgpropertiesSvgTransformSchema;
@@ -1832,17 +1934,21 @@ export const svgTransformSchema = svgpropertiesSvgTransformSchema;
1832
1934
  */
1833
1935
  export const svgshapesSvgArrowShapeSchema = z.object({
1834
1936
  type: z.enum(['arrow']),
1835
- length: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1836
- return undefined; if (typeof v === 'string')
1937
+ length: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1938
+ return undefined; if (Array.isArray(v))
1939
+ return v; if (typeof v === 'string')
1837
1940
  return Number(v); return v; }), z.number().gte(1).lte(4096)),
1838
- headWidth: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1839
- return undefined; if (typeof v === 'string')
1941
+ headWidth: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1942
+ return undefined; if (Array.isArray(v))
1943
+ return v; if (typeof v === 'string')
1840
1944
  return Number(v); return v; }), z.number().gte(1).lte(1000)),
1841
- headLength: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1842
- return undefined; if (typeof v === 'string')
1945
+ headLength: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1946
+ return undefined; if (Array.isArray(v))
1947
+ return v; if (typeof v === 'string')
1843
1948
  return Number(v); return v; }), z.number().gte(1).lte(1000)),
1844
- shaftWidth: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1845
- return undefined; if (typeof v === 'string')
1949
+ shaftWidth: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1950
+ return undefined; if (Array.isArray(v))
1951
+ return v; if (typeof v === 'string')
1846
1952
  return Number(v); return v; }), z.number().gte(1).lte(1000))
1847
1953
  });
1848
1954
  export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
@@ -1853,8 +1959,9 @@ export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
1853
1959
  */
1854
1960
  export const svgshapesSvgCircleShapeSchema = z.object({
1855
1961
  type: z.enum(['circle']),
1856
- radius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1857
- return undefined; if (typeof v === 'string')
1962
+ radius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1963
+ return undefined; if (Array.isArray(v))
1964
+ return v; if (typeof v === 'string')
1858
1965
  return Number(v); return v; }), z.number().gte(1).lte(2048))
1859
1966
  });
1860
1967
  export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
@@ -1865,14 +1972,17 @@ export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
1865
1972
  */
1866
1973
  export const svgshapesSvgCrossShapeSchema = z.object({
1867
1974
  type: z.enum(['cross']),
1868
- width: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1869
- return undefined; if (typeof v === 'string')
1975
+ width: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1976
+ return undefined; if (Array.isArray(v))
1977
+ return v; if (typeof v === 'string')
1870
1978
  return Number(v); return v; }), z.number().gte(1).lte(4096)),
1871
- height: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1872
- return undefined; if (typeof v === 'string')
1979
+ height: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1980
+ return undefined; if (Array.isArray(v))
1981
+ return v; if (typeof v === 'string')
1873
1982
  return Number(v); return v; }), z.number().gte(1).lte(4096)),
1874
- thickness: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1875
- return undefined; if (typeof v === 'string')
1983
+ thickness: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1984
+ return undefined; if (Array.isArray(v))
1985
+ return v; if (typeof v === 'string')
1876
1986
  return Number(v); return v; }), z.number().gte(1).lte(500))
1877
1987
  });
1878
1988
  export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
@@ -1883,11 +1993,13 @@ export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
1883
1993
  */
1884
1994
  export const svgshapesSvgEllipseShapeSchema = z.object({
1885
1995
  type: z.enum(['ellipse']),
1886
- radiusX: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1887
- return undefined; if (typeof v === 'string')
1996
+ radiusX: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1997
+ return undefined; if (Array.isArray(v))
1998
+ return v; if (typeof v === 'string')
1888
1999
  return Number(v); return v; }), z.number().gte(1).lte(2048)),
1889
- radiusY: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1890
- return undefined; if (typeof v === 'string')
2000
+ radiusY: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2001
+ return undefined; if (Array.isArray(v))
2002
+ return v; if (typeof v === 'string')
1891
2003
  return Number(v); return v; }), z.number().gte(1).lte(2048))
1892
2004
  });
1893
2005
  export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
@@ -1898,8 +2010,9 @@ export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
1898
2010
  */
1899
2011
  export const svgshapesSvgHeartShapeSchema = z.object({
1900
2012
  type: z.enum(['heart']),
1901
- size: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1902
- return undefined; if (typeof v === 'string')
2013
+ size: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2014
+ return undefined; if (Array.isArray(v))
2015
+ return v; if (typeof v === 'string')
1903
2016
  return Number(v); return v; }), z.number().gte(1).lte(4096))
1904
2017
  });
1905
2018
  export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
@@ -1910,11 +2023,13 @@ export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
1910
2023
  */
1911
2024
  export const svgshapesSvgLineShapeSchema = z.object({
1912
2025
  type: z.enum(['line']),
1913
- length: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1914
- return undefined; if (typeof v === 'string')
2026
+ length: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2027
+ return undefined; if (Array.isArray(v))
2028
+ return v; if (typeof v === 'string')
1915
2029
  return Number(v); return v; }), z.number().gte(1).lte(4096)),
1916
- thickness: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1917
- return undefined; if (typeof v === 'string')
2030
+ thickness: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2031
+ return undefined; if (Array.isArray(v))
2032
+ return v; if (typeof v === 'string')
1918
2033
  return Number(v); return v; }), z.number().gte(1).lte(500))
1919
2034
  });
1920
2035
  export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
@@ -1948,11 +2063,13 @@ export const svgPathShapeSchema = svgshapesSvgPathShapeSchema;
1948
2063
  */
1949
2064
  export const svgshapesSvgPolygonShapeSchema = z.object({
1950
2065
  type: z.enum(['polygon']),
1951
- sides: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1952
- return undefined; if (typeof v === 'string')
2066
+ sides: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2067
+ return undefined; if (Array.isArray(v))
2068
+ return v; if (typeof v === 'string')
1953
2069
  return Number(v); return v; }), z.number().int().gte(3).lte(100)),
1954
- radius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1955
- return undefined; if (typeof v === 'string')
2070
+ radius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2071
+ return undefined; if (Array.isArray(v))
2072
+ return v; if (typeof v === 'string')
1956
2073
  return Number(v); return v; }), z.number().gte(1).lte(2048))
1957
2074
  });
1958
2075
  export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
@@ -1963,14 +2080,17 @@ export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
1963
2080
  */
1964
2081
  export const svgshapesSvgRectangleShapeSchema = z.object({
1965
2082
  type: z.enum(['rectangle']),
1966
- width: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1967
- return undefined; if (typeof v === 'string')
2083
+ width: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2084
+ return undefined; if (Array.isArray(v))
2085
+ return v; if (typeof v === 'string')
1968
2086
  return Number(v); return v; }), z.number().gte(1).lte(4096)),
1969
- height: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1970
- return undefined; if (typeof v === 'string')
2087
+ height: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2088
+ return undefined; if (Array.isArray(v))
2089
+ return v; if (typeof v === 'string')
1971
2090
  return Number(v); return v; }), z.number().gte(1).lte(4096)),
1972
- cornerRadius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1973
- return undefined; if (typeof v === 'string')
2091
+ cornerRadius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2092
+ return undefined; if (Array.isArray(v))
2093
+ return v; if (typeof v === 'string')
1974
2094
  return Number(v); return v; }), z.number().gte(0).lte(2048))).default(0)
1975
2095
  });
1976
2096
  export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
@@ -1981,11 +2101,13 @@ export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
1981
2101
  */
1982
2102
  export const svgshapesSvgRingShapeSchema = z.object({
1983
2103
  type: z.enum(['ring']),
1984
- outerRadius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1985
- return undefined; if (typeof v === 'string')
2104
+ outerRadius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2105
+ return undefined; if (Array.isArray(v))
2106
+ return v; if (typeof v === 'string')
1986
2107
  return Number(v); return v; }), z.number().gte(1).lte(2048)),
1987
- innerRadius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
1988
- return undefined; if (typeof v === 'string')
2108
+ innerRadius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2109
+ return undefined; if (Array.isArray(v))
2110
+ return v; if (typeof v === 'string')
1989
2111
  return Number(v); return v; }), z.number().gte(0).lte(2048))
1990
2112
  });
1991
2113
  export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
@@ -1997,14 +2119,17 @@ export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
1997
2119
  */
1998
2120
  export const svgshapesSvgStarShapeSchema = z.object({
1999
2121
  type: z.enum(['star']),
2000
- points: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2001
- return undefined; if (typeof v === 'string')
2122
+ points: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2123
+ return undefined; if (Array.isArray(v))
2124
+ return v; if (typeof v === 'string')
2002
2125
  return Number(v); return v; }), z.number().int().gte(3).lte(100)),
2003
- outerRadius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2004
- return undefined; if (typeof v === 'string')
2126
+ outerRadius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2127
+ return undefined; if (Array.isArray(v))
2128
+ return v; if (typeof v === 'string')
2005
2129
  return Number(v); return v; }), z.number().gte(1).lte(2048)),
2006
- innerRadius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2007
- return undefined; if (typeof v === 'string')
2130
+ innerRadius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2131
+ return undefined; if (Array.isArray(v))
2132
+ return v; if (typeof v === 'string')
2008
2133
  return Number(v); return v; }), z.number().gte(1).lte(2048))
2009
2134
  });
2010
2135
  export const svgStarShapeSchema = svgshapesSvgStarShapeSchema;
@@ -2079,20 +2204,26 @@ export const svgassetSvgAssetSchema = z.object({
2079
2204
  stroke: z.optional(svgpropertiesSvgStrokeSchema),
2080
2205
  shadow: z.optional(svgpropertiesSvgShadowSchema),
2081
2206
  transform: z.optional(svgpropertiesSvgTransformSchema),
2082
- opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2083
- return undefined; if (typeof v === 'string')
2084
- return Number(v); return v; }), z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2085
- return undefined; if (typeof v === 'string')
2207
+ opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2208
+ return undefined; if (Array.isArray(v))
2209
+ return v; if (typeof v === 'string')
2210
+ return Number(v); return v; }), z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2211
+ return undefined; if (Array.isArray(v))
2212
+ return v; if (typeof v === 'string')
2086
2213
  return Number(v); return v; }), z.number().gte(0).lte(1)))).default(1),
2087
- width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2088
- return undefined; if (typeof v === 'string')
2089
- return Number(v); return v; }), z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2090
- return undefined; if (typeof v === 'string')
2214
+ width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2215
+ return undefined; if (Array.isArray(v))
2216
+ return v; if (typeof v === 'string')
2217
+ return Number(v); return v; }), z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2218
+ return undefined; if (Array.isArray(v))
2219
+ return v; if (typeof v === 'string')
2091
2220
  return Number(v); return v; }), z.number().int().gte(1).lte(4096)))),
2092
- height: z.optional(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; }), z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2095
- return undefined; if (typeof v === 'string')
2221
+ height: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2222
+ return undefined; if (Array.isArray(v))
2223
+ return v; if (typeof v === 'string')
2224
+ return Number(v); return v; }), z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2225
+ return undefined; if (Array.isArray(v))
2226
+ return v; if (typeof v === 'string')
2096
2227
  return Number(v); return v; }), z.number().int().gte(1).lte(4096)))),
2097
2228
  }).superRefine((data, ctx) => {
2098
2229
  const hasShape = data.shape !== undefined;
@@ -2154,8 +2285,9 @@ export const textAlignmentSchema = textpropertiesTextAlignmentSchema;
2154
2285
  */
2155
2286
  export const textpropertiesTextAnimationSchema = z.object({
2156
2287
  preset: z.enum(['typewriter']),
2157
- duration: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2158
- return undefined; if (typeof v === 'string')
2288
+ duration: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2289
+ return undefined; if (Array.isArray(v))
2290
+ return v; if (typeof v === 'string')
2159
2291
  return Number(v); return v; }), z.number().gte(0.1).lte(30)))
2160
2292
  });
2161
2293
  /**
@@ -2163,14 +2295,17 @@ export const textpropertiesTextAnimationSchema = z.object({
2163
2295
  */
2164
2296
  export const textpropertiesTextBackgroundSchema = z.object({
2165
2297
  color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
2166
- opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2167
- return undefined; if (typeof v === 'string')
2298
+ opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2299
+ return undefined; if (Array.isArray(v))
2300
+ return v; if (typeof v === 'string')
2168
2301
  return Number(v); return v; }), z.number().gte(0).lte(1))),
2169
- padding: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2170
- return undefined; if (typeof v === 'string')
2302
+ padding: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2303
+ return undefined; if (Array.isArray(v))
2304
+ return v; if (typeof v === 'string')
2171
2305
  return Number(v); return v; }), z.number().gte(0).lte(100))),
2172
- borderRadius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2173
- return undefined; if (typeof v === 'string')
2306
+ borderRadius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2307
+ return undefined; if (Array.isArray(v))
2308
+ return v; if (typeof v === 'string')
2174
2309
  return Number(v); return v; }), z.number().gte(0)))
2175
2310
  });
2176
2311
  export const textBackgroundSchema = textpropertiesTextBackgroundSchema;
@@ -2180,17 +2315,21 @@ export const textBackgroundSchema = textpropertiesTextBackgroundSchema;
2180
2315
  export const textpropertiesTextFontSchema = z.object({
2181
2316
  family: z.optional(z.string()),
2182
2317
  color: z.optional(z.string()),
2183
- opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2184
- return undefined; if (typeof v === 'string')
2318
+ opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2319
+ return undefined; if (Array.isArray(v))
2320
+ return v; if (typeof v === 'string')
2185
2321
  return Number(v); return v; }), z.number())),
2186
- size: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2187
- return undefined; if (typeof v === 'string')
2322
+ size: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2323
+ return undefined; if (Array.isArray(v))
2324
+ return v; if (typeof v === 'string')
2188
2325
  return Number(v); return v; }), z.number().int())),
2189
- weight: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2190
- return undefined; if (typeof v === 'string')
2326
+ weight: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2327
+ return undefined; if (Array.isArray(v))
2328
+ return v; if (typeof v === 'string')
2191
2329
  return Number(v); return v; }), z.number().int())),
2192
- lineHeight: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2193
- return undefined; if (typeof v === 'string')
2330
+ lineHeight: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2331
+ return undefined; if (Array.isArray(v))
2332
+ return v; if (typeof v === 'string')
2194
2333
  return Number(v); return v; }), z.number()))
2195
2334
  });
2196
2335
  export const textFontSchema = textpropertiesTextFontSchema;
@@ -2198,8 +2337,9 @@ export const textFontSchema = textpropertiesTextFontSchema;
2198
2337
  * Text stroke (outline) properties.
2199
2338
  */
2200
2339
  export const textpropertiesTextStrokeSchema = z.object({
2201
- width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2202
- return undefined; if (typeof v === 'string')
2340
+ width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2341
+ return undefined; if (Array.isArray(v))
2342
+ return v; if (typeof v === 'string')
2203
2343
  return Number(v); return v; }), z.number().gte(0).lte(10))),
2204
2344
  color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/))
2205
2345
  });
@@ -2211,11 +2351,13 @@ export const textpropertiesTextStrokeSchema = z.object({
2211
2351
  export const textassetTextAssetSchema = z.object({
2212
2352
  type: z.enum(['text']),
2213
2353
  text: z.string(),
2214
- width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2215
- return undefined; if (typeof v === 'string')
2354
+ width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2355
+ return undefined; if (Array.isArray(v))
2356
+ return v; if (typeof v === 'string')
2216
2357
  return Number(v); return v; }), z.number().int())),
2217
- height: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2218
- return undefined; if (typeof v === 'string')
2358
+ height: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2359
+ return undefined; if (Array.isArray(v))
2360
+ return v; if (typeof v === 'string')
2219
2361
  return Number(v); return v; }), z.number().int())),
2220
2362
  font: z.optional(textpropertiesTextFontSchema),
2221
2363
  background: z.optional(textpropertiesTextBackgroundSchema),
@@ -2231,11 +2373,13 @@ export const textAssetSchema = textassetTextAssetSchema;
2231
2373
  export const texttoimageassetTextToImageAssetSchema = z.object({
2232
2374
  type: z.enum(['text-to-image']),
2233
2375
  prompt: z.string(),
2234
- width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2235
- return undefined; if (typeof v === 'string')
2376
+ width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2377
+ return undefined; if (Array.isArray(v))
2378
+ return v; if (typeof v === 'string')
2236
2379
  return Number(v); return v; }), z.number().int())),
2237
- height: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2238
- return undefined; if (typeof v === 'string')
2380
+ height: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2381
+ return undefined; if (Array.isArray(v))
2382
+ return v; if (typeof v === 'string')
2239
2383
  return Number(v); return v; }), z.number().int())),
2240
2384
  crop: z.optional(cropCropSchema)
2241
2385
  });
@@ -2244,11 +2388,13 @@ export const textToImageAssetSchema = texttoimageassetTextToImageAssetSchema;
2244
2388
  * Generate a thumbnail image for the video or image at a specific point from the timeline.
2245
2389
  */
2246
2390
  export const thumbnailThumbnailSchema = z.object({
2247
- capture: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2248
- return undefined; if (typeof v === 'string')
2391
+ capture: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2392
+ return undefined; if (Array.isArray(v))
2393
+ return v; if (typeof v === 'string')
2249
2394
  return Number(v); return v; }), z.number()),
2250
- scale: z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2251
- return undefined; if (typeof v === 'string')
2395
+ scale: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2396
+ return undefined; if (Array.isArray(v))
2397
+ return v; if (typeof v === 'string')
2252
2398
  return Number(v); return v; }), z.number().gte(0).lte(1))
2253
2399
  });
2254
2400
  export const thumbnailSchema = thumbnailThumbnailSchema;
@@ -2463,11 +2609,13 @@ export const transitionSchema = transitionTransitionSchema;
2463
2609
  export const tweenTweenSchema = z.object({
2464
2610
  from: z.optional(z.unknown()),
2465
2611
  to: z.optional(z.unknown()),
2466
- start: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2467
- return undefined; if (typeof v === 'string')
2612
+ start: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2613
+ return undefined; if (Array.isArray(v))
2614
+ return v; if (typeof v === 'string')
2468
2615
  return Number(v); return v; }), z.number())),
2469
- length: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2470
- return undefined; if (typeof v === 'string')
2616
+ length: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2617
+ return undefined; if (Array.isArray(v))
2618
+ return v; if (typeof v === 'string')
2471
2619
  return Number(v); return v; }), z.number())),
2472
2620
  interpolation: z.optional(z.enum([
2473
2621
  'linear',
@@ -2512,17 +2660,20 @@ export const tweenSchema = tweenTweenSchema;
2512
2660
  export const audioassetAudioAssetSchema = z.object({
2513
2661
  type: z.enum(['audio']),
2514
2662
  src: z.string(),
2515
- trim: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2516
- return undefined; if (typeof v === 'string')
2663
+ trim: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2664
+ return undefined; if (Array.isArray(v))
2665
+ return v; if (typeof v === 'string')
2517
2666
  return Number(v); return v; }), z.number())),
2518
2667
  volume: z.optional(z.union([
2519
- z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2520
- return undefined; if (typeof v === 'string')
2668
+ z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2669
+ return undefined; if (Array.isArray(v))
2670
+ return v; if (typeof v === 'string')
2521
2671
  return Number(v); return v; }), z.number().gte(0).lte(1)),
2522
2672
  z.array(tweenTweenSchema)
2523
2673
  ])),
2524
- speed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2525
- return undefined; if (typeof v === 'string')
2674
+ speed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2675
+ return undefined; if (Array.isArray(v))
2676
+ return v; if (typeof v === 'string')
2526
2677
  return Number(v); return v; }), z.number().gte(0).lte(10))),
2527
2678
  effect: z.optional(z.enum([
2528
2679
  'none',
@@ -2537,14 +2688,16 @@ export const audioAssetSchema = audioassetAudioAssetSchema;
2537
2688
  */
2538
2689
  export const offsetOffsetSchema = z.object({
2539
2690
  x: z.optional(z.union([
2540
- z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2541
- return undefined; if (typeof v === 'string')
2691
+ z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2692
+ return undefined; if (Array.isArray(v))
2693
+ return v; if (typeof v === 'string')
2542
2694
  return Number(v); return v; }), z.number().gte(-10).lte(10)),
2543
2695
  z.array(tweenTweenSchema)
2544
2696
  ])),
2545
2697
  y: z.optional(z.union([
2546
- z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2547
- return undefined; if (typeof v === 'string')
2698
+ z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2699
+ return undefined; if (Array.isArray(v))
2700
+ return v; if (typeof v === 'string')
2548
2701
  return Number(v); return v; }), z.number().gte(-10).lte(10)),
2549
2702
  z.array(tweenTweenSchema)
2550
2703
  ]))
@@ -2555,8 +2708,9 @@ export const offsetSchema = offsetOffsetSchema;
2555
2708
  */
2556
2709
  export const rotatetransformationRotateTransformationSchema = z.object({
2557
2710
  angle: z.optional(z.union([
2558
- z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2559
- return undefined; if (typeof v === 'string')
2711
+ z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2712
+ return undefined; if (Array.isArray(v))
2713
+ return v; if (typeof v === 'string')
2560
2714
  return Number(v); return v; }), z.number().gte(-360).lte(360)),
2561
2715
  z.array(tweenTweenSchema)
2562
2716
  ]))
@@ -2567,14 +2721,16 @@ export const rotateTransformationSchema = rotatetransformationRotateTransformati
2567
2721
  */
2568
2722
  export const skewtransformationSkewTransformationSchema = z.object({
2569
2723
  x: z.optional(z.union([
2570
- z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2571
- return undefined; if (typeof v === 'string')
2724
+ z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2725
+ return undefined; if (Array.isArray(v))
2726
+ return v; if (typeof v === 'string')
2572
2727
  return Number(v); return v; }), z.number().gte(-100).lte(100)),
2573
2728
  z.array(tweenTweenSchema)
2574
2729
  ])),
2575
2730
  y: z.optional(z.union([
2576
- z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2577
- return undefined; if (typeof v === 'string')
2731
+ z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2732
+ return undefined; if (Array.isArray(v))
2733
+ return v; if (typeof v === 'string')
2578
2734
  return Number(v); return v; }), z.number().gte(-100).lte(100)),
2579
2735
  z.array(tweenTweenSchema)
2580
2736
  ]))
@@ -2644,12 +2800,14 @@ export const videoassetVideoAssetSchema = z.object({
2644
2800
  type: z.enum(['video']),
2645
2801
  src: z.string(),
2646
2802
  transcode: z.optional(z.boolean()),
2647
- trim: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2648
- return undefined; if (typeof v === 'string')
2803
+ trim: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2804
+ return undefined; if (Array.isArray(v))
2805
+ return v; if (typeof v === 'string')
2649
2806
  return Number(v); return v; }), z.number())),
2650
2807
  volume: z.optional(z.union([
2651
- z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2652
- return undefined; if (typeof v === 'string')
2808
+ z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2809
+ return undefined; if (Array.isArray(v))
2810
+ return v; if (typeof v === 'string')
2653
2811
  return Number(v); return v; }), z.number().gte(0).lte(1)),
2654
2812
  z.array(tweenTweenSchema)
2655
2813
  ])),
@@ -2659,8 +2817,9 @@ export const videoassetVideoAssetSchema = z.object({
2659
2817
  'fadeOut',
2660
2818
  'fadeInFadeOut'
2661
2819
  ])),
2662
- speed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2663
- return undefined; if (typeof v === 'string')
2820
+ speed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2821
+ return undefined; if (Array.isArray(v))
2822
+ return v; if (typeof v === 'string')
2664
2823
  return Number(v); return v; }), z.number().gte(0).lte(10))),
2665
2824
  crop: z.optional(cropCropSchema),
2666
2825
  chromaKey: z.optional(chromakeyChromaKeySchema)
@@ -2691,14 +2850,16 @@ export const assetSchema = assetAssetSchema;
2691
2850
  export const clipClipSchema = z.object({
2692
2851
  asset: assetAssetSchema,
2693
2852
  start: z.union([
2694
- z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2695
- return undefined; if (typeof v === 'string')
2853
+ z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2854
+ return undefined; if (Array.isArray(v))
2855
+ return v; if (typeof v === 'string')
2696
2856
  return Number(v); return v; }), z.number()),
2697
2857
  z.enum(['auto'])
2698
2858
  ]),
2699
2859
  length: z.union([
2700
- z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2701
- return undefined; if (typeof v === 'string')
2860
+ z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2861
+ return undefined; if (Array.isArray(v))
2862
+ return v; if (typeof v === 'string')
2702
2863
  return Number(v); return v; }), z.number()),
2703
2864
  z.literal('auto'),
2704
2865
  z.literal('end')
@@ -2709,14 +2870,20 @@ export const clipClipSchema = z.object({
2709
2870
  'crop',
2710
2871
  'none'
2711
2872
  ])),
2712
- scale: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2713
- return undefined; if (typeof v === 'string')
2714
- return Number(v); return v; }), z.number())),
2715
- width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2716
- return undefined; if (typeof v === 'string')
2873
+ scale: z.optional(z.union([
2874
+ z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2875
+ return undefined; if (Array.isArray(v))
2876
+ return v; if (typeof v === 'string')
2877
+ return Number(v); return v; }), z.number()),
2878
+ z.array(tweenTweenSchema)
2879
+ ])),
2880
+ width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2881
+ return undefined; if (Array.isArray(v))
2882
+ return v; if (typeof v === 'string')
2717
2883
  return Number(v); return v; }), z.number().int().gte(1).lte(3840))),
2718
- height: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2719
- return undefined; if (typeof v === 'string')
2884
+ height: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2885
+ return undefined; if (Array.isArray(v))
2886
+ return v; if (typeof v === 'string')
2720
2887
  return Number(v); return v; }), z.number().int().gte(1).lte(2160))),
2721
2888
  position: z.optional(z.enum([
2722
2889
  'top',
@@ -2763,8 +2930,9 @@ export const clipClipSchema = z.object({
2763
2930
  'negative'
2764
2931
  ])),
2765
2932
  opacity: z.optional(z.union([
2766
- z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2767
- return undefined; if (typeof v === 'string')
2933
+ z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2934
+ return undefined; if (Array.isArray(v))
2935
+ return v; if (typeof v === 'string')
2768
2936
  return Number(v); return v; }), z.number()),
2769
2937
  z.array(tweenTweenSchema)
2770
2938
  ])),
@@ -2818,11 +2986,13 @@ export const renderresponsedataRenderResponseDataSchema = z.object({
2818
2986
  'failed'
2819
2987
  ]),
2820
2988
  error: z.optional(z.string()),
2821
- duration: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2822
- return undefined; if (typeof v === 'string')
2989
+ duration: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2990
+ return undefined; if (Array.isArray(v))
2991
+ return v; if (typeof v === 'string')
2823
2992
  return Number(v); return v; }), z.number())),
2824
- renderTime: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined || Array.isArray(v))
2825
- return undefined; if (typeof v === 'string')
2993
+ renderTime: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2994
+ return undefined; if (Array.isArray(v))
2995
+ return v; if (typeof v === 'string')
2826
2996
  return Number(v); return v; }), z.number())),
2827
2997
  url: z.optional(z.string()),
2828
2998
  poster: z.optional(z.union([