@shotstack/schemas 1.8.7 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { z } from "zod";
2
+ import { z } from 'zod';
3
3
  export const editRootSchema = z.unknown();
4
4
  export const sourceRootSchema = z.unknown();
5
5
  export const assetsRootSchema = z.unknown();
@@ -41,7 +41,7 @@ export const captionpropertiesCaptionBackgroundSchema = z.object({
41
41
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
42
42
  return v;
43
43
  return Number(v);
44
- } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
44
+ } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
45
45
  }).strict();
46
46
  export const captionBackgroundSchema = captionpropertiesCaptionBackgroundSchema;
47
47
  /**
@@ -78,7 +78,7 @@ export const captionpropertiesCaptionFontSchema = z.object({
78
78
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
79
79
  return v;
80
80
  return Number(v);
81
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
81
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
82
82
  }).strict();
83
83
  export const captionFontSchema = captionpropertiesCaptionFontSchema;
84
84
  /**
@@ -105,7 +105,7 @@ export const captionpropertiesCaptionMarginSchema = z.object({
105
105
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
106
106
  return v;
107
107
  return Number(v);
108
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
108
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
109
109
  }).strict();
110
110
  export const captionMarginSchema = captionpropertiesCaptionMarginSchema;
111
111
  /**
@@ -121,7 +121,7 @@ export const captionMarginSchema = captionpropertiesCaptionMarginSchema;
121
121
  *
122
122
  */
123
123
  export const captionassetCaptionAssetSchema = z.object({
124
- type: z.enum(["caption"]),
124
+ type: z.enum(['caption']),
125
125
  src: z.string().min(1).regex(/\S/),
126
126
  font: z.optional(captionpropertiesCaptionFontSchema),
127
127
  background: z.optional(captionpropertiesCaptionBackgroundSchema),
@@ -139,7 +139,7 @@ export const captionassetCaptionAssetSchema = z.object({
139
139
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
140
140
  return v;
141
141
  return Number(v);
142
- } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
142
+ } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
143
143
  }).strict();
144
144
  export const captionAssetSchema = captionassetCaptionAssetSchema;
145
145
  /**
@@ -160,17 +160,23 @@ export const chromakeyChromaKeySchema = z.object({
160
160
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
161
161
  return v;
162
162
  return Number(v);
163
- } return v; }), z.number().int().gte(0).lte(250)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
163
+ } return v; }), z.number().int().gte(0).lte(250)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
164
164
  }).strict();
165
165
  export const chromaKeySchema = chromakeyChromaKeySchema;
166
166
  /**
167
167
  * 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.
168
168
  */
169
169
  export const didTextToAvatarOptionsDidTextToAvatarOptionsSchema = z.object({
170
- type: z.enum(["text-to-avatar"]),
170
+ type: z.enum(['text-to-avatar']),
171
171
  text: z.string(),
172
- avatar: z.enum(["jack", "lana", "lily", "matt", "rian"]),
173
- background: z.optional(z.string()),
172
+ avatar: z.enum([
173
+ 'jack',
174
+ 'lana',
175
+ 'lily',
176
+ 'matt',
177
+ 'rian'
178
+ ]),
179
+ background: z.optional(z.string())
174
180
  }).strict();
175
181
  export const didTextToAvatarOptionsSchema = didTextToAvatarOptionsDidTextToAvatarOptionsSchema;
176
182
  /**
@@ -180,37 +186,35 @@ export const didTextToAvatarOptionsSchema = didTextToAvatarOptionsDidTextToAvata
180
186
  * <li><a href="#tocs_didtexttoavataroptions">DidTextToAvatarOptions</a></li>
181
187
  * </ul>
182
188
  */
183
- export const didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = z
184
- .object({
185
- type: z.literal("didTextToAvatarOptions_DIDTextToAvatarOptions"),
186
- })
187
- .and(didTextToAvatarOptionsDidTextToAvatarOptionsSchema);
189
+ export const didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = z.object({
190
+ type: z.literal('didTextToAvatarOptions_DIDTextToAvatarOptions')
191
+ }).strict().and(didTextToAvatarOptionsDidTextToAvatarOptionsSchema);
188
192
  export const didGeneratedAssetOptionsSchema = didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema;
189
193
  /**
190
194
  * 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.
191
195
  */
192
196
  export const didGeneratedAssetDidGeneratedAssetSchema = z.object({
193
- provider: z.enum(["d-id"]),
194
- options: didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema,
197
+ provider: z.enum(['d-id']),
198
+ options: didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema
195
199
  }).strict();
196
200
  export const didGeneratedAssetSchema = didGeneratedAssetDidGeneratedAssetSchema;
197
201
  /**
198
202
  * 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.
199
203
  */
200
204
  export const elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema = z.object({
201
- type: z.enum(["text-to-speech"]),
205
+ type: z.enum(['text-to-speech']),
202
206
  text: z.string(),
203
207
  voice: z.enum([
204
- "Adam",
205
- "Antoni",
206
- "Arnold",
207
- "Bella",
208
- "Domi",
209
- "Elli",
210
- "Josh",
211
- "Rachel",
212
- "Sam",
213
- ]),
208
+ 'Adam',
209
+ 'Antoni',
210
+ 'Arnold',
211
+ 'Bella',
212
+ 'Domi',
213
+ 'Elli',
214
+ 'Josh',
215
+ 'Rachel',
216
+ 'Sam'
217
+ ])
214
218
  }).strict();
215
219
  export const elevenLabsTextToSpeechOptionsSchema = elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema;
216
220
  /**
@@ -220,143 +224,141 @@ export const elevenLabsTextToSpeechOptionsSchema = elevenlabsTextToSpeechOptions
220
224
  * <li><a href="#tocs_elevenlabstexttospeechoptions">ElevenLabsTextToSpeechOptions</a></li>
221
225
  * </ul>
222
226
  */
223
- export const elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema = z
224
- .object({
225
- type: z.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions"),
226
- })
227
- .and(elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema);
227
+ export const elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema = z.object({
228
+ type: z.literal('elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions')
229
+ }).strict().and(elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema);
228
230
  export const elevenLabsGeneratedAssetOptionsSchema = elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema;
229
231
  /**
230
232
  * 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.
231
233
  */
232
234
  export const elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema = z.object({
233
- provider: z.enum(["elevenlabs"]),
234
- options: elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema,
235
+ provider: z.enum(['elevenlabs']),
236
+ options: elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema
235
237
  }).strict();
236
238
  export const elevenLabsGeneratedAssetSchema = elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema;
237
239
  /**
238
240
  * 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.
239
241
  */
240
242
  export const heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema = z.object({
241
- type: z.enum(["text-to-avatar"]),
243
+ type: z.enum(['text-to-avatar']),
242
244
  text: z.string(),
243
245
  avatar: z.enum([
244
- "Angela",
245
- "Bill",
246
- "Daisy",
247
- "Derek",
248
- "Eva",
249
- "Jake",
250
- "Jeff",
251
- "Jerome",
252
- "Joon",
253
- "Kayla",
254
- "Kent",
255
- "Luna",
256
- "Mark",
257
- "Matthew",
258
- "Monica",
259
- "Peter",
260
- "Selina",
261
- "Tanya",
262
- "Thomas",
263
- "Tina",
264
- "Tyler",
265
- "Vanessa",
266
- "Vera",
267
- "Wilson",
268
- "Zoey",
246
+ 'Angela',
247
+ 'Bill',
248
+ 'Daisy',
249
+ 'Derek',
250
+ 'Eva',
251
+ 'Jake',
252
+ 'Jeff',
253
+ 'Jerome',
254
+ 'Joon',
255
+ 'Kayla',
256
+ 'Kent',
257
+ 'Luna',
258
+ 'Mark',
259
+ 'Matthew',
260
+ 'Monica',
261
+ 'Peter',
262
+ 'Selina',
263
+ 'Tanya',
264
+ 'Thomas',
265
+ 'Tina',
266
+ 'Tyler',
267
+ 'Vanessa',
268
+ 'Vera',
269
+ 'Wilson',
270
+ 'Zoey'
269
271
  ]),
270
272
  voice: z.enum([
271
- "Abbi - Natural",
272
- "Adam - Natural",
273
- "Aiston - Friendly",
274
- "Alice - Newscaster",
275
- "Alison - Cheerful",
276
- "Amber - Friendly",
277
- "Amy - Warm",
278
- "Ana - Cheerful",
279
- "Antoni - Friendly",
280
- "Aria - Newscaster",
281
- "Arnold - Cheerful",
282
- "Arthur - Natural",
283
- "Bella - Friendly",
284
- "Belle - Natural",
285
- "Brandon - Warm",
286
- "Brian - Natural",
287
- "Bruce - Natural",
288
- "Cerise - Cheerful",
289
- "Christopher - Calm",
290
- "Clara - Professional",
291
- "Connor - Natural",
292
- "Dahlia - Friendly",
293
- "Davis - Professional",
294
- "Dean - Natural",
295
- "Delbert - Cheerful",
296
- "Edward - Friendly",
297
- "Elaine - Calm",
298
- "Emily - Natural",
299
- "Emma - Newscaster",
300
- "Eric - Newscaster",
301
- "Grace - Natural",
302
- "Hailey - Calm",
303
- "Indira - Cheerful",
304
- "Isabella - Cheerful",
305
- "Jacob - Natural",
306
- "Jahmai - Friendly",
307
- "Jane - Serious",
308
- "Jason - Serious",
309
- "Jelle - Friendly",
310
- "Jen - Natural",
311
- "Jenny - Professional",
312
- "Jodi - Cheerful",
313
- "Joey - Calm",
314
- "Johan - Friendly",
315
- "Josie - Cheerful",
316
- "Keanan - Natural",
317
- "Keith - Cheerful",
318
- "Kellie - Friendly",
319
- "Lauren - Friendly",
320
- "Leah - Natural",
321
- "Liam - Professional",
322
- "Libby - Natural",
323
- "Lily - Professional",
324
- "Lucas - Natural",
325
- "Luke - Professional",
326
- "Luna - Natural",
327
- "Marieke - Natural",
328
- "Matthew - Professional",
329
- "Michelle - Natural",
330
- "Mitchell - Natural",
331
- "Molly - Newscaster",
332
- "Monica - Calm",
333
- "Natasha - Professional",
334
- "Neerja - Newscaster",
335
- "Noah - Serious",
336
- "Oliver - Newscaster",
337
- "Olivia - Calm",
338
- "Paul - Natural",
339
- "Prabhat - Natural",
340
- "Raveena - Natural",
341
- "Rudi - Friendly",
342
- "Ryan - Professional",
343
- "Sam - Natural",
344
- "Sara - Cheerful",
345
- "Sherry - Friendly",
346
- "Sonia - Warm",
347
- "Thomas - Natural",
348
- "Todd - Professional",
349
- "Tony - Professional",
350
- "Tracy - Cheerful",
351
- "Wayne - Natural",
352
- "Wilder - Natural",
353
- "Wille - Natural",
354
- "William - Friendly",
273
+ 'Abbi - Natural',
274
+ 'Adam - Natural',
275
+ 'Aiston - Friendly',
276
+ 'Alice - Newscaster',
277
+ 'Alison - Cheerful',
278
+ 'Amber - Friendly',
279
+ 'Amy - Warm',
280
+ 'Ana - Cheerful',
281
+ 'Antoni - Friendly',
282
+ 'Aria - Newscaster',
283
+ 'Arnold - Cheerful',
284
+ 'Arthur - Natural',
285
+ 'Bella - Friendly',
286
+ 'Belle - Natural',
287
+ 'Brandon - Warm',
288
+ 'Brian - Natural',
289
+ 'Bruce - Natural',
290
+ 'Cerise - Cheerful',
291
+ 'Christopher - Calm',
292
+ 'Clara - Professional',
293
+ 'Connor - Natural',
294
+ 'Dahlia - Friendly',
295
+ 'Davis - Professional',
296
+ 'Dean - Natural',
297
+ 'Delbert - Cheerful',
298
+ 'Edward - Friendly',
299
+ 'Elaine - Calm',
300
+ 'Emily - Natural',
301
+ 'Emma - Newscaster',
302
+ 'Eric - Newscaster',
303
+ 'Grace - Natural',
304
+ 'Hailey - Calm',
305
+ 'Indira - Cheerful',
306
+ 'Isabella - Cheerful',
307
+ 'Jacob - Natural',
308
+ 'Jahmai - Friendly',
309
+ 'Jane - Serious',
310
+ 'Jason - Serious',
311
+ 'Jelle - Friendly',
312
+ 'Jen - Natural',
313
+ 'Jenny - Professional',
314
+ 'Jodi - Cheerful',
315
+ 'Joey - Calm',
316
+ 'Johan - Friendly',
317
+ 'Josie - Cheerful',
318
+ 'Keanan - Natural',
319
+ 'Keith - Cheerful',
320
+ 'Kellie - Friendly',
321
+ 'Lauren - Friendly',
322
+ 'Leah - Natural',
323
+ 'Liam - Professional',
324
+ 'Libby - Natural',
325
+ 'Lily - Professional',
326
+ 'Lucas - Natural',
327
+ 'Luke - Professional',
328
+ 'Luna - Natural',
329
+ 'Marieke - Natural',
330
+ 'Matthew - Professional',
331
+ 'Michelle - Natural',
332
+ 'Mitchell - Natural',
333
+ 'Molly - Newscaster',
334
+ 'Monica - Calm',
335
+ 'Natasha - Professional',
336
+ 'Neerja - Newscaster',
337
+ 'Noah - Serious',
338
+ 'Oliver - Newscaster',
339
+ 'Olivia - Calm',
340
+ 'Paul - Natural',
341
+ 'Prabhat - Natural',
342
+ 'Raveena - Natural',
343
+ 'Rudi - Friendly',
344
+ 'Ryan - Professional',
345
+ 'Sam - Natural',
346
+ 'Sara - Cheerful',
347
+ 'Sherry - Friendly',
348
+ 'Sonia - Warm',
349
+ 'Thomas - Natural',
350
+ 'Todd - Professional',
351
+ 'Tony - Professional',
352
+ 'Tracy - Cheerful',
353
+ 'Wayne - Natural',
354
+ 'Wilder - Natural',
355
+ 'Wille - Natural',
356
+ 'William - Friendly'
355
357
  ]),
356
- avatarStyle: z.optional(z.enum(["normal", "circle"])),
358
+ avatarStyle: z.optional(z.enum(['normal', 'circle'])),
357
359
  background: z.optional(z.string()),
358
- ratio: z.optional(z.enum(["16:9", "9:16"])),
359
- test: z.optional(z.boolean()),
360
+ ratio: z.optional(z.enum(['16:9', '9:16'])),
361
+ test: z.optional(z.boolean())
360
362
  }).strict();
361
363
  export const heyGenTextToAvatarOptionsSchema = heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema;
362
364
  /**
@@ -366,28 +368,26 @@ export const heyGenTextToAvatarOptionsSchema = heygenTextToAvatarOptionsHeyGenTe
366
368
  * <li><a href="#tocs_heygentexttoavataroptions">HeyGenTextToAvatarOptions</a></li>
367
369
  * </ul>
368
370
  */
369
- export const heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = z
370
- .object({
371
- type: z.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions"),
372
- })
373
- .and(heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema);
371
+ export const heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = z.object({
372
+ type: z.literal('heygenTextToAvatarOptions_HeyGenTextToAvatarOptions')
373
+ }).strict().and(heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema);
374
374
  export const heyGenGeneratedAssetOptionsSchema = heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema;
375
375
  /**
376
376
  * 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.
377
377
  */
378
378
  export const heygenGeneratedAssetHeyGenGeneratedAssetSchema = z.object({
379
- provider: z.enum(["heygen"]),
380
- options: heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema,
379
+ provider: z.enum(['heygen']),
380
+ options: heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema
381
381
  }).strict();
382
382
  export const heyGenGeneratedAssetSchema = heygenGeneratedAssetHeyGenGeneratedAssetSchema;
383
383
  /**
384
384
  * 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.
385
385
  */
386
386
  export const openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema = z.object({
387
- type: z.enum(["text-generator"]),
387
+ type: z.enum(['text-generator']),
388
388
  prompt: z.string(),
389
- model: z.enum(["gpt-3.5-turbo", "gpt-4"]),
390
- systemPrompt: z.optional(z.string()),
389
+ model: z.enum(['gpt-3.5-turbo', 'gpt-4']),
390
+ systemPrompt: z.optional(z.string())
391
391
  }).strict();
392
392
  export const openAiTextGeneratorOptionsSchema = openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema;
393
393
  /**
@@ -397,18 +397,16 @@ export const openAiTextGeneratorOptionsSchema = openaiTextGeneratorOptionsOpenAi
397
397
  * <li><a href="#tocs_openaitextgeneratoroptions">OpenAiTextGeneratorOptions</a></li>
398
398
  * </ul>
399
399
  */
400
- export const openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = z
401
- .object({
402
- type: z.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions"),
403
- })
404
- .and(openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema);
400
+ export const openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = z.object({
401
+ type: z.literal('openaiTextGeneratorOptions_OpenAiTextGeneratorOptions')
402
+ }).strict().and(openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema);
405
403
  export const openAiGeneratedAssetOptionsSchema = openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema;
406
404
  /**
407
405
  * 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.
408
406
  */
409
407
  export const openaiGeneratedAssetOpenAiGeneratedAssetSchema = z.object({
410
- provider: z.enum(["openai"]),
411
- options: openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema,
408
+ provider: z.enum(['openai']),
409
+ options: openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema
412
410
  }).strict();
413
411
  export const openAiGeneratedAssetSchema = openaiGeneratedAssetOpenAiGeneratedAssetSchema;
414
412
  /**
@@ -417,14 +415,14 @@ export const openAiGeneratedAssetSchema = openaiGeneratedAssetOpenAiGeneratedAss
417
415
  export const generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema = z.object({
418
416
  status: z.string(),
419
417
  title: z.string(),
420
- detail: z.string(),
418
+ detail: z.string()
421
419
  }).strict();
422
420
  export const generatedAssetErrorResponseDataSchema = generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema;
423
421
  /**
424
422
  * Error response data for validation and other errors returned by the Create API.
425
423
  */
426
424
  export const generatedAssetErrorResponseGeneratedAssetErrorResponseSchema = z.object({
427
- errors: z.array(generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema),
425
+ errors: z.array(generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema)
428
426
  }).strict();
429
427
  export const generatedAssetErrorResponseSchema = generatedAssetErrorResponseGeneratedAssetErrorResponseSchema;
430
428
  /**
@@ -432,12 +430,23 @@ export const generatedAssetErrorResponseSchema = generatedAssetErrorResponseGene
432
430
  */
433
431
  export const generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema = z.object({
434
432
  owner: z.string(),
435
- provider: z.enum(["shotstack", "elevenlabs", "heygen", "d-id"]),
436
- type: z.enum(["text-to-speech", "text-to-avatar"]),
433
+ provider: z.enum([
434
+ 'shotstack',
435
+ 'elevenlabs',
436
+ 'heygen',
437
+ 'd-id'
438
+ ]),
439
+ type: z.enum(['text-to-speech', 'text-to-avatar']),
437
440
  url: z.optional(z.string()),
438
- status: z.enum(["queued", "processing", "saving", "done", "failed"]),
441
+ status: z.enum([
442
+ 'queued',
443
+ 'processing',
444
+ 'saving',
445
+ 'done',
446
+ 'failed'
447
+ ]),
439
448
  created: z.string(),
440
- updated: z.string(),
449
+ updated: z.string()
441
450
  }).strict();
442
451
  export const generatedAssetResponseAttributesSchema = generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema;
443
452
  /**
@@ -446,21 +455,21 @@ export const generatedAssetResponseAttributesSchema = generatedAssetResponseAttr
446
455
  export const generatedAssetResponseDataGeneratedAssetResponseDataSchema = z.object({
447
456
  type: z.string(),
448
457
  id: z.string(),
449
- attributes: generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema,
458
+ attributes: generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema
450
459
  }).strict();
451
460
  export const generatedAssetResponseDataSchema = generatedAssetResponseDataGeneratedAssetResponseDataSchema;
452
461
  /**
453
462
  * 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.
454
463
  */
455
464
  export const generatedAssetResponseGeneratedAssetResponseSchema = z.object({
456
- data: generatedAssetResponseDataGeneratedAssetResponseDataSchema,
465
+ data: generatedAssetResponseDataGeneratedAssetResponseDataSchema
457
466
  }).strict();
458
467
  export const generatedAssetResponseSchema = generatedAssetResponseGeneratedAssetResponseSchema;
459
468
  /**
460
469
  * 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.
461
470
  */
462
471
  export const shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema = z.object({
463
- type: z.enum(["image-to-video"]),
472
+ type: z.enum(['image-to-video']),
464
473
  imageUrl: z.string(),
465
474
  guidanceScale: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
466
475
  return undefined; if (Array.isArray(v))
@@ -475,22 +484,22 @@ export const shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema = z.
475
484
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
476
485
  return v;
477
486
  return Number(v);
478
- } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(127),
487
+ } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(127)
479
488
  }).strict();
480
489
  export const shotstackImageToVideoOptionsSchema = shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema;
481
490
  /**
482
491
  * 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.
483
492
  */
484
493
  export const shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema = z.object({
485
- type: z.enum(["text-generator"]),
486
- prompt: z.string(),
494
+ type: z.enum(['text-generator']),
495
+ prompt: z.string()
487
496
  }).strict();
488
497
  export const shotstackTextGeneratorOptionsSchema = shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema;
489
498
  /**
490
499
  * 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.
491
500
  */
492
501
  export const shotstackTextToImageOptionsShotstackTextToImageOptionsSchema = z.object({
493
- type: z.enum(["text-to-image"]),
502
+ type: z.enum(['text-to-image']),
494
503
  prompt: z.string(),
495
504
  width: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
496
505
  return undefined; if (Array.isArray(v))
@@ -505,154 +514,146 @@ export const shotstackTextToImageOptionsShotstackTextToImageOptionsSchema = z.ob
505
514
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
506
515
  return v;
507
516
  return Number(v);
508
- } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
517
+ } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
509
518
  }).strict();
510
519
  export const shotstackTextToImageOptionsSchema = shotstackTextToImageOptionsShotstackTextToImageOptionsSchema;
511
520
  /**
512
521
  * 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.
513
522
  */
514
523
  export const shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema = z.object({
515
- type: z.enum(["text-to-speech"]),
524
+ type: z.enum(['text-to-speech']),
516
525
  text: z.string(),
517
526
  voice: z.enum([
518
- "Hala",
519
- "Lisa",
520
- "Arlet",
521
- "Hiujin",
522
- "Zhiyu",
523
- "Sofie",
524
- "Laura",
525
- "Olivia",
526
- "Amy",
527
- "Emma",
528
- "Brian",
529
- "Arthur",
530
- "Kajal",
531
- "Niamh",
532
- "Aria",
533
- "Ayanda",
534
- "Ivy",
535
- "Joanna",
536
- "Kendra",
537
- "Kimberly",
538
- "Salli",
539
- "Joey",
540
- "Justin",
541
- "Kevin",
542
- "Matthew",
543
- "Ruth",
544
- "Stephen",
545
- "Suvi",
546
- "Léa",
547
- "Rémi",
548
- "Gabrielle",
549
- "Liam",
550
- "Vicki",
551
- "Daniel",
552
- "Hannah",
553
- "Kajal",
554
- "Bianca",
555
- "Adriano",
556
- "Takumi",
557
- "Kazuha",
558
- "Tomoko",
559
- "Seoyeon",
560
- "Ida",
561
- "Ola",
562
- "Camila",
563
- "Vitória",
564
- "Vitoria",
565
- "Thiago",
566
- "Inês",
567
- "Ines",
568
- "Lucia",
569
- "Sergio",
570
- "Mia",
571
- "Andrés",
572
- "Lupe",
573
- "Pedro",
574
- "Elin",
527
+ 'Hala',
528
+ 'Lisa',
529
+ 'Arlet',
530
+ 'Hiujin',
531
+ 'Zhiyu',
532
+ 'Sofie',
533
+ 'Laura',
534
+ 'Olivia',
535
+ 'Amy',
536
+ 'Emma',
537
+ 'Brian',
538
+ 'Arthur',
539
+ 'Kajal',
540
+ 'Niamh',
541
+ 'Aria',
542
+ 'Ayanda',
543
+ 'Ivy',
544
+ 'Joanna',
545
+ 'Kendra',
546
+ 'Kimberly',
547
+ 'Salli',
548
+ 'Joey',
549
+ 'Justin',
550
+ 'Kevin',
551
+ 'Matthew',
552
+ 'Ruth',
553
+ 'Stephen',
554
+ 'Suvi',
555
+ 'Léa',
556
+ 'Rémi',
557
+ 'Gabrielle',
558
+ 'Liam',
559
+ 'Vicki',
560
+ 'Daniel',
561
+ 'Hannah',
562
+ 'Kajal',
563
+ 'Bianca',
564
+ 'Adriano',
565
+ 'Takumi',
566
+ 'Kazuha',
567
+ 'Tomoko',
568
+ 'Seoyeon',
569
+ 'Ida',
570
+ 'Ola',
571
+ 'Camila',
572
+ 'Vitória',
573
+ 'Vitoria',
574
+ 'Thiago',
575
+ 'Inês',
576
+ 'Ines',
577
+ 'Lucia',
578
+ 'Sergio',
579
+ 'Mia',
580
+ 'Andrés',
581
+ 'Lupe',
582
+ 'Pedro',
583
+ 'Elin'
575
584
  ]),
576
585
  language: z.optional(z.enum([
577
- "cmn-CN",
578
- "da-DK",
579
- "de-DE",
580
- "en-AU",
581
- "en-GB",
582
- "en-IN",
583
- "en-US",
584
- "es-ES",
585
- "es-MX",
586
- "es-US",
587
- "fr-CA",
588
- "fr-FR",
589
- "it-IT",
590
- "ja-JP",
591
- "hi-IN",
592
- "ko-KR",
593
- "nb-NO",
594
- "nl-NL",
595
- "pl-PL",
596
- "pt-BR",
597
- "pt-PT",
598
- "sv-SE",
599
- "en-NZ",
600
- "en-ZA",
601
- "ca-ES",
602
- "de-AT",
603
- "yue-CN",
604
- "ar-AE",
605
- "fi-FI",
586
+ 'cmn-CN',
587
+ 'da-DK',
588
+ 'de-DE',
589
+ 'en-AU',
590
+ 'en-GB',
591
+ 'en-IN',
592
+ 'en-US',
593
+ 'es-ES',
594
+ 'es-MX',
595
+ 'es-US',
596
+ 'fr-CA',
597
+ 'fr-FR',
598
+ 'it-IT',
599
+ 'ja-JP',
600
+ 'hi-IN',
601
+ 'ko-KR',
602
+ 'nb-NO',
603
+ 'nl-NL',
604
+ 'pl-PL',
605
+ 'pt-BR',
606
+ 'pt-PT',
607
+ 'sv-SE',
608
+ 'en-NZ',
609
+ 'en-ZA',
610
+ 'ca-ES',
611
+ 'de-AT',
612
+ 'yue-CN',
613
+ 'ar-AE',
614
+ 'fi-FI'
606
615
  ])),
607
- newscaster: z.optional(z.boolean()).default(false),
616
+ newscaster: z.optional(z.boolean()).default(false)
608
617
  }).strict();
609
618
  export const shotstackTextToSpeechOptionsSchema = shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema;
610
619
  /**
611
620
  * Generate assets using the native Shotstack provider AI services.
612
621
  */
613
622
  export const shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema = z.union([
614
- z
615
- .object({
616
- type: z.literal("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions"),
617
- })
618
- .and(shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema),
619
- z
620
- .object({
621
- type: z.literal("shotstackTextToImageOptions_ShotstackTextToImageOptions"),
622
- })
623
- .and(shotstackTextToImageOptionsShotstackTextToImageOptionsSchema),
624
- z
625
- .object({
626
- type: z.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions"),
627
- })
628
- .and(shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema),
629
- z
630
- .object({
631
- type: z.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions"),
632
- })
633
- .and(shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema),
623
+ z.object({
624
+ type: z.literal('shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions')
625
+ }).strict().and(shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema),
626
+ z.object({
627
+ type: z.literal('shotstackTextToImageOptions_ShotstackTextToImageOptions')
628
+ }).strict().and(shotstackTextToImageOptionsShotstackTextToImageOptionsSchema),
629
+ z.object({
630
+ type: z.literal('shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions')
631
+ }).strict().and(shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema),
632
+ z.object({
633
+ type: z.literal('shotstackImageToVideoOptions_ShotstackImageToVideoOptions')
634
+ }).strict().and(shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema)
634
635
  ]);
635
636
  export const shotstackGeneratedAssetOptionsSchema = shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema;
636
637
  /**
637
638
  * 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.
638
639
  */
639
640
  export const shotstackGeneratedAssetShotstackGeneratedAssetSchema = z.object({
640
- provider: z.enum(["shotstack"]),
641
- options: shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema,
641
+ provider: z.enum(['shotstack']),
642
+ options: shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema
642
643
  }).strict();
643
644
  export const shotstackGeneratedAssetSchema = shotstackGeneratedAssetShotstackGeneratedAssetSchema;
644
645
  /**
645
646
  * 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.
646
647
  */
647
648
  export const stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema = z.object({
648
- type: z.enum(["text-to-image"]),
649
+ type: z.enum(['text-to-image']),
649
650
  prompt: z.string(),
650
651
  engine: z.optional(z.enum([
651
- "stable-diffusion-xl-1024-v0-9",
652
- "stable-diffusion-xl-1024-v1-0",
653
- "stable-diffusion-v1-6",
654
- "stable-diffusion-512-v2-1",
655
- "stable-diffusion-xl-beta-v2-2-2",
652
+ 'stable-diffusion-xl-1024-v0-9',
653
+ 'stable-diffusion-xl-1024-v1-0',
654
+ 'stable-diffusion-v1-6',
655
+ 'stable-diffusion-512-v2-1',
656
+ 'stable-diffusion-xl-beta-v2-2-2'
656
657
  ])),
657
658
  width: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
658
659
  return undefined; if (Array.isArray(v))
@@ -690,24 +691,24 @@ export const stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema =
690
691
  return Number(v);
691
692
  } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(7),
692
693
  stylePreset: z.optional(z.enum([
693
- "3d-model",
694
- "analog-film",
695
- "anime",
696
- "cinematic",
697
- "comic-book",
698
- "digital-art",
699
- "enhance",
700
- "fantasy-art",
701
- "isometric",
702
- "line-art",
703
- "low-poly",
704
- "modeling-compound",
705
- "neon-punk",
706
- "origami",
707
- "photographic",
708
- "pixel-art",
709
- "tile-texture",
710
- ])),
694
+ '3d-model',
695
+ 'analog-film',
696
+ 'anime',
697
+ 'cinematic',
698
+ 'comic-book',
699
+ 'digital-art',
700
+ 'enhance',
701
+ 'fantasy-art',
702
+ 'isometric',
703
+ 'line-art',
704
+ 'low-poly',
705
+ 'modeling-compound',
706
+ 'neon-punk',
707
+ 'origami',
708
+ 'photographic',
709
+ 'pixel-art',
710
+ 'tile-texture'
711
+ ]))
711
712
  }).strict();
712
713
  export const stabilityAiTextToImageOptionsSchema = stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema;
713
714
  /**
@@ -717,54 +718,40 @@ export const stabilityAiTextToImageOptionsSchema = stabilityAiTextToImageOptions
717
718
  * <li><a href="#tocs_stabilityaitexttoimageoptions">StabilityAiTextToImageOptions</a></li>
718
719
  * </ul>
719
720
  */
720
- export const stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema = z
721
- .object({
722
- type: z.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions"),
723
- })
724
- .and(stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema);
721
+ export const stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema = z.object({
722
+ type: z.literal('stabilityAiTextToImageOptions_StabilityAiTextToImageOptions')
723
+ }).strict().and(stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema);
725
724
  export const stabilityAiGeneratedAssetOptionsSchema = stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema;
726
725
  /**
727
726
  * 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.
728
727
  */
729
728
  export const stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema = z.object({
730
- provider: z.enum(["stability-ai"]),
731
- options: stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema,
729
+ provider: z.enum(['stability-ai']),
730
+ options: stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema
732
731
  }).strict();
733
732
  export const stabilityAiGeneratedAssetSchema = stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema;
734
733
  /**
735
734
  * 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.
736
735
  */
737
736
  export const generatedAssetGeneratedAssetSchema = z.union([
738
- z
739
- .object({
740
- provider: z.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset"),
741
- })
742
- .and(shotstackGeneratedAssetShotstackGeneratedAssetSchema),
743
- z
744
- .object({
745
- provider: z.literal("didGeneratedAsset_DIDGeneratedAsset"),
746
- })
747
- .and(didGeneratedAssetDidGeneratedAssetSchema),
748
- z
749
- .object({
750
- provider: z.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset"),
751
- })
752
- .and(elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema),
753
- z
754
- .object({
755
- provider: z.literal("heygenGeneratedAsset_HeyGenGeneratedAsset"),
756
- })
757
- .and(heygenGeneratedAssetHeyGenGeneratedAssetSchema),
758
- z
759
- .object({
760
- provider: z.literal("openaiGeneratedAsset_OpenAiGeneratedAsset"),
761
- })
762
- .and(openaiGeneratedAssetOpenAiGeneratedAssetSchema),
763
- z
764
- .object({
765
- provider: z.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset"),
766
- })
767
- .and(stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema),
737
+ z.object({
738
+ provider: z.literal('shotstackGeneratedAsset_ShotstackGeneratedAsset')
739
+ }).strict().and(shotstackGeneratedAssetShotstackGeneratedAssetSchema),
740
+ z.object({
741
+ provider: z.literal('didGeneratedAsset_DIDGeneratedAsset')
742
+ }).strict().and(didGeneratedAssetDidGeneratedAssetSchema),
743
+ z.object({
744
+ provider: z.literal('elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset')
745
+ }).strict().and(elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema),
746
+ z.object({
747
+ provider: z.literal('heygenGeneratedAsset_HeyGenGeneratedAsset')
748
+ }).strict().and(heygenGeneratedAssetHeyGenGeneratedAssetSchema),
749
+ z.object({
750
+ provider: z.literal('openaiGeneratedAsset_OpenAiGeneratedAsset')
751
+ }).strict().and(openaiGeneratedAssetOpenAiGeneratedAssetSchema),
752
+ z.object({
753
+ provider: z.literal('stabilityAiGeneratedAsset_StabilityAiGeneratedAsset')
754
+ }).strict().and(stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema)
768
755
  ]);
769
756
  export const generatedAssetSchema = generatedAssetGeneratedAssetSchema;
770
757
  /**
@@ -798,7 +785,7 @@ export const cropCropSchema = z.object({
798
785
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
799
786
  return v;
800
787
  return Number(v);
801
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
788
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
802
789
  }).strict();
803
790
  export const cropSchema = cropCropSchema;
804
791
  /**
@@ -808,14 +795,14 @@ export const akamaiNetStorageDestinationOptionsAkamaiNetStorageDestinationOption
808
795
  host: z.string(),
809
796
  cpCode: z.string(),
810
797
  path: z.optional(z.unknown()),
811
- filename: z.optional(z.unknown()),
798
+ filename: z.optional(z.unknown())
812
799
  }).strict();
813
800
  /**
814
801
  * Send videos and assets to [Akamai NetStorage](https://techdocs.akamai.com/netstorage-usage/docs). Send files to your NetStorage upload directory with a custom path and filename. Akamai credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/akamai-netstorage), not in the request.
815
802
  */
816
803
  export const akamaiNetStorageDestinationAkamaiNetStorageDestinationSchema = z.object({
817
804
  provider: z.literal("akamai-netstorage"),
818
- options: z.optional(akamaiNetStorageDestinationOptionsAkamaiNetStorageDestinationOptionsSchema),
805
+ options: z.optional(akamaiNetStorageDestinationOptionsAkamaiNetStorageDestinationOptionsSchema)
819
806
  }).strict();
820
807
  /**
821
808
  * Pass additional options to control how files are stored in Azure Blob Storage.
@@ -824,14 +811,14 @@ export const azureBlobStorageDestinationOptionsAzureBlobStorageDestinationOption
824
811
  accountName: z.string(),
825
812
  container: z.string(),
826
813
  prefix: z.optional(z.unknown()),
827
- filename: z.optional(z.unknown()),
814
+ filename: z.optional(z.unknown())
828
815
  }).strict();
829
816
  /**
830
817
  * Send videos and assets to [Azure Blob Storage](https://learn.microsoft.com/en-us/azure/storage/blobs/). Send files to any container with a custom prefix and filename. Azure credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/azure-blob-storage), not in the request.
831
818
  */
832
819
  export const azureBlobStorageDestinationAzureBlobStorageDestinationSchema = z.object({
833
820
  provider: z.literal("azure-blob-storage"),
834
- options: z.optional(azureBlobStorageDestinationOptionsAzureBlobStorageDestinationOptionsSchema),
821
+ options: z.optional(azureBlobStorageDestinationOptionsAzureBlobStorageDestinationOptionsSchema)
835
822
  }).strict();
836
823
  /**
837
824
  * Pass additional options to control how files are stored in Google Cloud Storage.
@@ -839,7 +826,7 @@ export const azureBlobStorageDestinationAzureBlobStorageDestinationSchema = z.ob
839
826
  export const googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema = z.object({
840
827
  bucket: z.string(),
841
828
  prefix: z.optional(z.string()),
842
- filename: z.optional(z.string()),
829
+ filename: z.optional(z.string())
843
830
  }).strict();
844
831
  export const googleCloudStorageDestinationOptionsSchema = googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema;
845
832
  /**
@@ -847,7 +834,7 @@ export const googleCloudStorageDestinationOptionsSchema = googleCloudStorageDest
847
834
  */
848
835
  export const googleCloudStorageDestinationGoogleCloudStorageDestinationSchema = z.object({
849
836
  provider: z.literal("google-cloud-storage"),
850
- options: z.optional(googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema),
837
+ options: z.optional(googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema)
851
838
  }).strict();
852
839
  export const googleCloudStorageDestinationSchema = googleCloudStorageDestinationGoogleCloudStorageDestinationSchema;
853
840
  /**
@@ -855,7 +842,7 @@ export const googleCloudStorageDestinationSchema = googleCloudStorageDestination
855
842
  */
856
843
  export const googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema = z.object({
857
844
  folderId: z.string(),
858
- filename: z.optional(z.string()),
845
+ filename: z.optional(z.string())
859
846
  }).strict();
860
847
  export const googleDriveDestinationOptionsSchema = googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema;
861
848
  /**
@@ -863,15 +850,15 @@ export const googleDriveDestinationOptionsSchema = googleDriveDestinationOptions
863
850
  */
864
851
  export const googleDriveDestinationGoogleDriveDestinationSchema = z.object({
865
852
  provider: z.literal("google-drive"),
866
- options: googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema,
853
+ options: googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema
867
854
  }).strict();
868
855
  export const googleDriveDestinationSchema = googleDriveDestinationGoogleDriveDestinationSchema;
869
856
  /**
870
857
  * Pass additional options to control how Mux processes video. Currently supports playback_policy and passthrough options.
871
858
  */
872
859
  export const muxDestinationOptionsMuxDestinationOptionsSchema = z.object({
873
- playbackPolicy: z.optional(z.array(z.enum(["public", "signed"]))),
874
- passthrough: z.optional(z.string().max(255)),
860
+ playbackPolicy: z.optional(z.array(z.enum(['public', 'signed']))),
861
+ passthrough: z.optional(z.string().max(255))
875
862
  }).strict();
876
863
  export const muxDestinationOptionsSchema = muxDestinationOptionsMuxDestinationOptionsSchema;
877
864
  /**
@@ -879,7 +866,7 @@ export const muxDestinationOptionsSchema = muxDestinationOptionsMuxDestinationOp
879
866
  */
880
867
  export const muxDestinationMuxDestinationSchema = z.object({
881
868
  provider: z.literal("mux"),
882
- options: z.optional(muxDestinationOptionsMuxDestinationOptionsSchema),
869
+ options: z.optional(muxDestinationOptionsMuxDestinationOptionsSchema)
883
870
  }).strict();
884
871
  export const muxDestinationSchema = muxDestinationMuxDestinationSchema;
885
872
  /**
@@ -890,7 +877,7 @@ export const s3DestinationOptionsS3DestinationOptionsSchema = z.object({
890
877
  bucket: z.string(),
891
878
  prefix: z.optional(z.string()),
892
879
  filename: z.optional(z.string()),
893
- acl: z.optional(z.string()),
880
+ acl: z.optional(z.string())
894
881
  }).strict();
895
882
  export const s3DestinationOptionsSchema = s3DestinationOptionsS3DestinationOptionsSchema;
896
883
  /**
@@ -898,7 +885,7 @@ export const s3DestinationOptionsSchema = s3DestinationOptionsS3DestinationOptio
898
885
  */
899
886
  export const s3DestinationS3DestinationSchema = z.object({
900
887
  provider: z.literal("s3"),
901
- options: z.optional(s3DestinationOptionsS3DestinationOptionsSchema),
888
+ options: z.optional(s3DestinationOptionsS3DestinationOptionsSchema)
902
889
  }).strict();
903
890
  export const s3DestinationSchema = s3DestinationS3DestinationSchema;
904
891
  /**
@@ -906,7 +893,7 @@ export const s3DestinationSchema = s3DestinationS3DestinationSchema;
906
893
  */
907
894
  export const shotstackDestinationShotstackDestinationSchema = z.object({
908
895
  provider: z.literal("shotstack"),
909
- exclude: z.optional(z.boolean()),
896
+ exclude: z.optional(z.boolean())
910
897
  }).strict();
911
898
  export const shotstackDestinationSchema = shotstackDestinationShotstackDestinationSchema;
912
899
  /**
@@ -914,27 +901,45 @@ export const shotstackDestinationSchema = shotstackDestinationShotstackDestinati
914
901
  */
915
902
  export const tiktokDestinationOptionsTiktokDestinationOptionsSchema = z.object({
916
903
  title: z.optional(z.string().max(150)),
917
- privacyLevel: z.optional(z.enum(["public", "friends", "private"])),
904
+ privacyLevel: z.optional(z.enum([
905
+ 'public',
906
+ 'friends',
907
+ 'private'
908
+ ])),
918
909
  disableDuet: z.optional(z.boolean()).default(false),
919
910
  disableStitch: z.optional(z.boolean()).default(false),
920
- disableComment: z.optional(z.boolean()).default(false),
911
+ disableComment: z.optional(z.boolean()).default(false)
921
912
  }).strict();
922
913
  /**
923
914
  * Send videos to TikTok. TikTok credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/tiktok), not in the request.
924
915
  */
925
916
  export const tiktokDestinationTiktokDestinationSchema = z.object({
926
917
  provider: z.literal("tiktok"),
927
- options: z.optional(tiktokDestinationOptionsTiktokDestinationOptionsSchema),
918
+ options: z.optional(tiktokDestinationOptionsTiktokDestinationOptionsSchema)
928
919
  }).strict();
929
920
  /**
930
921
  * Options to control the visibility of videos and privacy features.
931
922
  */
932
923
  export const vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema = z.object({
933
- view: z.optional(z.enum(["anybody", "nobody", "contacts", "password", "unlisted"])),
934
- embed: z.optional(z.enum(["public", "private", "whitelist"])),
935
- comments: z.optional(z.enum(["anybody", "nobody", "contacts"])),
924
+ view: z.optional(z.enum([
925
+ 'anybody',
926
+ 'nobody',
927
+ 'contacts',
928
+ 'password',
929
+ 'unlisted'
930
+ ])),
931
+ embed: z.optional(z.enum([
932
+ 'public',
933
+ 'private',
934
+ 'whitelist'
935
+ ])),
936
+ comments: z.optional(z.enum([
937
+ 'anybody',
938
+ 'nobody',
939
+ 'contacts'
940
+ ])),
936
941
  download: z.optional(z.boolean()),
937
- add: z.optional(z.boolean()),
942
+ add: z.optional(z.boolean())
938
943
  }).strict();
939
944
  export const vimeoDestinationPrivacyOptionsSchema = vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema;
940
945
  /**
@@ -944,7 +949,7 @@ export const vimeoDestinationOptionsVimeoDestinationOptionsSchema = z.object({
944
949
  name: z.optional(z.string()),
945
950
  description: z.optional(z.string()),
946
951
  privacy: z.optional(vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema),
947
- folderUri: z.optional(z.string()),
952
+ folderUri: z.optional(z.string())
948
953
  }).strict();
949
954
  export const vimeoDestinationOptionsSchema = vimeoDestinationOptionsVimeoDestinationOptionsSchema;
950
955
  /**
@@ -952,7 +957,7 @@ export const vimeoDestinationOptionsSchema = vimeoDestinationOptionsVimeoDestina
952
957
  */
953
958
  export const vimeoDestinationVimeoDestinationSchema = z.object({
954
959
  provider: z.literal("vimeo"),
955
- options: z.optional(vimeoDestinationOptionsVimeoDestinationOptionsSchema),
960
+ options: z.optional(vimeoDestinationOptionsVimeoDestinationOptionsSchema)
956
961
  }).strict();
957
962
  export const vimeoDestinationSchema = vimeoDestinationVimeoDestinationSchema;
958
963
  /**
@@ -977,14 +982,14 @@ export const destinationsSchema = destinationsDestinationsSchema;
977
982
  */
978
983
  export const fliptransformationFlipTransformationSchema = z.object({
979
984
  horizontal: z.optional(z.boolean()),
980
- vertical: z.optional(z.boolean()),
985
+ vertical: z.optional(z.boolean())
981
986
  }).strict();
982
987
  export const flipTransformationSchema = fliptransformationFlipTransformationSchema;
983
988
  /**
984
989
  * 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.
985
990
  */
986
991
  export const fontFontSchema = z.object({
987
- src: z.string(),
992
+ src: z.string()
988
993
  }).strict();
989
994
  export const fontSchema = fontFontSchema;
990
995
  /**
@@ -998,7 +1003,7 @@ export const fontSchema = fontFontSchema;
998
1003
  * @deprecated
999
1004
  */
1000
1005
  export const htmlassetHtmlAssetSchema = z.object({
1001
- type: z.enum(["html"]),
1006
+ type: z.enum(['html']),
1002
1007
  html: z.string(),
1003
1008
  css: z.optional(z.string()),
1004
1009
  width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1017,35 +1022,43 @@ export const htmlassetHtmlAssetSchema = z.object({
1017
1022
  } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1018
1023
  background: z.optional(z.string()),
1019
1024
  position: z.optional(z.enum([
1020
- "top",
1021
- "topRight",
1022
- "right",
1023
- "bottomRight",
1024
- "bottom",
1025
- "bottomLeft",
1026
- "left",
1027
- "topLeft",
1028
- "center",
1029
- ])),
1025
+ 'top',
1026
+ 'topRight',
1027
+ 'right',
1028
+ 'bottomRight',
1029
+ 'bottom',
1030
+ 'bottomLeft',
1031
+ 'left',
1032
+ 'topLeft',
1033
+ 'center'
1034
+ ]))
1030
1035
  }).strict();
1031
1036
  export const htmlAssetSchema = htmlassetHtmlAssetSchema;
1032
1037
  /**
1033
1038
  * 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.
1034
1039
  */
1035
1040
  export const imageassetImageAssetSchema = z.object({
1036
- type: z.enum(["image"]),
1041
+ type: z.enum(['image']),
1037
1042
  src: z.string().min(1).regex(/\S/),
1038
- crop: z.optional(cropCropSchema),
1043
+ crop: z.optional(cropCropSchema)
1039
1044
  }).strict();
1040
1045
  export const imageAssetSchema = imageassetImageAssetSchema;
1041
1046
  /**
1042
1047
  * The ImageToVideoAsset lets you create a video from an image and a text prompt.
1043
1048
  */
1044
1049
  export const imagetovideoassetImageToVideoAssetSchema = z.object({
1045
- type: z.enum(["image-to-video"]),
1050
+ type: z.enum(['image-to-video']),
1046
1051
  src: z.string().min(1),
1047
1052
  prompt: z.optional(z.string()),
1048
- aspectRatio: z.optional(z.enum(["1:1", "4:3", "16:9", "9:16", "3:4", "21:9", "9:21"])),
1053
+ aspectRatio: z.optional(z.enum([
1054
+ '1:1',
1055
+ '4:3',
1056
+ '16:9',
1057
+ '9:16',
1058
+ '3:4',
1059
+ '21:9',
1060
+ '9:21'
1061
+ ])),
1049
1062
  speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1050
1063
  return undefined; if (Array.isArray(v))
1051
1064
  return v; if (typeof v === 'string') {
@@ -1053,7 +1066,7 @@ export const imagetovideoassetImageToVideoAssetSchema = z.object({
1053
1066
  return v;
1054
1067
  return Number(v);
1055
1068
  } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1056
- crop: z.optional(cropCropSchema),
1069
+ crop: z.optional(cropCropSchema)
1057
1070
  }).strict();
1058
1071
  export const imageToVideoAssetSchema = imagetovideoassetImageToVideoAssetSchema;
1059
1072
  /**
@@ -1061,24 +1074,24 @@ export const imageToVideoAssetSchema = imagetovideoassetImageToVideoAssetSchema;
1061
1074
  */
1062
1075
  export const dolbyEnhancementOptionsDolbyEnhancementOptionsSchema = z.object({
1063
1076
  preset: z.enum([
1064
- "conference",
1065
- "interview",
1066
- "lecture",
1067
- "meeting",
1068
- "mobile_phone",
1069
- "music",
1070
- "podcast",
1071
- "studio",
1072
- "voice_over",
1073
- ]),
1077
+ 'conference',
1078
+ 'interview',
1079
+ 'lecture',
1080
+ 'meeting',
1081
+ 'mobile_phone',
1082
+ 'music',
1083
+ 'podcast',
1084
+ 'studio',
1085
+ 'voice_over'
1086
+ ])
1074
1087
  }).strict();
1075
1088
  export const dolbyEnhancementOptionsSchema = dolbyEnhancementOptionsDolbyEnhancementOptionsSchema;
1076
1089
  /**
1077
1090
  * 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.
1078
1091
  */
1079
1092
  export const dolbyEnhancementDolbyEnhancementSchema = z.object({
1080
- provider: z.string().default("dolby"),
1081
- options: dolbyEnhancementOptionsDolbyEnhancementOptionsSchema,
1093
+ provider: z.string().default('dolby'),
1094
+ options: dolbyEnhancementOptionsDolbyEnhancementOptionsSchema
1082
1095
  }).strict();
1083
1096
  export const dolbyEnhancementSchema = dolbyEnhancementDolbyEnhancementSchema;
1084
1097
  /**
@@ -1087,17 +1100,15 @@ export const dolbyEnhancementSchema = dolbyEnhancementDolbyEnhancementSchema;
1087
1100
  * <li><a href="#tocs_dolbyenhancement">DolbyEnhancement</a></li>
1088
1101
  * </ul>
1089
1102
  */
1090
- export const audioEnhancementAudioEnhancementSchema = z
1091
- .object({
1092
- enhancement: z.literal("dolbyEnhancement_DolbyEnhancement"),
1093
- })
1094
- .and(dolbyEnhancementDolbyEnhancementSchema);
1103
+ export const audioEnhancementAudioEnhancementSchema = z.object({
1104
+ enhancement: z.literal('dolbyEnhancement_DolbyEnhancement')
1105
+ }).strict().and(dolbyEnhancementDolbyEnhancementSchema);
1095
1106
  export const audioEnhancementSchema = audioEnhancementAudioEnhancementSchema;
1096
1107
  /**
1097
1108
  * Enhancements that can be applied to a rendition. Currently only supports the Dolby audio enhancement.
1098
1109
  */
1099
1110
  export const enhancementsEnhancementsSchema = z.object({
1100
- audio: z.optional(audioEnhancementAudioEnhancementSchema),
1111
+ audio: z.optional(audioEnhancementAudioEnhancementSchema)
1101
1112
  }).strict();
1102
1113
  export const enhancementsSchema = enhancementsEnhancementsSchema;
1103
1114
  /**
@@ -1106,14 +1117,14 @@ export const enhancementsSchema = enhancementsEnhancementsSchema;
1106
1117
  export const ingesterrorresponsedataIngestErrorResponseDataSchema = z.object({
1107
1118
  status: z.string(),
1108
1119
  title: z.string(),
1109
- detail: z.string(),
1120
+ detail: z.string()
1110
1121
  }).strict();
1111
1122
  export const ingestErrorResponseDataSchema = ingesterrorresponsedataIngestErrorResponseDataSchema;
1112
1123
  /**
1113
1124
  * Error response data for validation and other errors returned by the Ingest API.
1114
1125
  */
1115
1126
  export const ingesterrorresponseIngestErrorResponseSchema = z.object({
1116
- errors: z.array(ingesterrorresponsedataIngestErrorResponseDataSchema),
1127
+ errors: z.array(ingesterrorresponsedataIngestErrorResponseDataSchema)
1117
1128
  }).strict();
1118
1129
  export const ingestErrorResponseSchema = ingesterrorresponseIngestErrorResponseSchema;
1119
1130
  /**
@@ -1121,14 +1132,14 @@ export const ingestErrorResponseSchema = ingesterrorresponseIngestErrorResponseS
1121
1132
  */
1122
1133
  export const queuedsourceresponsedataQueuedSourceResponseDataSchema = z.object({
1123
1134
  type: z.string(),
1124
- id: z.string(),
1135
+ id: z.string()
1125
1136
  }).strict();
1126
1137
  export const queuedSourceResponseDataSchema = queuedsourceresponsedataQueuedSourceResponseDataSchema;
1127
1138
  /**
1128
1139
  * 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.
1129
1140
  */
1130
1141
  export const queuedsourceresponseQueuedSourceResponseSchema = z.object({
1131
- data: queuedsourceresponsedataQueuedSourceResponseDataSchema,
1142
+ data: queuedsourceresponsedataQueuedSourceResponseDataSchema
1132
1143
  }).strict();
1133
1144
  export const queuedSourceResponseSchema = queuedsourceresponseQueuedSourceResponseSchema;
1134
1145
  /**
@@ -1137,7 +1148,7 @@ export const queuedSourceResponseSchema = queuedsourceresponseQueuedSourceRespon
1137
1148
  export const uploadresponseattributesUploadResponseAttributesSchema = z.object({
1138
1149
  id: z.string(),
1139
1150
  url: z.string(),
1140
- expires: z.string(),
1151
+ expires: z.string()
1141
1152
  }).strict();
1142
1153
  export const uploadResponseAttributesSchema = uploadresponseattributesUploadResponseAttributesSchema;
1143
1154
  /**
@@ -1146,14 +1157,14 @@ export const uploadResponseAttributesSchema = uploadresponseattributesUploadResp
1146
1157
  export const uploadresponsedataUploadResponseDataSchema = z.object({
1147
1158
  type: z.string(),
1148
1159
  id: z.string(),
1149
- attributes: uploadresponseattributesUploadResponseAttributesSchema,
1160
+ attributes: uploadresponseattributesUploadResponseAttributesSchema
1150
1161
  }).strict();
1151
1162
  export const uploadResponseDataSchema = uploadresponsedataUploadResponseDataSchema;
1152
1163
  /**
1153
1164
  * 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.
1154
1165
  */
1155
1166
  export const uploadresponseUploadResponseSchema = z.object({
1156
- data: uploadresponsedataUploadResponseDataSchema,
1167
+ data: uploadresponsedataUploadResponseDataSchema
1157
1168
  }).strict();
1158
1169
  export const uploadResponseSchema = uploadresponseUploadResponseSchema;
1159
1170
  /**
@@ -1167,21 +1178,21 @@ export const speedSpeedSchema = z.object({
1167
1178
  return v;
1168
1179
  return Number(v);
1169
1180
  } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1170
- preservePitch: z.optional(z.boolean()),
1181
+ preservePitch: z.optional(z.boolean())
1171
1182
  }).strict();
1172
1183
  export const speedSchema = speedSpeedSchema;
1173
1184
  /**
1174
1185
  * Generate a transcription of the audio in the video. The transcription can be output as a file in SRT or VTT format.
1175
1186
  */
1176
1187
  export const transcriptionTranscriptionSchema = z.object({
1177
- format: z.optional(z.enum(["srt", "vtt"])),
1188
+ format: z.optional(z.enum(['srt', 'vtt']))
1178
1189
  }).strict();
1179
1190
  export const transcriptionSchema = transcriptionTranscriptionSchema;
1180
1191
  /**
1181
1192
  * 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.
1182
1193
  */
1183
1194
  export const lumaassetLumaAssetSchema = z.object({
1184
- type: z.enum(["luma"]),
1195
+ type: z.enum(['luma']),
1185
1196
  src: z.string().min(1).regex(/\S/),
1186
1197
  trim: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1187
1198
  return undefined; if (Array.isArray(v))
@@ -1189,7 +1200,7 @@ export const lumaassetLumaAssetSchema = z.object({
1189
1200
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1190
1201
  return v;
1191
1202
  return Number(v);
1192
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1203
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1193
1204
  }).strict();
1194
1205
  export const lumaAssetSchema = lumaassetLumaAssetSchema;
1195
1206
  /**
@@ -1197,7 +1208,7 @@ export const lumaAssetSchema = lumaassetLumaAssetSchema;
1197
1208
  */
1198
1209
  export const mergefieldMergeFieldSchema = z.object({
1199
1210
  find: z.string(),
1200
- replace: z.union([z.string(), z.number(), z.boolean(), z.null(), z.record(z.string(), z.unknown()), z.array(z.unknown())]),
1211
+ replace: z.unknown()
1201
1212
  }).strict();
1202
1213
  export const mergeFieldSchema = mergefieldMergeFieldSchema;
1203
1214
  /**
@@ -1210,7 +1221,7 @@ export const posterPosterSchema = z.object({
1210
1221
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1211
1222
  return v;
1212
1223
  return Number(v);
1213
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1224
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1214
1225
  }).strict();
1215
1226
  export const posterSchema = posterPosterSchema;
1216
1227
  /**
@@ -1230,7 +1241,7 @@ export const rangeRangeSchema = z.object({
1230
1241
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1231
1242
  return v;
1232
1243
  return Number(v);
1233
- } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1244
+ } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1234
1245
  }).strict();
1235
1246
  export const rangeSchema = rangeRangeSchema;
1236
1247
  /**
@@ -1244,9 +1255,14 @@ export const assetresponseattributesAssetResponseAttributesSchema = z.object({
1244
1255
  providerId: z.optional(z.string()),
1245
1256
  filename: z.optional(z.string()),
1246
1257
  url: z.optional(z.string()),
1247
- status: z.enum(["importing", "ready", "failed", "deleted"]),
1258
+ status: z.enum([
1259
+ 'importing',
1260
+ 'ready',
1261
+ 'failed',
1262
+ 'deleted'
1263
+ ]),
1248
1264
  created: z.optional(z.string()),
1249
- updated: z.optional(z.string()),
1265
+ updated: z.optional(z.string())
1250
1266
  }).strict();
1251
1267
  export const assetResponseAttributesSchema = assetresponseattributesAssetResponseAttributesSchema;
1252
1268
  /**
@@ -1254,21 +1270,21 @@ export const assetResponseAttributesSchema = assetresponseattributesAssetRespons
1254
1270
  */
1255
1271
  export const assetresponsedataAssetResponseDataSchema = z.object({
1256
1272
  type: z.string(),
1257
- attributes: assetresponseattributesAssetResponseAttributesSchema,
1273
+ attributes: assetresponseattributesAssetResponseAttributesSchema
1258
1274
  }).strict();
1259
1275
  export const assetResponseDataSchema = assetresponsedataAssetResponseDataSchema;
1260
1276
  /**
1261
1277
  * 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.
1262
1278
  */
1263
1279
  export const assetrenderresponseAssetRenderResponseSchema = z.object({
1264
- data: z.array(assetresponsedataAssetResponseDataSchema),
1280
+ data: z.array(assetresponsedataAssetResponseDataSchema)
1265
1281
  }).strict();
1266
1282
  export const assetRenderResponseSchema = assetrenderresponseAssetRenderResponseSchema;
1267
1283
  /**
1268
1284
  * 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.
1269
1285
  */
1270
1286
  export const assetresponseAssetResponseSchema = z.object({
1271
- data: assetresponsedataAssetResponseDataSchema,
1287
+ data: assetresponsedataAssetResponseDataSchema
1272
1288
  }).strict();
1273
1289
  export const assetResponseSchema = assetresponseAssetResponseSchema;
1274
1290
  /**
@@ -1277,7 +1293,7 @@ export const assetResponseSchema = assetresponseAssetResponseSchema;
1277
1293
  export const proberesponseProbeResponseSchema = z.object({
1278
1294
  success: z.boolean(),
1279
1295
  message: z.string(),
1280
- response: z.record(z.string(), z.unknown()),
1296
+ response: z.record(z.string(), z.unknown())
1281
1297
  }).strict();
1282
1298
  export const probeResponseSchema = proberesponseProbeResponseSchema;
1283
1299
  /**
@@ -1285,7 +1301,7 @@ export const probeResponseSchema = proberesponseProbeResponseSchema;
1285
1301
  */
1286
1302
  export const queuedresponsedataQueuedResponseDataSchema = z.object({
1287
1303
  message: z.string(),
1288
- id: z.string(),
1304
+ id: z.string()
1289
1305
  }).strict();
1290
1306
  export const queuedResponseDataSchema = queuedresponsedataQueuedResponseDataSchema;
1291
1307
  /**
@@ -1294,7 +1310,7 @@ export const queuedResponseDataSchema = queuedresponsedataQueuedResponseDataSche
1294
1310
  export const queuedresponseQueuedResponseSchema = z.object({
1295
1311
  success: z.boolean(),
1296
1312
  message: z.string(),
1297
- response: queuedresponsedataQueuedResponseDataSchema,
1313
+ response: queuedresponsedataQueuedResponseDataSchema
1298
1314
  }).strict();
1299
1315
  export const queuedResponseSchema = queuedresponseQueuedResponseSchema;
1300
1316
  /**
@@ -1304,7 +1320,7 @@ export const templatelistresponseitemTemplateListResponseItemSchema = z.object({
1304
1320
  id: z.string(),
1305
1321
  name: z.string(),
1306
1322
  created: z.optional(z.string()),
1307
- updated: z.optional(z.string()),
1323
+ updated: z.optional(z.string())
1308
1324
  }).strict();
1309
1325
  export const templateListResponseItemSchema = templatelistresponseitemTemplateListResponseItemSchema;
1310
1326
  /**
@@ -1312,7 +1328,7 @@ export const templateListResponseItemSchema = templatelistresponseitemTemplateLi
1312
1328
  */
1313
1329
  export const templatelistresponsedataTemplateListResponseDataSchema = z.object({
1314
1330
  owner: z.string(),
1315
- templates: z.array(templatelistresponseitemTemplateListResponseItemSchema),
1331
+ templates: z.array(templatelistresponseitemTemplateListResponseItemSchema)
1316
1332
  }).strict();
1317
1333
  export const templateListResponseDataSchema = templatelistresponsedataTemplateListResponseDataSchema;
1318
1334
  /**
@@ -1321,7 +1337,7 @@ export const templateListResponseDataSchema = templatelistresponsedataTemplateLi
1321
1337
  export const templatelistresponseTemplateListResponseSchema = z.object({
1322
1338
  success: z.boolean(),
1323
1339
  message: z.string(),
1324
- response: templatelistresponsedataTemplateListResponseDataSchema,
1340
+ response: templatelistresponsedataTemplateListResponseDataSchema
1325
1341
  }).strict();
1326
1342
  export const templateListResponseSchema = templatelistresponseTemplateListResponseSchema;
1327
1343
  /**
@@ -1329,7 +1345,7 @@ export const templateListResponseSchema = templatelistresponseTemplateListRespon
1329
1345
  */
1330
1346
  export const templateresponsedataTemplateResponseDataSchema = z.object({
1331
1347
  message: z.string(),
1332
- id: z.string(),
1348
+ id: z.string()
1333
1349
  }).strict();
1334
1350
  export const templateResponseDataSchema = templateresponsedataTemplateResponseDataSchema;
1335
1351
  /**
@@ -1338,14 +1354,14 @@ export const templateResponseDataSchema = templateresponsedataTemplateResponseDa
1338
1354
  export const templateresponseTemplateResponseSchema = z.object({
1339
1355
  success: z.boolean(),
1340
1356
  message: z.string(),
1341
- response: templateresponsedataTemplateResponseDataSchema,
1357
+ response: templateresponsedataTemplateResponseDataSchema
1342
1358
  }).strict();
1343
1359
  export const templateResponseSchema = templateresponseTemplateResponseSchema;
1344
1360
  /**
1345
1361
  * Font properties for the active/highlighted word.
1346
1362
  */
1347
1363
  export const richcaptionpropertiesRichCaptionActiveFontSchema = z.object({
1348
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#ffff00"),
1364
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#ffff00'),
1349
1365
  background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1350
1366
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1351
1367
  return undefined; if (Array.isArray(v))
@@ -1354,13 +1370,18 @@ export const richcaptionpropertiesRichCaptionActiveFontSchema = z.object({
1354
1370
  return v;
1355
1371
  return Number(v);
1356
1372
  } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1373
+ textDecoration: z.optional(z.enum([
1374
+ 'none',
1375
+ 'underline',
1376
+ 'line-through'
1377
+ ]))
1357
1378
  }).strict();
1358
1379
  export const richCaptionActiveFontSchema = richcaptionpropertiesRichCaptionActiveFontSchema;
1359
1380
  /**
1360
1381
  * Font properties for rich captions. Defaults to Roboto.
1361
1382
  */
1362
1383
  export const richcaptionpropertiesRichCaptionFontSchema = z.object({
1363
- family: z.optional(z.string()).default("Roboto"),
1384
+ family: z.optional(z.string()).default('Roboto'),
1364
1385
  size: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1365
1386
  return undefined; if (Array.isArray(v))
1366
1387
  return v; if (typeof v === 'string') {
@@ -1368,8 +1389,8 @@ export const richcaptionpropertiesRichCaptionFontSchema = z.object({
1368
1389
  return v;
1369
1390
  return Number(v);
1370
1391
  } return v; }), z.number().int().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
1371
- weight: z.optional(z.unknown()).default("400"),
1372
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#ffffff"),
1392
+ weight: z.optional(z.unknown()).default('400'),
1393
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#ffffff'),
1373
1394
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1374
1395
  return undefined; if (Array.isArray(v))
1375
1396
  return v; if (typeof v === 'string') {
@@ -1378,20 +1399,25 @@ export const richcaptionpropertiesRichCaptionFontSchema = z.object({
1378
1399
  return Number(v);
1379
1400
  } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1380
1401
  background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1402
+ textDecoration: z.optional(z.enum([
1403
+ 'none',
1404
+ 'underline',
1405
+ 'line-through'
1406
+ ]))
1381
1407
  }).strict();
1382
1408
  /**
1383
1409
  * Word-level animation properties for caption effects.
1384
1410
  */
1385
1411
  export const richcaptionpropertiesRichCaptionWordAnimationSchema = z.object({
1386
1412
  style: z.enum([
1387
- "karaoke",
1388
- "highlight",
1389
- "pop",
1390
- "fade",
1391
- "slide",
1392
- "bounce",
1393
- "typewriter",
1394
- "none",
1413
+ 'karaoke',
1414
+ 'highlight',
1415
+ 'pop',
1416
+ 'fade',
1417
+ 'slide',
1418
+ 'bounce',
1419
+ 'typewriter',
1420
+ 'none'
1395
1421
  ]),
1396
1422
  speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1397
1423
  return undefined; if (Array.isArray(v))
@@ -1400,15 +1426,28 @@ export const richcaptionpropertiesRichCaptionWordAnimationSchema = z.object({
1400
1426
  return v;
1401
1427
  return Number(v);
1402
1428
  } return v; }), z.number().gte(0.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1403
- direction: z.optional(z.enum(["left", "right", "up", "down"])),
1429
+ direction: z.optional(z.enum([
1430
+ 'left',
1431
+ 'right',
1432
+ 'up',
1433
+ 'down'
1434
+ ]))
1404
1435
  }).strict();
1405
1436
  export const richCaptionWordAnimationSchema = richcaptionpropertiesRichCaptionWordAnimationSchema;
1406
1437
  /**
1407
1438
  * Text alignment properties (horizontal and vertical).
1408
1439
  */
1409
1440
  export const richtextpropertiesRichTextAlignmentSchema = z.object({
1410
- horizontal: z.optional(z.enum(["left", "center", "right"])),
1411
- vertical: z.optional(z.enum(["top", "middle", "bottom"])),
1441
+ horizontal: z.optional(z.enum([
1442
+ 'left',
1443
+ 'center',
1444
+ 'right'
1445
+ ])),
1446
+ vertical: z.optional(z.enum([
1447
+ 'top',
1448
+ 'middle',
1449
+ 'bottom'
1450
+ ]))
1412
1451
  }).strict();
1413
1452
  export const richTextAlignmentSchema = richtextpropertiesRichTextAlignmentSchema;
1414
1453
  /**
@@ -1416,12 +1455,12 @@ export const richTextAlignmentSchema = richtextpropertiesRichTextAlignmentSchema
1416
1455
  */
1417
1456
  export const richtextpropertiesRichTextAnimationSchema = z.object({
1418
1457
  preset: z.enum([
1419
- "fadeIn",
1420
- "slideIn",
1421
- "typewriter",
1422
- "ascend",
1423
- "shift",
1424
- "movingLetters",
1458
+ 'fadeIn',
1459
+ 'slideIn',
1460
+ 'typewriter',
1461
+ 'ascend',
1462
+ 'shift',
1463
+ 'movingLetters'
1425
1464
  ]),
1426
1465
  duration: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1427
1466
  return undefined; if (Array.isArray(v))
@@ -1430,8 +1469,13 @@ export const richtextpropertiesRichTextAnimationSchema = z.object({
1430
1469
  return v;
1431
1470
  return Number(v);
1432
1471
  } return v; }), z.number().gte(0.1).lte(30)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1433
- style: z.optional(z.enum(["character", "word"])),
1434
- direction: z.optional(z.enum(["left", "right", "up", "down"])),
1472
+ style: z.optional(z.enum(['character', 'word'])),
1473
+ direction: z.optional(z.enum([
1474
+ 'left',
1475
+ 'right',
1476
+ 'up',
1477
+ 'down'
1478
+ ]))
1435
1479
  }).strict();
1436
1480
  export const richTextAnimationSchema = richtextpropertiesRichTextAnimationSchema;
1437
1481
  /**
@@ -1452,7 +1496,7 @@ export const richtextpropertiesRichTextBackgroundSchema = z.object({
1452
1496
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1453
1497
  return v;
1454
1498
  return Number(v);
1455
- } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1499
+ } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
1456
1500
  }).strict();
1457
1501
  export const richTextBackgroundSchema = richtextpropertiesRichTextBackgroundSchema;
1458
1502
  /**
@@ -1466,7 +1510,7 @@ export const richtextpropertiesRichTextBorderSchema = z.object({
1466
1510
  return v;
1467
1511
  return Number(v);
1468
1512
  } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1469
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
1513
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
1470
1514
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1471
1515
  return undefined; if (Array.isArray(v))
1472
1516
  return v; if (typeof v === 'string') {
@@ -1480,13 +1524,13 @@ export const richtextpropertiesRichTextBorderSchema = z.object({
1480
1524
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1481
1525
  return v;
1482
1526
  return Number(v);
1483
- } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1527
+ } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
1484
1528
  }).strict();
1485
1529
  /**
1486
1530
  * Gradient properties for text fill.
1487
1531
  */
1488
1532
  export const richtextpropertiesRichTextGradientSchema = z.object({
1489
- type: z.optional(z.enum(["linear", "radial"])),
1533
+ type: z.optional(z.enum(['linear', 'radial'])),
1490
1534
  angle: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1491
1535
  return undefined; if (Array.isArray(v))
1492
1536
  return v; if (typeof v === 'string') {
@@ -1494,8 +1538,7 @@ export const richtextpropertiesRichTextGradientSchema = z.object({
1494
1538
  return v;
1495
1539
  return Number(v);
1496
1540
  } return v; }), z.number().gte(0).lte(360)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1497
- stops: z
1498
- .array(z.object({
1541
+ stops: z.array(z.object({
1499
1542
  offset: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1500
1543
  return undefined; if (Array.isArray(v))
1501
1544
  return v; if (typeof v === 'string') {
@@ -1503,9 +1546,8 @@ export const richtextpropertiesRichTextGradientSchema = z.object({
1503
1546
  return v;
1504
1547
  return Number(v);
1505
1548
  } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1506
- color: z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1507
- }))
1508
- .min(2),
1549
+ color: z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1550
+ })).min(2)
1509
1551
  }).strict();
1510
1552
  export const richTextGradientSchema = richtextpropertiesRichTextGradientSchema;
1511
1553
  /**
@@ -1539,7 +1581,7 @@ export const richtextpropertiesRichTextPaddingSchema = z.object({
1539
1581
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1540
1582
  return v;
1541
1583
  return Number(v);
1542
- } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1584
+ } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
1543
1585
  }).strict();
1544
1586
  /**
1545
1587
  * Text shadow properties.
@@ -1566,14 +1608,14 @@ export const richtextpropertiesRichTextShadowSchema = z.object({
1566
1608
  return v;
1567
1609
  return Number(v);
1568
1610
  } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1569
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
1611
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
1570
1612
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1571
1613
  return undefined; if (Array.isArray(v))
1572
1614
  return v; if (typeof v === 'string') {
1573
1615
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1574
1616
  return v;
1575
1617
  return Number(v);
1576
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
1618
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
1577
1619
  }).strict();
1578
1620
  export const richTextShadowSchema = richtextpropertiesRichTextShadowSchema;
1579
1621
  /**
@@ -1587,14 +1629,14 @@ export const richtextpropertiesRichTextStrokeSchema = z.object({
1587
1629
  return v;
1588
1630
  return Number(v);
1589
1631
  } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1590
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
1632
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
1591
1633
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1592
1634
  return undefined; if (Array.isArray(v))
1593
1635
  return v; if (typeof v === 'string') {
1594
1636
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1595
1637
  return v;
1596
1638
  return Number(v);
1597
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1639
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
1598
1640
  }).strict();
1599
1641
  export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
1600
1642
  /**
@@ -1603,20 +1645,21 @@ export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
1603
1645
  export const richcaptionpropertiesRichCaptionActiveSchema = z.object({
1604
1646
  font: z.optional(richcaptionpropertiesRichCaptionActiveFontSchema),
1605
1647
  stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
1648
+ shadow: z.optional(richtextpropertiesRichTextShadowSchema),
1606
1649
  scale: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1607
1650
  return undefined; if (Array.isArray(v))
1608
1651
  return v; if (typeof v === 'string') {
1609
1652
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1610
1653
  return v;
1611
1654
  return Number(v);
1612
- } return v; }), z.number().gte(0.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1655
+ } return v; }), z.number().gte(0.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
1613
1656
  }).strict();
1614
1657
  export const richCaptionActiveSchema = richcaptionpropertiesRichCaptionActiveSchema;
1615
1658
  /**
1616
1659
  * Font properties for rich text.
1617
1660
  */
1618
1661
  export const richtextpropertiesRichTextFontSchema = z.object({
1619
- family: z.optional(z.string()).default("Open Sans"),
1662
+ family: z.optional(z.string()).default('Open Sans'),
1620
1663
  size: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1621
1664
  return undefined; if (Array.isArray(v))
1622
1665
  return v; if (typeof v === 'string') {
@@ -1624,8 +1667,8 @@ export const richtextpropertiesRichTextFontSchema = z.object({
1624
1667
  return v;
1625
1668
  return Number(v);
1626
1669
  } return v; }), z.number().int().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
1627
- weight: z.optional(z.unknown()).default("400"),
1628
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
1670
+ weight: z.optional(z.unknown()).default('400'),
1671
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
1629
1672
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1630
1673
  return undefined; if (Array.isArray(v))
1631
1674
  return v; if (typeof v === 'string') {
@@ -1634,7 +1677,7 @@ export const richtextpropertiesRichTextFontSchema = z.object({
1634
1677
  return Number(v);
1635
1678
  } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1636
1679
  background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1637
- stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
1680
+ stroke: z.optional(richtextpropertiesRichTextStrokeSchema)
1638
1681
  }).strict();
1639
1682
  export const richTextFontSchema = richtextpropertiesRichTextFontSchema;
1640
1683
  /**
@@ -1662,9 +1705,18 @@ export const richtextpropertiesRichTextStyleSchema = z.object({
1662
1705
  return v;
1663
1706
  return Number(v);
1664
1707
  } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1.2),
1665
- textTransform: z.optional(z.enum(["none", "uppercase", "lowercase", "capitalize"])),
1666
- textDecoration: z.optional(z.enum(["none", "underline", "line-through"])),
1667
- gradient: z.optional(richtextpropertiesRichTextGradientSchema),
1708
+ textTransform: z.optional(z.enum([
1709
+ 'none',
1710
+ 'uppercase',
1711
+ 'lowercase',
1712
+ 'capitalize'
1713
+ ])),
1714
+ textDecoration: z.optional(z.enum([
1715
+ 'none',
1716
+ 'underline',
1717
+ 'line-through'
1718
+ ])),
1719
+ gradient: z.optional(richtextpropertiesRichTextGradientSchema)
1668
1720
  }).strict();
1669
1721
  export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
1670
1722
  /**
@@ -1674,7 +1726,7 @@ export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
1674
1726
  *
1675
1727
  */
1676
1728
  export const richcaptionassetRichCaptionAssetSchema = z.object({
1677
- type: z.enum(["rich-caption"]),
1729
+ type: z.enum(['rich-caption']),
1678
1730
  src: z.string().min(1),
1679
1731
  font: z.optional(richcaptionpropertiesRichCaptionFontSchema),
1680
1732
  style: z.optional(richtextpropertiesRichTextStyleSchema),
@@ -1682,16 +1734,19 @@ export const richcaptionassetRichCaptionAssetSchema = z.object({
1682
1734
  shadow: z.optional(richtextpropertiesRichTextShadowSchema),
1683
1735
  background: z.optional(richtextpropertiesRichTextBackgroundSchema),
1684
1736
  border: z.optional(richtextpropertiesRichTextBorderSchema),
1685
- padding: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1737
+ padding: z.optional(z.union([
1738
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1686
1739
  return undefined; if (Array.isArray(v))
1687
1740
  return v; if (typeof v === 'string') {
1688
1741
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1689
1742
  return v;
1690
1743
  return Number(v);
1691
- } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), richtextpropertiesRichTextPaddingSchema])),
1744
+ } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1745
+ richtextpropertiesRichTextPaddingSchema
1746
+ ])),
1692
1747
  align: z.optional(richtextpropertiesRichTextAlignmentSchema),
1693
1748
  active: z.optional(richcaptionpropertiesRichCaptionActiveSchema),
1694
- wordAnimation: z.optional(richcaptionpropertiesRichCaptionWordAnimationSchema),
1749
+ wordAnimation: z.optional(richcaptionpropertiesRichCaptionWordAnimationSchema)
1695
1750
  }).strict();
1696
1751
  export const richCaptionAssetSchema = richcaptionassetRichCaptionAssetSchema;
1697
1752
  /**
@@ -1700,7 +1755,7 @@ export const richCaptionAssetSchema = richcaptionassetRichCaptionAssetSchema;
1700
1755
  *
1701
1756
  */
1702
1757
  export const richtextassetRichTextAssetSchema = z.object({
1703
- type: z.enum(["rich-text"]),
1758
+ type: z.enum(['rich-text']),
1704
1759
  text: z.string().max(5000),
1705
1760
  font: z.optional(richtextpropertiesRichTextFontSchema),
1706
1761
  style: z.optional(richtextpropertiesRichTextStyleSchema),
@@ -1708,15 +1763,18 @@ export const richtextassetRichTextAssetSchema = z.object({
1708
1763
  shadow: z.optional(richtextpropertiesRichTextShadowSchema),
1709
1764
  background: z.optional(richtextpropertiesRichTextBackgroundSchema),
1710
1765
  border: z.optional(richtextpropertiesRichTextBorderSchema),
1711
- padding: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1766
+ padding: z.optional(z.union([
1767
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1712
1768
  return undefined; if (Array.isArray(v))
1713
1769
  return v; if (typeof v === 'string') {
1714
1770
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1715
1771
  return v;
1716
1772
  return Number(v);
1717
- } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), richtextpropertiesRichTextPaddingSchema])),
1773
+ } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1774
+ richtextpropertiesRichTextPaddingSchema
1775
+ ])),
1718
1776
  align: z.optional(richtextpropertiesRichTextAlignmentSchema),
1719
- animation: z.optional(richtextpropertiesRichTextAnimationSchema),
1777
+ animation: z.optional(richtextpropertiesRichTextAnimationSchema)
1720
1778
  }).strict();
1721
1779
  export const richTextAssetSchema = richtextassetRichTextAssetSchema;
1722
1780
  /**
@@ -1725,8 +1783,8 @@ export const richTextAssetSchema = richtextassetRichTextAssetSchema;
1725
1783
  export const transferresponseattributesTransferResponseAttributesSchema = z.object({
1726
1784
  id: z.optional(z.string()),
1727
1785
  owner: z.optional(z.string()),
1728
- status: z.optional(z.enum(["queued", "failed"])),
1729
- created: z.optional(z.string()),
1786
+ status: z.optional(z.enum(['queued', 'failed'])),
1787
+ created: z.optional(z.string())
1730
1788
  }).strict();
1731
1789
  export const transferResponseAttributesSchema = transferresponseattributesTransferResponseAttributesSchema;
1732
1790
  /**
@@ -1734,14 +1792,14 @@ export const transferResponseAttributesSchema = transferresponseattributesTransf
1734
1792
  */
1735
1793
  export const transferresponsedataTransferResponseDataSchema = z.object({
1736
1794
  type: z.optional(z.string()),
1737
- attributes: z.optional(transferresponseattributesTransferResponseAttributesSchema),
1795
+ attributes: z.optional(transferresponseattributesTransferResponseAttributesSchema)
1738
1796
  }).strict();
1739
1797
  export const transferResponseDataSchema = transferresponsedataTransferResponseDataSchema;
1740
1798
  /**
1741
1799
  * 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.
1742
1800
  */
1743
1801
  export const transferresponseTransferResponseSchema = z.object({
1744
- data: transferresponsedataTransferResponseDataSchema,
1802
+ data: transferresponsedataTransferResponseDataSchema
1745
1803
  }).strict();
1746
1804
  export const transferResponseSchema = transferresponseTransferResponseSchema;
1747
1805
  /**
@@ -1750,7 +1808,7 @@ export const transferResponseSchema = transferresponseTransferResponseSchema;
1750
1808
  export const transferTransferSchema = z.object({
1751
1809
  url: z.string(),
1752
1810
  id: z.string(),
1753
- destinations: z.array(destinationsDestinationsSchema),
1811
+ destinations: z.array(destinationsDestinationsSchema)
1754
1812
  }).strict();
1755
1813
  export const transferSchema = transferTransferSchema;
1756
1814
  /**
@@ -1759,8 +1817,12 @@ export const transferSchema = transferTransferSchema;
1759
1817
  *
1760
1818
  */
1761
1819
  export const shapeassetShapeAssetSchema = z.object({
1762
- type: z.enum(["shape"]),
1763
- shape: z.enum(["rectangle", "circle", "line"]),
1820
+ type: z.enum(['shape']),
1821
+ shape: z.enum([
1822
+ 'rectangle',
1823
+ 'circle',
1824
+ 'line'
1825
+ ]),
1764
1826
  width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1765
1827
  return undefined; if (Array.isArray(v))
1766
1828
  return v; if (typeof v === 'string') {
@@ -1783,7 +1845,7 @@ export const shapeassetShapeAssetSchema = z.object({
1783
1845
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1784
1846
  return v;
1785
1847
  return Number(v);
1786
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1848
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1787
1849
  })),
1788
1850
  stroke: z.optional(z.object({
1789
1851
  color: z.optional(z.string()),
@@ -1793,7 +1855,7 @@ export const shapeassetShapeAssetSchema = z.object({
1793
1855
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1794
1856
  return v;
1795
1857
  return Number(v);
1796
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1858
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1797
1859
  })),
1798
1860
  rectangle: z.optional(z.object({
1799
1861
  width: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1816,7 +1878,7 @@ export const shapeassetShapeAssetSchema = z.object({
1816
1878
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1817
1879
  return v;
1818
1880
  return Number(v);
1819
- } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1881
+ } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1820
1882
  })),
1821
1883
  circle: z.optional(z.object({
1822
1884
  radius: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1825,7 +1887,7 @@ export const shapeassetShapeAssetSchema = z.object({
1825
1887
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1826
1888
  return v;
1827
1889
  return Number(v);
1828
- } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1890
+ } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1829
1891
  })),
1830
1892
  line: z.optional(z.object({
1831
1893
  length: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1841,8 +1903,8 @@ export const shapeassetShapeAssetSchema = z.object({
1841
1903
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1842
1904
  return v;
1843
1905
  return Number(v);
1844
- } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1845
- })),
1906
+ } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1907
+ }))
1846
1908
  }).strict();
1847
1909
  export const shapeAssetSchema = shapeassetShapeAssetSchema;
1848
1910
  /**
@@ -1862,7 +1924,7 @@ export const sizeSizeSchema = z.object({
1862
1924
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1863
1925
  return v;
1864
1926
  return Number(v);
1865
- } return v; }), z.number().int().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1927
+ } return v; }), z.number().int().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1866
1928
  }).strict();
1867
1929
  export const sizeSchema = sizeSizeSchema;
1868
1930
  /**
@@ -1870,25 +1932,35 @@ export const sizeSchema = sizeSizeSchema;
1870
1932
  */
1871
1933
  export const renditionRenditionSchema = z.object({
1872
1934
  format: z.optional(z.enum([
1873
- "mp4",
1874
- "webm",
1875
- "mov",
1876
- "avi",
1877
- "mkv",
1878
- "ogv",
1879
- "wmv",
1880
- "avif",
1881
- "gif",
1882
- "mp3",
1883
- "wav",
1884
- "jpg",
1885
- "png",
1886
- "webp",
1887
- "tif",
1935
+ 'mp4',
1936
+ 'webm',
1937
+ 'mov',
1938
+ 'avi',
1939
+ 'mkv',
1940
+ 'ogv',
1941
+ 'wmv',
1942
+ 'avif',
1943
+ 'gif',
1944
+ 'mp3',
1945
+ 'wav',
1946
+ 'jpg',
1947
+ 'png',
1948
+ 'webp',
1949
+ 'tif'
1888
1950
  ])),
1889
1951
  size: z.optional(sizeSizeSchema),
1890
- fit: z.optional(z.enum(["cover", "contain", "crop"])),
1891
- resolution: z.optional(z.enum(["preview", "mobile", "sd", "hd", "fhd"])),
1952
+ fit: z.optional(z.enum([
1953
+ 'cover',
1954
+ 'contain',
1955
+ 'crop'
1956
+ ])),
1957
+ resolution: z.optional(z.enum([
1958
+ 'preview',
1959
+ 'mobile',
1960
+ 'sd',
1961
+ 'hd',
1962
+ 'fhd'
1963
+ ])),
1892
1964
  quality: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1893
1965
  return undefined; if (Array.isArray(v))
1894
1966
  return v; if (typeof v === 'string') {
@@ -1907,7 +1979,7 @@ export const renditionRenditionSchema = z.object({
1907
1979
  z.literal(48),
1908
1980
  z.literal(50),
1909
1981
  z.literal(59.94),
1910
- z.literal(60),
1982
+ z.literal(60)
1911
1983
  ])),
1912
1984
  speed: z.optional(speedSpeedSchema),
1913
1985
  keyframeInterval: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1920,7 +1992,7 @@ export const renditionRenditionSchema = z.object({
1920
1992
  fixOffset: z.optional(z.boolean()),
1921
1993
  fixRotation: z.optional(z.boolean()),
1922
1994
  enhance: z.optional(enhancementsEnhancementsSchema),
1923
- filename: z.optional(z.string()),
1995
+ filename: z.optional(z.string())
1924
1996
  }).strict();
1925
1997
  export const renditionSchema = renditionRenditionSchema;
1926
1998
  /**
@@ -1928,7 +2000,7 @@ export const renditionSchema = renditionRenditionSchema;
1928
2000
  */
1929
2001
  export const outputsOutputsSchema = z.object({
1930
2002
  renditions: z.optional(z.array(renditionRenditionSchema)),
1931
- transcription: z.optional(transcriptionTranscriptionSchema),
2003
+ transcription: z.optional(transcriptionTranscriptionSchema)
1932
2004
  }).strict();
1933
2005
  export const outputsSchema = outputsOutputsSchema;
1934
2006
  /**
@@ -1937,12 +2009,12 @@ export const outputsSchema = outputsOutputsSchema;
1937
2009
  export const renditionresponseattributesRenditionResponseAttributesSchema = z.object({
1938
2010
  id: z.string(),
1939
2011
  status: z.optional(z.enum([
1940
- "queued",
1941
- "importing",
1942
- "ready",
1943
- "failed",
1944
- "deleted",
1945
- "overwritten",
2012
+ 'queued',
2013
+ 'importing',
2014
+ 'ready',
2015
+ 'failed',
2016
+ 'deleted',
2017
+ 'overwritten'
1946
2018
  ])),
1947
2019
  url: z.optional(z.string()),
1948
2020
  executionTime: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1980,14 +2052,14 @@ export const renditionresponseattributesRenditionResponseAttributesSchema = z.ob
1980
2052
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1981
2053
  return v;
1982
2054
  return Number(v);
1983
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2055
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1984
2056
  }).strict();
1985
2057
  export const renditionResponseAttributesSchema = renditionresponseattributesRenditionResponseAttributesSchema;
1986
2058
  /**
1987
2059
  * The list of outputs generated from the source file. Currently supports renditions which are versions of the source file with different transformations applied.
1988
2060
  */
1989
2061
  export const outputsresponseOutputsResponseSchema = z.object({
1990
- renditions: z.optional(z.array(renditionresponseattributesRenditionResponseAttributesSchema)),
2062
+ renditions: z.optional(z.array(renditionresponseattributesRenditionResponseAttributesSchema))
1991
2063
  }).strict();
1992
2064
  export const outputsResponseSchema = outputsresponseOutputsResponseSchema;
1993
2065
  /**
@@ -1999,12 +2071,12 @@ export const sourceresponseattributesSourceResponseAttributesSchema = z.object({
1999
2071
  input: z.optional(z.string()),
2000
2072
  source: z.optional(z.string()),
2001
2073
  status: z.optional(z.enum([
2002
- "queued",
2003
- "importing",
2004
- "ready",
2005
- "failed",
2006
- "deleted",
2007
- "overwritten",
2074
+ 'queued',
2075
+ 'importing',
2076
+ 'ready',
2077
+ 'failed',
2078
+ 'deleted',
2079
+ 'overwritten'
2008
2080
  ])),
2009
2081
  outputs: z.optional(outputsresponseOutputsResponseSchema),
2010
2082
  width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -2036,7 +2108,7 @@ export const sourceresponseattributesSourceResponseAttributesSchema = z.object({
2036
2108
  return Number(v);
2037
2109
  } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2038
2110
  created: z.optional(z.string()),
2039
- updated: z.optional(z.string()),
2111
+ updated: z.optional(z.string())
2040
2112
  }).strict();
2041
2113
  export const sourceResponseAttributesSchema = sourceresponseattributesSourceResponseAttributesSchema;
2042
2114
  /**
@@ -2045,21 +2117,21 @@ export const sourceResponseAttributesSchema = sourceresponseattributesSourceResp
2045
2117
  export const sourceresponsedataSourceResponseDataSchema = z.object({
2046
2118
  type: z.string(),
2047
2119
  id: z.string(),
2048
- attributes: sourceresponseattributesSourceResponseAttributesSchema,
2120
+ attributes: sourceresponseattributesSourceResponseAttributesSchema
2049
2121
  }).strict();
2050
2122
  export const sourceResponseDataSchema = sourceresponsedataSourceResponseDataSchema;
2051
2123
  /**
2052
2124
  * A list of all ingested source files fetched or uploaded to a users account.
2053
2125
  */
2054
2126
  export const sourcelistresponseSourceListResponseSchema = z.object({
2055
- data: z.array(sourceresponsedataSourceResponseDataSchema),
2127
+ data: z.array(sourceresponsedataSourceResponseDataSchema)
2056
2128
  }).strict();
2057
2129
  export const sourceListResponseSchema = sourcelistresponseSourceListResponseSchema;
2058
2130
  /**
2059
2131
  * 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.
2060
2132
  */
2061
2133
  export const sourceresponseSourceResponseSchema = z.object({
2062
- data: sourceresponsedataSourceResponseDataSchema,
2134
+ data: sourceresponsedataSourceResponseDataSchema
2063
2135
  }).strict();
2064
2136
  export const sourceResponseSchema = sourceresponseSourceResponseSchema;
2065
2137
  /**
@@ -2070,7 +2142,7 @@ export const sourceSourceSchema = z.object({
2070
2142
  url: z.optional(z.string()),
2071
2143
  outputs: z.optional(outputsOutputsSchema),
2072
2144
  destinations: z.optional(destinationsDestinationsSchema),
2073
- callback: z.optional(z.string()),
2145
+ callback: z.optional(z.string())
2074
2146
  }).strict();
2075
2147
  export const sourceSchema = sourceSourceSchema;
2076
2148
  /**
@@ -2078,14 +2150,18 @@ export const sourceSchema = sourceSourceSchema;
2078
2150
  */
2079
2151
  export const soundtrackSoundtrackSchema = z.object({
2080
2152
  src: z.string().min(1).regex(/\S/),
2081
- effect: z.optional(z.enum(["fadeIn", "fadeOut", "fadeInFadeOut"])),
2153
+ effect: z.optional(z.enum([
2154
+ 'fadeIn',
2155
+ 'fadeOut',
2156
+ 'fadeInFadeOut'
2157
+ ])),
2082
2158
  volume: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2083
2159
  return undefined; if (Array.isArray(v))
2084
2160
  return v; if (typeof v === 'string') {
2085
2161
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2086
2162
  return v;
2087
2163
  return Number(v);
2088
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2164
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
2089
2165
  }).strict();
2090
2166
  export const soundtrackSchema = soundtrackSoundtrackSchema;
2091
2167
  /**
@@ -2101,7 +2177,7 @@ export const svgpropertiesSvgGradientStopSchema = z.object({
2101
2177
  return v;
2102
2178
  return Number(v);
2103
2179
  } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2104
- color: z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2180
+ color: z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2105
2181
  }).strict();
2106
2182
  export const svgGradientStopSchema = svgpropertiesSvgGradientStopSchema;
2107
2183
  /**
@@ -2110,7 +2186,7 @@ export const svgGradientStopSchema = svgpropertiesSvgGradientStopSchema;
2110
2186
  *
2111
2187
  */
2112
2188
  export const svgpropertiesSvgLinearGradientFillSchema = z.object({
2113
- type: z.enum(["linear"]),
2189
+ type: z.enum(['linear']),
2114
2190
  angle: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2115
2191
  return undefined; if (Array.isArray(v))
2116
2192
  return v; if (typeof v === 'string') {
@@ -2125,7 +2201,7 @@ export const svgpropertiesSvgLinearGradientFillSchema = z.object({
2125
2201
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2126
2202
  return v;
2127
2203
  return Number(v);
2128
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2204
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
2129
2205
  }).strict();
2130
2206
  export const svgLinearGradientFillSchema = svgpropertiesSvgLinearGradientFillSchema;
2131
2207
  /**
@@ -2134,7 +2210,7 @@ export const svgLinearGradientFillSchema = svgpropertiesSvgLinearGradientFillSch
2134
2210
  *
2135
2211
  */
2136
2212
  export const svgpropertiesSvgRadialGradientFillSchema = z.object({
2137
- type: z.enum(["radial"]),
2213
+ type: z.enum(['radial']),
2138
2214
  stops: z.array(svgpropertiesSvgGradientStopSchema).min(2),
2139
2215
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2140
2216
  return undefined; if (Array.isArray(v))
@@ -2142,7 +2218,7 @@ export const svgpropertiesSvgRadialGradientFillSchema = z.object({
2142
2218
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2143
2219
  return v;
2144
2220
  return Number(v);
2145
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2221
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
2146
2222
  }).strict();
2147
2223
  export const svgRadialGradientFillSchema = svgpropertiesSvgRadialGradientFillSchema;
2148
2224
  /**
@@ -2171,32 +2247,29 @@ export const svgpropertiesSvgShadowSchema = z.object({
2171
2247
  return v;
2172
2248
  return Number(v);
2173
2249
  } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2174
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
2250
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
2175
2251
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2176
2252
  return undefined; if (Array.isArray(v))
2177
2253
  return v; if (typeof v === 'string') {
2178
2254
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2179
2255
  return v;
2180
2256
  return Number(v);
2181
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
2257
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
2182
2258
  }).strict();
2183
2259
  export const svgShadowSchema = svgpropertiesSvgShadowSchema;
2184
2260
  /**
2185
2261
  * A solid color fill for SVG shapes.
2186
2262
  */
2187
2263
  export const svgpropertiesSvgSolidFillSchema = z.object({
2188
- type: z.enum(["solid"]),
2189
- color: z
2190
- .string()
2191
- .regex(/^#[A-Fa-f0-9]{6}$/)
2192
- .default("#000000"),
2264
+ type: z.enum(['solid']),
2265
+ color: z.string().regex(/^#[A-Fa-f0-9]{6}$/).default('#000000'),
2193
2266
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2194
2267
  return undefined; if (Array.isArray(v))
2195
2268
  return v; if (typeof v === 'string') {
2196
2269
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2197
2270
  return v;
2198
2271
  return Number(v);
2199
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2272
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
2200
2273
  }).strict();
2201
2274
  export const svgSolidFillSchema = svgpropertiesSvgSolidFillSchema;
2202
2275
  /**
@@ -2216,7 +2289,7 @@ export const svgFillSchema = svgpropertiesSvgFillSchema;
2216
2289
  *
2217
2290
  */
2218
2291
  export const svgpropertiesSvgStrokeSchema = z.object({
2219
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
2292
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
2220
2293
  width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2221
2294
  return undefined; if (Array.isArray(v))
2222
2295
  return v; if (typeof v === 'string') {
@@ -2231,8 +2304,16 @@ export const svgpropertiesSvgStrokeSchema = z.object({
2231
2304
  return v;
2232
2305
  return Number(v);
2233
2306
  } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2234
- lineCap: z.optional(z.enum(["butt", "round", "square"])),
2235
- lineJoin: z.optional(z.enum(["miter", "round", "bevel"])),
2307
+ lineCap: z.optional(z.enum([
2308
+ 'butt',
2309
+ 'round',
2310
+ 'square'
2311
+ ])),
2312
+ lineJoin: z.optional(z.enum([
2313
+ 'miter',
2314
+ 'round',
2315
+ 'bevel'
2316
+ ])),
2236
2317
  dashArray: z.optional(z.array(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2237
2318
  return undefined; if (Array.isArray(v))
2238
2319
  return v; if (typeof v === 'string') {
@@ -2246,7 +2327,7 @@ export const svgpropertiesSvgStrokeSchema = z.object({
2246
2327
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2247
2328
  return v;
2248
2329
  return Number(v);
2249
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2330
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
2250
2331
  }).strict();
2251
2332
  export const svgStrokeSchema = svgpropertiesSvgStrokeSchema;
2252
2333
  /**
@@ -2295,7 +2376,7 @@ export const svgpropertiesSvgTransformSchema = z.object({
2295
2376
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2296
2377
  return v;
2297
2378
  return Number(v);
2298
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
2379
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
2299
2380
  }).strict();
2300
2381
  export const svgTransformSchema = svgpropertiesSvgTransformSchema;
2301
2382
  /**
@@ -2304,7 +2385,7 @@ export const svgTransformSchema = svgpropertiesSvgTransformSchema;
2304
2385
  *
2305
2386
  */
2306
2387
  export const svgshapesSvgArrowShapeSchema = z.object({
2307
- type: z.enum(["arrow"]),
2388
+ type: z.enum(['arrow']),
2308
2389
  length: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2309
2390
  return undefined; if (Array.isArray(v))
2310
2391
  return v; if (typeof v === 'string') {
@@ -2332,7 +2413,7 @@ export const svgshapesSvgArrowShapeSchema = z.object({
2332
2413
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2333
2414
  return v;
2334
2415
  return Number(v);
2335
- } return v; }), z.number().gte(1).lte(1000)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2416
+ } return v; }), z.number().gte(1).lte(1000)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2336
2417
  }).strict();
2337
2418
  export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
2338
2419
  /**
@@ -2341,14 +2422,14 @@ export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
2341
2422
  *
2342
2423
  */
2343
2424
  export const svgshapesSvgCircleShapeSchema = z.object({
2344
- type: z.enum(["circle"]),
2425
+ type: z.enum(['circle']),
2345
2426
  radius: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2346
2427
  return undefined; if (Array.isArray(v))
2347
2428
  return v; if (typeof v === 'string') {
2348
2429
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2349
2430
  return v;
2350
2431
  return Number(v);
2351
- } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2432
+ } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2352
2433
  }).strict();
2353
2434
  export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
2354
2435
  /**
@@ -2357,7 +2438,7 @@ export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
2357
2438
  *
2358
2439
  */
2359
2440
  export const svgshapesSvgCrossShapeSchema = z.object({
2360
- type: z.enum(["cross"]),
2441
+ type: z.enum(['cross']),
2361
2442
  width: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2362
2443
  return undefined; if (Array.isArray(v))
2363
2444
  return v; if (typeof v === 'string') {
@@ -2378,7 +2459,7 @@ export const svgshapesSvgCrossShapeSchema = z.object({
2378
2459
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2379
2460
  return v;
2380
2461
  return Number(v);
2381
- } return v; }), z.number().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2462
+ } return v; }), z.number().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2382
2463
  }).strict();
2383
2464
  export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
2384
2465
  /**
@@ -2387,7 +2468,7 @@ export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
2387
2468
  *
2388
2469
  */
2389
2470
  export const svgshapesSvgEllipseShapeSchema = z.object({
2390
- type: z.enum(["ellipse"]),
2471
+ type: z.enum(['ellipse']),
2391
2472
  radiusX: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2392
2473
  return undefined; if (Array.isArray(v))
2393
2474
  return v; if (typeof v === 'string') {
@@ -2401,7 +2482,7 @@ export const svgshapesSvgEllipseShapeSchema = z.object({
2401
2482
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2402
2483
  return v;
2403
2484
  return Number(v);
2404
- } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2485
+ } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2405
2486
  }).strict();
2406
2487
  export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
2407
2488
  /**
@@ -2410,14 +2491,14 @@ export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
2410
2491
  *
2411
2492
  */
2412
2493
  export const svgshapesSvgHeartShapeSchema = z.object({
2413
- type: z.enum(["heart"]),
2494
+ type: z.enum(['heart']),
2414
2495
  size: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2415
2496
  return undefined; if (Array.isArray(v))
2416
2497
  return v; if (typeof v === 'string') {
2417
2498
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2418
2499
  return v;
2419
2500
  return Number(v);
2420
- } return v; }), z.number().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2501
+ } return v; }), z.number().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2421
2502
  }).strict();
2422
2503
  export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
2423
2504
  /**
@@ -2426,7 +2507,7 @@ export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
2426
2507
  *
2427
2508
  */
2428
2509
  export const svgshapesSvgLineShapeSchema = z.object({
2429
- type: z.enum(["line"]),
2510
+ type: z.enum(['line']),
2430
2511
  length: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2431
2512
  return undefined; if (Array.isArray(v))
2432
2513
  return v; if (typeof v === 'string') {
@@ -2440,7 +2521,7 @@ export const svgshapesSvgLineShapeSchema = z.object({
2440
2521
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2441
2522
  return v;
2442
2523
  return Number(v);
2443
- } return v; }), z.number().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2524
+ } return v; }), z.number().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2444
2525
  }).strict();
2445
2526
  export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
2446
2527
  /**
@@ -2461,8 +2542,8 @@ export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
2461
2542
  *
2462
2543
  */
2463
2544
  export const svgshapesSvgPathShapeSchema = z.object({
2464
- type: z.enum(["path"]),
2465
- d: z.string().min(1).max(100000),
2545
+ type: z.enum(['path']),
2546
+ d: z.string().min(1).max(100000)
2466
2547
  }).strict();
2467
2548
  export const svgPathShapeSchema = svgshapesSvgPathShapeSchema;
2468
2549
  /**
@@ -2472,7 +2553,7 @@ export const svgPathShapeSchema = svgshapesSvgPathShapeSchema;
2472
2553
  *
2473
2554
  */
2474
2555
  export const svgshapesSvgPolygonShapeSchema = z.object({
2475
- type: z.enum(["polygon"]),
2556
+ type: z.enum(['polygon']),
2476
2557
  sides: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2477
2558
  return undefined; if (Array.isArray(v))
2478
2559
  return v; if (typeof v === 'string') {
@@ -2486,7 +2567,7 @@ export const svgshapesSvgPolygonShapeSchema = z.object({
2486
2567
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2487
2568
  return v;
2488
2569
  return Number(v);
2489
- } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2570
+ } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2490
2571
  }).strict();
2491
2572
  export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
2492
2573
  /**
@@ -2495,7 +2576,7 @@ export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
2495
2576
  *
2496
2577
  */
2497
2578
  export const svgshapesSvgRectangleShapeSchema = z.object({
2498
- type: z.enum(["rectangle"]),
2579
+ type: z.enum(['rectangle']),
2499
2580
  width: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2500
2581
  return undefined; if (Array.isArray(v))
2501
2582
  return v; if (typeof v === 'string') {
@@ -2516,7 +2597,7 @@ export const svgshapesSvgRectangleShapeSchema = z.object({
2516
2597
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2517
2598
  return v;
2518
2599
  return Number(v);
2519
- } return v; }), z.number().gte(0).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2600
+ } return v; }), z.number().gte(0).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
2520
2601
  }).strict();
2521
2602
  export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
2522
2603
  /**
@@ -2525,7 +2606,7 @@ export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
2525
2606
  *
2526
2607
  */
2527
2608
  export const svgshapesSvgRingShapeSchema = z.object({
2528
- type: z.enum(["ring"]),
2609
+ type: z.enum(['ring']),
2529
2610
  outerRadius: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2530
2611
  return undefined; if (Array.isArray(v))
2531
2612
  return v; if (typeof v === 'string') {
@@ -2539,7 +2620,7 @@ export const svgshapesSvgRingShapeSchema = z.object({
2539
2620
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2540
2621
  return v;
2541
2622
  return Number(v);
2542
- } return v; }), z.number().gte(0).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2623
+ } return v; }), z.number().gte(0).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2543
2624
  }).strict();
2544
2625
  export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
2545
2626
  /**
@@ -2549,7 +2630,7 @@ export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
2549
2630
  *
2550
2631
  */
2551
2632
  export const svgshapesSvgStarShapeSchema = z.object({
2552
- type: z.enum(["star"]),
2633
+ type: z.enum(['star']),
2553
2634
  points: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2554
2635
  return undefined; if (Array.isArray(v))
2555
2636
  return v; if (typeof v === 'string') {
@@ -2570,7 +2651,7 @@ export const svgshapesSvgStarShapeSchema = z.object({
2570
2651
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2571
2652
  return v;
2572
2653
  return Number(v);
2573
- } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2654
+ } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2574
2655
  }).strict();
2575
2656
  export const svgStarShapeSchema = svgshapesSvgStarShapeSchema;
2576
2657
  /**
@@ -2701,29 +2782,37 @@ export const svgAssetSchema = svgassetSvgAssetSchema;
2701
2782
  */
2702
2783
  export const templaterenderTemplateRenderSchema = z.object({
2703
2784
  id: z.string(),
2704
- merge: z.optional(z.array(mergefieldMergeFieldSchema)),
2785
+ merge: z.optional(z.array(mergefieldMergeFieldSchema))
2705
2786
  }).strict();
2706
2787
  export const templateRenderSchema = templaterenderTemplateRenderSchema;
2707
2788
  /**
2708
2789
  * Horizontal and vertical alignment properties for text.
2709
2790
  */
2710
2791
  export const textpropertiesTextAlignmentSchema = z.object({
2711
- horizontal: z.optional(z.enum(["left", "center", "right"])),
2712
- vertical: z.optional(z.enum(["top", "center", "bottom"])),
2792
+ horizontal: z.optional(z.enum([
2793
+ 'left',
2794
+ 'center',
2795
+ 'right'
2796
+ ])),
2797
+ vertical: z.optional(z.enum([
2798
+ 'top',
2799
+ 'center',
2800
+ 'bottom'
2801
+ ]))
2713
2802
  }).strict();
2714
2803
  export const textAlignmentSchema = textpropertiesTextAlignmentSchema;
2715
2804
  /**
2716
2805
  * Animation properties for text entrance effects.
2717
2806
  */
2718
2807
  export const textpropertiesTextAnimationSchema = z.object({
2719
- preset: z.enum(["typewriter"]),
2808
+ preset: z.enum(['typewriter']),
2720
2809
  duration: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2721
2810
  return undefined; if (Array.isArray(v))
2722
2811
  return v; if (typeof v === 'string') {
2723
2812
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2724
2813
  return v;
2725
2814
  return Number(v);
2726
- } return v; }), z.number().gte(0.1).lte(30)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2815
+ } return v; }), z.number().gte(0.1).lte(30)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
2727
2816
  }).strict();
2728
2817
  /**
2729
2818
  * Displays a background box behind the text.
@@ -2750,7 +2839,7 @@ export const textpropertiesTextBackgroundSchema = z.object({
2750
2839
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2751
2840
  return v;
2752
2841
  return Number(v);
2753
- } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2842
+ } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
2754
2843
  }).strict();
2755
2844
  export const textBackgroundSchema = textpropertiesTextBackgroundSchema;
2756
2845
  /**
@@ -2786,7 +2875,7 @@ export const textpropertiesTextFontSchema = z.object({
2786
2875
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2787
2876
  return v;
2788
2877
  return Number(v);
2789
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2878
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
2790
2879
  }).strict();
2791
2880
  export const textFontSchema = textpropertiesTextFontSchema;
2792
2881
  /**
@@ -2800,7 +2889,7 @@ export const textpropertiesTextStrokeSchema = z.object({
2800
2889
  return v;
2801
2890
  return Number(v);
2802
2891
  } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2803
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2892
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
2804
2893
  }).strict();
2805
2894
  /**
2806
2895
  * The TextAsset is used to add text and titles to a video. The text can be styled with built in and custom
@@ -2808,7 +2897,7 @@ export const textpropertiesTextStrokeSchema = z.object({
2808
2897
  *
2809
2898
  */
2810
2899
  export const textassetTextAssetSchema = z.object({
2811
- type: z.enum(["text"]),
2900
+ type: z.enum(['text']),
2812
2901
  text: z.string(),
2813
2902
  width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2814
2903
  return undefined; if (Array.isArray(v))
@@ -2829,14 +2918,14 @@ export const textassetTextAssetSchema = z.object({
2829
2918
  alignment: z.optional(textpropertiesTextAlignmentSchema),
2830
2919
  stroke: z.optional(textpropertiesTextStrokeSchema),
2831
2920
  animation: z.optional(textpropertiesTextAnimationSchema),
2832
- ellipsis: z.optional(z.string()),
2921
+ ellipsis: z.optional(z.string())
2833
2922
  }).strict();
2834
2923
  export const textAssetSchema = textassetTextAssetSchema;
2835
2924
  /**
2836
2925
  * The TextToImageAsset lets you create a dynamic image from a text prompt.
2837
2926
  */
2838
2927
  export const texttoimageassetTextToImageAssetSchema = z.object({
2839
- type: z.enum(["text-to-image"]),
2928
+ type: z.enum(['text-to-image']),
2840
2929
  prompt: z.string(),
2841
2930
  width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2842
2931
  return undefined; if (Array.isArray(v))
@@ -2852,7 +2941,7 @@ export const texttoimageassetTextToImageAssetSchema = z.object({
2852
2941
  return v;
2853
2942
  return Number(v);
2854
2943
  } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2855
- crop: z.optional(cropCropSchema),
2944
+ crop: z.optional(cropCropSchema)
2856
2945
  }).strict();
2857
2946
  export const textToImageAssetSchema = texttoimageassetTextToImageAssetSchema;
2858
2947
  /**
@@ -2872,16 +2961,36 @@ export const thumbnailThumbnailSchema = z.object({
2872
2961
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2873
2962
  return v;
2874
2963
  return Number(v);
2875
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2964
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2876
2965
  }).strict();
2877
2966
  export const thumbnailSchema = thumbnailThumbnailSchema;
2878
2967
  /**
2879
2968
  * The output format, render range and type of media to generate.
2880
2969
  */
2881
2970
  export const outputOutputSchema = z.object({
2882
- format: z.enum(["mp4", "gif", "mp3", "jpg", "png", "bmp"]),
2883
- resolution: z.optional(z.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
2884
- aspectRatio: z.optional(z.enum(["16:9", "9:16", "1:1", "4:5", "4:3"])),
2971
+ format: z.enum([
2972
+ 'mp4',
2973
+ 'gif',
2974
+ 'mp3',
2975
+ 'jpg',
2976
+ 'png',
2977
+ 'bmp'
2978
+ ]),
2979
+ resolution: z.optional(z.enum([
2980
+ 'preview',
2981
+ 'mobile',
2982
+ 'sd',
2983
+ 'hd',
2984
+ '1080',
2985
+ '4k'
2986
+ ])),
2987
+ aspectRatio: z.optional(z.enum([
2988
+ '16:9',
2989
+ '9:16',
2990
+ '1:1',
2991
+ '4:5',
2992
+ '4:3'
2993
+ ])),
2885
2994
  size: z.optional(sizeSizeSchema),
2886
2995
  fps: z.optional(z.union([
2887
2996
  z.literal(12),
@@ -2894,16 +3003,29 @@ export const outputOutputSchema = z.object({
2894
3003
  z.literal(48),
2895
3004
  z.literal(50),
2896
3005
  z.literal(59.94),
2897
- z.literal(60),
3006
+ z.literal(60)
3007
+ ])),
3008
+ scaleTo: z.optional(z.enum([
3009
+ 'preview',
3010
+ 'mobile',
3011
+ 'sd',
3012
+ 'hd',
3013
+ '1080',
3014
+ '4k'
3015
+ ])),
3016
+ quality: z.optional(z.enum([
3017
+ 'verylow',
3018
+ 'low',
3019
+ 'medium',
3020
+ 'high',
3021
+ 'veryhigh'
2898
3022
  ])),
2899
- scaleTo: z.optional(z.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
2900
- quality: z.optional(z.enum(["verylow", "low", "medium", "high", "veryhigh"])),
2901
3023
  repeat: z.optional(z.boolean()),
2902
3024
  mute: z.optional(z.boolean()),
2903
3025
  range: z.optional(rangeRangeSchema),
2904
3026
  poster: z.optional(posterPosterSchema),
2905
3027
  thumbnail: z.optional(thumbnailThumbnailSchema),
2906
- destinations: z.optional(z.array(destinationsDestinationsSchema)),
3028
+ destinations: z.optional(z.array(destinationsDestinationsSchema))
2907
3029
  }).strict();
2908
3030
  export const outputSchema = outputOutputSchema;
2909
3031
  /**
@@ -2911,133 +3033,133 @@ export const outputSchema = outputOutputSchema;
2911
3033
  */
2912
3034
  export const transitionTransitionSchema = z.object({
2913
3035
  in: z.optional(z.enum([
2914
- "none",
2915
- "fade",
2916
- "fadeSlow",
2917
- "fadeFast",
2918
- "reveal",
2919
- "revealSlow",
2920
- "revealFast",
2921
- "wipeLeft",
2922
- "wipeLeftSlow",
2923
- "wipeLeftFast",
2924
- "wipeRight",
2925
- "wipeRightSlow",
2926
- "wipeRightFast",
2927
- "slideLeft",
2928
- "slideLeftSlow",
2929
- "slideLeftFast",
2930
- "slideRight",
2931
- "slideRightSlow",
2932
- "slideRightFast",
2933
- "slideUp",
2934
- "slideUpSlow",
2935
- "slideUpFast",
2936
- "slideDown",
2937
- "slideDownSlow",
2938
- "slideDownFast",
2939
- "carouselLeft",
2940
- "carouselLeftSlow",
2941
- "carouselLeftFast",
2942
- "carouselRight",
2943
- "carouselRightSlow",
2944
- "carouselRightFast",
2945
- "carouselUp",
2946
- "carouselUpSlow",
2947
- "carouselUpFast",
2948
- "carouselDown",
2949
- "carouselDownSlow",
2950
- "carouselDownFast",
2951
- "shuffleTopRight",
2952
- "shuffleTopRightSlow",
2953
- "shuffleTopRightFast",
2954
- "shuffleRightTop",
2955
- "shuffleRightTopSlow",
2956
- "shuffleRightTopFast",
2957
- "shuffleRightBottom",
2958
- "shuffleRightBottomSlow",
2959
- "shuffleRightBottomFast",
2960
- "shuffleBottomRight",
2961
- "shuffleBottomRightSlow",
2962
- "shuffleBottomRightFast",
2963
- "shuffleBottomLeft",
2964
- "shuffleBottomLeftSlow",
2965
- "shuffleBottomLeftFast",
2966
- "shuffleLeftBottom",
2967
- "shuffleLeftBottomSlow",
2968
- "shuffleLeftBottomFast",
2969
- "shuffleLeftTop",
2970
- "shuffleLeftTopSlow",
2971
- "shuffleLeftTopFast",
2972
- "shuffleTopLeft",
2973
- "shuffleTopLeftSlow",
2974
- "shuffleTopLeftFast",
2975
- "zoom",
3036
+ 'none',
3037
+ 'fade',
3038
+ 'fadeSlow',
3039
+ 'fadeFast',
3040
+ 'reveal',
3041
+ 'revealSlow',
3042
+ 'revealFast',
3043
+ 'wipeLeft',
3044
+ 'wipeLeftSlow',
3045
+ 'wipeLeftFast',
3046
+ 'wipeRight',
3047
+ 'wipeRightSlow',
3048
+ 'wipeRightFast',
3049
+ 'slideLeft',
3050
+ 'slideLeftSlow',
3051
+ 'slideLeftFast',
3052
+ 'slideRight',
3053
+ 'slideRightSlow',
3054
+ 'slideRightFast',
3055
+ 'slideUp',
3056
+ 'slideUpSlow',
3057
+ 'slideUpFast',
3058
+ 'slideDown',
3059
+ 'slideDownSlow',
3060
+ 'slideDownFast',
3061
+ 'carouselLeft',
3062
+ 'carouselLeftSlow',
3063
+ 'carouselLeftFast',
3064
+ 'carouselRight',
3065
+ 'carouselRightSlow',
3066
+ 'carouselRightFast',
3067
+ 'carouselUp',
3068
+ 'carouselUpSlow',
3069
+ 'carouselUpFast',
3070
+ 'carouselDown',
3071
+ 'carouselDownSlow',
3072
+ 'carouselDownFast',
3073
+ 'shuffleTopRight',
3074
+ 'shuffleTopRightSlow',
3075
+ 'shuffleTopRightFast',
3076
+ 'shuffleRightTop',
3077
+ 'shuffleRightTopSlow',
3078
+ 'shuffleRightTopFast',
3079
+ 'shuffleRightBottom',
3080
+ 'shuffleRightBottomSlow',
3081
+ 'shuffleRightBottomFast',
3082
+ 'shuffleBottomRight',
3083
+ 'shuffleBottomRightSlow',
3084
+ 'shuffleBottomRightFast',
3085
+ 'shuffleBottomLeft',
3086
+ 'shuffleBottomLeftSlow',
3087
+ 'shuffleBottomLeftFast',
3088
+ 'shuffleLeftBottom',
3089
+ 'shuffleLeftBottomSlow',
3090
+ 'shuffleLeftBottomFast',
3091
+ 'shuffleLeftTop',
3092
+ 'shuffleLeftTopSlow',
3093
+ 'shuffleLeftTopFast',
3094
+ 'shuffleTopLeft',
3095
+ 'shuffleTopLeftSlow',
3096
+ 'shuffleTopLeftFast',
3097
+ 'zoom'
2976
3098
  ])),
2977
3099
  out: z.optional(z.enum([
2978
- "none",
2979
- "fade",
2980
- "fadeSlow",
2981
- "fadeFast",
2982
- "reveal",
2983
- "revealSlow",
2984
- "revealFast",
2985
- "wipeLeft",
2986
- "wipeLeftSlow",
2987
- "wipeLeftFast",
2988
- "wipeRight",
2989
- "wipeRightSlow",
2990
- "wipeRightFast",
2991
- "slideLeft",
2992
- "slideLeftSlow",
2993
- "slideLeftFast",
2994
- "slideRight",
2995
- "slideRightSlow",
2996
- "slideRightFast",
2997
- "slideUp",
2998
- "slideUpSlow",
2999
- "slideUpFast",
3000
- "slideDown",
3001
- "slideDownSlow",
3002
- "slideDownFast",
3003
- "carouselLeft",
3004
- "carouselLeftSlow",
3005
- "carouselLeftFast",
3006
- "carouselRight",
3007
- "carouselRightSlow",
3008
- "carouselRightFast",
3009
- "carouselUp",
3010
- "carouselUpSlow",
3011
- "carouselUpFast",
3012
- "carouselDown",
3013
- "carouselDownSlow",
3014
- "carouselDownFast",
3015
- "shuffleTopRight",
3016
- "shuffleTopRightSlow",
3017
- "shuffleTopRightFast",
3018
- "shuffleRightTop",
3019
- "shuffleRightTopSlow",
3020
- "shuffleRightTopFast",
3021
- "shuffleRightBottom",
3022
- "shuffleRightBottomSlow",
3023
- "shuffleRightBottomFast",
3024
- "shuffleBottomRight",
3025
- "shuffleBottomRightSlow",
3026
- "shuffleBottomRightFast",
3027
- "shuffleBottomLeft",
3028
- "shuffleBottomLeftSlow",
3029
- "shuffleBottomLeftFast",
3030
- "shuffleLeftBottom",
3031
- "shuffleLeftBottomSlow",
3032
- "shuffleLeftBottomFast",
3033
- "shuffleLeftTop",
3034
- "shuffleLeftTopSlow",
3035
- "shuffleLeftTopFast",
3036
- "shuffleTopLeft",
3037
- "shuffleTopLeftSlow",
3038
- "shuffleTopLeftFast",
3039
- "zoom",
3040
- ])),
3100
+ 'none',
3101
+ 'fade',
3102
+ 'fadeSlow',
3103
+ 'fadeFast',
3104
+ 'reveal',
3105
+ 'revealSlow',
3106
+ 'revealFast',
3107
+ 'wipeLeft',
3108
+ 'wipeLeftSlow',
3109
+ 'wipeLeftFast',
3110
+ 'wipeRight',
3111
+ 'wipeRightSlow',
3112
+ 'wipeRightFast',
3113
+ 'slideLeft',
3114
+ 'slideLeftSlow',
3115
+ 'slideLeftFast',
3116
+ 'slideRight',
3117
+ 'slideRightSlow',
3118
+ 'slideRightFast',
3119
+ 'slideUp',
3120
+ 'slideUpSlow',
3121
+ 'slideUpFast',
3122
+ 'slideDown',
3123
+ 'slideDownSlow',
3124
+ 'slideDownFast',
3125
+ 'carouselLeft',
3126
+ 'carouselLeftSlow',
3127
+ 'carouselLeftFast',
3128
+ 'carouselRight',
3129
+ 'carouselRightSlow',
3130
+ 'carouselRightFast',
3131
+ 'carouselUp',
3132
+ 'carouselUpSlow',
3133
+ 'carouselUpFast',
3134
+ 'carouselDown',
3135
+ 'carouselDownSlow',
3136
+ 'carouselDownFast',
3137
+ 'shuffleTopRight',
3138
+ 'shuffleTopRightSlow',
3139
+ 'shuffleTopRightFast',
3140
+ 'shuffleRightTop',
3141
+ 'shuffleRightTopSlow',
3142
+ 'shuffleRightTopFast',
3143
+ 'shuffleRightBottom',
3144
+ 'shuffleRightBottomSlow',
3145
+ 'shuffleRightBottomFast',
3146
+ 'shuffleBottomRight',
3147
+ 'shuffleBottomRightSlow',
3148
+ 'shuffleBottomRightFast',
3149
+ 'shuffleBottomLeft',
3150
+ 'shuffleBottomLeftSlow',
3151
+ 'shuffleBottomLeftFast',
3152
+ 'shuffleLeftBottom',
3153
+ 'shuffleLeftBottomSlow',
3154
+ 'shuffleLeftBottomFast',
3155
+ 'shuffleLeftTop',
3156
+ 'shuffleLeftTopSlow',
3157
+ 'shuffleLeftTopFast',
3158
+ 'shuffleTopLeft',
3159
+ 'shuffleTopLeftSlow',
3160
+ 'shuffleTopLeftFast',
3161
+ 'zoom'
3162
+ ]))
3041
3163
  }).strict();
3042
3164
  export const transitionSchema = transitionTransitionSchema;
3043
3165
  /**
@@ -3067,44 +3189,48 @@ export const tweenTweenSchema = z.object({
3067
3189
  return v;
3068
3190
  return Number(v);
3069
3191
  } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3070
- interpolation: z.optional(z.enum(["linear", "bezier", "constant"])),
3071
- easing: z.optional(z.enum([
3072
- "ease",
3073
- "easeIn",
3074
- "easeOut",
3075
- "easeInOut",
3076
- "easeInQuad",
3077
- "easeInCubic",
3078
- "easeInQuart",
3079
- "easeInQuint",
3080
- "easeInSine",
3081
- "easeInExpo",
3082
- "easeInCirc",
3083
- "easeInBack",
3084
- "easeOutQuad",
3085
- "easeOutCubic",
3086
- "easeOutQuart",
3087
- "easeOutQuint",
3088
- "easeOutSine",
3089
- "easeOutExpo",
3090
- "easeOutCirc",
3091
- "easeOutBack",
3092
- "easeInOutQuad",
3093
- "easeInOutCubic",
3094
- "easeInOutQuart",
3095
- "easeInOutQuint",
3096
- "easeInOutSine",
3097
- "easeInOutExpo",
3098
- "easeInOutCirc",
3099
- "easeInOutBack",
3192
+ interpolation: z.optional(z.enum([
3193
+ 'linear',
3194
+ 'bezier',
3195
+ 'constant'
3100
3196
  ])),
3197
+ easing: z.optional(z.enum([
3198
+ 'ease',
3199
+ 'easeIn',
3200
+ 'easeOut',
3201
+ 'easeInOut',
3202
+ 'easeInQuad',
3203
+ 'easeInCubic',
3204
+ 'easeInQuart',
3205
+ 'easeInQuint',
3206
+ 'easeInSine',
3207
+ 'easeInExpo',
3208
+ 'easeInCirc',
3209
+ 'easeInBack',
3210
+ 'easeOutQuad',
3211
+ 'easeOutCubic',
3212
+ 'easeOutQuart',
3213
+ 'easeOutQuint',
3214
+ 'easeOutSine',
3215
+ 'easeOutExpo',
3216
+ 'easeOutCirc',
3217
+ 'easeOutBack',
3218
+ 'easeInOutQuad',
3219
+ 'easeInOutCubic',
3220
+ 'easeInOutQuart',
3221
+ 'easeInOutQuint',
3222
+ 'easeInOutSine',
3223
+ 'easeInOutExpo',
3224
+ 'easeInOutCirc',
3225
+ 'easeInOutBack'
3226
+ ]))
3101
3227
  }).strict();
3102
3228
  export const tweenSchema = tweenTweenSchema;
3103
3229
  /**
3104
3230
  * 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.
3105
3231
  */
3106
3232
  export const audioassetAudioAssetSchema = z.object({
3107
- type: z.enum(["audio"]),
3233
+ type: z.enum(['audio']),
3108
3234
  src: z.string().min(1).regex(/\S/),
3109
3235
  trim: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3110
3236
  return undefined; if (Array.isArray(v))
@@ -3113,13 +3239,16 @@ export const audioassetAudioAssetSchema = z.object({
3113
3239
  return v;
3114
3240
  return Number(v);
3115
3241
  } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3116
- volume: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3242
+ volume: z.optional(z.union([
3243
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3117
3244
  return undefined; if (Array.isArray(v))
3118
3245
  return v; if (typeof v === 'string') {
3119
3246
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3120
3247
  return v;
3121
3248
  return Number(v);
3122
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3249
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3250
+ z.array(tweenTweenSchema)
3251
+ ])),
3123
3252
  speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3124
3253
  return undefined; if (Array.isArray(v))
3125
3254
  return v; if (typeof v === 'string') {
@@ -3127,67 +3256,87 @@ export const audioassetAudioAssetSchema = z.object({
3127
3256
  return v;
3128
3257
  return Number(v);
3129
3258
  } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3130
- effect: z.optional(z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
3259
+ effect: z.optional(z.enum([
3260
+ 'none',
3261
+ 'fadeIn',
3262
+ 'fadeOut',
3263
+ 'fadeInFadeOut'
3264
+ ]))
3131
3265
  }).strict();
3132
3266
  export const audioAssetSchema = audioassetAudioAssetSchema;
3133
3267
  /**
3134
3268
  * Offsets the position of an asset horizontally or vertically by a relative distance.
3135
3269
  */
3136
3270
  export const offsetOffsetSchema = z.object({
3137
- x: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3271
+ x: z.optional(z.union([
3272
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3138
3273
  return undefined; if (Array.isArray(v))
3139
3274
  return v; if (typeof v === 'string') {
3140
3275
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3141
3276
  return v;
3142
3277
  return Number(v);
3143
- } return v; }), z.number().gte(-10).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3144
- y: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3278
+ } return v; }), z.number().gte(-10).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3279
+ z.array(tweenTweenSchema)
3280
+ ])),
3281
+ y: z.optional(z.union([
3282
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3145
3283
  return undefined; if (Array.isArray(v))
3146
3284
  return v; if (typeof v === 'string') {
3147
3285
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3148
3286
  return v;
3149
3287
  return Number(v);
3150
- } return v; }), z.number().gte(-10).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3288
+ } return v; }), z.number().gte(-10).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3289
+ z.array(tweenTweenSchema)
3290
+ ]))
3151
3291
  }).strict();
3152
3292
  export const offsetSchema = offsetOffsetSchema;
3153
3293
  /**
3154
3294
  * Rotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`.
3155
3295
  */
3156
3296
  export const rotatetransformationRotateTransformationSchema = z.object({
3157
- angle: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3297
+ angle: z.optional(z.union([
3298
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3158
3299
  return undefined; if (Array.isArray(v))
3159
3300
  return v; if (typeof v === 'string') {
3160
3301
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3161
3302
  return v;
3162
3303
  return Number(v);
3163
- } return v; }), z.number().gte(-360).lte(360)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3304
+ } return v; }), z.number().gte(-360).lte(360)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3305
+ z.array(tweenTweenSchema)
3306
+ ]))
3164
3307
  }).strict();
3165
3308
  export const rotateTransformationSchema = rotatetransformationRotateTransformationSchema;
3166
3309
  /**
3167
3310
  * 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.
3168
3311
  */
3169
3312
  export const skewtransformationSkewTransformationSchema = z.object({
3170
- x: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3313
+ x: z.optional(z.union([
3314
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3171
3315
  return undefined; if (Array.isArray(v))
3172
3316
  return v; if (typeof v === 'string') {
3173
3317
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3174
3318
  return v;
3175
3319
  return Number(v);
3176
- } return v; }), z.number().gte(-100).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3177
- y: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3320
+ } return v; }), z.number().gte(-100).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3321
+ z.array(tweenTweenSchema)
3322
+ ])),
3323
+ y: z.optional(z.union([
3324
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3178
3325
  return undefined; if (Array.isArray(v))
3179
3326
  return v; if (typeof v === 'string') {
3180
3327
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3181
3328
  return v;
3182
3329
  return Number(v);
3183
- } return v; }), z.number().gte(-100).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3330
+ } return v; }), z.number().gte(-100).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3331
+ z.array(tweenTweenSchema)
3332
+ ]))
3184
3333
  }).strict();
3185
3334
  export const skewTransformationSchema = skewtransformationSkewTransformationSchema;
3186
3335
  /**
3187
3336
  * The TextToSpeechAsset lets you generate a voice over from text using a text-to-speech service. The generated audio can be trimmed, faded and have its volume and speed adjusted using the same properties available on the AudioAsset.
3188
3337
  */
3189
3338
  export const texttospeechassetTextToSpeechAssetSchema = z.object({
3190
- type: z.enum(["text-to-speech"]),
3339
+ type: z.enum(['text-to-speech']),
3191
3340
  text: z.string(),
3192
3341
  voice: z.string(),
3193
3342
  language: z.optional(z.string()),
@@ -3199,13 +3348,16 @@ export const texttospeechassetTextToSpeechAssetSchema = z.object({
3199
3348
  return v;
3200
3349
  return Number(v);
3201
3350
  } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3202
- volume: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3351
+ volume: z.optional(z.union([
3352
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3203
3353
  return undefined; if (Array.isArray(v))
3204
3354
  return v; if (typeof v === 'string') {
3205
3355
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3206
3356
  return v;
3207
3357
  return Number(v);
3208
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3358
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3359
+ z.array(tweenTweenSchema)
3360
+ ])),
3209
3361
  speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3210
3362
  return undefined; if (Array.isArray(v))
3211
3363
  return v; if (typeof v === 'string') {
@@ -3213,7 +3365,12 @@ export const texttospeechassetTextToSpeechAssetSchema = z.object({
3213
3365
  return v;
3214
3366
  return Number(v);
3215
3367
  } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3216
- effect: z.optional(z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
3368
+ effect: z.optional(z.enum([
3369
+ 'none',
3370
+ 'fadeIn',
3371
+ 'fadeOut',
3372
+ 'fadeInFadeOut'
3373
+ ]))
3217
3374
  }).strict();
3218
3375
  export const textToSpeechAssetSchema = texttospeechassetTextToSpeechAssetSchema;
3219
3376
  /**
@@ -3225,43 +3382,43 @@ export const textToSpeechAssetSchema = texttospeechassetTextToSpeechAssetSchema;
3225
3382
  * @deprecated
3226
3383
  */
3227
3384
  export const titleassetTitleAssetSchema = z.object({
3228
- type: z.enum(["title"]),
3385
+ type: z.enum(['title']),
3229
3386
  text: z.string(),
3230
3387
  style: z.optional(z.enum([
3231
- "minimal",
3232
- "blockbuster",
3233
- "vogue",
3234
- "sketchy",
3235
- "skinny",
3236
- "chunk",
3237
- "chunkLight",
3238
- "marker",
3239
- "future",
3240
- "subtitle",
3388
+ 'minimal',
3389
+ 'blockbuster',
3390
+ 'vogue',
3391
+ 'sketchy',
3392
+ 'skinny',
3393
+ 'chunk',
3394
+ 'chunkLight',
3395
+ 'marker',
3396
+ 'future',
3397
+ 'subtitle'
3241
3398
  ])),
3242
3399
  color: z.optional(z.string()),
3243
3400
  size: z.optional(z.enum([
3244
- "xx-small",
3245
- "x-small",
3246
- "small",
3247
- "medium",
3248
- "large",
3249
- "x-large",
3250
- "xx-large",
3401
+ 'xx-small',
3402
+ 'x-small',
3403
+ 'small',
3404
+ 'medium',
3405
+ 'large',
3406
+ 'x-large',
3407
+ 'xx-large'
3251
3408
  ])),
3252
3409
  background: z.optional(z.string()),
3253
3410
  position: z.optional(z.enum([
3254
- "top",
3255
- "topRight",
3256
- "right",
3257
- "bottomRight",
3258
- "bottom",
3259
- "bottomLeft",
3260
- "left",
3261
- "topLeft",
3262
- "center",
3411
+ 'top',
3412
+ 'topRight',
3413
+ 'right',
3414
+ 'bottomRight',
3415
+ 'bottom',
3416
+ 'bottomLeft',
3417
+ 'left',
3418
+ 'topLeft',
3419
+ 'center'
3263
3420
  ])),
3264
- offset: z.optional(offsetOffsetSchema),
3421
+ offset: z.optional(offsetOffsetSchema)
3265
3422
  }).strict();
3266
3423
  export const titleAssetSchema = titleassetTitleAssetSchema;
3267
3424
  /**
@@ -3270,14 +3427,14 @@ export const titleAssetSchema = titleassetTitleAssetSchema;
3270
3427
  export const transformationTransformationSchema = z.object({
3271
3428
  rotate: z.optional(rotatetransformationRotateTransformationSchema),
3272
3429
  skew: z.optional(skewtransformationSkewTransformationSchema),
3273
- flip: z.optional(fliptransformationFlipTransformationSchema),
3430
+ flip: z.optional(fliptransformationFlipTransformationSchema)
3274
3431
  }).strict();
3275
3432
  export const transformationSchema = transformationTransformationSchema;
3276
3433
  /**
3277
3434
  * 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.
3278
3435
  */
3279
3436
  export const videoassetVideoAssetSchema = z.object({
3280
- type: z.enum(["video"]),
3437
+ type: z.enum(['video']),
3281
3438
  src: z.string().min(1).regex(/\S/),
3282
3439
  transcode: z.optional(z.boolean()),
3283
3440
  trim: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -3287,14 +3444,22 @@ export const videoassetVideoAssetSchema = z.object({
3287
3444
  return v;
3288
3445
  return Number(v);
3289
3446
  } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3290
- volume: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3447
+ volume: z.optional(z.union([
3448
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3291
3449
  return undefined; if (Array.isArray(v))
3292
3450
  return v; if (typeof v === 'string') {
3293
3451
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3294
3452
  return v;
3295
3453
  return Number(v);
3296
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3297
- volumeEffect: z.optional(z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
3454
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3455
+ z.array(tweenTweenSchema)
3456
+ ])),
3457
+ volumeEffect: z.optional(z.enum([
3458
+ 'none',
3459
+ 'fadeIn',
3460
+ 'fadeOut',
3461
+ 'fadeInFadeOut'
3462
+ ])),
3298
3463
  speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3299
3464
  return undefined; if (Array.isArray(v))
3300
3465
  return v; if (typeof v === 'string') {
@@ -3303,7 +3468,7 @@ export const videoassetVideoAssetSchema = z.object({
3303
3468
  return Number(v);
3304
3469
  } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3305
3470
  crop: z.optional(cropCropSchema),
3306
- chromaKey: z.optional(chromakeyChromaKeySchema),
3471
+ chromaKey: z.optional(chromakeyChromaKeySchema)
3307
3472
  }).strict();
3308
3473
  export const videoAssetSchema = videoassetVideoAssetSchema;
3309
3474
  /**
@@ -3340,7 +3505,7 @@ export const clipClipSchema = z.object({
3340
3505
  return v;
3341
3506
  return Number(v);
3342
3507
  } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3343
- z.union([z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3508
+ z.union([z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3344
3509
  ]),
3345
3510
  length: z.union([
3346
3511
  z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -3350,16 +3515,24 @@ export const clipClipSchema = z.object({
3350
3515
  return v;
3351
3516
  return Number(v);
3352
3517
  } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3353
- z.union([z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3518
+ z.union([z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3354
3519
  ]),
3355
- fit: z.optional(z.enum(["cover", "contain", "crop", "none"])),
3356
- scale: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3520
+ fit: z.optional(z.enum([
3521
+ 'cover',
3522
+ 'contain',
3523
+ 'crop',
3524
+ 'none'
3525
+ ])),
3526
+ scale: z.optional(z.union([
3527
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3357
3528
  return undefined; if (Array.isArray(v))
3358
3529
  return v; if (typeof v === 'string') {
3359
3530
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3360
3531
  return v;
3361
3532
  return Number(v);
3362
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3533
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3534
+ z.array(tweenTweenSchema)
3535
+ ])),
3363
3536
  width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3364
3537
  return undefined; if (Array.isArray(v))
3365
3538
  return v; if (typeof v === 'string') {
@@ -3375,58 +3548,61 @@ export const clipClipSchema = z.object({
3375
3548
  return Number(v);
3376
3549
  } return v; }), z.number().gte(1).lte(2160)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3377
3550
  position: z.optional(z.enum([
3378
- "top",
3379
- "topRight",
3380
- "right",
3381
- "bottomRight",
3382
- "bottom",
3383
- "bottomLeft",
3384
- "left",
3385
- "topLeft",
3386
- "center",
3551
+ 'top',
3552
+ 'topRight',
3553
+ 'right',
3554
+ 'bottomRight',
3555
+ 'bottom',
3556
+ 'bottomLeft',
3557
+ 'left',
3558
+ 'topLeft',
3559
+ 'center'
3387
3560
  ])),
3388
3561
  offset: z.optional(offsetOffsetSchema),
3389
3562
  transition: z.optional(transitionTransitionSchema),
3390
3563
  effect: z.optional(z.enum([
3391
- "zoomIn",
3392
- "zoomInSlow",
3393
- "zoomInFast",
3394
- "zoomOut",
3395
- "zoomOutSlow",
3396
- "zoomOutFast",
3397
- "slideLeft",
3398
- "slideLeftSlow",
3399
- "slideLeftFast",
3400
- "slideRight",
3401
- "slideRightSlow",
3402
- "slideRightFast",
3403
- "slideUp",
3404
- "slideUpSlow",
3405
- "slideUpFast",
3406
- "slideDown",
3407
- "slideDownSlow",
3408
- "slideDownFast",
3564
+ 'zoomIn',
3565
+ 'zoomInSlow',
3566
+ 'zoomInFast',
3567
+ 'zoomOut',
3568
+ 'zoomOutSlow',
3569
+ 'zoomOutFast',
3570
+ 'slideLeft',
3571
+ 'slideLeftSlow',
3572
+ 'slideLeftFast',
3573
+ 'slideRight',
3574
+ 'slideRightSlow',
3575
+ 'slideRightFast',
3576
+ 'slideUp',
3577
+ 'slideUpSlow',
3578
+ 'slideUpFast',
3579
+ 'slideDown',
3580
+ 'slideDownSlow',
3581
+ 'slideDownFast'
3409
3582
  ])),
3410
3583
  filter: z.optional(z.enum([
3411
- "none",
3412
- "blur",
3413
- "boost",
3414
- "contrast",
3415
- "darken",
3416
- "greyscale",
3417
- "lighten",
3418
- "muted",
3419
- "negative",
3584
+ 'none',
3585
+ 'blur',
3586
+ 'boost',
3587
+ 'contrast',
3588
+ 'darken',
3589
+ 'greyscale',
3590
+ 'lighten',
3591
+ 'muted',
3592
+ 'negative'
3420
3593
  ])),
3421
- opacity: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3594
+ opacity: z.optional(z.union([
3595
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3422
3596
  return undefined; if (Array.isArray(v))
3423
3597
  return v; if (typeof v === 'string') {
3424
3598
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3425
3599
  return v;
3426
3600
  return Number(v);
3427
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3601
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3602
+ z.array(tweenTweenSchema)
3603
+ ])),
3428
3604
  transform: z.optional(transformationTransformationSchema),
3429
- alias: z.optional(z.union([z.string().regex(/^[A-Za-z0-9_-]+$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3605
+ alias: z.optional(z.union([z.string().regex(/^[A-Za-z0-9_-]+$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
3430
3606
  }).strict();
3431
3607
  export const clipSchema = clipClipSchema;
3432
3608
  // Clip schema with fit property filter for rich-text assets
@@ -3445,7 +3621,7 @@ const clipClipSchemaWithFitFilter = clipClipSchema.transform((clip) => {
3445
3621
  * 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.
3446
3622
  */
3447
3623
  export const trackTrackSchema = z.object({
3448
- clips: z.array(clipClipSchemaWithFitFilter).min(1),
3624
+ clips: z.array(clipClipSchemaWithFitFilter).min(1)
3449
3625
  }).strict();
3450
3626
  export const trackSchema = trackTrackSchema;
3451
3627
  /**
@@ -3456,7 +3632,7 @@ export const timelineTimelineSchema = z.object({
3456
3632
  background: z.optional(z.string()),
3457
3633
  fonts: z.optional(z.array(fontFontSchema)),
3458
3634
  tracks: z.array(trackTrackSchema).min(1),
3459
- cache: z.optional(z.boolean()),
3635
+ cache: z.optional(z.boolean())
3460
3636
  }).strict();
3461
3637
  export const timelineSchema = timelineTimelineSchema;
3462
3638
  /**
@@ -3467,8 +3643,12 @@ export const editEditSchema = z.object({
3467
3643
  output: outputOutputSchema,
3468
3644
  merge: z.optional(z.array(mergefieldMergeFieldSchema)),
3469
3645
  callback: z.optional(z.string()),
3470
- disk: z.optional(z.enum(["local", "mount"])),
3471
- instance: z.optional(z.enum(["s1", "s2", "a1"])),
3646
+ disk: z.optional(z.enum(['local', 'mount'])),
3647
+ instance: z.optional(z.enum([
3648
+ 's1',
3649
+ 's2',
3650
+ 'a1'
3651
+ ]))
3472
3652
  }).strict();
3473
3653
  export const editSchema = editEditSchema;
3474
3654
  /**
@@ -3479,13 +3659,13 @@ export const renderresponsedataRenderResponseDataSchema = z.object({
3479
3659
  owner: z.string(),
3480
3660
  plan: z.optional(z.string()),
3481
3661
  status: z.enum([
3482
- "queued",
3483
- "fetching",
3484
- "preprocessing",
3485
- "rendering",
3486
- "saving",
3487
- "done",
3488
- "failed",
3662
+ 'queued',
3663
+ 'fetching',
3664
+ 'preprocessing',
3665
+ 'rendering',
3666
+ 'saving',
3667
+ 'done',
3668
+ 'failed'
3489
3669
  ]),
3490
3670
  error: z.optional(z.string()),
3491
3671
  duration: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -3503,11 +3683,17 @@ export const renderresponsedataRenderResponseDataSchema = z.object({
3503
3683
  return Number(v);
3504
3684
  } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3505
3685
  url: z.optional(z.string()),
3506
- poster: z.optional(z.union([z.string(), z.null()])),
3507
- thumbnail: z.optional(z.union([z.string(), z.null()])),
3686
+ poster: z.optional(z.union([
3687
+ z.string(),
3688
+ z.null()
3689
+ ])),
3690
+ thumbnail: z.optional(z.union([
3691
+ z.string(),
3692
+ z.null()
3693
+ ])),
3508
3694
  data: z.optional(editEditSchema),
3509
3695
  created: z.optional(z.string()),
3510
- updated: z.optional(z.string()),
3696
+ updated: z.optional(z.string())
3511
3697
  }).strict();
3512
3698
  export const renderResponseDataSchema = renderresponsedataRenderResponseDataSchema;
3513
3699
  /**
@@ -3516,7 +3702,7 @@ export const renderResponseDataSchema = renderresponsedataRenderResponseDataSche
3516
3702
  export const renderresponseRenderResponseSchema = z.object({
3517
3703
  success: z.boolean(),
3518
3704
  message: z.string(),
3519
- response: renderresponsedataRenderResponseDataSchema,
3705
+ response: renderresponsedataRenderResponseDataSchema
3520
3706
  }).strict();
3521
3707
  export const renderResponseSchema = renderresponseRenderResponseSchema;
3522
3708
  /**
@@ -3526,7 +3712,7 @@ export const templatedataresponsedataTemplateDataResponseDataSchema = z.object({
3526
3712
  id: z.string(),
3527
3713
  name: z.string(),
3528
3714
  owner: z.string(),
3529
- template: editEditSchema,
3715
+ template: editEditSchema
3530
3716
  }).strict();
3531
3717
  export const templateDataResponseDataSchema = templatedataresponsedataTemplateDataResponseDataSchema;
3532
3718
  /**
@@ -3535,7 +3721,7 @@ export const templateDataResponseDataSchema = templatedataresponsedataTemplateDa
3535
3721
  export const templatedataresponseTemplateDataResponseSchema = z.object({
3536
3722
  success: z.boolean(),
3537
3723
  message: z.string(),
3538
- response: templatedataresponsedataTemplateDataResponseDataSchema,
3724
+ response: templatedataresponsedataTemplateDataResponseDataSchema
3539
3725
  }).strict();
3540
3726
  export const templateDataResponseSchema = templatedataresponseTemplateDataResponseSchema;
3541
3727
  /**
@@ -3543,13 +3729,13 @@ export const templateDataResponseSchema = templatedataresponseTemplateDataRespon
3543
3729
  */
3544
3730
  export const templateTemplateSchema = z.object({
3545
3731
  name: z.string(),
3546
- template: z.optional(editEditSchema),
3732
+ template: z.optional(editEditSchema)
3547
3733
  }).strict();
3548
3734
  export const templateSchema = templateTemplateSchema;
3549
3735
  export const postRenderRequest = z.object({
3550
3736
  body: editEditSchema,
3551
3737
  path: z.optional(z.never()),
3552
- query: z.optional(z.never()),
3738
+ query: z.optional(z.never())
3553
3739
  }).strict();
3554
3740
  /**
3555
3741
  * The queued render details
@@ -3558,14 +3744,12 @@ export const postRenderResponse = queuedresponseQueuedResponseSchema;
3558
3744
  export const getRenderRequest = z.object({
3559
3745
  body: z.optional(z.never()),
3560
3746
  path: z.object({
3561
- id: z
3562
- .string()
3563
- .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}$/),
3747
+ id: z.union([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}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3564
3748
  }),
3565
3749
  query: z.optional(z.object({
3566
3750
  data: z.optional(z.boolean()),
3567
- merged: z.optional(z.boolean()),
3568
- })),
3751
+ merged: z.optional(z.boolean())
3752
+ }))
3569
3753
  }).strict();
3570
3754
  /**
3571
3755
  * The render status details
@@ -3574,7 +3758,7 @@ export const getRenderResponse = renderresponseRenderResponseSchema;
3574
3758
  export const getTemplatesRequest = z.object({
3575
3759
  body: z.optional(z.never()),
3576
3760
  path: z.optional(z.never()),
3577
- query: z.optional(z.never()),
3761
+ query: z.optional(z.never())
3578
3762
  }).strict();
3579
3763
  /**
3580
3764
  * The list of templates stored against a users account
@@ -3583,7 +3767,7 @@ export const getTemplatesResponse = templatelistresponseTemplateListResponseSche
3583
3767
  export const postTemplateRequest = z.object({
3584
3768
  body: templateTemplateSchema,
3585
3769
  path: z.optional(z.never()),
3586
- query: z.optional(z.never()),
3770
+ query: z.optional(z.never())
3587
3771
  }).strict();
3588
3772
  /**
3589
3773
  * The saved template status including the id
@@ -3592,11 +3776,9 @@ export const postTemplateResponse = templateresponseTemplateResponseSchema;
3592
3776
  export const deleteTemplateRequest = z.object({
3593
3777
  body: z.optional(z.never()),
3594
3778
  path: z.object({
3595
- id: z
3596
- .string()
3597
- .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}$/),
3779
+ id: z.union([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}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3598
3780
  }),
3599
- query: z.optional(z.never()),
3781
+ query: z.optional(z.never())
3600
3782
  }).strict();
3601
3783
  /**
3602
3784
  * An empty response signifying the template has been deleted
@@ -3605,11 +3787,9 @@ export const deleteTemplateResponse = z.void();
3605
3787
  export const getTemplateRequest = z.object({
3606
3788
  body: z.optional(z.never()),
3607
3789
  path: z.object({
3608
- id: z
3609
- .string()
3610
- .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}$/),
3790
+ id: z.union([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}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3611
3791
  }),
3612
- query: z.optional(z.never()),
3792
+ query: z.optional(z.never())
3613
3793
  }).strict();
3614
3794
  /**
3615
3795
  * The template details including the [Edit](#tocs_edit)
@@ -3618,11 +3798,9 @@ export const getTemplateResponse = templatedataresponseTemplateDataResponseSchem
3618
3798
  export const putTemplateRequest = z.object({
3619
3799
  body: templateTemplateSchema,
3620
3800
  path: z.object({
3621
- id: z
3622
- .string()
3623
- .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}$/),
3801
+ id: z.union([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}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3624
3802
  }),
3625
- query: z.optional(z.never()),
3803
+ query: z.optional(z.never())
3626
3804
  }).strict();
3627
3805
  /**
3628
3806
  * Update a templates name and [Edit](#tocs_edit)
@@ -3631,7 +3809,7 @@ export const putTemplateResponse = templateresponseTemplateResponseSchema;
3631
3809
  export const postTemplateRenderRequest = z.object({
3632
3810
  body: templaterenderTemplateRenderSchema,
3633
3811
  path: z.optional(z.never()),
3634
- query: z.optional(z.never()),
3812
+ query: z.optional(z.never())
3635
3813
  }).strict();
3636
3814
  /**
3637
3815
  * The queued status including the render id. Check the status of the render using the id and the [render status](#get-render-status) endpoint.
@@ -3640,9 +3818,9 @@ export const postTemplateRenderResponse = queuedresponseQueuedResponseSchema;
3640
3818
  export const probeRequest = z.object({
3641
3819
  body: z.optional(z.never()),
3642
3820
  path: z.object({
3643
- url: z.string(),
3821
+ url: z.string()
3644
3822
  }),
3645
- query: z.optional(z.never()),
3823
+ query: z.optional(z.never())
3646
3824
  }).strict();
3647
3825
  /**
3648
3826
  * FFprobe response formatted as JSON.
@@ -3651,11 +3829,9 @@ export const probeResponse = proberesponseProbeResponseSchema;
3651
3829
  export const deleteAssetRequest = z.object({
3652
3830
  body: z.optional(z.never()),
3653
3831
  path: z.object({
3654
- id: z
3655
- .string()
3656
- .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}$/),
3832
+ id: z.union([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}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3657
3833
  }),
3658
- query: z.optional(z.never()),
3834
+ query: z.optional(z.never())
3659
3835
  }).strict();
3660
3836
  /**
3661
3837
  * An empty response signifying the asset has been deleted
@@ -3664,11 +3840,9 @@ export const deleteAssetResponse = z.void();
3664
3840
  export const getAssetRequest = z.object({
3665
3841
  body: z.optional(z.never()),
3666
3842
  path: z.object({
3667
- id: z
3668
- .string()
3669
- .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}$/),
3843
+ id: z.union([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}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3670
3844
  }),
3671
- query: z.optional(z.never()),
3845
+ query: z.optional(z.never())
3672
3846
  }).strict();
3673
3847
  /**
3674
3848
  * Get asset by asset id
@@ -3677,11 +3851,9 @@ export const getAssetResponse = assetresponseAssetResponseSchema;
3677
3851
  export const getAssetByRenderIdRequest = z.object({
3678
3852
  body: z.optional(z.never()),
3679
3853
  path: z.object({
3680
- id: z
3681
- .string()
3682
- .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}$/),
3854
+ id: z.union([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}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3683
3855
  }),
3684
- query: z.optional(z.never()),
3856
+ query: z.optional(z.never())
3685
3857
  }).strict();
3686
3858
  /**
3687
3859
  * Get one or more assets by render id
@@ -3690,7 +3862,7 @@ export const getAssetByRenderIdResponse = assetrenderresponseAssetRenderResponse
3690
3862
  export const postServeAssetRequest = z.object({
3691
3863
  body: transferTransferSchema,
3692
3864
  path: z.optional(z.never()),
3693
- query: z.optional(z.never()),
3865
+ query: z.optional(z.never())
3694
3866
  }).strict();
3695
3867
  /**
3696
3868
  * The transfer request details and status
@@ -3699,7 +3871,7 @@ export const postServeAssetResponse = transferresponseTransferResponseSchema;
3699
3871
  export const getSourcesRequest = z.object({
3700
3872
  body: z.optional(z.never()),
3701
3873
  path: z.optional(z.never()),
3702
- query: z.optional(z.never()),
3874
+ query: z.optional(z.never())
3703
3875
  }).strict();
3704
3876
  /**
3705
3877
  * The list of ingested source files stored against a users account
@@ -3708,7 +3880,7 @@ export const getSourcesResponse = sourcelistresponseSourceListResponseSchema;
3708
3880
  export const postSourceRequest = z.object({
3709
3881
  body: sourceSourceSchema,
3710
3882
  path: z.optional(z.never()),
3711
- query: z.optional(z.never()),
3883
+ query: z.optional(z.never())
3712
3884
  }).strict();
3713
3885
  /**
3714
3886
  * The queued source file details
@@ -3717,11 +3889,9 @@ export const postSourceResponse = queuedsourceresponseQueuedSourceResponseSchema
3717
3889
  export const deleteSourceRequest = z.object({
3718
3890
  body: z.optional(z.never()),
3719
3891
  path: z.object({
3720
- id: z
3721
- .string()
3722
- .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}$/),
3892
+ id: z.union([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}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3723
3893
  }),
3724
- query: z.optional(z.never()),
3894
+ query: z.optional(z.never())
3725
3895
  }).strict();
3726
3896
  /**
3727
3897
  * An empty response signifying the ingested source file has been deleted.
@@ -3730,11 +3900,9 @@ export const deleteSourceResponse = z.void();
3730
3900
  export const getSourceRequest = z.object({
3731
3901
  body: z.optional(z.never()),
3732
3902
  path: z.object({
3733
- id: z
3734
- .string()
3735
- .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}$/),
3903
+ id: z.union([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}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3736
3904
  }),
3737
- query: z.optional(z.never()),
3905
+ query: z.optional(z.never())
3738
3906
  }).strict();
3739
3907
  /**
3740
3908
  * Get source file details by id
@@ -3743,7 +3911,7 @@ export const getSourceResponse = sourceresponseSourceResponseSchema;
3743
3911
  export const getUploadSignedUrlRequest = z.object({
3744
3912
  body: z.optional(z.never()),
3745
3913
  path: z.optional(z.never()),
3746
- query: z.optional(z.never()),
3914
+ query: z.optional(z.never())
3747
3915
  }).strict();
3748
3916
  /**
3749
3917
  * The id and signed URL to upload to.
@@ -3752,7 +3920,7 @@ export const getUploadSignedUrlResponse = uploadresponseUploadResponseSchema;
3752
3920
  export const postGenerateAssetRequest = z.object({
3753
3921
  body: generatedAssetGeneratedAssetSchema,
3754
3922
  path: z.optional(z.never()),
3755
- query: z.optional(z.never()),
3923
+ query: z.optional(z.never())
3756
3924
  }).strict();
3757
3925
  /**
3758
3926
  * The generated asset details
@@ -3761,11 +3929,9 @@ export const postGenerateAssetResponse = generatedAssetResponseGeneratedAssetRes
3761
3929
  export const getGeneratedAssetRequest = z.object({
3762
3930
  body: z.optional(z.never()),
3763
3931
  path: z.object({
3764
- id: z
3765
- .string()
3766
- .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}$/),
3932
+ id: z.union([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}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3767
3933
  }),
3768
- query: z.optional(z.never()),
3934
+ query: z.optional(z.never())
3769
3935
  }).strict();
3770
3936
  /**
3771
3937
  * The generated asset details