@shotstack/schemas 1.4.8 → 1.5.1

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.
@@ -39,10 +39,10 @@ export const uploadRootSchema = z.unknown();
39
39
  */
40
40
  export const captionpropertiesCaptionBackgroundSchema = z.object({
41
41
  color: z.optional(z.string()),
42
- opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
43
- padding: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
44
- borderRadius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
45
- });
42
+ opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
43
+ padding: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
44
+ borderRadius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
45
+ }).strict();
46
46
 
47
47
  export const captionBackgroundSchema = captionpropertiesCaptionBackgroundSchema;
48
48
 
@@ -52,12 +52,12 @@ export const captionBackgroundSchema = captionpropertiesCaptionBackgroundSchema;
52
52
  export const captionpropertiesCaptionFontSchema = z.object({
53
53
  family: z.optional(z.string()),
54
54
  color: z.optional(z.string()),
55
- opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
56
- size: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
57
- lineHeight: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
55
+ opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
56
+ size: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
57
+ lineHeight: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
58
58
  stroke: z.optional(z.string()),
59
- strokeWidth: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
60
- });
59
+ strokeWidth: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
60
+ }).strict();
61
61
 
62
62
  export const captionFontSchema = captionpropertiesCaptionFontSchema;
63
63
 
@@ -65,10 +65,11 @@ export const captionFontSchema = captionpropertiesCaptionFontSchema;
65
65
  * The margin properties for captions. Margins are used to position the caption text and background on the screen.
66
66
  */
67
67
  export const captionpropertiesCaptionMarginSchema = z.object({
68
- top: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
69
- left: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
70
- right: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
71
- });
68
+ top: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
69
+ bottom: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
70
+ left: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
71
+ right: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
72
+ }).strict();
72
73
 
73
74
  export const captionMarginSchema = captionpropertiesCaptionMarginSchema;
74
75
 
@@ -86,13 +87,13 @@ export const captionMarginSchema = captionpropertiesCaptionMarginSchema;
86
87
  */
87
88
  export const captionassetCaptionAssetSchema = z.object({
88
89
  type: z.enum(["caption"]),
89
- src: z.string().min(1).regex(/\S/),
90
+ src: z.string().regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").min(1).regex(/\S/),
90
91
  font: z.optional(captionpropertiesCaptionFontSchema),
91
92
  background: z.optional(captionpropertiesCaptionBackgroundSchema),
92
93
  margin: z.optional(captionpropertiesCaptionMarginSchema),
93
- trim: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
94
- speed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10))),
95
- });
94
+ trim: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
95
+ speed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10)))),
96
+ }).strict();
96
97
 
97
98
  export const captionAssetSchema = captionassetCaptionAssetSchema;
98
99
 
@@ -101,9 +102,9 @@ export const captionAssetSchema = captionassetCaptionAssetSchema;
101
102
  */
102
103
  export const chromakeyChromaKeySchema = z.object({
103
104
  color: z.string().regex(/^#[0-9a-fA-F]{6}$/),
104
- threshold: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(0).lte(250))),
105
- halo: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(0).lte(250))),
106
- });
105
+ threshold: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(0).lte(250)))),
106
+ halo: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(0).lte(250)))),
107
+ }).strict();
107
108
 
108
109
  export const chromaKeySchema = chromakeyChromaKeySchema;
109
110
 
@@ -115,7 +116,7 @@ export const didTextToAvatarOptionsDidTextToAvatarOptionsSchema = z.object({
115
116
  text: z.string(),
116
117
  avatar: z.enum(["jack", "lana", "lily", "matt", "rian"]),
117
118
  background: z.optional(z.string()),
118
- });
119
+ }).strict();
119
120
 
120
121
  export const didTextToAvatarOptionsSchema =
121
122
  didTextToAvatarOptionsDidTextToAvatarOptionsSchema;
@@ -127,11 +128,7 @@ export const didTextToAvatarOptionsSchema =
127
128
  * <li><a href="#tocs_didtexttoavataroptions">DidTextToAvatarOptions</a></li>
128
129
  * </ul>
129
130
  */
130
- export const didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = z
131
- .object({
132
- type: z.literal("didTextToAvatarOptions_DIDTextToAvatarOptions"),
133
- })
134
- .and(didTextToAvatarOptionsDidTextToAvatarOptionsSchema);
131
+ export const didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = didTextToAvatarOptionsDidTextToAvatarOptionsSchema.extend({ type: z.literal("didTextToAvatarOptions_DIDTextToAvatarOptions") }).strict();
135
132
 
136
133
  export const didGeneratedAssetOptionsSchema =
137
134
  didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema;
@@ -142,7 +139,7 @@ export const didGeneratedAssetOptionsSchema =
142
139
  export const didGeneratedAssetDidGeneratedAssetSchema = z.object({
143
140
  provider: z.enum(["d-id"]),
144
141
  options: didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema,
145
- });
142
+ }).strict();
146
143
 
147
144
  export const didGeneratedAssetSchema = didGeneratedAssetDidGeneratedAssetSchema;
148
145
 
@@ -164,7 +161,7 @@ export const elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema =
164
161
  "Rachel",
165
162
  "Sam",
166
163
  ]),
167
- });
164
+ }).strict();
168
165
 
169
166
  export const elevenLabsTextToSpeechOptionsSchema =
170
167
  elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema;
@@ -177,13 +174,7 @@ export const elevenLabsTextToSpeechOptionsSchema =
177
174
  * </ul>
178
175
  */
179
176
  export const elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema =
180
- z
181
- .object({
182
- type: z.literal(
183
- "elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions",
184
- ),
185
- })
186
- .and(elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema);
177
+ elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema.extend({ type: z.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions") }).strict();
187
178
 
188
179
  export const elevenLabsGeneratedAssetOptionsSchema =
189
180
  elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema;
@@ -194,7 +185,7 @@ export const elevenLabsGeneratedAssetOptionsSchema =
194
185
  export const elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema = z.object({
195
186
  provider: z.enum(["elevenlabs"]),
196
187
  options: elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema,
197
- });
188
+ }).strict();
198
189
 
199
190
  export const elevenLabsGeneratedAssetSchema =
200
191
  elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema;
@@ -323,7 +314,7 @@ export const heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema =
323
314
  background: z.optional(z.string()),
324
315
  ratio: z.optional(z.enum(["16:9", "9:16"])),
325
316
  test: z.optional(z.boolean()),
326
- });
317
+ }).strict();
327
318
 
328
319
  export const heyGenTextToAvatarOptionsSchema =
329
320
  heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema;
@@ -335,11 +326,7 @@ export const heyGenTextToAvatarOptionsSchema =
335
326
  * <li><a href="#tocs_heygentexttoavataroptions">HeyGenTextToAvatarOptions</a></li>
336
327
  * </ul>
337
328
  */
338
- export const heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = z
339
- .object({
340
- type: z.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions"),
341
- })
342
- .and(heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema);
329
+ export const heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema.extend({ type: z.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions") }).strict();
343
330
 
344
331
  export const heyGenGeneratedAssetOptionsSchema =
345
332
  heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema;
@@ -350,7 +337,7 @@ export const heyGenGeneratedAssetOptionsSchema =
350
337
  export const heygenGeneratedAssetHeyGenGeneratedAssetSchema = z.object({
351
338
  provider: z.enum(["heygen"]),
352
339
  options: heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema,
353
- });
340
+ }).strict();
354
341
 
355
342
  export const heyGenGeneratedAssetSchema =
356
343
  heygenGeneratedAssetHeyGenGeneratedAssetSchema;
@@ -364,7 +351,7 @@ export const openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema =
364
351
  prompt: z.string(),
365
352
  model: z.enum(["gpt-3.5-turbo", "gpt-4"]),
366
353
  systemPrompt: z.optional(z.string()),
367
- });
354
+ }).strict();
368
355
 
369
356
  export const openAiTextGeneratorOptionsSchema =
370
357
  openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema;
@@ -376,11 +363,7 @@ export const openAiTextGeneratorOptionsSchema =
376
363
  * <li><a href="#tocs_openaitextgeneratoroptions">OpenAiTextGeneratorOptions</a></li>
377
364
  * </ul>
378
365
  */
379
- export const openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = z
380
- .object({
381
- type: z.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions"),
382
- })
383
- .and(openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema);
366
+ export const openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema.extend({ type: z.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions") }).strict();
384
367
 
385
368
  export const openAiGeneratedAssetOptionsSchema =
386
369
  openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema;
@@ -391,7 +374,7 @@ export const openAiGeneratedAssetOptionsSchema =
391
374
  export const openaiGeneratedAssetOpenAiGeneratedAssetSchema = z.object({
392
375
  provider: z.enum(["openai"]),
393
376
  options: openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema,
394
- });
377
+ }).strict();
395
378
 
396
379
  export const openAiGeneratedAssetSchema =
397
380
  openaiGeneratedAssetOpenAiGeneratedAssetSchema;
@@ -404,7 +387,7 @@ export const generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchem
404
387
  status: z.string(),
405
388
  title: z.string(),
406
389
  detail: z.string(),
407
- });
390
+ }).strict();
408
391
 
409
392
  export const generatedAssetErrorResponseDataSchema =
410
393
  generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema;
@@ -417,7 +400,7 @@ export const generatedAssetErrorResponseGeneratedAssetErrorResponseSchema =
417
400
  errors: z.array(
418
401
  generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema,
419
402
  ),
420
- });
403
+ }).strict();
421
404
 
422
405
  export const generatedAssetErrorResponseSchema =
423
406
  generatedAssetErrorResponseGeneratedAssetErrorResponseSchema;
@@ -434,7 +417,7 @@ export const generatedAssetResponseAttributesGeneratedAssetResponseAttributesSch
434
417
  status: z.enum(["queued", "processing", "saving", "done", "failed"]),
435
418
  created: z.string(),
436
419
  updated: z.string(),
437
- });
420
+ }).strict();
438
421
 
439
422
  export const generatedAssetResponseAttributesSchema =
440
423
  generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema;
@@ -448,7 +431,7 @@ export const generatedAssetResponseDataGeneratedAssetResponseDataSchema =
448
431
  id: z.string(),
449
432
  attributes:
450
433
  generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema,
451
- });
434
+ }).strict();
452
435
 
453
436
  export const generatedAssetResponseDataSchema =
454
437
  generatedAssetResponseDataGeneratedAssetResponseDataSchema;
@@ -458,7 +441,7 @@ export const generatedAssetResponseDataSchema =
458
441
  */
459
442
  export const generatedAssetResponseGeneratedAssetResponseSchema = z.object({
460
443
  data: generatedAssetResponseDataGeneratedAssetResponseDataSchema,
461
- });
444
+ }).strict();
462
445
 
463
446
  export const generatedAssetResponseSchema =
464
447
  generatedAssetResponseGeneratedAssetResponseSchema;
@@ -470,9 +453,9 @@ export const shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema =
470
453
  z.object({
471
454
  type: z.enum(["image-to-video"]),
472
455
  imageUrl: z.string(),
473
- guidanceScale: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())).default(1.8),
474
- motion: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())).default(127),
475
- });
456
+ guidanceScale: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))).default(1.8),
457
+ motion: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))).default(127),
458
+ }).strict();
476
459
 
477
460
  export const shotstackImageToVideoOptionsSchema =
478
461
  shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema;
@@ -484,7 +467,7 @@ export const shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema =
484
467
  z.object({
485
468
  type: z.enum(["text-generator"]),
486
469
  prompt: z.string(),
487
- });
470
+ }).strict();
488
471
 
489
472
  export const shotstackTextGeneratorOptionsSchema =
490
473
  shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema;
@@ -496,9 +479,9 @@ export const shotstackTextToImageOptionsShotstackTextToImageOptionsSchema =
496
479
  z.object({
497
480
  type: z.enum(["text-to-image"]),
498
481
  prompt: z.string(),
499
- width: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()),
500
- height: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()),
501
- });
482
+ width: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
483
+ height: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
484
+ }).strict();
502
485
 
503
486
  export const shotstackTextToImageOptionsSchema =
504
487
  shotstackTextToImageOptionsShotstackTextToImageOptionsSchema;
@@ -603,7 +586,7 @@ export const shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema =
603
586
  ]),
604
587
  ),
605
588
  newscaster: z.optional(z.boolean()).default(false),
606
- });
589
+ }).strict();
607
590
 
608
591
  export const shotstackTextToSpeechOptionsSchema =
609
592
  shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema;
@@ -613,34 +596,10 @@ export const shotstackTextToSpeechOptionsSchema =
613
596
  */
614
597
  export const shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema =
615
598
  z.union([
616
- z
617
- .object({
618
- type: z.literal(
619
- "shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions",
620
- ),
621
- })
622
- .and(shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema),
623
- z
624
- .object({
625
- type: z.literal(
626
- "shotstackTextToImageOptions_ShotstackTextToImageOptions",
627
- ),
628
- })
629
- .and(shotstackTextToImageOptionsShotstackTextToImageOptionsSchema),
630
- z
631
- .object({
632
- type: z.literal(
633
- "shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions",
634
- ),
635
- })
636
- .and(shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema),
637
- z
638
- .object({
639
- type: z.literal(
640
- "shotstackImageToVideoOptions_ShotstackImageToVideoOptions",
641
- ),
642
- })
643
- .and(shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema),
599
+ shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema.extend({ type: z.literal("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions") }).strict(),
600
+ shotstackTextToImageOptionsShotstackTextToImageOptionsSchema.extend({ type: z.literal("shotstackTextToImageOptions_ShotstackTextToImageOptions") }).strict(),
601
+ shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema.extend({ type: z.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions") }).strict(),
602
+ shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema.extend({ type: z.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions") }).strict(),
644
603
  ]);
645
604
 
646
605
  export const shotstackGeneratedAssetOptionsSchema =
@@ -652,7 +611,7 @@ export const shotstackGeneratedAssetOptionsSchema =
652
611
  export const shotstackGeneratedAssetShotstackGeneratedAssetSchema = z.object({
653
612
  provider: z.enum(["shotstack"]),
654
613
  options: shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema,
655
- });
614
+ }).strict();
656
615
 
657
616
  export const shotstackGeneratedAssetSchema =
658
617
  shotstackGeneratedAssetShotstackGeneratedAssetSchema;
@@ -673,11 +632,11 @@ export const stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema =
673
632
  "stable-diffusion-xl-beta-v2-2-2",
674
633
  ]),
675
634
  ),
676
- width: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()),
677
- height: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()),
678
- steps: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())).default(30),
679
- seed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())).default(0),
680
- cfgScale: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())).default(7),
635
+ width: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
636
+ height: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
637
+ steps: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))).default(30),
638
+ seed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))).default(0),
639
+ cfgScale: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))).default(7),
681
640
  stylePreset: z.optional(
682
641
  z.enum([
683
642
  "3d-model",
@@ -699,7 +658,7 @@ export const stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema =
699
658
  "tile-texture",
700
659
  ]),
701
660
  ),
702
- });
661
+ }).strict();
703
662
 
704
663
  export const stabilityAiTextToImageOptionsSchema =
705
664
  stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema;
@@ -712,13 +671,7 @@ export const stabilityAiTextToImageOptionsSchema =
712
671
  * </ul>
713
672
  */
714
673
  export const stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema =
715
- z
716
- .object({
717
- type: z.literal(
718
- "stabilityAiTextToImageOptions_StabilityAiTextToImageOptions",
719
- ),
720
- })
721
- .and(stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema);
674
+ stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema.extend({ type: z.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions") }).strict();
722
675
 
723
676
  export const stabilityAiGeneratedAssetOptionsSchema =
724
677
  stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema;
@@ -731,7 +684,7 @@ export const stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema =
731
684
  provider: z.enum(["stability-ai"]),
732
685
  options:
733
686
  stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema,
734
- });
687
+ }).strict();
735
688
 
736
689
  export const stabilityAiGeneratedAssetSchema =
737
690
  stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema;
@@ -740,38 +693,12 @@ export const stabilityAiGeneratedAssetSchema =
740
693
  * A generated asset is a media asset created by the Create API. You can use native or third party providers to generate video, audio and image files using Generative AI services like text-to-speech and text-to-avatar.
741
694
  */
742
695
  export const generatedAssetGeneratedAssetSchema = z.union([
743
- z
744
- .object({
745
- provider: z.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset"),
746
- })
747
- .and(shotstackGeneratedAssetShotstackGeneratedAssetSchema),
748
- z
749
- .object({
750
- provider: z.literal("didGeneratedAsset_DIDGeneratedAsset"),
751
- })
752
- .and(didGeneratedAssetDidGeneratedAssetSchema),
753
- z
754
- .object({
755
- provider: z.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset"),
756
- })
757
- .and(elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema),
758
- z
759
- .object({
760
- provider: z.literal("heygenGeneratedAsset_HeyGenGeneratedAsset"),
761
- })
762
- .and(heygenGeneratedAssetHeyGenGeneratedAssetSchema),
763
- z
764
- .object({
765
- provider: z.literal("openaiGeneratedAsset_OpenAiGeneratedAsset"),
766
- })
767
- .and(openaiGeneratedAssetOpenAiGeneratedAssetSchema),
768
- z
769
- .object({
770
- provider: z.literal(
771
- "stabilityAiGeneratedAsset_StabilityAiGeneratedAsset",
772
- ),
773
- })
774
- .and(stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema),
696
+ shotstackGeneratedAssetShotstackGeneratedAssetSchema.extend({ provider: z.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset") }).strict(),
697
+ didGeneratedAssetDidGeneratedAssetSchema.extend({ provider: z.literal("didGeneratedAsset_DIDGeneratedAsset") }).strict(),
698
+ elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema.extend({ provider: z.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset") }).strict(),
699
+ heygenGeneratedAssetHeyGenGeneratedAssetSchema.extend({ provider: z.literal("heygenGeneratedAsset_HeyGenGeneratedAsset") }).strict(),
700
+ openaiGeneratedAssetOpenAiGeneratedAssetSchema.extend({ provider: z.literal("openaiGeneratedAsset_OpenAiGeneratedAsset") }).strict(),
701
+ stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema.extend({ provider: z.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset") }).strict(),
775
702
  ]);
776
703
 
777
704
  export const generatedAssetSchema = generatedAssetGeneratedAssetSchema;
@@ -780,11 +707,11 @@ export const generatedAssetSchema = generatedAssetGeneratedAssetSchema;
780
707
  * 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.
781
708
  */
782
709
  export const cropCropSchema = z.object({
783
- top: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))),
784
- bottom: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))),
785
- left: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))),
786
- right: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))),
787
- });
710
+ top: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))),
711
+ bottom: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))),
712
+ left: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))),
713
+ right: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))),
714
+ }).strict();
788
715
 
789
716
  export const cropSchema = cropCropSchema;
790
717
 
@@ -796,7 +723,7 @@ export const googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOp
796
723
  bucket: z.string(),
797
724
  prefix: z.optional(z.string()),
798
725
  filename: z.optional(z.string()),
799
- });
726
+ }).strict();
800
727
 
801
728
  export const googleCloudStorageDestinationOptionsSchema =
802
729
  googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema;
@@ -810,7 +737,7 @@ export const googleCloudStorageDestinationGoogleCloudStorageDestinationSchema =
810
737
  options: z.optional(
811
738
  googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema,
812
739
  ),
813
- });
740
+ }).strict();
814
741
 
815
742
  export const googleCloudStorageDestinationSchema =
816
743
  googleCloudStorageDestinationGoogleCloudStorageDestinationSchema;
@@ -822,7 +749,7 @@ export const googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema =
822
749
  z.object({
823
750
  folderId: z.string(),
824
751
  filename: z.optional(z.string()),
825
- });
752
+ }).strict();
826
753
 
827
754
  export const googleDriveDestinationOptionsSchema =
828
755
  googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema;
@@ -833,7 +760,7 @@ export const googleDriveDestinationOptionsSchema =
833
760
  export const googleDriveDestinationGoogleDriveDestinationSchema = z.object({
834
761
  provider: z.literal("google-drive"),
835
762
  options: googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema,
836
- });
763
+ }).strict();
837
764
 
838
765
  export const googleDriveDestinationSchema =
839
766
  googleDriveDestinationGoogleDriveDestinationSchema;
@@ -844,7 +771,7 @@ export const googleDriveDestinationSchema =
844
771
  export const muxDestinationOptionsMuxDestinationOptionsSchema = z.object({
845
772
  playbackPolicy: z.optional(z.array(z.enum(["public", "signed"]))),
846
773
  passthrough: z.optional(z.string().max(255)),
847
- });
774
+ }).strict();
848
775
 
849
776
  export const muxDestinationOptionsSchema =
850
777
  muxDestinationOptionsMuxDestinationOptionsSchema;
@@ -855,7 +782,7 @@ export const muxDestinationOptionsSchema =
855
782
  export const muxDestinationMuxDestinationSchema = z.object({
856
783
  provider: z.literal("mux"),
857
784
  options: z.optional(muxDestinationOptionsMuxDestinationOptionsSchema),
858
- });
785
+ }).strict();
859
786
 
860
787
  export const muxDestinationSchema = muxDestinationMuxDestinationSchema;
861
788
 
@@ -868,7 +795,7 @@ export const s3DestinationOptionsS3DestinationOptionsSchema = z.object({
868
795
  prefix: z.optional(z.string()),
869
796
  filename: z.optional(z.string()),
870
797
  acl: z.optional(z.string()),
871
- });
798
+ }).strict();
872
799
 
873
800
  export const s3DestinationOptionsSchema =
874
801
  s3DestinationOptionsS3DestinationOptionsSchema;
@@ -879,7 +806,7 @@ export const s3DestinationOptionsSchema =
879
806
  export const s3DestinationS3DestinationSchema = z.object({
880
807
  provider: z.literal("s3"),
881
808
  options: z.optional(s3DestinationOptionsS3DestinationOptionsSchema),
882
- });
809
+ }).strict();
883
810
 
884
811
  export const s3DestinationSchema = s3DestinationS3DestinationSchema;
885
812
 
@@ -889,7 +816,7 @@ export const s3DestinationSchema = s3DestinationS3DestinationSchema;
889
816
  export const shotstackDestinationShotstackDestinationSchema = z.object({
890
817
  provider: z.literal("shotstack"),
891
818
  exclude: z.optional(z.boolean()),
892
- });
819
+ }).strict();
893
820
 
894
821
  export const shotstackDestinationSchema =
895
822
  shotstackDestinationShotstackDestinationSchema;
@@ -903,7 +830,7 @@ export const tiktokDestinationOptionsTiktokDestinationOptionsSchema = z.object({
903
830
  disableDuet: z.optional(z.boolean()).default(false),
904
831
  disableStitch: z.optional(z.boolean()).default(false),
905
832
  disableComment: z.optional(z.boolean()).default(false),
906
- });
833
+ }).strict();
907
834
 
908
835
  /**
909
836
  * Send videos to TikTok. TikTok credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/tiktok), not in the request.
@@ -911,7 +838,7 @@ export const tiktokDestinationOptionsTiktokDestinationOptionsSchema = z.object({
911
838
  export const tiktokDestinationTiktokDestinationSchema = z.object({
912
839
  provider: z.literal("tiktok"),
913
840
  options: z.optional(tiktokDestinationOptionsTiktokDestinationOptionsSchema),
914
- });
841
+ }).strict();
915
842
 
916
843
  /**
917
844
  * Options to control the visibility of videos and privacy features.
@@ -925,7 +852,7 @@ export const vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema
925
852
  comments: z.optional(z.enum(["anybody", "nobody", "contacts"])),
926
853
  download: z.optional(z.boolean()),
927
854
  add: z.optional(z.boolean()),
928
- });
855
+ }).strict();
929
856
 
930
857
  export const vimeoDestinationPrivacyOptionsSchema =
931
858
  vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema;
@@ -940,7 +867,7 @@ export const vimeoDestinationOptionsVimeoDestinationOptionsSchema = z.object({
940
867
  vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema,
941
868
  ),
942
869
  folderUri: z.optional(z.string()),
943
- });
870
+ }).strict();
944
871
 
945
872
  export const vimeoDestinationOptionsSchema =
946
873
  vimeoDestinationOptionsVimeoDestinationOptionsSchema;
@@ -951,7 +878,7 @@ export const vimeoDestinationOptionsSchema =
951
878
  export const vimeoDestinationVimeoDestinationSchema = z.object({
952
879
  provider: z.literal("vimeo"),
953
880
  options: z.optional(vimeoDestinationOptionsVimeoDestinationOptionsSchema),
954
- });
881
+ }).strict();
955
882
 
956
883
  export const vimeoDestinationSchema = vimeoDestinationVimeoDestinationSchema;
957
884
 
@@ -978,7 +905,7 @@ export const destinationsSchema = destinationsDestinationsSchema;
978
905
  export const fliptransformationFlipTransformationSchema = z.object({
979
906
  horizontal: z.optional(z.boolean()),
980
907
  vertical: z.optional(z.boolean()),
981
- });
908
+ }).strict();
982
909
 
983
910
  export const flipTransformationSchema =
984
911
  fliptransformationFlipTransformationSchema;
@@ -988,7 +915,7 @@ export const flipTransformationSchema =
988
915
  */
989
916
  export const fontFontSchema = z.object({
990
917
  src: z.string(),
991
- });
918
+ }).strict();
992
919
 
993
920
  export const fontSchema = fontFontSchema;
994
921
 
@@ -1006,8 +933,8 @@ export const htmlassetHtmlAssetSchema = z.object({
1006
933
  type: z.enum(["html"]),
1007
934
  html: z.string(),
1008
935
  css: z.optional(z.string()),
1009
- width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
1010
- height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
936
+ width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
937
+ height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
1011
938
  background: z.optional(z.string()),
1012
939
  position: z.optional(
1013
940
  z.enum([
@@ -1022,7 +949,7 @@ export const htmlassetHtmlAssetSchema = z.object({
1022
949
  "center",
1023
950
  ]),
1024
951
  ),
1025
- });
952
+ }).strict();
1026
953
 
1027
954
  export const htmlAssetSchema = htmlassetHtmlAssetSchema;
1028
955
 
@@ -1031,9 +958,9 @@ export const htmlAssetSchema = htmlassetHtmlAssetSchema;
1031
958
  */
1032
959
  export const imageassetImageAssetSchema = z.object({
1033
960
  type: z.enum(["image"]),
1034
- src: z.string().min(1).regex(/\S/),
961
+ src: z.string().regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").min(1).regex(/\S/),
1035
962
  crop: z.optional(cropCropSchema),
1036
- });
963
+ }).strict();
1037
964
 
1038
965
  export const imageAssetSchema = imageassetImageAssetSchema;
1039
966
 
@@ -1047,9 +974,9 @@ export const imagetovideoassetImageToVideoAssetSchema = z.object({
1047
974
  aspectRatio: z.optional(
1048
975
  z.enum(["1:1", "4:3", "16:9", "9:16", "3:4", "21:9", "9:21"]),
1049
976
  ),
1050
- speed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10))),
977
+ speed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10)))),
1051
978
  crop: z.optional(cropCropSchema),
1052
- });
979
+ }).strict();
1053
980
 
1054
981
  export const imageToVideoAssetSchema = imagetovideoassetImageToVideoAssetSchema;
1055
982
 
@@ -1068,7 +995,7 @@ export const dolbyEnhancementOptionsDolbyEnhancementOptionsSchema = z.object({
1068
995
  "studio",
1069
996
  "voice_over",
1070
997
  ]),
1071
- });
998
+ }).strict();
1072
999
 
1073
1000
  export const dolbyEnhancementOptionsSchema =
1074
1001
  dolbyEnhancementOptionsDolbyEnhancementOptionsSchema;
@@ -1079,7 +1006,7 @@ export const dolbyEnhancementOptionsSchema =
1079
1006
  export const dolbyEnhancementDolbyEnhancementSchema = z.object({
1080
1007
  provider: z.string().default("dolby"),
1081
1008
  options: dolbyEnhancementOptionsDolbyEnhancementOptionsSchema,
1082
- });
1009
+ }).strict();
1083
1010
 
1084
1011
  export const dolbyEnhancementSchema = dolbyEnhancementDolbyEnhancementSchema;
1085
1012
 
@@ -1089,11 +1016,7 @@ export const dolbyEnhancementSchema = dolbyEnhancementDolbyEnhancementSchema;
1089
1016
  * <li><a href="#tocs_dolbyenhancement">DolbyEnhancement</a></li>
1090
1017
  * </ul>
1091
1018
  */
1092
- export const audioEnhancementAudioEnhancementSchema = z
1093
- .object({
1094
- enhancement: z.literal("dolbyEnhancement_DolbyEnhancement"),
1095
- })
1096
- .and(dolbyEnhancementDolbyEnhancementSchema);
1019
+ export const audioEnhancementAudioEnhancementSchema = dolbyEnhancementDolbyEnhancementSchema.extend({ enhancement: z.literal("dolbyEnhancement_DolbyEnhancement") }).strict();
1097
1020
 
1098
1021
  export const audioEnhancementSchema = audioEnhancementAudioEnhancementSchema;
1099
1022
 
@@ -1102,7 +1025,7 @@ export const audioEnhancementSchema = audioEnhancementAudioEnhancementSchema;
1102
1025
  */
1103
1026
  export const enhancementsEnhancementsSchema = z.object({
1104
1027
  audio: z.optional(audioEnhancementAudioEnhancementSchema),
1105
- });
1028
+ }).strict();
1106
1029
 
1107
1030
  export const enhancementsSchema = enhancementsEnhancementsSchema;
1108
1031
 
@@ -1113,7 +1036,7 @@ export const ingesterrorresponsedataIngestErrorResponseDataSchema = z.object({
1113
1036
  status: z.string(),
1114
1037
  title: z.string(),
1115
1038
  detail: z.string(),
1116
- });
1039
+ }).strict();
1117
1040
 
1118
1041
  export const ingestErrorResponseDataSchema =
1119
1042
  ingesterrorresponsedataIngestErrorResponseDataSchema;
@@ -1123,7 +1046,7 @@ export const ingestErrorResponseDataSchema =
1123
1046
  */
1124
1047
  export const ingesterrorresponseIngestErrorResponseSchema = z.object({
1125
1048
  errors: z.array(ingesterrorresponsedataIngestErrorResponseDataSchema),
1126
- });
1049
+ }).strict();
1127
1050
 
1128
1051
  export const ingestErrorResponseSchema =
1129
1052
  ingesterrorresponseIngestErrorResponseSchema;
@@ -1134,7 +1057,7 @@ export const ingestErrorResponseSchema =
1134
1057
  export const queuedsourceresponsedataQueuedSourceResponseDataSchema = z.object({
1135
1058
  type: z.string(),
1136
1059
  id: z.string(),
1137
- });
1060
+ }).strict();
1138
1061
 
1139
1062
  export const queuedSourceResponseDataSchema =
1140
1063
  queuedsourceresponsedataQueuedSourceResponseDataSchema;
@@ -1144,7 +1067,7 @@ export const queuedSourceResponseDataSchema =
1144
1067
  */
1145
1068
  export const queuedsourceresponseQueuedSourceResponseSchema = z.object({
1146
1069
  data: queuedsourceresponsedataQueuedSourceResponseDataSchema,
1147
- });
1070
+ }).strict();
1148
1071
 
1149
1072
  export const queuedSourceResponseSchema =
1150
1073
  queuedsourceresponseQueuedSourceResponseSchema;
@@ -1156,7 +1079,7 @@ export const uploadresponseattributesUploadResponseAttributesSchema = z.object({
1156
1079
  id: z.string(),
1157
1080
  url: z.string(),
1158
1081
  expires: z.string(),
1159
- });
1082
+ }).strict();
1160
1083
 
1161
1084
  export const uploadResponseAttributesSchema =
1162
1085
  uploadresponseattributesUploadResponseAttributesSchema;
@@ -1168,7 +1091,7 @@ export const uploadresponsedataUploadResponseDataSchema = z.object({
1168
1091
  type: z.string(),
1169
1092
  id: z.string(),
1170
1093
  attributes: uploadresponseattributesUploadResponseAttributesSchema,
1171
- });
1094
+ }).strict();
1172
1095
 
1173
1096
  export const uploadResponseDataSchema =
1174
1097
  uploadresponsedataUploadResponseDataSchema;
@@ -1178,7 +1101,7 @@ export const uploadResponseDataSchema =
1178
1101
  */
1179
1102
  export const uploadresponseUploadResponseSchema = z.object({
1180
1103
  data: uploadresponsedataUploadResponseDataSchema,
1181
- });
1104
+ }).strict();
1182
1105
 
1183
1106
  export const uploadResponseSchema = uploadresponseUploadResponseSchema;
1184
1107
 
@@ -1186,9 +1109,9 @@ export const uploadResponseSchema = uploadresponseUploadResponseSchema;
1186
1109
  * 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.
1187
1110
  */
1188
1111
  export const speedSpeedSchema = z.object({
1189
- speed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10))),
1112
+ speed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10)))),
1190
1113
  preservePitch: z.optional(z.boolean()),
1191
- });
1114
+ }).strict();
1192
1115
 
1193
1116
  export const speedSchema = speedSpeedSchema;
1194
1117
 
@@ -1197,7 +1120,7 @@ export const speedSchema = speedSpeedSchema;
1197
1120
  */
1198
1121
  export const transcriptionTranscriptionSchema = z.object({
1199
1122
  format: z.optional(z.enum(["srt", "vtt"])),
1200
- });
1123
+ }).strict();
1201
1124
 
1202
1125
  export const transcriptionSchema = transcriptionTranscriptionSchema;
1203
1126
 
@@ -1206,9 +1129,9 @@ export const transcriptionSchema = transcriptionTranscriptionSchema;
1206
1129
  */
1207
1130
  export const lumaassetLumaAssetSchema = z.object({
1208
1131
  type: z.enum(["luma"]),
1209
- src: z.string().min(1).regex(/\S/),
1210
- trim: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
1211
- });
1132
+ src: z.string().regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").min(1).regex(/\S/),
1133
+ trim: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
1134
+ }).strict();
1212
1135
 
1213
1136
  export const lumaAssetSchema = lumaassetLumaAssetSchema;
1214
1137
 
@@ -1217,8 +1140,8 @@ export const lumaAssetSchema = lumaassetLumaAssetSchema;
1217
1140
  */
1218
1141
  export const mergefieldMergeFieldSchema = z.object({
1219
1142
  find: z.string(),
1220
- replace: z.union([z.string(), z.number(), z.boolean(), z.null(), z.record(z.string(), z.unknown()), z.array(z.unknown())]),
1221
- });
1143
+ replace: z.union([z.string(), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()), z.boolean(), z.null(), z.record(z.string(), z.unknown()), z.array(z.unknown())]),
1144
+ }).strict();
1222
1145
 
1223
1146
  export const mergeFieldSchema = mergefieldMergeFieldSchema;
1224
1147
 
@@ -1226,8 +1149,8 @@ export const mergeFieldSchema = mergefieldMergeFieldSchema;
1226
1149
  * 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.
1227
1150
  */
1228
1151
  export const posterPosterSchema = z.object({
1229
- capture: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()),
1230
- });
1152
+ capture: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
1153
+ }).strict();
1231
1154
 
1232
1155
  export const posterSchema = posterPosterSchema;
1233
1156
 
@@ -1235,9 +1158,9 @@ export const posterSchema = posterPosterSchema;
1235
1158
  * 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.
1236
1159
  */
1237
1160
  export const rangeRangeSchema = z.object({
1238
- start: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))),
1239
- length: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))),
1240
- });
1161
+ start: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))),
1162
+ length: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))),
1163
+ }).strict();
1241
1164
 
1242
1165
  export const rangeSchema = rangeRangeSchema;
1243
1166
 
@@ -1255,7 +1178,7 @@ export const assetresponseattributesAssetResponseAttributesSchema = z.object({
1255
1178
  status: z.enum(["importing", "ready", "failed", "deleted"]),
1256
1179
  created: z.optional(z.string()),
1257
1180
  updated: z.optional(z.string()),
1258
- });
1181
+ }).strict();
1259
1182
 
1260
1183
  export const assetResponseAttributesSchema =
1261
1184
  assetresponseattributesAssetResponseAttributesSchema;
@@ -1266,7 +1189,7 @@ export const assetResponseAttributesSchema =
1266
1189
  export const assetresponsedataAssetResponseDataSchema = z.object({
1267
1190
  type: z.string(),
1268
1191
  attributes: assetresponseattributesAssetResponseAttributesSchema,
1269
- });
1192
+ }).strict();
1270
1193
 
1271
1194
  export const assetResponseDataSchema = assetresponsedataAssetResponseDataSchema;
1272
1195
 
@@ -1275,7 +1198,7 @@ export const assetResponseDataSchema = assetresponsedataAssetResponseDataSchema;
1275
1198
  */
1276
1199
  export const assetrenderresponseAssetRenderResponseSchema = z.object({
1277
1200
  data: z.array(assetresponsedataAssetResponseDataSchema),
1278
- });
1201
+ }).strict();
1279
1202
 
1280
1203
  export const assetRenderResponseSchema =
1281
1204
  assetrenderresponseAssetRenderResponseSchema;
@@ -1285,7 +1208,7 @@ export const assetRenderResponseSchema =
1285
1208
  */
1286
1209
  export const assetresponseAssetResponseSchema = z.object({
1287
1210
  data: assetresponsedataAssetResponseDataSchema,
1288
- });
1211
+ }).strict();
1289
1212
 
1290
1213
  export const assetResponseSchema = assetresponseAssetResponseSchema;
1291
1214
 
@@ -1296,7 +1219,7 @@ export const proberesponseProbeResponseSchema = z.object({
1296
1219
  success: z.boolean(),
1297
1220
  message: z.string(),
1298
1221
  response: z.record(z.string(), z.unknown()),
1299
- });
1222
+ }).strict();
1300
1223
 
1301
1224
  export const probeResponseSchema = proberesponseProbeResponseSchema;
1302
1225
 
@@ -1306,7 +1229,7 @@ export const probeResponseSchema = proberesponseProbeResponseSchema;
1306
1229
  export const queuedresponsedataQueuedResponseDataSchema = z.object({
1307
1230
  message: z.string(),
1308
1231
  id: z.string(),
1309
- });
1232
+ }).strict();
1310
1233
 
1311
1234
  export const queuedResponseDataSchema =
1312
1235
  queuedresponsedataQueuedResponseDataSchema;
@@ -1318,7 +1241,7 @@ export const queuedresponseQueuedResponseSchema = z.object({
1318
1241
  success: z.boolean(),
1319
1242
  message: z.string(),
1320
1243
  response: queuedresponsedataQueuedResponseDataSchema,
1321
- });
1244
+ }).strict();
1322
1245
 
1323
1246
  export const queuedResponseSchema = queuedresponseQueuedResponseSchema;
1324
1247
 
@@ -1330,7 +1253,7 @@ export const templatelistresponseitemTemplateListResponseItemSchema = z.object({
1330
1253
  name: z.string(),
1331
1254
  created: z.optional(z.string()),
1332
1255
  updated: z.optional(z.string()),
1333
- });
1256
+ }).strict();
1334
1257
 
1335
1258
  export const templateListResponseItemSchema =
1336
1259
  templatelistresponseitemTemplateListResponseItemSchema;
@@ -1341,7 +1264,7 @@ export const templateListResponseItemSchema =
1341
1264
  export const templatelistresponsedataTemplateListResponseDataSchema = z.object({
1342
1265
  owner: z.string(),
1343
1266
  templates: z.array(templatelistresponseitemTemplateListResponseItemSchema),
1344
- });
1267
+ }).strict();
1345
1268
 
1346
1269
  export const templateListResponseDataSchema =
1347
1270
  templatelistresponsedataTemplateListResponseDataSchema;
@@ -1353,7 +1276,7 @@ export const templatelistresponseTemplateListResponseSchema = z.object({
1353
1276
  success: z.boolean(),
1354
1277
  message: z.string(),
1355
1278
  response: templatelistresponsedataTemplateListResponseDataSchema,
1356
- });
1279
+ }).strict();
1357
1280
 
1358
1281
  export const templateListResponseSchema =
1359
1282
  templatelistresponseTemplateListResponseSchema;
@@ -1364,7 +1287,7 @@ export const templateListResponseSchema =
1364
1287
  export const templateresponsedataTemplateResponseDataSchema = z.object({
1365
1288
  message: z.string(),
1366
1289
  id: z.string(),
1367
- });
1290
+ }).strict();
1368
1291
 
1369
1292
  export const templateResponseDataSchema =
1370
1293
  templateresponsedataTemplateResponseDataSchema;
@@ -1376,7 +1299,7 @@ export const templateresponseTemplateResponseSchema = z.object({
1376
1299
  success: z.boolean(),
1377
1300
  message: z.string(),
1378
1301
  response: templateresponsedataTemplateResponseDataSchema,
1379
- });
1302
+ }).strict();
1380
1303
 
1381
1304
  export const templateResponseSchema = templateresponseTemplateResponseSchema;
1382
1305
 
@@ -1386,7 +1309,7 @@ export const templateResponseSchema = templateresponseTemplateResponseSchema;
1386
1309
  export const richtextpropertiesRichTextAlignmentSchema = z.object({
1387
1310
  horizontal: z.optional(z.enum(["left", "center", "right"])),
1388
1311
  vertical: z.optional(z.enum(["top", "middle", "bottom"])),
1389
- });
1312
+ }).strict();
1390
1313
 
1391
1314
  export const richTextAlignmentSchema =
1392
1315
  richtextpropertiesRichTextAlignmentSchema;
@@ -1403,10 +1326,10 @@ export const richtextpropertiesRichTextAnimationSchema = z.object({
1403
1326
  "shift",
1404
1327
  "movingLetters",
1405
1328
  ]),
1406
- duration: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0.1).lte(30))),
1329
+ duration: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0.1).lte(30)))),
1407
1330
  style: z.optional(z.enum(["character", "word"])),
1408
1331
  direction: z.optional(z.enum(["left", "right", "up", "down"])),
1409
- });
1332
+ }).strict();
1410
1333
 
1411
1334
  export const richTextAnimationSchema =
1412
1335
  richtextpropertiesRichTextAnimationSchema;
@@ -1416,9 +1339,9 @@ export const richTextAnimationSchema =
1416
1339
  */
1417
1340
  export const richtextpropertiesRichTextBackgroundSchema = z.object({
1418
1341
  color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
1419
- opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
1420
- borderRadius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))).default(0),
1421
- });
1342
+ opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(1),
1343
+ borderRadius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))).default(0),
1344
+ }).strict();
1422
1345
 
1423
1346
  export const richTextBackgroundSchema =
1424
1347
  richtextpropertiesRichTextBackgroundSchema;
@@ -1427,27 +1350,27 @@ export const richTextBackgroundSchema =
1427
1350
  * Border styling properties for the text bounding box.
1428
1351
  */
1429
1352
  export const richtextpropertiesRichTextBorderSchema = z.object({
1430
- width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))).default(0),
1353
+ width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))).default(0),
1431
1354
  color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1432
- opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
1433
- radius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))).default(0),
1434
- });
1355
+ opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(1),
1356
+ radius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))).default(0),
1357
+ }).strict();
1435
1358
 
1436
1359
  /**
1437
1360
  * Gradient properties for text fill.
1438
1361
  */
1439
1362
  export const richtextpropertiesRichTextGradientSchema = z.object({
1440
1363
  type: z.optional(z.enum(["linear", "radial"])),
1441
- angle: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(360))).default(0),
1364
+ angle: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(360)))).default(0),
1442
1365
  stops: z
1443
1366
  .array(
1444
1367
  z.object({
1445
- offset: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)),
1368
+ offset: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))),
1446
1369
  color: z.string().regex(/^#[A-Fa-f0-9]{6}$/),
1447
1370
  }),
1448
1371
  )
1449
1372
  .min(2),
1450
- });
1373
+ }).strict();
1451
1374
 
1452
1375
  export const richTextGradientSchema = richtextpropertiesRichTextGradientSchema;
1453
1376
 
@@ -1455,22 +1378,22 @@ export const richTextGradientSchema = richtextpropertiesRichTextGradientSchema;
1455
1378
  * Padding properties for individual sides of the text bounding box.
1456
1379
  */
1457
1380
  export const richtextpropertiesRichTextPaddingSchema = z.object({
1458
- top: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))).default(0),
1459
- right: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))).default(0),
1460
- bottom: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))).default(0),
1461
- left: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))).default(0),
1462
- });
1381
+ top: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))).default(0),
1382
+ right: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))).default(0),
1383
+ bottom: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))).default(0),
1384
+ left: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))).default(0),
1385
+ }).strict();
1463
1386
 
1464
1387
  /**
1465
1388
  * Text shadow properties.
1466
1389
  */
1467
1390
  export const richtextpropertiesRichTextShadowSchema = z.object({
1468
- offsetX: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())).default(0),
1469
- offsetY: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())).default(0),
1470
- blur: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))).default(0),
1391
+ offsetX: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))).default(0),
1392
+ offsetY: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))).default(0),
1393
+ blur: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))).default(0),
1471
1394
  color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1472
- opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5),
1473
- });
1395
+ opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(0.5),
1396
+ }).strict();
1474
1397
 
1475
1398
  export const richTextShadowSchema = richtextpropertiesRichTextShadowSchema;
1476
1399
 
@@ -1478,10 +1401,10 @@ export const richTextShadowSchema = richtextpropertiesRichTextShadowSchema;
1478
1401
  * Text stroke (outline) properties.
1479
1402
  */
1480
1403
  export const richtextpropertiesRichTextStrokeSchema = z.object({
1481
- width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))).default(0),
1404
+ width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))).default(0),
1482
1405
  color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1483
- opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
1484
- });
1406
+ opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(1),
1407
+ }).strict();
1485
1408
 
1486
1409
  export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
1487
1410
 
@@ -1490,13 +1413,13 @@ export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
1490
1413
  */
1491
1414
  export const richtextpropertiesRichTextFontSchema = z.object({
1492
1415
  family: z.optional(z.string()).default("Open Sans"),
1493
- size: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(500))).default(24),
1416
+ size: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(500)))).default(24),
1494
1417
  weight: z.optional(z.unknown()).default("400"),
1495
1418
  color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#ffffff"),
1496
- opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
1419
+ opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(1),
1497
1420
  background: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
1498
1421
  stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
1499
- });
1422
+ }).strict();
1500
1423
 
1501
1424
  export const richTextFontSchema = richtextpropertiesRichTextFontSchema;
1502
1425
 
@@ -1504,14 +1427,14 @@ export const richTextFontSchema = richtextpropertiesRichTextFontSchema;
1504
1427
  * Text style properties including spacing, line height, and transformations.
1505
1428
  */
1506
1429
  export const richtextpropertiesRichTextStyleSchema = z.object({
1507
- letterSpacing: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())).default(0),
1508
- lineHeight: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10))).default(1.2),
1430
+ letterSpacing: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))).default(0),
1431
+ lineHeight: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10)))).default(1.2),
1509
1432
  textTransform: z.optional(
1510
1433
  z.enum(["none", "uppercase", "lowercase", "capitalize"]),
1511
1434
  ),
1512
1435
  textDecoration: z.optional(z.enum(["none", "underline", "line-through"])),
1513
1436
  gradient: z.optional(richtextpropertiesRichTextGradientSchema),
1514
- });
1437
+ }).strict();
1515
1438
 
1516
1439
  export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
1517
1440
 
@@ -1529,11 +1452,11 @@ export const richtextassetRichTextAssetSchema = z.object({
1529
1452
  background: z.optional(richtextpropertiesRichTextBackgroundSchema),
1530
1453
  border: z.optional(richtextpropertiesRichTextBorderSchema),
1531
1454
  padding: z.optional(
1532
- z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)), richtextpropertiesRichTextPaddingSchema]),
1455
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))), richtextpropertiesRichTextPaddingSchema]),
1533
1456
  ),
1534
1457
  align: z.optional(richtextpropertiesRichTextAlignmentSchema),
1535
1458
  animation: z.optional(richtextpropertiesRichTextAnimationSchema),
1536
- });
1459
+ }).strict();
1537
1460
 
1538
1461
  export const richTextAssetSchema = richtextassetRichTextAssetSchema;
1539
1462
 
@@ -1546,7 +1469,7 @@ export const transferresponseattributesTransferResponseAttributesSchema =
1546
1469
  owner: z.optional(z.string()),
1547
1470
  status: z.optional(z.enum(["queued", "failed"])),
1548
1471
  created: z.optional(z.string()),
1549
- });
1472
+ }).strict();
1550
1473
 
1551
1474
  export const transferResponseAttributesSchema =
1552
1475
  transferresponseattributesTransferResponseAttributesSchema;
@@ -1559,7 +1482,7 @@ export const transferresponsedataTransferResponseDataSchema = z.object({
1559
1482
  attributes: z.optional(
1560
1483
  transferresponseattributesTransferResponseAttributesSchema,
1561
1484
  ),
1562
- });
1485
+ }).strict();
1563
1486
 
1564
1487
  export const transferResponseDataSchema =
1565
1488
  transferresponsedataTransferResponseDataSchema;
@@ -1569,7 +1492,7 @@ export const transferResponseDataSchema =
1569
1492
  */
1570
1493
  export const transferresponseTransferResponseSchema = z.object({
1571
1494
  data: transferresponsedataTransferResponseDataSchema,
1572
- });
1495
+ }).strict();
1573
1496
 
1574
1497
  export const transferResponseSchema = transferresponseTransferResponseSchema;
1575
1498
 
@@ -1580,7 +1503,7 @@ export const transferTransferSchema = z.object({
1580
1503
  url: z.string(),
1581
1504
  id: z.string(),
1582
1505
  destinations: z.array(destinationsDestinationsSchema),
1583
- });
1506
+ }).strict();
1584
1507
 
1585
1508
  export const transferSchema = transferTransferSchema;
1586
1509
 
@@ -1592,39 +1515,39 @@ export const transferSchema = transferTransferSchema;
1592
1515
  export const shapeassetShapeAssetSchema = z.object({
1593
1516
  type: z.enum(["shape"]),
1594
1517
  shape: z.enum(["rectangle", "circle", "line"]),
1595
- width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
1596
- height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
1518
+ width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
1519
+ height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
1597
1520
  fill: z.optional(
1598
1521
  z.object({
1599
1522
  color: z.optional(z.string()),
1600
- opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
1523
+ opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
1601
1524
  }),
1602
1525
  ),
1603
1526
  stroke: z.optional(
1604
1527
  z.object({
1605
1528
  color: z.optional(z.string()),
1606
- width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
1529
+ width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
1607
1530
  }),
1608
1531
  ),
1609
1532
  rectangle: z.optional(
1610
1533
  z.object({
1611
- width: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()),
1612
- height: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()),
1613
- cornerRadius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
1534
+ width: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
1535
+ height: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
1536
+ cornerRadius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
1614
1537
  }),
1615
1538
  ),
1616
1539
  circle: z.optional(
1617
1540
  z.object({
1618
- radius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()),
1541
+ radius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
1619
1542
  }),
1620
1543
  ),
1621
1544
  line: z.optional(
1622
1545
  z.object({
1623
- length: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()),
1624
- thickness: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()),
1546
+ length: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
1547
+ thickness: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
1625
1548
  }),
1626
1549
  ),
1627
- });
1550
+ }).strict();
1628
1551
 
1629
1552
  export const shapeAssetSchema = shapeassetShapeAssetSchema;
1630
1553
 
@@ -1632,9 +1555,9 @@ export const shapeAssetSchema = shapeassetShapeAssetSchema;
1632
1555
  * 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.
1633
1556
  */
1634
1557
  export const sizeSizeSchema = z.object({
1635
- width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(4096))),
1636
- height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(4096))),
1637
- });
1558
+ width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(4096)))),
1559
+ height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(4096)))),
1560
+ }).strict();
1638
1561
 
1639
1562
  export const sizeSchema = sizeSizeSchema;
1640
1563
 
@@ -1664,7 +1587,7 @@ export const renditionRenditionSchema = z.object({
1664
1587
  size: z.optional(sizeSizeSchema),
1665
1588
  fit: z.optional(z.enum(["cover", "contain", "crop"])),
1666
1589
  resolution: z.optional(z.enum(["preview", "mobile", "sd", "hd", "fhd"])),
1667
- quality: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(100))),
1590
+ quality: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(100)))),
1668
1591
  fps: z.optional(
1669
1592
  z.union([
1670
1593
  z.literal(12),
@@ -1681,12 +1604,12 @@ export const renditionRenditionSchema = z.object({
1681
1604
  ]),
1682
1605
  ),
1683
1606
  speed: z.optional(speedSpeedSchema),
1684
- keyframeInterval: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(300))),
1607
+ keyframeInterval: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(300)))),
1685
1608
  fixOffset: z.optional(z.boolean()),
1686
1609
  fixRotation: z.optional(z.boolean()),
1687
1610
  enhance: z.optional(enhancementsEnhancementsSchema),
1688
1611
  filename: z.optional(z.string()),
1689
- });
1612
+ }).strict();
1690
1613
 
1691
1614
  export const renditionSchema = renditionRenditionSchema;
1692
1615
 
@@ -1696,7 +1619,7 @@ export const renditionSchema = renditionRenditionSchema;
1696
1619
  export const outputsOutputsSchema = z.object({
1697
1620
  renditions: z.optional(z.array(renditionRenditionSchema)),
1698
1621
  transcription: z.optional(transcriptionTranscriptionSchema),
1699
- });
1622
+ }).strict();
1700
1623
 
1701
1624
  export const outputsSchema = outputsOutputsSchema;
1702
1625
 
@@ -1717,13 +1640,13 @@ export const renditionresponseattributesRenditionResponseAttributesSchema =
1717
1640
  ]),
1718
1641
  ),
1719
1642
  url: z.optional(z.string()),
1720
- executionTime: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
1643
+ executionTime: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
1721
1644
  transformation: z.optional(renditionRenditionSchema),
1722
- width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
1723
- height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
1724
- duration: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
1725
- fps: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
1726
- });
1645
+ width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
1646
+ height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
1647
+ duration: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
1648
+ fps: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
1649
+ }).strict();
1727
1650
 
1728
1651
  export const renditionResponseAttributesSchema =
1729
1652
  renditionresponseattributesRenditionResponseAttributesSchema;
@@ -1735,7 +1658,7 @@ export const outputsresponseOutputsResponseSchema = z.object({
1735
1658
  renditions: z.optional(
1736
1659
  z.array(renditionresponseattributesRenditionResponseAttributesSchema),
1737
1660
  ),
1738
- });
1661
+ }).strict();
1739
1662
 
1740
1663
  export const outputsResponseSchema = outputsresponseOutputsResponseSchema;
1741
1664
 
@@ -1758,13 +1681,13 @@ export const sourceresponseattributesSourceResponseAttributesSchema = z.object({
1758
1681
  ]),
1759
1682
  ),
1760
1683
  outputs: z.optional(outputsresponseOutputsResponseSchema),
1761
- width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
1762
- height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
1763
- duration: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
1764
- fps: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
1684
+ width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
1685
+ height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
1686
+ duration: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
1687
+ fps: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
1765
1688
  created: z.optional(z.string()),
1766
1689
  updated: z.optional(z.string()),
1767
- });
1690
+ }).strict();
1768
1691
 
1769
1692
  export const sourceResponseAttributesSchema =
1770
1693
  sourceresponseattributesSourceResponseAttributesSchema;
@@ -1776,7 +1699,7 @@ export const sourceresponsedataSourceResponseDataSchema = z.object({
1776
1699
  type: z.string(),
1777
1700
  id: z.string(),
1778
1701
  attributes: sourceresponseattributesSourceResponseAttributesSchema,
1779
- });
1702
+ }).strict();
1780
1703
 
1781
1704
  export const sourceResponseDataSchema =
1782
1705
  sourceresponsedataSourceResponseDataSchema;
@@ -1786,7 +1709,7 @@ export const sourceResponseDataSchema =
1786
1709
  */
1787
1710
  export const sourcelistresponseSourceListResponseSchema = z.object({
1788
1711
  data: z.array(sourceresponsedataSourceResponseDataSchema),
1789
- });
1712
+ }).strict();
1790
1713
 
1791
1714
  export const sourceListResponseSchema =
1792
1715
  sourcelistresponseSourceListResponseSchema;
@@ -1796,7 +1719,7 @@ export const sourceListResponseSchema =
1796
1719
  */
1797
1720
  export const sourceresponseSourceResponseSchema = z.object({
1798
1721
  data: sourceresponsedataSourceResponseDataSchema,
1799
- });
1722
+ }).strict();
1800
1723
 
1801
1724
  export const sourceResponseSchema = sourceresponseSourceResponseSchema;
1802
1725
 
@@ -1809,7 +1732,7 @@ export const sourceSourceSchema = z.object({
1809
1732
  outputs: z.optional(outputsOutputsSchema),
1810
1733
  destinations: z.optional(destinationsDestinationsSchema),
1811
1734
  callback: z.optional(z.string()),
1812
- });
1735
+ }).strict();
1813
1736
 
1814
1737
  export const sourceSchema = sourceSourceSchema;
1815
1738
 
@@ -1819,8 +1742,8 @@ export const sourceSchema = sourceSourceSchema;
1819
1742
  export const soundtrackSoundtrackSchema = z.object({
1820
1743
  src: z.string().min(1).regex(/\S/),
1821
1744
  effect: z.optional(z.enum(["fadeIn", "fadeOut", "fadeInFadeOut"])),
1822
- volume: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
1823
- });
1745
+ volume: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
1746
+ }).strict();
1824
1747
 
1825
1748
  export const soundtrackSchema = soundtrackSoundtrackSchema;
1826
1749
 
@@ -1830,9 +1753,9 @@ export const soundtrackSchema = soundtrackSoundtrackSchema;
1830
1753
  *
1831
1754
  */
1832
1755
  export const svgpropertiesSvgGradientStopSchema = z.object({
1833
- offset: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)),
1756
+ offset: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))),
1834
1757
  color: z.string().regex(/^#[A-Fa-f0-9]{6}$/),
1835
- });
1758
+ }).strict();
1836
1759
 
1837
1760
  export const svgGradientStopSchema = svgpropertiesSvgGradientStopSchema;
1838
1761
 
@@ -1843,10 +1766,10 @@ export const svgGradientStopSchema = svgpropertiesSvgGradientStopSchema;
1843
1766
  */
1844
1767
  export const svgpropertiesSvgLinearGradientFillSchema = z.object({
1845
1768
  type: z.enum(["linear"]),
1846
- angle: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(360))).default(0),
1769
+ angle: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(360)))).default(0),
1847
1770
  stops: z.array(svgpropertiesSvgGradientStopSchema).min(2),
1848
- opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
1849
- });
1771
+ opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(1),
1772
+ }).strict();
1850
1773
 
1851
1774
  export const svgLinearGradientFillSchema =
1852
1775
  svgpropertiesSvgLinearGradientFillSchema;
@@ -1859,8 +1782,8 @@ export const svgLinearGradientFillSchema =
1859
1782
  export const svgpropertiesSvgRadialGradientFillSchema = z.object({
1860
1783
  type: z.enum(["radial"]),
1861
1784
  stops: z.array(svgpropertiesSvgGradientStopSchema).min(2),
1862
- opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
1863
- });
1785
+ opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(1),
1786
+ }).strict();
1864
1787
 
1865
1788
  export const svgRadialGradientFillSchema =
1866
1789
  svgpropertiesSvgRadialGradientFillSchema;
@@ -1870,12 +1793,12 @@ export const svgRadialGradientFillSchema =
1870
1793
  *
1871
1794
  */
1872
1795
  export const svgpropertiesSvgShadowSchema = z.object({
1873
- offsetX: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())).default(0),
1874
- offsetY: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())).default(0),
1875
- blur: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))).default(0),
1796
+ offsetX: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))).default(0),
1797
+ offsetY: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))).default(0),
1798
+ blur: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))).default(0),
1876
1799
  color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1877
- opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5),
1878
- });
1800
+ opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(0.5),
1801
+ }).strict();
1879
1802
 
1880
1803
  export const svgShadowSchema = svgpropertiesSvgShadowSchema;
1881
1804
 
@@ -1888,8 +1811,8 @@ export const svgpropertiesSvgSolidFillSchema = z.object({
1888
1811
  .string()
1889
1812
  .regex(/^#[A-Fa-f0-9]{6}$/)
1890
1813
  .default("#000000"),
1891
- opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
1892
- });
1814
+ opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(1),
1815
+ }).strict();
1893
1816
 
1894
1817
  export const svgSolidFillSchema = svgpropertiesSvgSolidFillSchema;
1895
1818
 
@@ -1913,13 +1836,13 @@ export const svgFillSchema = svgpropertiesSvgFillSchema;
1913
1836
  */
1914
1837
  export const svgpropertiesSvgStrokeSchema = z.object({
1915
1838
  color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1916
- width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(100))).default(1),
1917
- opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
1839
+ width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(100)))).default(1),
1840
+ opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(1),
1918
1841
  lineCap: z.optional(z.enum(["butt", "round", "square"])),
1919
1842
  lineJoin: z.optional(z.enum(["miter", "round", "bevel"])),
1920
- dashArray: z.optional(z.array(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))),
1921
- dashOffset: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())).default(0),
1922
- });
1843
+ dashArray: z.optional(z.array(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))))),
1844
+ dashOffset: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))).default(0),
1845
+ }).strict();
1923
1846
 
1924
1847
  export const svgStrokeSchema = svgpropertiesSvgStrokeSchema;
1925
1848
 
@@ -1928,13 +1851,13 @@ export const svgStrokeSchema = svgpropertiesSvgStrokeSchema;
1928
1851
  *
1929
1852
  */
1930
1853
  export const svgpropertiesSvgTransformSchema = z.object({
1931
- x: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())).default(0),
1932
- y: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())).default(0),
1933
- rotation: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-360).lte(360))).default(0),
1934
- scale: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0.01).lte(100))).default(1),
1935
- originX: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5),
1936
- originY: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5),
1937
- });
1854
+ x: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))).default(0),
1855
+ y: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))).default(0),
1856
+ rotation: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-360).lte(360)))).default(0),
1857
+ scale: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0.01).lte(100)))).default(1),
1858
+ originX: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(0.5),
1859
+ originY: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(0.5),
1860
+ }).strict();
1938
1861
 
1939
1862
  export const svgTransformSchema = svgpropertiesSvgTransformSchema;
1940
1863
 
@@ -1945,11 +1868,11 @@ export const svgTransformSchema = svgpropertiesSvgTransformSchema;
1945
1868
  */
1946
1869
  export const svgshapesSvgArrowShapeSchema = z.object({
1947
1870
  type: z.enum(["arrow"]),
1948
- length: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096)),
1949
- headWidth: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(1000)),
1950
- headLength: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(1000)),
1951
- shaftWidth: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(1000)),
1952
- });
1871
+ length: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096))),
1872
+ headWidth: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(1000))),
1873
+ headLength: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(1000))),
1874
+ shaftWidth: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(1000))),
1875
+ }).strict();
1953
1876
 
1954
1877
  export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
1955
1878
 
@@ -1960,8 +1883,8 @@ export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
1960
1883
  */
1961
1884
  export const svgshapesSvgCircleShapeSchema = z.object({
1962
1885
  type: z.enum(["circle"]),
1963
- radius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048)),
1964
- });
1886
+ radius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048))),
1887
+ }).strict();
1965
1888
 
1966
1889
  export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
1967
1890
 
@@ -1972,10 +1895,10 @@ export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
1972
1895
  */
1973
1896
  export const svgshapesSvgCrossShapeSchema = z.object({
1974
1897
  type: z.enum(["cross"]),
1975
- width: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096)),
1976
- height: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096)),
1977
- thickness: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(500)),
1978
- });
1898
+ width: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096))),
1899
+ height: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096))),
1900
+ thickness: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(500))),
1901
+ }).strict();
1979
1902
 
1980
1903
  export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
1981
1904
 
@@ -1986,9 +1909,9 @@ export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
1986
1909
  */
1987
1910
  export const svgshapesSvgEllipseShapeSchema = z.object({
1988
1911
  type: z.enum(["ellipse"]),
1989
- radiusX: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048)),
1990
- radiusY: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048)),
1991
- });
1912
+ radiusX: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048))),
1913
+ radiusY: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048))),
1914
+ }).strict();
1992
1915
 
1993
1916
  export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
1994
1917
 
@@ -1999,8 +1922,8 @@ export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
1999
1922
  */
2000
1923
  export const svgshapesSvgHeartShapeSchema = z.object({
2001
1924
  type: z.enum(["heart"]),
2002
- size: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096)),
2003
- });
1925
+ size: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096))),
1926
+ }).strict();
2004
1927
 
2005
1928
  export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
2006
1929
 
@@ -2011,9 +1934,9 @@ export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
2011
1934
  */
2012
1935
  export const svgshapesSvgLineShapeSchema = z.object({
2013
1936
  type: z.enum(["line"]),
2014
- length: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096)),
2015
- thickness: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(500)),
2016
- });
1937
+ length: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096))),
1938
+ thickness: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(500))),
1939
+ }).strict();
2017
1940
 
2018
1941
  export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
2019
1942
 
@@ -2037,7 +1960,7 @@ export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
2037
1960
  export const svgshapesSvgPathShapeSchema = z.object({
2038
1961
  type: z.enum(["path"]),
2039
1962
  d: z.string().min(1).max(100000),
2040
- });
1963
+ }).strict();
2041
1964
 
2042
1965
  export const svgPathShapeSchema = svgshapesSvgPathShapeSchema;
2043
1966
 
@@ -2049,9 +1972,9 @@ export const svgPathShapeSchema = svgshapesSvgPathShapeSchema;
2049
1972
  */
2050
1973
  export const svgshapesSvgPolygonShapeSchema = z.object({
2051
1974
  type: z.enum(["polygon"]),
2052
- sides: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(3).lte(100)),
2053
- radius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048)),
2054
- });
1975
+ sides: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(3).lte(100))),
1976
+ radius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048))),
1977
+ }).strict();
2055
1978
 
2056
1979
  export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
2057
1980
 
@@ -2062,10 +1985,10 @@ export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
2062
1985
  */
2063
1986
  export const svgshapesSvgRectangleShapeSchema = z.object({
2064
1987
  type: z.enum(["rectangle"]),
2065
- width: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096)),
2066
- height: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096)),
2067
- cornerRadius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(2048))).default(0),
2068
- });
1988
+ width: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096))),
1989
+ height: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(4096))),
1990
+ cornerRadius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(2048)))).default(0),
1991
+ }).strict();
2069
1992
 
2070
1993
  export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
2071
1994
 
@@ -2076,9 +1999,9 @@ export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
2076
1999
  */
2077
2000
  export const svgshapesSvgRingShapeSchema = z.object({
2078
2001
  type: z.enum(["ring"]),
2079
- outerRadius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048)),
2080
- innerRadius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(2048)),
2081
- });
2002
+ outerRadius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048))),
2003
+ innerRadius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(2048))),
2004
+ }).strict();
2082
2005
 
2083
2006
  export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
2084
2007
 
@@ -2090,10 +2013,10 @@ export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
2090
2013
  */
2091
2014
  export const svgshapesSvgStarShapeSchema = z.object({
2092
2015
  type: z.enum(["star"]),
2093
- points: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(3).lte(100)),
2094
- outerRadius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048)),
2095
- innerRadius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048)),
2096
- });
2016
+ points: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(3).lte(100))),
2017
+ outerRadius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048))),
2018
+ innerRadius: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2048))),
2019
+ }).strict();
2097
2020
 
2098
2021
  export const svgStarShapeSchema = svgshapesSvgStarShapeSchema;
2099
2022
 
@@ -2173,7 +2096,7 @@ export const svgassetSvgAssetSchema = z.object({
2173
2096
  opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))).default(1),
2174
2097
  width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(4096)))),
2175
2098
  height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int().gte(1).lte(4096)))),
2176
- }).superRefine((data, ctx) => {
2099
+ }).strict().superRefine((data, ctx) => {
2177
2100
  const hasShape = data.shape !== undefined;
2178
2101
  const hasSrc = data.src !== undefined && data.src.trim() !== "";
2179
2102
 
@@ -2206,6 +2129,29 @@ export const svgassetSvgAssetSchema = z.object({
2206
2129
  }
2207
2130
  }
2208
2131
  });
2132
+ }
2133
+
2134
+ if (hasShape && hasSrc) {
2135
+ ctx.addIssue({
2136
+ code: z.ZodIssueCode.custom,
2137
+ message: "Provide either 'src' or 'shape', not both",
2138
+ path: ["src"],
2139
+ });
2140
+ }
2141
+
2142
+ if (hasSrc) {
2143
+ const disallowedProps = ["shape", "fill", "stroke", "shadow", "transform", "width", "height"];
2144
+ for (const prop of disallowedProps) {
2145
+ if (data[prop] !== undefined) {
2146
+ ctx.addIssue({
2147
+ code: z.ZodIssueCode.custom,
2148
+ message: `'${prop}' is not allowed when using 'src'. Only 'type' and 'src' are allowed in import mode`,
2149
+ path: [prop],
2150
+ });
2151
+ }
2152
+ }
2153
+ }
2154
+ });
2209
2155
 
2210
2156
  export const svgAssetSchema = svgassetSvgAssetSchema;
2211
2157
 
@@ -2215,7 +2161,7 @@ export const svgAssetSchema = svgassetSvgAssetSchema;
2215
2161
  export const templaterenderTemplateRenderSchema = z.object({
2216
2162
  id: z.string(),
2217
2163
  merge: z.optional(z.array(mergefieldMergeFieldSchema)),
2218
- });
2164
+ }).strict();
2219
2165
 
2220
2166
  export const templateRenderSchema = templaterenderTemplateRenderSchema;
2221
2167
 
@@ -2225,7 +2171,7 @@ export const templateRenderSchema = templaterenderTemplateRenderSchema;
2225
2171
  export const textpropertiesTextAlignmentSchema = z.object({
2226
2172
  horizontal: z.optional(z.enum(["left", "center", "right"])),
2227
2173
  vertical: z.optional(z.enum(["top", "center", "bottom"])),
2228
- });
2174
+ }).strict();
2229
2175
 
2230
2176
  export const textAlignmentSchema = textpropertiesTextAlignmentSchema;
2231
2177
 
@@ -2234,18 +2180,18 @@ export const textAlignmentSchema = textpropertiesTextAlignmentSchema;
2234
2180
  */
2235
2181
  export const textpropertiesTextAnimationSchema = z.object({
2236
2182
  preset: z.enum(["typewriter"]),
2237
- duration: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0.1).lte(30))),
2238
- });
2183
+ duration: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0.1).lte(30)))),
2184
+ }).strict();
2239
2185
 
2240
2186
  /**
2241
2187
  * Displays a background box behind the text.
2242
2188
  */
2243
2189
  export const textpropertiesTextBackgroundSchema = z.object({
2244
2190
  color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
2245
- opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))),
2246
- padding: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(100))),
2247
- borderRadius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))),
2248
- });
2191
+ opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)))),
2192
+ padding: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(100)))),
2193
+ borderRadius: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0)))),
2194
+ }).strict();
2249
2195
 
2250
2196
  export const textBackgroundSchema = textpropertiesTextBackgroundSchema;
2251
2197
 
@@ -2255,11 +2201,11 @@ export const textBackgroundSchema = textpropertiesTextBackgroundSchema;
2255
2201
  export const textpropertiesTextFontSchema = z.object({
2256
2202
  family: z.optional(z.string()),
2257
2203
  color: z.optional(z.string()),
2258
- opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
2259
- size: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
2260
- weight: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
2261
- lineHeight: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
2262
- });
2204
+ opacity: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
2205
+ size: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
2206
+ weight: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
2207
+ lineHeight: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
2208
+ }).strict();
2263
2209
 
2264
2210
  export const textFontSchema = textpropertiesTextFontSchema;
2265
2211
 
@@ -2267,9 +2213,9 @@ export const textFontSchema = textpropertiesTextFontSchema;
2267
2213
  * Text stroke (outline) properties.
2268
2214
  */
2269
2215
  export const textpropertiesTextStrokeSchema = z.object({
2270
- width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10))),
2216
+ width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10)))),
2271
2217
  color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
2272
- });
2218
+ }).strict();
2273
2219
 
2274
2220
  /**
2275
2221
  * The TextAsset is used to add text and titles to a video. The text can be styled with built in and custom
@@ -2279,15 +2225,15 @@ export const textpropertiesTextStrokeSchema = z.object({
2279
2225
  export const textassetTextAssetSchema = z.object({
2280
2226
  type: z.enum(["text"]),
2281
2227
  text: z.string(),
2282
- width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
2283
- height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
2228
+ width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
2229
+ height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
2284
2230
  font: z.optional(textpropertiesTextFontSchema),
2285
2231
  background: z.optional(textpropertiesTextBackgroundSchema),
2286
2232
  alignment: z.optional(textpropertiesTextAlignmentSchema),
2287
2233
  stroke: z.optional(textpropertiesTextStrokeSchema),
2288
2234
  animation: z.optional(textpropertiesTextAnimationSchema),
2289
2235
  ellipsis: z.optional(z.string()),
2290
- });
2236
+ }).strict();
2291
2237
 
2292
2238
  export const textAssetSchema = textassetTextAssetSchema;
2293
2239
 
@@ -2297,10 +2243,10 @@ export const textAssetSchema = textassetTextAssetSchema;
2297
2243
  export const texttoimageassetTextToImageAssetSchema = z.object({
2298
2244
  type: z.enum(["text-to-image"]),
2299
2245
  prompt: z.string(),
2300
- width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
2301
- height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int())),
2246
+ width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
2247
+ height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().int()))),
2302
2248
  crop: z.optional(cropCropSchema),
2303
- });
2249
+ }).strict();
2304
2250
 
2305
2251
  export const textToImageAssetSchema = texttoimageassetTextToImageAssetSchema;
2306
2252
 
@@ -2308,9 +2254,9 @@ export const textToImageAssetSchema = texttoimageassetTextToImageAssetSchema;
2308
2254
  * Generate a thumbnail image for the video or image at a specific point from the timeline.
2309
2255
  */
2310
2256
  export const thumbnailThumbnailSchema = z.object({
2311
- capture: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()),
2312
- scale: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)),
2313
- });
2257
+ capture: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
2258
+ scale: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))),
2259
+ }).strict();
2314
2260
 
2315
2261
  export const thumbnailSchema = thumbnailThumbnailSchema;
2316
2262
 
@@ -2347,7 +2293,7 @@ export const outputOutputSchema = z.object({
2347
2293
  poster: z.optional(posterPosterSchema),
2348
2294
  thumbnail: z.optional(thumbnailThumbnailSchema),
2349
2295
  destinations: z.optional(z.array(destinationsDestinationsSchema)),
2350
- });
2296
+ }).strict();
2351
2297
 
2352
2298
  export const outputSchema = outputOutputSchema;
2353
2299
 
@@ -2487,7 +2433,7 @@ export const transitionTransitionSchema = z.object({
2487
2433
  "zoom",
2488
2434
  ]),
2489
2435
  ),
2490
- });
2436
+ }).strict();
2491
2437
 
2492
2438
  export const transitionSchema = transitionTransitionSchema;
2493
2439
 
@@ -2502,10 +2448,10 @@ export const transitionSchema = transitionTransitionSchema;
2502
2448
  * </ul>
2503
2449
  */
2504
2450
  export const tweenTweenSchema = z.object({
2505
- from: z.optional(z.unknown()),
2506
- to: z.optional(z.unknown()),
2507
- start: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
2508
- length: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
2451
+ from: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
2452
+ to: z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
2453
+ start: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
2454
+ length: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
2509
2455
  interpolation: z.optional(z.enum(["linear", "bezier", "constant"])),
2510
2456
  easing: z.optional(
2511
2457
  z.enum([
@@ -2539,7 +2485,7 @@ export const tweenTweenSchema = z.object({
2539
2485
  "easeInOutBack",
2540
2486
  ]),
2541
2487
  ),
2542
- });
2488
+ }).strict();
2543
2489
 
2544
2490
  export const tweenSchema = tweenTweenSchema;
2545
2491
 
@@ -2548,14 +2494,14 @@ export const tweenSchema = tweenTweenSchema;
2548
2494
  */
2549
2495
  export const audioassetAudioAssetSchema = z.object({
2550
2496
  type: z.enum(["audio"]),
2551
- src: z.string().min(1).regex(/\S/),
2552
- trim: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
2497
+ src: z.string().regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").min(1).regex(/\S/),
2498
+ trim: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
2553
2499
  volume: z.optional(
2554
- z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)), z.array(tweenTweenSchema)]),
2500
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))), z.array(tweenTweenSchema)]),
2555
2501
  ),
2556
- speed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10))),
2502
+ speed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10)))),
2557
2503
  effect: z.optional(z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
2558
- });
2504
+ }).strict();
2559
2505
 
2560
2506
  export const audioAssetSchema = audioassetAudioAssetSchema;
2561
2507
 
@@ -2564,12 +2510,12 @@ export const audioAssetSchema = audioassetAudioAssetSchema;
2564
2510
  */
2565
2511
  export const offsetOffsetSchema = z.object({
2566
2512
  x: z.optional(
2567
- z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-10).lte(10)), z.array(tweenTweenSchema)]),
2513
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-10).lte(10))), z.array(tweenTweenSchema)]),
2568
2514
  ),
2569
2515
  y: z.optional(
2570
- z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-10).lte(10)), z.array(tweenTweenSchema)]),
2516
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-10).lte(10))), z.array(tweenTweenSchema)]),
2571
2517
  ),
2572
- });
2518
+ }).strict();
2573
2519
 
2574
2520
  export const offsetSchema = offsetOffsetSchema;
2575
2521
 
@@ -2578,9 +2524,9 @@ export const offsetSchema = offsetOffsetSchema;
2578
2524
  */
2579
2525
  export const rotatetransformationRotateTransformationSchema = z.object({
2580
2526
  angle: z.optional(
2581
- z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-360).lte(360)), z.array(tweenTweenSchema)]),
2527
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-360).lte(360))), z.array(tweenTweenSchema)]),
2582
2528
  ),
2583
- });
2529
+ }).strict();
2584
2530
 
2585
2531
  export const rotateTransformationSchema =
2586
2532
  rotatetransformationRotateTransformationSchema;
@@ -2590,12 +2536,12 @@ export const rotateTransformationSchema =
2590
2536
  */
2591
2537
  export const skewtransformationSkewTransformationSchema = z.object({
2592
2538
  x: z.optional(
2593
- z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-100).lte(100)), z.array(tweenTweenSchema)]),
2539
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-100).lte(100))), z.array(tweenTweenSchema)]),
2594
2540
  ),
2595
2541
  y: z.optional(
2596
- z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-100).lte(100)), z.array(tweenTweenSchema)]),
2542
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(-100).lte(100))), z.array(tweenTweenSchema)]),
2597
2543
  ),
2598
- });
2544
+ }).strict();
2599
2545
 
2600
2546
  export const skewTransformationSchema =
2601
2547
  skewtransformationSkewTransformationSchema;
@@ -2652,7 +2598,7 @@ export const titleassetTitleAssetSchema = z.object({
2652
2598
  ]),
2653
2599
  ),
2654
2600
  offset: z.optional(offsetOffsetSchema),
2655
- });
2601
+ }).strict();
2656
2602
 
2657
2603
  export const titleAssetSchema = titleassetTitleAssetSchema;
2658
2604
 
@@ -2663,7 +2609,7 @@ export const transformationTransformationSchema = z.object({
2663
2609
  rotate: z.optional(rotatetransformationRotateTransformationSchema),
2664
2610
  skew: z.optional(skewtransformationSkewTransformationSchema),
2665
2611
  flip: z.optional(fliptransformationFlipTransformationSchema),
2666
- });
2612
+ }).strict();
2667
2613
 
2668
2614
  export const transformationSchema = transformationTransformationSchema;
2669
2615
 
@@ -2672,19 +2618,19 @@ export const transformationSchema = transformationTransformationSchema;
2672
2618
  */
2673
2619
  export const videoassetVideoAssetSchema = z.object({
2674
2620
  type: z.enum(["video"]),
2675
- src: z.string().min(1).regex(/\S/),
2621
+ src: z.string().regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").min(1).regex(/\S/),
2676
2622
  transcode: z.optional(z.boolean()),
2677
- trim: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
2623
+ trim: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
2678
2624
  volume: z.optional(
2679
- z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1)), z.array(tweenTweenSchema)]),
2625
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(1))), z.array(tweenTweenSchema)]),
2680
2626
  ),
2681
2627
  volumeEffect: z.optional(
2682
2628
  z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"]),
2683
2629
  ),
2684
- speed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10))),
2630
+ speed: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0).lte(10)))),
2685
2631
  crop: z.optional(cropCropSchema),
2686
2632
  chromaKey: z.optional(chromakeyChromaKeySchema),
2687
- });
2633
+ }).strict();
2688
2634
 
2689
2635
  export const videoAssetSchema = videoassetVideoAssetSchema;
2690
2636
 
@@ -2715,17 +2661,17 @@ export const assetSchema = assetAssetSchema;
2715
2661
  export const clipClipSchema = z.object({
2716
2662
  asset: assetAssetSchema,
2717
2663
  start: z.union([
2718
- z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (typeof v === 'string' && /^-?\d+(\.\d+)?$/.test(v)) return Number(v); return v; }), z.number().gte(0)),
2664
+ z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (typeof v === 'string' && /^-?\d+(\.\d+)?$/.test(v)) return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))),
2719
2665
  z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/),
2720
2666
  ]),
2721
2667
  length: z.union([
2722
- z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (typeof v === 'string' && /^-?\d+(\.\d+)?$/.test(v)) return Number(v); return v; }), z.number().gte(0)),
2668
+ z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (typeof v === 'string' && /^-?\d+(\.\d+)?$/.test(v)) return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(0))),
2723
2669
  z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/),
2724
2670
  ]),
2725
2671
  fit: z.optional(z.enum(["cover", "contain", "crop", "none"])),
2726
- scale: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()), z.array(tweenTweenSchema)])),
2727
- width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(3840))),
2728
- height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2160))),
2672
+ scale: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())), z.array(tweenTweenSchema)])),
2673
+ width: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(3840)))),
2674
+ height: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number().gte(1).lte(2160)))),
2729
2675
  position: z.optional(
2730
2676
  z.enum([
2731
2677
  "top",
@@ -2776,10 +2722,10 @@ export const clipClipSchema = z.object({
2776
2722
  "negative",
2777
2723
  ]),
2778
2724
  ),
2779
- opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()), z.array(tweenTweenSchema)])),
2725
+ opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())), z.array(tweenTweenSchema)])),
2780
2726
  transform: z.optional(transformationTransformationSchema),
2781
2727
  alias: z.optional(z.string().regex(/^[A-Za-z0-9_-]+$/)),
2782
- });
2728
+ }).strict();
2783
2729
 
2784
2730
  export const clipSchema = clipClipSchema;
2785
2731
 
@@ -2788,7 +2734,7 @@ export const clipSchema = clipClipSchema;
2788
2734
  */
2789
2735
  export const trackTrackSchema = z.object({
2790
2736
  clips: z.array(clipClipSchema).min(1),
2791
- });
2737
+ }).strict();
2792
2738
 
2793
2739
  export const trackSchema = trackTrackSchema;
2794
2740
 
@@ -2801,7 +2747,7 @@ export const timelineTimelineSchema = z.object({
2801
2747
  fonts: z.optional(z.array(fontFontSchema)),
2802
2748
  tracks: z.array(trackTrackSchema).min(1),
2803
2749
  cache: z.optional(z.boolean()),
2804
- });
2750
+ }).strict();
2805
2751
 
2806
2752
  export const timelineSchema = timelineTimelineSchema;
2807
2753
 
@@ -2814,7 +2760,10 @@ export const editEditSchema = z.object({
2814
2760
  merge: z.optional(z.array(mergefieldMergeFieldSchema)),
2815
2761
  callback: z.optional(z.string()),
2816
2762
  disk: z.optional(z.enum(["local", "mount"])),
2817
- });
2763
+ instance: z.optional(z.string()),
2764
+ poster: z.optional(posterPosterSchema),
2765
+ thumbnail: z.optional(thumbnailThumbnailSchema),
2766
+ }).strict();
2818
2767
 
2819
2768
  export const editSchema = editEditSchema;
2820
2769
 
@@ -2835,15 +2784,15 @@ export const renderresponsedataRenderResponseDataSchema = z.object({
2835
2784
  "failed",
2836
2785
  ]),
2837
2786
  error: z.optional(z.string()),
2838
- duration: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
2839
- renderTime: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number())),
2787
+ duration: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
2788
+ renderTime: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
2840
2789
  url: z.optional(z.string()),
2841
2790
  poster: z.optional(z.union([z.string(), z.null()])),
2842
2791
  thumbnail: z.optional(z.union([z.string(), z.null()])),
2843
2792
  data: z.optional(editEditSchema),
2844
2793
  created: z.optional(z.string()),
2845
2794
  updated: z.optional(z.string()),
2846
- });
2795
+ }).strict();
2847
2796
 
2848
2797
  export const renderResponseDataSchema =
2849
2798
  renderresponsedataRenderResponseDataSchema;
@@ -2855,7 +2804,7 @@ export const renderresponseRenderResponseSchema = z.object({
2855
2804
  success: z.boolean(),
2856
2805
  message: z.string(),
2857
2806
  response: renderresponsedataRenderResponseDataSchema,
2858
- });
2807
+ }).strict();
2859
2808
 
2860
2809
  export const renderResponseSchema = renderresponseRenderResponseSchema;
2861
2810
 
@@ -2867,7 +2816,7 @@ export const templatedataresponsedataTemplateDataResponseDataSchema = z.object({
2867
2816
  name: z.string(),
2868
2817
  owner: z.string(),
2869
2818
  template: editEditSchema,
2870
- });
2819
+ }).strict();
2871
2820
 
2872
2821
  export const templateDataResponseDataSchema =
2873
2822
  templatedataresponsedataTemplateDataResponseDataSchema;
@@ -2879,7 +2828,7 @@ export const templatedataresponseTemplateDataResponseSchema = z.object({
2879
2828
  success: z.boolean(),
2880
2829
  message: z.string(),
2881
2830
  response: templatedataresponsedataTemplateDataResponseDataSchema,
2882
- });
2831
+ }).strict();
2883
2832
 
2884
2833
  export const templateDataResponseSchema =
2885
2834
  templatedataresponseTemplateDataResponseSchema;
@@ -2890,7 +2839,7 @@ export const templateDataResponseSchema =
2890
2839
  export const templateTemplateSchema = z.object({
2891
2840
  name: z.string(),
2892
2841
  template: z.optional(editEditSchema),
2893
- });
2842
+ }).strict();
2894
2843
 
2895
2844
  export const templateSchema = templateTemplateSchema;
2896
2845