@shotstack/schemas 1.4.4 → 1.4.6

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.
@@ -42,7 +42,7 @@ exports.captionpropertiesCaptionBackgroundSchema = zod_1.z.object({
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()))
45
+ return Number(v); return v; }), zod_1.z.number().int())),
46
46
  });
47
47
  exports.captionBackgroundSchema = exports.captionpropertiesCaptionBackgroundSchema;
48
48
  /**
@@ -67,7 +67,7 @@ exports.captionpropertiesCaptionFontSchema = zod_1.z.object({
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()))
70
+ return Number(v); return v; }), zod_1.z.number())),
71
71
  });
72
72
  exports.captionFontSchema = exports.captionpropertiesCaptionFontSchema;
73
73
  /**
@@ -85,7 +85,7 @@ exports.captionpropertiesCaptionMarginSchema = zod_1.z.object({
85
85
  right: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
86
86
  return undefined; if (Array.isArray(v))
87
87
  return v; if (typeof v === 'string')
88
- return Number(v); return v; }), zod_1.z.number()))
88
+ return Number(v); return v; }), zod_1.z.number())),
89
89
  });
90
90
  exports.captionMarginSchema = exports.captionpropertiesCaptionMarginSchema;
91
91
  /**
@@ -101,8 +101,8 @@ exports.captionMarginSchema = exports.captionpropertiesCaptionMarginSchema;
101
101
  *
102
102
  */
103
103
  exports.captionassetCaptionAssetSchema = zod_1.z.object({
104
- type: zod_1.z.enum(['caption']),
105
- src: zod_1.z.string(),
104
+ type: zod_1.z.enum(["caption"]),
105
+ src: zod_1.z.string().min(1).regex(/\S/),
106
106
  font: zod_1.z.optional(exports.captionpropertiesCaptionFontSchema),
107
107
  background: zod_1.z.optional(exports.captionpropertiesCaptionBackgroundSchema),
108
108
  margin: zod_1.z.optional(exports.captionpropertiesCaptionMarginSchema),
@@ -113,7 +113,7 @@ exports.captionassetCaptionAssetSchema = zod_1.z.object({
113
113
  speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
114
114
  return undefined; if (Array.isArray(v))
115
115
  return v; if (typeof v === 'string')
116
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(10)))
116
+ return Number(v); return v; }), zod_1.z.number().gte(0).lte(10))),
117
117
  });
118
118
  exports.captionAssetSchema = exports.captionassetCaptionAssetSchema;
119
119
  /**
@@ -128,23 +128,17 @@ exports.chromakeyChromaKeySchema = zod_1.z.object({
128
128
  halo: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
129
129
  return undefined; if (Array.isArray(v))
130
130
  return v; if (typeof v === 'string')
131
- return Number(v); return v; }), zod_1.z.number().int().gte(0).lte(250)))
131
+ return Number(v); return v; }), zod_1.z.number().int().gte(0).lte(250))),
132
132
  });
133
133
  exports.chromaKeySchema = exports.chromakeyChromaKeySchema;
134
134
  /**
135
135
  * Options for the D-ID text-to-avatar service. Set the text to be converted to an avatar and configure the avatar and background. The output will be generated as an MP4 video file.
136
136
  */
137
137
  exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema = zod_1.z.object({
138
- type: zod_1.z.enum(['text-to-avatar']),
138
+ type: zod_1.z.enum(["text-to-avatar"]),
139
139
  text: zod_1.z.string(),
140
- avatar: zod_1.z.enum([
141
- 'jack',
142
- 'lana',
143
- 'lily',
144
- 'matt',
145
- 'rian'
146
- ]),
147
- background: zod_1.z.optional(zod_1.z.string())
140
+ avatar: zod_1.z.enum(["jack", "lana", "lily", "matt", "rian"]),
141
+ background: zod_1.z.optional(zod_1.z.string()),
148
142
  });
149
143
  exports.didTextToAvatarOptionsSchema = exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema;
150
144
  /**
@@ -154,35 +148,37 @@ exports.didTextToAvatarOptionsSchema = exports.didTextToAvatarOptionsDidTextToAv
154
148
  * <li><a href="#tocs_didtexttoavataroptions">DidTextToAvatarOptions</a></li>
155
149
  * </ul>
156
150
  */
157
- exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = zod_1.z.object({
158
- type: zod_1.z.literal('didTextToAvatarOptions_DIDTextToAvatarOptions')
159
- }).and(exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema);
151
+ exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = zod_1.z
152
+ .object({
153
+ type: zod_1.z.literal("didTextToAvatarOptions_DIDTextToAvatarOptions"),
154
+ })
155
+ .and(exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema);
160
156
  exports.didGeneratedAssetOptionsSchema = exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema;
161
157
  /**
162
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.
163
159
  */
164
160
  exports.didGeneratedAssetDidGeneratedAssetSchema = zod_1.z.object({
165
- provider: zod_1.z.enum(['d-id']),
166
- options: exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema
161
+ provider: zod_1.z.enum(["d-id"]),
162
+ options: exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema,
167
163
  });
168
164
  exports.didGeneratedAssetSchema = exports.didGeneratedAssetDidGeneratedAssetSchema;
169
165
  /**
170
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.
171
167
  */
172
168
  exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema = zod_1.z.object({
173
- type: zod_1.z.enum(['text-to-speech']),
169
+ type: zod_1.z.enum(["text-to-speech"]),
174
170
  text: zod_1.z.string(),
175
171
  voice: zod_1.z.enum([
176
- 'Adam',
177
- 'Antoni',
178
- 'Arnold',
179
- 'Bella',
180
- 'Domi',
181
- 'Elli',
182
- 'Josh',
183
- 'Rachel',
184
- 'Sam'
185
- ])
172
+ "Adam",
173
+ "Antoni",
174
+ "Arnold",
175
+ "Bella",
176
+ "Domi",
177
+ "Elli",
178
+ "Josh",
179
+ "Rachel",
180
+ "Sam",
181
+ ]),
186
182
  });
187
183
  exports.elevenLabsTextToSpeechOptionsSchema = exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema;
188
184
  /**
@@ -192,141 +188,143 @@ exports.elevenLabsTextToSpeechOptionsSchema = exports.elevenlabsTextToSpeechOpti
192
188
  * <li><a href="#tocs_elevenlabstexttospeechoptions">ElevenLabsTextToSpeechOptions</a></li>
193
189
  * </ul>
194
190
  */
195
- exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema = zod_1.z.object({
196
- type: zod_1.z.literal('elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions')
197
- }).and(exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema);
191
+ exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema = zod_1.z
192
+ .object({
193
+ type: zod_1.z.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions"),
194
+ })
195
+ .and(exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema);
198
196
  exports.elevenLabsGeneratedAssetOptionsSchema = exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema;
199
197
  /**
200
198
  * 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.
201
199
  */
202
200
  exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema = zod_1.z.object({
203
- provider: zod_1.z.enum(['elevenlabs']),
204
- options: exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema
201
+ provider: zod_1.z.enum(["elevenlabs"]),
202
+ options: exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema,
205
203
  });
206
204
  exports.elevenLabsGeneratedAssetSchema = exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema;
207
205
  /**
208
206
  * 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.
209
207
  */
210
208
  exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema = zod_1.z.object({
211
- type: zod_1.z.enum(['text-to-avatar']),
209
+ type: zod_1.z.enum(["text-to-avatar"]),
212
210
  text: zod_1.z.string(),
213
211
  avatar: zod_1.z.enum([
214
- 'Angela',
215
- 'Bill',
216
- 'Daisy',
217
- 'Derek',
218
- 'Eva',
219
- 'Jake',
220
- 'Jeff',
221
- 'Jerome',
222
- 'Joon',
223
- 'Kayla',
224
- 'Kent',
225
- 'Luna',
226
- 'Mark',
227
- 'Matthew',
228
- 'Monica',
229
- 'Peter',
230
- 'Selina',
231
- 'Tanya',
232
- 'Thomas',
233
- 'Tina',
234
- 'Tyler',
235
- 'Vanessa',
236
- 'Vera',
237
- 'Wilson',
238
- 'Zoey'
212
+ "Angela",
213
+ "Bill",
214
+ "Daisy",
215
+ "Derek",
216
+ "Eva",
217
+ "Jake",
218
+ "Jeff",
219
+ "Jerome",
220
+ "Joon",
221
+ "Kayla",
222
+ "Kent",
223
+ "Luna",
224
+ "Mark",
225
+ "Matthew",
226
+ "Monica",
227
+ "Peter",
228
+ "Selina",
229
+ "Tanya",
230
+ "Thomas",
231
+ "Tina",
232
+ "Tyler",
233
+ "Vanessa",
234
+ "Vera",
235
+ "Wilson",
236
+ "Zoey",
239
237
  ]),
240
238
  voice: zod_1.z.enum([
241
- 'Abbi - Natural',
242
- 'Adam - Natural',
243
- 'Aiston - Friendly',
244
- 'Alice - Newscaster',
245
- 'Alison - Cheerful',
246
- 'Amber - Friendly',
247
- 'Amy - Warm',
248
- 'Ana - Cheerful',
249
- 'Antoni - Friendly',
250
- 'Aria - Newscaster',
251
- 'Arnold - Cheerful',
252
- 'Arthur - Natural',
253
- 'Bella - Friendly',
254
- 'Belle - Natural',
255
- 'Brandon - Warm',
256
- 'Brian - Natural',
257
- 'Bruce - Natural',
258
- 'Cerise - Cheerful',
259
- 'Christopher - Calm',
260
- 'Clara - Professional',
261
- 'Connor - Natural',
262
- 'Dahlia - Friendly',
263
- 'Davis - Professional',
264
- 'Dean - Natural',
265
- 'Delbert - Cheerful',
266
- 'Edward - Friendly',
267
- 'Elaine - Calm',
268
- 'Emily - Natural',
269
- 'Emma - Newscaster',
270
- 'Eric - Newscaster',
271
- 'Grace - Natural',
272
- 'Hailey - Calm',
273
- 'Indira - Cheerful',
274
- 'Isabella - Cheerful',
275
- 'Jacob - Natural',
276
- 'Jahmai - Friendly',
277
- 'Jane - Serious',
278
- 'Jason - Serious',
279
- 'Jelle - Friendly',
280
- 'Jen - Natural',
281
- 'Jenny - Professional',
282
- 'Jodi - Cheerful',
283
- 'Joey - Calm',
284
- 'Johan - Friendly',
285
- 'Josie - Cheerful',
286
- 'Keanan - Natural',
287
- 'Keith - Cheerful',
288
- 'Kellie - Friendly',
289
- 'Lauren - Friendly',
290
- 'Leah - Natural',
291
- 'Liam - Professional',
292
- 'Libby - Natural',
293
- 'Lily - Professional',
294
- 'Lucas - Natural',
295
- 'Luke - Professional',
296
- 'Luna - Natural',
297
- 'Marieke - Natural',
298
- 'Matthew - Professional',
299
- 'Michelle - Natural',
300
- 'Mitchell - Natural',
301
- 'Molly - Newscaster',
302
- 'Monica - Calm',
303
- 'Natasha - Professional',
304
- 'Neerja - Newscaster',
305
- 'Noah - Serious',
306
- 'Oliver - Newscaster',
307
- 'Olivia - Calm',
308
- 'Paul - Natural',
309
- 'Prabhat - Natural',
310
- 'Raveena - Natural',
311
- 'Rudi - Friendly',
312
- 'Ryan - Professional',
313
- 'Sam - Natural',
314
- 'Sara - Cheerful',
315
- 'Sherry - Friendly',
316
- 'Sonia - Warm',
317
- 'Thomas - Natural',
318
- 'Todd - Professional',
319
- 'Tony - Professional',
320
- 'Tracy - Cheerful',
321
- 'Wayne - Natural',
322
- 'Wilder - Natural',
323
- 'Wille - Natural',
324
- 'William - Friendly'
239
+ "Abbi - Natural",
240
+ "Adam - Natural",
241
+ "Aiston - Friendly",
242
+ "Alice - Newscaster",
243
+ "Alison - Cheerful",
244
+ "Amber - Friendly",
245
+ "Amy - Warm",
246
+ "Ana - Cheerful",
247
+ "Antoni - Friendly",
248
+ "Aria - Newscaster",
249
+ "Arnold - Cheerful",
250
+ "Arthur - Natural",
251
+ "Bella - Friendly",
252
+ "Belle - Natural",
253
+ "Brandon - Warm",
254
+ "Brian - Natural",
255
+ "Bruce - Natural",
256
+ "Cerise - Cheerful",
257
+ "Christopher - Calm",
258
+ "Clara - Professional",
259
+ "Connor - Natural",
260
+ "Dahlia - Friendly",
261
+ "Davis - Professional",
262
+ "Dean - Natural",
263
+ "Delbert - Cheerful",
264
+ "Edward - Friendly",
265
+ "Elaine - Calm",
266
+ "Emily - Natural",
267
+ "Emma - Newscaster",
268
+ "Eric - Newscaster",
269
+ "Grace - Natural",
270
+ "Hailey - Calm",
271
+ "Indira - Cheerful",
272
+ "Isabella - Cheerful",
273
+ "Jacob - Natural",
274
+ "Jahmai - Friendly",
275
+ "Jane - Serious",
276
+ "Jason - Serious",
277
+ "Jelle - Friendly",
278
+ "Jen - Natural",
279
+ "Jenny - Professional",
280
+ "Jodi - Cheerful",
281
+ "Joey - Calm",
282
+ "Johan - Friendly",
283
+ "Josie - Cheerful",
284
+ "Keanan - Natural",
285
+ "Keith - Cheerful",
286
+ "Kellie - Friendly",
287
+ "Lauren - Friendly",
288
+ "Leah - Natural",
289
+ "Liam - Professional",
290
+ "Libby - Natural",
291
+ "Lily - Professional",
292
+ "Lucas - Natural",
293
+ "Luke - Professional",
294
+ "Luna - Natural",
295
+ "Marieke - Natural",
296
+ "Matthew - Professional",
297
+ "Michelle - Natural",
298
+ "Mitchell - Natural",
299
+ "Molly - Newscaster",
300
+ "Monica - Calm",
301
+ "Natasha - Professional",
302
+ "Neerja - Newscaster",
303
+ "Noah - Serious",
304
+ "Oliver - Newscaster",
305
+ "Olivia - Calm",
306
+ "Paul - Natural",
307
+ "Prabhat - Natural",
308
+ "Raveena - Natural",
309
+ "Rudi - Friendly",
310
+ "Ryan - Professional",
311
+ "Sam - Natural",
312
+ "Sara - Cheerful",
313
+ "Sherry - Friendly",
314
+ "Sonia - Warm",
315
+ "Thomas - Natural",
316
+ "Todd - Professional",
317
+ "Tony - Professional",
318
+ "Tracy - Cheerful",
319
+ "Wayne - Natural",
320
+ "Wilder - Natural",
321
+ "Wille - Natural",
322
+ "William - Friendly",
325
323
  ]),
326
- avatarStyle: zod_1.z.optional(zod_1.z.enum(['normal', 'circle'])),
324
+ avatarStyle: zod_1.z.optional(zod_1.z.enum(["normal", "circle"])),
327
325
  background: zod_1.z.optional(zod_1.z.string()),
328
- ratio: zod_1.z.optional(zod_1.z.enum(['16:9', '9:16'])),
329
- test: zod_1.z.optional(zod_1.z.boolean())
326
+ ratio: zod_1.z.optional(zod_1.z.enum(["16:9", "9:16"])),
327
+ test: zod_1.z.optional(zod_1.z.boolean()),
330
328
  });
331
329
  exports.heyGenTextToAvatarOptionsSchema = exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema;
332
330
  /**
@@ -336,26 +334,28 @@ exports.heyGenTextToAvatarOptionsSchema = exports.heygenTextToAvatarOptionsHeyGe
336
334
  * <li><a href="#tocs_heygentexttoavataroptions">HeyGenTextToAvatarOptions</a></li>
337
335
  * </ul>
338
336
  */
339
- exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = zod_1.z.object({
340
- type: zod_1.z.literal('heygenTextToAvatarOptions_HeyGenTextToAvatarOptions')
341
- }).and(exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema);
337
+ exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = zod_1.z
338
+ .object({
339
+ type: zod_1.z.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions"),
340
+ })
341
+ .and(exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema);
342
342
  exports.heyGenGeneratedAssetOptionsSchema = exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema;
343
343
  /**
344
344
  * 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.
345
345
  */
346
346
  exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema = zod_1.z.object({
347
- provider: zod_1.z.enum(['heygen']),
348
- options: exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema
347
+ provider: zod_1.z.enum(["heygen"]),
348
+ options: exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema,
349
349
  });
350
350
  exports.heyGenGeneratedAssetSchema = exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema;
351
351
  /**
352
352
  * 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.
353
353
  */
354
354
  exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema = zod_1.z.object({
355
- type: zod_1.z.enum(['text-generator']),
355
+ type: zod_1.z.enum(["text-generator"]),
356
356
  prompt: zod_1.z.string(),
357
- model: zod_1.z.enum(['gpt-3.5-turbo', 'gpt-4']),
358
- systemPrompt: zod_1.z.optional(zod_1.z.string())
357
+ model: zod_1.z.enum(["gpt-3.5-turbo", "gpt-4"]),
358
+ systemPrompt: zod_1.z.optional(zod_1.z.string()),
359
359
  });
360
360
  exports.openAiTextGeneratorOptionsSchema = exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema;
361
361
  /**
@@ -365,16 +365,18 @@ exports.openAiTextGeneratorOptionsSchema = exports.openaiTextGeneratorOptionsOpe
365
365
  * <li><a href="#tocs_openaitextgeneratoroptions">OpenAiTextGeneratorOptions</a></li>
366
366
  * </ul>
367
367
  */
368
- exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = zod_1.z.object({
369
- type: zod_1.z.literal('openaiTextGeneratorOptions_OpenAiTextGeneratorOptions')
370
- }).and(exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema);
368
+ exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = zod_1.z
369
+ .object({
370
+ type: zod_1.z.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions"),
371
+ })
372
+ .and(exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema);
371
373
  exports.openAiGeneratedAssetOptionsSchema = exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema;
372
374
  /**
373
375
  * 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.
374
376
  */
375
377
  exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema = zod_1.z.object({
376
- provider: zod_1.z.enum(['openai']),
377
- options: exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema
378
+ provider: zod_1.z.enum(["openai"]),
379
+ options: exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema,
378
380
  });
379
381
  exports.openAiGeneratedAssetSchema = exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema;
380
382
  /**
@@ -383,14 +385,14 @@ exports.openAiGeneratedAssetSchema = exports.openaiGeneratedAssetOpenAiGenerated
383
385
  exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema = zod_1.z.object({
384
386
  status: zod_1.z.string(),
385
387
  title: zod_1.z.string(),
386
- detail: zod_1.z.string()
388
+ detail: zod_1.z.string(),
387
389
  });
388
390
  exports.generatedAssetErrorResponseDataSchema = exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema;
389
391
  /**
390
392
  * Error response data for validation and other errors returned by the Create API.
391
393
  */
392
394
  exports.generatedAssetErrorResponseGeneratedAssetErrorResponseSchema = zod_1.z.object({
393
- errors: zod_1.z.array(exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema)
395
+ errors: zod_1.z.array(exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema),
394
396
  });
395
397
  exports.generatedAssetErrorResponseSchema = exports.generatedAssetErrorResponseGeneratedAssetErrorResponseSchema;
396
398
  /**
@@ -398,23 +400,12 @@ exports.generatedAssetErrorResponseSchema = exports.generatedAssetErrorResponseG
398
400
  */
399
401
  exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema = zod_1.z.object({
400
402
  owner: zod_1.z.string(),
401
- provider: zod_1.z.enum([
402
- 'shotstack',
403
- 'elevenlabs',
404
- 'heygen',
405
- 'd-id'
406
- ]),
407
- type: zod_1.z.enum(['text-to-speech', 'text-to-avatar']),
403
+ provider: zod_1.z.enum(["shotstack", "elevenlabs", "heygen", "d-id"]),
404
+ type: zod_1.z.enum(["text-to-speech", "text-to-avatar"]),
408
405
  url: zod_1.z.optional(zod_1.z.string()),
409
- status: zod_1.z.enum([
410
- 'queued',
411
- 'processing',
412
- 'saving',
413
- 'done',
414
- 'failed'
415
- ]),
406
+ status: zod_1.z.enum(["queued", "processing", "saving", "done", "failed"]),
416
407
  created: zod_1.z.string(),
417
- updated: zod_1.z.string()
408
+ updated: zod_1.z.string(),
418
409
  });
419
410
  exports.generatedAssetResponseAttributesSchema = exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema;
420
411
  /**
@@ -423,21 +414,21 @@ exports.generatedAssetResponseAttributesSchema = exports.generatedAssetResponseA
423
414
  exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema = zod_1.z.object({
424
415
  type: zod_1.z.string(),
425
416
  id: zod_1.z.string(),
426
- attributes: exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema
417
+ attributes: exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema,
427
418
  });
428
419
  exports.generatedAssetResponseDataSchema = exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema;
429
420
  /**
430
421
  * 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.
431
422
  */
432
423
  exports.generatedAssetResponseGeneratedAssetResponseSchema = zod_1.z.object({
433
- data: exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema
424
+ data: exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema,
434
425
  });
435
426
  exports.generatedAssetResponseSchema = exports.generatedAssetResponseGeneratedAssetResponseSchema;
436
427
  /**
437
428
  * 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.
438
429
  */
439
430
  exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema = zod_1.z.object({
440
- type: zod_1.z.enum(['image-to-video']),
431
+ type: zod_1.z.enum(["image-to-video"]),
441
432
  imageUrl: zod_1.z.string(),
442
433
  guidanceScale: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
443
434
  return undefined; if (Array.isArray(v))
@@ -446,22 +437,22 @@ exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema = zod_1.z
446
437
  motion: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
447
438
  return undefined; if (Array.isArray(v))
448
439
  return v; if (typeof v === 'string')
449
- return Number(v); return v; }), zod_1.z.number().int())).default(127)
440
+ return Number(v); return v; }), zod_1.z.number().int())).default(127),
450
441
  });
451
442
  exports.shotstackImageToVideoOptionsSchema = exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema;
452
443
  /**
453
444
  * 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.
454
445
  */
455
446
  exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema = zod_1.z.object({
456
- type: zod_1.z.enum(['text-generator']),
457
- prompt: zod_1.z.string()
447
+ type: zod_1.z.enum(["text-generator"]),
448
+ prompt: zod_1.z.string(),
458
449
  });
459
450
  exports.shotstackTextGeneratorOptionsSchema = exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema;
460
451
  /**
461
452
  * 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.
462
453
  */
463
454
  exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema = zod_1.z.object({
464
- type: zod_1.z.enum(['text-to-image']),
455
+ type: zod_1.z.enum(["text-to-image"]),
465
456
  prompt: zod_1.z.string(),
466
457
  width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
467
458
  return undefined; if (Array.isArray(v))
@@ -470,146 +461,154 @@ exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema = zod_1.z.o
470
461
  height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
471
462
  return undefined; if (Array.isArray(v))
472
463
  return v; if (typeof v === 'string')
473
- return Number(v); return v; }), zod_1.z.number().int())
464
+ return Number(v); return v; }), zod_1.z.number().int()),
474
465
  });
475
466
  exports.shotstackTextToImageOptionsSchema = exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema;
476
467
  /**
477
468
  * 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.
478
469
  */
479
470
  exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema = zod_1.z.object({
480
- type: zod_1.z.enum(['text-to-speech']),
471
+ type: zod_1.z.enum(["text-to-speech"]),
481
472
  text: zod_1.z.string(),
482
473
  voice: zod_1.z.enum([
483
- 'Hala',
484
- 'Lisa',
485
- 'Arlet',
486
- 'Hiujin',
487
- 'Zhiyu',
488
- 'Sofie',
489
- 'Laura',
490
- 'Olivia',
491
- 'Amy',
492
- 'Emma',
493
- 'Brian',
494
- 'Arthur',
495
- 'Kajal',
496
- 'Niamh',
497
- 'Aria',
498
- 'Ayanda',
499
- 'Ivy',
500
- 'Joanna',
501
- 'Kendra',
502
- 'Kimberly',
503
- 'Salli',
504
- 'Joey',
505
- 'Justin',
506
- 'Kevin',
507
- 'Matthew',
508
- 'Ruth',
509
- 'Stephen',
510
- 'Suvi',
511
- 'Léa',
512
- 'Rémi',
513
- 'Gabrielle',
514
- 'Liam',
515
- 'Vicki',
516
- 'Daniel',
517
- 'Hannah',
518
- 'Kajal',
519
- 'Bianca',
520
- 'Adriano',
521
- 'Takumi',
522
- 'Kazuha',
523
- 'Tomoko',
524
- 'Seoyeon',
525
- 'Ida',
526
- 'Ola',
527
- 'Camila',
528
- 'Vitória',
529
- 'Vitoria',
530
- 'Thiago',
531
- 'Inês',
532
- 'Ines',
533
- 'Lucia',
534
- 'Sergio',
535
- 'Mia',
536
- 'Andrés',
537
- 'Lupe',
538
- 'Pedro',
539
- 'Elin'
474
+ "Hala",
475
+ "Lisa",
476
+ "Arlet",
477
+ "Hiujin",
478
+ "Zhiyu",
479
+ "Sofie",
480
+ "Laura",
481
+ "Olivia",
482
+ "Amy",
483
+ "Emma",
484
+ "Brian",
485
+ "Arthur",
486
+ "Kajal",
487
+ "Niamh",
488
+ "Aria",
489
+ "Ayanda",
490
+ "Ivy",
491
+ "Joanna",
492
+ "Kendra",
493
+ "Kimberly",
494
+ "Salli",
495
+ "Joey",
496
+ "Justin",
497
+ "Kevin",
498
+ "Matthew",
499
+ "Ruth",
500
+ "Stephen",
501
+ "Suvi",
502
+ "Léa",
503
+ "Rémi",
504
+ "Gabrielle",
505
+ "Liam",
506
+ "Vicki",
507
+ "Daniel",
508
+ "Hannah",
509
+ "Kajal",
510
+ "Bianca",
511
+ "Adriano",
512
+ "Takumi",
513
+ "Kazuha",
514
+ "Tomoko",
515
+ "Seoyeon",
516
+ "Ida",
517
+ "Ola",
518
+ "Camila",
519
+ "Vitória",
520
+ "Vitoria",
521
+ "Thiago",
522
+ "Inês",
523
+ "Ines",
524
+ "Lucia",
525
+ "Sergio",
526
+ "Mia",
527
+ "Andrés",
528
+ "Lupe",
529
+ "Pedro",
530
+ "Elin",
540
531
  ]),
541
532
  language: zod_1.z.optional(zod_1.z.enum([
542
- 'cmn-CN',
543
- 'da-DK',
544
- 'de-DE',
545
- 'en-AU',
546
- 'en-GB',
547
- 'en-IN',
548
- 'en-US',
549
- 'es-ES',
550
- 'es-MX',
551
- 'es-US',
552
- 'fr-CA',
553
- 'fr-FR',
554
- 'it-IT',
555
- 'ja-JP',
556
- 'hi-IN',
557
- 'ko-KR',
558
- 'nb-NO',
559
- 'nl-NL',
560
- 'pl-PL',
561
- 'pt-BR',
562
- 'pt-PT',
563
- 'sv-SE',
564
- 'en-NZ',
565
- 'en-ZA',
566
- 'ca-ES',
567
- 'de-AT',
568
- 'yue-CN',
569
- 'ar-AE',
570
- 'fi-FI'
533
+ "cmn-CN",
534
+ "da-DK",
535
+ "de-DE",
536
+ "en-AU",
537
+ "en-GB",
538
+ "en-IN",
539
+ "en-US",
540
+ "es-ES",
541
+ "es-MX",
542
+ "es-US",
543
+ "fr-CA",
544
+ "fr-FR",
545
+ "it-IT",
546
+ "ja-JP",
547
+ "hi-IN",
548
+ "ko-KR",
549
+ "nb-NO",
550
+ "nl-NL",
551
+ "pl-PL",
552
+ "pt-BR",
553
+ "pt-PT",
554
+ "sv-SE",
555
+ "en-NZ",
556
+ "en-ZA",
557
+ "ca-ES",
558
+ "de-AT",
559
+ "yue-CN",
560
+ "ar-AE",
561
+ "fi-FI",
571
562
  ])),
572
- newscaster: zod_1.z.optional(zod_1.z.boolean()).default(false)
563
+ newscaster: zod_1.z.optional(zod_1.z.boolean()).default(false),
573
564
  });
574
565
  exports.shotstackTextToSpeechOptionsSchema = exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema;
575
566
  /**
576
567
  * Generate assets using the native Shotstack provider AI services.
577
568
  */
578
569
  exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema = zod_1.z.union([
579
- zod_1.z.object({
580
- type: zod_1.z.literal('shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions')
581
- }).and(exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema),
582
- zod_1.z.object({
583
- type: zod_1.z.literal('shotstackTextToImageOptions_ShotstackTextToImageOptions')
584
- }).and(exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema),
585
- zod_1.z.object({
586
- type: zod_1.z.literal('shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions')
587
- }).and(exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema),
588
- zod_1.z.object({
589
- type: zod_1.z.literal('shotstackImageToVideoOptions_ShotstackImageToVideoOptions')
590
- }).and(exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema)
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),
591
590
  ]);
592
591
  exports.shotstackGeneratedAssetOptionsSchema = exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema;
593
592
  /**
594
593
  * Generate assets using the native Shotstack provider. Shotstack provides a text-to-speech and a text-to-image service. The Shotstack provider works natively with your existing API key, no additional credentials are required.
595
594
  */
596
595
  exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema = zod_1.z.object({
597
- provider: zod_1.z.enum(['shotstack']),
598
- options: exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema
596
+ provider: zod_1.z.enum(["shotstack"]),
597
+ options: exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema,
599
598
  });
600
599
  exports.shotstackGeneratedAssetSchema = exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema;
601
600
  /**
602
601
  * 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.
603
602
  */
604
603
  exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema = zod_1.z.object({
605
- type: zod_1.z.enum(['text-to-image']),
604
+ type: zod_1.z.enum(["text-to-image"]),
606
605
  prompt: zod_1.z.string(),
607
606
  engine: zod_1.z.optional(zod_1.z.enum([
608
- 'stable-diffusion-xl-1024-v0-9',
609
- 'stable-diffusion-xl-1024-v1-0',
610
- 'stable-diffusion-v1-6',
611
- 'stable-diffusion-512-v2-1',
612
- 'stable-diffusion-xl-beta-v2-2-2'
607
+ "stable-diffusion-xl-1024-v0-9",
608
+ "stable-diffusion-xl-1024-v1-0",
609
+ "stable-diffusion-v1-6",
610
+ "stable-diffusion-512-v2-1",
611
+ "stable-diffusion-xl-beta-v2-2-2",
613
612
  ])),
614
613
  width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
615
614
  return undefined; if (Array.isArray(v))
@@ -632,24 +631,24 @@ exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema = zod_1
632
631
  return v; if (typeof v === 'string')
633
632
  return Number(v); return v; }), zod_1.z.number())).default(7),
634
633
  stylePreset: zod_1.z.optional(zod_1.z.enum([
635
- '3d-model',
636
- 'analog-film',
637
- 'anime',
638
- 'cinematic',
639
- 'comic-book',
640
- 'digital-art',
641
- 'enhance',
642
- 'fantasy-art',
643
- 'isometric',
644
- 'line-art',
645
- 'low-poly',
646
- 'modeling-compound',
647
- 'neon-punk',
648
- 'origami',
649
- 'photographic',
650
- 'pixel-art',
651
- 'tile-texture'
652
- ]))
634
+ "3d-model",
635
+ "analog-film",
636
+ "anime",
637
+ "cinematic",
638
+ "comic-book",
639
+ "digital-art",
640
+ "enhance",
641
+ "fantasy-art",
642
+ "isometric",
643
+ "line-art",
644
+ "low-poly",
645
+ "modeling-compound",
646
+ "neon-punk",
647
+ "origami",
648
+ "photographic",
649
+ "pixel-art",
650
+ "tile-texture",
651
+ ])),
653
652
  });
654
653
  exports.stabilityAiTextToImageOptionsSchema = exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema;
655
654
  /**
@@ -659,40 +658,54 @@ exports.stabilityAiTextToImageOptionsSchema = exports.stabilityAiTextToImageOpti
659
658
  * <li><a href="#tocs_stabilityaitexttoimageoptions">StabilityAiTextToImageOptions</a></li>
660
659
  * </ul>
661
660
  */
662
- exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema = zod_1.z.object({
663
- type: zod_1.z.literal('stabilityAiTextToImageOptions_StabilityAiTextToImageOptions')
664
- }).and(exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema);
661
+ exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema = zod_1.z
662
+ .object({
663
+ type: zod_1.z.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions"),
664
+ })
665
+ .and(exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema);
665
666
  exports.stabilityAiGeneratedAssetOptionsSchema = exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema;
666
667
  /**
667
668
  * 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.
668
669
  */
669
670
  exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema = zod_1.z.object({
670
- provider: zod_1.z.enum(['stability-ai']),
671
- options: exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema
671
+ provider: zod_1.z.enum(["stability-ai"]),
672
+ options: exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema,
672
673
  });
673
674
  exports.stabilityAiGeneratedAssetSchema = exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema;
674
675
  /**
675
676
  * 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.
676
677
  */
677
678
  exports.generatedAssetGeneratedAssetSchema = zod_1.z.union([
678
- zod_1.z.object({
679
- provider: zod_1.z.literal('shotstackGeneratedAsset_ShotstackGeneratedAsset')
680
- }).and(exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema),
681
- zod_1.z.object({
682
- provider: zod_1.z.literal('didGeneratedAsset_DIDGeneratedAsset')
683
- }).and(exports.didGeneratedAssetDidGeneratedAssetSchema),
684
- zod_1.z.object({
685
- provider: zod_1.z.literal('elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset')
686
- }).and(exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema),
687
- zod_1.z.object({
688
- provider: zod_1.z.literal('heygenGeneratedAsset_HeyGenGeneratedAsset')
689
- }).and(exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema),
690
- zod_1.z.object({
691
- provider: zod_1.z.literal('openaiGeneratedAsset_OpenAiGeneratedAsset')
692
- }).and(exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema),
693
- zod_1.z.object({
694
- provider: zod_1.z.literal('stabilityAiGeneratedAsset_StabilityAiGeneratedAsset')
695
- }).and(exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema)
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),
696
709
  ]);
697
710
  exports.generatedAssetSchema = exports.generatedAssetGeneratedAssetSchema;
698
711
  /**
@@ -714,7 +727,7 @@ exports.cropCropSchema = zod_1.z.object({
714
727
  right: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
715
728
  return undefined; if (Array.isArray(v))
716
729
  return v; if (typeof v === 'string')
717
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))
730
+ return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))),
718
731
  });
719
732
  exports.cropSchema = exports.cropCropSchema;
720
733
  /**
@@ -723,15 +736,15 @@ exports.cropSchema = exports.cropCropSchema;
723
736
  exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema = zod_1.z.object({
724
737
  bucket: zod_1.z.string(),
725
738
  prefix: zod_1.z.optional(zod_1.z.string()),
726
- filename: zod_1.z.optional(zod_1.z.string())
739
+ filename: zod_1.z.optional(zod_1.z.string()),
727
740
  });
728
741
  exports.googleCloudStorageDestinationOptionsSchema = exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema;
729
742
  /**
730
743
  * 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.
731
744
  */
732
745
  exports.googleCloudStorageDestinationGoogleCloudStorageDestinationSchema = zod_1.z.object({
733
- provider: zod_1.z.literal('google-cloud-storage'),
734
- options: zod_1.z.optional(exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema)
746
+ provider: zod_1.z.literal("google-cloud-storage"),
747
+ options: zod_1.z.optional(exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema),
735
748
  });
736
749
  exports.googleCloudStorageDestinationSchema = exports.googleCloudStorageDestinationGoogleCloudStorageDestinationSchema;
737
750
  /**
@@ -739,31 +752,31 @@ exports.googleCloudStorageDestinationSchema = exports.googleCloudStorageDestinat
739
752
  */
740
753
  exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema = zod_1.z.object({
741
754
  folderId: zod_1.z.string(),
742
- filename: zod_1.z.optional(zod_1.z.string())
755
+ filename: zod_1.z.optional(zod_1.z.string()),
743
756
  });
744
757
  exports.googleDriveDestinationOptionsSchema = exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema;
745
758
  /**
746
759
  * 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.
747
760
  */
748
761
  exports.googleDriveDestinationGoogleDriveDestinationSchema = zod_1.z.object({
749
- provider: zod_1.z.literal('google-drive'),
750
- options: exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema
762
+ provider: zod_1.z.literal("google-drive"),
763
+ options: exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema,
751
764
  });
752
765
  exports.googleDriveDestinationSchema = exports.googleDriveDestinationGoogleDriveDestinationSchema;
753
766
  /**
754
767
  * Pass additional options to control how Mux processes video. Currently supports playback_policy and passthrough options.
755
768
  */
756
769
  exports.muxDestinationOptionsMuxDestinationOptionsSchema = zod_1.z.object({
757
- playbackPolicy: zod_1.z.optional(zod_1.z.array(zod_1.z.enum(['public', 'signed']))),
758
- passthrough: zod_1.z.optional(zod_1.z.string().max(255))
770
+ playbackPolicy: zod_1.z.optional(zod_1.z.array(zod_1.z.enum(["public", "signed"]))),
771
+ passthrough: zod_1.z.optional(zod_1.z.string().max(255)),
759
772
  });
760
773
  exports.muxDestinationOptionsSchema = exports.muxDestinationOptionsMuxDestinationOptionsSchema;
761
774
  /**
762
775
  * 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.
763
776
  */
764
777
  exports.muxDestinationMuxDestinationSchema = zod_1.z.object({
765
- provider: zod_1.z.literal('mux'),
766
- options: zod_1.z.optional(exports.muxDestinationOptionsMuxDestinationOptionsSchema)
778
+ provider: zod_1.z.literal("mux"),
779
+ options: zod_1.z.optional(exports.muxDestinationOptionsMuxDestinationOptionsSchema),
767
780
  });
768
781
  exports.muxDestinationSchema = exports.muxDestinationMuxDestinationSchema;
769
782
  /**
@@ -774,23 +787,23 @@ exports.s3DestinationOptionsS3DestinationOptionsSchema = zod_1.z.object({
774
787
  bucket: zod_1.z.string(),
775
788
  prefix: zod_1.z.optional(zod_1.z.string()),
776
789
  filename: zod_1.z.optional(zod_1.z.string()),
777
- acl: zod_1.z.optional(zod_1.z.string())
790
+ acl: zod_1.z.optional(zod_1.z.string()),
778
791
  });
779
792
  exports.s3DestinationOptionsSchema = exports.s3DestinationOptionsS3DestinationOptionsSchema;
780
793
  /**
781
794
  * 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.
782
795
  */
783
796
  exports.s3DestinationS3DestinationSchema = zod_1.z.object({
784
- provider: zod_1.z.literal('s3'),
785
- options: zod_1.z.optional(exports.s3DestinationOptionsS3DestinationOptionsSchema)
797
+ provider: zod_1.z.literal("s3"),
798
+ options: zod_1.z.optional(exports.s3DestinationOptionsS3DestinationOptionsSchema),
786
799
  });
787
800
  exports.s3DestinationSchema = exports.s3DestinationS3DestinationSchema;
788
801
  /**
789
802
  * 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.
790
803
  */
791
804
  exports.shotstackDestinationShotstackDestinationSchema = zod_1.z.object({
792
- provider: zod_1.z.literal('shotstack'),
793
- exclude: zod_1.z.optional(zod_1.z.boolean())
805
+ provider: zod_1.z.literal("shotstack"),
806
+ exclude: zod_1.z.optional(zod_1.z.boolean()),
794
807
  });
795
808
  exports.shotstackDestinationSchema = exports.shotstackDestinationShotstackDestinationSchema;
796
809
  /**
@@ -798,45 +811,27 @@ exports.shotstackDestinationSchema = exports.shotstackDestinationShotstackDestin
798
811
  */
799
812
  exports.tiktokDestinationOptionsTiktokDestinationOptionsSchema = zod_1.z.object({
800
813
  title: zod_1.z.optional(zod_1.z.string().max(150)),
801
- privacyLevel: zod_1.z.optional(zod_1.z.enum([
802
- 'public',
803
- 'friends',
804
- 'private'
805
- ])),
814
+ privacyLevel: zod_1.z.optional(zod_1.z.enum(["public", "friends", "private"])),
806
815
  disableDuet: zod_1.z.optional(zod_1.z.boolean()).default(false),
807
816
  disableStitch: zod_1.z.optional(zod_1.z.boolean()).default(false),
808
- disableComment: zod_1.z.optional(zod_1.z.boolean()).default(false)
817
+ disableComment: zod_1.z.optional(zod_1.z.boolean()).default(false),
809
818
  });
810
819
  /**
811
820
  * Send videos to TikTok. TikTok credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/tiktok), not in the request.
812
821
  */
813
822
  exports.tiktokDestinationTiktokDestinationSchema = zod_1.z.object({
814
- provider: zod_1.z.literal('tiktok'),
815
- options: zod_1.z.optional(exports.tiktokDestinationOptionsTiktokDestinationOptionsSchema)
823
+ provider: zod_1.z.literal("tiktok"),
824
+ options: zod_1.z.optional(exports.tiktokDestinationOptionsTiktokDestinationOptionsSchema),
816
825
  });
817
826
  /**
818
827
  * Options to control the visibility of videos and privacy features.
819
828
  */
820
829
  exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema = zod_1.z.object({
821
- view: zod_1.z.optional(zod_1.z.enum([
822
- 'anybody',
823
- 'nobody',
824
- 'contacts',
825
- 'password',
826
- 'unlisted'
827
- ])),
828
- embed: zod_1.z.optional(zod_1.z.enum([
829
- 'public',
830
- 'private',
831
- 'whitelist'
832
- ])),
833
- comments: zod_1.z.optional(zod_1.z.enum([
834
- 'anybody',
835
- 'nobody',
836
- 'contacts'
837
- ])),
830
+ view: zod_1.z.optional(zod_1.z.enum(["anybody", "nobody", "contacts", "password", "unlisted"])),
831
+ embed: zod_1.z.optional(zod_1.z.enum(["public", "private", "whitelist"])),
832
+ comments: zod_1.z.optional(zod_1.z.enum(["anybody", "nobody", "contacts"])),
838
833
  download: zod_1.z.optional(zod_1.z.boolean()),
839
- add: zod_1.z.optional(zod_1.z.boolean())
834
+ add: zod_1.z.optional(zod_1.z.boolean()),
840
835
  });
841
836
  exports.vimeoDestinationPrivacyOptionsSchema = exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema;
842
837
  /**
@@ -846,15 +841,15 @@ exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema = zod_1.z.object({
846
841
  name: zod_1.z.optional(zod_1.z.string()),
847
842
  description: zod_1.z.optional(zod_1.z.string()),
848
843
  privacy: zod_1.z.optional(exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema),
849
- folderUri: zod_1.z.optional(zod_1.z.string())
844
+ folderUri: zod_1.z.optional(zod_1.z.string()),
850
845
  });
851
846
  exports.vimeoDestinationOptionsSchema = exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema;
852
847
  /**
853
848
  * 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.
854
849
  */
855
850
  exports.vimeoDestinationVimeoDestinationSchema = zod_1.z.object({
856
- provider: zod_1.z.literal('vimeo'),
857
- options: zod_1.z.optional(exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema)
851
+ provider: zod_1.z.literal("vimeo"),
852
+ options: zod_1.z.optional(exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema),
858
853
  });
859
854
  exports.vimeoDestinationSchema = exports.vimeoDestinationVimeoDestinationSchema;
860
855
  /**
@@ -877,14 +872,14 @@ exports.destinationsSchema = exports.destinationsDestinationsSchema;
877
872
  */
878
873
  exports.fliptransformationFlipTransformationSchema = zod_1.z.object({
879
874
  horizontal: zod_1.z.optional(zod_1.z.boolean()),
880
- vertical: zod_1.z.optional(zod_1.z.boolean())
875
+ vertical: zod_1.z.optional(zod_1.z.boolean()),
881
876
  });
882
877
  exports.flipTransformationSchema = exports.fliptransformationFlipTransformationSchema;
883
878
  /**
884
879
  * 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.
885
880
  */
886
881
  exports.fontFontSchema = zod_1.z.object({
887
- src: zod_1.z.string()
882
+ src: zod_1.z.string(),
888
883
  });
889
884
  exports.fontSchema = exports.fontFontSchema;
890
885
  /**
@@ -898,8 +893,8 @@ exports.fontSchema = exports.fontFontSchema;
898
893
  * @deprecated
899
894
  */
900
895
  exports.htmlassetHtmlAssetSchema = zod_1.z.object({
901
- type: zod_1.z.enum(['html']),
902
- html: zod_1.z.string(),
896
+ type: zod_1.z.enum(["html"]),
897
+ html: zod_1.z.string().min(1).regex(/\S/),
903
898
  css: zod_1.z.optional(zod_1.z.string()),
904
899
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
905
900
  return undefined; if (Array.isArray(v))
@@ -911,48 +906,40 @@ exports.htmlassetHtmlAssetSchema = zod_1.z.object({
911
906
  return Number(v); return v; }), zod_1.z.number().int())),
912
907
  background: zod_1.z.optional(zod_1.z.string()),
913
908
  position: zod_1.z.optional(zod_1.z.enum([
914
- 'top',
915
- 'topRight',
916
- 'right',
917
- 'bottomRight',
918
- 'bottom',
919
- 'bottomLeft',
920
- 'left',
921
- 'topLeft',
922
- 'center'
923
- ]))
909
+ "top",
910
+ "topRight",
911
+ "right",
912
+ "bottomRight",
913
+ "bottom",
914
+ "bottomLeft",
915
+ "left",
916
+ "topLeft",
917
+ "center",
918
+ ])),
924
919
  });
925
920
  exports.htmlAssetSchema = exports.htmlassetHtmlAssetSchema;
926
921
  /**
927
922
  * 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.
928
923
  */
929
924
  exports.imageassetImageAssetSchema = zod_1.z.object({
930
- type: zod_1.z.enum(['image']),
931
- src: zod_1.z.string(),
932
- crop: zod_1.z.optional(exports.cropCropSchema)
925
+ type: zod_1.z.enum(["image"]),
926
+ src: zod_1.z.string().min(1).regex(/\S/),
927
+ crop: zod_1.z.optional(exports.cropCropSchema),
933
928
  });
934
929
  exports.imageAssetSchema = exports.imageassetImageAssetSchema;
935
930
  /**
936
931
  * The ImageToVideoAsset lets you create a video from an image and a text prompt.
937
932
  */
938
933
  exports.imagetovideoassetImageToVideoAssetSchema = zod_1.z.object({
939
- type: zod_1.z.optional(zod_1.z.enum(['image-to-video'])),
940
- src: zod_1.z.optional(zod_1.z.string()),
934
+ type: zod_1.z.enum(["image-to-video"]),
935
+ src: zod_1.z.string().min(1),
941
936
  prompt: zod_1.z.optional(zod_1.z.string()),
942
- aspectRatio: zod_1.z.optional(zod_1.z.enum([
943
- '1:1',
944
- '4:3',
945
- '16:9',
946
- '9:16',
947
- '3:4',
948
- '21:9',
949
- '9:21'
950
- ])),
937
+ aspectRatio: zod_1.z.optional(zod_1.z.enum(["1:1", "4:3", "16:9", "9:16", "3:4", "21:9", "9:21"])),
951
938
  speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
952
939
  return undefined; if (Array.isArray(v))
953
940
  return v; if (typeof v === 'string')
954
941
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(10))),
955
- crop: zod_1.z.optional(exports.cropCropSchema)
942
+ crop: zod_1.z.optional(exports.cropCropSchema),
956
943
  });
957
944
  exports.imageToVideoAssetSchema = exports.imagetovideoassetImageToVideoAssetSchema;
958
945
  /**
@@ -960,24 +947,24 @@ exports.imageToVideoAssetSchema = exports.imagetovideoassetImageToVideoAssetSche
960
947
  */
961
948
  exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema = zod_1.z.object({
962
949
  preset: zod_1.z.enum([
963
- 'conference',
964
- 'interview',
965
- 'lecture',
966
- 'meeting',
967
- 'mobile_phone',
968
- 'music',
969
- 'podcast',
970
- 'studio',
971
- 'voice_over'
972
- ])
950
+ "conference",
951
+ "interview",
952
+ "lecture",
953
+ "meeting",
954
+ "mobile_phone",
955
+ "music",
956
+ "podcast",
957
+ "studio",
958
+ "voice_over",
959
+ ]),
973
960
  });
974
961
  exports.dolbyEnhancementOptionsSchema = exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema;
975
962
  /**
976
963
  * 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.
977
964
  */
978
965
  exports.dolbyEnhancementDolbyEnhancementSchema = zod_1.z.object({
979
- provider: zod_1.z.string().default('dolby'),
980
- options: exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema
966
+ provider: zod_1.z.string().default("dolby"),
967
+ options: exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema,
981
968
  });
982
969
  exports.dolbyEnhancementSchema = exports.dolbyEnhancementDolbyEnhancementSchema;
983
970
  /**
@@ -986,15 +973,17 @@ exports.dolbyEnhancementSchema = exports.dolbyEnhancementDolbyEnhancementSchema;
986
973
  * <li><a href="#tocs_dolbyenhancement">DolbyEnhancement</a></li>
987
974
  * </ul>
988
975
  */
989
- exports.audioEnhancementAudioEnhancementSchema = zod_1.z.object({
990
- enhancement: zod_1.z.literal('dolbyEnhancement_DolbyEnhancement')
991
- }).and(exports.dolbyEnhancementDolbyEnhancementSchema);
976
+ exports.audioEnhancementAudioEnhancementSchema = zod_1.z
977
+ .object({
978
+ enhancement: zod_1.z.literal("dolbyEnhancement_DolbyEnhancement"),
979
+ })
980
+ .and(exports.dolbyEnhancementDolbyEnhancementSchema);
992
981
  exports.audioEnhancementSchema = exports.audioEnhancementAudioEnhancementSchema;
993
982
  /**
994
983
  * Enhancements that can be applied to a rendition. Currently only supports the Dolby audio enhancement.
995
984
  */
996
985
  exports.enhancementsEnhancementsSchema = zod_1.z.object({
997
- audio: zod_1.z.optional(exports.audioEnhancementAudioEnhancementSchema)
986
+ audio: zod_1.z.optional(exports.audioEnhancementAudioEnhancementSchema),
998
987
  });
999
988
  exports.enhancementsSchema = exports.enhancementsEnhancementsSchema;
1000
989
  /**
@@ -1003,14 +992,14 @@ exports.enhancementsSchema = exports.enhancementsEnhancementsSchema;
1003
992
  exports.ingesterrorresponsedataIngestErrorResponseDataSchema = zod_1.z.object({
1004
993
  status: zod_1.z.string(),
1005
994
  title: zod_1.z.string(),
1006
- detail: zod_1.z.string()
995
+ detail: zod_1.z.string(),
1007
996
  });
1008
997
  exports.ingestErrorResponseDataSchema = exports.ingesterrorresponsedataIngestErrorResponseDataSchema;
1009
998
  /**
1010
999
  * Error response data for validation and other errors returned by the Ingest API.
1011
1000
  */
1012
1001
  exports.ingesterrorresponseIngestErrorResponseSchema = zod_1.z.object({
1013
- errors: zod_1.z.array(exports.ingesterrorresponsedataIngestErrorResponseDataSchema)
1002
+ errors: zod_1.z.array(exports.ingesterrorresponsedataIngestErrorResponseDataSchema),
1014
1003
  });
1015
1004
  exports.ingestErrorResponseSchema = exports.ingesterrorresponseIngestErrorResponseSchema;
1016
1005
  /**
@@ -1018,14 +1007,14 @@ exports.ingestErrorResponseSchema = exports.ingesterrorresponseIngestErrorRespon
1018
1007
  */
1019
1008
  exports.queuedsourceresponsedataQueuedSourceResponseDataSchema = zod_1.z.object({
1020
1009
  type: zod_1.z.string(),
1021
- id: zod_1.z.string()
1010
+ id: zod_1.z.string(),
1022
1011
  });
1023
1012
  exports.queuedSourceResponseDataSchema = exports.queuedsourceresponsedataQueuedSourceResponseDataSchema;
1024
1013
  /**
1025
1014
  * 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.
1026
1015
  */
1027
1016
  exports.queuedsourceresponseQueuedSourceResponseSchema = zod_1.z.object({
1028
- data: exports.queuedsourceresponsedataQueuedSourceResponseDataSchema
1017
+ data: exports.queuedsourceresponsedataQueuedSourceResponseDataSchema,
1029
1018
  });
1030
1019
  exports.queuedSourceResponseSchema = exports.queuedsourceresponseQueuedSourceResponseSchema;
1031
1020
  /**
@@ -1034,7 +1023,7 @@ exports.queuedSourceResponseSchema = exports.queuedsourceresponseQueuedSourceRes
1034
1023
  exports.uploadresponseattributesUploadResponseAttributesSchema = zod_1.z.object({
1035
1024
  id: zod_1.z.string(),
1036
1025
  url: zod_1.z.string(),
1037
- expires: zod_1.z.string()
1026
+ expires: zod_1.z.string(),
1038
1027
  });
1039
1028
  exports.uploadResponseAttributesSchema = exports.uploadresponseattributesUploadResponseAttributesSchema;
1040
1029
  /**
@@ -1043,14 +1032,14 @@ exports.uploadResponseAttributesSchema = exports.uploadresponseattributesUploadR
1043
1032
  exports.uploadresponsedataUploadResponseDataSchema = zod_1.z.object({
1044
1033
  type: zod_1.z.string(),
1045
1034
  id: zod_1.z.string(),
1046
- attributes: exports.uploadresponseattributesUploadResponseAttributesSchema
1035
+ attributes: exports.uploadresponseattributesUploadResponseAttributesSchema,
1047
1036
  });
1048
1037
  exports.uploadResponseDataSchema = exports.uploadresponsedataUploadResponseDataSchema;
1049
1038
  /**
1050
1039
  * 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.
1051
1040
  */
1052
1041
  exports.uploadresponseUploadResponseSchema = zod_1.z.object({
1053
- data: exports.uploadresponsedataUploadResponseDataSchema
1042
+ data: exports.uploadresponsedataUploadResponseDataSchema,
1054
1043
  });
1055
1044
  exports.uploadResponseSchema = exports.uploadresponseUploadResponseSchema;
1056
1045
  /**
@@ -1061,26 +1050,26 @@ exports.speedSpeedSchema = zod_1.z.object({
1061
1050
  return undefined; if (Array.isArray(v))
1062
1051
  return v; if (typeof v === 'string')
1063
1052
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(10))),
1064
- preservePitch: zod_1.z.optional(zod_1.z.boolean())
1053
+ preservePitch: zod_1.z.optional(zod_1.z.boolean()),
1065
1054
  });
1066
1055
  exports.speedSchema = exports.speedSpeedSchema;
1067
1056
  /**
1068
1057
  * Generate a transcription of the audio in the video. The transcription can be output as a file in SRT or VTT format.
1069
1058
  */
1070
1059
  exports.transcriptionTranscriptionSchema = zod_1.z.object({
1071
- format: zod_1.z.optional(zod_1.z.enum(['srt', 'vtt']))
1060
+ format: zod_1.z.optional(zod_1.z.enum(["srt", "vtt"])),
1072
1061
  });
1073
1062
  exports.transcriptionSchema = exports.transcriptionTranscriptionSchema;
1074
1063
  /**
1075
1064
  * 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.
1076
1065
  */
1077
1066
  exports.lumaassetLumaAssetSchema = zod_1.z.object({
1078
- type: zod_1.z.enum(['luma']),
1079
- src: zod_1.z.string(),
1067
+ type: zod_1.z.enum(["luma"]),
1068
+ src: zod_1.z.string().min(1).regex(/\S/),
1080
1069
  trim: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1081
1070
  return undefined; if (Array.isArray(v))
1082
1071
  return v; if (typeof v === 'string')
1083
- return Number(v); return v; }), zod_1.z.number()))
1072
+ return Number(v); return v; }), zod_1.z.number())),
1084
1073
  });
1085
1074
  exports.lumaAssetSchema = exports.lumaassetLumaAssetSchema;
1086
1075
  /**
@@ -1088,7 +1077,7 @@ exports.lumaAssetSchema = exports.lumaassetLumaAssetSchema;
1088
1077
  */
1089
1078
  exports.mergefieldMergeFieldSchema = zod_1.z.object({
1090
1079
  find: zod_1.z.string(),
1091
- replace: zod_1.z.unknown()
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())]),
1092
1081
  });
1093
1082
  exports.mergeFieldSchema = exports.mergefieldMergeFieldSchema;
1094
1083
  /**
@@ -1098,7 +1087,7 @@ exports.posterPosterSchema = zod_1.z.object({
1098
1087
  capture: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1099
1088
  return undefined; if (Array.isArray(v))
1100
1089
  return v; if (typeof v === 'string')
1101
- return Number(v); return v; }), zod_1.z.number())
1090
+ return Number(v); return v; }), zod_1.z.number()),
1102
1091
  });
1103
1092
  exports.posterSchema = exports.posterPosterSchema;
1104
1093
  /**
@@ -1112,7 +1101,7 @@ exports.rangeRangeSchema = zod_1.z.object({
1112
1101
  length: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1113
1102
  return undefined; if (Array.isArray(v))
1114
1103
  return v; if (typeof v === 'string')
1115
- return Number(v); return v; }), zod_1.z.number().gte(0)))
1104
+ return Number(v); return v; }), zod_1.z.number().gte(0))),
1116
1105
  });
1117
1106
  exports.rangeSchema = exports.rangeRangeSchema;
1118
1107
  /**
@@ -1126,14 +1115,9 @@ exports.assetresponseattributesAssetResponseAttributesSchema = zod_1.z.object({
1126
1115
  providerId: zod_1.z.optional(zod_1.z.string()),
1127
1116
  filename: zod_1.z.optional(zod_1.z.string()),
1128
1117
  url: zod_1.z.optional(zod_1.z.string()),
1129
- status: zod_1.z.enum([
1130
- 'importing',
1131
- 'ready',
1132
- 'failed',
1133
- 'deleted'
1134
- ]),
1118
+ status: zod_1.z.enum(["importing", "ready", "failed", "deleted"]),
1135
1119
  created: zod_1.z.optional(zod_1.z.string()),
1136
- updated: zod_1.z.optional(zod_1.z.string())
1120
+ updated: zod_1.z.optional(zod_1.z.string()),
1137
1121
  });
1138
1122
  exports.assetResponseAttributesSchema = exports.assetresponseattributesAssetResponseAttributesSchema;
1139
1123
  /**
@@ -1141,21 +1125,21 @@ exports.assetResponseAttributesSchema = exports.assetresponseattributesAssetResp
1141
1125
  */
1142
1126
  exports.assetresponsedataAssetResponseDataSchema = zod_1.z.object({
1143
1127
  type: zod_1.z.string(),
1144
- attributes: exports.assetresponseattributesAssetResponseAttributesSchema
1128
+ attributes: exports.assetresponseattributesAssetResponseAttributesSchema,
1145
1129
  });
1146
1130
  exports.assetResponseDataSchema = exports.assetresponsedataAssetResponseDataSchema;
1147
1131
  /**
1148
1132
  * 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.
1149
1133
  */
1150
1134
  exports.assetrenderresponseAssetRenderResponseSchema = zod_1.z.object({
1151
- data: zod_1.z.array(exports.assetresponsedataAssetResponseDataSchema)
1135
+ data: zod_1.z.array(exports.assetresponsedataAssetResponseDataSchema),
1152
1136
  });
1153
1137
  exports.assetRenderResponseSchema = exports.assetrenderresponseAssetRenderResponseSchema;
1154
1138
  /**
1155
1139
  * 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.
1156
1140
  */
1157
1141
  exports.assetresponseAssetResponseSchema = zod_1.z.object({
1158
- data: exports.assetresponsedataAssetResponseDataSchema
1142
+ data: exports.assetresponsedataAssetResponseDataSchema,
1159
1143
  });
1160
1144
  exports.assetResponseSchema = exports.assetresponseAssetResponseSchema;
1161
1145
  /**
@@ -1164,7 +1148,7 @@ exports.assetResponseSchema = exports.assetresponseAssetResponseSchema;
1164
1148
  exports.proberesponseProbeResponseSchema = zod_1.z.object({
1165
1149
  success: zod_1.z.boolean(),
1166
1150
  message: zod_1.z.string(),
1167
- response: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown())
1151
+ response: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
1168
1152
  });
1169
1153
  exports.probeResponseSchema = exports.proberesponseProbeResponseSchema;
1170
1154
  /**
@@ -1172,7 +1156,7 @@ exports.probeResponseSchema = exports.proberesponseProbeResponseSchema;
1172
1156
  */
1173
1157
  exports.queuedresponsedataQueuedResponseDataSchema = zod_1.z.object({
1174
1158
  message: zod_1.z.string(),
1175
- id: zod_1.z.string()
1159
+ id: zod_1.z.string(),
1176
1160
  });
1177
1161
  exports.queuedResponseDataSchema = exports.queuedresponsedataQueuedResponseDataSchema;
1178
1162
  /**
@@ -1181,7 +1165,7 @@ exports.queuedResponseDataSchema = exports.queuedresponsedataQueuedResponseDataS
1181
1165
  exports.queuedresponseQueuedResponseSchema = zod_1.z.object({
1182
1166
  success: zod_1.z.boolean(),
1183
1167
  message: zod_1.z.string(),
1184
- response: exports.queuedresponsedataQueuedResponseDataSchema
1168
+ response: exports.queuedresponsedataQueuedResponseDataSchema,
1185
1169
  });
1186
1170
  exports.queuedResponseSchema = exports.queuedresponseQueuedResponseSchema;
1187
1171
  /**
@@ -1191,7 +1175,7 @@ exports.templatelistresponseitemTemplateListResponseItemSchema = zod_1.z.object(
1191
1175
  id: zod_1.z.string(),
1192
1176
  name: zod_1.z.string(),
1193
1177
  created: zod_1.z.optional(zod_1.z.string()),
1194
- updated: zod_1.z.optional(zod_1.z.string())
1178
+ updated: zod_1.z.optional(zod_1.z.string()),
1195
1179
  });
1196
1180
  exports.templateListResponseItemSchema = exports.templatelistresponseitemTemplateListResponseItemSchema;
1197
1181
  /**
@@ -1199,7 +1183,7 @@ exports.templateListResponseItemSchema = exports.templatelistresponseitemTemplat
1199
1183
  */
1200
1184
  exports.templatelistresponsedataTemplateListResponseDataSchema = zod_1.z.object({
1201
1185
  owner: zod_1.z.string(),
1202
- templates: zod_1.z.array(exports.templatelistresponseitemTemplateListResponseItemSchema)
1186
+ templates: zod_1.z.array(exports.templatelistresponseitemTemplateListResponseItemSchema),
1203
1187
  });
1204
1188
  exports.templateListResponseDataSchema = exports.templatelistresponsedataTemplateListResponseDataSchema;
1205
1189
  /**
@@ -1208,7 +1192,7 @@ exports.templateListResponseDataSchema = exports.templatelistresponsedataTemplat
1208
1192
  exports.templatelistresponseTemplateListResponseSchema = zod_1.z.object({
1209
1193
  success: zod_1.z.boolean(),
1210
1194
  message: zod_1.z.string(),
1211
- response: exports.templatelistresponsedataTemplateListResponseDataSchema
1195
+ response: exports.templatelistresponsedataTemplateListResponseDataSchema,
1212
1196
  });
1213
1197
  exports.templateListResponseSchema = exports.templatelistresponseTemplateListResponseSchema;
1214
1198
  /**
@@ -1216,7 +1200,7 @@ exports.templateListResponseSchema = exports.templatelistresponseTemplateListRes
1216
1200
  */
1217
1201
  exports.templateresponsedataTemplateResponseDataSchema = zod_1.z.object({
1218
1202
  message: zod_1.z.string(),
1219
- id: zod_1.z.string()
1203
+ id: zod_1.z.string(),
1220
1204
  });
1221
1205
  exports.templateResponseDataSchema = exports.templateresponsedataTemplateResponseDataSchema;
1222
1206
  /**
@@ -1225,23 +1209,15 @@ exports.templateResponseDataSchema = exports.templateresponsedataTemplateRespons
1225
1209
  exports.templateresponseTemplateResponseSchema = zod_1.z.object({
1226
1210
  success: zod_1.z.boolean(),
1227
1211
  message: zod_1.z.string(),
1228
- response: exports.templateresponsedataTemplateResponseDataSchema
1212
+ response: exports.templateresponsedataTemplateResponseDataSchema,
1229
1213
  });
1230
1214
  exports.templateResponseSchema = exports.templateresponseTemplateResponseSchema;
1231
1215
  /**
1232
1216
  * Text alignment properties (horizontal and vertical).
1233
1217
  */
1234
1218
  exports.richtextpropertiesRichTextAlignmentSchema = zod_1.z.object({
1235
- horizontal: zod_1.z.optional(zod_1.z.enum([
1236
- 'left',
1237
- 'center',
1238
- 'right'
1239
- ])),
1240
- vertical: zod_1.z.optional(zod_1.z.enum([
1241
- 'top',
1242
- 'middle',
1243
- 'bottom'
1244
- ]))
1219
+ horizontal: zod_1.z.optional(zod_1.z.enum(["left", "center", "right"])),
1220
+ vertical: zod_1.z.optional(zod_1.z.enum(["top", "middle", "bottom"])),
1245
1221
  });
1246
1222
  exports.richTextAlignmentSchema = exports.richtextpropertiesRichTextAlignmentSchema;
1247
1223
  /**
@@ -1249,28 +1225,19 @@ exports.richTextAlignmentSchema = exports.richtextpropertiesRichTextAlignmentSch
1249
1225
  */
1250
1226
  exports.richtextpropertiesRichTextAnimationSchema = zod_1.z.object({
1251
1227
  preset: zod_1.z.enum([
1252
- 'fadeIn',
1253
- 'slideIn',
1254
- 'typewriter',
1255
- 'ascend',
1256
- 'shift',
1257
- 'movingLetters'
1228
+ "fadeIn",
1229
+ "slideIn",
1230
+ "typewriter",
1231
+ "ascend",
1232
+ "shift",
1233
+ "movingLetters",
1258
1234
  ]),
1259
- speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1260
- return undefined; if (Array.isArray(v))
1261
- return v; if (typeof v === 'string')
1262
- return Number(v); return v; }), zod_1.z.number().gte(0.1).lte(10))).default(1),
1263
1235
  duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1264
1236
  return undefined; if (Array.isArray(v))
1265
1237
  return v; if (typeof v === 'string')
1266
1238
  return Number(v); return v; }), zod_1.z.number().gte(0.1).lte(30))),
1267
- style: zod_1.z.optional(zod_1.z.enum(['character', 'word'])),
1268
- direction: zod_1.z.optional(zod_1.z.enum([
1269
- 'left',
1270
- 'right',
1271
- 'up',
1272
- 'down'
1273
- ]))
1239
+ style: zod_1.z.optional(zod_1.z.enum(["character", "word"])),
1240
+ direction: zod_1.z.optional(zod_1.z.enum(["left", "right", "up", "down"])),
1274
1241
  });
1275
1242
  exports.richTextAnimationSchema = exports.richtextpropertiesRichTextAnimationSchema;
1276
1243
  /**
@@ -1285,7 +1252,7 @@ exports.richtextpropertiesRichTextBackgroundSchema = zod_1.z.object({
1285
1252
  borderRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1286
1253
  return undefined; if (Array.isArray(v))
1287
1254
  return v; if (typeof v === 'string')
1288
- return Number(v); return v; }), zod_1.z.number().gte(0))).default(0)
1255
+ return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1289
1256
  });
1290
1257
  exports.richTextBackgroundSchema = exports.richtextpropertiesRichTextBackgroundSchema;
1291
1258
  /**
@@ -1296,7 +1263,7 @@ exports.richtextpropertiesRichTextBorderSchema = zod_1.z.object({
1296
1263
  return undefined; if (Array.isArray(v))
1297
1264
  return v; if (typeof v === 'string')
1298
1265
  return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1299
- color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#000000'),
1266
+ color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1300
1267
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1301
1268
  return undefined; if (Array.isArray(v))
1302
1269
  return v; if (typeof v === 'string')
@@ -1304,24 +1271,26 @@ exports.richtextpropertiesRichTextBorderSchema = zod_1.z.object({
1304
1271
  radius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1305
1272
  return undefined; if (Array.isArray(v))
1306
1273
  return v; if (typeof v === 'string')
1307
- return Number(v); return v; }), zod_1.z.number().gte(0))).default(0)
1274
+ return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1308
1275
  });
1309
1276
  /**
1310
1277
  * Gradient properties for text fill.
1311
1278
  */
1312
1279
  exports.richtextpropertiesRichTextGradientSchema = zod_1.z.object({
1313
- type: zod_1.z.optional(zod_1.z.enum(['linear', 'radial'])),
1280
+ type: zod_1.z.optional(zod_1.z.enum(["linear", "radial"])),
1314
1281
  angle: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1315
1282
  return undefined; if (Array.isArray(v))
1316
1283
  return v; if (typeof v === 'string')
1317
1284
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(360))).default(0),
1318
- stops: zod_1.z.array(zod_1.z.object({
1285
+ stops: zod_1.z
1286
+ .array(zod_1.z.object({
1319
1287
  offset: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1320
1288
  return undefined; if (Array.isArray(v))
1321
1289
  return v; if (typeof v === 'string')
1322
1290
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)),
1323
- color: zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)
1324
- })).min(2)
1291
+ color: zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/),
1292
+ }))
1293
+ .min(2),
1325
1294
  });
1326
1295
  exports.richTextGradientSchema = exports.richtextpropertiesRichTextGradientSchema;
1327
1296
  /**
@@ -1343,7 +1312,7 @@ exports.richtextpropertiesRichTextPaddingSchema = zod_1.z.object({
1343
1312
  left: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1344
1313
  return undefined; if (Array.isArray(v))
1345
1314
  return v; if (typeof v === 'string')
1346
- return Number(v); return v; }), zod_1.z.number().gte(0))).default(0)
1315
+ return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1347
1316
  });
1348
1317
  /**
1349
1318
  * Text shadow properties.
@@ -1361,11 +1330,11 @@ exports.richtextpropertiesRichTextShadowSchema = zod_1.z.object({
1361
1330
  return undefined; if (Array.isArray(v))
1362
1331
  return v; if (typeof v === 'string')
1363
1332
  return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1364
- color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#000000'),
1333
+ color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1365
1334
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1366
1335
  return undefined; if (Array.isArray(v))
1367
1336
  return v; if (typeof v === 'string')
1368
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(0.5)
1337
+ return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(0.5),
1369
1338
  });
1370
1339
  exports.richTextShadowSchema = exports.richtextpropertiesRichTextShadowSchema;
1371
1340
  /**
@@ -1376,30 +1345,30 @@ exports.richtextpropertiesRichTextStrokeSchema = zod_1.z.object({
1376
1345
  return undefined; if (Array.isArray(v))
1377
1346
  return v; if (typeof v === 'string')
1378
1347
  return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1379
- color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#000000'),
1348
+ color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1380
1349
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1381
1350
  return undefined; if (Array.isArray(v))
1382
1351
  return v; if (typeof v === 'string')
1383
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1)
1352
+ return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1),
1384
1353
  });
1385
1354
  exports.richTextStrokeSchema = exports.richtextpropertiesRichTextStrokeSchema;
1386
1355
  /**
1387
1356
  * Font properties for rich text.
1388
1357
  */
1389
1358
  exports.richtextpropertiesRichTextFontSchema = zod_1.z.object({
1390
- family: zod_1.z.optional(zod_1.z.string()).default('Open Sans'),
1359
+ family: zod_1.z.optional(zod_1.z.string()).default("Open Sans"),
1391
1360
  size: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1392
1361
  return undefined; if (Array.isArray(v))
1393
1362
  return v; if (typeof v === 'string')
1394
1363
  return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(500))).default(24),
1395
- weight: zod_1.z.optional(zod_1.z.unknown()).default('400'),
1396
- color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#ffffff'),
1364
+ weight: zod_1.z.optional(zod_1.z.unknown()).default("400"),
1365
+ color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#ffffff"),
1397
1366
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1398
1367
  return undefined; if (Array.isArray(v))
1399
1368
  return v; if (typeof v === 'string')
1400
1369
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1),
1401
1370
  background: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
1402
- stroke: zod_1.z.optional(exports.richtextpropertiesRichTextStrokeSchema)
1371
+ stroke: zod_1.z.optional(exports.richtextpropertiesRichTextStrokeSchema),
1403
1372
  });
1404
1373
  exports.richTextFontSchema = exports.richtextpropertiesRichTextFontSchema;
1405
1374
  /**
@@ -1414,18 +1383,9 @@ exports.richtextpropertiesRichTextStyleSchema = zod_1.z.object({
1414
1383
  return undefined; if (Array.isArray(v))
1415
1384
  return v; if (typeof v === 'string')
1416
1385
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(10))).default(1.2),
1417
- textTransform: zod_1.z.optional(zod_1.z.enum([
1418
- 'none',
1419
- 'uppercase',
1420
- 'lowercase',
1421
- 'capitalize'
1422
- ])),
1423
- textDecoration: zod_1.z.optional(zod_1.z.enum([
1424
- 'none',
1425
- 'underline',
1426
- 'line-through'
1427
- ])),
1428
- gradient: zod_1.z.optional(exports.richtextpropertiesRichTextGradientSchema)
1386
+ textTransform: zod_1.z.optional(zod_1.z.enum(["none", "uppercase", "lowercase", "capitalize"])),
1387
+ textDecoration: zod_1.z.optional(zod_1.z.enum(["none", "underline", "line-through"])),
1388
+ gradient: zod_1.z.optional(exports.richtextpropertiesRichTextGradientSchema),
1429
1389
  });
1430
1390
  exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema;
1431
1391
  /**
@@ -1434,22 +1394,19 @@ exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema;
1434
1394
  *
1435
1395
  */
1436
1396
  exports.richtextassetRichTextAssetSchema = zod_1.z.object({
1437
- type: zod_1.z.enum(['rich-text']),
1438
- text: zod_1.z.string().max(5000),
1397
+ type: zod_1.z.enum(["rich-text"]),
1398
+ text: zod_1.z.string().min(1).max(5000).regex(/\S/),
1439
1399
  font: zod_1.z.optional(exports.richtextpropertiesRichTextFontSchema),
1440
1400
  style: zod_1.z.optional(exports.richtextpropertiesRichTextStyleSchema),
1441
1401
  shadow: zod_1.z.optional(exports.richtextpropertiesRichTextShadowSchema),
1442
1402
  background: zod_1.z.optional(exports.richtextpropertiesRichTextBackgroundSchema),
1443
1403
  border: zod_1.z.optional(exports.richtextpropertiesRichTextBorderSchema),
1444
- padding: zod_1.z.optional(zod_1.z.union([
1445
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1404
+ padding: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1446
1405
  return undefined; if (Array.isArray(v))
1447
1406
  return v; if (typeof v === 'string')
1448
- return Number(v); return v; }), zod_1.z.number().gte(0)),
1449
- exports.richtextpropertiesRichTextPaddingSchema
1450
- ])),
1407
+ return Number(v); return v; }), zod_1.z.number().gte(0)), exports.richtextpropertiesRichTextPaddingSchema])),
1451
1408
  align: zod_1.z.optional(exports.richtextpropertiesRichTextAlignmentSchema),
1452
- animation: zod_1.z.optional(exports.richtextpropertiesRichTextAnimationSchema)
1409
+ animation: zod_1.z.optional(exports.richtextpropertiesRichTextAnimationSchema),
1453
1410
  });
1454
1411
  exports.richTextAssetSchema = exports.richtextassetRichTextAssetSchema;
1455
1412
  /**
@@ -1458,8 +1415,8 @@ exports.richTextAssetSchema = exports.richtextassetRichTextAssetSchema;
1458
1415
  exports.transferresponseattributesTransferResponseAttributesSchema = zod_1.z.object({
1459
1416
  id: zod_1.z.optional(zod_1.z.string()),
1460
1417
  owner: zod_1.z.optional(zod_1.z.string()),
1461
- status: zod_1.z.optional(zod_1.z.enum(['queued', 'failed'])),
1462
- created: zod_1.z.optional(zod_1.z.string())
1418
+ status: zod_1.z.optional(zod_1.z.enum(["queued", "failed"])),
1419
+ created: zod_1.z.optional(zod_1.z.string()),
1463
1420
  });
1464
1421
  exports.transferResponseAttributesSchema = exports.transferresponseattributesTransferResponseAttributesSchema;
1465
1422
  /**
@@ -1467,14 +1424,14 @@ exports.transferResponseAttributesSchema = exports.transferresponseattributesTra
1467
1424
  */
1468
1425
  exports.transferresponsedataTransferResponseDataSchema = zod_1.z.object({
1469
1426
  type: zod_1.z.optional(zod_1.z.string()),
1470
- attributes: zod_1.z.optional(exports.transferresponseattributesTransferResponseAttributesSchema)
1427
+ attributes: zod_1.z.optional(exports.transferresponseattributesTransferResponseAttributesSchema),
1471
1428
  });
1472
1429
  exports.transferResponseDataSchema = exports.transferresponsedataTransferResponseDataSchema;
1473
1430
  /**
1474
1431
  * 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.
1475
1432
  */
1476
1433
  exports.transferresponseTransferResponseSchema = zod_1.z.object({
1477
- data: exports.transferresponsedataTransferResponseDataSchema
1434
+ data: exports.transferresponsedataTransferResponseDataSchema,
1478
1435
  });
1479
1436
  exports.transferResponseSchema = exports.transferresponseTransferResponseSchema;
1480
1437
  /**
@@ -1483,7 +1440,7 @@ exports.transferResponseSchema = exports.transferresponseTransferResponseSchema;
1483
1440
  exports.transferTransferSchema = zod_1.z.object({
1484
1441
  url: zod_1.z.string(),
1485
1442
  id: zod_1.z.string(),
1486
- destinations: zod_1.z.array(exports.destinationsDestinationsSchema)
1443
+ destinations: zod_1.z.array(exports.destinationsDestinationsSchema),
1487
1444
  });
1488
1445
  exports.transferSchema = exports.transferTransferSchema;
1489
1446
  /**
@@ -1492,12 +1449,8 @@ exports.transferSchema = exports.transferTransferSchema;
1492
1449
  *
1493
1450
  */
1494
1451
  exports.shapeassetShapeAssetSchema = zod_1.z.object({
1495
- type: zod_1.z.enum(['shape']),
1496
- shape: zod_1.z.enum([
1497
- 'rectangle',
1498
- 'circle',
1499
- 'line'
1500
- ]),
1452
+ type: zod_1.z.enum(["shape"]),
1453
+ shape: zod_1.z.enum(["rectangle", "circle", "line"]),
1501
1454
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1502
1455
  return undefined; if (Array.isArray(v))
1503
1456
  return v; if (typeof v === 'string')
@@ -1511,14 +1464,14 @@ exports.shapeassetShapeAssetSchema = zod_1.z.object({
1511
1464
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1512
1465
  return undefined; if (Array.isArray(v))
1513
1466
  return v; if (typeof v === 'string')
1514
- return Number(v); return v; }), zod_1.z.number()))
1467
+ return Number(v); return v; }), zod_1.z.number())),
1515
1468
  })),
1516
1469
  stroke: zod_1.z.optional(zod_1.z.object({
1517
1470
  color: zod_1.z.optional(zod_1.z.string()),
1518
1471
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1519
1472
  return undefined; if (Array.isArray(v))
1520
1473
  return v; if (typeof v === 'string')
1521
- return Number(v); return v; }), zod_1.z.number()))
1474
+ return Number(v); return v; }), zod_1.z.number())),
1522
1475
  })),
1523
1476
  rectangle: zod_1.z.optional(zod_1.z.object({
1524
1477
  width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1532,13 +1485,13 @@ exports.shapeassetShapeAssetSchema = zod_1.z.object({
1532
1485
  cornerRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1533
1486
  return undefined; if (Array.isArray(v))
1534
1487
  return v; if (typeof v === 'string')
1535
- return Number(v); return v; }), zod_1.z.number().int()))
1488
+ return Number(v); return v; }), zod_1.z.number().int())),
1536
1489
  })),
1537
1490
  circle: zod_1.z.optional(zod_1.z.object({
1538
1491
  radius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1539
1492
  return undefined; if (Array.isArray(v))
1540
1493
  return v; if (typeof v === 'string')
1541
- return Number(v); return v; }), zod_1.z.number().int())
1494
+ return Number(v); return v; }), zod_1.z.number().int()),
1542
1495
  })),
1543
1496
  line: zod_1.z.optional(zod_1.z.object({
1544
1497
  length: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1548,8 +1501,8 @@ exports.shapeassetShapeAssetSchema = zod_1.z.object({
1548
1501
  thickness: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1549
1502
  return undefined; if (Array.isArray(v))
1550
1503
  return v; if (typeof v === 'string')
1551
- return Number(v); return v; }), zod_1.z.number().int())
1552
- }))
1504
+ return Number(v); return v; }), zod_1.z.number().int()),
1505
+ })),
1553
1506
  });
1554
1507
  exports.shapeAssetSchema = exports.shapeassetShapeAssetSchema;
1555
1508
  /**
@@ -1563,7 +1516,7 @@ exports.sizeSizeSchema = zod_1.z.object({
1563
1516
  height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1564
1517
  return undefined; if (Array.isArray(v))
1565
1518
  return v; if (typeof v === 'string')
1566
- return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(4096)))
1519
+ return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(4096))),
1567
1520
  });
1568
1521
  exports.sizeSchema = exports.sizeSizeSchema;
1569
1522
  /**
@@ -1571,35 +1524,25 @@ exports.sizeSchema = exports.sizeSizeSchema;
1571
1524
  */
1572
1525
  exports.renditionRenditionSchema = zod_1.z.object({
1573
1526
  format: zod_1.z.optional(zod_1.z.enum([
1574
- 'mp4',
1575
- 'webm',
1576
- 'mov',
1577
- 'avi',
1578
- 'mkv',
1579
- 'ogv',
1580
- 'wmv',
1581
- 'avif',
1582
- 'gif',
1583
- 'mp3',
1584
- 'wav',
1585
- 'jpg',
1586
- 'png',
1587
- 'webp',
1588
- 'tif'
1527
+ "mp4",
1528
+ "webm",
1529
+ "mov",
1530
+ "avi",
1531
+ "mkv",
1532
+ "ogv",
1533
+ "wmv",
1534
+ "avif",
1535
+ "gif",
1536
+ "mp3",
1537
+ "wav",
1538
+ "jpg",
1539
+ "png",
1540
+ "webp",
1541
+ "tif",
1589
1542
  ])),
1590
1543
  size: zod_1.z.optional(exports.sizeSizeSchema),
1591
- fit: zod_1.z.optional(zod_1.z.enum([
1592
- 'cover',
1593
- 'contain',
1594
- 'crop'
1595
- ])),
1596
- resolution: zod_1.z.optional(zod_1.z.enum([
1597
- 'preview',
1598
- 'mobile',
1599
- 'sd',
1600
- 'hd',
1601
- 'fhd'
1602
- ])),
1544
+ fit: zod_1.z.optional(zod_1.z.enum(["cover", "contain", "crop"])),
1545
+ resolution: zod_1.z.optional(zod_1.z.enum(["preview", "mobile", "sd", "hd", "fhd"])),
1603
1546
  quality: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1604
1547
  return undefined; if (Array.isArray(v))
1605
1548
  return v; if (typeof v === 'string')
@@ -1615,7 +1558,7 @@ exports.renditionRenditionSchema = zod_1.z.object({
1615
1558
  zod_1.z.literal(48),
1616
1559
  zod_1.z.literal(50),
1617
1560
  zod_1.z.literal(59.94),
1618
- zod_1.z.literal(60)
1561
+ zod_1.z.literal(60),
1619
1562
  ])),
1620
1563
  speed: zod_1.z.optional(exports.speedSpeedSchema),
1621
1564
  keyframeInterval: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1625,7 +1568,7 @@ exports.renditionRenditionSchema = zod_1.z.object({
1625
1568
  fixOffset: zod_1.z.optional(zod_1.z.boolean()),
1626
1569
  fixRotation: zod_1.z.optional(zod_1.z.boolean()),
1627
1570
  enhance: zod_1.z.optional(exports.enhancementsEnhancementsSchema),
1628
- filename: zod_1.z.optional(zod_1.z.string())
1571
+ filename: zod_1.z.optional(zod_1.z.string()),
1629
1572
  });
1630
1573
  exports.renditionSchema = exports.renditionRenditionSchema;
1631
1574
  /**
@@ -1633,7 +1576,7 @@ exports.renditionSchema = exports.renditionRenditionSchema;
1633
1576
  */
1634
1577
  exports.outputsOutputsSchema = zod_1.z.object({
1635
1578
  renditions: zod_1.z.optional(zod_1.z.array(exports.renditionRenditionSchema)),
1636
- transcription: zod_1.z.optional(exports.transcriptionTranscriptionSchema)
1579
+ transcription: zod_1.z.optional(exports.transcriptionTranscriptionSchema),
1637
1580
  });
1638
1581
  exports.outputsSchema = exports.outputsOutputsSchema;
1639
1582
  /**
@@ -1642,12 +1585,12 @@ exports.outputsSchema = exports.outputsOutputsSchema;
1642
1585
  exports.renditionresponseattributesRenditionResponseAttributesSchema = zod_1.z.object({
1643
1586
  id: zod_1.z.string(),
1644
1587
  status: zod_1.z.optional(zod_1.z.enum([
1645
- 'queued',
1646
- 'importing',
1647
- 'ready',
1648
- 'failed',
1649
- 'deleted',
1650
- 'overwritten'
1588
+ "queued",
1589
+ "importing",
1590
+ "ready",
1591
+ "failed",
1592
+ "deleted",
1593
+ "overwritten",
1651
1594
  ])),
1652
1595
  url: zod_1.z.optional(zod_1.z.string()),
1653
1596
  executionTime: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1670,14 +1613,14 @@ exports.renditionresponseattributesRenditionResponseAttributesSchema = zod_1.z.o
1670
1613
  fps: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1671
1614
  return undefined; if (Array.isArray(v))
1672
1615
  return v; if (typeof v === 'string')
1673
- return Number(v); return v; }), zod_1.z.number()))
1616
+ return Number(v); return v; }), zod_1.z.number())),
1674
1617
  });
1675
1618
  exports.renditionResponseAttributesSchema = exports.renditionresponseattributesRenditionResponseAttributesSchema;
1676
1619
  /**
1677
1620
  * The list of outputs generated from the source file. Currently supports renditions which are versions of the source file with different transformations applied.
1678
1621
  */
1679
1622
  exports.outputsresponseOutputsResponseSchema = zod_1.z.object({
1680
- renditions: zod_1.z.optional(zod_1.z.array(exports.renditionresponseattributesRenditionResponseAttributesSchema))
1623
+ renditions: zod_1.z.optional(zod_1.z.array(exports.renditionresponseattributesRenditionResponseAttributesSchema)),
1681
1624
  });
1682
1625
  exports.outputsResponseSchema = exports.outputsresponseOutputsResponseSchema;
1683
1626
  /**
@@ -1689,12 +1632,12 @@ exports.sourceresponseattributesSourceResponseAttributesSchema = zod_1.z.object(
1689
1632
  input: zod_1.z.optional(zod_1.z.string()),
1690
1633
  source: zod_1.z.optional(zod_1.z.string()),
1691
1634
  status: zod_1.z.optional(zod_1.z.enum([
1692
- 'queued',
1693
- 'importing',
1694
- 'ready',
1695
- 'failed',
1696
- 'deleted',
1697
- 'overwritten'
1635
+ "queued",
1636
+ "importing",
1637
+ "ready",
1638
+ "failed",
1639
+ "deleted",
1640
+ "overwritten",
1698
1641
  ])),
1699
1642
  outputs: zod_1.z.optional(exports.outputsresponseOutputsResponseSchema),
1700
1643
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1714,7 +1657,7 @@ exports.sourceresponseattributesSourceResponseAttributesSchema = zod_1.z.object(
1714
1657
  return v; if (typeof v === 'string')
1715
1658
  return Number(v); return v; }), zod_1.z.number())),
1716
1659
  created: zod_1.z.optional(zod_1.z.string()),
1717
- updated: zod_1.z.optional(zod_1.z.string())
1660
+ updated: zod_1.z.optional(zod_1.z.string()),
1718
1661
  });
1719
1662
  exports.sourceResponseAttributesSchema = exports.sourceresponseattributesSourceResponseAttributesSchema;
1720
1663
  /**
@@ -1723,21 +1666,21 @@ exports.sourceResponseAttributesSchema = exports.sourceresponseattributesSourceR
1723
1666
  exports.sourceresponsedataSourceResponseDataSchema = zod_1.z.object({
1724
1667
  type: zod_1.z.string(),
1725
1668
  id: zod_1.z.string(),
1726
- attributes: exports.sourceresponseattributesSourceResponseAttributesSchema
1669
+ attributes: exports.sourceresponseattributesSourceResponseAttributesSchema,
1727
1670
  });
1728
1671
  exports.sourceResponseDataSchema = exports.sourceresponsedataSourceResponseDataSchema;
1729
1672
  /**
1730
1673
  * A list of all ingested source files fetched or uploaded to a users account.
1731
1674
  */
1732
1675
  exports.sourcelistresponseSourceListResponseSchema = zod_1.z.object({
1733
- data: zod_1.z.array(exports.sourceresponsedataSourceResponseDataSchema)
1676
+ data: zod_1.z.array(exports.sourceresponsedataSourceResponseDataSchema),
1734
1677
  });
1735
1678
  exports.sourceListResponseSchema = exports.sourcelistresponseSourceListResponseSchema;
1736
1679
  /**
1737
1680
  * 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.
1738
1681
  */
1739
1682
  exports.sourceresponseSourceResponseSchema = zod_1.z.object({
1740
- data: exports.sourceresponsedataSourceResponseDataSchema
1683
+ data: exports.sourceresponsedataSourceResponseDataSchema,
1741
1684
  });
1742
1685
  exports.sourceResponseSchema = exports.sourceresponseSourceResponseSchema;
1743
1686
  /**
@@ -1748,23 +1691,19 @@ exports.sourceSourceSchema = zod_1.z.object({
1748
1691
  url: zod_1.z.optional(zod_1.z.string()),
1749
1692
  outputs: zod_1.z.optional(exports.outputsOutputsSchema),
1750
1693
  destinations: zod_1.z.optional(exports.destinationsDestinationsSchema),
1751
- callback: zod_1.z.optional(zod_1.z.string())
1694
+ callback: zod_1.z.optional(zod_1.z.string()),
1752
1695
  });
1753
1696
  exports.sourceSchema = exports.sourceSourceSchema;
1754
1697
  /**
1755
1698
  * 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.
1756
1699
  */
1757
1700
  exports.soundtrackSoundtrackSchema = zod_1.z.object({
1758
- src: zod_1.z.string(),
1759
- effect: zod_1.z.optional(zod_1.z.enum([
1760
- 'fadeIn',
1761
- 'fadeOut',
1762
- 'fadeInFadeOut'
1763
- ])),
1701
+ src: zod_1.z.string().min(1).regex(/\S/),
1702
+ effect: zod_1.z.optional(zod_1.z.enum(["fadeIn", "fadeOut", "fadeInFadeOut"])),
1764
1703
  volume: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1765
1704
  return undefined; if (Array.isArray(v))
1766
1705
  return v; if (typeof v === 'string')
1767
- return Number(v); return v; }), zod_1.z.number()))
1706
+ return Number(v); return v; }), zod_1.z.number())),
1768
1707
  });
1769
1708
  exports.soundtrackSchema = exports.soundtrackSoundtrackSchema;
1770
1709
  /**
@@ -1777,7 +1716,7 @@ exports.svgpropertiesSvgGradientStopSchema = zod_1.z.object({
1777
1716
  return undefined; if (Array.isArray(v))
1778
1717
  return v; if (typeof v === 'string')
1779
1718
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)),
1780
- color: zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)
1719
+ color: zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/),
1781
1720
  });
1782
1721
  exports.svgGradientStopSchema = exports.svgpropertiesSvgGradientStopSchema;
1783
1722
  /**
@@ -1786,7 +1725,7 @@ exports.svgGradientStopSchema = exports.svgpropertiesSvgGradientStopSchema;
1786
1725
  *
1787
1726
  */
1788
1727
  exports.svgpropertiesSvgLinearGradientFillSchema = zod_1.z.object({
1789
- type: zod_1.z.enum(['linear']),
1728
+ type: zod_1.z.enum(["linear"]),
1790
1729
  angle: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1791
1730
  return undefined; if (Array.isArray(v))
1792
1731
  return v; if (typeof v === 'string')
@@ -1795,7 +1734,7 @@ exports.svgpropertiesSvgLinearGradientFillSchema = zod_1.z.object({
1795
1734
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1796
1735
  return undefined; if (Array.isArray(v))
1797
1736
  return v; if (typeof v === 'string')
1798
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1)
1737
+ return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1),
1799
1738
  });
1800
1739
  exports.svgLinearGradientFillSchema = exports.svgpropertiesSvgLinearGradientFillSchema;
1801
1740
  /**
@@ -1804,12 +1743,12 @@ exports.svgLinearGradientFillSchema = exports.svgpropertiesSvgLinearGradientFill
1804
1743
  *
1805
1744
  */
1806
1745
  exports.svgpropertiesSvgRadialGradientFillSchema = zod_1.z.object({
1807
- type: zod_1.z.enum(['radial']),
1746
+ type: zod_1.z.enum(["radial"]),
1808
1747
  stops: zod_1.z.array(exports.svgpropertiesSvgGradientStopSchema).min(2),
1809
1748
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1810
1749
  return undefined; if (Array.isArray(v))
1811
1750
  return v; if (typeof v === 'string')
1812
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1)
1751
+ return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1),
1813
1752
  });
1814
1753
  exports.svgRadialGradientFillSchema = exports.svgpropertiesSvgRadialGradientFillSchema;
1815
1754
  /**
@@ -1829,23 +1768,26 @@ exports.svgpropertiesSvgShadowSchema = zod_1.z.object({
1829
1768
  return undefined; if (Array.isArray(v))
1830
1769
  return v; if (typeof v === 'string')
1831
1770
  return Number(v); return v; }), zod_1.z.number().gte(0))).default(0),
1832
- color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#000000'),
1771
+ color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1833
1772
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1834
1773
  return undefined; if (Array.isArray(v))
1835
1774
  return v; if (typeof v === 'string')
1836
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(0.5)
1775
+ return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(0.5),
1837
1776
  });
1838
1777
  exports.svgShadowSchema = exports.svgpropertiesSvgShadowSchema;
1839
1778
  /**
1840
1779
  * A solid color fill for SVG shapes.
1841
1780
  */
1842
1781
  exports.svgpropertiesSvgSolidFillSchema = zod_1.z.object({
1843
- type: zod_1.z.enum(['solid']),
1844
- color: zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/).default('#000000'),
1782
+ type: zod_1.z.enum(["solid"]),
1783
+ color: zod_1.z
1784
+ .string()
1785
+ .regex(/^#[A-Fa-f0-9]{6}$/)
1786
+ .default("#000000"),
1845
1787
  opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1846
1788
  return undefined; if (Array.isArray(v))
1847
1789
  return v; if (typeof v === 'string')
1848
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1)
1790
+ return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1),
1849
1791
  });
1850
1792
  exports.svgSolidFillSchema = exports.svgpropertiesSvgSolidFillSchema;
1851
1793
  /**
@@ -1865,7 +1807,7 @@ exports.svgFillSchema = exports.svgpropertiesSvgFillSchema;
1865
1807
  *
1866
1808
  */
1867
1809
  exports.svgpropertiesSvgStrokeSchema = zod_1.z.object({
1868
- color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#000000'),
1810
+ color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1869
1811
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1870
1812
  return undefined; if (Array.isArray(v))
1871
1813
  return v; if (typeof v === 'string')
@@ -1874,16 +1816,8 @@ exports.svgpropertiesSvgStrokeSchema = zod_1.z.object({
1874
1816
  return undefined; if (Array.isArray(v))
1875
1817
  return v; if (typeof v === 'string')
1876
1818
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(1),
1877
- lineCap: zod_1.z.optional(zod_1.z.enum([
1878
- 'butt',
1879
- 'round',
1880
- 'square'
1881
- ])),
1882
- lineJoin: zod_1.z.optional(zod_1.z.enum([
1883
- 'miter',
1884
- 'round',
1885
- 'bevel'
1886
- ])),
1819
+ lineCap: zod_1.z.optional(zod_1.z.enum(["butt", "round", "square"])),
1820
+ lineJoin: zod_1.z.optional(zod_1.z.enum(["miter", "round", "bevel"])),
1887
1821
  dashArray: zod_1.z.optional(zod_1.z.array(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1888
1822
  return undefined; if (Array.isArray(v))
1889
1823
  return v; if (typeof v === 'string')
@@ -1891,7 +1825,7 @@ exports.svgpropertiesSvgStrokeSchema = zod_1.z.object({
1891
1825
  dashOffset: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1892
1826
  return undefined; if (Array.isArray(v))
1893
1827
  return v; if (typeof v === 'string')
1894
- return Number(v); return v; }), zod_1.z.number())).default(0)
1828
+ return Number(v); return v; }), zod_1.z.number())).default(0),
1895
1829
  });
1896
1830
  exports.svgStrokeSchema = exports.svgpropertiesSvgStrokeSchema;
1897
1831
  /**
@@ -1922,7 +1856,7 @@ exports.svgpropertiesSvgTransformSchema = zod_1.z.object({
1922
1856
  originY: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1923
1857
  return undefined; if (Array.isArray(v))
1924
1858
  return v; if (typeof v === 'string')
1925
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(0.5)
1859
+ return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))).default(0.5),
1926
1860
  });
1927
1861
  exports.svgTransformSchema = exports.svgpropertiesSvgTransformSchema;
1928
1862
  /**
@@ -1931,7 +1865,7 @@ exports.svgTransformSchema = exports.svgpropertiesSvgTransformSchema;
1931
1865
  *
1932
1866
  */
1933
1867
  exports.svgshapesSvgArrowShapeSchema = zod_1.z.object({
1934
- type: zod_1.z.enum(['arrow']),
1868
+ type: zod_1.z.enum(["arrow"]),
1935
1869
  length: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1936
1870
  return undefined; if (Array.isArray(v))
1937
1871
  return v; if (typeof v === 'string')
@@ -1947,7 +1881,7 @@ exports.svgshapesSvgArrowShapeSchema = zod_1.z.object({
1947
1881
  shaftWidth: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1948
1882
  return undefined; if (Array.isArray(v))
1949
1883
  return v; if (typeof v === 'string')
1950
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(1000))
1884
+ return Number(v); return v; }), zod_1.z.number().gte(1).lte(1000)),
1951
1885
  });
1952
1886
  exports.svgArrowShapeSchema = exports.svgshapesSvgArrowShapeSchema;
1953
1887
  /**
@@ -1956,11 +1890,11 @@ exports.svgArrowShapeSchema = exports.svgshapesSvgArrowShapeSchema;
1956
1890
  *
1957
1891
  */
1958
1892
  exports.svgshapesSvgCircleShapeSchema = zod_1.z.object({
1959
- type: zod_1.z.enum(['circle']),
1893
+ type: zod_1.z.enum(["circle"]),
1960
1894
  radius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1961
1895
  return undefined; if (Array.isArray(v))
1962
1896
  return v; if (typeof v === 'string')
1963
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048))
1897
+ return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048)),
1964
1898
  });
1965
1899
  exports.svgCircleShapeSchema = exports.svgshapesSvgCircleShapeSchema;
1966
1900
  /**
@@ -1969,7 +1903,7 @@ exports.svgCircleShapeSchema = exports.svgshapesSvgCircleShapeSchema;
1969
1903
  *
1970
1904
  */
1971
1905
  exports.svgshapesSvgCrossShapeSchema = zod_1.z.object({
1972
- type: zod_1.z.enum(['cross']),
1906
+ type: zod_1.z.enum(["cross"]),
1973
1907
  width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1974
1908
  return undefined; if (Array.isArray(v))
1975
1909
  return v; if (typeof v === 'string')
@@ -1981,7 +1915,7 @@ exports.svgshapesSvgCrossShapeSchema = zod_1.z.object({
1981
1915
  thickness: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1982
1916
  return undefined; if (Array.isArray(v))
1983
1917
  return v; if (typeof v === 'string')
1984
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(500))
1918
+ return Number(v); return v; }), zod_1.z.number().gte(1).lte(500)),
1985
1919
  });
1986
1920
  exports.svgCrossShapeSchema = exports.svgshapesSvgCrossShapeSchema;
1987
1921
  /**
@@ -1990,7 +1924,7 @@ exports.svgCrossShapeSchema = exports.svgshapesSvgCrossShapeSchema;
1990
1924
  *
1991
1925
  */
1992
1926
  exports.svgshapesSvgEllipseShapeSchema = zod_1.z.object({
1993
- type: zod_1.z.enum(['ellipse']),
1927
+ type: zod_1.z.enum(["ellipse"]),
1994
1928
  radiusX: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1995
1929
  return undefined; if (Array.isArray(v))
1996
1930
  return v; if (typeof v === 'string')
@@ -1998,7 +1932,7 @@ exports.svgshapesSvgEllipseShapeSchema = zod_1.z.object({
1998
1932
  radiusY: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1999
1933
  return undefined; if (Array.isArray(v))
2000
1934
  return v; if (typeof v === 'string')
2001
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048))
1935
+ return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048)),
2002
1936
  });
2003
1937
  exports.svgEllipseShapeSchema = exports.svgshapesSvgEllipseShapeSchema;
2004
1938
  /**
@@ -2007,11 +1941,11 @@ exports.svgEllipseShapeSchema = exports.svgshapesSvgEllipseShapeSchema;
2007
1941
  *
2008
1942
  */
2009
1943
  exports.svgshapesSvgHeartShapeSchema = zod_1.z.object({
2010
- type: zod_1.z.enum(['heart']),
1944
+ type: zod_1.z.enum(["heart"]),
2011
1945
  size: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2012
1946
  return undefined; if (Array.isArray(v))
2013
1947
  return v; if (typeof v === 'string')
2014
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096))
1948
+ return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096)),
2015
1949
  });
2016
1950
  exports.svgHeartShapeSchema = exports.svgshapesSvgHeartShapeSchema;
2017
1951
  /**
@@ -2020,7 +1954,7 @@ exports.svgHeartShapeSchema = exports.svgshapesSvgHeartShapeSchema;
2020
1954
  *
2021
1955
  */
2022
1956
  exports.svgshapesSvgLineShapeSchema = zod_1.z.object({
2023
- type: zod_1.z.enum(['line']),
1957
+ type: zod_1.z.enum(["line"]),
2024
1958
  length: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2025
1959
  return undefined; if (Array.isArray(v))
2026
1960
  return v; if (typeof v === 'string')
@@ -2028,7 +1962,7 @@ exports.svgshapesSvgLineShapeSchema = zod_1.z.object({
2028
1962
  thickness: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2029
1963
  return undefined; if (Array.isArray(v))
2030
1964
  return v; if (typeof v === 'string')
2031
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(500))
1965
+ return Number(v); return v; }), zod_1.z.number().gte(1).lte(500)),
2032
1966
  });
2033
1967
  exports.svgLineShapeSchema = exports.svgshapesSvgLineShapeSchema;
2034
1968
  /**
@@ -2049,8 +1983,8 @@ exports.svgLineShapeSchema = exports.svgshapesSvgLineShapeSchema;
2049
1983
  *
2050
1984
  */
2051
1985
  exports.svgshapesSvgPathShapeSchema = zod_1.z.object({
2052
- type: zod_1.z.enum(['path']),
2053
- d: zod_1.z.string().min(1).max(100000)
1986
+ type: zod_1.z.enum(["path"]),
1987
+ d: zod_1.z.string().min(1).max(100000),
2054
1988
  });
2055
1989
  exports.svgPathShapeSchema = exports.svgshapesSvgPathShapeSchema;
2056
1990
  /**
@@ -2060,7 +1994,7 @@ exports.svgPathShapeSchema = exports.svgshapesSvgPathShapeSchema;
2060
1994
  *
2061
1995
  */
2062
1996
  exports.svgshapesSvgPolygonShapeSchema = zod_1.z.object({
2063
- type: zod_1.z.enum(['polygon']),
1997
+ type: zod_1.z.enum(["polygon"]),
2064
1998
  sides: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2065
1999
  return undefined; if (Array.isArray(v))
2066
2000
  return v; if (typeof v === 'string')
@@ -2068,7 +2002,7 @@ exports.svgshapesSvgPolygonShapeSchema = zod_1.z.object({
2068
2002
  radius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2069
2003
  return undefined; if (Array.isArray(v))
2070
2004
  return v; if (typeof v === 'string')
2071
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048))
2005
+ return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048)),
2072
2006
  });
2073
2007
  exports.svgPolygonShapeSchema = exports.svgshapesSvgPolygonShapeSchema;
2074
2008
  /**
@@ -2077,7 +2011,7 @@ exports.svgPolygonShapeSchema = exports.svgshapesSvgPolygonShapeSchema;
2077
2011
  *
2078
2012
  */
2079
2013
  exports.svgshapesSvgRectangleShapeSchema = zod_1.z.object({
2080
- type: zod_1.z.enum(['rectangle']),
2014
+ type: zod_1.z.enum(["rectangle"]),
2081
2015
  width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2082
2016
  return undefined; if (Array.isArray(v))
2083
2017
  return v; if (typeof v === 'string')
@@ -2089,7 +2023,7 @@ exports.svgshapesSvgRectangleShapeSchema = zod_1.z.object({
2089
2023
  cornerRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2090
2024
  return undefined; if (Array.isArray(v))
2091
2025
  return v; if (typeof v === 'string')
2092
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(2048))).default(0)
2026
+ return Number(v); return v; }), zod_1.z.number().gte(0).lte(2048))).default(0),
2093
2027
  });
2094
2028
  exports.svgRectangleShapeSchema = exports.svgshapesSvgRectangleShapeSchema;
2095
2029
  /**
@@ -2098,7 +2032,7 @@ exports.svgRectangleShapeSchema = exports.svgshapesSvgRectangleShapeSchema;
2098
2032
  *
2099
2033
  */
2100
2034
  exports.svgshapesSvgRingShapeSchema = zod_1.z.object({
2101
- type: zod_1.z.enum(['ring']),
2035
+ type: zod_1.z.enum(["ring"]),
2102
2036
  outerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2103
2037
  return undefined; if (Array.isArray(v))
2104
2038
  return v; if (typeof v === 'string')
@@ -2106,7 +2040,7 @@ exports.svgshapesSvgRingShapeSchema = zod_1.z.object({
2106
2040
  innerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2107
2041
  return undefined; if (Array.isArray(v))
2108
2042
  return v; if (typeof v === 'string')
2109
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(2048))
2043
+ return Number(v); return v; }), zod_1.z.number().gte(0).lte(2048)),
2110
2044
  });
2111
2045
  exports.svgRingShapeSchema = exports.svgshapesSvgRingShapeSchema;
2112
2046
  /**
@@ -2116,7 +2050,7 @@ exports.svgRingShapeSchema = exports.svgshapesSvgRingShapeSchema;
2116
2050
  *
2117
2051
  */
2118
2052
  exports.svgshapesSvgStarShapeSchema = zod_1.z.object({
2119
- type: zod_1.z.enum(['star']),
2053
+ type: zod_1.z.enum(["star"]),
2120
2054
  points: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2121
2055
  return undefined; if (Array.isArray(v))
2122
2056
  return v; if (typeof v === 'string')
@@ -2128,7 +2062,7 @@ exports.svgshapesSvgStarShapeSchema = zod_1.z.object({
2128
2062
  innerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2129
2063
  return undefined; if (Array.isArray(v))
2130
2064
  return v; if (typeof v === 'string')
2131
- return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048))
2065
+ return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048)),
2132
2066
  });
2133
2067
  exports.svgStarShapeSchema = exports.svgshapesSvgStarShapeSchema;
2134
2068
  /**
@@ -2259,34 +2193,26 @@ exports.svgAssetSchema = exports.svgassetSvgAssetSchema;
2259
2193
  */
2260
2194
  exports.templaterenderTemplateRenderSchema = zod_1.z.object({
2261
2195
  id: zod_1.z.string(),
2262
- merge: zod_1.z.optional(zod_1.z.array(exports.mergefieldMergeFieldSchema))
2196
+ merge: zod_1.z.optional(zod_1.z.array(exports.mergefieldMergeFieldSchema)),
2263
2197
  });
2264
2198
  exports.templateRenderSchema = exports.templaterenderTemplateRenderSchema;
2265
2199
  /**
2266
2200
  * Horizontal and vertical alignment properties for text.
2267
2201
  */
2268
2202
  exports.textpropertiesTextAlignmentSchema = zod_1.z.object({
2269
- horizontal: zod_1.z.optional(zod_1.z.enum([
2270
- 'left',
2271
- 'center',
2272
- 'right'
2273
- ])),
2274
- vertical: zod_1.z.optional(zod_1.z.enum([
2275
- 'top',
2276
- 'center',
2277
- 'bottom'
2278
- ]))
2203
+ horizontal: zod_1.z.optional(zod_1.z.enum(["left", "center", "right"])),
2204
+ vertical: zod_1.z.optional(zod_1.z.enum(["top", "center", "bottom"])),
2279
2205
  });
2280
2206
  exports.textAlignmentSchema = exports.textpropertiesTextAlignmentSchema;
2281
2207
  /**
2282
2208
  * Animation properties for text entrance effects.
2283
2209
  */
2284
2210
  exports.textpropertiesTextAnimationSchema = zod_1.z.object({
2285
- preset: zod_1.z.enum(['typewriter']),
2211
+ preset: zod_1.z.enum(["typewriter"]),
2286
2212
  duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2287
2213
  return undefined; if (Array.isArray(v))
2288
2214
  return v; if (typeof v === 'string')
2289
- return Number(v); return v; }), zod_1.z.number().gte(0.1).lte(30)))
2215
+ return Number(v); return v; }), zod_1.z.number().gte(0.1).lte(30))),
2290
2216
  });
2291
2217
  /**
2292
2218
  * Displays a background box behind the text.
@@ -2304,7 +2230,7 @@ exports.textpropertiesTextBackgroundSchema = zod_1.z.object({
2304
2230
  borderRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2305
2231
  return undefined; if (Array.isArray(v))
2306
2232
  return v; if (typeof v === 'string')
2307
- return Number(v); return v; }), zod_1.z.number().gte(0)))
2233
+ return Number(v); return v; }), zod_1.z.number().gte(0))),
2308
2234
  });
2309
2235
  exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema;
2310
2236
  /**
@@ -2328,7 +2254,7 @@ exports.textpropertiesTextFontSchema = zod_1.z.object({
2328
2254
  lineHeight: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2329
2255
  return undefined; if (Array.isArray(v))
2330
2256
  return v; if (typeof v === 'string')
2331
- return Number(v); return v; }), zod_1.z.number()))
2257
+ return Number(v); return v; }), zod_1.z.number())),
2332
2258
  });
2333
2259
  exports.textFontSchema = exports.textpropertiesTextFontSchema;
2334
2260
  /**
@@ -2339,7 +2265,7 @@ exports.textpropertiesTextStrokeSchema = zod_1.z.object({
2339
2265
  return undefined; if (Array.isArray(v))
2340
2266
  return v; if (typeof v === 'string')
2341
2267
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(10))),
2342
- color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/))
2268
+ color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
2343
2269
  });
2344
2270
  /**
2345
2271
  * The TextAsset is used to add text and titles to a video. The text can be styled with built in and custom
@@ -2347,8 +2273,8 @@ exports.textpropertiesTextStrokeSchema = zod_1.z.object({
2347
2273
  *
2348
2274
  */
2349
2275
  exports.textassetTextAssetSchema = zod_1.z.object({
2350
- type: zod_1.z.enum(['text']),
2351
- text: zod_1.z.string(),
2276
+ type: zod_1.z.enum(["text"]),
2277
+ text: zod_1.z.string().min(1).regex(/\S/),
2352
2278
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2353
2279
  return undefined; if (Array.isArray(v))
2354
2280
  return v; if (typeof v === 'string')
@@ -2362,14 +2288,14 @@ exports.textassetTextAssetSchema = zod_1.z.object({
2362
2288
  alignment: zod_1.z.optional(exports.textpropertiesTextAlignmentSchema),
2363
2289
  stroke: zod_1.z.optional(exports.textpropertiesTextStrokeSchema),
2364
2290
  animation: zod_1.z.optional(exports.textpropertiesTextAnimationSchema),
2365
- ellipsis: zod_1.z.optional(zod_1.z.string())
2291
+ ellipsis: zod_1.z.optional(zod_1.z.string()),
2366
2292
  });
2367
2293
  exports.textAssetSchema = exports.textassetTextAssetSchema;
2368
2294
  /**
2369
2295
  * The TextToImageAsset lets you create a dynamic image from a text prompt.
2370
2296
  */
2371
2297
  exports.texttoimageassetTextToImageAssetSchema = zod_1.z.object({
2372
- type: zod_1.z.enum(['text-to-image']),
2298
+ type: zod_1.z.enum(["text-to-image"]),
2373
2299
  prompt: zod_1.z.string(),
2374
2300
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2375
2301
  return undefined; if (Array.isArray(v))
@@ -2379,7 +2305,7 @@ exports.texttoimageassetTextToImageAssetSchema = zod_1.z.object({
2379
2305
  return undefined; if (Array.isArray(v))
2380
2306
  return v; if (typeof v === 'string')
2381
2307
  return Number(v); return v; }), zod_1.z.number().int())),
2382
- crop: zod_1.z.optional(exports.cropCropSchema)
2308
+ crop: zod_1.z.optional(exports.cropCropSchema),
2383
2309
  });
2384
2310
  exports.textToImageAssetSchema = exports.texttoimageassetTextToImageAssetSchema;
2385
2311
  /**
@@ -2393,36 +2319,16 @@ exports.thumbnailThumbnailSchema = zod_1.z.object({
2393
2319
  scale: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2394
2320
  return undefined; if (Array.isArray(v))
2395
2321
  return v; if (typeof v === 'string')
2396
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))
2322
+ return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)),
2397
2323
  });
2398
2324
  exports.thumbnailSchema = exports.thumbnailThumbnailSchema;
2399
2325
  /**
2400
2326
  * The output format, render range and type of media to generate.
2401
2327
  */
2402
2328
  exports.outputOutputSchema = zod_1.z.object({
2403
- format: zod_1.z.enum([
2404
- 'mp4',
2405
- 'gif',
2406
- 'mp3',
2407
- 'jpg',
2408
- 'png',
2409
- 'bmp'
2410
- ]),
2411
- resolution: zod_1.z.optional(zod_1.z.enum([
2412
- 'preview',
2413
- 'mobile',
2414
- 'sd',
2415
- 'hd',
2416
- '1080',
2417
- '4k'
2418
- ])),
2419
- aspectRatio: zod_1.z.optional(zod_1.z.enum([
2420
- '16:9',
2421
- '9:16',
2422
- '1:1',
2423
- '4:5',
2424
- '4:3'
2425
- ])),
2329
+ format: zod_1.z.enum(["mp4", "gif", "mp3", "jpg", "png", "bmp"]),
2330
+ resolution: zod_1.z.optional(zod_1.z.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
2331
+ aspectRatio: zod_1.z.optional(zod_1.z.enum(["16:9", "9:16", "1:1", "4:5", "4:3"])),
2426
2332
  size: zod_1.z.optional(exports.sizeSizeSchema),
2427
2333
  fps: zod_1.z.optional(zod_1.z.union([
2428
2334
  zod_1.z.literal(12),
@@ -2435,29 +2341,16 @@ exports.outputOutputSchema = zod_1.z.object({
2435
2341
  zod_1.z.literal(48),
2436
2342
  zod_1.z.literal(50),
2437
2343
  zod_1.z.literal(59.94),
2438
- zod_1.z.literal(60)
2439
- ])),
2440
- scaleTo: zod_1.z.optional(zod_1.z.enum([
2441
- 'preview',
2442
- 'mobile',
2443
- 'sd',
2444
- 'hd',
2445
- '1080',
2446
- '4k'
2447
- ])),
2448
- quality: zod_1.z.optional(zod_1.z.enum([
2449
- 'verylow',
2450
- 'low',
2451
- 'medium',
2452
- 'high',
2453
- 'veryhigh'
2344
+ zod_1.z.literal(60),
2454
2345
  ])),
2346
+ scaleTo: zod_1.z.optional(zod_1.z.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
2347
+ quality: zod_1.z.optional(zod_1.z.enum(["verylow", "low", "medium", "high", "veryhigh"])),
2455
2348
  repeat: zod_1.z.optional(zod_1.z.boolean()),
2456
2349
  mute: zod_1.z.optional(zod_1.z.boolean()),
2457
2350
  range: zod_1.z.optional(exports.rangeRangeSchema),
2458
2351
  poster: zod_1.z.optional(exports.posterPosterSchema),
2459
2352
  thumbnail: zod_1.z.optional(exports.thumbnailThumbnailSchema),
2460
- destinations: zod_1.z.optional(zod_1.z.array(exports.destinationsDestinationsSchema))
2353
+ destinations: zod_1.z.optional(zod_1.z.array(exports.destinationsDestinationsSchema)),
2461
2354
  });
2462
2355
  exports.outputSchema = exports.outputOutputSchema;
2463
2356
  /**
@@ -2465,133 +2358,133 @@ exports.outputSchema = exports.outputOutputSchema;
2465
2358
  */
2466
2359
  exports.transitionTransitionSchema = zod_1.z.object({
2467
2360
  in: zod_1.z.optional(zod_1.z.enum([
2468
- 'none',
2469
- 'fade',
2470
- 'fadeSlow',
2471
- 'fadeFast',
2472
- 'reveal',
2473
- 'revealSlow',
2474
- 'revealFast',
2475
- 'wipeLeft',
2476
- 'wipeLeftSlow',
2477
- 'wipeLeftFast',
2478
- 'wipeRight',
2479
- 'wipeRightSlow',
2480
- 'wipeRightFast',
2481
- 'slideLeft',
2482
- 'slideLeftSlow',
2483
- 'slideLeftFast',
2484
- 'slideRight',
2485
- 'slideRightSlow',
2486
- 'slideRightFast',
2487
- 'slideUp',
2488
- 'slideUpSlow',
2489
- 'slideUpFast',
2490
- 'slideDown',
2491
- 'slideDownSlow',
2492
- 'slideDownFast',
2493
- 'carouselLeft',
2494
- 'carouselLeftSlow',
2495
- 'carouselLeftFast',
2496
- 'carouselRight',
2497
- 'carouselRightSlow',
2498
- 'carouselRightFast',
2499
- 'carouselUp',
2500
- 'carouselUpSlow',
2501
- 'carouselUpFast',
2502
- 'carouselDown',
2503
- 'carouselDownSlow',
2504
- 'carouselDownFast',
2505
- 'shuffleTopRight',
2506
- 'shuffleTopRightSlow',
2507
- 'shuffleTopRightFast',
2508
- 'shuffleRightTop',
2509
- 'shuffleRightTopSlow',
2510
- 'shuffleRightTopFast',
2511
- 'shuffleRightBottom',
2512
- 'shuffleRightBottomSlow',
2513
- 'shuffleRightBottomFast',
2514
- 'shuffleBottomRight',
2515
- 'shuffleBottomRightSlow',
2516
- 'shuffleBottomRightFast',
2517
- 'shuffleBottomLeft',
2518
- 'shuffleBottomLeftSlow',
2519
- 'shuffleBottomLeftFast',
2520
- 'shuffleLeftBottom',
2521
- 'shuffleLeftBottomSlow',
2522
- 'shuffleLeftBottomFast',
2523
- 'shuffleLeftTop',
2524
- 'shuffleLeftTopSlow',
2525
- 'shuffleLeftTopFast',
2526
- 'shuffleTopLeft',
2527
- 'shuffleTopLeftSlow',
2528
- 'shuffleTopLeftFast',
2529
- 'zoom'
2361
+ "none",
2362
+ "fade",
2363
+ "fadeSlow",
2364
+ "fadeFast",
2365
+ "reveal",
2366
+ "revealSlow",
2367
+ "revealFast",
2368
+ "wipeLeft",
2369
+ "wipeLeftSlow",
2370
+ "wipeLeftFast",
2371
+ "wipeRight",
2372
+ "wipeRightSlow",
2373
+ "wipeRightFast",
2374
+ "slideLeft",
2375
+ "slideLeftSlow",
2376
+ "slideLeftFast",
2377
+ "slideRight",
2378
+ "slideRightSlow",
2379
+ "slideRightFast",
2380
+ "slideUp",
2381
+ "slideUpSlow",
2382
+ "slideUpFast",
2383
+ "slideDown",
2384
+ "slideDownSlow",
2385
+ "slideDownFast",
2386
+ "carouselLeft",
2387
+ "carouselLeftSlow",
2388
+ "carouselLeftFast",
2389
+ "carouselRight",
2390
+ "carouselRightSlow",
2391
+ "carouselRightFast",
2392
+ "carouselUp",
2393
+ "carouselUpSlow",
2394
+ "carouselUpFast",
2395
+ "carouselDown",
2396
+ "carouselDownSlow",
2397
+ "carouselDownFast",
2398
+ "shuffleTopRight",
2399
+ "shuffleTopRightSlow",
2400
+ "shuffleTopRightFast",
2401
+ "shuffleRightTop",
2402
+ "shuffleRightTopSlow",
2403
+ "shuffleRightTopFast",
2404
+ "shuffleRightBottom",
2405
+ "shuffleRightBottomSlow",
2406
+ "shuffleRightBottomFast",
2407
+ "shuffleBottomRight",
2408
+ "shuffleBottomRightSlow",
2409
+ "shuffleBottomRightFast",
2410
+ "shuffleBottomLeft",
2411
+ "shuffleBottomLeftSlow",
2412
+ "shuffleBottomLeftFast",
2413
+ "shuffleLeftBottom",
2414
+ "shuffleLeftBottomSlow",
2415
+ "shuffleLeftBottomFast",
2416
+ "shuffleLeftTop",
2417
+ "shuffleLeftTopSlow",
2418
+ "shuffleLeftTopFast",
2419
+ "shuffleTopLeft",
2420
+ "shuffleTopLeftSlow",
2421
+ "shuffleTopLeftFast",
2422
+ "zoom",
2530
2423
  ])),
2531
2424
  out: zod_1.z.optional(zod_1.z.enum([
2532
- 'none',
2533
- 'fade',
2534
- 'fadeSlow',
2535
- 'fadeFast',
2536
- 'reveal',
2537
- 'revealSlow',
2538
- 'revealFast',
2539
- 'wipeLeft',
2540
- 'wipeLeftSlow',
2541
- 'wipeLeftFast',
2542
- 'wipeRight',
2543
- 'wipeRightSlow',
2544
- 'wipeRightFast',
2545
- 'slideLeft',
2546
- 'slideLeftSlow',
2547
- 'slideLeftFast',
2548
- 'slideRight',
2549
- 'slideRightSlow',
2550
- 'slideRightFast',
2551
- 'slideUp',
2552
- 'slideUpSlow',
2553
- 'slideUpFast',
2554
- 'slideDown',
2555
- 'slideDownSlow',
2556
- 'slideDownFast',
2557
- 'carouselLeft',
2558
- 'carouselLeftSlow',
2559
- 'carouselLeftFast',
2560
- 'carouselRight',
2561
- 'carouselRightSlow',
2562
- 'carouselRightFast',
2563
- 'carouselUp',
2564
- 'carouselUpSlow',
2565
- 'carouselUpFast',
2566
- 'carouselDown',
2567
- 'carouselDownSlow',
2568
- 'carouselDownFast',
2569
- 'shuffleTopRight',
2570
- 'shuffleTopRightSlow',
2571
- 'shuffleTopRightFast',
2572
- 'shuffleRightTop',
2573
- 'shuffleRightTopSlow',
2574
- 'shuffleRightTopFast',
2575
- 'shuffleRightBottom',
2576
- 'shuffleRightBottomSlow',
2577
- 'shuffleRightBottomFast',
2578
- 'shuffleBottomRight',
2579
- 'shuffleBottomRightSlow',
2580
- 'shuffleBottomRightFast',
2581
- 'shuffleBottomLeft',
2582
- 'shuffleBottomLeftSlow',
2583
- 'shuffleBottomLeftFast',
2584
- 'shuffleLeftBottom',
2585
- 'shuffleLeftBottomSlow',
2586
- 'shuffleLeftBottomFast',
2587
- 'shuffleLeftTop',
2588
- 'shuffleLeftTopSlow',
2589
- 'shuffleLeftTopFast',
2590
- 'shuffleTopLeft',
2591
- 'shuffleTopLeftSlow',
2592
- 'shuffleTopLeftFast',
2593
- 'zoom'
2594
- ]))
2425
+ "none",
2426
+ "fade",
2427
+ "fadeSlow",
2428
+ "fadeFast",
2429
+ "reveal",
2430
+ "revealSlow",
2431
+ "revealFast",
2432
+ "wipeLeft",
2433
+ "wipeLeftSlow",
2434
+ "wipeLeftFast",
2435
+ "wipeRight",
2436
+ "wipeRightSlow",
2437
+ "wipeRightFast",
2438
+ "slideLeft",
2439
+ "slideLeftSlow",
2440
+ "slideLeftFast",
2441
+ "slideRight",
2442
+ "slideRightSlow",
2443
+ "slideRightFast",
2444
+ "slideUp",
2445
+ "slideUpSlow",
2446
+ "slideUpFast",
2447
+ "slideDown",
2448
+ "slideDownSlow",
2449
+ "slideDownFast",
2450
+ "carouselLeft",
2451
+ "carouselLeftSlow",
2452
+ "carouselLeftFast",
2453
+ "carouselRight",
2454
+ "carouselRightSlow",
2455
+ "carouselRightFast",
2456
+ "carouselUp",
2457
+ "carouselUpSlow",
2458
+ "carouselUpFast",
2459
+ "carouselDown",
2460
+ "carouselDownSlow",
2461
+ "carouselDownFast",
2462
+ "shuffleTopRight",
2463
+ "shuffleTopRightSlow",
2464
+ "shuffleTopRightFast",
2465
+ "shuffleRightTop",
2466
+ "shuffleRightTopSlow",
2467
+ "shuffleRightTopFast",
2468
+ "shuffleRightBottom",
2469
+ "shuffleRightBottomSlow",
2470
+ "shuffleRightBottomFast",
2471
+ "shuffleBottomRight",
2472
+ "shuffleBottomRightSlow",
2473
+ "shuffleBottomRightFast",
2474
+ "shuffleBottomLeft",
2475
+ "shuffleBottomLeftSlow",
2476
+ "shuffleBottomLeftFast",
2477
+ "shuffleLeftBottom",
2478
+ "shuffleLeftBottomSlow",
2479
+ "shuffleLeftBottomFast",
2480
+ "shuffleLeftTop",
2481
+ "shuffleLeftTopSlow",
2482
+ "shuffleLeftTopFast",
2483
+ "shuffleTopLeft",
2484
+ "shuffleTopLeftSlow",
2485
+ "shuffleTopLeftFast",
2486
+ "zoom",
2487
+ ])),
2595
2488
  });
2596
2489
  exports.transitionSchema = exports.transitionTransitionSchema;
2597
2490
  /**
@@ -2615,123 +2508,96 @@ exports.tweenTweenSchema = zod_1.z.object({
2615
2508
  return undefined; if (Array.isArray(v))
2616
2509
  return v; if (typeof v === 'string')
2617
2510
  return Number(v); return v; }), zod_1.z.number())),
2618
- interpolation: zod_1.z.optional(zod_1.z.enum([
2619
- 'linear',
2620
- 'bezier',
2621
- 'constant'
2622
- ])),
2511
+ interpolation: zod_1.z.optional(zod_1.z.enum(["linear", "bezier", "constant"])),
2623
2512
  easing: zod_1.z.optional(zod_1.z.enum([
2624
- 'ease',
2625
- 'easeIn',
2626
- 'easeOut',
2627
- 'easeInOut',
2628
- 'easeInQuad',
2629
- 'easeInCubic',
2630
- 'easeInQuart',
2631
- 'easeInQuint',
2632
- 'easeInSine',
2633
- 'easeInExpo',
2634
- 'easeInCirc',
2635
- 'easeInBack',
2636
- 'easeOutQuad',
2637
- 'easeOutCubic',
2638
- 'easeOutQuart',
2639
- 'easeOutQuint',
2640
- 'easeOutSine',
2641
- 'easeOutExpo',
2642
- 'easeOutCirc',
2643
- 'easeOutBack',
2644
- 'easeInOutQuad',
2645
- 'easeInOutCubic',
2646
- 'easeInOutQuart',
2647
- 'easeInOutQuint',
2648
- 'easeInOutSine',
2649
- 'easeInOutExpo',
2650
- 'easeInOutCirc',
2651
- 'easeInOutBack'
2652
- ]))
2513
+ "ease",
2514
+ "easeIn",
2515
+ "easeOut",
2516
+ "easeInOut",
2517
+ "easeInQuad",
2518
+ "easeInCubic",
2519
+ "easeInQuart",
2520
+ "easeInQuint",
2521
+ "easeInSine",
2522
+ "easeInExpo",
2523
+ "easeInCirc",
2524
+ "easeInBack",
2525
+ "easeOutQuad",
2526
+ "easeOutCubic",
2527
+ "easeOutQuart",
2528
+ "easeOutQuint",
2529
+ "easeOutSine",
2530
+ "easeOutExpo",
2531
+ "easeOutCirc",
2532
+ "easeOutBack",
2533
+ "easeInOutQuad",
2534
+ "easeInOutCubic",
2535
+ "easeInOutQuart",
2536
+ "easeInOutQuint",
2537
+ "easeInOutSine",
2538
+ "easeInOutExpo",
2539
+ "easeInOutCirc",
2540
+ "easeInOutBack",
2541
+ ])),
2653
2542
  });
2654
2543
  exports.tweenSchema = exports.tweenTweenSchema;
2655
2544
  /**
2656
2545
  * 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.
2657
2546
  */
2658
2547
  exports.audioassetAudioAssetSchema = zod_1.z.object({
2659
- type: zod_1.z.enum(['audio']),
2660
- src: zod_1.z.string(),
2548
+ type: zod_1.z.enum(["audio"]),
2549
+ src: zod_1.z.string().min(1).regex(/\S/),
2661
2550
  trim: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2662
2551
  return undefined; if (Array.isArray(v))
2663
2552
  return v; if (typeof v === 'string')
2664
2553
  return Number(v); return v; }), zod_1.z.number())),
2665
- volume: zod_1.z.optional(zod_1.z.union([
2666
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2554
+ volume: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2667
2555
  return undefined; if (Array.isArray(v))
2668
2556
  return v; if (typeof v === 'string')
2669
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)),
2670
- zod_1.z.array(exports.tweenTweenSchema)
2671
- ])),
2557
+ return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.array(exports.tweenTweenSchema)])),
2672
2558
  speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2673
2559
  return undefined; if (Array.isArray(v))
2674
2560
  return v; if (typeof v === 'string')
2675
2561
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(10))),
2676
- effect: zod_1.z.optional(zod_1.z.enum([
2677
- 'none',
2678
- 'fadeIn',
2679
- 'fadeOut',
2680
- 'fadeInFadeOut'
2681
- ]))
2562
+ effect: zod_1.z.optional(zod_1.z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
2682
2563
  });
2683
2564
  exports.audioAssetSchema = exports.audioassetAudioAssetSchema;
2684
2565
  /**
2685
2566
  * Offsets the position of an asset horizontally or vertically by a relative distance.
2686
2567
  */
2687
2568
  exports.offsetOffsetSchema = zod_1.z.object({
2688
- x: zod_1.z.optional(zod_1.z.union([
2689
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2569
+ x: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2690
2570
  return undefined; if (Array.isArray(v))
2691
2571
  return v; if (typeof v === 'string')
2692
- return Number(v); return v; }), zod_1.z.number().gte(-10).lte(10)),
2693
- zod_1.z.array(exports.tweenTweenSchema)
2694
- ])),
2695
- y: zod_1.z.optional(zod_1.z.union([
2696
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2572
+ return Number(v); return v; }), zod_1.z.number().gte(-10).lte(10)), zod_1.z.array(exports.tweenTweenSchema)])),
2573
+ y: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2697
2574
  return undefined; if (Array.isArray(v))
2698
2575
  return v; if (typeof v === 'string')
2699
- return Number(v); return v; }), zod_1.z.number().gte(-10).lte(10)),
2700
- zod_1.z.array(exports.tweenTweenSchema)
2701
- ]))
2576
+ return Number(v); return v; }), zod_1.z.number().gte(-10).lte(10)), zod_1.z.array(exports.tweenTweenSchema)])),
2702
2577
  });
2703
2578
  exports.offsetSchema = exports.offsetOffsetSchema;
2704
2579
  /**
2705
2580
  * Rotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`.
2706
2581
  */
2707
2582
  exports.rotatetransformationRotateTransformationSchema = zod_1.z.object({
2708
- angle: zod_1.z.optional(zod_1.z.union([
2709
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2583
+ angle: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2710
2584
  return undefined; if (Array.isArray(v))
2711
2585
  return v; if (typeof v === 'string')
2712
- return Number(v); return v; }), zod_1.z.number().gte(-360).lte(360)),
2713
- zod_1.z.array(exports.tweenTweenSchema)
2714
- ]))
2586
+ return Number(v); return v; }), zod_1.z.number().gte(-360).lte(360)), zod_1.z.array(exports.tweenTweenSchema)])),
2715
2587
  });
2716
2588
  exports.rotateTransformationSchema = exports.rotatetransformationRotateTransformationSchema;
2717
2589
  /**
2718
2590
  * 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.
2719
2591
  */
2720
2592
  exports.skewtransformationSkewTransformationSchema = zod_1.z.object({
2721
- x: zod_1.z.optional(zod_1.z.union([
2722
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2593
+ x: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2723
2594
  return undefined; if (Array.isArray(v))
2724
2595
  return v; if (typeof v === 'string')
2725
- return Number(v); return v; }), zod_1.z.number().gte(-100).lte(100)),
2726
- zod_1.z.array(exports.tweenTweenSchema)
2727
- ])),
2728
- y: zod_1.z.optional(zod_1.z.union([
2729
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2596
+ return Number(v); return v; }), zod_1.z.number().gte(-100).lte(100)), zod_1.z.array(exports.tweenTweenSchema)])),
2597
+ y: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2730
2598
  return undefined; if (Array.isArray(v))
2731
2599
  return v; if (typeof v === 'string')
2732
- return Number(v); return v; }), zod_1.z.number().gte(-100).lte(100)),
2733
- zod_1.z.array(exports.tweenTweenSchema)
2734
- ]))
2600
+ return Number(v); return v; }), zod_1.z.number().gte(-100).lte(100)), zod_1.z.array(exports.tweenTweenSchema)])),
2735
2601
  });
2736
2602
  exports.skewTransformationSchema = exports.skewtransformationSkewTransformationSchema;
2737
2603
  /**
@@ -2743,43 +2609,43 @@ exports.skewTransformationSchema = exports.skewtransformationSkewTransformationS
2743
2609
  * @deprecated
2744
2610
  */
2745
2611
  exports.titleassetTitleAssetSchema = zod_1.z.object({
2746
- type: zod_1.z.enum(['title']),
2612
+ type: zod_1.z.enum(["title"]),
2747
2613
  text: zod_1.z.string(),
2748
2614
  style: zod_1.z.optional(zod_1.z.enum([
2749
- 'minimal',
2750
- 'blockbuster',
2751
- 'vogue',
2752
- 'sketchy',
2753
- 'skinny',
2754
- 'chunk',
2755
- 'chunkLight',
2756
- 'marker',
2757
- 'future',
2758
- 'subtitle'
2615
+ "minimal",
2616
+ "blockbuster",
2617
+ "vogue",
2618
+ "sketchy",
2619
+ "skinny",
2620
+ "chunk",
2621
+ "chunkLight",
2622
+ "marker",
2623
+ "future",
2624
+ "subtitle",
2759
2625
  ])),
2760
2626
  color: zod_1.z.optional(zod_1.z.string()),
2761
2627
  size: zod_1.z.optional(zod_1.z.enum([
2762
- 'xx-small',
2763
- 'x-small',
2764
- 'small',
2765
- 'medium',
2766
- 'large',
2767
- 'x-large',
2768
- 'xx-large'
2628
+ "xx-small",
2629
+ "x-small",
2630
+ "small",
2631
+ "medium",
2632
+ "large",
2633
+ "x-large",
2634
+ "xx-large",
2769
2635
  ])),
2770
2636
  background: zod_1.z.optional(zod_1.z.string()),
2771
2637
  position: zod_1.z.optional(zod_1.z.enum([
2772
- 'top',
2773
- 'topRight',
2774
- 'right',
2775
- 'bottomRight',
2776
- 'bottom',
2777
- 'bottomLeft',
2778
- 'left',
2779
- 'topLeft',
2780
- 'center'
2638
+ "top",
2639
+ "topRight",
2640
+ "right",
2641
+ "bottomRight",
2642
+ "bottom",
2643
+ "bottomLeft",
2644
+ "left",
2645
+ "topLeft",
2646
+ "center",
2781
2647
  ])),
2782
- offset: zod_1.z.optional(exports.offsetOffsetSchema)
2648
+ offset: zod_1.z.optional(exports.offsetOffsetSchema),
2783
2649
  });
2784
2650
  exports.titleAssetSchema = exports.titleassetTitleAssetSchema;
2785
2651
  /**
@@ -2788,39 +2654,31 @@ exports.titleAssetSchema = exports.titleassetTitleAssetSchema;
2788
2654
  exports.transformationTransformationSchema = zod_1.z.object({
2789
2655
  rotate: zod_1.z.optional(exports.rotatetransformationRotateTransformationSchema),
2790
2656
  skew: zod_1.z.optional(exports.skewtransformationSkewTransformationSchema),
2791
- flip: zod_1.z.optional(exports.fliptransformationFlipTransformationSchema)
2657
+ flip: zod_1.z.optional(exports.fliptransformationFlipTransformationSchema),
2792
2658
  });
2793
2659
  exports.transformationSchema = exports.transformationTransformationSchema;
2794
2660
  /**
2795
2661
  * 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.
2796
2662
  */
2797
2663
  exports.videoassetVideoAssetSchema = zod_1.z.object({
2798
- type: zod_1.z.enum(['video']),
2799
- src: zod_1.z.string(),
2664
+ type: zod_1.z.enum(["video"]),
2665
+ src: zod_1.z.string().min(1).regex(/\S/),
2800
2666
  transcode: zod_1.z.optional(zod_1.z.boolean()),
2801
2667
  trim: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2802
2668
  return undefined; if (Array.isArray(v))
2803
2669
  return v; if (typeof v === 'string')
2804
2670
  return Number(v); return v; }), zod_1.z.number())),
2805
- volume: zod_1.z.optional(zod_1.z.union([
2806
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2671
+ volume: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2807
2672
  return undefined; if (Array.isArray(v))
2808
2673
  return v; if (typeof v === 'string')
2809
- return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)),
2810
- zod_1.z.array(exports.tweenTweenSchema)
2811
- ])),
2812
- volumeEffect: zod_1.z.optional(zod_1.z.enum([
2813
- 'none',
2814
- 'fadeIn',
2815
- 'fadeOut',
2816
- 'fadeInFadeOut'
2817
- ])),
2674
+ return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.array(exports.tweenTweenSchema)])),
2675
+ volumeEffect: zod_1.z.optional(zod_1.z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
2818
2676
  speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2819
2677
  return undefined; if (Array.isArray(v))
2820
2678
  return v; if (typeof v === 'string')
2821
2679
  return Number(v); return v; }), zod_1.z.number().gte(0).lte(10))),
2822
2680
  crop: zod_1.z.optional(exports.cropCropSchema),
2823
- chromaKey: zod_1.z.optional(exports.chromakeyChromaKeySchema)
2681
+ chromaKey: zod_1.z.optional(exports.chromakeyChromaKeySchema),
2824
2682
  });
2825
2683
  exports.videoAssetSchema = exports.videoassetVideoAssetSchema;
2826
2684
  /**
@@ -2851,97 +2709,86 @@ exports.clipClipSchema = zod_1.z.object({
2851
2709
  zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2852
2710
  return undefined; if (Array.isArray(v))
2853
2711
  return v; if (typeof v === 'string')
2854
- return Number(v); return v; }), zod_1.z.number()),
2855
- zod_1.z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/)
2712
+ return Number(v); return v; }), zod_1.z.number().gte(0)),
2713
+ zod_1.z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/),
2856
2714
  ]),
2857
2715
  length: zod_1.z.union([
2858
2716
  zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2859
2717
  return undefined; if (Array.isArray(v))
2860
2718
  return v; if (typeof v === 'string')
2861
- return Number(v); return v; }), zod_1.z.number()),
2862
- zod_1.z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/)
2719
+ return Number(v); return v; }), zod_1.z.number().gte(0)),
2720
+ zod_1.z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/),
2863
2721
  ]),
2864
- fit: zod_1.z.optional(zod_1.z.enum([
2865
- 'cover',
2866
- 'contain',
2867
- 'crop',
2868
- 'none'
2869
- ])),
2870
- scale: zod_1.z.optional(zod_1.z.union([
2871
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2722
+ fit: zod_1.z.optional(zod_1.z.enum(["cover", "contain", "crop", "none"])),
2723
+ scale: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2872
2724
  return undefined; if (Array.isArray(v))
2873
2725
  return v; if (typeof v === 'string')
2874
- return Number(v); return v; }), zod_1.z.number()),
2875
- zod_1.z.array(exports.tweenTweenSchema)
2876
- ])),
2726
+ return Number(v); return v; }), zod_1.z.number()), zod_1.z.array(exports.tweenTweenSchema)])),
2877
2727
  width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2878
2728
  return undefined; if (Array.isArray(v))
2879
2729
  return v; if (typeof v === 'string')
2880
- return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(3840))),
2730
+ return Number(v); return v; }), zod_1.z.number().gte(1).lte(3840))),
2881
2731
  height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2882
2732
  return undefined; if (Array.isArray(v))
2883
2733
  return v; if (typeof v === 'string')
2884
- return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(2160))),
2734
+ return Number(v); return v; }), zod_1.z.number().gte(1).lte(2160))),
2885
2735
  position: zod_1.z.optional(zod_1.z.enum([
2886
- 'top',
2887
- 'topRight',
2888
- 'right',
2889
- 'bottomRight',
2890
- 'bottom',
2891
- 'bottomLeft',
2892
- 'left',
2893
- 'topLeft',
2894
- 'center'
2736
+ "top",
2737
+ "topRight",
2738
+ "right",
2739
+ "bottomRight",
2740
+ "bottom",
2741
+ "bottomLeft",
2742
+ "left",
2743
+ "topLeft",
2744
+ "center",
2895
2745
  ])),
2896
2746
  offset: zod_1.z.optional(exports.offsetOffsetSchema),
2897
2747
  transition: zod_1.z.optional(exports.transitionTransitionSchema),
2898
2748
  effect: zod_1.z.optional(zod_1.z.enum([
2899
- 'zoomIn',
2900
- 'zoomInSlow',
2901
- 'zoomInFast',
2902
- 'zoomOut',
2903
- 'zoomOutSlow',
2904
- 'zoomOutFast',
2905
- 'slideLeft',
2906
- 'slideLeftSlow',
2907
- 'slideLeftFast',
2908
- 'slideRight',
2909
- 'slideRightSlow',
2910
- 'slideRightFast',
2911
- 'slideUp',
2912
- 'slideUpSlow',
2913
- 'slideUpFast',
2914
- 'slideDown',
2915
- 'slideDownSlow',
2916
- 'slideDownFast'
2749
+ "zoomIn",
2750
+ "zoomInSlow",
2751
+ "zoomInFast",
2752
+ "zoomOut",
2753
+ "zoomOutSlow",
2754
+ "zoomOutFast",
2755
+ "slideLeft",
2756
+ "slideLeftSlow",
2757
+ "slideLeftFast",
2758
+ "slideRight",
2759
+ "slideRightSlow",
2760
+ "slideRightFast",
2761
+ "slideUp",
2762
+ "slideUpSlow",
2763
+ "slideUpFast",
2764
+ "slideDown",
2765
+ "slideDownSlow",
2766
+ "slideDownFast",
2917
2767
  ])),
2918
2768
  filter: zod_1.z.optional(zod_1.z.enum([
2919
- 'none',
2920
- 'blur',
2921
- 'boost',
2922
- 'contrast',
2923
- 'darken',
2924
- 'greyscale',
2925
- 'lighten',
2926
- 'muted',
2927
- 'negative'
2769
+ "none",
2770
+ "blur",
2771
+ "boost",
2772
+ "contrast",
2773
+ "darken",
2774
+ "greyscale",
2775
+ "lighten",
2776
+ "muted",
2777
+ "negative",
2928
2778
  ])),
2929
- opacity: zod_1.z.optional(zod_1.z.union([
2930
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2779
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2931
2780
  return undefined; if (Array.isArray(v))
2932
2781
  return v; if (typeof v === 'string')
2933
- return Number(v); return v; }), zod_1.z.number()),
2934
- zod_1.z.array(exports.tweenTweenSchema)
2935
- ])),
2782
+ return Number(v); return v; }), zod_1.z.number()), zod_1.z.array(exports.tweenTweenSchema)])),
2936
2783
  transform: zod_1.z.optional(exports.transformationTransformationSchema),
2937
- alias: zod_1.z.optional(zod_1.z.string().regex(/^[A-Za-z0-9_-]+$/))
2784
+ alias: zod_1.z.optional(zod_1.z.string().regex(/^[A-Za-z0-9_-]+$/)),
2938
2785
  });
2939
2786
  exports.clipSchema = exports.clipClipSchema;
2940
2787
  /**
2941
2788
  * 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.
2942
2789
  */
2943
2790
  exports.trackTrackSchema = zod_1.z.object({
2944
- clips: zod_1.z.array(exports.clipClipSchema)
2791
+ clips: zod_1.z.array(exports.clipClipSchema).min(1),
2945
2792
  });
2946
2793
  exports.trackSchema = exports.trackTrackSchema;
2947
2794
  /**
@@ -2951,8 +2798,8 @@ exports.timelineTimelineSchema = zod_1.z.object({
2951
2798
  soundtrack: zod_1.z.optional(exports.soundtrackSoundtrackSchema),
2952
2799
  background: zod_1.z.optional(zod_1.z.string()),
2953
2800
  fonts: zod_1.z.optional(zod_1.z.array(exports.fontFontSchema)),
2954
- tracks: zod_1.z.array(exports.trackTrackSchema),
2955
- cache: zod_1.z.optional(zod_1.z.boolean())
2801
+ tracks: zod_1.z.array(exports.trackTrackSchema).min(1),
2802
+ cache: zod_1.z.optional(zod_1.z.boolean()),
2956
2803
  });
2957
2804
  exports.timelineSchema = exports.timelineTimelineSchema;
2958
2805
  /**
@@ -2963,7 +2810,7 @@ exports.editEditSchema = zod_1.z.object({
2963
2810
  output: exports.outputOutputSchema,
2964
2811
  merge: zod_1.z.optional(zod_1.z.array(exports.mergefieldMergeFieldSchema)),
2965
2812
  callback: zod_1.z.optional(zod_1.z.string()),
2966
- disk: zod_1.z.optional(zod_1.z.enum(['local', 'mount']))
2813
+ disk: zod_1.z.optional(zod_1.z.enum(["local", "mount"])),
2967
2814
  });
2968
2815
  exports.editSchema = exports.editEditSchema;
2969
2816
  /**
@@ -2974,13 +2821,13 @@ exports.renderresponsedataRenderResponseDataSchema = zod_1.z.object({
2974
2821
  owner: zod_1.z.string(),
2975
2822
  plan: zod_1.z.optional(zod_1.z.string()),
2976
2823
  status: zod_1.z.enum([
2977
- 'queued',
2978
- 'fetching',
2979
- 'preprocessing',
2980
- 'rendering',
2981
- 'saving',
2982
- 'done',
2983
- 'failed'
2824
+ "queued",
2825
+ "fetching",
2826
+ "preprocessing",
2827
+ "rendering",
2828
+ "saving",
2829
+ "done",
2830
+ "failed",
2984
2831
  ]),
2985
2832
  error: zod_1.z.optional(zod_1.z.string()),
2986
2833
  duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -2992,17 +2839,11 @@ exports.renderresponsedataRenderResponseDataSchema = zod_1.z.object({
2992
2839
  return v; if (typeof v === 'string')
2993
2840
  return Number(v); return v; }), zod_1.z.number())),
2994
2841
  url: zod_1.z.optional(zod_1.z.string()),
2995
- poster: zod_1.z.optional(zod_1.z.union([
2996
- zod_1.z.string(),
2997
- zod_1.z.null()
2998
- ])),
2999
- thumbnail: zod_1.z.optional(zod_1.z.union([
3000
- zod_1.z.string(),
3001
- zod_1.z.null()
3002
- ])),
2842
+ poster: zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
2843
+ thumbnail: zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
3003
2844
  data: zod_1.z.optional(exports.editEditSchema),
3004
2845
  created: zod_1.z.optional(zod_1.z.string()),
3005
- updated: zod_1.z.optional(zod_1.z.string())
2846
+ updated: zod_1.z.optional(zod_1.z.string()),
3006
2847
  });
3007
2848
  exports.renderResponseDataSchema = exports.renderresponsedataRenderResponseDataSchema;
3008
2849
  /**
@@ -3011,7 +2852,7 @@ exports.renderResponseDataSchema = exports.renderresponsedataRenderResponseDataS
3011
2852
  exports.renderresponseRenderResponseSchema = zod_1.z.object({
3012
2853
  success: zod_1.z.boolean(),
3013
2854
  message: zod_1.z.string(),
3014
- response: exports.renderresponsedataRenderResponseDataSchema
2855
+ response: exports.renderresponsedataRenderResponseDataSchema,
3015
2856
  });
3016
2857
  exports.renderResponseSchema = exports.renderresponseRenderResponseSchema;
3017
2858
  /**
@@ -3021,7 +2862,7 @@ exports.templatedataresponsedataTemplateDataResponseDataSchema = zod_1.z.object(
3021
2862
  id: zod_1.z.string(),
3022
2863
  name: zod_1.z.string(),
3023
2864
  owner: zod_1.z.string(),
3024
- template: exports.editEditSchema
2865
+ template: exports.editEditSchema,
3025
2866
  });
3026
2867
  exports.templateDataResponseDataSchema = exports.templatedataresponsedataTemplateDataResponseDataSchema;
3027
2868
  /**
@@ -3030,7 +2871,7 @@ exports.templateDataResponseDataSchema = exports.templatedataresponsedataTemplat
3030
2871
  exports.templatedataresponseTemplateDataResponseSchema = zod_1.z.object({
3031
2872
  success: zod_1.z.boolean(),
3032
2873
  message: zod_1.z.string(),
3033
- response: exports.templatedataresponsedataTemplateDataResponseDataSchema
2874
+ response: exports.templatedataresponsedataTemplateDataResponseDataSchema,
3034
2875
  });
3035
2876
  exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataResponseSchema;
3036
2877
  /**
@@ -3038,13 +2879,13 @@ exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataRes
3038
2879
  */
3039
2880
  exports.templateTemplateSchema = zod_1.z.object({
3040
2881
  name: zod_1.z.string(),
3041
- template: zod_1.z.optional(exports.editEditSchema)
2882
+ template: zod_1.z.optional(exports.editEditSchema),
3042
2883
  });
3043
2884
  exports.templateSchema = exports.templateTemplateSchema;
3044
2885
  exports.postRenderRequest = zod_1.z.object({
3045
2886
  body: exports.editEditSchema,
3046
2887
  path: zod_1.z.optional(zod_1.z.never()),
3047
- query: zod_1.z.optional(zod_1.z.never())
2888
+ query: zod_1.z.optional(zod_1.z.never()),
3048
2889
  });
3049
2890
  /**
3050
2891
  * The queued render details
@@ -3053,12 +2894,14 @@ exports.postRenderResponse = exports.queuedresponseQueuedResponseSchema;
3053
2894
  exports.getRenderRequest = zod_1.z.object({
3054
2895
  body: zod_1.z.optional(zod_1.z.never()),
3055
2896
  path: zod_1.z.object({
3056
- id: zod_1.z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
2897
+ id: zod_1.z
2898
+ .string()
2899
+ .regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
3057
2900
  }),
3058
2901
  query: zod_1.z.optional(zod_1.z.object({
3059
2902
  data: zod_1.z.optional(zod_1.z.boolean()),
3060
- merged: zod_1.z.optional(zod_1.z.boolean())
3061
- }))
2903
+ merged: zod_1.z.optional(zod_1.z.boolean()),
2904
+ })),
3062
2905
  });
3063
2906
  /**
3064
2907
  * The render status details
@@ -3067,7 +2910,7 @@ exports.getRenderResponse = exports.renderresponseRenderResponseSchema;
3067
2910
  exports.getTemplatesRequest = zod_1.z.object({
3068
2911
  body: zod_1.z.optional(zod_1.z.never()),
3069
2912
  path: zod_1.z.optional(zod_1.z.never()),
3070
- query: zod_1.z.optional(zod_1.z.never())
2913
+ query: zod_1.z.optional(zod_1.z.never()),
3071
2914
  });
3072
2915
  /**
3073
2916
  * The list of templates stored against a users account
@@ -3076,7 +2919,7 @@ exports.getTemplatesResponse = exports.templatelistresponseTemplateListResponseS
3076
2919
  exports.postTemplateRequest = zod_1.z.object({
3077
2920
  body: exports.templateTemplateSchema,
3078
2921
  path: zod_1.z.optional(zod_1.z.never()),
3079
- query: zod_1.z.optional(zod_1.z.never())
2922
+ query: zod_1.z.optional(zod_1.z.never()),
3080
2923
  });
3081
2924
  /**
3082
2925
  * The saved template status including the id
@@ -3085,9 +2928,11 @@ exports.postTemplateResponse = exports.templateresponseTemplateResponseSchema;
3085
2928
  exports.deleteTemplateRequest = zod_1.z.object({
3086
2929
  body: zod_1.z.optional(zod_1.z.never()),
3087
2930
  path: zod_1.z.object({
3088
- id: zod_1.z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
2931
+ id: zod_1.z
2932
+ .string()
2933
+ .regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
3089
2934
  }),
3090
- query: zod_1.z.optional(zod_1.z.never())
2935
+ query: zod_1.z.optional(zod_1.z.never()),
3091
2936
  });
3092
2937
  /**
3093
2938
  * An empty response signifying the template has been deleted
@@ -3096,9 +2941,11 @@ exports.deleteTemplateResponse = zod_1.z.void();
3096
2941
  exports.getTemplateRequest = zod_1.z.object({
3097
2942
  body: zod_1.z.optional(zod_1.z.never()),
3098
2943
  path: zod_1.z.object({
3099
- id: zod_1.z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
2944
+ id: zod_1.z
2945
+ .string()
2946
+ .regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
3100
2947
  }),
3101
- query: zod_1.z.optional(zod_1.z.never())
2948
+ query: zod_1.z.optional(zod_1.z.never()),
3102
2949
  });
3103
2950
  /**
3104
2951
  * The template details including the [Edit](#tocs_edit)
@@ -3107,9 +2954,11 @@ exports.getTemplateResponse = exports.templatedataresponseTemplateDataResponseSc
3107
2954
  exports.putTemplateRequest = zod_1.z.object({
3108
2955
  body: exports.templateTemplateSchema,
3109
2956
  path: zod_1.z.object({
3110
- id: zod_1.z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
2957
+ id: zod_1.z
2958
+ .string()
2959
+ .regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
3111
2960
  }),
3112
- query: zod_1.z.optional(zod_1.z.never())
2961
+ query: zod_1.z.optional(zod_1.z.never()),
3113
2962
  });
3114
2963
  /**
3115
2964
  * Update a templates name and [Edit](#tocs_edit)
@@ -3118,7 +2967,7 @@ exports.putTemplateResponse = exports.templateresponseTemplateResponseSchema;
3118
2967
  exports.postTemplateRenderRequest = zod_1.z.object({
3119
2968
  body: exports.templaterenderTemplateRenderSchema,
3120
2969
  path: zod_1.z.optional(zod_1.z.never()),
3121
- query: zod_1.z.optional(zod_1.z.never())
2970
+ query: zod_1.z.optional(zod_1.z.never()),
3122
2971
  });
3123
2972
  /**
3124
2973
  * The queued status including the render id. Check the status of the render using the id and the [render status](#get-render-status) endpoint.
@@ -3127,9 +2976,9 @@ exports.postTemplateRenderResponse = exports.queuedresponseQueuedResponseSchema;
3127
2976
  exports.probeRequest = zod_1.z.object({
3128
2977
  body: zod_1.z.optional(zod_1.z.never()),
3129
2978
  path: zod_1.z.object({
3130
- url: zod_1.z.string()
2979
+ url: zod_1.z.string(),
3131
2980
  }),
3132
- query: zod_1.z.optional(zod_1.z.never())
2981
+ query: zod_1.z.optional(zod_1.z.never()),
3133
2982
  });
3134
2983
  /**
3135
2984
  * FFprobe response formatted as JSON.
@@ -3138,9 +2987,11 @@ exports.probeResponse = exports.proberesponseProbeResponseSchema;
3138
2987
  exports.deleteAssetRequest = zod_1.z.object({
3139
2988
  body: zod_1.z.optional(zod_1.z.never()),
3140
2989
  path: zod_1.z.object({
3141
- id: zod_1.z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
2990
+ id: zod_1.z
2991
+ .string()
2992
+ .regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
3142
2993
  }),
3143
- query: zod_1.z.optional(zod_1.z.never())
2994
+ query: zod_1.z.optional(zod_1.z.never()),
3144
2995
  });
3145
2996
  /**
3146
2997
  * An empty response signifying the asset has been deleted
@@ -3149,9 +3000,11 @@ exports.deleteAssetResponse = zod_1.z.void();
3149
3000
  exports.getAssetRequest = zod_1.z.object({
3150
3001
  body: zod_1.z.optional(zod_1.z.never()),
3151
3002
  path: zod_1.z.object({
3152
- id: zod_1.z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
3003
+ id: zod_1.z
3004
+ .string()
3005
+ .regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
3153
3006
  }),
3154
- query: zod_1.z.optional(zod_1.z.never())
3007
+ query: zod_1.z.optional(zod_1.z.never()),
3155
3008
  });
3156
3009
  /**
3157
3010
  * Get asset by asset id
@@ -3160,9 +3013,11 @@ exports.getAssetResponse = exports.assetresponseAssetResponseSchema;
3160
3013
  exports.getAssetByRenderIdRequest = zod_1.z.object({
3161
3014
  body: zod_1.z.optional(zod_1.z.never()),
3162
3015
  path: zod_1.z.object({
3163
- id: zod_1.z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
3016
+ id: zod_1.z
3017
+ .string()
3018
+ .regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
3164
3019
  }),
3165
- query: zod_1.z.optional(zod_1.z.never())
3020
+ query: zod_1.z.optional(zod_1.z.never()),
3166
3021
  });
3167
3022
  /**
3168
3023
  * Get one or more assets by render id
@@ -3171,7 +3026,7 @@ exports.getAssetByRenderIdResponse = exports.assetrenderresponseAssetRenderRespo
3171
3026
  exports.postServeAssetRequest = zod_1.z.object({
3172
3027
  body: exports.transferTransferSchema,
3173
3028
  path: zod_1.z.optional(zod_1.z.never()),
3174
- query: zod_1.z.optional(zod_1.z.never())
3029
+ query: zod_1.z.optional(zod_1.z.never()),
3175
3030
  });
3176
3031
  /**
3177
3032
  * The transfer request details and status
@@ -3180,7 +3035,7 @@ exports.postServeAssetResponse = exports.transferresponseTransferResponseSchema;
3180
3035
  exports.getSourcesRequest = zod_1.z.object({
3181
3036
  body: zod_1.z.optional(zod_1.z.never()),
3182
3037
  path: zod_1.z.optional(zod_1.z.never()),
3183
- query: zod_1.z.optional(zod_1.z.never())
3038
+ query: zod_1.z.optional(zod_1.z.never()),
3184
3039
  });
3185
3040
  /**
3186
3041
  * The list of ingested source files stored against a users account
@@ -3189,7 +3044,7 @@ exports.getSourcesResponse = exports.sourcelistresponseSourceListResponseSchema;
3189
3044
  exports.postSourceRequest = zod_1.z.object({
3190
3045
  body: exports.sourceSourceSchema,
3191
3046
  path: zod_1.z.optional(zod_1.z.never()),
3192
- query: zod_1.z.optional(zod_1.z.never())
3047
+ query: zod_1.z.optional(zod_1.z.never()),
3193
3048
  });
3194
3049
  /**
3195
3050
  * The queued source file details
@@ -3198,9 +3053,11 @@ exports.postSourceResponse = exports.queuedsourceresponseQueuedSourceResponseSch
3198
3053
  exports.deleteSourceRequest = zod_1.z.object({
3199
3054
  body: zod_1.z.optional(zod_1.z.never()),
3200
3055
  path: zod_1.z.object({
3201
- id: zod_1.z.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/)
3056
+ id: zod_1.z
3057
+ .string()
3058
+ .regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/),
3202
3059
  }),
3203
- query: zod_1.z.optional(zod_1.z.never())
3060
+ query: zod_1.z.optional(zod_1.z.never()),
3204
3061
  });
3205
3062
  /**
3206
3063
  * An empty response signifying the ingested source file has been deleted.
@@ -3209,9 +3066,11 @@ exports.deleteSourceResponse = zod_1.z.void();
3209
3066
  exports.getSourceRequest = zod_1.z.object({
3210
3067
  body: zod_1.z.optional(zod_1.z.never()),
3211
3068
  path: zod_1.z.object({
3212
- id: zod_1.z.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/)
3069
+ id: zod_1.z
3070
+ .string()
3071
+ .regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/),
3213
3072
  }),
3214
- query: zod_1.z.optional(zod_1.z.never())
3073
+ query: zod_1.z.optional(zod_1.z.never()),
3215
3074
  });
3216
3075
  /**
3217
3076
  * Get source file details by id
@@ -3220,7 +3079,7 @@ exports.getSourceResponse = exports.sourceresponseSourceResponseSchema;
3220
3079
  exports.getUploadSignedUrlRequest = zod_1.z.object({
3221
3080
  body: zod_1.z.optional(zod_1.z.never()),
3222
3081
  path: zod_1.z.optional(zod_1.z.never()),
3223
- query: zod_1.z.optional(zod_1.z.never())
3082
+ query: zod_1.z.optional(zod_1.z.never()),
3224
3083
  });
3225
3084
  /**
3226
3085
  * The id and signed URL to upload to.
@@ -3229,7 +3088,7 @@ exports.getUploadSignedUrlResponse = exports.uploadresponseUploadResponseSchema;
3229
3088
  exports.postGenerateAssetRequest = zod_1.z.object({
3230
3089
  body: exports.generatedAssetGeneratedAssetSchema,
3231
3090
  path: zod_1.z.optional(zod_1.z.never()),
3232
- query: zod_1.z.optional(zod_1.z.never())
3091
+ query: zod_1.z.optional(zod_1.z.never()),
3233
3092
  });
3234
3093
  /**
3235
3094
  * The generated asset details
@@ -3238,9 +3097,11 @@ exports.postGenerateAssetResponse = exports.generatedAssetResponseGeneratedAsset
3238
3097
  exports.getGeneratedAssetRequest = zod_1.z.object({
3239
3098
  body: zod_1.z.optional(zod_1.z.never()),
3240
3099
  path: zod_1.z.object({
3241
- id: zod_1.z.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/)
3100
+ id: zod_1.z
3101
+ .string()
3102
+ .regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/),
3242
3103
  }),
3243
- query: zod_1.z.optional(zod_1.z.never())
3104
+ query: zod_1.z.optional(zod_1.z.never()),
3244
3105
  });
3245
3106
  /**
3246
3107
  * The generated asset details