@shotstack/schemas 1.4.8 → 1.5.1

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