@shotstack/schemas 1.5.9 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/README.md +89 -89
  2. package/dist/json-schema/asset.json +3123 -0
  3. package/dist/json-schema/audio-asset.json +180 -0
  4. package/dist/json-schema/caption-asset.json +285 -0
  5. package/dist/json-schema/caption-background.json +61 -0
  6. package/dist/json-schema/caption-font.json +97 -0
  7. package/dist/json-schema/caption-margin.json +49 -0
  8. package/dist/json-schema/chroma-key.json +46 -0
  9. package/dist/json-schema/clip.json +3575 -0
  10. package/dist/json-schema/crop.json +69 -0
  11. package/dist/json-schema/destinations.json +495 -0
  12. package/dist/json-schema/edit.json +4540 -0
  13. package/dist/json-schema/flip-transformation.json +37 -0
  14. package/dist/json-schema/font.json +18 -0
  15. package/dist/json-schema/google-cloud-storage-destination-options.json +42 -0
  16. package/dist/json-schema/google-cloud-storage-destination.json +73 -0
  17. package/dist/json-schema/google-drive-destination-options.json +30 -0
  18. package/dist/json-schema/google-drive-destination.json +54 -0
  19. package/dist/json-schema/image-asset.json +104 -0
  20. package/dist/json-schema/image-to-video-asset.json +151 -0
  21. package/dist/json-schema/index.cjs +1 -0
  22. package/dist/json-schema/index.d.ts +6 -0
  23. package/dist/json-schema/index.js +3 -0
  24. package/dist/json-schema/luma-asset.json +38 -0
  25. package/dist/json-schema/merge-field.json +23 -0
  26. package/dist/json-schema/offset.json +145 -0
  27. package/dist/json-schema/output.json +771 -0
  28. package/dist/json-schema/poster.json +18 -0
  29. package/dist/json-schema/range.json +39 -0
  30. package/dist/json-schema/rich-caption-active-font.json +54 -0
  31. package/dist/json-schema/rich-caption-active.json +154 -0
  32. package/dist/json-schema/rich-caption-asset.json +1098 -0
  33. package/dist/json-schema/rich-caption-word-animation.json +60 -0
  34. package/dist/json-schema/rich-text-alignment.json +47 -0
  35. package/dist/json-schema/rich-text-animation.json +74 -0
  36. package/dist/json-schema/rich-text-asset.json +737 -0
  37. package/dist/json-schema/rich-text-background.json +52 -0
  38. package/dist/json-schema/rich-text-font.json +157 -0
  39. package/dist/json-schema/rich-text-gradient.json +68 -0
  40. package/dist/json-schema/rich-text-shadow.json +79 -0
  41. package/dist/json-schema/rich-text-stroke.json +55 -0
  42. package/dist/json-schema/rich-text-style.json +165 -0
  43. package/dist/json-schema/rotate-transformation.json +123 -0
  44. package/dist/json-schema/s3destination-options.json +59 -0
  45. package/dist/json-schema/s3destination.json +90 -0
  46. package/dist/json-schema/schemas.json +4983 -0
  47. package/dist/json-schema/shape-asset.json +225 -0
  48. package/dist/json-schema/shotstack-destination.json +33 -0
  49. package/dist/json-schema/size.json +41 -0
  50. package/dist/json-schema/skew-transformation.json +145 -0
  51. package/dist/json-schema/soundtrack.json +47 -0
  52. package/dist/json-schema/svg-arrow-shape.json +49 -0
  53. package/dist/json-schema/svg-asset.json +877 -0
  54. package/dist/json-schema/svg-circle-shape.json +28 -0
  55. package/dist/json-schema/svg-cross-shape.json +42 -0
  56. package/dist/json-schema/svg-ellipse-shape.json +35 -0
  57. package/dist/json-schema/svg-fill.json +169 -0
  58. package/dist/json-schema/svg-gradient-stop.json +25 -0
  59. package/dist/json-schema/svg-heart-shape.json +28 -0
  60. package/dist/json-schema/svg-line-shape.json +35 -0
  61. package/dist/json-schema/svg-linear-gradient-fill.json +80 -0
  62. package/dist/json-schema/svg-path-shape.json +26 -0
  63. package/dist/json-schema/svg-polygon-shape.json +35 -0
  64. package/dist/json-schema/svg-radial-gradient-fill.json +66 -0
  65. package/dist/json-schema/svg-rectangle-shape.json +49 -0
  66. package/dist/json-schema/svg-ring-shape.json +35 -0
  67. package/dist/json-schema/svg-shadow.json +79 -0
  68. package/dist/json-schema/svg-shape.json +404 -0
  69. package/dist/json-schema/svg-solid-fill.json +40 -0
  70. package/dist/json-schema/svg-star-shape.json +42 -0
  71. package/dist/json-schema/svg-stroke.json +115 -0
  72. package/dist/json-schema/svg-transform.json +93 -0
  73. package/dist/json-schema/text-to-image-asset.json +128 -0
  74. package/dist/json-schema/text-to-speech-asset.json +209 -0
  75. package/dist/json-schema/thumbnail.json +25 -0
  76. package/dist/json-schema/timeline.json +3703 -0
  77. package/dist/json-schema/track.json +3590 -0
  78. package/dist/json-schema/transformation.json +251 -0
  79. package/dist/json-schema/transition.json +37 -0
  80. package/dist/json-schema/tween.json +90 -0
  81. package/dist/json-schema/video-asset.json +321 -0
  82. package/dist/json-schema/vimeo-destination-options.json +149 -0
  83. package/dist/json-schema/vimeo-destination-privacy-options.json +90 -0
  84. package/dist/json-schema/vimeo-destination.json +178 -0
  85. package/dist/json-schema/word-timing.json +44 -0
  86. package/dist/schema.d.ts +77 -77
  87. package/dist/zod/zod.gen.cjs +1080 -921
  88. package/dist/zod/zod.gen.d.ts +139 -139
  89. package/dist/zod/zod.gen.js +1081 -922
  90. package/dist/zod/zod.gen.ts +1583 -1648
  91. package/package.json +79 -73
@@ -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
  /**
@@ -807,7 +794,7 @@ export const cropSchema = cropCropSchema;
807
794
  export const googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema = z.object({
808
795
  bucket: z.string(),
809
796
  prefix: z.optional(z.string()),
810
- filename: z.optional(z.string()),
797
+ filename: z.optional(z.string())
811
798
  }).strict();
812
799
  export const googleCloudStorageDestinationOptionsSchema = googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema;
813
800
  /**
@@ -815,7 +802,7 @@ export const googleCloudStorageDestinationOptionsSchema = googleCloudStorageDest
815
802
  */
816
803
  export const googleCloudStorageDestinationGoogleCloudStorageDestinationSchema = z.object({
817
804
  provider: z.literal("google-cloud-storage"),
818
- options: z.optional(googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema),
805
+ options: z.optional(googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema)
819
806
  }).strict();
820
807
  export const googleCloudStorageDestinationSchema = googleCloudStorageDestinationGoogleCloudStorageDestinationSchema;
821
808
  /**
@@ -823,7 +810,7 @@ export const googleCloudStorageDestinationSchema = googleCloudStorageDestination
823
810
  */
824
811
  export const googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema = z.object({
825
812
  folderId: z.string(),
826
- filename: z.optional(z.string()),
813
+ filename: z.optional(z.string())
827
814
  }).strict();
828
815
  export const googleDriveDestinationOptionsSchema = googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema;
829
816
  /**
@@ -831,15 +818,15 @@ export const googleDriveDestinationOptionsSchema = googleDriveDestinationOptions
831
818
  */
832
819
  export const googleDriveDestinationGoogleDriveDestinationSchema = z.object({
833
820
  provider: z.literal("google-drive"),
834
- options: googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema,
821
+ options: googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema
835
822
  }).strict();
836
823
  export const googleDriveDestinationSchema = googleDriveDestinationGoogleDriveDestinationSchema;
837
824
  /**
838
825
  * Pass additional options to control how Mux processes video. Currently supports playback_policy and passthrough options.
839
826
  */
840
827
  export const muxDestinationOptionsMuxDestinationOptionsSchema = z.object({
841
- playbackPolicy: z.optional(z.array(z.enum(["public", "signed"]))),
842
- passthrough: z.optional(z.string().max(255)),
828
+ playbackPolicy: z.optional(z.array(z.enum(['public', 'signed']))),
829
+ passthrough: z.optional(z.string().max(255))
843
830
  }).strict();
844
831
  export const muxDestinationOptionsSchema = muxDestinationOptionsMuxDestinationOptionsSchema;
845
832
  /**
@@ -847,7 +834,7 @@ export const muxDestinationOptionsSchema = muxDestinationOptionsMuxDestinationOp
847
834
  */
848
835
  export const muxDestinationMuxDestinationSchema = z.object({
849
836
  provider: z.literal("mux"),
850
- options: z.optional(muxDestinationOptionsMuxDestinationOptionsSchema),
837
+ options: z.optional(muxDestinationOptionsMuxDestinationOptionsSchema)
851
838
  }).strict();
852
839
  export const muxDestinationSchema = muxDestinationMuxDestinationSchema;
853
840
  /**
@@ -858,7 +845,7 @@ export const s3DestinationOptionsS3DestinationOptionsSchema = z.object({
858
845
  bucket: z.string(),
859
846
  prefix: z.optional(z.string()),
860
847
  filename: z.optional(z.string()),
861
- acl: z.optional(z.string()),
848
+ acl: z.optional(z.string())
862
849
  }).strict();
863
850
  export const s3DestinationOptionsSchema = s3DestinationOptionsS3DestinationOptionsSchema;
864
851
  /**
@@ -866,7 +853,7 @@ export const s3DestinationOptionsSchema = s3DestinationOptionsS3DestinationOptio
866
853
  */
867
854
  export const s3DestinationS3DestinationSchema = z.object({
868
855
  provider: z.literal("s3"),
869
- options: z.optional(s3DestinationOptionsS3DestinationOptionsSchema),
856
+ options: z.optional(s3DestinationOptionsS3DestinationOptionsSchema)
870
857
  }).strict();
871
858
  export const s3DestinationSchema = s3DestinationS3DestinationSchema;
872
859
  /**
@@ -874,7 +861,7 @@ export const s3DestinationSchema = s3DestinationS3DestinationSchema;
874
861
  */
875
862
  export const shotstackDestinationShotstackDestinationSchema = z.object({
876
863
  provider: z.literal("shotstack"),
877
- exclude: z.optional(z.boolean()),
864
+ exclude: z.optional(z.boolean())
878
865
  }).strict();
879
866
  export const shotstackDestinationSchema = shotstackDestinationShotstackDestinationSchema;
880
867
  /**
@@ -882,27 +869,45 @@ export const shotstackDestinationSchema = shotstackDestinationShotstackDestinati
882
869
  */
883
870
  export const tiktokDestinationOptionsTiktokDestinationOptionsSchema = z.object({
884
871
  title: z.optional(z.string().max(150)),
885
- privacyLevel: z.optional(z.enum(["public", "friends", "private"])),
872
+ privacyLevel: z.optional(z.enum([
873
+ 'public',
874
+ 'friends',
875
+ 'private'
876
+ ])),
886
877
  disableDuet: z.optional(z.boolean()).default(false),
887
878
  disableStitch: z.optional(z.boolean()).default(false),
888
- disableComment: z.optional(z.boolean()).default(false),
879
+ disableComment: z.optional(z.boolean()).default(false)
889
880
  }).strict();
890
881
  /**
891
882
  * Send videos to TikTok. TikTok credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/tiktok), not in the request.
892
883
  */
893
884
  export const tiktokDestinationTiktokDestinationSchema = z.object({
894
885
  provider: z.literal("tiktok"),
895
- options: z.optional(tiktokDestinationOptionsTiktokDestinationOptionsSchema),
886
+ options: z.optional(tiktokDestinationOptionsTiktokDestinationOptionsSchema)
896
887
  }).strict();
897
888
  /**
898
889
  * Options to control the visibility of videos and privacy features.
899
890
  */
900
891
  export const vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema = z.object({
901
- view: z.optional(z.enum(["anybody", "nobody", "contacts", "password", "unlisted"])),
902
- embed: z.optional(z.enum(["public", "private", "whitelist"])),
903
- comments: z.optional(z.enum(["anybody", "nobody", "contacts"])),
892
+ view: z.optional(z.enum([
893
+ 'anybody',
894
+ 'nobody',
895
+ 'contacts',
896
+ 'password',
897
+ 'unlisted'
898
+ ])),
899
+ embed: z.optional(z.enum([
900
+ 'public',
901
+ 'private',
902
+ 'whitelist'
903
+ ])),
904
+ comments: z.optional(z.enum([
905
+ 'anybody',
906
+ 'nobody',
907
+ 'contacts'
908
+ ])),
904
909
  download: z.optional(z.boolean()),
905
- add: z.optional(z.boolean()),
910
+ add: z.optional(z.boolean())
906
911
  }).strict();
907
912
  export const vimeoDestinationPrivacyOptionsSchema = vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema;
908
913
  /**
@@ -912,7 +917,7 @@ export const vimeoDestinationOptionsVimeoDestinationOptionsSchema = z.object({
912
917
  name: z.optional(z.string()),
913
918
  description: z.optional(z.string()),
914
919
  privacy: z.optional(vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema),
915
- folderUri: z.optional(z.string()),
920
+ folderUri: z.optional(z.string())
916
921
  }).strict();
917
922
  export const vimeoDestinationOptionsSchema = vimeoDestinationOptionsVimeoDestinationOptionsSchema;
918
923
  /**
@@ -920,7 +925,7 @@ export const vimeoDestinationOptionsSchema = vimeoDestinationOptionsVimeoDestina
920
925
  */
921
926
  export const vimeoDestinationVimeoDestinationSchema = z.object({
922
927
  provider: z.literal("vimeo"),
923
- options: z.optional(vimeoDestinationOptionsVimeoDestinationOptionsSchema),
928
+ options: z.optional(vimeoDestinationOptionsVimeoDestinationOptionsSchema)
924
929
  }).strict();
925
930
  export const vimeoDestinationSchema = vimeoDestinationVimeoDestinationSchema;
926
931
  /**
@@ -943,14 +948,14 @@ export const destinationsSchema = destinationsDestinationsSchema;
943
948
  */
944
949
  export const fliptransformationFlipTransformationSchema = z.object({
945
950
  horizontal: z.optional(z.boolean()),
946
- vertical: z.optional(z.boolean()),
951
+ vertical: z.optional(z.boolean())
947
952
  }).strict();
948
953
  export const flipTransformationSchema = fliptransformationFlipTransformationSchema;
949
954
  /**
950
955
  * 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.
951
956
  */
952
957
  export const fontFontSchema = z.object({
953
- src: z.string(),
958
+ src: z.string()
954
959
  }).strict();
955
960
  export const fontSchema = fontFontSchema;
956
961
  /**
@@ -964,7 +969,7 @@ export const fontSchema = fontFontSchema;
964
969
  * @deprecated
965
970
  */
966
971
  export const htmlassetHtmlAssetSchema = z.object({
967
- type: z.enum(["html"]),
972
+ type: z.enum(['html']),
968
973
  html: z.string(),
969
974
  css: z.optional(z.string()),
970
975
  width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -983,35 +988,43 @@ export const htmlassetHtmlAssetSchema = z.object({
983
988
  } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
984
989
  background: z.optional(z.string()),
985
990
  position: z.optional(z.enum([
986
- "top",
987
- "topRight",
988
- "right",
989
- "bottomRight",
990
- "bottom",
991
- "bottomLeft",
992
- "left",
993
- "topLeft",
994
- "center",
995
- ])),
991
+ 'top',
992
+ 'topRight',
993
+ 'right',
994
+ 'bottomRight',
995
+ 'bottom',
996
+ 'bottomLeft',
997
+ 'left',
998
+ 'topLeft',
999
+ 'center'
1000
+ ]))
996
1001
  }).strict();
997
1002
  export const htmlAssetSchema = htmlassetHtmlAssetSchema;
998
1003
  /**
999
1004
  * 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.
1000
1005
  */
1001
1006
  export const imageassetImageAssetSchema = z.object({
1002
- type: z.enum(["image"]),
1007
+ type: z.enum(['image']),
1003
1008
  src: z.string().min(1).regex(/\S/),
1004
- crop: z.optional(cropCropSchema),
1009
+ crop: z.optional(cropCropSchema)
1005
1010
  }).strict();
1006
1011
  export const imageAssetSchema = imageassetImageAssetSchema;
1007
1012
  /**
1008
1013
  * The ImageToVideoAsset lets you create a video from an image and a text prompt.
1009
1014
  */
1010
1015
  export const imagetovideoassetImageToVideoAssetSchema = z.object({
1011
- type: z.enum(["image-to-video"]),
1016
+ type: z.enum(['image-to-video']),
1012
1017
  src: z.string().min(1),
1013
1018
  prompt: z.optional(z.string()),
1014
- aspectRatio: z.optional(z.enum(["1:1", "4:3", "16:9", "9:16", "3:4", "21:9", "9:21"])),
1019
+ aspectRatio: z.optional(z.enum([
1020
+ '1:1',
1021
+ '4:3',
1022
+ '16:9',
1023
+ '9:16',
1024
+ '3:4',
1025
+ '21:9',
1026
+ '9:21'
1027
+ ])),
1015
1028
  speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1016
1029
  return undefined; if (Array.isArray(v))
1017
1030
  return v; if (typeof v === 'string') {
@@ -1019,7 +1032,7 @@ export const imagetovideoassetImageToVideoAssetSchema = z.object({
1019
1032
  return v;
1020
1033
  return Number(v);
1021
1034
  } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1022
- crop: z.optional(cropCropSchema),
1035
+ crop: z.optional(cropCropSchema)
1023
1036
  }).strict();
1024
1037
  export const imageToVideoAssetSchema = imagetovideoassetImageToVideoAssetSchema;
1025
1038
  /**
@@ -1027,24 +1040,24 @@ export const imageToVideoAssetSchema = imagetovideoassetImageToVideoAssetSchema;
1027
1040
  */
1028
1041
  export const dolbyEnhancementOptionsDolbyEnhancementOptionsSchema = z.object({
1029
1042
  preset: z.enum([
1030
- "conference",
1031
- "interview",
1032
- "lecture",
1033
- "meeting",
1034
- "mobile_phone",
1035
- "music",
1036
- "podcast",
1037
- "studio",
1038
- "voice_over",
1039
- ]),
1043
+ 'conference',
1044
+ 'interview',
1045
+ 'lecture',
1046
+ 'meeting',
1047
+ 'mobile_phone',
1048
+ 'music',
1049
+ 'podcast',
1050
+ 'studio',
1051
+ 'voice_over'
1052
+ ])
1040
1053
  }).strict();
1041
1054
  export const dolbyEnhancementOptionsSchema = dolbyEnhancementOptionsDolbyEnhancementOptionsSchema;
1042
1055
  /**
1043
1056
  * 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.
1044
1057
  */
1045
1058
  export const dolbyEnhancementDolbyEnhancementSchema = z.object({
1046
- provider: z.string().default("dolby"),
1047
- options: dolbyEnhancementOptionsDolbyEnhancementOptionsSchema,
1059
+ provider: z.string().default('dolby'),
1060
+ options: dolbyEnhancementOptionsDolbyEnhancementOptionsSchema
1048
1061
  }).strict();
1049
1062
  export const dolbyEnhancementSchema = dolbyEnhancementDolbyEnhancementSchema;
1050
1063
  /**
@@ -1053,17 +1066,15 @@ export const dolbyEnhancementSchema = dolbyEnhancementDolbyEnhancementSchema;
1053
1066
  * <li><a href="#tocs_dolbyenhancement">DolbyEnhancement</a></li>
1054
1067
  * </ul>
1055
1068
  */
1056
- export const audioEnhancementAudioEnhancementSchema = z
1057
- .object({
1058
- enhancement: z.literal("dolbyEnhancement_DolbyEnhancement"),
1059
- })
1060
- .and(dolbyEnhancementDolbyEnhancementSchema);
1069
+ export const audioEnhancementAudioEnhancementSchema = z.object({
1070
+ enhancement: z.literal('dolbyEnhancement_DolbyEnhancement')
1071
+ }).strict().and(dolbyEnhancementDolbyEnhancementSchema);
1061
1072
  export const audioEnhancementSchema = audioEnhancementAudioEnhancementSchema;
1062
1073
  /**
1063
1074
  * Enhancements that can be applied to a rendition. Currently only supports the Dolby audio enhancement.
1064
1075
  */
1065
1076
  export const enhancementsEnhancementsSchema = z.object({
1066
- audio: z.optional(audioEnhancementAudioEnhancementSchema),
1077
+ audio: z.optional(audioEnhancementAudioEnhancementSchema)
1067
1078
  }).strict();
1068
1079
  export const enhancementsSchema = enhancementsEnhancementsSchema;
1069
1080
  /**
@@ -1072,14 +1083,14 @@ export const enhancementsSchema = enhancementsEnhancementsSchema;
1072
1083
  export const ingesterrorresponsedataIngestErrorResponseDataSchema = z.object({
1073
1084
  status: z.string(),
1074
1085
  title: z.string(),
1075
- detail: z.string(),
1086
+ detail: z.string()
1076
1087
  }).strict();
1077
1088
  export const ingestErrorResponseDataSchema = ingesterrorresponsedataIngestErrorResponseDataSchema;
1078
1089
  /**
1079
1090
  * Error response data for validation and other errors returned by the Ingest API.
1080
1091
  */
1081
1092
  export const ingesterrorresponseIngestErrorResponseSchema = z.object({
1082
- errors: z.array(ingesterrorresponsedataIngestErrorResponseDataSchema),
1093
+ errors: z.array(ingesterrorresponsedataIngestErrorResponseDataSchema)
1083
1094
  }).strict();
1084
1095
  export const ingestErrorResponseSchema = ingesterrorresponseIngestErrorResponseSchema;
1085
1096
  /**
@@ -1087,14 +1098,14 @@ export const ingestErrorResponseSchema = ingesterrorresponseIngestErrorResponseS
1087
1098
  */
1088
1099
  export const queuedsourceresponsedataQueuedSourceResponseDataSchema = z.object({
1089
1100
  type: z.string(),
1090
- id: z.string(),
1101
+ id: z.string()
1091
1102
  }).strict();
1092
1103
  export const queuedSourceResponseDataSchema = queuedsourceresponsedataQueuedSourceResponseDataSchema;
1093
1104
  /**
1094
1105
  * 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.
1095
1106
  */
1096
1107
  export const queuedsourceresponseQueuedSourceResponseSchema = z.object({
1097
- data: queuedsourceresponsedataQueuedSourceResponseDataSchema,
1108
+ data: queuedsourceresponsedataQueuedSourceResponseDataSchema
1098
1109
  }).strict();
1099
1110
  export const queuedSourceResponseSchema = queuedsourceresponseQueuedSourceResponseSchema;
1100
1111
  /**
@@ -1103,7 +1114,7 @@ export const queuedSourceResponseSchema = queuedsourceresponseQueuedSourceRespon
1103
1114
  export const uploadresponseattributesUploadResponseAttributesSchema = z.object({
1104
1115
  id: z.string(),
1105
1116
  url: z.string(),
1106
- expires: z.string(),
1117
+ expires: z.string()
1107
1118
  }).strict();
1108
1119
  export const uploadResponseAttributesSchema = uploadresponseattributesUploadResponseAttributesSchema;
1109
1120
  /**
@@ -1112,14 +1123,14 @@ export const uploadResponseAttributesSchema = uploadresponseattributesUploadResp
1112
1123
  export const uploadresponsedataUploadResponseDataSchema = z.object({
1113
1124
  type: z.string(),
1114
1125
  id: z.string(),
1115
- attributes: uploadresponseattributesUploadResponseAttributesSchema,
1126
+ attributes: uploadresponseattributesUploadResponseAttributesSchema
1116
1127
  }).strict();
1117
1128
  export const uploadResponseDataSchema = uploadresponsedataUploadResponseDataSchema;
1118
1129
  /**
1119
1130
  * 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.
1120
1131
  */
1121
1132
  export const uploadresponseUploadResponseSchema = z.object({
1122
- data: uploadresponsedataUploadResponseDataSchema,
1133
+ data: uploadresponsedataUploadResponseDataSchema
1123
1134
  }).strict();
1124
1135
  export const uploadResponseSchema = uploadresponseUploadResponseSchema;
1125
1136
  /**
@@ -1133,21 +1144,21 @@ export const speedSpeedSchema = z.object({
1133
1144
  return v;
1134
1145
  return Number(v);
1135
1146
  } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1136
- preservePitch: z.optional(z.boolean()),
1147
+ preservePitch: z.optional(z.boolean())
1137
1148
  }).strict();
1138
1149
  export const speedSchema = speedSpeedSchema;
1139
1150
  /**
1140
1151
  * Generate a transcription of the audio in the video. The transcription can be output as a file in SRT or VTT format.
1141
1152
  */
1142
1153
  export const transcriptionTranscriptionSchema = z.object({
1143
- format: z.optional(z.enum(["srt", "vtt"])),
1154
+ format: z.optional(z.enum(['srt', 'vtt']))
1144
1155
  }).strict();
1145
1156
  export const transcriptionSchema = transcriptionTranscriptionSchema;
1146
1157
  /**
1147
1158
  * 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.
1148
1159
  */
1149
1160
  export const lumaassetLumaAssetSchema = z.object({
1150
- type: z.enum(["luma"]),
1161
+ type: z.enum(['luma']),
1151
1162
  src: z.string().min(1).regex(/\S/),
1152
1163
  trim: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1153
1164
  return undefined; if (Array.isArray(v))
@@ -1155,7 +1166,7 @@ export const lumaassetLumaAssetSchema = z.object({
1155
1166
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1156
1167
  return v;
1157
1168
  return Number(v);
1158
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1169
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1159
1170
  }).strict();
1160
1171
  export const lumaAssetSchema = lumaassetLumaAssetSchema;
1161
1172
  /**
@@ -1163,7 +1174,7 @@ export const lumaAssetSchema = lumaassetLumaAssetSchema;
1163
1174
  */
1164
1175
  export const mergefieldMergeFieldSchema = z.object({
1165
1176
  find: z.string(),
1166
- replace: z.union([z.string(), z.number(), z.boolean(), z.null(), z.record(z.string(), z.unknown()), z.array(z.unknown())]),
1177
+ replace: z.unknown()
1167
1178
  }).strict();
1168
1179
  export const mergeFieldSchema = mergefieldMergeFieldSchema;
1169
1180
  /**
@@ -1176,7 +1187,7 @@ export const posterPosterSchema = z.object({
1176
1187
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1177
1188
  return v;
1178
1189
  return Number(v);
1179
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1190
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1180
1191
  }).strict();
1181
1192
  export const posterSchema = posterPosterSchema;
1182
1193
  /**
@@ -1196,7 +1207,7 @@ export const rangeRangeSchema = z.object({
1196
1207
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1197
1208
  return v;
1198
1209
  return Number(v);
1199
- } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1210
+ } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1200
1211
  }).strict();
1201
1212
  export const rangeSchema = rangeRangeSchema;
1202
1213
  /**
@@ -1210,9 +1221,14 @@ export const assetresponseattributesAssetResponseAttributesSchema = z.object({
1210
1221
  providerId: z.optional(z.string()),
1211
1222
  filename: z.optional(z.string()),
1212
1223
  url: z.optional(z.string()),
1213
- status: z.enum(["importing", "ready", "failed", "deleted"]),
1224
+ status: z.enum([
1225
+ 'importing',
1226
+ 'ready',
1227
+ 'failed',
1228
+ 'deleted'
1229
+ ]),
1214
1230
  created: z.optional(z.string()),
1215
- updated: z.optional(z.string()),
1231
+ updated: z.optional(z.string())
1216
1232
  }).strict();
1217
1233
  export const assetResponseAttributesSchema = assetresponseattributesAssetResponseAttributesSchema;
1218
1234
  /**
@@ -1220,21 +1236,21 @@ export const assetResponseAttributesSchema = assetresponseattributesAssetRespons
1220
1236
  */
1221
1237
  export const assetresponsedataAssetResponseDataSchema = z.object({
1222
1238
  type: z.string(),
1223
- attributes: assetresponseattributesAssetResponseAttributesSchema,
1239
+ attributes: assetresponseattributesAssetResponseAttributesSchema
1224
1240
  }).strict();
1225
1241
  export const assetResponseDataSchema = assetresponsedataAssetResponseDataSchema;
1226
1242
  /**
1227
1243
  * 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.
1228
1244
  */
1229
1245
  export const assetrenderresponseAssetRenderResponseSchema = z.object({
1230
- data: z.array(assetresponsedataAssetResponseDataSchema),
1246
+ data: z.array(assetresponsedataAssetResponseDataSchema)
1231
1247
  }).strict();
1232
1248
  export const assetRenderResponseSchema = assetrenderresponseAssetRenderResponseSchema;
1233
1249
  /**
1234
1250
  * 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.
1235
1251
  */
1236
1252
  export const assetresponseAssetResponseSchema = z.object({
1237
- data: assetresponsedataAssetResponseDataSchema,
1253
+ data: assetresponsedataAssetResponseDataSchema
1238
1254
  }).strict();
1239
1255
  export const assetResponseSchema = assetresponseAssetResponseSchema;
1240
1256
  /**
@@ -1243,7 +1259,7 @@ export const assetResponseSchema = assetresponseAssetResponseSchema;
1243
1259
  export const proberesponseProbeResponseSchema = z.object({
1244
1260
  success: z.boolean(),
1245
1261
  message: z.string(),
1246
- response: z.record(z.string(), z.unknown()),
1262
+ response: z.record(z.string(), z.unknown())
1247
1263
  }).strict();
1248
1264
  export const probeResponseSchema = proberesponseProbeResponseSchema;
1249
1265
  /**
@@ -1251,7 +1267,7 @@ export const probeResponseSchema = proberesponseProbeResponseSchema;
1251
1267
  */
1252
1268
  export const queuedresponsedataQueuedResponseDataSchema = z.object({
1253
1269
  message: z.string(),
1254
- id: z.string(),
1270
+ id: z.string()
1255
1271
  }).strict();
1256
1272
  export const queuedResponseDataSchema = queuedresponsedataQueuedResponseDataSchema;
1257
1273
  /**
@@ -1260,7 +1276,7 @@ export const queuedResponseDataSchema = queuedresponsedataQueuedResponseDataSche
1260
1276
  export const queuedresponseQueuedResponseSchema = z.object({
1261
1277
  success: z.boolean(),
1262
1278
  message: z.string(),
1263
- response: queuedresponsedataQueuedResponseDataSchema,
1279
+ response: queuedresponsedataQueuedResponseDataSchema
1264
1280
  }).strict();
1265
1281
  export const queuedResponseSchema = queuedresponseQueuedResponseSchema;
1266
1282
  /**
@@ -1270,7 +1286,7 @@ export const templatelistresponseitemTemplateListResponseItemSchema = z.object({
1270
1286
  id: z.string(),
1271
1287
  name: z.string(),
1272
1288
  created: z.optional(z.string()),
1273
- updated: z.optional(z.string()),
1289
+ updated: z.optional(z.string())
1274
1290
  }).strict();
1275
1291
  export const templateListResponseItemSchema = templatelistresponseitemTemplateListResponseItemSchema;
1276
1292
  /**
@@ -1278,7 +1294,7 @@ export const templateListResponseItemSchema = templatelistresponseitemTemplateLi
1278
1294
  */
1279
1295
  export const templatelistresponsedataTemplateListResponseDataSchema = z.object({
1280
1296
  owner: z.string(),
1281
- templates: z.array(templatelistresponseitemTemplateListResponseItemSchema),
1297
+ templates: z.array(templatelistresponseitemTemplateListResponseItemSchema)
1282
1298
  }).strict();
1283
1299
  export const templateListResponseDataSchema = templatelistresponsedataTemplateListResponseDataSchema;
1284
1300
  /**
@@ -1287,7 +1303,7 @@ export const templateListResponseDataSchema = templatelistresponsedataTemplateLi
1287
1303
  export const templatelistresponseTemplateListResponseSchema = z.object({
1288
1304
  success: z.boolean(),
1289
1305
  message: z.string(),
1290
- response: templatelistresponsedataTemplateListResponseDataSchema,
1306
+ response: templatelistresponsedataTemplateListResponseDataSchema
1291
1307
  }).strict();
1292
1308
  export const templateListResponseSchema = templatelistresponseTemplateListResponseSchema;
1293
1309
  /**
@@ -1295,7 +1311,7 @@ export const templateListResponseSchema = templatelistresponseTemplateListRespon
1295
1311
  */
1296
1312
  export const templateresponsedataTemplateResponseDataSchema = z.object({
1297
1313
  message: z.string(),
1298
- id: z.string(),
1314
+ id: z.string()
1299
1315
  }).strict();
1300
1316
  export const templateResponseDataSchema = templateresponsedataTemplateResponseDataSchema;
1301
1317
  /**
@@ -1304,14 +1320,14 @@ export const templateResponseDataSchema = templateresponsedataTemplateResponseDa
1304
1320
  export const templateresponseTemplateResponseSchema = z.object({
1305
1321
  success: z.boolean(),
1306
1322
  message: z.string(),
1307
- response: templateresponsedataTemplateResponseDataSchema,
1323
+ response: templateresponsedataTemplateResponseDataSchema
1308
1324
  }).strict();
1309
1325
  export const templateResponseSchema = templateresponseTemplateResponseSchema;
1310
1326
  /**
1311
1327
  * Font properties for the active/highlighted word.
1312
1328
  */
1313
1329
  export const richcaptionpropertiesRichCaptionActiveFontSchema = z.object({
1314
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#ffff00"),
1330
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#ffff00'),
1315
1331
  background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1316
1332
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1317
1333
  return undefined; if (Array.isArray(v))
@@ -1319,7 +1335,7 @@ export const richcaptionpropertiesRichCaptionActiveFontSchema = z.object({
1319
1335
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1320
1336
  return v;
1321
1337
  return Number(v);
1322
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1338
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
1323
1339
  }).strict();
1324
1340
  export const richCaptionActiveFontSchema = richcaptionpropertiesRichCaptionActiveFontSchema;
1325
1341
  /**
@@ -1327,14 +1343,14 @@ export const richCaptionActiveFontSchema = richcaptionpropertiesRichCaptionActiv
1327
1343
  */
1328
1344
  export const richcaptionpropertiesRichCaptionWordAnimationSchema = z.object({
1329
1345
  style: z.enum([
1330
- "karaoke",
1331
- "highlight",
1332
- "pop",
1333
- "fade",
1334
- "slide",
1335
- "bounce",
1336
- "typewriter",
1337
- "none",
1346
+ 'karaoke',
1347
+ 'highlight',
1348
+ 'pop',
1349
+ 'fade',
1350
+ 'slide',
1351
+ 'bounce',
1352
+ 'typewriter',
1353
+ 'none'
1338
1354
  ]),
1339
1355
  speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1340
1356
  return undefined; if (Array.isArray(v))
@@ -1343,7 +1359,12 @@ export const richcaptionpropertiesRichCaptionWordAnimationSchema = z.object({
1343
1359
  return v;
1344
1360
  return Number(v);
1345
1361
  } return v; }), z.number().gte(0.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1346
- direction: z.optional(z.enum(["left", "right", "up", "down"])),
1362
+ direction: z.optional(z.enum([
1363
+ 'left',
1364
+ 'right',
1365
+ 'up',
1366
+ 'down'
1367
+ ]))
1347
1368
  }).strict();
1348
1369
  export const richCaptionWordAnimationSchema = richcaptionpropertiesRichCaptionWordAnimationSchema;
1349
1370
  /**
@@ -1371,15 +1392,23 @@ export const richcaptionpropertiesWordTimingSchema = z.object({
1371
1392
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1372
1393
  return v;
1373
1394
  return Number(v);
1374
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1395
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1375
1396
  }).strict();
1376
1397
  export const wordTimingSchema = richcaptionpropertiesWordTimingSchema;
1377
1398
  /**
1378
1399
  * Text alignment properties (horizontal and vertical).
1379
1400
  */
1380
1401
  export const richtextpropertiesRichTextAlignmentSchema = z.object({
1381
- horizontal: z.optional(z.enum(["left", "center", "right"])),
1382
- vertical: z.optional(z.enum(["top", "middle", "bottom"])),
1402
+ horizontal: z.optional(z.enum([
1403
+ 'left',
1404
+ 'center',
1405
+ 'right'
1406
+ ])),
1407
+ vertical: z.optional(z.enum([
1408
+ 'top',
1409
+ 'middle',
1410
+ 'bottom'
1411
+ ]))
1383
1412
  }).strict();
1384
1413
  export const richTextAlignmentSchema = richtextpropertiesRichTextAlignmentSchema;
1385
1414
  /**
@@ -1387,12 +1416,12 @@ export const richTextAlignmentSchema = richtextpropertiesRichTextAlignmentSchema
1387
1416
  */
1388
1417
  export const richtextpropertiesRichTextAnimationSchema = z.object({
1389
1418
  preset: z.enum([
1390
- "fadeIn",
1391
- "slideIn",
1392
- "typewriter",
1393
- "ascend",
1394
- "shift",
1395
- "movingLetters",
1419
+ 'fadeIn',
1420
+ 'slideIn',
1421
+ 'typewriter',
1422
+ 'ascend',
1423
+ 'shift',
1424
+ 'movingLetters'
1396
1425
  ]),
1397
1426
  duration: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1398
1427
  return undefined; if (Array.isArray(v))
@@ -1401,8 +1430,13 @@ export const richtextpropertiesRichTextAnimationSchema = z.object({
1401
1430
  return v;
1402
1431
  return Number(v);
1403
1432
  } return v; }), z.number().gte(0.1).lte(30)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1404
- style: z.optional(z.enum(["character", "word"])),
1405
- direction: z.optional(z.enum(["left", "right", "up", "down"])),
1433
+ style: z.optional(z.enum(['character', 'word'])),
1434
+ direction: z.optional(z.enum([
1435
+ 'left',
1436
+ 'right',
1437
+ 'up',
1438
+ 'down'
1439
+ ]))
1406
1440
  }).strict();
1407
1441
  export const richTextAnimationSchema = richtextpropertiesRichTextAnimationSchema;
1408
1442
  /**
@@ -1423,7 +1457,7 @@ export const richtextpropertiesRichTextBackgroundSchema = z.object({
1423
1457
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1424
1458
  return v;
1425
1459
  return Number(v);
1426
- } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1460
+ } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
1427
1461
  }).strict();
1428
1462
  export const richTextBackgroundSchema = richtextpropertiesRichTextBackgroundSchema;
1429
1463
  /**
@@ -1437,7 +1471,7 @@ export const richtextpropertiesRichTextBorderSchema = z.object({
1437
1471
  return v;
1438
1472
  return Number(v);
1439
1473
  } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1440
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
1474
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
1441
1475
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1442
1476
  return undefined; if (Array.isArray(v))
1443
1477
  return v; if (typeof v === 'string') {
@@ -1451,13 +1485,13 @@ export const richtextpropertiesRichTextBorderSchema = z.object({
1451
1485
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1452
1486
  return v;
1453
1487
  return Number(v);
1454
- } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1488
+ } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
1455
1489
  }).strict();
1456
1490
  /**
1457
1491
  * Gradient properties for text fill.
1458
1492
  */
1459
1493
  export const richtextpropertiesRichTextGradientSchema = z.object({
1460
- type: z.optional(z.enum(["linear", "radial"])),
1494
+ type: z.optional(z.enum(['linear', 'radial'])),
1461
1495
  angle: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1462
1496
  return undefined; if (Array.isArray(v))
1463
1497
  return v; if (typeof v === 'string') {
@@ -1465,8 +1499,7 @@ export const richtextpropertiesRichTextGradientSchema = z.object({
1465
1499
  return v;
1466
1500
  return Number(v);
1467
1501
  } return v; }), z.number().gte(0).lte(360)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1468
- stops: z
1469
- .array(z.object({
1502
+ stops: z.array(z.object({
1470
1503
  offset: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1471
1504
  return undefined; if (Array.isArray(v))
1472
1505
  return v; if (typeof v === 'string') {
@@ -1474,9 +1507,8 @@ export const richtextpropertiesRichTextGradientSchema = z.object({
1474
1507
  return v;
1475
1508
  return Number(v);
1476
1509
  } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1477
- color: z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1478
- }))
1479
- .min(2),
1510
+ color: z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1511
+ })).min(2)
1480
1512
  }).strict();
1481
1513
  export const richTextGradientSchema = richtextpropertiesRichTextGradientSchema;
1482
1514
  /**
@@ -1510,7 +1542,7 @@ export const richtextpropertiesRichTextPaddingSchema = z.object({
1510
1542
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1511
1543
  return v;
1512
1544
  return Number(v);
1513
- } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1545
+ } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
1514
1546
  }).strict();
1515
1547
  /**
1516
1548
  * Text shadow properties.
@@ -1537,14 +1569,14 @@ export const richtextpropertiesRichTextShadowSchema = z.object({
1537
1569
  return v;
1538
1570
  return Number(v);
1539
1571
  } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1540
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
1572
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
1541
1573
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1542
1574
  return undefined; if (Array.isArray(v))
1543
1575
  return v; if (typeof v === 'string') {
1544
1576
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1545
1577
  return v;
1546
1578
  return Number(v);
1547
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
1579
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
1548
1580
  }).strict();
1549
1581
  export const richTextShadowSchema = richtextpropertiesRichTextShadowSchema;
1550
1582
  /**
@@ -1558,14 +1590,14 @@ export const richtextpropertiesRichTextStrokeSchema = z.object({
1558
1590
  return v;
1559
1591
  return Number(v);
1560
1592
  } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1561
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
1593
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
1562
1594
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1563
1595
  return undefined; if (Array.isArray(v))
1564
1596
  return v; if (typeof v === 'string') {
1565
1597
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1566
1598
  return v;
1567
1599
  return Number(v);
1568
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1600
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
1569
1601
  }).strict();
1570
1602
  export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
1571
1603
  /**
@@ -1580,14 +1612,14 @@ export const richcaptionpropertiesRichCaptionActiveSchema = z.object({
1580
1612
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1581
1613
  return v;
1582
1614
  return Number(v);
1583
- } return v; }), z.number().gte(0.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1615
+ } return v; }), z.number().gte(0.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
1584
1616
  }).strict();
1585
1617
  export const richCaptionActiveSchema = richcaptionpropertiesRichCaptionActiveSchema;
1586
1618
  /**
1587
1619
  * Font properties for rich text.
1588
1620
  */
1589
1621
  export const richtextpropertiesRichTextFontSchema = z.object({
1590
- family: z.optional(z.string()).default("Open Sans"),
1622
+ family: z.optional(z.string()).default('Open Sans'),
1591
1623
  size: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1592
1624
  return undefined; if (Array.isArray(v))
1593
1625
  return v; if (typeof v === 'string') {
@@ -1595,8 +1627,8 @@ export const richtextpropertiesRichTextFontSchema = z.object({
1595
1627
  return v;
1596
1628
  return Number(v);
1597
1629
  } return v; }), z.number().int().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
1598
- weight: z.optional(z.unknown()).default("400"),
1599
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
1630
+ weight: z.optional(z.unknown()).default('400'),
1631
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
1600
1632
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1601
1633
  return undefined; if (Array.isArray(v))
1602
1634
  return v; if (typeof v === 'string') {
@@ -1605,7 +1637,7 @@ export const richtextpropertiesRichTextFontSchema = z.object({
1605
1637
  return Number(v);
1606
1638
  } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1607
1639
  background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1608
- stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
1640
+ stroke: z.optional(richtextpropertiesRichTextStrokeSchema)
1609
1641
  }).strict();
1610
1642
  export const richTextFontSchema = richtextpropertiesRichTextFontSchema;
1611
1643
  /**
@@ -1633,9 +1665,18 @@ export const richtextpropertiesRichTextStyleSchema = z.object({
1633
1665
  return v;
1634
1666
  return Number(v);
1635
1667
  } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1.2),
1636
- textTransform: z.optional(z.enum(["none", "uppercase", "lowercase", "capitalize"])),
1637
- textDecoration: z.optional(z.enum(["none", "underline", "line-through"])),
1638
- gradient: z.optional(richtextpropertiesRichTextGradientSchema),
1668
+ textTransform: z.optional(z.enum([
1669
+ 'none',
1670
+ 'uppercase',
1671
+ 'lowercase',
1672
+ 'capitalize'
1673
+ ])),
1674
+ textDecoration: z.optional(z.enum([
1675
+ 'none',
1676
+ 'underline',
1677
+ 'line-through'
1678
+ ])),
1679
+ gradient: z.optional(richtextpropertiesRichTextGradientSchema)
1639
1680
  }).strict();
1640
1681
  export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
1641
1682
  /**
@@ -1645,7 +1686,7 @@ export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
1645
1686
  *
1646
1687
  */
1647
1688
  export const richcaptionassetRichCaptionAssetSchema = z.object({
1648
- type: z.enum(["rich-caption"]),
1689
+ type: z.enum(['rich-caption']),
1649
1690
  src: z.optional(z.string().min(1)),
1650
1691
  words: z.optional(z.array(richcaptionpropertiesWordTimingSchema).max(100000)),
1651
1692
  font: z.optional(richtextpropertiesRichTextFontSchema),
@@ -1653,17 +1694,24 @@ export const richcaptionassetRichCaptionAssetSchema = z.object({
1653
1694
  stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
1654
1695
  shadow: z.optional(richtextpropertiesRichTextShadowSchema),
1655
1696
  background: z.optional(richtextpropertiesRichTextBackgroundSchema),
1656
- padding: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1697
+ padding: z.optional(z.union([
1698
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1657
1699
  return undefined; if (Array.isArray(v))
1658
1700
  return v; if (typeof v === 'string') {
1659
1701
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1660
1702
  return v;
1661
1703
  return Number(v);
1662
- } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), richtextpropertiesRichTextPaddingSchema])),
1704
+ } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1705
+ richtextpropertiesRichTextPaddingSchema
1706
+ ])),
1663
1707
  align: z.optional(richtextpropertiesRichTextAlignmentSchema),
1664
1708
  active: z.optional(richcaptionpropertiesRichCaptionActiveSchema),
1665
1709
  wordAnimation: z.optional(richcaptionpropertiesRichCaptionWordAnimationSchema),
1666
- position: z.optional(z.enum(["top", "center", "bottom"])),
1710
+ position: z.optional(z.enum([
1711
+ 'top',
1712
+ 'center',
1713
+ 'bottom'
1714
+ ])),
1667
1715
  maxWidth: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1668
1716
  return undefined; if (Array.isArray(v))
1669
1717
  return v; if (typeof v === 'string') {
@@ -1677,7 +1725,7 @@ export const richcaptionassetRichCaptionAssetSchema = z.object({
1677
1725
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1678
1726
  return v;
1679
1727
  return Number(v);
1680
- } return v; }), z.number().int().gte(1).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(2),
1728
+ } return v; }), z.number().int().gte(1).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(2)
1681
1729
  }).strict();
1682
1730
  export const richCaptionAssetSchema = richcaptionassetRichCaptionAssetSchema;
1683
1731
  /**
@@ -1686,7 +1734,7 @@ export const richCaptionAssetSchema = richcaptionassetRichCaptionAssetSchema;
1686
1734
  *
1687
1735
  */
1688
1736
  export const richtextassetRichTextAssetSchema = z.object({
1689
- type: z.enum(["rich-text"]),
1737
+ type: z.enum(['rich-text']),
1690
1738
  text: z.string().max(5000),
1691
1739
  font: z.optional(richtextpropertiesRichTextFontSchema),
1692
1740
  style: z.optional(richtextpropertiesRichTextStyleSchema),
@@ -1694,15 +1742,18 @@ export const richtextassetRichTextAssetSchema = z.object({
1694
1742
  shadow: z.optional(richtextpropertiesRichTextShadowSchema),
1695
1743
  background: z.optional(richtextpropertiesRichTextBackgroundSchema),
1696
1744
  border: z.optional(richtextpropertiesRichTextBorderSchema),
1697
- padding: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1745
+ padding: z.optional(z.union([
1746
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1698
1747
  return undefined; if (Array.isArray(v))
1699
1748
  return v; if (typeof v === 'string') {
1700
1749
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1701
1750
  return v;
1702
1751
  return Number(v);
1703
- } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), richtextpropertiesRichTextPaddingSchema])),
1752
+ } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1753
+ richtextpropertiesRichTextPaddingSchema
1754
+ ])),
1704
1755
  align: z.optional(richtextpropertiesRichTextAlignmentSchema),
1705
- animation: z.optional(richtextpropertiesRichTextAnimationSchema),
1756
+ animation: z.optional(richtextpropertiesRichTextAnimationSchema)
1706
1757
  }).strict();
1707
1758
  export const richTextAssetSchema = richtextassetRichTextAssetSchema;
1708
1759
  /**
@@ -1711,8 +1762,8 @@ export const richTextAssetSchema = richtextassetRichTextAssetSchema;
1711
1762
  export const transferresponseattributesTransferResponseAttributesSchema = z.object({
1712
1763
  id: z.optional(z.string()),
1713
1764
  owner: z.optional(z.string()),
1714
- status: z.optional(z.enum(["queued", "failed"])),
1715
- created: z.optional(z.string()),
1765
+ status: z.optional(z.enum(['queued', 'failed'])),
1766
+ created: z.optional(z.string())
1716
1767
  }).strict();
1717
1768
  export const transferResponseAttributesSchema = transferresponseattributesTransferResponseAttributesSchema;
1718
1769
  /**
@@ -1720,14 +1771,14 @@ export const transferResponseAttributesSchema = transferresponseattributesTransf
1720
1771
  */
1721
1772
  export const transferresponsedataTransferResponseDataSchema = z.object({
1722
1773
  type: z.optional(z.string()),
1723
- attributes: z.optional(transferresponseattributesTransferResponseAttributesSchema),
1774
+ attributes: z.optional(transferresponseattributesTransferResponseAttributesSchema)
1724
1775
  }).strict();
1725
1776
  export const transferResponseDataSchema = transferresponsedataTransferResponseDataSchema;
1726
1777
  /**
1727
1778
  * 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.
1728
1779
  */
1729
1780
  export const transferresponseTransferResponseSchema = z.object({
1730
- data: transferresponsedataTransferResponseDataSchema,
1781
+ data: transferresponsedataTransferResponseDataSchema
1731
1782
  }).strict();
1732
1783
  export const transferResponseSchema = transferresponseTransferResponseSchema;
1733
1784
  /**
@@ -1736,7 +1787,7 @@ export const transferResponseSchema = transferresponseTransferResponseSchema;
1736
1787
  export const transferTransferSchema = z.object({
1737
1788
  url: z.string(),
1738
1789
  id: z.string(),
1739
- destinations: z.array(destinationsDestinationsSchema),
1790
+ destinations: z.array(destinationsDestinationsSchema)
1740
1791
  }).strict();
1741
1792
  export const transferSchema = transferTransferSchema;
1742
1793
  /**
@@ -1745,8 +1796,12 @@ export const transferSchema = transferTransferSchema;
1745
1796
  *
1746
1797
  */
1747
1798
  export const shapeassetShapeAssetSchema = z.object({
1748
- type: z.enum(["shape"]),
1749
- shape: z.enum(["rectangle", "circle", "line"]),
1799
+ type: z.enum(['shape']),
1800
+ shape: z.enum([
1801
+ 'rectangle',
1802
+ 'circle',
1803
+ 'line'
1804
+ ]),
1750
1805
  width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1751
1806
  return undefined; if (Array.isArray(v))
1752
1807
  return v; if (typeof v === 'string') {
@@ -1769,7 +1824,7 @@ export const shapeassetShapeAssetSchema = z.object({
1769
1824
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1770
1825
  return v;
1771
1826
  return Number(v);
1772
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1827
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1773
1828
  })),
1774
1829
  stroke: z.optional(z.object({
1775
1830
  color: z.optional(z.string()),
@@ -1779,7 +1834,7 @@ export const shapeassetShapeAssetSchema = z.object({
1779
1834
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1780
1835
  return v;
1781
1836
  return Number(v);
1782
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1837
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1783
1838
  })),
1784
1839
  rectangle: z.optional(z.object({
1785
1840
  width: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1802,7 +1857,7 @@ export const shapeassetShapeAssetSchema = z.object({
1802
1857
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1803
1858
  return v;
1804
1859
  return Number(v);
1805
- } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1860
+ } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1806
1861
  })),
1807
1862
  circle: z.optional(z.object({
1808
1863
  radius: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1811,7 +1866,7 @@ export const shapeassetShapeAssetSchema = z.object({
1811
1866
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1812
1867
  return v;
1813
1868
  return Number(v);
1814
- } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1869
+ } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1815
1870
  })),
1816
1871
  line: z.optional(z.object({
1817
1872
  length: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1827,8 +1882,8 @@ export const shapeassetShapeAssetSchema = z.object({
1827
1882
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1828
1883
  return v;
1829
1884
  return Number(v);
1830
- } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1831
- })),
1885
+ } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
1886
+ }))
1832
1887
  }).strict();
1833
1888
  export const shapeAssetSchema = shapeassetShapeAssetSchema;
1834
1889
  /**
@@ -1848,7 +1903,7 @@ export const sizeSizeSchema = z.object({
1848
1903
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1849
1904
  return v;
1850
1905
  return Number(v);
1851
- } return v; }), z.number().int().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1906
+ } return v; }), z.number().int().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1852
1907
  }).strict();
1853
1908
  export const sizeSchema = sizeSizeSchema;
1854
1909
  /**
@@ -1856,25 +1911,35 @@ export const sizeSchema = sizeSizeSchema;
1856
1911
  */
1857
1912
  export const renditionRenditionSchema = z.object({
1858
1913
  format: z.optional(z.enum([
1859
- "mp4",
1860
- "webm",
1861
- "mov",
1862
- "avi",
1863
- "mkv",
1864
- "ogv",
1865
- "wmv",
1866
- "avif",
1867
- "gif",
1868
- "mp3",
1869
- "wav",
1870
- "jpg",
1871
- "png",
1872
- "webp",
1873
- "tif",
1914
+ 'mp4',
1915
+ 'webm',
1916
+ 'mov',
1917
+ 'avi',
1918
+ 'mkv',
1919
+ 'ogv',
1920
+ 'wmv',
1921
+ 'avif',
1922
+ 'gif',
1923
+ 'mp3',
1924
+ 'wav',
1925
+ 'jpg',
1926
+ 'png',
1927
+ 'webp',
1928
+ 'tif'
1874
1929
  ])),
1875
1930
  size: z.optional(sizeSizeSchema),
1876
- fit: z.optional(z.enum(["cover", "contain", "crop"])),
1877
- resolution: z.optional(z.enum(["preview", "mobile", "sd", "hd", "fhd"])),
1931
+ fit: z.optional(z.enum([
1932
+ 'cover',
1933
+ 'contain',
1934
+ 'crop'
1935
+ ])),
1936
+ resolution: z.optional(z.enum([
1937
+ 'preview',
1938
+ 'mobile',
1939
+ 'sd',
1940
+ 'hd',
1941
+ 'fhd'
1942
+ ])),
1878
1943
  quality: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1879
1944
  return undefined; if (Array.isArray(v))
1880
1945
  return v; if (typeof v === 'string') {
@@ -1893,7 +1958,7 @@ export const renditionRenditionSchema = z.object({
1893
1958
  z.literal(48),
1894
1959
  z.literal(50),
1895
1960
  z.literal(59.94),
1896
- z.literal(60),
1961
+ z.literal(60)
1897
1962
  ])),
1898
1963
  speed: z.optional(speedSpeedSchema),
1899
1964
  keyframeInterval: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1906,7 +1971,7 @@ export const renditionRenditionSchema = z.object({
1906
1971
  fixOffset: z.optional(z.boolean()),
1907
1972
  fixRotation: z.optional(z.boolean()),
1908
1973
  enhance: z.optional(enhancementsEnhancementsSchema),
1909
- filename: z.optional(z.string()),
1974
+ filename: z.optional(z.string())
1910
1975
  }).strict();
1911
1976
  export const renditionSchema = renditionRenditionSchema;
1912
1977
  /**
@@ -1914,7 +1979,7 @@ export const renditionSchema = renditionRenditionSchema;
1914
1979
  */
1915
1980
  export const outputsOutputsSchema = z.object({
1916
1981
  renditions: z.optional(z.array(renditionRenditionSchema)),
1917
- transcription: z.optional(transcriptionTranscriptionSchema),
1982
+ transcription: z.optional(transcriptionTranscriptionSchema)
1918
1983
  }).strict();
1919
1984
  export const outputsSchema = outputsOutputsSchema;
1920
1985
  /**
@@ -1923,12 +1988,12 @@ export const outputsSchema = outputsOutputsSchema;
1923
1988
  export const renditionresponseattributesRenditionResponseAttributesSchema = z.object({
1924
1989
  id: z.string(),
1925
1990
  status: z.optional(z.enum([
1926
- "queued",
1927
- "importing",
1928
- "ready",
1929
- "failed",
1930
- "deleted",
1931
- "overwritten",
1991
+ 'queued',
1992
+ 'importing',
1993
+ 'ready',
1994
+ 'failed',
1995
+ 'deleted',
1996
+ 'overwritten'
1932
1997
  ])),
1933
1998
  url: z.optional(z.string()),
1934
1999
  executionTime: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1966,14 +2031,14 @@ export const renditionresponseattributesRenditionResponseAttributesSchema = z.ob
1966
2031
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1967
2032
  return v;
1968
2033
  return Number(v);
1969
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2034
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
1970
2035
  }).strict();
1971
2036
  export const renditionResponseAttributesSchema = renditionresponseattributesRenditionResponseAttributesSchema;
1972
2037
  /**
1973
2038
  * The list of outputs generated from the source file. Currently supports renditions which are versions of the source file with different transformations applied.
1974
2039
  */
1975
2040
  export const outputsresponseOutputsResponseSchema = z.object({
1976
- renditions: z.optional(z.array(renditionresponseattributesRenditionResponseAttributesSchema)),
2041
+ renditions: z.optional(z.array(renditionresponseattributesRenditionResponseAttributesSchema))
1977
2042
  }).strict();
1978
2043
  export const outputsResponseSchema = outputsresponseOutputsResponseSchema;
1979
2044
  /**
@@ -1985,12 +2050,12 @@ export const sourceresponseattributesSourceResponseAttributesSchema = z.object({
1985
2050
  input: z.optional(z.string()),
1986
2051
  source: z.optional(z.string()),
1987
2052
  status: z.optional(z.enum([
1988
- "queued",
1989
- "importing",
1990
- "ready",
1991
- "failed",
1992
- "deleted",
1993
- "overwritten",
2053
+ 'queued',
2054
+ 'importing',
2055
+ 'ready',
2056
+ 'failed',
2057
+ 'deleted',
2058
+ 'overwritten'
1994
2059
  ])),
1995
2060
  outputs: z.optional(outputsresponseOutputsResponseSchema),
1996
2061
  width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -2022,7 +2087,7 @@ export const sourceresponseattributesSourceResponseAttributesSchema = z.object({
2022
2087
  return Number(v);
2023
2088
  } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2024
2089
  created: z.optional(z.string()),
2025
- updated: z.optional(z.string()),
2090
+ updated: z.optional(z.string())
2026
2091
  }).strict();
2027
2092
  export const sourceResponseAttributesSchema = sourceresponseattributesSourceResponseAttributesSchema;
2028
2093
  /**
@@ -2031,21 +2096,21 @@ export const sourceResponseAttributesSchema = sourceresponseattributesSourceResp
2031
2096
  export const sourceresponsedataSourceResponseDataSchema = z.object({
2032
2097
  type: z.string(),
2033
2098
  id: z.string(),
2034
- attributes: sourceresponseattributesSourceResponseAttributesSchema,
2099
+ attributes: sourceresponseattributesSourceResponseAttributesSchema
2035
2100
  }).strict();
2036
2101
  export const sourceResponseDataSchema = sourceresponsedataSourceResponseDataSchema;
2037
2102
  /**
2038
2103
  * A list of all ingested source files fetched or uploaded to a users account.
2039
2104
  */
2040
2105
  export const sourcelistresponseSourceListResponseSchema = z.object({
2041
- data: z.array(sourceresponsedataSourceResponseDataSchema),
2106
+ data: z.array(sourceresponsedataSourceResponseDataSchema)
2042
2107
  }).strict();
2043
2108
  export const sourceListResponseSchema = sourcelistresponseSourceListResponseSchema;
2044
2109
  /**
2045
2110
  * 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.
2046
2111
  */
2047
2112
  export const sourceresponseSourceResponseSchema = z.object({
2048
- data: sourceresponsedataSourceResponseDataSchema,
2113
+ data: sourceresponsedataSourceResponseDataSchema
2049
2114
  }).strict();
2050
2115
  export const sourceResponseSchema = sourceresponseSourceResponseSchema;
2051
2116
  /**
@@ -2056,7 +2121,7 @@ export const sourceSourceSchema = z.object({
2056
2121
  url: z.optional(z.string()),
2057
2122
  outputs: z.optional(outputsOutputsSchema),
2058
2123
  destinations: z.optional(destinationsDestinationsSchema),
2059
- callback: z.optional(z.string()),
2124
+ callback: z.optional(z.string())
2060
2125
  }).strict();
2061
2126
  export const sourceSchema = sourceSourceSchema;
2062
2127
  /**
@@ -2064,14 +2129,18 @@ export const sourceSchema = sourceSourceSchema;
2064
2129
  */
2065
2130
  export const soundtrackSoundtrackSchema = z.object({
2066
2131
  src: z.string().min(1).regex(/\S/),
2067
- effect: z.optional(z.enum(["fadeIn", "fadeOut", "fadeInFadeOut"])),
2132
+ effect: z.optional(z.enum([
2133
+ 'fadeIn',
2134
+ 'fadeOut',
2135
+ 'fadeInFadeOut'
2136
+ ])),
2068
2137
  volume: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2069
2138
  return undefined; if (Array.isArray(v))
2070
2139
  return v; if (typeof v === 'string') {
2071
2140
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2072
2141
  return v;
2073
2142
  return Number(v);
2074
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2143
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
2075
2144
  }).strict();
2076
2145
  export const soundtrackSchema = soundtrackSoundtrackSchema;
2077
2146
  /**
@@ -2087,7 +2156,7 @@ export const svgpropertiesSvgGradientStopSchema = z.object({
2087
2156
  return v;
2088
2157
  return Number(v);
2089
2158
  } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2090
- color: z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2159
+ color: z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2091
2160
  }).strict();
2092
2161
  export const svgGradientStopSchema = svgpropertiesSvgGradientStopSchema;
2093
2162
  /**
@@ -2096,7 +2165,7 @@ export const svgGradientStopSchema = svgpropertiesSvgGradientStopSchema;
2096
2165
  *
2097
2166
  */
2098
2167
  export const svgpropertiesSvgLinearGradientFillSchema = z.object({
2099
- type: z.enum(["linear"]),
2168
+ type: z.enum(['linear']),
2100
2169
  angle: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2101
2170
  return undefined; if (Array.isArray(v))
2102
2171
  return v; if (typeof v === 'string') {
@@ -2111,7 +2180,7 @@ export const svgpropertiesSvgLinearGradientFillSchema = z.object({
2111
2180
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2112
2181
  return v;
2113
2182
  return Number(v);
2114
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2183
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
2115
2184
  }).strict();
2116
2185
  export const svgLinearGradientFillSchema = svgpropertiesSvgLinearGradientFillSchema;
2117
2186
  /**
@@ -2120,7 +2189,7 @@ export const svgLinearGradientFillSchema = svgpropertiesSvgLinearGradientFillSch
2120
2189
  *
2121
2190
  */
2122
2191
  export const svgpropertiesSvgRadialGradientFillSchema = z.object({
2123
- type: z.enum(["radial"]),
2192
+ type: z.enum(['radial']),
2124
2193
  stops: z.array(svgpropertiesSvgGradientStopSchema).min(2),
2125
2194
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2126
2195
  return undefined; if (Array.isArray(v))
@@ -2128,7 +2197,7 @@ export const svgpropertiesSvgRadialGradientFillSchema = z.object({
2128
2197
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2129
2198
  return v;
2130
2199
  return Number(v);
2131
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2200
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
2132
2201
  }).strict();
2133
2202
  export const svgRadialGradientFillSchema = svgpropertiesSvgRadialGradientFillSchema;
2134
2203
  /**
@@ -2157,32 +2226,29 @@ export const svgpropertiesSvgShadowSchema = z.object({
2157
2226
  return v;
2158
2227
  return Number(v);
2159
2228
  } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2160
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
2229
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
2161
2230
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2162
2231
  return undefined; if (Array.isArray(v))
2163
2232
  return v; if (typeof v === 'string') {
2164
2233
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2165
2234
  return v;
2166
2235
  return Number(v);
2167
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
2236
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
2168
2237
  }).strict();
2169
2238
  export const svgShadowSchema = svgpropertiesSvgShadowSchema;
2170
2239
  /**
2171
2240
  * A solid color fill for SVG shapes.
2172
2241
  */
2173
2242
  export const svgpropertiesSvgSolidFillSchema = z.object({
2174
- type: z.enum(["solid"]),
2175
- color: z
2176
- .string()
2177
- .regex(/^#[A-Fa-f0-9]{6}$/)
2178
- .default("#000000"),
2243
+ type: z.enum(['solid']),
2244
+ color: z.string().regex(/^#[A-Fa-f0-9]{6}$/).default('#000000'),
2179
2245
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2180
2246
  return undefined; if (Array.isArray(v))
2181
2247
  return v; if (typeof v === 'string') {
2182
2248
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2183
2249
  return v;
2184
2250
  return Number(v);
2185
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2251
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
2186
2252
  }).strict();
2187
2253
  export const svgSolidFillSchema = svgpropertiesSvgSolidFillSchema;
2188
2254
  /**
@@ -2202,7 +2268,7 @@ export const svgFillSchema = svgpropertiesSvgFillSchema;
2202
2268
  *
2203
2269
  */
2204
2270
  export const svgpropertiesSvgStrokeSchema = z.object({
2205
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
2271
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
2206
2272
  width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2207
2273
  return undefined; if (Array.isArray(v))
2208
2274
  return v; if (typeof v === 'string') {
@@ -2217,8 +2283,16 @@ export const svgpropertiesSvgStrokeSchema = z.object({
2217
2283
  return v;
2218
2284
  return Number(v);
2219
2285
  } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2220
- lineCap: z.optional(z.enum(["butt", "round", "square"])),
2221
- lineJoin: z.optional(z.enum(["miter", "round", "bevel"])),
2286
+ lineCap: z.optional(z.enum([
2287
+ 'butt',
2288
+ 'round',
2289
+ 'square'
2290
+ ])),
2291
+ lineJoin: z.optional(z.enum([
2292
+ 'miter',
2293
+ 'round',
2294
+ 'bevel'
2295
+ ])),
2222
2296
  dashArray: z.optional(z.array(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2223
2297
  return undefined; if (Array.isArray(v))
2224
2298
  return v; if (typeof v === 'string') {
@@ -2232,7 +2306,7 @@ export const svgpropertiesSvgStrokeSchema = z.object({
2232
2306
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2233
2307
  return v;
2234
2308
  return Number(v);
2235
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2309
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
2236
2310
  }).strict();
2237
2311
  export const svgStrokeSchema = svgpropertiesSvgStrokeSchema;
2238
2312
  /**
@@ -2281,7 +2355,7 @@ export const svgpropertiesSvgTransformSchema = z.object({
2281
2355
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2282
2356
  return v;
2283
2357
  return Number(v);
2284
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
2358
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
2285
2359
  }).strict();
2286
2360
  export const svgTransformSchema = svgpropertiesSvgTransformSchema;
2287
2361
  /**
@@ -2290,7 +2364,7 @@ export const svgTransformSchema = svgpropertiesSvgTransformSchema;
2290
2364
  *
2291
2365
  */
2292
2366
  export const svgshapesSvgArrowShapeSchema = z.object({
2293
- type: z.enum(["arrow"]),
2367
+ type: z.enum(['arrow']),
2294
2368
  length: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2295
2369
  return undefined; if (Array.isArray(v))
2296
2370
  return v; if (typeof v === 'string') {
@@ -2318,7 +2392,7 @@ export const svgshapesSvgArrowShapeSchema = z.object({
2318
2392
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2319
2393
  return v;
2320
2394
  return Number(v);
2321
- } return v; }), z.number().gte(1).lte(1000)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2395
+ } return v; }), z.number().gte(1).lte(1000)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2322
2396
  }).strict();
2323
2397
  export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
2324
2398
  /**
@@ -2327,14 +2401,14 @@ export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
2327
2401
  *
2328
2402
  */
2329
2403
  export const svgshapesSvgCircleShapeSchema = z.object({
2330
- type: z.enum(["circle"]),
2404
+ type: z.enum(['circle']),
2331
2405
  radius: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2332
2406
  return undefined; if (Array.isArray(v))
2333
2407
  return v; if (typeof v === 'string') {
2334
2408
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2335
2409
  return v;
2336
2410
  return Number(v);
2337
- } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2411
+ } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2338
2412
  }).strict();
2339
2413
  export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
2340
2414
  /**
@@ -2343,7 +2417,7 @@ export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
2343
2417
  *
2344
2418
  */
2345
2419
  export const svgshapesSvgCrossShapeSchema = z.object({
2346
- type: z.enum(["cross"]),
2420
+ type: z.enum(['cross']),
2347
2421
  width: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2348
2422
  return undefined; if (Array.isArray(v))
2349
2423
  return v; if (typeof v === 'string') {
@@ -2364,7 +2438,7 @@ export const svgshapesSvgCrossShapeSchema = z.object({
2364
2438
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2365
2439
  return v;
2366
2440
  return Number(v);
2367
- } return v; }), z.number().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2441
+ } return v; }), z.number().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2368
2442
  }).strict();
2369
2443
  export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
2370
2444
  /**
@@ -2373,7 +2447,7 @@ export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
2373
2447
  *
2374
2448
  */
2375
2449
  export const svgshapesSvgEllipseShapeSchema = z.object({
2376
- type: z.enum(["ellipse"]),
2450
+ type: z.enum(['ellipse']),
2377
2451
  radiusX: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2378
2452
  return undefined; if (Array.isArray(v))
2379
2453
  return v; if (typeof v === 'string') {
@@ -2387,7 +2461,7 @@ export const svgshapesSvgEllipseShapeSchema = z.object({
2387
2461
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2388
2462
  return v;
2389
2463
  return Number(v);
2390
- } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2464
+ } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2391
2465
  }).strict();
2392
2466
  export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
2393
2467
  /**
@@ -2396,14 +2470,14 @@ export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
2396
2470
  *
2397
2471
  */
2398
2472
  export const svgshapesSvgHeartShapeSchema = z.object({
2399
- type: z.enum(["heart"]),
2473
+ type: z.enum(['heart']),
2400
2474
  size: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2401
2475
  return undefined; if (Array.isArray(v))
2402
2476
  return v; if (typeof v === 'string') {
2403
2477
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2404
2478
  return v;
2405
2479
  return Number(v);
2406
- } return v; }), z.number().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2480
+ } return v; }), z.number().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2407
2481
  }).strict();
2408
2482
  export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
2409
2483
  /**
@@ -2412,7 +2486,7 @@ export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
2412
2486
  *
2413
2487
  */
2414
2488
  export const svgshapesSvgLineShapeSchema = z.object({
2415
- type: z.enum(["line"]),
2489
+ type: z.enum(['line']),
2416
2490
  length: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2417
2491
  return undefined; if (Array.isArray(v))
2418
2492
  return v; if (typeof v === 'string') {
@@ -2426,7 +2500,7 @@ export const svgshapesSvgLineShapeSchema = z.object({
2426
2500
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2427
2501
  return v;
2428
2502
  return Number(v);
2429
- } return v; }), z.number().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2503
+ } return v; }), z.number().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2430
2504
  }).strict();
2431
2505
  export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
2432
2506
  /**
@@ -2447,8 +2521,8 @@ export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
2447
2521
  *
2448
2522
  */
2449
2523
  export const svgshapesSvgPathShapeSchema = z.object({
2450
- type: z.enum(["path"]),
2451
- d: z.string().min(1).max(100000),
2524
+ type: z.enum(['path']),
2525
+ d: z.string().min(1).max(100000)
2452
2526
  }).strict();
2453
2527
  export const svgPathShapeSchema = svgshapesSvgPathShapeSchema;
2454
2528
  /**
@@ -2458,7 +2532,7 @@ export const svgPathShapeSchema = svgshapesSvgPathShapeSchema;
2458
2532
  *
2459
2533
  */
2460
2534
  export const svgshapesSvgPolygonShapeSchema = z.object({
2461
- type: z.enum(["polygon"]),
2535
+ type: z.enum(['polygon']),
2462
2536
  sides: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2463
2537
  return undefined; if (Array.isArray(v))
2464
2538
  return v; if (typeof v === 'string') {
@@ -2472,7 +2546,7 @@ export const svgshapesSvgPolygonShapeSchema = z.object({
2472
2546
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2473
2547
  return v;
2474
2548
  return Number(v);
2475
- } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2549
+ } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2476
2550
  }).strict();
2477
2551
  export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
2478
2552
  /**
@@ -2481,7 +2555,7 @@ export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
2481
2555
  *
2482
2556
  */
2483
2557
  export const svgshapesSvgRectangleShapeSchema = z.object({
2484
- type: z.enum(["rectangle"]),
2558
+ type: z.enum(['rectangle']),
2485
2559
  width: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2486
2560
  return undefined; if (Array.isArray(v))
2487
2561
  return v; if (typeof v === 'string') {
@@ -2502,7 +2576,7 @@ export const svgshapesSvgRectangleShapeSchema = z.object({
2502
2576
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2503
2577
  return v;
2504
2578
  return Number(v);
2505
- } return v; }), z.number().gte(0).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2579
+ } return v; }), z.number().gte(0).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
2506
2580
  }).strict();
2507
2581
  export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
2508
2582
  /**
@@ -2511,7 +2585,7 @@ export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
2511
2585
  *
2512
2586
  */
2513
2587
  export const svgshapesSvgRingShapeSchema = z.object({
2514
- type: z.enum(["ring"]),
2588
+ type: z.enum(['ring']),
2515
2589
  outerRadius: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2516
2590
  return undefined; if (Array.isArray(v))
2517
2591
  return v; if (typeof v === 'string') {
@@ -2525,7 +2599,7 @@ export const svgshapesSvgRingShapeSchema = z.object({
2525
2599
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2526
2600
  return v;
2527
2601
  return Number(v);
2528
- } return v; }), z.number().gte(0).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2602
+ } return v; }), z.number().gte(0).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2529
2603
  }).strict();
2530
2604
  export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
2531
2605
  /**
@@ -2535,7 +2609,7 @@ export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
2535
2609
  *
2536
2610
  */
2537
2611
  export const svgshapesSvgStarShapeSchema = z.object({
2538
- type: z.enum(["star"]),
2612
+ type: z.enum(['star']),
2539
2613
  points: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2540
2614
  return undefined; if (Array.isArray(v))
2541
2615
  return v; if (typeof v === 'string') {
@@ -2556,7 +2630,7 @@ export const svgshapesSvgStarShapeSchema = z.object({
2556
2630
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2557
2631
  return v;
2558
2632
  return Number(v);
2559
- } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2633
+ } return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2560
2634
  }).strict();
2561
2635
  export const svgStarShapeSchema = svgshapesSvgStarShapeSchema;
2562
2636
  /**
@@ -2687,29 +2761,37 @@ export const svgAssetSchema = svgassetSvgAssetSchema;
2687
2761
  */
2688
2762
  export const templaterenderTemplateRenderSchema = z.object({
2689
2763
  id: z.string(),
2690
- merge: z.optional(z.array(mergefieldMergeFieldSchema)),
2764
+ merge: z.optional(z.array(mergefieldMergeFieldSchema))
2691
2765
  }).strict();
2692
2766
  export const templateRenderSchema = templaterenderTemplateRenderSchema;
2693
2767
  /**
2694
2768
  * Horizontal and vertical alignment properties for text.
2695
2769
  */
2696
2770
  export const textpropertiesTextAlignmentSchema = z.object({
2697
- horizontal: z.optional(z.enum(["left", "center", "right"])),
2698
- vertical: z.optional(z.enum(["top", "center", "bottom"])),
2771
+ horizontal: z.optional(z.enum([
2772
+ 'left',
2773
+ 'center',
2774
+ 'right'
2775
+ ])),
2776
+ vertical: z.optional(z.enum([
2777
+ 'top',
2778
+ 'center',
2779
+ 'bottom'
2780
+ ]))
2699
2781
  }).strict();
2700
2782
  export const textAlignmentSchema = textpropertiesTextAlignmentSchema;
2701
2783
  /**
2702
2784
  * Animation properties for text entrance effects.
2703
2785
  */
2704
2786
  export const textpropertiesTextAnimationSchema = z.object({
2705
- preset: z.enum(["typewriter"]),
2787
+ preset: z.enum(['typewriter']),
2706
2788
  duration: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2707
2789
  return undefined; if (Array.isArray(v))
2708
2790
  return v; if (typeof v === 'string') {
2709
2791
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2710
2792
  return v;
2711
2793
  return Number(v);
2712
- } return v; }), z.number().gte(0.1).lte(30)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2794
+ } return v; }), z.number().gte(0.1).lte(30)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
2713
2795
  }).strict();
2714
2796
  /**
2715
2797
  * Displays a background box behind the text.
@@ -2736,7 +2818,7 @@ export const textpropertiesTextBackgroundSchema = z.object({
2736
2818
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2737
2819
  return v;
2738
2820
  return Number(v);
2739
- } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2821
+ } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
2740
2822
  }).strict();
2741
2823
  export const textBackgroundSchema = textpropertiesTextBackgroundSchema;
2742
2824
  /**
@@ -2772,7 +2854,7 @@ export const textpropertiesTextFontSchema = z.object({
2772
2854
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2773
2855
  return v;
2774
2856
  return Number(v);
2775
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2857
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
2776
2858
  }).strict();
2777
2859
  export const textFontSchema = textpropertiesTextFontSchema;
2778
2860
  /**
@@ -2786,7 +2868,7 @@ export const textpropertiesTextStrokeSchema = z.object({
2786
2868
  return v;
2787
2869
  return Number(v);
2788
2870
  } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2789
- color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2871
+ color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
2790
2872
  }).strict();
2791
2873
  /**
2792
2874
  * The TextAsset is used to add text and titles to a video. The text can be styled with built in and custom
@@ -2794,7 +2876,7 @@ export const textpropertiesTextStrokeSchema = z.object({
2794
2876
  *
2795
2877
  */
2796
2878
  export const textassetTextAssetSchema = z.object({
2797
- type: z.enum(["text"]),
2879
+ type: z.enum(['text']),
2798
2880
  text: z.string(),
2799
2881
  width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2800
2882
  return undefined; if (Array.isArray(v))
@@ -2815,14 +2897,14 @@ export const textassetTextAssetSchema = z.object({
2815
2897
  alignment: z.optional(textpropertiesTextAlignmentSchema),
2816
2898
  stroke: z.optional(textpropertiesTextStrokeSchema),
2817
2899
  animation: z.optional(textpropertiesTextAnimationSchema),
2818
- ellipsis: z.optional(z.string()),
2900
+ ellipsis: z.optional(z.string())
2819
2901
  }).strict();
2820
2902
  export const textAssetSchema = textassetTextAssetSchema;
2821
2903
  /**
2822
2904
  * The TextToImageAsset lets you create a dynamic image from a text prompt.
2823
2905
  */
2824
2906
  export const texttoimageassetTextToImageAssetSchema = z.object({
2825
- type: z.enum(["text-to-image"]),
2907
+ type: z.enum(['text-to-image']),
2826
2908
  prompt: z.string(),
2827
2909
  width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2828
2910
  return undefined; if (Array.isArray(v))
@@ -2838,7 +2920,7 @@ export const texttoimageassetTextToImageAssetSchema = z.object({
2838
2920
  return v;
2839
2921
  return Number(v);
2840
2922
  } return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2841
- crop: z.optional(cropCropSchema),
2923
+ crop: z.optional(cropCropSchema)
2842
2924
  }).strict();
2843
2925
  export const textToImageAssetSchema = texttoimageassetTextToImageAssetSchema;
2844
2926
  /**
@@ -2858,16 +2940,36 @@ export const thumbnailThumbnailSchema = z.object({
2858
2940
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2859
2941
  return v;
2860
2942
  return Number(v);
2861
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2943
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
2862
2944
  }).strict();
2863
2945
  export const thumbnailSchema = thumbnailThumbnailSchema;
2864
2946
  /**
2865
2947
  * The output format, render range and type of media to generate.
2866
2948
  */
2867
2949
  export const outputOutputSchema = z.object({
2868
- format: z.enum(["mp4", "gif", "mp3", "jpg", "png", "bmp"]),
2869
- resolution: z.optional(z.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
2870
- aspectRatio: z.optional(z.enum(["16:9", "9:16", "1:1", "4:5", "4:3"])),
2950
+ format: z.enum([
2951
+ 'mp4',
2952
+ 'gif',
2953
+ 'mp3',
2954
+ 'jpg',
2955
+ 'png',
2956
+ 'bmp'
2957
+ ]),
2958
+ resolution: z.optional(z.enum([
2959
+ 'preview',
2960
+ 'mobile',
2961
+ 'sd',
2962
+ 'hd',
2963
+ '1080',
2964
+ '4k'
2965
+ ])),
2966
+ aspectRatio: z.optional(z.enum([
2967
+ '16:9',
2968
+ '9:16',
2969
+ '1:1',
2970
+ '4:5',
2971
+ '4:3'
2972
+ ])),
2871
2973
  size: z.optional(sizeSizeSchema),
2872
2974
  fps: z.optional(z.union([
2873
2975
  z.literal(12),
@@ -2880,16 +2982,29 @@ export const outputOutputSchema = z.object({
2880
2982
  z.literal(48),
2881
2983
  z.literal(50),
2882
2984
  z.literal(59.94),
2883
- z.literal(60),
2985
+ z.literal(60)
2986
+ ])),
2987
+ scaleTo: z.optional(z.enum([
2988
+ 'preview',
2989
+ 'mobile',
2990
+ 'sd',
2991
+ 'hd',
2992
+ '1080',
2993
+ '4k'
2994
+ ])),
2995
+ quality: z.optional(z.enum([
2996
+ 'verylow',
2997
+ 'low',
2998
+ 'medium',
2999
+ 'high',
3000
+ 'veryhigh'
2884
3001
  ])),
2885
- scaleTo: z.optional(z.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
2886
- quality: z.optional(z.enum(["verylow", "low", "medium", "high", "veryhigh"])),
2887
3002
  repeat: z.optional(z.boolean()),
2888
3003
  mute: z.optional(z.boolean()),
2889
3004
  range: z.optional(rangeRangeSchema),
2890
3005
  poster: z.optional(posterPosterSchema),
2891
3006
  thumbnail: z.optional(thumbnailThumbnailSchema),
2892
- destinations: z.optional(z.array(destinationsDestinationsSchema)),
3007
+ destinations: z.optional(z.array(destinationsDestinationsSchema))
2893
3008
  }).strict();
2894
3009
  export const outputSchema = outputOutputSchema;
2895
3010
  /**
@@ -2897,133 +3012,133 @@ export const outputSchema = outputOutputSchema;
2897
3012
  */
2898
3013
  export const transitionTransitionSchema = z.object({
2899
3014
  in: z.optional(z.enum([
2900
- "none",
2901
- "fade",
2902
- "fadeSlow",
2903
- "fadeFast",
2904
- "reveal",
2905
- "revealSlow",
2906
- "revealFast",
2907
- "wipeLeft",
2908
- "wipeLeftSlow",
2909
- "wipeLeftFast",
2910
- "wipeRight",
2911
- "wipeRightSlow",
2912
- "wipeRightFast",
2913
- "slideLeft",
2914
- "slideLeftSlow",
2915
- "slideLeftFast",
2916
- "slideRight",
2917
- "slideRightSlow",
2918
- "slideRightFast",
2919
- "slideUp",
2920
- "slideUpSlow",
2921
- "slideUpFast",
2922
- "slideDown",
2923
- "slideDownSlow",
2924
- "slideDownFast",
2925
- "carouselLeft",
2926
- "carouselLeftSlow",
2927
- "carouselLeftFast",
2928
- "carouselRight",
2929
- "carouselRightSlow",
2930
- "carouselRightFast",
2931
- "carouselUp",
2932
- "carouselUpSlow",
2933
- "carouselUpFast",
2934
- "carouselDown",
2935
- "carouselDownSlow",
2936
- "carouselDownFast",
2937
- "shuffleTopRight",
2938
- "shuffleTopRightSlow",
2939
- "shuffleTopRightFast",
2940
- "shuffleRightTop",
2941
- "shuffleRightTopSlow",
2942
- "shuffleRightTopFast",
2943
- "shuffleRightBottom",
2944
- "shuffleRightBottomSlow",
2945
- "shuffleRightBottomFast",
2946
- "shuffleBottomRight",
2947
- "shuffleBottomRightSlow",
2948
- "shuffleBottomRightFast",
2949
- "shuffleBottomLeft",
2950
- "shuffleBottomLeftSlow",
2951
- "shuffleBottomLeftFast",
2952
- "shuffleLeftBottom",
2953
- "shuffleLeftBottomSlow",
2954
- "shuffleLeftBottomFast",
2955
- "shuffleLeftTop",
2956
- "shuffleLeftTopSlow",
2957
- "shuffleLeftTopFast",
2958
- "shuffleTopLeft",
2959
- "shuffleTopLeftSlow",
2960
- "shuffleTopLeftFast",
2961
- "zoom",
3015
+ 'none',
3016
+ 'fade',
3017
+ 'fadeSlow',
3018
+ 'fadeFast',
3019
+ 'reveal',
3020
+ 'revealSlow',
3021
+ 'revealFast',
3022
+ 'wipeLeft',
3023
+ 'wipeLeftSlow',
3024
+ 'wipeLeftFast',
3025
+ 'wipeRight',
3026
+ 'wipeRightSlow',
3027
+ 'wipeRightFast',
3028
+ 'slideLeft',
3029
+ 'slideLeftSlow',
3030
+ 'slideLeftFast',
3031
+ 'slideRight',
3032
+ 'slideRightSlow',
3033
+ 'slideRightFast',
3034
+ 'slideUp',
3035
+ 'slideUpSlow',
3036
+ 'slideUpFast',
3037
+ 'slideDown',
3038
+ 'slideDownSlow',
3039
+ 'slideDownFast',
3040
+ 'carouselLeft',
3041
+ 'carouselLeftSlow',
3042
+ 'carouselLeftFast',
3043
+ 'carouselRight',
3044
+ 'carouselRightSlow',
3045
+ 'carouselRightFast',
3046
+ 'carouselUp',
3047
+ 'carouselUpSlow',
3048
+ 'carouselUpFast',
3049
+ 'carouselDown',
3050
+ 'carouselDownSlow',
3051
+ 'carouselDownFast',
3052
+ 'shuffleTopRight',
3053
+ 'shuffleTopRightSlow',
3054
+ 'shuffleTopRightFast',
3055
+ 'shuffleRightTop',
3056
+ 'shuffleRightTopSlow',
3057
+ 'shuffleRightTopFast',
3058
+ 'shuffleRightBottom',
3059
+ 'shuffleRightBottomSlow',
3060
+ 'shuffleRightBottomFast',
3061
+ 'shuffleBottomRight',
3062
+ 'shuffleBottomRightSlow',
3063
+ 'shuffleBottomRightFast',
3064
+ 'shuffleBottomLeft',
3065
+ 'shuffleBottomLeftSlow',
3066
+ 'shuffleBottomLeftFast',
3067
+ 'shuffleLeftBottom',
3068
+ 'shuffleLeftBottomSlow',
3069
+ 'shuffleLeftBottomFast',
3070
+ 'shuffleLeftTop',
3071
+ 'shuffleLeftTopSlow',
3072
+ 'shuffleLeftTopFast',
3073
+ 'shuffleTopLeft',
3074
+ 'shuffleTopLeftSlow',
3075
+ 'shuffleTopLeftFast',
3076
+ 'zoom'
2962
3077
  ])),
2963
3078
  out: z.optional(z.enum([
2964
- "none",
2965
- "fade",
2966
- "fadeSlow",
2967
- "fadeFast",
2968
- "reveal",
2969
- "revealSlow",
2970
- "revealFast",
2971
- "wipeLeft",
2972
- "wipeLeftSlow",
2973
- "wipeLeftFast",
2974
- "wipeRight",
2975
- "wipeRightSlow",
2976
- "wipeRightFast",
2977
- "slideLeft",
2978
- "slideLeftSlow",
2979
- "slideLeftFast",
2980
- "slideRight",
2981
- "slideRightSlow",
2982
- "slideRightFast",
2983
- "slideUp",
2984
- "slideUpSlow",
2985
- "slideUpFast",
2986
- "slideDown",
2987
- "slideDownSlow",
2988
- "slideDownFast",
2989
- "carouselLeft",
2990
- "carouselLeftSlow",
2991
- "carouselLeftFast",
2992
- "carouselRight",
2993
- "carouselRightSlow",
2994
- "carouselRightFast",
2995
- "carouselUp",
2996
- "carouselUpSlow",
2997
- "carouselUpFast",
2998
- "carouselDown",
2999
- "carouselDownSlow",
3000
- "carouselDownFast",
3001
- "shuffleTopRight",
3002
- "shuffleTopRightSlow",
3003
- "shuffleTopRightFast",
3004
- "shuffleRightTop",
3005
- "shuffleRightTopSlow",
3006
- "shuffleRightTopFast",
3007
- "shuffleRightBottom",
3008
- "shuffleRightBottomSlow",
3009
- "shuffleRightBottomFast",
3010
- "shuffleBottomRight",
3011
- "shuffleBottomRightSlow",
3012
- "shuffleBottomRightFast",
3013
- "shuffleBottomLeft",
3014
- "shuffleBottomLeftSlow",
3015
- "shuffleBottomLeftFast",
3016
- "shuffleLeftBottom",
3017
- "shuffleLeftBottomSlow",
3018
- "shuffleLeftBottomFast",
3019
- "shuffleLeftTop",
3020
- "shuffleLeftTopSlow",
3021
- "shuffleLeftTopFast",
3022
- "shuffleTopLeft",
3023
- "shuffleTopLeftSlow",
3024
- "shuffleTopLeftFast",
3025
- "zoom",
3026
- ])),
3079
+ 'none',
3080
+ 'fade',
3081
+ 'fadeSlow',
3082
+ 'fadeFast',
3083
+ 'reveal',
3084
+ 'revealSlow',
3085
+ 'revealFast',
3086
+ 'wipeLeft',
3087
+ 'wipeLeftSlow',
3088
+ 'wipeLeftFast',
3089
+ 'wipeRight',
3090
+ 'wipeRightSlow',
3091
+ 'wipeRightFast',
3092
+ 'slideLeft',
3093
+ 'slideLeftSlow',
3094
+ 'slideLeftFast',
3095
+ 'slideRight',
3096
+ 'slideRightSlow',
3097
+ 'slideRightFast',
3098
+ 'slideUp',
3099
+ 'slideUpSlow',
3100
+ 'slideUpFast',
3101
+ 'slideDown',
3102
+ 'slideDownSlow',
3103
+ 'slideDownFast',
3104
+ 'carouselLeft',
3105
+ 'carouselLeftSlow',
3106
+ 'carouselLeftFast',
3107
+ 'carouselRight',
3108
+ 'carouselRightSlow',
3109
+ 'carouselRightFast',
3110
+ 'carouselUp',
3111
+ 'carouselUpSlow',
3112
+ 'carouselUpFast',
3113
+ 'carouselDown',
3114
+ 'carouselDownSlow',
3115
+ 'carouselDownFast',
3116
+ 'shuffleTopRight',
3117
+ 'shuffleTopRightSlow',
3118
+ 'shuffleTopRightFast',
3119
+ 'shuffleRightTop',
3120
+ 'shuffleRightTopSlow',
3121
+ 'shuffleRightTopFast',
3122
+ 'shuffleRightBottom',
3123
+ 'shuffleRightBottomSlow',
3124
+ 'shuffleRightBottomFast',
3125
+ 'shuffleBottomRight',
3126
+ 'shuffleBottomRightSlow',
3127
+ 'shuffleBottomRightFast',
3128
+ 'shuffleBottomLeft',
3129
+ 'shuffleBottomLeftSlow',
3130
+ 'shuffleBottomLeftFast',
3131
+ 'shuffleLeftBottom',
3132
+ 'shuffleLeftBottomSlow',
3133
+ 'shuffleLeftBottomFast',
3134
+ 'shuffleLeftTop',
3135
+ 'shuffleLeftTopSlow',
3136
+ 'shuffleLeftTopFast',
3137
+ 'shuffleTopLeft',
3138
+ 'shuffleTopLeftSlow',
3139
+ 'shuffleTopLeftFast',
3140
+ 'zoom'
3141
+ ]))
3027
3142
  }).strict();
3028
3143
  export const transitionSchema = transitionTransitionSchema;
3029
3144
  /**
@@ -3053,44 +3168,48 @@ export const tweenTweenSchema = z.object({
3053
3168
  return v;
3054
3169
  return Number(v);
3055
3170
  } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3056
- interpolation: z.optional(z.enum(["linear", "bezier", "constant"])),
3057
- easing: z.optional(z.enum([
3058
- "ease",
3059
- "easeIn",
3060
- "easeOut",
3061
- "easeInOut",
3062
- "easeInQuad",
3063
- "easeInCubic",
3064
- "easeInQuart",
3065
- "easeInQuint",
3066
- "easeInSine",
3067
- "easeInExpo",
3068
- "easeInCirc",
3069
- "easeInBack",
3070
- "easeOutQuad",
3071
- "easeOutCubic",
3072
- "easeOutQuart",
3073
- "easeOutQuint",
3074
- "easeOutSine",
3075
- "easeOutExpo",
3076
- "easeOutCirc",
3077
- "easeOutBack",
3078
- "easeInOutQuad",
3079
- "easeInOutCubic",
3080
- "easeInOutQuart",
3081
- "easeInOutQuint",
3082
- "easeInOutSine",
3083
- "easeInOutExpo",
3084
- "easeInOutCirc",
3085
- "easeInOutBack",
3171
+ interpolation: z.optional(z.enum([
3172
+ 'linear',
3173
+ 'bezier',
3174
+ 'constant'
3086
3175
  ])),
3176
+ easing: z.optional(z.enum([
3177
+ 'ease',
3178
+ 'easeIn',
3179
+ 'easeOut',
3180
+ 'easeInOut',
3181
+ 'easeInQuad',
3182
+ 'easeInCubic',
3183
+ 'easeInQuart',
3184
+ 'easeInQuint',
3185
+ 'easeInSine',
3186
+ 'easeInExpo',
3187
+ 'easeInCirc',
3188
+ 'easeInBack',
3189
+ 'easeOutQuad',
3190
+ 'easeOutCubic',
3191
+ 'easeOutQuart',
3192
+ 'easeOutQuint',
3193
+ 'easeOutSine',
3194
+ 'easeOutExpo',
3195
+ 'easeOutCirc',
3196
+ 'easeOutBack',
3197
+ 'easeInOutQuad',
3198
+ 'easeInOutCubic',
3199
+ 'easeInOutQuart',
3200
+ 'easeInOutQuint',
3201
+ 'easeInOutSine',
3202
+ 'easeInOutExpo',
3203
+ 'easeInOutCirc',
3204
+ 'easeInOutBack'
3205
+ ]))
3087
3206
  }).strict();
3088
3207
  export const tweenSchema = tweenTweenSchema;
3089
3208
  /**
3090
3209
  * 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.
3091
3210
  */
3092
3211
  export const audioassetAudioAssetSchema = z.object({
3093
- type: z.enum(["audio"]),
3212
+ type: z.enum(['audio']),
3094
3213
  src: z.string().min(1).regex(/\S/),
3095
3214
  trim: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3096
3215
  return undefined; if (Array.isArray(v))
@@ -3099,13 +3218,16 @@ export const audioassetAudioAssetSchema = z.object({
3099
3218
  return v;
3100
3219
  return Number(v);
3101
3220
  } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3102
- volume: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3221
+ volume: z.optional(z.union([
3222
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3103
3223
  return undefined; if (Array.isArray(v))
3104
3224
  return v; if (typeof v === 'string') {
3105
3225
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3106
3226
  return v;
3107
3227
  return Number(v);
3108
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3228
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3229
+ z.array(tweenTweenSchema)
3230
+ ])),
3109
3231
  speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3110
3232
  return undefined; if (Array.isArray(v))
3111
3233
  return v; if (typeof v === 'string') {
@@ -3113,67 +3235,87 @@ export const audioassetAudioAssetSchema = z.object({
3113
3235
  return v;
3114
3236
  return Number(v);
3115
3237
  } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3116
- effect: z.optional(z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
3238
+ effect: z.optional(z.enum([
3239
+ 'none',
3240
+ 'fadeIn',
3241
+ 'fadeOut',
3242
+ 'fadeInFadeOut'
3243
+ ]))
3117
3244
  }).strict();
3118
3245
  export const audioAssetSchema = audioassetAudioAssetSchema;
3119
3246
  /**
3120
3247
  * Offsets the position of an asset horizontally or vertically by a relative distance.
3121
3248
  */
3122
3249
  export const offsetOffsetSchema = z.object({
3123
- x: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3250
+ x: z.optional(z.union([
3251
+ 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') {
3126
3254
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3127
3255
  return v;
3128
3256
  return Number(v);
3129
- } return v; }), z.number().gte(-10).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3130
- y: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3257
+ } return v; }), z.number().gte(-10).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3258
+ z.array(tweenTweenSchema)
3259
+ ])),
3260
+ y: z.optional(z.union([
3261
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3131
3262
  return undefined; if (Array.isArray(v))
3132
3263
  return v; if (typeof v === 'string') {
3133
3264
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3134
3265
  return v;
3135
3266
  return Number(v);
3136
- } return v; }), z.number().gte(-10).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3267
+ } return v; }), z.number().gte(-10).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3268
+ z.array(tweenTweenSchema)
3269
+ ]))
3137
3270
  }).strict();
3138
3271
  export const offsetSchema = offsetOffsetSchema;
3139
3272
  /**
3140
3273
  * Rotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`.
3141
3274
  */
3142
3275
  export const rotatetransformationRotateTransformationSchema = z.object({
3143
- angle: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3276
+ angle: z.optional(z.union([
3277
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3144
3278
  return undefined; if (Array.isArray(v))
3145
3279
  return v; if (typeof v === 'string') {
3146
3280
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3147
3281
  return v;
3148
3282
  return Number(v);
3149
- } return v; }), z.number().gte(-360).lte(360)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3283
+ } return v; }), z.number().gte(-360).lte(360)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3284
+ z.array(tweenTweenSchema)
3285
+ ]))
3150
3286
  }).strict();
3151
3287
  export const rotateTransformationSchema = rotatetransformationRotateTransformationSchema;
3152
3288
  /**
3153
3289
  * 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.
3154
3290
  */
3155
3291
  export const skewtransformationSkewTransformationSchema = z.object({
3156
- x: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3292
+ x: z.optional(z.union([
3293
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3157
3294
  return undefined; if (Array.isArray(v))
3158
3295
  return v; if (typeof v === 'string') {
3159
3296
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3160
3297
  return v;
3161
3298
  return Number(v);
3162
- } return v; }), z.number().gte(-100).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3163
- y: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3299
+ } return v; }), z.number().gte(-100).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3300
+ z.array(tweenTweenSchema)
3301
+ ])),
3302
+ y: z.optional(z.union([
3303
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3164
3304
  return undefined; if (Array.isArray(v))
3165
3305
  return v; if (typeof v === 'string') {
3166
3306
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3167
3307
  return v;
3168
3308
  return Number(v);
3169
- } return v; }), z.number().gte(-100).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3309
+ } return v; }), z.number().gte(-100).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3310
+ z.array(tweenTweenSchema)
3311
+ ]))
3170
3312
  }).strict();
3171
3313
  export const skewTransformationSchema = skewtransformationSkewTransformationSchema;
3172
3314
  /**
3173
3315
  * 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.
3174
3316
  */
3175
3317
  export const texttospeechassetTextToSpeechAssetSchema = z.object({
3176
- type: z.enum(["text-to-speech"]),
3318
+ type: z.enum(['text-to-speech']),
3177
3319
  text: z.string(),
3178
3320
  voice: z.string(),
3179
3321
  language: z.optional(z.string()),
@@ -3185,13 +3327,16 @@ export const texttospeechassetTextToSpeechAssetSchema = z.object({
3185
3327
  return v;
3186
3328
  return Number(v);
3187
3329
  } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3188
- volume: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3330
+ volume: z.optional(z.union([
3331
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3189
3332
  return undefined; if (Array.isArray(v))
3190
3333
  return v; if (typeof v === 'string') {
3191
3334
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3192
3335
  return v;
3193
3336
  return Number(v);
3194
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3337
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3338
+ z.array(tweenTweenSchema)
3339
+ ])),
3195
3340
  speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3196
3341
  return undefined; if (Array.isArray(v))
3197
3342
  return v; if (typeof v === 'string') {
@@ -3199,7 +3344,12 @@ export const texttospeechassetTextToSpeechAssetSchema = z.object({
3199
3344
  return v;
3200
3345
  return Number(v);
3201
3346
  } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3202
- effect: z.optional(z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
3347
+ effect: z.optional(z.enum([
3348
+ 'none',
3349
+ 'fadeIn',
3350
+ 'fadeOut',
3351
+ 'fadeInFadeOut'
3352
+ ]))
3203
3353
  }).strict();
3204
3354
  export const textToSpeechAssetSchema = texttospeechassetTextToSpeechAssetSchema;
3205
3355
  /**
@@ -3211,43 +3361,43 @@ export const textToSpeechAssetSchema = texttospeechassetTextToSpeechAssetSchema;
3211
3361
  * @deprecated
3212
3362
  */
3213
3363
  export const titleassetTitleAssetSchema = z.object({
3214
- type: z.enum(["title"]),
3364
+ type: z.enum(['title']),
3215
3365
  text: z.string(),
3216
3366
  style: z.optional(z.enum([
3217
- "minimal",
3218
- "blockbuster",
3219
- "vogue",
3220
- "sketchy",
3221
- "skinny",
3222
- "chunk",
3223
- "chunkLight",
3224
- "marker",
3225
- "future",
3226
- "subtitle",
3367
+ 'minimal',
3368
+ 'blockbuster',
3369
+ 'vogue',
3370
+ 'sketchy',
3371
+ 'skinny',
3372
+ 'chunk',
3373
+ 'chunkLight',
3374
+ 'marker',
3375
+ 'future',
3376
+ 'subtitle'
3227
3377
  ])),
3228
3378
  color: z.optional(z.string()),
3229
3379
  size: z.optional(z.enum([
3230
- "xx-small",
3231
- "x-small",
3232
- "small",
3233
- "medium",
3234
- "large",
3235
- "x-large",
3236
- "xx-large",
3380
+ 'xx-small',
3381
+ 'x-small',
3382
+ 'small',
3383
+ 'medium',
3384
+ 'large',
3385
+ 'x-large',
3386
+ 'xx-large'
3237
3387
  ])),
3238
3388
  background: z.optional(z.string()),
3239
3389
  position: z.optional(z.enum([
3240
- "top",
3241
- "topRight",
3242
- "right",
3243
- "bottomRight",
3244
- "bottom",
3245
- "bottomLeft",
3246
- "left",
3247
- "topLeft",
3248
- "center",
3390
+ 'top',
3391
+ 'topRight',
3392
+ 'right',
3393
+ 'bottomRight',
3394
+ 'bottom',
3395
+ 'bottomLeft',
3396
+ 'left',
3397
+ 'topLeft',
3398
+ 'center'
3249
3399
  ])),
3250
- offset: z.optional(offsetOffsetSchema),
3400
+ offset: z.optional(offsetOffsetSchema)
3251
3401
  }).strict();
3252
3402
  export const titleAssetSchema = titleassetTitleAssetSchema;
3253
3403
  /**
@@ -3256,14 +3406,14 @@ export const titleAssetSchema = titleassetTitleAssetSchema;
3256
3406
  export const transformationTransformationSchema = z.object({
3257
3407
  rotate: z.optional(rotatetransformationRotateTransformationSchema),
3258
3408
  skew: z.optional(skewtransformationSkewTransformationSchema),
3259
- flip: z.optional(fliptransformationFlipTransformationSchema),
3409
+ flip: z.optional(fliptransformationFlipTransformationSchema)
3260
3410
  }).strict();
3261
3411
  export const transformationSchema = transformationTransformationSchema;
3262
3412
  /**
3263
3413
  * 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.
3264
3414
  */
3265
3415
  export const videoassetVideoAssetSchema = z.object({
3266
- type: z.enum(["video"]),
3416
+ type: z.enum(['video']),
3267
3417
  src: z.string().min(1).regex(/\S/),
3268
3418
  transcode: z.optional(z.boolean()),
3269
3419
  trim: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -3273,14 +3423,22 @@ export const videoassetVideoAssetSchema = z.object({
3273
3423
  return v;
3274
3424
  return Number(v);
3275
3425
  } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3276
- volume: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3426
+ volume: z.optional(z.union([
3427
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3277
3428
  return undefined; if (Array.isArray(v))
3278
3429
  return v; if (typeof v === 'string') {
3279
3430
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3280
3431
  return v;
3281
3432
  return Number(v);
3282
- } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3283
- volumeEffect: z.optional(z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
3433
+ } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3434
+ z.array(tweenTweenSchema)
3435
+ ])),
3436
+ volumeEffect: z.optional(z.enum([
3437
+ 'none',
3438
+ 'fadeIn',
3439
+ 'fadeOut',
3440
+ 'fadeInFadeOut'
3441
+ ])),
3284
3442
  speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3285
3443
  return undefined; if (Array.isArray(v))
3286
3444
  return v; if (typeof v === 'string') {
@@ -3289,7 +3447,7 @@ export const videoassetVideoAssetSchema = z.object({
3289
3447
  return Number(v);
3290
3448
  } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3291
3449
  crop: z.optional(cropCropSchema),
3292
- chromaKey: z.optional(chromakeyChromaKeySchema),
3450
+ chromaKey: z.optional(chromakeyChromaKeySchema)
3293
3451
  }).strict();
3294
3452
  export const videoAssetSchema = videoassetVideoAssetSchema;
3295
3453
  /**
@@ -3326,7 +3484,7 @@ export const clipClipSchema = z.object({
3326
3484
  return v;
3327
3485
  return Number(v);
3328
3486
  } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3329
- z.union([z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3487
+ z.union([z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3330
3488
  ]),
3331
3489
  length: z.union([
3332
3490
  z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -3336,16 +3494,24 @@ export const clipClipSchema = z.object({
3336
3494
  return v;
3337
3495
  return Number(v);
3338
3496
  } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3339
- z.union([z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3497
+ z.union([z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
3340
3498
  ]),
3341
- fit: z.optional(z.enum(["cover", "contain", "crop", "none"])),
3342
- scale: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3499
+ fit: z.optional(z.enum([
3500
+ 'cover',
3501
+ 'contain',
3502
+ 'crop',
3503
+ 'none'
3504
+ ])),
3505
+ scale: z.optional(z.union([
3506
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3343
3507
  return undefined; if (Array.isArray(v))
3344
3508
  return v; if (typeof v === 'string') {
3345
3509
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3346
3510
  return v;
3347
3511
  return Number(v);
3348
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3512
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3513
+ z.array(tweenTweenSchema)
3514
+ ])),
3349
3515
  width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3350
3516
  return undefined; if (Array.isArray(v))
3351
3517
  return v; if (typeof v === 'string') {
@@ -3361,58 +3527,61 @@ export const clipClipSchema = z.object({
3361
3527
  return Number(v);
3362
3528
  } return v; }), z.number().gte(1).lte(2160)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3363
3529
  position: z.optional(z.enum([
3364
- "top",
3365
- "topRight",
3366
- "right",
3367
- "bottomRight",
3368
- "bottom",
3369
- "bottomLeft",
3370
- "left",
3371
- "topLeft",
3372
- "center",
3530
+ 'top',
3531
+ 'topRight',
3532
+ 'right',
3533
+ 'bottomRight',
3534
+ 'bottom',
3535
+ 'bottomLeft',
3536
+ 'left',
3537
+ 'topLeft',
3538
+ 'center'
3373
3539
  ])),
3374
3540
  offset: z.optional(offsetOffsetSchema),
3375
3541
  transition: z.optional(transitionTransitionSchema),
3376
3542
  effect: z.optional(z.enum([
3377
- "zoomIn",
3378
- "zoomInSlow",
3379
- "zoomInFast",
3380
- "zoomOut",
3381
- "zoomOutSlow",
3382
- "zoomOutFast",
3383
- "slideLeft",
3384
- "slideLeftSlow",
3385
- "slideLeftFast",
3386
- "slideRight",
3387
- "slideRightSlow",
3388
- "slideRightFast",
3389
- "slideUp",
3390
- "slideUpSlow",
3391
- "slideUpFast",
3392
- "slideDown",
3393
- "slideDownSlow",
3394
- "slideDownFast",
3543
+ 'zoomIn',
3544
+ 'zoomInSlow',
3545
+ 'zoomInFast',
3546
+ 'zoomOut',
3547
+ 'zoomOutSlow',
3548
+ 'zoomOutFast',
3549
+ 'slideLeft',
3550
+ 'slideLeftSlow',
3551
+ 'slideLeftFast',
3552
+ 'slideRight',
3553
+ 'slideRightSlow',
3554
+ 'slideRightFast',
3555
+ 'slideUp',
3556
+ 'slideUpSlow',
3557
+ 'slideUpFast',
3558
+ 'slideDown',
3559
+ 'slideDownSlow',
3560
+ 'slideDownFast'
3395
3561
  ])),
3396
3562
  filter: z.optional(z.enum([
3397
- "none",
3398
- "blur",
3399
- "boost",
3400
- "contrast",
3401
- "darken",
3402
- "greyscale",
3403
- "lighten",
3404
- "muted",
3405
- "negative",
3563
+ 'none',
3564
+ 'blur',
3565
+ 'boost',
3566
+ 'contrast',
3567
+ 'darken',
3568
+ 'greyscale',
3569
+ 'lighten',
3570
+ 'muted',
3571
+ 'negative'
3406
3572
  ])),
3407
- opacity: z.optional(z.union([z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3573
+ opacity: z.optional(z.union([
3574
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3408
3575
  return undefined; if (Array.isArray(v))
3409
3576
  return v; if (typeof v === 'string') {
3410
3577
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3411
3578
  return v;
3412
3579
  return Number(v);
3413
- } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
3580
+ } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3581
+ z.array(tweenTweenSchema)
3582
+ ])),
3414
3583
  transform: z.optional(transformationTransformationSchema),
3415
- alias: z.optional(z.union([z.string().regex(/^[A-Za-z0-9_-]+$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3584
+ alias: z.optional(z.union([z.string().regex(/^[A-Za-z0-9_-]+$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
3416
3585
  }).strict();
3417
3586
  export const clipSchema = clipClipSchema;
3418
3587
  // Clip schema with fit property filter for rich-text assets
@@ -3431,7 +3600,7 @@ const clipClipSchemaWithFitFilter = clipClipSchema.transform((clip) => {
3431
3600
  * 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.
3432
3601
  */
3433
3602
  export const trackTrackSchema = z.object({
3434
- clips: z.array(clipClipSchemaWithFitFilter).min(1),
3603
+ clips: z.array(clipClipSchemaWithFitFilter).min(1)
3435
3604
  }).strict();
3436
3605
  export const trackSchema = trackTrackSchema;
3437
3606
  /**
@@ -3442,7 +3611,7 @@ export const timelineTimelineSchema = z.object({
3442
3611
  background: z.optional(z.string()),
3443
3612
  fonts: z.optional(z.array(fontFontSchema)),
3444
3613
  tracks: z.array(trackTrackSchema).min(1),
3445
- cache: z.optional(z.boolean()),
3614
+ cache: z.optional(z.boolean())
3446
3615
  }).strict();
3447
3616
  export const timelineSchema = timelineTimelineSchema;
3448
3617
  /**
@@ -3453,8 +3622,12 @@ export const editEditSchema = z.object({
3453
3622
  output: outputOutputSchema,
3454
3623
  merge: z.optional(z.array(mergefieldMergeFieldSchema)),
3455
3624
  callback: z.optional(z.string()),
3456
- disk: z.optional(z.enum(["local", "mount"])),
3457
- instance: z.optional(z.enum(["s1", "s2", "a1"])),
3625
+ disk: z.optional(z.enum(['local', 'mount'])),
3626
+ instance: z.optional(z.enum([
3627
+ 's1',
3628
+ 's2',
3629
+ 'a1'
3630
+ ]))
3458
3631
  }).strict();
3459
3632
  export const editSchema = editEditSchema;
3460
3633
  /**
@@ -3465,13 +3638,13 @@ export const renderresponsedataRenderResponseDataSchema = z.object({
3465
3638
  owner: z.string(),
3466
3639
  plan: z.optional(z.string()),
3467
3640
  status: z.enum([
3468
- "queued",
3469
- "fetching",
3470
- "preprocessing",
3471
- "rendering",
3472
- "saving",
3473
- "done",
3474
- "failed",
3641
+ 'queued',
3642
+ 'fetching',
3643
+ 'preprocessing',
3644
+ 'rendering',
3645
+ 'saving',
3646
+ 'done',
3647
+ 'failed'
3475
3648
  ]),
3476
3649
  error: z.optional(z.string()),
3477
3650
  duration: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -3489,11 +3662,17 @@ export const renderresponsedataRenderResponseDataSchema = z.object({
3489
3662
  return Number(v);
3490
3663
  } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3491
3664
  url: z.optional(z.string()),
3492
- poster: z.optional(z.union([z.string(), z.null()])),
3493
- thumbnail: z.optional(z.union([z.string(), z.null()])),
3665
+ poster: z.optional(z.union([
3666
+ z.string(),
3667
+ z.null()
3668
+ ])),
3669
+ thumbnail: z.optional(z.union([
3670
+ z.string(),
3671
+ z.null()
3672
+ ])),
3494
3673
  data: z.optional(editEditSchema),
3495
3674
  created: z.optional(z.string()),
3496
- updated: z.optional(z.string()),
3675
+ updated: z.optional(z.string())
3497
3676
  }).strict();
3498
3677
  export const renderResponseDataSchema = renderresponsedataRenderResponseDataSchema;
3499
3678
  /**
@@ -3502,7 +3681,7 @@ export const renderResponseDataSchema = renderresponsedataRenderResponseDataSche
3502
3681
  export const renderresponseRenderResponseSchema = z.object({
3503
3682
  success: z.boolean(),
3504
3683
  message: z.string(),
3505
- response: renderresponsedataRenderResponseDataSchema,
3684
+ response: renderresponsedataRenderResponseDataSchema
3506
3685
  }).strict();
3507
3686
  export const renderResponseSchema = renderresponseRenderResponseSchema;
3508
3687
  /**
@@ -3512,7 +3691,7 @@ export const templatedataresponsedataTemplateDataResponseDataSchema = z.object({
3512
3691
  id: z.string(),
3513
3692
  name: z.string(),
3514
3693
  owner: z.string(),
3515
- template: editEditSchema,
3694
+ template: editEditSchema
3516
3695
  }).strict();
3517
3696
  export const templateDataResponseDataSchema = templatedataresponsedataTemplateDataResponseDataSchema;
3518
3697
  /**
@@ -3521,7 +3700,7 @@ export const templateDataResponseDataSchema = templatedataresponsedataTemplateDa
3521
3700
  export const templatedataresponseTemplateDataResponseSchema = z.object({
3522
3701
  success: z.boolean(),
3523
3702
  message: z.string(),
3524
- response: templatedataresponsedataTemplateDataResponseDataSchema,
3703
+ response: templatedataresponsedataTemplateDataResponseDataSchema
3525
3704
  }).strict();
3526
3705
  export const templateDataResponseSchema = templatedataresponseTemplateDataResponseSchema;
3527
3706
  /**
@@ -3529,13 +3708,13 @@ export const templateDataResponseSchema = templatedataresponseTemplateDataRespon
3529
3708
  */
3530
3709
  export const templateTemplateSchema = z.object({
3531
3710
  name: z.string(),
3532
- template: z.optional(editEditSchema),
3711
+ template: z.optional(editEditSchema)
3533
3712
  }).strict();
3534
3713
  export const templateSchema = templateTemplateSchema;
3535
3714
  export const postRenderRequest = z.object({
3536
3715
  body: editEditSchema,
3537
3716
  path: z.optional(z.never()),
3538
- query: z.optional(z.never()),
3717
+ query: z.optional(z.never())
3539
3718
  }).strict();
3540
3719
  /**
3541
3720
  * The queued render details
@@ -3544,14 +3723,12 @@ export const postRenderResponse = queuedresponseQueuedResponseSchema;
3544
3723
  export const getRenderRequest = z.object({
3545
3724
  body: z.optional(z.never()),
3546
3725
  path: z.object({
3547
- id: z
3548
- .string()
3549
- .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}$/),
3726
+ 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*\}\}$/)])
3550
3727
  }),
3551
3728
  query: z.optional(z.object({
3552
3729
  data: z.optional(z.boolean()),
3553
- merged: z.optional(z.boolean()),
3554
- })),
3730
+ merged: z.optional(z.boolean())
3731
+ }))
3555
3732
  }).strict();
3556
3733
  /**
3557
3734
  * The render status details
@@ -3560,7 +3737,7 @@ export const getRenderResponse = renderresponseRenderResponseSchema;
3560
3737
  export const getTemplatesRequest = z.object({
3561
3738
  body: z.optional(z.never()),
3562
3739
  path: z.optional(z.never()),
3563
- query: z.optional(z.never()),
3740
+ query: z.optional(z.never())
3564
3741
  }).strict();
3565
3742
  /**
3566
3743
  * The list of templates stored against a users account
@@ -3569,7 +3746,7 @@ export const getTemplatesResponse = templatelistresponseTemplateListResponseSche
3569
3746
  export const postTemplateRequest = z.object({
3570
3747
  body: templateTemplateSchema,
3571
3748
  path: z.optional(z.never()),
3572
- query: z.optional(z.never()),
3749
+ query: z.optional(z.never())
3573
3750
  }).strict();
3574
3751
  /**
3575
3752
  * The saved template status including the id
@@ -3578,11 +3755,9 @@ export const postTemplateResponse = templateresponseTemplateResponseSchema;
3578
3755
  export const deleteTemplateRequest = z.object({
3579
3756
  body: z.optional(z.never()),
3580
3757
  path: z.object({
3581
- id: z
3582
- .string()
3583
- .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}$/),
3758
+ 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*\}\}$/)])
3584
3759
  }),
3585
- query: z.optional(z.never()),
3760
+ query: z.optional(z.never())
3586
3761
  }).strict();
3587
3762
  /**
3588
3763
  * An empty response signifying the template has been deleted
@@ -3591,11 +3766,9 @@ export const deleteTemplateResponse = z.void();
3591
3766
  export const getTemplateRequest = z.object({
3592
3767
  body: z.optional(z.never()),
3593
3768
  path: z.object({
3594
- id: z
3595
- .string()
3596
- .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}$/),
3769
+ 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*\}\}$/)])
3597
3770
  }),
3598
- query: z.optional(z.never()),
3771
+ query: z.optional(z.never())
3599
3772
  }).strict();
3600
3773
  /**
3601
3774
  * The template details including the [Edit](#tocs_edit)
@@ -3604,11 +3777,9 @@ export const getTemplateResponse = templatedataresponseTemplateDataResponseSchem
3604
3777
  export const putTemplateRequest = z.object({
3605
3778
  body: templateTemplateSchema,
3606
3779
  path: z.object({
3607
- id: z
3608
- .string()
3609
- .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}$/),
3780
+ 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*\}\}$/)])
3610
3781
  }),
3611
- query: z.optional(z.never()),
3782
+ query: z.optional(z.never())
3612
3783
  }).strict();
3613
3784
  /**
3614
3785
  * Update a templates name and [Edit](#tocs_edit)
@@ -3617,7 +3788,7 @@ export const putTemplateResponse = templateresponseTemplateResponseSchema;
3617
3788
  export const postTemplateRenderRequest = z.object({
3618
3789
  body: templaterenderTemplateRenderSchema,
3619
3790
  path: z.optional(z.never()),
3620
- query: z.optional(z.never()),
3791
+ query: z.optional(z.never())
3621
3792
  }).strict();
3622
3793
  /**
3623
3794
  * The queued status including the render id. Check the status of the render using the id and the [render status](#get-render-status) endpoint.
@@ -3626,9 +3797,9 @@ export const postTemplateRenderResponse = queuedresponseQueuedResponseSchema;
3626
3797
  export const probeRequest = z.object({
3627
3798
  body: z.optional(z.never()),
3628
3799
  path: z.object({
3629
- url: z.string(),
3800
+ url: z.string()
3630
3801
  }),
3631
- query: z.optional(z.never()),
3802
+ query: z.optional(z.never())
3632
3803
  }).strict();
3633
3804
  /**
3634
3805
  * FFprobe response formatted as JSON.
@@ -3637,11 +3808,9 @@ export const probeResponse = proberesponseProbeResponseSchema;
3637
3808
  export const deleteAssetRequest = z.object({
3638
3809
  body: z.optional(z.never()),
3639
3810
  path: z.object({
3640
- id: z
3641
- .string()
3642
- .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}$/),
3811
+ 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*\}\}$/)])
3643
3812
  }),
3644
- query: z.optional(z.never()),
3813
+ query: z.optional(z.never())
3645
3814
  }).strict();
3646
3815
  /**
3647
3816
  * An empty response signifying the asset has been deleted
@@ -3650,11 +3819,9 @@ export const deleteAssetResponse = z.void();
3650
3819
  export const getAssetRequest = z.object({
3651
3820
  body: z.optional(z.never()),
3652
3821
  path: z.object({
3653
- id: z
3654
- .string()
3655
- .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}$/),
3822
+ 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*\}\}$/)])
3656
3823
  }),
3657
- query: z.optional(z.never()),
3824
+ query: z.optional(z.never())
3658
3825
  }).strict();
3659
3826
  /**
3660
3827
  * Get asset by asset id
@@ -3663,11 +3830,9 @@ export const getAssetResponse = assetresponseAssetResponseSchema;
3663
3830
  export const getAssetByRenderIdRequest = z.object({
3664
3831
  body: z.optional(z.never()),
3665
3832
  path: z.object({
3666
- id: z
3667
- .string()
3668
- .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}$/),
3833
+ 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*\}\}$/)])
3669
3834
  }),
3670
- query: z.optional(z.never()),
3835
+ query: z.optional(z.never())
3671
3836
  }).strict();
3672
3837
  /**
3673
3838
  * Get one or more assets by render id
@@ -3676,7 +3841,7 @@ export const getAssetByRenderIdResponse = assetrenderresponseAssetRenderResponse
3676
3841
  export const postServeAssetRequest = z.object({
3677
3842
  body: transferTransferSchema,
3678
3843
  path: z.optional(z.never()),
3679
- query: z.optional(z.never()),
3844
+ query: z.optional(z.never())
3680
3845
  }).strict();
3681
3846
  /**
3682
3847
  * The transfer request details and status
@@ -3685,7 +3850,7 @@ export const postServeAssetResponse = transferresponseTransferResponseSchema;
3685
3850
  export const getSourcesRequest = z.object({
3686
3851
  body: z.optional(z.never()),
3687
3852
  path: z.optional(z.never()),
3688
- query: z.optional(z.never()),
3853
+ query: z.optional(z.never())
3689
3854
  }).strict();
3690
3855
  /**
3691
3856
  * The list of ingested source files stored against a users account
@@ -3694,7 +3859,7 @@ export const getSourcesResponse = sourcelistresponseSourceListResponseSchema;
3694
3859
  export const postSourceRequest = z.object({
3695
3860
  body: sourceSourceSchema,
3696
3861
  path: z.optional(z.never()),
3697
- query: z.optional(z.never()),
3862
+ query: z.optional(z.never())
3698
3863
  }).strict();
3699
3864
  /**
3700
3865
  * The queued source file details
@@ -3703,11 +3868,9 @@ export const postSourceResponse = queuedsourceresponseQueuedSourceResponseSchema
3703
3868
  export const deleteSourceRequest = z.object({
3704
3869
  body: z.optional(z.never()),
3705
3870
  path: z.object({
3706
- id: z
3707
- .string()
3708
- .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}$/),
3871
+ 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*\}\}$/)])
3709
3872
  }),
3710
- query: z.optional(z.never()),
3873
+ query: z.optional(z.never())
3711
3874
  }).strict();
3712
3875
  /**
3713
3876
  * An empty response signifying the ingested source file has been deleted.
@@ -3716,11 +3879,9 @@ export const deleteSourceResponse = z.void();
3716
3879
  export const getSourceRequest = z.object({
3717
3880
  body: z.optional(z.never()),
3718
3881
  path: z.object({
3719
- id: z
3720
- .string()
3721
- .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}$/),
3882
+ 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*\}\}$/)])
3722
3883
  }),
3723
- query: z.optional(z.never()),
3884
+ query: z.optional(z.never())
3724
3885
  }).strict();
3725
3886
  /**
3726
3887
  * Get source file details by id
@@ -3729,7 +3890,7 @@ export const getSourceResponse = sourceresponseSourceResponseSchema;
3729
3890
  export const getUploadSignedUrlRequest = z.object({
3730
3891
  body: z.optional(z.never()),
3731
3892
  path: z.optional(z.never()),
3732
- query: z.optional(z.never()),
3893
+ query: z.optional(z.never())
3733
3894
  }).strict();
3734
3895
  /**
3735
3896
  * The id and signed URL to upload to.
@@ -3738,7 +3899,7 @@ export const getUploadSignedUrlResponse = uploadresponseUploadResponseSchema;
3738
3899
  export const postGenerateAssetRequest = z.object({
3739
3900
  body: generatedAssetGeneratedAssetSchema,
3740
3901
  path: z.optional(z.never()),
3741
- query: z.optional(z.never()),
3902
+ query: z.optional(z.never())
3742
3903
  }).strict();
3743
3904
  /**
3744
3905
  * The generated asset details
@@ -3747,11 +3908,9 @@ export const postGenerateAssetResponse = generatedAssetResponseGeneratedAssetRes
3747
3908
  export const getGeneratedAssetRequest = z.object({
3748
3909
  body: z.optional(z.never()),
3749
3910
  path: z.object({
3750
- id: z
3751
- .string()
3752
- .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}$/),
3911
+ 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*\}\}$/)])
3753
3912
  }),
3754
- query: z.optional(z.never()),
3913
+ query: z.optional(z.never())
3755
3914
  }).strict();
3756
3915
  /**
3757
3916
  * The generated asset details