@shotstack/schemas 1.4.4 → 1.4.6

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