@shotstack/schemas 1.4.7 → 1.5.0

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.
@@ -34,16 +34,16 @@ exports.captionpropertiesCaptionBackgroundSchema = zod_1.z.object({
34
34
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
35
35
  return undefined; if (Array.isArray(v))
36
36
  return v; if (typeof v === 'string')
37
- return Number(v); return v; }), zod_1.z.number())),
37
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
38
38
  padding: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
39
39
  return undefined; if (Array.isArray(v))
40
40
  return v; if (typeof v === 'string')
41
- return Number(v); return v; }), zod_1.z.number().int())),
41
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
42
42
  borderRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
43
43
  return undefined; if (Array.isArray(v))
44
44
  return v; if (typeof v === 'string')
45
- return Number(v); return v; }), zod_1.z.number().int())),
46
- });
45
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
46
+ }).strict();
47
47
  exports.captionBackgroundSchema = exports.captionpropertiesCaptionBackgroundSchema;
48
48
  /**
49
49
  * Font properties for captions text.
@@ -54,21 +54,21 @@ exports.captionpropertiesCaptionFontSchema = zod_1.z.object({
54
54
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
55
55
  return undefined; if (Array.isArray(v))
56
56
  return v; if (typeof v === 'string')
57
- return Number(v); return v; }), zod_1.z.number())),
57
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
58
58
  size: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
59
59
  return undefined; if (Array.isArray(v))
60
60
  return v; if (typeof v === 'string')
61
- return Number(v); return v; }), zod_1.z.number().int())),
61
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
62
62
  lineHeight: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
63
63
  return undefined; if (Array.isArray(v))
64
64
  return v; if (typeof v === 'string')
65
- return Number(v); return v; }), zod_1.z.number())),
65
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
66
66
  stroke: zod_1.z.optional(zod_1.z.string()),
67
67
  strokeWidth: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
68
68
  return undefined; if (Array.isArray(v))
69
69
  return v; if (typeof v === 'string')
70
- return Number(v); return v; }), zod_1.z.number())),
71
- });
70
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
71
+ }).strict();
72
72
  exports.captionFontSchema = exports.captionpropertiesCaptionFontSchema;
73
73
  /**
74
74
  * The margin properties for captions. Margins are used to position the caption text and background on the screen.
@@ -77,16 +77,16 @@ exports.captionpropertiesCaptionMarginSchema = zod_1.z.object({
77
77
  top: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
78
78
  return undefined; if (Array.isArray(v))
79
79
  return v; if (typeof v === 'string')
80
- return Number(v); return v; }), zod_1.z.number())),
80
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
81
81
  left: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
82
82
  return undefined; if (Array.isArray(v))
83
83
  return v; if (typeof v === 'string')
84
- return Number(v); return v; }), zod_1.z.number())),
84
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
85
85
  right: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
86
86
  return undefined; if (Array.isArray(v))
87
87
  return v; if (typeof v === 'string')
88
- return Number(v); return v; }), zod_1.z.number())),
89
- });
88
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
89
+ }).strict();
90
90
  exports.captionMarginSchema = exports.captionpropertiesCaptionMarginSchema;
91
91
  /**
92
92
  * The CaptionAsset is used to add captions (subtitles) to a video. It uses a supplied SRT or VTT file which will
@@ -102,19 +102,19 @@ exports.captionMarginSchema = exports.captionpropertiesCaptionMarginSchema;
102
102
  */
103
103
  exports.captionassetCaptionAssetSchema = zod_1.z.object({
104
104
  type: zod_1.z.enum(["caption"]),
105
- src: zod_1.z.string().min(1).regex(/\S/),
105
+ src: zod_1.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/),
106
106
  font: zod_1.z.optional(exports.captionpropertiesCaptionFontSchema),
107
107
  background: zod_1.z.optional(exports.captionpropertiesCaptionBackgroundSchema),
108
108
  margin: zod_1.z.optional(exports.captionpropertiesCaptionMarginSchema),
109
109
  trim: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
110
110
  return undefined; if (Array.isArray(v))
111
111
  return v; if (typeof v === 'string')
112
- return Number(v); return v; }), zod_1.z.number())),
112
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
113
113
  speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
114
114
  return undefined; if (Array.isArray(v))
115
115
  return v; if (typeof v === 'string')
116
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(10))),
117
- });
116
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(10)))),
117
+ }).strict();
118
118
  exports.captionAssetSchema = exports.captionassetCaptionAssetSchema;
119
119
  /**
120
120
  * Chroma key is a technique that replaces a specific color in a video with a different background image or video, enabling seamless integration of diverse environments. Commonly used for green screen and blue screen effects.
@@ -124,12 +124,12 @@ exports.chromakeyChromaKeySchema = zod_1.z.object({
124
124
  threshold: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
125
125
  return undefined; if (Array.isArray(v))
126
126
  return v; if (typeof v === 'string')
127
- return Number(v); return v; }), zod_1.z.number().int().gte(0).lte(250))),
127
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int().gte(0).lte(250)))),
128
128
  halo: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
129
129
  return undefined; if (Array.isArray(v))
130
130
  return v; if (typeof v === 'string')
131
- return Number(v); return v; }), zod_1.z.number().int().gte(0).lte(250))),
132
- });
131
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int().gte(0).lte(250)))),
132
+ }).strict();
133
133
  exports.chromaKeySchema = exports.chromakeyChromaKeySchema;
134
134
  /**
135
135
  * Options for the D-ID text-to-avatar service. Set the text to be converted to an avatar and configure the avatar and background. The output will be generated as an MP4 video file.
@@ -139,7 +139,7 @@ exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema = zod_1.z.object({
139
139
  text: zod_1.z.string(),
140
140
  avatar: zod_1.z.enum(["jack", "lana", "lily", "matt", "rian"]),
141
141
  background: zod_1.z.optional(zod_1.z.string()),
142
- });
142
+ }).strict();
143
143
  exports.didTextToAvatarOptionsSchema = exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema;
144
144
  /**
145
145
  * Generate assets using the third party D-ID provider AI services.
@@ -148,11 +148,7 @@ exports.didTextToAvatarOptionsSchema = exports.didTextToAvatarOptionsDidTextToAv
148
148
  * <li><a href="#tocs_didtexttoavataroptions">DidTextToAvatarOptions</a></li>
149
149
  * </ul>
150
150
  */
151
- exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = zod_1.z
152
- .object({
153
- type: zod_1.z.literal("didTextToAvatarOptions_DIDTextToAvatarOptions"),
154
- })
155
- .and(exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema);
151
+ exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema.extend({ type: zod_1.z.literal("didTextToAvatarOptions_DIDTextToAvatarOptions") }).strict();
156
152
  exports.didGeneratedAssetOptionsSchema = exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema;
157
153
  /**
158
154
  * Generate assets using D-ID. D-ID provide a text-to-avatar service. The D-ID provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/d-id), not in the request.
@@ -160,7 +156,7 @@ exports.didGeneratedAssetOptionsSchema = exports.didGeneratedAssetOptionsDidGene
160
156
  exports.didGeneratedAssetDidGeneratedAssetSchema = zod_1.z.object({
161
157
  provider: zod_1.z.enum(["d-id"]),
162
158
  options: exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema,
163
- });
159
+ }).strict();
164
160
  exports.didGeneratedAssetSchema = exports.didGeneratedAssetDidGeneratedAssetSchema;
165
161
  /**
166
162
  * Options for the ElevenLabs text-to-speech service. Set the text to be converted to speech and choose a voice to set the speaking style. The output will be generated as an MP3 audio file available at the URL returned in the response.
@@ -179,7 +175,7 @@ exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema = zod_1
179
175
  "Rachel",
180
176
  "Sam",
181
177
  ]),
182
- });
178
+ }).strict();
183
179
  exports.elevenLabsTextToSpeechOptionsSchema = exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema;
184
180
  /**
185
181
  * Generate assets using the third party ElevenLabs provider AI services.
@@ -188,11 +184,7 @@ exports.elevenLabsTextToSpeechOptionsSchema = exports.elevenlabsTextToSpeechOpti
188
184
  * <li><a href="#tocs_elevenlabstexttospeechoptions">ElevenLabsTextToSpeechOptions</a></li>
189
185
  * </ul>
190
186
  */
191
- exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema = zod_1.z
192
- .object({
193
- type: zod_1.z.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions"),
194
- })
195
- .and(exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema);
187
+ exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema = exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema.extend({ type: zod_1.z.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions") }).strict();
196
188
  exports.elevenLabsGeneratedAssetOptionsSchema = exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema;
197
189
  /**
198
190
  * Generate assets using ElevenLabs. ElevenLabs provide a text-to-speech service. The ElevenLabs provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/elevenlabs), not in the request.
@@ -200,7 +192,7 @@ exports.elevenLabsGeneratedAssetOptionsSchema = exports.elevenlabsGeneratedAsset
200
192
  exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema = zod_1.z.object({
201
193
  provider: zod_1.z.enum(["elevenlabs"]),
202
194
  options: exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema,
203
- });
195
+ }).strict();
204
196
  exports.elevenLabsGeneratedAssetSchema = exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema;
205
197
  /**
206
198
  * Options for the HeyGen text-to-avatar service. Set the text to be converted to an avatar and configure the avatars voice, speaking style, appearance and background. The output will be generated as an MP4 video file available at the URL returned in the response.
@@ -325,7 +317,7 @@ exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema = zod_1.z.objec
325
317
  background: zod_1.z.optional(zod_1.z.string()),
326
318
  ratio: zod_1.z.optional(zod_1.z.enum(["16:9", "9:16"])),
327
319
  test: zod_1.z.optional(zod_1.z.boolean()),
328
- });
320
+ }).strict();
329
321
  exports.heyGenTextToAvatarOptionsSchema = exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema;
330
322
  /**
331
323
  * Generate assets using the third party HeyGen provider AI services.
@@ -334,11 +326,7 @@ exports.heyGenTextToAvatarOptionsSchema = exports.heygenTextToAvatarOptionsHeyGe
334
326
  * <li><a href="#tocs_heygentexttoavataroptions">HeyGenTextToAvatarOptions</a></li>
335
327
  * </ul>
336
328
  */
337
- exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = zod_1.z
338
- .object({
339
- type: zod_1.z.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions"),
340
- })
341
- .and(exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema);
329
+ exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema.extend({ type: zod_1.z.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions") }).strict();
342
330
  exports.heyGenGeneratedAssetOptionsSchema = exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema;
343
331
  /**
344
332
  * Generate assets using HeyGen. HeyGen provide a text-to-avatar service. The HeyGen provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/heygen), not in the request.
@@ -346,7 +334,7 @@ exports.heyGenGeneratedAssetOptionsSchema = exports.heygenGeneratedAssetOptionsH
346
334
  exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema = zod_1.z.object({
347
335
  provider: zod_1.z.enum(["heygen"]),
348
336
  options: exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema,
349
- });
337
+ }).strict();
350
338
  exports.heyGenGeneratedAssetSchema = exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema;
351
339
  /**
352
340
  * Options for the OpenAI text-generator service. Set a text prompt that will be used to generate a new body of text. The output will be generated as a text (txt) file available at the URL returned in the response.
@@ -356,7 +344,7 @@ exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema = zod_1.z.obj
356
344
  prompt: zod_1.z.string(),
357
345
  model: zod_1.z.enum(["gpt-3.5-turbo", "gpt-4"]),
358
346
  systemPrompt: zod_1.z.optional(zod_1.z.string()),
359
- });
347
+ }).strict();
360
348
  exports.openAiTextGeneratorOptionsSchema = exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema;
361
349
  /**
362
350
  * Generate assets using OpenAI provider AI services.
@@ -365,11 +353,7 @@ exports.openAiTextGeneratorOptionsSchema = exports.openaiTextGeneratorOptionsOpe
365
353
  * <li><a href="#tocs_openaitextgeneratoroptions">OpenAiTextGeneratorOptions</a></li>
366
354
  * </ul>
367
355
  */
368
- exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = zod_1.z
369
- .object({
370
- type: zod_1.z.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions"),
371
- })
372
- .and(exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema);
356
+ exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema.extend({ type: zod_1.z.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions") }).strict();
373
357
  exports.openAiGeneratedAssetOptionsSchema = exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema;
374
358
  /**
375
359
  * Generate assets using OpenAI. OpenAI provide a text generation service using ChatGPT 3.5 and 4. The OpenAI provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/openai), not in the request.
@@ -377,7 +361,7 @@ exports.openAiGeneratedAssetOptionsSchema = exports.openaiGeneratedAssetOptionsO
377
361
  exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema = zod_1.z.object({
378
362
  provider: zod_1.z.enum(["openai"]),
379
363
  options: exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema,
380
- });
364
+ }).strict();
381
365
  exports.openAiGeneratedAssetSchema = exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema;
382
366
  /**
383
367
  * Individual errors returned by the Create API.
@@ -386,14 +370,14 @@ exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema = z
386
370
  status: zod_1.z.string(),
387
371
  title: zod_1.z.string(),
388
372
  detail: zod_1.z.string(),
389
- });
373
+ }).strict();
390
374
  exports.generatedAssetErrorResponseDataSchema = exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema;
391
375
  /**
392
376
  * Error response data for validation and other errors returned by the Create API.
393
377
  */
394
378
  exports.generatedAssetErrorResponseGeneratedAssetErrorResponseSchema = zod_1.z.object({
395
379
  errors: zod_1.z.array(exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema),
396
- });
380
+ }).strict();
397
381
  exports.generatedAssetErrorResponseSchema = exports.generatedAssetErrorResponseGeneratedAssetErrorResponseSchema;
398
382
  /**
399
383
  * The id and attributes of the generated asset.
@@ -406,7 +390,7 @@ exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema =
406
390
  status: zod_1.z.enum(["queued", "processing", "saving", "done", "failed"]),
407
391
  created: zod_1.z.string(),
408
392
  updated: zod_1.z.string(),
409
- });
393
+ }).strict();
410
394
  exports.generatedAssetResponseAttributesSchema = exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema;
411
395
  /**
412
396
  * The type of resource (an asset), it's id and attributes of the generated file.
@@ -415,14 +399,14 @@ exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema = zod_1.z.obj
415
399
  type: zod_1.z.string(),
416
400
  id: zod_1.z.string(),
417
401
  attributes: exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema,
418
- });
402
+ }).strict();
419
403
  exports.generatedAssetResponseDataSchema = exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema;
420
404
  /**
421
405
  * The response returned by the Create API [generate asset](#generate-asset) and [get generated asset](#get-generated-asset) requests. Includes status and details of the generated asset. The response follows the [json:api](https://jsonapi.org/) specification.
422
406
  */
423
407
  exports.generatedAssetResponseGeneratedAssetResponseSchema = zod_1.z.object({
424
408
  data: exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema,
425
- });
409
+ }).strict();
426
410
  exports.generatedAssetResponseSchema = exports.generatedAssetResponseGeneratedAssetResponseSchema;
427
411
  /**
428
412
  * Options for the Shotstack image-to-video service. Set the URL of an image to convert in to a video. The output will be generated as an MP4 file available at the URL returned in the response.
@@ -433,12 +417,12 @@ exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema = zod_1.z
433
417
  guidanceScale: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
434
418
  return undefined; if (Array.isArray(v))
435
419
  return v; if (typeof v === 'string')
436
- return Number(v); return v; }), zod_1.z.number())).default(1.8),
420
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))).default(1.8),
437
421
  motion: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
438
422
  return undefined; if (Array.isArray(v))
439
423
  return v; if (typeof v === 'string')
440
- return Number(v); return v; }), zod_1.z.number().int())).default(127),
441
- });
424
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))).default(127),
425
+ }).strict();
442
426
  exports.shotstackImageToVideoOptionsSchema = exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema;
443
427
  /**
444
428
  * Options for the Shotstack text-generator service. Set a text prompt that will be used to generate a new body of text. The output will be generated as a text (txt) file available at the URL returned in the response.
@@ -446,7 +430,7 @@ exports.shotstackImageToVideoOptionsSchema = exports.shotstackImageToVideoOption
446
430
  exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema = zod_1.z.object({
447
431
  type: zod_1.z.enum(["text-generator"]),
448
432
  prompt: zod_1.z.string(),
449
- });
433
+ }).strict();
450
434
  exports.shotstackTextGeneratorOptionsSchema = exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema;
451
435
  /**
452
436
  * Options for the Shotstack text-to-image service. Set a text prompt to generate an image from. The output will be generated as a PNG file available at the URL returned in the response.
@@ -457,12 +441,12 @@ exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema = zod_1.z.o
457
441
  width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
458
442
  return undefined; if (Array.isArray(v))
459
443
  return v; if (typeof v === 'string')
460
- return Number(v); return v; }), zod_1.z.number().int()),
444
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int())),
461
445
  height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
462
446
  return undefined; if (Array.isArray(v))
463
447
  return v; if (typeof v === 'string')
464
- return Number(v); return v; }), zod_1.z.number().int()),
465
- });
448
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int())),
449
+ }).strict();
466
450
  exports.shotstackTextToImageOptionsSchema = exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema;
467
451
  /**
468
452
  * Options for the Shotstack text-to-speech service. Set the text to be converted to speech and choose a voice to set the speaking style. The output will be generated as an MP3 audio file available at the URL returned in the response.
@@ -561,32 +545,16 @@ exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema = zod_1.z
561
545
  "fi-FI",
562
546
  ])),
563
547
  newscaster: zod_1.z.optional(zod_1.z.boolean()).default(false),
564
- });
548
+ }).strict();
565
549
  exports.shotstackTextToSpeechOptionsSchema = exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema;
566
550
  /**
567
551
  * Generate assets using the native Shotstack provider AI services.
568
552
  */
569
553
  exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema = zod_1.z.union([
570
- zod_1.z
571
- .object({
572
- type: zod_1.z.literal("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions"),
573
- })
574
- .and(exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema),
575
- zod_1.z
576
- .object({
577
- type: zod_1.z.literal("shotstackTextToImageOptions_ShotstackTextToImageOptions"),
578
- })
579
- .and(exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema),
580
- zod_1.z
581
- .object({
582
- type: zod_1.z.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions"),
583
- })
584
- .and(exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema),
585
- zod_1.z
586
- .object({
587
- type: zod_1.z.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions"),
588
- })
589
- .and(exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema),
554
+ exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema.extend({ type: zod_1.z.literal("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions") }).strict(),
555
+ exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema.extend({ type: zod_1.z.literal("shotstackTextToImageOptions_ShotstackTextToImageOptions") }).strict(),
556
+ exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema.extend({ type: zod_1.z.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions") }).strict(),
557
+ exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema.extend({ type: zod_1.z.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions") }).strict(),
590
558
  ]);
591
559
  exports.shotstackGeneratedAssetOptionsSchema = exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema;
592
560
  /**
@@ -595,7 +563,7 @@ exports.shotstackGeneratedAssetOptionsSchema = exports.shotstackGeneratedAssetOp
595
563
  exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema = zod_1.z.object({
596
564
  provider: zod_1.z.enum(["shotstack"]),
597
565
  options: exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema,
598
- });
566
+ }).strict();
599
567
  exports.shotstackGeneratedAssetSchema = exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema;
600
568
  /**
601
569
  * Options for the Stability AI text-to-image service. Set a text prompt to generate an image from plus other engine and configuration options. The output will be generated as a JPG file available at the URL returned in the response.
@@ -613,23 +581,23 @@ exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema = zod_1
613
581
  width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
614
582
  return undefined; if (Array.isArray(v))
615
583
  return v; if (typeof v === 'string')
616
- return Number(v); return v; }), zod_1.z.number().int()),
584
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int())),
617
585
  height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
618
586
  return undefined; if (Array.isArray(v))
619
587
  return v; if (typeof v === 'string')
620
- return Number(v); return v; }), zod_1.z.number().int()),
588
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int())),
621
589
  steps: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
622
590
  return undefined; if (Array.isArray(v))
623
591
  return v; if (typeof v === 'string')
624
- return Number(v); return v; }), zod_1.z.number().int())).default(30),
592
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))).default(30),
625
593
  seed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
626
594
  return undefined; if (Array.isArray(v))
627
595
  return v; if (typeof v === 'string')
628
- return Number(v); return v; }), zod_1.z.number().int())).default(0),
596
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))).default(0),
629
597
  cfgScale: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
630
598
  return undefined; if (Array.isArray(v))
631
599
  return v; if (typeof v === 'string')
632
- return Number(v); return v; }), zod_1.z.number())).default(7),
600
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))).default(7),
633
601
  stylePreset: zod_1.z.optional(zod_1.z.enum([
634
602
  "3d-model",
635
603
  "analog-film",
@@ -649,7 +617,7 @@ exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema = zod_1
649
617
  "pixel-art",
650
618
  "tile-texture",
651
619
  ])),
652
- });
620
+ }).strict();
653
621
  exports.stabilityAiTextToImageOptionsSchema = exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema;
654
622
  /**
655
623
  * Generate assets using Stability AI provider AI services.
@@ -658,11 +626,7 @@ exports.stabilityAiTextToImageOptionsSchema = exports.stabilityAiTextToImageOpti
658
626
  * <li><a href="#tocs_stabilityaitexttoimageoptions">StabilityAiTextToImageOptions</a></li>
659
627
  * </ul>
660
628
  */
661
- exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema = zod_1.z
662
- .object({
663
- type: zod_1.z.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions"),
664
- })
665
- .and(exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema);
629
+ exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema = exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema.extend({ type: zod_1.z.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions") }).strict();
666
630
  exports.stabilityAiGeneratedAssetOptionsSchema = exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema;
667
631
  /**
668
632
  * Generate assets using Stability AI. Stability AI provide a text-to-image service using Stable Diffusion. The Stability AI provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/stability-ai), not in the request.
@@ -670,42 +634,18 @@ exports.stabilityAiGeneratedAssetOptionsSchema = exports.stabilityAiGeneratedAss
670
634
  exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema = zod_1.z.object({
671
635
  provider: zod_1.z.enum(["stability-ai"]),
672
636
  options: exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema,
673
- });
637
+ }).strict();
674
638
  exports.stabilityAiGeneratedAssetSchema = exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema;
675
639
  /**
676
640
  * 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.
677
641
  */
678
642
  exports.generatedAssetGeneratedAssetSchema = zod_1.z.union([
679
- zod_1.z
680
- .object({
681
- provider: zod_1.z.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset"),
682
- })
683
- .and(exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema),
684
- zod_1.z
685
- .object({
686
- provider: zod_1.z.literal("didGeneratedAsset_DIDGeneratedAsset"),
687
- })
688
- .and(exports.didGeneratedAssetDidGeneratedAssetSchema),
689
- zod_1.z
690
- .object({
691
- provider: zod_1.z.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset"),
692
- })
693
- .and(exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema),
694
- zod_1.z
695
- .object({
696
- provider: zod_1.z.literal("heygenGeneratedAsset_HeyGenGeneratedAsset"),
697
- })
698
- .and(exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema),
699
- zod_1.z
700
- .object({
701
- provider: zod_1.z.literal("openaiGeneratedAsset_OpenAiGeneratedAsset"),
702
- })
703
- .and(exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema),
704
- zod_1.z
705
- .object({
706
- provider: zod_1.z.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset"),
707
- })
708
- .and(exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema),
643
+ exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema.extend({ provider: zod_1.z.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset") }).strict(),
644
+ exports.didGeneratedAssetDidGeneratedAssetSchema.extend({ provider: zod_1.z.literal("didGeneratedAsset_DIDGeneratedAsset") }).strict(),
645
+ exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema.extend({ provider: zod_1.z.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset") }).strict(),
646
+ exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema.extend({ provider: zod_1.z.literal("heygenGeneratedAsset_HeyGenGeneratedAsset") }).strict(),
647
+ exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema.extend({ provider: zod_1.z.literal("openaiGeneratedAsset_OpenAiGeneratedAsset") }).strict(),
648
+ exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema.extend({ provider: zod_1.z.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset") }).strict(),
709
649
  ]);
710
650
  exports.generatedAssetSchema = exports.generatedAssetGeneratedAssetSchema;
711
651
  /**
@@ -715,20 +655,20 @@ exports.cropCropSchema = zod_1.z.object({
715
655
  top: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
716
656
  return undefined; if (Array.isArray(v))
717
657
  return v; if (typeof v === 'string')
718
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))),
658
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))),
719
659
  bottom: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
720
660
  return undefined; if (Array.isArray(v))
721
661
  return v; if (typeof v === 'string')
722
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))),
662
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))),
723
663
  left: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
724
664
  return undefined; if (Array.isArray(v))
725
665
  return v; if (typeof v === 'string')
726
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))),
666
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))),
727
667
  right: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
728
668
  return undefined; if (Array.isArray(v))
729
669
  return v; if (typeof v === 'string')
730
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))),
731
- });
670
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))),
671
+ }).strict();
732
672
  exports.cropSchema = exports.cropCropSchema;
733
673
  /**
734
674
  * Pass additional options to control how files are stored in Google Cloud Storage.
@@ -737,7 +677,7 @@ exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptions
737
677
  bucket: zod_1.z.string(),
738
678
  prefix: zod_1.z.optional(zod_1.z.string()),
739
679
  filename: zod_1.z.optional(zod_1.z.string()),
740
- });
680
+ }).strict();
741
681
  exports.googleCloudStorageDestinationOptionsSchema = exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema;
742
682
  /**
743
683
  * Send videos and assets to a [Google Cloud Storage](https://cloud.google.com/storage) bucket. Send files with your own prefix and filename. Google Cloud credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/google-cloud-storage), not in the request.
@@ -745,7 +685,7 @@ exports.googleCloudStorageDestinationOptionsSchema = exports.googleCloudStorageD
745
685
  exports.googleCloudStorageDestinationGoogleCloudStorageDestinationSchema = zod_1.z.object({
746
686
  provider: zod_1.z.literal("google-cloud-storage"),
747
687
  options: zod_1.z.optional(exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema),
748
- });
688
+ }).strict();
749
689
  exports.googleCloudStorageDestinationSchema = exports.googleCloudStorageDestinationGoogleCloudStorageDestinationSchema;
750
690
  /**
751
691
  * Pass the folder ID and options to configure how assets are stored in Google Drive.
@@ -753,7 +693,7 @@ exports.googleCloudStorageDestinationSchema = exports.googleCloudStorageDestinat
753
693
  exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema = zod_1.z.object({
754
694
  folderId: zod_1.z.string(),
755
695
  filename: zod_1.z.optional(zod_1.z.string()),
756
- });
696
+ }).strict();
757
697
  exports.googleDriveDestinationOptionsSchema = exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema;
758
698
  /**
759
699
  * Send rendered videos and assets to the [Google Drive](https://shotstack.io/docs/guide/serving-assets/destinations/google-drive/) cloud storage service. Google Drive uses OAuth and you must authenticate and link your Google account via [dashboard](https://dashboard.shotstack.io/integrations/google-drive), not in the request.
@@ -761,7 +701,7 @@ exports.googleDriveDestinationOptionsSchema = exports.googleDriveDestinationOpti
761
701
  exports.googleDriveDestinationGoogleDriveDestinationSchema = zod_1.z.object({
762
702
  provider: zod_1.z.literal("google-drive"),
763
703
  options: exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema,
764
- });
704
+ }).strict();
765
705
  exports.googleDriveDestinationSchema = exports.googleDriveDestinationGoogleDriveDestinationSchema;
766
706
  /**
767
707
  * Pass additional options to control how Mux processes video. Currently supports playback_policy and passthrough options.
@@ -769,7 +709,7 @@ exports.googleDriveDestinationSchema = exports.googleDriveDestinationGoogleDrive
769
709
  exports.muxDestinationOptionsMuxDestinationOptionsSchema = zod_1.z.object({
770
710
  playbackPolicy: zod_1.z.optional(zod_1.z.array(zod_1.z.enum(["public", "signed"]))),
771
711
  passthrough: zod_1.z.optional(zod_1.z.string().max(255)),
772
- });
712
+ }).strict();
773
713
  exports.muxDestinationOptionsSchema = exports.muxDestinationOptionsMuxDestinationOptionsSchema;
774
714
  /**
775
715
  * Send videos to the [Mux](https://shotstack.io/docs/guide/serving-assets/destinations/mux/) video hosting and streaming service. Mux credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/mux), not in the request.
@@ -777,7 +717,7 @@ exports.muxDestinationOptionsSchema = exports.muxDestinationOptionsMuxDestinatio
777
717
  exports.muxDestinationMuxDestinationSchema = zod_1.z.object({
778
718
  provider: zod_1.z.literal("mux"),
779
719
  options: zod_1.z.optional(exports.muxDestinationOptionsMuxDestinationOptionsSchema),
780
- });
720
+ }).strict();
781
721
  exports.muxDestinationSchema = exports.muxDestinationMuxDestinationSchema;
782
722
  /**
783
723
  * Pass additional options to control how files are stored in S3.
@@ -788,7 +728,7 @@ exports.s3DestinationOptionsS3DestinationOptionsSchema = zod_1.z.object({
788
728
  prefix: zod_1.z.optional(zod_1.z.string()),
789
729
  filename: zod_1.z.optional(zod_1.z.string()),
790
730
  acl: zod_1.z.optional(zod_1.z.string()),
791
- });
731
+ }).strict();
792
732
  exports.s3DestinationOptionsSchema = exports.s3DestinationOptionsS3DestinationOptionsSchema;
793
733
  /**
794
734
  * Send videos and assets to an [Amazon S3](https://shotstack.io/docs/guide/serving-assets/destinations/s3/) bucket. Send files to any region with your own prefix and filename. AWS credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/s3), not in the request.
@@ -796,7 +736,7 @@ exports.s3DestinationOptionsSchema = exports.s3DestinationOptionsS3DestinationOp
796
736
  exports.s3DestinationS3DestinationSchema = zod_1.z.object({
797
737
  provider: zod_1.z.literal("s3"),
798
738
  options: zod_1.z.optional(exports.s3DestinationOptionsS3DestinationOptionsSchema),
799
- });
739
+ }).strict();
800
740
  exports.s3DestinationSchema = exports.s3DestinationS3DestinationSchema;
801
741
  /**
802
742
  * Send videos and assets to the [Shotstack hosting and CDN](https://shotstack.io/docs/guide/serving-assets/destinations/shotstack/) service. This destination is enabled by default.
@@ -804,7 +744,7 @@ exports.s3DestinationSchema = exports.s3DestinationS3DestinationSchema;
804
744
  exports.shotstackDestinationShotstackDestinationSchema = zod_1.z.object({
805
745
  provider: zod_1.z.literal("shotstack"),
806
746
  exclude: zod_1.z.optional(zod_1.z.boolean()),
807
- });
747
+ }).strict();
808
748
  exports.shotstackDestinationSchema = exports.shotstackDestinationShotstackDestinationSchema;
809
749
  /**
810
750
  * Pass additional options to control how TikTok publishes video.
@@ -815,14 +755,14 @@ exports.tiktokDestinationOptionsTiktokDestinationOptionsSchema = zod_1.z.object(
815
755
  disableDuet: zod_1.z.optional(zod_1.z.boolean()).default(false),
816
756
  disableStitch: zod_1.z.optional(zod_1.z.boolean()).default(false),
817
757
  disableComment: zod_1.z.optional(zod_1.z.boolean()).default(false),
818
- });
758
+ }).strict();
819
759
  /**
820
760
  * Send videos to TikTok. TikTok credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/tiktok), not in the request.
821
761
  */
822
762
  exports.tiktokDestinationTiktokDestinationSchema = zod_1.z.object({
823
763
  provider: zod_1.z.literal("tiktok"),
824
764
  options: zod_1.z.optional(exports.tiktokDestinationOptionsTiktokDestinationOptionsSchema),
825
- });
765
+ }).strict();
826
766
  /**
827
767
  * Options to control the visibility of videos and privacy features.
828
768
  */
@@ -832,7 +772,7 @@ exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema = zod
832
772
  comments: zod_1.z.optional(zod_1.z.enum(["anybody", "nobody", "contacts"])),
833
773
  download: zod_1.z.optional(zod_1.z.boolean()),
834
774
  add: zod_1.z.optional(zod_1.z.boolean()),
835
- });
775
+ }).strict();
836
776
  exports.vimeoDestinationPrivacyOptionsSchema = exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema;
837
777
  /**
838
778
  * Pass additional options to control how Vimeo publishes video, including name, description and privacy settings.
@@ -842,7 +782,7 @@ exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema = zod_1.z.object({
842
782
  description: zod_1.z.optional(zod_1.z.string()),
843
783
  privacy: zod_1.z.optional(exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema),
844
784
  folderUri: zod_1.z.optional(zod_1.z.string()),
845
- });
785
+ }).strict();
846
786
  exports.vimeoDestinationOptionsSchema = exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema;
847
787
  /**
848
788
  * Send videos to [Vimeo](https://shotstack.io/docs/guide/serving-assets/destinations/vimeo/) video hosting and streaming service. Vimeo credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/vimeo), not in the request.
@@ -850,7 +790,7 @@ exports.vimeoDestinationOptionsSchema = exports.vimeoDestinationOptionsVimeoDest
850
790
  exports.vimeoDestinationVimeoDestinationSchema = zod_1.z.object({
851
791
  provider: zod_1.z.literal("vimeo"),
852
792
  options: zod_1.z.optional(exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema),
853
- });
793
+ }).strict();
854
794
  exports.vimeoDestinationSchema = exports.vimeoDestinationVimeoDestinationSchema;
855
795
  /**
856
796
  * A destination is a location where assets can be sent to for serving or hosting. Videos, images and audio files that are rendered by the [Edit API](#shotstack-edit) and [source](#tocs_source) and [rendition](#tocs_rendition) files generated by the [Ingest API](#shotstack-ingest) can be sent to destinations. You can also fetch a file from any public URL and [transfer](#transfer-asset) it to a destination. A file can be sent to one or more destinations including 3rd party destinations.
@@ -873,14 +813,14 @@ exports.destinationsSchema = exports.destinationsDestinationsSchema;
873
813
  exports.fliptransformationFlipTransformationSchema = zod_1.z.object({
874
814
  horizontal: zod_1.z.optional(zod_1.z.boolean()),
875
815
  vertical: zod_1.z.optional(zod_1.z.boolean()),
876
- });
816
+ }).strict();
877
817
  exports.flipTransformationSchema = exports.fliptransformationFlipTransformationSchema;
878
818
  /**
879
819
  * Download a custom font to use with the HTML asset type, using the font name in the CSS or font tag. See our [custom fonts](https://shotstack.io/learn/html-custom-fonts/) getting started guide for more details.
880
820
  */
881
821
  exports.fontFontSchema = zod_1.z.object({
882
822
  src: zod_1.z.string(),
883
- });
823
+ }).strict();
884
824
  exports.fontSchema = exports.fontFontSchema;
885
825
  /**
886
826
  * **Notice: The HtmlAsset is deprecated, use the [TextAsset](#tocs_textasset) instead.**
@@ -899,11 +839,11 @@ exports.htmlassetHtmlAssetSchema = zod_1.z.object({
899
839
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
900
840
  return undefined; if (Array.isArray(v))
901
841
  return v; if (typeof v === 'string')
902
- return Number(v); return v; }), zod_1.z.number().int())),
842
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
903
843
  height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
904
844
  return undefined; if (Array.isArray(v))
905
845
  return v; if (typeof v === 'string')
906
- return Number(v); return v; }), zod_1.z.number().int())),
846
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
907
847
  background: zod_1.z.optional(zod_1.z.string()),
908
848
  position: zod_1.z.optional(zod_1.z.enum([
909
849
  "top",
@@ -916,16 +856,16 @@ exports.htmlassetHtmlAssetSchema = zod_1.z.object({
916
856
  "topLeft",
917
857
  "center",
918
858
  ])),
919
- });
859
+ }).strict();
920
860
  exports.htmlAssetSchema = exports.htmlassetHtmlAssetSchema;
921
861
  /**
922
862
  * The ImageAsset is used to create video from images to compose an image. The src must be a publicly accessible URL to an image resource such as a jpg or png file.
923
863
  */
924
864
  exports.imageassetImageAssetSchema = zod_1.z.object({
925
865
  type: zod_1.z.enum(["image"]),
926
- src: zod_1.z.string().min(1).regex(/\S/),
866
+ src: zod_1.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/),
927
867
  crop: zod_1.z.optional(exports.cropCropSchema),
928
- });
868
+ }).strict();
929
869
  exports.imageAssetSchema = exports.imageassetImageAssetSchema;
930
870
  /**
931
871
  * The ImageToVideoAsset lets you create a video from an image and a text prompt.
@@ -938,9 +878,9 @@ exports.imagetovideoassetImageToVideoAssetSchema = zod_1.z.object({
938
878
  speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
939
879
  return undefined; if (Array.isArray(v))
940
880
  return v; if (typeof v === 'string')
941
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(10))),
881
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(10)))),
942
882
  crop: zod_1.z.optional(exports.cropCropSchema),
943
- });
883
+ }).strict();
944
884
  exports.imageToVideoAssetSchema = exports.imagetovideoassetImageToVideoAssetSchema;
945
885
  /**
946
886
  * Options for the Dolby.io audio enhancement provider.
@@ -957,7 +897,7 @@ exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema = zod_1.z.object({
957
897
  "studio",
958
898
  "voice_over",
959
899
  ]),
960
- });
900
+ }).strict();
961
901
  exports.dolbyEnhancementOptionsSchema = exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema;
962
902
  /**
963
903
  * Dolby.io audio enhancement provider. Credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/dolby), not in the request.
@@ -965,7 +905,7 @@ exports.dolbyEnhancementOptionsSchema = exports.dolbyEnhancementOptionsDolbyEnha
965
905
  exports.dolbyEnhancementDolbyEnhancementSchema = zod_1.z.object({
966
906
  provider: zod_1.z.string().default("dolby"),
967
907
  options: exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema,
968
- });
908
+ }).strict();
969
909
  exports.dolbyEnhancementSchema = exports.dolbyEnhancementDolbyEnhancementSchema;
970
910
  /**
971
911
  * An audio enhancement that can be applied to the audio content of a rendition.
@@ -973,18 +913,14 @@ exports.dolbyEnhancementSchema = exports.dolbyEnhancementDolbyEnhancementSchema;
973
913
  * <li><a href="#tocs_dolbyenhancement">DolbyEnhancement</a></li>
974
914
  * </ul>
975
915
  */
976
- exports.audioEnhancementAudioEnhancementSchema = zod_1.z
977
- .object({
978
- enhancement: zod_1.z.literal("dolbyEnhancement_DolbyEnhancement"),
979
- })
980
- .and(exports.dolbyEnhancementDolbyEnhancementSchema);
916
+ exports.audioEnhancementAudioEnhancementSchema = exports.dolbyEnhancementDolbyEnhancementSchema.extend({ enhancement: zod_1.z.literal("dolbyEnhancement_DolbyEnhancement") }).strict();
981
917
  exports.audioEnhancementSchema = exports.audioEnhancementAudioEnhancementSchema;
982
918
  /**
983
919
  * Enhancements that can be applied to a rendition. Currently only supports the Dolby audio enhancement.
984
920
  */
985
921
  exports.enhancementsEnhancementsSchema = zod_1.z.object({
986
922
  audio: zod_1.z.optional(exports.audioEnhancementAudioEnhancementSchema),
987
- });
923
+ }).strict();
988
924
  exports.enhancementsSchema = exports.enhancementsEnhancementsSchema;
989
925
  /**
990
926
  * Individual errors returned by the Ingest API.
@@ -993,14 +929,14 @@ exports.ingesterrorresponsedataIngestErrorResponseDataSchema = zod_1.z.object({
993
929
  status: zod_1.z.string(),
994
930
  title: zod_1.z.string(),
995
931
  detail: zod_1.z.string(),
996
- });
932
+ }).strict();
997
933
  exports.ingestErrorResponseDataSchema = exports.ingesterrorresponsedataIngestErrorResponseDataSchema;
998
934
  /**
999
935
  * Error response data for validation and other errors returned by the Ingest API.
1000
936
  */
1001
937
  exports.ingesterrorresponseIngestErrorResponseSchema = zod_1.z.object({
1002
938
  errors: zod_1.z.array(exports.ingesterrorresponsedataIngestErrorResponseDataSchema),
1003
- });
939
+ }).strict();
1004
940
  exports.ingestErrorResponseSchema = exports.ingesterrorresponseIngestErrorResponseSchema;
1005
941
  /**
1006
942
  * The type of resource (a source) and the newly created source id. Returned with [QueuedSourceResponse](#tocs_queuedsourceresponse).
@@ -1008,14 +944,14 @@ exports.ingestErrorResponseSchema = exports.ingesterrorresponseIngestErrorRespon
1008
944
  exports.queuedsourceresponsedataQueuedSourceResponseDataSchema = zod_1.z.object({
1009
945
  type: zod_1.z.string(),
1010
946
  id: zod_1.z.string(),
1011
- });
947
+ }).strict();
1012
948
  exports.queuedSourceResponseDataSchema = exports.queuedsourceresponsedataQueuedSourceResponseDataSchema;
1013
949
  /**
1014
950
  * The response returned by the Ingest API [fetch source](#fetch-source) request. Includes the id of the source file. The response follows the [json:api](https://jsonapi.org/) specification.
1015
951
  */
1016
952
  exports.queuedsourceresponseQueuedSourceResponseSchema = zod_1.z.object({
1017
953
  data: exports.queuedsourceresponsedataQueuedSourceResponseDataSchema,
1018
- });
954
+ }).strict();
1019
955
  exports.queuedSourceResponseSchema = exports.queuedsourceresponseQueuedSourceResponseSchema;
1020
956
  /**
1021
957
  * The id and attributes of the upload file including the signed URL to send the binary file data to.
@@ -1024,7 +960,7 @@ exports.uploadresponseattributesUploadResponseAttributesSchema = zod_1.z.object(
1024
960
  id: zod_1.z.string(),
1025
961
  url: zod_1.z.string(),
1026
962
  expires: zod_1.z.string(),
1027
- });
963
+ }).strict();
1028
964
  exports.uploadResponseAttributesSchema = exports.uploadresponseattributesUploadResponseAttributesSchema;
1029
965
  /**
1030
966
  * The type of resource (an upload), it's id and attributes of the upload request.
@@ -1033,14 +969,14 @@ exports.uploadresponsedataUploadResponseDataSchema = zod_1.z.object({
1033
969
  type: zod_1.z.string(),
1034
970
  id: zod_1.z.string(),
1035
971
  attributes: exports.uploadresponseattributesUploadResponseAttributesSchema,
1036
- });
972
+ }).strict();
1037
973
  exports.uploadResponseDataSchema = exports.uploadresponsedataUploadResponseDataSchema;
1038
974
  /**
1039
975
  * The response returned by the Ingest API [direct upload](#direct-upload) request. Includes the id of the file and the signed url to send the binary file to. The response follows the [json:api](https://jsonapi.org/) specification.
1040
976
  */
1041
977
  exports.uploadresponseUploadResponseSchema = zod_1.z.object({
1042
978
  data: exports.uploadresponsedataUploadResponseDataSchema,
1043
- });
979
+ }).strict();
1044
980
  exports.uploadResponseSchema = exports.uploadresponseUploadResponseSchema;
1045
981
  /**
1046
982
  * 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.
@@ -1049,36 +985,36 @@ exports.speedSpeedSchema = zod_1.z.object({
1049
985
  speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1050
986
  return undefined; if (Array.isArray(v))
1051
987
  return v; if (typeof v === 'string')
1052
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(10))),
988
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(10)))),
1053
989
  preservePitch: zod_1.z.optional(zod_1.z.boolean()),
1054
- });
990
+ }).strict();
1055
991
  exports.speedSchema = exports.speedSpeedSchema;
1056
992
  /**
1057
993
  * Generate a transcription of the audio in the video. The transcription can be output as a file in SRT or VTT format.
1058
994
  */
1059
995
  exports.transcriptionTranscriptionSchema = zod_1.z.object({
1060
996
  format: zod_1.z.optional(zod_1.z.enum(["srt", "vtt"])),
1061
- });
997
+ }).strict();
1062
998
  exports.transcriptionSchema = exports.transcriptionTranscriptionSchema;
1063
999
  /**
1064
1000
  * The LumaAsset is used to create luma matte masks, transitions and effects between other assets. A luma matte is a grey scale image or animated video where the black areas are transparent and the white areas solid. The luma matte animation should be provided as an mp4 video file. The src must be a publicly accessible URL to the file.
1065
1001
  */
1066
1002
  exports.lumaassetLumaAssetSchema = zod_1.z.object({
1067
1003
  type: zod_1.z.enum(["luma"]),
1068
- src: zod_1.z.string().min(1).regex(/\S/),
1004
+ src: zod_1.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/),
1069
1005
  trim: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1070
1006
  return undefined; if (Array.isArray(v))
1071
1007
  return v; if (typeof v === 'string')
1072
- return Number(v); return v; }), zod_1.z.number())),
1073
- });
1008
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
1009
+ }).strict();
1074
1010
  exports.lumaAssetSchema = exports.lumaassetLumaAssetSchema;
1075
1011
  /**
1076
1012
  * A merge field consists of a key; `find`, and a value; `replace`. Merge fields can be used to replace placeholders within the JSON edit to create re-usable templates. Placeholders should be a string with double brace delimiters, i.e. `"{{NAME}}"`. A placeholder can be used for any value within the JSON edit.
1077
1013
  */
1078
1014
  exports.mergefieldMergeFieldSchema = zod_1.z.object({
1079
1015
  find: zod_1.z.string(),
1080
- replace: zod_1.z.union([zod_1.z.string(), zod_1.z.number(), zod_1.z.boolean(), zod_1.z.null(), zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()), zod_1.z.array(zod_1.z.unknown())]),
1081
- });
1016
+ replace: zod_1.z.union([zod_1.z.string(), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()), zod_1.z.boolean(), zod_1.z.null(), zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()), zod_1.z.array(zod_1.z.unknown())]),
1017
+ }).strict();
1082
1018
  exports.mergeFieldSchema = exports.mergefieldMergeFieldSchema;
1083
1019
  /**
1084
1020
  * 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.
@@ -1087,8 +1023,8 @@ exports.posterPosterSchema = zod_1.z.object({
1087
1023
  capture: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1088
1024
  return undefined; if (Array.isArray(v))
1089
1025
  return v; if (typeof v === 'string')
1090
- return Number(v); return v; }), zod_1.z.number()),
1091
- });
1026
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number())),
1027
+ }).strict();
1092
1028
  exports.posterSchema = exports.posterPosterSchema;
1093
1029
  /**
1094
1030
  * 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.
@@ -1097,12 +1033,12 @@ exports.rangeRangeSchema = zod_1.z.object({
1097
1033
  start: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1098
1034
  return undefined; if (Array.isArray(v))
1099
1035
  return v; if (typeof v === 'string')
1100
- return Number(v); return v; }), zod_1.z.number().gte(0))),
1036
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))),
1101
1037
  length: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1102
1038
  return undefined; if (Array.isArray(v))
1103
1039
  return v; if (typeof v === 'string')
1104
- return Number(v); return v; }), zod_1.z.number().gte(0))),
1105
- });
1040
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))),
1041
+ }).strict();
1106
1042
  exports.rangeSchema = exports.rangeRangeSchema;
1107
1043
  /**
1108
1044
  * The list of asset attributes and their values.
@@ -1118,7 +1054,7 @@ exports.assetresponseattributesAssetResponseAttributesSchema = zod_1.z.object({
1118
1054
  status: zod_1.z.enum(["importing", "ready", "failed", "deleted"]),
1119
1055
  created: zod_1.z.optional(zod_1.z.string()),
1120
1056
  updated: zod_1.z.optional(zod_1.z.string()),
1121
- });
1057
+ }).strict();
1122
1058
  exports.assetResponseAttributesSchema = exports.assetresponseattributesAssetResponseAttributesSchema;
1123
1059
  /**
1124
1060
  * The type of resource (an asset) and attributes of the asset.
@@ -1126,21 +1062,21 @@ exports.assetResponseAttributesSchema = exports.assetresponseattributesAssetResp
1126
1062
  exports.assetresponsedataAssetResponseDataSchema = zod_1.z.object({
1127
1063
  type: zod_1.z.string(),
1128
1064
  attributes: exports.assetresponseattributesAssetResponseAttributesSchema,
1129
- });
1065
+ }).strict();
1130
1066
  exports.assetResponseDataSchema = exports.assetresponsedataAssetResponseDataSchema;
1131
1067
  /**
1132
1068
  * The response returned by the Serve API [get asset by render id](#get-asset-by-render-id) request. The response is an array of asset resources, including video, image, audio, thumbnail and poster image. The response follows the [json:api](https://jsonapi.org/) specification.
1133
1069
  */
1134
1070
  exports.assetrenderresponseAssetRenderResponseSchema = zod_1.z.object({
1135
1071
  data: zod_1.z.array(exports.assetresponsedataAssetResponseDataSchema),
1136
- });
1072
+ }).strict();
1137
1073
  exports.assetRenderResponseSchema = exports.assetrenderresponseAssetRenderResponseSchema;
1138
1074
  /**
1139
1075
  * The response returned by the Serve API [get asset](#get-asset) request. Includes details of a hosted video, image, audio file, thumbnail or poster image. The response follows the [json:api](https://jsonapi.org/) specification.
1140
1076
  */
1141
1077
  exports.assetresponseAssetResponseSchema = zod_1.z.object({
1142
1078
  data: exports.assetresponsedataAssetResponseDataSchema,
1143
- });
1079
+ }).strict();
1144
1080
  exports.assetResponseSchema = exports.assetresponseAssetResponseSchema;
1145
1081
  /**
1146
1082
  * The response received after a [probe request](#inspect-media) is submitted. The probe requests returns data from FFprobe formatted as JSON.
@@ -1149,7 +1085,7 @@ exports.proberesponseProbeResponseSchema = zod_1.z.object({
1149
1085
  success: zod_1.z.boolean(),
1150
1086
  message: zod_1.z.string(),
1151
1087
  response: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
1152
- });
1088
+ }).strict();
1153
1089
  exports.probeResponseSchema = exports.proberesponseProbeResponseSchema;
1154
1090
  /**
1155
1091
  * The response data returned with the [QueuedResponse](#tocs_queuedresponse).
@@ -1157,7 +1093,7 @@ exports.probeResponseSchema = exports.proberesponseProbeResponseSchema;
1157
1093
  exports.queuedresponsedataQueuedResponseDataSchema = zod_1.z.object({
1158
1094
  message: zod_1.z.string(),
1159
1095
  id: zod_1.z.string(),
1160
- });
1096
+ }).strict();
1161
1097
  exports.queuedResponseDataSchema = exports.queuedresponsedataQueuedResponseDataSchema;
1162
1098
  /**
1163
1099
  * The response received after a [render request](#render-asset) or [template render](#render-template) is submitted. The render task is queued for rendering and a unique render id is returned.
@@ -1166,7 +1102,7 @@ exports.queuedresponseQueuedResponseSchema = zod_1.z.object({
1166
1102
  success: zod_1.z.boolean(),
1167
1103
  message: zod_1.z.string(),
1168
1104
  response: exports.queuedresponsedataQueuedResponseDataSchema,
1169
- });
1105
+ }).strict();
1170
1106
  exports.queuedResponseSchema = exports.queuedresponseQueuedResponseSchema;
1171
1107
  /**
1172
1108
  * The individual template item returned with the [TemplateListResponseData](#tocs_templatelistresponsedata) templates list.
@@ -1176,7 +1112,7 @@ exports.templatelistresponseitemTemplateListResponseItemSchema = zod_1.z.object(
1176
1112
  name: zod_1.z.string(),
1177
1113
  created: zod_1.z.optional(zod_1.z.string()),
1178
1114
  updated: zod_1.z.optional(zod_1.z.string()),
1179
- });
1115
+ }).strict();
1180
1116
  exports.templateListResponseItemSchema = exports.templatelistresponseitemTemplateListResponseItemSchema;
1181
1117
  /**
1182
1118
  * The response data returned with the [TemplateListResponse](#tocs_templatelistresponse).
@@ -1184,7 +1120,7 @@ exports.templateListResponseItemSchema = exports.templatelistresponseitemTemplat
1184
1120
  exports.templatelistresponsedataTemplateListResponseDataSchema = zod_1.z.object({
1185
1121
  owner: zod_1.z.string(),
1186
1122
  templates: zod_1.z.array(exports.templatelistresponseitemTemplateListResponseItemSchema),
1187
- });
1123
+ }).strict();
1188
1124
  exports.templateListResponseDataSchema = exports.templatelistresponsedataTemplateListResponseDataSchema;
1189
1125
  /**
1190
1126
  * A list of previously saved templates.
@@ -1193,7 +1129,7 @@ exports.templatelistresponseTemplateListResponseSchema = zod_1.z.object({
1193
1129
  success: zod_1.z.boolean(),
1194
1130
  message: zod_1.z.string(),
1195
1131
  response: exports.templatelistresponsedataTemplateListResponseDataSchema,
1196
- });
1132
+ }).strict();
1197
1133
  exports.templateListResponseSchema = exports.templatelistresponseTemplateListResponseSchema;
1198
1134
  /**
1199
1135
  * The response data returned with the [TemplateResponse](#tocs_templateresponse).
@@ -1201,7 +1137,7 @@ exports.templateListResponseSchema = exports.templatelistresponseTemplateListRes
1201
1137
  exports.templateresponsedataTemplateResponseDataSchema = zod_1.z.object({
1202
1138
  message: zod_1.z.string(),
1203
1139
  id: zod_1.z.string(),
1204
- });
1140
+ }).strict();
1205
1141
  exports.templateResponseDataSchema = exports.templateresponsedataTemplateResponseDataSchema;
1206
1142
  /**
1207
1143
  * The response received after a [template](#create-template) is submitted. The template is saved and a unique template id is returned.
@@ -1210,7 +1146,7 @@ exports.templateresponseTemplateResponseSchema = zod_1.z.object({
1210
1146
  success: zod_1.z.boolean(),
1211
1147
  message: zod_1.z.string(),
1212
1148
  response: exports.templateresponsedataTemplateResponseDataSchema,
1213
- });
1149
+ }).strict();
1214
1150
  exports.templateResponseSchema = exports.templateresponseTemplateResponseSchema;
1215
1151
  /**
1216
1152
  * Text alignment properties (horizontal and vertical).
@@ -1218,7 +1154,7 @@ exports.templateResponseSchema = exports.templateresponseTemplateResponseSchema;
1218
1154
  exports.richtextpropertiesRichTextAlignmentSchema = zod_1.z.object({
1219
1155
  horizontal: zod_1.z.optional(zod_1.z.enum(["left", "center", "right"])),
1220
1156
  vertical: zod_1.z.optional(zod_1.z.enum(["top", "middle", "bottom"])),
1221
- });
1157
+ }).strict();
1222
1158
  exports.richTextAlignmentSchema = exports.richtextpropertiesRichTextAlignmentSchema;
1223
1159
  /**
1224
1160
  * Animation properties for text entrance effects.
@@ -1235,10 +1171,10 @@ exports.richtextpropertiesRichTextAnimationSchema = zod_1.z.object({
1235
1171
  duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1236
1172
  return undefined; if (Array.isArray(v))
1237
1173
  return v; if (typeof v === 'string')
1238
- return Number(v); return v; }), zod_1.z.number().gte(0.1).lte(30))),
1174
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0.1).lte(30)))),
1239
1175
  style: zod_1.z.optional(zod_1.z.enum(["character", "word"])),
1240
1176
  direction: zod_1.z.optional(zod_1.z.enum(["left", "right", "up", "down"])),
1241
- });
1177
+ }).strict();
1242
1178
  exports.richTextAnimationSchema = exports.richtextpropertiesRichTextAnimationSchema;
1243
1179
  /**
1244
1180
  * Background styling properties for the text bounding box.
@@ -1248,12 +1184,12 @@ exports.richtextpropertiesRichTextBackgroundSchema = zod_1.z.object({
1248
1184
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1249
1185
  return undefined; if (Array.isArray(v))
1250
1186
  return v; if (typeof v === 'string')
1251
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1),
1187
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(1),
1252
1188
  borderRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1253
1189
  return undefined; if (Array.isArray(v))
1254
1190
  return v; if (typeof v === 'string')
1255
- return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1256
- });
1191
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))).default(0),
1192
+ }).strict();
1257
1193
  exports.richTextBackgroundSchema = exports.richtextpropertiesRichTextBackgroundSchema;
1258
1194
  /**
1259
1195
  * Border styling properties for the text bounding box.
@@ -1262,17 +1198,17 @@ exports.richtextpropertiesRichTextBorderSchema = zod_1.z.object({
1262
1198
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1263
1199
  return undefined; if (Array.isArray(v))
1264
1200
  return v; if (typeof v === 'string')
1265
- return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1201
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))).default(0),
1266
1202
  color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1267
1203
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1268
1204
  return undefined; if (Array.isArray(v))
1269
1205
  return v; if (typeof v === 'string')
1270
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1),
1206
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(1),
1271
1207
  radius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1272
1208
  return undefined; if (Array.isArray(v))
1273
1209
  return v; if (typeof v === 'string')
1274
- return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1275
- });
1210
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))).default(0),
1211
+ }).strict();
1276
1212
  /**
1277
1213
  * Gradient properties for text fill.
1278
1214
  */
@@ -1281,17 +1217,17 @@ exports.richtextpropertiesRichTextGradientSchema = zod_1.z.object({
1281
1217
  angle: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1282
1218
  return undefined; if (Array.isArray(v))
1283
1219
  return v; if (typeof v === 'string')
1284
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(360))).default(0),
1220
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(360)))).default(0),
1285
1221
  stops: zod_1.z
1286
1222
  .array(zod_1.z.object({
1287
1223
  offset: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1288
1224
  return undefined; if (Array.isArray(v))
1289
1225
  return v; if (typeof v === 'string')
1290
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)),
1226
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))),
1291
1227
  color: zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/),
1292
1228
  }))
1293
1229
  .min(2),
1294
- });
1230
+ }).strict();
1295
1231
  exports.richTextGradientSchema = exports.richtextpropertiesRichTextGradientSchema;
1296
1232
  /**
1297
1233
  * Padding properties for individual sides of the text bounding box.
@@ -1300,20 +1236,20 @@ exports.richtextpropertiesRichTextPaddingSchema = zod_1.z.object({
1300
1236
  top: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1301
1237
  return undefined; if (Array.isArray(v))
1302
1238
  return v; if (typeof v === 'string')
1303
- return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1239
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))).default(0),
1304
1240
  right: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1305
1241
  return undefined; if (Array.isArray(v))
1306
1242
  return v; if (typeof v === 'string')
1307
- return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1243
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))).default(0),
1308
1244
  bottom: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1309
1245
  return undefined; if (Array.isArray(v))
1310
1246
  return v; if (typeof v === 'string')
1311
- return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1247
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))).default(0),
1312
1248
  left: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1313
1249
  return undefined; if (Array.isArray(v))
1314
1250
  return v; if (typeof v === 'string')
1315
- return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1316
- });
1251
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))).default(0),
1252
+ }).strict();
1317
1253
  /**
1318
1254
  * Text shadow properties.
1319
1255
  */
@@ -1321,21 +1257,21 @@ exports.richtextpropertiesRichTextShadowSchema = zod_1.z.object({
1321
1257
  offsetX: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1322
1258
  return undefined; if (Array.isArray(v))
1323
1259
  return v; if (typeof v === 'string')
1324
- return Number(v); return v; }), zod_1.z.number())).default(0),
1260
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))).default(0),
1325
1261
  offsetY: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1326
1262
  return undefined; if (Array.isArray(v))
1327
1263
  return v; if (typeof v === 'string')
1328
- return Number(v); return v; }), zod_1.z.number())).default(0),
1264
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))).default(0),
1329
1265
  blur: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1330
1266
  return undefined; if (Array.isArray(v))
1331
1267
  return v; if (typeof v === 'string')
1332
- return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1268
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))).default(0),
1333
1269
  color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1334
1270
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1335
1271
  return undefined; if (Array.isArray(v))
1336
1272
  return v; if (typeof v === 'string')
1337
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(0.5),
1338
- });
1273
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(0.5),
1274
+ }).strict();
1339
1275
  exports.richTextShadowSchema = exports.richtextpropertiesRichTextShadowSchema;
1340
1276
  /**
1341
1277
  * Text stroke (outline) properties.
@@ -1344,13 +1280,13 @@ exports.richtextpropertiesRichTextStrokeSchema = zod_1.z.object({
1344
1280
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1345
1281
  return undefined; if (Array.isArray(v))
1346
1282
  return v; if (typeof v === 'string')
1347
- return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1283
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))).default(0),
1348
1284
  color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1349
1285
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1350
1286
  return undefined; if (Array.isArray(v))
1351
1287
  return v; if (typeof v === 'string')
1352
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1),
1353
- });
1288
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(1),
1289
+ }).strict();
1354
1290
  exports.richTextStrokeSchema = exports.richtextpropertiesRichTextStrokeSchema;
1355
1291
  /**
1356
1292
  * Font properties for rich text.
@@ -1360,16 +1296,16 @@ exports.richtextpropertiesRichTextFontSchema = zod_1.z.object({
1360
1296
  size: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1361
1297
  return undefined; if (Array.isArray(v))
1362
1298
  return v; if (typeof v === 'string')
1363
- return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(500))).default(24),
1299
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(500)))).default(24),
1364
1300
  weight: zod_1.z.optional(zod_1.z.unknown()).default("400"),
1365
1301
  color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#ffffff"),
1366
1302
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1367
1303
  return undefined; if (Array.isArray(v))
1368
1304
  return v; if (typeof v === 'string')
1369
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1),
1305
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(1),
1370
1306
  background: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
1371
1307
  stroke: zod_1.z.optional(exports.richtextpropertiesRichTextStrokeSchema),
1372
- });
1308
+ }).strict();
1373
1309
  exports.richTextFontSchema = exports.richtextpropertiesRichTextFontSchema;
1374
1310
  /**
1375
1311
  * Text style properties including spacing, line height, and transformations.
@@ -1378,15 +1314,15 @@ exports.richtextpropertiesRichTextStyleSchema = zod_1.z.object({
1378
1314
  letterSpacing: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1379
1315
  return undefined; if (Array.isArray(v))
1380
1316
  return v; if (typeof v === 'string')
1381
- return Number(v); return v; }), zod_1.z.number())).default(0),
1317
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))).default(0),
1382
1318
  lineHeight: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1383
1319
  return undefined; if (Array.isArray(v))
1384
1320
  return v; if (typeof v === 'string')
1385
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(10))).default(1.2),
1321
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(10)))).default(1.2),
1386
1322
  textTransform: zod_1.z.optional(zod_1.z.enum(["none", "uppercase", "lowercase", "capitalize"])),
1387
1323
  textDecoration: zod_1.z.optional(zod_1.z.enum(["none", "underline", "line-through"])),
1388
1324
  gradient: zod_1.z.optional(exports.richtextpropertiesRichTextGradientSchema),
1389
- });
1325
+ }).strict();
1390
1326
  exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema;
1391
1327
  /**
1392
1328
  * The RichTextAsset provides advanced text rendering with support for custom fonts, gradients, shadows, strokes,
@@ -1404,10 +1340,10 @@ exports.richtextassetRichTextAssetSchema = zod_1.z.object({
1404
1340
  padding: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1405
1341
  return undefined; if (Array.isArray(v))
1406
1342
  return v; if (typeof v === 'string')
1407
- return Number(v); return v; }), zod_1.z.number().gte(0)), exports.richtextpropertiesRichTextPaddingSchema])),
1343
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0))), exports.richtextpropertiesRichTextPaddingSchema])),
1408
1344
  align: zod_1.z.optional(exports.richtextpropertiesRichTextAlignmentSchema),
1409
1345
  animation: zod_1.z.optional(exports.richtextpropertiesRichTextAnimationSchema),
1410
- });
1346
+ }).strict();
1411
1347
  exports.richTextAssetSchema = exports.richtextassetRichTextAssetSchema;
1412
1348
  /**
1413
1349
  * The transfer request attributes inlcudling the user specified ID and status. Returned with [TransferResponseData](#tocs_transferresponsedata).
@@ -1417,7 +1353,7 @@ exports.transferresponseattributesTransferResponseAttributesSchema = zod_1.z.obj
1417
1353
  owner: zod_1.z.optional(zod_1.z.string()),
1418
1354
  status: zod_1.z.optional(zod_1.z.enum(["queued", "failed"])),
1419
1355
  created: zod_1.z.optional(zod_1.z.string()),
1420
- });
1356
+ }).strict();
1421
1357
  exports.transferResponseAttributesSchema = exports.transferresponseattributesTransferResponseAttributesSchema;
1422
1358
  /**
1423
1359
  * The type of resource (an asset) and the transfer attributes. Returned with [TransferResponse](#tocs_transferresponse).
@@ -1425,14 +1361,14 @@ exports.transferResponseAttributesSchema = exports.transferresponseattributesTra
1425
1361
  exports.transferresponsedataTransferResponseDataSchema = zod_1.z.object({
1426
1362
  type: zod_1.z.optional(zod_1.z.string()),
1427
1363
  attributes: zod_1.z.optional(exports.transferresponseattributesTransferResponseAttributesSchema),
1428
- });
1364
+ }).strict();
1429
1365
  exports.transferResponseDataSchema = exports.transferresponsedataTransferResponseDataSchema;
1430
1366
  /**
1431
1367
  * The response returned by the Serve API [transfer asset](#transfer-asset) request. The response includes the ID and transfer status. The response follows the [json:api](https://jsonapi.org/) specification.
1432
1368
  */
1433
1369
  exports.transferresponseTransferResponseSchema = zod_1.z.object({
1434
1370
  data: exports.transferresponsedataTransferResponseDataSchema,
1435
- });
1371
+ }).strict();
1436
1372
  exports.transferResponseSchema = exports.transferresponseTransferResponseSchema;
1437
1373
  /**
1438
1374
  * The asset URL to fetch and transfer to a destination.
@@ -1441,7 +1377,7 @@ exports.transferTransferSchema = zod_1.z.object({
1441
1377
  url: zod_1.z.string(),
1442
1378
  id: zod_1.z.string(),
1443
1379
  destinations: zod_1.z.array(exports.destinationsDestinationsSchema),
1444
- });
1380
+ }).strict();
1445
1381
  exports.transferSchema = exports.transferTransferSchema;
1446
1382
  /**
1447
1383
  * The ShapeAsset is used to add shapes to a video. The shape can be styled with a fill and a stroke.
@@ -1454,56 +1390,56 @@ exports.shapeassetShapeAssetSchema = zod_1.z.object({
1454
1390
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1455
1391
  return undefined; if (Array.isArray(v))
1456
1392
  return v; if (typeof v === 'string')
1457
- return Number(v); return v; }), zod_1.z.number().int())),
1393
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
1458
1394
  height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1459
1395
  return undefined; if (Array.isArray(v))
1460
1396
  return v; if (typeof v === 'string')
1461
- return Number(v); return v; }), zod_1.z.number().int())),
1397
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
1462
1398
  fill: zod_1.z.optional(zod_1.z.object({
1463
1399
  color: zod_1.z.optional(zod_1.z.string()),
1464
1400
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1465
1401
  return undefined; if (Array.isArray(v))
1466
1402
  return v; if (typeof v === 'string')
1467
- return Number(v); return v; }), zod_1.z.number())),
1403
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
1468
1404
  })),
1469
1405
  stroke: zod_1.z.optional(zod_1.z.object({
1470
1406
  color: zod_1.z.optional(zod_1.z.string()),
1471
1407
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1472
1408
  return undefined; if (Array.isArray(v))
1473
1409
  return v; if (typeof v === 'string')
1474
- return Number(v); return v; }), zod_1.z.number())),
1410
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
1475
1411
  })),
1476
1412
  rectangle: zod_1.z.optional(zod_1.z.object({
1477
1413
  width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1478
1414
  return undefined; if (Array.isArray(v))
1479
1415
  return v; if (typeof v === 'string')
1480
- return Number(v); return v; }), zod_1.z.number().int()),
1416
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int())),
1481
1417
  height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1482
1418
  return undefined; if (Array.isArray(v))
1483
1419
  return v; if (typeof v === 'string')
1484
- return Number(v); return v; }), zod_1.z.number().int()),
1420
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int())),
1485
1421
  cornerRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1486
1422
  return undefined; if (Array.isArray(v))
1487
1423
  return v; if (typeof v === 'string')
1488
- return Number(v); return v; }), zod_1.z.number().int())),
1424
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
1489
1425
  })),
1490
1426
  circle: zod_1.z.optional(zod_1.z.object({
1491
1427
  radius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1492
1428
  return undefined; if (Array.isArray(v))
1493
1429
  return v; if (typeof v === 'string')
1494
- return Number(v); return v; }), zod_1.z.number().int()),
1430
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int())),
1495
1431
  })),
1496
1432
  line: zod_1.z.optional(zod_1.z.object({
1497
1433
  length: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1498
1434
  return undefined; if (Array.isArray(v))
1499
1435
  return v; if (typeof v === 'string')
1500
- return Number(v); return v; }), zod_1.z.number().int()),
1436
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int())),
1501
1437
  thickness: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1502
1438
  return undefined; if (Array.isArray(v))
1503
1439
  return v; if (typeof v === 'string')
1504
- return Number(v); return v; }), zod_1.z.number().int()),
1440
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int())),
1505
1441
  })),
1506
- });
1442
+ }).strict();
1507
1443
  exports.shapeAssetSchema = exports.shapeassetShapeAssetSchema;
1508
1444
  /**
1509
1445
  * 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.
@@ -1512,12 +1448,12 @@ exports.sizeSizeSchema = zod_1.z.object({
1512
1448
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1513
1449
  return undefined; if (Array.isArray(v))
1514
1450
  return v; if (typeof v === 'string')
1515
- return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(4096))),
1451
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(4096)))),
1516
1452
  height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1517
1453
  return undefined; if (Array.isArray(v))
1518
1454
  return v; if (typeof v === 'string')
1519
- return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(4096))),
1520
- });
1455
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(4096)))),
1456
+ }).strict();
1521
1457
  exports.sizeSchema = exports.sizeSizeSchema;
1522
1458
  /**
1523
1459
  * A rendition is a new output file that is generated from the source. The rendition can be encoded to a different format and have transformations applied to it such as resizing, cropping, etc...
@@ -1546,7 +1482,7 @@ exports.renditionRenditionSchema = zod_1.z.object({
1546
1482
  quality: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1547
1483
  return undefined; if (Array.isArray(v))
1548
1484
  return v; if (typeof v === 'string')
1549
- return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(100))),
1485
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(100)))),
1550
1486
  fps: zod_1.z.optional(zod_1.z.union([
1551
1487
  zod_1.z.literal(12),
1552
1488
  zod_1.z.literal(15),
@@ -1564,12 +1500,12 @@ exports.renditionRenditionSchema = zod_1.z.object({
1564
1500
  keyframeInterval: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1565
1501
  return undefined; if (Array.isArray(v))
1566
1502
  return v; if (typeof v === 'string')
1567
- return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(300))),
1503
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(300)))),
1568
1504
  fixOffset: zod_1.z.optional(zod_1.z.boolean()),
1569
1505
  fixRotation: zod_1.z.optional(zod_1.z.boolean()),
1570
1506
  enhance: zod_1.z.optional(exports.enhancementsEnhancementsSchema),
1571
1507
  filename: zod_1.z.optional(zod_1.z.string()),
1572
- });
1508
+ }).strict();
1573
1509
  exports.renditionSchema = exports.renditionRenditionSchema;
1574
1510
  /**
1575
1511
  * The output renditions and transformations that should be generated from the source file.
@@ -1577,7 +1513,7 @@ exports.renditionSchema = exports.renditionRenditionSchema;
1577
1513
  exports.outputsOutputsSchema = zod_1.z.object({
1578
1514
  renditions: zod_1.z.optional(zod_1.z.array(exports.renditionRenditionSchema)),
1579
1515
  transcription: zod_1.z.optional(exports.transcriptionTranscriptionSchema),
1580
- });
1516
+ }).strict();
1581
1517
  exports.outputsSchema = exports.outputsOutputsSchema;
1582
1518
  /**
1583
1519
  * The id and attributes of the generated rendition file.
@@ -1596,32 +1532,32 @@ exports.renditionresponseattributesRenditionResponseAttributesSchema = zod_1.z.o
1596
1532
  executionTime: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1597
1533
  return undefined; if (Array.isArray(v))
1598
1534
  return v; if (typeof v === 'string')
1599
- return Number(v); return v; }), zod_1.z.number())),
1535
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
1600
1536
  transformation: zod_1.z.optional(exports.renditionRenditionSchema),
1601
1537
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1602
1538
  return undefined; if (Array.isArray(v))
1603
1539
  return v; if (typeof v === 'string')
1604
- return Number(v); return v; }), zod_1.z.number().int())),
1540
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
1605
1541
  height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1606
1542
  return undefined; if (Array.isArray(v))
1607
1543
  return v; if (typeof v === 'string')
1608
- return Number(v); return v; }), zod_1.z.number().int())),
1544
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
1609
1545
  duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1610
1546
  return undefined; if (Array.isArray(v))
1611
1547
  return v; if (typeof v === 'string')
1612
- return Number(v); return v; }), zod_1.z.number())),
1548
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
1613
1549
  fps: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1614
1550
  return undefined; if (Array.isArray(v))
1615
1551
  return v; if (typeof v === 'string')
1616
- return Number(v); return v; }), zod_1.z.number())),
1617
- });
1552
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
1553
+ }).strict();
1618
1554
  exports.renditionResponseAttributesSchema = exports.renditionresponseattributesRenditionResponseAttributesSchema;
1619
1555
  /**
1620
1556
  * The list of outputs generated from the source file. Currently supports renditions which are versions of the source file with different transformations applied.
1621
1557
  */
1622
1558
  exports.outputsresponseOutputsResponseSchema = zod_1.z.object({
1623
1559
  renditions: zod_1.z.optional(zod_1.z.array(exports.renditionresponseattributesRenditionResponseAttributesSchema)),
1624
- });
1560
+ }).strict();
1625
1561
  exports.outputsResponseSchema = exports.outputsresponseOutputsResponseSchema;
1626
1562
  /**
1627
1563
  * The id and attributes of the source file.
@@ -1643,22 +1579,22 @@ exports.sourceresponseattributesSourceResponseAttributesSchema = zod_1.z.object(
1643
1579
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1644
1580
  return undefined; if (Array.isArray(v))
1645
1581
  return v; if (typeof v === 'string')
1646
- return Number(v); return v; }), zod_1.z.number().int())),
1582
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
1647
1583
  height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1648
1584
  return undefined; if (Array.isArray(v))
1649
1585
  return v; if (typeof v === 'string')
1650
- return Number(v); return v; }), zod_1.z.number().int())),
1586
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
1651
1587
  duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1652
1588
  return undefined; if (Array.isArray(v))
1653
1589
  return v; if (typeof v === 'string')
1654
- return Number(v); return v; }), zod_1.z.number())),
1590
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
1655
1591
  fps: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1656
1592
  return undefined; if (Array.isArray(v))
1657
1593
  return v; if (typeof v === 'string')
1658
- return Number(v); return v; }), zod_1.z.number())),
1594
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
1659
1595
  created: zod_1.z.optional(zod_1.z.string()),
1660
1596
  updated: zod_1.z.optional(zod_1.z.string()),
1661
- });
1597
+ }).strict();
1662
1598
  exports.sourceResponseAttributesSchema = exports.sourceresponseattributesSourceResponseAttributesSchema;
1663
1599
  /**
1664
1600
  * The type of resource (a source), it's id and attributes of the source file.
@@ -1667,21 +1603,21 @@ exports.sourceresponsedataSourceResponseDataSchema = zod_1.z.object({
1667
1603
  type: zod_1.z.string(),
1668
1604
  id: zod_1.z.string(),
1669
1605
  attributes: exports.sourceresponseattributesSourceResponseAttributesSchema,
1670
- });
1606
+ }).strict();
1671
1607
  exports.sourceResponseDataSchema = exports.sourceresponsedataSourceResponseDataSchema;
1672
1608
  /**
1673
1609
  * A list of all ingested source files fetched or uploaded to a users account.
1674
1610
  */
1675
1611
  exports.sourcelistresponseSourceListResponseSchema = zod_1.z.object({
1676
1612
  data: zod_1.z.array(exports.sourceresponsedataSourceResponseDataSchema),
1677
- });
1613
+ }).strict();
1678
1614
  exports.sourceListResponseSchema = exports.sourcelistresponseSourceListResponseSchema;
1679
1615
  /**
1680
1616
  * The response returned by the Ingest API [get source](#get-source) request. Includes details of the ingested source file. The response follows the [json:api](https://jsonapi.org/) specification.
1681
1617
  */
1682
1618
  exports.sourceresponseSourceResponseSchema = zod_1.z.object({
1683
1619
  data: exports.sourceresponsedataSourceResponseDataSchema,
1684
- });
1620
+ }).strict();
1685
1621
  exports.sourceResponseSchema = exports.sourceresponseSourceResponseSchema;
1686
1622
  /**
1687
1623
  * The details of the file to be ingested and any transformations to be applied. Once the source file has been ingested, new renditions can be created from it. The renditions are specified in the **outputs** property.
@@ -1692,7 +1628,7 @@ exports.sourceSourceSchema = zod_1.z.object({
1692
1628
  outputs: zod_1.z.optional(exports.outputsOutputsSchema),
1693
1629
  destinations: zod_1.z.optional(exports.destinationsDestinationsSchema),
1694
1630
  callback: zod_1.z.optional(zod_1.z.string()),
1695
- });
1631
+ }).strict();
1696
1632
  exports.sourceSchema = exports.sourceSourceSchema;
1697
1633
  /**
1698
1634
  * A music or audio file in mp3 format that plays for the duration of the rendered video or the length of the audio file, which ever is shortest.
@@ -1703,8 +1639,8 @@ exports.soundtrackSoundtrackSchema = zod_1.z.object({
1703
1639
  volume: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1704
1640
  return undefined; if (Array.isArray(v))
1705
1641
  return v; if (typeof v === 'string')
1706
- return Number(v); return v; }), zod_1.z.number())),
1707
- });
1642
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
1643
+ }).strict();
1708
1644
  exports.soundtrackSchema = exports.soundtrackSoundtrackSchema;
1709
1645
  /**
1710
1646
  * A color stop in a gradient. Each stop defines a color at a specific position
@@ -1715,9 +1651,9 @@ exports.svgpropertiesSvgGradientStopSchema = zod_1.z.object({
1715
1651
  offset: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1716
1652
  return undefined; if (Array.isArray(v))
1717
1653
  return v; if (typeof v === 'string')
1718
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)),
1654
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))),
1719
1655
  color: zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/),
1720
- });
1656
+ }).strict();
1721
1657
  exports.svgGradientStopSchema = exports.svgpropertiesSvgGradientStopSchema;
1722
1658
  /**
1723
1659
  * A linear gradient fill that transitions colors along a straight line.
@@ -1729,13 +1665,13 @@ exports.svgpropertiesSvgLinearGradientFillSchema = zod_1.z.object({
1729
1665
  angle: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1730
1666
  return undefined; if (Array.isArray(v))
1731
1667
  return v; if (typeof v === 'string')
1732
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(360))).default(0),
1668
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(360)))).default(0),
1733
1669
  stops: zod_1.z.array(exports.svgpropertiesSvgGradientStopSchema).min(2),
1734
1670
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1735
1671
  return undefined; if (Array.isArray(v))
1736
1672
  return v; if (typeof v === 'string')
1737
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1),
1738
- });
1673
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(1),
1674
+ }).strict();
1739
1675
  exports.svgLinearGradientFillSchema = exports.svgpropertiesSvgLinearGradientFillSchema;
1740
1676
  /**
1741
1677
  * A radial gradient fill that transitions colors radiating outward from a center point.
@@ -1748,8 +1684,8 @@ exports.svgpropertiesSvgRadialGradientFillSchema = zod_1.z.object({
1748
1684
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1749
1685
  return undefined; if (Array.isArray(v))
1750
1686
  return v; if (typeof v === 'string')
1751
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1),
1752
- });
1687
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(1),
1688
+ }).strict();
1753
1689
  exports.svgRadialGradientFillSchema = exports.svgpropertiesSvgRadialGradientFillSchema;
1754
1690
  /**
1755
1691
  * Drop shadow properties for SVG shapes. Creates a shadow effect behind the shape.
@@ -1759,21 +1695,21 @@ exports.svgpropertiesSvgShadowSchema = zod_1.z.object({
1759
1695
  offsetX: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1760
1696
  return undefined; if (Array.isArray(v))
1761
1697
  return v; if (typeof v === 'string')
1762
- return Number(v); return v; }), zod_1.z.number())).default(0),
1698
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))).default(0),
1763
1699
  offsetY: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1764
1700
  return undefined; if (Array.isArray(v))
1765
1701
  return v; if (typeof v === 'string')
1766
- return Number(v); return v; }), zod_1.z.number())).default(0),
1702
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))).default(0),
1767
1703
  blur: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1768
1704
  return undefined; if (Array.isArray(v))
1769
1705
  return v; if (typeof v === 'string')
1770
- return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1706
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))).default(0),
1771
1707
  color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1772
1708
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1773
1709
  return undefined; if (Array.isArray(v))
1774
1710
  return v; if (typeof v === 'string')
1775
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(0.5),
1776
- });
1711
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(0.5),
1712
+ }).strict();
1777
1713
  exports.svgShadowSchema = exports.svgpropertiesSvgShadowSchema;
1778
1714
  /**
1779
1715
  * A solid color fill for SVG shapes.
@@ -1787,8 +1723,8 @@ exports.svgpropertiesSvgSolidFillSchema = zod_1.z.object({
1787
1723
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1788
1724
  return undefined; if (Array.isArray(v))
1789
1725
  return v; if (typeof v === 'string')
1790
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1),
1791
- });
1726
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(1),
1727
+ }).strict();
1792
1728
  exports.svgSolidFillSchema = exports.svgpropertiesSvgSolidFillSchema;
1793
1729
  /**
1794
1730
  * Fill properties for SVG shapes. Supports solid colors and gradients.
@@ -1811,22 +1747,22 @@ exports.svgpropertiesSvgStrokeSchema = zod_1.z.object({
1811
1747
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1812
1748
  return undefined; if (Array.isArray(v))
1813
1749
  return v; if (typeof v === 'string')
1814
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(100))).default(1),
1750
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(100)))).default(1),
1815
1751
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1816
1752
  return undefined; if (Array.isArray(v))
1817
1753
  return v; if (typeof v === 'string')
1818
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1),
1754
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(1),
1819
1755
  lineCap: zod_1.z.optional(zod_1.z.enum(["butt", "round", "square"])),
1820
1756
  lineJoin: zod_1.z.optional(zod_1.z.enum(["miter", "round", "bevel"])),
1821
1757
  dashArray: zod_1.z.optional(zod_1.z.array(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1822
1758
  return undefined; if (Array.isArray(v))
1823
1759
  return v; if (typeof v === 'string')
1824
- return Number(v); return v; }), zod_1.z.number().gte(0)))),
1760
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0))))),
1825
1761
  dashOffset: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1826
1762
  return undefined; if (Array.isArray(v))
1827
1763
  return v; if (typeof v === 'string')
1828
- return Number(v); return v; }), zod_1.z.number())).default(0),
1829
- });
1764
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))).default(0),
1765
+ }).strict();
1830
1766
  exports.svgStrokeSchema = exports.svgpropertiesSvgStrokeSchema;
1831
1767
  /**
1832
1768
  * Transformation properties for positioning, rotating, and scaling SVG shapes.
@@ -1836,28 +1772,28 @@ exports.svgpropertiesSvgTransformSchema = zod_1.z.object({
1836
1772
  x: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1837
1773
  return undefined; if (Array.isArray(v))
1838
1774
  return v; if (typeof v === 'string')
1839
- return Number(v); return v; }), zod_1.z.number())).default(0),
1775
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))).default(0),
1840
1776
  y: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1841
1777
  return undefined; if (Array.isArray(v))
1842
1778
  return v; if (typeof v === 'string')
1843
- return Number(v); return v; }), zod_1.z.number())).default(0),
1779
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))).default(0),
1844
1780
  rotation: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1845
1781
  return undefined; if (Array.isArray(v))
1846
1782
  return v; if (typeof v === 'string')
1847
- return Number(v); return v; }), zod_1.z.number().gte(-360).lte(360))).default(0),
1783
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(-360).lte(360)))).default(0),
1848
1784
  scale: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1849
1785
  return undefined; if (Array.isArray(v))
1850
1786
  return v; if (typeof v === 'string')
1851
- return Number(v); return v; }), zod_1.z.number().gte(0.01).lte(100))).default(1),
1787
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0.01).lte(100)))).default(1),
1852
1788
  originX: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1853
1789
  return undefined; if (Array.isArray(v))
1854
1790
  return v; if (typeof v === 'string')
1855
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(0.5),
1791
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(0.5),
1856
1792
  originY: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1857
1793
  return undefined; if (Array.isArray(v))
1858
1794
  return v; if (typeof v === 'string')
1859
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(0.5),
1860
- });
1795
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(0.5),
1796
+ }).strict();
1861
1797
  exports.svgTransformSchema = exports.svgpropertiesSvgTransformSchema;
1862
1798
  /**
1863
1799
  * An arrow shape pointing to the right by default.
@@ -1869,20 +1805,20 @@ exports.svgshapesSvgArrowShapeSchema = zod_1.z.object({
1869
1805
  length: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1870
1806
  return undefined; if (Array.isArray(v))
1871
1807
  return v; if (typeof v === 'string')
1872
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096)),
1808
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096))),
1873
1809
  headWidth: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1874
1810
  return undefined; if (Array.isArray(v))
1875
1811
  return v; if (typeof v === 'string')
1876
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(1000)),
1812
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(1000))),
1877
1813
  headLength: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1878
1814
  return undefined; if (Array.isArray(v))
1879
1815
  return v; if (typeof v === 'string')
1880
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(1000)),
1816
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(1000))),
1881
1817
  shaftWidth: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1882
1818
  return undefined; if (Array.isArray(v))
1883
1819
  return v; if (typeof v === 'string')
1884
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(1000)),
1885
- });
1820
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(1000))),
1821
+ }).strict();
1886
1822
  exports.svgArrowShapeSchema = exports.svgshapesSvgArrowShapeSchema;
1887
1823
  /**
1888
1824
  * A perfect circle shape defined by its radius.
@@ -1894,8 +1830,8 @@ exports.svgshapesSvgCircleShapeSchema = zod_1.z.object({
1894
1830
  radius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1895
1831
  return undefined; if (Array.isArray(v))
1896
1832
  return v; if (typeof v === 'string')
1897
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048)),
1898
- });
1833
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048))),
1834
+ }).strict();
1899
1835
  exports.svgCircleShapeSchema = exports.svgshapesSvgCircleShapeSchema;
1900
1836
  /**
1901
1837
  * A cross or plus shape with equal or different arm lengths.
@@ -1907,16 +1843,16 @@ exports.svgshapesSvgCrossShapeSchema = zod_1.z.object({
1907
1843
  width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1908
1844
  return undefined; if (Array.isArray(v))
1909
1845
  return v; if (typeof v === 'string')
1910
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096)),
1846
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096))),
1911
1847
  height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1912
1848
  return undefined; if (Array.isArray(v))
1913
1849
  return v; if (typeof v === 'string')
1914
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096)),
1850
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096))),
1915
1851
  thickness: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1916
1852
  return undefined; if (Array.isArray(v))
1917
1853
  return v; if (typeof v === 'string')
1918
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(500)),
1919
- });
1854
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(500))),
1855
+ }).strict();
1920
1856
  exports.svgCrossShapeSchema = exports.svgshapesSvgCrossShapeSchema;
1921
1857
  /**
1922
1858
  * An ellipse (oval) shape with separate horizontal and vertical radii.
@@ -1928,12 +1864,12 @@ exports.svgshapesSvgEllipseShapeSchema = zod_1.z.object({
1928
1864
  radiusX: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1929
1865
  return undefined; if (Array.isArray(v))
1930
1866
  return v; if (typeof v === 'string')
1931
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048)),
1867
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048))),
1932
1868
  radiusY: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1933
1869
  return undefined; if (Array.isArray(v))
1934
1870
  return v; if (typeof v === 'string')
1935
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048)),
1936
- });
1871
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048))),
1872
+ }).strict();
1937
1873
  exports.svgEllipseShapeSchema = exports.svgshapesSvgEllipseShapeSchema;
1938
1874
  /**
1939
1875
  * A heart shape commonly used for love/like icons.
@@ -1945,8 +1881,8 @@ exports.svgshapesSvgHeartShapeSchema = zod_1.z.object({
1945
1881
  size: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1946
1882
  return undefined; if (Array.isArray(v))
1947
1883
  return v; if (typeof v === 'string')
1948
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096)),
1949
- });
1884
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096))),
1885
+ }).strict();
1950
1886
  exports.svgHeartShapeSchema = exports.svgshapesSvgHeartShapeSchema;
1951
1887
  /**
1952
1888
  * A straight line shape with a specified length and thickness.
@@ -1958,12 +1894,12 @@ exports.svgshapesSvgLineShapeSchema = zod_1.z.object({
1958
1894
  length: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1959
1895
  return undefined; if (Array.isArray(v))
1960
1896
  return v; if (typeof v === 'string')
1961
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096)),
1897
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096))),
1962
1898
  thickness: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1963
1899
  return undefined; if (Array.isArray(v))
1964
1900
  return v; if (typeof v === 'string')
1965
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(500)),
1966
- });
1901
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(500))),
1902
+ }).strict();
1967
1903
  exports.svgLineShapeSchema = exports.svgshapesSvgLineShapeSchema;
1968
1904
  /**
1969
1905
  * A custom shape defined by SVG path data.
@@ -1985,7 +1921,7 @@ exports.svgLineShapeSchema = exports.svgshapesSvgLineShapeSchema;
1985
1921
  exports.svgshapesSvgPathShapeSchema = zod_1.z.object({
1986
1922
  type: zod_1.z.enum(["path"]),
1987
1923
  d: zod_1.z.string().min(1).max(100000),
1988
- });
1924
+ }).strict();
1989
1925
  exports.svgPathShapeSchema = exports.svgshapesSvgPathShapeSchema;
1990
1926
  /**
1991
1927
  * A regular polygon shape with a specified number of sides.
@@ -1998,12 +1934,12 @@ exports.svgshapesSvgPolygonShapeSchema = zod_1.z.object({
1998
1934
  sides: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1999
1935
  return undefined; if (Array.isArray(v))
2000
1936
  return v; if (typeof v === 'string')
2001
- return Number(v); return v; }), zod_1.z.number().int().gte(3).lte(100)),
1937
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int().gte(3).lte(100))),
2002
1938
  radius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2003
1939
  return undefined; if (Array.isArray(v))
2004
1940
  return v; if (typeof v === 'string')
2005
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048)),
2006
- });
1941
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048))),
1942
+ }).strict();
2007
1943
  exports.svgPolygonShapeSchema = exports.svgshapesSvgPolygonShapeSchema;
2008
1944
  /**
2009
1945
  * A rectangle shape with optional rounded corners.
@@ -2015,16 +1951,16 @@ exports.svgshapesSvgRectangleShapeSchema = zod_1.z.object({
2015
1951
  width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2016
1952
  return undefined; if (Array.isArray(v))
2017
1953
  return v; if (typeof v === 'string')
2018
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096)),
1954
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096))),
2019
1955
  height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2020
1956
  return undefined; if (Array.isArray(v))
2021
1957
  return v; if (typeof v === 'string')
2022
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096)),
1958
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096))),
2023
1959
  cornerRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2024
1960
  return undefined; if (Array.isArray(v))
2025
1961
  return v; if (typeof v === 'string')
2026
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(2048))).default(0),
2027
- });
1962
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(2048)))).default(0),
1963
+ }).strict();
2028
1964
  exports.svgRectangleShapeSchema = exports.svgshapesSvgRectangleShapeSchema;
2029
1965
  /**
2030
1966
  * A ring (donut/annulus) shape - a circle with a circular hole in the center.
@@ -2036,12 +1972,12 @@ exports.svgshapesSvgRingShapeSchema = zod_1.z.object({
2036
1972
  outerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2037
1973
  return undefined; if (Array.isArray(v))
2038
1974
  return v; if (typeof v === 'string')
2039
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048)),
1975
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048))),
2040
1976
  innerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2041
1977
  return undefined; if (Array.isArray(v))
2042
1978
  return v; if (typeof v === 'string')
2043
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(2048)),
2044
- });
1979
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(2048))),
1980
+ }).strict();
2045
1981
  exports.svgRingShapeSchema = exports.svgshapesSvgRingShapeSchema;
2046
1982
  /**
2047
1983
  * A star shape with a specified number of points.
@@ -2054,16 +1990,16 @@ exports.svgshapesSvgStarShapeSchema = zod_1.z.object({
2054
1990
  points: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2055
1991
  return undefined; if (Array.isArray(v))
2056
1992
  return v; if (typeof v === 'string')
2057
- return Number(v); return v; }), zod_1.z.number().int().gte(3).lte(100)),
1993
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int().gte(3).lte(100))),
2058
1994
  outerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2059
1995
  return undefined; if (Array.isArray(v))
2060
1996
  return v; if (typeof v === 'string')
2061
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048)),
1997
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048))),
2062
1998
  innerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2063
1999
  return undefined; if (Array.isArray(v))
2064
2000
  return v; if (typeof v === 'string')
2065
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048)),
2066
- });
2001
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048))),
2002
+ }).strict();
2067
2003
  exports.svgStarShapeSchema = exports.svgshapesSvgStarShapeSchema;
2068
2004
  /**
2069
2005
  * The shape definition for an SVG asset. Each shape type has its own specific
@@ -2142,22 +2078,22 @@ exports.svgassetSvgAssetSchema = zod_1.z.object({
2142
2078
  return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2143
2079
  return undefined; if (Array.isArray(v))
2144
2080
  return v; if (typeof v === 'string')
2145
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(1),
2081
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))))).default(1),
2146
2082
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2147
2083
  return undefined; if (Array.isArray(v))
2148
2084
  return v; if (typeof v === 'string')
2149
2085
  return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2150
2086
  return undefined; if (Array.isArray(v))
2151
2087
  return v; if (typeof v === 'string')
2152
- return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(4096)))),
2088
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(4096))))),
2153
2089
  height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2154
2090
  return undefined; if (Array.isArray(v))
2155
2091
  return v; if (typeof v === 'string')
2156
2092
  return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2157
2093
  return undefined; if (Array.isArray(v))
2158
2094
  return v; if (typeof v === 'string')
2159
- return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(4096)))),
2160
- }).superRefine((data, ctx) => {
2095
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(4096))))),
2096
+ }).strict().superRefine((data, ctx) => {
2161
2097
  const hasShape = data.shape !== undefined;
2162
2098
  const hasSrc = data.src !== undefined && data.src.trim() !== "";
2163
2099
  if (!hasShape && !hasSrc) {
@@ -2194,7 +2130,7 @@ exports.svgAssetSchema = exports.svgassetSvgAssetSchema;
2194
2130
  exports.templaterenderTemplateRenderSchema = zod_1.z.object({
2195
2131
  id: zod_1.z.string(),
2196
2132
  merge: zod_1.z.optional(zod_1.z.array(exports.mergefieldMergeFieldSchema)),
2197
- });
2133
+ }).strict();
2198
2134
  exports.templateRenderSchema = exports.templaterenderTemplateRenderSchema;
2199
2135
  /**
2200
2136
  * Horizontal and vertical alignment properties for text.
@@ -2202,7 +2138,7 @@ exports.templateRenderSchema = exports.templaterenderTemplateRenderSchema;
2202
2138
  exports.textpropertiesTextAlignmentSchema = zod_1.z.object({
2203
2139
  horizontal: zod_1.z.optional(zod_1.z.enum(["left", "center", "right"])),
2204
2140
  vertical: zod_1.z.optional(zod_1.z.enum(["top", "center", "bottom"])),
2205
- });
2141
+ }).strict();
2206
2142
  exports.textAlignmentSchema = exports.textpropertiesTextAlignmentSchema;
2207
2143
  /**
2208
2144
  * Animation properties for text entrance effects.
@@ -2212,8 +2148,8 @@ exports.textpropertiesTextAnimationSchema = zod_1.z.object({
2212
2148
  duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2213
2149
  return undefined; if (Array.isArray(v))
2214
2150
  return v; if (typeof v === 'string')
2215
- return Number(v); return v; }), zod_1.z.number().gte(0.1).lte(30))),
2216
- });
2151
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0.1).lte(30)))),
2152
+ }).strict();
2217
2153
  /**
2218
2154
  * Displays a background box behind the text.
2219
2155
  */
@@ -2222,16 +2158,16 @@ exports.textpropertiesTextBackgroundSchema = zod_1.z.object({
2222
2158
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2223
2159
  return undefined; if (Array.isArray(v))
2224
2160
  return v; if (typeof v === 'string')
2225
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))),
2161
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))),
2226
2162
  padding: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2227
2163
  return undefined; if (Array.isArray(v))
2228
2164
  return v; if (typeof v === 'string')
2229
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(100))),
2165
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(100)))),
2230
2166
  borderRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2231
2167
  return undefined; if (Array.isArray(v))
2232
2168
  return v; if (typeof v === 'string')
2233
- return Number(v); return v; }), zod_1.z.number().gte(0))),
2234
- });
2169
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))),
2170
+ }).strict();
2235
2171
  exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema;
2236
2172
  /**
2237
2173
  * Font properties for text.
@@ -2242,20 +2178,20 @@ exports.textpropertiesTextFontSchema = zod_1.z.object({
2242
2178
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2243
2179
  return undefined; if (Array.isArray(v))
2244
2180
  return v; if (typeof v === 'string')
2245
- return Number(v); return v; }), zod_1.z.number())),
2181
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
2246
2182
  size: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2247
2183
  return undefined; if (Array.isArray(v))
2248
2184
  return v; if (typeof v === 'string')
2249
- return Number(v); return v; }), zod_1.z.number().int())),
2185
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
2250
2186
  weight: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2251
2187
  return undefined; if (Array.isArray(v))
2252
2188
  return v; if (typeof v === 'string')
2253
- return Number(v); return v; }), zod_1.z.number().int())),
2189
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
2254
2190
  lineHeight: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2255
2191
  return undefined; if (Array.isArray(v))
2256
2192
  return v; if (typeof v === 'string')
2257
- return Number(v); return v; }), zod_1.z.number())),
2258
- });
2193
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
2194
+ }).strict();
2259
2195
  exports.textFontSchema = exports.textpropertiesTextFontSchema;
2260
2196
  /**
2261
2197
  * Text stroke (outline) properties.
@@ -2264,9 +2200,9 @@ exports.textpropertiesTextStrokeSchema = zod_1.z.object({
2264
2200
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2265
2201
  return undefined; if (Array.isArray(v))
2266
2202
  return v; if (typeof v === 'string')
2267
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(10))),
2203
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(10)))),
2268
2204
  color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
2269
- });
2205
+ }).strict();
2270
2206
  /**
2271
2207
  * The TextAsset is used to add text and titles to a video. The text can be styled with built in and custom
2272
2208
  * [Fonts](#tocs_font). You can also add a background bounding box used to control wrapping and overflow. Emoticons are also supported.
@@ -2278,18 +2214,18 @@ exports.textassetTextAssetSchema = zod_1.z.object({
2278
2214
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2279
2215
  return undefined; if (Array.isArray(v))
2280
2216
  return v; if (typeof v === 'string')
2281
- return Number(v); return v; }), zod_1.z.number().int())),
2217
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
2282
2218
  height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2283
2219
  return undefined; if (Array.isArray(v))
2284
2220
  return v; if (typeof v === 'string')
2285
- return Number(v); return v; }), zod_1.z.number().int())),
2221
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
2286
2222
  font: zod_1.z.optional(exports.textpropertiesTextFontSchema),
2287
2223
  background: zod_1.z.optional(exports.textpropertiesTextBackgroundSchema),
2288
2224
  alignment: zod_1.z.optional(exports.textpropertiesTextAlignmentSchema),
2289
2225
  stroke: zod_1.z.optional(exports.textpropertiesTextStrokeSchema),
2290
2226
  animation: zod_1.z.optional(exports.textpropertiesTextAnimationSchema),
2291
2227
  ellipsis: zod_1.z.optional(zod_1.z.string()),
2292
- });
2228
+ }).strict();
2293
2229
  exports.textAssetSchema = exports.textassetTextAssetSchema;
2294
2230
  /**
2295
2231
  * The TextToImageAsset lets you create a dynamic image from a text prompt.
@@ -2300,13 +2236,13 @@ exports.texttoimageassetTextToImageAssetSchema = zod_1.z.object({
2300
2236
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2301
2237
  return undefined; if (Array.isArray(v))
2302
2238
  return v; if (typeof v === 'string')
2303
- return Number(v); return v; }), zod_1.z.number().int())),
2239
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
2304
2240
  height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2305
2241
  return undefined; if (Array.isArray(v))
2306
2242
  return v; if (typeof v === 'string')
2307
- return Number(v); return v; }), zod_1.z.number().int())),
2243
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
2308
2244
  crop: zod_1.z.optional(exports.cropCropSchema),
2309
- });
2245
+ }).strict();
2310
2246
  exports.textToImageAssetSchema = exports.texttoimageassetTextToImageAssetSchema;
2311
2247
  /**
2312
2248
  * Generate a thumbnail image for the video or image at a specific point from the timeline.
@@ -2315,12 +2251,12 @@ exports.thumbnailThumbnailSchema = zod_1.z.object({
2315
2251
  capture: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2316
2252
  return undefined; if (Array.isArray(v))
2317
2253
  return v; if (typeof v === 'string')
2318
- return Number(v); return v; }), zod_1.z.number()),
2254
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number())),
2319
2255
  scale: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2320
2256
  return undefined; if (Array.isArray(v))
2321
2257
  return v; if (typeof v === 'string')
2322
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)),
2323
- });
2258
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))),
2259
+ }).strict();
2324
2260
  exports.thumbnailSchema = exports.thumbnailThumbnailSchema;
2325
2261
  /**
2326
2262
  * The output format, render range and type of media to generate.
@@ -2351,7 +2287,7 @@ exports.outputOutputSchema = zod_1.z.object({
2351
2287
  poster: zod_1.z.optional(exports.posterPosterSchema),
2352
2288
  thumbnail: zod_1.z.optional(exports.thumbnailThumbnailSchema),
2353
2289
  destinations: zod_1.z.optional(zod_1.z.array(exports.destinationsDestinationsSchema)),
2354
- });
2290
+ }).strict();
2355
2291
  exports.outputSchema = exports.outputOutputSchema;
2356
2292
  /**
2357
2293
  * In and out transitions for a clip - i.e. fade in and fade out
@@ -2485,7 +2421,7 @@ exports.transitionTransitionSchema = zod_1.z.object({
2485
2421
  "shuffleTopLeftFast",
2486
2422
  "zoom",
2487
2423
  ])),
2488
- });
2424
+ }).strict();
2489
2425
  exports.transitionSchema = exports.transitionTransitionSchema;
2490
2426
  /**
2491
2427
  * Use a Tween to [animate properties over time](/docs/guide/architecting-an-application/animations/). The following properties are currently supported and can be animated:
@@ -2498,16 +2434,22 @@ exports.transitionSchema = exports.transitionTransitionSchema;
2498
2434
  * </ul>
2499
2435
  */
2500
2436
  exports.tweenTweenSchema = zod_1.z.object({
2501
- from: zod_1.z.optional(zod_1.z.unknown()),
2502
- to: zod_1.z.optional(zod_1.z.unknown()),
2437
+ from: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2438
+ return undefined; if (Array.isArray(v))
2439
+ return v; if (typeof v === 'string')
2440
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number())),
2441
+ to: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2442
+ return undefined; if (Array.isArray(v))
2443
+ return v; if (typeof v === 'string')
2444
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number())),
2503
2445
  start: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2504
2446
  return undefined; if (Array.isArray(v))
2505
2447
  return v; if (typeof v === 'string')
2506
- return Number(v); return v; }), zod_1.z.number())),
2448
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
2507
2449
  length: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2508
2450
  return undefined; if (Array.isArray(v))
2509
2451
  return v; if (typeof v === 'string')
2510
- return Number(v); return v; }), zod_1.z.number())),
2452
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
2511
2453
  interpolation: zod_1.z.optional(zod_1.z.enum(["linear", "bezier", "constant"])),
2512
2454
  easing: zod_1.z.optional(zod_1.z.enum([
2513
2455
  "ease",
@@ -2539,28 +2481,28 @@ exports.tweenTweenSchema = zod_1.z.object({
2539
2481
  "easeInOutCirc",
2540
2482
  "easeInOutBack",
2541
2483
  ])),
2542
- });
2484
+ }).strict();
2543
2485
  exports.tweenSchema = exports.tweenTweenSchema;
2544
2486
  /**
2545
2487
  * The AudioAsset is used to add sound effects and audio at specific intervals on the timeline. The src must be a publicly accessible URL to an audio resource such as an mp3 file.
2546
2488
  */
2547
2489
  exports.audioassetAudioAssetSchema = zod_1.z.object({
2548
2490
  type: zod_1.z.enum(["audio"]),
2549
- src: zod_1.z.string().min(1).regex(/\S/),
2491
+ src: zod_1.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/),
2550
2492
  trim: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2551
2493
  return undefined; if (Array.isArray(v))
2552
2494
  return v; if (typeof v === 'string')
2553
- return Number(v); return v; }), zod_1.z.number())),
2495
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
2554
2496
  volume: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2555
2497
  return undefined; if (Array.isArray(v))
2556
2498
  return v; if (typeof v === 'string')
2557
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.array(exports.tweenTweenSchema)])),
2499
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))), zod_1.z.array(exports.tweenTweenSchema)])),
2558
2500
  speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2559
2501
  return undefined; if (Array.isArray(v))
2560
2502
  return v; if (typeof v === 'string')
2561
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(10))),
2503
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(10)))),
2562
2504
  effect: zod_1.z.optional(zod_1.z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
2563
- });
2505
+ }).strict();
2564
2506
  exports.audioAssetSchema = exports.audioassetAudioAssetSchema;
2565
2507
  /**
2566
2508
  * Offsets the position of an asset horizontally or vertically by a relative distance.
@@ -2569,12 +2511,12 @@ exports.offsetOffsetSchema = zod_1.z.object({
2569
2511
  x: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2570
2512
  return undefined; if (Array.isArray(v))
2571
2513
  return v; if (typeof v === 'string')
2572
- return Number(v); return v; }), zod_1.z.number().gte(-10).lte(10)), zod_1.z.array(exports.tweenTweenSchema)])),
2514
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(-10).lte(10))), zod_1.z.array(exports.tweenTweenSchema)])),
2573
2515
  y: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2574
2516
  return undefined; if (Array.isArray(v))
2575
2517
  return v; if (typeof v === 'string')
2576
- return Number(v); return v; }), zod_1.z.number().gte(-10).lte(10)), zod_1.z.array(exports.tweenTweenSchema)])),
2577
- });
2518
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(-10).lte(10))), zod_1.z.array(exports.tweenTweenSchema)])),
2519
+ }).strict();
2578
2520
  exports.offsetSchema = exports.offsetOffsetSchema;
2579
2521
  /**
2580
2522
  * Rotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`.
@@ -2583,8 +2525,8 @@ exports.rotatetransformationRotateTransformationSchema = zod_1.z.object({
2583
2525
  angle: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2584
2526
  return undefined; if (Array.isArray(v))
2585
2527
  return v; if (typeof v === 'string')
2586
- return Number(v); return v; }), zod_1.z.number().gte(-360).lte(360)), zod_1.z.array(exports.tweenTweenSchema)])),
2587
- });
2528
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(-360).lte(360))), zod_1.z.array(exports.tweenTweenSchema)])),
2529
+ }).strict();
2588
2530
  exports.rotateTransformationSchema = exports.rotatetransformationRotateTransformationSchema;
2589
2531
  /**
2590
2532
  * Skew a clip so its edges are sheared at an angle. Use values between -100 and 100. Values over 3 or under -3 will skew the clip almost flat.
@@ -2593,12 +2535,12 @@ exports.skewtransformationSkewTransformationSchema = zod_1.z.object({
2593
2535
  x: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2594
2536
  return undefined; if (Array.isArray(v))
2595
2537
  return v; if (typeof v === 'string')
2596
- return Number(v); return v; }), zod_1.z.number().gte(-100).lte(100)), zod_1.z.array(exports.tweenTweenSchema)])),
2538
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(-100).lte(100))), zod_1.z.array(exports.tweenTweenSchema)])),
2597
2539
  y: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2598
2540
  return undefined; if (Array.isArray(v))
2599
2541
  return v; if (typeof v === 'string')
2600
- return Number(v); return v; }), zod_1.z.number().gte(-100).lte(100)), zod_1.z.array(exports.tweenTweenSchema)])),
2601
- });
2542
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(-100).lte(100))), zod_1.z.array(exports.tweenTweenSchema)])),
2543
+ }).strict();
2602
2544
  exports.skewTransformationSchema = exports.skewtransformationSkewTransformationSchema;
2603
2545
  /**
2604
2546
  * **Notice: The TitleAsset is deprecated, use the [TextAsset](#tocs_textasset) instead.**
@@ -2646,7 +2588,7 @@ exports.titleassetTitleAssetSchema = zod_1.z.object({
2646
2588
  "center",
2647
2589
  ])),
2648
2590
  offset: zod_1.z.optional(exports.offsetOffsetSchema),
2649
- });
2591
+ }).strict();
2650
2592
  exports.titleAssetSchema = exports.titleassetTitleAssetSchema;
2651
2593
  /**
2652
2594
  * Apply one or more transformations to a clip. Transformations alter the visual properties of a clip and can be combined to create new shapes and effects.
@@ -2655,31 +2597,31 @@ exports.transformationTransformationSchema = zod_1.z.object({
2655
2597
  rotate: zod_1.z.optional(exports.rotatetransformationRotateTransformationSchema),
2656
2598
  skew: zod_1.z.optional(exports.skewtransformationSkewTransformationSchema),
2657
2599
  flip: zod_1.z.optional(exports.fliptransformationFlipTransformationSchema),
2658
- });
2600
+ }).strict();
2659
2601
  exports.transformationSchema = exports.transformationTransformationSchema;
2660
2602
  /**
2661
2603
  * The VideoAsset is used to create video sequences from video files. The src must be a publicly accessible URL to a video resource such as an mp4 file.
2662
2604
  */
2663
2605
  exports.videoassetVideoAssetSchema = zod_1.z.object({
2664
2606
  type: zod_1.z.enum(["video"]),
2665
- src: zod_1.z.string().min(1).regex(/\S/),
2607
+ src: zod_1.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/),
2666
2608
  transcode: zod_1.z.optional(zod_1.z.boolean()),
2667
2609
  trim: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2668
2610
  return undefined; if (Array.isArray(v))
2669
2611
  return v; if (typeof v === 'string')
2670
- return Number(v); return v; }), zod_1.z.number())),
2612
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
2671
2613
  volume: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2672
2614
  return undefined; if (Array.isArray(v))
2673
2615
  return v; if (typeof v === 'string')
2674
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.array(exports.tweenTweenSchema)])),
2616
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))), zod_1.z.array(exports.tweenTweenSchema)])),
2675
2617
  volumeEffect: zod_1.z.optional(zod_1.z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
2676
2618
  speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2677
2619
  return undefined; if (Array.isArray(v))
2678
2620
  return v; if (typeof v === 'string')
2679
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(10))),
2621
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(10)))),
2680
2622
  crop: zod_1.z.optional(exports.cropCropSchema),
2681
2623
  chromaKey: zod_1.z.optional(exports.chromakeyChromaKeySchema),
2682
- });
2624
+ }).strict();
2683
2625
  exports.videoAssetSchema = exports.videoassetVideoAssetSchema;
2684
2626
  /**
2685
2627
  * The type of asset to display for the duration of the Clip, i.e. a video clip or an image. Choose from one of the available asset types below.
@@ -2707,31 +2649,29 @@ exports.clipClipSchema = zod_1.z.object({
2707
2649
  asset: exports.assetAssetSchema,
2708
2650
  start: zod_1.z.union([
2709
2651
  zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2710
- return undefined; if (Array.isArray(v))
2711
- return v; if (typeof v === 'string')
2712
- return Number(v); return v; }), zod_1.z.number().gte(0)),
2652
+ return undefined; if (typeof v === 'string' && /^-?\d+(\.\d+)?$/.test(v))
2653
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0))),
2713
2654
  zod_1.z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/),
2714
2655
  ]),
2715
2656
  length: zod_1.z.union([
2716
2657
  zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2717
- return undefined; if (Array.isArray(v))
2718
- return v; if (typeof v === 'string')
2719
- return Number(v); return v; }), zod_1.z.number().gte(0)),
2658
+ return undefined; if (typeof v === 'string' && /^-?\d+(\.\d+)?$/.test(v))
2659
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0))),
2720
2660
  zod_1.z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/),
2721
2661
  ]),
2722
2662
  fit: zod_1.z.optional(zod_1.z.enum(["cover", "contain", "crop", "none"])),
2723
2663
  scale: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2724
2664
  return undefined; if (Array.isArray(v))
2725
2665
  return v; if (typeof v === 'string')
2726
- return Number(v); return v; }), zod_1.z.number()), zod_1.z.array(exports.tweenTweenSchema)])),
2666
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number())), zod_1.z.array(exports.tweenTweenSchema)])),
2727
2667
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2728
2668
  return undefined; if (Array.isArray(v))
2729
2669
  return v; if (typeof v === 'string')
2730
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(3840))),
2670
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(3840)))),
2731
2671
  height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2732
2672
  return undefined; if (Array.isArray(v))
2733
2673
  return v; if (typeof v === 'string')
2734
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(2160))),
2674
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(2160)))),
2735
2675
  position: zod_1.z.optional(zod_1.z.enum([
2736
2676
  "top",
2737
2677
  "topRight",
@@ -2779,17 +2719,17 @@ exports.clipClipSchema = zod_1.z.object({
2779
2719
  opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2780
2720
  return undefined; if (Array.isArray(v))
2781
2721
  return v; if (typeof v === 'string')
2782
- return Number(v); return v; }), zod_1.z.number()), zod_1.z.array(exports.tweenTweenSchema)])),
2722
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number())), zod_1.z.array(exports.tweenTweenSchema)])),
2783
2723
  transform: zod_1.z.optional(exports.transformationTransformationSchema),
2784
2724
  alias: zod_1.z.optional(zod_1.z.string().regex(/^[A-Za-z0-9_-]+$/)),
2785
- });
2725
+ }).strict();
2786
2726
  exports.clipSchema = exports.clipClipSchema;
2787
2727
  /**
2788
2728
  * A track contains an array of clips. Tracks are layered on top of each other in the order in the array. The top most track will render on top of those below it.
2789
2729
  */
2790
2730
  exports.trackTrackSchema = zod_1.z.object({
2791
2731
  clips: zod_1.z.array(exports.clipClipSchema).min(1),
2792
- });
2732
+ }).strict();
2793
2733
  exports.trackSchema = exports.trackTrackSchema;
2794
2734
  /**
2795
2735
  * A timeline represents the contents of a video edit over time, an audio edit over time, in seconds, or an image layout. A timeline consists of layers called tracks. Tracks are composed of titles, images, audio, html or video segments referred to as clips which are placed along the track at specific starting point and lasting for a specific amount of time.
@@ -2800,7 +2740,7 @@ exports.timelineTimelineSchema = zod_1.z.object({
2800
2740
  fonts: zod_1.z.optional(zod_1.z.array(exports.fontFontSchema)),
2801
2741
  tracks: zod_1.z.array(exports.trackTrackSchema).min(1),
2802
2742
  cache: zod_1.z.optional(zod_1.z.boolean()),
2803
- });
2743
+ }).strict();
2804
2744
  exports.timelineSchema = exports.timelineTimelineSchema;
2805
2745
  /**
2806
2746
  * An edit defines the arrangement of a video on a timeline, an audio edit or an image design and the output format. Video assets are automatically preprocessed to fix common compatibility issues before rendering. You can control preprocessing behavior using the `transcode` flag on video assets.
@@ -2811,7 +2751,7 @@ exports.editEditSchema = zod_1.z.object({
2811
2751
  merge: zod_1.z.optional(zod_1.z.array(exports.mergefieldMergeFieldSchema)),
2812
2752
  callback: zod_1.z.optional(zod_1.z.string()),
2813
2753
  disk: zod_1.z.optional(zod_1.z.enum(["local", "mount"])),
2814
- });
2754
+ }).strict();
2815
2755
  exports.editSchema = exports.editEditSchema;
2816
2756
  /**
2817
2757
  * The response data returned with the [RenderResponse](#tocs_renderresponse) including status and URL.
@@ -2833,18 +2773,18 @@ exports.renderresponsedataRenderResponseDataSchema = zod_1.z.object({
2833
2773
  duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2834
2774
  return undefined; if (Array.isArray(v))
2835
2775
  return v; if (typeof v === 'string')
2836
- return Number(v); return v; }), zod_1.z.number())),
2776
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
2837
2777
  renderTime: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2838
2778
  return undefined; if (Array.isArray(v))
2839
2779
  return v; if (typeof v === 'string')
2840
- return Number(v); return v; }), zod_1.z.number())),
2780
+ return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
2841
2781
  url: zod_1.z.optional(zod_1.z.string()),
2842
2782
  poster: zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
2843
2783
  thumbnail: zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
2844
2784
  data: zod_1.z.optional(exports.editEditSchema),
2845
2785
  created: zod_1.z.optional(zod_1.z.string()),
2846
2786
  updated: zod_1.z.optional(zod_1.z.string()),
2847
- });
2787
+ }).strict();
2848
2788
  exports.renderResponseDataSchema = exports.renderresponsedataRenderResponseDataSchema;
2849
2789
  /**
2850
2790
  * The response received after a [render status request](#get-render-status) is submitted. The response includes details about status of a render and the output URL.
@@ -2853,7 +2793,7 @@ exports.renderresponseRenderResponseSchema = zod_1.z.object({
2853
2793
  success: zod_1.z.boolean(),
2854
2794
  message: zod_1.z.string(),
2855
2795
  response: exports.renderresponsedataRenderResponseDataSchema,
2856
- });
2796
+ }).strict();
2857
2797
  exports.renderResponseSchema = exports.renderresponseRenderResponseSchema;
2858
2798
  /**
2859
2799
  * The response data returned with the [TemplateDataResponse](#tocs_templatedataresponse).
@@ -2863,7 +2803,7 @@ exports.templatedataresponsedataTemplateDataResponseDataSchema = zod_1.z.object(
2863
2803
  name: zod_1.z.string(),
2864
2804
  owner: zod_1.z.string(),
2865
2805
  template: exports.editEditSchema,
2866
- });
2806
+ }).strict();
2867
2807
  exports.templateDataResponseDataSchema = exports.templatedataresponsedataTemplateDataResponseDataSchema;
2868
2808
  /**
2869
2809
  * The template data including the template name and [Edit](#tocs_edit).
@@ -2872,7 +2812,7 @@ exports.templatedataresponseTemplateDataResponseSchema = zod_1.z.object({
2872
2812
  success: zod_1.z.boolean(),
2873
2813
  message: zod_1.z.string(),
2874
2814
  response: exports.templatedataresponsedataTemplateDataResponseDataSchema,
2875
- });
2815
+ }).strict();
2876
2816
  exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataResponseSchema;
2877
2817
  /**
2878
2818
  * A template is a saved [Edit](#tocs_edit) than can be loaded and re-used.
@@ -2880,7 +2820,7 @@ exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataRes
2880
2820
  exports.templateTemplateSchema = zod_1.z.object({
2881
2821
  name: zod_1.z.string(),
2882
2822
  template: zod_1.z.optional(exports.editEditSchema),
2883
- });
2823
+ }).strict();
2884
2824
  exports.templateSchema = exports.templateTemplateSchema;
2885
2825
  exports.postRenderRequest = zod_1.z.object({
2886
2826
  body: exports.editEditSchema,
@@ -2901,7 +2841,7 @@ exports.getRenderRequest = zod_1.z.object({
2901
2841
  query: zod_1.z.optional(zod_1.z.object({
2902
2842
  data: zod_1.z.optional(zod_1.z.boolean()),
2903
2843
  merged: zod_1.z.optional(zod_1.z.boolean()),
2904
- })),
2844
+ }).strict()),
2905
2845
  });
2906
2846
  /**
2907
2847
  * The render status details