@shotstack/schemas 1.8.7 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,37 +1399,48 @@ 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
- speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1397
- return undefined; if (Array.isArray(v))
1398
- return v; if (typeof v === 'string') {
1399
- if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1400
- return v;
1401
- return Number(v);
1402
- } 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"])),
1422
+ direction: z.optional(z.enum([
1423
+ 'left',
1424
+ 'right',
1425
+ 'up',
1426
+ 'down'
1427
+ ]))
1404
1428
  }).strict();
1405
1429
  export const richCaptionWordAnimationSchema = richcaptionpropertiesRichCaptionWordAnimationSchema;
1406
1430
  /**
1407
1431
  * Text alignment properties (horizontal and vertical).
1408
1432
  */
1409
1433
  export const richtextpropertiesRichTextAlignmentSchema = z.object({
1410
- horizontal: z.optional(z.enum(["left", "center", "right"])),
1411
- vertical: z.optional(z.enum(["top", "middle", "bottom"])),
1434
+ horizontal: z.optional(z.enum([
1435
+ 'left',
1436
+ 'center',
1437
+ 'right'
1438
+ ])),
1439
+ vertical: z.optional(z.enum([
1440
+ 'top',
1441
+ 'middle',
1442
+ 'bottom'
1443
+ ]))
1412
1444
  }).strict();
1413
1445
  export const richTextAlignmentSchema = richtextpropertiesRichTextAlignmentSchema;
1414
1446
  /**
@@ -1416,12 +1448,12 @@ export const richTextAlignmentSchema = richtextpropertiesRichTextAlignmentSchema
1416
1448
  */
1417
1449
  export const richtextpropertiesRichTextAnimationSchema = z.object({
1418
1450
  preset: z.enum([
1419
- "fadeIn",
1420
- "slideIn",
1421
- "typewriter",
1422
- "ascend",
1423
- "shift",
1424
- "movingLetters",
1451
+ 'fadeIn',
1452
+ 'slideIn',
1453
+ 'typewriter',
1454
+ 'ascend',
1455
+ 'shift',
1456
+ 'movingLetters'
1425
1457
  ]),
1426
1458
  duration: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1427
1459
  return undefined; if (Array.isArray(v))
@@ -1430,8 +1462,13 @@ export const richtextpropertiesRichTextAnimationSchema = z.object({
1430
1462
  return v;
1431
1463
  return Number(v);
1432
1464
  } 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"])),
1465
+ style: z.optional(z.enum(['character', 'word'])),
1466
+ direction: z.optional(z.enum([
1467
+ 'left',
1468
+ 'right',
1469
+ 'up',
1470
+ 'down'
1471
+ ]))
1435
1472
  }).strict();
1436
1473
  export const richTextAnimationSchema = richtextpropertiesRichTextAnimationSchema;
1437
1474
  /**
@@ -1452,7 +1489,7 @@ export const richtextpropertiesRichTextBackgroundSchema = z.object({
1452
1489
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1453
1490
  return v;
1454
1491
  return Number(v);
1455
- } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1492
+ } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
1456
1493
  }).strict();
1457
1494
  export const richTextBackgroundSchema = richtextpropertiesRichTextBackgroundSchema;
1458
1495
  /**
@@ -1466,7 +1503,7 @@ export const richtextpropertiesRichTextBorderSchema = z.object({
1466
1503
  return v;
1467
1504
  return Number(v);
1468
1505
  } 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"),
1506
+ 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
1507
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1471
1508
  return undefined; if (Array.isArray(v))
1472
1509
  return v; if (typeof v === 'string') {
@@ -1480,13 +1517,13 @@ export const richtextpropertiesRichTextBorderSchema = z.object({
1480
1517
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1481
1518
  return v;
1482
1519
  return Number(v);
1483
- } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1520
+ } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
1484
1521
  }).strict();
1485
1522
  /**
1486
1523
  * Gradient properties for text fill.
1487
1524
  */
1488
1525
  export const richtextpropertiesRichTextGradientSchema = z.object({
1489
- type: z.optional(z.enum(["linear", "radial"])),
1526
+ type: z.optional(z.enum(['linear', 'radial'])),
1490
1527
  angle: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1491
1528
  return undefined; if (Array.isArray(v))
1492
1529
  return v; if (typeof v === 'string') {
@@ -1494,8 +1531,7 @@ export const richtextpropertiesRichTextGradientSchema = z.object({
1494
1531
  return v;
1495
1532
  return Number(v);
1496
1533
  } 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({
1534
+ stops: z.array(z.object({
1499
1535
  offset: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1500
1536
  return undefined; if (Array.isArray(v))
1501
1537
  return v; if (typeof v === 'string') {
@@ -1503,9 +1539,8 @@ export const richtextpropertiesRichTextGradientSchema = z.object({
1503
1539
  return v;
1504
1540
  return Number(v);
1505
1541
  } 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),
1542
+ color: z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1543
+ })).min(2)
1509
1544
  }).strict();
1510
1545
  export const richTextGradientSchema = richtextpropertiesRichTextGradientSchema;
1511
1546
  /**
@@ -1539,7 +1574,7 @@ export const richtextpropertiesRichTextPaddingSchema = z.object({
1539
1574
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1540
1575
  return v;
1541
1576
  return Number(v);
1542
- } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1577
+ } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
1543
1578
  }).strict();
1544
1579
  /**
1545
1580
  * Text shadow properties.
@@ -1566,14 +1601,14 @@ export const richtextpropertiesRichTextShadowSchema = z.object({
1566
1601
  return v;
1567
1602
  return Number(v);
1568
1603
  } 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"),
1604
+ 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
1605
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1571
1606
  return undefined; if (Array.isArray(v))
1572
1607
  return v; if (typeof v === 'string') {
1573
1608
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1574
1609
  return v;
1575
1610
  return Number(v);
1576
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
1611
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
1577
1612
  }).strict();
1578
1613
  export const richTextShadowSchema = richtextpropertiesRichTextShadowSchema;
1579
1614
  /**
@@ -1587,14 +1622,14 @@ export const richtextpropertiesRichTextStrokeSchema = z.object({
1587
1622
  return v;
1588
1623
  return Number(v);
1589
1624
  } 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"),
1625
+ 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
1626
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1592
1627
  return undefined; if (Array.isArray(v))
1593
1628
  return v; if (typeof v === 'string') {
1594
1629
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1595
1630
  return v;
1596
1631
  return Number(v);
1597
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1632
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
1598
1633
  }).strict();
1599
1634
  export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
1600
1635
  /**
@@ -1602,21 +1637,28 @@ export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
1602
1637
  */
1603
1638
  export const richcaptionpropertiesRichCaptionActiveSchema = z.object({
1604
1639
  font: z.optional(richcaptionpropertiesRichCaptionActiveFontSchema),
1605
- stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
1640
+ stroke: z.optional(z.union([
1641
+ richtextpropertiesRichTextStrokeSchema,
1642
+ z.enum(['none'])
1643
+ ])),
1644
+ shadow: z.optional(z.union([
1645
+ richtextpropertiesRichTextShadowSchema,
1646
+ z.enum(['none'])
1647
+ ])),
1606
1648
  scale: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1607
1649
  return undefined; if (Array.isArray(v))
1608
1650
  return v; if (typeof v === 'string') {
1609
1651
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1610
1652
  return v;
1611
1653
  return Number(v);
1612
- } return v; }), z.number().gte(0.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1654
+ } return v; }), z.number().gte(0.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
1613
1655
  }).strict();
1614
1656
  export const richCaptionActiveSchema = richcaptionpropertiesRichCaptionActiveSchema;
1615
1657
  /**
1616
1658
  * Font properties for rich text.
1617
1659
  */
1618
1660
  export const richtextpropertiesRichTextFontSchema = z.object({
1619
- family: z.optional(z.string()).default("Open Sans"),
1661
+ family: z.optional(z.string()).default('Open Sans'),
1620
1662
  size: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1621
1663
  return undefined; if (Array.isArray(v))
1622
1664
  return v; if (typeof v === 'string') {
@@ -1624,8 +1666,8 @@ export const richtextpropertiesRichTextFontSchema = z.object({
1624
1666
  return v;
1625
1667
  return Number(v);
1626
1668
  } 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"),
1669
+ weight: z.optional(z.unknown()).default('400'),
1670
+ 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
1671
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1630
1672
  return undefined; if (Array.isArray(v))
1631
1673
  return v; if (typeof v === 'string') {
@@ -1634,7 +1676,7 @@ export const richtextpropertiesRichTextFontSchema = z.object({
1634
1676
  return Number(v);
1635
1677
  } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1636
1678
  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),
1679
+ stroke: z.optional(richtextpropertiesRichTextStrokeSchema)
1638
1680
  }).strict();
1639
1681
  export const richTextFontSchema = richtextpropertiesRichTextFontSchema;
1640
1682
  /**
@@ -1662,9 +1704,18 @@ export const richtextpropertiesRichTextStyleSchema = z.object({
1662
1704
  return v;
1663
1705
  return Number(v);
1664
1706
  } 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),
1707
+ textTransform: z.optional(z.enum([
1708
+ 'none',
1709
+ 'uppercase',
1710
+ 'lowercase',
1711
+ 'capitalize'
1712
+ ])),
1713
+ textDecoration: z.optional(z.enum([
1714
+ 'none',
1715
+ 'underline',
1716
+ 'line-through'
1717
+ ])),
1718
+ gradient: z.optional(richtextpropertiesRichTextGradientSchema)
1668
1719
  }).strict();
1669
1720
  export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
1670
1721
  /**
@@ -1674,7 +1725,7 @@ export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
1674
1725
  *
1675
1726
  */
1676
1727
  export const richcaptionassetRichCaptionAssetSchema = z.object({
1677
- type: z.enum(["rich-caption"]),
1728
+ type: z.enum(['rich-caption']),
1678
1729
  src: z.string().min(1),
1679
1730
  font: z.optional(richcaptionpropertiesRichCaptionFontSchema),
1680
1731
  style: z.optional(richtextpropertiesRichTextStyleSchema),
@@ -1682,16 +1733,19 @@ export const richcaptionassetRichCaptionAssetSchema = z.object({
1682
1733
  shadow: z.optional(richtextpropertiesRichTextShadowSchema),
1683
1734
  background: z.optional(richtextpropertiesRichTextBackgroundSchema),
1684
1735
  border: z.optional(richtextpropertiesRichTextBorderSchema),
1685
- padding: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1736
+ padding: z.optional(z.union([
1737
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1686
1738
  return undefined; if (Array.isArray(v))
1687
1739
  return v; if (typeof v === 'string') {
1688
1740
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1689
1741
  return v;
1690
1742
  return Number(v);
1691
- } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), richtextpropertiesRichTextPaddingSchema])),
1743
+ } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1744
+ richtextpropertiesRichTextPaddingSchema
1745
+ ])),
1692
1746
  align: z.optional(richtextpropertiesRichTextAlignmentSchema),
1693
1747
  active: z.optional(richcaptionpropertiesRichCaptionActiveSchema),
1694
- wordAnimation: z.optional(richcaptionpropertiesRichCaptionWordAnimationSchema),
1748
+ wordAnimation: z.optional(richcaptionpropertiesRichCaptionWordAnimationSchema)
1695
1749
  }).strict();
1696
1750
  export const richCaptionAssetSchema = richcaptionassetRichCaptionAssetSchema;
1697
1751
  /**
@@ -1700,7 +1754,7 @@ export const richCaptionAssetSchema = richcaptionassetRichCaptionAssetSchema;
1700
1754
  *
1701
1755
  */
1702
1756
  export const richtextassetRichTextAssetSchema = z.object({
1703
- type: z.enum(["rich-text"]),
1757
+ type: z.enum(['rich-text']),
1704
1758
  text: z.string().max(5000),
1705
1759
  font: z.optional(richtextpropertiesRichTextFontSchema),
1706
1760
  style: z.optional(richtextpropertiesRichTextStyleSchema),
@@ -1708,15 +1762,18 @@ export const richtextassetRichTextAssetSchema = z.object({
1708
1762
  shadow: z.optional(richtextpropertiesRichTextShadowSchema),
1709
1763
  background: z.optional(richtextpropertiesRichTextBackgroundSchema),
1710
1764
  border: z.optional(richtextpropertiesRichTextBorderSchema),
1711
- padding: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1765
+ padding: z.optional(z.union([
1766
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1712
1767
  return undefined; if (Array.isArray(v))
1713
1768
  return v; if (typeof v === 'string') {
1714
1769
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1715
1770
  return v;
1716
1771
  return Number(v);
1717
- } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), richtextpropertiesRichTextPaddingSchema])),
1772
+ } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1773
+ richtextpropertiesRichTextPaddingSchema
1774
+ ])),
1718
1775
  align: z.optional(richtextpropertiesRichTextAlignmentSchema),
1719
- animation: z.optional(richtextpropertiesRichTextAnimationSchema),
1776
+ animation: z.optional(richtextpropertiesRichTextAnimationSchema)
1720
1777
  }).strict();
1721
1778
  export const richTextAssetSchema = richtextassetRichTextAssetSchema;
1722
1779
  /**
@@ -1725,8 +1782,8 @@ export const richTextAssetSchema = richtextassetRichTextAssetSchema;
1725
1782
  export const transferresponseattributesTransferResponseAttributesSchema = z.object({
1726
1783
  id: z.optional(z.string()),
1727
1784
  owner: z.optional(z.string()),
1728
- status: z.optional(z.enum(["queued", "failed"])),
1729
- created: z.optional(z.string()),
1785
+ status: z.optional(z.enum(['queued', 'failed'])),
1786
+ created: z.optional(z.string())
1730
1787
  }).strict();
1731
1788
  export const transferResponseAttributesSchema = transferresponseattributesTransferResponseAttributesSchema;
1732
1789
  /**
@@ -1734,14 +1791,14 @@ export const transferResponseAttributesSchema = transferresponseattributesTransf
1734
1791
  */
1735
1792
  export const transferresponsedataTransferResponseDataSchema = z.object({
1736
1793
  type: z.optional(z.string()),
1737
- attributes: z.optional(transferresponseattributesTransferResponseAttributesSchema),
1794
+ attributes: z.optional(transferresponseattributesTransferResponseAttributesSchema)
1738
1795
  }).strict();
1739
1796
  export const transferResponseDataSchema = transferresponsedataTransferResponseDataSchema;
1740
1797
  /**
1741
1798
  * 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
1799
  */
1743
1800
  export const transferresponseTransferResponseSchema = z.object({
1744
- data: transferresponsedataTransferResponseDataSchema,
1801
+ data: transferresponsedataTransferResponseDataSchema
1745
1802
  }).strict();
1746
1803
  export const transferResponseSchema = transferresponseTransferResponseSchema;
1747
1804
  /**
@@ -1750,7 +1807,7 @@ export const transferResponseSchema = transferresponseTransferResponseSchema;
1750
1807
  export const transferTransferSchema = z.object({
1751
1808
  url: z.string(),
1752
1809
  id: z.string(),
1753
- destinations: z.array(destinationsDestinationsSchema),
1810
+ destinations: z.array(destinationsDestinationsSchema)
1754
1811
  }).strict();
1755
1812
  export const transferSchema = transferTransferSchema;
1756
1813
  /**
@@ -1759,8 +1816,12 @@ export const transferSchema = transferTransferSchema;
1759
1816
  *
1760
1817
  */
1761
1818
  export const shapeassetShapeAssetSchema = z.object({
1762
- type: z.enum(["shape"]),
1763
- shape: z.enum(["rectangle", "circle", "line"]),
1819
+ type: z.enum(['shape']),
1820
+ shape: z.enum([
1821
+ 'rectangle',
1822
+ 'circle',
1823
+ 'line'
1824
+ ]),
1764
1825
  width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1765
1826
  return undefined; if (Array.isArray(v))
1766
1827
  return v; if (typeof v === 'string') {
@@ -1783,7 +1844,7 @@ export const shapeassetShapeAssetSchema = z.object({
1783
1844
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1784
1845
  return v;
1785
1846
  return Number(v);
1786
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1847
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1787
1848
  })),
1788
1849
  stroke: z.optional(z.object({
1789
1850
  color: z.optional(z.string()),
@@ -1793,7 +1854,7 @@ export const shapeassetShapeAssetSchema = z.object({
1793
1854
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1794
1855
  return v;
1795
1856
  return Number(v);
1796
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1857
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1797
1858
  })),
1798
1859
  rectangle: z.optional(z.object({
1799
1860
  width: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1816,7 +1877,7 @@ export const shapeassetShapeAssetSchema = z.object({
1816
1877
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1817
1878
  return v;
1818
1879
  return Number(v);
1819
- } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1880
+ } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1820
1881
  })),
1821
1882
  circle: z.optional(z.object({
1822
1883
  radius: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1825,7 +1886,7 @@ export const shapeassetShapeAssetSchema = z.object({
1825
1886
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1826
1887
  return v;
1827
1888
  return Number(v);
1828
- } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1889
+ } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1829
1890
  })),
1830
1891
  line: z.optional(z.object({
1831
1892
  length: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1841,8 +1902,8 @@ export const shapeassetShapeAssetSchema = z.object({
1841
1902
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1842
1903
  return v;
1843
1904
  return Number(v);
1844
- } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1845
- })),
1905
+ } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1906
+ }))
1846
1907
  }).strict();
1847
1908
  export const shapeAssetSchema = shapeassetShapeAssetSchema;
1848
1909
  /**
@@ -1862,7 +1923,7 @@ export const sizeSizeSchema = z.object({
1862
1923
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1863
1924
  return v;
1864
1925
  return Number(v);
1865
- } return v; }), z.number().int().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1926
+ } return v; }), z.number().int().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1866
1927
  }).strict();
1867
1928
  export const sizeSchema = sizeSizeSchema;
1868
1929
  /**
@@ -1870,25 +1931,35 @@ export const sizeSchema = sizeSizeSchema;
1870
1931
  */
1871
1932
  export const renditionRenditionSchema = z.object({
1872
1933
  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",
1934
+ 'mp4',
1935
+ 'webm',
1936
+ 'mov',
1937
+ 'avi',
1938
+ 'mkv',
1939
+ 'ogv',
1940
+ 'wmv',
1941
+ 'avif',
1942
+ 'gif',
1943
+ 'mp3',
1944
+ 'wav',
1945
+ 'jpg',
1946
+ 'png',
1947
+ 'webp',
1948
+ 'tif'
1888
1949
  ])),
1889
1950
  size: z.optional(sizeSizeSchema),
1890
- fit: z.optional(z.enum(["cover", "contain", "crop"])),
1891
- resolution: z.optional(z.enum(["preview", "mobile", "sd", "hd", "fhd"])),
1951
+ fit: z.optional(z.enum([
1952
+ 'cover',
1953
+ 'contain',
1954
+ 'crop'
1955
+ ])),
1956
+ resolution: z.optional(z.enum([
1957
+ 'preview',
1958
+ 'mobile',
1959
+ 'sd',
1960
+ 'hd',
1961
+ 'fhd'
1962
+ ])),
1892
1963
  quality: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1893
1964
  return undefined; if (Array.isArray(v))
1894
1965
  return v; if (typeof v === 'string') {
@@ -1907,7 +1978,7 @@ export const renditionRenditionSchema = z.object({
1907
1978
  z.literal(48),
1908
1979
  z.literal(50),
1909
1980
  z.literal(59.94),
1910
- z.literal(60),
1981
+ z.literal(60)
1911
1982
  ])),
1912
1983
  speed: z.optional(speedSpeedSchema),
1913
1984
  keyframeInterval: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1920,7 +1991,7 @@ export const renditionRenditionSchema = z.object({
1920
1991
  fixOffset: z.optional(z.boolean()),
1921
1992
  fixRotation: z.optional(z.boolean()),
1922
1993
  enhance: z.optional(enhancementsEnhancementsSchema),
1923
- filename: z.optional(z.string()),
1994
+ filename: z.optional(z.string())
1924
1995
  }).strict();
1925
1996
  export const renditionSchema = renditionRenditionSchema;
1926
1997
  /**
@@ -1928,7 +1999,7 @@ export const renditionSchema = renditionRenditionSchema;
1928
1999
  */
1929
2000
  export const outputsOutputsSchema = z.object({
1930
2001
  renditions: z.optional(z.array(renditionRenditionSchema)),
1931
- transcription: z.optional(transcriptionTranscriptionSchema),
2002
+ transcription: z.optional(transcriptionTranscriptionSchema)
1932
2003
  }).strict();
1933
2004
  export const outputsSchema = outputsOutputsSchema;
1934
2005
  /**
@@ -1937,12 +2008,12 @@ export const outputsSchema = outputsOutputsSchema;
1937
2008
  export const renditionresponseattributesRenditionResponseAttributesSchema = z.object({
1938
2009
  id: z.string(),
1939
2010
  status: z.optional(z.enum([
1940
- "queued",
1941
- "importing",
1942
- "ready",
1943
- "failed",
1944
- "deleted",
1945
- "overwritten",
2011
+ 'queued',
2012
+ 'importing',
2013
+ 'ready',
2014
+ 'failed',
2015
+ 'deleted',
2016
+ 'overwritten'
1946
2017
  ])),
1947
2018
  url: z.optional(z.string()),
1948
2019
  executionTime: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1980,14 +2051,14 @@ export const renditionresponseattributesRenditionResponseAttributesSchema = z.ob
1980
2051
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1981
2052
  return v;
1982
2053
  return Number(v);
1983
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2054
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1984
2055
  }).strict();
1985
2056
  export const renditionResponseAttributesSchema = renditionresponseattributesRenditionResponseAttributesSchema;
1986
2057
  /**
1987
2058
  * The list of outputs generated from the source file. Currently supports renditions which are versions of the source file with different transformations applied.
1988
2059
  */
1989
2060
  export const outputsresponseOutputsResponseSchema = z.object({
1990
- renditions: z.optional(z.array(renditionresponseattributesRenditionResponseAttributesSchema)),
2061
+ renditions: z.optional(z.array(renditionresponseattributesRenditionResponseAttributesSchema))
1991
2062
  }).strict();
1992
2063
  export const outputsResponseSchema = outputsresponseOutputsResponseSchema;
1993
2064
  /**
@@ -1999,12 +2070,12 @@ export const sourceresponseattributesSourceResponseAttributesSchema = z.object({
1999
2070
  input: z.optional(z.string()),
2000
2071
  source: z.optional(z.string()),
2001
2072
  status: z.optional(z.enum([
2002
- "queued",
2003
- "importing",
2004
- "ready",
2005
- "failed",
2006
- "deleted",
2007
- "overwritten",
2073
+ 'queued',
2074
+ 'importing',
2075
+ 'ready',
2076
+ 'failed',
2077
+ 'deleted',
2078
+ 'overwritten'
2008
2079
  ])),
2009
2080
  outputs: z.optional(outputsresponseOutputsResponseSchema),
2010
2081
  width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -2036,7 +2107,7 @@ export const sourceresponseattributesSourceResponseAttributesSchema = z.object({
2036
2107
  return Number(v);
2037
2108
  } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2038
2109
  created: z.optional(z.string()),
2039
- updated: z.optional(z.string()),
2110
+ updated: z.optional(z.string())
2040
2111
  }).strict();
2041
2112
  export const sourceResponseAttributesSchema = sourceresponseattributesSourceResponseAttributesSchema;
2042
2113
  /**
@@ -2045,21 +2116,21 @@ export const sourceResponseAttributesSchema = sourceresponseattributesSourceResp
2045
2116
  export const sourceresponsedataSourceResponseDataSchema = z.object({
2046
2117
  type: z.string(),
2047
2118
  id: z.string(),
2048
- attributes: sourceresponseattributesSourceResponseAttributesSchema,
2119
+ attributes: sourceresponseattributesSourceResponseAttributesSchema
2049
2120
  }).strict();
2050
2121
  export const sourceResponseDataSchema = sourceresponsedataSourceResponseDataSchema;
2051
2122
  /**
2052
2123
  * A list of all ingested source files fetched or uploaded to a users account.
2053
2124
  */
2054
2125
  export const sourcelistresponseSourceListResponseSchema = z.object({
2055
- data: z.array(sourceresponsedataSourceResponseDataSchema),
2126
+ data: z.array(sourceresponsedataSourceResponseDataSchema)
2056
2127
  }).strict();
2057
2128
  export const sourceListResponseSchema = sourcelistresponseSourceListResponseSchema;
2058
2129
  /**
2059
2130
  * 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
2131
  */
2061
2132
  export const sourceresponseSourceResponseSchema = z.object({
2062
- data: sourceresponsedataSourceResponseDataSchema,
2133
+ data: sourceresponsedataSourceResponseDataSchema
2063
2134
  }).strict();
2064
2135
  export const sourceResponseSchema = sourceresponseSourceResponseSchema;
2065
2136
  /**
@@ -2070,7 +2141,7 @@ export const sourceSourceSchema = z.object({
2070
2141
  url: z.optional(z.string()),
2071
2142
  outputs: z.optional(outputsOutputsSchema),
2072
2143
  destinations: z.optional(destinationsDestinationsSchema),
2073
- callback: z.optional(z.string()),
2144
+ callback: z.optional(z.string())
2074
2145
  }).strict();
2075
2146
  export const sourceSchema = sourceSourceSchema;
2076
2147
  /**
@@ -2078,14 +2149,18 @@ export const sourceSchema = sourceSourceSchema;
2078
2149
  */
2079
2150
  export const soundtrackSoundtrackSchema = z.object({
2080
2151
  src: z.string().min(1).regex(/\S/),
2081
- effect: z.optional(z.enum(["fadeIn", "fadeOut", "fadeInFadeOut"])),
2152
+ effect: z.optional(z.enum([
2153
+ 'fadeIn',
2154
+ 'fadeOut',
2155
+ 'fadeInFadeOut'
2156
+ ])),
2082
2157
  volume: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2083
2158
  return undefined; if (Array.isArray(v))
2084
2159
  return v; if (typeof v === 'string') {
2085
2160
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2086
2161
  return v;
2087
2162
  return Number(v);
2088
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2163
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
2089
2164
  }).strict();
2090
2165
  export const soundtrackSchema = soundtrackSoundtrackSchema;
2091
2166
  /**
@@ -2101,7 +2176,7 @@ export const svgpropertiesSvgGradientStopSchema = z.object({
2101
2176
  return v;
2102
2177
  return Number(v);
2103
2178
  } 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*\}\}$/)]),
2179
+ color: z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2105
2180
  }).strict();
2106
2181
  export const svgGradientStopSchema = svgpropertiesSvgGradientStopSchema;
2107
2182
  /**
@@ -2110,7 +2185,7 @@ export const svgGradientStopSchema = svgpropertiesSvgGradientStopSchema;
2110
2185
  *
2111
2186
  */
2112
2187
  export const svgpropertiesSvgLinearGradientFillSchema = z.object({
2113
- type: z.enum(["linear"]),
2188
+ type: z.enum(['linear']),
2114
2189
  angle: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2115
2190
  return undefined; if (Array.isArray(v))
2116
2191
  return v; if (typeof v === 'string') {
@@ -2125,7 +2200,7 @@ export const svgpropertiesSvgLinearGradientFillSchema = z.object({
2125
2200
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2126
2201
  return v;
2127
2202
  return Number(v);
2128
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2203
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
2129
2204
  }).strict();
2130
2205
  export const svgLinearGradientFillSchema = svgpropertiesSvgLinearGradientFillSchema;
2131
2206
  /**
@@ -2134,7 +2209,7 @@ export const svgLinearGradientFillSchema = svgpropertiesSvgLinearGradientFillSch
2134
2209
  *
2135
2210
  */
2136
2211
  export const svgpropertiesSvgRadialGradientFillSchema = z.object({
2137
- type: z.enum(["radial"]),
2212
+ type: z.enum(['radial']),
2138
2213
  stops: z.array(svgpropertiesSvgGradientStopSchema).min(2),
2139
2214
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2140
2215
  return undefined; if (Array.isArray(v))
@@ -2142,7 +2217,7 @@ export const svgpropertiesSvgRadialGradientFillSchema = z.object({
2142
2217
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2143
2218
  return v;
2144
2219
  return Number(v);
2145
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2220
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
2146
2221
  }).strict();
2147
2222
  export const svgRadialGradientFillSchema = svgpropertiesSvgRadialGradientFillSchema;
2148
2223
  /**
@@ -2171,32 +2246,29 @@ export const svgpropertiesSvgShadowSchema = z.object({
2171
2246
  return v;
2172
2247
  return Number(v);
2173
2248
  } 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"),
2249
+ 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
2250
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2176
2251
  return undefined; if (Array.isArray(v))
2177
2252
  return v; if (typeof v === 'string') {
2178
2253
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2179
2254
  return v;
2180
2255
  return Number(v);
2181
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
2256
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
2182
2257
  }).strict();
2183
2258
  export const svgShadowSchema = svgpropertiesSvgShadowSchema;
2184
2259
  /**
2185
2260
  * A solid color fill for SVG shapes.
2186
2261
  */
2187
2262
  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"),
2263
+ type: z.enum(['solid']),
2264
+ color: z.string().regex(/^#[A-Fa-f0-9]{6}$/).default('#000000'),
2193
2265
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2194
2266
  return undefined; if (Array.isArray(v))
2195
2267
  return v; if (typeof v === 'string') {
2196
2268
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2197
2269
  return v;
2198
2270
  return Number(v);
2199
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2271
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
2200
2272
  }).strict();
2201
2273
  export const svgSolidFillSchema = svgpropertiesSvgSolidFillSchema;
2202
2274
  /**
@@ -2216,7 +2288,7 @@ export const svgFillSchema = svgpropertiesSvgFillSchema;
2216
2288
  *
2217
2289
  */
2218
2290
  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"),
2291
+ 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
2292
  width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2221
2293
  return undefined; if (Array.isArray(v))
2222
2294
  return v; if (typeof v === 'string') {
@@ -2231,8 +2303,16 @@ export const svgpropertiesSvgStrokeSchema = z.object({
2231
2303
  return v;
2232
2304
  return Number(v);
2233
2305
  } 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"])),
2306
+ lineCap: z.optional(z.enum([
2307
+ 'butt',
2308
+ 'round',
2309
+ 'square'
2310
+ ])),
2311
+ lineJoin: z.optional(z.enum([
2312
+ 'miter',
2313
+ 'round',
2314
+ 'bevel'
2315
+ ])),
2236
2316
  dashArray: z.optional(z.array(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2237
2317
  return undefined; if (Array.isArray(v))
2238
2318
  return v; if (typeof v === 'string') {
@@ -2246,7 +2326,7 @@ export const svgpropertiesSvgStrokeSchema = z.object({
2246
2326
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2247
2327
  return v;
2248
2328
  return Number(v);
2249
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2329
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
2250
2330
  }).strict();
2251
2331
  export const svgStrokeSchema = svgpropertiesSvgStrokeSchema;
2252
2332
  /**
@@ -2295,7 +2375,7 @@ export const svgpropertiesSvgTransformSchema = z.object({
2295
2375
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2296
2376
  return v;
2297
2377
  return Number(v);
2298
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
2378
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
2299
2379
  }).strict();
2300
2380
  export const svgTransformSchema = svgpropertiesSvgTransformSchema;
2301
2381
  /**
@@ -2304,7 +2384,7 @@ export const svgTransformSchema = svgpropertiesSvgTransformSchema;
2304
2384
  *
2305
2385
  */
2306
2386
  export const svgshapesSvgArrowShapeSchema = z.object({
2307
- type: z.enum(["arrow"]),
2387
+ type: z.enum(['arrow']),
2308
2388
  length: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2309
2389
  return undefined; if (Array.isArray(v))
2310
2390
  return v; if (typeof v === 'string') {
@@ -2332,7 +2412,7 @@ export const svgshapesSvgArrowShapeSchema = z.object({
2332
2412
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2333
2413
  return v;
2334
2414
  return Number(v);
2335
- } return v; }), z.number().gte(1).lte(1000)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2415
+ } return v; }), z.number().gte(1).lte(1000)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2336
2416
  }).strict();
2337
2417
  export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
2338
2418
  /**
@@ -2341,14 +2421,14 @@ export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
2341
2421
  *
2342
2422
  */
2343
2423
  export const svgshapesSvgCircleShapeSchema = z.object({
2344
- type: z.enum(["circle"]),
2424
+ type: z.enum(['circle']),
2345
2425
  radius: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2346
2426
  return undefined; if (Array.isArray(v))
2347
2427
  return v; if (typeof v === 'string') {
2348
2428
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2349
2429
  return v;
2350
2430
  return Number(v);
2351
- } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2431
+ } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2352
2432
  }).strict();
2353
2433
  export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
2354
2434
  /**
@@ -2357,7 +2437,7 @@ export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
2357
2437
  *
2358
2438
  */
2359
2439
  export const svgshapesSvgCrossShapeSchema = z.object({
2360
- type: z.enum(["cross"]),
2440
+ type: z.enum(['cross']),
2361
2441
  width: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2362
2442
  return undefined; if (Array.isArray(v))
2363
2443
  return v; if (typeof v === 'string') {
@@ -2378,7 +2458,7 @@ export const svgshapesSvgCrossShapeSchema = z.object({
2378
2458
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2379
2459
  return v;
2380
2460
  return Number(v);
2381
- } return v; }), z.number().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2461
+ } return v; }), z.number().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2382
2462
  }).strict();
2383
2463
  export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
2384
2464
  /**
@@ -2387,7 +2467,7 @@ export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
2387
2467
  *
2388
2468
  */
2389
2469
  export const svgshapesSvgEllipseShapeSchema = z.object({
2390
- type: z.enum(["ellipse"]),
2470
+ type: z.enum(['ellipse']),
2391
2471
  radiusX: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2392
2472
  return undefined; if (Array.isArray(v))
2393
2473
  return v; if (typeof v === 'string') {
@@ -2401,7 +2481,7 @@ export const svgshapesSvgEllipseShapeSchema = z.object({
2401
2481
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2402
2482
  return v;
2403
2483
  return Number(v);
2404
- } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2484
+ } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2405
2485
  }).strict();
2406
2486
  export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
2407
2487
  /**
@@ -2410,14 +2490,14 @@ export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
2410
2490
  *
2411
2491
  */
2412
2492
  export const svgshapesSvgHeartShapeSchema = z.object({
2413
- type: z.enum(["heart"]),
2493
+ type: z.enum(['heart']),
2414
2494
  size: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2415
2495
  return undefined; if (Array.isArray(v))
2416
2496
  return v; if (typeof v === 'string') {
2417
2497
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2418
2498
  return v;
2419
2499
  return Number(v);
2420
- } return v; }), z.number().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2500
+ } return v; }), z.number().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2421
2501
  }).strict();
2422
2502
  export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
2423
2503
  /**
@@ -2426,7 +2506,7 @@ export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
2426
2506
  *
2427
2507
  */
2428
2508
  export const svgshapesSvgLineShapeSchema = z.object({
2429
- type: z.enum(["line"]),
2509
+ type: z.enum(['line']),
2430
2510
  length: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2431
2511
  return undefined; if (Array.isArray(v))
2432
2512
  return v; if (typeof v === 'string') {
@@ -2440,7 +2520,7 @@ export const svgshapesSvgLineShapeSchema = z.object({
2440
2520
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2441
2521
  return v;
2442
2522
  return Number(v);
2443
- } return v; }), z.number().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2523
+ } return v; }), z.number().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2444
2524
  }).strict();
2445
2525
  export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
2446
2526
  /**
@@ -2461,8 +2541,8 @@ export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
2461
2541
  *
2462
2542
  */
2463
2543
  export const svgshapesSvgPathShapeSchema = z.object({
2464
- type: z.enum(["path"]),
2465
- d: z.string().min(1).max(100000),
2544
+ type: z.enum(['path']),
2545
+ d: z.string().min(1).max(100000)
2466
2546
  }).strict();
2467
2547
  export const svgPathShapeSchema = svgshapesSvgPathShapeSchema;
2468
2548
  /**
@@ -2472,7 +2552,7 @@ export const svgPathShapeSchema = svgshapesSvgPathShapeSchema;
2472
2552
  *
2473
2553
  */
2474
2554
  export const svgshapesSvgPolygonShapeSchema = z.object({
2475
- type: z.enum(["polygon"]),
2555
+ type: z.enum(['polygon']),
2476
2556
  sides: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2477
2557
  return undefined; if (Array.isArray(v))
2478
2558
  return v; if (typeof v === 'string') {
@@ -2486,7 +2566,7 @@ export const svgshapesSvgPolygonShapeSchema = z.object({
2486
2566
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2487
2567
  return v;
2488
2568
  return Number(v);
2489
- } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2569
+ } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2490
2570
  }).strict();
2491
2571
  export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
2492
2572
  /**
@@ -2495,7 +2575,7 @@ export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
2495
2575
  *
2496
2576
  */
2497
2577
  export const svgshapesSvgRectangleShapeSchema = z.object({
2498
- type: z.enum(["rectangle"]),
2578
+ type: z.enum(['rectangle']),
2499
2579
  width: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2500
2580
  return undefined; if (Array.isArray(v))
2501
2581
  return v; if (typeof v === 'string') {
@@ -2516,7 +2596,7 @@ export const svgshapesSvgRectangleShapeSchema = z.object({
2516
2596
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2517
2597
  return v;
2518
2598
  return Number(v);
2519
- } return v; }), z.number().gte(0).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2599
+ } return v; }), z.number().gte(0).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
2520
2600
  }).strict();
2521
2601
  export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
2522
2602
  /**
@@ -2525,7 +2605,7 @@ export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
2525
2605
  *
2526
2606
  */
2527
2607
  export const svgshapesSvgRingShapeSchema = z.object({
2528
- type: z.enum(["ring"]),
2608
+ type: z.enum(['ring']),
2529
2609
  outerRadius: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2530
2610
  return undefined; if (Array.isArray(v))
2531
2611
  return v; if (typeof v === 'string') {
@@ -2539,7 +2619,7 @@ export const svgshapesSvgRingShapeSchema = z.object({
2539
2619
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2540
2620
  return v;
2541
2621
  return Number(v);
2542
- } return v; }), z.number().gte(0).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2622
+ } return v; }), z.number().gte(0).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2543
2623
  }).strict();
2544
2624
  export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
2545
2625
  /**
@@ -2549,7 +2629,7 @@ export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
2549
2629
  *
2550
2630
  */
2551
2631
  export const svgshapesSvgStarShapeSchema = z.object({
2552
- type: z.enum(["star"]),
2632
+ type: z.enum(['star']),
2553
2633
  points: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2554
2634
  return undefined; if (Array.isArray(v))
2555
2635
  return v; if (typeof v === 'string') {
@@ -2570,7 +2650,7 @@ export const svgshapesSvgStarShapeSchema = z.object({
2570
2650
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2571
2651
  return v;
2572
2652
  return Number(v);
2573
- } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2653
+ } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2574
2654
  }).strict();
2575
2655
  export const svgStarShapeSchema = svgshapesSvgStarShapeSchema;
2576
2656
  /**
@@ -2701,29 +2781,37 @@ export const svgAssetSchema = svgassetSvgAssetSchema;
2701
2781
  */
2702
2782
  export const templaterenderTemplateRenderSchema = z.object({
2703
2783
  id: z.string(),
2704
- merge: z.optional(z.array(mergefieldMergeFieldSchema)),
2784
+ merge: z.optional(z.array(mergefieldMergeFieldSchema))
2705
2785
  }).strict();
2706
2786
  export const templateRenderSchema = templaterenderTemplateRenderSchema;
2707
2787
  /**
2708
2788
  * Horizontal and vertical alignment properties for text.
2709
2789
  */
2710
2790
  export const textpropertiesTextAlignmentSchema = z.object({
2711
- horizontal: z.optional(z.enum(["left", "center", "right"])),
2712
- vertical: z.optional(z.enum(["top", "center", "bottom"])),
2791
+ horizontal: z.optional(z.enum([
2792
+ 'left',
2793
+ 'center',
2794
+ 'right'
2795
+ ])),
2796
+ vertical: z.optional(z.enum([
2797
+ 'top',
2798
+ 'center',
2799
+ 'bottom'
2800
+ ]))
2713
2801
  }).strict();
2714
2802
  export const textAlignmentSchema = textpropertiesTextAlignmentSchema;
2715
2803
  /**
2716
2804
  * Animation properties for text entrance effects.
2717
2805
  */
2718
2806
  export const textpropertiesTextAnimationSchema = z.object({
2719
- preset: z.enum(["typewriter"]),
2807
+ preset: z.enum(['typewriter']),
2720
2808
  duration: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2721
2809
  return undefined; if (Array.isArray(v))
2722
2810
  return v; if (typeof v === 'string') {
2723
2811
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2724
2812
  return v;
2725
2813
  return Number(v);
2726
- } return v; }), z.number().gte(0.1).lte(30)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2814
+ } return v; }), z.number().gte(0.1).lte(30)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
2727
2815
  }).strict();
2728
2816
  /**
2729
2817
  * Displays a background box behind the text.
@@ -2750,7 +2838,7 @@ export const textpropertiesTextBackgroundSchema = z.object({
2750
2838
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2751
2839
  return v;
2752
2840
  return Number(v);
2753
- } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2841
+ } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
2754
2842
  }).strict();
2755
2843
  export const textBackgroundSchema = textpropertiesTextBackgroundSchema;
2756
2844
  /**
@@ -2786,7 +2874,7 @@ export const textpropertiesTextFontSchema = z.object({
2786
2874
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2787
2875
  return v;
2788
2876
  return Number(v);
2789
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2877
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
2790
2878
  }).strict();
2791
2879
  export const textFontSchema = textpropertiesTextFontSchema;
2792
2880
  /**
@@ -2800,7 +2888,7 @@ export const textpropertiesTextStrokeSchema = z.object({
2800
2888
  return v;
2801
2889
  return Number(v);
2802
2890
  } 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*\}\}$/)])),
2891
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
2804
2892
  }).strict();
2805
2893
  /**
2806
2894
  * The TextAsset is used to add text and titles to a video. The text can be styled with built in and custom
@@ -2808,7 +2896,7 @@ export const textpropertiesTextStrokeSchema = z.object({
2808
2896
  *
2809
2897
  */
2810
2898
  export const textassetTextAssetSchema = z.object({
2811
- type: z.enum(["text"]),
2899
+ type: z.enum(['text']),
2812
2900
  text: z.string(),
2813
2901
  width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2814
2902
  return undefined; if (Array.isArray(v))
@@ -2829,14 +2917,14 @@ export const textassetTextAssetSchema = z.object({
2829
2917
  alignment: z.optional(textpropertiesTextAlignmentSchema),
2830
2918
  stroke: z.optional(textpropertiesTextStrokeSchema),
2831
2919
  animation: z.optional(textpropertiesTextAnimationSchema),
2832
- ellipsis: z.optional(z.string()),
2920
+ ellipsis: z.optional(z.string())
2833
2921
  }).strict();
2834
2922
  export const textAssetSchema = textassetTextAssetSchema;
2835
2923
  /**
2836
2924
  * The TextToImageAsset lets you create a dynamic image from a text prompt.
2837
2925
  */
2838
2926
  export const texttoimageassetTextToImageAssetSchema = z.object({
2839
- type: z.enum(["text-to-image"]),
2927
+ type: z.enum(['text-to-image']),
2840
2928
  prompt: z.string(),
2841
2929
  width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2842
2930
  return undefined; if (Array.isArray(v))
@@ -2852,7 +2940,7 @@ export const texttoimageassetTextToImageAssetSchema = z.object({
2852
2940
  return v;
2853
2941
  return Number(v);
2854
2942
  } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2855
- crop: z.optional(cropCropSchema),
2943
+ crop: z.optional(cropCropSchema)
2856
2944
  }).strict();
2857
2945
  export const textToImageAssetSchema = texttoimageassetTextToImageAssetSchema;
2858
2946
  /**
@@ -2872,16 +2960,36 @@ export const thumbnailThumbnailSchema = z.object({
2872
2960
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2873
2961
  return v;
2874
2962
  return Number(v);
2875
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2963
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2876
2964
  }).strict();
2877
2965
  export const thumbnailSchema = thumbnailThumbnailSchema;
2878
2966
  /**
2879
2967
  * The output format, render range and type of media to generate.
2880
2968
  */
2881
2969
  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"])),
2970
+ format: z.enum([
2971
+ 'mp4',
2972
+ 'gif',
2973
+ 'mp3',
2974
+ 'jpg',
2975
+ 'png',
2976
+ 'bmp'
2977
+ ]),
2978
+ resolution: z.optional(z.enum([
2979
+ 'preview',
2980
+ 'mobile',
2981
+ 'sd',
2982
+ 'hd',
2983
+ '1080',
2984
+ '4k'
2985
+ ])),
2986
+ aspectRatio: z.optional(z.enum([
2987
+ '16:9',
2988
+ '9:16',
2989
+ '1:1',
2990
+ '4:5',
2991
+ '4:3'
2992
+ ])),
2885
2993
  size: z.optional(sizeSizeSchema),
2886
2994
  fps: z.optional(z.union([
2887
2995
  z.literal(12),
@@ -2894,16 +3002,29 @@ export const outputOutputSchema = z.object({
2894
3002
  z.literal(48),
2895
3003
  z.literal(50),
2896
3004
  z.literal(59.94),
2897
- z.literal(60),
3005
+ z.literal(60)
3006
+ ])),
3007
+ scaleTo: z.optional(z.enum([
3008
+ 'preview',
3009
+ 'mobile',
3010
+ 'sd',
3011
+ 'hd',
3012
+ '1080',
3013
+ '4k'
3014
+ ])),
3015
+ quality: z.optional(z.enum([
3016
+ 'verylow',
3017
+ 'low',
3018
+ 'medium',
3019
+ 'high',
3020
+ 'veryhigh'
2898
3021
  ])),
2899
- scaleTo: z.optional(z.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
2900
- quality: z.optional(z.enum(["verylow", "low", "medium", "high", "veryhigh"])),
2901
3022
  repeat: z.optional(z.boolean()),
2902
3023
  mute: z.optional(z.boolean()),
2903
3024
  range: z.optional(rangeRangeSchema),
2904
3025
  poster: z.optional(posterPosterSchema),
2905
3026
  thumbnail: z.optional(thumbnailThumbnailSchema),
2906
- destinations: z.optional(z.array(destinationsDestinationsSchema)),
3027
+ destinations: z.optional(z.array(destinationsDestinationsSchema))
2907
3028
  }).strict();
2908
3029
  export const outputSchema = outputOutputSchema;
2909
3030
  /**
@@ -2911,133 +3032,133 @@ export const outputSchema = outputOutputSchema;
2911
3032
  */
2912
3033
  export const transitionTransitionSchema = z.object({
2913
3034
  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",
3035
+ 'none',
3036
+ 'fade',
3037
+ 'fadeSlow',
3038
+ 'fadeFast',
3039
+ 'reveal',
3040
+ 'revealSlow',
3041
+ 'revealFast',
3042
+ 'wipeLeft',
3043
+ 'wipeLeftSlow',
3044
+ 'wipeLeftFast',
3045
+ 'wipeRight',
3046
+ 'wipeRightSlow',
3047
+ 'wipeRightFast',
3048
+ 'slideLeft',
3049
+ 'slideLeftSlow',
3050
+ 'slideLeftFast',
3051
+ 'slideRight',
3052
+ 'slideRightSlow',
3053
+ 'slideRightFast',
3054
+ 'slideUp',
3055
+ 'slideUpSlow',
3056
+ 'slideUpFast',
3057
+ 'slideDown',
3058
+ 'slideDownSlow',
3059
+ 'slideDownFast',
3060
+ 'carouselLeft',
3061
+ 'carouselLeftSlow',
3062
+ 'carouselLeftFast',
3063
+ 'carouselRight',
3064
+ 'carouselRightSlow',
3065
+ 'carouselRightFast',
3066
+ 'carouselUp',
3067
+ 'carouselUpSlow',
3068
+ 'carouselUpFast',
3069
+ 'carouselDown',
3070
+ 'carouselDownSlow',
3071
+ 'carouselDownFast',
3072
+ 'shuffleTopRight',
3073
+ 'shuffleTopRightSlow',
3074
+ 'shuffleTopRightFast',
3075
+ 'shuffleRightTop',
3076
+ 'shuffleRightTopSlow',
3077
+ 'shuffleRightTopFast',
3078
+ 'shuffleRightBottom',
3079
+ 'shuffleRightBottomSlow',
3080
+ 'shuffleRightBottomFast',
3081
+ 'shuffleBottomRight',
3082
+ 'shuffleBottomRightSlow',
3083
+ 'shuffleBottomRightFast',
3084
+ 'shuffleBottomLeft',
3085
+ 'shuffleBottomLeftSlow',
3086
+ 'shuffleBottomLeftFast',
3087
+ 'shuffleLeftBottom',
3088
+ 'shuffleLeftBottomSlow',
3089
+ 'shuffleLeftBottomFast',
3090
+ 'shuffleLeftTop',
3091
+ 'shuffleLeftTopSlow',
3092
+ 'shuffleLeftTopFast',
3093
+ 'shuffleTopLeft',
3094
+ 'shuffleTopLeftSlow',
3095
+ 'shuffleTopLeftFast',
3096
+ 'zoom'
2976
3097
  ])),
2977
3098
  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
- ])),
3099
+ 'none',
3100
+ 'fade',
3101
+ 'fadeSlow',
3102
+ 'fadeFast',
3103
+ 'reveal',
3104
+ 'revealSlow',
3105
+ 'revealFast',
3106
+ 'wipeLeft',
3107
+ 'wipeLeftSlow',
3108
+ 'wipeLeftFast',
3109
+ 'wipeRight',
3110
+ 'wipeRightSlow',
3111
+ 'wipeRightFast',
3112
+ 'slideLeft',
3113
+ 'slideLeftSlow',
3114
+ 'slideLeftFast',
3115
+ 'slideRight',
3116
+ 'slideRightSlow',
3117
+ 'slideRightFast',
3118
+ 'slideUp',
3119
+ 'slideUpSlow',
3120
+ 'slideUpFast',
3121
+ 'slideDown',
3122
+ 'slideDownSlow',
3123
+ 'slideDownFast',
3124
+ 'carouselLeft',
3125
+ 'carouselLeftSlow',
3126
+ 'carouselLeftFast',
3127
+ 'carouselRight',
3128
+ 'carouselRightSlow',
3129
+ 'carouselRightFast',
3130
+ 'carouselUp',
3131
+ 'carouselUpSlow',
3132
+ 'carouselUpFast',
3133
+ 'carouselDown',
3134
+ 'carouselDownSlow',
3135
+ 'carouselDownFast',
3136
+ 'shuffleTopRight',
3137
+ 'shuffleTopRightSlow',
3138
+ 'shuffleTopRightFast',
3139
+ 'shuffleRightTop',
3140
+ 'shuffleRightTopSlow',
3141
+ 'shuffleRightTopFast',
3142
+ 'shuffleRightBottom',
3143
+ 'shuffleRightBottomSlow',
3144
+ 'shuffleRightBottomFast',
3145
+ 'shuffleBottomRight',
3146
+ 'shuffleBottomRightSlow',
3147
+ 'shuffleBottomRightFast',
3148
+ 'shuffleBottomLeft',
3149
+ 'shuffleBottomLeftSlow',
3150
+ 'shuffleBottomLeftFast',
3151
+ 'shuffleLeftBottom',
3152
+ 'shuffleLeftBottomSlow',
3153
+ 'shuffleLeftBottomFast',
3154
+ 'shuffleLeftTop',
3155
+ 'shuffleLeftTopSlow',
3156
+ 'shuffleLeftTopFast',
3157
+ 'shuffleTopLeft',
3158
+ 'shuffleTopLeftSlow',
3159
+ 'shuffleTopLeftFast',
3160
+ 'zoom'
3161
+ ]))
3041
3162
  }).strict();
3042
3163
  export const transitionSchema = transitionTransitionSchema;
3043
3164
  /**
@@ -3067,44 +3188,48 @@ export const tweenTweenSchema = z.object({
3067
3188
  return v;
3068
3189
  return Number(v);
3069
3190
  } 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",
3191
+ interpolation: z.optional(z.enum([
3192
+ 'linear',
3193
+ 'bezier',
3194
+ 'constant'
3100
3195
  ])),
3196
+ easing: z.optional(z.enum([
3197
+ 'ease',
3198
+ 'easeIn',
3199
+ 'easeOut',
3200
+ 'easeInOut',
3201
+ 'easeInQuad',
3202
+ 'easeInCubic',
3203
+ 'easeInQuart',
3204
+ 'easeInQuint',
3205
+ 'easeInSine',
3206
+ 'easeInExpo',
3207
+ 'easeInCirc',
3208
+ 'easeInBack',
3209
+ 'easeOutQuad',
3210
+ 'easeOutCubic',
3211
+ 'easeOutQuart',
3212
+ 'easeOutQuint',
3213
+ 'easeOutSine',
3214
+ 'easeOutExpo',
3215
+ 'easeOutCirc',
3216
+ 'easeOutBack',
3217
+ 'easeInOutQuad',
3218
+ 'easeInOutCubic',
3219
+ 'easeInOutQuart',
3220
+ 'easeInOutQuint',
3221
+ 'easeInOutSine',
3222
+ 'easeInOutExpo',
3223
+ 'easeInOutCirc',
3224
+ 'easeInOutBack'
3225
+ ]))
3101
3226
  }).strict();
3102
3227
  export const tweenSchema = tweenTweenSchema;
3103
3228
  /**
3104
3229
  * 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
3230
  */
3106
3231
  export const audioassetAudioAssetSchema = z.object({
3107
- type: z.enum(["audio"]),
3232
+ type: z.enum(['audio']),
3108
3233
  src: z.string().min(1).regex(/\S/),
3109
3234
  trim: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3110
3235
  return undefined; if (Array.isArray(v))
@@ -3113,13 +3238,16 @@ export const audioassetAudioAssetSchema = z.object({
3113
3238
  return v;
3114
3239
  return Number(v);
3115
3240
  } 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)
3241
+ volume: z.optional(z.union([
3242
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3117
3243
  return undefined; if (Array.isArray(v))
3118
3244
  return v; if (typeof v === 'string') {
3119
3245
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3120
3246
  return v;
3121
3247
  return Number(v);
3122
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3248
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3249
+ z.array(tweenTweenSchema)
3250
+ ])),
3123
3251
  speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3124
3252
  return undefined; if (Array.isArray(v))
3125
3253
  return v; if (typeof v === 'string') {
@@ -3127,67 +3255,87 @@ export const audioassetAudioAssetSchema = z.object({
3127
3255
  return v;
3128
3256
  return Number(v);
3129
3257
  } 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"])),
3258
+ effect: z.optional(z.enum([
3259
+ 'none',
3260
+ 'fadeIn',
3261
+ 'fadeOut',
3262
+ 'fadeInFadeOut'
3263
+ ]))
3131
3264
  }).strict();
3132
3265
  export const audioAssetSchema = audioassetAudioAssetSchema;
3133
3266
  /**
3134
3267
  * Offsets the position of an asset horizontally or vertically by a relative distance.
3135
3268
  */
3136
3269
  export const offsetOffsetSchema = z.object({
3137
- x: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3270
+ x: z.optional(z.union([
3271
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3138
3272
  return undefined; if (Array.isArray(v))
3139
3273
  return v; if (typeof v === 'string') {
3140
3274
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3141
3275
  return v;
3142
3276
  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)
3277
+ } return v; }), z.number().gte(-10).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3278
+ z.array(tweenTweenSchema)
3279
+ ])),
3280
+ y: z.optional(z.union([
3281
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3145
3282
  return undefined; if (Array.isArray(v))
3146
3283
  return v; if (typeof v === 'string') {
3147
3284
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3148
3285
  return v;
3149
3286
  return Number(v);
3150
- } return v; }), z.number().gte(-10).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3287
+ } return v; }), z.number().gte(-10).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3288
+ z.array(tweenTweenSchema)
3289
+ ]))
3151
3290
  }).strict();
3152
3291
  export const offsetSchema = offsetOffsetSchema;
3153
3292
  /**
3154
3293
  * Rotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`.
3155
3294
  */
3156
3295
  export const rotatetransformationRotateTransformationSchema = z.object({
3157
- angle: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3296
+ angle: z.optional(z.union([
3297
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3158
3298
  return undefined; if (Array.isArray(v))
3159
3299
  return v; if (typeof v === 'string') {
3160
3300
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3161
3301
  return v;
3162
3302
  return Number(v);
3163
- } return v; }), z.number().gte(-360).lte(360)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3303
+ } return v; }), z.number().gte(-360).lte(360)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3304
+ z.array(tweenTweenSchema)
3305
+ ]))
3164
3306
  }).strict();
3165
3307
  export const rotateTransformationSchema = rotatetransformationRotateTransformationSchema;
3166
3308
  /**
3167
3309
  * 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
3310
  */
3169
3311
  export const skewtransformationSkewTransformationSchema = z.object({
3170
- x: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3312
+ x: z.optional(z.union([
3313
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3171
3314
  return undefined; if (Array.isArray(v))
3172
3315
  return v; if (typeof v === 'string') {
3173
3316
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3174
3317
  return v;
3175
3318
  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)
3319
+ } return v; }), z.number().gte(-100).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3320
+ z.array(tweenTweenSchema)
3321
+ ])),
3322
+ y: z.optional(z.union([
3323
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3178
3324
  return undefined; if (Array.isArray(v))
3179
3325
  return v; if (typeof v === 'string') {
3180
3326
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3181
3327
  return v;
3182
3328
  return Number(v);
3183
- } return v; }), z.number().gte(-100).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3329
+ } return v; }), z.number().gte(-100).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3330
+ z.array(tweenTweenSchema)
3331
+ ]))
3184
3332
  }).strict();
3185
3333
  export const skewTransformationSchema = skewtransformationSkewTransformationSchema;
3186
3334
  /**
3187
3335
  * 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
3336
  */
3189
3337
  export const texttospeechassetTextToSpeechAssetSchema = z.object({
3190
- type: z.enum(["text-to-speech"]),
3338
+ type: z.enum(['text-to-speech']),
3191
3339
  text: z.string(),
3192
3340
  voice: z.string(),
3193
3341
  language: z.optional(z.string()),
@@ -3199,13 +3347,16 @@ export const texttospeechassetTextToSpeechAssetSchema = z.object({
3199
3347
  return v;
3200
3348
  return Number(v);
3201
3349
  } 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)
3350
+ volume: z.optional(z.union([
3351
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3203
3352
  return undefined; if (Array.isArray(v))
3204
3353
  return v; if (typeof v === 'string') {
3205
3354
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3206
3355
  return v;
3207
3356
  return Number(v);
3208
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3357
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3358
+ z.array(tweenTweenSchema)
3359
+ ])),
3209
3360
  speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3210
3361
  return undefined; if (Array.isArray(v))
3211
3362
  return v; if (typeof v === 'string') {
@@ -3213,7 +3364,12 @@ export const texttospeechassetTextToSpeechAssetSchema = z.object({
3213
3364
  return v;
3214
3365
  return Number(v);
3215
3366
  } 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"])),
3367
+ effect: z.optional(z.enum([
3368
+ 'none',
3369
+ 'fadeIn',
3370
+ 'fadeOut',
3371
+ 'fadeInFadeOut'
3372
+ ]))
3217
3373
  }).strict();
3218
3374
  export const textToSpeechAssetSchema = texttospeechassetTextToSpeechAssetSchema;
3219
3375
  /**
@@ -3225,43 +3381,43 @@ export const textToSpeechAssetSchema = texttospeechassetTextToSpeechAssetSchema;
3225
3381
  * @deprecated
3226
3382
  */
3227
3383
  export const titleassetTitleAssetSchema = z.object({
3228
- type: z.enum(["title"]),
3384
+ type: z.enum(['title']),
3229
3385
  text: z.string(),
3230
3386
  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",
3387
+ 'minimal',
3388
+ 'blockbuster',
3389
+ 'vogue',
3390
+ 'sketchy',
3391
+ 'skinny',
3392
+ 'chunk',
3393
+ 'chunkLight',
3394
+ 'marker',
3395
+ 'future',
3396
+ 'subtitle'
3241
3397
  ])),
3242
3398
  color: z.optional(z.string()),
3243
3399
  size: z.optional(z.enum([
3244
- "xx-small",
3245
- "x-small",
3246
- "small",
3247
- "medium",
3248
- "large",
3249
- "x-large",
3250
- "xx-large",
3400
+ 'xx-small',
3401
+ 'x-small',
3402
+ 'small',
3403
+ 'medium',
3404
+ 'large',
3405
+ 'x-large',
3406
+ 'xx-large'
3251
3407
  ])),
3252
3408
  background: z.optional(z.string()),
3253
3409
  position: z.optional(z.enum([
3254
- "top",
3255
- "topRight",
3256
- "right",
3257
- "bottomRight",
3258
- "bottom",
3259
- "bottomLeft",
3260
- "left",
3261
- "topLeft",
3262
- "center",
3410
+ 'top',
3411
+ 'topRight',
3412
+ 'right',
3413
+ 'bottomRight',
3414
+ 'bottom',
3415
+ 'bottomLeft',
3416
+ 'left',
3417
+ 'topLeft',
3418
+ 'center'
3263
3419
  ])),
3264
- offset: z.optional(offsetOffsetSchema),
3420
+ offset: z.optional(offsetOffsetSchema)
3265
3421
  }).strict();
3266
3422
  export const titleAssetSchema = titleassetTitleAssetSchema;
3267
3423
  /**
@@ -3270,14 +3426,14 @@ export const titleAssetSchema = titleassetTitleAssetSchema;
3270
3426
  export const transformationTransformationSchema = z.object({
3271
3427
  rotate: z.optional(rotatetransformationRotateTransformationSchema),
3272
3428
  skew: z.optional(skewtransformationSkewTransformationSchema),
3273
- flip: z.optional(fliptransformationFlipTransformationSchema),
3429
+ flip: z.optional(fliptransformationFlipTransformationSchema)
3274
3430
  }).strict();
3275
3431
  export const transformationSchema = transformationTransformationSchema;
3276
3432
  /**
3277
3433
  * 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
3434
  */
3279
3435
  export const videoassetVideoAssetSchema = z.object({
3280
- type: z.enum(["video"]),
3436
+ type: z.enum(['video']),
3281
3437
  src: z.string().min(1).regex(/\S/),
3282
3438
  transcode: z.optional(z.boolean()),
3283
3439
  trim: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -3287,14 +3443,22 @@ export const videoassetVideoAssetSchema = z.object({
3287
3443
  return v;
3288
3444
  return Number(v);
3289
3445
  } 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)
3446
+ volume: z.optional(z.union([
3447
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3291
3448
  return undefined; if (Array.isArray(v))
3292
3449
  return v; if (typeof v === 'string') {
3293
3450
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3294
3451
  return v;
3295
3452
  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"])),
3453
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3454
+ z.array(tweenTweenSchema)
3455
+ ])),
3456
+ volumeEffect: z.optional(z.enum([
3457
+ 'none',
3458
+ 'fadeIn',
3459
+ 'fadeOut',
3460
+ 'fadeInFadeOut'
3461
+ ])),
3298
3462
  speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3299
3463
  return undefined; if (Array.isArray(v))
3300
3464
  return v; if (typeof v === 'string') {
@@ -3303,7 +3467,7 @@ export const videoassetVideoAssetSchema = z.object({
3303
3467
  return Number(v);
3304
3468
  } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3305
3469
  crop: z.optional(cropCropSchema),
3306
- chromaKey: z.optional(chromakeyChromaKeySchema),
3470
+ chromaKey: z.optional(chromakeyChromaKeySchema)
3307
3471
  }).strict();
3308
3472
  export const videoAssetSchema = videoassetVideoAssetSchema;
3309
3473
  /**
@@ -3340,7 +3504,7 @@ export const clipClipSchema = z.object({
3340
3504
  return v;
3341
3505
  return Number(v);
3342
3506
  } 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*\}\}$/)]),
3507
+ z.union([z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3344
3508
  ]),
3345
3509
  length: z.union([
3346
3510
  z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -3350,16 +3514,24 @@ export const clipClipSchema = z.object({
3350
3514
  return v;
3351
3515
  return Number(v);
3352
3516
  } 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*\}\}$/)]),
3517
+ z.union([z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3354
3518
  ]),
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)
3519
+ fit: z.optional(z.enum([
3520
+ 'cover',
3521
+ 'contain',
3522
+ 'crop',
3523
+ 'none'
3524
+ ])),
3525
+ scale: z.optional(z.union([
3526
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3357
3527
  return undefined; if (Array.isArray(v))
3358
3528
  return v; if (typeof v === 'string') {
3359
3529
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3360
3530
  return v;
3361
3531
  return Number(v);
3362
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3532
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3533
+ z.array(tweenTweenSchema)
3534
+ ])),
3363
3535
  width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3364
3536
  return undefined; if (Array.isArray(v))
3365
3537
  return v; if (typeof v === 'string') {
@@ -3375,58 +3547,61 @@ export const clipClipSchema = z.object({
3375
3547
  return Number(v);
3376
3548
  } return v; }), z.number().gte(1).lte(2160)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3377
3549
  position: z.optional(z.enum([
3378
- "top",
3379
- "topRight",
3380
- "right",
3381
- "bottomRight",
3382
- "bottom",
3383
- "bottomLeft",
3384
- "left",
3385
- "topLeft",
3386
- "center",
3550
+ 'top',
3551
+ 'topRight',
3552
+ 'right',
3553
+ 'bottomRight',
3554
+ 'bottom',
3555
+ 'bottomLeft',
3556
+ 'left',
3557
+ 'topLeft',
3558
+ 'center'
3387
3559
  ])),
3388
3560
  offset: z.optional(offsetOffsetSchema),
3389
3561
  transition: z.optional(transitionTransitionSchema),
3390
3562
  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",
3563
+ 'zoomIn',
3564
+ 'zoomInSlow',
3565
+ 'zoomInFast',
3566
+ 'zoomOut',
3567
+ 'zoomOutSlow',
3568
+ 'zoomOutFast',
3569
+ 'slideLeft',
3570
+ 'slideLeftSlow',
3571
+ 'slideLeftFast',
3572
+ 'slideRight',
3573
+ 'slideRightSlow',
3574
+ 'slideRightFast',
3575
+ 'slideUp',
3576
+ 'slideUpSlow',
3577
+ 'slideUpFast',
3578
+ 'slideDown',
3579
+ 'slideDownSlow',
3580
+ 'slideDownFast'
3409
3581
  ])),
3410
3582
  filter: z.optional(z.enum([
3411
- "none",
3412
- "blur",
3413
- "boost",
3414
- "contrast",
3415
- "darken",
3416
- "greyscale",
3417
- "lighten",
3418
- "muted",
3419
- "negative",
3583
+ 'none',
3584
+ 'blur',
3585
+ 'boost',
3586
+ 'contrast',
3587
+ 'darken',
3588
+ 'greyscale',
3589
+ 'lighten',
3590
+ 'muted',
3591
+ 'negative'
3420
3592
  ])),
3421
- opacity: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3593
+ opacity: z.optional(z.union([
3594
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3422
3595
  return undefined; if (Array.isArray(v))
3423
3596
  return v; if (typeof v === 'string') {
3424
3597
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3425
3598
  return v;
3426
3599
  return Number(v);
3427
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3600
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3601
+ z.array(tweenTweenSchema)
3602
+ ])),
3428
3603
  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*\}\}$/)])),
3604
+ alias: z.optional(z.union([z.string().regex(/^[A-Za-z0-9_-]+$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
3430
3605
  }).strict();
3431
3606
  export const clipSchema = clipClipSchema;
3432
3607
  // Clip schema with fit property filter for rich-text assets
@@ -3445,7 +3620,7 @@ const clipClipSchemaWithFitFilter = clipClipSchema.transform((clip) => {
3445
3620
  * 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
3621
  */
3447
3622
  export const trackTrackSchema = z.object({
3448
- clips: z.array(clipClipSchemaWithFitFilter).min(1),
3623
+ clips: z.array(clipClipSchemaWithFitFilter).min(1)
3449
3624
  }).strict();
3450
3625
  export const trackSchema = trackTrackSchema;
3451
3626
  /**
@@ -3456,7 +3631,7 @@ export const timelineTimelineSchema = z.object({
3456
3631
  background: z.optional(z.string()),
3457
3632
  fonts: z.optional(z.array(fontFontSchema)),
3458
3633
  tracks: z.array(trackTrackSchema).min(1),
3459
- cache: z.optional(z.boolean()),
3634
+ cache: z.optional(z.boolean())
3460
3635
  }).strict();
3461
3636
  export const timelineSchema = timelineTimelineSchema;
3462
3637
  /**
@@ -3467,8 +3642,12 @@ export const editEditSchema = z.object({
3467
3642
  output: outputOutputSchema,
3468
3643
  merge: z.optional(z.array(mergefieldMergeFieldSchema)),
3469
3644
  callback: z.optional(z.string()),
3470
- disk: z.optional(z.enum(["local", "mount"])),
3471
- instance: z.optional(z.enum(["s1", "s2", "a1"])),
3645
+ disk: z.optional(z.enum(['local', 'mount'])),
3646
+ instance: z.optional(z.enum([
3647
+ 's1',
3648
+ 's2',
3649
+ 'a1'
3650
+ ]))
3472
3651
  }).strict();
3473
3652
  export const editSchema = editEditSchema;
3474
3653
  /**
@@ -3479,13 +3658,13 @@ export const renderresponsedataRenderResponseDataSchema = z.object({
3479
3658
  owner: z.string(),
3480
3659
  plan: z.optional(z.string()),
3481
3660
  status: z.enum([
3482
- "queued",
3483
- "fetching",
3484
- "preprocessing",
3485
- "rendering",
3486
- "saving",
3487
- "done",
3488
- "failed",
3661
+ 'queued',
3662
+ 'fetching',
3663
+ 'preprocessing',
3664
+ 'rendering',
3665
+ 'saving',
3666
+ 'done',
3667
+ 'failed'
3489
3668
  ]),
3490
3669
  error: z.optional(z.string()),
3491
3670
  duration: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -3503,11 +3682,17 @@ export const renderresponsedataRenderResponseDataSchema = z.object({
3503
3682
  return Number(v);
3504
3683
  } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3505
3684
  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()])),
3685
+ poster: z.optional(z.union([
3686
+ z.string(),
3687
+ z.null()
3688
+ ])),
3689
+ thumbnail: z.optional(z.union([
3690
+ z.string(),
3691
+ z.null()
3692
+ ])),
3508
3693
  data: z.optional(editEditSchema),
3509
3694
  created: z.optional(z.string()),
3510
- updated: z.optional(z.string()),
3695
+ updated: z.optional(z.string())
3511
3696
  }).strict();
3512
3697
  export const renderResponseDataSchema = renderresponsedataRenderResponseDataSchema;
3513
3698
  /**
@@ -3516,7 +3701,7 @@ export const renderResponseDataSchema = renderresponsedataRenderResponseDataSche
3516
3701
  export const renderresponseRenderResponseSchema = z.object({
3517
3702
  success: z.boolean(),
3518
3703
  message: z.string(),
3519
- response: renderresponsedataRenderResponseDataSchema,
3704
+ response: renderresponsedataRenderResponseDataSchema
3520
3705
  }).strict();
3521
3706
  export const renderResponseSchema = renderresponseRenderResponseSchema;
3522
3707
  /**
@@ -3526,7 +3711,7 @@ export const templatedataresponsedataTemplateDataResponseDataSchema = z.object({
3526
3711
  id: z.string(),
3527
3712
  name: z.string(),
3528
3713
  owner: z.string(),
3529
- template: editEditSchema,
3714
+ template: editEditSchema
3530
3715
  }).strict();
3531
3716
  export const templateDataResponseDataSchema = templatedataresponsedataTemplateDataResponseDataSchema;
3532
3717
  /**
@@ -3535,7 +3720,7 @@ export const templateDataResponseDataSchema = templatedataresponsedataTemplateDa
3535
3720
  export const templatedataresponseTemplateDataResponseSchema = z.object({
3536
3721
  success: z.boolean(),
3537
3722
  message: z.string(),
3538
- response: templatedataresponsedataTemplateDataResponseDataSchema,
3723
+ response: templatedataresponsedataTemplateDataResponseDataSchema
3539
3724
  }).strict();
3540
3725
  export const templateDataResponseSchema = templatedataresponseTemplateDataResponseSchema;
3541
3726
  /**
@@ -3543,13 +3728,13 @@ export const templateDataResponseSchema = templatedataresponseTemplateDataRespon
3543
3728
  */
3544
3729
  export const templateTemplateSchema = z.object({
3545
3730
  name: z.string(),
3546
- template: z.optional(editEditSchema),
3731
+ template: z.optional(editEditSchema)
3547
3732
  }).strict();
3548
3733
  export const templateSchema = templateTemplateSchema;
3549
3734
  export const postRenderRequest = z.object({
3550
3735
  body: editEditSchema,
3551
3736
  path: z.optional(z.never()),
3552
- query: z.optional(z.never()),
3737
+ query: z.optional(z.never())
3553
3738
  }).strict();
3554
3739
  /**
3555
3740
  * The queued render details
@@ -3558,14 +3743,12 @@ export const postRenderResponse = queuedresponseQueuedResponseSchema;
3558
3743
  export const getRenderRequest = z.object({
3559
3744
  body: z.optional(z.never()),
3560
3745
  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}$/),
3746
+ 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
3747
  }),
3565
3748
  query: z.optional(z.object({
3566
3749
  data: z.optional(z.boolean()),
3567
- merged: z.optional(z.boolean()),
3568
- })),
3750
+ merged: z.optional(z.boolean())
3751
+ }))
3569
3752
  }).strict();
3570
3753
  /**
3571
3754
  * The render status details
@@ -3574,7 +3757,7 @@ export const getRenderResponse = renderresponseRenderResponseSchema;
3574
3757
  export const getTemplatesRequest = z.object({
3575
3758
  body: z.optional(z.never()),
3576
3759
  path: z.optional(z.never()),
3577
- query: z.optional(z.never()),
3760
+ query: z.optional(z.never())
3578
3761
  }).strict();
3579
3762
  /**
3580
3763
  * The list of templates stored against a users account
@@ -3583,7 +3766,7 @@ export const getTemplatesResponse = templatelistresponseTemplateListResponseSche
3583
3766
  export const postTemplateRequest = z.object({
3584
3767
  body: templateTemplateSchema,
3585
3768
  path: z.optional(z.never()),
3586
- query: z.optional(z.never()),
3769
+ query: z.optional(z.never())
3587
3770
  }).strict();
3588
3771
  /**
3589
3772
  * The saved template status including the id
@@ -3592,11 +3775,9 @@ export const postTemplateResponse = templateresponseTemplateResponseSchema;
3592
3775
  export const deleteTemplateRequest = z.object({
3593
3776
  body: z.optional(z.never()),
3594
3777
  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}$/),
3778
+ 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
3779
  }),
3599
- query: z.optional(z.never()),
3780
+ query: z.optional(z.never())
3600
3781
  }).strict();
3601
3782
  /**
3602
3783
  * An empty response signifying the template has been deleted
@@ -3605,11 +3786,9 @@ export const deleteTemplateResponse = z.void();
3605
3786
  export const getTemplateRequest = z.object({
3606
3787
  body: z.optional(z.never()),
3607
3788
  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}$/),
3789
+ 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
3790
  }),
3612
- query: z.optional(z.never()),
3791
+ query: z.optional(z.never())
3613
3792
  }).strict();
3614
3793
  /**
3615
3794
  * The template details including the [Edit](#tocs_edit)
@@ -3618,11 +3797,9 @@ export const getTemplateResponse = templatedataresponseTemplateDataResponseSchem
3618
3797
  export const putTemplateRequest = z.object({
3619
3798
  body: templateTemplateSchema,
3620
3799
  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}$/),
3800
+ 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
3801
  }),
3625
- query: z.optional(z.never()),
3802
+ query: z.optional(z.never())
3626
3803
  }).strict();
3627
3804
  /**
3628
3805
  * Update a templates name and [Edit](#tocs_edit)
@@ -3631,7 +3808,7 @@ export const putTemplateResponse = templateresponseTemplateResponseSchema;
3631
3808
  export const postTemplateRenderRequest = z.object({
3632
3809
  body: templaterenderTemplateRenderSchema,
3633
3810
  path: z.optional(z.never()),
3634
- query: z.optional(z.never()),
3811
+ query: z.optional(z.never())
3635
3812
  }).strict();
3636
3813
  /**
3637
3814
  * 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 +3817,9 @@ export const postTemplateRenderResponse = queuedresponseQueuedResponseSchema;
3640
3817
  export const probeRequest = z.object({
3641
3818
  body: z.optional(z.never()),
3642
3819
  path: z.object({
3643
- url: z.string(),
3820
+ url: z.string()
3644
3821
  }),
3645
- query: z.optional(z.never()),
3822
+ query: z.optional(z.never())
3646
3823
  }).strict();
3647
3824
  /**
3648
3825
  * FFprobe response formatted as JSON.
@@ -3651,11 +3828,9 @@ export const probeResponse = proberesponseProbeResponseSchema;
3651
3828
  export const deleteAssetRequest = z.object({
3652
3829
  body: z.optional(z.never()),
3653
3830
  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}$/),
3831
+ 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
3832
  }),
3658
- query: z.optional(z.never()),
3833
+ query: z.optional(z.never())
3659
3834
  }).strict();
3660
3835
  /**
3661
3836
  * An empty response signifying the asset has been deleted
@@ -3664,11 +3839,9 @@ export const deleteAssetResponse = z.void();
3664
3839
  export const getAssetRequest = z.object({
3665
3840
  body: z.optional(z.never()),
3666
3841
  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}$/),
3842
+ 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
3843
  }),
3671
- query: z.optional(z.never()),
3844
+ query: z.optional(z.never())
3672
3845
  }).strict();
3673
3846
  /**
3674
3847
  * Get asset by asset id
@@ -3677,11 +3850,9 @@ export const getAssetResponse = assetresponseAssetResponseSchema;
3677
3850
  export const getAssetByRenderIdRequest = z.object({
3678
3851
  body: z.optional(z.never()),
3679
3852
  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}$/),
3853
+ 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
3854
  }),
3684
- query: z.optional(z.never()),
3855
+ query: z.optional(z.never())
3685
3856
  }).strict();
3686
3857
  /**
3687
3858
  * Get one or more assets by render id
@@ -3690,7 +3861,7 @@ export const getAssetByRenderIdResponse = assetrenderresponseAssetRenderResponse
3690
3861
  export const postServeAssetRequest = z.object({
3691
3862
  body: transferTransferSchema,
3692
3863
  path: z.optional(z.never()),
3693
- query: z.optional(z.never()),
3864
+ query: z.optional(z.never())
3694
3865
  }).strict();
3695
3866
  /**
3696
3867
  * The transfer request details and status
@@ -3699,7 +3870,7 @@ export const postServeAssetResponse = transferresponseTransferResponseSchema;
3699
3870
  export const getSourcesRequest = z.object({
3700
3871
  body: z.optional(z.never()),
3701
3872
  path: z.optional(z.never()),
3702
- query: z.optional(z.never()),
3873
+ query: z.optional(z.never())
3703
3874
  }).strict();
3704
3875
  /**
3705
3876
  * The list of ingested source files stored against a users account
@@ -3708,7 +3879,7 @@ export const getSourcesResponse = sourcelistresponseSourceListResponseSchema;
3708
3879
  export const postSourceRequest = z.object({
3709
3880
  body: sourceSourceSchema,
3710
3881
  path: z.optional(z.never()),
3711
- query: z.optional(z.never()),
3882
+ query: z.optional(z.never())
3712
3883
  }).strict();
3713
3884
  /**
3714
3885
  * The queued source file details
@@ -3717,11 +3888,9 @@ export const postSourceResponse = queuedsourceresponseQueuedSourceResponseSchema
3717
3888
  export const deleteSourceRequest = z.object({
3718
3889
  body: z.optional(z.never()),
3719
3890
  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}$/),
3891
+ 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
3892
  }),
3724
- query: z.optional(z.never()),
3893
+ query: z.optional(z.never())
3725
3894
  }).strict();
3726
3895
  /**
3727
3896
  * An empty response signifying the ingested source file has been deleted.
@@ -3730,11 +3899,9 @@ export const deleteSourceResponse = z.void();
3730
3899
  export const getSourceRequest = z.object({
3731
3900
  body: z.optional(z.never()),
3732
3901
  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}$/),
3902
+ 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
3903
  }),
3737
- query: z.optional(z.never()),
3904
+ query: z.optional(z.never())
3738
3905
  }).strict();
3739
3906
  /**
3740
3907
  * Get source file details by id
@@ -3743,7 +3910,7 @@ export const getSourceResponse = sourceresponseSourceResponseSchema;
3743
3910
  export const getUploadSignedUrlRequest = z.object({
3744
3911
  body: z.optional(z.never()),
3745
3912
  path: z.optional(z.never()),
3746
- query: z.optional(z.never()),
3913
+ query: z.optional(z.never())
3747
3914
  }).strict();
3748
3915
  /**
3749
3916
  * The id and signed URL to upload to.
@@ -3752,7 +3919,7 @@ export const getUploadSignedUrlResponse = uploadresponseUploadResponseSchema;
3752
3919
  export const postGenerateAssetRequest = z.object({
3753
3920
  body: generatedAssetGeneratedAssetSchema,
3754
3921
  path: z.optional(z.never()),
3755
- query: z.optional(z.never()),
3922
+ query: z.optional(z.never())
3756
3923
  }).strict();
3757
3924
  /**
3758
3925
  * The generated asset details
@@ -3761,11 +3928,9 @@ export const postGenerateAssetResponse = generatedAssetResponseGeneratedAssetRes
3761
3928
  export const getGeneratedAssetRequest = z.object({
3762
3929
  body: z.optional(z.never()),
3763
3930
  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}$/),
3931
+ 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
3932
  }),
3768
- query: z.optional(z.never()),
3933
+ query: z.optional(z.never())
3769
3934
  }).strict();
3770
3935
  /**
3771
3936
  * The generated asset details